From 1c03c7bd80cf251dd46fbf2f29a421501a129010 Mon Sep 17 00:00:00 2001 From: "zhaowei.huang" <228127304@qq.com> Date: Mon, 8 Jun 2026 18:18:48 +0800 Subject: [PATCH] build(frontend): sync compiled web assets --- .../wwwroot/assets/AnnotationView-BCpnjaJW.js | 1 + .../wwwroot/assets/AnnotationView-DixiuHnc.js | 1 - .../wwwroot/assets/AppShell-CAX-HJ2b.js | 1 - .../wwwroot/assets/AppShell-CFoRRXmz.css | 1 + .../wwwroot/assets/AppShell-CsAf-EtY.js | 1 + .../wwwroot/assets/AppShell-D28lCBtn.css | 1 - .../wwwroot/assets/AuthRoleView-BW7bVuKX.js | 1 - .../wwwroot/assets/AuthRoleView-CTEbfTF-.css | 1 - .../assets/BusinessConfigView-BfBO4uM6.js | 1 + .../assets/BusinessConfigView-mcy1bFqR.css | 1 + .../wwwroot/assets/CarPanelView-BiDARL2O.js | 1 + ...CYaApbj9.css => CarPanelView-CyQ-iKoo.css} | 2 +- .../wwwroot/assets/CarPanelView-DfcvV1b9.js | 1 - .../assets/ChargePolicyView-fgYXxU-T.js | 1 - ...MHa7yfOO.js => ConfigPageBase-CgfsngDp.js} | 2 +- .../assets/CustomWidgetView-Ch0BQYzJ.css | 1 - .../assets/CustomWidgetView-Ch7DIGUj.js | 1 - .../wwwroot/assets/DashboardView-C22mCfRB.css | 1 - .../wwwroot/assets/DashboardView-C5o_Ttf4.js | 60 ----------- .../wwwroot/assets/DashboardView-Rj8saK5Q.js | 22 ++++ .../wwwroot/assets/DashboardView-hw3Lq69B.css | 1 + .../wwwroot/assets/DeviceHubView-D6W4gbr_.js | 1 - .../ExternalIntegrationView-CVrzHPs8.js | 1 - .../assets/FacilityConfigView-BdZ62AIz.js | 1 + .../assets/FacilityConfigView-DTlQlSfB.css | 1 + .../wwwroot/assets/LocationView-r0d4EkyN.js | 1 - ...View-0TaDlGzh.js => LoginView-DR-JtkF-.js} | 2 +- .../wwwroot/assets/MapEditorView-BeHcrkSz.js | 1 + .../wwwroot/assets/MapEditorView-Bf_sv8Aw.js | 1 - ...Trk0FFM.css => MapEditorView-CBiaEgWL.css} | 2 +- .../assets/MapManagementView-BfnAn-Bv.js | 4 + .../assets/MapManagementView-CccyKhbv.js | 4 - .../assets/MapManagementView-DJMxI8po.css | 1 - .../assets/MapManagementView-DSxBVRvt.css | 1 + .../assets/MapMonitorConfigView-BC-sAP6v.css | 1 - .../assets/MapMonitorConfigView-CYlZhPX2.js | 1 - ...9_ePeE.css => MapMonitorView-7EMxOrDQ.css} | 2 +- .../wwwroot/assets/MapMonitorView-Bc6X9WQO.js | 2 - .../wwwroot/assets/MapMonitorView-CdBlKooR.js | 2 + .../assets/MissionEditorView-BNUdM9Ij.js | 1 - .../assets/MissionEditorView-DOR5c4wb.css | 1 - ...jL.js => MonitorDashboardView-BhyuAhkj.js} | 2 +- .../wwwroot/assets/MonitorMapView-D59BIz8C.js | 1 + .../wwwroot/assets/MonitorMapView-OvNLwhYc.js | 1 - ...81Kn.js => OpsActionPanelView-CYj4_682.js} | 4 +- .../wwwroot/assets/OpsCenterView-DK8hhBKP.css | 1 + .../wwwroot/assets/OpsCenterView-DSZVXypR.js | 2 + .../wwwroot/assets/OpsConfigView-Ch6itZUF.js | 1 - .../wwwroot/assets/OpsConfigView-Dn7upUIu.css | 1 - ...lMEkqrL.js => PermissionGuard-CR4qtxrh.js} | 2 +- .../wwwroot/assets/PlaybackView-BsrAVvYx.css | 1 - .../wwwroot/assets/PlaybackView-DVrgp4e4.js | 1 - .../assets/ProcessPanelView-Cb7rpouy.css | 1 + .../assets/ProcessPanelView-DLKKlZA4.css | 1 - .../assets/ProcessPanelView-Dh8TMlBL.js | 1 + .../assets/ProcessPanelView-DoD_u6oD.js | 1 - ...l.js => ProjectPropertiesView-wJsYQ6C1.js} | 4 +- .../assets/ReflectionManagerPanel-BZQZIz4T.js | 4 - .../ReflectionManagerPanel-Bsiwi559.css | 1 + .../ReflectionManagerPanel-Btm77NGt.css | 1 - .../assets/ReflectionManagerPanel-CqcqGxZI.js | 4 + .../assets/RoutingPolicyView-vyV201zY.js | 1 - .../assets/ScenarioTemplateView-CmTU4kEH.js | 1 - .../assets/ScenarioTemplateView-rv7Jf-RX.css | 1 - .../assets/ScriptPanelView-BHu191Ko.css | 1 + .../assets/ScriptPanelView-D8niLWli.js | 1 + .../assets/ScriptPanelView-DMd6Dq7p.js | 1 - .../assets/ScriptPanelView-zM2-1jjH.css | 1 - ...g6q_Q.js => ServiceStatusView-nxCKHggR.js} | 2 +- .../assets/StrategyConfigView-DCtZMQRi.css | 1 + .../assets/StrategyConfigView-DqIoZFxi.js | 1 + .../assets/SystemCenterView-Cj7be1bs.css | 1 + .../assets/SystemCenterView-DTMANlHu.js | 2 + .../assets/SystemConfigView-Cy7YXbTA.js | 2 - .../assets/SystemConfigView-zK_tPjiF.css | 1 - .../assets/TaskAllocationView-BoGL3AmK.js | 1 - .../assets/TaskTemplateView-0IwfArtT.css | 1 + .../assets/TaskTemplateView-BOoJh-Fl.js | 26 +++++ .../assets/TrackTableView-B2SrXZLA.css | 1 + .../wwwroot/assets/TrackTableView-B6xSRo4y.js | 1 + .../assets/TrackTableView-C-Cp6740.css | 1 - .../wwwroot/assets/TrackTableView-CKv4G01-.js | 1 - .../assets/TrafficRuleView-CZpyEJOL.js | 1 - ...1cdDkq5N.js => VehicleHubView-BC4ONtdY.js} | 2 +- ...iew-C7EOtEcB.js => WizardView-B-JxMvwI.js} | 2 +- ...3D-DpUfTJl7.js => Workspace3D-B9mv4VWE.js} | 2 +- .../assets/el-breadcrumb-item-DXfSxFSr.css | 1 + MiGu.Server/wwwroot/assets/index-D5GfLbIx.js | 100 ++++++++++++++++++ MiGu.Server/wwwroot/assets/index-Dg4NaXsE.js | 100 ------------------ .../wwwroot/assets/install-D_iTbSFG.js | 39 +++++++ ...apEdit-TNAQr3Be.js => mapEdit-BXIATxCI.js} | 2 +- ...kiFw.js => monitorConfigCache-DXn96T8F.js} | 2 +- MiGu.Server/wwwroot/assets/ops-C48uBBTk.js | 1 + MiGu.Server/wwwroot/assets/ops-CsVl7GhE.js | 1 - .../assets/projectSaveFlow-BOHSv3Vc.js | 4 + ...ion-BMms551H.js => projection-BHFE6Meg.js} | 2 +- ...ion-B_glb6eT.js => reflection-BwOBPyb9.js} | 2 +- .../assets/useMapEditStream-BgR6WvRg.js | 1 - .../assets/useProjectionStream-BBHmpNXC.js | 1 - .../assets/useProjectionStream-ayb6RvWW.js | 1 + .../assets/workspaceToolbar-abOZ7a24.js | 1 + MiGu.Server/wwwroot/index.html | 2 +- 102 files changed, 253 insertions(+), 232 deletions(-) create mode 100644 MiGu.Server/wwwroot/assets/AnnotationView-BCpnjaJW.js delete mode 100644 MiGu.Server/wwwroot/assets/AnnotationView-DixiuHnc.js delete mode 100644 MiGu.Server/wwwroot/assets/AppShell-CAX-HJ2b.js create mode 100644 MiGu.Server/wwwroot/assets/AppShell-CFoRRXmz.css create mode 100644 MiGu.Server/wwwroot/assets/AppShell-CsAf-EtY.js delete mode 100644 MiGu.Server/wwwroot/assets/AppShell-D28lCBtn.css delete mode 100644 MiGu.Server/wwwroot/assets/AuthRoleView-BW7bVuKX.js delete mode 100644 MiGu.Server/wwwroot/assets/AuthRoleView-CTEbfTF-.css create mode 100644 MiGu.Server/wwwroot/assets/BusinessConfigView-BfBO4uM6.js create mode 100644 MiGu.Server/wwwroot/assets/BusinessConfigView-mcy1bFqR.css create mode 100644 MiGu.Server/wwwroot/assets/CarPanelView-BiDARL2O.js rename MiGu.Server/wwwroot/assets/{CarPanelView-CYaApbj9.css => CarPanelView-CyQ-iKoo.css} (89%) delete mode 100644 MiGu.Server/wwwroot/assets/CarPanelView-DfcvV1b9.js delete mode 100644 MiGu.Server/wwwroot/assets/ChargePolicyView-fgYXxU-T.js rename MiGu.Server/wwwroot/assets/{ConfigPageBase-MHa7yfOO.js => ConfigPageBase-CgfsngDp.js} (69%) delete mode 100644 MiGu.Server/wwwroot/assets/CustomWidgetView-Ch0BQYzJ.css delete mode 100644 MiGu.Server/wwwroot/assets/CustomWidgetView-Ch7DIGUj.js delete mode 100644 MiGu.Server/wwwroot/assets/DashboardView-C22mCfRB.css delete mode 100644 MiGu.Server/wwwroot/assets/DashboardView-C5o_Ttf4.js create mode 100644 MiGu.Server/wwwroot/assets/DashboardView-Rj8saK5Q.js create mode 100644 MiGu.Server/wwwroot/assets/DashboardView-hw3Lq69B.css delete mode 100644 MiGu.Server/wwwroot/assets/DeviceHubView-D6W4gbr_.js delete mode 100644 MiGu.Server/wwwroot/assets/ExternalIntegrationView-CVrzHPs8.js create mode 100644 MiGu.Server/wwwroot/assets/FacilityConfigView-BdZ62AIz.js create mode 100644 MiGu.Server/wwwroot/assets/FacilityConfigView-DTlQlSfB.css delete mode 100644 MiGu.Server/wwwroot/assets/LocationView-r0d4EkyN.js rename MiGu.Server/wwwroot/assets/{LoginView-0TaDlGzh.js => LoginView-DR-JtkF-.js} (72%) create mode 100644 MiGu.Server/wwwroot/assets/MapEditorView-BeHcrkSz.js delete mode 100644 MiGu.Server/wwwroot/assets/MapEditorView-Bf_sv8Aw.js rename MiGu.Server/wwwroot/assets/{MapEditorView-DTrk0FFM.css => MapEditorView-CBiaEgWL.css} (98%) create mode 100644 MiGu.Server/wwwroot/assets/MapManagementView-BfnAn-Bv.js delete mode 100644 MiGu.Server/wwwroot/assets/MapManagementView-CccyKhbv.js delete mode 100644 MiGu.Server/wwwroot/assets/MapManagementView-DJMxI8po.css create mode 100644 MiGu.Server/wwwroot/assets/MapManagementView-DSxBVRvt.css delete mode 100644 MiGu.Server/wwwroot/assets/MapMonitorConfigView-BC-sAP6v.css delete mode 100644 MiGu.Server/wwwroot/assets/MapMonitorConfigView-CYlZhPX2.js rename MiGu.Server/wwwroot/assets/{MapMonitorView-Du9_ePeE.css => MapMonitorView-7EMxOrDQ.css} (91%) delete mode 100644 MiGu.Server/wwwroot/assets/MapMonitorView-Bc6X9WQO.js create mode 100644 MiGu.Server/wwwroot/assets/MapMonitorView-CdBlKooR.js delete mode 100644 MiGu.Server/wwwroot/assets/MissionEditorView-BNUdM9Ij.js delete mode 100644 MiGu.Server/wwwroot/assets/MissionEditorView-DOR5c4wb.css rename MiGu.Server/wwwroot/assets/{MonitorDashboardView-Dl0hq3jL.js => MonitorDashboardView-BhyuAhkj.js} (60%) create mode 100644 MiGu.Server/wwwroot/assets/MonitorMapView-D59BIz8C.js delete mode 100644 MiGu.Server/wwwroot/assets/MonitorMapView-OvNLwhYc.js rename MiGu.Server/wwwroot/assets/{OpsActionPanelView-CgLT81Kn.js => OpsActionPanelView-CYj4_682.js} (66%) create mode 100644 MiGu.Server/wwwroot/assets/OpsCenterView-DK8hhBKP.css create mode 100644 MiGu.Server/wwwroot/assets/OpsCenterView-DSZVXypR.js delete mode 100644 MiGu.Server/wwwroot/assets/OpsConfigView-Ch6itZUF.js delete mode 100644 MiGu.Server/wwwroot/assets/OpsConfigView-Dn7upUIu.css rename MiGu.Server/wwwroot/assets/{PermissionGuard-BlMEkqrL.js => PermissionGuard-CR4qtxrh.js} (53%) delete mode 100644 MiGu.Server/wwwroot/assets/PlaybackView-BsrAVvYx.css delete mode 100644 MiGu.Server/wwwroot/assets/PlaybackView-DVrgp4e4.js create mode 100644 MiGu.Server/wwwroot/assets/ProcessPanelView-Cb7rpouy.css delete mode 100644 MiGu.Server/wwwroot/assets/ProcessPanelView-DLKKlZA4.css create mode 100644 MiGu.Server/wwwroot/assets/ProcessPanelView-Dh8TMlBL.js delete mode 100644 MiGu.Server/wwwroot/assets/ProcessPanelView-DoD_u6oD.js rename MiGu.Server/wwwroot/assets/{ProjectPropertiesView-DxQyu0yl.js => ProjectPropertiesView-wJsYQ6C1.js} (60%) delete mode 100644 MiGu.Server/wwwroot/assets/ReflectionManagerPanel-BZQZIz4T.js create mode 100644 MiGu.Server/wwwroot/assets/ReflectionManagerPanel-Bsiwi559.css delete mode 100644 MiGu.Server/wwwroot/assets/ReflectionManagerPanel-Btm77NGt.css create mode 100644 MiGu.Server/wwwroot/assets/ReflectionManagerPanel-CqcqGxZI.js delete mode 100644 MiGu.Server/wwwroot/assets/RoutingPolicyView-vyV201zY.js delete mode 100644 MiGu.Server/wwwroot/assets/ScenarioTemplateView-CmTU4kEH.js delete mode 100644 MiGu.Server/wwwroot/assets/ScenarioTemplateView-rv7Jf-RX.css create mode 100644 MiGu.Server/wwwroot/assets/ScriptPanelView-BHu191Ko.css create mode 100644 MiGu.Server/wwwroot/assets/ScriptPanelView-D8niLWli.js delete mode 100644 MiGu.Server/wwwroot/assets/ScriptPanelView-DMd6Dq7p.js delete mode 100644 MiGu.Server/wwwroot/assets/ScriptPanelView-zM2-1jjH.css rename MiGu.Server/wwwroot/assets/{ServiceStatusView-CiTg6q_Q.js => ServiceStatusView-nxCKHggR.js} (73%) create mode 100644 MiGu.Server/wwwroot/assets/StrategyConfigView-DCtZMQRi.css create mode 100644 MiGu.Server/wwwroot/assets/StrategyConfigView-DqIoZFxi.js create mode 100644 MiGu.Server/wwwroot/assets/SystemCenterView-Cj7be1bs.css create mode 100644 MiGu.Server/wwwroot/assets/SystemCenterView-DTMANlHu.js delete mode 100644 MiGu.Server/wwwroot/assets/SystemConfigView-Cy7YXbTA.js delete mode 100644 MiGu.Server/wwwroot/assets/SystemConfigView-zK_tPjiF.css delete mode 100644 MiGu.Server/wwwroot/assets/TaskAllocationView-BoGL3AmK.js create mode 100644 MiGu.Server/wwwroot/assets/TaskTemplateView-0IwfArtT.css create mode 100644 MiGu.Server/wwwroot/assets/TaskTemplateView-BOoJh-Fl.js create mode 100644 MiGu.Server/wwwroot/assets/TrackTableView-B2SrXZLA.css create mode 100644 MiGu.Server/wwwroot/assets/TrackTableView-B6xSRo4y.js delete mode 100644 MiGu.Server/wwwroot/assets/TrackTableView-C-Cp6740.css delete mode 100644 MiGu.Server/wwwroot/assets/TrackTableView-CKv4G01-.js delete mode 100644 MiGu.Server/wwwroot/assets/TrafficRuleView-CZpyEJOL.js rename MiGu.Server/wwwroot/assets/{VehicleHubView-1cdDkq5N.js => VehicleHubView-BC4ONtdY.js} (71%) rename MiGu.Server/wwwroot/assets/{WizardView-C7EOtEcB.js => WizardView-B-JxMvwI.js} (50%) rename MiGu.Server/wwwroot/assets/{Workspace3D-DpUfTJl7.js => Workspace3D-B9mv4VWE.js} (58%) create mode 100644 MiGu.Server/wwwroot/assets/el-breadcrumb-item-DXfSxFSr.css create mode 100644 MiGu.Server/wwwroot/assets/index-D5GfLbIx.js delete mode 100644 MiGu.Server/wwwroot/assets/index-Dg4NaXsE.js create mode 100644 MiGu.Server/wwwroot/assets/install-D_iTbSFG.js rename MiGu.Server/wwwroot/assets/{mapEdit-TNAQr3Be.js => mapEdit-BXIATxCI.js} (50%) rename MiGu.Server/wwwroot/assets/{monitorConfigCache-BigdkiFw.js => monitorConfigCache-DXn96T8F.js} (72%) create mode 100644 MiGu.Server/wwwroot/assets/ops-C48uBBTk.js delete mode 100644 MiGu.Server/wwwroot/assets/ops-CsVl7GhE.js create mode 100644 MiGu.Server/wwwroot/assets/projectSaveFlow-BOHSv3Vc.js rename MiGu.Server/wwwroot/assets/{projection-BMms551H.js => projection-BHFE6Meg.js} (92%) rename MiGu.Server/wwwroot/assets/{reflection-B_glb6eT.js => reflection-BwOBPyb9.js} (78%) delete mode 100644 MiGu.Server/wwwroot/assets/useMapEditStream-BgR6WvRg.js delete mode 100644 MiGu.Server/wwwroot/assets/useProjectionStream-BBHmpNXC.js create mode 100644 MiGu.Server/wwwroot/assets/useProjectionStream-ayb6RvWW.js create mode 100644 MiGu.Server/wwwroot/assets/workspaceToolbar-abOZ7a24.js diff --git a/MiGu.Server/wwwroot/assets/AnnotationView-BCpnjaJW.js b/MiGu.Server/wwwroot/assets/AnnotationView-BCpnjaJW.js new file mode 100644 index 0000000..a6db7ae --- /dev/null +++ b/MiGu.Server/wwwroot/assets/AnnotationView-BCpnjaJW.js @@ -0,0 +1 @@ +import{aN as S,bV as N,aE as f,c8 as a,t as z,bs as p,aK as e,N as A,cb as B,O,R as T,a4 as D,aG as M,ai as U,bE as F,Z as G,r as L,bS as b,aJ as d,G as I,aa as J,ab as K,ad as R,bL as X,aD as c,bA as Z,bC as $,X as g}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const j={style:{display:"flex","align-items":"center",gap:"8px"}},pe=S({__name:"AnnotationView",setup(q){const s=N(),l=Z({title:"",target:"",level:"info",content:""}),m=$([{id:"N001",ts:"2026-05-19 10:25",author:"ops",target:"C05",level:"warn",title:"AGV-005 故障观察",content:"出库点附近频繁停顿,怀疑激光被遮挡"}]);function w(r){return r==="error"?"danger":r==="warn"?"warning":"info"}function v(){if(!l.title){g.warning("请填写标题");return}const r=`N${String(m.value.length+1).padStart(3,"0")}`;m.value.unshift({id:r,ts:new Date().toLocaleString("zh-CN"),author:s.user?.username??"mock",target:l.target,level:l.level,title:l.title,content:l.content}),g.success("已记录(Mock,未写入数据库)"),l.title="",l.content="",l.target=""}return(r,t)=>{const u=R,_=T,i=O,V=G,y=D,E=L,x=A,h=I,n=K,k=J,C=z;return p(),f(C,{shadow:"never"},{header:a(()=>[c("div",j,[t[7]||(t[7]=c("span",null,"运营备注(monitor.note.write · 写 platform.db.Annotations)",-1)),b(s).hasOp("monitor.note.write")?(p(),f(u,{key:0,size:"small",type:"success"},{default:a(()=>[...t[5]||(t[5]=[d("可写",-1)])]),_:1})):(p(),f(u,{key:1,size:"small",type:"danger"},{default:a(()=>[...t[6]||(t[6]=[d("只读",-1)])]),_:1}))])]),default:a(()=>[e(x,{inline:"",onSubmit:t[3]||(t[3]=B(()=>{},["prevent"]))},{default:a(()=>[e(i,{label:"标题"},{default:a(()=>[e(_,{modelValue:l.title,"onUpdate:modelValue":t[0]||(t[0]=o=>l.title=o),style:{width:"240px"}},null,8,["modelValue"])]),_:1}),e(i,{label:"关联目标"},{default:a(()=>[e(_,{modelValue:l.target,"onUpdate:modelValue":t[1]||(t[1]=o=>l.target=o),placeholder:"例如 C01 / M02 / S006",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(i,{label:"层级"},{default:a(()=>[e(y,{modelValue:l.level,"onUpdate:modelValue":t[2]||(t[2]=o=>l.level=o),style:{width:"120px"}},{default:a(()=>[(p(),M(U,null,F(["info","warn","error"],o=>e(V,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e(i,null,{default:a(()=>[e(E,{type:"primary",disabled:!b(s).hasOp("monitor.note.write"),onClick:v},{default:a(()=>[...t[8]||(t[8]=[d("提交",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1}),e(_,{modelValue:l.content,"onUpdate:modelValue":t[4]||(t[4]=o=>l.content=o),type:"textarea",rows:4,placeholder:"描述备注内容...",disabled:!b(s).hasOp("monitor.note.write")},null,8,["modelValue","disabled"]),e(h),e(k,{data:m.value,size:"small","max-height":"400"},{default:a(()=>[e(n,{prop:"ts",label:"时间",width:"180"}),e(n,{prop:"author",label:"作者",width:"100"}),e(n,{prop:"target",label:"目标",width:"100"}),e(n,{prop:"level",label:"层级",width:"80"},{default:a(o=>[e(u,{size:"small",type:w(o.row.level)},{default:a(()=>[d(X(o.row.level),1)]),_:2},1032,["type"])]),_:1}),e(n,{prop:"title",label:"标题"}),e(n,{prop:"content",label:"内容"})]),_:1},8,["data"])]),_:1})}}});export{pe as default}; diff --git a/MiGu.Server/wwwroot/assets/AnnotationView-DixiuHnc.js b/MiGu.Server/wwwroot/assets/AnnotationView-DixiuHnc.js deleted file mode 100644 index a618e66..0000000 --- a/MiGu.Server/wwwroot/assets/AnnotationView-DixiuHnc.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as S,bv as N,aC as f,bJ as a,t as B,b9 as p,aH as e,N as z,bL as O,O as T,R as A,a4 as M,aE as U,ai as D,bj as F,Z as I,r as L,bt as b,aG as d,H as G,aa as H,ab as j,ad as q,bq as J,aB as c,bg as R,bh as X,X as g}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const Z={style:{display:"flex","align-items":"center",gap:"8px"}},pe=S({__name:"AnnotationView",setup($){const s=N(),l=R({title:"",target:"",level:"info",content:""}),m=X([{id:"N001",ts:"2026-05-19 10:25",author:"ops",target:"C05",level:"warn",title:"AGV-005 故障观察",content:"出库点附近频繁停顿,怀疑激光被遮挡"}]);function w(r){return r==="error"?"danger":r==="warn"?"warning":"info"}function v(){if(!l.title){g.warning("请填写标题");return}const r=`N${String(m.value.length+1).padStart(3,"0")}`;m.value.unshift({id:r,ts:new Date().toLocaleString("zh-CN"),author:s.user?.username??"mock",target:l.target,level:l.level,title:l.title,content:l.content}),g.success("已记录(Mock,未写入数据库)"),l.title="",l.content="",l.target=""}return(r,t)=>{const u=q,_=A,i=T,V=I,y=M,E=L,h=z,x=G,n=j,k=H,C=B;return p(),f(C,{shadow:"never"},{header:a(()=>[c("div",Z,[t[7]||(t[7]=c("span",null,"运营备注(monitor.note.write · 写 platform.db.Annotations)",-1)),b(s).hasOp("monitor.note.write")?(p(),f(u,{key:0,size:"small",type:"success"},{default:a(()=>[...t[5]||(t[5]=[d("可写",-1)])]),_:1})):(p(),f(u,{key:1,size:"small",type:"danger"},{default:a(()=>[...t[6]||(t[6]=[d("只读",-1)])]),_:1}))])]),default:a(()=>[e(h,{inline:"",onSubmit:t[3]||(t[3]=O(()=>{},["prevent"]))},{default:a(()=>[e(i,{label:"标题"},{default:a(()=>[e(_,{modelValue:l.title,"onUpdate:modelValue":t[0]||(t[0]=o=>l.title=o),style:{width:"240px"}},null,8,["modelValue"])]),_:1}),e(i,{label:"关联目标"},{default:a(()=>[e(_,{modelValue:l.target,"onUpdate:modelValue":t[1]||(t[1]=o=>l.target=o),placeholder:"例如 C01 / M02 / S006",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(i,{label:"层级"},{default:a(()=>[e(y,{modelValue:l.level,"onUpdate:modelValue":t[2]||(t[2]=o=>l.level=o),style:{width:"120px"}},{default:a(()=>[(p(),U(D,null,F(["info","warn","error"],o=>e(V,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e(i,null,{default:a(()=>[e(E,{type:"primary",disabled:!b(s).hasOp("monitor.note.write"),onClick:v},{default:a(()=>[...t[8]||(t[8]=[d("提交",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1}),e(_,{modelValue:l.content,"onUpdate:modelValue":t[4]||(t[4]=o=>l.content=o),type:"textarea",rows:4,placeholder:"描述备注内容...",disabled:!b(s).hasOp("monitor.note.write")},null,8,["modelValue","disabled"]),e(x),e(k,{data:m.value,size:"small","max-height":"400"},{default:a(()=>[e(n,{prop:"ts",label:"时间",width:"180"}),e(n,{prop:"author",label:"作者",width:"100"}),e(n,{prop:"target",label:"目标",width:"100"}),e(n,{prop:"level",label:"层级",width:"80"},{default:a(o=>[e(u,{size:"small",type:w(o.row.level)},{default:a(()=>[d(J(o.row.level),1)]),_:2},1032,["type"])]),_:1}),e(n,{prop:"title",label:"标题"}),e(n,{prop:"content",label:"内容"})]),_:1},8,["data"])]),_:1})}}});export{pe as default}; diff --git a/MiGu.Server/wwwroot/assets/AppShell-CAX-HJ2b.js b/MiGu.Server/wwwroot/assets/AppShell-CAX-HJ2b.js deleted file mode 100644 index 5c35eef..0000000 --- a/MiGu.Server/wwwroot/assets/AppShell-CAX-HJ2b.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as A,bv as j,bx as G,b9 as o,aC as u,bJ as e,aH as t,a0 as me,aG as m,ax as f,a1 as ue,X as pe,by as q,aB as a,b4 as F,bq as i,bt as s,Q as H,ar as J,K,aE as y,ai as M,bj as N,J as Q,b3 as R,as as _e,aD as T,I as X,ak as Y,aF as be,A as fe,bw as he,bl as ge,m as ve,V as ke,a7 as ye,W as we,bm as D,P as Ee,aR as Ce,aN as xe,p as Me,q as Se,n as Ie,U as Pe,M as Te,aT as $e,a$ as W,br as De,b5 as O,bo as Ne,b0 as Re,bC as Ae,be as ze}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";import{_ as Be}from"./FRLD-logo-white-no_title-BE78iS6n.js";/* empty css */const Le="/FRLD-logo-white.png",Ue=A({__name:"ScopeSwitcher",setup(z){const r=j(),w=G(),l=f(()=>r.scope??"Platform");let c=!1;async function v(_){if(!c){c=!0;try{await E(_)}finally{c=!1}}}async function E(_){try{await r.switchScope(_),w.push(_==="Platform"?"/admin/map-monitor":"/monitor/map")}catch(b){pe.error(b?.message??`切换到 ${_} 失败`)}}return(_,b)=>{const C=me,S=ue;return o(),u(S,{"model-value":l.value,size:"small",onChange:v},{default:e(()=>[t(C,{value:"Platform"},{default:e(()=>[...b[0]||(b[0]=[m("管理员",-1)])]),_:1}),t(C,{value:"RCSMonitor"},{default:e(()=>[...b[1]||(b[1]=[m("运营",-1)])]),_:1})]),_:1},8,["model-value"])}}}),Ve=["title"],Fe={class:"theme-label"},We={class:"option-text"},Oe={class:"option-name"},je={class:"option-desc"},Ge=A({__name:"ThemeSwitcher",setup(z){const r=q(),w=f(()=>({background:`linear-gradient(135deg, ${r.activeTheme.preview} 0%, ${r.activeTheme.previewAccent} 100%)`}));function l(v){const E=r.getMergedTheme(v);return{background:`linear-gradient(135deg, ${E.preview} 0%, ${E.previewAccent} 100%)`}}function c(v){r.setThemeId(v)}return(v,E)=>{const _=H,b=Q,C=K,S=X;return o(),u(S,{trigger:"click",onCommand:c},{dropdown:e(()=>[t(C,{class:"theme-menu"},{default:e(()=>[(o(!0),y(M,null,N(s(r).availableThemes,h=>(o(),u(b,{key:h.id,command:h.id,class:R({"is-active":h.id===s(r).themeId})},{default:e(()=>[a("span",{class:"option-swatch",style:F(l(h))},null,4),a("span",We,[a("span",Oe,i(h.name),1),a("span",je,i(h.description),1)]),h.id===s(r).themeId?(o(),u(_,{key:0,class:"check"},{default:e(()=>[t(s(_e))]),_:1})):T("",!0)]),_:2},1032,["command","class"]))),128))]),_:1})]),default:e(()=>[a("button",{class:"theme-trigger",type:"button",title:`当前主题:${s(r).activeTheme.name}`},[a("span",{class:"swatch",style:F(w.value)},null,4),a("span",Fe,i(s(r).activeTheme.name),1),t(_,{class:"caret"},{default:e(()=>[t(s(J))]),_:1})],8,Ve)]),_:1})}}}),qe=Y(Ge,[["__scopeId","data-v-28ea4aeb"]]),He={class:"app-shell"},Je={class:"aside-footer"},Ke={key:0},Qe={class:"header-left"},Xe={class:"header-right"},Ye={class:"user-link"},Ze={class:"user-name"},ea=A({__name:"AppShell",setup(z){const r=he(),w=G(),l=j(),c=q(),v=f(()=>"localhost:8223".split(":")[1]??"8223"),E=f(()=>"/api"),_=f(()=>(l.user?.displayName??l.user?.username??"?").slice(0,1).toUpperCase()),b=f(()=>l.scope==="Platform"?"管理员 (Platform)":"运营 (RCSMonitor)"),C=f(()=>{switch(l.runMode){case"WebOnly":return"Web-Only";case"WebEnabled":return"Web + Desktop";case"Detached":return"SimpleLite 未连接";default:return String(l.runMode??"Unknown")}}),S=[{path:"/admin/dashboard",label:"总览",icon:$e,key:"admin-dashboard"},{path:"/admin/map-monitor",label:"地图监控",icon:W,key:"admin-map-monitor"},{path:"/admin/design",label:"设计与编排",icon:De,children:[{path:"/admin/maps",label:"地图管理",key:"admin-maps"},{path:"/admin/map-editor",label:"地图编辑",key:"admin-map-editor"},{path:"/admin/project-properties",label:"项目属性",key:"admin-project-properties"},{path:"/admin/tracks",label:"场景管理",key:"admin-tracks"},{path:"/admin/cars",label:"车辆管理",key:"admin-cars"},{path:"/admin/processes",label:"进程管理",key:"admin-processes"},{path:"/admin/scripts",label:"脚本管理",key:"admin-scripts"},{path:"/admin/missions",label:"任务编排",key:"admin-missions"}]},{path:"/admin/playback",label:"调度回放",icon:O,key:"admin-playback"},{path:"/admin/config",label:"平台配置中心",icon:Ne,children:[{path:"/admin/config/system",label:"系统级配置",key:"admin-config-system"},{path:"/admin/config/integrations",label:"外部系统对接",key:"admin-config-integrations"},{path:"/admin/config/routing",label:"路径规划",key:"admin-config-routing"},{path:"/admin/config/vehicle-hub",label:"车辆运维",key:"admin-vehicle-hub"},{path:"/admin/config/charge",label:"充电策略",key:"admin-config-charge"},{path:"/admin/config/task",label:"任务分配",key:"admin-config-task"},{path:"/admin/config/traffic",label:"交通管制",key:"admin-config-traffic"},{path:"/admin/config/auth",label:"权限与角色",key:"admin-config-auth"},{path:"/admin/config/device",label:"设备接入",key:"admin-config-device"},{path:"/admin/config/scenario",label:"场景模板",key:"admin-config-scenario"},{path:"/admin/config/location",label:"库位管理",key:"admin-config-location"},{path:"/admin/config/ops",label:"运营维护",key:"admin-config-ops"},{path:"/admin/config/widget",label:"自定义控件",key:"admin-config-widget"}]}],h=[{path:"/monitor/dashboard",label:"运营总览",icon:Re,key:"monitor-dashboard"},{path:"/monitor/vehicle-hub",label:"车辆运维",icon:Ae,key:"monitor-vehicle-hub"},{path:"/monitor/map",label:"地图监控",icon:W,key:"monitor-map"},{path:"/monitor/ops",label:"运维操作",icon:ze,key:"monitor-ops"},{path:"/monitor/notes",label:"运营备注",icon:O,key:"monitor-notes"}];function Z(g){const n=[];for(const d of g)if(d.children){const x=d.children.filter(k=>!k.key||l.hasPage(k.key));x.length&&n.push({...d,children:x})}else(!d.key||l.hasPage(d.key))&&n.push(d);return n}const B=f(()=>Z(l.scope==="Platform"?S:h)),ee=f(()=>{const g=r.path,n=[],d=k=>{k.forEach(I=>{n.push(I),I.children&&d(I.children)})};return d(B.value),n.find(k=>k.path===g)?.path??g}),L=f(()=>r.meta.title??"");function ae(g){g==="logout"?(l.logout(),w.push("/login")):g==="status"?w.push("/status"):g==="wizard"&&w.push("/wizard")}return(g,n)=>{const d=H,x=we,k=ye,I=ke,te=ve,U=Se,ne=Me,oe=Ie,$=Q,se=K,le=X,ie=Ee,re=ge("router-view"),ce=Pe,de=Te,V=fe;return o(),y("div",He,[n[9]||(n[9]=be('',1)),t(V,{class:"app-container"},{default:e(()=>[t(te,{width:s(c).sidebarCollapsed?"76px":"240px",class:"aside"},{default:e(()=>[a("div",{class:R(["logo",{collapsed:s(c).sidebarCollapsed}])},[s(c).sidebarCollapsed?(o(),y(M,{key:0},[n[1]||(n[1]=a("img",{src:Be,alt:"FRLD",class:"logo-img-small"},null,-1)),n[2]||(n[2]=a("span",{class:"logo-abbr"},"迷毂",-1))],64)):(o(),y(M,{key:1},[n[3]||(n[3]=a("img",{src:Le,alt:"FRLD",class:"logo-img-full"},null,-1)),n[4]||(n[4]=a("div",{class:"logo-titles"},[a("span",{class:"logo-title-zh"},"迷 毂 · 智能调度平台"),a("span",{class:"logo-title-en"},[a("b",null,"M"),m("i "),a("b",null,"G"),m("u · "),a("b",null,"I"),m("ntelligent "),a("b",null,"D"),m("ispatch "),a("b",null,"P"),m("latform ")])],-1))],64))],2),t(I,{"default-active":ee.value,collapse:s(c).sidebarCollapsed,"collapse-transition":!1,"background-color":"transparent","text-color":"rgba(255, 255, 255, 0.72)","active-text-color":"#fff",router:"",class:"menu"},{default:e(()=>[(o(!0),y(M,null,N(B.value,p=>(o(),y(M,{key:p.path},[p.children?(o(),u(k,{key:0,index:p.path},{title:e(()=>[t(d,null,{default:e(()=>[(o(),u(D(p.icon)))]),_:2},1024),a("span",null,i(p.label),1)]),default:e(()=>[(o(!0),y(M,null,N(p.children,P=>(o(),u(x,{key:P.path,index:P.path},{default:e(()=>[a("span",null,i(P.label),1)]),_:2},1032,["index"]))),128))]),_:2},1032,["index"])):(o(),u(x,{key:1,index:p.path},{title:e(()=>[m(i(p.label),1)]),default:e(()=>[t(d,null,{default:e(()=>[(o(),u(D(p.icon)))]),_:2},1024)]),_:2},1032,["index"]))],64))),128))]),_:1},8,["default-active","collapse"]),a("div",Je,[n[5]||(n[5]=a("span",{class:"aside-footer-badge"},"v1.6",-1)),s(c).sidebarCollapsed?T("",!0):(o(),y("span",Ke,i(s(c).activeTheme.name)+" · "+i(s(c).activeTheme.preview),1))])]),_:1},8,["width"]),t(V,{class:"container-right"},{default:e(()=>[t(ie,{class:"header"},{default:e(()=>[a("div",Qe,[a("button",{class:"icon-btn",onClick:n[0]||(n[0]=p=>s(c).toggleSidebar()),title:"切换侧栏"},[t(d,{size:"18"},{default:e(()=>[s(c).sidebarCollapsed?(o(),u(s(xe),{key:1})):(o(),u(s(Ce),{key:0}))]),_:1})]),t(ne,{separator:"/"},{default:e(()=>[t(U,null,{default:e(()=>[m(i(b.value),1)]),_:1}),L.value?(o(),u(U,{key:0},{default:e(()=>[m(i(L.value),1)]),_:1})):T("",!0)]),_:1})]),a("div",Xe,[t(qe),t(Ue),a("span",{class:R(["runmode-tag",s(l).runMode])},i(C.value),3),t(le,{trigger:"click",onCommand:ae},{dropdown:e(()=>[t(se,null,{default:e(()=>[s(l).scope==="Platform"?(o(),u($,{key:0,command:"wizard"},{default:e(()=>[...n[6]||(n[6]=[m("配置向导",-1)])]),_:1})):T("",!0),t($,{command:"status"},{default:e(()=>[...n[7]||(n[7]=[m("服务状态",-1)])]),_:1}),t($,{command:"logout",divided:""},{default:e(()=>[...n[8]||(n[8]=[m("退出登录",-1)])]),_:1})]),_:1})]),default:e(()=>[a("span",Ye,[t(oe,{size:"small"},{default:e(()=>[m(i(_.value),1)]),_:1}),a("span",Ze,i(s(l).user?.displayName??"未登录"),1),t(d,null,{default:e(()=>[t(s(J))]),_:1})])]),_:1})])]),_:1}),t(ce,{class:"main mg-content"},{default:e(()=>[t(re,null,{default:e(({Component:p,route:P})=>[p?(o(),u(D(p),{key:P.fullPath,class:"route-page"})):T("",!0)]),_:1})]),_:1}),t(de,{class:"footer"},{default:e(()=>[a("span",null,i(b.value)+" · webVRender :"+i(v.value)+" · API "+i(E.value),1)]),_:1})]),_:1})]),_:1})])}}}),ma=Y(ea,[["__scopeId","data-v-94b7b35c"]]);export{ma as default}; diff --git a/MiGu.Server/wwwroot/assets/AppShell-CFoRRXmz.css b/MiGu.Server/wwwroot/assets/AppShell-CFoRRXmz.css new file mode 100644 index 0000000..322e8e8 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/AppShell-CFoRRXmz.css @@ -0,0 +1 @@ +.el-aside{box-sizing:border-box;width:var(--el-aside-width,300px);flex-shrink:0;overflow:auto}.el-container{box-sizing:border-box;flex-direction:row;flex:auto;min-width:0;display:flex}.el-container.is-vertical{flex-direction:column}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;padding:var(--el-footer-padding);box-sizing:border-box;height:var(--el-footer-height);flex-shrink:0}.el-header{--el-header-padding:0 20px;--el-header-height:60px;padding:var(--el-header-padding);box-sizing:border-box;height:var(--el-header-height);flex-shrink:0}.el-main{--el-main-padding:20px;box-sizing:border-box;padding:var(--el-main-padding);flex:auto;display:block;overflow:auto}.el-avatar{--el-avatar-text-color:var(--el-color-white);--el-avatar-bg-color:var(--el-text-color-disabled);--el-avatar-text-size:14px;--el-avatar-icon-size:18px;--el-avatar-border-radius:var(--el-border-radius-base);--el-avatar-size-large:56px;--el-avatar-size:40px;--el-avatar-size-small:24px;box-sizing:border-box;text-align:center;color:var(--el-avatar-text-color);background:var(--el-avatar-bg-color);width:var(--el-avatar-size);height:var(--el-avatar-size);font-size:var(--el-avatar-text-size);outline:none;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.el-avatar>img{width:100%;height:100%;display:block}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:var(--el-avatar-border-radius)}.el-avatar--icon{font-size:var(--el-avatar-icon-size)}.el-avatar--small{--el-avatar-size:24px}.el-avatar--large{--el-avatar-size:56px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transition:var(--el-transition-md-fade);transform-origin:top;transform:scaleY(1)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transition:var(--el-transition-md-fade);transform-origin:bottom;transform:scaleY(1)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transition:var(--el-transition-md-fade);transform-origin:0 0;transform:scale(1)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-leave-active,.el-collapse-transition-enter-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-height:60px;--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{border-right:solid 1px var(--el-menu-border-color);background-color:var(--el-menu-bg-color);box-sizing:border-box;margin:0;padding-left:0;list-style:none;position:relative}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu:not(.el-menu--collapse) .el-sub-menu__title{padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-menu--horizontal{height:var(--el-menu-horizontal-height);border-right:none;flex-wrap:nowrap;display:flex}.el-menu--horizontal.el-menu--popup-container{height:unset}.el-menu--horizontal.el-menu{border-bottom:solid 1px var(--el-menu-border-color)}.el-menu--horizontal>.el-menu-item{height:100%;color:var(--el-menu-text-color);border-bottom:2px solid #0000;justify-content:center;align-items:center;margin:0;display:inline-flex}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:none}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{height:100%;color:var(--el-menu-text-color);border-bottom:2px solid #0000}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-menu-bg-color)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{background-color:var(--el-menu-bg-color);height:var(--el-menu-horizontal-sub-item-height);line-height:var(--el-menu-horizontal-sub-item-height);color:var(--el-menu-text-color);align-items:center;padding:0 10px;display:flex}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-menu-item.is-active:hover,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title:hover{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):hover,.el-menu--horizontal .el-menu-item:not(.is-disabled):focus{color:var(--el-menu-active-color,var(--el-menu-hover-text-color));background-color:var(--el-menu-hover-bg-color);outline:none}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding) * 2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{vertical-align:middle;width:var(--el-menu-icon-width);text-align:center;margin:0}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span{visibility:hidden;width:0;height:0;display:inline-block;overflow:hidden}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{z-index:100;border-radius:var(--el-border-radius-small);min-width:200px;box-shadow:var(--el-box-shadow-light);border:none;padding:5px 0}.el-menu .el-icon{flex-shrink:0}.el-menu-item{height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap;align-items:center;list-style:none;display:flex;position:relative}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:hover,.el-menu-item:focus{outline:none}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon]{width:var(--el-menu-icon-width);text-align:center;vertical-align:middle;margin-right:5px;font-size:18px}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{box-sizing:border-box;width:100%;height:100%;padding:0 var(--el-menu-base-level-padding);align-items:center;display:inline-flex;position:absolute;top:0;left:0}.el-sub-menu{margin:0;padding-left:0;list-style:none}.el-sub-menu__title{height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap;align-items:center;list-style:none;display:flex;position:relative}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:hover,.el-sub-menu__title:focus{outline:none}.el-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu.el-sub-menu__hide-arrow .el-sub-menu__title{padding-right:var(--el-menu-base-level-padding)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-sub-menu__title,.el-sub-menu.is-disabled .el-menu-item{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu .el-icon{vertical-align:middle;width:var(--el-menu-icon-width);text-align:center;margin-right:5px;font-size:18px}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{top:50%;right:var(--el-menu-base-level-padding);transition:transform var(--el-transition-duration);width:inherit;margin-top:-6px;margin-right:0;font-size:12px;position:absolute}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px var(--el-menu-base-level-padding);color:var(--el-text-color-secondary);font-size:12px;line-height:normal}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{transition:var(--el-transition-duration-fast);opacity:0}.el-popper,.el-menu--popup-container,.el-menu{outline:none}.theme-trigger[data-v-28ea4aeb]{appearance:none;display:inline-flex;align-items:center;gap:8px;padding:4px 12px 4px 8px;border-radius:999px;border:1px solid var(--mg-glass-border, rgba(255, 255, 255, .18));background:var(--mg-glass-bg, rgba(255, 255, 255, .05));color:var(--mg-text-light, rgba(255, 255, 255, .9));cursor:pointer;transition:var(--mg-transition, all .25s ease);font-size:12.5px}.theme-trigger[data-v-28ea4aeb]:hover{background:rgba(var(--mg-accent-rgb),.18);border-color:rgba(var(--mg-accent-rgb),.45);color:var(--mg-text-light, #fff)}.swatch[data-v-28ea4aeb]{width:18px;height:18px;border-radius:50%;box-shadow:0 0 0 2px var(--mg-glass-border-hi, rgba(255, 255, 255, .25));flex-shrink:0}.theme-label[data-v-28ea4aeb]{font-weight:600;letter-spacing:.3px;white-space:nowrap}.caret[data-v-28ea4aeb]{font-size:12px;opacity:.7}.theme-menu .el-dropdown-menu__item{display:flex!important;align-items:center;gap:12px;min-width:240px;padding:10px 16px!important}.theme-menu .el-dropdown-menu__item.is-active{background:rgba(var(--mg-accent-rgb),.22)!important}.theme-menu .option-swatch{width:28px;height:28px;border-radius:8px;flex-shrink:0;box-shadow:0 2px 8px #00000059}.theme-menu .option-text{flex:1;display:flex;flex-direction:column;gap:2px;line-height:1.3}.theme-menu .option-name{font-weight:600;font-size:13px}.theme-menu .option-desc{font-size:11px;opacity:.65}.theme-menu .check{color:var(--mg-accent);font-size:16px}.app-shell[data-v-811456ba]{position:relative;height:100vh;overflow:hidden}.bg-orbs[data-v-811456ba]{position:absolute;inset:0;pointer-events:none;z-index:0}.bg-orb[data-v-811456ba]{position:absolute;border-radius:50%;filter:blur(120px);animation:drift-811456ba 24s ease-in-out infinite;will-change:transform}.bg-orb-a[data-v-811456ba]{width:520px;height:520px;top:-240px;left:-220px;background:radial-gradient(circle,var(--mg-primary-hover) 0%,var(--mg-primary) 55%,transparent 85%);opacity:var(--mg-orb-a-opacity, .55)}.bg-orb-b[data-v-811456ba]{width:640px;height:640px;bottom:-280px;right:-260px;background:radial-gradient(circle,var(--mg-primary) 0%,var(--mg-primary-active) 55%,transparent 90%);opacity:var(--mg-orb-b-opacity, .5);animation-delay:-7s}.bg-orb-c[data-v-811456ba]{width:320px;height:320px;top:58%;right:-140px;background:radial-gradient(circle,var(--mg-accent) 0%,var(--mg-primary-hover) 55%,transparent 95%);opacity:var(--mg-orb-c-opacity, .4);animation-delay:-14s}.bg-orb-d[data-v-811456ba]{width:380px;height:380px;top:12%;right:28%;background:radial-gradient(circle,rgba(99,102,241,.85) 0%,var(--mg-primary) 60%,transparent 92%);opacity:.3;animation-delay:-18s;filter:blur(140px)}@keyframes drift-811456ba{0%,to{transform:translate(0) scale(1)}50%{transform:translate(36px,-42px) scale(1.08)}}.app-container[data-v-811456ba]{position:relative;z-index:1;height:100vh}.aside[data-v-811456ba]{position:relative;background:linear-gradient(180deg,rgba(var(--mg-bg-aside-rgb),.78),rgba(var(--mg-bg-app-deep-rgb),.85));backdrop-filter:blur(24px) saturate(170%);-webkit-backdrop-filter:blur(24px) saturate(170%);border-right:1px solid rgba(var(--mg-accent-rgb),.18);display:flex;flex-direction:column;transition:width .28s cubic-bezier(.25,.8,.25,1);overflow:hidden;flex-shrink:0;box-shadow:inset -1px 0 #ffffff0a,4px 0 32px #00000073}.aside[data-v-811456ba]:before{content:"";position:absolute;top:0;right:0;width:1px;height:100%;background:linear-gradient(180deg,transparent 0%,rgba(var(--mg-accent-rgb),.6) 50%,transparent 100%);pointer-events:none;opacity:.4}.logo[data-v-811456ba]{flex-shrink:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px 14px 18px;border-bottom:1px solid rgba(var(--mg-accent-rgb),.16);background:radial-gradient(ellipse at center top,rgba(var(--mg-primary-hover-rgb),.3) 0%,transparent 70%),linear-gradient(180deg,rgba(var(--mg-primary-rgb),.16) 0%,transparent 100%)}.logo.collapsed[data-v-811456ba]{padding:18px 4px 14px}.logo-img-full[data-v-811456ba]{height:36px;margin-bottom:12px;filter:drop-shadow(0 2px 10px rgba(var(--mg-accent-rgb),.5))}.logo-img-small[data-v-811456ba]{height:26px;margin-bottom:4px;filter:drop-shadow(0 2px 8px rgba(var(--mg-accent-rgb),.5))}.logo-titles[data-v-811456ba]{display:flex;flex-direction:column;align-items:center;gap:3px}.logo-title-zh[data-v-811456ba]{font-size:13px;font-weight:700;letter-spacing:2.5px;background:linear-gradient(90deg,#ffffff 0%,var(--mg-accent) 60%,#ffffff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;white-space:nowrap;text-shadow:0 0 18px rgba(var(--mg-accent-rgb),.3)}.logo-title-en[data-v-811456ba]{color:#e8d7f573;font-size:7.5px;letter-spacing:.3px;white-space:nowrap;text-align:center}.logo-title-en b[data-v-811456ba]{color:#ffffffe6;font-weight:700;font-size:8.5px}.logo-abbr[data-v-811456ba]{color:#ffffffd9;font-size:10.5px;font-weight:700;letter-spacing:1.5px}.menu[data-v-811456ba]{flex:1;overflow-y:auto;overflow-x:hidden;border-right:none!important;padding:8px 0;scrollbar-width:thin;scrollbar-color:rgba(var(--mg-accent-rgb),.3) transparent}.menu[data-v-811456ba]::-webkit-scrollbar{width:4px}.menu[data-v-811456ba]::-webkit-scrollbar-thumb{background:rgba(var(--mg-accent-rgb),.25);border-radius:2px}.menu[data-v-811456ba]::-webkit-scrollbar-thumb:hover{background:rgba(var(--mg-accent-rgb),.55)}[data-v-811456ba] .el-menu{border-right:none;background:transparent!important}[data-v-811456ba] .el-menu-item,[data-v-811456ba] .el-sub-menu__title{background:transparent!important;margin:2px 10px;border-radius:10px;height:42px;line-height:42px;transition:background .2s ease,color .2s ease,box-shadow .2s ease}[data-v-811456ba] .el-menu--collapse .el-menu-item,[data-v-811456ba] .el-menu--collapse .el-sub-menu__title{margin:2px 8px;padding:0!important;justify-content:center}[data-v-811456ba] .el-menu-item:hover,[data-v-811456ba] .el-sub-menu__title:hover{background:rgba(var(--mg-primary-rgb),.2)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(var(--mg-accent-rgb),.18)}[data-v-811456ba] .el-menu-item.is-active{background:linear-gradient(90deg,rgba(var(--mg-primary-rgb),.55) 0%,rgba(var(--mg-primary-hover-rgb),.2) 70%,transparent 100%)!important;color:#fff!important;font-weight:600;box-shadow:inset 3px 0 0 var(--mg-accent),0 4px 14px rgba(var(--mg-primary-rgb),.25)}[data-v-811456ba] .el-sub-menu.is-active>.el-sub-menu__title{color:#fff!important;font-weight:600}[data-v-811456ba] .el-sub-menu .el-menu{background:#0000002e!important;border-radius:8px;margin:0 12px;padding:4px 0}[data-v-811456ba] .el-sub-menu .el-menu .el-menu-item{margin:1px 4px;border-radius:6px;font-size:13px;height:36px;line-height:36px}[data-v-811456ba] .el-sub-menu .el-menu .el-menu-item.is-active{background:rgba(var(--mg-accent-rgb),.18)!important;box-shadow:inset 2px 0 0 var(--mg-primary-hover);color:#fff!important}.aside-footer[data-v-811456ba]{flex-shrink:0;padding:12px 16px;border-top:1px solid rgba(var(--mg-accent-rgb),.14);display:flex;align-items:center;gap:8px;font-size:10.5px;color:#ffffff8c;letter-spacing:.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aside-footer-badge[data-v-811456ba]{padding:2px 7px;border-radius:8px;background:linear-gradient(135deg,rgba(var(--mg-primary-rgb),.35),rgba(var(--mg-accent-rgb),.2));border:1px solid rgba(var(--mg-accent-rgb),.36);color:#fff;font-weight:600;font-size:10px;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;letter-spacing:0;box-shadow:0 0 12px rgba(var(--mg-primary-hover-rgb),.35)}.container-right[data-v-811456ba]{background:transparent;flex:1;min-height:0;display:flex;flex-direction:column}.header[data-v-811456ba]{position:relative;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(180deg,rgba(var(--mg-bg-aside-rgb),.72),rgba(var(--mg-bg-aside-rgb),.55));backdrop-filter:blur(24px) saturate(170%);-webkit-backdrop-filter:blur(24px) saturate(170%);border-bottom:1px solid rgba(var(--mg-accent-rgb),.18);padding:0 20px}.header[data-v-811456ba]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(var(--mg-accent-rgb),.45) 30%,rgba(var(--mg-primary-hover-rgb),.6) 50%,rgba(var(--mg-accent-rgb),.45) 70%,transparent 100%);opacity:.55}.header-left[data-v-811456ba],.header-right[data-v-811456ba]{display:flex;align-items:center;gap:14px}.icon-btn[data-v-811456ba]{appearance:none;background:transparent;border:1px solid rgba(255,255,255,.18);color:#ffffffbf;border-radius:8px;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.icon-btn[data-v-811456ba]:hover{background:rgba(var(--mg-accent-rgb),.18);border-color:rgba(var(--mg-accent-rgb),.5);color:#fff}[data-v-811456ba] .el-breadcrumb__inner{color:#ffffffc7;font-weight:500}[data-v-811456ba] .el-breadcrumb__separator{color:#ffffff59}[data-v-811456ba] .el-breadcrumb__item:last-child .el-breadcrumb__inner{color:#fff;font-weight:600}.runmode-tag[data-v-811456ba]{padding:4px 10px;border-radius:999px;font-size:11.5px;letter-spacing:.5px;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;border:1px solid rgba(255,255,255,.18);background:#ffffff0d;color:#ffffffd9}.runmode-tag.WebEnabled[data-v-811456ba]{background:rgba(var(--mg-status-success-rgb),.18);border-color:rgba(var(--mg-status-success-rgb),.45);color:var(--mg-status-success)}.runmode-tag.WebOnly[data-v-811456ba]{background:rgba(var(--mg-primary-hover-rgb),.18);border-color:rgba(var(--mg-primary-hover-rgb),.45);color:var(--mg-accent)}.runmode-tag.Detached[data-v-811456ba]{background:rgba(var(--mg-status-warning-rgb),.18);border-color:rgba(var(--mg-status-warning-rgb),.45);color:var(--mg-status-warning)}.user-link[data-v-811456ba]{display:inline-flex;align-items:center;gap:8px;cursor:pointer;color:#ffffffd9;padding:4px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:#ffffff0a;transition:all .2s}.user-link[data-v-811456ba]:hover{background:rgba(var(--mg-accent-rgb),.18);border-color:rgba(var(--mg-accent-rgb),.4)}.user-name[data-v-811456ba]{font-size:13px;color:#fff;font-weight:500}[data-v-811456ba] .el-avatar{background:linear-gradient(135deg,var(--mg-accent) 0%,var(--mg-primary) 60%,var(--mg-primary-active) 100%);color:#fff;font-weight:700;box-shadow:0 0 0 1px #fff3}.main[data-v-811456ba]{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:24px;background:transparent;color:#fff}.footer[data-v-811456ba]{background:rgba(var(--mg-bg-aside-rgb),.25);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;color:#ffffff8c;font-size:12px;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;letter-spacing:.3px;height:32px!important;line-height:32px}.route-page[data-v-811456ba]{min-height:0;flex:1;display:flex;flex-direction:column} diff --git a/MiGu.Server/wwwroot/assets/AppShell-CsAf-EtY.js b/MiGu.Server/wwwroot/assets/AppShell-CsAf-EtY.js new file mode 100644 index 0000000..6047778 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/AppShell-CsAf-EtY.js @@ -0,0 +1 @@ +import{aN as R,bV as G,bX as O,bs as n,aE as p,c8 as e,aK as t,a0 as ce,aJ as u,ay as f,a1 as ue,X as pe,bZ as J,aD as a,bl as F,bL as i,bS as s,Q as j,as as H,K,aG as y,ai as x,bE as N,J as Q,bk as A,at as me,aF as T,I as X,ak as q,aI as _e,A as be,bW as fe,bG as he,m as ge,V as ve,a7 as ke,W as ye,bH as D,P as we,aY as Ee,aU as Se,p as Me,q as xe,n as Ce,U as Ie,M as Pe,b3 as Te,be as W,bQ as $e,bJ as De,bh as Ne,c1 as Ae,bx as Re,bm as ze}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";import{_ as Be}from"./FRLD-logo-white-no_title-BE78iS6n.js";/* empty css */const Le="/FRLD-logo-white.png",Ue=R({__name:"ScopeSwitcher",setup(z){const r=G(),w=O(),l=f(()=>r.scope??"Platform");let d=!1;async function v(_){if(!d){d=!0;try{await E(_)}finally{d=!1}}}async function E(_){try{await r.switchScope(_),w.push(_==="Platform"?"/admin/map-monitor":"/monitor/map")}catch(b){pe.error(b?.message??`切换到 ${_} 失败`)}}return(_,b)=>{const S=ce,C=ue;return n(),p(C,{"model-value":l.value,size:"small",onChange:v},{default:e(()=>[t(S,{value:"Platform"},{default:e(()=>[...b[0]||(b[0]=[u("管理员",-1)])]),_:1}),t(S,{value:"RCSMonitor"},{default:e(()=>[...b[1]||(b[1]=[u("运营",-1)])]),_:1})]),_:1},8,["model-value"])}}}),Ve=["title"],Fe={class:"theme-label"},We={class:"option-text"},Ge={class:"option-name"},Oe={class:"option-desc"},Je=R({__name:"ThemeSwitcher",setup(z){const r=J(),w=f(()=>({background:`linear-gradient(135deg, ${r.activeTheme.preview} 0%, ${r.activeTheme.previewAccent} 100%)`}));function l(v){const E=r.getMergedTheme(v);return{background:`linear-gradient(135deg, ${E.preview} 0%, ${E.previewAccent} 100%)`}}function d(v){r.setThemeId(v)}return(v,E)=>{const _=j,b=Q,S=K,C=X;return n(),p(C,{trigger:"click",onCommand:d},{dropdown:e(()=>[t(S,{class:"theme-menu"},{default:e(()=>[(n(!0),y(x,null,N(s(r).availableThemes,h=>(n(),p(b,{key:h.id,command:h.id,class:A({"is-active":h.id===s(r).themeId})},{default:e(()=>[a("span",{class:"option-swatch",style:F(l(h))},null,4),a("span",We,[a("span",Ge,i(h.name),1),a("span",Oe,i(h.description),1)]),h.id===s(r).themeId?(n(),p(_,{key:0,class:"check"},{default:e(()=>[t(s(me))]),_:1})):T("",!0)]),_:2},1032,["command","class"]))),128))]),_:1})]),default:e(()=>[a("button",{class:"theme-trigger",type:"button",title:`当前主题:${s(r).activeTheme.name}`},[a("span",{class:"swatch",style:F(w.value)},null,4),a("span",Fe,i(s(r).activeTheme.name),1),t(_,{class:"caret"},{default:e(()=>[t(s(H))]),_:1})],8,Ve)]),_:1})}}}),je=q(Je,[["__scopeId","data-v-28ea4aeb"]]),He={class:"app-shell"},Ke={class:"aside-footer"},Qe={key:0},Xe={class:"header-left"},qe={class:"header-right"},Ye={class:"user-link"},Ze={class:"user-name"},ea=R({__name:"AppShell",setup(z){const r=fe(),w=O(),l=G(),d=J(),v=f(()=>"localhost:8223".split(":")[1]??"8223"),E=f(()=>"/api"),_=f(()=>(l.user?.displayName??l.user?.username??"?").slice(0,1).toUpperCase()),b=f(()=>l.scope==="Platform"?"管理员 (Platform)":"运营 (RCSMonitor)"),S=f(()=>{switch(l.runMode){case"WebOnly":return"Web-Only";case"WebEnabled":return"Web + Desktop";case"Detached":return"SimpleLite 未连接";default:return String(l.runMode??"Unknown")}}),C=[{path:"/admin/dashboard",label:"总览",icon:Te,key:"admin-dashboard"},{path:"/admin/map-monitor",label:"地图监控",icon:W,key:"admin-map-monitor"},{path:"/admin/design",label:"设计与编排",icon:$e,children:[{path:"/admin/maps",label:"地图管理",key:"admin-maps"},{path:"/admin/map-editor",label:"地图编辑",key:"admin-map-editor"},{path:"/admin/project-properties",label:"项目属性",key:"admin-project-properties"},{path:"/admin/tracks",label:"场景管理",key:"admin-tracks"},{path:"/admin/cars",label:"车辆管理",key:"admin-cars"},{path:"/admin/processes",label:"进程管理",key:"admin-processes"},{path:"/admin/scripts",label:"脚本管理",key:"admin-scripts"},{path:"/admin/task-templates",label:"任务编排",key:"admin-task-templates"}]},{path:"/admin/config",label:"平台配置中心",icon:De,children:[{path:"/admin/config/strategy",label:"调度策略",key:"admin-config-strategy"},{path:"/admin/config/vehicle-hub",label:"车辆运维",key:"admin-vehicle-hub"},{path:"/admin/config/facility",label:"设备与库位",key:"admin-config-facility"},{path:"/admin/config/business",label:"业务与集成",key:"admin-config-business"},{path:"/admin/config/ops-center",label:"运维与回放",key:"admin-config-ops-center"},{path:"/admin/config/system-center",label:"系统与权限",key:"admin-config-system-center"}]}],h=[{path:"/monitor/dashboard",label:"运营总览",icon:Ne,key:"monitor-dashboard"},{path:"/monitor/vehicle-hub",label:"车辆运维",icon:Ae,key:"monitor-vehicle-hub"},{path:"/monitor/map",label:"地图监控",icon:W,key:"monitor-map"},{path:"/monitor/ops",label:"运维操作",icon:Re,key:"monitor-ops"},{path:"/monitor/notes",label:"运营备注",icon:ze,key:"monitor-notes"}];function Y(g){const o=[];for(const c of g)if(c.children){const M=c.children.filter(k=>!k.key||l.hasPage(k.key));M.length&&o.push({...c,children:M})}else(!c.key||l.hasPage(c.key))&&o.push(c);return o}const B=f(()=>Y(l.scope==="Platform"?C:h)),Z=f(()=>{const g=r.path,o=[],c=k=>{k.forEach(I=>{o.push(I),I.children&&c(I.children)})};return c(B.value),o.find(k=>k.path===g)?.path??g}),L=f(()=>r.meta.title??"");function ee(g){g==="logout"?(l.logout(),w.push("/login")):g==="status"?w.push("/status"):g==="wizard"&&w.push("/wizard")}return(g,o)=>{const c=j,M=ye,k=ke,I=ve,ae=ge,U=xe,te=Me,oe=Ce,$=Q,ne=K,se=X,le=we,ie=he("router-view"),re=Ie,de=Pe,V=be;return n(),y("div",He,[o[9]||(o[9]=_e('',1)),t(V,{class:"app-container"},{default:e(()=>[t(ae,{width:s(d).sidebarCollapsed?"76px":"240px",class:"aside"},{default:e(()=>[a("div",{class:A(["logo",{collapsed:s(d).sidebarCollapsed}])},[s(d).sidebarCollapsed?(n(),y(x,{key:0},[o[1]||(o[1]=a("img",{src:Be,alt:"FRLD",class:"logo-img-small"},null,-1)),o[2]||(o[2]=a("span",{class:"logo-abbr"},"迷毂",-1))],64)):(n(),y(x,{key:1},[o[3]||(o[3]=a("img",{src:Le,alt:"FRLD",class:"logo-img-full"},null,-1)),o[4]||(o[4]=a("div",{class:"logo-titles"},[a("span",{class:"logo-title-zh"},"迷 毂 · 智能调度平台"),a("span",{class:"logo-title-en"},[a("b",null,"M"),u("i "),a("b",null,"G"),u("u · "),a("b",null,"I"),u("ntelligent "),a("b",null,"D"),u("ispatch "),a("b",null,"P"),u("latform ")])],-1))],64))],2),t(I,{"default-active":Z.value,collapse:s(d).sidebarCollapsed,"collapse-transition":!1,"background-color":"transparent","text-color":"rgba(255, 255, 255, 0.72)","active-text-color":"#fff",router:"",class:"menu"},{default:e(()=>[(n(!0),y(x,null,N(B.value,m=>(n(),y(x,{key:m.path},[m.children?(n(),p(k,{key:0,index:m.path},{title:e(()=>[t(c,null,{default:e(()=>[(n(),p(D(m.icon)))]),_:2},1024),a("span",null,i(m.label),1)]),default:e(()=>[(n(!0),y(x,null,N(m.children,P=>(n(),p(M,{key:P.path,index:P.path},{default:e(()=>[a("span",null,i(P.label),1)]),_:2},1032,["index"]))),128))]),_:2},1032,["index"])):(n(),p(M,{key:1,index:m.path},{title:e(()=>[u(i(m.label),1)]),default:e(()=>[t(c,null,{default:e(()=>[(n(),p(D(m.icon)))]),_:2},1024)]),_:2},1032,["index"]))],64))),128))]),_:1},8,["default-active","collapse"]),a("div",Ke,[o[5]||(o[5]=a("span",{class:"aside-footer-badge"},"v1.6",-1)),s(d).sidebarCollapsed?T("",!0):(n(),y("span",Qe,i(s(d).activeTheme.name)+" · "+i(s(d).activeTheme.preview),1))])]),_:1},8,["width"]),t(V,{class:"container-right"},{default:e(()=>[t(le,{class:"header"},{default:e(()=>[a("div",Xe,[a("button",{class:"icon-btn",onClick:o[0]||(o[0]=m=>s(d).toggleSidebar()),title:"切换侧栏"},[t(c,{size:"18"},{default:e(()=>[s(d).sidebarCollapsed?(n(),p(s(Se),{key:1})):(n(),p(s(Ee),{key:0}))]),_:1})]),t(te,{separator:"/"},{default:e(()=>[t(U,null,{default:e(()=>[u(i(b.value),1)]),_:1}),L.value?(n(),p(U,{key:0},{default:e(()=>[u(i(L.value),1)]),_:1})):T("",!0)]),_:1})]),a("div",qe,[t(je),t(Ue),a("span",{class:A(["runmode-tag",s(l).runMode])},i(S.value),3),t(se,{trigger:"click",onCommand:ee},{dropdown:e(()=>[t(ne,null,{default:e(()=>[s(l).scope==="Platform"?(n(),p($,{key:0,command:"wizard"},{default:e(()=>[...o[6]||(o[6]=[u("配置向导",-1)])]),_:1})):T("",!0),t($,{command:"status"},{default:e(()=>[...o[7]||(o[7]=[u("服务状态",-1)])]),_:1}),t($,{command:"logout",divided:""},{default:e(()=>[...o[8]||(o[8]=[u("退出登录",-1)])]),_:1})]),_:1})]),default:e(()=>[a("span",Ye,[t(oe,{size:"small"},{default:e(()=>[u(i(_.value),1)]),_:1}),a("span",Ze,i(s(l).user?.displayName??"未登录"),1),t(c,null,{default:e(()=>[t(s(H))]),_:1})])]),_:1})])]),_:1}),t(re,{class:"main mg-content"},{default:e(()=>[t(ie,null,{default:e(({Component:m,route:P})=>[m?(n(),p(D(m),{key:P.fullPath,class:"route-page"})):T("",!0)]),_:1})]),_:1}),t(de,{class:"footer"},{default:e(()=>[a("span",null,i(b.value)+" · webVRender :"+i(v.value)+" · API "+i(E.value),1)]),_:1})]),_:1})]),_:1})])}}}),pa=q(ea,[["__scopeId","data-v-811456ba"]]);export{pa as default}; diff --git a/MiGu.Server/wwwroot/assets/AppShell-D28lCBtn.css b/MiGu.Server/wwwroot/assets/AppShell-D28lCBtn.css deleted file mode 100644 index fb32ee1..0000000 --- a/MiGu.Server/wwwroot/assets/AppShell-D28lCBtn.css +++ /dev/null @@ -1 +0,0 @@ -.el-aside{box-sizing:border-box;width:var(--el-aside-width,300px);flex-shrink:0;overflow:auto}.el-container{box-sizing:border-box;flex-direction:row;flex:auto;min-width:0;display:flex}.el-container.is-vertical{flex-direction:column}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;padding:var(--el-footer-padding);box-sizing:border-box;height:var(--el-footer-height);flex-shrink:0}.el-header{--el-header-padding:0 20px;--el-header-height:60px;padding:var(--el-header-padding);box-sizing:border-box;height:var(--el-header-height);flex-shrink:0}.el-main{--el-main-padding:20px;box-sizing:border-box;padding:var(--el-main-padding);flex:auto;display:block;overflow:auto}.el-avatar{--el-avatar-text-color:var(--el-color-white);--el-avatar-bg-color:var(--el-text-color-disabled);--el-avatar-text-size:14px;--el-avatar-icon-size:18px;--el-avatar-border-radius:var(--el-border-radius-base);--el-avatar-size-large:56px;--el-avatar-size:40px;--el-avatar-size-small:24px;box-sizing:border-box;text-align:center;color:var(--el-avatar-text-color);background:var(--el-avatar-bg-color);width:var(--el-avatar-size);height:var(--el-avatar-size);font-size:var(--el-avatar-text-size);outline:none;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.el-avatar>img{width:100%;height:100%;display:block}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:var(--el-avatar-border-radius)}.el-avatar--icon{font-size:var(--el-avatar-icon-size)}.el-avatar--small{--el-avatar-size:24px}.el-avatar--large{--el-avatar-size:56px}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:before,.el-breadcrumb:after{content:"";display:table}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{color:var(--el-text-color-placeholder);margin:0 9px;font-weight:700}.el-breadcrumb__separator.el-icon{margin:0 6px;font-weight:400}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{float:left;align-items:center;display:inline-flex}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner.is-link,.el-breadcrumb__inner a{transition:var(--el-transition-color);color:var(--el-text-color-primary);font-weight:700;text-decoration:none}.el-breadcrumb__inner.is-link:hover,.el-breadcrumb__inner a:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover{color:var(--el-text-color-regular);cursor:text;font-weight:400}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transition:var(--el-transition-md-fade);transform-origin:top;transform:scaleY(1)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transition:var(--el-transition-md-fade);transform-origin:bottom;transform:scaleY(1)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transition:var(--el-transition-md-fade);transform-origin:0 0;transform:scale(1)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-leave-active,.el-collapse-transition-enter-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-height:60px;--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{border-right:solid 1px var(--el-menu-border-color);background-color:var(--el-menu-bg-color);box-sizing:border-box;margin:0;padding-left:0;list-style:none;position:relative}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu:not(.el-menu--collapse) .el-sub-menu__title{padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-menu--horizontal{height:var(--el-menu-horizontal-height);border-right:none;flex-wrap:nowrap;display:flex}.el-menu--horizontal.el-menu--popup-container{height:unset}.el-menu--horizontal.el-menu{border-bottom:solid 1px var(--el-menu-border-color)}.el-menu--horizontal>.el-menu-item{height:100%;color:var(--el-menu-text-color);border-bottom:2px solid #0000;justify-content:center;align-items:center;margin:0;display:inline-flex}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:none}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{height:100%;color:var(--el-menu-text-color);border-bottom:2px solid #0000}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-menu-bg-color)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{background-color:var(--el-menu-bg-color);height:var(--el-menu-horizontal-sub-item-height);line-height:var(--el-menu-horizontal-sub-item-height);color:var(--el-menu-text-color);align-items:center;padding:0 10px;display:flex}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-menu-item.is-active:hover,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title:hover{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):hover,.el-menu--horizontal .el-menu-item:not(.is-disabled):focus{color:var(--el-menu-active-color,var(--el-menu-hover-text-color));background-color:var(--el-menu-hover-bg-color);outline:none}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding) * 2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{vertical-align:middle;width:var(--el-menu-icon-width);text-align:center;margin:0}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span{visibility:hidden;width:0;height:0;display:inline-block;overflow:hidden}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{z-index:100;border-radius:var(--el-border-radius-small);min-width:200px;box-shadow:var(--el-box-shadow-light);border:none;padding:5px 0}.el-menu .el-icon{flex-shrink:0}.el-menu-item{height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap;align-items:center;list-style:none;display:flex;position:relative}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:hover,.el-menu-item:focus{outline:none}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon]{width:var(--el-menu-icon-width);text-align:center;vertical-align:middle;margin-right:5px;font-size:18px}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{box-sizing:border-box;width:100%;height:100%;padding:0 var(--el-menu-base-level-padding);align-items:center;display:inline-flex;position:absolute;top:0;left:0}.el-sub-menu{margin:0;padding-left:0;list-style:none}.el-sub-menu__title{height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap;align-items:center;list-style:none;display:flex;position:relative}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:hover,.el-sub-menu__title:focus{outline:none}.el-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu.el-sub-menu__hide-arrow .el-sub-menu__title{padding-right:var(--el-menu-base-level-padding)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-sub-menu__title,.el-sub-menu.is-disabled .el-menu-item{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu .el-icon{vertical-align:middle;width:var(--el-menu-icon-width);text-align:center;margin-right:5px;font-size:18px}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{top:50%;right:var(--el-menu-base-level-padding);transition:transform var(--el-transition-duration);width:inherit;margin-top:-6px;margin-right:0;font-size:12px;position:absolute}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px var(--el-menu-base-level-padding);color:var(--el-text-color-secondary);font-size:12px;line-height:normal}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{transition:var(--el-transition-duration-fast);opacity:0}.el-popper,.el-menu--popup-container,.el-menu{outline:none}.theme-trigger[data-v-28ea4aeb]{appearance:none;display:inline-flex;align-items:center;gap:8px;padding:4px 12px 4px 8px;border-radius:999px;border:1px solid var(--mg-glass-border, rgba(255, 255, 255, .18));background:var(--mg-glass-bg, rgba(255, 255, 255, .05));color:var(--mg-text-light, rgba(255, 255, 255, .9));cursor:pointer;transition:var(--mg-transition, all .25s ease);font-size:12.5px}.theme-trigger[data-v-28ea4aeb]:hover{background:rgba(var(--mg-accent-rgb),.18);border-color:rgba(var(--mg-accent-rgb),.45);color:var(--mg-text-light, #fff)}.swatch[data-v-28ea4aeb]{width:18px;height:18px;border-radius:50%;box-shadow:0 0 0 2px var(--mg-glass-border-hi, rgba(255, 255, 255, .25));flex-shrink:0}.theme-label[data-v-28ea4aeb]{font-weight:600;letter-spacing:.3px;white-space:nowrap}.caret[data-v-28ea4aeb]{font-size:12px;opacity:.7}.theme-menu .el-dropdown-menu__item{display:flex!important;align-items:center;gap:12px;min-width:240px;padding:10px 16px!important}.theme-menu .el-dropdown-menu__item.is-active{background:rgba(var(--mg-accent-rgb),.22)!important}.theme-menu .option-swatch{width:28px;height:28px;border-radius:8px;flex-shrink:0;box-shadow:0 2px 8px #00000059}.theme-menu .option-text{flex:1;display:flex;flex-direction:column;gap:2px;line-height:1.3}.theme-menu .option-name{font-weight:600;font-size:13px}.theme-menu .option-desc{font-size:11px;opacity:.65}.theme-menu .check{color:var(--mg-accent);font-size:16px}.app-shell[data-v-94b7b35c]{position:relative;height:100vh;overflow:hidden}.bg-orbs[data-v-94b7b35c]{position:absolute;inset:0;pointer-events:none;z-index:0}.bg-orb[data-v-94b7b35c]{position:absolute;border-radius:50%;filter:blur(120px);animation:drift-94b7b35c 24s ease-in-out infinite;will-change:transform}.bg-orb-a[data-v-94b7b35c]{width:520px;height:520px;top:-240px;left:-220px;background:radial-gradient(circle,var(--mg-primary-hover) 0%,var(--mg-primary) 55%,transparent 85%);opacity:var(--mg-orb-a-opacity, .55)}.bg-orb-b[data-v-94b7b35c]{width:640px;height:640px;bottom:-280px;right:-260px;background:radial-gradient(circle,var(--mg-primary) 0%,var(--mg-primary-active) 55%,transparent 90%);opacity:var(--mg-orb-b-opacity, .5);animation-delay:-7s}.bg-orb-c[data-v-94b7b35c]{width:320px;height:320px;top:58%;right:-140px;background:radial-gradient(circle,var(--mg-accent) 0%,var(--mg-primary-hover) 55%,transparent 95%);opacity:var(--mg-orb-c-opacity, .4);animation-delay:-14s}.bg-orb-d[data-v-94b7b35c]{width:380px;height:380px;top:12%;right:28%;background:radial-gradient(circle,rgba(99,102,241,.85) 0%,var(--mg-primary) 60%,transparent 92%);opacity:.3;animation-delay:-18s;filter:blur(140px)}@keyframes drift-94b7b35c{0%,to{transform:translate(0) scale(1)}50%{transform:translate(36px,-42px) scale(1.08)}}.app-container[data-v-94b7b35c]{position:relative;z-index:1;height:100vh}.aside[data-v-94b7b35c]{position:relative;background:linear-gradient(180deg,rgba(var(--mg-bg-aside-rgb),.78),rgba(var(--mg-bg-app-deep-rgb),.85));backdrop-filter:blur(24px) saturate(170%);-webkit-backdrop-filter:blur(24px) saturate(170%);border-right:1px solid rgba(var(--mg-accent-rgb),.18);display:flex;flex-direction:column;transition:width .28s cubic-bezier(.25,.8,.25,1);overflow:hidden;flex-shrink:0;box-shadow:inset -1px 0 #ffffff0a,4px 0 32px #00000073}.aside[data-v-94b7b35c]:before{content:"";position:absolute;top:0;right:0;width:1px;height:100%;background:linear-gradient(180deg,transparent 0%,rgba(var(--mg-accent-rgb),.6) 50%,transparent 100%);pointer-events:none;opacity:.4}.logo[data-v-94b7b35c]{flex-shrink:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px 14px 18px;border-bottom:1px solid rgba(var(--mg-accent-rgb),.16);background:radial-gradient(ellipse at center top,rgba(var(--mg-primary-hover-rgb),.3) 0%,transparent 70%),linear-gradient(180deg,rgba(var(--mg-primary-rgb),.16) 0%,transparent 100%)}.logo.collapsed[data-v-94b7b35c]{padding:18px 4px 14px}.logo-img-full[data-v-94b7b35c]{height:36px;margin-bottom:12px;filter:drop-shadow(0 2px 10px rgba(var(--mg-accent-rgb),.5))}.logo-img-small[data-v-94b7b35c]{height:26px;margin-bottom:4px;filter:drop-shadow(0 2px 8px rgba(var(--mg-accent-rgb),.5))}.logo-titles[data-v-94b7b35c]{display:flex;flex-direction:column;align-items:center;gap:3px}.logo-title-zh[data-v-94b7b35c]{font-size:13px;font-weight:700;letter-spacing:2.5px;background:linear-gradient(90deg,#ffffff 0%,var(--mg-accent) 60%,#ffffff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;white-space:nowrap;text-shadow:0 0 18px rgba(var(--mg-accent-rgb),.3)}.logo-title-en[data-v-94b7b35c]{color:#e8d7f573;font-size:7.5px;letter-spacing:.3px;white-space:nowrap;text-align:center}.logo-title-en b[data-v-94b7b35c]{color:#ffffffe6;font-weight:700;font-size:8.5px}.logo-abbr[data-v-94b7b35c]{color:#ffffffd9;font-size:10.5px;font-weight:700;letter-spacing:1.5px}.menu[data-v-94b7b35c]{flex:1;overflow-y:auto;overflow-x:hidden;border-right:none!important;padding:8px 0;scrollbar-width:thin;scrollbar-color:rgba(var(--mg-accent-rgb),.3) transparent}.menu[data-v-94b7b35c]::-webkit-scrollbar{width:4px}.menu[data-v-94b7b35c]::-webkit-scrollbar-thumb{background:rgba(var(--mg-accent-rgb),.25);border-radius:2px}.menu[data-v-94b7b35c]::-webkit-scrollbar-thumb:hover{background:rgba(var(--mg-accent-rgb),.55)}[data-v-94b7b35c] .el-menu{border-right:none;background:transparent!important}[data-v-94b7b35c] .el-menu-item,[data-v-94b7b35c] .el-sub-menu__title{background:transparent!important;margin:2px 10px;border-radius:10px;height:42px;line-height:42px;transition:background .2s ease,color .2s ease,box-shadow .2s ease}[data-v-94b7b35c] .el-menu--collapse .el-menu-item,[data-v-94b7b35c] .el-menu--collapse .el-sub-menu__title{margin:2px 8px;padding:0!important;justify-content:center}[data-v-94b7b35c] .el-menu-item:hover,[data-v-94b7b35c] .el-sub-menu__title:hover{background:rgba(var(--mg-primary-rgb),.2)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(var(--mg-accent-rgb),.18)}[data-v-94b7b35c] .el-menu-item.is-active{background:linear-gradient(90deg,rgba(var(--mg-primary-rgb),.55) 0%,rgba(var(--mg-primary-hover-rgb),.2) 70%,transparent 100%)!important;color:#fff!important;font-weight:600;box-shadow:inset 3px 0 0 var(--mg-accent),0 4px 14px rgba(var(--mg-primary-rgb),.25)}[data-v-94b7b35c] .el-sub-menu.is-active>.el-sub-menu__title{color:#fff!important;font-weight:600}[data-v-94b7b35c] .el-sub-menu .el-menu{background:#0000002e!important;border-radius:8px;margin:0 12px;padding:4px 0}[data-v-94b7b35c] .el-sub-menu .el-menu .el-menu-item{margin:1px 4px;border-radius:6px;font-size:13px;height:36px;line-height:36px}[data-v-94b7b35c] .el-sub-menu .el-menu .el-menu-item.is-active{background:rgba(var(--mg-accent-rgb),.18)!important;box-shadow:inset 2px 0 0 var(--mg-primary-hover);color:#fff!important}.aside-footer[data-v-94b7b35c]{flex-shrink:0;padding:12px 16px;border-top:1px solid rgba(var(--mg-accent-rgb),.14);display:flex;align-items:center;gap:8px;font-size:10.5px;color:#ffffff8c;letter-spacing:.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aside-footer-badge[data-v-94b7b35c]{padding:2px 7px;border-radius:8px;background:linear-gradient(135deg,rgba(var(--mg-primary-rgb),.35),rgba(var(--mg-accent-rgb),.2));border:1px solid rgba(var(--mg-accent-rgb),.36);color:#fff;font-weight:600;font-size:10px;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;letter-spacing:0;box-shadow:0 0 12px rgba(var(--mg-primary-hover-rgb),.35)}.container-right[data-v-94b7b35c]{background:transparent;flex:1;min-height:0;display:flex;flex-direction:column}.header[data-v-94b7b35c]{position:relative;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(180deg,rgba(var(--mg-bg-aside-rgb),.72),rgba(var(--mg-bg-aside-rgb),.55));backdrop-filter:blur(24px) saturate(170%);-webkit-backdrop-filter:blur(24px) saturate(170%);border-bottom:1px solid rgba(var(--mg-accent-rgb),.18);padding:0 20px}.header[data-v-94b7b35c]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(var(--mg-accent-rgb),.45) 30%,rgba(var(--mg-primary-hover-rgb),.6) 50%,rgba(var(--mg-accent-rgb),.45) 70%,transparent 100%);opacity:.55}.header-left[data-v-94b7b35c],.header-right[data-v-94b7b35c]{display:flex;align-items:center;gap:14px}.icon-btn[data-v-94b7b35c]{appearance:none;background:transparent;border:1px solid rgba(255,255,255,.18);color:#ffffffbf;border-radius:8px;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.icon-btn[data-v-94b7b35c]:hover{background:rgba(var(--mg-accent-rgb),.18);border-color:rgba(var(--mg-accent-rgb),.5);color:#fff}[data-v-94b7b35c] .el-breadcrumb__inner{color:#ffffffc7;font-weight:500}[data-v-94b7b35c] .el-breadcrumb__separator{color:#ffffff59}[data-v-94b7b35c] .el-breadcrumb__item:last-child .el-breadcrumb__inner{color:#fff;font-weight:600}.runmode-tag[data-v-94b7b35c]{padding:4px 10px;border-radius:999px;font-size:11.5px;letter-spacing:.5px;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;border:1px solid rgba(255,255,255,.18);background:#ffffff0d;color:#ffffffd9}.runmode-tag.WebEnabled[data-v-94b7b35c]{background:rgba(var(--mg-status-success-rgb),.18);border-color:rgba(var(--mg-status-success-rgb),.45);color:var(--mg-status-success)}.runmode-tag.WebOnly[data-v-94b7b35c]{background:rgba(var(--mg-primary-hover-rgb),.18);border-color:rgba(var(--mg-primary-hover-rgb),.45);color:var(--mg-accent)}.runmode-tag.Detached[data-v-94b7b35c]{background:rgba(var(--mg-status-warning-rgb),.18);border-color:rgba(var(--mg-status-warning-rgb),.45);color:var(--mg-status-warning)}.user-link[data-v-94b7b35c]{display:inline-flex;align-items:center;gap:8px;cursor:pointer;color:#ffffffd9;padding:4px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:#ffffff0a;transition:all .2s}.user-link[data-v-94b7b35c]:hover{background:rgba(var(--mg-accent-rgb),.18);border-color:rgba(var(--mg-accent-rgb),.4)}.user-name[data-v-94b7b35c]{font-size:13px;color:#fff;font-weight:500}[data-v-94b7b35c] .el-avatar{background:linear-gradient(135deg,var(--mg-accent) 0%,var(--mg-primary) 60%,var(--mg-primary-active) 100%);color:#fff;font-weight:700;box-shadow:0 0 0 1px #fff3}.main[data-v-94b7b35c]{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:24px;background:transparent;color:#fff}.footer[data-v-94b7b35c]{background:rgba(var(--mg-bg-aside-rgb),.25);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;color:#ffffff8c;font-size:12px;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;letter-spacing:.3px;height:32px!important;line-height:32px}.route-page[data-v-94b7b35c]{min-height:0;flex:1;display:flex;flex-direction:column} diff --git a/MiGu.Server/wwwroot/assets/AuthRoleView-BW7bVuKX.js b/MiGu.Server/wwwroot/assets/AuthRoleView-BW7bVuKX.js deleted file mode 100644 index 8884267..0000000 --- a/MiGu.Server/wwwroot/assets/AuthRoleView-BW7bVuKX.js +++ /dev/null @@ -1 +0,0 @@ -import{aU as k,aI as Be,bv as Se,b7 as Te,aE as b,aH as t,bJ as s,ai as x,X as c,bh as f,bg as oe,t as De,G as Oe,b9 as u,ac as qe,a9 as Ae,aB as v,bq as g,r as Ge,bt as E,bc as ue,aG as i,bK as ie,aC as w,aa as Me,ab as je,bj as R,ad as Fe,aD as G,a8 as Le,aM as de,aW as He,aK as re,bA as Ke,bi as We,N as Je,O as Xe,R as Ye,a4 as Ze,Z as Qe,a2 as el,w as ll,H as al,v as tl,u as sl,L as nl,ax as J,Y as pe,ak as ol}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */async function ul(){const{data:d}=await k.get("/rbac/catalog");return d}async function il(){const{data:d}=await k.get("/rbac/roles");return d}async function dl(d){if(d.id){const{data:z}=await k.put(`/rbac/roles/${d.id}`,d);return z}const{data:V}=await k.post("/rbac/roles",d);return V}async function rl(d){await k.delete(`/rbac/roles/${d}`)}async function pl(){const{data:d}=await k.get("/rbac/users");return d}async function cl(d){const{data:V}=await k.post("/rbac/users",d);return V}async function ce(d,V){const{data:z}=await k.put(`/rbac/users/${d}`,V);return z}async function ml(d,V){await k.put(`/rbac/users/${d}/password`,{password:V})}async function fl(d){await k.delete(`/rbac/users/${d}`)}const vl={class:"rbac-header"},bl={class:"tab-toolbar"},gl={class:"toolbar-hint"},yl={key:0,class:"muted"},_l={class:"tab-toolbar"},wl={class:"toolbar-hint"},kl={key:1},Vl={key:0,class:"page-picker"},Cl={class:"page-group-head"},El={class:"page-group-title"},Ul={class:"page-group-actions"},$l={key:1,class:"wildcard-hint"},xl=Be({__name:"AuthRoleView",setup(d){const V=Se(),z=J(()=>V.user?.id??""),X=f("users"),B=f(!1),C=f(!1),M=f(null),S=f([]),j=f([]);function me(a){return S.value.find(e=>e.id===a)?.name??a}function A(a){return a==="*"?"通用":a==="Platform"?"管理端":a==="RCSMonitor"?"运营端":a}function fe(a){return a==="*"?"danger":a==="Platform"?"warning":"success"}async function N(){B.value=!0;try{const[a,e,o]=await Promise.all([ul(),il(),pl()]);M.value=a,S.value=e,j.value=o}catch(a){c.error(`加载失败:${$(a)}`)}finally{B.value=!1}}const h=f(!1),n=oe({id:null,username:"",displayName:"",password:"",roleIds:[],enabled:!0});function ve(){Object.assign(n,{id:null,username:"",displayName:"",password:"",roleIds:[],enabled:!0}),h.value=!0}function be(a){Object.assign(n,{id:a.id,username:a.username,displayName:a.displayName,password:"",roleIds:[...a.roleIds],enabled:a.enabled}),h.value=!0}async function ge(){C.value=!0;try{n.id?(await ce(n.id,{displayName:n.displayName,roleIds:n.roleIds,enabled:n.enabled}),c.success("用户已更新")):(await cl({username:n.username,displayName:n.displayName,password:n.password,roleIds:n.roleIds,enabled:n.enabled}),c.success("用户已创建")),h.value=!1,await N()}catch(a){c.error($(a))}finally{C.value=!1}}async function ye(a,e){a._busy=!0;try{await ce(a.id,{enabled:e}),a.enabled=e,c.success(e?"已启用":"已停用")}catch(o){c.error($(o))}finally{a._busy=!1}}async function _e(a){try{await pe.confirm(`确定删除用户「${a.username}」?此操作不可恢复。`,"删除确认",{type:"warning"})}catch{return}try{await fl(a.id),c.success("用户已删除"),await N()}catch(e){c.error($(e))}}const T=f(!1),D=f(null),O=f("");function we(a){D.value=a,O.value="",T.value=!0}async function ke(){if(D.value){if(!O.value){c.warning("请输入新密码");return}C.value=!0;try{await ml(D.value.id,O.value),c.success("密码已重置"),T.value=!1}catch(a){c.error($(a))}finally{C.value=!1}}}const I=f(!1),p=oe({id:null,name:"",description:"",scope:"Platform"}),y=f([]),U=f(!1),F=f([]),L=f([]),Y=J(()=>(M.value?.pages??[]).filter(a=>p.scope==="*"||a.scope===p.scope)),Z=J(()=>{const a=new Map;for(const e of Y.value)a.has(e.group)||a.set(e.group,[]),a.get(e.group).push(e);return[...a.entries()].map(([e,o])=>({group:e,pages:o}))});function Ve(){Object.assign(p,{id:null,name:"",description:"",scope:"Platform"}),y.value=[],U.value=!1,F.value=[],L.value=[],I.value=!0}function Ce(a){Object.assign(p,{id:a.id,name:a.name,description:a.description,scope:a.scope}),U.value=a.pages.includes("*"),y.value=U.value?[]:[...a.pages],F.value=[...a.ops],L.value=a.widgetGrants.map(e=>({...e})),I.value=!0}function Ee(){const a=new Set(Y.value.map(e=>e.key));y.value=y.value.filter(e=>a.has(e))}function Q(a,e){const o=a.map(m=>m.key);e?y.value=[...new Set([...y.value,...o])]:y.value=y.value.filter(m=>!o.includes(m))}async function Ue(){if(!p.name.trim()){c.warning("请填写角色名称");return}C.value=!0;try{await dl({id:p.id??void 0,name:p.name,description:p.description,scope:p.scope,pages:U.value?["*"]:y.value,ops:F.value,widgetGrants:L.value}),c.success(p.id?"角色已更新":"角色已创建"),I.value=!1,await N()}catch(a){c.error($(a))}finally{C.value=!1}}async function $e(a){try{await pe.confirm(`确定删除角色「${a.name}」?`,"删除确认",{type:"warning"})}catch{return}try{await rl(a.id),c.success("角色已删除"),await N()}catch(e){c.error($(e))}}function $(a){return a instanceof Error?a.message:String(a)}return Te(N),(a,e)=>{const o=Ge,m=je,q=Fe,H=Le,ee=Me,le=Ae,xe=qe,Ne=De,P=Ye,_=Xe,ae=Qe,te=Ze,K=Je,W=Oe,se=ll,he=el,Ie=al,Pe=sl,Re=tl,ze=nl,ne=Ke;return u(),b(x,null,[t(Ne,{shadow:"never",class:"rbac-card"},{header:s(()=>[v("div",vl,[e[19]||(e[19]=v("div",{class:"rbac-title-wrap"},[v("span",{class:"rbac-title"},"权限与角色管理"),v("span",{class:"rbac-desc"},"为角色分配可访问页面、操作与控件,并为用户指派角色(标准 RBAC)。")],-1)),t(o,{icon:E(We),loading:B.value,onClick:N},{default:s(()=>[...e[18]||(e[18]=[i("刷新",-1)])]),_:1},8,["icon","loading"])])]),default:s(()=>[t(xe,{modelValue:X.value,"onUpdate:modelValue":e[0]||(e[0]=l=>X.value=l),class:"rbac-tabs"},{default:s(()=>[t(le,{label:"用户管理",name:"users"},{default:s(()=>[v("div",bl,[v("span",gl,"共 "+g(j.value.length)+" 个用户",1),t(o,{type:"primary",icon:E(ue),onClick:ve},{default:s(()=>[...e[20]||(e[20]=[i("新增用户",-1)])]),_:1},8,["icon"])]),ie((u(),w(ee,{data:j.value,size:"default",border:"",stripe:""},{default:s(()=>[t(m,{label:"用户名",prop:"username",width:"140"}),t(m,{label:"显示名",prop:"displayName",width:"150"}),t(m,{label:"角色","min-width":"200"},{default:s(({row:l})=>[(u(!0),b(x,null,R(l.roleIds,r=>(u(),w(q,{key:r,size:"small",effect:"plain",class:"mg-tag"},{default:s(()=>[i(g(me(r)),1)]),_:2},1024))),128)),l.roleIds.length?G("",!0):(u(),b("span",yl,"—"))]),_:1}),t(m,{label:"可用域",width:"180"},{default:s(({row:l})=>[(u(!0),b(x,null,R(l.scopes,r=>(u(),w(q,{key:r,size:"small",type:"info",effect:"plain",class:"mg-tag"},{default:s(()=>[i(g(A(r)),1)]),_:2},1024))),128))]),_:1}),t(m,{label:"启用",width:"90",align:"center"},{default:s(({row:l})=>[t(H,{"model-value":l.enabled,loading:l._busy,onChange:r=>ye(l,!!r)},null,8,["model-value","loading","onChange"])]),_:1}),t(m,{label:"操作",width:"220",align:"center"},{default:s(({row:l})=>[t(o,{link:"",type:"primary",icon:E(de),onClick:r=>be(l)},{default:s(()=>[...e[21]||(e[21]=[i("编辑",-1)])]),_:1},8,["icon","onClick"]),t(o,{link:"",type:"warning",icon:E(He),onClick:r=>we(l)},{default:s(()=>[...e[22]||(e[22]=[i("改密",-1)])]),_:1},8,["icon","onClick"]),t(o,{link:"",type:"danger",icon:E(re),disabled:l.id===z.value,onClick:r=>_e(l)},{default:s(()=>[...e[23]||(e[23]=[i("删除",-1)])]),_:1},8,["icon","disabled","onClick"])]),_:1})]),_:1},8,["data"])),[[ne,B.value]])]),_:1}),t(le,{label:"角色与页面权限",name:"roles"},{default:s(()=>[v("div",_l,[v("span",wl,"共 "+g(S.value.length)+" 个角色",1),t(o,{type:"primary",icon:E(ue),onClick:Ve},{default:s(()=>[...e[24]||(e[24]=[i("新增角色",-1)])]),_:1},8,["icon"])]),ie((u(),w(ee,{data:S.value,size:"default",border:"",stripe:""},{default:s(()=>[t(m,{label:"角色名称",width:"160"},{default:s(({row:l})=>[v("span",null,g(l.name),1),l.system?(u(),w(q,{key:0,size:"small",type:"success",effect:"plain",class:"mg-tag"},{default:s(()=>[...e[25]||(e[25]=[i("内置",-1)])]),_:1})):G("",!0)]),_:1}),t(m,{label:"描述",prop:"description","min-width":"180","show-overflow-tooltip":""}),t(m,{label:"归属域",width:"120"},{default:s(({row:l})=>[t(q,{size:"small",type:fe(l.scope),effect:"plain"},{default:s(()=>[i(g(A(l.scope)),1)]),_:2},1032,["type"])]),_:1}),t(m,{label:"可访问页面",width:"130",align:"center"},{default:s(({row:l})=>[l.pages.includes("*")?(u(),w(q,{key:0,size:"small",type:"danger",effect:"plain"},{default:s(()=>[...e[26]||(e[26]=[i("全部页面",-1)])]),_:1})):(u(),b("span",kl,g(l.pages.length)+" 个",1))]),_:1}),t(m,{label:"操作",width:"160",align:"center"},{default:s(({row:l})=>[t(o,{link:"",type:"primary",icon:E(de),onClick:r=>Ce(l)},{default:s(()=>[...e[27]||(e[27]=[i("编辑",-1)])]),_:1},8,["icon","onClick"]),t(o,{link:"",type:"danger",icon:E(re),disabled:l.system,onClick:r=>$e(l)},{default:s(()=>[...e[28]||(e[28]=[i("删除",-1)])]),_:1},8,["icon","disabled","onClick"])]),_:1})]),_:1},8,["data"])),[[ne,B.value]])]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(W,{modelValue:h.value,"onUpdate:modelValue":e[7]||(e[7]=l=>h.value=l),title:n.id?"编辑用户":"新增用户",width:"480px","destroy-on-close":""},{footer:s(()=>[t(o,{onClick:e[6]||(e[6]=l=>h.value=!1)},{default:s(()=>[...e[29]||(e[29]=[i("取消",-1)])]),_:1}),t(o,{type:"primary",loading:C.value,onClick:ge},{default:s(()=>[...e[30]||(e[30]=[i("保存",-1)])]),_:1},8,["loading"])]),default:s(()=>[t(K,{"label-width":"84px","label-position":"right"},{default:s(()=>[t(_,{label:"用户名",required:""},{default:s(()=>[t(P,{modelValue:n.username,"onUpdate:modelValue":e[1]||(e[1]=l=>n.username=l),disabled:!!n.id,placeholder:"登录用户名"},null,8,["modelValue","disabled"])]),_:1}),t(_,{label:"显示名"},{default:s(()=>[t(P,{modelValue:n.displayName,"onUpdate:modelValue":e[2]||(e[2]=l=>n.displayName=l),placeholder:"界面展示名称(留空则同用户名)"},null,8,["modelValue"])]),_:1}),n.id?G("",!0):(u(),w(_,{key:0,label:"初始密码",required:""},{default:s(()=>[t(P,{modelValue:n.password,"onUpdate:modelValue":e[3]||(e[3]=l=>n.password=l),type:"password","show-password":"",placeholder:"设置初始登录密码"},null,8,["modelValue"])]),_:1})),t(_,{label:"角色"},{default:s(()=>[t(te,{modelValue:n.roleIds,"onUpdate:modelValue":e[4]||(e[4]=l=>n.roleIds=l),multiple:"",filterable:"",placeholder:"选择一个或多个角色",style:{width:"100%"}},{default:s(()=>[(u(!0),b(x,null,R(S.value,l=>(u(),w(ae,{key:l.id,label:`${l.name}(${A(l.scope)})`,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(_,{label:"启用"},{default:s(()=>[t(H,{modelValue:n.enabled,"onUpdate:modelValue":e[5]||(e[5]=l=>n.enabled=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"]),t(W,{modelValue:T.value,"onUpdate:modelValue":e[10]||(e[10]=l=>T.value=l),title:"重置密码",width:"420px","destroy-on-close":""},{footer:s(()=>[t(o,{onClick:e[9]||(e[9]=l=>T.value=!1)},{default:s(()=>[...e[31]||(e[31]=[i("取消",-1)])]),_:1}),t(o,{type:"primary",loading:C.value,onClick:ke},{default:s(()=>[...e[32]||(e[32]=[i("确定",-1)])]),_:1},8,["loading"])]),default:s(()=>[t(K,{"label-width":"84px"},{default:s(()=>[t(_,{label:"用户"},{default:s(()=>[v("span",null,g(D.value?.displayName)+"("+g(D.value?.username)+")",1)]),_:1}),t(_,{label:"新密码",required:""},{default:s(()=>[t(P,{modelValue:O.value,"onUpdate:modelValue":e[8]||(e[8]=l=>O.value=l),type:"password","show-password":"",placeholder:"输入新密码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(W,{modelValue:I.value,"onUpdate:modelValue":e[17]||(e[17]=l=>I.value=l),title:p.id?"编辑角色":"新增角色",width:"760px",top:"6vh","destroy-on-close":""},{footer:s(()=>[t(o,{onClick:e[16]||(e[16]=l=>I.value=!1)},{default:s(()=>[...e[36]||(e[36]=[i("取消",-1)])]),_:1}),t(o,{type:"primary",loading:C.value,onClick:Ue},{default:s(()=>[...e[37]||(e[37]=[i("保存",-1)])]),_:1},8,["loading"])]),default:s(()=>[t(K,{"label-width":"92px","label-position":"right"},{default:s(()=>[t(he,{gutter:12},{default:s(()=>[t(se,{span:12},{default:s(()=>[t(_,{label:"角色名称",required:""},{default:s(()=>[t(P,{modelValue:p.name,"onUpdate:modelValue":e[11]||(e[11]=l=>p.name=l),placeholder:"如:场景设计员"},null,8,["modelValue"])]),_:1})]),_:1}),t(se,{span:12},{default:s(()=>[t(_,{label:"归属域",required:""},{default:s(()=>[t(te,{modelValue:p.scope,"onUpdate:modelValue":e[12]||(e[12]=l=>p.scope=l),style:{width:"100%"},onChange:Ee},{default:s(()=>[(u(!0),b(x,null,R(M.value?.scopes??[],l=>(u(),w(ae,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(_,{label:"描述"},{default:s(()=>[t(P,{modelValue:p.description,"onUpdate:modelValue":e[13]||(e[13]=l=>p.description=l),placeholder:"角色用途说明"},null,8,["modelValue"])]),_:1}),t(Ie,{"content-position":"left"},{default:s(()=>[...e[33]||(e[33]=[i("可访问页面",-1)])]),_:1}),t(_,{label:"授权方式"},{default:s(()=>[t(H,{modelValue:U.value,"onUpdate:modelValue":e[14]||(e[14]=l=>U.value=l),"active-text":"该域全部页面(含未来新增)","inactive-text":"按页面精确勾选","inline-prompt":"",style:{"--el-switch-on-color":"var(--mg-primary, #6366f1)"}},null,8,["modelValue"])]),_:1}),U.value?(u(),b("div",$l,"已授予「"+g(A(p.scope))+"」下的全部页面(包括未来新增的页面)。",1)):(u(),b("div",Vl,[(u(!0),b(x,null,R(Z.value,l=>(u(),b("div",{key:l.group,class:"page-group"},[v("div",Cl,[v("span",El,g(l.group),1),v("span",Ul,[t(o,{link:"",type:"primary",size:"small",onClick:r=>Q(l.pages,!0)},{default:s(()=>[...e[34]||(e[34]=[i("全选",-1)])]),_:1},8,["onClick"]),t(o,{link:"",type:"info",size:"small",onClick:r=>Q(l.pages,!1)},{default:s(()=>[...e[35]||(e[35]=[i("清空",-1)])]),_:1},8,["onClick"])])]),t(Re,{modelValue:y.value,"onUpdate:modelValue":e[15]||(e[15]=r=>y.value=r),class:"page-checks"},{default:s(()=>[(u(!0),b(x,null,R(l.pages,r=>(u(),w(Pe,{key:r.key,value:r.key,label:r.key},{default:s(()=>[i(g(r.label),1)]),_:2},1032,["value","label"]))),128))]),_:2},1032,["modelValue"])]))),128)),Z.value.length?G("",!0):(u(),w(ze,{key:0,description:"该域暂无可分配页面","image-size":60}))]))]),_:1})]),_:1},8,["modelValue","title"])],64)}}}),Jl=ol(xl,[["__scopeId","data-v-2392979d"]]);export{Jl as default}; diff --git a/MiGu.Server/wwwroot/assets/AuthRoleView-CTEbfTF-.css b/MiGu.Server/wwwroot/assets/AuthRoleView-CTEbfTF-.css deleted file mode 100644 index 74e8c2a..0000000 --- a/MiGu.Server/wwwroot/assets/AuthRoleView-CTEbfTF-.css +++ /dev/null @@ -1 +0,0 @@ -.rbac-header[data-v-2392979d]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.rbac-title-wrap[data-v-2392979d]{display:flex;flex-direction:column;gap:4px}.rbac-title[data-v-2392979d]{font-weight:600;font-size:16px;color:var(--mg-text-light)}.rbac-desc[data-v-2392979d]{font-size:12.5px;color:var(--mg-text-muted)}.tab-toolbar[data-v-2392979d]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.toolbar-hint[data-v-2392979d]{font-size:13px;color:var(--mg-text-muted)}.mg-tag[data-v-2392979d]{margin:2px 4px 2px 0}.muted[data-v-2392979d]{color:var(--mg-text-faint)}.page-picker[data-v-2392979d]{display:flex;flex-direction:column;gap:14px;max-height:320px;overflow-y:auto;padding:4px 2px}.page-group-head[data-v-2392979d]{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.page-group-title[data-v-2392979d]{font-weight:600;font-size:13px;color:var(--mg-accent, #c4b5fd)}.page-checks[data-v-2392979d]{display:flex;flex-wrap:wrap;gap:4px 18px}.wildcard-hint[data-v-2392979d]{font-size:13px;color:var(--mg-status-warning, #f59e0b);padding:4px 0 8px} diff --git a/MiGu.Server/wwwroot/assets/BusinessConfigView-BfBO4uM6.js b/MiGu.Server/wwwroot/assets/BusinessConfigView-BfBO4uM6.js new file mode 100644 index 0000000..8d14125 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/BusinessConfigView-BfBO4uM6.js @@ -0,0 +1 @@ +import{aN as E,bs as u,aE as V,c8 as t,aK as e,ac as B,aG as C,ai as x,bE as U,a9 as L,aa as z,ab as P,R as N,a8 as A,r as q,aJ as d,bS as v,bv as J,bL as c,c as k,a2 as W,w as F,t as G,aD as f,ad as R,G as M,B as j,C as O,g as K,ak as y,l as X,bC as H,c7 as $,bW as Q,bX as Y}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as D}from"./ConfigPageBase-CgfsngDp.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./PermissionGuard-CR4qtxrh.js";/* empty css */import"./reflection-BwOBPyb9.js";import"./monitorConfigCache-DXn96T8F.js";const Z=E({__name:"ExternalIntegrationView",setup(S){function m(l,_,o){const a=`${o}-${Date.now()}`,s={...l,[o]:[...l[o]??[],{id:a,name:"新端点",url:"http://",enabled:!1}]};_(s)}function h(l,_,o,a){const s={...l,[o]:(l[o]??[]).filter((n,b)=>b!==a)};_(s)}return(l,_)=>{const o=N,a=P,s=A,n=q,b=z,r=L,w=B;return u(),V(D,{section:"integrations",title:"外部系统对接",description:"MES / WMS / RCS / PTL 等标准接口配置(ExternalIntegrations)",defaults:v(k)},{default:t(({payload:T,update:I})=>[e(w,{"model-value":"mes"},{default:t(()=>[(u(),C(x,null,U(["mes","wms","rcs","ptl"],g=>e(r,{key:g,name:g,label:g.toUpperCase()},{default:t(()=>[e(b,{data:T[g]??[],size:"small",border:""},{default:t(()=>[e(a,{label:"ID",width:"120"},{default:t(i=>[e(o,{modelValue:i.row.id,"onUpdate:modelValue":p=>i.row.id=p},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(a,{label:"名称","min-width":"160"},{default:t(i=>[e(o,{modelValue:i.row.name,"onUpdate:modelValue":p=>i.row.name=p},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(a,{label:"URL","min-width":"260"},{default:t(i=>[e(o,{modelValue:i.row.url,"onUpdate:modelValue":p=>i.row.url=p},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(a,{label:"启用",width:"80"},{default:t(i=>[e(s,{modelValue:i.row.enabled,"onUpdate:modelValue":p=>i.row.enabled=p},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(a,{label:"操作",width:"80"},{default:t(i=>[e(n,{text:"",type:"danger",size:"small",onClick:p=>h(T,I,g,i.$index)},{default:t(()=>[..._[0]||(_[0]=[d("删除",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1032,["data"]),e(n,{size:"small",icon:v(J),style:{"margin-top":"8px"},onClick:i=>m(T,I,g)},{default:t(()=>[d("新增 "+c(g.toUpperCase())+" 端点",1)]),_:2},1032,["icon","onClick"])]),_:2},1032,["name","label"])),64))]),_:2},1024)]),_:1},8,["defaults"])}}}),ee={class:"tpl-title"},te={class:"tpl-meta"},ae={class:"tpl-baseline"},oe=E({__name:"ScenarioTemplateView",setup(S){return(m,h)=>{const l=R,_=G,o=F,a=W,s=M,n=O,b=j;return u(),V(D,{section:"scenario",title:"业务场景模板化",description:"SPS / Pack / 环线 / 点对点;DSL/低代码扩展(ScenarioTemplateConfig)",defaults:v(K)},{default:t(({payload:r})=>[e(a,{gutter:12},{default:t(()=>[(u(!0),C(x,null,U(r.templates,w=>(u(),V(o,{key:w.id,span:6},{default:t(()=>[e(_,{shadow:"hover",class:"tpl-card"},{default:t(()=>[f("div",ee,c(w.name),1),f("div",te,[e(l,{size:"small"},{default:t(()=>[d(c(w.category),1)]),_:2},1024),e(l,{size:"small",type:"info"},{default:t(()=>[d("v"+c(w.version),1)]),_:2},1024)]),f("pre",ae,c(w.baselineJson||"{}"),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),e(s),e(b,{column:2,border:""},{default:t(()=>[e(n,{label:"DSL 启用"},{default:t(()=>[d(c(r.dslPolicy.enabled?"是":"否"),1)]),_:2},1024),e(n,{label:"Schema 版本"},{default:t(()=>[d(c(r.dslPolicy.schemaVersion),1)]),_:2},1024),e(n,{label:"低代码"},{default:t(()=>[d(c(r.lowCode.enabled?"启用":"关闭"),1)]),_:2},1024),e(n,{label:"编辑器"},{default:t(()=>[d(c(r.lowCode.editor),1)]),_:2},1024),e(n,{label:"保留版本"},{default:t(()=>[d(c(r.versionPolicy.keepVersions),1)]),_:2},1024),e(n,{label:"允许回滚"},{default:t(()=>[d(c(r.versionPolicy.allowRollback?"是":"否"),1)]),_:2},1024)]),_:2},1024)]),_:1},8,["defaults"])}}}),le=y(oe,[["__scopeId","data-v-4faf66a8"]]),ne={class:"js-mini"},se={class:"js-mini"},ie=E({__name:"CustomWidgetView",setup(S){return(m,h)=>{const l=P,_=R,o=z;return u(),V(D,{section:"widget",title:"自定义控件",description:"呼叫/展示界面可自由定义(platform-vue + rcsmonitor-vue 双渲染器)",defaults:v(X)},{default:t(({payload:a})=>[e(o,{data:a.items,size:"small",border:""},{default:t(()=>[e(l,{label:"ID",prop:"id",width:"180"}),e(l,{label:"名称",prop:"name",width:"140"}),e(l,{label:"Schema",prop:"schemaJson"},{default:t(s=>[f("pre",ne,c(s.row.schemaJson),1)]),_:1}),e(l,{label:"Layout",prop:"layoutJson"},{default:t(s=>[f("pre",se,c(s.row.layoutJson),1)]),_:1}),e(l,{label:"绑定 Scope"},{default:t(s=>[(u(!0),C(x,null,U(s.row.bindToScopes,n=>(u(),V(_,{key:n,size:"small",effect:"plain",style:{"margin-right":"4px"}},{default:t(()=>[d(c(n),1)]),_:2},1024))),128))]),_:1})]),_:1},8,["data"])]),_:1},8,["defaults"])}}}),ce=y(ie,[["__scopeId","data-v-96b90481"]]),_e={class:"config-hub-page"},re={class:"config-pane"},de={class:"config-pane"},ue={class:"config-pane"},me=E({__name:"BusinessConfigView",setup(S){const m=Q(),h=Y(),l=["integrations","scenario","widget"];function _(){const a=m.query.tab;return typeof a=="string"&&l.includes(a)?a:"integrations"}const o=H(_());return $(o,a=>{m.query.tab!==a&&h.replace({query:{...m.query,tab:a}})}),$(()=>m.query.tab,()=>{const a=_();a!==o.value&&(o.value=a)}),(a,s)=>{const n=L,b=B;return u(),C("div",_e,[e(b,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=r=>o.value=r),class:"hub-tabs"},{default:t(()=>[e(n,{name:"integrations",label:"外部系统对接"},{default:t(()=>[f("div",re,[e(Z)])]),_:1}),e(n,{name:"scenario",label:"场景模板",lazy:""},{default:t(()=>[f("div",de,[e(le)])]),_:1}),e(n,{name:"widget",label:"自定义控件",lazy:""},{default:t(()=>[f("div",ue,[e(ce)])]),_:1})]),_:1},8,["modelValue"])])}}}),Pe=y(me,[["__scopeId","data-v-aaea055a"]]);export{Pe as default}; diff --git a/MiGu.Server/wwwroot/assets/BusinessConfigView-mcy1bFqR.css b/MiGu.Server/wwwroot/assets/BusinessConfigView-mcy1bFqR.css new file mode 100644 index 0000000..170d9c1 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/BusinessConfigView-mcy1bFqR.css @@ -0,0 +1 @@ +.tpl-card[data-v-4faf66a8]{margin-bottom:12px}.tpl-title[data-v-4faf66a8]{font-weight:600;margin-bottom:6px}.tpl-meta[data-v-4faf66a8]{display:flex;gap:6px;margin-bottom:8px}.tpl-baseline[data-v-4faf66a8]{margin:0;font-size:11px;background:#f5f7fa;padding:6px;border-radius:4px;max-height:80px;overflow:auto}.js-mini[data-v-96b90481]{margin:0;font-size:11px;background:#f5f7fa;padding:4px 6px;border-radius:4px;max-height:60px;overflow:auto}.config-hub-page[data-v-aaea055a]{padding:16px;height:100%;display:flex;flex-direction:column;overflow:hidden}.hub-tabs[data-v-aaea055a]{flex:1;min-height:0;display:flex;flex-direction:column}[data-v-aaea055a] .el-tabs__content{flex:1;min-height:0;overflow:auto}[data-v-aaea055a] .el-tab-pane{height:100%}.config-pane[data-v-aaea055a]{height:100%;overflow:auto}[data-v-aaea055a] .el-tabs__item{color:var(--mg-text-muted, rgba(255, 255, 255, .65))}[data-v-aaea055a] .el-tabs__item.is-active{color:var(--mg-text-light, #fff)}[data-v-aaea055a] .el-tabs__active-bar{background-color:var(--mg-accent, var(--el-color-primary))}[data-v-aaea055a] .el-tabs__nav-wrap:after{background-color:#ffffff14} diff --git a/MiGu.Server/wwwroot/assets/CarPanelView-BiDARL2O.js b/MiGu.Server/wwwroot/assets/CarPanelView-BiDARL2O.js new file mode 100644 index 0000000..e6d2a2a --- /dev/null +++ b/MiGu.Server/wwwroot/assets/CarPanelView-BiDARL2O.js @@ -0,0 +1 @@ +import{aN as W,bs as y,aE as $,N as ae,c8 as l,aK as a,a2 as se,w as oe,O as ne,S as re,a8 as ie,z as J,aD as r,bL as w,R as de,r as Q,aJ as f,aF as P,ay as X,bC as N,ak as G,bp as Y,c9 as ue,b$ as ce,aG as j,t as pe,ad as me,ai as H,bE as q,x as fe,Q as ye,bS as ve,bD as _e,bA as K,X as V,Y as be,y as ge,L as ke,ac as Ce,a9 as Ee}from"./index-D5GfLbIx.js";/* empty css *//* empty css */import{R as Ne}from"./ReflectionManagerPanel-CqcqGxZI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as B}from"./reflection-BwOBPyb9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./projectSaveFlow-BOHSv3Vc.js";import"./useProjectionStream-ayb6RvWW.js";import"./mapEdit-BXIATxCI.js";const $e={class:"cse-color-code"},Se={class:"cse-color-code"},Ie={class:"cse-color-code"},Ae={class:"cse-model-row"},Ve=W({__name:"CarStyleEditorForm",props:{typeFullName:{},modelValue:{},hasOverride:{type:Boolean},saving:{type:Boolean}},emits:["update:modelValue","save","reset"],setup(D,{emit:C}){const x=D,b=C,c=X(()=>x.modelValue);function m(n){b("update:modelValue",{...c.value,...n})}const S=N(null);function g(){S.value?.click()}function M(n){const t=n.target,v=t.files?.[0];v&&(m({modelPath:v.name}),t.value="")}function T(n){const t=n>>>24&255,v=n>>>16&255,p=n>>>8&255,_=n&255,E=z=>z.toString(16).padStart(2,"0");return`${E(v)}${E(p)}${E(_)}${E(t)}`}function h(n){const t=n.replace(/^#/,"");if(t.length===6){const v=parseInt(t.slice(0,2),16),p=parseInt(t.slice(2,4),16),_=parseInt(t.slice(4,6),16);return(255<<24|v<<16|p<<8|_)>>>0}if(t.length===8){const v=parseInt(t.slice(0,2),16),p=parseInt(t.slice(2,4),16),_=parseInt(t.slice(4,6),16);return(parseInt(t.slice(6,8),16)<<24|v<<16|p<<8|_)>>>0}return 0}return(n,t)=>{const v=re,p=ne,_=oe,E=ie,z=se,I=J,L=Q,F=de,R=ae;return y(),$(R,{"label-width":"120px",size:"default",class:"cse-form",model:c.value},{default:l(()=>[a(z,{gutter:16},{default:l(()=>[a(_,{span:8},{default:l(()=>[a(p,{label:"长度 (m)"},{default:l(()=>[a(v,{"model-value":c.value.bodyLengthM,min:.12,max:4,step:.01,precision:2,"onUpdate:modelValue":t[0]||(t[0]=u=>m({bodyLengthM:Number(u??0)}))},null,8,["model-value"])]),_:1})]),_:1}),a(_,{span:8},{default:l(()=>[a(p,{label:"宽度 (m)"},{default:l(()=>[a(v,{"model-value":c.value.bodyWidthM,min:.08,max:3,step:.01,precision:2,"onUpdate:modelValue":t[1]||(t[1]=u=>m({bodyWidthM:Number(u??0)}))},null,8,["model-value"])]),_:1})]),_:1}),a(_,{span:8},{default:l(()=>[a(p,{label:"显示名称"},{default:l(()=>[a(E,{"model-value":c.value.showLabel,"onUpdate:modelValue":t[2]||(t[2]=u=>m({showLabel:!!u}))},null,8,["model-value"])]),_:1})]),_:1})]),_:1}),a(z,{gutter:16},{default:l(()=>[a(_,{span:8},{default:l(()=>[a(p,{label:"车体颜色"},{default:l(()=>[a(I,{"model-value":T(c.value.bodyColorArgb),"show-alpha":"","onUpdate:modelValue":t[3]||(t[3]=u=>m({bodyColorArgb:u?h(u):0}))},null,8,["model-value"]),r("code",$e,"#"+w(T(c.value.bodyColorArgb).toUpperCase()),1),t[9]||(t[9]=r("span",{class:"cse-color-hint"},"无报警/上线时生效",-1))]),_:1})]),_:1}),a(_,{span:8},{default:l(()=>[a(p,{label:"描边颜色"},{default:l(()=>[a(I,{"model-value":T(c.value.outlineColorArgb),"show-alpha":"","onUpdate:modelValue":t[4]||(t[4]=u=>m({outlineColorArgb:u?h(u):0}))},null,8,["model-value"]),r("code",Se,"#"+w(T(c.value.outlineColorArgb).toUpperCase()),1)]),_:1})]),_:1}),a(_,{span:8},{default:l(()=>[a(p,{label:"标签颜色"},{default:l(()=>[a(I,{"model-value":T(c.value.labelColorArgb),"show-alpha":"","onUpdate:modelValue":t[5]||(t[5]=u=>m({labelColorArgb:u?h(u):0}))},null,8,["model-value"]),r("code",Ie,"#"+w(T(c.value.labelColorArgb).toUpperCase()),1)]),_:1})]),_:1})]),_:1}),a(p,{label:"3D 模型路径"},{default:l(()=>[r("div",Ae,[a(F,{"model-value":c.value.modelPath,placeholder:"如 ./models/agv-base.glb(路径仅保存,3D 替换矩形渲染由后续阶段接入)",clearable:"","onUpdate:modelValue":t[6]||(t[6]=u=>m({modelPath:u??""}))},{append:l(()=>[a(L,{onClick:g},{default:l(()=>[...t[10]||(t[10]=[f("浏览…",-1)])]),_:1})]),_:1},8,["model-value"]),r("input",{ref_key:"fileInput",ref:S,type:"file",accept:".glb,.gltf,.obj,.fbx",style:{display:"none"},onChange:M},null,544)]),t[11]||(t[11]=r("p",{class:"cse-model-hint"}," 现版本仅记录文件路径作为元信息。3D 渲染替代矩形将在后续阶段实现(CycleGUI Workspace LoadModel)。 如需上传文件到服务器请先用其它方式将模型放到 SimpleLite 可访问的相对路径。 ",-1))]),_:1}),a(p,null,{default:l(()=>[a(L,{type:"primary",loading:D.saving,onClick:t[7]||(t[7]=u=>n.$emit("save"))},{default:l(()=>[...t[12]||(t[12]=[f("保存此车型",-1)])]),_:1},8,["loading"]),D.hasOverride?(y(),$(L,{key:0,type:"warning",plain:"",onClick:t[8]||(t[8]=u=>n.$emit("reset"))},{default:l(()=>[...t[13]||(t[13]=[f("恢复为默认",-1)])]),_:1})):P("",!0)]),_:1})]),_:1},8,["model"])}}}),xe=G(Ve,[["__scopeId","data-v-3cdad944"]]),Te={class:"cse-root"},Ue={class:"cse-card-header"},we={class:"cse-desc"},he={class:"cse-palette"},ze={class:"cse-palette-label"},Pe={class:"cse-palette-key"},De={class:"cse-palette-pickers"},Le={class:"cse-color-code"},Oe={class:"cse-card-header"},Be={class:"cse-row-title"},je={class:"cse-row-name"},Me={class:"cse-row-fqn"},Fe=W({__name:"CarStyleEditor",setup(D,{expose:C}){const x=N(!1),b=N(!1),c=N(!1),m=N(null),S=N([]),g=K({}),M=N(void 0),T=N([]),h=N([]),n=K({}),t=K({}),v=X(()=>{const s=new Set([...Object.keys(n),...Object.keys(t)]);for(const e of s)if(n[e]!==t[e])return!0;return!1});function p(s){return n[s]??0}function _(s,e){n[s]=e?z(e):0}function E(s){const e=s>>>24&255,i=s>>>16&255,k=s>>>8&255,A=s&255,o=U=>U.toString(16).padStart(2,"0");return`${o(i)}${o(k)}${o(A)}${o(e)}`}function z(s){const e=s.replace(/^#/,"");if(e.length===6){const i=parseInt(e.slice(0,2),16),k=parseInt(e.slice(2,4),16),A=parseInt(e.slice(4,6),16);return(255<<24|i<<16|k<<8|A)>>>0}if(e.length===8){const i=parseInt(e.slice(0,2),16),k=parseInt(e.slice(2,4),16),A=parseInt(e.slice(4,6),16);return(parseInt(e.slice(6,8),16)<<24|i<<16|k<<8|A)>>>0}return 0}async function I(){x.value=!0;try{const s=await B.getCarStyleTypes().catch(o=>(console.warn("[CarStyleEditor] getCarStyleTypes failed:",o),null)),e=await B.getAlarmColors().catch(o=>(console.warn("[CarStyleEditor] getAlarmColors failed:",o),null)),i=Array.isArray(s?.types)?s.types:[];S.value=i;for(const o of i)g[o.typeName]={...o.style};for(const o of Object.keys(g))i.find(U=>U.typeName===o)||delete g[o];const k=Array.isArray(e?.entries)?e.entries:[],A=Array.isArray(e?.defaultKeys)?e.defaultKeys:[];T.value=A,h.value=k;for(const o of Object.keys(n))delete n[o];for(const o of Object.keys(t))delete t[o];for(const o of k){if(!o?.key)continue;const U=Number(o.colorArgb)>>>0;n[o.key]=U,t[o.key]=U}(!s||!e)&&V.warning("车型样式 / 报警颜色加载部分失败,请确认 SimpleLite 已启动(端口 8222)。")}catch(s){V.error(`加载车型样式失败:${s.message}`)}finally{x.value=!1}}async function L(){if(v.value){b.value=!0;try{await B.putAlarmColors({...n}),V.success("调色板已写入并生效"),await I()}catch(s){V.error(`保存调色板失败:${s.message}`)}finally{b.value=!1}}}function F(){c.value=!0;const s={避障:4294940672,运行:4283215696,上线:4280391411,下线:4288585374,导航失联:4288423856,报警:4294198070,低电量:4294951175};for(const e of Object.keys(n))delete n[e];for(const e of Object.keys(s))n[e]=s[e];c.value=!1,V.info("已恢复为 7 种默认颜色,未写入。点「保存调色板」生效。")}async function R(s){const e=g[s.typeName];if(e){m.value=s.typeName;try{const i=await B.putCarStyle(s.typeName,e);g[s.typeName]={...i},s.hasOverride=!0,V.success(`已保存 ${s.label} 车型样式`)}catch(i){V.error(`保存 ${s.label} 失败:${i.message}`)}finally{m.value=null}}}async function u(s){try{await be.confirm(`把 ${s.label} (${s.typeName}) 的样式恢复为全局默认?删除条目后将与未覆盖车型一致。`,"恢复默认",{confirmButtonText:"恢复",cancelButtonText:"取消",type:"warning"})}catch{return}try{await B.deleteCarStyle(s.typeName),V.success(`已恢复 ${s.label} 为默认样式`),await I()}catch(e){V.error(`恢复默认失败:${e.message}`)}}return Y(I),C({refresh:I}),(s,e)=>{const i=me,k=Q,A=J,o=pe,U=ye,Z=ge,ee=fe,te=ke,le=ce;return ue((y(),j("div",Te,[a(o,{shadow:"never",class:"cse-card"},{header:l(()=>[r("div",Ue,[e[4]||(e[4]=r("span",{class:"cse-card-title"},"报警 / 状态调色板",-1)),a(i,{size:"small",type:"info",effect:"plain"},{default:l(()=>[...e[1]||(e[1]=[f("7 种默认状态",-1)])]),_:1}),e[5]||(e[5]=r("span",{class:"cse-card-spacer"},null,-1)),a(k,{size:"small",loading:c.value,onClick:F},{default:l(()=>[...e[2]||(e[2]=[f("恢复默认",-1)])]),_:1},8,["loading"]),a(k,{size:"small",type:"primary",disabled:!v.value,loading:b.value,onClick:L},{default:l(()=>[...e[3]||(e[3]=[f(" 保存调色板(写入 simple.json) ",-1)])]),_:1},8,["disabled","loading"])])]),default:l(()=>[r("p",we,[e[9]||(e[9]=f(" 车体颜色的判定优先级: ",-1)),a(i,{size:"small",effect:"plain"},{default:l(()=>[...e[6]||(e[6]=[f("1. AlarmInfo 非空 → 「报警」",-1)])]),_:1}),a(i,{size:"small",effect:"plain"},{default:l(()=>[...e[7]||(e[7]=[f("2. lstatus 包含关键字 → 对应键",-1)])]),_:1}),a(i,{size:"small",effect:"plain"},{default:l(()=>[...e[8]||(e[8]=[f("3. 兜底 → 上下线默认色",-1)])]),_:1}),e[10]||(e[10]=f(" 修改下方颜色 + 「保存调色板」即时生效。 ",-1))]),r("div",he,[(y(!0),j(H,null,q(h.value,d=>(y(),j("div",{key:d.key,class:"cse-palette-item"},[r("div",ze,[r("span",Pe,w(d.key),1),d.isDefault?P("",!0):(y(),$(i,{key:0,size:"small",type:"warning",effect:"plain"},{default:l(()=>[...e[11]||(e[11]=[f("自定义",-1)])]),_:1}))]),r("div",De,[a(A,{"model-value":E(p(d.key)),"show-alpha":"",size:"small","onUpdate:modelValue":O=>_(d.key,O)},null,8,["model-value","onUpdate:modelValue"]),r("code",Le,"#"+w(E(p(d.key)).toUpperCase()),1)])]))),128))])]),_:1}),a(o,{shadow:"never",class:"cse-card cse-types-card"},{header:l(()=>[r("div",Oe,[e[13]||(e[13]=r("span",{class:"cse-card-title"},"车型样式",-1)),a(i,{size:"small",type:"info",effect:"plain"},{default:l(()=>[f(w(S.value.length)+" 个已加载车型",1)]),_:1}),e[14]||(e[14]=r("span",{class:"cse-card-spacer"},null,-1)),a(k,{size:"small",onClick:I},{default:l(()=>[a(U,null,{default:l(()=>[a(ve(_e))]),_:1}),e[12]||(e[12]=r("span",{class:"cse-btn-text"},"刷新",-1))]),_:1})])]),default:l(()=>[e[17]||(e[17]=r("p",{class:"cse-desc"}," 点击车型行展开编辑:尺寸(米)、车体 / 描边 / 标签颜色、是否显示名称、3D 模型文件路径。 每辆车按 .NET 类型 (`assemblyName::shortName`) 索引样式。修改后点行内「保存」即时写入并生效。 ",-1)),a(ee,{modelValue:M.value,"onUpdate:modelValue":e[0]||(e[0]=d=>M.value=d),accordion:""},{default:l(()=>[(y(!0),j(H,null,q(S.value,d=>(y(),$(Z,{key:d.typeName,name:d.typeName},{title:l(()=>[r("div",Be,[r("span",je,w(d.label),1),r("code",Me,w(d.typeName),1),d.hasOverride?(y(),$(i,{key:0,size:"small",type:"success",effect:"plain"},{default:l(()=>[...e[15]||(e[15]=[f("已覆盖",-1)])]),_:1})):(y(),$(i,{key:1,size:"small",type:"info",effect:"plain"},{default:l(()=>[...e[16]||(e[16]=[f("默认",-1)])]),_:1}))])]),default:l(()=>[g[d.typeName]?(y(),$(xe,{key:0,"type-full-name":d.typeName,"model-value":g[d.typeName],"has-override":d.hasOverride,saving:m.value===d.typeName,"onUpdate:modelValue":O=>g[d.typeName]=O,onSave:O=>R(d),onReset:O=>u(d)},null,8,["type-full-name","model-value","has-override","saving","onUpdate:modelValue","onSave","onReset"])):P("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),!x.value&&S.value.length===0?(y(),$(te,{key:0,description:"未发现任何 Car 子类(请确认 SimpleLite 已加载相应插件 dll)"})):P("",!0)]),_:1})])),[[le,x.value]])}}}),Re=G(Fe,[["__scopeId","data-v-3af8f925"]]),Ke={class:"car-page"},We=W({__name:"CarPanelView",setup(D){const C=N("list");function x(b){C.value=b,sessionStorage.setItem("admin.cars.tab",C.value)}return Y(()=>{const b=sessionStorage.getItem("admin.cars.tab");(b==="list"||b==="style")&&(C.value=b)}),(b,c)=>{const m=Ee,S=Ce;return y(),j("div",Ke,[a(S,{modelValue:C.value,"onUpdate:modelValue":c[0]||(c[0]=g=>C.value=g),type:"border-card",class:"car-tabs admin-tabs",onTabChange:x},{default:l(()=>[a(m,{label:"车辆列表",name:"list"},{default:l(()=>[C.value==="list"?(y(),$(Ne,{key:0,kind:"car","kind-label":"车辆",title:"车辆管理(Car / AbstractCar,含模拟车、插件车型 reflectionApi 实例化)","empty-text":"当前没有车辆;点击右上角「新建车辆」从已加载的 CarType 中选一个实例化。","enable-project-save":""})):P("",!0)]),_:1}),a(m,{label:"车型样式 / 报警颜色",name:"style"},{default:l(()=>[C.value==="style"?(y(),$(Re,{key:0})):P("",!0)]),_:1})]),_:1},8,["modelValue"])])}}}),Et=G(We,[["__scopeId","data-v-a07bde0e"]]);export{Et as default}; diff --git a/MiGu.Server/wwwroot/assets/CarPanelView-CYaApbj9.css b/MiGu.Server/wwwroot/assets/CarPanelView-CyQ-iKoo.css similarity index 89% rename from MiGu.Server/wwwroot/assets/CarPanelView-CYaApbj9.css rename to MiGu.Server/wwwroot/assets/CarPanelView-CyQ-iKoo.css index 316aee8..fc799d0 100644 --- a/MiGu.Server/wwwroot/assets/CarPanelView-CYaApbj9.css +++ b/MiGu.Server/wwwroot/assets/CarPanelView-CyQ-iKoo.css @@ -1 +1 @@ -.cse-form[data-v-3cdad944]{padding:8px 4px}.cse-color-code[data-v-3cdad944]{font-family:JetBrains Mono,Consolas,monospace;font-size:12px;color:var(--el-text-color-secondary);margin-left:8px}.cse-color-hint[data-v-3cdad944]{font-size:12px;color:var(--el-text-color-secondary);margin-left:8px}.cse-model-row[data-v-3cdad944]{display:flex;align-items:center;gap:8px;width:100%}.cse-model-hint[data-v-3cdad944]{margin:6px 0 0;font-size:12px;color:var(--el-text-color-secondary);line-height:1.55}.cse-root[data-v-3af8f925]{height:100%;display:flex;flex-direction:column;gap:12px;padding:12px;box-sizing:border-box;overflow:auto}.cse-card[data-v-3af8f925] .el-card__body{padding:12px 16px}.cse-card-header[data-v-3af8f925]{display:flex;align-items:center;gap:10px}.cse-card-title[data-v-3af8f925]{font-weight:600}.cse-card-spacer[data-v-3af8f925]{flex:1}.cse-desc[data-v-3af8f925]{margin:0 0 12px;color:var(--el-text-color-primary);font-size:13px;line-height:1.65;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.cse-palette[data-v-3af8f925]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.cse-palette-item[data-v-3af8f925]{border:1px solid var(--el-border-color);background:var(--el-fill-color-light);border-radius:6px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}.cse-palette-label[data-v-3af8f925]{display:flex;align-items:center;gap:6px}.cse-palette-key[data-v-3af8f925]{font-weight:600;color:var(--el-text-color-primary)}.cse-palette-pickers[data-v-3af8f925]{display:flex;align-items:center;gap:8px}.cse-color-code[data-v-3af8f925]{font-family:JetBrains Mono,Consolas,monospace;font-size:12px;color:var(--el-text-color-secondary)}.cse-types-card[data-v-3af8f925]{flex:1}.cse-row-title[data-v-3af8f925]{display:flex;align-items:center;gap:8px;width:100%}.cse-row-name[data-v-3af8f925]{font-weight:600}.cse-row-fqn[data-v-3af8f925]{font-family:JetBrains Mono,Consolas,monospace;font-size:12px;color:var(--el-text-color-secondary);flex:1;text-align:left;word-break:break-all}.cse-btn-text[data-v-3af8f925]{margin-left:4px}.car-page[data-v-c3733824]{height:calc(100vh - 56px);padding:12px 14px;box-sizing:border-box;display:flex;flex-direction:column}.car-tabs[data-v-c3733824]{flex:1;display:flex;flex-direction:column;overflow:hidden}.car-tabs[data-v-c3733824] .el-tabs__content{flex:1;overflow:hidden;padding:0}.car-tabs[data-v-c3733824] .el-tab-pane{height:100%;overflow:hidden} +.cse-form[data-v-3cdad944]{padding:8px 4px}.cse-color-code[data-v-3cdad944]{font-family:JetBrains Mono,Consolas,monospace;font-size:12px;color:var(--el-text-color-secondary);margin-left:8px}.cse-color-hint[data-v-3cdad944]{font-size:12px;color:var(--el-text-color-secondary);margin-left:8px}.cse-model-row[data-v-3cdad944]{display:flex;align-items:center;gap:8px;width:100%}.cse-model-hint[data-v-3cdad944]{margin:6px 0 0;font-size:12px;color:var(--el-text-color-secondary);line-height:1.55}.cse-root[data-v-3af8f925]{height:100%;display:flex;flex-direction:column;gap:12px;padding:12px;box-sizing:border-box;overflow:auto}.cse-card[data-v-3af8f925] .el-card__body{padding:12px 16px}.cse-card-header[data-v-3af8f925]{display:flex;align-items:center;gap:10px}.cse-card-title[data-v-3af8f925]{font-weight:600}.cse-card-spacer[data-v-3af8f925]{flex:1}.cse-desc[data-v-3af8f925]{margin:0 0 12px;color:var(--el-text-color-primary);font-size:13px;line-height:1.65;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.cse-palette[data-v-3af8f925]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.cse-palette-item[data-v-3af8f925]{border:1px solid var(--el-border-color);background:var(--el-fill-color-light);border-radius:6px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}.cse-palette-label[data-v-3af8f925]{display:flex;align-items:center;gap:6px}.cse-palette-key[data-v-3af8f925]{font-weight:600;color:var(--el-text-color-primary)}.cse-palette-pickers[data-v-3af8f925]{display:flex;align-items:center;gap:8px}.cse-color-code[data-v-3af8f925]{font-family:JetBrains Mono,Consolas,monospace;font-size:12px;color:var(--el-text-color-secondary)}.cse-types-card[data-v-3af8f925]{flex:1}.cse-row-title[data-v-3af8f925]{display:flex;align-items:center;gap:8px;width:100%}.cse-row-name[data-v-3af8f925]{font-weight:600}.cse-row-fqn[data-v-3af8f925]{font-family:JetBrains Mono,Consolas,monospace;font-size:12px;color:var(--el-text-color-secondary);flex:1;text-align:left;word-break:break-all}.cse-btn-text[data-v-3af8f925]{margin-left:4px}.car-page[data-v-a07bde0e]{height:calc(100vh - 56px);padding:12px 14px;box-sizing:border-box;display:flex;flex-direction:column}.car-tabs[data-v-a07bde0e]{flex:1;display:flex;flex-direction:column;overflow:hidden}.car-tabs[data-v-a07bde0e] .el-tabs__content{flex:1;overflow:hidden;padding:0}.car-tabs[data-v-a07bde0e] .el-tab-pane{height:100%;overflow:hidden} diff --git a/MiGu.Server/wwwroot/assets/CarPanelView-DfcvV1b9.js b/MiGu.Server/wwwroot/assets/CarPanelView-DfcvV1b9.js deleted file mode 100644 index b33c7b7..0000000 --- a/MiGu.Server/wwwroot/assets/CarPanelView-DfcvV1b9.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as H,b9 as y,aC as $,N as ae,bJ as l,aH as a,a2 as se,w as oe,O as ne,S as re,a8 as ie,z as J,aB as r,bq as w,R as de,r as Q,aG as f,aD as P,ax as X,bh as N,ak as W,b7 as Y,bK as ue,bA as ce,aE as j,t as pe,ad as me,ai as q,bj as G,x as fe,Q as ye,bt as ve,bi as _e,bg as K,X as V,Y as be,y as ge,L as ke,ac as Ce,a9 as Ee}from"./index-Dg4NaXsE.js";/* empty css *//* empty css */import{R as Ne}from"./ReflectionManagerPanel-BZQZIz4T.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as L}from"./reflection-B_glb6eT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./useMapEditStream-BgR6WvRg.js";import"./useProjectionStream-BBHmpNXC.js";const $e={class:"cse-color-code"},Ie={class:"cse-color-code"},Se={class:"cse-color-code"},Ae={class:"cse-model-row"},Ve=H({__name:"CarStyleEditorForm",props:{typeFullName:{},modelValue:{},hasOverride:{type:Boolean},saving:{type:Boolean}},emits:["update:modelValue","save","reset"],setup(O,{emit:C}){const x=O,b=C,c=X(()=>x.modelValue);function m(n){b("update:modelValue",{...c.value,...n})}const I=N(null);function g(){I.value?.click()}function M(n){const t=n.target,v=t.files?.[0];v&&(m({modelPath:v.name}),t.value="")}function T(n){const t=n>>>24&255,v=n>>>16&255,p=n>>>8&255,_=n&255,E=z=>z.toString(16).padStart(2,"0");return`${E(v)}${E(p)}${E(_)}${E(t)}`}function h(n){const t=n.replace(/^#/,"");if(t.length===6){const v=parseInt(t.slice(0,2),16),p=parseInt(t.slice(2,4),16),_=parseInt(t.slice(4,6),16);return(255<<24|v<<16|p<<8|_)>>>0}if(t.length===8){const v=parseInt(t.slice(0,2),16),p=parseInt(t.slice(2,4),16),_=parseInt(t.slice(4,6),16);return(parseInt(t.slice(6,8),16)<<24|v<<16|p<<8|_)>>>0}return 0}return(n,t)=>{const v=re,p=ne,_=oe,E=ie,z=se,S=J,B=Q,R=de,F=ae;return y(),$(F,{"label-width":"120px",size:"default",class:"cse-form",model:c.value},{default:l(()=>[a(z,{gutter:16},{default:l(()=>[a(_,{span:8},{default:l(()=>[a(p,{label:"长度 (m)"},{default:l(()=>[a(v,{"model-value":c.value.bodyLengthM,min:.12,max:4,step:.01,precision:2,"onUpdate:modelValue":t[0]||(t[0]=u=>m({bodyLengthM:Number(u??0)}))},null,8,["model-value"])]),_:1})]),_:1}),a(_,{span:8},{default:l(()=>[a(p,{label:"宽度 (m)"},{default:l(()=>[a(v,{"model-value":c.value.bodyWidthM,min:.08,max:3,step:.01,precision:2,"onUpdate:modelValue":t[1]||(t[1]=u=>m({bodyWidthM:Number(u??0)}))},null,8,["model-value"])]),_:1})]),_:1}),a(_,{span:8},{default:l(()=>[a(p,{label:"显示名称"},{default:l(()=>[a(E,{"model-value":c.value.showLabel,"onUpdate:modelValue":t[2]||(t[2]=u=>m({showLabel:!!u}))},null,8,["model-value"])]),_:1})]),_:1})]),_:1}),a(z,{gutter:16},{default:l(()=>[a(_,{span:8},{default:l(()=>[a(p,{label:"车体颜色"},{default:l(()=>[a(S,{"model-value":T(c.value.bodyColorArgb),"show-alpha":"","onUpdate:modelValue":t[3]||(t[3]=u=>m({bodyColorArgb:u?h(u):0}))},null,8,["model-value"]),r("code",$e,"#"+w(T(c.value.bodyColorArgb).toUpperCase()),1),t[9]||(t[9]=r("span",{class:"cse-color-hint"},"无报警/上线时生效",-1))]),_:1})]),_:1}),a(_,{span:8},{default:l(()=>[a(p,{label:"描边颜色"},{default:l(()=>[a(S,{"model-value":T(c.value.outlineColorArgb),"show-alpha":"","onUpdate:modelValue":t[4]||(t[4]=u=>m({outlineColorArgb:u?h(u):0}))},null,8,["model-value"]),r("code",Ie,"#"+w(T(c.value.outlineColorArgb).toUpperCase()),1)]),_:1})]),_:1}),a(_,{span:8},{default:l(()=>[a(p,{label:"标签颜色"},{default:l(()=>[a(S,{"model-value":T(c.value.labelColorArgb),"show-alpha":"","onUpdate:modelValue":t[5]||(t[5]=u=>m({labelColorArgb:u?h(u):0}))},null,8,["model-value"]),r("code",Se,"#"+w(T(c.value.labelColorArgb).toUpperCase()),1)]),_:1})]),_:1})]),_:1}),a(p,{label:"3D 模型路径"},{default:l(()=>[r("div",Ae,[a(R,{"model-value":c.value.modelPath,placeholder:"如 ./models/agv-base.glb(路径仅保存,3D 替换矩形渲染由后续阶段接入)",clearable:"","onUpdate:modelValue":t[6]||(t[6]=u=>m({modelPath:u??""}))},{append:l(()=>[a(B,{onClick:g},{default:l(()=>[...t[10]||(t[10]=[f("浏览…",-1)])]),_:1})]),_:1},8,["model-value"]),r("input",{ref_key:"fileInput",ref:I,type:"file",accept:".glb,.gltf,.obj,.fbx",style:{display:"none"},onChange:M},null,544)]),t[11]||(t[11]=r("p",{class:"cse-model-hint"}," 现版本仅记录文件路径作为元信息。3D 渲染替代矩形将在后续阶段实现(CycleGUI Workspace LoadModel)。 如需上传文件到服务器请先用其它方式将模型放到 SimpleLite 可访问的相对路径。 ",-1))]),_:1}),a(p,null,{default:l(()=>[a(B,{type:"primary",loading:O.saving,onClick:t[7]||(t[7]=u=>n.$emit("save"))},{default:l(()=>[...t[12]||(t[12]=[f("保存此车型",-1)])]),_:1},8,["loading"]),O.hasOverride?(y(),$(B,{key:0,type:"warning",plain:"",onClick:t[8]||(t[8]=u=>n.$emit("reset"))},{default:l(()=>[...t[13]||(t[13]=[f("恢复为默认",-1)])]),_:1})):P("",!0)]),_:1})]),_:1},8,["model"])}}}),xe=W(Ve,[["__scopeId","data-v-3cdad944"]]),Te={class:"cse-root"},Ue={class:"cse-card-header"},we={class:"cse-desc"},he={class:"cse-palette"},ze={class:"cse-palette-label"},Pe={class:"cse-palette-key"},Oe={class:"cse-palette-pickers"},Be={class:"cse-color-code"},De={class:"cse-card-header"},Le={class:"cse-row-title"},je={class:"cse-row-name"},Me={class:"cse-row-fqn"},Re=H({__name:"CarStyleEditor",setup(O,{expose:C}){const x=N(!1),b=N(!1),c=N(!1),m=N(null),I=N([]),g=K({}),M=N(void 0),T=N([]),h=N([]),n=K({}),t=K({}),v=X(()=>{const s=new Set([...Object.keys(n),...Object.keys(t)]);for(const e of s)if(n[e]!==t[e])return!0;return!1});function p(s){return n[s]??0}function _(s,e){n[s]=e?z(e):0}function E(s){const e=s>>>24&255,i=s>>>16&255,k=s>>>8&255,A=s&255,o=U=>U.toString(16).padStart(2,"0");return`${o(i)}${o(k)}${o(A)}${o(e)}`}function z(s){const e=s.replace(/^#/,"");if(e.length===6){const i=parseInt(e.slice(0,2),16),k=parseInt(e.slice(2,4),16),A=parseInt(e.slice(4,6),16);return(255<<24|i<<16|k<<8|A)>>>0}if(e.length===8){const i=parseInt(e.slice(0,2),16),k=parseInt(e.slice(2,4),16),A=parseInt(e.slice(4,6),16);return(parseInt(e.slice(6,8),16)<<24|i<<16|k<<8|A)>>>0}return 0}async function S(){x.value=!0;try{const s=await L.getCarStyleTypes().catch(o=>(console.warn("[CarStyleEditor] getCarStyleTypes failed:",o),null)),e=await L.getAlarmColors().catch(o=>(console.warn("[CarStyleEditor] getAlarmColors failed:",o),null)),i=Array.isArray(s?.types)?s.types:[];I.value=i;for(const o of i)g[o.typeName]={...o.style};for(const o of Object.keys(g))i.find(U=>U.typeName===o)||delete g[o];const k=Array.isArray(e?.entries)?e.entries:[],A=Array.isArray(e?.defaultKeys)?e.defaultKeys:[];T.value=A,h.value=k;for(const o of Object.keys(n))delete n[o];for(const o of Object.keys(t))delete t[o];for(const o of k){if(!o?.key)continue;const U=Number(o.colorArgb)>>>0;n[o.key]=U,t[o.key]=U}(!s||!e)&&V.warning("车型样式 / 报警颜色加载部分失败,请确认 SimpleLite 已启动(端口 8222)。")}catch(s){V.error(`加载车型样式失败:${s.message}`)}finally{x.value=!1}}async function B(){if(v.value){b.value=!0;try{await L.putAlarmColors({...n}),V.success("调色板已写入并生效"),await S()}catch(s){V.error(`保存调色板失败:${s.message}`)}finally{b.value=!1}}}function R(){c.value=!0;const s={避障:4294940672,运行:4283215696,上线:4280391411,下线:4288585374,导航失联:4288423856,报警:4294198070,低电量:4294951175};for(const e of Object.keys(n))delete n[e];for(const e of Object.keys(s))n[e]=s[e];c.value=!1,V.info("已恢复为 7 种默认颜色,未写入。点「保存调色板」生效。")}async function F(s){const e=g[s.typeName];if(e){m.value=s.typeName;try{const i=await L.putCarStyle(s.typeName,e);g[s.typeName]={...i},s.hasOverride=!0,V.success(`已保存 ${s.label} 车型样式`)}catch(i){V.error(`保存 ${s.label} 失败:${i.message}`)}finally{m.value=null}}}async function u(s){try{await be.confirm(`把 ${s.label} (${s.typeName}) 的样式恢复为全局默认?删除条目后将与未覆盖车型一致。`,"恢复默认",{confirmButtonText:"恢复",cancelButtonText:"取消",type:"warning"})}catch{return}try{await L.deleteCarStyle(s.typeName),V.success(`已恢复 ${s.label} 为默认样式`),await S()}catch(e){V.error(`恢复默认失败:${e.message}`)}}return Y(S),C({refresh:S}),(s,e)=>{const i=me,k=Q,A=J,o=pe,U=ye,Z=ge,ee=fe,te=ke,le=ce;return ue((y(),j("div",Te,[a(o,{shadow:"never",class:"cse-card"},{header:l(()=>[r("div",Ue,[e[4]||(e[4]=r("span",{class:"cse-card-title"},"报警 / 状态调色板",-1)),a(i,{size:"small",type:"info",effect:"plain"},{default:l(()=>[...e[1]||(e[1]=[f("7 种默认状态",-1)])]),_:1}),e[5]||(e[5]=r("span",{class:"cse-card-spacer"},null,-1)),a(k,{size:"small",loading:c.value,onClick:R},{default:l(()=>[...e[2]||(e[2]=[f("恢复默认",-1)])]),_:1},8,["loading"]),a(k,{size:"small",type:"primary",disabled:!v.value,loading:b.value,onClick:B},{default:l(()=>[...e[3]||(e[3]=[f(" 保存调色板(写入 simple.json) ",-1)])]),_:1},8,["disabled","loading"])])]),default:l(()=>[r("p",we,[e[9]||(e[9]=f(" 车体颜色的判定优先级: ",-1)),a(i,{size:"small",effect:"plain"},{default:l(()=>[...e[6]||(e[6]=[f("1. AlarmInfo 非空 → 「报警」",-1)])]),_:1}),a(i,{size:"small",effect:"plain"},{default:l(()=>[...e[7]||(e[7]=[f("2. lstatus 包含关键字 → 对应键",-1)])]),_:1}),a(i,{size:"small",effect:"plain"},{default:l(()=>[...e[8]||(e[8]=[f("3. 兜底 → 上下线默认色",-1)])]),_:1}),e[10]||(e[10]=f(" 修改下方颜色 + 「保存调色板」即时生效。 ",-1))]),r("div",he,[(y(!0),j(q,null,G(h.value,d=>(y(),j("div",{key:d.key,class:"cse-palette-item"},[r("div",ze,[r("span",Pe,w(d.key),1),d.isDefault?P("",!0):(y(),$(i,{key:0,size:"small",type:"warning",effect:"plain"},{default:l(()=>[...e[11]||(e[11]=[f("自定义",-1)])]),_:1}))]),r("div",Oe,[a(A,{"model-value":E(p(d.key)),"show-alpha":"",size:"small","onUpdate:modelValue":D=>_(d.key,D)},null,8,["model-value","onUpdate:modelValue"]),r("code",Be,"#"+w(E(p(d.key)).toUpperCase()),1)])]))),128))])]),_:1}),a(o,{shadow:"never",class:"cse-card cse-types-card"},{header:l(()=>[r("div",De,[e[13]||(e[13]=r("span",{class:"cse-card-title"},"车型样式",-1)),a(i,{size:"small",type:"info",effect:"plain"},{default:l(()=>[f(w(I.value.length)+" 个已加载车型",1)]),_:1}),e[14]||(e[14]=r("span",{class:"cse-card-spacer"},null,-1)),a(k,{size:"small",onClick:S},{default:l(()=>[a(U,null,{default:l(()=>[a(ve(_e))]),_:1}),e[12]||(e[12]=r("span",{class:"cse-btn-text"},"刷新",-1))]),_:1})])]),default:l(()=>[e[17]||(e[17]=r("p",{class:"cse-desc"}," 点击车型行展开编辑:尺寸(米)、车体 / 描边 / 标签颜色、是否显示名称、3D 模型文件路径。 每辆车按 .NET 类型 (`assemblyName::shortName`) 索引样式。修改后点行内「保存」即时写入并生效。 ",-1)),a(ee,{modelValue:M.value,"onUpdate:modelValue":e[0]||(e[0]=d=>M.value=d),accordion:""},{default:l(()=>[(y(!0),j(q,null,G(I.value,d=>(y(),$(Z,{key:d.typeName,name:d.typeName},{title:l(()=>[r("div",Le,[r("span",je,w(d.label),1),r("code",Me,w(d.typeName),1),d.hasOverride?(y(),$(i,{key:0,size:"small",type:"success",effect:"plain"},{default:l(()=>[...e[15]||(e[15]=[f("已覆盖",-1)])]),_:1})):(y(),$(i,{key:1,size:"small",type:"info",effect:"plain"},{default:l(()=>[...e[16]||(e[16]=[f("默认",-1)])]),_:1}))])]),default:l(()=>[g[d.typeName]?(y(),$(xe,{key:0,"type-full-name":d.typeName,"model-value":g[d.typeName],"has-override":d.hasOverride,saving:m.value===d.typeName,"onUpdate:modelValue":D=>g[d.typeName]=D,onSave:D=>F(d),onReset:D=>u(d)},null,8,["type-full-name","model-value","has-override","saving","onUpdate:modelValue","onSave","onReset"])):P("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),!x.value&&I.value.length===0?(y(),$(te,{key:0,description:"未发现任何 Car 子类(请确认 SimpleLite 已加载相应插件 dll)"})):P("",!0)]),_:1})])),[[le,x.value]])}}}),Fe=W(Re,[["__scopeId","data-v-3af8f925"]]),Ke={class:"car-page"},He=H({__name:"CarPanelView",setup(O){const C=N("list");function x(b){C.value=b,sessionStorage.setItem("admin.cars.tab",C.value)}return Y(()=>{const b=sessionStorage.getItem("admin.cars.tab");(b==="list"||b==="style")&&(C.value=b)}),(b,c)=>{const m=Ee,I=Ce;return y(),j("div",Ke,[a(I,{modelValue:C.value,"onUpdate:modelValue":c[0]||(c[0]=g=>C.value=g),type:"border-card",class:"car-tabs admin-tabs",onTabChange:x},{default:l(()=>[a(m,{label:"车辆列表",name:"list"},{default:l(()=>[C.value==="list"?(y(),$(Ne,{key:0,kind:"car","kind-label":"车辆",title:"车辆管理(Car / AbstractCar,含模拟车、插件车型 reflectionApi 实例化)","empty-text":"当前没有车辆;点击右上角「新建车辆」从已加载的 CarType 中选一个实例化。"})):P("",!0)]),_:1}),a(m,{label:"车型样式 / 报警颜色",name:"style"},{default:l(()=>[C.value==="style"?(y(),$(Fe,{key:0})):P("",!0)]),_:1})]),_:1},8,["modelValue"])])}}}),Ct=W(He,[["__scopeId","data-v-c3733824"]]);export{Ct as default}; diff --git a/MiGu.Server/wwwroot/assets/ChargePolicyView-fgYXxU-T.js b/MiGu.Server/wwwroot/assets/ChargePolicyView-fgYXxU-T.js deleted file mode 100644 index cb54a76..0000000 --- a/MiGu.Server/wwwroot/assets/ChargePolicyView-fgYXxU-T.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as s,aC as c,bJ as t,bt as d,b9 as u,aH as e,N as f,O as b,a8 as h,S as C,aa as g,ab as w,D as E}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as V}from"./ConfigPageBase-MHa7yfOO.js";/* empty css *//* empty css *//* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const K=s({__name:"ChargePolicyView",setup(x){return(T,U)=>{const i=h,l=b,n=C,a=w,p=g,_=f;return u(),c(V,{section:"charge",title:"充电逻辑",description:"充电优先级、空闲充电、任务中断充电(ChargePolicy)",defaults:d(E)},{default:t(({payload:o,update:r})=>[e(_,{"label-width":"180px",model:o},{default:t(()=>[e(l,{label:"允许任务中断充电"},{default:t(()=>[e(i,{"model-value":o.allowMidTaskCharge,"onUpdate:modelValue":m=>r({...o,allowMidTaskCharge:!!m})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(l,{label:"空闲多少秒后充电"},{default:t(()=>[e(n,{"model-value":o.idleChargeAfterSec,min:0,max:86400,"onUpdate:modelValue":m=>r({...o,idleChargeAfterSec:m??0})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(l,{label:"充电优先级规则"},{default:t(()=>[e(p,{data:o.priority,size:"small"},{default:t(()=>[e(a,{label:"ID",prop:"id",width:"100"}),e(a,{label:"条件",prop:"condition"}),e(a,{label:"权重",prop:"weight",width:"100"})]),_:1},8,["data"])]),_:2},1024)]),_:2},1032,["model"])]),_:1},8,["defaults"])}}});export{K as default}; diff --git a/MiGu.Server/wwwroot/assets/ConfigPageBase-MHa7yfOO.js b/MiGu.Server/wwwroot/assets/ConfigPageBase-CgfsngDp.js similarity index 69% rename from MiGu.Server/wwwroot/assets/ConfigPageBase-MHa7yfOO.js rename to MiGu.Server/wwwroot/assets/ConfigPageBase-CgfsngDp.js index 65dcc8c..bbc6875 100644 --- a/MiGu.Server/wwwroot/assets/ConfigPageBase-MHa7yfOO.js +++ b/MiGu.Server/wwwroot/assets/ConfigPageBase-CgfsngDp.js @@ -1 +1 @@ -import{aU as E,e as z,aJ as L,aI as R,bh as h,bI as V,b7 as D,aC as O,bJ as r,b9 as k,aH as l,aE as I,bq as y,aD as w,aB as p,a2 as j,w as G,t as U,bk as q,aG as u,ad as H,r as W,bt as J,bi as X,as as Q,ax as T,X as m,ak as Y}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{P as Z}from"./PermissionGuard-BlMEkqrL.js";import{b as tt,r as C}from"./reflection-B_glb6eT.js";import{i as et}from"./monitorConfigCache-BigdkiFw.js";async function at(t){const{data:e}=await E.get(`/config/${t}`);return e}async function ot(t,e){const{data:a}=await E.put(`/config/${t}`,e);return a}function S(){return JSON.parse(JSON.stringify(z.monitor))}function b(t){const e=JSON.parse(JSON.stringify(z));if(!t)return e;const a={...S(),...t.monitor??{},car:{...S().car,...t.monitor?.car??{}},site:{...S().site,...t.monitor?.site??{}},track:{...S().track,...t.monitor?.track??{}},carActionByType:{...t.monitor?.carActionByType??{}}};return{...e,...t,playback:{...e.playback,...t.playback??{}},logRetention:{...e.logRetention,...t.logRetention??{}},version:{...e.version,...t.version??{}},monitor:a}}function M(t){const e={};if(!t)return e;for(const[a,o]of Object.entries(t))!a||!Array.isArray(o)||(e[a]=[...o]);return e}function nt(t){return{carActionByType:M(t.carActionByType),siteActionKeys:[...t.site?.methods??[]],trackActionKeys:[...t.track?.methods??[]]}}async function kt(t,e){const a=b(t);let o=null;try{o=(e??await C.getMonitorConfig()).config;const d=nt(o);a.monitor.carActionByType=d.carActionByType,a.monitor.site.actionKeys=d.siteActionKeys,a.monitor.track.actionKeys=d.trackActionKeys}catch{}return{config:a,cache:o}}async function Ct(t,e){const a=b(t).monitor;let o=e?.cachedRoot??tt();if(!e?.cachedRoot)try{o=(await C.getMonitorConfig()).config}catch{}const c=await C.saveMonitorConfig({car:{fields:[...o.car?.fields??[]],status:[...o.car?.status??[]],methods:[...o.car?.methods??[]]},site:{fields:[...o.site?.fields??[]],status:[...o.site?.status??[]],methods:[...a.site.actionKeys]},track:{fields:[...o.track?.fields??[]],status:[...o.track?.status??[]],methods:[...a.track.actionKeys]},carActionByType:M(a.carActionByType)});return et(),c}const st=L("config",{state:()=>({cache:{},loading:{}}),actions:{async load(t,e=!1){if(!e&&this.cache[t])return this.cache[t];this.loading[t]=!0;try{const a=await at(t);return t==="ops"&&a.payload&&(a.payload=b(a.payload)),this.cache[t]=a,a}finally{this.loading[t]=!1}},async save(t,e){this.loading[t]=!0;try{const a=t==="ops"?b(e):e,o=await ot(t,a);return this.cache[t]=o,o}finally{this.loading[t]=!1}}}}),it={class:"cpb-header"},rt={class:"cpb-title"},ct={key:0,class:"cpb-desc"},lt={class:"cpb-body"},dt={class:"cpb-json"},ft=R({__name:"ConfigPageBase",props:{section:{},title:{},description:{},defaults:{},normalizePayload:{type:Function},afterLoad:{type:Function},beforeSave:{type:Function},afterSave:{type:Function}},setup(t){const e=t,a=st(),o=h(null),c=h(JSON.parse(JSON.stringify(e.defaults))),d=h(!1),v=h(!1),P=T(()=>JSON.stringify(c.value,null,2)),$=T(()=>o.value?.updatedAt?new Date(o.value.updatedAt).toLocaleString("zh-CN"):"—");function A(i){c.value=i}function x(i){let n=JSON.parse(JSON.stringify(i||e.defaults));e.normalizePayload&&(n=e.normalizePayload(n)),c.value=n}async function B(i,n){d.value=!0;try{const s=await a.load(e.section,i);o.value=s,x(s.payload),e.afterLoad&&await e.afterLoad(c.value,A),n&&m.success("已重载")}catch(s){m.error(`加载失败:${s instanceof Error?s.message:String(s)}`)}finally{d.value=!1}}async function _(i=!1){await B(i,i)}async function K(){v.value=!0;let i=c.value;if(e.normalizePayload&&(i=e.normalizePayload(i)),e.beforeSave)try{await e.beforeSave(i)}catch(s){m.error(`地图监控配置保存失败:${s instanceof Error?s.message:String(s)}`),v.value=!1;return}let n="";try{const s=await a.save(e.section,i);if(o.value=s,c.value=i,e.afterSave)try{await e.afterSave(i)}catch(f){n=`(平台配置已保存,但 SimpleLite 同步失败:${f instanceof Error?f.message:String(f)})`}await B(!0,!1);const g=e.beforeSave||e.afterSave?",地图监控配置已写入 SimpleLite":"";m.success(`已保存 v${s.version}${g}${n}`)}catch(s){m.error(`保存失败:${s instanceof Error?s.message:String(s)}`)}finally{v.value=!1}}return V(()=>e.section,()=>_()),D(()=>_()),(i,n)=>{const s=H,g=W,f=U,N=G,F=j;return k(),O(Z,{"widget-id":"ConfigCenter"},{default:r(()=>[l(f,{shadow:"never"},{header:r(()=>[p("div",it,[p("span",rt,y(t.title),1),l(s,{size:"small",effect:"plain"},{default:r(()=>[u("section="+y(t.section),1)]),_:1}),l(s,{size:"small",type:"info",effect:"plain"},{default:r(()=>[u("v"+y(o.value?.version??"-"),1)]),_:1}),o.value?.updatedAt?(k(),O(s,{key:0,size:"small",type:"success",effect:"plain"},{default:r(()=>[u(y($.value),1)]),_:1})):w("",!0),n[3]||(n[3]=p("div",{class:"spacer"},null,-1)),l(g,{size:"small",icon:J(X),loading:d.value,onClick:n[0]||(n[0]=ut=>_(!0))},{default:r(()=>[...n[1]||(n[1]=[u("重载",-1)])]),_:1},8,["icon","loading"]),l(g,{size:"small",type:"primary",icon:J(Q),loading:v.value,onClick:K},{default:r(()=>[...n[2]||(n[2]=[u("保存",-1)])]),_:1},8,["icon","loading"])])]),default:r(()=>[t.description?(k(),I("p",ct,y(t.description),1)):w("",!0),p("div",lt,[l(F,{gutter:12},{default:r(()=>[l(N,{span:14},{default:r(()=>[l(f,{shadow:"never","body-style":"padding: 12px"},{header:r(()=>[...n[4]||(n[4]=[u("表单",-1)])]),default:r(()=>[q(i.$slots,"default",{payload:c.value,update:A},void 0,!0)]),_:3})]),_:3}),l(N,{span:10},{default:r(()=>[l(f,{shadow:"never","body-style":"padding: 0"},{header:r(()=>[...n[5]||(n[5]=[u("JSON 预览(保存即下发占位)",-1)])]),default:r(()=>[p("pre",dt,y(P.value),1)]),_:1})]),_:1})]),_:3})])]),_:3})]),_:3})}}}),At=Y(ft,[["__scopeId","data-v-1d51a575"]]);export{At as C,M as c,S as d,kt as l,b as n,Ct as s,st as u}; +import{b4 as J,e as z,aO as L,aN as R,bC as S,c7 as D,bp as V,bs as k,aE as B,c8 as r,aK as l,t as j,aG as G,bL as y,aF as w,aD as p,a2 as I,w as U,bF as W,aJ as u,ad as X,r as q,bS as T,bD as H,at as Q,ay as E,X as m,ak as Y}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{P as Z}from"./PermissionGuard-CR4qtxrh.js";import{b as tt,r as C}from"./reflection-BwOBPyb9.js";import{i as et}from"./monitorConfigCache-DXn96T8F.js";async function at(t){const{data:e}=await J.get(`/config/${t}`);return e}async function ot(t,e){const{data:a}=await J.put(`/config/${t}`,e);return a}function h(){return JSON.parse(JSON.stringify(z.monitor))}function b(t){const e=JSON.parse(JSON.stringify(z));if(!t)return e;const a={...h(),...t.monitor??{},car:{...h().car,...t.monitor?.car??{}},site:{...h().site,...t.monitor?.site??{}},track:{...h().track,...t.monitor?.track??{}},carActionByType:{...t.monitor?.carActionByType??{}}};return{...e,...t,playback:{...e.playback,...t.playback??{}},logRetention:{...e.logRetention,...t.logRetention??{}},version:{...e.version,...t.version??{}},monitor:a}}function M(t){const e={};if(!t)return e;for(const[a,o]of Object.entries(t))!a||!Array.isArray(o)||(e[a]=[...o]);return e}function nt(t){return{carActionByType:M(t.carActionByType),siteActionKeys:[...t.site?.methods??[]],trackActionKeys:[...t.track?.methods??[]]}}async function kt(t,e){const a=b(t);let o=null;try{o=(e??await C.getMonitorConfig()).config;const d=nt(o);a.monitor.carActionByType=d.carActionByType,a.monitor.site.actionKeys=d.siteActionKeys,a.monitor.track.actionKeys=d.trackActionKeys}catch{}return{config:a,cache:o}}async function Ct(t,e){const a=b(t).monitor;let o=e?.cachedRoot??tt();if(!e?.cachedRoot)try{o=(await C.getMonitorConfig()).config}catch{}const c=await C.saveMonitorConfig({car:{fields:[...o.car?.fields??[]],status:[...o.car?.status??[]],methods:[...o.car?.methods??[]]},site:{fields:[...o.site?.fields??[]],status:[...o.site?.status??[]],methods:[...a.site.actionKeys]},track:{fields:[...o.track?.fields??[]],status:[...o.track?.status??[]],methods:[...a.track.actionKeys]},carActionByType:M(a.carActionByType)});return et(),c}const st=L("config",{state:()=>({cache:{},loading:{}}),actions:{async load(t,e=!1){if(!e&&this.cache[t])return this.cache[t];this.loading[t]=!0;try{const a=await at(t);return t==="ops"&&a.payload&&(a.payload=b(a.payload)),this.cache[t]=a,a}finally{this.loading[t]=!1}},async save(t,e){this.loading[t]=!0;try{const a=t==="ops"?b(e):e,o=await ot(t,a);return this.cache[t]=o,o}finally{this.loading[t]=!1}}}}),it={class:"cpb-header"},rt={class:"cpb-title"},ct={key:0,class:"cpb-desc"},lt={class:"cpb-body"},dt={class:"cpb-json"},ft=R({__name:"ConfigPageBase",props:{section:{},title:{},description:{},defaults:{},normalizePayload:{type:Function},afterLoad:{type:Function},beforeSave:{type:Function},afterSave:{type:Function}},setup(t){const e=t,a=st(),o=S(null),c=S(JSON.parse(JSON.stringify(e.defaults))),d=S(!1),v=S(!1),P=E(()=>JSON.stringify(c.value,null,2)),$=E(()=>o.value?.updatedAt?new Date(o.value.updatedAt).toLocaleString("zh-CN"):"—");function A(i){c.value=i}function x(i){let n=JSON.parse(JSON.stringify(i||e.defaults));e.normalizePayload&&(n=e.normalizePayload(n)),c.value=n}async function N(i,n){d.value=!0;try{const s=await a.load(e.section,i);o.value=s,x(s.payload),e.afterLoad&&await e.afterLoad(c.value,A),n&&m.success("已重载")}catch(s){m.error(`加载失败:${s instanceof Error?s.message:String(s)}`)}finally{d.value=!1}}async function _(i=!1){await N(i,i)}async function F(){v.value=!0;let i=c.value;if(e.normalizePayload&&(i=e.normalizePayload(i)),e.beforeSave)try{await e.beforeSave(i)}catch(s){m.error(`地图监控配置保存失败:${s instanceof Error?s.message:String(s)}`),v.value=!1;return}let n="";try{const s=await a.save(e.section,i);if(o.value=s,c.value=i,e.afterSave)try{await e.afterSave(i)}catch(f){n=`(平台配置已保存,但 SimpleLite 同步失败:${f instanceof Error?f.message:String(f)})`}await N(!0,!1);const g=e.beforeSave||e.afterSave?",地图监控配置已写入 SimpleLite":"";m.success(`已保存 v${s.version}${g}${n}`)}catch(s){m.error(`保存失败:${s instanceof Error?s.message:String(s)}`)}finally{v.value=!1}}return D(()=>e.section,()=>_()),V(()=>_()),(i,n)=>{const s=X,g=q,f=j,O=U,K=I;return k(),B(Z,{"widget-id":"ConfigCenter"},{default:r(()=>[l(f,{shadow:"never"},{header:r(()=>[p("div",it,[p("span",rt,y(t.title),1),l(s,{size:"small",effect:"plain"},{default:r(()=>[u("section="+y(t.section),1)]),_:1}),l(s,{size:"small",type:"info",effect:"plain"},{default:r(()=>[u("v"+y(o.value?.version??"-"),1)]),_:1}),o.value?.updatedAt?(k(),B(s,{key:0,size:"small",type:"success",effect:"plain"},{default:r(()=>[u(y($.value),1)]),_:1})):w("",!0),n[3]||(n[3]=p("div",{class:"spacer"},null,-1)),l(g,{size:"small",icon:T(H),loading:d.value,onClick:n[0]||(n[0]=ut=>_(!0))},{default:r(()=>[...n[1]||(n[1]=[u("重载",-1)])]),_:1},8,["icon","loading"]),l(g,{size:"small",type:"primary",icon:T(Q),loading:v.value,onClick:F},{default:r(()=>[...n[2]||(n[2]=[u("保存",-1)])]),_:1},8,["icon","loading"])])]),default:r(()=>[t.description?(k(),G("p",ct,y(t.description),1)):w("",!0),p("div",lt,[l(K,{gutter:12},{default:r(()=>[l(O,{span:14},{default:r(()=>[l(f,{shadow:"never","body-style":"padding: 12px"},{header:r(()=>[...n[4]||(n[4]=[u("表单",-1)])]),default:r(()=>[W(i.$slots,"default",{payload:c.value,update:A},void 0,!0)]),_:3})]),_:3}),l(O,{span:10},{default:r(()=>[l(f,{shadow:"never","body-style":"padding: 0"},{header:r(()=>[...n[5]||(n[5]=[u("JSON 预览(保存即下发占位)",-1)])]),default:r(()=>[p("pre",dt,y(P.value),1)]),_:1})]),_:1})]),_:3})])]),_:3})]),_:3})}}}),At=Y(ft,[["__scopeId","data-v-1d51a575"]]);export{At as C,M as c,h as d,kt as l,b as n,Ct as s,st as u}; diff --git a/MiGu.Server/wwwroot/assets/CustomWidgetView-Ch0BQYzJ.css b/MiGu.Server/wwwroot/assets/CustomWidgetView-Ch0BQYzJ.css deleted file mode 100644 index b6fdac3..0000000 --- a/MiGu.Server/wwwroot/assets/CustomWidgetView-Ch0BQYzJ.css +++ /dev/null @@ -1 +0,0 @@ -.js-mini[data-v-96b90481]{margin:0;font-size:11px;background:#f5f7fa;padding:4px 6px;border-radius:4px;max-height:60px;overflow:auto} diff --git a/MiGu.Server/wwwroot/assets/CustomWidgetView-Ch7DIGUj.js b/MiGu.Server/wwwroot/assets/CustomWidgetView-Ch7DIGUj.js deleted file mode 100644 index 6f93718..0000000 --- a/MiGu.Server/wwwroot/assets/CustomWidgetView-Ch7DIGUj.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as _,aC as i,bJ as e,bt as d,b9 as s,aH as t,aa as u,ab as f,aB as n,bq as r,aE as b,ai as g,bj as h,ad as w,aG as C,l as E,ak as T}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import{C as y}from"./ConfigPageBase-MHa7yfOO.js";/* empty css *//* empty css *//* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const B={class:"js-mini"},k={class:"js-mini"},x=_({__name:"CustomWidgetView",setup(J){return(S,V)=>{const a=f,p=w,m=u;return s(),i(y,{section:"widget",title:"自定义控件",description:"呼叫/展示界面可自由定义(platform-vue + rcsmonitor-vue 双渲染器)",defaults:d(E)},{default:e(({payload:c})=>[t(m,{data:c.items,size:"small",border:""},{default:e(()=>[t(a,{label:"ID",prop:"id",width:"180"}),t(a,{label:"名称",prop:"name",width:"140"}),t(a,{label:"Schema",prop:"schemaJson"},{default:e(o=>[n("pre",B,r(o.row.schemaJson),1)]),_:1}),t(a,{label:"Layout",prop:"layoutJson"},{default:e(o=>[n("pre",k,r(o.row.layoutJson),1)]),_:1}),t(a,{label:"绑定 Scope"},{default:e(o=>[(s(!0),b(g,null,h(o.row.bindToScopes,l=>(s(),i(p,{key:l,size:"small",effect:"plain",style:{"margin-right":"4px"}},{default:e(()=>[C(r(l),1)]),_:2},1024))),128))]),_:1})]),_:1},8,["data"])]),_:1},8,["defaults"])}}}),M=T(x,[["__scopeId","data-v-96b90481"]]);export{M as default}; diff --git a/MiGu.Server/wwwroot/assets/DashboardView-C22mCfRB.css b/MiGu.Server/wwwroot/assets/DashboardView-C22mCfRB.css deleted file mode 100644 index 6922061..0000000 --- a/MiGu.Server/wwwroot/assets/DashboardView-C22mCfRB.css +++ /dev/null @@ -1 +0,0 @@ -.dashboard[data-v-7b6c88b6]{padding:0;display:flex;flex-direction:column;gap:18px}.dashboard[data-v-7b6c88b6]>*{flex-shrink:0}.hero-banner[data-v-7b6c88b6]{position:relative;display:grid;grid-template-columns:1fr 480px;gap:24px;padding:28px 32px 22px;overflow:hidden;border-radius:18px;background:radial-gradient(ellipse at 0% 0%,rgba(var(--mg-primary-hover-rgb),.5) 0%,transparent 55%),radial-gradient(ellipse at 100% 100%,rgba(var(--mg-accent-rgb),.45) 0%,transparent 55%),linear-gradient(135deg,var(--mg-bg-aside-1) 0%,var(--mg-bg-aside-2) 100%);border:1px solid rgba(var(--mg-accent-rgb),.3);box-shadow:0 18px 44px #0006,0 0 0 1px #ffffff0f inset,0 1px #ffffff2e inset;color:#fff}.hero-banner[data-v-7b6c88b6]:before{content:"";position:absolute;top:0;left:12%;right:12%;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(var(--mg-accent-rgb),.8) 50%,transparent 100%);pointer-events:none;z-index:2}.hero-bg[data-v-7b6c88b6]{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:18px}.hero-orb[data-v-7b6c88b6]{position:absolute;border-radius:50%;filter:blur(80px);opacity:.55;animation:hero-drift-7b6c88b6 18s ease-in-out infinite}.hero-orb-a[data-v-7b6c88b6]{width:360px;height:360px;top:-120px;left:10%;background:radial-gradient(circle,rgba(var(--mg-accent-rgb),.85) 0%,rgba(var(--mg-primary-rgb),.85) 55%,transparent 85%)}.hero-orb-b[data-v-7b6c88b6]{width:320px;height:320px;bottom:-120px;right:22%;background:radial-gradient(circle,rgba(var(--mg-primary-hover-rgb),.8) 0%,rgba(var(--mg-primary-rgb),.55) 55%,transparent 85%);animation-delay:-7s;opacity:.5}.hero-grid[data-v-7b6c88b6]{position:absolute;inset:0;background-image:linear-gradient(rgba(var(--mg-accent-rgb),.07) 1px,transparent 1px),linear-gradient(90deg,rgba(var(--mg-accent-rgb),.07) 1px,transparent 1px);background-size:36px 36px;mask-image:radial-gradient(ellipse at center,rgba(0,0,0,.85) 0%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse at center,rgba(0,0,0,.85) 0%,transparent 75%);opacity:.55}@keyframes hero-drift-7b6c88b6{0%,to{transform:translate(0) scale(1)}50%{transform:translate(24px,-28px) scale(1.06)}}.hero-left[data-v-7b6c88b6],.hero-right[data-v-7b6c88b6]{position:relative;z-index:1}.hero-tag[data-v-7b6c88b6]{display:inline-flex;align-items:center;gap:8px;padding:5px 14px;background:#ffffff1f;border:1px solid rgba(var(--mg-accent-rgb),.55);border-radius:999px;color:#fff;font-size:12px;letter-spacing:1.5px;width:max-content;box-shadow:0 0 12px rgba(var(--mg-primary-rgb),.3)}.tag-dot[data-v-7b6c88b6]{width:6px;height:6px;border-radius:50%;background:var(--mg-accent);box-shadow:0 0 10px var(--mg-accent);animation:tag-pulse-7b6c88b6 1.6s ease-in-out infinite}@keyframes tag-pulse-7b6c88b6{0%,to{opacity:.6;transform:scale(.85)}50%{opacity:1;transform:scale(1.15)}}.hero-title[data-v-7b6c88b6]{margin:14px 0 8px;font-size:40px;font-weight:700;letter-spacing:5px;line-height:1.1;color:#fff;background:linear-gradient(135deg,#ffffff 0%,var(--mg-accent) 50%,#ffffff 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 4px 20px rgba(var(--mg-primary-rgb),.6);filter:drop-shadow(0 2px 8px rgba(0,0,0,.5))}.hero-desc[data-v-7b6c88b6]{margin:0 0 22px;color:#ffffffd9;font-size:13px;letter-spacing:.8px}.quick-grid[data-v-7b6c88b6]{display:grid;grid-template-columns:repeat(4,1fr);gap:14px 18px;max-width:540px}.quick-item[data-v-7b6c88b6]{appearance:none;background:#ffffff14;border:1px solid rgba(var(--mg-accent-rgb),.35);border-radius:14px;padding:14px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;color:#fff;transition:all .25s cubic-bezier(.25,.8,.25,1);position:relative;overflow:hidden;animation:quick-in-7b6c88b6 .5s ease-out backwards;box-shadow:0 4px 12px #00000040,0 0 0 1px #ffffff0f inset}@keyframes quick-in-7b6c88b6{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.quick-item[data-v-7b6c88b6]:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 30%,rgba(var(--mg-accent-rgb),.15) 100%);opacity:0;transition:opacity .25s}.quick-item[data-v-7b6c88b6]:hover{border-color:rgba(var(--mg-accent-rgb),.75);background:#ffffff24;color:#fff;transform:translateY(-3px);box-shadow:0 12px 28px rgba(var(--mg-primary-rgb),.45),0 0 22px rgba(var(--mg-accent-rgb),.4)}.quick-item[data-v-7b6c88b6]:hover:before{opacity:1}.quick-icon[data-v-7b6c88b6]{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,rgba(var(--mg-primary-hover-rgb),.6),rgba(var(--mg-primary-rgb),.45));border:1px solid rgba(var(--mg-accent-rgb),.55);display:inline-flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 6px 16px rgba(var(--mg-primary-rgb),.4),0 0 0 1px #ffffff2e inset;transition:all .25s}.quick-item:hover .quick-icon[data-v-7b6c88b6]{background:linear-gradient(135deg,var(--mg-primary-hover) 0%,var(--mg-primary) 100%);box-shadow:0 10px 24px rgba(var(--mg-primary-rgb),.6),0 0 24px rgba(var(--mg-accent-rgb),.6),0 0 0 1px #ffffff59 inset}.quick-label[data-v-7b6c88b6]{font-size:13px;font-weight:500;letter-spacing:1.2px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4)}.quick-item.primary[data-v-7b6c88b6]{border-color:rgba(var(--mg-accent-rgb),.75);background:linear-gradient(135deg,rgba(var(--mg-primary-hover-rgb),.45),rgba(var(--mg-primary-rgb),.25));box-shadow:0 8px 22px rgba(var(--mg-primary-rgb),.45),0 0 0 1px rgba(var(--mg-accent-rgb),.45) inset}.quick-item.primary .quick-icon[data-v-7b6c88b6]{background:linear-gradient(135deg,var(--mg-accent) 0%,var(--mg-primary-hover) 60%,var(--mg-primary) 100%);box-shadow:0 8px 20px rgba(var(--mg-primary-rgb),.55),0 0 28px rgba(var(--mg-accent-rgb),.55),0 0 0 1px #ffffff4d inset;animation:mg-pulse-glow 3.6s ease-in-out infinite}.hero-right[data-v-7b6c88b6]{position:relative;align-self:stretch;min-height:280px;display:flex;align-items:center;justify-content:center}.hero-glow[data-v-7b6c88b6]{position:absolute;inset:10% 5%;background:radial-gradient(ellipse at 30% 40%,rgba(var(--mg-primary-hover-rgb),.55) 0%,transparent 60%),radial-gradient(ellipse at 70% 60%,rgba(var(--mg-accent-rgb),.3) 0%,transparent 65%);filter:blur(36px);pointer-events:none}.hero-scene[data-v-7b6c88b6]{position:relative;width:100%;height:auto;max-height:320px;filter:drop-shadow(0 12px 32px rgba(var(--mg-primary-rgb),.45))}.hero-scene .agv-1[data-v-7b6c88b6]{animation:agv-roll-7b6c88b6 6s ease-in-out infinite}.hero-scene .agv-2[data-v-7b6c88b6]{animation:agv-roll-7b6c88b6 8s ease-in-out infinite reverse}.hero-scene .float-data[data-v-7b6c88b6]{animation:float-bob-7b6c88b6 4.5s ease-in-out infinite}.hero-scene .float-data[data-v-7b6c88b6]:nth-child(odd){animation-delay:-2.2s}@keyframes agv-roll-7b6c88b6{0%,to{transform:translate(0)}50%{transform:translate(-20px)}}@keyframes float-bob-7b6c88b6{0%,to{transform:translate(360px,110px)}50%{transform:translate(360px,100px)}}.status-bar[data-v-7b6c88b6]{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 20px;border-radius:12px;background:linear-gradient(135deg,#fff,#fbf9ff);border:1px solid #ddd5ec;border-left:3px solid #7c3aed;box-shadow:0 1px 2px #2d1b690d,0 8px 22px #6c47c81a;color:#1a0f3d;font-size:13px}.status-left[data-v-7b6c88b6],.status-right[data-v-7b6c88b6]{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.status-conn[data-v-7b6c88b6]{display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border-radius:999px;background:#c4b5fd;border:1px solid #8b6ff0;font-weight:600;letter-spacing:.4px;font-size:12px;box-shadow:inset 0 1px #ffffff8c,0 1px 3px #7c3aed26}.status-conn.success[data-v-7b6c88b6]{color:var(--mg-status-success);background:rgba(var(--mg-status-success-rgb),.32);border-color:rgba(var(--mg-status-success-rgb),.7);box-shadow:inset 0 1px #ffffff8c,0 1px 3px rgba(var(--mg-status-success-rgb),.25)}.status-conn.warning[data-v-7b6c88b6]{color:var(--mg-status-warning);background:rgba(var(--mg-status-warning-rgb),.32);border-color:rgba(var(--mg-status-warning-rgb),.7);box-shadow:inset 0 1px #ffffff8c,0 1px 3px rgba(var(--mg-status-warning-rgb),.25)}.status-conn.danger[data-v-7b6c88b6]{color:var(--mg-status-danger);background:rgba(var(--mg-status-danger-rgb),.32);border-color:rgba(var(--mg-status-danger-rgb),.7);box-shadow:inset 0 1px #ffffff8c,0 1px 3px rgba(var(--mg-status-danger-rgb),.25)}.status-divider[data-v-7b6c88b6]{width:1px;height:14px;background:#a78bfa}.status-stat[data-v-7b6c88b6]{display:inline-flex;align-items:center;gap:8px;padding:4px 10px;border-radius:999px;background:#c8b8f5;border:1px solid #9d86e6;letter-spacing:.4px;box-shadow:inset 0 1px #ffffff8c,0 1px 3px #7c3aed1f}.status-stat-label[data-v-7b6c88b6]{color:#4a3a6d;font-size:12px;font-weight:600}.status-stat-value[data-v-7b6c88b6]{color:#1f0d54;font-weight:700;font-size:14px}.status-stat-value.is-danger[data-v-7b6c88b6]{color:var(--mg-status-danger)}.status-stat-total[data-v-7b6c88b6]{font-size:12px;color:#9b8eb8;font-weight:500}.bento-grid[data-v-7b6c88b6]{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:minmax(0,auto);gap:16px}.bento[data-v-7b6c88b6]{position:relative;border-radius:14px;background:#fff;border:1px solid #e2dbf0;box-shadow:0 1px 2px #2d1b690d,0 10px 26px #6c47c81a;color:#2d1b69;transition:transform .25s cubic-bezier(.25,.8,.25,1),box-shadow .25s,border-color .25s;overflow:hidden}.bento[data-v-7b6c88b6]:hover{transform:translateY(-2px);border-color:#c4b5fd;box-shadow:0 4px 14px #2d1b691a,0 18px 40px #6c47c829}.bento[data-v-7b6c88b6] .el-card{background:transparent!important;border:none!important;box-shadow:none!important;color:inherit;height:100%}.bento[data-v-7b6c88b6] .el-card__header{background:transparent!important;border-bottom:1px solid #f0eaf6!important;padding:14px 18px}.bento[data-v-7b6c88b6] .el-card__body{padding:16px 18px}.card-head[data-v-7b6c88b6]{display:flex;align-items:center;justify-content:space-between}.card-title[data-v-7b6c88b6]{display:inline-flex;align-items:center;gap:8px;color:#2d1b69;font-size:14px;font-weight:600;letter-spacing:.4px}.card-title .el-icon[data-v-7b6c88b6]{color:#7c3aed}.card-tip[data-v-7b6c88b6]{font-size:12px;color:#6b5b8e;letter-spacing:.3px;font-weight:500}.more-link[data-v-7b6c88b6]{color:#6b5b8e!important;font-size:12.5px}.more-link[data-v-7b6c88b6]:hover{color:#7c3aed!important}.bento-kpi[data-v-7b6c88b6]{grid-column:span 2;padding:16px 18px 14px;display:flex;flex-direction:column;justify-content:space-between;min-height:116px}.kpi-accent[data-v-7b6c88b6]{position:absolute;top:0;left:0;width:100%;height:3px;background:linear-gradient(90deg,var(--mg-primary-hover),var(--mg-accent) 50%,transparent);opacity:.85}.kpi-accent.tone-info[data-v-7b6c88b6]{background:linear-gradient(90deg,var(--mg-status-info),rgba(var(--mg-status-info-rgb),.2) 80%,transparent)}.kpi-accent.tone-success[data-v-7b6c88b6]{background:linear-gradient(90deg,var(--mg-status-success),rgba(var(--mg-status-success-rgb),.2) 80%,transparent)}.kpi-accent.tone-warning[data-v-7b6c88b6]{background:linear-gradient(90deg,var(--mg-status-warning),rgba(var(--mg-status-warning-rgb),.2) 80%,transparent)}.kpi-accent.tone-danger[data-v-7b6c88b6]{background:linear-gradient(90deg,var(--mg-status-danger),rgba(var(--mg-status-danger-rgb),.2) 80%,transparent)}.kpi-accent.tone-idle[data-v-7b6c88b6]{background:linear-gradient(90deg,var(--mg-status-idle),rgba(var(--mg-status-idle-rgb),.2) 80%,transparent)}.kpi-body[data-v-7b6c88b6]{display:flex;flex-direction:column;gap:6px;z-index:1}.kpi-row1[data-v-7b6c88b6]{display:flex;align-items:center;gap:8px}.kpi-icon-sm[data-v-7b6c88b6]{color:var(--mg-text-muted)}.kpi-icon-sm.tone-info[data-v-7b6c88b6]{color:var(--mg-status-info)}.kpi-icon-sm.tone-success[data-v-7b6c88b6]{color:var(--mg-status-success)}.kpi-icon-sm.tone-warning[data-v-7b6c88b6]{color:var(--mg-status-warning)}.kpi-icon-sm.tone-danger[data-v-7b6c88b6]{color:var(--mg-status-danger)}.kpi-icon-sm.tone-idle[data-v-7b6c88b6]{color:var(--mg-status-idle)}.kpi-label[data-v-7b6c88b6]{font-size:12px;color:#6b5b8e;letter-spacing:.5px;font-weight:500}.kpi-row2[data-v-7b6c88b6]{display:flex;align-items:baseline;gap:8px}.kpi-value[data-v-7b6c88b6]{font-size:30px;font-weight:700;color:#1a0f3d;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;line-height:1.05;letter-spacing:-.5px}.kpi-trend[data-v-7b6c88b6]{display:inline-flex;align-items:center;gap:2px;font-size:11px;font-weight:600;padding:2px 6px;border-radius:999px}.kpi-trend.trend-up[data-v-7b6c88b6]{background:rgba(var(--mg-status-success-rgb),.16);color:var(--mg-status-success)}.kpi-trend.trend-down[data-v-7b6c88b6]{background:rgba(var(--mg-status-danger-rgb),.16);color:var(--mg-status-danger)}.kpi-trend.trend-flat[data-v-7b6c88b6]{background:rgba(var(--mg-status-idle-rgb),.16);color:var(--mg-status-idle)}.kpi-trend-text[data-v-7b6c88b6]{font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums}.kpi-spark[data-v-7b6c88b6]{position:absolute;left:0;right:0;bottom:0;height:32px;width:100%;pointer-events:none;opacity:.65}.bento-trend[data-v-7b6c88b6]{grid-column:span 8;min-height:280px;display:flex;flex-direction:column}.bento-trend[data-v-7b6c88b6] .el-card{display:flex;flex-direction:column}.bento-trend[data-v-7b6c88b6] .el-card__body{flex:1;display:flex;padding:14px 18px 18px}.trend-chart[data-v-7b6c88b6]{flex:1;width:100%;height:100%;min-height:220px}.bento-agv[data-v-7b6c88b6]{grid-column:span 4;min-height:280px}.bento-agv[data-v-7b6c88b6] .el-card__body{padding:14px 16px 18px}.mock-tag[data-v-7b6c88b6]{display:inline-block;margin-left:6px;padding:1px 6px;background:#f0eaf6;color:#7c3aed;border-radius:4px;font-size:10.5px;font-weight:600;letter-spacing:.3px;vertical-align:1px}.agv-row[data-v-7b6c88b6]{display:flex;align-items:center;gap:8px;min-height:220px}.agv-chart-wrap[data-v-7b6c88b6]{position:relative;width:170px;height:200px;flex-shrink:0}.agv-chart[data-v-7b6c88b6]{width:100%;height:100%}.agv-center[data-v-7b6c88b6]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;pointer-events:none}.agv-center-value[data-v-7b6c88b6]{font-size:28px;font-weight:700;color:#1a0f3d;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;line-height:1.05;letter-spacing:-.5px}.agv-center-label[data-v-7b6c88b6]{font-size:11px;color:#6b5b8e;font-weight:500;letter-spacing:.5px;margin-top:2px}.agv-legend[data-v-7b6c88b6]{flex:1;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.agv-legend li[data-v-7b6c88b6]{display:grid;grid-template-columns:12px 1fr auto auto;align-items:center;gap:8px;font-size:12.5px;color:#3d2b6e;padding:5px 8px;border-radius:6px;transition:background .2s}.agv-legend li[data-v-7b6c88b6]:hover{background:#f5f3ff}.agv-legend .legend-name[data-v-7b6c88b6]{color:#4a3d6e;font-weight:500}.agv-legend .legend-value[data-v-7b6c88b6]{font-weight:700;color:#1a0f3d;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;text-align:right;min-width:18px}.agv-legend .legend-pct[data-v-7b6c88b6]{font-size:11px;color:#9b8eb8;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;text-align:right;min-width:32px}.agv-legend .dot[data-v-7b6c88b6]{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 3px #0000000d}.bento-ratio[data-v-7b6c88b6]{grid-column:span 7}.ratio-track[data-v-7b6c88b6]{display:flex;width:100%;height:32px;border-radius:999px;overflow:hidden;background:#f0eaf6;border:1px solid #e8e1f0;margin-bottom:14px;box-shadow:inset 0 1px 2px #2d1b690a}.ratio-seg[data-v-7b6c88b6]{display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:700;letter-spacing:.4px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35);cursor:default;position:relative;transition:filter .2s}.ratio-seg[data-v-7b6c88b6]:hover{filter:brightness(1.1)}.ratio-seg.tone-info[data-v-7b6c88b6]{background:linear-gradient(180deg,var(--mg-status-info),rgba(var(--mg-status-info-rgb),.92))}.ratio-seg.tone-success[data-v-7b6c88b6]{background:linear-gradient(180deg,var(--mg-status-success),rgba(var(--mg-status-success-rgb),.92))}.ratio-seg.tone-warning[data-v-7b6c88b6]{background:linear-gradient(180deg,var(--mg-status-warning),rgba(var(--mg-status-warning-rgb),.92))}.ratio-seg.tone-idle[data-v-7b6c88b6]{background:linear-gradient(180deg,var(--mg-status-idle),rgba(var(--mg-status-idle-rgb),.92))}.ratio-seg-pct[data-v-7b6c88b6]{font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums}.ratio-legend[data-v-7b6c88b6]{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px 18px}.ratio-legend li[data-v-7b6c88b6]{display:flex;align-items:center;gap:8px;font-size:13px;color:#3d2b6e}.ratio-legend .dot[data-v-7b6c88b6]{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #fffffff2}.ratio-legend .dot.tone-info[data-v-7b6c88b6]{background:var(--mg-status-info)}.ratio-legend .dot.tone-success[data-v-7b6c88b6]{background:var(--mg-status-success)}.ratio-legend .dot.tone-warning[data-v-7b6c88b6]{background:var(--mg-status-warning)}.ratio-legend .dot.tone-idle[data-v-7b6c88b6]{background:var(--mg-status-idle)}.ratio-legend .legend-name[data-v-7b6c88b6]{flex:1;color:#6b5b8e;font-weight:500}.ratio-legend .legend-value[data-v-7b6c88b6]{font-weight:700;color:#1a0f3d;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums}.bento-todo[data-v-7b6c88b6]{grid-column:span 5}.bento-todo[data-v-7b6c88b6] .el-card__body{padding-top:8px}.todo-tabs[data-v-7b6c88b6] .el-tabs__header{margin-bottom:8px}.todo-tabs[data-v-7b6c88b6] .el-tabs__nav-wrap:after{display:none}.todo-tabs[data-v-7b6c88b6] .el-tabs__item{color:#6b5b8e!important;font-weight:500}.todo-tabs[data-v-7b6c88b6] .el-tabs__item:hover{color:#7c3aed!important}.todo-tabs[data-v-7b6c88b6] .el-tabs__item.is-active{color:#7c3aed!important;font-weight:700}.todo-tabs[data-v-7b6c88b6] .el-tabs__active-bar{background-color:#7c3aed!important;height:3px!important;border-radius:2px}.tab-label[data-v-7b6c88b6]{display:inline-flex;align-items:center;gap:6px;font-size:13px}.tab-count[data-v-7b6c88b6]{display:inline-flex;align-items:center;justify-content:center;font-style:normal;min-width:20px;height:18px;padding:0 6px;border-radius:999px;font-size:11px;font-weight:700;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums}.tab-count.danger[data-v-7b6c88b6]{background:rgba(var(--mg-status-danger-rgb),.18);color:var(--mg-status-danger);border:1px solid rgba(var(--mg-status-danger-rgb),.4)}.tab-count.warning[data-v-7b6c88b6]{background:rgba(var(--mg-status-warning-rgb),.18);color:var(--mg-status-warning);border:1px solid rgba(var(--mg-status-warning-rgb),.4)}.tab-count.info[data-v-7b6c88b6]{background:rgba(var(--mg-status-info-rgb),.18);color:var(--mg-status-info);border:1px solid rgba(var(--mg-status-info-rgb),.4)}.tab-count.success[data-v-7b6c88b6]{background:rgba(var(--mg-status-success-rgb),.18);color:var(--mg-status-success);border:1px solid rgba(var(--mg-status-success-rgb),.4)}.empty-pane[data-v-7b6c88b6]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 0 12px;color:#6b5b8e;font-size:13px}.empty-pane p[data-v-7b6c88b6]{margin:6px 0 0;font-weight:500}.todo-list[data-v-7b6c88b6]{list-style:none;padding:0 4px 0 0;margin:0;display:flex;flex-direction:column;gap:8px;max-height:220px;overflow-y:auto}.todo-list li[data-v-7b6c88b6]{display:grid;grid-template-columns:90px 1fr auto;gap:12px;align-items:center;padding:10px 12px;background:#faf7fd;border:1px solid #f0eaf6;border-radius:10px;font-size:13px;color:#2d1b69;transition:background .2s,border-color .2s,transform .2s,box-shadow .2s}.todo-list li[data-v-7b6c88b6]:hover{background:#f5f3ff;border-color:#c4b5fd;transform:translate(2px);box-shadow:0 2px 6px #7c3aed14}.todo-text[data-v-7b6c88b6]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.todo-pill[data-v-7b6c88b6]{text-align:center;font-size:11px;padding:3px 8px;border-radius:999px;letter-spacing:.4px;font-weight:700}.todo-pill.danger[data-v-7b6c88b6]{background:rgba(var(--mg-status-danger-rgb),.1);color:var(--mg-status-danger);border:1px solid rgba(var(--mg-status-danger-rgb),.32)}.todo-pill.warning[data-v-7b6c88b6]{background:rgba(var(--mg-status-warning-rgb),.1);color:var(--mg-status-warning);border:1px solid rgba(var(--mg-status-warning-rgb),.32)}.todo-pill.info[data-v-7b6c88b6]{background:rgba(var(--mg-status-info-rgb),.1);color:var(--mg-status-info);border:1px solid rgba(var(--mg-status-info-rgb),.32)}.todo-pill.success[data-v-7b6c88b6]{background:rgba(var(--mg-status-success-rgb),.1);color:var(--mg-status-success);border:1px solid rgba(var(--mg-status-success-rgb),.32)}.todo-time[data-v-7b6c88b6]{color:#9b8eb8;font-size:11.5px;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;font-weight:500}@media (max-width: 1440px){.bento-kpi[data-v-7b6c88b6]{grid-column:span 3}.bento-trend[data-v-7b6c88b6]{grid-column:span 8}.bento-agv[data-v-7b6c88b6]{grid-column:span 4}.bento-ratio[data-v-7b6c88b6]{grid-column:span 7}.bento-todo[data-v-7b6c88b6]{grid-column:span 5}}@media (max-width: 1280px){.hero-banner[data-v-7b6c88b6]{grid-template-columns:1fr 380px}.hero-right[data-v-7b6c88b6]{min-height:240px}.bento-kpi[data-v-7b6c88b6]{grid-column:span 4}.bento-trend[data-v-7b6c88b6]{grid-column:span 12}.bento-agv[data-v-7b6c88b6],.bento-ratio[data-v-7b6c88b6]{grid-column:span 6}.bento-todo[data-v-7b6c88b6]{grid-column:span 12}}@media (max-width: 1024px){.status-bar[data-v-7b6c88b6]{flex-wrap:wrap}.hero-banner[data-v-7b6c88b6]{grid-template-columns:1fr}.hero-right[data-v-7b6c88b6]{display:none}.bento-kpi[data-v-7b6c88b6]{grid-column:span 6}.bento-agv[data-v-7b6c88b6],.bento-ratio[data-v-7b6c88b6]{grid-column:span 12}}@media (max-width: 720px){.quick-grid[data-v-7b6c88b6]{grid-template-columns:repeat(2,1fr)}.bento-kpi[data-v-7b6c88b6]{grid-column:span 12}.agv-row[data-v-7b6c88b6]{flex-direction:column;align-items:stretch}.agv-chart[data-v-7b6c88b6]{width:100%;height:220px}}:root[data-theme=industrial-purple] .status-bar[data-v-7b6c88b6]{background:linear-gradient(135deg,#26184ef0,#140c30f7);border-color:rgba(var(--mg-accent-rgb),.38);border-left-color:var(--mg-accent);box-shadow:0 4px 16px #00000061,0 0 0 1px #ffffff0f inset,0 1px #ffffff14 inset;backdrop-filter:blur(12px) saturate(140%);-webkit-backdrop-filter:blur(12px) saturate(140%);color:#f4eeff}:root[data-theme=industrial-purple] .status-conn[data-v-7b6c88b6]{background:rgba(var(--mg-primary-hover-rgb),.42);border-color:rgba(var(--mg-accent-rgb),.45);color:#f4eeff;box-shadow:inset 0 1px #ffffff1a,0 1px 4px #00000047}:root[data-theme=industrial-purple] .status-conn.success[data-v-7b6c88b6]{color:#86efac;background:rgba(var(--mg-status-success-rgb),.28);border-color:rgba(var(--mg-status-success-rgb),.58);box-shadow:inset 0 1px #ffffff1f,0 1px 4px rgba(var(--mg-status-success-rgb),.3)}:root[data-theme=industrial-purple] .status-conn.warning[data-v-7b6c88b6]{color:#fcd34d;background:rgba(var(--mg-status-warning-rgb),.28);border-color:rgba(var(--mg-status-warning-rgb),.58)}:root[data-theme=industrial-purple] .status-conn.danger[data-v-7b6c88b6]{color:#fca5a5;background:rgba(var(--mg-status-danger-rgb),.28);border-color:rgba(var(--mg-status-danger-rgb),.58)}:root[data-theme=industrial-purple] .status-stat[data-v-7b6c88b6]{background:rgba(var(--mg-primary-hover-rgb),.35);border-color:rgba(var(--mg-accent-rgb),.38);box-shadow:inset 0 1px #ffffff14,0 1px 3px #00000038}:root[data-theme=industrial-purple] .status-divider[data-v-7b6c88b6]{background:rgba(var(--mg-accent-rgb),.48)}:root[data-theme=industrial-purple] .status-stat-label[data-v-7b6c88b6]{color:#ffffffd1}:root[data-theme=industrial-purple] .status-stat-value[data-v-7b6c88b6]{color:#fff}:root[data-theme=industrial-purple] .status-stat-total[data-v-7b6c88b6]{color:#ffffff9e}:root[data-theme=industrial-purple] .status-stat-value.is-danger[data-v-7b6c88b6]{color:#fca5a5}:root[data-theme=industrial-purple] .bento[data-v-7b6c88b6]{background:linear-gradient(135deg,#26184ec7,#140c30db);border-color:rgba(var(--mg-accent-rgb),.16);box-shadow:0 10px 28px #00000073,0 0 22px rgba(var(--mg-primary-rgb),.16),0 0 0 1px #ffffff0a inset,0 1px #ffffff1f inset;backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);color:#fff}:root[data-theme=industrial-purple] .bento[data-v-7b6c88b6]:hover{border-color:rgba(var(--mg-accent-rgb),.45);box-shadow:0 18px 40px #0000008c,0 0 38px rgba(var(--mg-primary-hover-rgb),.32),0 0 0 1px rgba(var(--mg-accent-rgb),.25) inset,0 1px #ffffff2e inset}:root[data-theme=industrial-purple] .bento[data-v-7b6c88b6] .el-card__header{border-bottom-color:rgba(var(--mg-accent-rgb),.14)!important}:root[data-theme=industrial-purple] .card-title[data-v-7b6c88b6]{color:#fff}:root[data-theme=industrial-purple] .card-title .el-icon[data-v-7b6c88b6]{color:var(--mg-accent)}:root[data-theme=industrial-purple] .card-tip[data-v-7b6c88b6]{color:#ffffffb3}:root[data-theme=industrial-purple] .more-link[data-v-7b6c88b6]{color:#ffffffb3!important}:root[data-theme=industrial-purple] .more-link[data-v-7b6c88b6]:hover{color:var(--mg-accent)!important}:root[data-theme=industrial-purple] .kpi-label[data-v-7b6c88b6]{color:#ffffffb8}:root[data-theme=industrial-purple] .kpi-value[data-v-7b6c88b6]{color:#fff;text-shadow:0 0 18px rgba(var(--mg-primary-hover-rgb),.35)}:root[data-theme=industrial-purple] .agv-center-value[data-v-7b6c88b6]{color:#fff;text-shadow:0 0 18px rgba(var(--mg-primary-hover-rgb),.45)}:root[data-theme=industrial-purple] .agv-center-label[data-v-7b6c88b6]{color:#ffffffb8}:root[data-theme=industrial-purple] .agv-legend li[data-v-7b6c88b6]{color:#f4eeff}:root[data-theme=industrial-purple] .agv-legend li[data-v-7b6c88b6]:hover{background:rgba(var(--mg-accent-rgb),.1)}:root[data-theme=industrial-purple] .agv-legend .legend-name[data-v-7b6c88b6]{color:#ffffffc7}:root[data-theme=industrial-purple] .agv-legend .legend-value[data-v-7b6c88b6]{color:#fff}:root[data-theme=industrial-purple] .agv-legend .legend-pct[data-v-7b6c88b6]{color:#ffffff8c}:root[data-theme=industrial-purple] .agv-legend .dot[data-v-7b6c88b6]{box-shadow:0 0 8px currentColor}:root[data-theme=industrial-purple] .mock-tag[data-v-7b6c88b6]{background:rgba(var(--mg-accent-rgb),.18);color:var(--mg-accent)}:root[data-theme=industrial-purple] .ratio-track[data-v-7b6c88b6]{background:#ffffff0a;border-color:#ffffff14}:root[data-theme=industrial-purple] .ratio-legend li[data-v-7b6c88b6]{color:#f4eeff}:root[data-theme=industrial-purple] .ratio-legend .legend-name[data-v-7b6c88b6]{color:#ffffffb8}:root[data-theme=industrial-purple] .ratio-legend .legend-value[data-v-7b6c88b6]{color:#fff}:root[data-theme=industrial-purple] .ratio-legend .dot[data-v-7b6c88b6]{box-shadow:0 0 8px currentColor}:root[data-theme=industrial-purple] .todo-tabs[data-v-7b6c88b6] .el-tabs__item{color:#ffffffa6!important}:root[data-theme=industrial-purple] .todo-tabs[data-v-7b6c88b6] .el-tabs__item:hover,:root[data-theme=industrial-purple] .todo-tabs[data-v-7b6c88b6] .el-tabs__item.is-active{color:#fff!important}:root[data-theme=industrial-purple] .todo-tabs[data-v-7b6c88b6] .el-tabs__active-bar{background-color:var(--mg-accent)!important}:root[data-theme=industrial-purple] .empty-pane[data-v-7b6c88b6]{color:#ffffffb3}:root[data-theme=industrial-purple] .todo-list li[data-v-7b6c88b6]{background:#ffffff08;border-color:#ffffff0f;color:#f4eeff}:root[data-theme=industrial-purple] .todo-list li[data-v-7b6c88b6]:hover{background:rgba(var(--mg-accent-rgb),.08);border-color:rgba(var(--mg-accent-rgb),.3)}:root[data-theme=industrial-purple] .todo-time[data-v-7b6c88b6]{color:#ffffff8c} diff --git a/MiGu.Server/wwwroot/assets/DashboardView-C5o_Ttf4.js b/MiGu.Server/wwwroot/assets/DashboardView-C5o_Ttf4.js deleted file mode 100644 index 32c5e48..0000000 --- a/MiGu.Server/wwwroot/assets/DashboardView-C5o_Ttf4.js +++ /dev/null @@ -1,60 +0,0 @@ -import{aI as iL,bh as yr,b7 as oL,b2 as sL,b8 as lL,aE as Kt,aB as $,b3 as mr,bq as Wt,aG as Da,ai as Ma,bj as La,aF as pm,aH as me,bJ as fe,ax as _e,t as uL,bx as fL,b9 as $t,b4 as Yh,aC as $h,bm as gm,Q as hL,bt as Vl,bs as vL,bC as ym,aD as mm,bb as cL,ac as dL,a9 as pL,ap as gL,T as yL,bo as mL,ba as Xh,ao as _L,br as SL,bH as xL,aY as bL,bc as wL,X as TL,aA as AL,az as CL,aq as DL,aX as ML,ak as LL}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import{b as IL,c as PL,l as RL,a as EL}from"./projection-BMms551H.js";import"./reflection-B_glb6eT.js";/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var yd=function(r,e){return yd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},yd(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");yd(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var kL=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),OL=function(){function r(){this.browser=new kL,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),xt=new OL;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(xt.wxa=!0,xt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?xt.worker=!0:!xt.hasGlobalWindow||"Deno"in window?(xt.node=!0,xt.svgSupported=!0):NL(navigator.userAgent,xt);function NL(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var og=12,Tw="sans-serif",rn=og+"px "+Tw,BL=20,VL=100,zL="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function GL(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function sI(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?bm(s,o):bm(o,s))}function Pw(r){return r.nodeName.toUpperCase()==="CANVAS"}var lI=/([&<>"'])/g,uI={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ie(r){return r==null?"":(r+"").replace(lI,function(e,t){return uI[t]})}var fI=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qh=[],hI=xt.browser.firefox&&+xt.browser.version.split(".")[0]<39;function Td(r,e,t,a){return t=t||{},a?Tm(r,e,t):hI&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Tm(r,e,t),t}function Tm(r,e,t){if(xt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(Pw(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(wd(qh,r,a,n)){t.zrX=qh[0],t.zrY=qh[1];return}}t.zrX=t.zrY=0}function cg(r){return r||window.event}function ar(r,e,t){if(e=cg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Td(r,o,e,t)}else{Td(r,e,e,t);var i=vI(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&fI.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function vI(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Ad(r,e,t,a){r.addEventListener(e,t,a)}function cI(r,e,t,a){r.removeEventListener(e,t,a)}var pa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Am(r){return r.which===2||r.which===3}var dI=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=Cm(a)/Cm(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=pI(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function qe(){return[1,0,0,1,0,0]}function oh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function dg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function ha(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Kr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function _i(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-a[0])+f*(u-a[1])+a[0],r[5]=h*(u-a[1])-f*(o-a[0])+a[1],r}function pg(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function To(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function gI(r){var e=qe();return dg(e,r),e}var pt=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}(),Gl=Math.min,Fl=Math.max,dn=new pt,pn=new pt,gn=new pt,yn=new pt,Vo=new pt,zo=new pt,gt=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Gl(e.x,this.x),a=Gl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Fl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Fl(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=qe();return Kr(i,i,[-t.x,-t.y]),pg(i,i,[a,n]),Kr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(id&&(d=_,pd&&(d=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}dn.x=gn.x=t.x,dn.y=yn.y=t.y,pn.x=yn.x=t.x+t.width,pn.y=gn.y=t.y+t.height,dn.transform(a),yn.transform(a),pn.transform(a),gn.transform(a),e.x=Gl(dn.x,pn.x,gn.x,yn.x),e.y=Gl(dn.y,pn.y,gn.y,yn.y);var l=Fl(dn.x,pn.x,gn.x,yn.x),u=Fl(dn.y,pn.y,gn.y,yn.y);e.width=l-e.x,e.height=u-e.y},r}(),Rw="silent";function yI(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:mI}}function mI(){pa(this.event)}var _I=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(dr),Go=function(){function r(e,t){this.x=e,this.y=t}return r}(),SI=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Jh=new gt(0,0,0,0),Ew=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Go(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new _I,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new aI(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(D(SI,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=kw(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Go(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Go(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=yI(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Go(t,a);if(Dm(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new gt(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Jh.copy(v.getBoundingRect()),v.transform&&Jh.applyTransform(v.transform),Jh.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function xI(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?Rw:!0}return!1}function Dm(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=xI(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==Rw)){e.target=o;break}}}function kw(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var Ow=32,Fo=7;function bI(r){for(var e=0;r>=Ow;)e|=r&1,r>>=1;return r+e}function Mm(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function wI(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Qh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function jh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function TI(r,e){var t=Fo,a,n,i=0,o=[];a=[],n=[];function s(c,d){a[i]=c,n[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]=Fo||w>=Fo);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,A=0,C=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,A=0,--d===0){C=!0;break}}else if(r[S--]=o[_--],A++,T=0,--g===1){C=!0;break}while((T|A)=0;y--)r[x+y]=r[b+y];if(d===0){C=!0;break}}if(r[S--]=o[_--],--g===1){C=!0;break}if(A=g-Qh(r[m],o,0,g,g-1,e),A!==0){for(S-=A,_-=A,g-=A,x=S+1,b=_+1,y=0;y=Fo||A>=Fo);if(C)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),Lm(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var Xe=1,cs=2,qi=4,Im=!1;function tv(){Im||(Im=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Pm(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var AI=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Pm}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(tv(),f.z=0),isNaN(f.z2)&&(tv(),f.z2=0),isNaN(f.zlevel)&&(tv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),ff;ff=xt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Cs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Cs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Cs.bounceIn(r*2)*.5:Cs.bounceOut(r*2-1)*.5+.5}},Hl=Math.pow,Qa=Math.sqrt,hf=1e-8,Nw=1e-4,Rm=Qa(3),Wl=1/3,Fr=mi(),sr=mi(),no=mi();function $a(r){return r>-hf&&rhf||r<-hf}function ne(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function Em(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function vf(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if($a(f)&&$a(h))if($a(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if($a(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y)}else if(p>0){var m=Qa(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Hl(-_,Wl):_=Hl(_,Wl),S<0?S=-Hl(-S,Wl):S=Hl(S,Wl);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var b=(2*f*s-3*o*h)/(2*Qa(f*f*f)),x=Math.acos(b)/3,w=Qa(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+Rm*Math.sin(x)))/(3*o),A=(-s+w*(T-Rm*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y),A>=0&&A<=1&&(i[c++]=A)}}return c}function Vw(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if($a(o)){if(Bw(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if($a(f))n[0]=-i/(2*o);else if(f>0){var h=Qa(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function nn(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function zw(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,y;Fr[0]=l,Fr[1]=u;for(var m=0;m<1;m+=.05)sr[0]=ne(r,t,n,o,m),sr[1]=ne(e,a,i,s,m),g=ri(Fr,sr),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if($a(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Qa(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Gw(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Ws(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Fw(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Fr[0]=o,Fr[1]=s;for(var v=0;v<1;v+=.05){sr[0]=he(r,t,n,v),sr[1]=he(e,a,i,v);var c=ri(Fr,sr);c=0&&c=1?1:vf(0,a,i,1,l,s)&&ne(0,n,o,1,s[0])}}}var II=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||qt,this.ondestroy=e.ondestroy||qt,this.onrestart=e.onrestart||qt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=nt(e)?e:Cs[e]||gg(e)},r}(),Hw=function(){function r(e){this.value=e}return r}(),PI=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Hw(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),gl=function(){function r(e){this._list=new PI,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Hw(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),km={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Dr(r){return r=Math.round(r),r<0?0:r>255?255:r}function RI(r){return r=Math.round(r),r<0?0:r>360?360:r}function Us(r){return r<0?0:r>1?1:r}function ev(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Dr(parseFloat(e)/100*255):Dr(parseInt(e,10))}function ai(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Us(parseFloat(e)/100):Us(parseFloat(e))}function rv(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Xa(r,e,t){return r+(e-r)*t}function rr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Dd(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Ww=new gl(20),Ul=null;function Mi(r,e){Ul&&Dd(Ul,e),Ul=Ww.put(r,Ul||e.slice())}function Ke(r,e){if(r){e=e||[];var t=Ww.get(r);if(t)return Dd(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in km)return Dd(e,km[a]),Mi(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){rr(e,0,0,0,1);return}return rr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Mi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){rr(e,0,0,0,1);return}return rr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Mi(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?rr(e,+u[0],+u[1],+u[2],1):rr(e,0,0,0,1);f=ai(u.pop());case"rgb":if(u.length>=3)return rr(e,ev(u[0]),ev(u[1]),ev(u[2]),u.length===3?f:ai(u[3])),Mi(r,e),e;rr(e,0,0,0,1);return;case"hsla":if(u.length!==4){rr(e,0,0,0,1);return}return u[3]=ai(u[3]),Md(u,e),Mi(r,e),e;case"hsl":if(u.length!==3){rr(e,0,0,0,1);return}return Md(u,e),Mi(r,e),e;default:return}}rr(e,0,0,0,1)}}function Md(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=ai(r[1]),n=ai(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],rr(e,Dr(rv(o,i,t+1/3)*255),Dr(rv(o,i,t)*255),Dr(rv(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function EI(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Ld(r,e){var t=Ke(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return va(t,t.length===4?"rgba":"rgb")}}function av(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Dr(Xa(o[0],s[0],l)),t[1]=Dr(Xa(o[1],s[1],l)),t[2]=Dr(Xa(o[2],s[2],l)),t[3]=Us(Xa(o[3],s[3],l)),t}}function kI(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Ke(e[n]),s=Ke(e[i]),l=a-n,u=va([Dr(Xa(o[0],s[0],l)),Dr(Xa(o[1],s[1],l)),Dr(Xa(o[2],s[2],l)),Us(Xa(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Ds(r,e,t,a){var n=Ke(r);if(r)return n=EI(n),e!=null&&(n[0]=RI(e)),t!=null&&(n[1]=ai(t)),a!=null&&(n[2]=ai(a)),va(Md(n),"rgba")}function cf(r,e){var t=Ke(r);if(t&&e!=null)return t[3]=Us(e),va(t,"rgba")}function va(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function df(r,e){var t=Ke(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Om=new gl(100);function Id(r){if(K(r)){var e=Om.get(r);return e||(e=Ld(r,-.1),Om.put(r,e)),e}else if(nh(r)){var t=V({},r);return t.colorStops=H(r.colorStops,function(a){return{offset:a.offset,color:Ld(a.color,-.1)}}),t}return r}var pf=Math.round;function Ys(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Ke(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Nm=1e-4;function Za(r){return r-Nm}function Yl(r){return pf(r*1e3)/1e3}function Pd(r){return pf(r*1e4)/1e4}function OI(r){return"matrix("+Yl(r[0])+","+Yl(r[1])+","+Yl(r[2])+","+Yl(r[3])+","+Pd(r[4])+","+Pd(r[5])+")"}var NI={left:"start",right:"end",center:"middle",middle:"middle"};function BI(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function VI(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function zI(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Uw(r){return r&&!!r.image}function GI(r){return r&&!!r.svgElement}function yg(r){return Uw(r)||GI(r)}function Yw(r){return r.type==="linear"}function $w(r){return r.type==="radial"}function Xw(r){return r&&(r.type==="linear"||r.type==="radial")}function sh(r){return"url(#"+r+")"}function Zw(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function qw(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Fu,n=vt(r.scaleX,1),i=vt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+pf(o*Fu)+"deg, "+pf(s*Fu)+"deg)"),l.join(" ")}var FI=function(){return xt.hasGlobalWindow&&nt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Rd=Array.prototype.slice;function oa(r,e,t){return(e-r)*t+r}function nv(r,e,t,a){for(var n=e.length,i=0;ia?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=Vm,l=t;if(Te(t)){var u=YI(t);s=u,(u===1&&!Dt(t[0])||u===2&&!Dt(t[0][0]))&&(o=!0)}else if(Dt(t)&&!Fs(t))s=Xl;else if(K(t))if(!isNaN(+t))s=Xl;else{var f=Ke(t);f&&(l=f,s=ds)}else if(nh(t)){var h=V({},l);h.colorStops=H(t.colorStops,function(c){return{offset:c.offset,color:Ke(c.color)}}),Yw(t)?s=Ed:$w(t)&&(s=kd),l=h}i===0?this.valType=s:(s!==this.valType||s===Vm)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=nt(a)?a:Cs[a]||gg(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Zl(n),u=zm(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?Ho:e[l];if((Zl(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:d.rawValue;else if(Zl(i))i===$u?nv(m,c[n],d[n],y):HI(m,c[n],d[n],y);else if(zm(i)){var _=c[n],S=d[n],b=i===Ed;e[l]={type:b?"linear":"radial",x:oa(_.x,S.x,y),y:oa(_.y,S.y,y),colorStops:H(_.colorStops,function(w,T){var A=S.colorStops[T];return{offset:oa(w.offset,A.offset,y),color:Yu(nv([],w.color,A.color,y))}}),global:S.global},b?(e[l].x2=oa(_.x2,S.x2,y),e[l].y2=oa(_.y2,S.y2,y)):e[l].r=oa(_.r,S.r,y)}else if(u)nv(m,c[n],d[n],y),a||(e[l]=Yu(m));else{var x=oa(c[n],d[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Xl?e[a]=e[a]+n:t===ds?(Ke(e[a],Ho),$l(Ho,Ho,n,1),e[a]=Yu(Ho)):t===$u?$l(e[a],e[a],n,1):t===Kw&&Bm(e[a],e[a],n,1)},r}(),mg=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){ug("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,wt(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Ms(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ms(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function to(){return new Date().getTime()}var XI=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=to()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(ff(a),!t._paused&&t.update())}ff(a)},e.prototype.start=function(){this._running||(this._time=to(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=to(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=to()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new mg(t,a.loop);return this.addAnimator(n),n},e}(dr),ZI=300,iv=xt.domSupported,ov=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=H(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Gm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Fm=!1;function Od(r){var e=r.pointerType;return e==="pen"||e==="touch"}function qI(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function sv(r){r&&(r.zrByTouch=!0)}function KI(r,e){return ar(r.dom,new JI(r,e),!0)}function Jw(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var JI=function(){function r(e,t){this.stopPropagation=qt,this.stopImmediatePropagation=qt,this.preventDefault=qt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),br={mousedown:function(r){r=ar(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ar(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ar(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ar(this.dom,r);var e=r.toElement||r.relatedTarget;Jw(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Fm=!0,r=ar(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Fm||(r=ar(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ar(this.dom,r),sv(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),br.mousemove.call(this,r),br.mousedown.call(this,r)},touchmove:function(r){r=ar(this.dom,r),sv(r),this.handler.processGesture(r,"change"),br.mousemove.call(this,r)},touchend:function(r){r=ar(this.dom,r),sv(r),this.handler.processGesture(r,"end"),br.mouseup.call(this,r),+new Date-+this.__lastTouchMomentUm||r<-Um}var _n=[],Li=[],uv=qe(),fv=Math.abs,la=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return mn(this.rotation)||mn(this.x)||mn(this.y)||mn(this.scaleX-1)||mn(this.scaleY-1)||mn(this.skewX)||mn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(Wm(a),this.invTransform=null);return}a=a||qe(),t?this.getLocalTransform(a):Wm(a),e&&(t?ha(a,e,a):dg(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(_n);var a=_n[0]<0?-1:1,n=_n[1]<0?-1:1,i=((_n[0]-a)*t+a)/_n[0]||0,o=((_n[1]-n)*t+n)/_n[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||qe(),To(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||qe(),ha(Li,e.invTransform,t),t=Li);var a=this.originX,n=this.originY;(a||n)&&(uv[4]=a,uv[5]=n,ha(Li,t,uv),Li[4]-=a,Li[5]-=n,t=Li),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&pe(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&pe(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&fv(e[0]-1)>1e-10&&fv(e[3]-1)>1e-10?Math.sqrt(fv(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){jw(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-v*p*o,t[5]=-p*o-c*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&_i(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Jr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function jw(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function yf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=Lr(a[0],t.width),u+=Lr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var hv="__zr_normal__",vv=Jr.concat(["ignore"]),rP=qr(Jr,function(r,e){return r[e]=!0,r},{ignore:!1}),Ii={},aP=new gt(0,0,0,0),uh=function(){function r(e){this.id=Dw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=aP;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ii,a,f):yf(Ii,a,f),i.x=Ii.x,i.y=Ii.y,o=Ii.align,s=Ii.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Lr(h[0],f.width),c=Lr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Xe,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zd:Vd},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Ke(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,va(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(st(e))for(var a=e,n=wt(a),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(hv,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===hv,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(yt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){ug("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xe),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xe)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=yt(n,e),o=yt(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var v=0;v0||n.force&&!o.length){var T=void 0,A=void 0,C=void 0;if(s){A={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];A[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){C={};for(var S=0;S<_;S++){var y=p[S];C[y]=Ms(t[y]),iP(t,a,y)}}var b=new mg(t,!1,!1,h?Pt(d,function(L){return L.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,p),C&&b.whenWithKeys(0,C,p),b.whenWithKeys(u??500,s?A:a,p).delay(f||0),r.addAnimator(b,e),o.push(b)}}var ut=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=yt(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=yt(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function Z(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return K(r)?dP(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Xt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),rT),r=(+r).toFixed(e),t?r:+r}function hr(r){return r.sort(function(e,t){return e-t}),r}function Wr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return pP(r)}function pP(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function aT(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function gP(r,e){var t=qr(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=H(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=a*100,o=H(n,function(c){return Math.floor(c)}),s=qr(o,function(c,d){return c+d},0),l=H(n,function(c,d){return c-o[d]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return H(o,function(c){return c/a})}function yP(r,e){var t=Math.max(Wr(r),Wr(e)),a=r+e;return t>rT?a:Xt(a,t)}var qm=9007199254740991;function nT(r){var e=Math.PI*2;return(r%e+e)%e}function $s(r){return r>-Zm&&r=10&&e++,e}function iT(r,e){var t=_g(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function pv(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function Km(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a=0||i&&yt(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var WP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],UP=ci(WP),YP=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return UP(this,e,t)},r}(),Hd=new gl(50);function $P(r){if(typeof r=="string"){var e=Hd.get(r);return e&&e.image}else return r}function wg(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Hd.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!hh(e)&&i.pending.push(o)):(e=an.loadImage(r,t0,t0),e.__zrImageSrc=r,Hd.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function t0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Je(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function mT(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Je(e,n);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?ZP(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Je(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function ZP(r,e,t,a){for(var n=0,i=0,o=r.length;id&&u){var p=Math.floor(d/s);f=f||v.length>p,v=v.slice(0,p)}if(r&&i&&h!=null)for(var g=yT(h,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},m=0;ms&&yv(t,r.substring(s,u),e,o),yv(t,l[2],e,o,l[1]),s=gv.lastIndex}sn){var I=t.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,b,S),t.lines=t.lines.slice(0,m+1)):t.lines=t.lines.slice(0,m),t.isTruncated=t.isTruncated||t.lines.length0&&d+a.accumWidth>a.width&&(f=e.split(` -`),u=!0),a.accumWidth=d}else{var p=_T(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=e.split(` -`);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var tR=qr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function eR(r){return jP(r)?!!tR[r]:!0}function _T(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;ht:n+f+c>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):d?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Wd="__zr_style_"+Math.round(Math.random()*10),ni={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},vh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ni[Wd]=!0;var r0=["z","z2","invisible"],rR=["invisible"],cr=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=wt(t),n=0;n1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(ql[0]=xv(n)*t+r,ql[1]=Sv(n)*a+e,Kl[0]=xv(i)*t+r,Kl[1]=Sv(i)*a+e,u(s,ql,Kl),f(l,ql,Kl),n=n%xn,n<0&&(n=n+xn),i=i%xn,i<0&&(i=i+xn),n>i&&!o?i+=xn:nn&&(Jl[0]=xv(c)*t+r,Jl[1]=Sv(c)*a+e,u(s,Jl,s),f(l,Jl,l))}var Bt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bn=[],wn=[],Er=[],Ia=[],kr=[],Or=[],bv=Math.min,wv=Math.max,Tn=Math.cos,An=Math.sin,aa=Math.abs,Ud=Math.PI,za=Ud*2,Tv=typeof Float32Array<"u",Wo=[];function Av(r){var e=Math.round(r/Ud*1e8)/1e8;return e%2*Ud}function Tg(r,e){var t=Av(r[0]);t<0&&(t+=za);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=za?n=t+za:e&&t-n>=za?n=t-za:!e&&t>n?n=t+(za-Av(t-n)):e&&t0&&(this._ux=aa(a/gf/e)||0,this._uy=aa(a/gf/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Bt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=aa(e-this._xi),n=aa(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Bt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(Bt.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(Bt.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),Wo[0]=n,Wo[1]=i,Tg(Wo,o),n=Wo[0],i=Wo[1];var s=i-n;return this.addData(Bt.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=Tn(i)*a+e,this._yi=An(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(Bt.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Bt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Tv&&(this.data=new Float32Array(t));for(var a=0;af.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Er[0]=Er[1]=kr[0]=kr[1]=Number.MAX_VALUE,Ia[0]=Ia[1]=Or[0]=Or[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;oa||aa(_)>n||v===t-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Bt.C:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++],x=e[v++],w=e[v++];p=CI(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case Bt.Q:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++];p=MI(i,o,S,b,g,y,10),i=g,o=y;break}case Bt.A:var T=e[v++],A=e[v++],C=e[v++],M=e[v++],L=e[v++],I=e[v++],P=I+L;v+=1,d&&(s=Tn(L)*C+T,l=An(L)*M+A),p=wv(C,M)*bv(za,Math.abs(I)),i=Tn(P)*C+T,o=An(P)*M+A;break;case Bt.R:{s=i=e[v++],l=o=e[v++];var R=e[v++],E=e[v++];p=R*2+E*2;break}case Bt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,d,p,g=0,y=0,m,_=0,S,b;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*p,!m)))t:for(var x=0;x0&&(e.lineTo(S,b),_=0),w){case Bt.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case Bt.L:{h=a[x++],v=a[x++];var A=aa(h-u),C=aa(v-f);if(A>n||C>i){if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;e.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break t}g+=M}e.lineTo(h,v),u=h,f=v,_=0}else{var I=A*A+C*C;I>_&&(S=h,b=v,_=I)}break}case Bt.C:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++],O=a[x++],B=a[x++];if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;nn(u,P,E,O,L,bn),nn(f,R,N,B,L,wn),e.bezierCurveTo(bn[1],wn[1],bn[2],wn[2],bn[3],wn[3]);break t}g+=M}e.bezierCurveTo(P,R,E,N,O,B),u=O,f=B;break}case Bt.Q:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++];if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;Ws(u,P,E,L,bn),Ws(f,R,N,L,wn),e.quadraticCurveTo(bn[1],wn[1],bn[2],wn[2]);break t}g+=M}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case Bt.A:var G=a[x++],U=a[x++],X=a[x++],rt=a[x++],at=a[x++],W=a[x++],Y=a[x++],ft=!a[x++],tt=X>rt?X:rt,q=aa(X-rt)>.001,it=at+W,Q=!1;if(c){var M=d[y++];g+M>m&&(it=at+W*(m-g)/M,Q=!0),g+=M}if(q&&e.ellipse?e.ellipse(G,U,X,rt,Y,at,it,ft):e.arc(G,U,tt,at,it,ft),Q)break t;T&&(s=Tn(at)*X+G,l=An(at)*rt+U),u=Tn(it)*X+G,f=An(it)*rt+U;break;case Bt.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var F=a[x++],Lt=a[x++];if(c){var M=d[y++];if(g+M>m){var _t=m-g;e.moveTo(h,v),e.lineTo(h+bv(_t,F),v),_t-=F,_t>0&&e.lineTo(h+F,v+bv(_t,Lt)),_t-=Lt,_t>0&&e.lineTo(h+wv(F-_t,0),v+Lt),_t-=F,_t>0&&e.lineTo(h,v+wv(Lt-_t,0));break t}g+=M}e.rect(h,v,F,Lt);break;case Bt.Z:if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Bt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function Fa(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||or+s&&i>t+s||ie+h&&f>a+h&&f>i+h&&f>s+h||fr+h&&u>t+h&&u>n+h&&u>o+h||ue+u&&l>a+u&&l>i+u||lr+u&&s>t+u&&s>n+u||st||f+un&&(n+=Uo);var v=Math.atan2(l,s);return v<0&&(v+=Uo),v>=a&&v<=n||v+Uo>=a&&v+Uo<=n}function sa(r,e,t,a,n,i){if(i>e&&i>a||in?s:0}var Pa=jr.CMD,Cn=Math.PI*2,uR=1e-4;function fR(r,e){return Math.abs(r-e)e&&u>a&&u>i&&u>s||u1&&hR(),c=ne(e,a,i,s,ir[0]),v>1&&(d=ne(e,a,i,s,ir[1]))),v===2?ge&&s>a&&s>i||s=0&&u<=1){for(var f=0,h=he(e,a,i,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Me[0]=-l,Me[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Cn-1e-4){a=0,n=Cn;var f=i?1:-1;return o>=Me[0]+r&&o<=Me[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=Cn,n+=Cn);for(var v=0,c=0;c<2;c++){var d=Me[c];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=Cn+p),(p>=a&&p<=n||p+Cn>=a&&p+Cn<=n)&&(p>Math.PI/2&&p1&&(t||(s+=sa(l,u,f,h,a,n))),g&&(l=i[d],u=i[d+1],f=l,h=u),p){case Pa.M:f=i[d++],h=i[d++],l=f,u=h;break;case Pa.L:if(t){if(Fa(l,u,i[d],i[d+1],e,a,n))return!0}else s+=sa(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Pa.C:if(t){if(sR(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=vR(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Pa.Q:if(t){if(ST(l,u,i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=cR(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Pa.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],x=i[d++];d+=1;var w=!!(1-i[d++]);v=Math.cos(b)*_+y,c=Math.sin(b)*S+m,g?(f=v,h=c):s+=sa(l,u,v,c,a,n);var T=(a-y)*S/_+y;if(t){if(lR(y,m,S,b,b+x,w,e,T,n))return!0}else s+=dR(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case Pa.R:f=l=i[d++],h=u=i[d++];var A=i[d++],C=i[d++];if(v=f+A,c=h+C,t){if(Fa(f,h,v,h,e,a,n)||Fa(v,h,v,c,e,a,n)||Fa(v,c,f,c,e,a,n)||Fa(f,c,f,h,e,a,n))return!0}else s+=sa(v,h,v,c,a,n),s+=sa(f,c,f,h,a,n);break;case Pa.Z:if(t){if(Fa(l,u,f,h,e,a,n))return!0}else s+=sa(l,u,f,h,a,n);l=f,u=h;break}}return!t&&!fR(u,h)&&(s+=sa(l,u,f,h,a,n)||0),s!==0}function pR(r,e,t){return xT(r,0,!1,e,t)}function gR(r,e,t,a){return xT(r,e,!0,t,a)}var mf=ot({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ni),yR={style:ot({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},vh.style)},Cv=Jr.concat(["invisible","culling","z","z2","zlevel","parent"]),St=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Vd:a>.2?eP:zd}else if(t)return zd}return Vd},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(K(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=df(t,0)0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&qi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),gR(s,l/u,t,a)))return!0}if(this.hasFill())return pR(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=qi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:V(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&qi)},e.prototype.createStyle=function(t){return ih(mf,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=V({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=V({},n.shape),V(u,a.shape)):(u=V({},i?this.shape:n.shape),V(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=V({},this.shape);for(var f={},h=wt(u),v=0;v0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return ih(mR,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=yl(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(cr);ho.prototype.type="tspan";var _R=ot({x:0,y:0},ni),SR={style:ot({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},vh.style)};function xR(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var ce=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return ih(_R,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=xR(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return SR},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new gt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(cr);ce.prototype.type="image";function bR(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),f!==0&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var eo=Math.round;function bT(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(eo(a*2)===eo(n*2)&&(r.x1=r.x2=qn(a,s,!0)),eo(i*2)===eo(o*2)&&(r.y1=r.y2=qn(i,s,!0))),r}}function wT(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=qn(a,s,!0),r.y=qn(n,s,!0),r.width=Math.max(qn(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(qn(n+o,s,!1)-r.y,o===0?0:1)),r}}function qn(r,e,t){if(!e)return r;var a=eo(r*2);return(a+eo(e))%2===0?a/2:(a+(t?1:-1))/2}var wR=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),TR={},Tt=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new wR},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=wT(TR,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?bR(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(St);Tt.prototype.type="rect";var s0={fill:"#000"},l0=2,AR={style:ot({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},vh.style)},Ct=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=s0,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=x[I],P.align==="right");)this._placeToken(P,t,T,y,L,"right",_),A-=P.width,L-=P.width,I--;for(M+=(i-(M-g)-(m-L)-A)/2;C<=I;)P=x[C],this._placeToken(P,t,T,y,M+P.width/2,"center",_),M+=P.width,C++;y+=T}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=i+n/2;f==="top"?h=i+t.height/2:f==="bottom"&&(h=i+n-t.height/2);var v=!t.isLineHolder&&Dv(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,d=t.textPadding;d&&(o=d0(o,s,d),h-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(ho),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=c0("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=v0("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=l0,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||rn,g.opacity=Xr(u.opacity,a.opacity,1),f0(g,u),b&&(g.lineWidth=Xr(u.lineWidth,a.lineWidth,_),g.lineDash=vt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;p.setBoundingRect(new gt(ps(g.x,w,g.textAlign),Ki(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,d=this,p,g;if(v||t.lineHeight||u&&f){p=this._getOrCreateChild(Tt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=vt(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(ce),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=vt(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Xr(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return AT(t)&&(a=[t.fontStyle,t.fontWeight,TT(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Ar(a)||t.textFont||t.font},e}(cr),CR={left:!0,right:1,center:1},DR={top:1,bottom:1,middle:1},u0=["fontStyle","fontWeight","fontSize","fontFamily"];function TT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?og+"px":r+"px"}function f0(r,e){for(var t=0;t=0,i=!1;if(r instanceof St){var o=CT(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Pi(s)||Pi(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=V({},a),u=V({},u),u.fill=s):!Pi(u.fill)&&Pi(s)?(i=!0,a=V({},a),u=V({},u),u.fill=Id(s)):!Pi(u.stroke)&&Pi(l)&&(i||(a=V({},a),u=V({},u)),u.stroke=Id(l)),a.style=u}}if(a&&a.z2==null){i||(a=V({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??Co)}return a}function kR(r,e,t){if(t&&t.z2==null){t=V({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??LR)}return t}function OR(r,e,t){var a=yt(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:RR(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=V({},t),o=V({opacity:a?n:i.opacity*.1},o),t.style=o),t}function Mv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return ER(this,r,e,t);if(r==="blur")return OR(this,r,t);if(r==="select")return kR(this,r,t)}return t}function di(r){r.stateProxy=Mv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Mv),t&&(t.stateProxy=Mv)}function _0(r,e){!ET(r,e)&&!r.__highByOuter&&wa(r,DT)}function S0(r,e){!ET(r,e)&&!r.__highByOuter&&wa(r,MT)}function ya(r,e){r.__highByOuter|=1<<(e||0),wa(r,DT)}function ma(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&wa(r,MT)}function IT(r){wa(r,Dg)}function Mg(r){wa(r,LT)}function PT(r){wa(r,IR)}function RT(r){wa(r,PR)}function ET(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function kT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=Ag(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){LT(u)}),s&&t.push(i)),o.isBlured=!1}),D(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function $d(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function oi(r,e,t){Kn(r,!0),wa(r,di),Zd(r,e,t)}function FR(r){Kn(r,!1)}function Yt(r,e,t,a){a?FR(r):oi(r,e,t)}function Zd(r,e,t){var a=ht(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var b0=["emphasis","blur","select"],HR={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ge(r,e,t,a){t=t||"itemStyle";for(var n=0;n1&&(o*=Lv(d),s*=Lv(d));var p=(n===i?-1:1)*Lv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,y=p*-s*v/o,m=(r+t)/2+jl(h)*g-Ql(h)*y,_=(e+a)/2+Ql(h)*g+jl(h)*y,S=C0([1,0],[(v-g)/o,(c-y)/s]),b=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],w=C0(b,x);if(Kd(b,x)<=-1&&(w=Yo),Kd(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Yo*1e6)/1e6;w=Yo*2+T%2*Yo}f.addData(u,m,_,o,s,S,w,h,i)}var ZR=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,qR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function KR(r){var e=new jr;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=jr.CMD,l=r.match(ZR);if(!l)return e;for(var u=0;uP*P+R*R&&(T=C,A=M),{cx:T,cy:A,x0:-f,y0:-h,x1:T*(n/b-1),y1:A*(n/b-1)}}function aE(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function nE(r,e){var t,a=gs(e.r,0),n=gs(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=M0(u-l),d=c>Iv&&c%Iv;if(d>xr&&(c=d),!(a>xr))r.moveTo(f,h);else if(c>Iv-xr)r.moveTo(f+a*Ei(l),h+a*Dn(l)),r.arc(f,h,a,l,u,!v),n>xr&&(r.moveTo(f+n*Ei(u),h+n*Dn(u)),r.arc(f,h,n,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,A=void 0,C=void 0,M=void 0,L=void 0,I=void 0,P=void 0,R=a*Ei(l),E=a*Dn(l),N=n*Ei(u),O=n*Dn(u),B=c>xr;if(B){var G=e.cornerRadius;G&&(t=aE(G),p=t[0],g=t[1],y=t[2],m=t[3]);var U=M0(a-n)/2;if(_=Nr(U,y),S=Nr(U,m),b=Nr(U,p),x=Nr(U,g),A=w=gs(_,S),C=T=gs(b,x),(w>xr||T>xr)&&(M=a*Ei(u),L=a*Dn(u),I=n*Ei(l),P=n*Dn(l),cxr){var q=Nr(y,A),it=Nr(m,A),Q=tu(I,P,R,E,a,q,v),F=tu(M,L,N,O,a,it,v);r.moveTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),A0&&r.arc(f+Q.cx,h+Q.cy,q,Se(Q.y0,Q.x0),Se(Q.y1,Q.x1),!v),r.arc(f,h,a,Se(Q.cy+Q.y1,Q.cx+Q.x1),Se(F.cy+F.y1,F.cx+F.x1),!v),it>0&&r.arc(f+F.cx,h+F.cy,it,Se(F.y1,F.x1),Se(F.y0,F.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);if(!(n>xr)||!B)r.lineTo(f+N,h+O);else if(C>xr){var q=Nr(p,C),it=Nr(g,C),Q=tu(N,O,M,L,n,-it,v),F=tu(R,E,I,P,n,-q,v);r.lineTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),C0&&r.arc(f+Q.cx,h+Q.cy,it,Se(Q.y0,Q.x0),Se(Q.y1,Q.x1),!v),r.arc(f,h,n,Se(Q.cy+Q.y1,Q.cx+Q.x1),Se(F.cy+F.y1,F.cx+F.x1),v),q>0&&r.arc(f+F.cx,h+F.cy,q,Se(F.y1,F.x1),Se(F.y0,F.x0),!v))}else r.lineTo(f+N,h+O),r.arc(f,h,n,u,l,v)}r.closePath()}}}var iE=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Oe=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new iE},e.prototype.buildPath=function(t,a){nE(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(St);Oe.prototype.type="sector";var oE=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Sl=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new oE},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(St);Sl.prototype.type="ring";function sE(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,f,h;if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(a){var i=sE(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;sLn[1]){if(s=!1,i)return s;var f=Math.abs(Ln[0]-Mn[1]),h=Math.abs(Mn[0]-Ln[1]);Math.min(f,h)>n.len()&&(f0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Mt(r,e,t,a,n,i){Rg("update",r,e,t,a,n,i)}function Ft(r,e,t,a,n,i){Rg("enter",r,e,t,a,n,i)}function io(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function P0(r){return!r.isGroup}function xE(r){return r.shape!=null}function wl(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){P0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return xE(o)&&(s.shape=V({},o.shape)),s}var i=a(r);e.traverse(function(o){if(P0(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Mt(o,l,t,ht(o).dataIndex)}}})}function ZT(r,e){return H(r,function(t){var a=t[0];a=xf(a,e.x),a=bf(a,e.x+e.width);var n=t[1];return n=xf(n,e.y),n=bf(n,e.y+e.height),[a,n]})}function bE(r,e){var t=xf(r.x,e.x),a=bf(r.x+r.width,e.x+e.width),n=xf(r.y,e.y),i=bf(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function Tl(r,e,t){var a=V({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ot(n,t),new ce(a)):mh(r.replace("path://",""),a,t,"center")}function ys(r,e,t,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=Pv(c,d,f,h)/v;return!(g<0||g>1)}function Pv(r,e,t,a){return r*a-t*e}function wE(r){return r<=1e-6&&r>=-1e-6}function Si(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=K(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&D(wt(l),function(f){j(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ht(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ot({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function R0(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function hn(r,e){if(r)if(z(r))for(var t=0;t=0&&s.push(l)}),s}}function vn(r,e){return dt(dt({},r,!0),e,!0)}const OE={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},NE={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Tf="ZH",Og="EN",oo=Og,Qu={},Ng={},eA=xt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||oo).toUpperCase();return r.indexOf(Tf)>-1?Tf:oo}():oo;function rA(r,e){r=r.toUpperCase(),Ng[r]=new Et(e),Qu[r]=e}function BE(r){if(K(r)){var e=Qu[r.toUpperCase()]||{};return r===Tf||r===Og?lt(e):dt(lt(e),lt(Qu[oo]),!1)}else return dt(lt(r),lt(Qu[oo]),!1)}function jd(r){return Ng[r]}function VE(){return Ng[oo]}rA(Og,OE);rA(Tf,NE);var Bg=1e3,Vg=Bg*60,ks=Vg*60,fr=ks*24,B0=fr*365,ms={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},au="{yyyy}-{MM}-{dd}",V0={year:"{yyyy}",month:"{yyyy}-{MM}",day:au,hour:au+" "+ms.hour,minute:au+" "+ms.minute,second:au+" "+ms.second,millisecond:ms.none},kv=["year","month","day","hour","minute","second","millisecond"],aA=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ra(r,e){return r+="","0000".substr(0,e-r.length)+r}function so(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function zE(r){return r===so(r)}function GE(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xh(r,e,t,a){var n=Qr(r),i=n[zg(t)](),o=n[lo(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[bh(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[Js(t)](),h=(f-1)%12+1,v=n[wh(t)](),c=n[Th(t)](),d=n[Ah(t)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=a instanceof Et?a:jd(a||eA)||VE(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ra(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Ra(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ra(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ra(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ra(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ra(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ra(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Ra(d,3)).replace(/{S}/g,d+"")}function FE(r,e,t,a,n){var i=null;if(K(t))i=t;else if(nt(t))i=t(r.value,e,{level:r.level});else{var o=V({},ms);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return xh(new Date(r.value),i,n,a)}function nA(r,e){var t=Qr(r),a=t[lo(e)]()+1,n=t[bh(e)](),i=t[Js(e)](),o=t[wh(e)](),s=t[Th(e)](),l=t[Ah(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&n===1,d=c&&a===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function z0(r,e,t){var a=Dt(r)?Qr(r):r;switch(e=e||nA(r,t),e){case"year":return a[zg(t)]();case"half-year":return a[lo(t)]()>=6?1:0;case"quarter":return Math.floor((a[lo(t)]()+1)/4);case"month":return a[lo(t)]();case"day":return a[bh(t)]();case"half-day":return a[Js(t)]()/24;case"hour":return a[Js(t)]();case"minute":return a[wh(t)]();case"second":return a[Th(t)]();case"millisecond":return a[Ah(t)]()}}function zg(r){return r?"getUTCFullYear":"getFullYear"}function lo(r){return r?"getUTCMonth":"getMonth"}function bh(r){return r?"getUTCDate":"getDate"}function Js(r){return r?"getUTCHours":"getHours"}function wh(r){return r?"getUTCMinutes":"getMinutes"}function Th(r){return r?"getUTCSeconds":"getSeconds"}function Ah(r){return r?"getUTCMilliseconds":"getMilliseconds"}function HE(r){return r?"setUTCFullYear":"setFullYear"}function iA(r){return r?"setUTCMonth":"setMonth"}function oA(r){return r?"setUTCDate":"setDate"}function sA(r){return r?"setUTCHours":"setHours"}function lA(r){return r?"setUTCMinutes":"setMinutes"}function uA(r){return r?"setUTCSeconds":"setSeconds"}function fA(r){return r?"setUTCMilliseconds":"setMilliseconds"}function hA(r){if(!oT(r))return K(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function vA(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Io=vg;function tp(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Ar(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Qr(r):r;if(isNaN(+l)){if(s)return"-"}else return xh(l,a,t)}if(e==="ordinal")return md(r)?n(r):Dt(r)&&i(r)?r+"":"-";var u=ga(r);return i(u)?hA(u):md(r)?n(r):typeof r=="boolean"?r+"":"-"}var G0=["a","b","c","d","e","f","g"],Ov=function(r,e){return"{"+r+(e??"")+"}"};function cA(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function pi(r,e){return e=e||"transparent",K(r)?r:st(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Af(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var ju=D,dA=["left","right","top","bottom","width","height"],Jn=[["width","left","right"],["height","top","bottom"]];function Gg(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=i+p,c>a||l.newline?(i=0,c=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=c+t:o=d+t)})}var li=Gg;ct(Gg,"vertical");ct(Gg,"horizontal");function YE(r,e,t){var a=e.width,n=e.height,i=Z(r.left,a),o=Z(r.top,n),s=Z(r.right,a),l=Z(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Io(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function re(r,e,t){t=Io(t||0);var a=e.width,n=e.height,i=Z(r.left,a),o=Z(r.top,n),s=Z(r.right,a),l=Z(r.bottom,n),u=Z(r.width,a),f=Z(r.height,n),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new gt(i+t[3],o+t[0],u,f);return d.margin=t,d}function Ch(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new gt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=re(ot({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function $E(r,e){return r[Jn[e][0]]!=null||r[Jn[e][1]]!=null&&r[Jn[e][2]]!=null}function Qs(r){var e=r.layoutMode||r.constructor.layoutMode;return st(e)?e:e?{type:e}:null}function sn(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Jn[0],0),i=o(Jn[1],1);u(Jn[0],r,n),u(Jn[1],r,i);function o(f,h){var v={},c=0,d={},p=0,g=2;if(ju(f,function(_){d[_]=r[_]}),ju(f,function(_){s(e,_)&&(v[_]=d[_]=e[_]),l(v,_)&&c++,l(d,_)&&p++}),a[h])return l(e,f[1])?d[f[2]]=null:l(e,f[2])&&(d[f[1]]=null),d;if(p===g||!c)return d;if(c>=g)return v;for(var y=0;y=0;l--)s=dt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return ml(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Et);gT(bt,Et);fh(bt);EE(bt);kE(bt,ZE);function ZE(r){var e=[];return D(bt.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=H(e,function(t){return Ur(t).main}),r!=="dataset"&&yt(e,"dataset")<=0&&e.unshift("dataset"),e}var gA="";typeof navigator<"u"&&(gA=navigator.platform||"");var ki="rgba(0, 0, 0, 0.2)";const qE={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ki,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ki,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ki,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ki,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ki,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ki,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gA.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var yA=et(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),pr="original",Ae="arrayRows",gr="objectRows",ta="keyedColumns",ja="typedArray",mA="unknown",Zr="column",Ro="row",de={Must:1,Might:2,Not:3},_A=At();function KE(r){_A(r).datasetMap=et()}function SA(r,e,t){var a={},n=Hg(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=_A(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),D(r,function(p,g){var y=st(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});D(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(i,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(p,g,y){for(var m=0;me)return r[a];return r[t-1]}function wA(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:ek(a,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function rk(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var nu,$o,H0,W0="\0_ec_inner",ak=1,Ug=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Et(i),this._locale=new Et(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=$0(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,$0(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?H0(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&D(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=et(),u=a&&a.replaceMergeMainTypeMap;KE(this),D(t,function(h,v){h!=null&&(bt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?lt(h):dt(n[v],h,!0))}),u&&u.each(function(h,v){bt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),bt.topologicalTravel(s,bt.getAllClassMainTypes(),f,this);function f(h){var v=jE(this,h,Ot(t[h])),c=i.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=hT(c,v,d);MP(p,h,bt),n[h]=null,i.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;D(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",A=bt.getClass(h,S.keyInfo.subType,!T);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var C=V({componentIndex:b},S.keyInfo);x=new A(w,this,this,C),V(x,C),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,i.set(h,y),o.set(h,m),h==="series"&&nu(this)}this._seriesIndices||nu(this)},e.prototype.getOption=function(){var t=lt(this.option);return D(t,function(a,n){if(bt.hasClass(n)){for(var i=Ot(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Xs(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[W0],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function vk(r,e){return r.join(",")===e.join(",")}var _r=D,js=st,X0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Bv(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=X0.length;t=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,c)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=yP(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var Dh=function(){function r(e){this.data=e.data||(e.sourceFormat===ta?{}:[]),this.sourceFormat=e.sourceFormat||mA,this.seriesLayoutBy=e.seriesLayoutBy||Zr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;ap&&(p=_)}c[0]=d,c[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};t_=(e={},e[Ae+"_"+Zr]={pure:!0,appendData:i},e[Ae+"_"+Ro]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[gr]={pure:!0,appendData:i},e[ta]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[pr]={appendData:i},e[ja]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return co(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function n_(r){var e,t;return st(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Os(r){return new Lk(r)}var Lk=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},Pk=function(){function r(e,t){if(!Dt(t)){var a="";It(a)}this._opFn=kA[e],this._rvalFloat=ga(t)}return r.prototype.evaluate=function(e){return Dt(e)?this._opFn(e,this._rvalFloat):this._opFn(ga(e),this._rvalFloat)},r}(),OA=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Dt(e)?e:ga(e),n=Dt(t)?t:ga(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=K(e),l=K(t);s&&(a=l?e:0),l&&(n=s?t:0)}return an?-this._resultLT:0},r}(),Rk=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ga(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=ga(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function Ek(r,e){return r==="eq"||r==="ne"?new Rk(r==="eq",e):j(kA,r)?new Pk(r,e):null}var kk=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return tn(e,t)},r}();function Ok(r,e){var t=new kk,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Zr&&It(o);var s=[],l={},u=r.dimensionsDefine;if(u)D(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";j(l,y)&&It(_),l[y]=m}});else for(var f=0;f65535?Wk:Uk}function Ni(){return[1/0,-1/0]}function Yk(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function s_(r,e,t,a,n){var i=VA[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=H(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&ae)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i=h&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=c[n[0]],_=c[n[1]],S=e[n[1]][0],b=e[n[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;ye[C][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,v,c=new(Oi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;df&&(f=h,v=S)}M>0&&Ms&&(p=s-f);for(var g=0;gd&&(d=m,c=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(c);hf-d&&(l=f-d,s.length=l);for(var p=0;ph[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();il&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return tn(t[i],this._dimensions[i])}Gv={arrayRows:e,objectRows:function(t,a,n,i){return tn(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return tn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),zA=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(iu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ue(s)?ja:pr,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=vt(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=vt(h.sourceHeader,v.sourceHeader),p=vt(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[ap(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[ap(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&u_(i)}var o,s=[],l=[];return D(e,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&u_(h),s.push(f),l.push(u._getVersionSign())}),a?o=Fk(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[bk(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return D(r.blocks,function(n){var i=WA(n);i>=e&&(e=i+ +(a&&(!i||ip(n)&&!n.noHeader)))}),e}return 0}function qk(r,e,t,a){var n=e.noHeader,i=Jk(WA(e)),o=[],s=e.blocks||[];Ee(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(j(u,l)){var f=new OA(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,g){var y=e.valueFormatter,m=HA(p)(y?V(V({},r),{valueFormatter:y}):r,p,g>0?i.html:0,a);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(i.richText):op(a,o.join(""),n?t:i.html);if(n)return h;var v=tp(e.header,"ordinal",r.useUTC),c=FA(a,r.renderMode).nameStyle,d=GA(a);return r.renderMode==="richText"?UA(r,v,c)+i.richText+h:op(a,'
'+Ie(v)+"
"+h,t)}function Kk(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],H(S,function(b,x){return tp(b,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":tp(l,"ordinal",u),c=e.valueType,d=o?[]:f(e.value,e.dataIndex),p=!s||!i,g=!s&&i,y=FA(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":UA(r,v,m))+(o?"":tO(r,d,p,g,_)):op(a,(s?"":h)+(i?"":Qk(v,!s,m))+(o?"":jk(d,p,g,_)),t)}}function f_(r,e,t,a,n,i){if(r){var o=HA(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function Jk(r){return{html:Xk[r],richText:Zk[r]}}function op(r,e,t){var a='
',n="margin: "+t+"px 0 0",i=GA(r);return'
'+e+a+"
"}function Qk(r,e,t){var a=e?"margin-left:2px":"";return''+Ie(r)+""}function jk(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],''+H(r,function(o){return Ie(o)}).join("  ")+""}function UA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function tO(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}function YA(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return pi(a)}function $A(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Fv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=sT()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=UE({color:t,type:e,renderMode:a,markerId:n});return K(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?D(t,function(i){return V(a,i)}):V(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function XA(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=YA(e,t),f,h,v,c;if(o>1||l&&!o){var d=eO(s,e,t,i,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);c=f=co(n,t,i[0]),h=p.type}else c=f=l?s[0]:s;var g=Sg(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return ue("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[ue("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ar(_),value:f,valueType:h,dataIndex:t})].concat(v||[])})}function eO(r,e,t,a,n){var i=e.getData(),o=qr(r,function(h,v,c){var d=i.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?D(a,function(h){f(co(i,t,h),h)}):D(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(ue("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ea=At();function ou(r,e){return r.getName(e)||r.getId(e)}var tf="__universalTransitionEnabled",Gt=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Os({count:aO,reset:nO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Ea(this).sourceManager=new zA(this);i.prepareSource();var o=this.getInitialData(t,n);v_(o,this),this.dataTask.context.data=o,Ea(this).dataBeforeProcessed=o,h_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Qs(this),i=n?Po(t):{},o=this.subType;bt.hasClass(o)&&(o+="Series"),dt(t,a.getTheme().get(this.subType)),dt(t,this.getDefaultOption()),hi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&sn(t,i,n)},e.prototype.mergeOption=function(t,a){t=dt(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Qs(this);n&&sn(this.option,t,n);var i=Ea(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);v_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ea(this).dataBeforeProcessed=o,h_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Ue(t))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Wg.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[ou(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[tf])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){st(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,a)}},e.registerClass=function(t){return bt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(bt);te(Gt,Mh);te(Gt,Wg);gT(Gt,bt);function h_(r){var e=r.name;Sg(r)||(r.name=rO(r)||e)}function rO(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return D(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function aO(r){return r.model.getRawData().count()}function nO(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),iO}function iO(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function v_(r,e){D(Hs(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ct(oO,e))})}function oO(r,e){var t=sp(r);return t&&t.setOutputEnd((e||this).count()),e}function sp(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Ut=function(){function r(){this.group=new ut,this.uid=Lo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();bg(Ut);fh(Ut);function Eo(){var r=At();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var ZA=At(),sO=Eo(),Nt=function(){function r(){this.group=new ut,this.uid=Lo("viewChart"),this.renderTask=Os({plan:lO,reset:uO}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&d_(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&d_(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){hn(this.group,e)},r.markUpdateMethod=function(e,t){ZA(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function c_(r,e,t){r&&qs(r)&&(e==="emphasis"?ya:ma)(r,t)}function d_(r,e,t){var a=vi(r,e),n=e&&e.highlightKey!=null?UR(e.highlightKey):null;a!=null?D(Ot(a),function(i){c_(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){c_(i,t,n)})}bg(Nt);fh(Nt);function lO(r){return sO(r.model)}function uO(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&ZA(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),fO[l]}var fO={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Cf="\0__throttleOriginMethod",p_="\0__throttleRate",g_="\0__throttleType";function qg(r,e,t){var a,n=0,i=0,o=null,s,l,u,f;e=e||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function ko(r,e,t,a){var n=r[e];if(n){var i=n[Cf]||n,o=n[g_],s=n[p_];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=qg(i,t,a==="debounce"),n[Cf]=i,n[g_]=a,n[p_]=t}return n}}function tl(r,e){var t=r[e];t&&t[Cf]&&(t.clear&&t.clear(),r[e]=t[Cf])}var y_=At(),m_={itemStyle:ci(tA,!0),lineStyle:ci(jT,!0)},hO={lineStyle:"stroke",itemStyle:"fill"};function qA(r,e){var t=r.visualStyleMapper||m_[e];return t||(console.warn("Unknown style type '"+e+"'."),m_.itemStyle)}function KA(r,e){var t=r.visualDrawType||hO[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var vO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=qA(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=KA(r,a),u=o[l],f=nt(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||nt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||nt(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=V({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},Zo=new Et,cO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=qA(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Zo.option=l[a];var u=n(Zo),f=o.ensureUniqueItemVisual(s,"style");V(f,u),Zo.option.decal&&(o.setItemVisual(s,"decal",Zo.option.decal),Zo.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},dO={performRawSeries:!0,overallReset:function(r){var e=et();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),y_(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=y_(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=KA(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",d=a.count();v[l]=t.getColorFromPalette(c,o,d)}})}})}},su=Math.PI;function pO(r,e){e=e||{},ot(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new ut,a=new Tt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Ct({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Tt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new yh({shape:{startAngle:-su/2,endAngle:-su/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:su*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:su*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var JA=function(){function r(e,t,a,n){this._stageTaskMap=et(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=et();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;D(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Ee(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;D(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=et(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Os({plan:SO,reset:xO,count:wO}));c.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Os({reset:gO});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=et(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";Ee(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(h=!1,D(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Os({reset:yO,onDirty:_O})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return nt(e)&&(e={overallReset:e,seriesType:TO(e)}),e.uid=Lo("stageHandler"),t&&(e.visualType=t),e},r}();function gO(r){r.overallReset(r.ecModel,r.api,r.payload)}function yO(r){return r.overallProgress&&mO}function mO(){this.agent.dirty(),this.getDownstream().dirty()}function _O(){this.agent&&this.agent.dirty()}function SO(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function xO(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ot(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?H(e,function(t,a){return QA(a)}):bO}var bO=QA(0);function QA(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(t.mainType=d,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),lp=["symbol","symbolSize","symbolRotate","symbolOffset"],b_=lp.concat(["symbolKeepAspect"]),DO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o=0&&jn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function up(r,e,t){for(var a=e.type==="radial"?HO(r,e,t):FO(r,e,t),n=e.colorStops,i=0;i0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Dt(r)?[r]:z(r)?r:null}function Jg(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&UO(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=H(t,function(i){return i/n}),a/=n)}return[t,a]}var YO=new jr(!0);function Lf(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function w_(r){return typeof r=="string"&&r!=="none"}function If(r){var e=r.fill;return e!=null&&e!=="none"}function T_(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function A_(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function fp(r,e,t){var a=wg(e.image,e.__image,t);if(hh(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Fu),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function $O(r,e,t,a){var n,i=Lf(t),o=If(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||YO,h=e.__dirty;if(!a){var v=t.fill,c=t.stroke,d=o&&!!v.colorStops,p=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=e.getBoundingRect()),d&&(m=h?up(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(_=h?up(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?fp(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=h||!e.__canvasStrokePattern?fp(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=e.getGlobalScale();f.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,A;r.setLineDash&&t.lineDash&&(n=Jg(e),T=n[0],A=n[1]);var C=!0;(u||h&qi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),C=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),C&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=A),a||(t.strokeFirst?(i&&A_(r,t),o&&T_(r,t)):(o&&T_(r,t),i&&A_(r,t))),T&&r.setLineDash([])}function XO(r,e,t){var a=e.__image=wg(t.image,e.__image,e,e.onload);if(!(!a||!hh(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(a,u,f,h,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function ZO(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||rn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=Jg(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Lf(t)&&r.strokeText(n,t.x,t.y),If(t)&&r.fillText(n,t.x,t.y)):(If(t)&&r.fillText(n,t.x,t.y),Lf(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var C_=["shadowBlur","shadowOffsetX","shadowOffsetY"],D_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function nC(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){We(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?ni.opacity:o}(a||e.blend!==t.blend)&&(i||(We(r,n),i=!0),r.globalCompositeOperation=e.blend||ni.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[xe]){if(this._disposed){this.id;return}var i,o,s;if(st(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[xe]=!0,!this._model||a){var l=new lk(this._api),u=this._theme,f=this._model=new Ug;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},vp);var h={seriesTransition:s,optionChanged:!0};if(n)this[Ge]={silent:i,updateParams:h},this[xe]=!1,this.getZr().wakeUp();else{try{Vi(this),ka.update.call(this,null,h)}catch(v){throw this[Ge]=null,this[xe]=!1,v}this._ssr||this._zr.flush(),this[Ge]=null,this[xe]=!1,qo.call(this,i),Ko.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(xt.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return D(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;D(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return D(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(H_[n]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();D(Bs,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(lt(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:b,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=an.createCanvas(),y=Xm(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return D(v,function(_){var S=_.left-l,b=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new Tt({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),D(v,function(_){var S=new ce({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return $v(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return $v(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=Is(n,t);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Is(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Kg(s,l,a):Cl(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;D(_N,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Qn(s,function(d){var p=ht(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=V({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),D(Ns,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),D(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),LO(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&cT(this.getDom(),ty,"");var a=this,n=a._api,i=a._model;D(a._componentsViews,function(o){o.dispose(i,n)}),D(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Bs[a.id]},e.prototype.resize=function(t){if(!this[xe]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[Ge]&&(i==null&&(i=this[Ge].silent),n=!0,this[Ge]=null),this[xe]=!0;try{n&&Vi(this),ka.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)})}catch(o){throw this[xe]=!1,o}this[xe]=!1,qo.call(this,i),Ko.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(st(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!cp[t]){var n=cp[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=V({},t);return a.type=Ns[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(st(a)||(a={silent:!!a}),!!Pf[t.type]&&this._model){if(this[xe]){this._pendingActions.push(t);return}var n=a.silent;Zv.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&xt.browser.weChat&&this._throttledZrFlush(),qo.call(this,n),Ko.call(this,n)}},e.prototype.updateLabelLayout=function(){wr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Vi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Yv(h,!0),Yv(h,!1),v.plan()},Yv=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!xt.node&&!xt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(p){return l(p,c,d,-1/0),!0})}}function l(h,v,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(io(y))return;if(y instanceof St&&YR(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}G_=function(h){return new(function(v){k(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){ya(d,p),Qe(h)},c.prototype.leaveEmphasis=function(d,p){ma(d,p),Qe(h)},c.prototype.enterBlur=function(d){IT(d),Qe(h)},c.prototype.leaveBlur=function(d){Mg(d),Qe(h)},c.prototype.enterSelect=function(d){PT(d),Qe(h)},c.prototype.leaveSelect=function(d){RT(d),Qe(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c}(TA))(h)},_C=function(h){function v(c,d){for(var p=0;p=0)){U_.push(t);var i=JA.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function AC(r,e){cp[r]=e}function CN(r,e,t){var a=nN("registerMap");a&&a(r,e,t)}var DN=Gk;wi(Qg,vO);wi(Ih,cO);wi(Ih,dO);wi(Qg,DO);wi(Ih,MO);wi(cC,rN);wC(CA);TC(sN,Sk);AC("default",pO);ea({type:ii,event:ii,update:ii},qt);ea({type:qu,event:qu,update:qu},qt);ea({type:Ps,event:Ps,update:Ps},qt);ea({type:Ku,event:Ku,update:Ku},qt);ea({type:Rs,event:Rs,update:Rs},qt);bC("light",AO);bC("dark",eC);var Y_=[],MN={registerPreprocessor:wC,registerProcessor:TC,registerPostInit:bN,registerPostUpdate:wN,registerUpdateLifecycle:ey,registerAction:ea,registerCoordinateSystem:TN,registerLayout:AN,registerVisual:wi,registerTransform:DN,registerLoading:AC,registerMap:CN,registerImpl:aN,PRIORITY:gN,ComponentModel:bt,ComponentView:Ut,SeriesModel:Gt,ChartView:Nt,registerComponentModel:function(r){bt.registerClass(r)},registerComponentView:function(r){Ut.registerClass(r)},registerSeriesModel:function(r){Gt.registerClass(r)},registerChartView:function(r){Nt.registerClass(r)},registerSubTypeDefaulter:function(r,e){bt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){hP(r,e)}};function mt(r){if(z(r)){D(r,function(e){mt(e)});return}yt(Y_,r)>=0||(Y_.push(r),nt(r)&&(r={install:r}),r.install(MN))}function Jo(r){return r==null?0:r.length||1}function $_(r){return r}var _a=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||$_,this._newKeyGetter=n||$_,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Qo=st,Oa=H,kN=typeof Int32Array>"u"?Array:Int32Array,ON="e\0\0",X_=-1,NN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],BN=["_approximateExtent"],Z_,vu,jo,ts,Jv,es,Qv,Pe=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;DC(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===pr;if(l&&!n.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),z(i)?i=i.slice():Qo(i)&&(i=V({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Qo(t)?V(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Qo(e)?V(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?V(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;Yd(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){D(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Oa(this.dimensions,this._getDimInfo,this),this.hostModel)),Jv(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];nt(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(hg(arguments)))})},r.internalField=function(){Z_=function(e){var t=e._invertedIndicesMap;D(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new kN(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[t]=l}}}(),r}();function Dl(r,e){Yg(r)||(r=$g(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=et(),i=[],o=zN(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&IC(o),l=a===r.dimensionsDefine,u=l?LC(r):MC(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=et(f),v=new BA(o),c=0;c0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function zN(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return D(e,function(i){var o;st(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function GN(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var FN=function(){function r(e){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=e}return r}();function HN(r){var e=r.get("coordinateSystem"),t=new FN(e),a=WN[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var WN={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Qt).models[0],i=r.getReferringComponents("yAxis",Qt).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),zi(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),zi(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Qt).models[0];e.coordSysDims=["single"],t.set("single",n),zi(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Qt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),zi(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),zi(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),zi(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function zi(r){return r.get("type")==="category"}function UN(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;YN(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(D(i,function(m,_){K(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;D(i,function(m){m.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function YN(r){return!DC(r.schema)}function ln(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function PC(r,e){return ln(r,e)?r.getCalculationInfo("stackResultDimension"):e}function $N(r,e){var t=r.get("coordinateSystem"),a=Al.get(t),n;return e&&e.coordSysDims&&(n=H(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Ef(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function XN(r,e,t){var a,n;return t&&D(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function Aa(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=$g(r)):(n=a.getSource(),i=n.sourceFormat===pr);var o=HN(e),s=$N(e,o),l=t.useEncodeDefaulter,u=nt(l)?l:l?ct(SA,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=Dl(n,f),v=XN(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),d=UN(e,{schema:h,store:c}),p=new Pe(h,e);p.setCalculationInfo(d);var g=v!=null&&ZN(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:c,null,g),p}function ZN(r){if(r.sourceFormat===pr){var e=qN(r.data||[]);return!z(Ao(e))}}function qN(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();fh(ra);var KN=0,dp=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++KN}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&H(a,JN);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!K(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},r}();function JN(r){return st(r)&&r.value!=null?r.value:r+""}function pp(r){return r.type==="interval"||r.type==="log"}function QN(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=iT(i/e);t!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=RC(o),l=n.niceTickExtent=[Xt(Math.ceil(r[0]/o)*o,s),Xt(Math.floor(r[1]/o)*o,s)];return jN(l,r),n}function jv(r){var e=Math.pow(10,_g(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Xt(t*e)}function RC(r){return Wr(r)+2}function q_(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function jN(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),q_(r,0,e),q_(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Ph(r,e){return r>=e[0]&&r<=e[1]}function Rh(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Eh(r,e){return r*(e[1]-e[0])+e[0]}var kh=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new dp({})),z(n)&&(n=new dp({categories:H(n,function(i){return st(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:K(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ph(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Rh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Eh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(ra);ra.registerClass(kh);var En=Xt,Sa=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ph(t,this._extent)},e.prototype.normalize=function(t){return Rh(t,this._extent)},e.prototype.scale=function(t){return Eh(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=RC(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(t?s.push({value:En(f+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&c0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function NC(r){var e=r5(r),t=[];return D(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=Z(a.get("barWidth"),s),p=Z(a.get("barMaxWidth"),s),g=Z(a.get("barMinWidth")||(FC(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:ay(i),stackId:kC(a)})}),BC(t)}function BC(r){var e={};D(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return D(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=wt(i).length;s=Math.max(35-l*4,15)+"%"}var u=Z(s,o),f=Z(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),D(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;D(i,function(y,m){y.width||(y.width=c),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;D(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function a5(r,e,t){if(r&&e){var a=r[ay(e)];return a}}function VC(r,e){var t=OC(r,e),a=NC(t);D(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=kC(n),u=a[ay(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function zC(r){return{seriesType:r,plan:Eo(),reset:function(e){if(GC(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),h=ln(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=n5(n,i),d=FC(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Yr(b*3),w=d&&l&&Yr(b*3),T=d&&Yr(b),A=a.master.getRect(),C=v?A.width:A.height,M,L=S.getStore(),I=0;(M=_.next())!=null;){var P=L.get(h?g:o,M),R=L.get(s,M),E=c,N=void 0;h&&(N=+P-L.get(o,M));var O=void 0,B=void 0,G=void 0,U=void 0;if(v){var X=a.dataToPoint([P,R]);if(h){var rt=a.dataToPoint([N,R]);E=rt[0]}O=E,B=X[1]+m,G=X[0]-E,U=y,Math.abs(G)0?t:1:t))}var i5=function(r,e,t,a){for(;t>>1;r[n][1]n&&(this._approxInterval=n);var s=cu.length,l=Math.min(i5(cu,this._approxInterval,0,s),s-1);this._interval=cu[l][1],this._minLevelUnit=cu[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Dt(t)?t:+Qr(t)},e.prototype.contain=function(t){return Ph(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Rh(this.parse(t),this._extent)},e.prototype.scale=function(t){return Eh(t,this._extent)},e.type="time",e}(Sa),cu=[["second",Bg],["minute",Vg],["hour",ks],["quarter-day",ks*6],["half-day",ks*12],["day",fr*1.2],["half-week",fr*3.5],["week",fr*7],["month",fr*31],["quarter",fr*95],["half-year",B0/2],["year",B0]];function o5(r,e,t,a){var n=Qr(e),i=Qr(t),o=function(d){return z0(n,d,a)===z0(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function s5(r,e){return r/=fr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function l5(r){var e=30*fr;return r/=e,r>6?6:r>3?3:r>2?2:1}function u5(r){return r/=ks,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function K_(r,e){return r/=e?Vg:Bg,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function f5(r){return iT(r)}function h5(r,e,t){var a=new Date(r);switch(so(e)){case"year":case"month":a[iA(t)](0);case"day":a[oA(t)](1);case"hour":a[sA(t)](0);case"minute":a[lA(t)](0);case"second":a[uA(t)](0),a[fA(t)](0)}return a.getTime()}function v5(r,e,t,a){var n=1e4,i=aA,o=0;function s(C,M,L,I,P,R,E){for(var N=new Date(M),O=M,B=N[I]();O1&&R===0&&L.unshift({value:L[0].value-O})}}for(var R=0;R=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}}for(var S=Pt(H(u,function(C){return Pt(C,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(C){return C.length>0}),b=[],x=S.length-1,c=0;c0;)i*=10;var s=[Xt(p5(a[0]/i)*i),Xt(d5(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Vs.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Sr(t)/Sr(this.base),Ph(t,this._extent)},e.prototype.normalize=function(t){return t=Sr(t)/Sr(this.base),Rh(t,this._extent)},e.prototype.scale=function(t){return t=Eh(t,this._extent),du(this.base,t)},e.type="log",e}(ra),HC=iy.prototype;HC.getMinorTicks=Vs.getMinorTicks;HC.getLabel=Vs.getLabel;function pu(r,e){return c5(r,Wr(e))}ra.registerClass(iy);var g5=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[m5[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=y5[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),y5={min:"_determinedMin",max:"_determinedMax"},m5={min:"_dataMin",max:"_dataMax"};function WC(r,e,t){var a=r.rawExtentInfo;return a||(a=new g5(r,e,t),r.rawExtentInfo=a,a)}function gu(r,e){return e==null?null:Fs(e)?NaN:r.parse(e)}function UC(r,e){var t=r.type,a=WC(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=OC("bar",o),l=!1;if(D(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=NC(s),f=_5(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function _5(r,e,t,a){var n=t.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=a5(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;D(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;D(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/i,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function go(r,e){var t=e,a=UC(r,t),n=a.extent,i=t.get("splitNumber");r instanceof iy&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Oh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new kh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new ny({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ra.getClass(e)||Sa)}}function S5(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function No(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(e):K(e)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}}(e):nt(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(oy(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function oy(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function x5(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof kh?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=No(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;fr[1]&&(r[1]=n[1])})}var Ml=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),T5=1e-8;function Q_(r,e){return Math.abs(r-e)n&&(a=o,n=l)}if(a)return C5(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?j_(s.exterior,n,i,t):D(s.points,function(l){j_(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new gt(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function L5(r,e){return r=M5(r),H(Pt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new t1(o[0],o.slice(1)));break;case"MultiPolygon":D(n.coordinates,function(l){l[0]&&i.push(new t1(l[0],l.slice(1)))});break;case"LineString":i.push(new e1([n.coordinates]));break;case"MultiLineString":i.push(new e1(n.coordinates))}var s=new XC(a[e||"name"],i,a.cp);return s.properties=a,s})}var al=At();function qC(r,e){var t=H(e,function(a){return r.scale.parse(a)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function I5(r){var e=r.getLabelModel().get("customValues");if(e){var t=No(r),a=r.scale.getExtent(),n=qC(r,e),i=Pt(n,function(o){return o>=a[0]&&o<=a[1]});return{labels:H(i,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?R5(r):k5(r)}function P5(r,e){var t=r.getTickModel().get("customValues");if(t){var a=r.scale.getExtent(),n=qC(r,t);return{ticks:Pt(n,function(i){return i>=a[0]&&i<=a[1]})}}return r.type==="category"?E5(r,e):{ticks:H(r.scale.getTicks(),function(i){return i.value})}}function R5(r){var e=r.getLabelModel(),t=KC(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function KC(r,e){var t=JC(r,"labels"),a=sy(e),n=QC(t,a);if(n)return n;var i,o;return nt(a)?i=eD(r,a):(o=a==="auto"?O5(r):a,i=tD(r,o)),jC(t,a,{labels:i,labelCategoryInterval:o})}function E5(r,e){var t=JC(r,"ticks"),a=sy(e),n=QC(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),nt(a))i=eD(r,a,!0);else if(a==="auto"){var s=KC(r,r.getLabelModel());o=s.labelCategoryInterval,i=H(s.labels,function(l){return l.tickValue})}else o=a,i=tD(r,o,!0);return jC(t,a,{ticks:i,tickCategoryInterval:o})}function k5(r){var e=r.scale.getTicks(),t=No(r);return{labels:H(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function JC(r,e){return al(r)[e]||(al(r)[e]=[])}function QC(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var d=0,p=0,g=yl(t({value:l}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),c=Math.max(c,p,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=al(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function B5(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function tD(r,e,t){var a=No(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=YC(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);c&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function eD(r,e,t){var a=r.scale,n=No(r),i=[];return D(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var r1=[0,1],Rr=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return aT(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),a1(a,n.count())),Rt(e,r1,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),a1(a,n.count()));var i=Rt(e,a,r1,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=P5(this,t),n=a.ticks,i=H(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return V5(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=H(a,function(i){return H(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return I5(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return N5(this)},r}();function a1(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function V5(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;D(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s,tickValue:f[1]+1},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]});function v(c,d){return c=Xt(c),d=Xt(d),h?c>d:cn&&(n+=rs);var c=Math.atan2(s,o);if(c<0&&(c+=rs),c>=a&&c<=n||c+rs>=a&&c+rs<=n)return l[0]=f,l[1]=h,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Of(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=e+d*h;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function rD(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Tr=[];function H5(r,e,t){var a=rD(e.x,e.y,e.width,e.height,r.x,r.y,Tr);return t.set(Tr[0],Tr[1]),a}function W5(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,Cr.fromArray(r[0]),Vt.fromArray(r[1]),Zt.fromArray(r[2]),pt.sub($r,Cr,Vt),pt.sub(Hr,Zt,Vt);var t=$r.len(),a=Hr.len();if(!(t<.001||a<.001)){$r.scale(1/t),Hr.scale(1/a);var n=$r.dot(Hr),i=Math.cos(e);if(i1&&pt.copy(Le,Zt),Le.toArray(r[1])}}}}function U5(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Cr.fromArray(r[0]),Vt.fromArray(r[1]),Zt.fromArray(r[2]),pt.sub($r,Vt,Cr),pt.sub(Hr,Zt,Vt);var a=$r.len(),n=Hr.len();if(!(a<.001||n<.001)){$r.scale(1/a),Hr.scale(1/n);var i=$r.dot(e),o=Math.cos(t);if(i=l)pt.copy(Le,Zt);else{Le.scaleAndAdd(Hr,s/Math.tan(Math.PI/2-f));var h=Zt.x!==Vt.x?(Le.x-Vt.x)/(Zt.x-Vt.x):(Le.y-Vt.y)/(Zt.y-Vt.y);if(isNaN(h))return;h<0?pt.copy(Le,Vt):h>1&&pt.copy(Le,Zt)}Le.toArray(r[1])}}}}function rc(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function Y5(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=Wa(a[0],a[1]),i=Wa(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=Wu([],a[1],a[0],o/n),l=Wu([],a[1],a[2],o/i),u=Wu([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0){_(A*T,0,o);var C=A+x;C<0&&S(-C*T,1)}else S(-x*T,1)}}function _(x,w,T){x!==0&&(u=!0);for(var A=w;A0)for(var C=0;C0;C--){var P=T[C-1]*I;_(-P,C,o)}}}function b(x){var w=x<0?-1:1;x=Math.abs(x);for(var T=Math.ceil(x/(o-1)),A=0;A0?_(T,0,A+1):_(-T,o-A-1,o),x-=T,x<=0)return}return u}function $5(r,e,t,a){return iD(r,"x","width",e,t)}function oD(r,e,t,a){return iD(r,"y","height",e,t)}function sD(r){var e=[];r.sort(function(p,g){return g.priority-p.priority});var t=new gt(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),yt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Mt(a,u,t,l)}else if(a.attr(u),!Mo(a).valueAnimation){var h=vt(a.style.opacity,1);a.style.opacity=0,Ft(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};yu(c,u,mu),yu(c,a.states.select,mu)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};yu(d,u,mu),yu(d,a.states.emphasis,mu)}QT(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=q5(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Mt(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,Ft(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r}(),nc=At();function J5(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=nc(t).labelManager;n||(n=nc(t).labelManager=new K5),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=nc(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var ic=Math.sin,oc=Math.cos,lD=Math.PI,On=Math.PI*2,Q5=180/lD,uD=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=Za(h-On)||(f?u>=On:-u>=On),c=u>0?u%On:u%On+On,d=!1;v?d=!0:Za(h)?d=!1:d=c>=lD==!!f;var p=e+a*oc(o),g=t+n*ic(o);this._start&&this._add("M",p,g);var y=Math.round(i*Q5);if(v){var m=1/this._p,_=(f?1:-1)*(On-m);this._add("A",a,n,y,1,+f,e+a*oc(o+_),t+n*ic(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=e+a*oc(s),b=t+n*ic(s);this._add("A",a,n,y,+d,+f,S,b)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v"}function sB(r){return""}function hy(r,e){e=e||{};var t=e.newline?` -`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return oB(o,s)+(o!=="style"?Ie(l):l||"")+(i?""+t+H(i,function(u){return a(u)}).join(t)+t:"")+sB(o)}return a(r)}function lB(r,e,t){t=t||{};var a=t.newline?` -`:"",n=" {"+a,i=a+"}",o=H(wt(r),function(l){return l+n+H(wt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=H(wt(e),function(l){return"@keyframes "+l+n+H(wt(e[l]),function(u){return u+n+H(wt(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function mp(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function s1(r,e,t,a){return oe("svg","root",{width:r,height:e,xmlns:fD,"xmlns:xlink":hD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var uB=0;function cD(){return uB++}var l1={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Vn="transform-origin";function fB(r,e,t){var a=V({},r.shape);V(a,e),r.buildPath(t,a);var n=new uD;return n.reset(Zw(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function hB(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Vn]=t+"px "+a+"px")}var vB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function dD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function cB(r,e,t){var a=r.shape.paths,n={},i,o;if(D(a,function(l){var u=mp(t.zrId);u.animation=!0,Nh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=wt(f),c=v.length;if(c){o=v[c-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=dD(n,t);return i.replace(o,s)}}function u1(r){return K(r)?l1[r]?"cubic-bezier("+l1[r]+")":gg(r)?r:"":""}function Nh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Pg){var s=cB(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ft=dD(w,t);return ft+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+cD();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function dB(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};f1(a,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=Id(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),f1(a,e,t)}}function f1(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+cD(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var nl=Math.round;function pD(r){return r&&K(r.src)}function gD(r){return r&&nt(r.toDataURL)}function vy(r,e,t,a){aB(function(n,i){var o=n==="fill"||n==="stroke";o&&Xw(i)?mD(e,r,n,a):o&&yg(i)?_D(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),xB(t,r,a)}function cy(r,e){var t=vP(e);t&&(t.each(function(a,n){a!=null&&(r[(o1+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[o1+"silent"]="true"))}function h1(r){return Za(r[0]-1)&&Za(r[1])&&Za(r[2])&&Za(r[3]-1)}function pB(r){return Za(r[4])&&Za(r[5])}function dy(r,e,t){if(e&&!(pB(e)&&h1(e))){var a=1e4;r.transform=h1(e)?"translate("+nl(e[4]*a)/a+" "+nl(e[5]*a)/a+")":OI(e)}}function v1(r,e,t){for(var a=r.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ee(v,g),Ee(c,g)}else if(v==null||c==null){var y=function(C,M){if(C){var L=C.elm,I=v||M.width,P=c||M.height;C.tag==="pattern"&&(u?(P=1,I/=i.width):f&&(I=1,P/=i.height)),C.attrs.width=I,C.attrs.height=P,L&&(L.setAttribute("width",I),L.setAttribute("height",P))}},m=wg(d,null,r,function(C){l||y(x,C),y(h,C)});m&&m.width&&m.height&&(v=v||m.width,c=c||m.height)}h=oe("image","img",{href:d,width:v,height:c}),o.width=v,o.height=c}else n.svgElement&&(h=lt(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=qw(n);b&&(o.patternTransform=b);var x=oe("pattern","",o,[h]),w=hy(x),T=a.patternCache,A=T[w];A||(A=a.zrId+"-p"+a.patternIdx++,T[w]=A,o.id=A,x=a.defs[A]=oe("pattern",A,o,[h])),e[t]=sh(A)}}function bB(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=oe("clipPath",i,o,[yD(r,t)])}e["clip-path"]=sh(i)}function p1(r){return document.createTextNode(r)}function Yn(r,e,t){r.insertBefore(e,t)}function g1(r,e){r.removeChild(e)}function y1(r,e){r.appendChild(e)}function SD(r){return r.parentNode}function xD(r){return r.nextSibling}function sc(r,e){r.textContent=e}var m1=58,wB=120,TB=oe("","");function _p(r){return r===void 0}function Gr(r){return r!==void 0}function AB(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function Ss(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function il(r){var e,t=r.children,a=r.tag;if(Gr(a)){var n=r.elm=vD(a);if(py(TB,r),z(t))for(e=0;ei?(d=t[l+1]==null?null:t[l+1].elm,bD(r,d,t,n,l)):Bf(r,e,a,i))}function Ji(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(py(r,e),_p(e.text)?Gr(a)&&Gr(n)?a!==n&&CB(t,a,n):Gr(n)?(Gr(r.text)&&sc(t,""),bD(t,null,n,0,n.length-1)):Gr(a)?Bf(t,a,0,a.length-1):Gr(r.text)&&sc(t,""):r.text!==e.text&&(Gr(a)&&Bf(t,a,0,a.length-1),sc(t,e.text)))}function DB(r,e){if(Ss(r,e))Ji(r,e);else{var t=r.elm,a=SD(t);il(e),a!==null&&(Yn(a,e.elm,xD(t)),Bf(a,[r],0,0))}return e}var MB=0,LB=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=_1(),this.configLayer=_1(),this.storage=t,this._opts=a=V({},a),this.root=e,this._id="zr"+MB++,this._oldVNode=s1(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=vD("svg");py(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",DB(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return d1(e,mp(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=mp(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=IB(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=oe("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=H(wt(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(oe("defs","defs",{},u)),e.animation){var f=lB(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=oe("style","stl",{},[],f);o.push(h)}}return s1(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},hy(this.renderToVNode({animation:vt(e.cssAnimation,!0),emphasis:vt(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:vt(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var C=c.dpr,M=0;M0&&e>n[0]){for(l=0;le);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n0?_u:0),this._needsManuallyCompositing),f.__builtin__||ug("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),i=f),n.__dirty&Xe&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,D(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?dt(a[e],t,!0):a[e]=t;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Gt);function yo(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=co(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(" ")}var Ll=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=jt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=VB,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ya(this.childAt(0))},e.prototype.downplay=function(){ma(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Mt(v,c,s,a),Ir(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ft(v,c,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,h,v,c,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=le(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=bi(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof ce){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(V({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(a,"liftZ"),C=this._z2;A!=null?C==null&&(this._z2=s.z2,s.z2+=A):C!=null&&(s.z2=C,this._z2=null);var M=o&&o.useNameLabel;ye(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:w,defaultOpacity:x.opacity});function L(R){return M?t.getName(R):yo(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Yt(this,v,c,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=ht(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&on(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();on(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Oo(t.getItemVisual(a,"symbolSize"))},e}(ut);function VB(r,e){this.parent.drift(r,e)}function uc(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function b1(r){return r!=null&&!st(r)&&(r={isIgnore:r}),r||{}}function w1(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:le(e),cursorStyle:e.get("cursor")}}var Il=function(){function r(e){this.group=new ut,this._SymbolCtor=e||Ll}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=b1(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=w1(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(uc(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),d=f(h);if(!uc(e,d,h,t)){a.remove(c);return}var p=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)a.remove(c),c=new o(e,h,l,u),c.setPosition(d);else{c.updateData(e,h,l,u);var y={x:d[0],y:d[1]};s?c.attr(y):Mt(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=w1(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=b1(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}function AD(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function GB(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function FB(r,e,t,a,n,i,o,s){for(var l=GB(r,e),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=TD(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=n||p<0)break;if(ui(y,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=e[b*2],w=e[b*2+1];x===y&&w===m&&g=a||ui(x,w))c=y,d=m;else{C=x-u,M=w-f;var P=y-u,R=x-y,E=m-f,N=w-m,O=void 0,B=void 0;if(s==="x"){O=Math.abs(P),B=Math.abs(R);var G=C>0?1:-1;c=y-G*O*o,d=m,L=y+G*B*o,I=m}else if(s==="y"){O=Math.abs(E),B=Math.abs(N);var U=M>0?1:-1;c=y,d=m-U*O*o,L=y,I=m+U*B*o}else O=Math.sqrt(P*P+E*E),B=Math.sqrt(R*R+N*N),A=B/(B+O),c=y-C*o*(1-A),d=m-M*o*(1-A),L=y+C*o*A,I=m+M*o*A,L=Na(L,Ba(x,y)),I=Na(I,Ba(w,m)),L=Ba(L,Na(x,y)),I=Ba(I,Na(w,m)),C=L-y,M=I-m,c=y-C*O/B,d=m-M*O/B,c=Na(c,Ba(u,y)),d=Na(d,Ba(f,m)),c=Ba(c,Na(u,y)),d=Ba(d,Na(f,m)),C=y-c,M=m-d,L=y+C*B/O,I=m+M*B/O}r.bezierCurveTo(h,v,c,d,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var CD=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),HB=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new CD},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&ui(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=d;break;case o.C:c=i[h++],d=i[h++],p=i[h++],g=i[h++],y=i[h++],m=i[h++];var b=u?vf(s,c,p,y,t,f):vf(l,d,g,m,t,f);if(b>0)for(var x=0;x=0){var S=u?ne(l,d,g,m,w):ne(s,c,p,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(St),WB=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(CD),DD=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new WB},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&ui(n[s*2-2],n[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function $B(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=H(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=YB(u,n==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[c-1].coord+d,y=g-p;if(y<.001)return"transparent";D(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new bl(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function XB(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&ZB(i,e))){var o=e.mapDimension(i.dim),s={};return D(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function ZB(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function qB(r,e){return isNaN(r)||isNaN(e)}function KB(r){for(var e=r.length/2;e>0&&qB(r[e*2-2],r[e*2-1]);e--);return e-1}function M1(r,e){return[r[e*2],r[e*2+1]]}function JB(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function ID(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}ht(d).seriesIndex=t.seriesIndex,Yt(d,E,N,O);var G=D1(t.get("smooth")),U=t.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:U,connectNulls:w}),p){var X=s.getCalculationInfo("stackedOnSeries"),rt=0;p.useStyle(ot(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),X&&(rt=D1(X.get("smooth"))),p.setShape({smooth:G,stackedOnSmooth:rt,smoothMonotone:U,connectNulls:w}),ge(p,t,"areaStyle"),ht(p).seriesIndex=t.seriesIndex,Yt(p,E,N,O)}var at=this._changePolyState;s.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=at)}),this._polyline.onHoverStateChange=at,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=C,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,a){ht(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=vi(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;u=new Ll(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Nt.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=vi(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Nt.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;_f(this._polyline,t),a&&_f(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new HB({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new DD({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");nt(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=nt(h)?h(null):h;t.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=nt(h)?h(d):f*w+v,A=p.getSymbolPath(),C=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(ID(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ct({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=KB(l);f>=0&&(ye(s,le(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?wD(o,c):yo(o,h)},enableTextSetter:!0},QB(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=JB(h,S,w),A=T.range,C=A[1]-A[0],M=void 0;if(C>=1){if(C>1&&!c){var L=M1(h,A[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(M=v.getRawValue(A[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+b,y:L[1]+x});var I=v.getRawValue(A[0]),P=v.getRawValue(A[1]);o&&(M=dT(n,d,I,P,T.t))}i.lastFrameIndex=A[0]}else{var R=t===1||i.lastFrameIndex>0?A[0]:0,L=M1(h,R);o&&(M=v.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+x})}if(o){var E=Mo(u);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=FB(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=Va(v.stackedOnCurrent,v.current,n,o,l),c=Va(v.current,null,n,o,l),g=Va(v.stackedOnNext,v.next,n,o,l),p=Va(v.next,null,n,o,l)),C1(c,p)>3e3||f&&C1(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:p}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Mt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Mt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/c));var d=void 0;K(i)?d=tV[i]:nt(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,d,eV))}}}}}function rV(r){r.registerChartView(jB),r.registerSeriesModel(BB),r.registerLayout(Rl("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,PD("line"))}var ol=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Aa(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)D(i.getAxes(),function(v,c){if(v.type==="category"&&a!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[c],y=a[c]==="x1"||a[c]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;bg){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Gt);Gt.registerClass(ol);var aV=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Aa(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=vn(ol.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(ol),nV=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Vf=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new nV},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=Math.PI*2,d=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Ks(i,t,ht(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Nt),L1={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=hc(e.x,r.x),s=vc(e.x+e.width,n),l=hc(e.y,r.y),u=vc(e.y+e.height,i),f=sn?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=vc(e.r,r.r),i=hc(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},I1={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new Tt({shape:V({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?Vf:Oe,f=new u({shape:a,z2:1});f.name="item";var h=RD(n);if(f.calculateTextPosition=iV(h,{isRoundCap:u===Vf}),i){var v=f.shape,c=n?"r":"endAngle",d={};v[c]=n?a.r0:a.startAngle,d[c]=a[c],(s?Mt:Ft)(f,{shape:d},i)}return f}};function uV(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function P1(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Mt:Ft)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Mt:Ft)(t,{shape:u},f,n)}function R1(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function vV(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function RD(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function k1(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,h=ei(a.getModel("itemStyle"),f,!0);V(f,h),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=le(a);ye(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:yo(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,oV(r,g==="outside"?c:g,RD(o),a.get(["label","rotate"]))}JT(p,d,i.getRawValue(t),function(m){return wD(e,m)});var y=a.getModel(["emphasis"]);Yt(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),ge(r,a),vV(n)&&(r.style.fill="none",r.style.stroke="none",D(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function cV(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var dV=function(){function r(){}return r}(),O1=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new dV},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function pV(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function ED(r,e,t){if(Ti(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function gV(r,e,t){var a=r.type==="polar"?Oe:Tt;return new a({shape:ED(e,t,r),silent:!0,z2:0})}function yV(r){r.registerChartView(lV),r.registerSeriesModel(aV),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ct(VC,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,zC("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,PD("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var V1=Math.PI*2,wu=Math.PI/180;function kD(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function OD(r,e){var t=kD(r,e),a=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var i=Z(t.width,e.getWidth()),o=Z(t.height,e.getHeight()),s=Math.min(i,o),l=Z(n[0],s/2),u=Z(n[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(a);f=c[0]||0,h=c[1]||0}else z(a)||(a=[a,a]),f=Z(a[0],i)+t.x,h=Z(a[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function mV(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=kD(a,t),s=OD(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*wu,c=a.get("endAngle"),d=a.get("padAngle")*wu;c=c==="auto"?v-V1:-c*wu;var p=a.get("minAngle")*wu,g=p+d,y=0;n.each(i,function(N){!isNaN(N)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,A=[v,c],C=T*d/2;Tg(A,!S),v=A[0],c=A[1];var M=ND(a);M.startAngle=v,M.endAngle=c,M.clockwise=S;var L=Math.abs(c-v),I=L,P=0,R=v;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(N,O){var B;if(isNaN(N)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:b?NaN:f});return}b!=="area"?B=m===0&&x?_:N*_:B=L/y,BB?(U=R+T*B/2,X=U):(U=R+C,X=G-C),n.setItemLayout(O,{angle:B,startAngle:U,endAngle:X,clockwise:S,cx:l,cy:u,r0:h,r:b?Rt(N,w,[h,f]):f}),R=G}),It?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null;a.setStyle("width",d)}var p=a.getBoundingRect();i.width=p.width;var g=(a.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-h)/2}}}function cc(r){return r.position==="center"}function xV(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*_V,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,A=w.getTextContent(),C=w.getTextGuideLine(),M=e.getItemModel(x),L=M.getModel("label"),I=L.get("position")||M.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=Z(L.get("edgeDistance"),u),N=L.get("bleedMargin"),O=M.getModel("labelLine"),B=O.get("length");B=Z(B,u);var G=O.get("length2");if(G=Z(G,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":X>0?"left":"right"}var kt=Math.PI,Ht=0,ae=L.get("rotate");if(Dt(ae))Ht=ae*(kt/180);else if(I==="center")Ht=0;else if(ae==="radial"||ae===!0){var Ye=X<0?-U+kt:-U;Ht=Ye}else if(ae==="tangential"&&I!=="outside"&&I!=="outer"){var Ve=Math.atan2(X,rt);Ve<0&&(Ve=kt*2+Ve);var cn=rt>0;cn&&(Ve=kt+Ve),Ht=Ve-kt}if(i=!!Ht,A.x=at,A.y=W,A.rotation=Ht,A.setStyle({verticalAlign:"middle"}),tt){A.setStyle({align:ft});var Uh=A.states.select;Uh&&(Uh.x+=A.x,Uh.y+=A.y)}else{var Ca=A.getBoundingRect().clone();Ca.applyTransform(A.getComputedTransform());var dm=(A.style.margin||0)+2.1;Ca.y-=dm/2,Ca.height+=dm,t.push({label:A,labelLine:C,position:I,len:B,len2:G,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new pt(X,rt),linePoints:Y,textAlign:ft,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:Ca,unconstrainedWidth:Ca.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:tt})}}),!i&&r.get("avoidLabelOverlap")&&SV(t,a,n,l,u,v,f,h);for(var p=0;p0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=i.r0}},e.type="pie",e}(Nt);function Bo(r,e,t){e=z(e)&&{coordDimensions:e}||V({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=Dl(a,e).dimensions,i=new Pe(n,r);return i.initData(a,t),i}var kl=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}(),TV=At(),AV=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new kl(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Bo(this,{coordDimensions:["value"],encodeDefaulter:ct(Fg,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=TV(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=gP(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){hi(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Gt);function CV(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Dt(o)&&!isNaN(o)&&o<0)})}}}function DV(r){r.registerChartView(wV),r.registerSeriesModel(AV),aC("pie",r.registerAction),r.registerLayout(ct(mV,"pie")),r.registerProcessor(El("pie")),r.registerProcessor(CV("pie"))}var MV=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Aa(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Gt),VD=4,LV=function(){function r(){}return r}(),IV=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new LV},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var f=u*2,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),RV=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Rl("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var a=t.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new PV:new Il,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Nt),EV=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(bt),xp=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qt).models[0]},e.type="cartesian2dAxis",e}(bt);te(xp,Ml);var zD={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},kV=dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},zD),gy=dt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},zD),OV=dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},gy),NV=ot({logBase:10},gy);const GD={category:kV,value:gy,time:OV,log:NV};var BV={value:1,category:1,time:1,log:1};function mo(r,e,t,a){D(BV,function(n,i){var o=dt(dt({},GD[i],!0),a,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Qs(this),c=v?Po(f):{},d=h.getTheme();dt(f,d.get(i+"Axis")),dt(f,this.getDefaultOption()),f.type=G1(f),v&&sn(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=dp.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",G1)}function G1(r){return r.type||(r.data?"category":"value")}var VV=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return H(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Pt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),bp=["x","y"];function F1(r){return r.type==="interval"||r.type==="time"}var zV=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=bp,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!F1(t)||!F1(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-n[0]*f,c=o[1]-i[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=To([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new gt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return pe(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return pe(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new gt(i,o,s,l)},e}(VV),GV=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Rr);function wp(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,d=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[v[s]]-d[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ve(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function H1(r){return r.get("coordinateSystem")==="cartesian2d"}function W1(r){var e={xAxisModel:null,yAxisModel:null};return D(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Qt).models[0];e[a]=i}),e}var dc=Math.log;function FD(r,e,t){var a=Sa.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=UC(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=dc(r.base);u=[dc(u[0])/v,dc(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=jv(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=jv(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=Xt(g-m),p<0&&u[0]>=0?(p=0,g=Xt(m)):g>0&&u[1]<=0&&(g=0,p=-Xt(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+d*_,g+d*S),a.setInterval.call(r,d),(_||S)&&a.setNiceExtent.call(r,p+d,g-d)}var FV=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=bp,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=wt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,p=c.scale;pp(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(go(p,d),pp(p)&&(s=c))}f.length&&(s||(s=f.pop(),go(s.scale,s.model)),D(f,function(g){FD(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};D(a.x,function(o){U1(a,"y",o,i)}),D(a.y,function(o){U1(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=re(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=x5(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),HV(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}st(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n0?"top":"bottom",i="center"):$s(n-qa)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),$1={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(pe(s,s,o),pe(l,l,o));var f=V({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ie({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});vo(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var c=e.get(["axisLine","symbolSize"]);K(v)&&(v=[v,v]),(K(c)||Dt(c))&&(c=[c,c]);var d=bi(e.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];D([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=jt(v[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,a){var n=YV(t,a,e,r),i=XV(t,a,e,r);if(UV(e,i,n),$V(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=nD(H(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));sD(o)}},axisName:function(r,e,t,a){var n=ve(r.axisName,e.get("name"));if(n){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,Z1(i)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*qa/180);var d;Z1(i)?v=Re.innerTextLayout(r.rotation,c??r.rotation,o):(v=WV(r.rotation,i,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=ve(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Ct({x:h[0],y:h[1],rotation:v.rotation,silent:Re.isLabelSilent(e),style:zt(s,{text:n,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Si({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid="name",e.get("triggerEvent")){var S=Re.makeAxisEventDataBase(e);S.targetType="axisName",S.name=n,ht(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function WV(r,e,t,a){var n=nT(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return $s(n-qa/2)?(o=l?"bottom":"top",i="center"):$s(n-qa*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nqa/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function UV(r,e,t){if(!YC(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],v=t[t.length-2];a===!1?(je(i),je(u)):X1(i,o)&&(a?(je(o),je(f)):(je(i),je(u))),n===!1?(je(s),je(h)):X1(l,s)&&(n?(je(l),je(v)):(je(s),je(h)))}}function je(r){r&&(r.ignore=!0)}function X1(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=oh([]);return _i(n,n,-r.rotation),t.applyTransform(ha([],n,r.getLocalTransform())),a.applyTransform(ha([],n,e.getLocalTransform())),t.intersect(a)}}function Z1(r){return r==="middle"||r==="center"}function HD(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function jV(r){var e=yy(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=Tp(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=ot({color:d.color},l));var g=dt(lt(d),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:v},!1);if(K(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else nt(f)&&(g.name=f(g.name,g));var m=new Et(g,null,this.ecModel);return te(m,Ml.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:dt({lineStyle:{color:"#bbb"}},as.axisLine),axisLabel:Tu(as.axisLabel,!1),axisTick:Tu(as.axisTick,!1),splitLine:Tu(as.splitLine,!0),splitArea:Tu(as.splitArea,!0),indicator:[]},e}(bt),vz=["axisLine","axisTickLabel","axisName"],cz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=H(n,function(o){var s=o.model.get("showName")?o.name:"",l=new Re(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(i,function(o){D(vz,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),d=z(v)?v:[v],p=z(c)?c:[c],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(g,d,x);g[w].push(new Ta({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var w=m(y,p,x);y[w].push(new Sl({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,A=H(n,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),H(N,function(O){return a.coordToPoint(O.coord,E)})}),C=[],x=0;x<=T;x++){for(var M=[],L=0;L3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;yc(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);yc(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!tS(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;yc(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(dr);function yc(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(pa(a.event),ZD(r,e,t,a,n))}function ZD(r,e,t,a,n){n.isAvailableBehavior=J(rf,null,t,a),r.trigger(e,n)}function rf(r,e,t){var a=t[r];return!r||a&&(!K(a)||e.event[a+"Key"])}function _y(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function Sy(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var Sz={axisPointer:1,tooltip:1,brush:1};function Bh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!Sz.hasOwnProperty(a.mainType)&&n&&n.model!==t}function qD(r){if(K(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mc,zf={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},eS=wt(zf),Gf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},rS=wt(Gf),xz=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=qD(e);this._defsUsePending=[];var n=new ut;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),$e(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Tz(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Vh(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=JD(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new ut,n.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Tt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=mc[s];if(f&&j(mc,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=aS[s];if(c&&j(aS,s)){var d=c.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new ho({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});tr(t,a),$e(e,a,this._defsUsePending,!1,!1),bz(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){mc={g:function(e,t){var a=new ut;return tr(t,a),$e(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new Tt;return tr(t,a),$e(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Ta;return tr(t,a),$e(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new ie;return tr(t,a),$e(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new gh;return tr(t,a),$e(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=oS(a));var i=new Ne({shape:{points:n||[]},silent:!0});return tr(t,i),$e(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=oS(a));var i=new Be({shape:{points:n||[]},silent:!0});return tr(t,i),$e(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new ce;return tr(t,a),$e(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new ut;return tr(t,s),$e(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new ut;return tr(t,s),$e(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=zT(a);return tr(t,n),$e(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),aS={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new bl(e,t,a,n);return nS(r,i),iS(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new WT(e,t,a);return nS(r,n),iS(r,n),n}};function nS(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function iS(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};KD(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function tr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),ot(e.__inheritedStyle,r.__inheritedStyle))}function oS(r){for(var e=Vh(r),t=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=Vh(o);switch(n=n||qe(),s){case"translate":Kr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":pg(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":_i(n,n,-parseFloat(l[0])*_c,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*_c);ha(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*_c);ha(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var lS=/([^\s:;]+)\s*:\s*([^:;]+)/g;function KD(r,e,t){var a=r.getAttribute("style");if(a){lS.lastIndex=0;for(var n;(n=lS.exec(a))!=null;){var i=n[1],o=j(zf,i)?zf[i]:null;o&&(e[o]=n[2]);var s=j(Gf,i)?Gf[i]:null;s&&(t[s]=n[2])}}}function Mz(r,e,t){for(var a=0;a0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=et(),a=et(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,d){return d&&(c=d(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ye(e,le(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var d=e.getTextContent();if(d&&(QD(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function cS(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):ht(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function dS(r,e,t,a,n){r.data||Si({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function pS(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Yt(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&WR(e,n,t),o}function gS(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),D(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Gt);function Zz(r,e){var t={};return D(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=re(b,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function Qz(r,e){D(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var jz=function(){function r(){this.dimensions=tM}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Dp(l+s,l,V({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=SS,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),D(i,function(o,s){var l=H(o,function(f){return f.get("nameMap")}),u=new Dp(s,s,V({nameMap:fg(l)},n(o[0])));u.zoomLimit=ve.apply(null,H(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=SS,u.resize(o[0],t),D(o,function(f){f.coordinateSystem=u,Qz(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=et(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function iG(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){lG(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=uG(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function oG(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function bS(r){return arguments.length?r:vG}function xs(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function sG(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lG(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function uG(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=Sc(s),i=xc(i),s&&i;){n=Sc(n),o=xc(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(hG(fG(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!Sc(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!xc(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function Sc(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function xc(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function fG(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function hG(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function vG(r,e){return r.parentNode===e.parentNode?1:2}var cG=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),dG=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new cG},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,h=1-f,v=Z(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var d=1;dm.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),A=T.get("rotate"),C=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:A==null?-S:C,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?Hs(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(ht(t).focus=I),gG(n,o,f,t,d,c,p,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===_l||_f(t.__edge,P)}})}function gG(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=a.__edge=new xl({shape:Mp(f,h,v,n,n)})),Mt(p,{shape:Mp(f,h,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;mt&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,n=r.targetNode;if(K(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function oM(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Ay(r,e){var t=oM(r);return yt(t,e)>=0}function zh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var AG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new Et(n,this,this.ecModel),o=Ty.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(v,c){var d=o.getNodeByDataIndex(c);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ue("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=zh(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Gt);function CG(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(n[i])}}function DG(r,e){r.eachSeriesByType("tree",function(t){MG(t,e)})}function MG(r,e){var t=sG(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=bS(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=bS());var s=r.getData().tree.root,l=s.children[0];if(l){nG(s),CG(l,iG,o),s.hierNode.modifier=-l.hierNode.prelim,is(l,oG);var u=l,f=l,h=l;is(l,function(_){var S=_.getLayout().x;Sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,d=0,p=0,g=0,y=0;if(a==="radial")d=n/(f.getLayout().x+v+c),p=i/(h.depth-1||1),is(l,function(_){g=(_.getLayout().x+c)*d,y=(_.depth-1)*p;var S=xs(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=i/(f.getLayout().x+v+c),d=n/(h.depth-1||1),is(l,function(_){y=(_.getLayout().x+c)*p,g=m==="LR"?(_.depth-1)*d:n-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=n/(f.getLayout().x+v+c),p=i/(h.depth-1||1),is(l,function(_){g=(_.getLayout().x+c)*d,y=m==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function LG(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");V(s,o)})})}function IG(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=by(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function PG(r){r.registerChartView(pG),r.registerSeriesModel(AG),r.registerLayout(DG),r.registerVisual(LG),IG(r)}var DS=["treemapZoomToNode","treemapRender","treemapMove"];function RG(r){for(var e=0;e1;)i=i.parentNode;var o=rp(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var EG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};lM(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Et({itemStyle:o},this,a);i=t.levels=kG(i,a);var l=H(i||[],function(h){return new Et(h,s,a)},this),u=Ty.createTree(n,this,f);function f(h){h.wrapMethod("getItemModel",function(v,c){var d=u.getNodeByDataIndex(c),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ue("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=zh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=et(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){sM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Gt);function lM(r){var e=0;D(r.children,function(a){lM(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function kG(r,e){var t=Ot(e.get("color")),a=Ot(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;D(r,function(s){var l=new Et(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}var OG=8,MS=8,bc=5,NG=function(){function r(e){this.group=new ut,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,s,l,u,f,n),Ch(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=ee(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+OG*2,t.emptyItemWidth);t.totalWidth+=s+MS,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),h=YE(t.pos,t.box),v=t.totalWidth,c=t.renderList,d=n.getModel("itemStyle").getItemStyle(),p=c.length-1;p>=0;p--){var g=c[p],y=g.node,m=g.width,_=g.text;v>h.width&&(v-=m-u,m=u,_=null);var S=new Ne({shape:{points:BG(l,0,m,f,p===c.length-1,p===0)},style:ot(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ct({style:zt(i,{text:_})}),textConfig:{position:"inside"},z2:Co*1e4,onclick:ct(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=zt(o,{text:_}),S.ensureState("emphasis").style=d,Yt(S,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(S),VG(S,e,y),l+=m+MS}},r.prototype.remove=function(){this.group.removeAll()},r}();function BG(r,e,t,a,n,i){var o=[[n?r:r-bc,e],[r+t,e],[r+t,e+a],[n?r:r-bc,e+a]];return!i&&o.splice(2,0,[r+t+bc,e+a/2]),!n&&o.push([r,e+a/2]),o}function VG(r,e,t){ht(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&zh(t,e)}}var zG=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;nIS||Math.abs(t.dy)>IS)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new gt(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var h=f.zoom=f.zoom||1;if(h*=i,u){var v=u.min||0,c=u.max||1/0;h=Math.max(Math.min(c,h),v)}var d=h/f.zoom;f.zoom=h;var p=this.seriesModel.layoutInfo;a-=p.x,n-=p.y;var g=qe();Kr(g,g,[-a,-n]),pg(g,g,[d,d]),Kr(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Af(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new NG(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(Ay(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=os(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e}(Nt);function os(){return{nodeGroup:[],background:[],content:[]}}function YG(r,e,t,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var c=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),A=v.getModel(["select","itemStyle"]),C=x.get("borderRadius")||0,M=W("nodeGroup",Lp);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Ff(M).nodeWidth=c,Ff(M).nodeHeight=d,f.isAboveViewRoot)return M;var L=W("background",LS,u,HG);L&&G(M,L,b&&f.upperLabelHeight);var I=v.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)qs(M)&&Kn(M,!1),L&&(Kn(L,!E),h.setItemGraphicEl(o.dataIndex,L),Zd(L,N,R));else{var O=W("content",LS,u,WG);O&&U(M,O),L.disableMorphing=!0,L&&qs(L)&&Kn(L,!1),Kn(M,!E),h.setItemGraphicEl(o.dataIndex,M);var B=v.getShallow("cursor");B&&O.attr("cursor",B),Zd(M,N,R)}return M;function G(tt,q,it){var Q=ht(q);if(Q.dataIndex=o.dataIndex,Q.seriesIndex=r.seriesIndex,q.setShape({x:0,y:0,width:c,height:d,r:C}),g)X(q);else{q.invisible=!1;var F=o.getVisual("style"),Lt=F.stroke,_t=ES(x);_t.fill=Lt;var kt=Gn(w);kt.fill=w.get("borderColor");var Ht=Gn(T);Ht.fill=T.get("borderColor");var ae=Gn(A);if(ae.fill=A.get("borderColor"),it){var Ye=c-2*p;rt(q,Lt,F.opacity,{x:p,y:0,width:Ye,height:S})}else q.removeTextContent();q.setStyle(_t),q.ensureState("emphasis").style=kt,q.ensureState("blur").style=Ht,q.ensureState("select").style=ae,di(q)}tt.add(q)}function U(tt,q){var it=ht(q);it.dataIndex=o.dataIndex,it.seriesIndex=r.seriesIndex;var Q=Math.max(c-2*p,0),F=Math.max(d-2*p,0);if(q.culling=!0,q.setShape({x:p,y:p,width:Q,height:F,r:C}),g)X(q);else{q.invisible=!1;var Lt=o.getVisual("style"),_t=Lt.fill,kt=ES(x);kt.fill=_t,kt.decal=Lt.decal;var Ht=Gn(w),ae=Gn(T),Ye=Gn(A);rt(q,_t,Lt.opacity,null),q.setStyle(kt),q.ensureState("emphasis").style=Ht,q.ensureState("blur").style=ae,q.ensureState("select").style=Ye,di(q)}tt.add(q)}function X(tt){!tt.invisible&&i.push(tt)}function rt(tt,q,it,Q){var F=v.getModel(Q?RS:PS),Lt=ee(v.get("name"),null),_t=F.getShallow("show");ye(tt,le(v,Q?RS:PS),{defaultText:_t?Lt:null,inheritColor:q,defaultOpacity:it,labelFetcher:r,labelDataIndex:o.dataIndex});var kt=tt.getTextContent();if(kt){var Ht=kt.style,ae=vg(Ht.padding||0);Q&&(tt.setTextConfig({layoutRect:Q}),kt.disableLabelLayout=!0),kt.beforeUpdate=function(){var Ve=Math.max((Q?Q.width:tt.shape.width)-ae[1]-ae[3],0),cn=Math.max((Q?Q.height:tt.shape.height)-ae[0]-ae[2],0);(Ht.width!==Ve||Ht.height!==cn)&&kt.setStyle({width:Ve,height:cn})},Ht.truncateMinChar=2,Ht.lineOverflow="truncate",at(Ht,Q,f);var Ye=kt.getState("emphasis");at(Ye?Ye.style:null,Q,f)}}function at(tt,q,it){var Q=tt?tt.text:null;if(!q&&it.isLeafRoot&&Q!=null){var F=r.get("drillDownIcon",!0);tt.text=F?F+" "+Q:Q}}function W(tt,q,it,Q){var F=m!=null&&t[tt][m],Lt=n[tt];return F?(t[tt][m]=null,Y(Lt,F)):g||(F=new q,F instanceof cr&&(F.z2=$G(it,Q)),ft(Lt,F)),e[tt][y]=F}function Y(tt,q){var it=tt[y]={};q instanceof Lp?(it.oldX=q.x,it.oldY=q.y):it.oldShape=V({},q.shape)}function ft(tt,q){var it=tt[y]={},Q=o.parentNode,F=q instanceof ut;if(Q&&(!a||a.direction==="drillDown")){var Lt=0,_t=0,kt=n.background[Q.getRawIndex()];!a&&kt&&kt.oldShape&&(Lt=kt.oldShape.width,_t=kt.oldShape.height),F?(it.oldX=0,it.oldY=_t):it.oldShape={x:Lt,y:_t,width:0,height:0}}it.fadein=!F}}function $G(r,e){return r*FG+e}var ul=D,XG=st,Hf=-1,se=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=lt(e);this.type=a,this.mappingMethod=t,this._normalizeData=KG[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(wc(n),ZG(n)):t==="category"?n.categories?qG(n):wc(n,!0):(Ee(t!=="linear"||n.dataExtent),wc(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return J(this._normalizeData,this)},r.listVisualTypes=function(){return wt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){st(e)?D(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:st(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&ul(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(XG(e)){var t=[];ul(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function wc(r,e){var t=r.visual,a=[];st(t)?ul(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),uM(r,a)}function Cu(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:Ip([0,1])}}function kS(r){var e=this.option.visual;return e[Math.round(Rt(r,[0,1],[0,e.length-1],!0))]||{}}function ss(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function bs(r){var e=this.option.visual;return e[this.option.loop&&r!==Hf?r%e.length:r]}function Fn(){return this.option.visual[0]}function Ip(r){return{linear:function(e){return Rt(e,r,this.option.visual,!0)},category:bs,piecewise:function(e,t){var a=Pp.call(this,t);return a==null&&(a=Rt(e,r,this.option.visual,!0)),a},fixed:Fn}}function Pp(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=se.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function uM(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=H(e,function(t){var a=Ke(t);return a||[0,0,0,1]})),e}var KG={linear:function(r){return Rt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=se.findPieceIndex(r,e,!0);if(t!=null)return Rt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??Hf},fixed:qt};function Du(r,e,t){return r?e<=t:e=t.length||p===t[p.depth]){var y=r3(n,l,p,g,d,a);hM(p,y,t,a)}})}}}function jG(r,e,t){var a=V({},e),n=t.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function OS(r){var e=Tc(r,"color");if(e){var t=Tc(r,"colorAlpha"),a=Tc(r,"colorSaturation");return a&&(e=Ds(e,null,null,a)),t&&(e=cf(e,t)),e}}function t3(r,e){return e!=null?Ds(e,null,null,r):null}function Tc(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function e3(r,e,t,a,n,i){if(!(!i||!i.length)){var o=Ac(e,"color")||n.color!=null&&n.color!=="none"&&(Ac(e,"colorAlpha")||Ac(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new se(h);return fM(v).drColorMappingBy=f,v}}}function Ac(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function r3(r,e,t,a,n,i){var o=V({},e);if(n){var s=n.type,l=s==="color"&&fM(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var fl=Math.max,Wf=Math.min,NS=ve,Cy=D,vM=["itemStyle","borderWidth"],a3=["itemStyle","gapWidth"],n3=["upperLabel","show"],i3=["upperLabel","height"];const o3={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=re(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=Z(NS(s.width,l[0]),n),f=Z(NS(s.height,l[1]),i),h=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=ll(a,v,r),d=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),g=oM(p);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?v3(r,c,p,u,f):d?[d.width,d.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(S),cM(p,_,!1,0),S=p.getLayout(),Cy(g,function(x,w){var T=(g[w+1]||p).getValue();x.setLayout(V({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(c3(s,d,c),!0),r.setLayoutInfo(s),dM(b,new gt(-s.x,-s.y,n,i),g,p,0)}};function cM(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(vM),u=s.get(a3)/2,f=pM(s),h=Math.max(l,f),v=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),n=fl(n-2*v,0),i=fl(i-v-c,0);var d=n*i,p=s3(r,s,d,e,t,a);if(p.length){var g={x:v,y:c,width:n,height:i},y=Wf(n,i),m=1/0,_=[];_.area=0;for(var S=0,b=p.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function h3(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=e*e*t;return l?fl(u*a/l,l/(u*n)):1/0}function BS(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;hqm&&(u=qm),i=s}ua&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0].8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+A,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+A,d="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+h[0],i.y=h[1]+A,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e}(ut),Py=function(){function r(e){this.group=new ut,this._LineCtor=e||Iy}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=WS(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=WS(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!P3(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0}function WS(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:le(e)}}function US(r){return isNaN(r[0])||isNaN(r[1])}function Ic(r){return r&&!US(r[0])&&!US(r[1])}var Pc=[],Rc=[],Ec=[],Hi=he,kc=ri,YS=Math.abs;function $S(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Pc[0]=Hi(a[0],n[0],i[0],f),Pc[1]=Hi(a[1],n[1],i[1],f);var h=YS(kc(Pc,e)-l);h=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Oc(r,e){var t=[],a=Ws,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[fa(u[0]),fa(u[1])],u[2]&&u.__original.push(fa(u[2])));var v=u.__original;if(u[2]!=null){if(De(n[0],v[0]),De(n[1],v[2]),De(n[2],v[1]),f&&f!=="none"){var c=Ts(s.node1),d=$S(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],d,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],d,t),n[0][1]=t[3],n[1][1]=t[4]}if(h&&h!=="none"){var c=Ts(s.node2),d=$S(n,v[1],c*e);a(n[0][0],n[1][0],n[2][0],d,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],d,t),n[1][1]=t[1],n[2][1]=t[2]}De(u[0],n[0]),De(u[1],n[2]),De(u[2],n[1])}else{if(De(i[0],v[0]),De(i[1],v[1]),Zn(o,i[1],i[0]),wo(o,o),f&&f!=="none"){var c=Ts(s.node1);_d(i[0],i[0],o,c*e)}if(h&&h!=="none"){var c=Ts(s.node2);_d(i[1],i[1],o,-c*e)}De(u[0],i[0]),De(u[1],i[1])}})}function XS(r){return r.type==="view"}var R3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new Il,i=new Py,o=this.group;this._controller=new Ol(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(XS(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Mt(u,f,t)}Oc(t.getGraph(),ws(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,d=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,d);var p=t.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(A){switch(p){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,d),c.setFixed(S),h.setItemLayout(S,[b.x,b.y]);break;case"circular":h.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),Ly(t,"symbolSize",_,[A.offsetX,A.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(S,[b.x,b.y]),My(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){c&&c.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(ht(b).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);S&&b==="adjacency"&&(ht(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(_){_M(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(f,h)&&!Bh(u,n,t)}),!XS(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){_y(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Sy(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Oc(t.getGraph(),ws(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=ws(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){Oc(t.getGraph(),ws(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Nt);function Wi(r){return"_EC_"+r}var E3=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[Wi(e)]){var n=new Hn(e,t);return n.hostGraph=this,this.nodes.push(n),a[Wi(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Wi(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Dt(e)&&(e=this.nodes[e]),Dt(t)&&(t=this.nodes[t]),e instanceof Hn||(e=n[Wi(e)]),t instanceof Hn||(t=n[Wi(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new xM(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Hn&&(e=e.id),t instanceof Hn&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof Hn||(t=this._nodesMap[Wi(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}te(Hn,bM("hostGraph","data"));te(xM,bM("hostGraph","edgeData"));function wM(r,e,t,a,n){for(var i=new E3(a),o=0;o "+v)),u++)}var c=t.get("coordinateSystem"),d;if(c==="cartesian2d"||c==="polar")d=Aa(r,t);else{var p=Al.get(c),g=p?p.dimensions||[]:[];yt(g,"value")<0&&g.concat(["value"]);var y=Dl(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new Pe(y,t),d.initData(r)}var m=new Pe(["value"],t);return m.initData(l,s),n&&n(d,m),nM({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var k3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new kl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),hi(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){S3(this);var s=wM(i,n,this,!0,l);return D(s.edges,function(u){x3(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var h=Et.prototype.getModel;function v(d,p){var g=h.call(this,d,p);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=c,d.getModel=v,d});function c(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ue("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=XA({series:this,dataIndex:t,multipleSeries:a});return h},e.prototype._updateCategoriesData=function(){var t=H(this.option.categories||[],function(n){return n.value!=null?n:V({value:0},n)}),a=new Pe(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt),O3={type:"graphRoam",event:"graphRoam",update:"none"};function N3(r){r.registerChartView(R3),r.registerSeriesModel(k3),r.registerProcessor(p3),r.registerVisual(g3),r.registerVisual(y3),r.registerLayout(b3),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,T3),r.registerLayout(C3),r.registerCoordinateSystem("graphView",{dimensions:Nl.dimensions,create:M3}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},qt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},qt),r.registerAction(O3,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=by(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var B3=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),V3=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new B3},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(St);function z3(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=Z(t[0],e.getWidth()),s=Z(t[1],e.getHeight()),l=Z(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Lu(r,e){var t=r==null?"":r+"";return e&&(K(e)?t=e.replace("{value}",t):nt(e)&&(t=e(r))),t}var G3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=z3(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),v=h.get("roundCap"),c=v?Vf:Oe,d=h.get("show"),p=h.getModel("lineStyle"),g=p.get("width"),y=[u,f];Tg(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b=A&&(C===0?0:i[C-1][0])Math.PI/2&&(at+=Math.PI)):rt==="tangential"?at=-T-Math.PI/2:Dt(rt)&&(at=rt*Math.PI/180),at===0?h.add(new Ct({style:zt(_,{text:B,x:U,y:X,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:G}),silent:!0})):h.add(new Ct({style:zt(_,{text:B,x:U,y:X,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:U,originY:X,rotation:at}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var W=0;W<=b;W++){P=Math.cos(T),R=Math.sin(T);var Y=new ie({shape:{x1:P*(d-N)+v,y1:R*(d-N)+c,x2:P*(d-w-N)+v,y2:R*(d-w-N)+c},silent:!0,style:L});L.stroke==="auto"&&Y.setStyle({stroke:i((E+W/b)/S)}),h.add(Y),T+=C}T-=C}else T+=A}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(C,M){var L=m.getItemModel(C),I=L.getModel("pointer"),P=Z(I.get("width"),o.r),R=Z(I.get("length"),o.r),E=t.get(["pointer","icon"]),N=I.get("offsetCenter"),O=Z(N[0],o.r),B=Z(N[1],o.r),G=I.get("keepAspect"),U;return E?U=jt(E,O-P/2,B-R,P,R,null,G):U=new V3({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:B}}),U.rotation=-(M+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function A(C,M){var L=g.get("roundCap"),I=L?Vf:Oe,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(C+1)*R,N=P?o.r:o.r-C*R,O=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=Rt(m.get(_,C),[S,b],[100,0],!0)),O}(y||p)&&(m.diff(v).add(function(C){var M=m.get(_,C);if(p){var L=T(C,s);Ft(L,{rotation:-((isNaN(+M)?w[0]:Rt(M,x,w,!0))+Math.PI/2)},t),h.add(L),m.setItemGraphicEl(C,L)}if(y){var I=A(C,s),P=g.get("clip");Ft(I,{shape:{endAngle:Rt(M,x,w,P)}},t),h.add(I),Yd(t.seriesIndex,m.dataType,C,I),d[C]=I}}).update(function(C,M){var L=m.get(_,C);if(p){var I=v.getItemGraphicEl(M),P=I?I.rotation:s,R=T(C,P);R.rotation=P,Mt(R,{rotation:-((isNaN(+L)?w[0]:Rt(L,x,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(C,R)}if(y){var E=c[M],N=E?E.shape.endAngle:s,O=A(C,N),B=g.get("clip");Mt(O,{shape:{endAngle:Rt(L,x,w,B)}},t),h.add(O),Yd(t.seriesIndex,m.dataType,C,O),d[C]=O}}).execute(),m.each(function(C){var M=m.getItemModel(C),L=M.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(p){var E=m.getItemGraphicEl(C),N=m.getItemVisual(C,"style"),O=N.fill;if(E instanceof ce){var B=E.style;E.useStyle(V({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},N))}else E.useStyle(N),E.type!=="pointer"&&E.setColor(O);E.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(Rt(m.get(_,C),x,[0,1],!0))),E.z2EmphasisLift=0,ge(E,M),Yt(E,I,P,R)}if(y){var G=d[C];G.useStyle(m.getItemVisual(C,"style")),G.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,ge(G,M),Yt(G,I,P,R)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=jt(s,a.cx-o/2+Z(l[0],a.r),a.cy-o/2+Z(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),v=new ut,c=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new Ct({silent:!0}),d[y]=new Ct({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new ut,b=i(Rt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+Z(w[0],o.r),A=o.cy+Z(w[1],o.r),C=c[y];C.attr({z2:g?0:2,style:zt(x,{x:T,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(C)}var M=m.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),I=o.cx+Z(L[0],o.r),P=o.cy+Z(L[1],o.r),R=Z(M.get("width"),o.r),E=Z(M.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,C=d[y],O=M.get("formatter");C.attr({z2:g?0:2,style:zt(M,{x:I,y:P,text:Lu(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),JT(C,{normal:M},_,function(G){return Lu(G,O)}),p&&QT(C,y,l,t,{getFormattedLabel:function(G,U,X,rt,at,W){return Lu(W?W.interpolatedValue:_,O)}}),S.add(C)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=d},e.type="gauge",e}(Nt),F3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return Bo(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Gt);function H3(r){r.registerChartView(G3),r.registerSeriesModel(F3)}var W3=["itemStyle","opacity"],U3=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Be,s=new Ct;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(W3);f=f??1,n||Ir(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Ft(i,{style:{opacity:f}},o,a)):Mt(i,{style:{opacity:f},shape:{points:l.points}},o,a),ge(i,s),this._updateLabel(t,a),Yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,h=t.getItemVisual(a,"style"),v=h.fill;ye(o,le(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new pt(c[0][0],c[0][1]):null},Mt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),ly(n,uy(l),{stroke:v})},e}(Ne),Y3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new U3(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Ks(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Nt),$3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new kl(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Bo(this,{coordDimensions:["value"],encodeDefaulter:ct(Fg,this)})},e.prototype._defaultLabelLine=function(t){hi(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);function X3(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Z3(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();ofF)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Bc(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Bc(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var cF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&dt(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=Pt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(bt),dF=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Rr);function Ci(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=Ui(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=Ui(s,[0,o]),n=i=Ui(s,[n,i]),a=0}e[0]=Ui(e[0],t),e[1]=Ui(e[1],t);var l=Vc(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=Ui(e[a],f);var h;return h=Vc(e,a),n!=null&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function Vc(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ui(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var zc=D,AM=Math.min,CM=Math.max,KS=Math.floor,pF=Math.ceil,JS=Xt,gF=Math.PI,yF=function(){function r(e,t,a){this.type="parallel",this._axesMap=et(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;zc(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new dF(o,Oh(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();zc(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),go(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=re(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Iu(e.get("axisExpandWidth"),l),h=Iu(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow"),d;if(c)d=Iu(c[1]-c[0],l),c[1]=c[0]+d;else{d=Iu(f*(h-1),l);var p=e.get("axisExpandCenter")||KS(u/2);c=[f*p-d/2],c[1]=c[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var y=[KS(JS(c[0]/f,1))+1,pF(JS(c[1]/f,1))-1],m=g/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),zc(a,function(o,s){var l=(n.axisExpandable?_F:mF)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:gF/2,vertical:0},h=[u[i].x+e.x,u[i].y+e.y],v=f[i],c=qe();_i(c,c,v),Kr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?Ci(l,n,o,"all"):u="none";else{var c=n[1]-n[0],d=o[1]*s/c;n=[CM(0,d-c/2)],n[1]=AM(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function Iu(r,e){return AM(CM(r,e[0]),e[1])}function mF(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function _F(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)hr(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;iTF}function RM(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function EM(r,e,t,a){var n=new ut;return n.add(new Tt({name:"main",style:Ny(t),silent:!0,draggable:!0,cursor:"move",drift:ct(tx,r,e,n,["n","s","w","e"]),ondragend:ct(yi,e,{isEnd:!0})})),D(a,function(i){n.add(new Tt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ct(tx,r,e,n,i),ondragend:ct(yi,e,{isEnd:!0})}))}),n}function kM(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=_o(n,AF),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],h=t[1][1],v=f-i+n/2,c=h-i+n/2,d=f-o,p=h-s,g=d+n,y=p+n;ia(r,e,"main",o,s,d,p),a.transformable&&(ia(r,e,"w",l,u,i,y),ia(r,e,"e",v,u,i,y),ia(r,e,"n",l,u,g,i),ia(r,e,"s",l,c,g,i),ia(r,e,"nw",l,u,i,i),ia(r,e,"ne",v,u,i,i),ia(r,e,"sw",l,c,i,i),ia(r,e,"se",v,c,i,i))}function Bp(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(Ny(t)),n.attr({silent:!a,cursor:a?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Vp(r,i[0]):PF(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?DF[s]+"-resize":null})})}function ia(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(EF(By(r,e,[[a,n],[a+i,n+o]])))}function Ny(r){return ot({strokeNoScale:!0},r.brushStyle)}function OM(r,e,t,a){var n=[vl(r,t),vl(e,a)],i=[_o(r,t),_o(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function IF(r){return si(r.group)}function Vp(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=_h(t[e],IF(r));return a[n]}function PF(r,e){var t=[Vp(r,e[0]),Vp(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function tx(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=NM(e,n,i);D(a,function(u){var f=CF[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(OM(s[0][0],s[1][0],s[0][1],s[1][1])),Ey(e,t),yi(e,{isEnd:!1})}function RF(r,e,t,a){var n=e.__brushOption.range,i=NM(r,t,a);D(n,function(o){o[0]+=i[0],o[1]+=i[1]}),Ey(r,e),yi(r,{isEnd:!1})}function NM(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function By(r,e,t){var a=PM(r,e);return a&&a!==gi?a.clipPath(t,r._transform):lt(t)}function EF(r){var e=vl(r[0][0],r[1][0]),t=vl(r[0][1],r[1][1]),a=_o(r[0][0],r[1][0]),n=_o(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function kF(r,e,t){if(!(!r._brushType||NF(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=Oy(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var Fh={lineX:ax(0),lineY:ax(1),rect:{createCover:function(r,e){function t(a){return a}return EM({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=RM(r);return OM(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){kM(r,e,t,a)},updateCommon:Bp,contain:Gp},polygon:{createCover:function(r,e){var t=new ut;return t.add(new Be({name:"main",style:Ny(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Ne({name:"main",draggable:!0,drift:ct(RF,r,e),ondragend:ct(yi,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:By(r,e,t)})},updateCommon:Bp,contain:Gp}};function ax(r){return{createCover:function(e,t){return EM({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=RM(e),a=vl(t[0][r],t[1][r]),n=_o(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=PM(e,t);if(o!==gi&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),kM(e,t,l,n)},updateCommon:Bp,contain:Gp}}function VM(r){return r=Vy(r),function(e){return ZT(e,r)}}function zM(r,e){return r=Vy(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function GM(r,e,t){var a=Vy(r);return function(n,i){return a.contain(i[0],i[1])&&!Bh(n,e,t)}}function Vy(r){return gt.create(r)}var BF=["axisLine","axisTickLabel","axisName"],VF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new Ry(a.getZr())).on("brush",J(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!zF(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ut,this.group.add(this._axisGroup),!!t.get("show")){var s=FF(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,v=l.getAxisLayout(h),c=V({strokeContainThreshold:f},v),d=new Re(t,c);D(BF,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,u,t,s,f,n),wl(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=gt.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:VM(h),isTargetByCursor:GM(h,s,i),getLinearBrushOtherExtent:zM(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(GF(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=H(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Ut);function zF(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function GF(r){var e=r.axis;return H(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function FF(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var HF={type:"axisAreaSelect",event:"axisAreaSelected"};function WF(r){r.registerAction(HF,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var UF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function FM(r){r.registerComponentView(hF),r.registerComponentModel(cF),r.registerCoordinateSystem("parallel",xF),r.registerPreprocessor(sF),r.registerComponentModel(Op),r.registerComponentView(VF),mo(r,"parallel",Op,UF),WF(r)}function YF(r){mt(FM),r.registerChartView(j3),r.registerSeriesModel(rF),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,oF)}var $F=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),XF=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $F},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){ya(this)},e.prototype.downplay=function(){ma(this)},e}(St),ZF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,h=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new XF,g=ht(p);g.dataIndex=d.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),b=d.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=d.node2.getLayout(),A=d.node2.getModel(),C=A.get("localX"),M=A.get("localY"),L=d.getLayout(),I,P,R,E,N,O,B,G;p.shape.extent=Math.max(1,L.dy),p.shape.orient=c,c==="vertical"?(I=(x!=null?x*u:S.x)+L.sy,P=(w!=null?w*f:S.y)+S.dy,R=(C!=null?C*u:T.x)+L.ty,E=M!=null?M*f:T.y,N=I,O=P*(1-_)+E*_,B=R,G=P*_+E*(1-_)):(I=(x!=null?x*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+L.sy,R=C!=null?C*u:T.x,E=(M!=null?M*f:T.y)+L.ty,N=I*(1-_)+R*_,O=P,B=I*_+R*(1-_),G=E),p.setShape({x1:I,y1:P,x2:R,y2:E,cpx1:N,cpy1:O,cpx2:B,cpy2:G}),p.useStyle(m.getItemStyle()),nx(p.style,c,d);var U=""+y.get("value"),X=le(y,"edgeLabel");ye(p,X,{labelFetcher:{getFormattedLabel:function(W,Y,ft,tt,q,it){return t.getFormattedLabel(W,Y,"edge",tt,Xr(q,X.normal&&X.normal.get("formatter"),U),it)}},labelDataIndex:d.dataIndex,defaultText:U}),p.setTextConfig({position:"inside"});var rt=y.getModel("emphasis");ge(p,y,"lineStyle",function(W){var Y=W.getItemStyle();return nx(Y,c,d),Y}),s.add(p),v.setItemGraphicEl(d.dataIndex,p);var at=rt.get("focus");Yt(p,at==="adjacency"?d.getAdjacentDataIndices():at==="trajectory"?d.getTrajectoryDataIndices():at,rt.get("blurScope"),rt.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new Tt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});ye(b,le(g),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),b.disableLabelAnimation=!0,b.setStyle("fill",d.getVisual("color")),b.setStyle("decal",d.getVisual("style").decal),ge(b,g),s.add(b),h.setItemGraphicEl(d.dataIndex,b),ht(b).dataType="node";var x=_.get("focus");Yt(b,x==="adjacency"?d.getAdjacentDataIndices():x==="trajectory"?d.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(d,p){var g=h.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(qF(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Nt);function nx(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");K(a)&&K(n)&&(r.fill=new bl(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function qF(r,e,t){var a=new Tt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ft(a,{shape:{width:r.width+20}},e,t),a}var KF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Et(o[l],this,a));var u=wM(i,n,this,!0,f);return u.data;function f(h,v){h.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(c.parentModel=_)}return c})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||c==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ue("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),h=f.getLayout().value,v=this.getDataParams(t,n).data.name;return ue("nameValue",{name:v!=null?v+"":null,value:h,noValue:i(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Gt);function JF(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=QF(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;t4(u);var h=Pt(u,function(p){return p.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),c=t.get("orient"),d=t.get("nodeAlign");jF(u,f,a,n,o,s,v,c,d)})}function QF(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jF(r,e,t,a,n,i,o,s,l){e4(r,e,t,n,i,s,l),i4(r,e,i,n,a,o,s),d4(r,s)}function t4(r){D(r,function(e){var t=en(e.outEdges,Uf),a=en(e.inEdges,Uf),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function e4(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),p.setLayout({depth:y?g.depth:h},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var m=0;mh-1?c:h-1;o&&o!=="left"&&r4(r,o,i,w);var T=i==="vertical"?(n-t)/w:(a-t)/w;n4(r,T,i)}function HM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function r4(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,l4(s,l,o),Gc(s,n,t,a,o),c4(s,l,o),Gc(s,n,t,a,o)}function o4(r,e){var t=[],a=e==="vertical"?"y":"x",n=Fd(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),D(n.keys,function(i){t.push(n.buckets.get(i))}),t}function s4(r,e,t,a,n,i){var o=1/0;D(r,function(s){var l=s.length,u=0;D(s,function(h){u+=h.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;var d=n==="vertical"?a:t;if(u=f-e-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[i]+l.getLayout()[v]+e-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function l4(r,e,t){D(r.slice().reverse(),function(a){D(a,function(n){if(n.outEdges.length){var i=en(n.outEdges,u4,t)/en(n.outEdges,Uf);if(isNaN(i)){var o=n.outEdges.length;i=o?en(n.outEdges,f4,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-un(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-un(n,t))*e;n.setLayout({y:l},!0)}}})})}function u4(r,e){return un(r.node2,e)*r.getValue()}function f4(r,e){return un(r.node2,e)}function h4(r,e){return un(r.node1,e)*r.getValue()}function v4(r,e){return un(r.node1,e)}function un(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Uf(r){return r.getValue()}function en(r,e,t){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),D(a,function(s){var l=new se({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&D(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function g4(r){r.registerChartView(ZF),r.registerSeriesModel(KF),r.registerLayout(JF),r.registerVisual(p4),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var WM=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],d=c[f].get("type"),p=c[1-f].get("type"),g=e.data;if(g&&l){var y=[];D(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?(x=V({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Ef(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Ef(p),dimsDef:m.slice()}];return Bo(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ct(SA,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),UM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Gt);te(UM,WM,!0);var y4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),h=ix(f,i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(h);return}var v=i.getItemLayout(u);h?(Ir(h),YM(v,h,i,u)):h=ix(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e}(Nt),m4=function(){function r(){}return r}(),_4=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new m4},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ip){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var C4={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ae){var a="";It(a)}var n=A4(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function D4(r){r.registerSeriesModel(UM),r.registerChartView(y4),r.registerLayout(x4),r.registerTransform(C4)}var M4=["itemStyle","borderColor"],L4=["itemStyle","borderColor0"],I4=["itemStyle","borderColorDoji"],P4=["itemStyle","color"],R4=["itemStyle","color0"];function zy(r,e){return e.get(r>0?P4:R4)}function Gy(r,e){return e.get(r===0?I4:r>0?M4:L4)}var E4={seriesType:"candlestick",plan:Eo(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=zy(s,o),l.stroke=Gy(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");V(u,l)}}}}}},k4=["color","borderColor"],O4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){hn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&ox(u,h))return;var v=Fc(h,f,!0);Ft(v,{shape:{points:h.ends}},t,f),Hc(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(!a.hasValue(f)){i.remove(v);return}var c=a.getItemLayout(f);if(s&&ox(u,c)){i.remove(v);return}v?(Mt(v,{shape:{points:c.ends}},t,f),Ir(v)):v=Fc(c),Hc(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),sx(t,this.group);var a=t.get("clip",!0)?Pl(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=Fc(s);Hc(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){sx(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Nt),N4=function(){function r(){}return r}(),B4=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new N4},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(St);function Fc(r,e,t){var a=r.ends;return new B4({shape:{points:t?V4(a,r):a},z2:100})}function ox(r,e){for(var t=!0,a=0;ab?M[i]:C[i],ends:P,brushRect:B(x,w,_)})}function N(U,X){var rt=[];return rt[n]=X,rt[i]=U,isNaN(X)||isNaN(U)?[NaN,NaN]:e.dataToPoint(rt)}function O(U,X,rt){var at=X.slice(),W=X.slice();at[n]=Ju(at[n]+a/2,1,!1),W[n]=Ju(W[n]-a/2,1,!0),rt?U.push(at,W):U.push(W,at)}function B(U,X,rt){var at=N(U,rt),W=N(X,rt);return at[n]-=a/2,W[n]-=a/2,{x:at[0],y:at[1],width:a,height:W[1]-at[1]}}function G(U){return U[n]=Ju(U[n],1),U}}function d(p,g){for(var y=Yr(p.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var A=w.get(s,x),C=w.get(u,x),M=w.get(f,x),L=w.get(h,x),I=w.get(v,x);if(isNaN(A)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=lx(w,x,C,M,f,T),S[n]=A,S[i]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function lx(r,e,t,a,n,i){var o;return t>a?o=-1:t0?r.get(n,e-1)<=a?1:-1:1,o}function H4(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=Z(vt(r.get("barMaxWidth"),n),n),o=Z(vt(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?Z(s,n):Math.max(Math.min(n/2,i),o)}function W4(r){r.registerChartView(O4),r.registerSeriesModel($M),r.registerPreprocessor(G4),r.registerVisual(E4),r.registerLayout(F4)}function ux(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var U4=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=new Ll(t,a),o=new ut;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;nt(h)?v=h(n):v=h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Wa(t.__p1,t.__cp1)+Wa(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=he,f=Cd;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1];var c=t.__t<1?v[0]-h[0]:h[0]-v[0],d=t.__t<1?v[1]-h[1]:h[1]-v[1];t.rotation=-Math.atan2(d,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(XM),q4=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),K4=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new q4},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0){var c=(u+h)/2-(f-v)*i,d=(f+v)/2-(h-u)*i;t.quadraticCurveTo(c,d,h,v)}else t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var h=i[u++],v=i[u++],c=1;c0){var g=(h+d)/2-(v-p)*o,y=(v+p)/2-(d-h)*o;if(ST(h,v,g,y,d,p,s,t,a))return l}else if(Fa(h,v,d,p,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),qM={seriesType:"lines",plan:Eo(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&Pl(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=qM.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new J4:new Py(o?i?Z4:ZM:i?XM:Iy),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(Nt),j4=typeof Uint32Array>"u"?Array:Uint32Array,tH=typeof Float64Array>"u"?Array:Float64Array;function fx(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=H(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),fg([n,t[0],t[1]])}))}var eH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],fx(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(fx(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Hs(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Hs(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Gt);function Pu(r){return r instanceof Array||(r=[r,r]),r}var rH={seriesType:"lines",reset:function(r){var e=Pu(r.get("symbol")),t=Pu(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=Pu(s.getShallow("symbol",!0)),u=Pu(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function aH(r){r.registerChartView(Q4),r.registerSeriesModel(eH),r.registerLayout(qM),r.registerVisual(rH)}var nH=256,iH=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=an.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=e.length;h.width=t,h.height=a;for(var d=0;d0){var L=o(_)?l:u;_>0&&(_=_*C+T),b[x++]=L[M],b[x++]=L[M+1],b[x++]=L[M+2],b[x++]=L[M+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=an.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();function oH(r,e,t){var a=r[1]-r[0];e=H(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&a<=e[1]}}function hx(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var lH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):hx(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(hx(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){hn(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=Ti(s,"cartesian2d"),u,f,h,v;if(l){var c=s.getAxis("x"),d=s.getAxis("y");u=c.getBandWidth()+.5,f=d.getBandWidth()+.5,h=c.scale.getExtent(),v=d.scale.getExtent()}for(var p=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=le(t),x=t.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),A=x.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;Mh[1]||Rv[1])continue;var E=s.dataToPoint([P,R]);L=new Tt({shape:{x:E[0]-u/2,y:E[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(g.get(C[1],M)))continue;L=new Tt({z2:1,shape:s.dataToRect([g.get(C[0],M)]).contentShape,style:I})}if(g.hasItemOption){var N=g.getItemModel(M),O=N.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),w=O.get("focus"),T=O.get("blurScope"),A=O.get("disabled"),b=le(N)}L.shape.r=S;var B=t.getRawValue(M),G="-";B&&B[2]!=null&&(G=B[2]+""),ye(L,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:G}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=m,L.ensureState("select").style=_,Yt(L,w,T,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),p.add(L),g.setItemGraphicEl(M,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new iH;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,A){var C=t.dataToPoint([w,T]);return C[0]-=v,C[1]-=c,C.push(A),C}),S=n.getExtent(),b=n.type==="visualMap.continuous"?sH(S,n.option.range):oH(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new ce({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Nt),uH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Aa(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Al.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);function fH(r){r.registerChartView(lH),r.registerSeriesModel(uH)}var hH=["itemStyle","borderWidth"],vx=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Yc=new Ta,vH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:vx[+f],categoryDim:vx[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=dx(o,d),g=cx(o,d,p,v),y=px(o,v,g);o.setItemGraphicEl(d,y),i.add(y),yx(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=dx(o,d),m=cx(o,d,y,v),_=e2(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?_H(g,v,m):g=px(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),yx(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&gx(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var c=t.get("clip",!0)?Pl(t.coordinateSystem,!1,t):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){gx(i,ht(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(Nt);function cx(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};cH(t,i,n,a,v),dH(r,e,n,i,o,v.boundingLength,v.pxSign,f,a,v),pH(t,v.symbolScale,u,a,v);var c=v.symbolSize,d=bi(t.get("symbolOffset"),c);return gH(t,c,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function cH(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(z(o)){var h=[$c(s,o[0])-l,$c(s,o[1])-l];h[1]=0?1:-1:f>0?1:-1}function $c(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function dH(r,e,t,a,n,i,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize"),d;z(c)?d=c.slice():c==null?d=["100%","100%"]:d=[c,c],d[h.index]=Z(d[h.index],v),d[f.index]=Z(d[f.index],a?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function pH(r,e,t,a,n){var i=r.get(hH)||0;i&&(Yc.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Yc.updateTransform(),i/=Yc.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function gH(r,e,t,a,n,i,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,d=h.pxSign,p=Math.max(e[c.index]+s,0),g=p;if(a){var y=Math.abs(l),m=ve(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=Z(m,e[c.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=oT(a),T=w?a:mx((y+x)/b),A=y-T*p;S=A/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&a!=="fixed"&&(T=u?mx((Math.abs(u)+x)/b):0),g=T*b-x,h.repeatTimes=T,h.symbolMargin=S}var C=d*(g/2),M=h.pathPosition=[];M[v.index]=t[v.wh]/2,M[c.index]=o==="start"?C:o==="end"?l-C:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var L=h.bundlePosition=[];L[v.index]=t[v.xy],L[c.index]=t[c.xy];var I=h.barRectShape=V({},t);I[c.wh]=d*Math.max(Math.abs(t[c.wh]),Math.abs(M[c.index]+C)),I[v.wh]=t[v.wh];var P=h.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}function KM(r){var e=r.symbolPatternSize,t=jt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function JM(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=i[e.valueDim.index]+o+t.symbolMargin*2;for(Fy(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-p),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function QM(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?uo(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=KM(t),n.add(i),uo(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function jM(r,e,t){var a=V({},e.barRectShape),n=r.__pictorialBarRect;n?uo(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new Tt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function t2(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=V({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Mt(n,{shape:i},s,l);else{i[o.wh]=0,n=new Tt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],xi[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function dx(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=yH,t.isAnimationEnabled=mH,t}function yH(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function mH(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function px(r,e,t,a){var n=new ut,i=new ut;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?JM(n,e,t):QM(n,e,t),jM(n,t,a),t2(n,e,t,a),n.__pictorialShapeStr=e2(r,t),n.__pictorialSymbolMeta=t,n}function _H(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Mt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?JM(r,e,t,!0):QM(r,e,t,!0),jM(r,t,!0),t2(r,e,t,!0)}function gx(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];Fy(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),D(i,function(o){on(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function e2(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Fy(r,e,t){D(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function uo(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&xi[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function yx(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");Fy(r,function(p){if(p instanceof ce){var g=p.style;p.useStyle(V({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,ye(d,le(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:yo(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Yt(r,f,h,i.get("disabled"))}function mx(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var SH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=vn(ol.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(ol);function xH(r){r.registerChartView(vH),r.registerSeriesModel(SH),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ct(VC,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,zC("pictorialBar"))}var bH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;s.x=0,s.y=f.y+h[0];function v(g){return g.name}var c=new _a(this._layersSeries||[],l,v,v),d=[];c.add(J(p,this,"add")).update(J(p,this,"update")).remove(J(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=h)}return{y0:n,max:i}}function DH(r){r.registerChartView(bH),r.registerSeriesModel(TH),r.registerLayout(AH),r.registerProcessor(El("themeRiver"))}var MH=2,LH=4,Sx=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=MH,o.textConfig={inside:!0},ht(o).seriesIndex=a.seriesIndex;var s=new Ct({z2:LH,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ht(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=V({},f);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=po(c,o));var d=ei(l.getModel("itemStyle"),h,!0);V(h,d),D(ke,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=ei(S,h);b&&(_.shape=b)}),t?(s.setShape(h),s.shape.r=f.r0,Ft(s,{shape:{r:f.r}},n,a.dataIndex)):(Mt(s,{shape:h},n),Ir(s)),s.useStyle(v),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?Hs(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Yt(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,v=h.getTextContent(),c=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)P&&!$s(E-P)&&E0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new Sx(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Af(u,f)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Fp,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Nt),EH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};r2(n);var i=this._levelModels=H(t.levels||[],function(l){return new Et(l,this,a)},this),o=Ty.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=i[h.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=zh(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){sM(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Gt);function r2(r){var e=0;D(r.children,function(a){r2(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}var bx=Math.PI/180;function kH(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=Z(n[0],o),f=Z(n[1],s),h=Z(i[0],l/2),v=Z(i[1],l/2),c=-a.get("startAngle")*bx,d=a.get("minAngle")*bx,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&a2(g,m);var _=0;D(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(v-h)/(w||1),A=a.get("clockwise"),C=a.get("stillShowZeroSum"),M=A?1:-1,L=function(E,N){if(E){var O=N;if(E!==p){var B=E.getValue(),G=S===0&&C?b:B*b;G1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&K(s)&&(s=Ld(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");V(u,l)})})}function BH(r){r.registerChartView(RH),r.registerSeriesModel(EH),r.registerLayout(ct(kH,"sunburst")),r.registerProcessor(ct(El,"sunburst")),r.registerVisual(NH),PH(r)}var Tx={color:"fill",borderColor:"stroke"},VH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ca=At(),zH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return Aa(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=ca(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Gt);function GH(r,e){return e=e||[0,0],H(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function FH(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:J(GH,r)}}}function HH(r,e){return e=e||[0,0],H([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function WH(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:J(HH,r)}}}function UH(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function YH(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:J(UH,r)}}}function $H(r,e){return e=e||[0,0],H(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function XH(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:J($H,r)}}}function ZH(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function n2(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||j(r,"text")))}function i2(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},j(a,"text")&&(o.text=a.text),j(a,"rich")&&(o.rich=a.rich),j(a,"textFill")&&(o.fill=a.textFill),j(a,"textStroke")&&(o.stroke=a.textStroke),j(a,"fontFamily")&&(o.fontFamily=a.fontFamily),j(a,"fontSize")&&(o.fontSize=a.fontSize),j(a,"fontStyle")&&(o.fontStyle=a.fontStyle),j(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=j(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),j(a,"textPosition")&&(n.position=a.textPosition),j(a,"textOffset")&&(n.offset=a.textOffset),j(a,"textRotation")&&(n.rotation=a.textRotation),j(a,"textDistance")&&(n.distance=a.textDistance)}return Ax(o,r),D(o.rich,function(l){Ax(l,l)}),{textConfig:n,textContent:i}}function Ax(r,e){e&&(e.font=e.textFont||e.font,j(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),j(e,"textAlign")&&(r.align=e.textAlign),j(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),j(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),j(e,"textWidth")&&(r.width=e.textWidth),j(e,"textHeight")&&(r.height=e.textHeight),j(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),j(e,"textPadding")&&(r.padding=e.textPadding),j(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),j(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),j(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),j(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),j(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),j(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),j(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function Cx(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";Dx(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,D(e.rich,function(s){Dx(s,s)}),a}function Dx(r,e){e&&(j(e,"fill")&&(r.textFill=e.fill),j(e,"stroke")&&(r.textStroke=e.fill),j(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),j(e,"font")&&(r.font=e.font),j(e,"fontStyle")&&(r.fontStyle=e.fontStyle),j(e,"fontWeight")&&(r.fontWeight=e.fontWeight),j(e,"fontSize")&&(r.fontSize=e.fontSize),j(e,"fontFamily")&&(r.fontFamily=e.fontFamily),j(e,"align")&&(r.textAlign=e.align),j(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),j(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),j(e,"width")&&(r.textWidth=e.width),j(e,"height")&&(r.textHeight=e.height),j(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),j(e,"padding")&&(r.textPadding=e.padding),j(e,"borderColor")&&(r.textBorderColor=e.borderColor),j(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),j(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),j(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),j(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),j(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),j(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),j(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),j(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),j(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),j(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var o2={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Mx=wt(o2);qr(Jr,function(r,e){return r[e]=1,r},{});Jr.join(", ");var Yf=["","style","shape","extra"],So=At();function Hy(r,e,t,a,n){var i=r+"Animation",o=Do(r,a,n)||{},s=So(e).userDuring;return o.duration>0&&(o.during=s?J(jH,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),V(o,t[i]),o}function af(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=So(r),u=e.style;l.userDuring=e.during;var f={},h={};if(e6(r,e,h),Ix("shape",e,h),Ix("extra",e,h),!i&&s&&(t6(r,e,f),Lx("shape",r,e,f),Lx("extra",r,e,f),r6(r,e,u,f)),h.style=u,qH(r,h,o),JH(r,e),s)if(i){var v={};D(Yf,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(v[d]=v[d]||{}),V(d?v[d]:v,p.enterFrom))});var c=Hy("enter",r,e,t,n);c.duration>0&&r.animateFrom(v,c)}else KH(r,e,n||0,t,f);s2(r,e),u?r.dirty():r.markRedraw()}function s2(r,e){for(var t=So(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function JH(r,e){j(e,"silent")&&(r.silent=e.silent),j(e,"ignore")&&(r.ignore=e.ignore),r instanceof cr&&j(e,"invisible")&&(r.invisible=e.invisible),r instanceof St&&j(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Vr={},QH={setTransform:function(r,e){return Vr.el[r]=e,this},getTransform:function(r){return Vr.el[r]},setShape:function(r,e){var t=Vr.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Vr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Vr.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Vr.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Vr.el.extra||(Vr.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Vr.el.extra;if(e)return e[r]}};function jH(){var r=this,e=r.el;if(e){var t=So(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}Vr.el=e,a(QH)}}function Lx(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),fi(l))V(o,i);else for(var u=Ot(l),f=0;f=0){!o&&(o=a[r]={});for(var c=wt(i),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=a.style={});for(var d=wt(t),u=0;u=0?e.getStore().get(N,R):void 0}var O=e.get(E.name,R),B=E&&E.ordinalMeta;return B?B.categories[O]:O}function x(P,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),N=E&&E.fill,O=E&&E.opacity,B=m(R,Ka).getItemStyle();N!=null&&(B.fill=N),O!=null&&(B.opacity=O);var G={inheritColor:K(N)?N:"#000"},U=_(R,Ka),X=zt(U,null,G,!1,!0);X.text=U.getShallow("show")?vt(r.getFormattedLabel(R,Ka),yo(e,R)):null;var rt=wf(U,G,!1);return A(P,B),B=Cx(B,X,rt),P&&T(B,P),B.legacy=!0,B}function w(P,R){R==null&&(R=u);var E=m(R,da).getItemStyle(),N=_(R,da),O=zt(N,null,null,!0,!0);O.text=N.getShallow("show")?Xr(r.getFormattedLabel(R,da),r.getFormattedLabel(R,Ka),yo(e,R)):null;var B=wf(N,null,!0);return A(P,E),E=Cx(E,O,B),P&&T(E,P),E.legacy=!0,E}function T(P,R){for(var E in R)j(R,E)&&(P[E]=R[E])}function A(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function C(P,R){if(R==null&&(R=u),j(Tx,P)){var E=e.getItemVisual(R,"style");return E?E[Tx[P]]:null}if(j(VH,P))return e.getItemVisual(R,P)}function M(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return e5(ot({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function I(P){return kg(P,t)}}function v6(r){var e={};return D(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function Kc(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=Xy(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Yt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Xy(r,e,t,a,n,i){var o=-1,s=e;e&&h2(e,a,n)&&(o=yt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Yy(a),s&&l6(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),er.normal.cfg=er.normal.conOpt=er.emphasis.cfg=er.emphasis.conOpt=er.blur.cfg=er.blur.conOpt=er.select.cfg=er.select.conOpt=null,er.isLegacy=!1,d6(u,t,a,n,l,er),c6(u,t,a,n,l),$y(r,u,t,a,er,n,l),j(a,"info")&&(ca(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function h2(r,e,t){var a=ca(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&_6(i)&&v2(i)!==a.customPathData||n==="image"&&j(o,"image")&&o.image!==a.customImagePath}function c6(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&h2(o,i,a)&&(o=null),o||(o=Yy(i),r.setClipPath(o)),$y(null,o,e,i,null,a,n)}}function d6(r,e,t,a,n,i){if(!r.isGroup){Rx(t,null,i),Rx(t,da,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Yy(o),r.setTextContent(f)),$y(null,f,e,o,null,a,n);for(var h=o&&o.style,v=0;v=f;c--){var d=e.childAt(c);g6(e,d,n)}}}function g6(r,e,t){e&&Hh(e,ca(r).option,t)}function y6(r){new _a(r.oldChildren,r.newChildren,Ex,Ex,r).add(kx).update(kx).remove(m6).execute()}function Ex(r,e){var t=r&&r.name;return t??o6+e}function kx(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;Xy(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function m6(r){var e=this.context,t=e.oldChildren[r];t&&Hh(t,ca(t).option,e.seriesModel)}function v2(r){return r&&(r.pathData||r.d)}function _6(r){return r&&(j(r,"pathData")||j(r,"d"))}function S6(r){r.registerChartView(u6),r.registerSeriesModel(zH)}var $n=At(),Ox=lt,Jc=J,qy=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new ut,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var v=ct(Nx,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}Vx(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=yy(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=$n(e).pointerEl=new xi[i.type](Ox(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=$n(e).labelEl=new Ct(Ox(t.label));e.add(i),Bx(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=$n(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=$n(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),Bx(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Tl(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){pa(u.event)},onmousedown:Jc(this._onHandleDragMove,this,0,0),drift:Jc(this._onHandleDragMove,this),ondragend:Jc(this._onHandleDragEnd,this)}),a.add(n)),Vx(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,ko(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){Nx(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Qc(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Qc(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Qc(n)),$n(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),tl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function Nx(r,e,t,a){c2($n(t).lastProp,a)||($n(t).lastProp=a,e?Mt(t,a,r):(t.stopAnimation(),t.attr(a)))}function c2(r,e){if(st(r)&&st(e)){var t=!0;return D(e,function(a,n){t=t&&c2(r[n],a)}),!!t}else return r===e}function Bx(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Qc(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Vx(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}function Ky(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function d2(r,e,t,a,n){var i=t.get("value"),o=p2(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Io(s.get("padding")||0),u=s.getFont(),f=yl(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=n.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),x6(h,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function x6(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function p2(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:oy(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};D(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),K(o)?i=o.replace("{value}",i):nt(o)&&(i=o(s))}return i}function Jy(r,e,t){var a=qe();return _i(a,a,t.rotation),Kr(a,a,t.position),Mr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function g2(r,e,t,a,n,i){var o=Re.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),d2(e,a,n,i,{position:Jy(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Qy(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function y2(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function zx(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var b6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=Gx(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=Ky(i),c=w6[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var d=wp(l.model,n);g2(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=wp(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Jy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Gx(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:d[f]}},e}(qy);function Gx(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var w6={line:function(r,e,t){var a=Qy([e,t[0]],[e,t[1]],Fx(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:y2([e-a/2,t[0]],[a,n],Fx(r))}}};function Fx(r){return r.dim==="x"?0:1}var T6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(bt),ua=At(),A6=D;function m2(r,e,t){if(!xt.node){var a=e.getZr();ua(a).records||(ua(a).records={}),C6(a,e);var n=ua(a).records[r]||(ua(a).records[r]={});n.handler=t}}function C6(r,e){if(ua(r).initialized)return;ua(r).initialized=!0,t("click",ct(Hx,"click")),t("mousemove",ct(Hx,"mousemove")),t("globalout",M6);function t(a,n){r.on(a,function(i){var o=L6(e);A6(ua(r).records,function(s){s&&n(s,i,o.dispatchAction)}),D6(o.pendings,e)})}}function D6(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function M6(r,e,t){r.handler("leave",null,t)}function Hx(r,e,t,a){e.handler(r,t,a)}function L6(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function Up(r,e){if(!xt.node){var t=e.getZr(),a=(ua(t).records||{})[r];a&&(ua(t).records[r]=null)}}var I6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";m2("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){Up("axisPointer",a)},e.prototype.dispose=function(t,a){Up("axisPointer",a)},e.type="axisPointer",e}(Ut);function _2(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=vi(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=i.mapDimension(v),p=[];p[c]=i.get(d,o),p[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(H(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var Wx=At();function P6(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||J(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){nf(n)&&(n=_2({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=nf(n),u=i.axesInfo,f=s.axesInfo,h=a==="leave"||nf(n),v={},c={},d={list:[],map:{}},p={showPointer:ct(E6,c),showTooltip:ct(k6,d)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=V6(u,S);if(!h&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&Ux(S,T,p,!1,v)}})});var g={};return D(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&D(_.axesInfo,function(S,b){var x=c[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,Yx(S),Yx(y)))),g[y.key]=w}})}),D(g,function(y,m){Ux(f[m],y,p,!0,v)}),O6(c,f,v),N6(d,n,r,o),B6(f,o,t),v}}function Ux(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=R6(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&V(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function R6(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return D(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,n=h,i.length=0),D(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function E6(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function k6(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=sl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function O6(r,e,t){var a=t.axesInfo=[];D(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function N6(r,e,t,a){if(nf(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function B6(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=Wx(a)[n]||{},o=Wx(a)[n]={};D(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&D(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];D(i,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function V6(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function Yx(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function nf(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Bl(r){Ai.registerAxisPointerClass("CartesianAxisPointer",b6),r.registerComponentModel(T6),r.registerComponentView(I6),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=ZV(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},P6)}function z6(r){mt(XD),mt(Bl)}var G6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var c=Ky(i),d=H6[v](s,l,h,f);d.style=c,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=F6(a,n,i,l,p);d2(t,n,i,o,g)},e}(qy);function F6(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(i.dim==="radius"){var v=qe();_i(v,v,s),Kr(v,v,[a.cx,a.cy]),u=Mr([o,-n],v);var c=e.getModel("axisLabel").get("rotate")||0,d=Re.innerTextLayout(s,c*Math.PI/180,-1);f=d.textAlign,h=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var H6={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:Qy(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:zx(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:zx(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},W6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(bt),jy=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Qt).models[0]},e.type="polarAxis",e}(bt);te(jy,Ml);var U6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(jy),Y6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(jy),tm=function(r){k(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(Rr);tm.prototype.dataToRadius=Rr.prototype.dataToCoord;tm.prototype.radiusToData=Rr.prototype.coordToData;var $6=At(),em=function(r){k(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=yl(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),d=$6(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-c)<=1&&Math.abs(g-o)<=1&&p>c?c=p:(d.lastTickCount=o,d.lastAutoInterval=c),c},e}(Rr);em.prototype.dataToAngle=Rr.prototype.dataToCoord;em.prototype.angleToData=Rr.prototype.coordToData;var S2=["radius","angle"],X6=function(){function r(e){this.dimensions=S2,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new tm,this._angleAxis=new em,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,h=u*u+f*f,v=this.r,c=this.r0;return v!==c&&h-o<=v*v&&h+o>=c*c}}},r.prototype.convertToPixel=function(e,t,a){var n=$x(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=$x(t);return n===this?this.pointToData(a):null},r}();function $x(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Z6(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=Z(a[0],n),r.cy=Z(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[Z(l[0],s),Z(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function q6(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();D(kf(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),D(kf(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),go(a.scale,a.model),go(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function K6(r){return r.mainType==="angleAxis"}function Xx(r,e){var t;if(r.type=e.get("type"),r.scale=Oh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),K6(e)){r.inverse=r.inverse!==e.get("clockwise");var a=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:a+(r.inverse?-360:360);r.setExtent(a,n)}e.axis=r,r.model=e}var J6={dimensions:S2,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new X6(n+"");i.update=q6;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Xx(o,l),Xx(s,u),Z6(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Qt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},Q6=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ru(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Eu(r){var e=r.getRadiusAxis();return e.inverse?0:1}function Zx(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var j6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=H(n.getViewLabels(),function(f){f=lt(f);var h=n.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});Zx(u),Zx(s),D(Q6,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&t8[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Ai),t8={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Eu(t),h=f?0:1,v,c=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[h]===0?v=new xi[c]({shape:{cx:t.cx,cy:t.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new Sl({shape:{cx:t.cx,cy:t.cy,r:i[f],r0:i[h]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Eu(t)],u=H(a,function(f){return new ie({shape:Ru(t,[l,l+s],f.coord)})});r.add(ur(u,{style:ot(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Eu(t)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];st(b)&&b.textStyle&&(c=new Et(b.textStyle,l,l.ecModel))}var x=new Ct({silent:Re.isLabelSilent(e),style:zt(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=Re.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=h.rawLabel,ht(x).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",R=A;b&&(a[f][I]||(a[f][I]={p:A,n:A}),R=a[f][I][P]);var E=void 0,N=void 0,O=void 0,B=void 0;if(d.dim==="radius"){var G=d.dataToCoord(L)-A,U=l.dataToCoord(I);Math.abs(G)=B})}}})}function s8(r){var e={};D(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=b2(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=x2(a);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var d=Z(a.get("barWidth"),f),p=Z(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!v[c].width&&(d=Math.min(h.remainedWidth,d),v[c].width=d,h.remainedWidth-=d),p&&(v[c].maxWidth=p),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return D(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=Z(a.categoryGap,o),l=Z(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),D(i,function(p,g){var y=p.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=qx(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=qx(t);return n===this?this.pointToData(a):null},r}();function qx(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function m8(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new y8(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",Qt).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var _8={create:m8,dimensions:w2},Kx=["x","y"],S8=["width","height"],x8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=jc(l,1-Zf(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var v=Ky(i),c=b8[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var d=Yp(n);g2(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Yp(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Jy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Zf(o),u=jc(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=jc(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(qy),b8={line:function(r,e,t){var a=Qy([e,t[0]],[e,t[1]],Zf(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:y2([e-a/2,t[0]],[a,n],Zf(r))}}};function Zf(r){return r.isHorizontal()?0:1}function jc(r,e){var t=r.getRect();return[t[Kx[e]],t[Kx[e]]+t[S8[e]]]}var w8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Ut);function T8(r){mt(Bl),Ai.registerAxisPointerClass("SingleAxisPointer",x8),r.registerComponentView(w8),r.registerComponentView(d8),r.registerComponentModel(of),mo(r,"single",of,of.defaultOption),r.registerCoordinateSystem("single",_8)}var A8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=Po(t);r.prototype.init.apply(this,arguments),Jx(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),Jx(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(bt);function Jx(r,e){var t=r.cellSize,a;z(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=H([0,1],function(i){return $E(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});sn(r,e,{type:"box",ignoreSize:n})}var C8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,h=new Tt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){d(h.formatedDate),v===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Be({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return K(t)&&t?WE(t,a):nt(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Ct({z2:30,style:zt(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||K(s))&&(s&&(a=jd(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g=n.start.time&&a.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/td)-Math.floor(t[0].time/td)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),h=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&tn.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function Qx(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function M8(r){r.registerComponentModel(A8),r.registerComponentView(C8),r.registerCoordinateSystem("calendar",D8)}function L8(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function jx(r,e){var t;return D(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function I8(r,e,t){var a=V({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(dt(n,a,!0),sn(n,a,{ignoreSize:!0}),pA(t,n),ku(t,n),ku(t,n,"shape"),ku(t,n,"style"),ku(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var T2=["transition","enterFrom","leaveTo"],P8=T2.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ku(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?T2:P8,n=0;n=0;f--){var h=n[f],v=ee(h.id,null),c=v!=null?o.get(v):null;if(c){var d=c.parent,y=or(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Ch(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!or(c).isNew&&S){for(var b=h.transition,x={},w=0;w=0)?x[T]=A:c[T]=A}Mt(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){sf(n,or(n).option,a,t._lastGraphicModel)}),this._elMap=et()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Ut);function $p(r){var e=j(tb,r)?tb[r]:Eg(r),t=new e({});return or(t).type=r,t}function eb(r,e,t,a){var n=$p(t);return e.add(n),a.set(r,n),or(n).id=r,or(n).isNew=!0,n}function sf(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){sf(i,e,t,a)}),Hh(r,e,a),t.removeKey(or(r).id))}function rb(r,e,t,a){r.isGroup||D([["cursor",cr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];j(e,i)?r[i]=vt(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),D(wt(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=nt(i)?i:null}}),j(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function O8(r){return r=V({},r),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(dA),function(e){delete r[e]}),r}function N8(r,e,t){var a=ht(r).eventData;!r.silent&&!r.ignore&&!a&&(a=ht(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function B8(r){r.registerComponentModel(E8),r.registerComponentView(k8),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var ab=["x","y","radius","angle","single"],V8=["cartesian2d","polar","singleAxis"];function z8(r){var e=r.get("coordinateSystem");return yt(V8,e)>=0}function Ja(r){return r+"Axis"}function G8(r,e){var t=et(),a=[],n=et();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var d=t.get(v);d&&d[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return a}function A2(r){var e=r.ecModel,t={infoList:[],infoMap:et()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(Ja(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var ed=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),cl=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=nb(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=nb(t);dt(this.option,t,!0),dt(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=et(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return D(ab,function(n){var i=this.getReferringComponents(Ja(n),RP);if(i.specified){a=!0;var o=new ed;D(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(h){var v=new ed;if(v.add(h.componentIndex),t.set(f,v),i=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Qt).models[0];c&&D(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",Qt).models[0]&&v.add(d.componentIndex)})}}}i&&D(ab,function(u){if(i){var f=n.findComponents({mainType:Ja(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new ed;h.add(f[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(Ja(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){D(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(Ja(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;D(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else Qi(f,function(c){if(i==="empty")l.setData(u=u.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,u.selectRange(d)}});Qi(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;Qi(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Rt(a[0]+o,a,[0,100],!0):i!=null&&(o=Rt(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=aT(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function U8(r,e,t){var a=[1/0,-1/0];Qi(t,function(o){w5(a,o.getData(),e)});var n=r.getAxisModel(),i=WC(n.axis.scale,n,a).calculate();return[i.min,i.max]}var Y8={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Ja(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new W8(n,i,s,r),t.push(o.__dzAxisProxy))});var a=et();return D(t,function(n){D(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function $8(r){r.registerAction("dataZoom",function(e,t){var a=G8(t,e);D(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var ob=!1;function am(r){ob||(ob=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Y8),$8(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function X8(r){r.registerComponentModel(F8),r.registerComponentView(H8),am(r)}var lr=function(){function r(){}return r}(),C2={};function ji(r,e){C2[r]=e}function D2(r){return C2[r]}var Z8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;D(this.option.feature,function(a,n){var i=D2(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),dt(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(bt);function q8(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=re(a,i,n);li(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Ch(r,a,i,n)}function M2(r,e){var t=Io(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new Tt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var K8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];D(u,function(d,p){h.push(p)}),new _a(this._featureNames||[],h).add(v).update(v).remove(ct(v,null)).execute(),this._featureNames=h;function v(d,p){var g=h[d],y=h[p],m=u[g],_=new Et(m,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(J8(g))S={onclick:_.option.onclick,featureName:g};else{var b=D2(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=Lo("toolbox-feature"),S.model=_,S.ecModel=a,S.api=n;var x=S instanceof lr;if(!g&&y){x&&S.dispose&&S.dispose(a,n);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(a,n);return}c(_,S,g),_.setIconStatus=function(w,T){var A=this.option,C=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=T,C[w]&&(T==="emphasis"?ya:ma)(C[w])},S instanceof lr&&S.render&&S.render(_,a,n,i)}function c(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof lr&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;K(_)?(b={},b[g]=_):b=_,K(S)?(x={},x[g]=S):x=S;var w=d.iconPaths={};D(b,function(T,A){var C=Tl(T,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var M=C.ensureState("emphasis");M.style=m.getItemStyle();var L=new Ct({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:kg({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},a)},ignore:!0});C.setTextContent(L),Si({el:C,componentModel:t,itemName:A,formatterParamsExtra:{title:x[A]}}),C.__title=x[A],C.on("mouseover",function(){var I=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),C.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",A])==="emphasis"?ya:ma)(C),o.add(C),C.on("click",J(p.onclick,p,a,n,A)),w[A]=C})}q8(o,t,n),o.add(M2(o.getBoundingRect(),t)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!nt(_)&&p){var S=_.style||(_.style={}),b=yl(p,Ct.makeFont(S)),x=d.x+o.x,w=d.y+o.y+s,T=!1;w+b.height>n.getHeight()&&(y.position="top",T=!0);var A=T?-5-b.height:s+10;x+b.width/2>n.getWidth()?(y.position=["100%",A],S.align="right"):x-b.width/2<0&&(y.position=[0,A],S.align="left")}})},e.prototype.updateView=function(t,a,n,i){D(this._features,function(o){o instanceof lr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){D(this._features,function(n){n instanceof lr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){D(this._features,function(n){n instanceof lr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(Ut);function J8(r){return r.indexOf("my")===0}var Q8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=xt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];c&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=n.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e}(lr),sb="__ec_magicType_stack__",j8=[["line","bar"],["stack"]],tW=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return D(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(lb[n]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,d=lb[n](v,c,h,i);d&&(ot(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Qt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};D(j8,function(h){yt(h,n)>=0&&D(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=dt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(lr),lb={line:function(r,e,t,a){if(r==="bar")return dt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return dt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===sb;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),dt({id:e,stack:n?"":sb},a.get(["option","stack"])||{},!0)}};ea({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var Wh=new Array(60).join("-"),xo=" ";function eW(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function rW(r){var e=[];return D(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(H(t.series,function(c){return c.name})),l=[n.model.getCategories()];D(t.series,function(c){var d=c.getRawData();l.push(c.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(xo)],f=0;f=0)return!0}var Xp=new RegExp("["+xo+"]+","g");function oW(r){for(var e=r.split(/\n+/g),t=qf(e.shift()).split(Xp),a=[],n=H(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function vW(r){var e=nm(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return L2(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function cW(r){I2(r).snapshots=null}function dW(r){return nm(r).length}function nm(r){var e=I2(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var pW=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){cW(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(lr);ea({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var gW=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],im=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=ub(t,e);D(yW,function(o,s){(!a||!a.include||yt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=rd[a.brushType](0,i,n);a.__rangeOffset={offset:cb[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){D(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&D(i.coordSyses,function(o){var s=rd[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){D(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=rd[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?cb[a.brushType](i.values,o.offset,mW(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return H(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:VM(n),isTargetByCursor:GM(n,e,a.coordSysModel),getLinearBrushOtherExtent:zM(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&yt(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=ub(t,e),i=0;ir[1]&&r.reverse(),r}function ub(r,e){return Is(r,e,{includeMainTypes:gW})}var yW={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=et(),o={},s={};!t&&!a&&!n||(D(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];D(u.getCartesians(),function(h,v){(yt(t,h.getAxis("x").model)>=0||yt(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:hb.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){D(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:hb.geo})})}},fb=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],hb={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(si(r)),e}},rd={lineX:ct(vb,0),lineY:ct(vb,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[Zp([n[0],i[0]]),Zp([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=H(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function vb(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=Zp(H([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var cb={lineX:ct(db,0),lineY:ct(db,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return H(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function db(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function mW(r,e){var t=pb(r),a=pb(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function pb(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var qp=D,_W=DP("toolbox-dataZoom_"),SW=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new Ry(n.getZr()),this._brushController.on("brush",J(this._onBrush,this)).mount()),wW(t,a,this,i,n),bW(t,a)},e.prototype.onclick=function(t,a,n){xW[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new im(om(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),hW(i,n),this._dispatchZoomAction(n);function s(u,f,h){var v=f.getAxis(u),c=v.model,d=l(u,c,i),p=d.findRepresentativeAxisProxy(c).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=Ci(0,h.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var d=c.getAxisModel(u,f.componentIndex);d&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var a=[];qp(t,function(n,i){a.push(lt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e}(lr),xW={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(vW(this.ecModel))}};function om(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function bW(r,e){r.setIconStatus("back",dW(e)>1?"emphasis":"normal")}function wW(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new im(om(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}QE("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=om(a),o=Is(r,i);qp(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),qp(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:_W+u+h};v[f]=h,n.push(v)}return n});function TW(r){r.registerComponentModel(Z8),r.registerComponentView(K8),ji("saveAsImage",Q8),ji("magicType",tW),ji("dataView",uW),ji("dataZoom",SW),ji("restore",pW),mt(X8)}var AW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(bt);function P2(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function R2(r){if(xt.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var d=e+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'
'}function RW(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=xt.transformSupported?","+sm+a:",left"+a+",top"+a),MW+":"+n}function gb(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!xt.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=xt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+sm+":"+o+";":[["top",0],["left",0],[E2,o]]}function EW(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=vt(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),D(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function kW(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=$A(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),e&&n&&a.push(RW(n,t)),i&&a.push("background-color:"+i),D(["width","color","radius"],function(c){var d="border-"+c,p=vA(d),g=r.get(p);g!=null&&a.push(d+":"+g+(c==="color"?"":"px"))}),a.push(EW(f)),h!=null&&a.push("padding:"+Io(h).join("px ")+"px"),a.join(";")+";"}function yb(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&iI(r,o,t,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var OW=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,xt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(K(i)?document.querySelector(i):fo(i)?i:nt(i)&&i(e.getDom()));yb(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();ar(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),a=DW(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=LW+kW(e,!this._firstShow,this._longHide)+gb(i[0],i[1],!0)+("border-color:"+pi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(K(i)&&a.get("trigger")==="item"&&!P2(a)&&(s=PW(a,n,i)),K(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||xt.node||!n.getDom())){var o=Sb(i,n);this._ticket="";var s=i.dataByCoordSys,l=HW(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=BW;f.x=i.x,f.y=i.y,f.update(),ht(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var h=_2(i,a),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Sb(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),h=ls([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=ht(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Qn(n,function(f){if(ht(f).dataIndex!=null)return l=f,!0;if(ht(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(t,l,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=J(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=ls([a.tooltipOption],i),l=this._renderMode,u=[],f=ue("section",{blocks:[],noHeader:!0}),h=[],v=new Fv;D(t,function(m){D(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=p2(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ue("section",{header:x,noHeader:!Ar(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),D(_.seriesDataIndices,function(T){var A=n.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,M=A.getDataParams(C);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=oy(S.axis,{value:b}),M.axisValueLabel=x,M.marker=v.makeTooltipMarker("item",pi(M.color),l);var L=n_(A.formatTooltip(C,!0,null)),I=L.frag;if(I){var P=ls([A],i).get("valueFormatter");w.blocks.push(P?V({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,d=s.get("order"),p=f_(f,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?` - -`:"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=ht(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=t.positionDefault,p=ls([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Fv;y.marker=m.makeTooltipMarker("item",pi(y.color),c);var _=n_(u.formatTooltip(f,!1,h)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?f_(b?V({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=ht(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(K(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=lt(l),l.content=Ie(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=t.positionDefault,d=ls(h,this._tooltipModel,c?{position:c}:null),p=d.get("content"),g=Math.random()+"",y=new Fv;this._showOrMove(d,function(){var m=lt(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(v)if(K(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=xh(y.axisValue,c,g)),c=cA(c,n,!0)}else if(nt(v)){var _=J(function(S,b){S===this._ticket&&(h.setContent(b,f,t,p,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,p,l),h.show(t,p),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),nt(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=Z(a[0],u),i=Z(a[1],f);else if(st(a)){var p=a;p.width=h[0],p.height=h[1];var g=re(p,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(K(a)&&l){var y=FW(a,d,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=zW(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=xb(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=xb(c)?h[1]/2:c==="bottom"?h[1]:0),P2(t)){var y=GW(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&D(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&D(u,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&D(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){xt.node||!a.getDom()||(tl(this,"_updatePosition"),this._tooltipContent.dispose(),Up("itemTooltip",a))},e.type="tooltip",e}(Ut);function ls(r,e,t){var a=e.ecModel,n;t?(n=new Et(t,a,a),n=new Et(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Et&&(o=o.get("tooltip",!0)),K(o)&&(o={formatter:o}),o&&(n=new Et(o,n,a)))}return n}function Sb(r,e){return r.dispatchAction||J(e.dispatchAction,e)}function zW(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function GW(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function FW(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function xb(r){return r==="center"||r==="middle"}function HW(r,e,t){var a=xg(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=ml(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ht(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function WW(r){mt(Bl),r.registerComponentModel(AW),r.registerComponentView(VW),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qt)}var UW=["rect","polygon","keep","clear"];function YW(r,e){var t=Ot(r?r.brush:[]);if(t.length){var a=[];D(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;z(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),$W(s),e&&!s.length&&s.push.apply(s,UW)}}function $W(r){var e={};D(r,function(t){e[t]=1}),r.length=0,D(e,function(t,a){r.push(a)})}var bb=D;function wb(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Kp(r,e,t){var a={};return bb(e,function(i){var o=a[i]=n();bb(r[i],function(s,l){if(se.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new se(u),l==="opacity"&&(u=lt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new se(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function O2(r,e,t){var a;D(t,function(n){e.hasOwnProperty(n)&&wb(e[n])&&(a=!0)}),a&&D(t,function(n){e.hasOwnProperty(n)&&wb(e[n])?r[n]=lt(e[n]):delete r[n]})}function XW(r,e,t,a,n,i){var o={};D(r,function(h){var v=se.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return Kg(t,s,h)}function u(h,v){rC(t,s,h,v)}t.each(f);function f(h,v){s=h;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var d=a.call(n,h),p=e[d],g=o[d],y=0,m=g.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&Mb(e)}};function Mb(r){return new gt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var e7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new Ry(a.getZr())).on("brush",J(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){N2(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:lt(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:lt(n),$from:a})},e.type="brush",e}(Ut),r7="#ddd",a7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&O2(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:r7},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=H(t,function(a){return Lb(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Lb(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(bt);function Lb(r,e){return dt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Et(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var n7=["rect","polygon","lineX","lineY","keep","clear"],i7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return D(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:n7.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e}(lr);function o7(r){r.registerComponentView(e7),r.registerComponentModel(a7),r.registerPreprocessor(YW),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,KW),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},qt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},qt),ji("brush",i7)}var s7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(bt),l7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=vt(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Ct({style:zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new Ct({style:zt(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,c.silent=!p&&!g,d&&f.on("click",function(){Af(d,"_"+t.get("target"))}),p&&c.on("click",function(){Af(p,"_"+t.get("subtarget"))}),ht(f).eventData=ht(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=re(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new Tt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Ut);function u7(r){r.registerComponentModel(s7),r.registerComponentView(l7)}var Ib=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],D(a,function(u,f){var h=ee(Ao(u),""),v;st(u)?(v=lt(u),v.value=f):v=f,o.push(v),i.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Pe([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(bt),B2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=vn(Ib.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(Ib);te(B2,Mh.prototype);var f7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Ut),h7=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Rr),nd=Math.PI,Pb=At(),v7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ue("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=d7(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:nd/2},h=i==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),d=c?v.get("itemSize"):0,p=c?v.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*nd/180;var m,_,S,b=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),w=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),A=0,C=h;b==="left"||b==="bottom"?(x&&(m=[0,0],A+=g),w&&(_=[A,0],A+=g),T&&(S=[C-d,0],C-=g)):(x&&(m=[C-d,0],C-=g),w&&(_=[0,0],A+=g),T&&(S=[C-d,0],C-=g));var M=[A,C];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:d,controlGap:p}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=qe(),l=o.x,u=o.y+o.height;Kr(s,s,[-l,-u]),_i(s,s,-nd/2),Kr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],d=[i.x,i.y];d[0]=c[0]=f[0][0];var p=t.labelPosOpt;if(p==null||K(p)){var g=p==="+"?0:1;_(c,h,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(c,h,f,1,g),d[1]=c[1]+p}n.setPosition(c),i.setPosition(d),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=c7(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new h7("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new ut;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new ie({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new ie({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ot({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),d=h.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:J(o._changeTimeline,o,u.value)},g=Rb(h,v,a,p);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),oi(g);var y=ht(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],D(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Ct({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:J(o._changeTimeline,o,h),silent:!1,style:zt(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=zt(d),y.ensureState("progress").style=zt(p),a.add(y),oi(y),Pb(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);v(t.nextBtnPosition,"next",J(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",J(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",J(this._handlePlayClick,this,!f),!0);function v(c,d,p,g){if(c){var y=Lr(vt(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=p7(i,d+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),oi(_)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=J(u._handlePointerDrag,u),h.ondragend=J(u._handlePointerDragend,u),Eb(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){Eb(h,u._progressLine,s,n,i)}};this._currentPointer=Rb(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=hr(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var id={min:ct(Bu,"min"),max:ct(Bu,"max"),average:ct(Bu,"average"),median:ct(Bu,"median")};function dl(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!x7(e)&&!z(e.coord)&&z(n)){var i=V2(e,t,a,r);if(e=lt(e),e.type&&id[e.type]&&i.baseAxis&&i.valueAxis){var o=yt(n,i.baseAxis.dim),s=yt(n,i.valueAxis.dim),l=id[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!z(n))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)id[u[f]]&&(u[f]=um(t,t.mapDimension(n[f]),u[f]));return e}}function V2(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(b7(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function b7(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function pl(r,e){return r&&r.containData&&e.coord&&!Qp(e)?r.containData(e.coord):!0}function w7(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Qp(e)&&!Qp(t)?r.containZone(e.coord,t.coord):!0}function z2(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return tn(o,e[i])}:function(t,a,n,i){return tn(t.value,e[i])}}function um(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var od=At(),fm=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=et()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){od(s).keep=!1}),a.eachSeries(function(s){var l=ba.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!od(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){od(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;D(t,function(i){var o=ba.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?IT(l):Mg(l))})}})},e.type="marker",e}(Ut);function Ob(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=Z(i.get("x"),t.getWidth()),l=Z(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var T7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ba.getMarkerModelFromSeries(i,"markPoint");o&&(Ob(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Il),h=A7(o,t,a);a.setData(h),Ob(a.getData(),t,i),h.each(function(v){var c=h.getItemModel(v),d=c.getShallow("symbol"),p=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(nt(d)||nt(p)||nt(g)||nt(y)){var _=a.getRawValue(v),S=a.getDataParams(v);nt(d)&&(d=d(_,S)),nt(p)&&(p=p(_,S)),nt(g)&&(g=g(_,S)),nt(y)&&(y=y(_,S))}var b=c.getModel("itemStyle").getItemStyle(),x=Cl(l,"color");b.fill||(b.fill=x),h.setItemVisual(v,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){ht(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(fm);function A7(r,e,t){var a;r?a=H(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return V(V({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Pe(a,t),i=H(t.get("data"),ct(dl,e));r&&(i=Pt(i,ct(pl,r)));var o=z2(!!r,a);return n.initData(i,null,o),n}function C7(r){r.registerComponentModel(S7),r.registerComponentView(T7),r.registerPreprocessor(function(e){lm(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var D7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ba),Vu=At(),M7=function(r,e,t,a){var n=r.getData(),i;if(z(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=ve(a.yAxis,a.xAxis);else{var u=V2(a,n,e,r);s=u.valueAxis;var f=PC(n,u.valueDataDim);l=um(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=lt(a),d={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,d.coord[v]=1/0;var p=t.get("precision");p>=0&&Dt(l)&&(l=+l.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=l,i=[c,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[dl(r,i[0]),dl(r,i[1]),V({},i[2])];return g[2].type=g[2].type||null,dt(g[2],g[0]),dt(g[2],g[1]),g};function Kf(r){return!isNaN(r)&&!isFinite(r)}function Nb(r,e,t,a){var n=1-r,i=a.dimensions[r];return Kf(e[n])&&Kf(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function L7(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(Nb(1,t,a,r)||Nb(0,t,a,r)))return!0}return pl(r,e[0])&&pl(r,e[1])}function sd(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=Z(o.get("x"),n.getWidth()),u=Z(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,h=r.get(f[0],e),v=r.get(f[1],e);s=i.dataToPoint([h,v])}if(Ti(i,"cartesian2d")){var c=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Kf(r.get(f[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):Kf(r.get(f[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var I7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ba.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Vu(o).from,u=Vu(o).to;l.each(function(f){sd(l,f,!0,i,n),sd(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Py);this.group.add(f.group);var h=P7(o,t,a),v=h.from,c=h.to,d=h.line;Vu(a).from=v,Vu(a).to=c,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");z(p)||(p=[p,p]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),d.each(function(S){var b=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),b.stroke==null&&(b.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:b})}),f.updateData(d),h.line.eachItemGraphicEl(function(S){ht(S).dataModel=a,S.traverse(function(b){ht(b).dataModel=a})});function _(S,b,x){var w=S.getItemModel(b);sd(S,b,x,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Cl(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:vt(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:vt(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:vt(w.get("symbolSize"),g[x?0:1]),symbol:vt(w.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(fm);function P7(r,e,t){var a;r?a=H(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return V(V({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Pe(a,t),i=new Pe(a,t),o=new Pe([],t),s=H(t.get("data"),ct(M7,e,r,t));r&&(s=Pt(s,ct(L7,r)));var l=z2(!!r,a);return n.initData(H(s,function(u){return u[0]}),null,l),i.initData(H(s,function(u){return u[1]}),null,l),o.initData(H(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function R7(r){r.registerComponentModel(D7),r.registerComponentView(I7),r.registerPreprocessor(function(e){lm(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var E7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(ba),zu=At(),k7=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=dl(r,n),s=dl(r,i),l=o.coord,u=s.coord;l[0]=ve(l[0],-1/0),l[1]=ve(l[1],-1/0),u[0]=ve(u[0],1/0),u[1]=ve(u[1],1/0);var f=fg([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Jf(r){return!isNaN(r)&&!isFinite(r)}function Bb(r,e,t,a){var n=1-r;return Jf(e[n])&&Jf(t[n])}function O7(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return Ti(r,"cartesian2d")?t&&a&&(Bb(1,t,a)||Bb(0,t,a))?!0:w7(r,n,i):pl(r,n)||pl(r,i)}function Vb(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=Z(o.get(t[0]),n.getWidth()),u=Z(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),v=i.clampData(f),c=i.clampData(h),d=[];t[0]==="x0"?d[0]=v[0]>c[0]?h[0]:f[0]:d[0]=v[0]>c[0]?f[0]:h[0],t[1]==="y0"?d[1]=v[1]>c[1]?h[1]:f[1]:d[1]=v[1]>c[1]?f[1]:h[1],s=a.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Ti(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);Jf(p)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Jf(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var zb=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],N7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ba.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=H(zb,function(h){return Vb(s,l,h,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new ut});this.group.add(f.group),this.markKeep(f);var h=B7(o,t,a);a.setData(h),h.each(function(v){var c=H(zb,function(T){return Vb(h,v,T,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(h.get("x0",v)),d.parse(h.get("x1",v))],_=[p.parse(h.get("y0",v)),p.parse(h.get("y1",v))];hr(m),hr(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),b=!S;h.setItemLayout(v,{points:c,allClipped:b});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),w=Cl(l,"color");x.fill||(x.fill=w,K(x.fill)&&(x.fill=cf(x.fill,.4))),x.stroke||(x.stroke=w),h.setItemVisual(v,"style",x)}),h.diff(zu(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var d=new Ne({shape:{points:c.points}});h.setItemGraphicEl(v,d),f.group.add(d)}}).update(function(v,c){var d=zu(f).data.getItemGraphicEl(c),p=h.getItemLayout(v);p.allClipped?d&&f.group.remove(d):(d?Mt(d,{shape:{points:p.points}},a,v):d=new Ne({shape:{points:p.points}}),h.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var c=zu(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var d=h.getItemModel(c),p=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),ye(v,le(d),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:K(p.fill)?cf(p.fill,1):"#000"}),ge(v,d),Yt(v,null,null,d.get(["emphasis","disabled"])),ht(v).dataModel=a}),zu(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(fm);function B7(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=H(r&&r.dimensions,function(u){var f=e.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return V(V({},h),{name:u,ordinalMeta:null})});n=H(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new Pe(n,t)}else n=[{name:"value",type:"float"}],a=new Pe(n,t);var s=H(t.get("data"),ct(k7,e,r,t));r&&(s=Pt(s,ct(O7,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return tn(c,n[v])}:function(u,f,h,v){return tn(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}function V7(r){r.registerComponentModel(E7),r.registerComponentView(N7),r.registerPreprocessor(function(e){lm(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var z7=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},jp=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),z(a)&&D(a,function(i,o){K(i)&&(i={type:i}),a[o]=dt(i,z7(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(bt),Yi=ct,tg=D,Gu=ut,G2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Gu),this.group.add(this._selectorGroup=new Gu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=t.get("padding"),c=re(f,h,v),d=this.layoutInner(t,o,c,i,l,u),p=re(ot({width:d.width,height:d.height},f),h,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=M2(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=et(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),tg(a.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===` -`)){var g=new Gu;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,p,d,c,a,t,_,b,S,h,i);x.on("click",Yi(Gb,p,null,i,v)).on("mouseover",Yi(eg,y.name,null,i,v)).on("mouseout",Yi(rg,y.name,null,i,v)),n.ssr&&x.eachChild(function(w){var T=ht(w);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else n.eachRawSeries(function(w){if(!f.get(p)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),C=T.getItemVisual(A,"style"),M=T.getItemVisual(A,"legendIcon"),L=Ke(C.fill);L&&L[3]===0&&(L[3]=.2,C=V(V({},C),{fill:va(L,"rgba")}));var I=this._createItem(w,p,d,c,a,t,{},C,M,h,i);I.on("click",Yi(Gb,null,p,i,v)).on("mouseover",Yi(eg,null,p,i,v)).on("mouseout",Yi(rg,null,p,i,v)),n.ssr&&I.eachChild(function(P){var R=ht(P);R.seriesIndex=w.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();tg(t,function(u){var f=u.type,h=new Ct({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);ye(h,{normal:v,emphasis:c},{defaultText:u.title}),oi(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=G7(f,i,l,u,c,g,v),b=new Gu,x=i.getModel("textStyle");if(nt(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(F7({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,A=s,C=o.get("formatter"),M=a;K(C)&&C?M=C.replace("{name}",a??""):nt(C)&&(M=C(a));var L=g?x.getTextColor():i.get("inactiveColor");b.add(new Ct({style:zt(x,{text:M,x:T,y:p/2,fill:L,align:A,verticalAlign:"middle"},{inheritColor:L})}));var I=new Tt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Si({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(b),oi(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();li(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){li("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ut);function G7(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),tg(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:po(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function F7(r){var e=r.icon||"roundRect",t=jt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Gb(r,e,t,a){rg(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),eg(r,e,t,a)}function F2(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;an[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=vt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:c[o],b[s]=Math.max(c[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),h.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=b[s],h.setClipPath(new Tt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Mt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",K(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=ld[o],l=ud[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e}(G2);function $7(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function X7(r){mt(H2),r.registerComponentModel(U7),r.registerComponentView(Y7),$7(r)}function Z7(r){mt(H2),mt(X7)}var q7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=vn(cl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(cl),hm=At();function K7(r,e,t){hm(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function J7(r,e){for(var t=hm(r).coordSysRecordMap,a=t.keys(),n=0;na[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function rU(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=hm(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=et());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=A2(i);D(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,Q7(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=et());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){W2(n,i);return}var f=eU(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),ko(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var aU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),K7(n,t,{pan:J(fd.pan,this),zoom:J(fd.zoom,this),scrollMove:J(fd.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){J7(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(rm),fd={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=hd[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ci(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Ub(function(r,e,t,a,n,i){var o=hd[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Ub(function(r,e,t,a,n,i){var o=hd[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Ub(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(Ci(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var hd={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function U2(r){am(r),r.registerComponentModel(q7),r.registerComponentView(aU),rU(r)}var nU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=vn(cl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(cl),hs=Tt,Yb=7,iU=1,vd=30,oU=7,vs="horizontal",$b="vertical",sU=5,lU=["line","bar","candlestick","scatter"],uU={easing:"cubicOut",duration:100,delay:0},fU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=J(this._onBrush,this),this._onBrushEnd=J(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),ko(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){tl(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new ut;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?oU:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===vs?{right:s.width-o.x-o.width,top:s.height-vd-Yb-i,width:o.width,height:vd}:{right:Yb,top:o.y,width:vd,height:o.height},u=Po(t.option);D(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=re(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===$b&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===vs&&!o?{scaleY:l?1:-1,scaleX:1}:n===vs&&o?{scaleY:l?1:-1,scaleX:-1}:n===$b&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new hs({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new hs({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:J(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,a[1]],d=[0,a[0]],p=[[a[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(A,C){if(_>0&&C%_){m+=y;return}var M=A==null||isNaN(A)||A==="",L=M?0:Rt(A,h,c,!0);M&&!S&&C?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,L]),g.push([m,L]),m+=y,S=M}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var b=this.dataZoomModel;function x(A){var C=b.getModel(A?"selectedDataBackground":"dataBackground"),M=new ut,L=new Ne({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Be({shape:{points:f},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(L),M.add(I),M}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!n&&!(a!==!0&&yt(lU,u.get("type"))<0)){var f=i.getComponent(Ja(o),s).axis,h=hU(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new hs({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new hs({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:iU,fill:"rgba(0,0,0,0)"}})),D([0,1],function(_){var S=l.get("handleIcon");!Mf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=jt(S,-1,0,2,2,null,!0);b.attr({cursor:Xb(this._orient),draggable:!0,drift:J(this._onDragMove,this,_),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=Z(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),oi(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var A=l.getModel("textStyle"),C=l.get("handleLabel")||{},M=C.show||!1;t.add(i[_]=new Ct({silent:!0,invisible:!M,style:zt(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var c=v;if(h){var d=Z(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new Tt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=jt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));c=a.moveZone=new Tt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),c.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:Xb(this._orient),drift:J(this._onDragMove,this,"all"),ondragstart:J(this._showDataInfo,this,!0),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Rt(t[0],[0,100],a,!0),Rt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ci(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Rt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Rt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=hr([Rt(i[0],o,l,!0),Rt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=hr(n.slice()),o=this._size;D([0,1],function(c){var d=a.handles[c],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[c]+(c?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new pt(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=hr([Rt(n.x,o,s,!0),Rt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(pa(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new hs({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?uU:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=A2(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(rm);function hU(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Xb(r){return r==="vertical"?"ns-resize":"ew-resize"}function Y2(r){r.registerComponentModel(nU),r.registerComponentView(fU),am(r)}function vU(r){mt(U2),mt(Y2)}var $2={get:function(r,e,t){var a=lt((cU[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},cU={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Zb=se.mapVisual,dU=se.eachVisual,pU=z,qb=D,gU=hr,yU=Rt,Qf=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&O2(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=J(t,this),this.controllerVisuals=Kp(this.option.controller,a,t),this.targetVisuals=Kp(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Ot(t),a},e.prototype.eachTargetSeries=function(t,a){D(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if(K(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(nt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=gU([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});dt(i,n),dt(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(h){pU(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var d=h[v],p=h[c];d&&!p&&(p=h[c]={},qb(d,function(g,y){if(se.isValidType(y)){var m=$2.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";qb(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&<(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&<(c)||(s?m[0]:[m[0],m[0]])),_.symbol=Zb(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;dU(S,function(x){x>b&&(b=x)}),_.symbolSize=Zb(S,function(x){return yU(x,[0,b],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(bt),Kb=[20,140],mU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Kb[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Kb[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=hr((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=Jb(this,"outOfRange",this.getExtent()),n=Jb(this,"inRange",this.option.range.slice()),i=[];function o(c,d){i.push({value:c,color:t(c,d)})}for(var s=0,l=0,u=n.length,f=a.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new ut(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);_U([0,1],function(h){var v=o[h];v.setStyle("fill",a.handlesColor[h]),v.y=t[h];var c=zr(t[h],[0,l[1]],u,!0),d=this.getControllerVisual(c,"symbolSize");v.scaleX=v.scaleY=d/l[0],v.x=l[0]-d/2;var p=Mr(n.handleLabelPoints[h],si(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[h].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),d=this.getControllerVisual(t,"symbolSize"),p=zr(t,s,u,!0),g=l[0]-d/2,y={x:h.x,y:h.y};h.y=p,h.x=g;var m=Mr(f.indicatorLabelPoint,si(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:p,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,A),_.animateTo(T,A)}else h.attr(w),_.attr(T);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var M=0;Mo[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,c=[];(a||ew(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var d=IP(v,c);this._dispatchHighDown("downplay",lf(d[0],n)),this._dispatchHighDown("highlight",lf(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(Qn(t.target,function(l){var u=ht(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function DU(r,e,t,a){for(var n=e.targetVisuals[a],i=se.prepareVisualTypes(n),o={color:Cl(r.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(TU,AU),D(CU,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(MU))}function K2(r){r.registerComponentModel(mU),r.registerComponentView(bU),q2(r)}var LU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],IU[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=lt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=H(this._pieceList,function(l){return l=lt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=se.listVisualTypes(),i=this.isCategory();D(t.pieces,function(s){D(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),D(a,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&D(this.stateList,function(f){(t[f]||(t[f]={}))[l]=$2.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=lt(t)},e.prototype.getValueState=function(t){var a=se.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=se.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=vn(Qf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Qf),IU={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function iw(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var PU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=ve(a.get("showLabel",!0),!h),c=!a.get("selectedMode");h&&this._renderEndsText(t,h[0],u,v,l),D(f.viewPieceList,function(d){var p=d.piece,g=new ut;g.onclick=J(this._onItemClick,this,p),this._enableHoverLink(g,d.indexInModelPieceList);var y=a.getRepresentValue(p);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],c),v){var m=this.visualMapModel.getValueState(y);g.add(new Ct({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:c}))}t.add(g)},this),h&&this._renderEndsText(t,h[1],u,v,l),li(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:lf(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return Z2(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new ut,l=this.visualMapModel.textStyleModel;s.add(new Ct({style:zt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=H(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=jt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=lt(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(X2);function J2(r){r.registerComponentModel(LU),r.registerComponentView(PU),q2(r)}function RU(r){mt(K2),mt(J2)}var EU={label:{enabled:!0},decal:{show:!1}},ow=At(),kU={};function OU(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=lt(EU);dt(a.label,r.getLocaleModel().get("aria"),!1),dt(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=et();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),ow(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(nt(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=rp(v.ecModel,v.name,kU,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var d=v.getRawData(),p={},g=ow(v).scope;c.each(function(b){var x=c.getRawIndex(b);p[x]=b});var y=d.count();d.each(function(b){var x=p[b],w=d.getName(b)||b+"",T=rp(v.ecModel,w,g,y),A=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(A,T))})}function S(b,x){var w=b?V(V({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=ot(h.option,f),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,d=h.get(["series","maxCount"])||10,p=Math.min(v,d),g;if(!(v<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,A){if(A1?h.get(["series","multiple",L]):h.get(["series","single",L]),C=o(C,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>c){var P=h.get(["data","partialData"]);C+=o(P,{displayCnt:c})}else C+=h.get(["data","allData"]);for(var R=h.get(["data","separator","middle"]),E=h.get(["data","separator","end"]),N=h.get(["data","excludeDimensionId"]),O=[],B=0;B":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},VU=function(){function r(e){var t=this._condVal=K(e)?new RegExp(e):KL(e)?e:null;if(t==null){var a="";It(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return K(t)?this._condVal.test(e):Dt(t)?this._condVal.test(e+""):!1},r}(),zU=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),GU=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&a.push(n),n=[I,P]}function f(I,P,R,E){ao(I,R)&&ao(P,E)||n.push(I,P,R,E,R,E)}function h(I,P,R,E,N,O){var B=Math.abs(P-I),G=Math.tan(B/4)*4/3,U=PT:M2&&a.push(n),a}function ng(r,e,t,a,n,i,o,s,l,u){if(ao(r,t)&&ao(e,a)&&ao(n,o)&&ao(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-e,d=Math.sqrt(v*v+c*c);v/=d,c/=d;var p=t-r,g=a-e,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var A=[],C=[];nn(r,t,n,o,.5,A),nn(e,a,i,s,.5,C),ng(A[0],C[0],A[1],C[1],A[2],C[2],A[3],C[3],l,u),ng(A[4],C[4],A[5],C[5],A[6],C[6],A[7],C[7],l,u)}function t9(r,e){var t=ag(r),a=[];e=e||1;for(var n=0;n0)for(var u=0;uMath.abs(u),h=j2([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;cn,o=j2([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v1?null:new pt(p*l+r,p*u+e)}function a9(r,e,t){var a=new pt;pt.sub(a,t,e),a.normalize();var n=new pt;pt.sub(n,r,e);var i=n.dot(a);return i}function Xi(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function n9(r,e,t){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),n9(e,u,f)}function jf(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);jf(r,i[0],n,a),jf(r,i[1],t-n,a)}return a}function i9(r,e){for(var t=[],a=0;a0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function rh(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=H(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=H(i,function(s,l){return{cp:s,z:d9(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function rL(r){return l9(r.path,r.count)}function ig(){return{fromIndividuals:[],toIndividuals:[],count:0}}function p9(r,e,t){var a=[];function n(b){for(var x=0;x=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var y9={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;pw(r)&&(u=r,f=e),pw(e)&&(u=e,f=r);function h(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,A=m?w:x[0];if(th(T))h({many:[T],one:A},!0,_,S,!0);else{var C=s?ot({delay:s(_,S)},l):l;cm(T,A,C),i(T,A,T,A,C)}}else for(var M=ot({dividePath:y9[t],individualDelay:s&&function(N,O,B,G){return s(N+_,S)}},l),L=m?p9(x,w,M):g9(w,x,M),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;Ee.length,c=u?gw(f,u):gw(v?e:r,[v?r:e]),d=0,p=0;paL))for(var i=a.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof St&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function xw(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function bw(r){return z(r)?r.sort().join(","):r}function Ha(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function T9(r,e){var t=et(),a=et(),n=et();return D(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=xw(i),f=bw(u);a.set(f,{dataGroupId:s,data:l}),z(u)&&D(u,function(h){n.set(h,{key:f,dataGroupId:s,data:l})})}),D(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=xw(i),u=bw(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Ha(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Ha(s),data:s}]});else if(z(l)){var h=[];D(l,function(d){var p=a.get(d);p.data&&h.push({dataGroupId:p.dataGroupId,divide:Ha(p.data),data:p.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Ha(s)}]})}else{var v=n.get(l);if(v){var c=t.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Ha(v.data)}],newSeries:[]},t.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:Ha(s)})}}}}),t}function ww(r,e){for(var t=0;t=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ha(e.oldData[s]),groupIdDim:o.dimension})}),D(Ot(r.to),function(o){var s=ww(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ha(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&nL(n,i,a)}function C9(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){D(Ot(a.seriesTransition),function(n){D(Ot(n.to),function(i){for(var o=a.updatedSeries,s=0;s"u"?Y:getComputedStyle(document.documentElement).getPropertyValue(W).trim()||Y}const f=yr(""),h=yr("");let v=null;function c(){const W=new Date;h.value=`${W.getFullYear()}-${String(W.getMonth()+1).padStart(2,"0")}-${String(W.getDate()).padStart(2,"0")}`,f.value=`${String(W.getHours()).padStart(2,"0")}:${String(W.getMinutes()).padStart(2,"0")}:${String(W.getSeconds()).padStart(2,"0")}`}c();const d=yr("success"),p=_e(()=>`is-${d.value}`),g=_e(()=>d.value==="success"?"已连接":d.value==="warning"?"高延迟":"断连"),y=_e(()=>n.value.filter(W=>W.state!=="offline").length),m=_e(()=>i.value.filter(W=>W.status==="running"||W.status==="assigned").length),_=_e(()=>[{key:"platform-config",label:"平台配置",icon:mL,primary:!0,hint:"进入地图编辑 / 平台搭建(map-editor)",to:"/admin/map-editor"},{key:"mission",label:"任务编排",icon:Xh,to:"/admin/missions"},{key:"cars",label:"AGV 配置",icon:ym,to:"/admin/cars"},{key:"auth",label:"权限配置",icon:_L,to:"/admin/config/auth"},{key:"system",label:"系统配置",icon:SL,to:"/admin/config/system"},{key:"ops",label:"异常处理",icon:xL,to:"/admin/config/ops"},{key:"tasks",label:"任务管理",icon:bL,to:"/admin/config/task"},{key:"add",label:"添加",icon:wL,hint:"自定义快捷入口(待实现)",action:()=>{TL.info("自定义快捷入口 — 即将在 v1.8 中开放")}}]);function S(W){W.action?W.action():W.to&&e.push(W.to)}function b(W,Y=16){const ft=[];let tt=50+W*7%30;for(let _t=0;_t`${kt===0?"M":"L"}${(kt*Q).toFixed(2)},${(it-_t/100*it*.85-it*.05).toFixed(2)}`).join(" "),Lt=`${F} L${q},${it} L0,${it} Z`;return{line:F,area:Lt}}const x=_e(()=>Math.max(12,Math.round(t.value.length*.7))),w=_e(()=>Math.max(6,Math.round(n.value.length*.27))),T=_e(()=>Math.max(265,t.value.length*12)),A=_e(()=>Math.max(10,Math.round(T.value*.04)));function C(W,Y){if(W===0&&Y===0)return{dir:"flat",arrow:"→",text:"0%"};const ft=Y-W;if(Math.abs(ft)<.5)return{dir:"flat",arrow:"→",text:"0%"};const tt=W===0?100:Math.round(ft/W*100);return ft>0?{dir:"up",arrow:"↑",text:`${tt}%`}:{dir:"down",arrow:"↓",text:`${Math.abs(tt)}%`}}const M=_e(()=>[{key:"devices",label:"设备数",value:n.value.length,icon:AL,tone:"info",trend:C(n.value.length-2,n.value.length)},{key:"sites",label:"工作站数",value:t.value.length,icon:CL,tone:"success",trend:C(t.value.length-1,t.value.length)},{key:"shelves",label:"货架数",value:x.value,icon:DL,tone:"info",trend:C(x.value-5,x.value)},{key:"charger",label:"充电桩数",value:w.value,icon:ML,tone:"warning",trend:{dir:"flat",arrow:"→",text:"0%"}},{key:"used",label:"已用储位数",value:T.value,icon:Xh,tone:"success",trend:C(T.value-12,T.value)},{key:"free",label:"空余储位数",value:A.value,icon:Xh,tone:"idle",trend:C(A.value+3,A.value)}].map((Y,ft)=>{const tt=b(ft+1);return{...Y,sparkLine:tt.line,sparkArea:tt.area}})),L=_e(()=>{const W=i.value.length||1,Y={货架交接:{pct:0,tone:"info"},"搬运/落位":{pct:0,tone:"success"},"Z1 任务":{pct:0,tone:"warning"},其他:{pct:0,tone:"idle"}};i.value.forEach(tt=>{const q=tt.typeName??"";q.includes("shelf")||q.includes("货架")?Y.货架交接.pct++:q.includes("move")||q.includes("搬运")||q.includes("落位")?Y["搬运/落位"].pct++:q.includes("z1")||q.includes("Z1")?Y["Z1 任务"].pct++:Y.其他.pct++});let ft=Object.entries(Y).map(([tt,q])=>({name:tt,pct:Math.round(q.pct/W*100),tone:q.tone}));return ft.every(tt=>tt.pct===0)&&(ft=[{name:"货架交接",pct:45,tone:"info"},{name:"搬运/落位",pct:15,tone:"success"},{name:"Z1 任务",pct:15,tone:"warning"},{name:"其他",pct:25,tone:"idle"}]),ft}),I=_e(()=>n.value.length===0),P=_e(()=>{const W=n.value.length||12,Y={idle:0,running:0,charging:0,paused:0,fault:0,offline:0};n.value.forEach(tt=>{Y[tt.state]=(Y[tt.state]??0)+1});const ft=I.value;return[{key:"running",label:"执行中",value:ft?Math.round(W*.45):Y.running,color:u("--mg-status-info","#3b82f6")},{key:"idle",label:"空闲",value:ft?Math.round(W*.3):Y.idle,color:u("--mg-status-success","#22c55e")},{key:"charging",label:"充电中",value:ft?Math.round(W*.1):Y.charging,color:u("--mg-status-warning","#f59e0b")},{key:"paused",label:"已暂停",value:ft?Math.round(W*.05):Y.paused,color:u("--mg-status-idle","#94a3b8")},{key:"fault",label:"故障",value:ft?Math.round(W*.05):Y.fault,color:u("--mg-status-danger","#ef4444")},{key:"offline",label:"离线",value:ft?Math.round(W*.05):Y.offline,color:u("--mg-text-faint","#a8a0c0")}]}),R=_e(()=>P.value.reduce((W,Y)=>W+Y.value,0)),E=_e(()=>{const W=new Date,Y=[];for(let ft=287;ft>=0;ft--){const tt=W.getTime()-ft*5*60*1e3,q=ft/288*Math.PI*4,it=Math.round(8+Math.sin(q)*5+Math.cos(q*1.3)*3+(Math.random()*2-1)),Q=Math.round(3+Math.sin(q*1.7)*2+Math.cos(q*.6)*1.5+(Math.random()*1-.5));Y.push([tt,Math.max(0,it),Math.max(0,Q)])}return Y});function N(){const W=new Date(Date.now()-Math.random()*1e3*60*60*6);return`${String(W.getHours()).padStart(2,"0")}:${String(W.getMinutes()).padStart(2,"0")}`}const O=yr([{name:"alarm",label:"故障告警",count:0,tone:"danger"},{name:"abnTask",label:"异常任务",count:4,tone:"warning",items:[{text:"AGV-021 路径阻塞 · 等待解锁",time:N()},{text:"M-1024 调度超时",time:N()},{text:"M-1027 取货失败",time:N()},{text:"搬运任务 #913 因充电中断",time:N()}]},{name:"comm",label:"通信异常",count:0,tone:"info"},{name:"server",label:"服务器报警",count:2,tone:"warning",items:[{text:"SimpleScheduler · CPU 持续 85%",time:N()},{text:"WebAPI · 90% 内存使用率",time:N()}]}]),B=_e(()=>O.value.filter(W=>W.tone==="danger"||W.tone==="warning").reduce((W,Y)=>W+Y.count,0));let G=null;function U(){if(!o.value)return;G?.dispose(),G=W_(o.value,void 0,{renderer:"canvas"});const W=u("--mg-status-info","#3b82f6"),Y=u("--mg-status-success","#22c55e"),ft=u("--mg-text-muted","#606266"),tt=u("--mg-divider","rgba(255,255,255,0.08)"),q=E.value;G.setOption({backgroundColor:"transparent",grid:{left:36,right:16,top:22,bottom:28},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{type:"dashed",color:ft}},formatter:it=>{const Q=it,F=new Date(Q[0].value[0]),Lt=`${String(F.getHours()).padStart(2,"0")}:${String(F.getMinutes()).padStart(2,"0")}`;return Q.map(_t=>` ${_t.seriesName}: ${_t.value[1]}`).join("
")+`
${Lt}`}},legend:{show:!1},xAxis:{type:"time",axisLine:{lineStyle:{color:tt}},axisLabel:{color:ft,fontSize:11,formatter:it=>{const Q=new Date(it);return`${String(Q.getHours()).padStart(2,"0")}:00`}},splitLine:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:ft,fontSize:11,fontFamily:"JetBrains Mono, monospace"},splitLine:{lineStyle:{color:tt,type:"dashed"}}},series:[{name:"已完成",type:"line",smooth:!0,showSymbol:!1,data:q.map(it=>[it[0],it[1]]),lineStyle:{width:2,color:Y},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`${Y}55`},{offset:1,color:`${Y}00`}]}},itemStyle:{color:Y}},{name:"执行中",type:"line",smooth:!0,showSymbol:!1,data:q.map(it=>[it[0],it[2]]),lineStyle:{width:2,color:W},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`${W}55`},{offset:1,color:`${W}00`}]}},itemStyle:{color:W}}]})}let X=null;function rt(){if(!s.value)return;X?.dispose(),X=W_(s.value,void 0,{renderer:"canvas"});const W=u("--mg-text-light","#1a0f3d"),ft=!W.startsWith("rgba(255")&&W.toLowerCase()!=="#fff"&&W.toLowerCase()!=="#ffffff"?"#ffffff":"rgba(28,14,62,0.95)",tt=P.value;X.setOption({backgroundColor:"transparent",tooltip:{trigger:"item",formatter:"{b}: {c} 台 ({d}%)"},color:tt.map(q=>q.color),series:[{name:"AGV 状态",type:"pie",radius:["62%","88%"],center:["50%","50%"],avoidLabelOverlap:!1,itemStyle:{borderColor:ft,borderWidth:2,borderRadius:3},emphasis:{itemStyle:{shadowBlur:12,shadowColor:"rgba(124, 58, 237, 0.30)"},scale:!0,scaleSize:4},label:{show:!1},labelLine:{show:!1},data:tt.map(q=>({name:q.label,value:q.value}))}]})}function at(){G?.resize(),X?.resize()}return oL(async()=>{[t.value,a.value,n.value,i.value]=await Promise.all([IL(),PL(),RL(),EL()]),a.value,await sL(),U(),rt(),window.addEventListener("resize",at),v=setInterval(c,1e3)}),lL(()=>{window.removeEventListener("resize",at),v&&clearInterval(v),G?.dispose(),G=null,X?.dispose(),X=null}),(W,Y)=>{const ft=hL,tt=uL,q=yL,it=pL,Q=dL;return $t(),Kt("div",D9,[$("section",M9,[$("div",L9,[$("span",{class:mr(["status-conn",d.value])},[$("span",{class:mr(["mg-live-dot",p.value])},null,2),$("span",null,Wt(g.value),1)],2),Y[4]||(Y[4]=$("span",{class:"status-divider"},null,-1)),$("span",I9,[Y[1]||(Y[1]=$("span",{class:"status-stat-label"},"在线 AGV",-1)),$("span",P9,[Da(Wt(y.value)+" ",1),$("span",R9,"/ "+Wt(n.value.length||"—"),1)])]),Y[5]||(Y[5]=$("span",{class:"status-divider"},null,-1)),$("span",E9,[Y[2]||(Y[2]=$("span",{class:"status-stat-label"},"告警",-1)),$("span",{class:mr(["status-stat-value mg-num",{"is-danger":B.value>0}])},Wt(B.value),3)]),Y[6]||(Y[6]=$("span",{class:"status-divider"},null,-1)),$("span",k9,[Y[3]||(Y[3]=$("span",{class:"status-stat-label"},"活跃任务",-1)),$("span",O9,Wt(m.value),1)])]),$("div",N9,[$("span",B9,[$("span",V9,Wt(h.value),1),$("span",z9,Wt(f.value),1)])])]),$("section",G9,[Y[13]||(Y[13]=$("div",{class:"hero-bg","aria-hidden":"true"},[$("div",{class:"hero-orb hero-orb-a"}),$("div",{class:"hero-orb hero-orb-b"}),$("div",{class:"hero-grid"})],-1)),$("div",F9,[Y[7]||(Y[7]=$("div",{class:"hero-tag"},[$("span",{class:"tag-dot"}),$("span",null,"智能调度 · 一站式平台")],-1)),Y[8]||(Y[8]=$("h1",{class:"hero-title"},"迷毂智能调度平台",-1)),Y[9]||(Y[9]=$("p",{class:"hero-desc"},"以下是系统快捷入口,也可以通过点击「添加」功能进行调整",-1)),$("div",H9,[($t(!0),Kt(Ma,null,La(_.value,(F,Lt)=>($t(),Kt("button",{key:F.key,class:mr(["quick-item",{primary:F.primary}]),style:Yh({animationDelay:`${Lt*60}ms`}),title:F.hint??F.label,onClick:_t=>S(F)},[$("span",U9,[me(ft,{size:22},{default:fe(()=>[($t(),$h(gm(F.icon)))]),_:2},1024)]),$("span",Y9,Wt(F.label),1)],14,W9))),128))])]),$("div",$9,[Y[12]||(Y[12]=$("div",{class:"hero-glow"},null,-1)),($t(),Kt("svg",X9,[Y[10]||(Y[10]=pm('',4)),$("g",Z9,[($t(),Kt(Ma,null,La(4,F=>$("g",{key:`shelf-${F}`},[$("rect",{x:140+(F-1)*60,y:"130",width:"40",height:"70",rx:"3",fill:"url(#boxGrad2)",opacity:"0.85"},null,8,q9),$("rect",{x:146+(F-1)*60,y:"138",width:"28",height:"6",fill:"rgba(255,255,255,0.18)"},null,8,K9),$("rect",{x:146+(F-1)*60,y:"152",width:"28",height:"6",fill:"rgba(255,255,255,0.12)"},null,8,J9),$("rect",{x:146+(F-1)*60,y:"166",width:"28",height:"6",fill:"rgba(255,255,255,0.10)"},null,8,Q9),$("rect",{x:146+(F-1)*60,y:"180",width:"28",height:"6",fill:"rgba(255,255,255,0.08)"},null,8,j9)])),64))]),Y[11]||(Y[11]=pm('AGV-021 · 92%SHELF-A03 · OK',7))]))])]),$("section",tY,[($t(!0),Kt(Ma,null,La(M.value,F=>($t(),Kt("div",{class:"bento bento-kpi",key:F.key},[$("div",{class:mr(["kpi-accent",`tone-${F.tone}`])},null,2),$("div",eY,[$("div",rY,[me(ft,{size:18,class:mr(["kpi-icon-sm",`tone-${F.tone}`])},{default:fe(()=>[($t(),$h(gm(F.icon)))]),_:2},1032,["class"]),$("span",aY,Wt(F.label),1)]),$("div",nY,[$("span",iY,Wt(F.value),1),$("span",{class:mr(["kpi-trend",`trend-${F.trend.dir}`])},[$("span",oY,Wt(F.trend.arrow),1),$("span",sY,Wt(F.trend.text),1)],2)])]),($t(),Kt("svg",lY,[$("defs",null,[$("linearGradient",{id:`spark-grad-${F.key}`,x1:"0",y1:"0",x2:"0",y2:"1"},[$("stop",{offset:"0%","stop-color":F.tone==="danger"?"var(--mg-status-danger)":F.tone==="warning"?"var(--mg-status-warning)":"var(--mg-primary-hover)","stop-opacity":"0.50"},null,8,fY),$("stop",{offset:"100%","stop-color":F.tone==="danger"?"var(--mg-status-danger)":F.tone==="warning"?"var(--mg-status-warning)":"var(--mg-primary-hover)","stop-opacity":"0"},null,8,hY)],8,uY)]),$("path",{d:F.sparkArea,fill:`url(#spark-grad-${F.key})`},null,8,vY),$("path",{d:F.sparkLine,fill:"none","stroke-width":"1.5",stroke:F.tone==="danger"?"var(--mg-status-danger)":F.tone==="warning"?"var(--mg-status-warning)":"var(--mg-primary-hover)"},null,8,cY)]))]))),128)),me(tt,{shadow:"never",class:"bento bento-trend"},{header:fe(()=>[$("div",dY,[$("span",pY,[me(ft,null,{default:fe(()=>[me(Vl(vL))]),_:1}),Y[14]||(Y[14]=Da(" 24h 任务趋势 ",-1))]),Y[15]||(Y[15]=$("span",{class:"card-tip mg-num"},"最近 24 小时 · 5 分钟粒度",-1))])]),default:fe(()=>[$("div",{ref_key:"trendChartRef",ref:o,class:"trend-chart"},null,512)]),_:1}),me(tt,{shadow:"never",class:"bento bento-agv"},{header:fe(()=>[$("div",gY,[$("span",yY,[me(ft,null,{default:fe(()=>[me(Vl(ym))]),_:1}),Y[16]||(Y[16]=Da(" AGV 状态分布 ",-1))]),$("span",mY,[Da(Wt(R.value)+" 台",1),I.value?($t(),Kt("span",_Y,"·示例")):mm("",!0)])])]),default:fe(()=>[$("div",SY,[$("div",xY,[$("div",{ref_key:"agvChartRef",ref:s,class:"agv-chart"},null,512),$("div",bY,[$("div",wY,Wt(R.value),1),Y[17]||(Y[17]=$("div",{class:"agv-center-label"},"总台数",-1))])]),$("ul",TY,[($t(!0),Kt(Ma,null,La(P.value,F=>($t(),Kt("li",{key:F.key},[$("span",{class:"dot",style:Yh({background:F.color})},null,4),$("span",AY,Wt(F.label),1),$("span",CY,Wt(F.value),1),$("span",DY,Wt(R.value>0?Math.round(F.value/R.value*100):0)+"%",1)]))),128))])])]),_:1}),me(tt,{shadow:"never",class:"bento bento-ratio"},{header:fe(()=>[$("div",MY,[$("span",LY,[me(ft,null,{default:fe(()=>[me(Vl(cL))]),_:1}),Y[18]||(Y[18]=Da(" 各任务占比 ",-1))]),$("span",IY,"总计 "+Wt(i.value.length)+" 个任务",1)])]),default:fe(()=>[$("div",PY,[($t(!0),Kt(Ma,null,La(L.value,F=>($t(),Kt("span",{key:F.name,class:mr(["ratio-seg",`tone-${F.tone}`]),style:Yh({width:`${F.pct}%`}),title:`${F.name} ${F.pct}%`},[F.pct>=8?($t(),Kt("span",EY,Wt(F.pct)+"%",1)):mm("",!0)],14,RY))),128))]),$("ul",kY,[($t(!0),Kt(Ma,null,La(L.value,F=>($t(),Kt("li",{key:F.name},[$("span",{class:mr(["dot",`tone-${F.tone}`])},null,2),$("span",OY,Wt(F.name),1),$("span",NY,Wt(F.pct)+"%",1)]))),128))])]),_:1}),me(tt,{shadow:"never",class:"bento bento-todo"},{header:fe(()=>[$("div",BY,[$("span",VY,[me(ft,null,{default:fe(()=>[me(Vl(gL))]),_:1}),Y[19]||(Y[19]=Da(" 待办事项 ",-1))]),me(q,{class:"more-link",underline:"never"},{default:fe(()=>[...Y[20]||(Y[20]=[Da("详情 ›",-1)])]),_:1})])]),default:fe(()=>[me(Q,{modelValue:l.value,"onUpdate:modelValue":Y[0]||(Y[0]=F=>l.value=F),class:"todo-tabs"},{default:fe(()=>[($t(!0),Kt(Ma,null,La(O.value,F=>($t(),$h(it,{key:F.name,name:F.name},{label:fe(()=>[$("span",zY,[Da(Wt(F.label)+" ",1),$("em",{class:mr(["tab-count",F.tone])},Wt(F.count),3)])]),default:fe(()=>[F.count===0?($t(),Kt("div",GY,[...Y[21]||(Y[21]=[$("svg",{width:"120",height:"80",viewBox:"0 0 120 80",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[$("defs",null,[$("linearGradient",{id:"empGrad",x1:"0",y1:"0",x2:"1",y2:"1"},[$("stop",{offset:"0%","stop-color":"var(--mg-primary-hover)"}),$("stop",{offset:"100%","stop-color":"var(--mg-primary-active)"})])]),$("ellipse",{cx:"60",cy:"68",rx:"40",ry:"6",fill:"rgba(var(--mg-accent-rgb),0.15)"}),$("rect",{x:"34",y:"28",width:"52",height:"32",rx:"4",fill:"url(#empGrad)",opacity:"0.8"}),$("rect",{x:"40",y:"34",width:"40",height:"3",rx:"1.5",fill:"rgba(255,255,255,0.4)"}),$("rect",{x:"40",y:"42",width:"30",height:"3",rx:"1.5",fill:"rgba(255,255,255,0.30)"}),$("rect",{x:"40",y:"50",width:"36",height:"3",rx:"1.5",fill:"rgba(255,255,255,0.20)"}),$("circle",{cx:"80",cy:"22",r:"6",fill:"var(--mg-accent)",opacity:"0.85"}),$("path",{d:"M77 22h6M80 19v6",stroke:"var(--mg-bg-aside-2)","stroke-width":"1.5","stroke-linecap":"round"})],-1),$("p",null,"暂无数据",-1)])])):($t(),Kt("ul",FY,[($t(!0),Kt(Ma,null,La(F.items??[],(Lt,_t)=>($t(),Kt("li",{key:_t},[$("span",{class:mr(["todo-pill",F.tone])},Wt(F.label),3),$("span",HY,Wt(Lt.text),1),$("span",WY,Wt(Lt.time),1)]))),128))]))]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])]),_:1})])])}}}),QY=LL(UY,[["__scopeId","data-v-7b6c88b6"]]);export{QY as default}; diff --git a/MiGu.Server/wwwroot/assets/DashboardView-Rj8saK5Q.js b/MiGu.Server/wwwroot/assets/DashboardView-Rj8saK5Q.js new file mode 100644 index 0000000..49a6062 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/DashboardView-Rj8saK5Q.js @@ -0,0 +1,22 @@ +import{aN as cd,bC as me,bp as fd,bj as hd,br as pd,aG as Lt,aD as z,bk as Se,bL as yt,aJ as $e,ai as Ye,bE as Ze,aI as xl,aK as $t,c8 as Ht,ay as Yt,t as dd,bX as gd,bs as bt,bl as ui,aE as vi,bH as bl,Q as yd,bS as Oa,bR as md,c1 as _l,aF as wl,bu as Sd,ac as xd,a9 as bd,aq as _d,T as wd,bJ as Ad,bt as ci,ao as Td,bQ as Cd,c6 as Dd,bb as Ld,bv as Id,X as Md,aC as Pd,aA as Ed,ar as Rd,ba as kd,ak as Vd}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css */import{es as Al,ac as V,c6 as Nd,dd as mo,cn as os,ah as fa,ba as D,f as Tt,d9 as lf,d4 as uf,d2 as $,bm as Gt,z as mt,n as So,dS as Rt,J as Te,b6 as ot,X as ha,b8 as dr,cP as sn,P as Wt,y as ss,dF as zd,b1 as Gd,dl as Ne,cV as Dt,a8 as kr,cv as gt,cI as Mt,bz as ht,dw as U,dB as Od,ea as Bd,eb as vf,c5 as Fd,cu as Hd,cJ as Wd,ca as Ut,c7 as Pt,eq as xt,ag as cf,co as qe,aa as Re,di as pa,bI as Ud,m as Tl,bf as $d,j as ff,cH as lt,aL as Yd,aH as Zd,bk as K,bR as hf,cA as le,bN as pf,cR as Xd,a6 as df,bC as Fn,D as qd,ae as Kd,bJ as jd,a4 as Jd,c3 as Qd,dv as tg,l as eg,cz as rg,cE as ag,dX as ng,cy as ig,ak as da,aT as og,au as pt,bL as sg,cw as gf,cD as ls,bA as lg,c4 as ug,bT as vg,cp as q,cC as Zt,bV as Cl,be as cg,df as yr,dh as yf,cT as Nt,bH as fe,Z as Be,dQ as mf,C as kt,ab as St,bS as Vr,dY as Fe,e8 as ae,el as Et,e5 as ue,bE as Qt,dT as Ur,dC as Hn,_ as re,an as at,b3 as st,d0 as us,bO as fg,b4 as La,$ as Ft,aR as Sf,aY as $r,G as nt,aZ as ve,dz as Wn,a3 as Un,er as it,cb as hg,bn as pg,F as Ae,b$ as Yr,dn as Ia,dU as dg,b0 as ne,d5 as Ct,x as ce,da as Ce,b as $n,al as gg,h as Xt,a as mr,g as Ma,N as xf,d8 as be,i as te,A as ke,I as xo,af as yg,K as Bt,c2 as Z,aO as mg,t as Sg,v as _e,R as xg,w as vs,ep as bg,dV as Yn,dZ as bf,en as Sr,aI as Zr,aP as ut,bZ as _f,Q as Zn,s as xr,e3 as Br,aU as cs,e9 as fs,bb as _g,a9 as Pa,e7 as wf,aE as wg,aF as Kt,U as Ar,d6 as hs,dR as se,dK as Af,bo as Tf,bq as Xn,a2 as Cf,aA as fn,H as Ag,dP as hn,e as Df,aD as ze,bw as bo,dp as Jt,dA as ps,bs as Tg,a$ as At,o as Qe,et as pn,cx as Dl,e1 as ra,bd as Ll,dj as Cg,d1 as Lf,dr as Dg,ef as fi,bl as hi,db as dn,dc as la,M as Il,av as je,dg as Ea,d_ as Lg,aJ as Ig,eg as Nr,cO as Ml,e0 as Mg,d$ as _o,dW as ds,bh as ga,cN as ya,dm as Ra,eo as qn,dG as Pg,dD as If,b9 as Eg,k as Mf,b5 as Rg,Y as Pl,e2 as El,e6 as kg,dq as Vg,bj as Ng,aS as Pf,as as zg,aX as gs,de as gn,ai as Gr,ed as ys,aj as br,ej as Gg,dO as Og,u as Bg,em as Ef,bX as ua,at as Fg,c1 as ms,am as yn,c0 as wo,by as Ao,c$ as Hg,dH as pi,V as Rf,ek as It,aW as Ss,aK as Kn,eh as di,aN as Wg,aw as Ug,dE as $g,aB as Rl,aC as Yg,dy as kl,cr as jn,bx as To,cB as Zg,c8 as Jn,d as Vl,cK as Xg,aV as qg,E as Kg,cF as jg,cQ as Jg,br as ka,a5 as ma,ay as Qg,cq as kf,a_ as Nl,bF as ty,bB as Vf,cY as ey,bU as Nf,aq as zf,ar as ry,B as Gf,c_ as zl,cX as Of,bt as Bf,bu as Gl,c as Va,cs as Ff,cc as xs,dJ as ay,dI as ny,ei as iy,ap as oy,bY as sy,cZ as ly,bG as uy,ec as vy,d7 as Hf,bp as cy,bK as Ol,dt as fy,d3 as hy,aG as py,L as dy,q as gy,r as yy,cm as my,aQ as Wf,cL as Sy,cU as xy,bi as Uf,dM as bs,ct as by,ad as Bl,du as $f,dN as _y,cW as wy,bD as Yf,e4 as Zf,cS as Ba,bv as Ay,p as _s,bc as gi,dx as Co,a7 as Ty,O as Cy,ds as mn,bP as Dy,bg as Ly,cM as Iy,b_ as Qn,bW as My,dk as Py,ee as Do,az as Ey,dL as Fl,ao as Ry,bQ as Xf,aM as ky,cG as Vy,a0 as Ny,W as zy,a1 as Gy,b7 as Hl,S as Oy,b2 as Sn,ax as ws,T as yi,bM as By,cd as Fy,ce as Hy,cf as Wy,cg as Uy,ch as $y,ci as Yy,cj as Zy,ck as Xy,cl as qy,c9 as Wl}from"./install-D_iTbSFG.js";import{b as Ky,c as jy,l as Jy,a as Qy}from"./projection-BHFE6Meg.js";import"./reflection-BwOBPyb9.js";var tm=1e-8;function Ul(a,e){return Math.abs(a-e)n&&(r=o,n=l)}if(r)return rm(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?$l(s.exterior,n,i,t):D(s.points,function(l){$l(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),r=new Tt(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),n=this.geometries;if(!r.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,r.push([s/t,l/t])}return r}function im(a,e){return a=nm(a),$(Gt(a.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Yl(o[0],o.slice(1)));break;case"MultiPolygon":D(n.coordinates,function(l){l[0]&&i.push(new Yl(l[0],l.slice(1)))});break;case"LineString":i.push(new Zl([n.coordinates]));break;case"MultiLineString":i.push(new Zl(n.coordinates))}var s=new Kf(r[e||"name"],i,r.cp);return s.properties=r,s})}var qr=Math.PI*2,ar=ss.CMD,om=["top","right","bottom","left"];function sm(a,e,t,r,n){var i=t.width,o=t.height;switch(a){case"top":r.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":r.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":r.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":r.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function lm(a,e,t,r,n,i,o,s,l){o-=a,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var v=o*t+a,c=s*t+e;if(Math.abs(r-n)%qr<1e-4)return l[0]=v,l[1]=c,u-t;if(i){var f=r;r=Ne(n),n=Ne(f)}else r=Ne(r),n=Ne(n);r>n&&(n+=qr);var h=Math.atan2(s,o);if(h<0&&(h+=qr),h>=r&&h<=n||h+qr>=r&&h+qr<=n)return l[0]=v,l[1]=c,u-t;var p=t*Math.cos(r)+a,d=t*Math.sin(r)+e,g=t*Math.cos(n)+a,y=t*Math.sin(n)+e,S=(p-o)*(p-o)+(d-s)*(d-s),m=(g-o)*(g-o)+(y-s)*(y-s);return S0){e=e/180*Math.PI,we.fromArray(a[0]),dt.fromArray(a[1]),wt.fromArray(a[2]),mt.sub(Ee,we,dt),mt.sub(Pe,wt,dt);var t=Ee.len(),r=Pe.len();if(!(t<.001||r<.001)){Ee.scale(1/t),Pe.scale(1/r);var n=Ee.dot(Pe),i=Math.cos(e);if(i1&&mt.copy(jt,wt),jt.toArray(a[1])}}}}function cm(a,e,t){if(t<=180&&t>0){t=t/180*Math.PI,we.fromArray(a[0]),dt.fromArray(a[1]),wt.fromArray(a[2]),mt.sub(Ee,dt,we),mt.sub(Pe,wt,dt);var r=Ee.len(),n=Pe.len();if(!(r<.001||n<.001)){Ee.scale(1/r),Pe.scale(1/n);var i=Ee.dot(e),o=Math.cos(t);if(i=l)mt.copy(jt,wt);else{jt.scaleAndAdd(Pe,s/Math.tan(Math.PI/2-v));var c=wt.x!==dt.x?(jt.x-dt.x)/(wt.x-dt.x):(jt.y-dt.y)/(wt.y-dt.y);if(isNaN(c))return;c<0?mt.copy(jt,dt):c>1&&mt.copy(jt,wt)}jt.toArray(a[1])}}}}function xi(a,e,t,r){var n=t==="normal",i=n?a:a.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();n?a.useStyle(s):i.style=s}function fm(a,e){var t=e.smooth,r=e.points;if(r)if(a.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var n=dr(r[0],r[1]),i=dr(r[1],r[2]);if(!n||!i){a.lineTo(r[1][0],r[1][1]),a.lineTo(r[2][0],r[2][1]);return}var o=Math.min(n,i)*t,s=sn([],r[1],r[0],o/n),l=sn([],r[1],r[2],o/i),u=sn([],s,l,.5);a.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),a.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var v=1;v=0&&r.attr(i.oldLayoutSelect),Pt(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),xt(r,u,t,l)}else if(r.attr(u),!Wd(r).valueAnimation){var c=Rt(r.style.opacity,1);r.style.opacity=0,Ut(r,{style:{opacity:c}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};Fa(h,u,Ha),Fa(h,r.states.select,Ha)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};Fa(p,u,Ha),Fa(p,r.states.emphasis,Ha)}cf(r,l,v,t,t)}if(n&&!n.ignore&&!n.invisible){var i=dm(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),xt(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,Ut(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},a}(),_i=Dt();function ym(a){a.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var n=_i(t).labelManager;n||(n=_i(t).labelManager=new gm),n.clearLabels()}),a.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var n=_i(t).labelManager;r.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var wi=Math.sin,Ai=Math.cos,th=Math.PI,nr=Math.PI*2,mm=180/th,eh=function(){function a(){}return a.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},a.prototype.moveTo=function(e,t){this._add("M",e,t)},a.prototype.lineTo=function(e,t){this._add("L",e,t)},a.prototype.bezierCurveTo=function(e,t,r,n,i,o){this._add("C",e,t,r,n,i,o)},a.prototype.quadraticCurveTo=function(e,t,r,n){this._add("Q",e,t,r,n)},a.prototype.arc=function(e,t,r,n,i,o){this.ellipse(e,t,r,r,0,n,i,o)},a.prototype.ellipse=function(e,t,r,n,i,o,s,l){var u=s-o,v=!l,c=Math.abs(u),f=qe(c-nr)||(v?u>=nr:-u>=nr),h=u>0?u%nr:u%nr+nr,p=!1;f?p=!0:qe(c)?p=!1:p=h>=th==!!v;var d=e+r*Ai(o),g=t+n*wi(o);this._start&&this._add("M",d,g);var y=Math.round(i*mm);if(f){var S=1/this._p,m=(v?1:-1)*(nr-S);this._add("A",r,n,y,1,+v,e+r*Ai(o+m),t+n*wi(o+m)),S>.01&&this._add("A",r,n,y,0,+v,d,g)}else{var x=e+r*Ai(s),b=t+n*wi(s);this._add("A",r,n,y,+p,+v,x,b)}},a.prototype.rect=function(e,t,r,n){this._add("M",e,t),this._add("l",r,0),this._add("l",0,n),this._add("l",-r,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(e,t,r,n,i,o,s,l,u){for(var v=[],c=this._p,f=1;f"}function Dm(a){return""}function Ds(a,e){e=e||{};var t=e.newline?` +`:"";function r(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return Cm(o,s)+(o!=="style"?$d(l):l||"")+(i?""+t+$(i,function(u){return r(u)}).join(t)+t:"")+Dm(o)}return r(a)}function Lm(a,e,t){t=t||{};var r=t.newline?` +`:"",n=" {"+r,i=r+"}",o=$(Mt(a),function(l){return l+n+$(Mt(a[l]),function(u){return u+":"+a[l][u]+";"}).join(r)+i}).join(r),s=$(Mt(e),function(l){return"@keyframes "+l+n+$(Mt(e[l]),function(u){return u+n+$(Mt(e[l][u]),function(v){var c=e[l][u][v];return v==="d"&&(c='path("'+c+'")'),v+":"+c+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function Io(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function jl(a,e,t,r){return zt("svg","root",{width:a,height:e,xmlns:rh,"xmlns:xlink":ah,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+a+" "+e:!1},t)}var Im=0;function ih(){return Im++}var Jl={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},or="transform-origin";function Mm(a,e,t){var r=K({},a.shape);K(r,e),a.buildPath(t,r);var n=new eh;return n.reset(pf(a)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function Pm(a,e){var t=e.originX,r=e.originY;(t||r)&&(a[or]=t+"px "+r+"px")}var Em={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function oh(a,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=a,t}function Rm(a,e,t){var r=a.shape.paths,n={},i,o;if(D(r,function(l){var u=Io(t.zrId);u.animation=!0,ti(l,{},u,!0);var v=u.cssAnims,c=u.cssNodes,f=Mt(v),h=f.length;if(h){o=f[h-1];var p=v[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in c){var S=c[y].animation;S.indexOf(o)>=0&&(i=S)}}}),!!i){e.d=!1;var s=oh(n,t);return i.replace(o,s)}}function Ql(a){return lt(a)?Jl[a]?"cubic-bezier("+Jl[a]+")":Yd(a)?a:"":""}function ti(a,e,t,r){var n=a.animators,i=n.length,o=[];if(a instanceof ff){var s=Rm(a,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var J=oh(w,t);return J+" "+S[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+ih();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function km(a,e,t){if(!a.ignore)if(a.isSilent()){var r={"pointer-events":"none"};tu(r,e,t)}else{var n=a.states.emphasis&&a.states.emphasis.style?a.states.emphasis.style:{},i=n.fill;if(!i){var o=a.style&&a.style.fill,s=a.states.select&&a.states.select.style&&a.states.select.style.fill,l=a.currentStates.indexOf("select")>=0&&s||o;l&&(i=Xd(l))}var u=n.lineWidth;if(u){var v=!n.strokeNoScale&&a.transform?a.transform[0]:1;u=u/v}var r={cursor:"pointer"};i&&(r.fill=i),n.stroke&&(r.stroke=n.stroke),u&&(r["stroke-width"]=u),tu(r,e,t)}}function tu(a,e,t,r){var n=JSON.stringify(a),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+ih(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=a),e.class=e.class?e.class+" "+i:i}var Sa=Math.round;function sh(a){return a&<(a.src)}function lh(a){return a&>(a.toDataURL)}function Ls(a,e,t,r){wm(function(n,i){var o=n==="fill"||n==="stroke";o&&gf(i)?vh(e,a,n,r):o&&ls(i)?ch(t,a,n,r):a[n]=i,o&&r.ssr&&i==="none"&&(a["pointer-events"]="visible")},e,t,!1),Fm(t,a,r)}function Is(a,e){var t=lg(e);t&&(t.each(function(r,n){r!=null&&(a[(Kl+n).toLowerCase()]=r+"")}),e.isSilent()&&(a[Kl+"silent"]="true"))}function eu(a){return qe(a[0]-1)&&qe(a[1])&&qe(a[2])&&qe(a[3]-1)}function Vm(a){return qe(a[4])&&qe(a[5])}function Ms(a,e,t){if(e&&!(Vm(e)&&eu(e))){var r=1e4;a.transform=eu(e)?"translate("+Sa(e[4]*r)/r+" "+Sa(e[5]*r)/r+")":sg(e)}}function ru(a,e,t){for(var r=a.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";da(f,g),da(h,g)}else if(f==null||h==null){var y=function(C,L){if(C){var M=C.elm,I=f||L.width,P=h||L.height;C.tag==="pattern"&&(u?(P=1,I/=i.width):v&&(I=1,P/=i.height)),C.attrs.width=I,C.attrs.height=P,M&&(M.setAttribute("width",I),M.setAttribute("height",P))}},S=og(p,null,a,function(C){l||y(_,C),y(c,C)});S&&S.width&&S.height&&(f=f||S.width,h=h||S.height)}c=zt("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else n.svgElement&&(c=pt(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var m,x;l?m=x=1:u?(x=1,m=o.width/i.width):v?(m=1,x=o.height/i.height):o.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(o.width=m),x!=null&&!isNaN(x)&&(o.height=x);var b=hf(n);b&&(o.patternTransform=b);var _=zt("pattern","",o,[c]),w=Ds(_),A=r.patternCache,T=A[w];T||(T=r.zrId+"-p"+r.patternIdx++,A[w]=T,o.id=T,_=r.defs[T]=zt("pattern",T,o,[c])),e[t]=Fn(T)}}function Hm(a,e,t){var r=t.clipPathCache,n=t.defs,i=r[a.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[a.id]=i,n[i]=zt("clipPath",i,o,[uh(a,t)])}e["clip-path"]=Fn(i)}function iu(a){return document.createTextNode(a)}function hr(a,e,t){a.insertBefore(e,t)}function ou(a,e){a.removeChild(e)}function su(a,e){a.appendChild(e)}function fh(a){return a.parentNode}function hh(a){return a.nextSibling}function Ti(a,e){a.textContent=e}var lu=58,Wm=120,Um=zt("","");function Mo(a){return a===void 0}function Me(a){return a!==void 0}function $m(a,e,t){for(var r={},n=e;n<=t;++n){var i=a[n].key;i!==void 0&&(r[i]=n)}return r}function aa(a,e){var t=a.key===e.key,r=a.tag===e.tag;return r&&t}function xa(a){var e,t=a.children,r=a.tag;if(Me(r)){var n=a.elm=nh(r);if(Ps(Um,a),q(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,ph(a,p,t,n,l)):_n(a,e,r,i))}function Er(a,e){var t=e.elm=a.elm,r=a.children,n=e.children;a!==e&&(Ps(a,e),Mo(e.text)?Me(r)&&Me(n)?r!==n&&Ym(t,r,n):Me(n)?(Me(a.text)&&Ti(t,""),ph(t,null,n,0,n.length-1)):Me(r)?_n(t,r,0,r.length-1):Me(a.text)&&Ti(t,""):a.text!==e.text&&(Me(r)&&_n(t,r,0,r.length-1),Ti(t,e.text)))}function Zm(a,e){if(aa(a,e))Er(a,e);else{var t=a.elm,r=fh(t);xa(e),r!==null&&(hr(r,e.elm,hh(t)),_n(r,[a],0,0))}return e}var Xm=0,qm=function(){function a(e,t,r){if(this.type="svg",this.refreshHover=uu(),this.configLayer=uu(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+Xm++,this._oldVNode=jl(r.width,r.height),e&&!r.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=nh("svg");Ps(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(r.width,r.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Zm(this._oldVNode,e),this._oldVNode=e}},a.prototype.renderOneToVNode=function(e){return nu(e,Io(this._id))},a.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,n=this._height,i=Io(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Km(r,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=zt("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=$(Mt(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(zt("defs","defs",{},u)),e.animation){var v=Lm(i.cssNodes,i.cssAnims,{newline:!0});if(v){var c=zt("style","stl",{},[],v);o.push(c)}}return jl(r,n,o,e.useViewBox)},a.prototype.renderToString=function(e){return e=e||{},Ds(this.renderToVNode({animation:Rt(e.cssAnimation,!0),emphasis:Rt(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Rt(e.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(e,t,r){for(var n=e.length,i=[],o=0,s,l,u=0,v=0;v=0&&!(f&&l&&f[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;yF?(X=E+A*F/2,j=X):(X=E+C,j=H-C),n.setItemLayout(N,{angle:F,startAngle:X,endAngle:j,clockwise:x,cx:l,cy:u,r0:c,r:b?Nt(k,w,[c,v]):v}),E=H}),It?y:g,b=Math.abs(m.label.y-t);if(b>=x.maxY){var _=m.label.x-e-m.len2*n,w=r+m.len,A=Math.abs(_)a.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var d=r.getBoundingRect();i.width=d.width;var g=(r.style.margin||0)+2.1;i.height=d.height+g,i.y-=(i.height-c)/2}}}function Ci(a){return a.position==="center"}function e0(a){var e=a.getData(),t=[],r,n,i=!1,o=(a.get("minShowLabelAngle")||0)*Qm,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,v=s.x,c=s.y,f=s.height;function h(_){_.ignore=!0}function p(_){if(!_.ignore)return!0;for(var w in _.states)if(_.states[w].ignore===!1)return!0;return!1}e.each(function(_){var w=e.getItemGraphicEl(_),A=w.shape,T=w.getTextContent(),C=w.getTextGuideLine(),L=e.getItemModel(_),M=L.getModel("label"),I=M.get("position")||L.get(["emphasis","label","position"]),P=M.get("distanceToLabelLine"),E=M.get("alignTo"),R=U(M.get("edgeDistance"),u),k=M.get("bleedMargin"),N=L.getModel("labelLine"),F=N.get("length");F=U(F,u);var H=N.get("length2");if(H=U(H,u),Math.abs(A.endAngle-A.startAngle)0?"right":"left":j>0?"left":"right"}var ft=Math.PI,_t=0,Vt=M.get("rotate");if(le(Vt))_t=Vt*(ft/180);else if(I==="center")_t=0;else if(Vt==="radial"||Vt===!0){var ie=j<0?-X+ft:-X;_t=ie}else if(Vt==="tangential"&&I!=="outside"&&I!=="outer"){var ee=Math.atan2(j,rt);ee<0&&(ee=ft*2+ee);var rr=rt>0;rr&&(ee=ft+ee),_t=ee-ft}if(i=!!_t,T.x=tt,T.y=O,T.rotation=_t,T.setStyle({verticalAlign:"middle"}),Y){T.setStyle({align:J});var li=T.states.select;li&&(li.x+=T.x,li.y+=T.y)}else{var Ue=T.getBoundingRect().clone();Ue.applyTransform(T.getComputedTransform());var Sl=(T.style.margin||0)+2.1;Ue.y-=Sl/2,Ue.height+=Sl,t.push({label:T,labelLine:C,position:I,len:F,len2:H,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new mt(j,rt),linePoints:G,textAlign:J,labelDistance:P,labelAlignTo:E,edgeDistance:R,bleedMargin:k,rect:Ue,unconstrainedWidth:Ue.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:Y})}}),!i&&a.get("avoidLabelOverlap")&&t0(t,r,n,l,u,f,v,c);for(var d=0;d0){for(var v=o.getItemLayout(0),c=1;isNaN(v&&v.startAngle)&&c=i.r0}},e.type="pie",e}(kt);function Xr(a,e,t){e=q(e)&&{coordDimensions:e}||K({encodeDefine:a.getEncode()},e);var r=a.getSource(),n=Hn(r,e).dimensions,i=new re(n,a);return i.initData(r,t),i}var za=function(){function a(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return a.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},a.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},a.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},a.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},a}(),n0=Dt(),i0=function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new za(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){a.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Xr(this,{coordDimensions:["value"],encodeDefaulter:st(us,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),n=n0(r),i=n.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=n.seats=fg(o,r.hostModel.get("percentPrecision"))}var s=a.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){La(t,"labelLine",["show"]);var r=t.labelLine,n=t.emphasis.labelLine;r.show=r.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Ft);function o0(a){return{seriesType:a,reset:function(e,t){var r=e.getData();r.filterSelf(function(n){var i=r.mapDimension("value"),o=r.get(i,n);return!(le(o)&&!isNaN(o)&&o<0)})}}}function s0(a){a.registerChartView(a0),a.registerSeriesModel(i0),Sf("pie",a.registerAction),a.registerLayout(st(Jm,"pie")),a.registerProcessor(Na("pie")),a.registerProcessor(o0("pie"))}var l0=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return $r(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,n){return n.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Ft),Sh=4,u0=function(){function a(){}return a}(),v0=function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new u0},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var n=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var v=u*2,c=i[v]-s/2,f=i[v+1]-l/2;if(t>=c&&r>=f&&t<=c+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var n=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=n[0],r=n[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,n=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,v=-1/0,c=-1/0,f=0;f=0&&(u.dataIndex=c+(e.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}(),f0=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,n){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Wn("").reset(t,r,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var r=t.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,r){var n=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new c0:new Un,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(kt);function h0(a){it(hg),a.registerSeriesModel(l0),a.registerChartView(f0),a.registerLayout(Wn("scatter"))}function p0(a){a.eachSeriesByType("radar",function(e){var t=e.getData(),r=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();D(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){r[u]=r[u]||[];var v=n.dataToPoint(l,s);r[u][s]=fu(v)?v:hu(n)})}),t.each(function(o){var s=pg(r[o],function(l){return fu(l)})||hu(n);r[o].push(s.slice()),t.setItemLayout(o,r[o])})}})}function fu(a){return!isNaN(a[0])&&!isNaN(a[1])}function hu(a){return[a.cx,a.cy]}function d0(a){var e=a.polar;if(e){q(e)||(e=[e]);var t=[];D(e,function(r,n){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),a.radar=a.radar||[],q(a.radar)||(a.radar=[a.radar]),a.radar.push(r)):t.push(r)}),a.polar=t}D(a.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var g0=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(f,h){var p=f.getItemVisual(h,"symbol")||"circle";if(p!=="none"){var d=Ia(f.getItemVisual(h,"symbolSize")),g=ve(p,-1,-1,2,2),y=f.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function v(f,h,p,d,g,y){p.removeAll();for(var S=0;S0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=ot({color:p.color},l));var g=Ct(pt(p),{boundaryGap:t,splitNumber:r,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:f},!1);if(lt(v)){var y=g.name;g.name=v.replace("{value}",y??"")}else gt(v)&&(g.name=v(g.name,g));var S=new ce(g,null,this.ecModel);return Ce(S,$n.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ct({lineStyle:{color:"#bbb"}},Kr.axisLine),axisLabel:Ua(Kr.axisLabel,!1),axisTick:Ua(Kr.axisTick,!1),splitLine:Ua(Kr.splitLine,!0),splitArea:Ua(Kr.splitArea,!0),indicator:[]},e}(Xt),S0=["axisLine","axisTickLabel","axisName"],x0=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,n=r.getIndicatorAxes(),i=$(n,function(o){var s=o.model.get("showName")?o.name:"",l=new mr(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(i,function(o){D(S0,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,n=r.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),v=o.get("show"),c=s.get("show"),f=l.get("color"),h=u.get("color"),p=q(f)?f:[f],d=q(h)?h:[h],g=[],y=[];function S(E,R,k){var N=k%R.length;return E[N]=E[N]||[],N}if(i==="circle")for(var m=n[0].getTicksCoords(),x=r.cx,b=r.cy,_=0;_=4&&(v={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(v&&s!=null&&l!=null&&(c=_h(v,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=n;n=new nt,n.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Bt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:v,viewBoxTransform:c,named:i}},a.prototype._parseNode=function(e,t,r,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var v=Di[s];if(v&&Z(Di,s)){l=v.call(this,e,t);var c=e.getAttribute("name");if(c){var f={name:c,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else n&&r.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var h=gu[s];if(h&&Z(gu,s)){var p=h.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},a.prototype._parseText=function(e,t){var r=new df({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});he(t,r),oe(e,r,this._defsUsePending,!1,!1),D0(r,t);var n=r.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},a.internalField=function(){Di={g:function(e,t){var r=new nt;return he(t,r),oe(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new Bt;return he(t,r),oe(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new Ma;return he(t,r),oe(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new _e;return he(t,r),oe(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Sg;return he(t,r),oe(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),n;r&&(n=Su(r));var i=new Ae({shape:{points:n||[]},silent:!0});return he(t,i),oe(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),n;r&&(n=Su(r));var i=new Te({shape:{points:n||[]},silent:!0});return he(t,i),oe(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Re;return he(t,r),oe(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new nt;return he(t,s),oe(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),n=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new nt;return he(t,s),oe(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",n=mg(r);return he(t,n),oe(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),a}(),gu={lineargradient:function(a){var e=parseInt(a.getAttribute("x1")||"0",10),t=parseInt(a.getAttribute("y1")||"0",10),r=parseInt(a.getAttribute("x2")||"10",10),n=parseInt(a.getAttribute("y2")||"0",10),i=new vs(e,t,r,n);return yu(a,i),mu(a,i),i},radialgradient:function(a){var e=parseInt(a.getAttribute("cx")||"0",10),t=parseInt(a.getAttribute("cy")||"0",10),r=parseInt(a.getAttribute("r")||"0",10),n=new xg(e,t,r);return yu(a,n),mu(a,n),n}};function yu(a,e){var t=a.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function mu(a,e){for(var t=a.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),n=void 0;r&&r.indexOf("%")>0?n=parseInt(r,10)/100:r?n=parseFloat(r):n=0;var i={};bh(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function he(a,e){a&&a.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),ot(e.__inheritedStyle,a.__inheritedStyle))}function Su(a){for(var e=ri(a),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=ri(o);switch(n=n||Zr(),s){case"translate":Sr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":bf(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Yn(n,n,-parseFloat(l[0])*Li,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Li);mo(n,[1,0,u,1,0,0],n);break;case"skewY":var v=Math.tan(parseFloat(l[0])*Li);mo(n,[1,v,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var bu=/([^\s:;]+)\s*:\s*([^:;]+)/g;function bh(a,e,t){var r=a.getAttribute("style");if(r){bu.lastIndex=0;for(var n;(n=bu.exec(r))!=null;){var i=n[1],o=Z(wn,i)?wn[i]:null;o&&(e[o]=n[2]);var s=Z(An,i)?An[i]:null;s&&(t[s]=n[2])}}}function R0(a,e,t){for(var r=0;r0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,n)},a.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ut(),r=ut(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function v(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function c(h){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(f=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ue(e,Qt(r),{labelFetcher:f,labelDataIndex:c,defaultText:t},h);var p=e.getTextContent();if(p&&(wh(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Cu(a,e,t,r,n,i){a.data?a.data.setItemGraphicEl(i,e):ht(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:r&&r.option||{}}}function Du(a,e,t,r,n){a.data||fs({el:e,componentModel:n,itemName:t,itemTooltipOption:r.get("tooltip")})}function Lu(a,e,t,r,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return Et(e,o,i.get("blurScope"),i.get("disabled")),a.isGeo&&_g(e,n,t),o}function Iu(a,e,t){var r=[],n;function i(){n=[]}function o(){n.length&&(r.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),D(a,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Ft);function Q0(a,e){var t={};return D(a,function(r){r.each(r.mapDimension("value"),function(n,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),a[0].map(a[0].mapDimension("value"),function(r,n){for(var i="ec-"+a[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,v=0;v1?(x.width=m,x.height=m/g):(x.height=m,x.width=m*g),x.y=S[1]-x.height/2,x.x=S[0]-x.width/2;else{var b=a.getBoxLayoutParams();b.aspect=g,x=fe(b,{width:p,height:d})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(a.get("center"),e),this.setZoom(a.get("zoom"))}function a1(a,e){D(e.get("geoCoord"),function(t,r){a.addGeoCoord(r,t)})}var n1=function(){function a(){this.dimensions=Th}return a.prototype.create=function(e,t){var r=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Eo(l+s,l,K({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Ru,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),D(i,function(o,s){var l=$(o,function(v){return v.get("nameMap")}),u=new Eo(s,s,K({nameMap:hs(l)},n(o[0])));u.zoomLimit=se.apply(null,$(o,function(v){return v.get("scaleLimit")})),r.push(u),u.resize=Ru,u.resize(o[0],t),D(o,function(v){v.coordinateSystem=u,a1(u,v)})}),r},a.prototype.getFilledRegions=function(e,t,r,n){for(var i=(e||[]).slice(),o=ut(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function v1(a,e){var t=a.isExpand?a.children:[],r=a.parentNode.children,n=a.hierNode.i?r[a.hierNode.i-1]:null;if(t.length){h1(a);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(a.hierNode.prelim=n.hierNode.prelim+e(a,n),a.hierNode.modifier=a.hierNode.prelim-i):a.hierNode.prelim=i}else n&&(a.hierNode.prelim=n.hierNode.prelim+e(a,n));a.parentNode.hierNode.defaultAncestor=p1(a,n,a.parentNode.hierNode.defaultAncestor||r[0],e)}function c1(a){var e=a.hierNode.prelim+a.parentNode.hierNode.modifier;a.setLayout({x:e},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function Vu(a){return arguments.length?a:y1}function na(a,e){return a-=Math.PI/2,{x:e*Math.cos(a),y:e*Math.sin(a)}}function f1(a,e){return fe(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function h1(a){for(var e=a.children,t=e.length,r=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,n+=i.hierNode.change,r+=i.hierNode.shift+n}}function p1(a,e,t,r){if(e){for(var n=a,i=a,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,v=o.hierNode.modifier,c=s.hierNode.modifier;s=Ii(s),i=Mi(i),s&&i;){n=Ii(n),o=Mi(o),n.hierNode.ancestor=a;var f=s.hierNode.prelim+c-i.hierNode.prelim-u+r(s,i);f>0&&(g1(d1(s,a,t),a,f),u+=f,l+=f),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,v+=o.hierNode.modifier}s&&!Ii(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=c-l),i&&!Mi(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-v,t=a)}return t}function Ii(a){var e=a.children;return e.length&&a.isExpand?e[e.length-1]:a.hierNode.thread}function Mi(a){var e=a.children;return e.length&&a.isExpand?e[0]:a.hierNode.thread}function d1(a,e,t){return a.hierNode.ancestor.parentNode===e.parentNode?a.hierNode.ancestor:t}function g1(a,e,t){var r=t/(e.hierNode.i-a.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,a.hierNode.change+=r}function y1(a,e){return a.parentNode===e.parentNode?1:2}var m1=function(){function a(){this.parentPoint=[],this.childPoints=[]}return a}(),S1=function(a){V(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new m1},e.prototype.buildPath=function(t,r){var n=r.childPoints,i=n.length,o=r.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,v=u==="TB"||u==="BT"?0:1,c=1-v,f=U(r.forkPosition,1),h=[];h[v]=o[v],h[c]=o[c]+(l[c]-o[c])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[v]=s[v],t.lineTo(h[0],h[1]),h[v]=l[v],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pS.x,b||(x=x-Math.PI));var w=b?"left":"right",A=s.getModel("label"),T=A.get("rotate"),C=T*(Math.PI/180),L=g.getTextContent();L&&(g.setTextConfig({position:A.get("position")||w,rotation:T==null?-x:C,origin:"center"}),L.setStyle("verticalAlign","middle"))}var M=s.get(["emphasis","focus"]),I=M==="relative"?fn(o.getAncestorsIndices(),o.getDescendantIndices()):M==="ancestor"?o.getAncestorsIndices():M==="descendant"?o.getDescendantIndices():null;I&&(ht(t).focus=I),b1(n,o,v,t,p,h,d,r),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var E=o.parentNode&&a.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===Ag||wf(t.__edge,P)}})}function b1(a,e,t,r,n,i,o,s){var l=e.getModel(),u=a.get("edgeShape"),v=a.get("layout"),c=a.getOrient(),f=a.get(["lineStyle","curveness"]),h=a.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=r.__edge=new Df({shape:Ro(v,c,f,n,n)})),xt(d,{shape:Ro(v,c,f,i,o)},a));else if(u==="polyline"&&v==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],S=0;St&&(t=n.height)}this.height=t+1},a.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,n=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},a.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,n=a.targetNode;if(lt(n)&&(n=r.getNodeById(n)),n&&r.contains(n))return{node:n};var i=a.targetNodeId;if(i!=null&&(n=r.getNodeById(i)))return{node:n}}}function Ph(a){for(var e=[];a;)a=a.parentNode,a&&e.push(a);return e.reverse()}function Gs(a,e){var t=Ph(a);return Pt(t,e)>=0}function ai(a,e){for(var t=[];a;){var r=a.dataIndex;t.push({name:a.name,dataIndex:r,value:e.getRawValue(r)}),a=a.parentNode}return t.reverse(),t}var M1=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},n=t.leaves||{},i=new ce(n,this,this.ecModel),o=zs.createTree(r,this,s);function s(c){c.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=t.expandAndCollapse,v=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var f=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=f&&f.collapsed!=null?!f.collapsed:c.depth<=v}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ne("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=ai(n,this),r.collapsed=!n.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Ft);function P1(a,e,t){for(var r=[a],n=[],i;i=r.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(n[i])}}function E1(a,e){a.eachSeriesByType("tree",function(t){R1(t,e)})}function R1(a,e){var t=f1(a,e);a.layoutInfo=t;var r=a.get("layout"),n=0,i=0,o=null;r==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Vu(function(m,x){return(m.parentNode===x.parentNode?1:2)/m.depth})):(n=t.width,i=t.height,o=Vu());var s=a.getData().tree.root,l=s.children[0];if(l){u1(s),P1(l,v1,o),s.hierNode.modifier=-l.hierNode.prelim,Jr(l,c1);var u=l,v=l,c=l;Jr(l,function(m){var x=m.getLayout().x;xv.getLayout().x&&(v=m),m.depth>c.depth&&(c=m)});var f=u===v?1:o(u,v)/2,h=f-u.getLayout().x,p=0,d=0,g=0,y=0;if(r==="radial")p=n/(v.getLayout().x+f+h),d=i/(c.depth-1||1),Jr(l,function(m){g=(m.getLayout().x+h)*p,y=(m.depth-1)*d;var x=na(g,y);m.setLayout({x:x.x,y:x.y,rawX:g,rawY:y},!0)});else{var S=a.getOrient();S==="RL"||S==="LR"?(d=i/(v.getLayout().x+f+h),p=n/(c.depth-1||1),Jr(l,function(m){y=(m.getLayout().x+h)*d,g=S==="LR"?(m.depth-1)*p:n-(m.depth-1)*p,m.setLayout({x:g,y},!0)})):(S==="TB"||S==="BT")&&(p=n/(v.getLayout().x+f+h),d=i/(c.depth-1||1),Jr(l,function(m){g=(m.getLayout().x+h)*p,y=S==="TB"?(m.depth-1)*d:i-(m.depth-1)*d,m.setLayout({x:g,y},!0)}))}}}function k1(a){a.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");K(s,o)})})}function V1(a){a.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var n=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),a.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=Vs(i,e,void 0,r);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function N1(a){a.registerChartView(x1),a.registerSeriesModel(M1),a.registerLayout(E1),a.registerVisual(k1),V1(a)}var Bu=["treemapZoomToNode","treemapRender","treemapMove"];function z1(a){for(var e=0;e1;)i=i.parentNode;var o=bo(a.ecModel,i.name||i.dataIndex+"",r);n.setVisual("decal",o)})}var G1=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var n={name:t.name,children:t.data};Rh(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new ce({itemStyle:o},this,r);i=t.levels=O1(i,r);var l=$(i||[],function(c){return new ce(c,s,r)},this),u=zs.createTree(n,this,v);function v(c){c.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),d=p?l[p.depth]:null;return f.parentModel=d||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ne("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=ai(n,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ut(),this._idIndexMapCount=0);var n=r.get(t);return n==null&&r.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Eh(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Ft);function Rh(a){var e=0;D(a.children,function(r){Rh(r);var n=r.value;q(n)&&(n=n[0]),e+=n});var t=a.value;q(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),q(a.value)?a.value[0]=t:a.value=t}function O1(a,e){var t=Jt(e.get("color")),r=Jt(e.get(["aria","decal","decals"]));if(t){a=a||[];var n,i;D(a,function(s){var l=new ce(s),u=l.get("color"),v=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||v&&v!=="none")&&(i=!0)});var o=a[0]||(a[0]={});return n||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),a}}var B1=8,Fu=8,Pi=5,F1=function(){function a(e){this.group=new nt,e.add(this.group)}return a.prototype.render=function(e,t,r,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),v=l.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,c,u),this._renderContent(e,c,s,l,u,v,n),ps(o,c.pos,c.box)}},a.prototype._prepare=function(e,t,r){for(var n=e;n;n=n.parentNode){var i=ze(n.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+B1*2,t.emptyItemWidth);t.totalWidth+=s+Fu,t.renderList.push({node:n,text:i,width:s})}},a.prototype._renderContent=function(e,t,r,n,i,o,s){for(var l=0,u=t.emptyItemWidth,v=e.get(["breadcrumb","height"]),c=Tg(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=n.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var g=h[d],y=g.node,S=g.width,m=g.text;f>c.width&&(f-=S-u,S=u,m=null);var x=new Ae({shape:{points:H1(l,0,S,v,d===h.length-1,d===0)},style:ot(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new St({style:At(i,{text:m})}),textConfig:{position:"inside"},z2:Pa*1e4,onclick:st(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=At(o,{text:m}),x.ensureState("emphasis").style=p,Et(x,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(x),W1(x,e,y),l+=S+Fu}},a.prototype.remove=function(){this.group.removeAll()},a}();function H1(a,e,t,r,n,i){var o=[[n?a:a-Pi,e],[a+t,e],[a+t,e+r],[n?a:a-Pi,e+r]];return!i&&o.splice(2,0,[a+t+Pi,e+r/2]),!n&&o.push([a,e+r/2]),o}function W1(a,e,t){ht(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&ai(t,e)}}var U1=function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(e,t,r,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:n,easing:i}),!0)},a.prototype.finished=function(e){return this._finishedCallback=e,this},a.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;nWu||Math.abs(t.dy)>Wu)){var r=this.seriesModel.getData().tree.root;if(!r)return;var n=r.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var r=t.originX,n=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Tt(s.x,s.y,s.width,s.height),u=null,v=this._controllerHost;u=v.zoomLimit;var c=v.zoom=v.zoom||1;if(c*=i,u){var f=u.min||0,h=u.max||1/0;c=Math.max(Math.min(h,c),f)}var p=c/v.zoom;v.zoom=c;var d=this.seriesModel.layoutInfo;r-=d.x,n-=d.y;var g=Zr();Sr(g,g,[-r,-n]),bf(g,g,[p,p]),Sr(g,g,[r,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(n){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),v=l.get("target",!0)||"blank";u&&pn(u,v)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new F1(this.group))).render(t,r,n.node,function(o){i._state!=="animating"&&(Gs(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Qr(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e}(kt);function Qr(){return{nodeGroup:[],background:[],content:[]}}function K1(a,e,t,r,n,i,o,s,l,u){if(!o)return;var v=o.getLayout(),c=a.getData(),f=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!v||!v.isInView)return;var h=v.width,p=v.height,d=v.borderWidth,g=v.invisible,y=o.getRawIndex(),S=s&&s.getRawIndex(),m=o.viewChildren,x=v.upperHeight,b=m&&m.length,_=f.getModel("itemStyle"),w=f.getModel(["emphasis","itemStyle"]),A=f.getModel(["blur","itemStyle"]),T=f.getModel(["select","itemStyle"]),C=_.get("borderRadius")||0,L=O("nodeGroup",ko);if(!L)return;if(l.add(L),L.x=v.x||0,L.y=v.y||0,L.markRedraw(),Tn(L).nodeWidth=h,Tn(L).nodeHeight=p,v.isAboveViewRoot)return L;var M=O("background",Hu,u,Z1);M&&H(L,M,b&&v.upperLabelHeight);var I=f.getModel("emphasis"),P=I.get("focus"),E=I.get("blurScope"),R=I.get("disabled"),k=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Dl(L)&&ra(L,!1),M&&(ra(M,!R),c.setItemGraphicEl(o.dataIndex,M),Ll(M,k,E));else{var N=O("content",Hu,u,X1);N&&X(L,N),M.disableMorphing=!0,M&&Dl(M)&&ra(M,!1),ra(L,!R),c.setItemGraphicEl(o.dataIndex,L);var F=f.getShallow("cursor");F&&N.attr("cursor",F),Ll(L,k,E)}return L;function H(Y,W,Q){var et=ht(W);if(et.dataIndex=o.dataIndex,et.seriesIndex=a.seriesIndex,W.setShape({x:0,y:0,width:h,height:p,r:C}),g)j(W);else{W.invisible=!1;var B=o.getVisual("style"),ct=B.stroke,vt=Yu(_);vt.fill=ct;var ft=lr(w);ft.fill=w.get("borderColor");var _t=lr(A);_t.fill=A.get("borderColor");var Vt=lr(T);if(Vt.fill=T.get("borderColor"),Q){var ie=h-2*d;rt(W,ct,B.opacity,{x:d,y:0,width:ie,height:x})}else W.removeTextContent();W.setStyle(vt),W.ensureState("emphasis").style=ft,W.ensureState("blur").style=_t,W.ensureState("select").style=Vt,Br(W)}Y.add(W)}function X(Y,W){var Q=ht(W);Q.dataIndex=o.dataIndex,Q.seriesIndex=a.seriesIndex;var et=Math.max(h-2*d,0),B=Math.max(p-2*d,0);if(W.culling=!0,W.setShape({x:d,y:d,width:et,height:B,r:C}),g)j(W);else{W.invisible=!1;var ct=o.getVisual("style"),vt=ct.fill,ft=Yu(_);ft.fill=vt,ft.decal=ct.decal;var _t=lr(w),Vt=lr(A),ie=lr(T);rt(W,vt,ct.opacity,null),W.setStyle(ft),W.ensureState("emphasis").style=_t,W.ensureState("blur").style=Vt,W.ensureState("select").style=ie,Br(W)}Y.add(W)}function j(Y){!Y.invisible&&i.push(Y)}function rt(Y,W,Q,et){var B=f.getModel(et?$u:Uu),ct=ze(f.get("name"),null),vt=B.getShallow("show");ue(Y,Qt(f,et?$u:Uu),{defaultText:vt?ct:null,inheritColor:W,defaultOpacity:Q,labelFetcher:a,labelDataIndex:o.dataIndex});var ft=Y.getTextContent();if(ft){var _t=ft.style,Vt=Cg(_t.padding||0);et&&(Y.setTextConfig({layoutRect:et}),ft.disableLabelLayout=!0),ft.beforeUpdate=function(){var ee=Math.max((et?et.width:Y.shape.width)-Vt[1]-Vt[3],0),rr=Math.max((et?et.height:Y.shape.height)-Vt[0]-Vt[2],0);(_t.width!==ee||_t.height!==rr)&&ft.setStyle({width:ee,height:rr})},_t.truncateMinChar=2,_t.lineOverflow="truncate",tt(_t,et,v);var ie=ft.getState("emphasis");tt(ie?ie.style:null,et,v)}}function tt(Y,W,Q){var et=Y?Y.text:null;if(!W&&Q.isLeafRoot&&et!=null){var B=a.get("drillDownIcon",!0);Y.text=B?B+" "+et:et}}function O(Y,W,Q,et){var B=S!=null&&t[Y][S],ct=n[Y];return B?(t[Y][S]=null,G(ct,B)):g||(B=new W,B instanceof xr&&(B.z2=j1(Q,et)),J(ct,B)),e[Y][y]=B}function G(Y,W){var Q=Y[y]={};W instanceof ko?(Q.oldX=W.x,Q.oldY=W.y):Q.oldShape=K({},W.shape)}function J(Y,W){var Q=Y[y]={},et=o.parentNode,B=W instanceof nt;if(et&&(!r||r.direction==="drillDown")){var ct=0,vt=0,ft=n.background[et.getRawIndex()];!r&&ft&&ft.oldShape&&(ct=ft.oldShape.width,vt=ft.oldShape.height),B?(Q.oldX=0,Q.oldY=vt):Q.oldShape={x:ct,y:vt,width:0,height:0}}Q.fadein=!B}}function j1(a,e){return a*Y1+e}var _a=D,J1=Zt,Cn=-1,Ot=function(){function a(e){var t=e.mappingMethod,r=e.type,n=this.option=pt(e);this.type=r,this.mappingMethod=t,this._normalizeData=eS[t];var i=a.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(Ei(n),Q1(n)):t==="category"?n.categories?tS(n):Ei(n,!0):(da(t!=="linear"||n.dataExtent),Ei(n))}return a.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},a.prototype.getNormalizer=function(){return at(this._normalizeData,this)},a.listVisualTypes=function(){return Mt(a.visualHandlers)},a.isValidType=function(e){return a.visualHandlers.hasOwnProperty(e)},a.eachVisual=function(e,t,r){Zt(e)?D(e,t,r):t.call(r,e)},a.mapVisual=function(e,t,r){var n,i=q(e)?[]:Zt(e)?{}:(n=!0,null);return a.eachVisual(e,function(o,s){var l=t.call(r,o,s);n?i=l:i[s]=l}),i},a.retrieveVisuals=function(e){var t={},r;return e&&_a(a.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},a.prepareVisualTypes=function(e){if(q(e))e=e.slice();else if(J1(e)){var t=[];_a(e,function(r,n){t.push(n)}),e=t}else return[];return e.sort(function(r,n){return n==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},a.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},a.findPieceIndex=function(e,t,r){for(var n,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function Ei(a,e){var t=a.visual,r=[];Zt(t)?_a(t,function(i){r.push(i)}):t!=null&&r.push(t);var n={color:1,symbol:1};!e&&r.length===1&&!n.hasOwnProperty(a.type)&&(r[1]=r[0]),kh(a,r)}function Ya(a){return{applyVisual:function(e,t,r){var n=this.mapValueToVisual(e);r("color",a(t("color"),n))},_normalizedToVisual:Vo([0,1])}}function Zu(a){var e=this.option.visual;return e[Math.round(Nt(a,[0,1],[0,e.length-1],!0))]||{}}function ta(a){return function(e,t,r){r(a,this.mapValueToVisual(e))}}function ia(a){var e=this.option.visual;return e[this.option.loop&&a!==Cn?a%e.length:a]}function ur(){return this.option.visual[0]}function Vo(a){return{linear:function(e){return Nt(e,a,this.option.visual,!0)},category:ia,piecewise:function(e,t){var r=No.call(this,t);return r==null&&(r=Nt(e,a,this.option.visual,!0)),r},fixed:ur}}function No(a){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=Ot.findPieceIndex(a,t),n=t[r];if(n&&n.visual)return n.visual[this.type]}}function kh(a,e){return a.visual=e,a.type==="color"&&(a.parsedVisual=$(e,function(t){var r=Dg(t);return r||[0,0,0,1]})),e}var eS={linear:function(a){return Nt(a,this.option.dataExtent,[0,1],!0)},piecewise:function(a){var e=this.option.pieceList,t=Ot.findPieceIndex(a,e,!0);if(t!=null)return Nt(t,[0,e.length-1],[0,1],!0)},category:function(a){var e=this.option.categories?this.option.categoryMap[a]:a;return e??Cn},fixed:yr};function Za(a,e,t){return a?e<=t:e=t.length||d===t[d.depth]){var y=sS(n,l,d,g,p,r);Nh(d,y,t,r)}})}}}function nS(a,e,t){var r=K({},e),n=t.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=a.get(i);n[i]=null,o!=null&&(r[i]=o)}),r}function Xu(a){var e=Ri(a,"color");if(e){var t=Ri(a,"colorAlpha"),r=Ri(a,"colorSaturation");return r&&(e=la(e,null,null,r)),t&&(e=dn(e,t)),e}}function iS(a,e){return e!=null?la(e,null,null,a):null}function Ri(a,e){var t=a[e];if(t!=null&&t!=="none")return t}function oS(a,e,t,r,n,i){if(!(!i||!i.length)){var o=ki(e,"color")||n.color!=null&&n.color!=="none"&&(ki(e,"colorAlpha")||ki(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var v=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(v==="index"||v==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var f=new Ot(c);return Vh(f).drColorMappingBy=v,f}}}function ki(a,e){var t=a.get(e);return q(t)&&t.length?{name:e,range:t}:null}function sS(a,e,t,r,n,i){var o=K({},e);if(n){var s=n.type,l=s==="color"&&Vh(n).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(a.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var wa=Math.max,Dn=Math.min,qu=se,Os=D,zh=["itemStyle","borderWidth"],lS=["itemStyle","gapWidth"],uS=["upperLabel","show"],vS=["upperLabel","height"];const cS={seriesType:"treemap",reset:function(a,e,t,r){var n=t.getWidth(),i=t.getHeight(),o=a.option,s=fe(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=U(qu(s.width,l[0]),n),v=U(qu(s.height,l[1]),i),c=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=ba(r,f,a),p=c==="treemapRender"||c==="treemapMove"?r.rootRect:null,d=a.getViewRoot(),g=Ph(d);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?yS(a,h,d,u,v):p?[p.width,p.height]:[u,v],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var m={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(x),Gh(d,m,!1,0),x=d.getLayout(),Os(g,function(_,w){var A=(g[w+1]||d).getValue();_.setLayout(K({dataExtent:[A,A],borderWidth:0,upperHeight:0},x))})}var b=a.getData().tree.root;b.setLayout(mS(s,p,h),!0),a.setLayoutInfo(s),Oh(b,new Tt(-s.x,-s.y,n,i),g,d,0)}};function Gh(a,e,t,r){var n,i;if(!a.isRemoved()){var o=a.getLayout();n=o.width,i=o.height;var s=a.getModel(),l=s.get(zh),u=s.get(lS)/2,v=Bh(s),c=Math.max(l,v),f=l-u,h=c-u;a.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:v},!0),n=wa(n-2*f,0),i=wa(i-f-h,0);var p=n*i,d=fS(a,s,p,e,t,r);if(d.length){var g={x:f,y:h,width:n,height:i},y=Dn(n,i),S=1/0,m=[];m.area=0;for(var x=0,b=d.length;x=0;l--){var u=n[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function gS(a,e,t){for(var r=0,n=1/0,i=0,o=void 0,s=a.length;ir&&(r=o));var l=a.area*a.area,u=e*e*t;return l?wa(u*r/l,l/(u*n)):1/0}function Ku(a,e,t,r,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],v=e?a.area/e:0;(n||v>t[l[o]])&&(v=t[l[o]]);for(var c=0,f=a.length;cIl&&(u=Il),i=s}ur&&(r=e);var i=r%2?r+2:r+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=x[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var A=-Math.atan2(x[1],x[0]);c[0].8?"left":f[0]<-.8?"right":"center",d=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+v[0],i.y=-f[1]*S+v[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",d=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+v[0],i.y=v[1]+T,p=x[0]<0?"right":"left",i.originX=-y*w,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+T,p="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+T,p=x[0]>=0?"right":"left",i.originX=y*w,i.originY=-T;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},e}(nt),Us=function(){function a(e){this.group=new nt,this._LineCtor=e||Ws}return a.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,n=r.group,i=r._lineData;r._lineData=e,i||n.removeAll();var o=rv(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},a.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=rv(e),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!NS(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0}function rv(a){var e=a.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Qt(e)}}function av(a){return isNaN(a[0])||isNaN(a[1])}function Oi(a){return a&&!av(a[0])&&!av(a[1])}var Bi=[],Fi=[],Hi=[],Dr=If,Wi=Eg,nv=Math.abs;function iv(a,e,t){for(var r=a[0],n=a[1],i=a[2],o=1/0,s,l=t*t,u=.1,v=.1;v<=.9;v+=.1){Bi[0]=Dr(r[0],n[0],i[0],v),Bi[1]=Dr(r[1],n[1],i[1],v);var c=nv(Wi(Bi,e)-l);c=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Ui(a,e){var t=[],r=Pg,n=[[],[],[]],i=[[],[]],o=[];e/=2,a.eachEdge(function(s,l){var u=s.getLayout(),v=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[je(u[0]),je(u[1])],u[2]&&u.__original.push(je(u[2])));var f=u.__original;if(u[2]!=null){if(Kt(n[0],f[0]),Kt(n[1],f[2]),Kt(n[2],f[1]),v&&v!=="none"){var h=sa(s.node1),p=iv(n,f[0],h*e);r(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],r(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}if(c&&c!=="none"){var h=sa(s.node2),p=iv(n,f[1],h*e);r(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],r(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]}Kt(u[0],n[0]),Kt(u[1],n[2]),Kt(u[2],n[1])}else{if(Kt(i[0],f[0]),Kt(i[1],f[1]),Nr(o,i[1],i[0]),Ea(o,o),v&&v!=="none"){var h=sa(s.node1);_o(i[0],i[0],o,h*e)}if(c&&c!=="none"){var h=sa(s.node2);_o(i[1],i[1],o,-h*e)}Kt(u[0],i[0]),Kt(u[1],i[1])}})}function ov(a){return a.type==="view"}var zS=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var n=new Un,i=new Us,o=this.group;this._controller=new Zn(r.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(ov(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(v):xt(u,v,t)}Ui(t.getGraph(),oa(t));var c=t.getData();s.updateData(c);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var d=t.get("layout");c.graph.eachNode(function(m){var x=m.dataIndex,b=m.getGraphicEl(),_=m.getModel();if(b){b.off("drag").off("dragend");var w=_.get("draggable");w&&b.on("drag",function(T){switch(d){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(x),c.setItemLayout(x,[b.x,b.y]);break;case"circular":c.setItemLayout(x,[b.x,b.y]),m.setLayout({fixed:!0},!0),Hs(t,"symbolSize",m,[T.offsetX,T.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(x,[b.x,b.y]),Fs(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(x)}),b.setDraggable(w,!!_.get("cursor"));var A=_.get(["emphasis","focus"]);A==="adjacency"&&(ht(b).focus=m.getAdjacentDataIndices())}}),c.graph.eachEdge(function(m){var x=m.getGraphicEl(),b=m.getModel().get(["emphasis","focus"]);x&&b==="adjacency"&&(ht(x).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),S=c.getLayout("cy");c.graph.eachNode(function(m){Uh(m,g,y,S)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(r?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,v,c){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(v,c)&&!ei(u,n,t)}),!ov(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Es(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Rs(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Ui(t.getGraph(),oa(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),n=oa(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){Ui(t.getGraph(),oa(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(kt);function Lr(a){return"_EC_"+a}var GS=function(){function a(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return a.prototype.isDirected=function(){return this._directed},a.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Lr(e)]){var n=new vr(e,t);return n.hostGraph=this,this.nodes.push(n),r[Lr(e)]=n,n}},a.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},a.prototype.getNodeById=function(e){return this._nodesMap[Lr(e)]},a.prototype.addEdge=function(e,t,r){var n=this._nodesMap,i=this._edgesMap;if(le(e)&&(e=this.nodes[e]),le(t)&&(t=this.nodes[t]),e instanceof vr||(e=n[Lr(e)]),t instanceof vr||(t=n[Lr(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new Yh(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},a.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},a.prototype.getEdge=function(e,t){e instanceof vr&&(e=e.id),t instanceof vr&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},a.prototype.eachNode=function(e,t){for(var r=this.nodes,n=r.length,i=0;i=0&&e.call(t,r[i],i)},a.prototype.eachEdge=function(e,t){for(var r=this.edges,n=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},a.prototype.breadthFirstTraverse=function(e,t,r,n){if(t instanceof vr||(t=this._nodesMap[Lr(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&this[a][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[a][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[a][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[a][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][e].getRawIndex(this.dataIndex)}}}Ce(vr,Zh("hostGraph","data"));Ce(Yh,Zh("hostGraph","edgeData"));function Xh(a,e,t,r,n){for(var i=new GS(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=$r(a,t);else{var d=Mf.get(h),g=d?d.dimensions||[]:[];Pt(g,"value")<0&&g.concat(["value"]);var y=Hn(a,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new re(y,t),p.initData(a)}var S=new re(["value"],t);return S.initData(l,s),n&&n(p,S),Ih({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var OS=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments);var r=this;function n(){return r._categoriesData}this.legendVisualProvider=new za(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){a.prototype.mergeDefaultAndTheme.apply(this,arguments),La(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){TS(this);var s=Xh(i,n,this,!0,l);return D(s.edges,function(u){CS(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,v){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var c=ce.prototype.getModel;function f(p,d){var g=c.call(this,p,d);return g.resolveParentPath=h,g}v.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),v=[];return l!=null&&v.push(l),u!=null&&v.push(u),ne("nameValue",{name:v.join(" > "),value:o.value,noValue:o.value==null})}var c=Rg({series:this,dataIndex:t,multipleSeries:r});return c},e.prototype._updateCategoriesData=function(){var t=$(this.option.categories||[],function(n){return n.value!=null?n:K({value:0},n)}),r=new re(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(n){return r.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ft),BS={type:"graphRoam",event:"graphRoam",update:"none"};function FS(a){a.registerChartView(zS),a.registerSeriesModel(OS),a.registerProcessor(xS),a.registerVisual(bS),a.registerVisual(_S),a.registerLayout(DS),a.registerLayout(a.PRIORITY.VISUAL.POST_CHART_LAYOUT,IS),a.registerLayout(PS),a.registerCoordinateSystem("graphView",{dimensions:Ga.dimensions,create:RS}),a.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},yr),a.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},yr),a.registerAction(BS,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=Vs(i,e,void 0,r);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var HS=function(){function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return a}(),WS=function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new HS},e.prototype.buildPath=function(t,r){var n=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-n(l)*s*(s>=o/3?1:2),v=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,v),t.lineTo(r.x+n(l)*s,r.y+i(l)*s),t.lineTo(r.x+n(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-n(l)*s,r.y-i(l)*s),t.lineTo(u,v)},e}(Wt);function US(a,e){var t=a.get("center"),r=e.getWidth(),n=e.getHeight(),i=Math.min(r,n),o=U(t[0],e.getWidth()),s=U(t[1],e.getHeight()),l=U(a.get("radius"),i/2);return{cx:o,cy:s,r:l}}function qa(a,e){var t=a==null?"":a+"";return e&&(lt(e)?t=e.replace("{value}",t):gt(e)&&(t=e(a))),t}var $S=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=US(t,n);this._renderMain(t,r,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,v=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),f=c.get("roundCap"),h=f?Pl:Be,p=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),y=[u,v];yf(y,!l),u=y[0],v=y[1];for(var S=v-u,m=u,x=[],b=0;p&&b=T&&(C===0?0:i[C-1][0])Math.PI/2&&(tt+=Math.PI)):rt==="tangential"?tt=-A-Math.PI/2:le(rt)&&(tt=rt*Math.PI/180),tt===0?c.add(new St({style:At(m,{text:F,x:X,y:j,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:H}),silent:!0})):c.add(new St({style:At(m,{text:F,x:X,y:j,verticalAlign:"middle",align:"center"},{inheritColor:H}),silent:!0,originX:X,originY:j,rotation:tt}))}if(S.get("show")&&R!==x){var k=S.get("distance");k=k?k+v:v;for(var O=0;O<=b;O++){P=Math.cos(A),E=Math.sin(A);var G=new _e({shape:{x1:P*(p-k)+f,y1:E*(p-k)+h,x2:P*(p-w-k)+f,y2:E*(p-w-k)+h},silent:!0,style:M});M.stroke==="auto"&&G.setStyle({stroke:i((R+O/b)/x)}),c.add(G),A+=C}A-=C}else A+=T}},e.prototype._renderPointer=function(t,r,n,i,o,s,l,u,v){var c=this.group,f=this._data,h=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),S=t.getData(),m=S.mapDimension("value"),x=+t.get("min"),b=+t.get("max"),_=[x,b],w=[s,l];function A(C,L){var M=S.getItemModel(C),I=M.getModel("pointer"),P=U(I.get("width"),o.r),E=U(I.get("length"),o.r),R=t.get(["pointer","icon"]),k=I.get("offsetCenter"),N=U(k[0],o.r),F=U(k[1],o.r),H=I.get("keepAspect"),X;return R?X=ve(R,N-P/2,F-E,P,E,null,H):X=new WS({shape:{angle:-Math.PI/2,width:P,r:E,x:N,y:F}}),X.rotation=-(L+Math.PI/2),X.x=o.cx,X.y=o.cy,X}function T(C,L){var M=g.get("roundCap"),I=M?Pl:Be,P=g.get("overlap"),E=P?g.get("width"):v/S.count(),R=P?o.r-E:o.r-(C+1)*E,k=P?o.r:o.r-C*E,N=new I({shape:{startAngle:s,endAngle:L,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:k}});return P&&(N.z2=Nt(S.get(m,C),[x,b],[100,0],!0)),N}(y||d)&&(S.diff(f).add(function(C){var L=S.get(m,C);if(d){var M=A(C,s);Ut(M,{rotation:-((isNaN(+L)?w[0]:Nt(L,_,w,!0))+Math.PI/2)},t),c.add(M),S.setItemGraphicEl(C,M)}if(y){var I=T(C,s),P=g.get("clip");Ut(I,{shape:{endAngle:Nt(L,_,w,P)}},t),c.add(I),El(t.seriesIndex,S.dataType,C,I),p[C]=I}}).update(function(C,L){var M=S.get(m,C);if(d){var I=f.getItemGraphicEl(L),P=I?I.rotation:s,E=A(C,P);E.rotation=P,xt(E,{rotation:-((isNaN(+M)?w[0]:Nt(M,_,w,!0))+Math.PI/2)},t),c.add(E),S.setItemGraphicEl(C,E)}if(y){var R=h[L],k=R?R.shape.endAngle:s,N=T(C,k),F=g.get("clip");xt(N,{shape:{endAngle:Nt(M,_,w,F)}},t),c.add(N),El(t.seriesIndex,S.dataType,C,N),p[C]=N}}).execute(),S.each(function(C){var L=S.getItemModel(C),M=L.getModel("emphasis"),I=M.get("focus"),P=M.get("blurScope"),E=M.get("disabled");if(d){var R=S.getItemGraphicEl(C),k=S.getItemVisual(C,"style"),N=k.fill;if(R instanceof Re){var F=R.style;R.useStyle(K({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},k))}else R.useStyle(k),R.type!=="pointer"&&R.setColor(N);R.setStyle(L.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",i(Nt(S.get(m,C),_,[0,1],!0))),R.z2EmphasisLift=0,ae(R,L),Et(R,I,P,E)}if(y){var H=p[C];H.useStyle(S.getItemVisual(C,"style")),H.setStyle(L.getModel(["progress","itemStyle"]).getItemStyle()),H.z2EmphasisLift=0,ae(H,L),Et(H,I,P,E)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),v=ve(s,r.cx-o/2+U(l[0],r.r),r.cy-o/2+U(l[1],r.r),o,o,null,u);v.z2=n.get("showAbove")?1:0,v.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(v)}},e.prototype._renderTitleAndDetail=function(t,r,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),v=+t.get("min"),c=+t.get("max"),f=new nt,h=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new St({silent:!0}),p[y]=new St({silent:!0})}).update(function(y,S){h[y]=s._titleEls[S],p[y]=s._detailEls[S]}).execute(),l.each(function(y){var S=l.getItemModel(y),m=l.get(u,y),x=new nt,b=i(Nt(m,[v,c],[0,1],!0)),_=S.getModel("title");if(_.get("show")){var w=_.get("offsetCenter"),A=o.cx+U(w[0],o.r),T=o.cy+U(w[1],o.r),C=h[y];C.attr({z2:g?0:2,style:At(_,{x:A,y:T,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),x.add(C)}var L=S.getModel("detail");if(L.get("show")){var M=L.get("offsetCenter"),I=o.cx+U(M[0],o.r),P=o.cy+U(M[1],o.r),E=U(L.get("width"),o.r),R=U(L.get("height"),o.r),k=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,C=p[y],N=L.get("formatter");C.attr({z2:g?0:2,style:At(L,{x:I,y:P,text:qa(m,N),width:isNaN(E)?null:E,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:k})}),kg(C,{normal:L},m,function(H){return qa(H,N)}),d&&cf(C,y,l,t,{getFormattedLabel:function(H,X,j,rt,tt,O){return qa(O?O.interpolatedValue:m,N)}}),x.add(C)}f.add(x)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(kt),YS=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return Xr(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Ft);function ZS(a){a.registerChartView($S),a.registerSeriesModel(YS)}var XS=["itemStyle","opacity"],qS=function(a){V(e,a);function e(t,r){var n=a.call(this)||this,i=n,o=new Te,s=new St;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,r,!0),n}return e.prototype.updateData=function(t,r,n){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),v=s.get(XS);v=v??1,n||Fe(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Ut(i,{style:{opacity:v}},o,r)):xt(i,{style:{opacity:v},shape:{points:l.points}},o,r),ae(i,s),this._updateLabel(t,r),Et(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),v=u.label,c=t.getItemVisual(r,"style"),f=c.fill;ue(o,Qt(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:c.opacity,defaultText:t.getName(r)},{normal:{align:v.textAlign,verticalAlign:v.verticalAlign}}),n.setTextConfig({local:!0,inside:!!v.inside,insideStroke:f,outsideFill:f});var h=v.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new mt(h[0][0],h[0][1]):null},xt(o,{style:{x:v.x,y:v.y}},s,r),o.attr({rotation:v.rotation,originX:v.x,originY:v.y,z2:10}),As(n,Ts(l),{stroke:f})},e}(Ae),KS=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new qS(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var v=o.getItemGraphicEl(u);v.updateData(i,l),s.add(v),i.setItemGraphicEl(l,v)}).remove(function(l){var u=o.getItemGraphicEl(l);mf(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(kt),jS=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new za(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return Xr(this,{coordDimensions:["value"],encodeDefaulter:st(us,this)})},e.prototype._defaultLabelLine=function(t){La(t,"labelLine",["show"]);var r=t.labelLine,n=t.emphasis.labelLine;r.show=r.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),n=a.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return n.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ft);function JS(a,e){return fe(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function QS(a,e){for(var t=a.mapDimension("value"),r=a.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=a.count();odx)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(a){if(!(this._mouseDownPoint||!Yi(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function Yi(a,e){var t=a._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var mx=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Ct(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var n=t.get("parallelIndex");return n!=null&&r.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],n=Gt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(n,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Xt),Sx=function(a){V(e,a);function e(t,r,n,i,o){var s=a.call(this,t,r,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(ke),Zi=D,Kh=Math.min,jh=Math.max,uv=Math.floor,xx=Math.ceil,vv=ds,bx=Math.PI,_x=function(){function a(e,t,r){this.type="parallel",this._axesMap=ut(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var n=e.dimensions,i=e.parallelAxisIndex;Zi(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),v=this._axesMap.set(o,new Sx(o,gs(u),[0,0],u.get("type"),l)),c=v.type==="category";v.onBand=c&&u.get("boundaryGap"),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},a.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},a.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=n&&s<=n+t.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var n=r.getData();Zi(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),gn(o.scale,o.model)},this)}},this)},a.prototype.resize=function(e,t){this._rect=fe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,v=Ka(e.get("axisExpandWidth"),l),c=Ka(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>c&&c>1&&v>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=Ka(h[1]-h[0],l),h[1]=h[0]+p;else{p=Ka(v*(c-1),l);var d=e.get("axisExpandCenter")||uv(u/2);h=[v*d-p/2],h[1]=h[0]+p}var g=(s-p)/(u-c);g<3&&(g=0);var y=[uv(vv(h[0]/v,1))+1,xx(vv(h[1]/v,1))-1],S=g/v*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[n[1-o]],axisExpandable:f,axisExpandWidth:v,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:S}},a.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Zi(r,function(o,s){var l=(n.axisExpandable?Ax:wx)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},v={horizontal:bx/2,vertical:0},c=[u[i].x+e.x,u[i].y+e.y],f=v[i],h=Zr();Yn(h,h,f),Sr(h,h,c),this._axesLayout[o]={position:c,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(e){return this._axesMap.get(e)},a.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},a.prototype.eachActiveState=function(e,t,r,n){r==null&&(r=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),v=r;vi*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/v,l?ys(l,n,o,"all"):u="none";else{var h=n[1]-n[0],p=o[1]*s/h;n=[jh(0,p-h/2)],n[1]=Kh(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},a}();function Ka(a,e){return Kh(jh(a,e[0]),e[1])}function wx(a,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*a,axisNameAvailableWidth:t,axisLabelShow:!0}}function Ax(a,e){var t=e.layoutLength,r=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,v;return a=0;n--)br(r[n])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var n=r[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=r.length;iIx}function ap(a){var e=a.length-1;return e<0&&(e=0),[a[0],a[e]]}function np(a,e,t,r){var n=new nt;return n.add(new Bt({name:"main",style:qs(t),silent:!0,draggable:!0,cursor:"move",drift:st(hv,a,e,n,["n","s","w","e"]),ondragend:st(wr,e,{isEnd:!0})})),D(r,function(i){n.add(new Bt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:st(hv,a,e,n,i),ondragend:st(wr,e,{isEnd:!0})}))}),n}function ip(a,e,t,r){var n=r.brushStyle.lineWidth||0,i=Fr(n,Mx),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,v=t[0][1],c=t[1][1],f=v-i+n/2,h=c-i+n/2,p=v-o,d=c-s,g=p+n,y=d+n;Ve(a,e,"main",o,s,p,d),r.transformable&&(Ve(a,e,"w",l,u,i,y),Ve(a,e,"e",f,u,i,y),Ve(a,e,"n",l,u,g,i),Ve(a,e,"s",l,h,g,i),Ve(a,e,"nw",l,u,i,i),Ve(a,e,"ne",f,u,i,i),Ve(a,e,"sw",l,h,i,i),Ve(a,e,"se",f,h,i,i))}function Ho(a,e){var t=e.__brushOption,r=t.transformable,n=e.childAt(0);n.useStyle(qs(t)),n.attr({silent:!r,cursor:r?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Wo(a,i[0]):Nx(a,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Ex[s]+"-resize":null})})}function Ve(a,e,t,r,n,i,o){var s=e.childOfName(t);s&&s.setShape(Gx(Ks(a,e,[[r,n],[r+i,n+o]])))}function qs(a){return ot({strokeNoScale:!0},a.brushStyle)}function op(a,e,t,r){var n=[Ta(a,t),Ta(e,r)],i=[Fr(a,t),Fr(e,r)];return[[n[0],i[0]],[n[1],i[1]]]}function Vx(a){return ua(a.group)}function Wo(a,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},n=Ef(t[e],Vx(a));return r[n]}function Nx(a,e){var t=[Wo(a,e[0]),Wo(a,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function hv(a,e,t,r,n,i){var o=t.__brushOption,s=a.toRectRange(o.range),l=sp(e,n,i);D(r,function(u){var v=Px[u];s[v[0]][v[1]]+=l[v[0]]}),o.range=a.fromRectRange(op(s[0][0],s[1][0],s[0][1],s[1][1])),Ys(e,t),wr(e,{isEnd:!1})}function zx(a,e,t,r){var n=e.__brushOption.range,i=sp(a,t,r);D(n,function(o){o[0]+=i[0],o[1]+=i[1]}),Ys(a,e),wr(a,{isEnd:!1})}function sp(a,e,t){var r=a.group,n=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Ks(a,e,t){var r=rp(a,e);return r&&r!==_r?r.clipPath(t,a._transform):pt(t)}function Gx(a){var e=Ta(a[0][0],a[1][0]),t=Ta(a[0][1],a[1][1]),r=Fr(a[0][0],a[1][0]),n=Fr(a[0][1],a[1][1]);return{x:e,y:t,width:r-e,height:n-t}}function Ox(a,e,t){if(!(!a._brushType||Fx(a,e.offsetX,e.offsetY))){var r=a._zr,n=a._covers,i=Xs(a,e,t);if(!a._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var ii={lineX:gv(0),lineY:gv(1),rect:{createCover:function(a,e){function t(r){return r}return np({toRectRange:t,fromRectRange:t},a,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(a){var e=ap(a);return op(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(a,e,t,r){ip(a,e,t,r)},updateCommon:Ho,contain:$o},polygon:{createCover:function(a,e){var t=new nt;return t.add(new Te({name:"main",style:qs(e),silent:!0})),t},getCreatingRange:function(a){return a},endCreating:function(a,e){e.remove(e.childAt(0)),e.add(new Ae({name:"main",draggable:!0,drift:st(zx,a,e),ondragend:st(wr,a,{isEnd:!0})}))},updateCoverShape:function(a,e,t,r){e.childAt(0).setShape({points:Ks(a,e,t)})},updateCommon:Ho,contain:$o}};function gv(a){return{createCover:function(e,t){return np({toRectRange:function(r){var n=[r,[0,100]];return a&&n.reverse(),n},fromRectRange:function(r){return r[a]}},e,t,[[["w"],["e"]],[["n"],["s"]]][a])},getCreatingRange:function(e){var t=ap(e),r=Ta(t[0][a],t[1][a]),n=Fr(t[0][a],t[1][a]);return[r,n]},updateCoverShape:function(e,t,r,n){var i,o=rp(e,t);if(o!==_r&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(a);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-a]]}var l=[r,i];a&&l.reverse(),ip(e,t,l,n)},updateCommon:Ho,contain:$o}}function up(a){return a=js(a),function(e){return Fg(e,a)}}function vp(a,e){return a=js(a),function(t){var r=e??t,n=r?a.width:a.height,i=r?a.x:a.y;return[i,i+(n||0)]}}function cp(a,e,t){var r=js(a);return function(n,i){return r.contain(i[0],i[1])&&!ei(n,e,t)}}function js(a){return Tt.create(a)}var Hx=["axisLine","axisTickLabel","axisName"],Wx=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){a.prototype.init.apply(this,arguments),(this._brushController=new $s(r.getZr())).on("brush",at(this._onBrush,this))},e.prototype.render=function(t,r,n,i){if(!Ux(t,r,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new nt,this.group.add(this._axisGroup),!!t.get("show")){var s=Yx(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),v=u.width,c=t.axis.dim,f=l.getAxisLayout(c),h=K({strokeContainThreshold:v},f),p=new mr(t,h);D(Hx,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,v,n),ms(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],v=Math.min(30,Math.abs(u)*.1),c=Tt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=v,c.width+=2*v,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:up(c),isTargetByCursor:cp(c,s,i),getLinearBrushOtherExtent:vp(c,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers($x(n))},e.prototype._onBrush=function(t){var r=t.areas,n=this.axisModel,i=n.axis,o=$(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(te);function Ux(a,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===a}function $x(a){var e=a.axis;return $(a.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Yx(a,e){return e.getComponent("parallel",a.get("parallelIndex"))}var Zx={type:"axisAreaSelect",event:"axisAreaSelected"};function Xx(a){a.registerAction(Zx,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),a.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qx={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function fp(a){a.registerComponentView(gx),a.registerComponentModel(mx),a.registerCoordinateSystem("parallel",Cx),a.registerPreprocessor(fx),a.registerComponentModel(Bo),a.registerComponentView(Wx),yn(a,"parallel",Bo,qx),Xx(a)}function Kx(a){it(fp),a.registerChartView(nx),a.registerSeriesModel(sx),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,cx)}var jx=function(){function a(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return a}(),Jx=function(a){V(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new jx},e.prototype.buildPath=function(t,r){var n=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+n,r.y2),t.bezierCurveTo(r.cpx2+n,r.cpy2,r.cpx1+n,r.cpy1,r.x1+n,r.y1)):(t.lineTo(r.x2,r.y2+n),t.bezierCurveTo(r.cpx2,r.cpy2+n,r.cpx1,r.cpy1+n,r.x1,r.y1+n)),t.closePath()},e.prototype.highlight=function(){ga(this)},e.prototype.downplay=function(){ya(this)},e}(Wt),Qx=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,v=l.height,c=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new Jx,g=ht(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),S=y.getModel("lineStyle"),m=S.get("curveness"),x=p.node1.getLayout(),b=p.node1.getModel(),_=b.get("localX"),w=b.get("localY"),A=p.node2.getLayout(),T=p.node2.getModel(),C=T.get("localX"),L=T.get("localY"),M=p.getLayout(),I,P,E,R,k,N,F,H;d.shape.extent=Math.max(1,M.dy),d.shape.orient=h,h==="vertical"?(I=(_!=null?_*u:x.x)+M.sy,P=(w!=null?w*v:x.y)+x.dy,E=(C!=null?C*u:A.x)+M.ty,R=L!=null?L*v:A.y,k=I,N=P*(1-m)+R*m,F=E,H=P*m+R*(1-m)):(I=(_!=null?_*u:x.x)+x.dx,P=(w!=null?w*v:x.y)+M.sy,E=C!=null?C*u:A.x,R=(L!=null?L*v:A.y)+M.ty,k=I*(1-m)+E*m,N=P,F=I*m+E*(1-m),H=R),d.setShape({x1:I,y1:P,x2:E,y2:R,cpx1:k,cpy1:N,cpx2:F,cpy2:H}),d.useStyle(S.getItemStyle()),yv(d.style,h,p);var X=""+y.get("value"),j=Qt(y,"edgeLabel");ue(d,j,{labelFetcher:{getFormattedLabel:function(O,G,J,Y,W,Q){return t.getFormattedLabel(O,G,"edge",Y,Ur(W,j.normal&&j.normal.get("formatter"),X),Q)}},labelDataIndex:p.dataIndex,defaultText:X}),d.setTextConfig({position:"inside"});var rt=y.getModel("emphasis");ae(d,y,"lineStyle",function(O){var G=O.getItemStyle();return yv(G,h,p),G}),s.add(d),f.setItemGraphicEl(p.dataIndex,d);var tt=rt.get("focus");Et(d,tt==="adjacency"?p.getAdjacentDataIndices():tt==="trajectory"?p.getTrajectoryDataIndices():tt,rt.get("blurScope"),rt.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),S=g.get("localY"),m=g.getModel("emphasis"),x=g.get(["itemStyle","borderRadius"])||0,b=new Bt({shape:{x:y!=null?y*u:d.x,y:S!=null?S*v:d.y,width:d.dx,height:d.dy,r:x},style:g.getModel("itemStyle").getItemStyle(),z2:10});ue(b,Qt(g),{labelFetcher:{getFormattedLabel:function(w,A){return t.getFormattedLabel(w,A,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),b.disableLabelAnimation=!0,b.setStyle("fill",p.getVisual("color")),b.setStyle("decal",p.getVisual("style").decal),ae(b,g),s.add(b),c.setItemGraphicEl(p.dataIndex,b),ht(b).dataType="node";var _=m.get("focus");Et(b,_==="adjacency"?p.getAdjacentDataIndices():_==="trajectory"?p.getTrajectoryDataIndices():_,m.get("blurScope"),m.get("disabled"))}),c.eachItemGraphicEl(function(p,d){var g=c.getItemModel(d);g.get("draggable")&&(p.drift=function(y,S){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=S,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/v})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(tb(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(kt);function yv(a,e,t){switch(a.fill){case"source":a.fill=t.node1.getVisual("color"),a.decal=t.node1.getVisual("style").decal;break;case"target":a.fill=t.node2.getVisual("color"),a.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),n=t.node2.getVisual("color");lt(r)&<(n)&&(a.fill=new vs(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:n,offset:1}]))}}function tb(a,e,t){var r=new Bt({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return Ut(r,{shape:{width:a.width+20}},e,t),r}var eb=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new ce(o[l],this,r));var u=Xh(i,n,this,!0,v);return u.data;function v(c,f){c.wrapMethod("getItemModel",function(h,p){var d=h.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,S=d.levelModels[y];S&&(h.parentModel=S)}return h}),f.wrapMethod("getItemModel",function(h,p){var d=h.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var S=y.depth,m=d.levelModels[S];m&&(h.parentModel=m)}return h})}},e.prototype.setNodePosition=function(t,r){var n=this.option.data||this.option.nodes,i=n[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,n){function i(h){return isNaN(h)||h==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ne("nameValue",{name:u,value:l,noValue:i(l)})}else{var v=this.getGraph().getNodeByIndex(t),c=v.getLayout().value,f=this.getDataParams(t,n).data.name;return ne("nameValue",{name:f!=null?f+"":null,value:c,noValue:i(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var n=a.prototype.getDataParams.call(this,t,r);if(n.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Ft);function rb(a,e){a.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),n=t.get("nodeGap"),i=ab(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,v=l.edges;ib(u);var c=Gt(u,function(d){return d.getLayout().value===0}),f=c.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");nb(u,v,r,n,o,s,f,h,p)})}function ab(a,e){return fe(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function nb(a,e,t,r,n,i,o,s,l){ob(a,e,t,n,i,s,l),vb(a,e,i,n,r,o,s),Sb(a,s)}function ib(a){D(a,function(e){var t=Je(e.outEdges,Ln),r=Je(e.inEdges,Ln),n=e.getValue()||0,i=Math.max(t,r,n);e.setLayout({value:i},!0)})}function ob(a,e,t,r,n,i,o){for(var s=[],l=[],u=[],v=[],c=0,f=0;f=0;y&&g.depth>h&&(h=g.depth),d.setLayout({depth:y?g.depth:c},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var S=0;Sc-1?h:c-1;o&&o!=="left"&&sb(a,o,i,w);var A=i==="vertical"?(n-t)/w:(r-t)/w;ub(a,A,i)}function hp(a){var e=a.hostGraph.data.getRawDataItem(a.dataIndex);return e.depth!=null&&e.depth>=0}function sb(a,e,t,r){if(e==="right"){for(var n=[],i=a,o=0;i.length;){for(var s=0;s0;i--)l*=.99,hb(s,l,o),Xi(s,n,t,r,o),mb(s,l,o),Xi(s,n,t,r,o)}function cb(a,e){var t=[],r=e==="vertical"?"y":"x",n=wo(a,function(i){return i.getLayout()[r]});return n.keys.sort(function(i,o){return i-o}),D(n.keys,function(i){t.push(n.buckets.get(i))}),t}function fb(a,e,t,r,n,i){var o=1/0;D(a,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var v=i==="vertical"?(r-(l-1)*n)/u:(t-(l-1)*n)/u;v0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[i]+l.getLayout()[f]+e;var p=n==="vertical"?r:t;if(u=v-e-p,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),v=s;for(var h=c-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-v,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[i]}})}function hb(a,e,t){D(a.slice().reverse(),function(r){D(r,function(n){if(n.outEdges.length){var i=Je(n.outEdges,pb,t)/Je(n.outEdges,Ln);if(isNaN(i)){var o=n.outEdges.length;i=o?Je(n.outEdges,db,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-tr(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-tr(n,t))*e;n.setLayout({y:l},!0)}}})})}function pb(a,e){return tr(a.node2,e)*a.getValue()}function db(a,e){return tr(a.node2,e)}function gb(a,e){return tr(a.node1,e)*a.getValue()}function yb(a,e){return tr(a.node1,e)}function tr(a,e){return e==="vertical"?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function Ln(a){return a.getValue()}function Je(a,e,t){for(var r=0,n=a.length,i=-1;++io&&(o=l)}),D(r,function(s){var l=new Ot({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),v=s.getModel().get(["itemStyle","color"]);v!=null?(s.setVisual("color",v),s.setVisual("style",{fill:v})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&D(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function bb(a){a.registerChartView(Qx),a.registerSeriesModel(eb),a.registerLayout(rb),a.registerVisual(xb),a.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var pp=function(){function a(){}return a.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},a.prototype.getInitialData=function(e,t){var r,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],v=e.layout==="horizontal"?0:1,c=this._baseAxisDim=u[v],f=u[1-v],h=[n,i],p=h[v].get("type"),d=h[1-v].get("type"),g=e.data;if(g&&l){var y=[];D(g,function(x,b){var _;q(x)?(_=x.slice(),x.unshift(b)):q(x.value)?(_=K({},x),_.value=_.value.slice(),x.value.unshift(b)):_=x,y.push(_)}),e.data=y}var S=this.defaultValueDimensions,m=[{name:c,type:Ao(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:Ao(d),dimsDef:S.slice()}];return Xr(this,{coordDimensions:m,dimensionsCount:S.length+1,encodeDefaulter:st(Hg,m,this)})},a.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},a}(),dp=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Ft);Ce(dp,pp,!0);var _b=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var v=i.getItemLayout(u),c=mv(v,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,v){var c=s.getItemGraphicEl(v);if(!i.hasValue(u)){o.remove(c);return}var f=i.getItemLayout(u);c?(Fe(c),gp(f,c,i,u)):c=mv(f,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var v=s.getItemGraphicEl(u);v&&o.remove(v)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(kt),wb=function(){function a(){}return a}(),Ab=function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new wb},e.prototype.buildPath=function(t,r){var n=r.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();id){var x=[y,m];r.push(x)}}}return{boxData:t,outliers:r}}var Pb={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Rf){var r="";It(r)}var n=Mb(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function Eb(a){a.registerSeriesModel(dp),a.registerChartView(_b),a.registerLayout(Cb),a.registerTransform(Pb)}var Rb=["itemStyle","borderColor"],kb=["itemStyle","borderColor0"],Vb=["itemStyle","borderColorDoji"],Nb=["itemStyle","color"],zb=["itemStyle","color0"];function Js(a,e){return e.get(a>0?Nb:zb)}function Qs(a,e){return e.get(a===0?Vb:a>0?Rb:kb)}var Gb={seriesType:"candlestick",plan:Ss(),performRawSeries:!0,reset:function(a,e){if(!e.isSeriesFiltered(a)){var t=a.pipelineContext.large;return!t&&{progress:function(r,n){for(var i;(i=r.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=Js(s,o),l.stroke=Qs(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");K(u,l)}}}}}},Ob=["color","borderColor"],Bb=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){qn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),n=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(n).add(function(v){if(r.hasValue(v)){var c=r.getItemLayout(v);if(s&&Sv(u,c))return;var f=qi(c,v,!0);Ut(f,{shape:{points:c.ends}},t,v),Ki(f,r,v,o),i.add(f),r.setItemGraphicEl(v,f)}}).update(function(v,c){var f=n.getItemGraphicEl(c);if(!r.hasValue(v)){i.remove(f);return}var h=r.getItemLayout(v);if(s&&Sv(u,h)){i.remove(f);return}f?(xt(f,{shape:{points:h.ends}},t,v),Fe(f)):f=qi(h),Ki(f,r,v,o),i.add(f),r.setItemGraphicEl(v,f)}).remove(function(v){var c=n.getItemGraphicEl(v);c&&i.remove(c)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),xv(t,this.group);var r=t.get("clip",!0)?Kn(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var n=r.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=qi(s);Ki(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){xv(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(kt),Fb=function(){function a(){}return a}(),Hb=function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Fb},e.prototype.buildPath=function(t,r){var n=r.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(Wt);function qi(a,e,t){var r=a.ends;return new Hb({shape:{points:t?Wb(r,a):r},z2:100})}function Sv(a,e){for(var t=!0,r=0;rb?L[i]:C[i],ends:P,brushRect:F(_,w,m)})}function k(X,j){var rt=[];return rt[n]=j,rt[i]=X,isNaN(j)||isNaN(X)?[NaN,NaN]:e.dataToPoint(rt)}function N(X,j,rt){var tt=j.slice(),O=j.slice();tt[n]=di(tt[n]+r/2,1,!1),O[n]=di(O[n]-r/2,1,!0),rt?X.push(tt,O):X.push(O,tt)}function F(X,j,rt){var tt=k(X,rt),O=k(j,rt);return tt[n]-=r/2,O[n]-=r/2,{x:tt[0],y:tt[1],width:r,height:O[1]-tt[1]}}function H(X){return X[n]=di(X[n],1),X}}function p(d,g){for(var y=Wg(d.count*4),S=0,m,x=[],b=[],_,w=g.getStore(),A=!!a.get(["itemStyle","borderColorDoji"]);(_=d.next())!=null;){var T=w.get(s,_),C=w.get(u,_),L=w.get(v,_),M=w.get(c,_),I=w.get(f,_);if(isNaN(T)||isNaN(M)||isNaN(I)){y[S++]=NaN,S+=3;continue}y[S++]=bv(w,_,C,L,v,A),x[n]=T,x[i]=M,m=e.dataToPoint(x,null,b),y[S++]=m?m[0]:NaN,y[S++]=m?m[1]:NaN,x[i]=I,m=e.dataToPoint(x,null,b),y[S++]=m?m[1]:NaN}g.setLayout("largePoints",y)}}};function bv(a,e,t,r,n,i){var o;return t>r?o=-1:t0?a.get(n,e-1)<=r?1:-1:1,o}function Zb(a,e){var t=a.getBaseAxis(),r,n=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=U(Rt(a.get("barMaxWidth"),n),n),o=U(Rt(a.get("barMinWidth"),1),n),s=a.get("barWidth");return s!=null?U(s,n):Math.max(Math.min(n/2,i),o)}function Xb(a){a.registerChartView(Bb),a.registerSeriesModel(yp),a.registerPreprocessor($b),a.registerVisual(Gb),a.registerLayout(Yb)}function _v(a,e){var t=e.rippleEffectColor||e.color;a.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var qb=function(a){V(e,a);function e(t,r){var n=a.call(this)||this,i=new Cf(t,r),o=new nt;return n.add(i),n.add(o),n.updateData(t,r),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/v*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;gt(c)?f=c(n):f=c,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,n,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return dr(t.__p1,t.__cp1)+dr(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,n){this.childAt(0).updateData(t,r,n),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=If,v=$g;s[0]=u(r[0],i[0],n[0],o),s[1]=u(r[1],i[1],n[1],o);var c=t.__t<1?v(r[0],i[0],n[0],o):v(n[0],i[0],r[0],1-o),f=t.__t<1?v(r[1],i[1],n[1],o):v(n[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var v=(r-i[l])/(i[l+1]-i[l]),c=n[l],f=n[l+1];t.x=c[0]*(1-v)+v*f[0],t.y=c[1]*(1-v)+v*f[1];var h=t.__t<1?f[0]-c[0]:c[0]-f[0],p=t.__t<1?f[1]-c[1]:c[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(mp),t_=function(){function a(){this.polyline=!1,this.curveness=0,this.segs=[]}return a}(),e_=function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new t_},e.prototype.buildPath=function(t,r){var n=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0){var h=(u+c)/2-(v-f)*i,p=(v+f)/2-(c-u)*i;t.quadraticCurveTo(h,p,c,f)}else t.lineTo(c,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var c=i[u++],f=i[u++],h=1;h0){var g=(c+p)/2-(f-d)*o,y=(f+d)/2-(p-c)*o;if(Yg(c,f,g,y,p,d,s,t,r))return l}else if(Rl(c,f,p,d,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var n=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=n[0],r=n[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,n=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}(),xp={seriesType:"lines",plan:Ss(),reset:function(a){var e=a.coordinateSystem;if(e){var t=a.get("polyline"),r=a.pipelineContext.large;return{progress:function(n,i){var o=[];if(r){var s=void 0,l=n.end-n.start;if(t){for(var u=0,v=n.start;v0&&(v||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=t.get("clip",!0)&&Kn(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,r,n){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=xp.reset(t,r,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,r){var n=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new r_:new Us(o?i?Qb:Sp:i?mp:Ws),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),n=r.painter.getType()==="svg";!n&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(kt),n_=typeof Uint32Array>"u"?Array:Uint32Array,i_=typeof Float64Array>"u"?Array:Float64Array;function wv(a){var e=a.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(a.data=$(e,function(t){var r=[t[0].coord,t[1].coord],n={coords:r};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),hs([n,t[0],t[1]])}))}var o_=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],wv(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),a.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(wv(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}a.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=fn(this._flatCoords,r.flatCoords),this._flatCoordsOffset=fn(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),n=r.option instanceof Array?r.option:r.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Ft);function ja(a){return a instanceof Array||(a=[a,a]),a}var s_={seriesType:"lines",reset:function(a){var e=ja(a.get("symbol")),t=ja(a.get("symbolSize")),r=a.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=ja(s.getShallow("symbol",!0)),u=ja(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?n:null}}};function l_(a){a.registerChartView(a_),a.registerSeriesModel(o_),a.registerLayout(xp),a.registerVisual(s_)}var u_=256,v_=function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=kl.createCanvas();this.canvas=e}return a.prototype.update=function(e,t,r,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),v=this.pointSize+this.blurSize,c=this.canvas,f=c.getContext("2d"),h=e.length;c.width=t,c.height=r;for(var p=0;p0){var M=o(m)?l:u;m>0&&(m=m*C+A),b[_++]=M[L],b[_++]=M[L+1],b[_++]=M[L+2],b[_++]=M[L+3]*m*256}else _+=4}return f.putImageData(x,0,0),c},a.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=kl.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var n=e.getContext("2d");return n.clearRect(0,0,r,r),n.shadowOffsetX=r,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},a.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,n=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},a}();function c_(a,e,t){var r=a[1]-a[0];e=$(e,function(o){return{interval:[(o.interval[0]-a[0])/r,(o.interval[1]-a[0])/r]}});var n=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function Av(a){var e=a.dimensions;return e[0]==="lng"&&e[1]==="lat"}var h_=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):Av(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,r,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,n,i){var o=r.coordinateSystem;o&&(Av(o)?this.render(r,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){qn(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,n,i,o){var s=t.coordinateSystem,l=jn(s,"cartesian2d"),u,v,c,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,v=p.getBandWidth()+.5,c=h.scale.getExtent(),f=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),S=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),b=Qt(t),_=t.getModel("emphasis"),w=_.get("focus"),A=_.get("blurScope"),T=_.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],L=n;Lc[1]||Ef[1])continue;var R=s.dataToPoint([P,E]);M=new Bt({shape:{x:R[0]-u/2,y:R[1]-v/2,width:u,height:v},style:I})}else{if(isNaN(g.get(C[1],L)))continue;M=new Bt({z2:1,shape:s.dataToRect([g.get(C[0],L)]).contentShape,style:I})}if(g.hasItemOption){var k=g.getItemModel(L),N=k.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),S=k.getModel(["blur","itemStyle"]).getItemStyle(),m=k.getModel(["select","itemStyle"]).getItemStyle(),x=k.get(["itemStyle","borderRadius"]),w=N.get("focus"),A=N.get("blurScope"),T=N.get("disabled"),b=Qt(k)}M.shape.r=x;var F=t.getRawValue(L),H="-";F&&F[2]!=null&&(H=F[2]+""),ue(M,b,{labelFetcher:t,labelDataIndex:L,defaultOpacity:I.opacity,defaultText:H}),M.ensureState("emphasis").style=y,M.ensureState("blur").style=S,M.ensureState("select").style=m,Et(M,w,A,T),M.incremental=o,o&&(M.states.emphasis.hoverLayer=!0),d.add(M),g.setItemGraphicEl(L,M),this._progressiveEls&&this._progressiveEls.push(M)}},e.prototype._renderOnGeo=function(t,r,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new v_;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var v=t.getViewRect().clone(),c=t.getRoamTransform();v.applyTransform(c);var f=Math.max(v.x,0),h=Math.max(v.y,0),p=Math.min(v.width+v.x,i.getWidth()),d=Math.min(v.height+v.y,i.getHeight()),g=p-f,y=d-h,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],m=l.mapArray(S,function(w,A,T){var C=t.dataToPoint([w,A]);return C[0]-=f,C[1]-=h,C.push(T),C}),x=n.getExtent(),b=n.type==="visualMap.continuous"?f_(x,n.option.range):c_(x,n.getPieceList(),n.option.selected);u.update(m,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var _=new Re({style:{width:g,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(kt),p_=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return $r(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Mf.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Ft);function d_(a){a.registerChartView(h_),a.registerSeriesModel(p_)}var g_=["itemStyle","borderWidth"],Tv=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Qi=new Ma,y_=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),v=u.isHorizontal(),c=l.master.getRect(),f={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:v,valueDim:Tv[+v],categoryDim:Tv[1-+v]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=Dv(o,p),g=Cv(o,p,d,f),y=Lv(o,f,g);o.setItemGraphicEl(p,y),i.add(y),Mv(y,f,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=Dv(o,p),S=Cv(o,p,y,f),m=Cp(o,S);g&&m!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?A_(g,f,S):g=Lv(o,f,S,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=S,i.add(g),Mv(g,f,S)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&Iv(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=t.get("clip",!0)?Kn(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,r){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){Iv(i,ht(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(kt);function Cv(a,e,t,r){var n=a.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,v=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),f={dataIndex:e,layout:n,itemModel:t,symbolType:a.getItemVisual(e,"symbol")||"circle",style:a.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:v,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};m_(t,i,n,r,f),S_(a,e,n,i,o,f.boundingLength,f.pxSign,v,r,f),x_(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=Ra(t.get("symbolOffset"),h);return b_(t,h,n,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function m_(a,e,t,r,n){var i=r.valueDim,o=a.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),v;if(q(o)){var c=[to(s,o[0])-l,to(s,o[1])-l];c[1]=0?1:-1:v>0?1:-1}function to(a,e){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(e)))}function S_(a,e,t,r,n,i,o,s,l,u){var v=l.valueDim,c=l.categoryDim,f=Math.abs(t[c.wh]),h=a.getItemVisual(e,"symbolSize"),p;q(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[c.index]=U(p[c.index],f),p[v.index]=U(p[v.index],r?f:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[v.index]*=(l.isHorizontal?-1:1)*o}function x_(a,e,t,r,n){var i=a.get(g_)||0;i&&(Qi.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Qi.updateTransform(),i/=Qi.getLineScale(),i*=e[r.valueDim.index]),n.valueLineWidth=i||0}function b_(a,e,t,r,n,i,o,s,l,u,v,c){var f=v.categoryDim,h=v.valueDim,p=c.pxSign,d=Math.max(e[h.index]+s,0),g=d;if(r){var y=Math.abs(l),S=se(a.get("symbolMargin"),"15%")+"",m=!1;S.lastIndexOf("!")===S.length-1&&(m=!0,S=S.slice(0,S.length-1));var x=U(S,e[h.index]),b=Math.max(d+x*2,0),_=m?0:x*2,w=Zg(r),A=w?r:Pv((y+_)/b),T=y-A*d;x=T/2/(m?A:Math.max(A-1,1)),b=d+x*2,_=m?0:x*2,!w&&r!=="fixed"&&(A=u?Pv((Math.abs(u)+_)/b):0),g=A*b-_,c.repeatTimes=A,c.symbolMargin=x}var C=p*(g/2),L=c.pathPosition=[];L[f.index]=t[f.wh]/2,L[h.index]=o==="start"?C:o==="end"?l-C:l/2,i&&(L[0]+=i[0],L[1]+=i[1]);var M=c.bundlePosition=[];M[f.index]=t[f.xy],M[h.index]=t[h.xy];var I=c.barRectShape=K({},t);I[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(L[h.index]+C)),I[f.wh]=t[f.wh];var P=c.clipShape={};P[f.xy]=-t[f.xy],P[f.wh]=v.ecSize[f.wh],P[h.xy]=0,P[h.wh]=t[h.wh]}function bp(a){var e=a.symbolPatternSize,t=ve(a.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function _p(a,e,t,r){var n=a.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,v=0,c=i[e.valueDim.index]+o+t.symbolMargin*2;for(tl(a,function(d){d.__pictorialAnimationIndex=v,d.__pictorialRepeatTimes=u,v0:y<0)&&(S=u-1-d),g[l.index]=c*(S-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function wp(a,e,t,r){var n=a.__pictorialBundle,i=a.__pictorialMainPath;i?Or(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=a.__pictorialMainPath=bp(t),n.add(i),Or(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Ap(a,e,t){var r=K({},e.barRectShape),n=a.__pictorialBarRect;n?Or(n,null,{shape:r},e,t):(n=a.__pictorialBarRect=new Bt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,a.add(n))}function Tp(a,e,t,r){if(t.symbolClip){var n=a.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)xt(n,{shape:i},s,l);else{i[o.wh]=0,n=new Bt({shape:i}),a.__pictorialBundle.setClipPath(n),a.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],Yr[r?"updateProps":"initProps"](n,{shape:u},s,l)}}}function Dv(a,e){var t=a.getItemModel(e);return t.getAnimationDelayParams=__,t.isAnimationEnabled=w_,t}function __(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function w_(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Lv(a,e,t,r){var n=new nt,i=new nt;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?_p(n,e,t):wp(n,e,t),Ap(n,t,r),Tp(n,e,t,r),n.__pictorialShapeStr=Cp(a,t),n.__pictorialSymbolMeta=t,n}function A_(a,e,t){var r=t.animationModel,n=t.dataIndex,i=a.__pictorialBundle;xt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,n),t.symbolRepeat?_p(a,e,t,!0):wp(a,e,t,!0),Ap(a,t,!0),Tp(a,e,t,!0)}function Iv(a,e,t,r){var n=r.__pictorialBarRect;n&&n.removeTextContent();var i=[];tl(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),D(i,function(o){hn(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),a.setItemGraphicEl(e,null)}function Cp(a,e){return[a.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function tl(a,e,t){D(a.__pictorialBundle.children(),function(r){r!==a.__pictorialBarRect&&e.call(t,r)})}function Or(a,e,t,r,n,i){e&&a.attr(e),r.symbolClip&&!n?t&&a.attr(t):t&&Yr[n?"updateProps":"initProps"](a,t,r.animationModel,r.dataIndex,i)}function Mv(a,e,t){var r=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),v=i.get("focus"),c=i.get("blurScope"),f=i.get("scale");tl(a,function(d){if(d instanceof Re){var g=d.style;d.useStyle(K({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,f&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=a.__pictorialBarRect;p.ignoreClip=!0,ue(p,Qt(n),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:To(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),Et(a,v,c,i.get("disabled"))}function Pv(a){var e=Math.round(a);return Math.abs(a-e)<1e-4?e:Math.ceil(a)}var T_=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,a.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Jn(Vl.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Vl);function C_(a){a.registerChartView(y_),a.registerSeriesModel(T_),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,st(Xg,"pictorialBar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qg("pictorialBar"))}var D_=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),v=u.rect,c=u.boundaryGap;s.x=0,s.y=v.y+c[0];function f(g){return g.name}var h=new Qe(this._layersSeries||[],l,f,f),p=[];h.add(at(d,this,"add")).update(at(d,this,"update")).remove(at(d,this,"remove")).execute();function d(g,y,S){var m=o._layers;if(g==="remove"){s.remove(m[y]);return}for(var x=[],b=[],_,w=l[y].indices,A=0;Ai&&(i=s),r.push(s)}for(var u=0;ui&&(i=c)}return{y0:n,max:i}}function E_(a){a.registerChartView(D_),a.registerSeriesModel(I_),a.registerLayout(M_),a.registerProcessor(Na("themeRiver"))}var R_=2,k_=4,Rv=function(a){V(e,a);function e(t,r,n,i){var o=a.call(this)||this;o.z2=R_,o.textConfig={inside:!0},ht(o).seriesIndex=r.seriesIndex;var s=new St({z2:k_,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,n,i),o}return e.prototype.updateData=function(t,r,n,i,o){this.node=r,r.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ht(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),v=r.getLayout(),c=K({},v);c.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=cs(h,o));var p=Vr(l.getModel("itemStyle"),c,!0);K(c,p),D(ha,function(S){var m=s.ensureState(S),x=l.getModel([S,"itemStyle"]);m.style=x.getItemStyle();var b=Vr(x,c);b&&(m.shape=b)}),t?(s.setShape(c),s.shape.r=v.r0,Ut(s,{shape:{r:v.r}},n,r.dataIndex)):(xt(s,{shape:c},n),Fe(s)),s.useStyle(f),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?fn(r.getAncestorsIndices(),r.getDescendantIndices()):g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;Et(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),v=Math.sin(l),c=this,f=c.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)P&&!jg(R-P)&&R0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,t,r,n):(o.virtualPiece=new Rv(S,t,r,n),v.add(o.virtualPiece)),m.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(m.parentNode)})):o.virtualPiece&&(v.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var v=l.get("target",!0)||"_blank";pn(u,v)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Yo,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var n=r.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(kt),G_=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var n={name:t.name,children:t.data};Dp(n);var i=this._levelModels=$(t.levels||[],function(l){return new ce(l,this,r)},this),o=zs.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,v){var c=o.getNodeByDataIndex(v),f=i[c.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=ai(n,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Eh(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Ft);function Dp(a){var e=0;D(a.children,function(r){Dp(r);var n=r.value;q(n)&&(n=n[0]),e+=n});var t=a.value;q(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),q(a.value)?a.value[0]=t:a.value=t}var Vv=Math.PI/180;function O_(a,e,t){e.eachSeriesByType(a,function(r){var n=r.get("center"),i=r.get("radius");q(i)||(i=[0,i]),q(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=U(n[0],o),v=U(n[1],s),c=U(i[0],l/2),f=U(i[1],l/2),h=-r.get("startAngle")*Vv,p=r.get("minAngle")*Vv,d=r.getData().tree.root,g=r.getViewRoot(),y=g.depth,S=r.get("sort");S!=null&&Lp(g,S);var m=0;D(g.children,function(R){!isNaN(R.getValue())&&m++});var x=g.getValue(),b=Math.PI/(x||m)*2,_=g.depth>0,w=g.height-(_?-1:1),A=(f-c)/(w||1),T=r.get("clockwise"),C=r.get("stillShowZeroSum"),L=T?1:-1,M=function(R,k){if(R){var N=k;if(R!==d){var F=R.getValue(),H=x===0&&C?b:F*b;H1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&<(s)&&(s=Jg(s,(r.depth-1)/(i-1)*.5)),s}a.eachSeriesByType("sunburst",function(r){var n=r.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function H_(a){a.registerChartView(z_),a.registerSeriesModel(G_),a.registerLayout(st(O_,"sunburst")),a.registerProcessor(st(Na,"sunburst")),a.registerVisual(F_),N_(a)}var Nv={color:"fill",borderColor:"stroke"},W_={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ge=Dt(),U_=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return $r(null,this)},e.prototype.getDataParams=function(t,r,n){var i=a.prototype.getDataParams.call(this,t,r);return n&&(i.info=Ge(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ft);function $_(a,e){return e=e||[0,0],$(["x","y"],function(t,r){var n=this.getAxis(t),i=e[r],o=a[r]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function Y_(a){var e=a.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:at($_,a)}}}function Z_(a,e){return e=e||[0,0],$([0,1],function(t){var r=e[t],n=a[t]/2,i=[],o=[];return i[t]=r-n,o[t]=r+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function X_(a){var e=a.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:a.getZoom()},api:{coord:function(t){return a.dataToPoint(t)},size:at(Z_,a)}}}function q_(a,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,n=(a instanceof Array?a[0]:a)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-n)-t.dataToCoord(r+n))}function K_(a){var e=a.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:at(q_,a)}}}function j_(a,e){return e=e||[0,0],$(["Radius","Angle"],function(t,r){var n="get"+t+"Axis",i=this[n](),o=e[r],s=a[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function J_(a){var e=a.getRadiusAxis(),t=a.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:r[1],r0:r[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=a.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:at(j_,a)}}}function Q_(a){var e=a.getRect(),t=a.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,n){return a.dataToPoint(r,n)}}}}function Ip(a,e,t,r){return a&&(a.legacy||a.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||Z(a,"text")))}function Mp(a,e,t){var r=a,n,i,o;if(e==="text")o=r;else{o={},Z(r,"text")&&(o.text=r.text),Z(r,"rich")&&(o.rich=r.rich),Z(r,"textFill")&&(o.fill=r.textFill),Z(r,"textStroke")&&(o.stroke=r.textStroke),Z(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Z(r,"fontSize")&&(o.fontSize=r.fontSize),Z(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Z(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Z(r,"textPosition");t?n.position=s?r.textPosition:"inside":s&&(n.position=r.textPosition),Z(r,"textPosition")&&(n.position=r.textPosition),Z(r,"textOffset")&&(n.offset=r.textOffset),Z(r,"textRotation")&&(n.rotation=r.textRotation),Z(r,"textDistance")&&(n.distance=r.textDistance)}return zv(o,a),D(o.rich,function(l){zv(l,l)}),{textConfig:n,textContent:i}}function zv(a,e){e&&(e.font=e.textFont||e.font,Z(e,"textStrokeWidth")&&(a.lineWidth=e.textStrokeWidth),Z(e,"textAlign")&&(a.align=e.textAlign),Z(e,"textVerticalAlign")&&(a.verticalAlign=e.textVerticalAlign),Z(e,"textLineHeight")&&(a.lineHeight=e.textLineHeight),Z(e,"textWidth")&&(a.width=e.textWidth),Z(e,"textHeight")&&(a.height=e.textHeight),Z(e,"textBackgroundColor")&&(a.backgroundColor=e.textBackgroundColor),Z(e,"textPadding")&&(a.padding=e.textPadding),Z(e,"textBorderColor")&&(a.borderColor=e.textBorderColor),Z(e,"textBorderWidth")&&(a.borderWidth=e.textBorderWidth),Z(e,"textBorderRadius")&&(a.borderRadius=e.textBorderRadius),Z(e,"textBoxShadowColor")&&(a.shadowColor=e.textBoxShadowColor),Z(e,"textBoxShadowBlur")&&(a.shadowBlur=e.textBoxShadowBlur),Z(e,"textBoxShadowOffsetX")&&(a.shadowOffsetX=e.textBoxShadowOffsetX),Z(e,"textBoxShadowOffsetY")&&(a.shadowOffsetY=e.textBoxShadowOffsetY))}function Gv(a,e,t){var r=a;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var n=r.textPosition.indexOf("inside")>=0,i=a.fill||"#000";Ov(r,e);var o=r.textFill==null;return n?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=a.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,D(e.rich,function(s){Ov(s,s)}),r}function Ov(a,e){e&&(Z(e,"fill")&&(a.textFill=e.fill),Z(e,"stroke")&&(a.textStroke=e.fill),Z(e,"lineWidth")&&(a.textStrokeWidth=e.lineWidth),Z(e,"font")&&(a.font=e.font),Z(e,"fontStyle")&&(a.fontStyle=e.fontStyle),Z(e,"fontWeight")&&(a.fontWeight=e.fontWeight),Z(e,"fontSize")&&(a.fontSize=e.fontSize),Z(e,"fontFamily")&&(a.fontFamily=e.fontFamily),Z(e,"align")&&(a.textAlign=e.align),Z(e,"verticalAlign")&&(a.textVerticalAlign=e.verticalAlign),Z(e,"lineHeight")&&(a.textLineHeight=e.lineHeight),Z(e,"width")&&(a.textWidth=e.width),Z(e,"height")&&(a.textHeight=e.height),Z(e,"backgroundColor")&&(a.textBackgroundColor=e.backgroundColor),Z(e,"padding")&&(a.textPadding=e.padding),Z(e,"borderColor")&&(a.textBorderColor=e.borderColor),Z(e,"borderWidth")&&(a.textBorderWidth=e.borderWidth),Z(e,"borderRadius")&&(a.textBorderRadius=e.borderRadius),Z(e,"shadowColor")&&(a.textBoxShadowColor=e.shadowColor),Z(e,"shadowBlur")&&(a.textBoxShadowBlur=e.shadowBlur),Z(e,"shadowOffsetX")&&(a.textBoxShadowOffsetX=e.shadowOffsetX),Z(e,"shadowOffsetY")&&(a.textBoxShadowOffsetY=e.shadowOffsetY),Z(e,"textShadowColor")&&(a.textShadowColor=e.textShadowColor),Z(e,"textShadowBlur")&&(a.textShadowBlur=e.textShadowBlur),Z(e,"textShadowOffsetX")&&(a.textShadowOffsetX=e.textShadowOffsetX),Z(e,"textShadowOffsetY")&&(a.textShadowOffsetY=e.textShadowOffsetY))}var Pp={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Bv=Mt(Pp);Af(ma,function(a,e){return a[e]=1,a},{});ma.join(", ");var In=["","style","shape","extra"],Hr=Dt();function el(a,e,t,r,n){var i=a+"Animation",o=ka(a,r,n)||{},s=Hr(e).userDuring;return o.duration>0&&(o.during=s?at(nw,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=a),K(o,t[i]),o}function ln(a,e,t,r){r=r||{};var n=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Hr(a),u=e.style;l.userDuring=e.during;var v={},c={};if(ow(a,e,c),Hv("shape",e,c),Hv("extra",e,c),!i&&s&&(iw(a,e,v),Fv("shape",a,e,v),Fv("extra",a,e,v),sw(a,e,u,v)),c.style=u,tw(a,c,o),rw(a,e),s)if(i){var f={};D(In,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,d.enterFrom))});var h=el("enter",a,e,t,n);h.duration>0&&a.animateFrom(f,h)}else ew(a,e,n||0,t,v);Ep(a,e),u?a.dirty():a.markRedraw()}function Ep(a,e){for(var t=Hr(a).leaveToProps,r=0;r0&&a.animateFrom(n,i)}}function rw(a,e){Z(e,"silent")&&(a.silent=e.silent),Z(e,"ignore")&&(a.ignore=e.ignore),a instanceof xr&&Z(e,"invisible")&&(a.invisible=e.invisible),a instanceof Wt&&Z(e,"autoBatch")&&(a.autoBatch=e.autoBatch)}var Le={},aw={setTransform:function(a,e){return Le.el[a]=e,this},getTransform:function(a){return Le.el[a]},setShape:function(a,e){var t=Le.el,r=t.shape||(t.shape={});return r[a]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(a){var e=Le.el.shape;if(e)return e[a]},setStyle:function(a,e){var t=Le.el,r=t.style;return r&&(r[a]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(a){var e=Le.el.style;if(e)return e[a]},setExtra:function(a,e){var t=Le.el.extra||(Le.el.extra={});return t[a]=e,this},getExtra:function(a){var e=Le.el.extra;if(e)return e[a]}};function nw(){var a=this,e=a.el;if(e){var t=Hr(e).userDuring,r=a.userDuring;if(t!==r){a.el=a.userDuring=null;return}Le.el=e,r(aw)}}function Fv(a,e,t,r){var n=t[a];if(n){var i=e[a],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=r[a]={}),gr(l))K(o,i);else for(var u=Jt(l),v=0;v=0){!o&&(o=r[a]={});for(var h=Mt(i),v=0;v=0)){var f=a.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Mt(t),u=0;u=0?e.getStore().get(k,E):void 0}var N=e.get(R.name,E),F=R&&R.ordinalMeta;return F?F.categories[N]:N}function _(P,E){E==null&&(E=u);var R=e.getItemVisual(E,"style"),k=R&&R.fill,N=R&&R.opacity,F=S(E,Ke).getItemStyle();k!=null&&(F.fill=k),N!=null&&(F.opacity=N);var H={inheritColor:lt(k)?k:"#000"},X=m(E,Ke),j=At(X,null,H,!1,!0);j.text=X.getShallow("show")?Rt(a.getFormattedLabel(E,Ke),To(e,E)):null;var rt=Nl(X,H,!1);return T(P,F),F=Gv(F,j,rt),P&&A(F,P),F.legacy=!0,F}function w(P,E){E==null&&(E=u);var R=S(E,Oe).getItemStyle(),k=m(E,Oe),N=At(k,null,null,!0,!0);N.text=k.getShallow("show")?Ur(a.getFormattedLabel(E,Oe),a.getFormattedLabel(E,Ke),To(e,E)):null;var F=Nl(k,null,!0);return T(P,R),R=Gv(R,N,F),P&&A(R,P),R.legacy=!0,R}function A(P,E){for(var R in E)Z(E,R)&&(P[R]=E[R])}function T(P,E){P&&(P.textFill&&(E.textFill=P.textFill),P.textPosition&&(E.textPosition=P.textPosition))}function C(P,E){if(E==null&&(E=u),Z(Nv,P)){var R=e.getItemVisual(E,"style");return R?R[Nv[P]]:null}if(Z(W_,P))return e.getItemVisual(E,P)}function L(P){if(i.type==="cartesian2d"){var E=i.getBaseAxis();return ty(ot({axis:E},P))}}function M(){return t.getCurrentSeriesIndices()}function I(P){return Vf(P,t)}}function yw(a){var e={};return D(a.dimensions,function(t){var r=a.getDimensionInfo(t);if(!r.isExtraCoord){var n=r.coordDim,i=e[n]=e[n]||[];i[r.coordDimIndex]=a.getDimensionIndex(t)}}),e}function no(a,e,t,r,n,i,o){if(!r){i.remove(e);return}var s=ol(a,e,t,r,n,i);return s&&o.setItemGraphicEl(t,s),s&&Et(s,r.focus,r.blurScope,r.emphasisDisabled),s}function ol(a,e,t,r,n,i){var o=-1,s=e;e&&Np(e,r,n)&&(o=Pt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=nl(r),s&&hw(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),pe.normal.cfg=pe.normal.conOpt=pe.emphasis.cfg=pe.emphasis.conOpt=pe.blur.cfg=pe.blur.conOpt=pe.select.cfg=pe.select.conOpt=null,pe.isLegacy=!1,Sw(u,t,r,n,l,pe),mw(u,t,r,n,l),il(a,u,t,r,pe,n,l),Z(r,"info")&&(Ge(u).info=r.info);for(var v=0;v=0?i.replaceAt(u,o):i.add(u),u}function Np(a,e,t){var r=Ge(a),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==r.customGraphicType||n==="path"&&Aw(i)&&zp(i)!==r.customPathData||n==="image"&&Z(o,"image")&&o.image!==r.customImagePath}function mw(a,e,t,r,n){var i=t.clipPath;if(i===!1)a&&a.getClipPath()&&a.removeClipPath();else if(i){var o=a.getClipPath();o&&Np(o,i,r)&&(o=null),o||(o=nl(i),a.setClipPath(o)),il(null,o,e,i,null,r,n)}}function Sw(a,e,t,r,n,i){if(!a.isGroup){Uv(t,null,i),Uv(t,Oe,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var v=a.getTextContent();if(o===!1)v&&a.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},v?v.clearStates():(v=nl(o),a.setTextContent(v)),il(null,v,e,o,null,r,n);for(var c=o&&o.style,f=0;f=v;h--){var p=e.childAt(h);bw(e,p,n)}}}function bw(a,e,t){e&&oi(e,Ge(a).option,t)}function _w(a){new Qe(a.oldChildren,a.newChildren,$v,$v,a).add(Yv).update(Yv).remove(ww).execute()}function $v(a,e){var t=a&&a.name;return t??cw+e}function Yv(a,e){var t=this.context,r=a!=null?t.newChildren[a]:null,n=e!=null?t.oldChildren[e]:null;ol(t.api,n,t.dataIndex,r,t.seriesModel,t.group)}function ww(a){var e=this.context,t=e.oldChildren[a];t&&oi(t,Ge(t).option,e.seriesModel)}function zp(a){return a&&(a.pathData||a.d)}function Aw(a){return a&&(Z(a,"pathData")||Z(a,"d"))}function Tw(a){a.registerChartView(pw),a.registerSeriesModel(U_)}var Cw=function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),v=u.getExtent(),c=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=zf(i),p=Lw[f](s,l,c,v);p.style=h,t.graphicKey=p.type,t.pointer=p}var d=i.get(["label","margin"]),g=Dw(r,n,i,l,d);ry(t,n,i,o,g)},e}(Gf);function Dw(a,e,t,r,n){var i=e.axis,o=i.dataToCoord(a),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,v,c;if(i.dim==="radius"){var f=Zr();Yn(f,f,s),Sr(f,f,[r.cx,r.cy]),u=Gr([o,-n],f);var h=e.getModel("axisLabel").get("rotate")||0,p=mr.innerTextLayout(s,h*Math.PI/180,-1);v=p.textAlign,c=p.textVerticalAlign}else{var d=l[1];u=r.coordToPoint([d+n,o]);var g=r.cx,y=r.cy;v=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:v,verticalAlign:c}}var Lw={line:function(a,e,t,r){return a.dim==="angle"?{type:"Line",shape:Of(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(a,e,t,r){var n=Math.max(1,a.getBandWidth()),i=Math.PI/180;return a.dim==="angle"?{type:"Sector",shape:zl(e.cx,e.cy,r[0],r[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:zl(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},Iw=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Xt),ll=function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ar).models[0]},e.type="polarAxis",e}(Xt);Ce(ll,$n);var Mw=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(ll),Pw=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(ll),ul=function(a){V(e,a);function e(t,r){return a.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(ke);ul.prototype.dataToRadius=ke.prototype.dataToCoord;ul.prototype.radiusToData=ke.prototype.coordToData;var Ew=Dt(),vl=function(a){V(e,a);function e(t,r){return a.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),v=Bf(s==null?"":s+"",r.getFont(),"center","top"),c=Math.max(v.height,7),f=c/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Ew(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-h)<=1&&Math.abs(g-o)<=1&&d>h?h=d:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(ke);vl.prototype.dataToAngle=ke.prototype.dataToCoord;vl.prototype.angleToData=ke.prototype.coordToData;var Gp=["radius","angle"],Rw=function(){function a(e){this.dimensions=Gp,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new ul,this._angleAxis=new vl,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return a.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},a.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},a.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},a.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},a.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,n=this._radiusAxis;return r.scale.type===e&&t.push(r),n.scale.type===e&&t.push(n),t},a.prototype.getAngleAxis=function(){return this._angleAxis},a.prototype.getRadiusAxis=function(){return this._radiusAxis},a.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},a.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},a.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},a.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},a.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,v=us;)u+=v*360;return[l,u]},a.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,n=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[n,i]},a.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var n=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,v=l-this.cy,c=u*u+v*v,f=this.r,h=this.r0;return f!==h&&c-o<=f*f&&c+o>=h*h}}},a.prototype.convertToPixel=function(e,t,r){var n=Zv(t);return n===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var n=Zv(t);return n===this?this.pointToData(r):null},a}();function Zv(a){var e=a.seriesModel,t=a.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function kw(a,e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight();a.cx=U(r[0],n),a.cy=U(r[1],i);var o=a.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:q(l)||(l=[0,l]);var u=[U(l[0],s),U(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Vw(a,e){var t=this,r=t.getAngleAxis(),n=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),a.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();D(Gl(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),D(Gl(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),gn(r.scale,r.model),gn(n.scale,n.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Nw(a){return a.mainType==="angleAxis"}function Xv(a,e){var t;if(a.type=e.get("type"),a.scale=gs(e),a.onBand=e.get("boundaryGap")&&a.type==="category",a.inverse=e.get("inverse"),Nw(e)){a.inverse=a.inverse!==e.get("clockwise");var r=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:r+(a.inverse?-360:360);a.setExtent(r,n)}e.axis=a,a.model=e}var zw={dimensions:Gp,create:function(a,e){var t=[];return a.eachComponent("polar",function(r,n){var i=new Rw(n+"");i.update=Vw;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");Xv(o,l),Xv(s,u),kw(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var n=r.getReferringComponents("polar",Ar).models[0];r.coordinateSystem=n.coordinateSystem}}),t}},Gw=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ja(a,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=a.coordToPoint([e[0],t]),n=a.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:n[0],y2:n[1]}}function Qa(a){var e=a.getRadiusAxis();return e.inverse?0:1}function qv(a){var e=a[0],t=a[a.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&a.pop()}var Ow=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=$(n.getViewLabels(),function(v){v=pt(v);var c=n.scale,f=c.type==="ordinal"?c.getRawOrdinalNumber(v.tickValue):v.tickValue;return v.coord=n.dataToCoord(f),v});qv(u),qv(s),D(Gw,function(v){t.get([v,"show"])&&(!n.scale.isBlank()||v==="axisLine")&&Bw[v](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Va),Bw={axisLine:function(a,e,t,r,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),v=Qa(t),c=v?0:1,f,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?f=new Yr[h]({shape:{cx:t.cx,cy:t.cy,r:i[v],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):f=new xf({shape:{cx:t.cx,cy:t.cy,r:i[v],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,a.add(f)},axisTick:function(a,e,t,r,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Qa(t)],u=$(r,function(v){return new _e({shape:Ja(t,[l,l+s],v.coord)})});a.add(be(u,{style:ot(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(a,e,t,r,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Qa(t)],v=[],c=0;cy?"left":"right",x=Math.abs(g[1]-S)/d<.3?"middle":g[1]>S?"top":"bottom";if(s&&s[p]){var b=s[p];Zt(b)&&b.textStyle&&(h=new ce(b.textStyle,l,l.ecModel))}var _=new St({silent:mr.isLabelSilent(e),style:At(h,{x:g[0],y:g[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:m,verticalAlign:x})});if(a.add(_),v){var w=mr.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=c.rawLabel,ht(_).eventData=w}},this)},splitLine:function(a,e,t,r,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],c=0;c=0?"p":"n",E=T;b&&(r[v][I]||(r[v][I]={p:T,n:T}),E=r[v][I][P]);var R=void 0,k=void 0,N=void 0,F=void 0;if(p.dim==="radius"){var H=p.dataToCoord(M)-T,X=l.dataToCoord(I);Math.abs(H)=F})}}})}function Zw(a){var e={};D(a,function(r,n){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=Bp(o,s),u=s.getExtent(),v=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=e[l]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=c.stacks;e[l]=c;var h=Op(r);f[h]||c.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=U(r.get("barWidth"),v),d=U(r.get("barMaxWidth"),v),g=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(c.remainedWidth,p),f[h].width=p,c.remainedWidth-=p),d&&(f[h].maxWidth=d),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var t={};return D(e,function(r,n){t[n]={};var i=r.stacks,o=r.bandWidth,s=U(r.categoryGap,o),l=U(r.gap,1),u=r.remainedWidth,v=r.autoWidthCount,c=(u-s)/(v+(v-1)*l);c=Math.max(c,0),D(i,function(d,g){var y=d.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},a.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},a.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,n},a.prototype.convertToPixel=function(e,t,r){var n=Kv(t);return n===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var n=Kv(t);return n===this?this.pointToData(r):null},a}();function Kv(a){var e=a.seriesModel,t=a.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function nA(a,e){var t=[];return a.eachComponent("singleAxis",function(r,n){var i=new aA(r,a,e);i.name="single_"+n,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var n=r.getReferringComponents("singleAxis",Ar).models[0];r.coordinateSystem=n&&n.coordinateSystem}}),t}var iA={create:nA,dimensions:Fp},jv=["x","y"],oA=["width","height"],sA=function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,n,i,o){var s=n.axis,l=s.coordinateSystem,u=io(l,1-En(s)),v=l.dataToPoint(r)[0],c=i.get("type");if(c&&c!=="none"){var f=zf(i),h=lA[c](s,v,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=qo(n);oy(r,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,r,n){var i=qo(r,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=sy(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,n,i){var o=n.axis,s=o.coordinateSystem,l=En(o),u=io(s,l),v=[t.x,t.y];v[l]+=r[l],v[l]=Math.min(u[1],v[l]),v[l]=Math.max(u[0],v[l]);var c=io(s,1-l),f=(c[1]+c[0])/2,h=[f,f];return h[l]=v[l],{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(Gf),lA={line:function(a,e,t){var r=Of([e,t[0]],[e,t[1]],En(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,t){var r=a.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:ly([e-r/2,t[0]],[r,n],En(a))}}};function En(a){return a.isHorizontal()?0:1}function io(a,e){var t=a.getRect();return[t[jv[e]],t[jv[e]]+t[oA[e]]]}var uA=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(te);function vA(a){it(xs),Va.registerAxisPointerClass("SingleAxisPointer",sA),a.registerComponentView(uA),a.registerComponentView(tA),a.registerComponentModel(un),yn(a,"single",un,un.defaultOption),a.registerCoordinateSystem("single",iA)}var cA=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,n){var i=uy(t);a.prototype.init.apply(this,arguments),Jv(t,i)},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),Jv(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Xt);function Jv(a,e){var t=a.cellSize,r;q(t)?r=t:r=a.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var n=$([0,1],function(i){return vy(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});Hf(a,e,{type:"box",ignoreSize:n})}var fA=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var v=i.dataToRect([u],!1).tl,c=new Bt({shape:{x:v[0],y:v[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},e.prototype._renderLines=function(t,r,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),v=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=r.start,f=0;c.time<=r.end.time;f++){p(c.formatedDate),f===0&&(c=s.getDateInfo(r.start.y+"-"+r.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,v,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,v,n),l,i)},e.prototype._getEdgesPoints=function(t,r,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,n){var i=new Te({z2:20,shape:{points:t},style:r});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,n){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),v=i.dataToRect([u.time],!1);s[2*u.day]=v.tl,s[2*u.day+1]=v[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return lt(t)&&t?cy(t,r):gt(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,n,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var v=0;return(i==="left"||i==="right")&&(v=Math.PI/2),{rotation:v,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],v=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,f=n==="horizontal"?0:1,h={top:[v,u[f][1]],bottom:[v,u[1-f][1]],left:[u[1-f][0],c],right:[u[f][0],c]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var d=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(d,g),S=new St({z2:30,style:At(o,{text:y}),silent:o.get("silent")});S.attr(this._yearTextPositionControl(S,h[l],n,l,s)),i.add(S)}},e.prototype._monthTextPositionControl=function(t,r,n,i,o){var s="left",l="top",u=t[0],v=t[1];return n==="horizontal"?(v=v+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:v,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),v=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||lt(s))&&(s&&(r=Ol(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=v==="center",d=o.get("silent"),g=0;g=n.start.time&&r.times.end.time&&t.reverse(),t},a.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var n=Math.floor(t[1].time/oo)-Math.floor(t[0].time/oo)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var v=Math.floor((n+t[0].day+6)/7),c=r?-v+1:v-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:v,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},a.prototype._getDateByWeeksAndDay=function(e,t,r){var n=this._getRangeInfo(r);if(e>n.weeks||e===0&&tn.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},a.create=function(e,t){var r=[];return e.eachComponent("calendar",function(n){var i=new a(n);r.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=r[n.get("calendarIndex")||0])}),r},a.dimensions=["time","value"],a}();function Qv(a){var e=a.calendarModel,t=a.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}function pA(a){a.registerComponentModel(cA),a.registerComponentView(fA),a.registerCoordinateSystem("calendar",hA)}function dA(a,e){var t=a.existing;if(e.id=a.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function tc(a,e){var t;return D(e,function(r){a[r]!=null&&a[r]!=="auto"&&(t=!0)}),t}function gA(a,e,t){var r=K({},t),n=a[e],i=t.$action||"merge";i==="merge"?n?(Ct(n,r,!0),Hf(n,r,{ignoreSize:!0}),py(t,n),tn(t,n),tn(t,n,"shape"),tn(t,n,"style"),tn(t,n,"extra"),t.clipPath=n.clipPath):a[e]=r:i==="replace"?a[e]=r:i==="remove"&&n&&(a[e]=null)}var Hp=["transition","enterFrom","leaveTo"],yA=Hp.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function tn(a,e,t){if(t&&(!a[t]&&e[t]&&(a[t]={}),a=a[t],e=e[t]),!(!a||!e))for(var r=t?Hp:yA,n=0;n=0;v--){var c=n[v],f=ze(c.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=de(p),S=p===i?{width:s,height:l}:{width:y.width,height:y.height},m={},x=ps(h,c,S,null,{hv:c.hv,boundingMode:c.bounding},m);if(!de(h).isNew&&x){for(var b=c.transition,_={},w=0;w=0)?_[A]=T:h[A]=T}xt(h,_,t,0)}else h.attr(m)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(n){vn(n,de(n).option,r,t._lastGraphicModel)}),this._elMap=ut()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(te);function Ko(a){var e=Z(ec,a)?ec[a]:Nf(a),t=new e({});return de(t).type=a,t}function rc(a,e,t,r){var n=Ko(t);return e.add(n),r.set(a,n),de(n).id=a,de(n).isNew=!0,n}function vn(a,e,t,r){var n=a&&a.parent;n&&(a.type==="group"&&a.traverse(function(i){vn(i,e,t,r)}),oi(a,e,r),t.removeKey(de(a).id))}function ac(a,e,t,r){a.isGroup||D([["cursor",xr.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(n){var i=n[0];Z(e,i)?a[i]=Rt(e[i],n[1]):a[i]==null&&(a[i]=n[1])}),D(Mt(e),function(n){if(n.indexOf("on")===0){var i=e[n];a[n]=gt(i)?i:null}}),Z(e,"draggable")&&(a.draggable=e.draggable),e.name!=null&&(a.name=e.name),e.id!=null&&(a.id=e.id)}function bA(a){return a=K({},a),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(dy),function(e){delete a[e]}),a}function _A(a,e,t){var r=ht(a).eventData;!a.silent&&!a.ignore&&!r&&(r=ht(a).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:a.name}),r&&(r.info=t.info)}function wA(a){a.registerComponentModel(SA),a.registerComponentView(xA),a.registerPreprocessor(function(e){var t=e.graphic;q(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var AA=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(gy),TA=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(yy);function CA(a){a.registerComponentModel(AA),a.registerComponentView(TA),my(a)}var ge=function(){function a(){}return a}(),Wp={};function Rr(a,e){Wp[a]=e}function Up(a){return Wp[a]}var DA=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){a.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;D(this.option.feature,function(r,n){var i=Up(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Ct(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Xt),LA=function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},v=this._features||(this._features={}),c=[];D(u,function(p,d){c.push(d)}),new Qe(this._featureNames||[],c).add(f).update(f).remove(st(f,null)).execute(),this._featureNames=c;function f(p,d){var g=c[p],y=c[d],S=u[g],m=new ce(S,t,t.ecModel),x;if(i&&i.newTitle!=null&&i.featureName===g&&(S.title=i.newTitle),g&&!y){if(IA(g))x={onclick:m.option.onclick,featureName:g};else{var b=Up(g);if(!b)return;x=new b}v[g]=x}else if(x=v[y],!x)return;x.uid=_f("toolbox-feature"),x.model=m,x.ecModel=r,x.api=n;var _=x instanceof ge;if(!g&&y){_&&x.dispose&&x.dispose(r,n);return}if(!m.get("show")||_&&x.unusable){_&&x.remove&&x.remove(r,n);return}h(m,x,g),m.setIconStatus=function(w,A){var T=this.option,C=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[w]=A,C[w]&&(A==="emphasis"?ga:ya)(C[w])},x instanceof ge&&x.render&&x.render(m,r,n,i)}function h(p,d,g){var y=p.getModel("iconStyle"),S=p.getModel(["emphasis","iconStyle"]),m=d instanceof ge&&d.getIcons?d.getIcons():p.get("icon"),x=p.get("title")||{},b,_;lt(m)?(b={},b[g]=m):b=m,lt(x)?(_={},_[g]=x):_=x;var w=p.iconPaths={};D(b,function(A,T){var C=Wf(A,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var L=C.ensureState("emphasis");L.style=S.getItemStyle();var M=new St({style:{text:_[T],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:Vf({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},r)},ignore:!0});C.setTextContent(M),fs({el:C,componentModel:t,itemName:T,formatterParamsExtra:{title:_[T]}}),C.__title=_[T],C.on("mouseover",function(){var I=S.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";M.setStyle({fill:S.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:S.get("textBackgroundColor")}),C.setTextConfig({position:S.get("textPosition")||P}),M.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",T])!=="emphasis"&&n.leaveEmphasis(this),M.hide()}),(p.get(["iconStatus",T])==="emphasis"?ga:ya)(C),o.add(C),C.on("click",at(d.onclick,d,r,n,T)),w[T]=C})}Sy(o,t,n),o.add(xy(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),S=p.getTextContent(),m=S&&S.ensureState("emphasis");if(m&&!gt(m)&&d){var x=m.style||(m.style={}),b=Bf(d,St.makeFont(x)),_=p.x+o.x,w=p.y+o.y+s,A=!1;w+b.height>n.getHeight()&&(y.position="top",A=!0);var T=A?-5-b.height:s+10;_+b.width/2>n.getWidth()?(y.position=["100%",T],x.align="right"):_-b.width/2<0&&(y.position=[0,T],x.align="left")}})},e.prototype.updateView=function(t,r,n,i){D(this._features,function(o){o instanceof ge&&o.updateView&&o.updateView(o.model,r,n,i)})},e.prototype.remove=function(t,r){D(this._features,function(n){n instanceof ge&&n.remove&&n.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){D(this._features,function(n){n instanceof ge&&n.dispose&&n.dispose(t,r)})},e.type="toolbox",e}(te);function IA(a){return a.indexOf("my")===0}var MA=function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Uf.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var v=document.createElement("a");v.download=i+"."+s,v.target="_blank",v.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});v.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var S=new Blob([y]);window.navigator.msSaveOrOpenBlob(S,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var x=m.contentWindow,b=x.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),x.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var _=n.get("lang"),w='',A=window.open();A.document.write(w),A.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(ge),nc="__ec_magicType_stack__",PA=[["line","bar"],["stack"]],EA=function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),n={};return D(t.get("type"),function(i){r[i]&&(n[i]=r[i])}),n},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,n){var i=this.model,o=i.get(["seriesIndex",n]);if(ic[n]){var s={series:[]},l=function(c){var f=c.subType,h=c.id,p=ic[n](f,h,c,i);p&&(ot(p,c.option),s.series.push(p));var d=c.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,S=y+"Axis",m=c.getReferringComponents(S,Ar).models[0],x=m.componentIndex;s[S]=s[S]||[];for(var b=0;b<=x;b++)s[S][x]=s[S][x]||{};s[S][x].boundaryGap=n==="bar"}}};D(PA,function(c){Pt(c,n)>=0&&D(c,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,v=n;n==="stack"&&(u=Ct({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(v="tiled")),r.dispatchAction({type:"changeMagicType",currentType:v,newOption:s,newTitle:u,featureName:"magicType"})}},e}(ge),ic={line:function(a,e,t,r){if(a==="bar")return Ct({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(a,e,t,r){if(a==="line")return Ct({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(a,e,t,r){var n=t.get("stack")===nc;if(a==="line"||a==="bar")return r.setIconStatus("stack",n?"normal":"emphasis"),Ct({id:e,stack:n?"":nc},r.get(["option","stack"])||{},!0)}};bs({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,e){e.mergeOption(a.newOption)});var si=new Array(60).join("-"),Wr=" ";function RA(a){var e={},t=[],r=[];return a.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function kA(a){var e=[];return D(a,function(t,r){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat($(t.series,function(h){return h.name})),l=[n.model.getCategories()];D(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(Wr)],v=0;v=0)return!0}var jo=new RegExp("["+Wr+"]+","g");function GA(a){for(var e=a.split(/\n+/g),t=Rn(e.shift()).split(jo),r=[],n=$(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=a.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function UA(a){var e=cl(a),t=e[e.length-1];e.length>1&&e.pop();var r={};return $p(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){r[i]=n;break}}),r}function $A(a){Yp(a).snapshots=null}function YA(a){return cl(a).length}function cl(a){var e=Yp(a);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var ZA=function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){$A(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(ge);bs({type:"restore",event:"restore",update:"prepareAndUpdate"},function(a,e){e.resetOption("recreate")});var XA=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],fl=function(){function a(e,t,r){var n=this;this._targetInfoList=[];var i=oc(t,e);D(qA,function(o,s){(!r||!r.include||Pt(r.include,s)>=0)&&o(i,n._targetInfoList)})}return a.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,n,i){if((r.coordRanges||(r.coordRanges=[])).push(n),!r.coordRange){r.coordRange=n;var o=so[r.brushType](0,i,n);r.__rangeOffset={offset:vc[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},a.prototype.matchOutputRanges=function(e,t,r){D(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&D(i.coordSyses,function(o){var s=so[n.brushType](1,o,n.range,!0);r(n,s.values,o,t)})},this)},a.prototype.setInputRanges=function(e,t){D(e,function(r){var n=this.findTargetInfo(r,t);if(r.range=r.range||[],n&&n!==!0){r.panelId=n.panelId;var i=so[r.brushType](0,n.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?vc[r.brushType](i.values,o.offset,KA(i.xyMinMax,o.xyMinMax)):i.values}},this)},a.prototype.makePanelOpts=function(e,t){return $(this._targetInfoList,function(r){var n=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:up(n),isTargetByCursor:cp(n,e,r.coordSysModel),getLinearBrushOtherExtent:vp(n)}})},a.prototype.controlSeries=function(e,t,r){var n=this.findTargetInfo(e,r);return n===!0||n&&Pt(n.coordSyses,t.coordinateSystem)>=0},a.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,n=oc(t,e),i=0;ia[1]&&a.reverse(),a}function oc(a,e){return $f(a,e,{includeMainTypes:XA})}var qA={grid:function(a,e){var t=a.xAxisModels,r=a.yAxisModels,n=a.gridModels,i=ut(),o={},s={};!t&&!r&&!n||(D(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,v=[];D(u.getCartesians(),function(c,f){(Pt(t,c.getAxis("x").model)>=0||Pt(r,c.getAxis("y").model)>=0)&&v.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:v[0],coordSyses:v,getPanelRect:lc.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(a,e){D(a.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:lc.geo})})}},sc=[function(a,e){var t=a.xAxisModel,r=a.yAxisModel,n=a.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&r&&(n=r.axis.grid.model),n&&n===e.gridModel},function(a,e){var t=a.geoModel;return t&&t===e.geoModel}],lc={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var a=this.coordSys,e=a.getBoundingRect().clone();return e.applyTransform(ua(a)),e}},so={lineX:st(uc,0),lineY:st(uc,1),rect:function(a,e,t,r){var n=a?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=a?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[Jo([n[0],i[0]]),Jo([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(a,e,t,r){var n=[[1/0,-1/0],[1/0,-1/0]],i=$(t,function(o){var s=a?e.pointToData(o,r):e.dataToPoint(o,r);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function uc(a,e,t,r){var n=t.getAxis(["x","y"][a]),i=Jo($([0,1],function(s){return e?n.coordToData(n.toLocalCoord(r[s]),!0):n.toGlobalCoord(n.dataToCoord(r[s]))})),o=[];return o[a]=i,o[1-a]=[NaN,NaN],{values:i,xyMinMax:o}}var vc={lineX:st(cc,0),lineY:st(cc,1),rect:function(a,e,t){return[[a[0][0]-t[0]*e[0][0],a[0][1]-t[0]*e[0][1]],[a[1][0]-t[1]*e[1][0],a[1][1]-t[1]*e[1][1]]]},polygon:function(a,e,t){return $(a,function(r,n){return[r[0]-t[0]*e[n][0],r[1]-t[1]*e[n][1]]})}};function cc(a,e,t,r){return[e[0]-r[a]*t[0],e[1]-r[a]*t[1]]}function KA(a,e){var t=fc(a),r=fc(e),n=[t[0]/r[0],t[1]/r[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function fc(a){return a?[a[0][1]-a[0][0],a[1][1]-a[1][0]]:[NaN,NaN]}var Qo=D,jA=wy("toolbox-dataZoom_"),JA=function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,n,i){this._brushController||(this._brushController=new $s(n.getZr()),this._brushController.on("brush",at(this._onBrush,this)).mount()),eT(t,r,this,i,n),tT(t,r)},e.prototype.onclick=function(t,r,n){QA[n].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new fl(hl(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,v,c){if(c.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",c,v[0]),s("y",c,v[1])):s({lineX:"x",lineY:"y"}[f],c,v)}}),WA(i,n),this._dispatchZoomAction(n);function s(u,v,c){var f=v.getAxis(u),h=f.model,p=l(u,h,i),d=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(c=ys(0,c.slice(),f.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:c[0],endValue:c[1]})}function l(u,v,c){var f;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,v.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];Qo(t,function(n,i){r.push(pt(n))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(ge),QA={zoom:function(){var a=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:a})},back:function(){this._dispatchZoomAction(UA(this.ecModel))}};function hl(a){var e={xAxisIndex:a.get("xAxisIndex",!0),yAxisIndex:a.get("yAxisIndex",!0),xAxisId:a.get("xAxisId",!0),yAxisId:a.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function tT(a,e){a.setIconStatus("back",YA(e)>1?"emphasis":"normal")}function eT(a,e,t,r,n){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,a.setIconStatus("zoom",i?"emphasis":"normal");var o=new fl(hl(a),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()}:!1)}_y("dataZoom",function(a){var e=a.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),n=[],i=hl(r),o=$f(a,i);Qo(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Qo(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,v){var c=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:jA+u+c};f[v]=c,n.push(f)}return n});function rT(a){a.registerComponentModel(DA),a.registerComponentView(LA),Rr("saveAsImage",MA),Rr("magicType",EA),Rr("dataView",FA),Rr("dataZoom",JA),Rr("restore",ZA),it(CA)}var aT=["rect","polygon","keep","clear"];function nT(a,e){var t=Jt(a?a.brush:[]);if(t.length){var r=[];D(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var n=a&&a.toolbox;q(n)&&(n=n[0]),n||(n={feature:{}},a.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),iT(s),e&&!s.length&&s.push.apply(s,aT)}}function iT(a){var e={};D(a,function(t){e[t]=1}),a.length=0,D(e,function(t,r){a.push(r)})}var hc=D;function pc(a){if(a){for(var e in a)if(a.hasOwnProperty(e))return!0}}function ts(a,e,t){var r={};return hc(e,function(i){var o=r[i]=n();hc(a[i],function(s,l){if(Ot.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Ot(u),l==="opacity"&&(u=pt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ot(u))}})}),r;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Zp(a,e,t){var r;D(t,function(n){e.hasOwnProperty(n)&&pc(e[n])&&(r=!0)}),r&&D(t,function(n){e.hasOwnProperty(n)&&pc(e[n])?a[n]=pt(e[n]):delete a[n]})}function oT(a,e,t,r,n,i){var o={};D(a,function(c){var f=Ot.prepareVisualTypes(e[c]);o[c]=f});var s;function l(c){return Yf(t,s,c)}function u(c,f){Zf(t,s,c,f)}t.each(v);function v(c,f){s=c;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(n,c),d=e[p],g=o[p],y=0,S=g.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&Sc(e)}};function Sc(a){return new Tt(a[0][0],a[1][0],a[0][1]-a[0][0],a[1][1]-a[1][0])}var pT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new $s(r.getZr())).on("brush",at(this._onBrush,this)).mount()},e.prototype.render=function(t,r,n,i){this.model=t,this._updateController(t,r,n,i)},e.prototype.updateTransform=function(t,r,n,i){Xp(r),this._updateController(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.updateTransform(t,r,n,i)},e.prototype.updateView=function(t,r,n,i){this._updateController(t,r,n,i)},e.prototype._updateController=function(t,r,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:pt(n),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:pt(n),$from:r})},e.type="brush",e}(te),dT="#ddd",gT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var n=this.option;!r&&Zp(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:dT},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=$(t,function(r){return xc(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=xc(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Xt);function xc(a,e){return Ct({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new ce(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},e,!0)}var yT=["rect","polygon","lineX","lineY","keep","clear"],mT=function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,n){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,n){this.render(t,r,n)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),n={};return D(t.get("type",!0),function(i){r[i]&&(n[i]=r[i])}),n},e.prototype.onclick=function(t,r,n){var i=this._brushType,o=this._brushMode;n==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:yT.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(ge);function ST(a){a.registerComponentView(pT),a.registerComponentModel(gT),a.registerPreprocessor(nT),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,uT),a.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),a.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},yr),a.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},yr),Rr("brush",mT)}var xT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Xt),bT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Rt(t.get("textBaseline"),t.get("textVerticalAlign")),v=new St({style:At(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=v.getBoundingRect(),f=t.get("subtext"),h=new St({style:At(s,{text:f,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);v.silent=!p&&!g,h.silent=!d&&!g,p&&v.on("click",function(){pn(p,"_"+t.get("target"))}),d&&h.on("click",function(){pn(d,"_"+t.get("subtarget"))}),ht(v).eventData=ht(h).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(v),f&&i.add(h);var y=i.getBoundingRect(),S=t.getBoxLayoutParams();S.width=y.width,S.height=y.height;var m=fe(S,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?m.x+=m.width:l==="center"&&(m.x+=m.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?m.y+=m.height:u==="middle"&&(m.y+=m.height/2),u=u||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var x={align:l,verticalAlign:u};v.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var b=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var w=new Bt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(te);function _T(a){a.registerComponentModel(xT),a.registerComponentView(bT)}var bc=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],D(r,function(u,v){var c=ze(Ay(u),""),f;Zt(u)?(f=pt(u),f.value=v):f=v,o.push(f),i.push(c)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new re([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Xt),qp=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Jn(bc.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(bc);Ce(qp,_s.prototype);var wT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(te),AT=function(a){V(e,a);function e(t,r,n,i){var o=a.call(this,t,r,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(ke),uo=Math.PI,_c=Dt(),TT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,n){if(this.model=t,this.api=n,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var v=l.scale.getLabel({value:u});return ne("nameValue",{noName:!0,value:v})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var n=t.get(["label","position"]),i=t.get("orient"),o=DT(t,r),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},v={horizontal:0,vertical:uo/2},c=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,d=h?f.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*uo/180;var S,m,x,b=f.get("position",!0),_=h&&f.get("showPlayBtn",!0),w=h&&f.get("showPrevBtn",!0),A=h&&f.get("showNextBtn",!0),T=0,C=c;b==="left"||b==="bottom"?(_&&(S=[0,0],T+=g),w&&(m=[T,0],T+=g),A&&(x=[C-p,0],C-=g)):(_&&(S=[C-p,0],C-=g),w&&(m=[0,0],T+=g),A&&(x=[C-p,0],C-=g));var L=[T,C];return t.get("inverse")&&L.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:v[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:S,prevBtnPosition:m,nextBtnPosition:x,axisExtent:L,controlSize:p,controlGap:d}},e.prototype._position=function(t,r){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Zr(),l=o.x,u=o.y+o.height;Sr(s,s,[-l,-u]),Yn(s,s,-uo/2),Sr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var v=S(o),c=S(n.getBoundingRect()),f=S(i.getBoundingRect()),h=[n.x,n.y],p=[i.x,i.y];p[0]=h[0]=v[0][0];var d=t.labelPosOpt;if(d==null||lt(d)){var g=d==="+"?0:1;m(h,c,v,1,g),m(p,f,v,1,1-g)}else{var g=d>=0?0:1;m(h,c,v,1,g),p[1]=h[1]+d}n.setPosition(h),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(x){x.originX=v[0][0]-x.x,x.originY=v[1][0]-x.y}function S(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function m(x,b,_,w,A){x[w]+=_[w][A]-b[w][A]}},e.prototype._createAxis=function(t,r){var n=r.getData(),i=r.get("axisType"),o=CT(r,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new AT("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new nt;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new _e({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new _e({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ot({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],D(l,function(u){var v=n.dataToCoord(u.value),c=s.getItemModel(u.value),f=c.getModel("itemStyle"),h=c.getModel(["emphasis","itemStyle"]),p=c.getModel(["progress","itemStyle"]),d={x:v,y:0,onclick:at(o._changeTimeline,o,u.value)},g=wc(c,f,r,d);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),gi(g);var y=ht(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,r,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],D(u,function(v){var c=v.tickValue,f=l.getItemModel(c),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),d=f.getModel(["progress","label"]),g=n.dataToCoord(v.tickValue),y=new St({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:at(o._changeTimeline,o,c),silent:!1,style:At(h,{text:v.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=At(p),y.ensureState("progress").style=At(d),r.add(y),gi(y),_c(y).dataIndex=c,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),v=i.getPlayState(),c=i.get("inverse",!0);f(t.nextBtnPosition,"next",at(this._changeTimeline,this,c?"-":"+")),f(t.prevBtnPosition,"prev",at(this._changeTimeline,this,c?"+":"-")),f(t.playPosition,v?"stop":"play",at(this._handlePlayClick,this,!v),!0);function f(h,p,d,g){if(h){var y=Co(Rt(i.get(["controlStyle",p+"BtnSize"]),o),o),S=[0,-y/2,y,y],m=LT(i,p+"Icon",S,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});m.ensureState("emphasis").style=u,r.add(m),gi(m)}}},e.prototype._renderCurrentPointer=function(t,r,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,v={onCreate:function(c){c.draggable=!0,c.drift=at(u._handlePointerDrag,u),c.ondragend=at(u._handlePointerDragend,u),Ac(c,u._progressLine,s,n,i,!0)},onUpdate:function(c){Ac(c,u._progressLine,s,n,i)}};this._currentPointer=wc(l,l,this._mainGroup,{},this._currentPointer,v)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var n=this._toAxisCoord(t)[0],i=this._axis,o=br(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(o[i]=+o[i].toFixed(f)),[o,c]}var vo={min:st(an,"min"),max:st(an,"max"),average:st(an,"average"),median:st(an,"median")};function Ca(a,e){if(e){var t=a.getData(),r=a.coordinateSystem,n=r&&r.dimensions;if(!kT(e)&&!q(e.coord)&&q(n)){var i=Kp(e,t,r,a);if(e=pt(e),e.type&&vo[e.type]&&i.baseAxis&&i.valueAxis){var o=Pt(n,i.baseAxis.dim),s=Pt(n,i.valueAxis.dim),l=vo[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!q(n))e.coord=[];else for(var u=e.coord,v=0;v<2;v++)vo[u[v]]&&(u[v]=dl(t,t.mapDimension(n[v]),u[v]));return e}}function Kp(a,e,t,r){var n={};return a.valueIndex!=null||a.valueDim!=null?(n.valueDataDim=a.valueIndex!=null?e.getDimension(a.valueIndex):a.valueDim,n.valueAxis=t.getAxis(VT(r,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=r.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function VT(a,e){var t=a.getData().getDimensionInfo(e);return t&&t.coordDim}function Da(a,e){return a&&a.containData&&e.coord&&!rs(e)?a.containData(e.coord):!0}function NT(a,e,t){return a&&a.containZone&&e.coord&&t.coord&&!rs(e)&&!rs(t)?a.containZone(e.coord,t.coord):!0}function jp(a,e){return a?function(t,r,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return mn(o,e[i])}:function(t,r,n,i){return mn(t.value,e[i])}}function dl(a,e,t){if(t==="average"){var r=0,n=0;return a.each(e,function(i,o){isNaN(i)||(r+=i,n++)}),r/n}else return t==="median"?a.getMedian(e):a.getDataExtent(e)[t==="max"?1:0]}var co=Dt(),gl=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ut()},e.prototype.render=function(t,r,n){var i=this,o=this.markerGroupMap;o.each(function(s){co(s).keep=!1}),r.eachSeries(function(s){var l=We.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,n)}),o.each(function(s){!co(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){co(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var n=this;D(t,function(i){var o=We.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?Ly(l):Iy(l))})}})},e.type="marker",e}(te);function Cc(a,e,t){var r=e.coordinateSystem;a.each(function(n){var i=a.getItemModel(n),o,s=U(i.get("x"),t.getWidth()),l=U(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(a.getValues(a.dimensions,n));else if(r){var u=a.get(r.dimensions[0],n),v=a.get(r.dimensions[1],n);o=r.dataToPoint([u,v])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),a.setItemLayout(n,o)})}var zT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,n){r.eachSeries(function(i){var o=We.getMarkerModelFromSeries(i,"markPoint");o&&(Cc(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new Un),c=GT(o,t,r);r.setData(c),Cc(r.getData(),t,i),c.each(function(f){var h=c.getItemModel(f),p=h.getShallow("symbol"),d=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),S=h.getShallow("symbolKeepAspect");if(gt(p)||gt(d)||gt(g)||gt(y)){var m=r.getRawValue(f),x=r.getDataParams(f);gt(p)&&(p=p(m,x)),gt(d)&&(d=d(m,x)),gt(g)&&(g=g(m,x)),gt(y)&&(y=y(m,x))}var b=h.getModel("itemStyle").getItemStyle(),_=Qn(l,"color");b.fill||(b.fill=_),c.setItemVisual(f,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:S,style:b})}),v.updateData(c),this.group.add(v.group),c.eachItemGraphicEl(function(f){f.traverse(function(h){ht(h).dataModel=r})}),this.markKeep(v),v.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(gl);function GT(a,e,t){var r;a?r=$(a&&a.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var n=new re(r,t),i=$(t.get("data"),st(Ca,e));a&&(i=Gt(i,st(Da,a)));var o=jp(!!a,r);return n.initData(i,null,o),n}function OT(a){a.registerComponentModel(RT),a.registerComponentView(zT),a.registerPreprocessor(function(e){pl(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var BT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,n){return new e(t,r,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(We),nn=Dt(),FT=function(a,e,t,r){var n=a.getData(),i;if(q(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=se(r.yAxis,r.xAxis);else{var u=Kp(r,n,e,a);s=u.valueAxis;var v=My(n,u.valueDataDim);l=dl(n,v,o)}var c=s.dim==="x"?0:1,f=1-c,h=pt(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var d=t.get("precision");d>=0&&le(l)&&(l=+l.toFixed(Math.min(d,20))),h.coord[c]=p.coord[c]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[Ca(a,i[0]),Ca(a,i[1]),K({},i[2])];return g[2].type=g[2].type||null,Ct(g[2],g[0]),Ct(g[2],g[1]),g};function kn(a){return!isNaN(a)&&!isFinite(a)}function Dc(a,e,t,r){var n=1-a,i=r.dimensions[a];return kn(e[n])&&kn(t[n])&&e[a]===t[a]&&r.getAxis(i).containData(e[a])}function HT(a,e){if(a.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(Dc(1,t,r,a)||Dc(0,t,r,a)))return!0}return Da(a,e[0])&&Da(a,e[1])}function fo(a,e,t,r,n){var i=r.coordinateSystem,o=a.getItemModel(e),s,l=U(o.get("x"),n.getWidth()),u=U(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(a.getValues(a.dimensions,e));else{var v=i.dimensions,c=a.get(v[0],e),f=a.get(v[1],e);s=i.dataToPoint([c,f])}if(jn(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),v=i.dimensions;kn(a.get(v[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):kn(a.get(v[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}a.setItemLayout(e,s)}var WT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,n){r.eachSeries(function(i){var o=We.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=nn(o).from,u=nn(o).to;l.each(function(v){fo(l,v,!0,i,n),fo(u,v,!1,i,n)}),s.each(function(v){s.setItemLayout(v,[l.getItemLayout(v),u.getItemLayout(v)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new Us);this.group.add(v.group);var c=UT(o,t,r),f=c.from,h=c.to,p=c.line;nn(r).from=f,nn(r).to=h,r.setData(p);var d=r.get("symbol"),g=r.get("symbolSize"),y=r.get("symbolRotate"),S=r.get("symbolOffset");q(d)||(d=[d,d]),q(g)||(g=[g,g]),q(y)||(y=[y,y]),q(S)||(S=[S,S]),c.from.each(function(x){m(f,x,!0),m(h,x,!1)}),p.each(function(x){var b=p.getItemModel(x).getModel("lineStyle").getLineStyle();p.setItemLayout(x,[f.getItemLayout(x),h.getItemLayout(x)]),b.stroke==null&&(b.stroke=f.getItemVisual(x,"style").fill),p.setItemVisual(x,{fromSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(x,"symbolOffset"),fromSymbolRotate:f.getItemVisual(x,"symbolRotate"),fromSymbolSize:f.getItemVisual(x,"symbolSize"),fromSymbol:f.getItemVisual(x,"symbol"),toSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(x,"symbolOffset"),toSymbolRotate:h.getItemVisual(x,"symbolRotate"),toSymbolSize:h.getItemVisual(x,"symbolSize"),toSymbol:h.getItemVisual(x,"symbol"),style:b})}),v.updateData(p),c.line.eachItemGraphicEl(function(x){ht(x).dataModel=r,x.traverse(function(b){ht(b).dataModel=r})});function m(x,b,_){var w=x.getItemModel(b);fo(x,b,_,t,i);var A=w.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=Qn(l,"color")),x.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Rt(w.get("symbolOffset",!0),S[_?0:1]),symbolRotate:Rt(w.get("symbolRotate",!0),y[_?0:1]),symbolSize:Rt(w.get("symbolSize"),g[_?0:1]),symbol:Rt(w.get("symbol",!0),d[_?0:1]),style:A})}this.markKeep(v),v.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(gl);function UT(a,e,t){var r;a?r=$(a&&a.dimensions,function(u){var v=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},v),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var n=new re(r,t),i=new re(r,t),o=new re([],t),s=$(t.get("data"),st(FT,e,a,t));a&&(s=Gt(s,st(HT,a)));var l=jp(!!a,r);return n.initData($(s,function(u){return u[0]}),null,l),i.initData($(s,function(u){return u[1]}),null,l),o.initData($(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function $T(a){a.registerComponentModel(BT),a.registerComponentView(WT),a.registerPreprocessor(function(e){pl(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var YT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,n){return new e(t,r,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(We),on=Dt(),ZT=function(a,e,t,r){var n=r[0],i=r[1];if(!(!n||!i)){var o=Ca(a,n),s=Ca(a,i),l=o.coord,u=s.coord;l[0]=se(l[0],-1/0),l[1]=se(l[1],-1/0),u[0]=se(u[0],1/0),u[1]=se(u[1],1/0);var v=hs([{},o,s]);return v.coord=[o.coord,s.coord],v.x0=o.x,v.y0=o.y,v.x1=s.x,v.y1=s.y,v}};function Vn(a){return!isNaN(a)&&!isFinite(a)}function Lc(a,e,t,r){var n=1-a;return Vn(e[n])&&Vn(t[n])}function XT(a,e){var t=e.coord[0],r=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return jn(a,"cartesian2d")?t&&r&&(Lc(1,t,r)||Lc(0,t,r))?!0:NT(a,n,i):Da(a,n)||Da(a,i)}function Ic(a,e,t,r,n){var i=r.coordinateSystem,o=a.getItemModel(e),s,l=U(o.get(t[0]),n.getWidth()),u=U(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var v=a.getValues(["x0","y0"],e),c=a.getValues(["x1","y1"],e),f=i.clampData(v),h=i.clampData(c),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?c[0]:v[0]:p[0]=f[0]>h[0]?v[0]:c[0],t[1]==="y0"?p[1]=f[1]>h[1]?c[1]:v[1]:p[1]=f[1]>h[1]?v[1]:c[1],s=r.getMarkerPosition(p,t,!0)}else{var d=a.get(t[0],e),g=a.get(t[1],e),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(jn(i,"cartesian2d")){var S=i.getAxis("x"),m=i.getAxis("y"),d=a.get(t[0],e),g=a.get(t[1],e);Vn(d)?s[0]=S.toGlobalCoord(S.getExtent()[t[0]==="x0"?0:1]):Vn(g)&&(s[1]=m.toGlobalCoord(m.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Mc=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],qT=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,n){r.eachSeries(function(i){var o=We.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=$(Mc,function(c){return Ic(s,l,c,i,n)});s.setItemLayout(l,u);var v=s.getItemGraphicEl(l);v.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,{group:new nt});this.group.add(v.group),this.markKeep(v);var c=KT(o,t,r);r.setData(c),c.each(function(f){var h=$(Mc,function(A){return Ic(c,f,A,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),S=[p.parse(c.get("x0",f)),p.parse(c.get("x1",f))],m=[d.parse(c.get("y0",f)),d.parse(c.get("y1",f))];br(S),br(m);var x=!(g[0]>S[1]||g[1]m[1]||y[1]"],q(t)&&(t=t.slice(),u=!0);var v=r?t:u?[c(t[0]),c(t[1])]:c(t);if(lt(l))return l.replace("{value}",u?v[0]:v).replace("{value2}",u?v[1]:v);if(gt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+v[1]:t[1]===s[1]?n[1]+" "+v[0]:v[0]+" - "+v[1];return v;function c(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=e2([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,n={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Ct(i,n),Ct(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),v.call(this,o);function l(c){t2(r.color)&&!c.inRange&&(c.inRange={color:r.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,f,h){var p=c[f],d=c[h];p&&!d&&(d=c[h]={},Ec(p,function(g,y){if(Ot.isValidType(y)){var S=Jp.get(y,"inactive",s);S!=null&&(d[y]=S,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function v(c){var f=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";Ec(this.stateList,function(y){var S=this.itemSize,m=c[y];m||(m=c[y]={color:s?p:[p]}),m.symbol==null&&(m.symbol=f&&pt(f)||(s?g:[g])),m.symbolSize==null&&(m.symbolSize=h&&pt(h)||(s?S[0]:[S[0],S[0]])),m.symbol=Pc(m.symbol,function(_){return _==="none"?g:_});var x=m.symbolSize;if(x!=null){var b=-1/0;QT(x,function(_){_>b&&(b=_)}),m.symbolSize=Pc(x,function(_){return r2(_,[0,b],[0,S[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Xt),Rc=[20,140],a2=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Rc[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Rc[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):q(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=br((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=n[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:n.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=kc(this,"outOfRange",this.getExtent()),n=kc(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=n.length,v=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var n=this.visualMapModel.itemSize;return[[n[0]-r[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,n=this.visualMapModel.get("inverse");return new nt(r==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),v=this._applyTransform("left",n.mainGroup);n2([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=t[c];var h=Ie(t[c],[0,l[1]],u,!0),p=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=p/l[0],f.x=l[0]-p/2;var d=Gr(n.handleLabelPoints[c],ua(f,this.group));if(this._orient==="horizontal"){var g=v==="left"||v==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[c].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],v=this._shapes,c=v.indicator;if(c){c.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),d=Ie(t,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var S=Gr(v.indicatorLabelPoint,ua(c,this.group)),m=v.indicatorLabel;m.attr("invisible",!1);var x=this._applyTransform("left",v.mainGroup),b=this._orient,_=b==="horizontal";m.setStyle({text:(n||"")+o.formatValueText(r),verticalAlign:_?x:"middle",align:_?"center":x});var w={x:g,y:d,style:{fill:h}},A={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,T),m.animateTo(A,T)}else c.attr(w),m.attr(A);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var L=0;Lo[1]&&(c[1]=1/0),r&&(c[0]===-1/0?this._showIndicator(v,c[1],"< ",l):c[1]===1/0?this._showIndicator(v,c[0],"> ",l):this._showIndicator(v,v,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||Gc(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var p=Ey(f,h);this._dispatchHighDown("downplay",cn(p[0],n)),this._dispatchHighDown("highlight",cn(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(Tf(t.target,function(l){var u=ht(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var n=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var n=0;n=0&&(i.dimension=o,r.push(i))}}),a.getData().setVisual("visualMeta",r)}}];function f2(a,e,t,r){for(var n=e.targetVisuals[r],i=Ot.prepareVisualTypes(n),o={color:Qn(a.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),a.registerAction(u2,v2),D(c2,function(e){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,e)}),a.registerPreprocessor(h2))}function rd(a){a.registerComponentModel(a2),a.registerComponentView(s2),ed(a)}var p2=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],d2[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=pt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=$(this._pieceList,function(l){return l=pt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},n=Ot.listVisualTypes(),i=this.isCategory();D(t.pieces,function(s){D(n,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),D(r,function(s,l){var u=!1;D(this.stateList,function(v){u=u||o(t,v,l)||o(t.target,v,l)},this),!u&&D(this.stateList,function(v){(t[v]||(t[v]={}))[l]=Jp.get(l,v==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}a.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var n=this.option,i=this._pieceList,o=(r?n:t).selected||{};if(n.selected=o,D(i,function(l,u){var v=this.getSelectedMapKey(l);o.hasOwnProperty(v)||(o[v]=!0)},this),n.selectedMode==="single"){var s=!1;D(i,function(l,u){var v=this.getSelectedMapKey(l);o[v]&&(s?o[v]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=pt(t)},e.prototype.getValueState=function(t){var r=Ot.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var v=Ot.findPieceIndex(l,n);v===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var n=t.interval||[];r=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],n=["",""],i=this;function o(v,c){var f=i.getRepresentValue({interval:v});c||(c=i.getValueState(f));var h=t(f,c);v[0]===-1/0?n[0]=h:v[1]===1/0?n[1]=h:r.push({value:v[0],color:h},{value:v[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(v){var c=v.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:r,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=Jn(Nn.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Nn),d2={splitNumber:function(a){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(r[1]-r[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&a.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function Hc(a,e){var t=a.inverse;(a.orient==="vertical"?!t:t)&&e.reverse()}var g2=function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,n=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,v=this._getViewData(),c=v.endsText,f=se(r.get("showLabel",!0),!c),h=!r.get("selectedMode");c&&this._renderEndsText(t,c[0],u,f,l),D(v.viewPieceList,function(p){var d=p.piece,g=new nt;g.onclick=at(this._onItemClick,this,d),this._enableHoverLink(g,p.indexInModelPieceList);var y=r.getRepresentValue(d);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],h),f){var S=this.visualMapModel.getValueState(y);g.add(new St({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:S==="outOfRange"?.5:1},silent:h}))}t.add(g)},this),c&&this._renderEndsText(t,c[1],u,f,l),Ry(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:cn(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return td(t,this.api,t.itemSize);var n=r.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,r,n,i,o){if(r){var s=new nt,l=this.visualMapModel.textStyleModel;s.add(new St({style:At(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=$(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():n&&(n=n.slice().reverse()),{viewPieceList:r,endsText:n}},e.prototype._createItemSymbol=function(t,r,n,i){var o=ve(this.getControllerVisual(r,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(r,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var r=this.visualMapModel,n=r.option,i=n.selectedMode;if(i){var o=pt(n.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Qp);function ad(a){a.registerComponentModel(p2),a.registerComponentView(g2),ed(a)}function y2(a){it(rd),it(ad)}var m2={label:{enabled:!0},decal:{show:!1}},Wc=Dt(),S2={};function x2(a,e){var t=a.getModel("aria");if(!t.get("enabled"))return;var r=pt(m2);Ct(r.label,a.getLocaleModel().get("aria"),!1),Ct(t.option,r,!1),n(),i();function n(){var u=t.getModel("decal"),v=u.get("show");if(v){var c=ut();a.eachSeries(function(f){if(!f.isColorBySeries()){var h=c.get(f.type);h||(h={},c.set(f.type,h)),Wc(f).scope=h}}),a.eachRawSeries(function(f){if(a.isSeriesFiltered(f))return;if(gt(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var S=bo(f.ecModel,f.name,S2,a.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",x(m,S))}else{var p=f.getRawData(),d={},g=Wc(f).scope;h.each(function(b){var _=h.getRawIndex(b);d[_]=b});var y=p.count();p.each(function(b){var _=d[b],w=p.getName(b)||b+"",A=bo(f.ecModel,w,g,y),T=h.getItemVisual(_,"decal");h.setItemVisual(_,"decal",x(T,A))})}function x(b,_){var w=b?K(K({},_),b):_;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var v=a.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=ot(c.option,v),!!c.get("enabled")){if(u.setAttribute("role","img"),c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var f=a.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,d=Math.min(f,p),g;if(!(f<1)){var y=s();if(y){var S=c.get(["general","withTitle"]);g=o(S,{title:y})}else g=c.get(["general","withoutTitle"]);var m=[],x=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(x,{seriesCount:f}),a.eachSeries(function(A,T){if(T1?c.get(["series","multiple",M]):c.get(["series","single",M]),C=o(C,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var I=A.getData();if(I.count()>h){var P=c.get(["data","partialData"]);C+=o(P,{displayCnt:h})}else C+=c.get(["data","allData"]);for(var E=c.get(["data","separator","middle"]),R=c.get(["data","separator","end"]),k=c.get(["data","excludeDimensionId"]),N=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},w2=function(){function a(e){var t=this._condVal=lt(e)?new RegExp(e):Vy(e)?e:null;if(t==null){var r="";It(r)}}return a.prototype.evaluate=function(e){var t=typeof e;return lt(t)?this._condVal.test(e):le(t)?this._condVal.test(e+""):!1},a}(),A2=function(){function a(){}return a.prototype.evaluate=function(){return this.value},a}(),T2=function(){function a(){}return a.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(n),n=[I,P]}function v(I,P,E,R){zr(I,E)&&zr(P,R)||n.push(I,P,E,R,E,R)}function c(I,P,E,R,k,N){var F=Math.abs(P-I),H=Math.tan(F/4)*4/3,X=PA:L2&&r.push(n),r}function ns(a,e,t,r,n,i,o,s,l,u){if(zr(a,t)&&zr(e,r)&&zr(n,o)&&zr(i,s)){l.push(o,s);return}var v=2/u,c=v*v,f=o-a,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var d=t-a,g=r-e,y=n-o,S=i-s,m=d*d+g*g,x=y*y+S*S;if(m=0&&A=0){l.push(o,s);return}var T=[],C=[];Sn(a,t,n,o,.5,T),Sn(e,r,i,s,.5,C),ns(T[0],C[0],T[1],C[1],T[2],C[2],T[3],C[3],l,u),ns(T[4],C[4],T[5],C[5],T[6],C[6],T[7],C[7],l,u)}function O2(a,e){var t=as(a),r=[];e=e||1;for(var n=0;n0)for(var u=0;uMath.abs(u),c=id([l,u],v?0:1,e),f=(v?s:u)/c.length,h=0;hn,o=id([r,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",v=i?"y":"x",c=a[s]/o.length,f=0;f1?null:new mt(d*l+a,d*u+e)}function H2(a,e,t){var r=new mt;mt.sub(r,t,e),r.normalize();var n=new mt;mt.sub(n,a,e);var i=n.dot(r);return i}function Mr(a,e){var t=a[a.length-1];t&&t[0]===e[0]&&t[1]===e[1]||a.push(e)}function W2(a,e,t){for(var r=a.length,n=[],i=0;io?(u.x=v.x=s+i/2,u.y=l,v.y=l+o):(u.y=v.y=l+o/2,u.x=s,v.x=s+i),W2(e,u,v)}function zn(a,e,t,r){if(t===1)r.push(e);else{var n=Math.floor(t/2),i=a(e);zn(a,i[0],n,r),zn(a,i[1],t-n,r)}return r}function U2(a,e){for(var t=[],r=0;r0;u/=2){var v=0,c=0;(a&u)>0&&(v=1),(e&u)>0&&(c=1),s+=u*u*(3*v^c),c===0&&(v===1&&(a=u-1-a,e=u-1-e),l=a,a=e,e=l)}return s}function Bn(a){var e=1/0,t=1/0,r=-1/0,n=-1/0,i=$(a,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),v=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return e=Math.min(v,e),t=Math.min(c,t),r=Math.max(v,r),n=Math.max(c,n),[v,c]}),o=$(i,function(s,l){return{cp:s,z:Q2(s[0],s[1],e,t,r,n),path:a[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function ld(a){return Z2(a.path,a.count)}function is(){return{fromIndividuals:[],toIndividuals:[],count:0}}function tC(a,e,t){var r=[];function n(b){for(var _=0;_=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var rC={clone:function(a){for(var e=[],t=1-Math.pow(1-a.path.style.opacity,1/a.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,v;Jc(a)&&(u=a,v=e),Jc(e)&&(u=e,v=a);function c(y,S,m,x,b){var _=y.many,w=y.one;if(_.length===1&&!b){var A=S?_[0]:w,T=S?w:_[0];if(Gn(A))c({many:[A],one:T},!0,m,x,!0);else{var C=s?ot({delay:s(m,x)},l):l;ml(A,T,C),i(A,T,A,T,C)}}else for(var L=ot({dividePath:rC[t],individualDelay:s&&function(k,N,F,H){return s(k+m,x)}},l),M=S?tC(_,w,L):eC(w,_,L),I=M.fromIndividuals,P=M.toIndividuals,E=I.length,R=0;Re.length,h=u?Qc(v,u):Qc(f?e:a,[f?a:e]),p=0,d=0;dud))for(var i=r.getIndices(),o=0;o0&&_.group.traverse(function(A){A instanceof Wt&&!A.animators.length&&A.animateFrom({style:{opacity:0}},w)})})}function nf(a){var e=a.getModel("universalTransition").get("seriesKey");return e||a.id}function of(a){return q(a)?a.sort().join(","):a}function Xe(a){if(a.hostModel)return a.hostModel.getModel("universalTransition").get("divideShape")}function uC(a,e){var t=ut(),r=ut(),n=ut();return D(a.oldSeries,function(i,o){var s=a.oldDataGroupIds[o],l=a.oldData[o],u=nf(i),v=of(u);r.set(v,{dataGroupId:s,data:l}),q(u)&&D(u,function(c){n.set(c,{key:v,dataGroupId:s,data:l})})}),D(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=nf(i),u=of(l),v=r.get(u);if(v)t.set(u,{oldSeries:[{dataGroupId:v.dataGroupId,divide:Xe(v.data),data:v.data}],newSeries:[{dataGroupId:o,divide:Xe(s),data:s}]});else if(q(l)){var c=[];D(l,function(p){var d=r.get(p);d.data&&c.push({dataGroupId:d.dataGroupId,divide:Xe(d.data),data:d.data})}),c.length&&t.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Xe(s)}]})}else{var f=n.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Xe(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Xe(s)})}}}}),t}function sf(a,e){for(var t=0;t=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Xe(e.oldData[s]),groupIdDim:o.dimension})}),D(Jt(a.to),function(o){var s=sf(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Xe(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&vd(n,i,r)}function cC(a){a.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){D(Jt(r.seriesTransition),function(n){D(Jt(n.to),function(i){for(var o=r.updatedSeries,s=0;s"u"?G:getComputedStyle(document.documentElement).getPropertyValue(O).trim()||G}const v=me(""),c=me("");let f=null;function h(){const O=new Date;c.value=`${O.getFullYear()}-${String(O.getMonth()+1).padStart(2,"0")}-${String(O.getDate()).padStart(2,"0")}`,v.value=`${String(O.getHours()).padStart(2,"0")}:${String(O.getMinutes()).padStart(2,"0")}:${String(O.getSeconds()).padStart(2,"0")}`}h();const p=me("success"),d=Yt(()=>`is-${p.value}`),g=Yt(()=>p.value==="success"?"已连接":p.value==="warning"?"高延迟":"断连"),y=Yt(()=>n.value.filter(O=>O.state!=="offline").length),S=Yt(()=>i.value.filter(O=>O.status==="running"||O.status==="assigned").length),m=Yt(()=>[{key:"platform-config",label:"平台配置",icon:Ad,primary:!0,hint:"进入地图编辑 / 平台搭建(map-editor)",to:"/admin/map-editor"},{key:"mission",label:"任务编排",icon:ci,to:"/admin/task-templates"},{key:"cars",label:"AGV 配置",icon:_l,to:"/admin/cars"},{key:"auth",label:"权限配置",icon:Td,to:"/admin/config/system-center?tab=auth"},{key:"system",label:"系统配置",icon:Cd,to:"/admin/config/system-center?tab=system"},{key:"ops",label:"异常处理",icon:Dd,to:"/admin/config/ops-center?tab=ops"},{key:"tasks",label:"任务管理",icon:Ld,to:"/admin/config/strategy?tab=task"},{key:"add",label:"添加",icon:Id,hint:"自定义快捷入口(待实现)",action:()=>{Md.info("自定义快捷入口 — 即将在 v1.8 中开放")}}]);function x(O){O.action?O.action():O.to&&e.push(O.to)}function b(O,G=16){const J=[];let Y=50+O*7%30;for(let vt=0;vt`${ft===0?"M":"L"}${(ft*et).toFixed(2)},${(Q-vt/100*Q*.85-Q*.05).toFixed(2)}`).join(" "),ct=`${B} L${W},${Q} L0,${Q} Z`;return{line:B,area:ct}}const _=Yt(()=>Math.max(12,Math.round(t.value.length*.7))),w=Yt(()=>Math.max(6,Math.round(n.value.length*.27))),A=Yt(()=>Math.max(265,t.value.length*12)),T=Yt(()=>Math.max(10,Math.round(A.value*.04)));function C(O,G){if(O===0&&G===0)return{dir:"flat",arrow:"→",text:"0%"};const J=G-O;if(Math.abs(J)<.5)return{dir:"flat",arrow:"→",text:"0%"};const Y=O===0?100:Math.round(J/O*100);return J>0?{dir:"up",arrow:"↑",text:`${Y}%`}:{dir:"down",arrow:"↓",text:`${Math.abs(Y)}%`}}const L=Yt(()=>[{key:"devices",label:"设备数",value:n.value.length,icon:Pd,tone:"info",trend:C(n.value.length-2,n.value.length)},{key:"sites",label:"工作站数",value:t.value.length,icon:Ed,tone:"success",trend:C(t.value.length-1,t.value.length)},{key:"shelves",label:"货架数",value:_.value,icon:Rd,tone:"info",trend:C(_.value-5,_.value)},{key:"charger",label:"充电桩数",value:w.value,icon:kd,tone:"warning",trend:{dir:"flat",arrow:"→",text:"0%"}},{key:"used",label:"已用储位数",value:A.value,icon:ci,tone:"success",trend:C(A.value-12,A.value)},{key:"free",label:"空余储位数",value:T.value,icon:ci,tone:"idle",trend:C(T.value+3,T.value)}].map((G,J)=>{const Y=b(J+1);return{...G,sparkLine:Y.line,sparkArea:Y.area}})),M=Yt(()=>{const O=i.value.length||1,G={货架交接:{pct:0,tone:"info"},"搬运/落位":{pct:0,tone:"success"},"Z1 任务":{pct:0,tone:"warning"},其他:{pct:0,tone:"idle"}};i.value.forEach(Y=>{const W=Y.typeName??"";W.includes("shelf")||W.includes("货架")?G.货架交接.pct++:W.includes("move")||W.includes("搬运")||W.includes("落位")?G["搬运/落位"].pct++:W.includes("z1")||W.includes("Z1")?G["Z1 任务"].pct++:G.其他.pct++});let J=Object.entries(G).map(([Y,W])=>({name:Y,pct:Math.round(W.pct/O*100),tone:W.tone}));return J.every(Y=>Y.pct===0)&&(J=[{name:"货架交接",pct:45,tone:"info"},{name:"搬运/落位",pct:15,tone:"success"},{name:"Z1 任务",pct:15,tone:"warning"},{name:"其他",pct:25,tone:"idle"}]),J}),I=Yt(()=>n.value.length===0),P=Yt(()=>{const O=n.value.length||12,G={idle:0,running:0,charging:0,paused:0,fault:0,offline:0};n.value.forEach(Y=>{G[Y.state]=(G[Y.state]??0)+1});const J=I.value;return[{key:"running",label:"执行中",value:J?Math.round(O*.45):G.running,color:u("--mg-status-info","#3b82f6")},{key:"idle",label:"空闲",value:J?Math.round(O*.3):G.idle,color:u("--mg-status-success","#22c55e")},{key:"charging",label:"充电中",value:J?Math.round(O*.1):G.charging,color:u("--mg-status-warning","#f59e0b")},{key:"paused",label:"已暂停",value:J?Math.round(O*.05):G.paused,color:u("--mg-status-idle","#94a3b8")},{key:"fault",label:"故障",value:J?Math.round(O*.05):G.fault,color:u("--mg-status-danger","#ef4444")},{key:"offline",label:"离线",value:J?Math.round(O*.05):G.offline,color:u("--mg-text-faint","#a8a0c0")}]}),E=Yt(()=>P.value.reduce((O,G)=>O+G.value,0)),R=Yt(()=>{const O=new Date,G=[];for(let J=287;J>=0;J--){const Y=O.getTime()-J*5*60*1e3,W=J/288*Math.PI*4,Q=Math.round(8+Math.sin(W)*5+Math.cos(W*1.3)*3+(Math.random()*2-1)),et=Math.round(3+Math.sin(W*1.7)*2+Math.cos(W*.6)*1.5+(Math.random()*1-.5));G.push([Y,Math.max(0,Q),Math.max(0,et)])}return G});function k(){const O=new Date(Date.now()-Math.random()*1e3*60*60*6);return`${String(O.getHours()).padStart(2,"0")}:${String(O.getMinutes()).padStart(2,"0")}`}const N=me([{name:"alarm",label:"故障告警",count:0,tone:"danger"},{name:"abnTask",label:"异常任务",count:4,tone:"warning",items:[{text:"AGV-021 路径阻塞 · 等待解锁",time:k()},{text:"M-1024 调度超时",time:k()},{text:"M-1027 取货失败",time:k()},{text:"搬运任务 #913 因充电中断",time:k()}]},{name:"comm",label:"通信异常",count:0,tone:"info"},{name:"server",label:"服务器报警",count:2,tone:"warning",items:[{text:"SimpleScheduler · CPU 持续 85%",time:k()},{text:"WebAPI · 90% 内存使用率",time:k()}]}]),F=Yt(()=>N.value.filter(O=>O.tone==="danger"||O.tone==="warning").reduce((O,G)=>O+G.count,0));let H=null;function X(){if(!o.value)return;H?.dispose(),H=Wl(o.value,void 0,{renderer:"canvas"});const O=u("--mg-status-info","#3b82f6"),G=u("--mg-status-success","#22c55e"),J=u("--mg-text-muted","#606266"),Y=u("--mg-divider","rgba(255,255,255,0.08)"),W=R.value;H.setOption({backgroundColor:"transparent",grid:{left:36,right:16,top:22,bottom:28},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{type:"dashed",color:J}},formatter:Q=>{const et=Q,B=new Date(et[0].value[0]),ct=`${String(B.getHours()).padStart(2,"0")}:${String(B.getMinutes()).padStart(2,"0")}`;return et.map(vt=>` ${vt.seriesName}: ${vt.value[1]}`).join("
")+`
${ct}`}},legend:{show:!1},xAxis:{type:"time",axisLine:{lineStyle:{color:Y}},axisLabel:{color:J,fontSize:11,formatter:Q=>{const et=new Date(Q);return`${String(et.getHours()).padStart(2,"0")}:00`}},splitLine:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:J,fontSize:11,fontFamily:"JetBrains Mono, monospace"},splitLine:{lineStyle:{color:Y,type:"dashed"}}},series:[{name:"已完成",type:"line",smooth:!0,showSymbol:!1,data:W.map(Q=>[Q[0],Q[1]]),lineStyle:{width:2,color:G},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`${G}55`},{offset:1,color:`${G}00`}]}},itemStyle:{color:G}},{name:"执行中",type:"line",smooth:!0,showSymbol:!1,data:W.map(Q=>[Q[0],Q[2]]),lineStyle:{width:2,color:O},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`${O}55`},{offset:1,color:`${O}00`}]}},itemStyle:{color:O}}]})}let j=null;function rt(){if(!s.value)return;j?.dispose(),j=Wl(s.value,void 0,{renderer:"canvas"});const O=u("--mg-text-light","#1a0f3d"),J=!O.startsWith("rgba(255")&&O.toLowerCase()!=="#fff"&&O.toLowerCase()!=="#ffffff"?"#ffffff":"rgba(28,14,62,0.95)",Y=P.value;j.setOption({backgroundColor:"transparent",tooltip:{trigger:"item",formatter:"{b}: {c} 台 ({d}%)"},color:Y.map(W=>W.color),series:[{name:"AGV 状态",type:"pie",radius:["62%","88%"],center:["50%","50%"],avoidLabelOverlap:!1,itemStyle:{borderColor:J,borderWidth:2,borderRadius:3},emphasis:{itemStyle:{shadowBlur:12,shadowColor:"rgba(124, 58, 237, 0.30)"},scale:!0,scaleSize:4},label:{show:!1},labelLine:{show:!1},data:Y.map(W=>({name:W.label,value:W.value}))}]})}function tt(){H?.resize(),j?.resize()}return fd(async()=>{[t.value,r.value,n.value,i.value]=await Promise.all([Ky(),jy(),Jy(),Qy()]),r.value,await hd(),X(),rt(),window.addEventListener("resize",tt),f=setInterval(h,1e3)}),pd(()=>{window.removeEventListener("resize",tt),f&&clearInterval(f),H?.dispose(),H=null,j?.dispose(),j=null}),(O,G)=>{const J=yd,Y=dd,W=wd,Q=bd,et=xd;return bt(),Lt("div",fC,[z("section",hC,[z("div",pC,[z("span",{class:Se(["status-conn",p.value])},[z("span",{class:Se(["mg-live-dot",d.value])},null,2),z("span",null,yt(g.value),1)],2),G[4]||(G[4]=z("span",{class:"status-divider"},null,-1)),z("span",dC,[G[1]||(G[1]=z("span",{class:"status-stat-label"},"在线 AGV",-1)),z("span",gC,[$e(yt(y.value)+" ",1),z("span",yC,"/ "+yt(n.value.length||"—"),1)])]),G[5]||(G[5]=z("span",{class:"status-divider"},null,-1)),z("span",mC,[G[2]||(G[2]=z("span",{class:"status-stat-label"},"告警",-1)),z("span",{class:Se(["status-stat-value mg-num",{"is-danger":F.value>0}])},yt(F.value),3)]),G[6]||(G[6]=z("span",{class:"status-divider"},null,-1)),z("span",SC,[G[3]||(G[3]=z("span",{class:"status-stat-label"},"活跃任务",-1)),z("span",xC,yt(S.value),1)])]),z("div",bC,[z("span",_C,[z("span",wC,yt(c.value),1),z("span",AC,yt(v.value),1)])])]),z("section",TC,[G[13]||(G[13]=z("div",{class:"hero-bg","aria-hidden":"true"},[z("div",{class:"hero-orb hero-orb-a"}),z("div",{class:"hero-orb hero-orb-b"}),z("div",{class:"hero-grid"})],-1)),z("div",CC,[G[7]||(G[7]=z("div",{class:"hero-tag"},[z("span",{class:"tag-dot"}),z("span",null,"智能调度 · 一站式平台")],-1)),G[8]||(G[8]=z("h1",{class:"hero-title"},"迷毂智能调度平台",-1)),G[9]||(G[9]=z("p",{class:"hero-desc"},"以下是系统快捷入口,也可以通过点击「添加」功能进行调整",-1)),z("div",DC,[(bt(!0),Lt(Ye,null,Ze(m.value,(B,ct)=>(bt(),Lt("button",{key:B.key,class:Se(["quick-item",{primary:B.primary}]),style:ui({animationDelay:`${ct*60}ms`}),title:B.hint??B.label,onClick:vt=>x(B)},[z("span",IC,[$t(J,{size:22},{default:Ht(()=>[(bt(),vi(bl(B.icon)))]),_:2},1024)]),z("span",MC,yt(B.label),1)],14,LC))),128))])]),z("div",PC,[G[12]||(G[12]=z("div",{class:"hero-glow"},null,-1)),(bt(),Lt("svg",EC,[G[10]||(G[10]=xl('',4)),z("g",RC,[(bt(),Lt(Ye,null,Ze(4,B=>z("g",{key:`shelf-${B}`},[z("rect",{x:140+(B-1)*60,y:"130",width:"40",height:"70",rx:"3",fill:"url(#boxGrad2)",opacity:"0.85"},null,8,kC),z("rect",{x:146+(B-1)*60,y:"138",width:"28",height:"6",fill:"rgba(255,255,255,0.18)"},null,8,VC),z("rect",{x:146+(B-1)*60,y:"152",width:"28",height:"6",fill:"rgba(255,255,255,0.12)"},null,8,NC),z("rect",{x:146+(B-1)*60,y:"166",width:"28",height:"6",fill:"rgba(255,255,255,0.10)"},null,8,zC),z("rect",{x:146+(B-1)*60,y:"180",width:"28",height:"6",fill:"rgba(255,255,255,0.08)"},null,8,GC)])),64))]),G[11]||(G[11]=xl('AGV-021 · 92%SHELF-A03 · OK',7))]))])]),z("section",OC,[(bt(!0),Lt(Ye,null,Ze(L.value,B=>(bt(),Lt("div",{class:"bento bento-kpi",key:B.key},[z("div",{class:Se(["kpi-accent",`tone-${B.tone}`])},null,2),z("div",BC,[z("div",FC,[$t(J,{size:18,class:Se(["kpi-icon-sm",`tone-${B.tone}`])},{default:Ht(()=>[(bt(),vi(bl(B.icon)))]),_:2},1032,["class"]),z("span",HC,yt(B.label),1)]),z("div",WC,[z("span",UC,yt(B.value),1),z("span",{class:Se(["kpi-trend",`trend-${B.trend.dir}`])},[z("span",$C,yt(B.trend.arrow),1),z("span",YC,yt(B.trend.text),1)],2)])]),(bt(),Lt("svg",ZC,[z("defs",null,[z("linearGradient",{id:`spark-grad-${B.key}`,x1:"0",y1:"0",x2:"0",y2:"1"},[z("stop",{offset:"0%","stop-color":B.tone==="danger"?"var(--mg-status-danger)":B.tone==="warning"?"var(--mg-status-warning)":"var(--mg-primary-hover)","stop-opacity":"0.50"},null,8,qC),z("stop",{offset:"100%","stop-color":B.tone==="danger"?"var(--mg-status-danger)":B.tone==="warning"?"var(--mg-status-warning)":"var(--mg-primary-hover)","stop-opacity":"0"},null,8,KC)],8,XC)]),z("path",{d:B.sparkArea,fill:`url(#spark-grad-${B.key})`},null,8,jC),z("path",{d:B.sparkLine,fill:"none","stroke-width":"1.5",stroke:B.tone==="danger"?"var(--mg-status-danger)":B.tone==="warning"?"var(--mg-status-warning)":"var(--mg-primary-hover)"},null,8,JC)]))]))),128)),$t(Y,{shadow:"never",class:"bento bento-trend"},{header:Ht(()=>[z("div",QC,[z("span",tD,[$t(J,null,{default:Ht(()=>[$t(Oa(md))]),_:1}),G[14]||(G[14]=$e(" 24h 任务趋势 ",-1))]),G[15]||(G[15]=z("span",{class:"card-tip mg-num"},"最近 24 小时 · 5 分钟粒度",-1))])]),default:Ht(()=>[z("div",{ref_key:"trendChartRef",ref:o,class:"trend-chart"},null,512)]),_:1}),$t(Y,{shadow:"never",class:"bento bento-agv"},{header:Ht(()=>[z("div",eD,[z("span",rD,[$t(J,null,{default:Ht(()=>[$t(Oa(_l))]),_:1}),G[16]||(G[16]=$e(" AGV 状态分布 ",-1))]),z("span",aD,[$e(yt(E.value)+" 台",1),I.value?(bt(),Lt("span",nD,"·示例")):wl("",!0)])])]),default:Ht(()=>[z("div",iD,[z("div",oD,[z("div",{ref_key:"agvChartRef",ref:s,class:"agv-chart"},null,512),z("div",sD,[z("div",lD,yt(E.value),1),G[17]||(G[17]=z("div",{class:"agv-center-label"},"总台数",-1))])]),z("ul",uD,[(bt(!0),Lt(Ye,null,Ze(P.value,B=>(bt(),Lt("li",{key:B.key},[z("span",{class:"dot",style:ui({background:B.color})},null,4),z("span",vD,yt(B.label),1),z("span",cD,yt(B.value),1),z("span",fD,yt(E.value>0?Math.round(B.value/E.value*100):0)+"%",1)]))),128))])])]),_:1}),$t(Y,{shadow:"never",class:"bento bento-ratio"},{header:Ht(()=>[z("div",hD,[z("span",pD,[$t(J,null,{default:Ht(()=>[$t(Oa(Sd))]),_:1}),G[18]||(G[18]=$e(" 各任务占比 ",-1))]),z("span",dD,"总计 "+yt(i.value.length)+" 个任务",1)])]),default:Ht(()=>[z("div",gD,[(bt(!0),Lt(Ye,null,Ze(M.value,B=>(bt(),Lt("span",{key:B.name,class:Se(["ratio-seg",`tone-${B.tone}`]),style:ui({width:`${B.pct}%`}),title:`${B.name} ${B.pct}%`},[B.pct>=8?(bt(),Lt("span",mD,yt(B.pct)+"%",1)):wl("",!0)],14,yD))),128))]),z("ul",SD,[(bt(!0),Lt(Ye,null,Ze(M.value,B=>(bt(),Lt("li",{key:B.name},[z("span",{class:Se(["dot",`tone-${B.tone}`])},null,2),z("span",xD,yt(B.name),1),z("span",bD,yt(B.pct)+"%",1)]))),128))])]),_:1}),$t(Y,{shadow:"never",class:"bento bento-todo"},{header:Ht(()=>[z("div",_D,[z("span",wD,[$t(J,null,{default:Ht(()=>[$t(Oa(_d))]),_:1}),G[19]||(G[19]=$e(" 待办事项 ",-1))]),$t(W,{class:"more-link",underline:"never"},{default:Ht(()=>[...G[20]||(G[20]=[$e("详情 ›",-1)])]),_:1})])]),default:Ht(()=>[$t(et,{modelValue:l.value,"onUpdate:modelValue":G[0]||(G[0]=B=>l.value=B),class:"todo-tabs"},{default:Ht(()=>[(bt(!0),Lt(Ye,null,Ze(N.value,B=>(bt(),vi(Q,{key:B.name,name:B.name},{label:Ht(()=>[z("span",AD,[$e(yt(B.label)+" ",1),z("em",{class:Se(["tab-count",B.tone])},yt(B.count),3)])]),default:Ht(()=>[B.count===0?(bt(),Lt("div",TD,[...G[21]||(G[21]=[z("svg",{width:"120",height:"80",viewBox:"0 0 120 80",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[z("defs",null,[z("linearGradient",{id:"empGrad",x1:"0",y1:"0",x2:"1",y2:"1"},[z("stop",{offset:"0%","stop-color":"var(--mg-primary-hover)"}),z("stop",{offset:"100%","stop-color":"var(--mg-primary-active)"})])]),z("ellipse",{cx:"60",cy:"68",rx:"40",ry:"6",fill:"rgba(var(--mg-accent-rgb),0.15)"}),z("rect",{x:"34",y:"28",width:"52",height:"32",rx:"4",fill:"url(#empGrad)",opacity:"0.8"}),z("rect",{x:"40",y:"34",width:"40",height:"3",rx:"1.5",fill:"rgba(255,255,255,0.4)"}),z("rect",{x:"40",y:"42",width:"30",height:"3",rx:"1.5",fill:"rgba(255,255,255,0.30)"}),z("rect",{x:"40",y:"50",width:"36",height:"3",rx:"1.5",fill:"rgba(255,255,255,0.20)"}),z("circle",{cx:"80",cy:"22",r:"6",fill:"var(--mg-accent)",opacity:"0.85"}),z("path",{d:"M77 22h6M80 19v6",stroke:"var(--mg-bg-aside-2)","stroke-width":"1.5","stroke-linecap":"round"})],-1),z("p",null,"暂无数据",-1)])])):(bt(),Lt("ul",CD,[(bt(!0),Lt(Ye,null,Ze(B.items??[],(ct,vt)=>(bt(),Lt("li",{key:vt},[z("span",{class:Se(["todo-pill",B.tone])},yt(B.label),3),z("span",DD,yt(ct.text),1),z("span",LD,yt(ct.time),1)]))),128))]))]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])]),_:1})])])}}}),GD=Vd(ID,[["__scopeId","data-v-1b654847"]]);export{GD as default}; diff --git a/MiGu.Server/wwwroot/assets/DashboardView-hw3Lq69B.css b/MiGu.Server/wwwroot/assets/DashboardView-hw3Lq69B.css new file mode 100644 index 0000000..4de1667 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/DashboardView-hw3Lq69B.css @@ -0,0 +1 @@ +.dashboard[data-v-1b654847]{padding:0;display:flex;flex-direction:column;gap:18px}.dashboard[data-v-1b654847]>*{flex-shrink:0}.hero-banner[data-v-1b654847]{position:relative;display:grid;grid-template-columns:1fr 480px;gap:24px;padding:28px 32px 22px;overflow:hidden;border-radius:18px;background:radial-gradient(ellipse at 0% 0%,rgba(var(--mg-primary-hover-rgb),.5) 0%,transparent 55%),radial-gradient(ellipse at 100% 100%,rgba(var(--mg-accent-rgb),.45) 0%,transparent 55%),linear-gradient(135deg,var(--mg-bg-aside-1) 0%,var(--mg-bg-aside-2) 100%);border:1px solid rgba(var(--mg-accent-rgb),.3);box-shadow:0 18px 44px #0006,0 0 0 1px #ffffff0f inset,0 1px #ffffff2e inset;color:#fff}.hero-banner[data-v-1b654847]:before{content:"";position:absolute;top:0;left:12%;right:12%;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(var(--mg-accent-rgb),.8) 50%,transparent 100%);pointer-events:none;z-index:2}.hero-bg[data-v-1b654847]{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:18px}.hero-orb[data-v-1b654847]{position:absolute;border-radius:50%;filter:blur(80px);opacity:.55;animation:hero-drift-1b654847 18s ease-in-out infinite}.hero-orb-a[data-v-1b654847]{width:360px;height:360px;top:-120px;left:10%;background:radial-gradient(circle,rgba(var(--mg-accent-rgb),.85) 0%,rgba(var(--mg-primary-rgb),.85) 55%,transparent 85%)}.hero-orb-b[data-v-1b654847]{width:320px;height:320px;bottom:-120px;right:22%;background:radial-gradient(circle,rgba(var(--mg-primary-hover-rgb),.8) 0%,rgba(var(--mg-primary-rgb),.55) 55%,transparent 85%);animation-delay:-7s;opacity:.5}.hero-grid[data-v-1b654847]{position:absolute;inset:0;background-image:linear-gradient(rgba(var(--mg-accent-rgb),.07) 1px,transparent 1px),linear-gradient(90deg,rgba(var(--mg-accent-rgb),.07) 1px,transparent 1px);background-size:36px 36px;mask-image:radial-gradient(ellipse at center,rgba(0,0,0,.85) 0%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse at center,rgba(0,0,0,.85) 0%,transparent 75%);opacity:.55}@keyframes hero-drift-1b654847{0%,to{transform:translate(0) scale(1)}50%{transform:translate(24px,-28px) scale(1.06)}}.hero-left[data-v-1b654847],.hero-right[data-v-1b654847]{position:relative;z-index:1}.hero-tag[data-v-1b654847]{display:inline-flex;align-items:center;gap:8px;padding:5px 14px;background:#ffffff1f;border:1px solid rgba(var(--mg-accent-rgb),.55);border-radius:999px;color:#fff;font-size:12px;letter-spacing:1.5px;width:max-content;box-shadow:0 0 12px rgba(var(--mg-primary-rgb),.3)}.tag-dot[data-v-1b654847]{width:6px;height:6px;border-radius:50%;background:var(--mg-accent);box-shadow:0 0 10px var(--mg-accent);animation:tag-pulse-1b654847 1.6s ease-in-out infinite}@keyframes tag-pulse-1b654847{0%,to{opacity:.6;transform:scale(.85)}50%{opacity:1;transform:scale(1.15)}}.hero-title[data-v-1b654847]{margin:14px 0 8px;font-size:40px;font-weight:700;letter-spacing:5px;line-height:1.1;color:#fff;background:linear-gradient(135deg,#ffffff 0%,var(--mg-accent) 50%,#ffffff 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 4px 20px rgba(var(--mg-primary-rgb),.6);filter:drop-shadow(0 2px 8px rgba(0,0,0,.5))}.hero-desc[data-v-1b654847]{margin:0 0 22px;color:#ffffffd9;font-size:13px;letter-spacing:.8px}.quick-grid[data-v-1b654847]{display:grid;grid-template-columns:repeat(4,1fr);gap:14px 18px;max-width:540px}.quick-item[data-v-1b654847]{appearance:none;background:#ffffff14;border:1px solid rgba(var(--mg-accent-rgb),.35);border-radius:14px;padding:14px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;color:#fff;transition:all .25s cubic-bezier(.25,.8,.25,1);position:relative;overflow:hidden;animation:quick-in-1b654847 .5s ease-out backwards;box-shadow:0 4px 12px #00000040,0 0 0 1px #ffffff0f inset}@keyframes quick-in-1b654847{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.quick-item[data-v-1b654847]:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 30%,rgba(var(--mg-accent-rgb),.15) 100%);opacity:0;transition:opacity .25s}.quick-item[data-v-1b654847]:hover{border-color:rgba(var(--mg-accent-rgb),.75);background:#ffffff24;color:#fff;transform:translateY(-3px);box-shadow:0 12px 28px rgba(var(--mg-primary-rgb),.45),0 0 22px rgba(var(--mg-accent-rgb),.4)}.quick-item[data-v-1b654847]:hover:before{opacity:1}.quick-icon[data-v-1b654847]{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,rgba(var(--mg-primary-hover-rgb),.6),rgba(var(--mg-primary-rgb),.45));border:1px solid rgba(var(--mg-accent-rgb),.55);display:inline-flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 6px 16px rgba(var(--mg-primary-rgb),.4),0 0 0 1px #ffffff2e inset;transition:all .25s}.quick-item:hover .quick-icon[data-v-1b654847]{background:linear-gradient(135deg,var(--mg-primary-hover) 0%,var(--mg-primary) 100%);box-shadow:0 10px 24px rgba(var(--mg-primary-rgb),.6),0 0 24px rgba(var(--mg-accent-rgb),.6),0 0 0 1px #ffffff59 inset}.quick-label[data-v-1b654847]{font-size:13px;font-weight:500;letter-spacing:1.2px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4)}.quick-item.primary[data-v-1b654847]{border-color:rgba(var(--mg-accent-rgb),.75);background:linear-gradient(135deg,rgba(var(--mg-primary-hover-rgb),.45),rgba(var(--mg-primary-rgb),.25));box-shadow:0 8px 22px rgba(var(--mg-primary-rgb),.45),0 0 0 1px rgba(var(--mg-accent-rgb),.45) inset}.quick-item.primary .quick-icon[data-v-1b654847]{background:linear-gradient(135deg,var(--mg-accent) 0%,var(--mg-primary-hover) 60%,var(--mg-primary) 100%);box-shadow:0 8px 20px rgba(var(--mg-primary-rgb),.55),0 0 28px rgba(var(--mg-accent-rgb),.55),0 0 0 1px #ffffff4d inset;animation:mg-pulse-glow 3.6s ease-in-out infinite}.hero-right[data-v-1b654847]{position:relative;align-self:stretch;min-height:280px;display:flex;align-items:center;justify-content:center}.hero-glow[data-v-1b654847]{position:absolute;inset:10% 5%;background:radial-gradient(ellipse at 30% 40%,rgba(var(--mg-primary-hover-rgb),.55) 0%,transparent 60%),radial-gradient(ellipse at 70% 60%,rgba(var(--mg-accent-rgb),.3) 0%,transparent 65%);filter:blur(36px);pointer-events:none}.hero-scene[data-v-1b654847]{position:relative;width:100%;height:auto;max-height:320px;filter:drop-shadow(0 12px 32px rgba(var(--mg-primary-rgb),.45))}.hero-scene .agv-1[data-v-1b654847]{animation:agv-roll-1b654847 6s ease-in-out infinite}.hero-scene .agv-2[data-v-1b654847]{animation:agv-roll-1b654847 8s ease-in-out infinite reverse}.hero-scene .float-data[data-v-1b654847]{animation:float-bob-1b654847 4.5s ease-in-out infinite}.hero-scene .float-data[data-v-1b654847]:nth-child(odd){animation-delay:-2.2s}@keyframes agv-roll-1b654847{0%,to{transform:translate(0)}50%{transform:translate(-20px)}}@keyframes float-bob-1b654847{0%,to{transform:translate(360px,110px)}50%{transform:translate(360px,100px)}}.status-bar[data-v-1b654847]{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 20px;border-radius:12px;background:linear-gradient(135deg,#fff,#fbf9ff);border:1px solid #ddd5ec;border-left:3px solid #7c3aed;box-shadow:0 1px 2px #2d1b690d,0 8px 22px #6c47c81a;color:#1a0f3d;font-size:13px}.status-left[data-v-1b654847],.status-right[data-v-1b654847]{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.status-conn[data-v-1b654847]{display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border-radius:999px;background:#c4b5fd;border:1px solid #8b6ff0;font-weight:600;letter-spacing:.4px;font-size:12px;box-shadow:inset 0 1px #ffffff8c,0 1px 3px #7c3aed26}.status-conn.success[data-v-1b654847]{color:var(--mg-status-success);background:rgba(var(--mg-status-success-rgb),.32);border-color:rgba(var(--mg-status-success-rgb),.7);box-shadow:inset 0 1px #ffffff8c,0 1px 3px rgba(var(--mg-status-success-rgb),.25)}.status-conn.warning[data-v-1b654847]{color:var(--mg-status-warning);background:rgba(var(--mg-status-warning-rgb),.32);border-color:rgba(var(--mg-status-warning-rgb),.7);box-shadow:inset 0 1px #ffffff8c,0 1px 3px rgba(var(--mg-status-warning-rgb),.25)}.status-conn.danger[data-v-1b654847]{color:var(--mg-status-danger);background:rgba(var(--mg-status-danger-rgb),.32);border-color:rgba(var(--mg-status-danger-rgb),.7);box-shadow:inset 0 1px #ffffff8c,0 1px 3px rgba(var(--mg-status-danger-rgb),.25)}.status-divider[data-v-1b654847]{width:1px;height:14px;background:#a78bfa}.status-stat[data-v-1b654847]{display:inline-flex;align-items:center;gap:8px;padding:4px 10px;border-radius:999px;background:#c8b8f5;border:1px solid #9d86e6;letter-spacing:.4px;box-shadow:inset 0 1px #ffffff8c,0 1px 3px #7c3aed1f}.status-stat-label[data-v-1b654847]{color:#4a3a6d;font-size:12px;font-weight:600}.status-stat-value[data-v-1b654847]{color:#1f0d54;font-weight:700;font-size:14px}.status-stat-value.is-danger[data-v-1b654847]{color:var(--mg-status-danger)}.status-stat-total[data-v-1b654847]{font-size:12px;color:#9b8eb8;font-weight:500}.bento-grid[data-v-1b654847]{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:minmax(0,auto);gap:16px}.bento[data-v-1b654847]{position:relative;border-radius:14px;background:#fff;border:1px solid #e2dbf0;box-shadow:0 1px 2px #2d1b690d,0 10px 26px #6c47c81a;color:#2d1b69;transition:transform .25s cubic-bezier(.25,.8,.25,1),box-shadow .25s,border-color .25s;overflow:hidden}.bento[data-v-1b654847]:hover{transform:translateY(-2px);border-color:#c4b5fd;box-shadow:0 4px 14px #2d1b691a,0 18px 40px #6c47c829}.bento[data-v-1b654847] .el-card{background:transparent!important;border:none!important;box-shadow:none!important;color:inherit;height:100%}.bento[data-v-1b654847] .el-card__header{background:transparent!important;border-bottom:1px solid #f0eaf6!important;padding:14px 18px}.bento[data-v-1b654847] .el-card__body{padding:16px 18px}.card-head[data-v-1b654847]{display:flex;align-items:center;justify-content:space-between}.card-title[data-v-1b654847]{display:inline-flex;align-items:center;gap:8px;color:#2d1b69;font-size:14px;font-weight:600;letter-spacing:.4px}.card-title .el-icon[data-v-1b654847]{color:#7c3aed}.card-tip[data-v-1b654847]{font-size:12px;color:#6b5b8e;letter-spacing:.3px;font-weight:500}.more-link[data-v-1b654847]{color:#6b5b8e!important;font-size:12.5px}.more-link[data-v-1b654847]:hover{color:#7c3aed!important}.bento-kpi[data-v-1b654847]{grid-column:span 2;padding:16px 18px 14px;display:flex;flex-direction:column;justify-content:space-between;min-height:116px}.kpi-accent[data-v-1b654847]{position:absolute;top:0;left:0;width:100%;height:3px;background:linear-gradient(90deg,var(--mg-primary-hover),var(--mg-accent) 50%,transparent);opacity:.85}.kpi-accent.tone-info[data-v-1b654847]{background:linear-gradient(90deg,var(--mg-status-info),rgba(var(--mg-status-info-rgb),.2) 80%,transparent)}.kpi-accent.tone-success[data-v-1b654847]{background:linear-gradient(90deg,var(--mg-status-success),rgba(var(--mg-status-success-rgb),.2) 80%,transparent)}.kpi-accent.tone-warning[data-v-1b654847]{background:linear-gradient(90deg,var(--mg-status-warning),rgba(var(--mg-status-warning-rgb),.2) 80%,transparent)}.kpi-accent.tone-danger[data-v-1b654847]{background:linear-gradient(90deg,var(--mg-status-danger),rgba(var(--mg-status-danger-rgb),.2) 80%,transparent)}.kpi-accent.tone-idle[data-v-1b654847]{background:linear-gradient(90deg,var(--mg-status-idle),rgba(var(--mg-status-idle-rgb),.2) 80%,transparent)}.kpi-body[data-v-1b654847]{display:flex;flex-direction:column;gap:6px;z-index:1}.kpi-row1[data-v-1b654847]{display:flex;align-items:center;gap:8px}.kpi-icon-sm[data-v-1b654847]{color:var(--mg-text-muted)}.kpi-icon-sm.tone-info[data-v-1b654847]{color:var(--mg-status-info)}.kpi-icon-sm.tone-success[data-v-1b654847]{color:var(--mg-status-success)}.kpi-icon-sm.tone-warning[data-v-1b654847]{color:var(--mg-status-warning)}.kpi-icon-sm.tone-danger[data-v-1b654847]{color:var(--mg-status-danger)}.kpi-icon-sm.tone-idle[data-v-1b654847]{color:var(--mg-status-idle)}.kpi-label[data-v-1b654847]{font-size:12px;color:#6b5b8e;letter-spacing:.5px;font-weight:500}.kpi-row2[data-v-1b654847]{display:flex;align-items:baseline;gap:8px}.kpi-value[data-v-1b654847]{font-size:30px;font-weight:700;color:#1a0f3d;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;line-height:1.05;letter-spacing:-.5px}.kpi-trend[data-v-1b654847]{display:inline-flex;align-items:center;gap:2px;font-size:11px;font-weight:600;padding:2px 6px;border-radius:999px}.kpi-trend.trend-up[data-v-1b654847]{background:rgba(var(--mg-status-success-rgb),.16);color:var(--mg-status-success)}.kpi-trend.trend-down[data-v-1b654847]{background:rgba(var(--mg-status-danger-rgb),.16);color:var(--mg-status-danger)}.kpi-trend.trend-flat[data-v-1b654847]{background:rgba(var(--mg-status-idle-rgb),.16);color:var(--mg-status-idle)}.kpi-trend-text[data-v-1b654847]{font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums}.kpi-spark[data-v-1b654847]{position:absolute;left:0;right:0;bottom:0;height:32px;width:100%;pointer-events:none;opacity:.65}.bento-trend[data-v-1b654847]{grid-column:span 8;min-height:280px;display:flex;flex-direction:column}.bento-trend[data-v-1b654847] .el-card{display:flex;flex-direction:column}.bento-trend[data-v-1b654847] .el-card__body{flex:1;display:flex;padding:14px 18px 18px}.trend-chart[data-v-1b654847]{flex:1;width:100%;height:100%;min-height:220px}.bento-agv[data-v-1b654847]{grid-column:span 4;min-height:280px}.bento-agv[data-v-1b654847] .el-card__body{padding:14px 16px 18px}.mock-tag[data-v-1b654847]{display:inline-block;margin-left:6px;padding:1px 6px;background:#f0eaf6;color:#7c3aed;border-radius:4px;font-size:10.5px;font-weight:600;letter-spacing:.3px;vertical-align:1px}.agv-row[data-v-1b654847]{display:flex;align-items:center;gap:8px;min-height:220px}.agv-chart-wrap[data-v-1b654847]{position:relative;width:170px;height:200px;flex-shrink:0}.agv-chart[data-v-1b654847]{width:100%;height:100%}.agv-center[data-v-1b654847]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;pointer-events:none}.agv-center-value[data-v-1b654847]{font-size:28px;font-weight:700;color:#1a0f3d;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;line-height:1.05;letter-spacing:-.5px}.agv-center-label[data-v-1b654847]{font-size:11px;color:#6b5b8e;font-weight:500;letter-spacing:.5px;margin-top:2px}.agv-legend[data-v-1b654847]{flex:1;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.agv-legend li[data-v-1b654847]{display:grid;grid-template-columns:12px 1fr auto auto;align-items:center;gap:8px;font-size:12.5px;color:#3d2b6e;padding:5px 8px;border-radius:6px;transition:background .2s}.agv-legend li[data-v-1b654847]:hover{background:#f5f3ff}.agv-legend .legend-name[data-v-1b654847]{color:#4a3d6e;font-weight:500}.agv-legend .legend-value[data-v-1b654847]{font-weight:700;color:#1a0f3d;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;text-align:right;min-width:18px}.agv-legend .legend-pct[data-v-1b654847]{font-size:11px;color:#9b8eb8;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;text-align:right;min-width:32px}.agv-legend .dot[data-v-1b654847]{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 3px #0000000d}.bento-ratio[data-v-1b654847]{grid-column:span 7}.ratio-track[data-v-1b654847]{display:flex;width:100%;height:32px;border-radius:999px;overflow:hidden;background:#f0eaf6;border:1px solid #e8e1f0;margin-bottom:14px;box-shadow:inset 0 1px 2px #2d1b690a}.ratio-seg[data-v-1b654847]{display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:700;letter-spacing:.4px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35);cursor:default;position:relative;transition:filter .2s}.ratio-seg[data-v-1b654847]:hover{filter:brightness(1.1)}.ratio-seg.tone-info[data-v-1b654847]{background:linear-gradient(180deg,var(--mg-status-info),rgba(var(--mg-status-info-rgb),.92))}.ratio-seg.tone-success[data-v-1b654847]{background:linear-gradient(180deg,var(--mg-status-success),rgba(var(--mg-status-success-rgb),.92))}.ratio-seg.tone-warning[data-v-1b654847]{background:linear-gradient(180deg,var(--mg-status-warning),rgba(var(--mg-status-warning-rgb),.92))}.ratio-seg.tone-idle[data-v-1b654847]{background:linear-gradient(180deg,var(--mg-status-idle),rgba(var(--mg-status-idle-rgb),.92))}.ratio-seg-pct[data-v-1b654847]{font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums}.ratio-legend[data-v-1b654847]{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px 18px}.ratio-legend li[data-v-1b654847]{display:flex;align-items:center;gap:8px;font-size:13px;color:#3d2b6e}.ratio-legend .dot[data-v-1b654847]{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #fffffff2}.ratio-legend .dot.tone-info[data-v-1b654847]{background:var(--mg-status-info)}.ratio-legend .dot.tone-success[data-v-1b654847]{background:var(--mg-status-success)}.ratio-legend .dot.tone-warning[data-v-1b654847]{background:var(--mg-status-warning)}.ratio-legend .dot.tone-idle[data-v-1b654847]{background:var(--mg-status-idle)}.ratio-legend .legend-name[data-v-1b654847]{flex:1;color:#6b5b8e;font-weight:500}.ratio-legend .legend-value[data-v-1b654847]{font-weight:700;color:#1a0f3d;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums}.bento-todo[data-v-1b654847]{grid-column:span 5}.bento-todo[data-v-1b654847] .el-card__body{padding-top:8px}.todo-tabs[data-v-1b654847] .el-tabs__header{margin-bottom:8px}.todo-tabs[data-v-1b654847] .el-tabs__nav-wrap:after{display:none}.todo-tabs[data-v-1b654847] .el-tabs__item{color:#6b5b8e!important;font-weight:500}.todo-tabs[data-v-1b654847] .el-tabs__item:hover{color:#7c3aed!important}.todo-tabs[data-v-1b654847] .el-tabs__item.is-active{color:#7c3aed!important;font-weight:700}.todo-tabs[data-v-1b654847] .el-tabs__active-bar{background-color:#7c3aed!important;height:3px!important;border-radius:2px}.tab-label[data-v-1b654847]{display:inline-flex;align-items:center;gap:6px;font-size:13px}.tab-count[data-v-1b654847]{display:inline-flex;align-items:center;justify-content:center;font-style:normal;min-width:20px;height:18px;padding:0 6px;border-radius:999px;font-size:11px;font-weight:700;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums}.tab-count.danger[data-v-1b654847]{background:rgba(var(--mg-status-danger-rgb),.18);color:var(--mg-status-danger);border:1px solid rgba(var(--mg-status-danger-rgb),.4)}.tab-count.warning[data-v-1b654847]{background:rgba(var(--mg-status-warning-rgb),.18);color:var(--mg-status-warning);border:1px solid rgba(var(--mg-status-warning-rgb),.4)}.tab-count.info[data-v-1b654847]{background:rgba(var(--mg-status-info-rgb),.18);color:var(--mg-status-info);border:1px solid rgba(var(--mg-status-info-rgb),.4)}.tab-count.success[data-v-1b654847]{background:rgba(var(--mg-status-success-rgb),.18);color:var(--mg-status-success);border:1px solid rgba(var(--mg-status-success-rgb),.4)}.empty-pane[data-v-1b654847]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 0 12px;color:#6b5b8e;font-size:13px}.empty-pane p[data-v-1b654847]{margin:6px 0 0;font-weight:500}.todo-list[data-v-1b654847]{list-style:none;padding:0 4px 0 0;margin:0;display:flex;flex-direction:column;gap:8px;max-height:220px;overflow-y:auto}.todo-list li[data-v-1b654847]{display:grid;grid-template-columns:90px 1fr auto;gap:12px;align-items:center;padding:10px 12px;background:#faf7fd;border:1px solid #f0eaf6;border-radius:10px;font-size:13px;color:#2d1b69;transition:background .2s,border-color .2s,transform .2s,box-shadow .2s}.todo-list li[data-v-1b654847]:hover{background:#f5f3ff;border-color:#c4b5fd;transform:translate(2px);box-shadow:0 2px 6px #7c3aed14}.todo-text[data-v-1b654847]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.todo-pill[data-v-1b654847]{text-align:center;font-size:11px;padding:3px 8px;border-radius:999px;letter-spacing:.4px;font-weight:700}.todo-pill.danger[data-v-1b654847]{background:rgba(var(--mg-status-danger-rgb),.1);color:var(--mg-status-danger);border:1px solid rgba(var(--mg-status-danger-rgb),.32)}.todo-pill.warning[data-v-1b654847]{background:rgba(var(--mg-status-warning-rgb),.1);color:var(--mg-status-warning);border:1px solid rgba(var(--mg-status-warning-rgb),.32)}.todo-pill.info[data-v-1b654847]{background:rgba(var(--mg-status-info-rgb),.1);color:var(--mg-status-info);border:1px solid rgba(var(--mg-status-info-rgb),.32)}.todo-pill.success[data-v-1b654847]{background:rgba(var(--mg-status-success-rgb),.1);color:var(--mg-status-success);border:1px solid rgba(var(--mg-status-success-rgb),.32)}.todo-time[data-v-1b654847]{color:#9b8eb8;font-size:11.5px;font-family:var(--mg-font-mono);font-variant-numeric:tabular-nums;font-weight:500}@media (max-width: 1440px){.bento-kpi[data-v-1b654847]{grid-column:span 3}.bento-trend[data-v-1b654847]{grid-column:span 8}.bento-agv[data-v-1b654847]{grid-column:span 4}.bento-ratio[data-v-1b654847]{grid-column:span 7}.bento-todo[data-v-1b654847]{grid-column:span 5}}@media (max-width: 1280px){.hero-banner[data-v-1b654847]{grid-template-columns:1fr 380px}.hero-right[data-v-1b654847]{min-height:240px}.bento-kpi[data-v-1b654847]{grid-column:span 4}.bento-trend[data-v-1b654847]{grid-column:span 12}.bento-agv[data-v-1b654847],.bento-ratio[data-v-1b654847]{grid-column:span 6}.bento-todo[data-v-1b654847]{grid-column:span 12}}@media (max-width: 1024px){.status-bar[data-v-1b654847]{flex-wrap:wrap}.hero-banner[data-v-1b654847]{grid-template-columns:1fr}.hero-right[data-v-1b654847]{display:none}.bento-kpi[data-v-1b654847]{grid-column:span 6}.bento-agv[data-v-1b654847],.bento-ratio[data-v-1b654847]{grid-column:span 12}}@media (max-width: 720px){.quick-grid[data-v-1b654847]{grid-template-columns:repeat(2,1fr)}.bento-kpi[data-v-1b654847]{grid-column:span 12}.agv-row[data-v-1b654847]{flex-direction:column;align-items:stretch}.agv-chart[data-v-1b654847]{width:100%;height:220px}}:root[data-theme=industrial-purple] .status-bar[data-v-1b654847]{background:linear-gradient(135deg,#26184ef0,#140c30f7);border-color:rgba(var(--mg-accent-rgb),.38);border-left-color:var(--mg-accent);box-shadow:0 4px 16px #00000061,0 0 0 1px #ffffff0f inset,0 1px #ffffff14 inset;backdrop-filter:blur(12px) saturate(140%);-webkit-backdrop-filter:blur(12px) saturate(140%);color:#f4eeff}:root[data-theme=industrial-purple] .status-conn[data-v-1b654847]{background:rgba(var(--mg-primary-hover-rgb),.42);border-color:rgba(var(--mg-accent-rgb),.45);color:#f4eeff;box-shadow:inset 0 1px #ffffff1a,0 1px 4px #00000047}:root[data-theme=industrial-purple] .status-conn.success[data-v-1b654847]{color:#86efac;background:rgba(var(--mg-status-success-rgb),.28);border-color:rgba(var(--mg-status-success-rgb),.58);box-shadow:inset 0 1px #ffffff1f,0 1px 4px rgba(var(--mg-status-success-rgb),.3)}:root[data-theme=industrial-purple] .status-conn.warning[data-v-1b654847]{color:#fcd34d;background:rgba(var(--mg-status-warning-rgb),.28);border-color:rgba(var(--mg-status-warning-rgb),.58)}:root[data-theme=industrial-purple] .status-conn.danger[data-v-1b654847]{color:#fca5a5;background:rgba(var(--mg-status-danger-rgb),.28);border-color:rgba(var(--mg-status-danger-rgb),.58)}:root[data-theme=industrial-purple] .status-stat[data-v-1b654847]{background:rgba(var(--mg-primary-hover-rgb),.35);border-color:rgba(var(--mg-accent-rgb),.38);box-shadow:inset 0 1px #ffffff14,0 1px 3px #00000038}:root[data-theme=industrial-purple] .status-divider[data-v-1b654847]{background:rgba(var(--mg-accent-rgb),.48)}:root[data-theme=industrial-purple] .status-stat-label[data-v-1b654847]{color:#ffffffd1}:root[data-theme=industrial-purple] .status-stat-value[data-v-1b654847]{color:#fff}:root[data-theme=industrial-purple] .status-stat-total[data-v-1b654847]{color:#ffffff9e}:root[data-theme=industrial-purple] .status-stat-value.is-danger[data-v-1b654847]{color:#fca5a5}:root[data-theme=industrial-purple] .bento[data-v-1b654847]{background:linear-gradient(135deg,#26184ec7,#140c30db);border-color:rgba(var(--mg-accent-rgb),.16);box-shadow:0 10px 28px #00000073,0 0 22px rgba(var(--mg-primary-rgb),.16),0 0 0 1px #ffffff0a inset,0 1px #ffffff1f inset;backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);color:#fff}:root[data-theme=industrial-purple] .bento[data-v-1b654847]:hover{border-color:rgba(var(--mg-accent-rgb),.45);box-shadow:0 18px 40px #0000008c,0 0 38px rgba(var(--mg-primary-hover-rgb),.32),0 0 0 1px rgba(var(--mg-accent-rgb),.25) inset,0 1px #ffffff2e inset}:root[data-theme=industrial-purple] .bento[data-v-1b654847] .el-card__header{border-bottom-color:rgba(var(--mg-accent-rgb),.14)!important}:root[data-theme=industrial-purple] .card-title[data-v-1b654847]{color:#fff}:root[data-theme=industrial-purple] .card-title .el-icon[data-v-1b654847]{color:var(--mg-accent)}:root[data-theme=industrial-purple] .card-tip[data-v-1b654847]{color:#ffffffb3}:root[data-theme=industrial-purple] .more-link[data-v-1b654847]{color:#ffffffb3!important}:root[data-theme=industrial-purple] .more-link[data-v-1b654847]:hover{color:var(--mg-accent)!important}:root[data-theme=industrial-purple] .kpi-label[data-v-1b654847]{color:#ffffffb8}:root[data-theme=industrial-purple] .kpi-value[data-v-1b654847]{color:#fff;text-shadow:0 0 18px rgba(var(--mg-primary-hover-rgb),.35)}:root[data-theme=industrial-purple] .agv-center-value[data-v-1b654847]{color:#fff;text-shadow:0 0 18px rgba(var(--mg-primary-hover-rgb),.45)}:root[data-theme=industrial-purple] .agv-center-label[data-v-1b654847]{color:#ffffffb8}:root[data-theme=industrial-purple] .agv-legend li[data-v-1b654847]{color:#f4eeff}:root[data-theme=industrial-purple] .agv-legend li[data-v-1b654847]:hover{background:rgba(var(--mg-accent-rgb),.1)}:root[data-theme=industrial-purple] .agv-legend .legend-name[data-v-1b654847]{color:#ffffffc7}:root[data-theme=industrial-purple] .agv-legend .legend-value[data-v-1b654847]{color:#fff}:root[data-theme=industrial-purple] .agv-legend .legend-pct[data-v-1b654847]{color:#ffffff8c}:root[data-theme=industrial-purple] .agv-legend .dot[data-v-1b654847]{box-shadow:0 0 8px currentColor}:root[data-theme=industrial-purple] .mock-tag[data-v-1b654847]{background:rgba(var(--mg-accent-rgb),.18);color:var(--mg-accent)}:root[data-theme=industrial-purple] .ratio-track[data-v-1b654847]{background:#ffffff0a;border-color:#ffffff14}:root[data-theme=industrial-purple] .ratio-legend li[data-v-1b654847]{color:#f4eeff}:root[data-theme=industrial-purple] .ratio-legend .legend-name[data-v-1b654847]{color:#ffffffb8}:root[data-theme=industrial-purple] .ratio-legend .legend-value[data-v-1b654847]{color:#fff}:root[data-theme=industrial-purple] .ratio-legend .dot[data-v-1b654847]{box-shadow:0 0 8px currentColor}:root[data-theme=industrial-purple] .todo-tabs[data-v-1b654847] .el-tabs__item{color:#ffffffa6!important}:root[data-theme=industrial-purple] .todo-tabs[data-v-1b654847] .el-tabs__item:hover,:root[data-theme=industrial-purple] .todo-tabs[data-v-1b654847] .el-tabs__item.is-active{color:#fff!important}:root[data-theme=industrial-purple] .todo-tabs[data-v-1b654847] .el-tabs__active-bar{background-color:var(--mg-accent)!important}:root[data-theme=industrial-purple] .empty-pane[data-v-1b654847]{color:#ffffffb3}:root[data-theme=industrial-purple] .todo-list li[data-v-1b654847]{background:#ffffff08;border-color:#ffffff0f;color:#f4eeff}:root[data-theme=industrial-purple] .todo-list li[data-v-1b654847]:hover{background:rgba(var(--mg-accent-rgb),.08);border-color:rgba(var(--mg-accent-rgb),.3)}:root[data-theme=industrial-purple] .todo-time[data-v-1b654847]{color:#ffffff8c} diff --git a/MiGu.Server/wwwroot/assets/DeviceHubView-D6W4gbr_.js b/MiGu.Server/wwwroot/assets/DeviceHubView-D6W4gbr_.js deleted file mode 100644 index f42b393..0000000 --- a/MiGu.Server/wwwroot/assets/DeviceHubView-D6W4gbr_.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as b,aC as u,bJ as a,bt as f,b9 as h,aH as e,ac as w,a9 as v,aa as C,ab as E,a8 as D,C as P,F as T,aG as i,bq as r,a as V}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import{C as g}from"./ConfigPageBase-MHa7yfOO.js";/* empty css *//* empty css *//* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const W=b({__name:"DeviceHubView",setup(I){return(x,S)=>{const l=E,s=C,n=v,d=D,o=T,m=P,c=w;return h(),u(g,{section:"device",title:"第三方设备统一接入",description:"电梯/卷帘门/安全门/充电桩/AP/交换机/摄像头/读码器/PLC(DeviceManagementConfig)",defaults:f(V)},{default:a(({payload:t})=>[e(c,{"model-value":"drivers"},{default:a(()=>[e(n,{name:"drivers",label:"驱动绑定"},{default:a(()=>[e(s,{data:t.drivers,size:"small",border:""},{default:a(()=>[e(l,{label:"ID",prop:"id",width:"120"}),e(l,{label:"设备类型",prop:"deviceType",width:"120"}),e(l,{label:"驱动名",prop:"driverName"}),e(l,{label:"版本",prop:"version",width:"100"})]),_:1},8,["data"])]),_:2},1024),e(n,{name:"devices",label:"设备实例"},{default:a(()=>[e(s,{data:t.devices,size:"small",border:""},{default:a(()=>[e(l,{label:"ID",prop:"id",width:"120"}),e(l,{label:"名称",prop:"name",width:"140"}),e(l,{label:"类型",prop:"deviceType",width:"100"}),e(l,{label:"协议",prop:"protocol",width:"120"}),e(l,{label:"地址",prop:"address"}),e(l,{label:"启用",width:"80"},{default:a(p=>[e(d,{modelValue:p.row.enabled,"onUpdate:modelValue":_=>p.row.enabled=_},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])]),_:2},1024),e(n,{name:"policy",label:"健康 / 告警"},{default:a(()=>[e(m,{column:2,border:""},{default:a(()=>[e(o,{label:"心跳周期 (s)"},{default:a(()=>[i(r(t.healthPolicy.heartbeatSec),1)]),_:2},1024),e(o,{label:"离线判定 (s)"},{default:a(()=>[i(r(t.healthPolicy.offlineSec),1)]),_:2},1024),e(o,{label:"告警启用"},{default:a(()=>[i(r(t.alarmPolicy.enabled?"是":"否"),1)]),_:2},1024),e(o,{label:"规则数"},{default:a(()=>[i(r(t.alarmPolicy.rules.length),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:1},8,["defaults"])}}});export{W as default}; diff --git a/MiGu.Server/wwwroot/assets/ExternalIntegrationView-CVrzHPs8.js b/MiGu.Server/wwwroot/assets/ExternalIntegrationView-CVrzHPs8.js deleted file mode 100644 index 546e051..0000000 --- a/MiGu.Server/wwwroot/assets/ExternalIntegrationView-CVrzHPs8.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as U,aC as x,bJ as a,bt as c,b9 as b,aH as t,ac as g,aE as T,ai as h,bj as I,a9 as S,aa as B,ab as $,R as v,a8 as D,r as L,aG as f,bc as N,bq as R,c as z}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as P}from"./ConfigPageBase-MHa7yfOO.js";/* empty css *//* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const le=U({__name:"ExternalIntegrationView",setup(A){function w(r,s,l){const o=`${l}-${Date.now()}`,i={...r,[l]:[...r[l]??[],{id:o,name:"新端点",url:"http://",enabled:!1}]};s(i)}function V(r,s,l,o){const i={...r,[l]:(r[l]??[]).filter((u,p)=>p!==o)};s(i)}return(r,s)=>{const l=v,o=$,i=D,u=L,p=B,E=S,C=g;return b(),x(P,{section:"integrations",title:"外部系统对接",description:"MES / WMS / RCS / PTL 等标准接口配置(ExternalIntegrations)",defaults:c(z)},{default:a(({payload:d,update:_})=>[t(C,{"model-value":"mes"},{default:a(()=>[(b(),T(h,null,I(["mes","wms","rcs","ptl"],m=>t(E,{key:m,name:m,label:m.toUpperCase()},{default:a(()=>[t(p,{data:d[m]??[],size:"small",border:""},{default:a(()=>[t(o,{label:"ID",width:"120"},{default:a(e=>[t(l,{modelValue:e.row.id,"onUpdate:modelValue":n=>e.row.id=n},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(o,{label:"名称","min-width":"160"},{default:a(e=>[t(l,{modelValue:e.row.name,"onUpdate:modelValue":n=>e.row.name=n},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(o,{label:"URL","min-width":"260"},{default:a(e=>[t(l,{modelValue:e.row.url,"onUpdate:modelValue":n=>e.row.url=n},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(o,{label:"启用",width:"80"},{default:a(e=>[t(i,{modelValue:e.row.enabled,"onUpdate:modelValue":n=>e.row.enabled=n},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(o,{label:"操作",width:"80"},{default:a(e=>[t(u,{text:"",type:"danger",size:"small",onClick:n=>V(d,_,m,e.$index)},{default:a(()=>[...s[0]||(s[0]=[f("删除",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1032,["data"]),t(u,{size:"small",icon:c(N),style:{"margin-top":"8px"},onClick:e=>w(d,_,m)},{default:a(()=>[f("新增 "+R(m.toUpperCase())+" 端点",1)]),_:2},1032,["icon","onClick"])]),_:2},1032,["name","label"])),64))]),_:2},1024)]),_:1},8,["defaults"])}}});export{le as default}; diff --git a/MiGu.Server/wwwroot/assets/FacilityConfigView-BdZ62AIz.js b/MiGu.Server/wwwroot/assets/FacilityConfigView-BdZ62AIz.js new file mode 100644 index 0000000..a4f8c37 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/FacilityConfigView-BdZ62AIz.js @@ -0,0 +1 @@ +import{aN as u,bs as b,aE as E,c8 as t,aK as e,ac as f,a9 as h,aa as V,ab as T,a8 as I,B as P,C as B,aJ as p,bL as _,bS as C,a as L,$ as N,d as q,bC as A,c7 as g,aG as S,bW as k,bX as z,aD as y,ak as U}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import{C as D}from"./ConfigPageBase-CgfsngDp.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./PermissionGuard-CR4qtxrh.js";/* empty css */import"./reflection-BwOBPyb9.js";import"./monitorConfigCache-DXn96T8F.js";const F=u({__name:"DeviceHubView",setup(w){return(r,m)=>{const a=T,i=V,o=h,l=I,n=B,c=P,d=f;return b(),E(D,{section:"device",title:"第三方设备统一接入",description:"电梯/卷帘门/安全门/充电桩/AP/交换机/摄像头/读码器/PLC(DeviceManagementConfig)",defaults:C(L)},{default:t(({payload:s})=>[e(d,{"model-value":"drivers"},{default:t(()=>[e(o,{name:"drivers",label:"驱动绑定"},{default:t(()=>[e(i,{data:s.drivers,size:"small",border:""},{default:t(()=>[e(a,{label:"ID",prop:"id",width:"120"}),e(a,{label:"设备类型",prop:"deviceType",width:"120"}),e(a,{label:"驱动名",prop:"driverName"}),e(a,{label:"版本",prop:"version",width:"100"})]),_:1},8,["data"])]),_:2},1024),e(o,{name:"devices",label:"设备实例"},{default:t(()=>[e(i,{data:s.devices,size:"small",border:""},{default:t(()=>[e(a,{label:"ID",prop:"id",width:"120"}),e(a,{label:"名称",prop:"name",width:"140"}),e(a,{label:"类型",prop:"deviceType",width:"100"}),e(a,{label:"协议",prop:"protocol",width:"120"}),e(a,{label:"地址",prop:"address"}),e(a,{label:"启用",width:"80"},{default:t(v=>[e(l,{modelValue:v.row.enabled,"onUpdate:modelValue":x=>v.row.enabled=x},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])]),_:2},1024),e(o,{name:"policy",label:"健康 / 告警"},{default:t(()=>[e(c,{column:2,border:""},{default:t(()=>[e(n,{label:"心跳周期 (s)"},{default:t(()=>[p(_(s.healthPolicy.heartbeatSec),1)]),_:2},1024),e(n,{label:"离线判定 (s)"},{default:t(()=>[p(_(s.healthPolicy.offlineSec),1)]),_:2},1024),e(n,{label:"告警启用"},{default:t(()=>[p(_(s.alarmPolicy.enabled?"是":"否"),1)]),_:2},1024),e(n,{label:"规则数"},{default:t(()=>[p(_(s.alarmPolicy.rules.length),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:1},8,["defaults"])}}}),M=u({__name:"LocationView",setup(w){return(r,m)=>{const a=T,i=N,o=V,l=h,n=f;return b(),E(D,{section:"location",title:"库位管理",description:"出入库、库存、库位可视化(LocationManagement)",defaults:C(q)},{default:t(({payload:c})=>[e(n,{"model-value":"locs"},{default:t(()=>[e(l,{name:"locs",label:"库位"},{default:t(()=>[e(o,{data:c.locations,size:"small",border:""},{default:t(()=>[e(a,{label:"ID",prop:"id",width:"100"}),e(a,{label:"编码",prop:"code",width:"120"}),e(a,{label:"名称",prop:"name"}),e(a,{label:"站点",prop:"siteId",width:"100"}),e(a,{label:"容量",prop:"capacity",width:"100"}),e(a,{label:"占用"},{default:t(d=>[e(i,{percentage:Math.round(d.row.occupied/d.row.capacity*100),"stroke-width":10},null,8,["percentage"])]),_:1})]),_:1},8,["data"])]),_:2},1024),e(l,{name:"rules",label:"库存规则"},{default:t(()=>[e(o,{data:c.inventoryRules,size:"small",border:""},{default:t(()=>[e(a,{label:"ID",prop:"id",width:"100"}),e(a,{label:"物料类型",prop:"itemType"}),e(a,{label:"下限",prop:"minQty",width:"100"}),e(a,{label:"上限",prop:"maxQty",width:"100"})]),_:1},8,["data"])]),_:2},1024)]),_:2},1024)]),_:1},8,["defaults"])}}}),R={class:"config-hub-page"},$={class:"config-pane"},O={class:"config-pane"},Q=u({__name:"FacilityConfigView",setup(w){const r=k(),m=z(),a=["device","location"];function i(){const l=r.query.tab;return typeof l=="string"&&a.includes(l)?l:"device"}const o=A(i());return g(o,l=>{r.query.tab!==l&&m.replace({query:{...r.query,tab:l}})}),g(()=>r.query.tab,()=>{const l=i();l!==o.value&&(o.value=l)}),(l,n)=>{const c=h,d=f;return b(),S("div",R,[e(d,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=s=>o.value=s),class:"hub-tabs"},{default:t(()=>[e(c,{name:"device",label:"设备接入"},{default:t(()=>[y("div",$,[e(F)])]),_:1}),e(c,{name:"location",label:"库位管理",lazy:""},{default:t(()=>[y("div",O,[e(M)])]),_:1})]),_:1},8,["modelValue"])])}}}),pe=U(Q,[["__scopeId","data-v-c7c6b85e"]]);export{pe as default}; diff --git a/MiGu.Server/wwwroot/assets/FacilityConfigView-DTlQlSfB.css b/MiGu.Server/wwwroot/assets/FacilityConfigView-DTlQlSfB.css new file mode 100644 index 0000000..f70a3ca --- /dev/null +++ b/MiGu.Server/wwwroot/assets/FacilityConfigView-DTlQlSfB.css @@ -0,0 +1 @@ +.config-hub-page[data-v-c7c6b85e]{padding:16px;height:100%;display:flex;flex-direction:column;overflow:hidden}.hub-tabs[data-v-c7c6b85e]{flex:1;min-height:0;display:flex;flex-direction:column}[data-v-c7c6b85e] .el-tabs__content{flex:1;min-height:0;overflow:auto}[data-v-c7c6b85e] .el-tab-pane{height:100%}.config-pane[data-v-c7c6b85e]{height:100%;overflow:auto}[data-v-c7c6b85e] .el-tabs__item{color:var(--mg-text-muted, rgba(255, 255, 255, .65))}[data-v-c7c6b85e] .el-tabs__item.is-active{color:var(--mg-text-light, #fff)}[data-v-c7c6b85e] .el-tabs__active-bar{background-color:var(--mg-accent, var(--el-color-primary))}[data-v-c7c6b85e] .el-tabs__nav-wrap:after{background-color:#ffffff14} diff --git a/MiGu.Server/wwwroot/assets/LocationView-r0d4EkyN.js b/MiGu.Server/wwwroot/assets/LocationView-r0d4EkyN.js deleted file mode 100644 index e8f75b4..0000000 --- a/MiGu.Server/wwwroot/assets/LocationView-r0d4EkyN.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as s,aC as m,bJ as t,bt as c,b9 as d,aH as e,ac as _,a9 as b,aa as u,ab as f,$ as w,d as h}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import{C as g}from"./ConfigPageBase-MHa7yfOO.js";/* empty css *//* empty css *//* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const J=s({__name:"LocationView",setup(C){return(T,E)=>{const a=f,i=w,o=u,l=b,n=_;return d(),m(g,{section:"location",title:"库位管理",description:"出入库、库存、库位可视化(LocationManagement)",defaults:c(h)},{default:t(({payload:p})=>[e(n,{"model-value":"locs"},{default:t(()=>[e(l,{name:"locs",label:"库位"},{default:t(()=>[e(o,{data:p.locations,size:"small",border:""},{default:t(()=>[e(a,{label:"ID",prop:"id",width:"100"}),e(a,{label:"编码",prop:"code",width:"120"}),e(a,{label:"名称",prop:"name"}),e(a,{label:"站点",prop:"siteId",width:"100"}),e(a,{label:"容量",prop:"capacity",width:"100"}),e(a,{label:"占用"},{default:t(r=>[e(i,{percentage:Math.round(r.row.occupied/r.row.capacity*100),"stroke-width":10},null,8,["percentage"])]),_:1})]),_:1},8,["data"])]),_:2},1024),e(l,{name:"rules",label:"库存规则"},{default:t(()=>[e(o,{data:p.inventoryRules,size:"small",border:""},{default:t(()=>[e(a,{label:"ID",prop:"id",width:"100"}),e(a,{label:"物料类型",prop:"itemType"}),e(a,{label:"下限",prop:"minQty",width:"100"}),e(a,{label:"上限",prop:"maxQty",width:"100"})]),_:1},8,["data"])]),_:2},1024)]),_:2},1024)]),_:1},8,["defaults"])}}});export{J as default}; diff --git a/MiGu.Server/wwwroot/assets/LoginView-0TaDlGzh.js b/MiGu.Server/wwwroot/assets/LoginView-DR-JtkF-.js similarity index 72% rename from MiGu.Server/wwwroot/assets/LoginView-0TaDlGzh.js rename to MiGu.Server/wwwroot/assets/LoginView-DR-JtkF-.js index 9a14da0..bacd7ad 100644 --- a/MiGu.Server/wwwroot/assets/LoginView-0TaDlGzh.js +++ b/MiGu.Server/wwwroot/assets/LoginView-DR-JtkF-.js @@ -1 +1 @@ -import{aI as H,bw as j,bx as J,bv as Q,b9 as u,aE as m,aF as C,aB as a,ai as h,bj as k,b4 as S,bt as r,bq as M,aH as s,bJ as o,O as X,R as Y,Q as K,bz as Z,a_ as ee,b3 as f,bo as ae,b0 as se,ag as te,bf as oe,aG as p,aA as le,ay as ne,u as re,T as de,x as ie,y as ue,S as me,r as pe,N as ce,bh as P,bg as W,ax as ve,X as b,ak as fe}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";import{_ as be}from"./FRLD-logo-white-no_title-BE78iS6n.js";const ge={class:"login-page"},_e={class:"bg-stars","aria-hidden":"true"},ye={class:"login-card"},Ve={class:"hero"},we={class:"hero-stars","aria-hidden":"true"},he={class:"hero-points"},ke={class:"feat"},Me={class:"feat-title"},Pe={class:"feat-desc"},Ee={class:"panel"},xe={class:"scope-wrap"},Ce={class:"launch-mode-head"},Se={class:"scope-wrap launch-wrap"},We={class:"row row-between"},$e={class:"adv-grid"},ze={class:"footer-stamp"},Ie=H({__name:"LoginView",setup(Ae){const $=j(),z=J(),E=Q(),I=[{title:"路径规划与导航",desc:"全局 + 实时双层路径算法,智能寻优路线"},{title:"交通管制",desc:"任务队列 + 优先级动态调度,提前规避路口拥堵冲突"},{title:"安全可靠性",desc:"约束设备运行规范,实现 AGV 与产线设备协同安全作业"},{title:"高级任务调度",desc:"按任务优先级、现场资源动态分配搬运任务"},{title:"插件扩展",desc:"插件化架构,支持功能定制、二次开发适配场景"}],g=P(),_=P(!1),c=P([]),l=W({username:"admin",password:"admin",scope:"Platform",launchMode:"DesktopAndWeb",remember:!0}),d=W({host:"0.0.0.0",apiPort:7001,platformPort:8080,vrPort:8223}),A={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],scope:[{required:!0,message:"请选择 scope",trigger:"change"}],launchMode:[{required:!0,message:"请选择启动模式",trigger:"change"}]},L=ve(()=>new Date().getFullYear());function x(v){return Array.from({length:v},()=>{const e=1.5+Math.random()*2.8;return{top:`${Math.random()*100}%`,left:`${Math.random()*100}%`,width:`${e}px`,height:`${e}px`,opacity:`${.35+Math.random()*.5}`,animationDelay:`${-Math.random()*6}s`,animationDuration:`${2.6+Math.random()*3.4}s`}})}const R=x(48),D=x(22);async function N(){g.value&&await g.value.validate(async v=>{if(v){_.value=!0;try{const e=await E.login({username:l.username,password:l.password,scope:l.scope,launchMode:l.launchMode});b.success(`欢迎,${E.user?.displayName??l.username}`),e.launchWarning?b({message:e.launchWarning,type:"warning",duration:6e3,showClose:!0}):e.runMode==="Detached"&&b({message:"SimpleLite 未启动(Platform.Server 单独运行),/api/sl/* 相关功能将不可用。",type:"warning",duration:6e3,showClose:!0});const n=$.query.redirect??(l.scope==="Platform"?"/admin/dashboard":"/monitor/map");z.push(n)}catch(e){const n=e instanceof Error?e.message:String(e);b.error(`登录失败:${n}`)}finally{_.value=!1}}})}return(v,e)=>{const n=K,y=Y,i=X,q=te,T=re,U=de,V=me,F=ue,B=ie,G=pe,O=ce;return u(),m("div",ge,[e[28]||(e[28]=C('
',5)),a("div",_e,[(u(!0),m(h,null,k(r(R),(t,w)=>(u(),m("span",{key:w,style:S(t)},null,4))),128))]),a("div",ye,[a("div",Ve,[a("div",we,[(u(!0),m(h,null,k(r(D),(t,w)=>(u(),m("span",{key:w,style:S(t)},null,4))),128))]),e[14]||(e[14]=C('
迷毂
迷 毂
智 能 调 度 平 台
INTELLIGENT · DISPATCH · PLATFORM
',4)),a("ul",he,[(u(),m(h,null,k(I,t=>a("li",{key:t.title},[e[13]||(e[13]=a("span",{class:"dot"},null,-1)),a("div",ke,[a("span",Me,M(t.title),1),a("span",Pe,M(t.desc),1)])])),64))]),e[15]||(e[15]=a("div",{class:"hero-footnote"},[a("span",{class:"badge"},"v1.7"),a("span",null,"稳定 · 高效 · 安全的智能调度内核")],-1))]),a("div",Ee,[e[27]||(e[27]=a("div",{class:"panel-head"},[a("div",{class:"panel-title"},"登 录"),a("div",{class:"panel-sub"},"登录以进入智能调度平台")],-1)),s(O,{ref_key:"formRef",ref:g,model:l,rules:A,class:"glass-form","hide-required-asterisk":""},{default:o(()=>[s(i,{prop:"username"},{default:o(()=>[s(y,{modelValue:l.username,"onUpdate:modelValue":e[0]||(e[0]=t=>l.username=t),size:"large",placeholder:"用户名",autocomplete:"username",clearable:""},{prefix:o(()=>[s(n,null,{default:o(()=>[s(r(Z))]),_:1})]),_:1},8,["modelValue"])]),_:1}),s(i,{prop:"password"},{default:o(()=>[s(y,{modelValue:l.password,"onUpdate:modelValue":e[1]||(e[1]=t=>l.password=t),type:"password",size:"large","show-password":"",placeholder:"密码(Mock,任意非空)",autocomplete:"current-password"},{prefix:o(()=>[s(n,null,{default:o(()=>[s(r(ee))]),_:1})]),_:1},8,["modelValue"])]),_:1}),s(i,{prop:"scope",class:"scope-item"},{default:o(()=>[a("div",xe,[a("button",{type:"button",class:f(["scope-tab",{active:l.scope==="Platform"}]),onClick:e[2]||(e[2]=t=>l.scope="Platform")},[s(n,null,{default:o(()=>[s(r(ae))]),_:1}),e[16]||(e[16]=a("div",{class:"scope-meta"},[a("div",{class:"scope-name"},"管理员"),a("div",{class:"scope-desc"},"platform-vue · 全功能")],-1))],2),a("button",{type:"button",class:f(["scope-tab",{active:l.scope==="RCSMonitor"}]),onClick:e[3]||(e[3]=t=>l.scope="RCSMonitor")},[s(n,null,{default:o(()=>[s(r(se))]),_:1}),e[17]||(e[17]=a("div",{class:"scope-meta"},[a("div",{class:"scope-name"},"运营"),a("div",{class:"scope-desc"},"rcsmonitor-vue · 受限")],-1))],2)])]),_:1}),s(i,{prop:"launchMode",class:"scope-item launch-mode-item"},{default:o(()=>[a("div",Ce,[e[19]||(e[19]=a("span",{class:"launch-mode-title"},"SimpleLite 启动模式",-1)),s(q,{placement:"top"},{content:o(()=>[...e[18]||(e[18]=[a("div",{class:"launch-tip"},[a("div",null,[a("b",null,"本地+Web"),p(":登录后由 Platform 后端拉起 SimpleLite,同时打开桌面端 ImGui 窗口与浏览器端 webVRender。")]),a("div",null,[a("b",null,"仅 Web"),p(":只起 WebTerminal,不弹本地桌面窗口,适合远程办公 / 服务器部署。")])],-1)])]),default:o(()=>[s(n,{class:"launch-mode-help"},{default:o(()=>[s(r(oe))]),_:1})]),_:1})]),a("div",Se,[a("button",{type:"button",class:f(["scope-tab",{active:l.launchMode==="DesktopAndWeb"}]),onClick:e[4]||(e[4]=t=>l.launchMode="DesktopAndWeb")},[s(n,null,{default:o(()=>[s(r(le))]),_:1}),e[20]||(e[20]=a("div",{class:"scope-meta"},[a("div",{class:"scope-name"},"本地 + Web"),a("div",{class:"scope-desc"},"桌面窗口 & 浏览器同时启动")],-1))],2),a("button",{type:"button",class:f(["scope-tab",{active:l.launchMode==="WebOnly"}]),onClick:e[5]||(e[5]=t=>l.launchMode="WebOnly")},[s(n,null,{default:o(()=>[s(r(ne))]),_:1}),e[21]||(e[21]=a("div",{class:"scope-meta"},[a("div",{class:"scope-name"},"仅 Web"),a("div",{class:"scope-desc"},"不启桌面窗口 · 浏览器使用")],-1))],2)])]),_:1}),a("div",We,[s(T,{modelValue:l.remember,"onUpdate:modelValue":e[6]||(e[6]=t=>l.remember=t),size:"default",class:"remember"},{default:o(()=>[...e[22]||(e[22]=[p("下次自动按当前 scope 进入",-1)])]),_:1},8,["modelValue"]),s(U,{underline:"never",class:"adv-link",onClick:e[7]||(e[7]=t=>c.value=c.value.length?[]:["adv"])},{default:o(()=>[...e[23]||(e[23]=[p("高级 ›",-1)])]),_:1})]),s(B,{modelValue:c.value,"onUpdate:modelValue":e[12]||(e[12]=t=>c.value=t),class:"adv-collapse"},{default:o(()=>[s(F,{name:"adv"},{title:o(()=>[...e[24]||(e[24]=[a("span",{class:"adv-title"},"Web-Enabled · 端口与监听",-1)])]),default:o(()=>[a("div",$e,[s(i,{label:"监听地址"},{default:o(()=>[s(y,{modelValue:d.host,"onUpdate:modelValue":e[8]||(e[8]=t=>d.host=t),size:"default"},null,8,["modelValue"])]),_:1}),s(i,{label:"WebAPI"},{default:o(()=>[s(V,{modelValue:d.apiPort,"onUpdate:modelValue":e[9]||(e[9]=t=>d.apiPort=t),min:1,max:65535,size:"default","controls-position":"right"},null,8,["modelValue"])]),_:1}),s(i,{label:"Platform"},{default:o(()=>[s(V,{modelValue:d.platformPort,"onUpdate:modelValue":e[10]||(e[10]=t=>d.platformPort=t),min:1,max:65535,size:"default","controls-position":"right"},null,8,["modelValue"])]),_:1}),s(i,{label:"webVRender"},{default:o(()=>[s(V,{modelValue:d.vrPort,"onUpdate:modelValue":e[11]||(e[11]=t=>d.vrPort=t),min:1,max:65535,size:"default","controls-position":"right"},null,8,["modelValue"])]),_:1})])]),_:1})]),_:1},8,["modelValue"]),s(G,{type:"primary",loading:_.value,class:"btn-login",size:"large",onClick:N},{default:o(()=>[...e[25]||(e[25]=[p(" 登 录 ",-1)])]),_:1},8,["loading"]),e[26]||(e[26]=a("div",{class:"bottom-note"}," 任意非空用户名 + 任意密码即可登录;scope 决定进入 admin / monitor 视图;权限按 Mock 表生成。 ",-1))]),_:1},8,["model"])])]),a("div",ze," 迷 毂 · 智能调度平台 · "+M(L.value),1)])}}}),je=fe(Ie,[["__scopeId","data-v-a9a6f95c"]]);export{je as default}; +import{aN as J,bW as X,bX as H,bV as K,bs as u,aG as m,aI as S,aD as a,ai as k,bE as h,bl as x,bS as r,bL as M,aK as s,c8 as o,O as Q,R as Y,Q as j,b_ as Z,bd as ee,bk as f,bJ as ae,bh as se,ag as te,bz as oe,aJ as p,aC as le,az as ne,u as re,T as de,x as ie,y as ue,S as me,r as pe,N as ce,bC as C,bA as W,ay as ve,X as b,ak as fe}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";import{_ as be}from"./FRLD-logo-white-no_title-BE78iS6n.js";const ge={class:"login-page"},_e={class:"bg-stars","aria-hidden":"true"},ye={class:"login-card"},Ve={class:"hero"},we={class:"hero-stars","aria-hidden":"true"},ke={class:"hero-points"},he={class:"feat"},Me={class:"feat-title"},Ce={class:"feat-desc"},Pe={class:"panel"},Ee={class:"scope-wrap"},Se={class:"launch-mode-head"},xe={class:"scope-wrap launch-wrap"},We={class:"row row-between"},$e={class:"adv-grid"},ze={class:"footer-stamp"},Ie=J({__name:"LoginView",setup(Le){const $=X(),z=H(),P=K(),I=[{title:"路径规划与导航",desc:"全局 + 实时双层路径算法,智能寻优路线"},{title:"交通管制",desc:"任务队列 + 优先级动态调度,提前规避路口拥堵冲突"},{title:"安全可靠性",desc:"约束设备运行规范,实现 AGV 与产线设备协同安全作业"},{title:"高级任务调度",desc:"按任务优先级、现场资源动态分配搬运任务"},{title:"插件扩展",desc:"插件化架构,支持功能定制、二次开发适配场景"}],g=C(),_=C(!1),c=C([]),l=W({username:"admin",password:"admin",scope:"Platform",launchMode:"DesktopAndWeb",remember:!0}),d=W({host:"0.0.0.0",apiPort:7001,platformPort:8080,vrPort:8223}),L={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],scope:[{required:!0,message:"请选择 scope",trigger:"change"}],launchMode:[{required:!0,message:"请选择启动模式",trigger:"change"}]},A=ve(()=>new Date().getFullYear());function E(v){return Array.from({length:v},()=>{const e=1.5+Math.random()*2.8;return{top:`${Math.random()*100}%`,left:`${Math.random()*100}%`,width:`${e}px`,height:`${e}px`,opacity:`${.35+Math.random()*.5}`,animationDelay:`${-Math.random()*6}s`,animationDuration:`${2.6+Math.random()*3.4}s`}})}const D=E(48),N=E(22);async function R(){g.value&&await g.value.validate(async v=>{if(v){_.value=!0;try{const e=await P.login({username:l.username,password:l.password,scope:l.scope,launchMode:l.launchMode});b.success(`欢迎,${P.user?.displayName??l.username}`),e.launchWarning?b({message:e.launchWarning,type:"warning",duration:6e3,showClose:!0}):e.runMode==="Detached"&&b({message:"SimpleLite 未启动(Platform.Server 单独运行),/api/sl/* 相关功能将不可用。",type:"warning",duration:6e3,showClose:!0});const n=$.query.redirect??(l.scope==="Platform"?"/admin/dashboard":"/monitor/map");z.push(n)}catch(e){const n=e instanceof Error?e.message:String(e);b.error(`登录失败:${n}`)}finally{_.value=!1}}})}return(v,e)=>{const n=j,y=Y,i=Q,T=te,U=re,q=de,V=me,F=ue,B=ie,G=pe,O=ce;return u(),m("div",ge,[e[28]||(e[28]=S('
',5)),a("div",_e,[(u(!0),m(k,null,h(r(D),(t,w)=>(u(),m("span",{key:w,style:x(t)},null,4))),128))]),a("div",ye,[a("div",Ve,[a("div",we,[(u(!0),m(k,null,h(r(N),(t,w)=>(u(),m("span",{key:w,style:x(t)},null,4))),128))]),e[14]||(e[14]=S('
迷毂
迷 毂
智 能 调 度 平 台
INTELLIGENT · DISPATCH · PLATFORM
',4)),a("ul",ke,[(u(),m(k,null,h(I,t=>a("li",{key:t.title},[e[13]||(e[13]=a("span",{class:"dot"},null,-1)),a("div",he,[a("span",Me,M(t.title),1),a("span",Ce,M(t.desc),1)])])),64))]),e[15]||(e[15]=a("div",{class:"hero-footnote"},[a("span",{class:"badge"},"v1.7"),a("span",null,"稳定 · 高效 · 安全的智能调度内核")],-1))]),a("div",Pe,[e[27]||(e[27]=a("div",{class:"panel-head"},[a("div",{class:"panel-title"},"登 录"),a("div",{class:"panel-sub"},"登录以进入智能调度平台")],-1)),s(O,{ref_key:"formRef",ref:g,model:l,rules:L,class:"glass-form","hide-required-asterisk":""},{default:o(()=>[s(i,{prop:"username"},{default:o(()=>[s(y,{modelValue:l.username,"onUpdate:modelValue":e[0]||(e[0]=t=>l.username=t),size:"large",placeholder:"用户名",autocomplete:"username",clearable:""},{prefix:o(()=>[s(n,null,{default:o(()=>[s(r(Z))]),_:1})]),_:1},8,["modelValue"])]),_:1}),s(i,{prop:"password"},{default:o(()=>[s(y,{modelValue:l.password,"onUpdate:modelValue":e[1]||(e[1]=t=>l.password=t),type:"password",size:"large","show-password":"",placeholder:"密码(Mock,任意非空)",autocomplete:"current-password"},{prefix:o(()=>[s(n,null,{default:o(()=>[s(r(ee))]),_:1})]),_:1},8,["modelValue"])]),_:1}),s(i,{prop:"scope",class:"scope-item"},{default:o(()=>[a("div",Ee,[a("button",{type:"button",class:f(["scope-tab",{active:l.scope==="Platform"}]),onClick:e[2]||(e[2]=t=>l.scope="Platform")},[s(n,null,{default:o(()=>[s(r(ae))]),_:1}),e[16]||(e[16]=a("div",{class:"scope-meta"},[a("div",{class:"scope-name"},"管理员"),a("div",{class:"scope-desc"},"platform-vue · 全功能")],-1))],2),a("button",{type:"button",class:f(["scope-tab",{active:l.scope==="RCSMonitor"}]),onClick:e[3]||(e[3]=t=>l.scope="RCSMonitor")},[s(n,null,{default:o(()=>[s(r(se))]),_:1}),e[17]||(e[17]=a("div",{class:"scope-meta"},[a("div",{class:"scope-name"},"运营"),a("div",{class:"scope-desc"},"rcsmonitor-vue · 受限")],-1))],2)])]),_:1}),s(i,{prop:"launchMode",class:"scope-item launch-mode-item"},{default:o(()=>[a("div",Se,[e[19]||(e[19]=a("span",{class:"launch-mode-title"},"SimpleLite 启动模式",-1)),s(T,{placement:"top"},{content:o(()=>[...e[18]||(e[18]=[a("div",{class:"launch-tip"},[a("div",null,[a("b",null,"本地+Web"),p(":登录后由 Platform 后端拉起 SimpleLite,同时打开桌面端 ImGui 窗口与浏览器端 webVRender。")]),a("div",null,[a("b",null,"仅 Web"),p(":只起 WebTerminal,不弹本地桌面窗口,适合远程办公 / 服务器部署。")])],-1)])]),default:o(()=>[s(n,{class:"launch-mode-help"},{default:o(()=>[s(r(oe))]),_:1})]),_:1})]),a("div",xe,[a("button",{type:"button",class:f(["scope-tab",{active:l.launchMode==="DesktopAndWeb"}]),onClick:e[4]||(e[4]=t=>l.launchMode="DesktopAndWeb")},[s(n,null,{default:o(()=>[s(r(le))]),_:1}),e[20]||(e[20]=a("div",{class:"scope-meta"},[a("div",{class:"scope-name"},"本地 + Web"),a("div",{class:"scope-desc"},"桌面窗口 & 浏览器同时启动")],-1))],2),a("button",{type:"button",class:f(["scope-tab",{active:l.launchMode==="WebOnly"}]),onClick:e[5]||(e[5]=t=>l.launchMode="WebOnly")},[s(n,null,{default:o(()=>[s(r(ne))]),_:1}),e[21]||(e[21]=a("div",{class:"scope-meta"},[a("div",{class:"scope-name"},"仅 Web"),a("div",{class:"scope-desc"},"不启桌面窗口 · 浏览器使用")],-1))],2)])]),_:1}),a("div",We,[s(U,{modelValue:l.remember,"onUpdate:modelValue":e[6]||(e[6]=t=>l.remember=t),size:"default",class:"remember"},{default:o(()=>[...e[22]||(e[22]=[p("下次自动按当前 scope 进入",-1)])]),_:1},8,["modelValue"]),s(q,{underline:"never",class:"adv-link",onClick:e[7]||(e[7]=t=>c.value=c.value.length?[]:["adv"])},{default:o(()=>[...e[23]||(e[23]=[p("高级 ›",-1)])]),_:1})]),s(B,{modelValue:c.value,"onUpdate:modelValue":e[12]||(e[12]=t=>c.value=t),class:"adv-collapse"},{default:o(()=>[s(F,{name:"adv"},{title:o(()=>[...e[24]||(e[24]=[a("span",{class:"adv-title"},"Web-Enabled · 端口与监听",-1)])]),default:o(()=>[a("div",$e,[s(i,{label:"监听地址"},{default:o(()=>[s(y,{modelValue:d.host,"onUpdate:modelValue":e[8]||(e[8]=t=>d.host=t),size:"default"},null,8,["modelValue"])]),_:1}),s(i,{label:"WebAPI"},{default:o(()=>[s(V,{modelValue:d.apiPort,"onUpdate:modelValue":e[9]||(e[9]=t=>d.apiPort=t),min:1,max:65535,size:"default","controls-position":"right"},null,8,["modelValue"])]),_:1}),s(i,{label:"Platform"},{default:o(()=>[s(V,{modelValue:d.platformPort,"onUpdate:modelValue":e[10]||(e[10]=t=>d.platformPort=t),min:1,max:65535,size:"default","controls-position":"right"},null,8,["modelValue"])]),_:1}),s(i,{label:"webVRender"},{default:o(()=>[s(V,{modelValue:d.vrPort,"onUpdate:modelValue":e[11]||(e[11]=t=>d.vrPort=t),min:1,max:65535,size:"default","controls-position":"right"},null,8,["modelValue"])]),_:1})])]),_:1})]),_:1},8,["modelValue"]),s(G,{type:"primary",loading:_.value,class:"btn-login",size:"large",onClick:R},{default:o(()=>[...e[25]||(e[25]=[p(" 登 录 ",-1)])]),_:1},8,["loading"]),e[26]||(e[26]=a("div",{class:"bottom-note"}," 任意非空用户名 + 任意密码即可登录;scope 决定进入 admin / monitor 视图;权限按 Mock 表生成。 ",-1))]),_:1},8,["model"])])]),a("div",ze," 迷 毂 · 智能调度平台 · "+M(A.value),1)])}}}),Xe=fe(Ie,[["__scopeId","data-v-a9a6f95c"]]);export{Xe as default}; diff --git a/MiGu.Server/wwwroot/assets/MapEditorView-BeHcrkSz.js b/MiGu.Server/wwwroot/assets/MapEditorView-BeHcrkSz.js new file mode 100644 index 0000000..eeaf811 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/MapEditorView-BeHcrkSz.js @@ -0,0 +1 @@ +import{aN as Ae,aG as U,aK as a,r as He,c8 as l,I as wa,aD as r,ag as ut,bs as V,aJ as v,K as ka,J as ha,bL as T,ak as Ne,a3 as xa,ai as de,bE as we,aE as ee,bk as Se,aF as H,c7 as fe,ac as Sa,bC as N,a9 as _a,Q as dt,bS as D,b5 as _t,bc as rt,Z as Va,R as ct,E as pt,N as Tt,O as Et,S as It,z as zt,a8 as Pt,aa as mt,ab as ft,ay as ne,ad as Mt,a4 as Ca,bA as Je,F as Ut,ah as $a,bT as Aa,a1 as Lt,a0 as Bt,x as Na,T as Dt,y as Fa,bX as yt,X as A,bo as Rt,bl as jt,aI as Ta,bj as Ea,bp as Ot,bV as Ia,br as za,bW as Pa,Y as K}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{W as Ma}from"./Workspace3D-B9mv4VWE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{h as Re,a as je,r as J,n as Ua}from"./reflection-BwOBPyb9.js";/* empty css *//* empty css *//* empty css *//* empty css */import{m as j,a as st,b as it}from"./mapEdit-BXIATxCI.js";import{u as La,r as Vt,a as Ba,p as Da}from"./projectSaveFlow-BOHSv3Vc.js";import"./useProjectionStream-ayb6RvWW.js";const Ra={class:"edit-top-bar"},ja=Ae({__name:"EditTopBar",props:{canUndo:{type:Boolean},canRedo:{type:Boolean},saving:{type:Boolean},viewFilter:{}},emits:["cmd"],setup(o,{emit:F}){const w=F;function y(_){w("cmd",_)}function h(_){return _?"☑":"☐"}return(_,i)=>{const k=He,u=ha,z=ka,$=wa,p=ut;return V(),U("div",Ra,[a(k,{type:"primary",class:"topbar-save-btn",loading:o.saving,onClick:i[0]||(i[0]=m=>y("project.save"))},{default:l(()=>[...i[3]||(i[3]=[v(" 保存 ",-1)])]),_:1},8,["loading"]),a($,{trigger:"click",onCommand:y},{dropdown:l(()=>[a(z,null,{default:l(()=>[a(u,{command:"file.import.dwg"},{default:l(()=>[...i[5]||(i[5]=[v("导入 .dwg/.dxf",-1)])]),_:1}),a(u,{command:"file.import.geojson"},{default:l(()=>[...i[6]||(i[6]=[v("导入 .geojson",-1)])]),_:1}),a(u,{command:"file.upload.image",divided:""},{default:l(()=>[...i[7]||(i[7]=[v("导入图片",-1)])]),_:1}),a(u,{command:"file.upload.model"},{default:l(()=>[...i[8]||(i[8]=[v("导入 CycleGUI 模型",-1)])]),_:1}),a(u,{command:"file.export.png",divided:""},{default:l(()=>[...i[9]||(i[9]=[v("导出 PNG",-1)])]),_:1}),a(u,{command:"file.export.svg"},{default:l(()=>[...i[10]||(i[10]=[v("导出 SVG",-1)])]),_:1}),a(u,{command:"file.export.json"},{default:l(()=>[...i[11]||(i[11]=[v("导出 JSON",-1)])]),_:1})]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[4]||(i[4]=[v("导入",-1)])]),_:1})]),_:1}),a($,{trigger:"click",onCommand:y},{dropdown:l(()=>[a(z,null,{default:l(()=>[a(u,{command:"edit.cut"},{default:l(()=>[...i[13]||(i[13]=[v("剪切 (Ctrl+X)",-1)])]),_:1}),a(u,{command:"edit.copy"},{default:l(()=>[...i[14]||(i[14]=[v("复制 (Ctrl+C)",-1)])]),_:1}),a(u,{command:"edit.paste"},{default:l(()=>[...i[15]||(i[15]=[v("粘贴 (Ctrl+V)",-1)])]),_:1}),a(u,{command:"edit.delete"},{default:l(()=>[...i[16]||(i[16]=[v("删除 (Del)",-1)])]),_:1}),a(u,{command:"edit.selectAll",divided:""},{default:l(()=>[...i[17]||(i[17]=[v("全选",-1)])]),_:1}),a(u,{command:"edit.invert"},{default:l(()=>[...i[18]||(i[18]=[v("反选",-1)])]),_:1})]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[12]||(i[12]=[v("编辑",-1)])]),_:1})]),_:1}),a($,{trigger:"click",onCommand:y},{dropdown:l(()=>[a(z,null,{default:l(()=>[a(u,{command:"edit.undo",disabled:!o.canUndo},{default:l(()=>[...i[20]||(i[20]=[v("撤销 (Ctrl+Z)",-1)])]),_:1},8,["disabled"]),a(u,{command:"edit.redo",disabled:!o.canRedo},{default:l(()=>[...i[21]||(i[21]=[v("重做 (Ctrl+Y)",-1)])]),_:1},8,["disabled"])]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[19]||(i[19]=[v("撤销",-1)])]),_:1})]),_:1}),a($,{trigger:"click",onCommand:y},{dropdown:l(()=>[a(z,null,{default:l(()=>[a(u,{command:"view.fitAll"},{default:l(()=>[...i[23]||(i[23]=[v("缩放至全屏",-1)])]),_:1}),a(u,{command:"view.fitSelection"},{default:l(()=>[...i[24]||(i[24]=[v("缩放至选中",-1)])]),_:1}),a(u,{command:"view.toggleGrid",divided:""},{default:l(()=>[...i[25]||(i[25]=[v("显示网格",-1)])]),_:1}),a(u,{command:"view.toggleScale"},{default:l(()=>[...i[26]||(i[26]=[v("显示比例尺",-1)])]),_:1}),a(u,{command:"view.toggle2D"},{default:l(()=>[...i[27]||(i[27]=[v("切换 2D / 3D",-1)])]),_:1})]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[22]||(i[22]=[v("视图",-1)])]),_:1})]),_:1}),a($,{trigger:"click",onCommand:y},{dropdown:l(()=>[a(z,null,{default:l(()=>[a(u,{command:"layer.new"},{default:l(()=>[...i[29]||(i[29]=[v("新建图层…",-1)])]),_:1}),a(u,{command:"layer.toggleVisibility"},{default:l(()=>[...i[30]||(i[30]=[v("切换显示图层…",-1)])]),_:1})]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[28]||(i[28]=[v("图层",-1)])]),_:1})]),_:1}),a($,{trigger:"click",onCommand:y},{dropdown:l(()=>[a(z,{class:"topbar-filter-menu"},{default:l(()=>[a(u,{disabled:"",class:"topbar-filter-header"},{default:l(()=>[...i[32]||(i[32]=[v("选择(可拾取)",-1)])]),_:1}),a(u,{command:"view.select.sites"},{default:l(()=>[v(T(h(o.viewFilter.selectFilter.sites))+" 站点",1)]),_:1}),a(u,{command:"view.select.tracks"},{default:l(()=>[v(T(h(o.viewFilter.selectFilter.tracks))+" 路径",1)]),_:1}),a(u,{command:"view.select.cars"},{default:l(()=>[v(T(h(o.viewFilter.selectFilter.cars))+" AGV",1)]),_:1}),a(u,{command:"view.select.decor"},{default:l(()=>[v(T(h(o.viewFilter.selectFilter.decor))+" 区域 / 装饰",1)]),_:1}),a(u,{divided:"",disabled:"",class:"topbar-filter-header"},{default:l(()=>[...i[33]||(i[33]=[v("对齐(鼠标吸附)",-1)])]),_:1}),a(u,{command:"view.snap.sites"},{default:l(()=>[v(T(h(o.viewFilter.alignSnap.sites))+" 吸附站点",1)]),_:1}),a(u,{command:"view.snap.cars"},{default:l(()=>[v(T(h(o.viewFilter.alignSnap.cars))+" 吸附 AGV",1)]),_:1}),a(u,{command:"view.snap.tracks"},{default:l(()=>[v(T(h(o.viewFilter.alignSnap.tracks))+" 吸附路径",1)]),_:1}),a(u,{divided:"",disabled:"",class:"topbar-filter-header"},{default:l(()=>[...i[34]||(i[34]=[v("显示内容",-1)])]),_:1}),a(u,{command:"view.show.sceneLabels"},{default:l(()=>[v(T(h(o.viewFilter.showViewport.sceneLabels))+" 场景图元标记",1)]),_:1}),a(u,{command:"view.show.scenePrimitives"},{default:l(()=>[v(T(h(o.viewFilter.showViewport.scenePrimitives))+" 场景图元",1)]),_:1}),a(u,{command:"view.show.cars"},{default:l(()=>[v(T(h(o.viewFilter.showViewport.cars))+" 车辆",1)]),_:1})]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[31]||(i[31]=[v("过滤",-1)])]),_:1})]),_:1}),i[37]||(i[37]=r("div",{class:"spacer"},null,-1)),a(p,{content:"撤销 (Ctrl+Z)",placement:"bottom"},{default:l(()=>[a(k,{size:"small",disabled:!o.canUndo,class:"topbar-icon-btn",onClick:i[1]||(i[1]=m=>y("edit.undo"))},{default:l(()=>[...i[35]||(i[35]=[v("↶",-1)])]),_:1},8,["disabled"])]),_:1}),a(p,{content:"重做 (Ctrl+Y)",placement:"bottom"},{default:l(()=>[a(k,{size:"small",disabled:!o.canRedo,class:"topbar-icon-btn",onClick:i[2]||(i[2]=m=>y("edit.redo"))},{default:l(()=>[...i[36]||(i[36]=[v("↷",-1)])]),_:1},8,["disabled"])]),_:1})])}}}),Oa=Ne(ja,[["__scopeId","data-v-1082d582"]]),Ka={class:"edit-tool-rail"},Ya={class:"rail-group-title"},Xa={class:"rail-group-text"},Ha={class:"rail-group-list"},Wa=["onClick"],Ga={class:"rail-btn-glyph"},qa={class:"rail-btn-label"},Za={key:0,class:"rail-divider"},Ja={class:"rail-group rail-group-ai"},Qa=Ae({__name:"EditToolRail",props:{activeTool:{}},emits:["select-tool","open-ai"],setup(o,{emit:F}){const w=o,y=F,h=[{id:"select",title:"选择",tools:[{id:"select.single",label:"单选",glyph:"⌖",tip:"点击拾取单个对象"},{id:"select.rect",label:"矩形框选",glyph:"▱"},{id:"select.lasso",label:"套索圈选",glyph:"◯"},{id:"select.byType.site",label:"仅站点",glyph:"·"},{id:"select.byType.polyline",label:"仅折线",glyph:"╱",tip:"仅 UITrack(直线/折线)"},{id:"select.byType.bezier",label:"仅贝塞尔",glyph:"∽",tip:"仅 UIBezierTrack"},{id:"select.byType.arc",label:"仅弧形",glyph:"◜",tip:"仅 UICircularArcTrack"},{id:"select.byType.decor",label:"仅装饰",glyph:"★"},{id:"select.byType.currentLayer",label:"当前图层",glyph:"▤",tip:"保留当前图层对象"},{id:"select.invert",label:"反选",glyph:"⇄"},{id:"select.clear",label:"清空选中",glyph:"⊘"}]},{id:"draw",title:"绘制",tools:[{id:"draw.site",label:"添加站点",glyph:"+",tip:"点击工具后在画布单击放置"},{id:"draw.sites.continuous",label:"连续站点",glyph:"⁂",tip:"切换工具或 Esc 退出"},{id:"draw.track.polyline",label:"折线路径",glyph:"─",tip:"依序点击两端站点"},{id:"draw.track.bezier",label:"贝塞尔路径",glyph:"∼",tip:"点两端站点 → 弹框输入中间控制点个数 → 连续点选每个控制点"},{id:"draw.track.arc",label:"弧形路径",glyph:"◜",tip:"点两端站点 → 输入半径(≥ |AB|/2,等于即半圆)"},{id:"draw.decor.line",label:"装饰线段",glyph:"╱"},{id:"draw.decor.rect",label:"装饰矩形",glyph:"▭"},{id:"draw.decor.circle",label:"装饰圆",glyph:"◯"},{id:"draw.decor.text",label:"装饰文本",glyph:"T"},{id:"draw.image",label:"插入图片",glyph:"🖼"},{id:"draw.model",label:"插入模型",glyph:"◎",tip:"CycleGUI 3D 模型 (obj/glb/gltf)"}]},{id:"transform",title:"变换",tools:[{id:"transform.move",label:"移动",glyph:"✥"},{id:"transform.rotate",label:"旋转",glyph:"⟳"},{id:"transform.scale",label:"缩放",glyph:"⤡"},{id:"transform.duplicate",label:"复制副本",glyph:"⎘",tip:"Ctrl+D"},{id:"transform.copy",label:"复制",glyph:"📋",tip:"Ctrl+C"},{id:"transform.paste",label:"粘贴",glyph:"📥",tip:"Ctrl+V"},{id:"transform.delete",label:"删除",glyph:"🗑",tip:"Delete"},{id:"transform.copyFields",label:"复制字段",glyph:"⇉",tip:"多选时第 1 个为源,其余为目标"}]},{id:"align",title:"对齐",tools:[{id:"align.left",label:"左对齐",glyph:"⫷"},{id:"align.right",label:"右对齐",glyph:"⫸"},{id:"align.top",label:"上对齐",glyph:"⫵"},{id:"align.bottom",label:"下对齐",glyph:"⫶"},{id:"align.centerH",label:"水平居中",glyph:"⇔"},{id:"align.centerV",label:"垂直居中",glyph:"⇕"},{id:"align.center",label:"整体居中",glyph:"⊕"},{id:"align.distributeH",label:"水平等距",glyph:"⇿"},{id:"align.distributeV",label:"垂直等距",glyph:"⇳"},{id:"align.toFirst",label:"对齐到首",glyph:"⏮"},{id:"align.toLast",label:"对齐到尾",glyph:"⏭"}]},{id:"batch",title:"批量生成",tools:[{id:"batch.linearH",label:"横向间距",glyph:"⇢"},{id:"batch.linearV",label:"纵向间距",glyph:"⇣"},{id:"batch.matrix",label:"矩阵生成",glyph:"#"},{id:"batch.alongPath",label:"沿路径采样",glyph:"⤳",tip:"先选 1+ 条路径,再点本工具"},{id:"batch.circular",label:"环形阵列",glyph:"◌"}]},{id:"show",title:"显示",tools:[{id:"show.controlPoints",label:"控制点",glyph:"⊙"},{id:"show.controlHandles",label:"控制柄",glyph:"⊝"}]}];function _(k){return k===w.activeTool}function i(k){y("select-tool",k)}return(k,u)=>{const z=ut,$=xa;return V(),U("div",Ka,[a($,{class:"rail-scroll"},{default:l(()=>[(V(),U(de,null,we(h,(p,m)=>r("div",{key:p.id,class:"rail-group"},[r("div",Ya,[u[1]||(u[1]=r("span",{class:"rail-group-bar"},null,-1)),r("span",Xa,T(p.title),1),u[2]||(u[2]=r("span",{class:"rail-group-bar"},null,-1))]),r("div",Ha,[(V(!0),U(de,null,we(p.tools,M=>(V(),ee(z,{key:M.id,content:M.tip??M.label,placement:"right","show-after":280},{default:l(()=>[r("button",{class:Se(["rail-btn",{"rail-btn--active":_(M.id)}]),onClick:E=>i(M.id)},[r("span",Ga,T(M.glyph),1),r("span",qa,T(M.label),1)],10,Wa)]),_:2},1032,["content"]))),128))]),my("open-ai"))},[...u[3]||(u[3]=[r("span",{class:"rail-btn-glyph"},"✦",-1),r("span",{class:"rail-btn-label"},"AI 生图",-1)])])])]),_:1})])}}}),el=Ne(Qa,[["__scopeId","data-v-6b284dea"]]),tl={class:"edit-property-panel"},al={key:0,class:"empty-hint"},ll={key:1,class:"loading-hint"},nl={key:2,class:"object-pane"},ol={class:"prop-card prop-card--header"},sl={class:"prop-card-row"},il={class:"prop-id-block"},rl={class:"prop-id-tag"},ul={class:"prop-type-tag"},dl={class:"prop-header-actions"},cl=["disabled"],pl={class:"prop-delete-icon"},ml={class:"prop-card-row prop-name-row"},fl={class:"prop-card-row prop-layer-row"},yl={key:0,class:"prop-card prop-card--geom"},vl={class:"prop-card-header"},bl=["title"],gl={class:"prop-card-flag-text"},wl={class:"prop-card-meta"},kl={class:"prop-grid"},hl={class:"prop-field-label"},xl={key:0,class:"prop-field-unit"},Sl={key:1,class:"prop-card prop-card--style"},_l={class:"prop-card-header"},Vl={class:"prop-card-meta"},Cl={class:"prop-grid"},$l={class:"prop-field-label"},Al={class:"prop-card prop-card--custom"},Nl={class:"prop-card-header"},Fl={class:"prop-card-meta"},Tl={key:0,class:"prop-grid"},El=["title"],Il={class:"prop-field-row"},zl=["onClick"],Pl={key:1,class:"prop-empty-row"},Ml={key:2,class:"prop-card prop-card--status"},Ul={class:"prop-card-header"},Ll={class:"prop-card-meta"},Bl={class:"prop-status-list"},Dl={class:"prop-status-key"},Rl=["title"],jl={key:3,class:"prop-card prop-card--actions"},Ol={class:"prop-card-header"},Kl={class:"prop-card-meta"},Yl={class:"prop-actions"},Xl=["disabled","onClick"],Hl={key:0,class:"prop-action-spinner"},Wl={class:"prop-action-label"},Gl={class:"defaults-pane"},ql={key:0,class:"empty-hint defaults-empty"},Zl={class:"prop-card prop-card--style"},Jl={class:"prop-card-header"},Ql={class:"prop-card-flag-text"},en={class:"prop-card"},tn={class:"prop-card prop-card--style"},an={class:"prop-card-header"},ln={class:"prop-card-flag-text"},nn={class:"prop-card"},on={key:3,class:"loading-hint"},sn=Ae({__name:"EditPropertyPanel",props:{selectionCount:{},primary:{},fields:{},status:{},methods:{},loading:{type:Boolean},layers:{},defaults:{},layerRows:{},selectionKind:{},viewportStyle:{},viewportStyleLoading:{type:Boolean},viewportSyncing:{type:Boolean}},emits:["rename","change-layer","set-field","add-field","exec-action","save-defaults","layer-toggle","add-layer","delete","patch-viewport"],setup(o,{emit:F}){const w=o,y=F,h=N("object"),_=N(!1);let i=null;const k=N(null),u=N(null);fe(()=>w.viewportStyle,g=>{if(!g){k.value=null,u.value=null;return}k.value={...g.site},u.value={...g.track}},{immediate:!0,deep:!0}),fe(()=>w.selectionKind,g=>{(g==="site"||g==="track")&&(h.value="defaults")});function z(){_.value=!0,i&&clearTimeout(i),i=setTimeout(()=>{_.value=!1},1400)}fe(()=>w.viewportSyncing,(g,d)=>{d&&!g&&z()});function $(g){k.value&&(k.value={...k.value,...g},y("patch-viewport",{site:{...k.value}}))}function p(g){u.value&&(u.value={...u.value,...g},y("patch-viewport",{track:{...u.value}}))}const m=N(null),M=N(""),E=N(!1),b=N(!1);let q=null;function Q(){b.value=!0,q&&clearTimeout(q),q=setTimeout(()=>{b.value=!1},1200)}const ye=new Set(["id","name","layerName"]),W=new Set(["x","y","z","cx","cy","cz","dx","dy","dz","sx","sy","ex","ey","startX","startY","endX","endY","size","width","height","depth","angle","rotation","theta","scale","radius","r","siteA","siteB"]),ve=new Set(["color","displaySetting","direction","typeInfo","mustFree","imagePath","modelPath","fontFamily","fontSize","textColor","lineWidth","opacity"]),O={x:"X",y:"Y",z:"Z",size:"大小",width:"宽",height:"高",depth:"厚",angle:"角度",rotation:"旋转",theta:"θ",scale:"缩放",radius:"半径",siteA:"起点站",siteB:"终点站",startX:"起点 X",startY:"起点 Y",endX:"终点 X",endY:"终点 Y",cx:"中心 X",cy:"中心 Y",color:"颜色",displaySetting:"显示设置",direction:"方向",typeInfo:"类型信息",mustFree:"必须互斥",imagePath:"图片路径",modelPath:"模型路径",fontSize:"字号",textColor:"文字色",lineWidth:"线宽",opacity:"透明度"},se={x:"mm",y:"mm",z:"mm",cx:"mm",cy:"mm",cz:"mm",dx:"mm",dy:"mm",dz:"mm",startX:"mm",startY:"mm",endX:"mm",endY:"mm",width:"mm",height:"mm",depth:"mm",size:"mm",radius:"mm",angle:"°",rotation:"°",theta:"°",fontSize:"px",lineWidth:"px"},ie=ne(()=>w.fields.filter(g=>!ye.has(g.key))),te=ne(()=>ie.value.filter(g=>W.has(g.key))),x=ne(()=>ie.value.filter(g=>ve.has(g.key))),C=ne(()=>ie.value.filter(g=>!W.has(g.key)&&!ve.has(g.key)));function G(g){return O[g]??g}function oe(g){return se[g]??""}function ke(g){if(g==null||g==="")return;const d=Number(g);return Number.isFinite(d)?d:void 0}function re(g){return g.toLowerCase().includes("angle")||g.toLowerCase().includes("rotation")||g==="theta"?1:g==="scale"||g==="opacity"?.1:10}function ce(g){return W.has(g)}function _e(g,d){return g==="color"||g==="textColor"?!0:/^#[0-9a-fA-F]{3,8}$/.test(d)}function B(g,d){return d==="true"||d==="false"||d==="True"||d==="False"}function Y(g){return g==="true"||g==="True"||g==="1"}const Z=ne(()=>{const g=(w.primary?.status??"").toLowerCase();return g?g.includes("error")||g.includes("alarm")||g.includes("failed")?"danger":g.includes("warn")||g.includes("idle")?"warning":g.includes("online")||g.includes("running")||g.includes("ready")||g.includes("ok")?"success":"info":"info"}),he=N("");fe(()=>w.primary?.name??"",g=>{he.value=g},{immediate:!0});function Qe(){Oe()}function Oe(){if(!w.primary)return;const g=he.value;g!==(w.primary.name??"")&&y("rename",g)}function Fe(g){y("change-layer",g)}function ae(g,d){y("set-field",g,d),W.has(g)&&Q()}function Ke(){y("add-field")}async function We(g){try{m.value=g,y("exec-action",g)}finally{m.value=null}}function Te(){y("save-defaults")}function Ee(g){y("layer-toggle",g)}function xe(){const g=M.value.trim();g&&(y("add-layer",g),M.value="")}function Ie(){w.selectionCount===0||E.value||(E.value=!0,y("delete"),setTimeout(()=>{E.value=!1},600))}return(g,d)=>{const ze=dt,ue=Mt,Pe=ut,be=ct,Ge=Va,Me=Ca,pe=It,ge=zt,Ue=Pt,Le=_a,et=pt,X=Et,Ve=Tt,Be=He,Ce=ft,qe=mt,tt=Sa;return V(),U("div",tl,[a(tt,{modelValue:h.value,"onUpdate:modelValue":d[20]||(d[20]=c=>h.value=c),class:"prop-tabs"},{default:l(()=>[a(Le,{label:"对象",name:"object"},{default:l(()=>[o.selectionCount===0?(V(),U("div",al,[a(ze,{class:"empty-icon"},{default:l(()=>[a(D(_t))]),_:1}),d[21]||(d[21]=r("span",{class:"empty-title"},"未选中对象",-1)),d[22]||(d[22]=r("span",{class:"empty-desc"},"在画布上点击或框选以编辑属性。",-1))])):o.loading?(V(),U("div",ll,[a(ze,{class:"is-loading"},{default:l(()=>[a(D(rt))]),_:1}),d[23]||(d[23]=r("span",null,"加载属性…",-1))])):(V(),U("div",nl,[r("section",ol,[r("div",sl,[r("div",il,[r("span",rl,T(o.selectionCount>1?`多选 ${o.selectionCount}`:`#${o.primary?.id??"-"}`),1),r("span",ul,T(o.primary?.typeName??"-"),1)]),r("div",dl,[o.primary?.status?(V(),ee(ue,{key:0,type:Z.value,size:"small",effect:"dark",class:"prop-status-tag"},{default:l(()=>[v(T(o.primary.status),1)]),_:1},8,["type"])):H("",!0),a(Pe,{content:o.selectionCount>1?`删除选中的 ${o.selectionCount} 个对象(可 Ctrl+Z 撤销)`:"删除该对象(可 Ctrl+Z 撤销)",placement:"top","show-after":220},{default:l(()=>[r("button",{type:"button",class:"prop-delete-btn",disabled:E.value,onClick:Ie},[r("span",pl,T(E.value?"⟳":"🗑"),1),d[24]||(d[24]=r("span",null,"删除",-1))],8,cl)]),_:1},8,["content"])])]),r("div",ml,[d[25]||(d[25]=r("label",{class:"prop-name-label"},"名称",-1)),o.primary?(V(),ee(be,{key:0,"model-value":he.value,size:"small",placeholder:"对象名","onUpdate:modelValue":d[0]||(d[0]=c=>he.value=c),onBlur:Qe,onChange:Oe},null,8,["model-value"])):H("",!0)]),r("div",fl,[d[26]||(d[26]=r("label",{class:"prop-name-label"},"图层",-1)),o.primary?(V(),ee(Me,{key:0,"model-value":o.primary.layer??"",size:"small",placeholder:"—",class:"prop-layer-select","onUpdate:modelValue":d[1]||(d[1]=c=>Fe(c))},{default:l(()=>[a(Ge,{label:"(无)",value:""}),(V(!0),U(de,null,we(o.layers,c=>(V(),ee(Ge,{key:c,label:c,value:c},null,8,["label","value"]))),128))]),_:1},8,["model-value"])):H("",!0)])]),te.value.length>0?(V(),U("section",yl,[r("header",vl,[d[28]||(d[28]=r("span",{class:"prop-card-title"},"位置 / 几何",-1)),r("span",{class:Se(["prop-card-flag",{"is-synced":b.value}]),title:b.value?"已同步到画布":"改动会立即同步到 SimpleLite 画布"},[d[27]||(d[27]=r("span",{class:"prop-card-flag-dot"},null,-1)),r("span",gl,T(b.value?"已同步":"同步到画布"),1)],10,bl),r("span",wl,T(te.value.length)+" 项",1)]),r("div",kl,[(V(!0),U(de,null,we(te.value,c=>(V(),U("div",{key:c.key,class:"prop-grid-item"},[r("label",hl,[v(T(G(c.key))+" ",1),oe(c.key)?(V(),U("span",xl,T(oe(c.key)),1)):H("",!0)]),ce(c.key)?(V(),ee(pe,{key:0,"model-value":ke(c.value),controls:!1,step:re(c.key),size:"small",class:"prop-field-num",onChange:R=>ae(c.key,R==null?"":String(R))},null,8,["model-value","step","onChange"])):(V(),ee(be,{key:1,"model-value":c.value,size:"small",spellcheck:"false",onChange:R=>ae(c.key,R)},null,8,["model-value","onChange"]))]))),128))])])):H("",!0),x.value.length>0?(V(),U("section",Sl,[r("header",_l,[d[29]||(d[29]=r("span",{class:"prop-card-title"},"样式 / 外观",-1)),r("span",Vl,T(x.value.length)+" 项",1)]),r("div",Cl,[(V(!0),U(de,null,we(x.value,c=>(V(),U("div",{key:c.key,class:"prop-grid-item"},[r("label",$l,T(G(c.key)),1),_e(c.key,c.value)?(V(),ee(ge,{key:0,"model-value":c.value||"#ffffff","show-alpha":"",size:"small",onChange:R=>ae(c.key,R??"")},null,8,["model-value","onChange"])):B(c.key,c.value)?(V(),ee(Ue,{key:1,"model-value":Y(c.value),size:"small",onChange:R=>ae(c.key,R?"true":"false")},null,8,["model-value","onChange"])):(V(),ee(be,{key:2,"model-value":c.value,size:"small",spellcheck:"false",onChange:R=>ae(c.key,R)},null,8,["model-value","onChange"]))]))),128))])])):H("",!0),r("section",Al,[r("header",Nl,[d[30]||(d[30]=r("span",{class:"prop-card-title"},"其它字段 / 自定义",-1)),r("span",Fl,T(C.value.length)+" 项",1)]),C.value.length>0?(V(),U("div",Tl,[(V(!0),U(de,null,we(C.value,c=>(V(),U("div",{key:c.key,class:"prop-grid-item prop-grid-item--wide"},[r("label",{class:"prop-field-label",title:c.key},T(c.key),9,El),r("div",Il,[a(be,{"model-value":c.value,size:"small",spellcheck:"false",onChange:R=>ae(c.key,R)},null,8,["model-value","onChange"]),a(Pe,{content:"删除该字段",placement:"top"},{default:l(()=>[r("button",{class:"prop-field-icon-btn",onClick:R=>ae(c.key,"")},"×",8,zl)]),_:2},1024)])]))),128))])):(V(),U("div",Pl,"无其它字段")),r("button",{class:"prop-add-field-btn",onClick:Ke},"+ 添加字段")]),o.status.length>0?(V(),U("section",Ml,[r("header",Ul,[d[31]||(d[31]=r("span",{class:"prop-card-title"},"运行状态",-1)),r("span",Ll,T(o.status.length)+" 项",1)]),r("div",Bl,[(V(!0),U(de,null,we(o.status,c=>(V(),U("div",{key:c.key,class:"prop-status-item"},[r("span",Dl,T(c.key),1),r("span",{class:"prop-status-value",title:c.value},T(c.value),9,Rl)]))),128))])])):H("",!0),o.methods.length>0?(V(),U("section",jl,[r("header",Ol,[d[32]||(d[32]=r("span",{class:"prop-card-title"},"操作",-1)),r("span",Kl,T(o.methods.length)+" 项",1)]),r("div",Yl,[(V(!0),U(de,null,we(o.methods,c=>(V(),ee(Pe,{key:c.methodName,content:c.description||c.label||c.methodName,placement:"top","show-after":220},{default:l(()=>[r("button",{class:"prop-action-btn",disabled:m.value===c.methodName,onClick:R=>We(c.methodName)},[m.value===c.methodName?(V(),U("span",Hl,"⟳")):H("",!0),d[33]||(d[33]=r("span",{class:"prop-action-icon"},"▶",-1)),r("span",Wl,T(c.label||c.methodName),1)],8,Xl)]),_:2},1032,["content"]))),128))])])):H("",!0)]))]),_:1}),a(Le,{label:"类型默认",name:"defaults"},{default:l(()=>[r("div",Gl,[a(et,{type:"info",closable:!1,class:"defaults-alert"},{default:l(()=>[...d[34]||(d[34]=[v(" 视口样式与 SimpleLite「视口样式」对话框同步,修改后即时重绘画布;下方「新建默认」仅影响下次创建对象。 ",-1)])]),_:1}),o.selectionKind?o.selectionKind==="site"&&k.value?(V(),U(de,{key:1},[r("section",Zl,[r("header",Jl,[d[38]||(d[38]=r("span",{class:"prop-card-title"},"站点视口样式",-1)),r("span",{class:Se(["prop-card-flag",{"is-synced":_.value}])},[d[37]||(d[37]=r("span",{class:"prop-card-flag-dot"},null,-1)),r("span",Ql,T(o.viewportSyncing?"同步中…":_.value?"已同步":"实时同步"),1)],2)]),a(Ve,{"label-width":"132px",size:"small",class:"defaults-form"},{default:l(()=>[a(X,{label:"整体大小倍率"},{default:l(()=>[a(pe,{"model-value":k.value.drawScale,min:.25,max:12,step:.1,controls:!0,"onUpdate:modelValue":d[2]||(d[2]=c=>$({drawScale:c??k.value.drawScale}))},null,8,["model-value"])]),_:1}),a(X,{label:"未选中圆点半径"},{default:l(()=>[a(pe,{"model-value":k.value.dotRadiusNormal,min:1,max:24,step:.5,"onUpdate:modelValue":d[3]||(d[3]=c=>$({dotRadiusNormal:c??k.value.dotRadiusNormal}))},null,8,["model-value"])]),_:1}),a(X,{label:"选中圆点半径"},{default:l(()=>[a(pe,{"model-value":k.value.dotRadiusSelected,min:1,max:32,step:.5,"onUpdate:modelValue":d[4]||(d[4]=c=>$({dotRadiusSelected:c??k.value.dotRadiusSelected}))},null,8,["model-value"])]),_:1}),a(X,{label:"选中环半径 (m)"},{default:l(()=>[a(pe,{"model-value":k.value.selectionRingM,min:.02,max:.8,step:.01,"onUpdate:modelValue":d[5]||(d[5]=c=>$({selectionRingM:c??k.value.selectionRingM}))},null,8,["model-value"])]),_:1}),a(X,{label:"站点颜色(未选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(k.value.colorNormalArgb),"onUpdate:modelValue":d[6]||(d[6]=c=>$({colorNormalArgb:D(Re)(c??"#ffffff")}))},null,8,["model-value"])]),_:1}),a(X,{label:"站点颜色(选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(k.value.colorSelectedArgb),"onUpdate:modelValue":d[7]||(d[7]=c=>$({colorSelectedArgb:D(Re)(c??"#ff0000")}))},null,8,["model-value"])]),_:1}),a(X,{label:"标签颜色(未选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(k.value.labelColorNormalArgb),"onUpdate:modelValue":d[8]||(d[8]=c=>$({labelColorNormalArgb:D(Re)(c??"#ffffff")}))},null,8,["model-value"])]),_:1}),a(X,{label:"标签颜色(选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(k.value.labelColorSelectedArgb),"onUpdate:modelValue":d[9]||(d[9]=c=>$({labelColorSelectedArgb:D(Re)(c??"#ff0000")}))},null,8,["model-value"])]),_:1})]),_:1})]),r("section",en,[d[40]||(d[40]=r("header",{class:"prop-card-header"},[r("span",{class:"prop-card-title"},"新建站点默认")],-1)),a(Ve,{"label-width":"132px",size:"small",class:"defaults-form"},{default:l(()=>[a(X,{label:"默认图层"},{default:l(()=>[a(be,{modelValue:o.defaults.site.layer,"onUpdate:modelValue":d[10]||(d[10]=c=>o.defaults.site.layer=c)},null,8,["modelValue"])]),_:1}),a(X,{label:"名字前缀"},{default:l(()=>[a(be,{modelValue:o.defaults.site.namePrefix,"onUpdate:modelValue":d[11]||(d[11]=c=>o.defaults.site.namePrefix=c)},null,8,["modelValue"])]),_:1}),a(Be,{size:"small",type:"primary",plain:"",onClick:Te},{default:l(()=>[...d[39]||(d[39]=[v("保存新建默认",-1)])]),_:1})]),_:1})])],64)):o.selectionKind==="track"&&u.value?(V(),U(de,{key:2},[r("section",tn,[r("header",an,[d[42]||(d[42]=r("span",{class:"prop-card-title"},"路径视口样式",-1)),r("span",{class:Se(["prop-card-flag",{"is-synced":_.value}])},[d[41]||(d[41]=r("span",{class:"prop-card-flag-dot"},null,-1)),r("span",ln,T(o.viewportSyncing?"同步中…":_.value?"已同步":"实时同步"),1)],2)]),a(Ve,{"label-width":"132px",size:"small",class:"defaults-form"},{default:l(()=>[a(X,{label:"线宽倍率"},{default:l(()=>[a(pe,{"model-value":u.value.drawScale,min:.25,max:12,step:.1,"onUpdate:modelValue":d[12]||(d[12]=c=>p({drawScale:c??u.value.drawScale}))},null,8,["model-value"])]),_:1}),a(X,{label:"未选中线宽"},{default:l(()=>[a(pe,{"model-value":u.value.widthNormal,min:.4,max:8,step:.1,"onUpdate:modelValue":d[13]||(d[13]=c=>p({widthNormal:c??u.value.widthNormal}))},null,8,["model-value"])]),_:1}),a(X,{label:"选中线宽"},{default:l(()=>[a(pe,{"model-value":u.value.widthSelected,min:.4,max:12,step:.1,"onUpdate:modelValue":d[14]||(d[14]=c=>p({widthSelected:c??u.value.widthSelected}))},null,8,["model-value"])]),_:1}),a(X,{label:"显示方向箭头"},{default:l(()=>[a(Ue,{"model-value":u.value.showDirectionArrows,"onUpdate:modelValue":d[15]||(d[15]=c=>p({showDirectionArrows:!!c}))},null,8,["model-value"])]),_:1}),a(X,{label:"路径颜色(未选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(u.value.colorNormalArgb),"onUpdate:modelValue":d[16]||(d[16]=c=>p({colorNormalArgb:D(Re)(c??"#00ffff")}))},null,8,["model-value"])]),_:1}),a(X,{label:"路径颜色(选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(u.value.colorSelectedArgb),"onUpdate:modelValue":d[17]||(d[17]=c=>p({colorSelectedArgb:D(Re)(c??"#ff0000")}))},null,8,["model-value"])]),_:1})]),_:1})]),r("section",nn,[d[44]||(d[44]=r("header",{class:"prop-card-header"},[r("span",{class:"prop-card-title"},"新建路径默认")],-1)),a(Ve,{"label-width":"132px",size:"small",class:"defaults-form"},{default:l(()=>[a(X,{label:"默认图层"},{default:l(()=>[a(be,{modelValue:o.defaults.track.layer,"onUpdate:modelValue":d[18]||(d[18]=c=>o.defaults.track.layer=c)},null,8,["modelValue"])]),_:1}),a(Be,{size:"small",type:"primary",plain:"",onClick:Te},{default:l(()=>[...d[43]||(d[43]=[v("保存新建默认",-1)])]),_:1})]),_:1})])],64)):o.viewportStyleLoading?(V(),U("div",on,[a(ze,{class:"is-loading"},{default:l(()=>[a(D(rt))]),_:1}),d[45]||(d[45]=r("span",null,"加载视口样式…",-1))])):H("",!0):(V(),U("div",ql,[a(ze,{class:"empty-icon"},{default:l(()=>[a(D(_t))]),_:1}),d[35]||(d[35]=r("span",{class:"empty-title"},"请选中站点或路径",-1)),d[36]||(d[36]=r("span",{class:"empty-desc"},"在画布上选中一个站点或路径后,可在此调整对应视口样式。",-1))]))])]),_:1}),a(Le,{label:"图层",name:"layers"},{default:l(()=>[a(qe,{data:o.layerRows,size:"small",class:"layer-table"},{default:l(()=>[a(Ce,{prop:"name",label:"图层",width:"120"}),a(Ce,{label:"可见",width:"60"},{default:l(({row:c})=>[a(Ue,{modelValue:c.visible,"onUpdate:modelValue":R=>c.visible=R,onChange:R=>Ee(c)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),a(Ce,{label:"可选",width:"60"},{default:l(({row:c})=>[a(Ue,{modelValue:c.selectable,"onUpdate:modelValue":R=>c.selectable=R,onChange:R=>Ee(c)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),a(Ce,{label:"颜色"},{default:l(({row:c})=>[a(ge,{modelValue:c.color,"onUpdate:modelValue":R=>c.color=R,onChange:R=>Ee(c)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1})]),_:1},8,["data"]),a(be,{modelValue:M.value,"onUpdate:modelValue":d[19]||(d[19]=c=>M.value=c),size:"small",placeholder:"新图层名",class:"new-layer"},{append:l(()=>[a(Be,{onClick:xe},{default:l(()=>[...d[46]||(d[46]=[v("添加",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}}),rn=Ne(sn,[["__scopeId","data-v-781515fe"]]),un={class:"edit-status-bar"},dn={class:"seg"},cn={class:"seg"},pn={class:"seg"},mn={class:"seg"},fn={class:"seg"},yn={key:0,class:"seg ok"},vn={key:1,class:"seg warn"},bn=Ae({__name:"EditStatusBar",props:{selectedCount:{},mouseX:{},mouseY:{},toolLabel:{},snapOn:{type:Boolean},undoSize:{},redoSize:{},connected:{type:Boolean}},setup(o){function F(w){return Number.isFinite(w)?w.toFixed(0):"--"}return(w,y)=>(V(),U("div",un,[r("span",dn,[y[0]||(y[0]=v(" 选中 ",-1)),r("b",null,T(o.selectedCount),1),y[1]||(y[1]=v(" 个 ",-1))]),r("span",cn," 鼠标 ("+T(F(o.mouseX))+", "+T(F(o.mouseY))+") mm ",1),r("span",pn,[y[2]||(y[2]=v(" 当前工具:",-1)),r("b",null,T(o.toolLabel),1)]),r("span",mn,[y[3]||(y[3]=v(" 吸附:",-1)),r("b",{class:Se({on:o.snapOn,off:!o.snapOn})},T(o.snapOn?"开":"关"),3)]),y[4]||(y[4]=r("span",{class:"spacer"},null,-1)),r("span",fn,"历史 "+T(o.undoSize)+" / "+T(o.redoSize),1),o.connected?(V(),U("span",yn,"● 实时通道在线")):(V(),U("span",vn,"● 实时通道断开"))]))}}),gn=Ne(bn,[["__scopeId","data-v-6254b10f"]]),wn={class:"upload-hint"},kn={key:0,class:"ai-text"},hn={class:"ai-stat"},xn=Ae({__name:"AiGenerateDialog",props:{modelValue:{type:Boolean},configured:{type:Boolean},defaultBounds:{},defaultLayer:{}},emits:["update:modelValue","generated"],setup(o,{emit:F}){const w=o,y=F,h=yt(),_=N(!1),i=N(null),k=N(["r"]),u=Je({prompt:"",mode:"sites+tracks",referenceImageBase64:void 0,layer:w.defaultLayer??"ai-generated",constraints:""}),z=N(w.defaultBounds??[-1e4,-1e4,1e4,1e4]);fe(()=>w.defaultBounds,E=>{E&&(z.value=E)}),fe(()=>w.defaultLayer,E=>{E&&(u.layer=E)});function $(){y("update:modelValue",!1)}function p(){y("update:modelValue",!1),h.push("/admin/config/system")}async function m(E){if(!E.raw)return;const b=new FileReader;b.onload=()=>{const q=String(b.result||""),Q=q.includes(",")?q.split(",",2)[1]:q;u.referenceImageBase64=Q},b.readAsDataURL(E.raw)}async function M(){try{_.value=!0,u.bounds=z.value;const E=await j.aiMapGenerate(u);i.value=E,A.success(`AI 已生成 ${E.created?.length??0} 个对象`),y("generated",E)}catch(E){A.error(`AI 生图失败:${E.message}`)}finally{_.value=!1}}return(E,b)=>{const q=Dt,Q=pt,ye=ct,W=Et,ve=dt,O=$a,se=Bt,ie=Lt,te=It,x=Tt,C=ft,G=Mt,oe=mt,ke=Fa,re=Na,ce=He,_e=Ut;return V(),ee(_e,{"model-value":o.modelValue,title:"AI 生图",width:"640px",class:"ai-generate-dialog","onUpdate:modelValue":b[9]||(b[9]=B=>y("update:modelValue",B)),onClose:$},{footer:l(()=>[a(ce,{onClick:$},{default:l(()=>[...b[20]||(b[20]=[v("关闭",-1)])]),_:1}),a(ce,{type:"primary",loading:_.value,disabled:!u.prompt.trim()||!o.configured,onClick:M},{default:l(()=>[...b[21]||(b[21]=[v(" 生成并落地 ",-1)])]),_:1},8,["loading","disabled"])]),default:l(()=>[o.configured?H("",!0):(V(),ee(Q,{key:0,type:"warning",closable:!1,class:"cfg-alert"},{default:l(()=>[b[11]||(b[11]=v(" 尚未配置 AI 服务(apiKey / endpoint)。请先到 ",-1)),a(q,{type:"primary",onClick:p},{default:l(()=>[...b[10]||(b[10]=[v("系统级配置 → AI 服务",-1)])]),_:1}),b[12]||(b[12]=v(" 完成配置。 ",-1))]),_:1})),a(x,{"label-width":"100px",size:"default"},{default:l(()=>[a(W,{label:"提示词",required:""},{default:l(()=>[a(ye,{modelValue:u.prompt,"onUpdate:modelValue":b[0]||(b[0]=B=>u.prompt=B),type:"textarea",rows:4,placeholder:"一条 U 型生产线,含 5 个工站,间距 2m,方向单向通行..."},null,8,["modelValue"])]),_:1}),a(W,{label:"参考图片"},{default:l(()=>[a(O,{drag:"","auto-upload":!1,"show-file-list":!1,accept:"image/*",onChange:m},{default:l(()=>[r("div",wn,[a(ve,null,{default:l(()=>[a(D(Aa))]),_:1}),r("span",null,T(u.referenceImageBase64?"已选择图片 (点击替换)":"拖入或点击上传参考图(可选,多模态)"),1)])]),_:1})]),_:1}),a(W,{label:"生成模式"},{default:l(()=>[a(ie,{modelValue:u.mode,"onUpdate:modelValue":b[1]||(b[1]=B=>u.mode=B)},{default:l(()=>[a(se,{value:"sites"},{default:l(()=>[...b[13]||(b[13]=[v("仅站点",-1)])]),_:1}),a(se,{value:"tracks"},{default:l(()=>[...b[14]||(b[14]=[v("仅路径",-1)])]),_:1}),a(se,{value:"sites+tracks"},{default:l(()=>[...b[15]||(b[15]=[v("站点+路径",-1)])]),_:1}),a(se,{value:"full"},{default:l(()=>[...b[16]||(b[16]=[v("完整地图",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(W,{label:"范围 (mm)"},{default:l(()=>[a(te,{modelValue:z.value[0],"onUpdate:modelValue":b[2]||(b[2]=B=>z.value[0]=B),placeholder:"x1",step:500},null,8,["modelValue"]),a(te,{modelValue:z.value[1],"onUpdate:modelValue":b[3]||(b[3]=B=>z.value[1]=B),placeholder:"y1",step:500,class:"ml"},null,8,["modelValue"]),a(te,{modelValue:z.value[2],"onUpdate:modelValue":b[4]||(b[4]=B=>z.value[2]=B),placeholder:"x2",step:500,class:"ml"},null,8,["modelValue"]),a(te,{modelValue:z.value[3],"onUpdate:modelValue":b[5]||(b[5]=B=>z.value[3]=B),placeholder:"y2",step:500,class:"ml"},null,8,["modelValue"])]),_:1}),a(W,{label:"图层"},{default:l(()=>[a(ye,{modelValue:u.layer,"onUpdate:modelValue":b[6]||(b[6]=B=>u.layer=B),placeholder:"ai-generated(默认)"},null,8,["modelValue"])]),_:1}),a(W,{label:"附加约束"},{default:l(()=>[a(ye,{modelValue:u.constraints,"onUpdate:modelValue":b[7]||(b[7]=B=>u.constraints=B),placeholder:"例如:单向通行、最小转弯半径 1500mm"},null,8,["modelValue"])]),_:1})]),_:1}),i.value?(V(),ee(re,{key:1,modelValue:k.value,"onUpdate:modelValue":b[8]||(b[8]=B=>k.value=B),class:"result-panel"},{default:l(()=>[a(ke,{title:"AI 返回 / 落地结果",name:"r"},{default:l(()=>[i.value.assistantText?(V(),U("div",kn,T(i.value.assistantText),1)):H("",!0),r("div",hn,[b[17]||(b[17]=v(" 落地对象 ",-1)),r("b",null,T(i.value.created?.length??0),1),b[18]||(b[18]=v(",工具调用次数 ",-1)),r("b",null,T(i.value.usedTools),1),b[19]||(b[19]=v("。 ",-1))]),a(oe,{data:i.value.created??[],size:"small","max-height":"220"},{default:l(()=>[a(C,{label:"工具",prop:"tool",width:"160"}),a(C,{label:"kind",prop:"kind",width:"80"}),a(C,{label:"id",prop:"id",width:"80"}),a(C,{label:"typeName",prop:"typeName"}),a(C,{label:"错误"},{default:l(({row:B})=>[B.error?(V(),ee(G,{key:0,type:"danger",size:"small"},{default:l(()=>[v(T(B.error),1)]),_:2},1024)):H("",!0)]),_:1})]),_:1},8,["data"])]),_:1})]),_:1},8,["modelValue"])):H("",!0)]),_:1},8,["model-value"])}}}),Sn=Ne(xn,[["__scopeId","data-v-47584778"]]),_n={key:0,class:"aap-empty"},Vn=["onClick"],Cn={class:"aap-bubble"},$n={class:"aap-bubble-text"},An={key:0,class:"aap-meta"},Nn={key:1,class:"aap-msg aap-msg--assistant"},Fn={class:"aap-bubble aap-bubble--loading"},Tn={class:"aap-toolbar"},En={class:"aap-input"},Ct=300,$t=720,At="mapEditor.aiAssistant.mode",In=Ae({__name:"AiAssistantPanel",props:{open:{type:Boolean},configured:{type:Boolean},width:{},defaultBounds:{},defaultLayer:{}},emits:["update:open","update:width","generated"],setup(o,{emit:F}){const w=o,y=F,h=ne(()=>Math.min($t,Math.max(Ct,w.width??360))),_=yt(),i=N([]),k=N(""),u=N(!1),z=N(null);function $(){const x=localStorage.getItem(At);return x==="sites"||x==="tracks"||x==="sites+tracks"||x==="full"?x:"sites+tracks"}const p=N($());fe(p,x=>{try{localStorage.setItem(At,x)}catch{}});let m=!1,M=0,E=0;function b(x){m=!0,M=x.clientX,E=h.value,x.currentTarget.setPointerCapture?.(x.pointerId),x.preventDefault()}function q(x){if(!m)return;const C=Math.min($t,Math.max(Ct,E+(M-x.clientX)));y("update:width",C)}function Q(x){m&&(m=!1,x.currentTarget.releasePointerCapture?.(x.pointerId))}Rt(()=>{m=!1});const ye=["生成一条横向直线,5 个站点,间距 2000mm","画一个 3×3 的站点矩阵,间距 2500mm","一条 U 型产线,含 5 个工站,单向通行"];function W(){y("update:open",!1)}function ve(){W(),_.push("/admin/config/system")}function O(x){k.value=x}function se(x){x instanceof KeyboardEvent&&x.key==="Enter"&&!x.shiftKey&&!x.isComposing&&(x.preventDefault(),te())}async function ie(){await Ea();const x=z.value;x&&(x.scrollTop=x.scrollHeight)}async function te(){const x=k.value.trim();if(!(!x||u.value||!w.configured)){i.value.push({role:"user",text:x}),k.value="",ie(),u.value=!0;try{const C={prompt:x,mode:p.value,bounds:w.defaultBounds,layer:w.defaultLayer},G=await j.aiMapGenerate(C),oe=G.created?.length??0;i.value.push({role:"assistant",text:G.assistantText?.trim()||`已根据你的描述生成并落地 ${oe} 个对象。`,meta:{created:oe,usedTools:G.usedTools??0}}),y("generated",G)}catch(C){const G=C.message;i.value.push({role:"assistant",text:`生成失败:${G}`}),A.error(`AI 助手生成失败:${G}`)}finally{u.value=!1,ie()}}}return(x,C)=>{const G=Dt,oe=pt,ke=dt,re=Bt,ce=Lt,_e=ct,B=He;return V(),U("div",{class:Se(["ai-assistant-panel",{"is-open":o.open}]),style:jt({width:h.value+"px"}),role:"complementary","aria-label":"AI 助手"},[r("div",{class:"aap-resizer",title:"拖拽调整宽度",onPointerdown:b,onPointermove:q,onPointerup:Q,onPointercancel:Q},null,32),r("div",{class:"aap-header"},[C[2]||(C[2]=Ta('
AI 助手
用自然语言描述地图需求,自动生成站点 / 路径
',1)),r("button",{class:"aap-close",type:"button",title:"收起",onClick:W},"✕")]),o.configured?H("",!0):(V(),ee(oe,{key:0,type:"warning",closable:!1,class:"aap-alert"},{default:l(()=>[C[4]||(C[4]=v(" 尚未配置 AI 服务(apiKey / endpoint)。请先到 ",-1)),a(G,{type:"primary",onClick:ve},{default:l(()=>[...C[3]||(C[3]=[v("系统级配置 → AI 服务",-1)])]),_:1}),C[5]||(C[5]=v(" 完成配置。 ",-1))]),_:1})),r("div",{ref_key:"listRef",ref:z,class:"aap-messages"},[i.value.length===0?(V(),U("div",_n,[C[6]||(C[6]=r("div",{class:"aap-empty-title"},"试着这样说:",-1)),(V(),U(de,null,we(ye,(Y,Z)=>r("button",{key:Z,type:"button",class:"aap-example",onClick:he=>O(Y)},T(Y),9,Vn)),64))])):H("",!0),(V(!0),U(de,null,we(i.value,(Y,Z)=>(V(),U("div",{key:Z,class:Se(["aap-msg",`aap-msg--${Y.role}`])},[r("div",Cn,[r("div",$n,T(Y.text),1),Y.role==="assistant"&&Y.meta?(V(),U("div",An,[C[7]||(C[7]=v(" 落地对象 ",-1)),r("b",null,T(Y.meta.created),1),C[8]||(C[8]=v(" · 工具调用 ",-1)),r("b",null,T(Y.meta.usedTools),1)])):H("",!0)])],2))),128)),u.value?(V(),U("div",Nn,[r("div",Fn,[a(ke,{class:"is-loading"},{default:l(()=>[a(D(rt))]),_:1}),C[9]||(C[9]=r("span",null,"AI 正在生成…",-1))])])):H("",!0)],512),r("div",Tn,[C[14]||(C[14]=r("span",{class:"aap-toolbar-label"},"生成模式",-1)),a(ce,{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=Y=>p.value=Y),size:"small"},{default:l(()=>[a(re,{value:"sites"},{default:l(()=>[...C[10]||(C[10]=[v("站点",-1)])]),_:1}),a(re,{value:"tracks"},{default:l(()=>[...C[11]||(C[11]=[v("路径",-1)])]),_:1}),a(re,{value:"sites+tracks"},{default:l(()=>[...C[12]||(C[12]=[v("站点+路径",-1)])]),_:1}),a(re,{value:"full"},{default:l(()=>[...C[13]||(C[13]=[v("完整",-1)])]),_:1})]),_:1},8,["modelValue"])]),r("div",En,[a(_e,{modelValue:k.value,"onUpdate:modelValue":C[1]||(C[1]=Y=>k.value=Y),type:"textarea",rows:3,resize:"none",disabled:!o.configured||u.value,placeholder:"例如:一条 U 型生产线,含 5 个工站,间距 2m,单向通行…(Enter 发送,Shift+Enter 换行)",onKeydown:se},null,8,["modelValue","disabled"]),a(B,{type:"primary",class:"aap-send",loading:u.value,disabled:!o.configured||!k.value.trim(),onClick:te},{default:l(()=>[...C[15]||(C[15]=[v("发送",-1)])]),_:1},8,["loading","disabled"])])],6)}}}),zn=Ne(In,[["__scopeId","data-v-9fed2b0d"]]);function Pn(){const o=N("transform.move"),F=N({grid:!1,gridSizeMm:100,object:!0,endpoint:!0,midpoint:!1,toAngleDeg:void 0}),w=N(!0),y=N(!0),h=ne(()=>{const u=o.value;return u.startsWith("select.")?"select":u.startsWith("draw.")?"draw":u.startsWith("transform.")?"transform":u.startsWith("align.")?"align":u.startsWith("batch.")?"batch":u.startsWith("snap.")?"snap":"show"}),_=ne(()=>({"select.single":"单选","select.rect":"矩形框选","select.lasso":"圈选","select.byType.site":"按类型选 - 站点","select.byType.bezier":"按类型选 - 贝塞尔","select.byType.polyline":"按类型选 - 折线","select.byType.arc":"按类型选 - 弧","select.byType.decor":"按类型选 - 装饰物","select.byType.currentLayer":"按类型选 - 当前图层","select.invert":"反选","select.clear":"清空选中","draw.site":"添加站点","draw.sites.continuous":"连续添加站点","draw.track.polyline":"添加折线路径","draw.track.bezier":"添加贝塞尔路径","draw.track.arc":"添加弧形路径","draw.track.nurbs":"添加 NURBS 路径","draw.decor.line":"添加线段","draw.decor.rect":"添加矩形","draw.decor.circle":"添加圆","draw.decor.text":"添加文本","draw.image":"插入图片","draw.model":"插入 3D 模型","transform.move":"移动","transform.rotate":"旋转","transform.scale":"缩放","transform.duplicate":"复制副本","transform.copy":"复制","transform.paste":"粘贴","transform.delete":"删除","transform.copyFields":"复制字段","align.left":"左对齐","align.right":"右对齐","align.top":"上对齐","align.bottom":"下对齐","align.centerH":"水平居中","align.centerV":"垂直居中","align.center":"整体居中","align.distributeH":"水平等距","align.distributeV":"垂直等距","align.toFirst":"对齐到第一个","align.toLast":"对齐到最后一个","batch.linearH":"横向间隔生成","batch.linearV":"纵向间隔生成","batch.matrix":"矩阵生成","batch.alongPath":"沿路径采样生成","batch.circular":"环形阵列","snap.grid":"网格吸附","snap.object":"对象吸附","snap.endpoint":"端点吸附","snap.midpoint":"中点吸附","show.controlPoints":"显示控制点","show.controlHandles":"显示控制柄"})[o.value]??o.value);function i(u){o.value=u}function k(u){F.value={...F.value,[u]:!F.value[u]}}return{activeTool:o,snap:F,showControlPoints:w,showControlHandles:y,toolCategory:h,toolLabel:_,setTool:i,toggleSnap:k}}function $e(o,F){return`${o}:${F}`}function Mn(){const o=N([]),F=N(null),w=ne(()=>o.value.map(m=>m.id)),y=ne(()=>o.value.length);function h(m,M){const E=$e(m,M);return o.value.some(b=>$e(b.kind,b.id)===E)}function _(m){h(m.kind,m.id)||(o.value=[...o.value,m],F.value=$e(m.kind,m.id))}function i(m,M){const E=$e(m,M);o.value=o.value.filter(b=>$e(b.kind,b.id)!==E),F.value===E&&(F.value=null)}function k(m){h(m.kind,m.id)?i(m.kind,m.id):_(m)}function u(m){o.value=m,F.value=m.length>0?$e(m[m.length-1].kind,m[m.length-1].id):null}function z(){o.value=[],F.value=null}function $(m){o.value=o.value.filter(M=>M.kind===m)}function p(m){o.value=[m],F.value=$e(m.kind,m.id)}return{items:o,ids:w,count:y,lastClickedKey:F,has:h,add:_,remove:i,toggle:k,set:u,clear:z,filterByKind:$,selectSingle:p}}function Un(o={}){const F=o.maxDepth??20,w=N([]),y=N([]),h=N(!1),_=ne(()=>w.value.length>0&&!h.value),i=ne(()=>y.value.length>0&&!h.value);async function k(m){if(!h.value){h.value=!0;try{await m.apply(),w.value=[...w.value,m].slice(-F),y.value=[],o.onChange?.()}finally{h.value=!1}}}async function u(){if(!_.value)return;const m=w.value[w.value.length-1];h.value=!0;try{await m.revert(),w.value=w.value.slice(0,-1),y.value=[...y.value,m].slice(-F),o.onChange?.()}finally{h.value=!1}}async function z(){if(!i.value)return;const m=y.value[y.value.length-1];h.value=!0;try{await m.apply(),y.value=y.value.slice(0,-1),w.value=[...w.value,m].slice(-F),o.onChange?.()}finally{h.value=!1}}function $(){w.value=[],y.value=[],o.onChange?.()}function p(m,M){return{label:m,apply:async()=>{for(const E of M)await E.apply()},revert:async()=>{for(let E=M.length-1;E>=0;E--)await M[E].revert()}}}return{undoStack:w,redoStack:y,busy:h,canUndo:_,canRedo:i,run:k,undo:u,redo:z,clear:$,composite:p}}function Ln(o={}){function F(w){const y=w?.data;if(!y||typeof y!="object"||typeof y.type!="string")return;const h=y.type,_=y.payload;if(h==="workspace.pick"&&o.onPick&&_&&typeof _=="object"&&"x"in _&&"y"in _){const i=_;o.onPick({x:Number(i.x),y:Number(i.y),siteId:typeof i.siteId=="number"?i.siteId:void 0})}else if(h==="workspace.select"&&o.onSelect&&Array.isArray(_))o.onSelect({names:_});else if(h==="workspace.mouse"&&o.onMouse&&_&&typeof _=="object"&&"x"in _&&"y"in _){const i=_;o.onMouse({x:Number(i.x),y:Number(i.y)})}}Ot(()=>window.addEventListener("message",F)),Rt(()=>window.removeEventListener("message",F))}function Bn(o,F){if(o.length<2)return[];const w=[],y=o.map(p=>p.x),h=o.map(p=>p.y),_=Math.min(...y),i=Math.max(...y),k=Math.min(...h),u=Math.max(...h),z=y.reduce((p,m)=>p+m,0)/y.length,$=h.reduce((p,m)=>p+m,0)/h.length;switch(F){case"left":for(const p of o)w.push(me(p,{x:_}));break;case"right":for(const p of o)w.push(me(p,{x:i}));break;case"top":for(const p of o)w.push(me(p,{y:u}));break;case"bottom":for(const p of o)w.push(me(p,{y:k}));break;case"centerH":for(const p of o)w.push(me(p,{x:z}));break;case"centerV":for(const p of o)w.push(me(p,{y:$}));break;case"center":for(const p of o)w.push(me(p,{x:z,y:$}));break;case"distributeH":{const p=[...o].sort((M,E)=>M.x-E.x),m=(p[p.length-1].x-p[0].x)/(p.length-1);p.forEach((M,E)=>{const b=p[0].x+m*E;Math.abs(b-M.x)>.5&&w.push(me(M,{x:b}))});break}case"distributeV":{const p=[...o].sort((M,E)=>M.y-E.y),m=(p[p.length-1].y-p[0].y)/(p.length-1);p.forEach((M,E)=>{const b=p[0].y+m*E;Math.abs(b-M.y)>.5&&w.push(me(M,{y:b}))});break}case"toFirst":{const p=o[0];for(const m of o.slice(1))w.push(me(m,{x:p.x,y:p.y}));break}case"toLast":{const p=o[o.length-1];for(const m of o.slice(0,-1))w.push(me(m,{x:p.x,y:p.y}));break}}return w}function me(o,F){return{action:"patch",kind:o.kind,id:o.id,data:F}}function Dn(o,F,w,y){return Kt(o,w,F,w,y)}function Rn(o,F,w,y){return Kt(o,F,o,w,y)}function Kt(o,F,w,y,h){const _=[],i=Math.max(2,Math.floor(h.count));for(let k=0;k{const e=p.items.value;if(e.length!==1)return null;const t=e[0].kind;return t==="site"||t==="track"?t:null}),B=N(["g"]),Y=N([{name:"g",visible:!0,selectable:!0,color:"#cccccc"}]),Z=Je({selectFilter:{sites:!0,tracks:!0,cars:!0,decor:!0},alignSnap:{sites:!0,cars:!0,tracks:!0},showViewport:{sceneLabels:!0,scenePrimitives:!0,cars:!0}});function he(){try{localStorage.setItem("mapEditor.viewFilter",JSON.stringify(Z))}catch{}}function Qe(){try{const e=localStorage.getItem("mapEditor.viewFilter");if(!e)return;const t=JSON.parse(e);t.selectFilter&&Object.assign(Z.selectFilter,t.selectFilter),t.alignSnap&&Object.assign(Z.alignSnap,t.alignSnap),t.showViewport&&Object.assign(Z.showViewport,t.showViewport)}catch{}}function Oe(){const e=Z.selectFilter,t=p.items.value.filter(n=>n.kind==="site"?e.sites:n.kind==="track"?e.tracks:n.kind==="car"?e.cars:n.kind==="special"?e.decor:!0);t.length!==p.items.value.length&&p.set(t)}const Fe=N(!1),ae=N({siteA:null}),Ke=N(!1),We=N(!1),Te=N("");function Ee(e){return e.map(t=>`${t.kind}:${t.id}`).sort().join(",")}const xe=N(!1),Ie=["draw.site","draw.sites.continuous","draw.track.polyline","draw.track.bezier","draw.track.arc","draw.track.nurbs"];async function g(){if(!xe.value){for(xe.value=!0;xe.value;){let e=null;try{e=await j.pick()}catch{break}if(!xe.value)break;const t=$.activeTool.value;if(!Ie.includes(t))break;if(t==="draw.site"){await c(e.x,e.y),A.success(`已添加站点 (${e.x.toFixed(0)}, ${e.y.toFixed(0)})`);break}else if(t==="draw.sites.continuous")await c(e.x,e.y);else if(t==="draw.track.polyline"||t==="draw.track.bezier"||t==="draw.track.arc"||t==="draw.track.nurbs"){const n=ae.value.siteA;if(await qe(e.siteId),n!=null&&ae.value.siteA==null){const s=t==="draw.track.bezier"?"贝塞尔路径":t==="draw.track.arc"?"弧形路径":t==="draw.track.nurbs"?"NURBS 路径":"直线路径";A.success(`已添加${s}`);break}}else break}xe.value=!1,Ie.includes($.activeTool.value)&&$.setTool("transform.move")}}const d=ne(()=>$.snap.value.grid||$.snap.value.object||$.snap.value.endpoint||$.snap.value.midpoint);async function ze(e){switch(e){case"edit.undo":await m.undo();break;case"edit.redo":await m.redo();break;case"edit.delete":await R();break;case"edit.selectAll":A.info("全选:请使用工具栏「按类型选」批量选中");break;case"edit.invert":A.info("反选功能后续实现");break;case"project.save":await ra();break;case"ai.open":await wt();break;case"file.upload.image":Ze("image");break;case"file.upload.model":Ze("model");break;case"view.fitAll":A.info("请在 3D 视口右键菜单使用「适配全部」");break;case"view.fitSelection":A.info("请在 3D 视口右键菜单使用「适配选中」");break;case"snap.toGrid":$.toggleSnap("grid");break;case"snap.toObject":$.toggleSnap("object");break;case"layer.new":await Le();break;case"layer.toggleVisibility":Fe.value=!0;break;case"view.select.sites":ue("selectFilter","sites");break;case"view.select.tracks":ue("selectFilter","tracks");break;case"view.select.cars":ue("selectFilter","cars");break;case"view.select.decor":ue("selectFilter","decor");break;case"view.snap.sites":ue("alignSnap","sites");break;case"view.snap.cars":ue("alignSnap","cars");break;case"view.snap.tracks":ue("alignSnap","tracks");break;case"view.show.sceneLabels":ue("showViewport","sceneLabels");break;case"view.show.scenePrimitives":ue("showViewport","scenePrimitives");break;case"view.show.cars":ue("showViewport","cars");break;default:A.info(`暂未实现的命令:${e}`)}}async function ue(e,t){const n=Z[e],s=t,f=n[s];n[s]=!n[s],he(),e==="selectFilter"&&Oe();const S={};S[e]={[s]:n[s]};try{await j.setViewFilter(S)}catch(I){console.warn("[MapEditor] 写后端 viewFilter 失败:",I),n[s]=f,he(),e==="selectFilter"&&Oe(),A({message:"过滤设置写入后端失败,已回滚本地状态;请检查 SimpleLite 是否连通后重试。",type:"warning",duration:5e3,showClose:!0})}}function Pe(e){return e==="bezier"?"贝塞尔路径":e==="nurbs"?"NURBS 路径":e==="arc"?"弧形路径":"直线路径"}async function be(e,t){const n=await Me(e),s=await Me(t);if(!n||!s)return A.warning(`无法拉到 site #${e} / #${t} 的 x,y,将不带 typeInfo 创建 track(圆心需手动设置)`),null;const S=Math.hypot(n.x-s.x,n.y-s.y)/2;let I;try{const L=await K.prompt(`请输入半径 (mm),必须 ≥ ${S.toFixed(1)}(等于即半圆)`,"添加弧形路径",{inputValue:String(Math.ceil(S))});I=Number(L.value)}catch{return"cancelled"}return!Number.isFinite(I)||I0?-S/I:0,va=I>0?f/I:0,St=s==="left"?1:-1,nt=(e.x+t.x)/2+St*le*ya,ot=(e.y+t.y)/2+St*le*va,ba=Math.atan2(e.y-ot,e.x-nt)*180/Math.PI,ga=Math.atan2(t.y-ot,t.x-nt)*180/Math.PI;return["1",nt.toFixed(3),ot.toFixed(3),n.toFixed(3),ba.toFixed(3),ga.toFixed(3)].join(",")}function Ue(e){e&&(x.site.layer=e,x.track.layer=e,A.success(`默认图层已切到 "${e}"`))}async function Le(){try{const t=((await K.prompt("请输入新图层名(同名会被忽略)","新建图层",{inputValue:""})).value??"").trim();if(!t)return;if(B.value.includes(t)){x.site.layer=t,x.track.layer=t,A.info(`图层 "${t}" 已存在,已切到该层`);return}gt(t),x.site.layer=t,x.track.layer=t,A.success(`已创建图层 "${t}",下次创建对象会落到该层`)}catch{}}async function et(e){if($.setTool(e),ae.value.siteA=null,xe.value=!1,e==="select.clear"){p.clear(),await J.clearSelection().catch(()=>{});return}if(Ie.includes(e)&&g(),e.startsWith("align.")){await Xt(e.replace("align.",""));return}if(e.startsWith("batch.")){await Ht(e);return}if(e==="transform.delete"){await R();return}if(e.startsWith("select.byType.")){const t=e.replace("select.byType.","");X(t);return}if(e==="show.controlPoints"&&($.showControlPoints.value=!$.showControlPoints.value),e==="show.controlHandles"&&($.showControlHandles.value=!$.showControlHandles.value),e==="draw.image"&&Ze("image"),e==="draw.model"&&Ze("model"),e==="transform.copyFields"){await Gt();return}}function X(e){e==="site"?p.filterByKind("site"):e==="polyline"||e==="bezier"||e==="arc"?p.items.value=p.items.value.filter(t=>{if(t.kind!=="track")return!1;const n=t.typeName.toLowerCase();return e==="polyline"?n==="uitrack":e==="bezier"?n.includes("bezier"):e==="arc"?n.includes("arc"):!1}):e==="decor"?p.filterByKind("special"):e==="currentLayer"&&O.value?.layer&&(p.items.value=p.items.value.filter(t=>t.layer===O.value.layer))}async function Ve(e){M.x=e.x,M.y=e.y;const t=$.activeTool.value;if(!(xe.value&&Ie.includes(t))&&!Ke.value){if(t==="draw.site"||t==="draw.sites.continuous"){await c(e.x,e.y);return}if(t==="draw.track.polyline"||t==="draw.track.bezier"||t==="draw.track.arc"||t==="draw.track.nurbs"){try{const n=await j.pick();await qe(n.siteId)}catch{}return}}}function Be(e){p.set(Ce(e))}function Ce(e){const t=[],n=Z.selectFilter;for(const s of e){const f=/^UI([A-Za-z]+)-(\d+)$/.exec(s)??/^([A-Za-z]+)-(\d+)$/.exec(s);if(!f)continue;const S=f[1],I=Number(f[2]),L=S.toLowerCase();let P;L==="site"?P="site":L==="car"||L==="vehicle"?P="car":L.includes("track")?P="track":P="special",!(P==="site"&&!n.sites)&&(P==="track"&&!n.tracks||P==="car"&&!n.cars||P==="special"&&!n.decor||t.push({kind:P,id:I,name:s,typeName:s.startsWith("UI")?`UI${S}`:S}))}return t}async function qe(e){if(e<=0){A.warning("请先拾取一个站点");return}if(ae.value.siteA==null){ae.value.siteA=e,A.success(`已选起点站 #${e},请再拾取终点站`);return}const t=ae.value.siteA,n=e;if(ae.value.siteA=null,t===n){A.warning("起止站点不能相同");return}const s=$.activeTool.value==="draw.track.bezier"?"bezier":$.activeTool.value==="draw.track.arc"?"arc":$.activeTool.value==="draw.track.nurbs"?"nurbs":"track";let f,S="";if(s==="bezier"||s==="nurbs"){const L=await tt(t,n,s);if(L==="cancelled")return;L!=null&&(f=L.typeInfo,S=`(控制点 ${L.midCount})`)}else if(s==="arc"){const L=await be(t,n);if(L==="cancelled")return;L!=null&&(f=L.typeInfo,S=`(半径 ${L.radius.toFixed(0)})`)}let I=-1;await m.run({label:`新建${Pe(s)} (${t}→${n})${S}`,apply:async()=>{const L={siteA:t,siteB:n,layer:x.track.layer};f&&(L.typeInfo=f),I=(await j.createTrack(s,L)).id},revert:async()=>{I>0&&await j.deleteObject("track",I)}}),Ge(s)}async function tt(e,t,n){const s=await Me(e),f=await Me(t);if(!s||!f)return A.warning(`无法拉到 site #${e} / #${t} 的 x,y,将不带 typeInfo 创建 track(控制点会用兜底直线)`),null;const S=Pe(n);let I;try{const P=await K.prompt("请输入中间控制点个数(不含起止站点;默认 2,输入 0 则不带控制点直接连接两站点)",`创建${S}`,{inputValue:"2",inputPattern:/^\d+$/,inputErrorMessage:"请输入非负整数"});I=Math.max(0,Math.floor(Number(P.value)))}catch{return"cancelled"}if(I===0)return{typeInfo:pe([s,f],n==="bezier"?2:3),midCount:0};A.info(`请在画布上依次点选 ${I} 个中间控制点(任意位置;右键取消创建)`),Ke.value=!0;const L=[];try{for(let P=0;P{n=(await j.createSite({x:e,y:t,layer:x.site.layer,name:`${x.site.namePrefix}-${Date.now()%1e5}`})).id},revert:async()=>{n>0&&await j.deleteObject("site",n)}})}async function R(){const e=[...p.items.value];if(e.length===0)return;const t=[];for(const n of e)try{const s=await J.getBundle(n.kind,n.id);t.push({kind:n.kind,typeName:s.typeName,data:{...s.fields??{}}})}catch{}await m.run({label:`删除 ${e.length} 个对象`,apply:async()=>{const n=e.map(s=>({action:"delete",kind:s.kind,id:s.id}));await j.batch(n),p.clear()},revert:async()=>{const n=t.map(s=>({action:"create",kind:Yt(s.kind,s.typeName),data:s.data}));n.length&&(await j.batch(n),A.success(`已恢复 ${n.length} 个对象(注意:id 已重排)`))}})}function Yt(e,t){const n=(t??"").toLowerCase();if(e==="track")return n.includes("bezier")?"bezier":n.includes("arc")?"arc":n.includes("nurbs")?"nurbs":"track";if(e==="special"){if(n.includes("image"))return"image";if(n.includes("text"))return"text";if(n.includes("model"))return"model"}return e}async function Xt(e){const t=[];for(const s of p.items.value)if(s.kind!=="track")try{const f=await J.getBundle(s.kind,s.id),S=Number(f.fields?.x??0),I=Number(f.fields?.y??0);t.push({kind:s.kind,id:s.id,x:S,y:I})}catch{}if(t.length<2){A.warning("对齐需要选中至少 2 个对象");return}const n=Bn(t,e);if(n.length===0){A.info("对齐无变化");return}await m.run({label:`对齐 (${e})`,apply:async()=>{await j.batch(n)},revert:async()=>{const s=t.map(f=>({action:"patch",kind:f.kind,id:f.id,data:{x:f.x,y:f.y}}));await j.batch(s)}})}async function Ht(e){if(e==="batch.linearH"||e==="batch.linearV"){const t=e==="batch.linearH"?"横向":"纵向";try{const{value:n}=await K.prompt(`输入 ${t}站点数量`,"批量生成",{inputValue:"5",inputType:"number"}),s=Math.max(2,Math.floor(Number(n))),f=await K.prompt("起点 X","批量生成",{inputValue:"0"}),S=await K.prompt("起点 Y","批量生成",{inputValue:"0"}),I=await K.prompt("终点 X","批量生成",{inputValue:"5000"}),L=await K.prompt("终点 Y","批量生成",{inputValue:"0"}),P=e==="batch.linearH"?Dn(Number(f.value),Number(I.value),Number(S.value),{count:s,layer:x.site.layer}):Rn(Number(f.value),Number(S.value),Number(L.value),{count:s,layer:x.site.layer});await at(`${t}间隔生成 ${s}`,P)}catch{}return}if(e==="batch.matrix"){try{const t=Number((await K.prompt("行数","矩阵生成",{inputValue:"3"})).value),n=Number((await K.prompt("列数","矩阵生成",{inputValue:"3"})).value),s=Number((await K.prompt("x1","矩阵生成",{inputValue:"0"})).value),f=Number((await K.prompt("y1","矩阵生成",{inputValue:"0"})).value),S=Number((await K.prompt("x2","矩阵生成",{inputValue:"5000"})).value),I=Number((await K.prompt("y2","矩阵生成",{inputValue:"5000"})).value),L=jn(s,f,S,I,{rows:t,cols:n,layer:x.site.layer});await at(`矩阵生成 ${t}×${n}`,L)}catch{}return}if(e==="batch.circular"){try{const t=Number((await K.prompt("圆心 X","环形阵列",{inputValue:"0"})).value),n=Number((await K.prompt("圆心 Y","环形阵列",{inputValue:"0"})).value),s=Number((await K.prompt("半径 (mm)","环形阵列",{inputValue:"2000"})).value),f=Number((await K.prompt("站点数量","环形阵列",{inputValue:"8"})).value),S=On(t,n,s,{count:f,layer:x.site.layer});await at(`环形阵列 r=${s} n=${f}`,S)}catch{}return}if(e==="batch.alongPath"){await Wt();return}}async function Wt(){const e=p.items.value.filter(f=>f.kind==="track");if(e.length===0){A.warning("请先选中至少 1 条路径");return}let t=500,n=!1;try{const{value:f}=await K.prompt("输入采样间距 (mm)","沿路径采样",{inputValue:"500",inputType:"number"});t=Math.max(10,Math.floor(Number(f)));const{value:S}=await K.prompt("是否包含端点?输入 1 包含,0 不包含","沿路径采样",{inputValue:"0"});n=Number(S)===1}catch{return}const s=[];await m.run({label:`沿 ${e.length} 条路径间距 ${t}mm 采样`,apply:async()=>{for(const f of e){const S=await j.sampleSitesAlongTrack(f.id,{spacingMm:t,includeEndpoints:n,layer:x.site.layer});s.push(...S.ids)}A.success(`已采样生成 ${s.length} 个站点`)},revert:async()=>{if(!s.length)return;const f=s.map(S=>({action:"delete",kind:"site",id:S}));await j.batch(f)}})}async function Gt(){if(p.items.value.length<2){A.warning("字段复制需要 ≥ 2 个选中对象(第 1 个为源,其余为目标)");return}const[e,...t]=p.items.value;try{const{value:n}=await K.prompt("输入要复制的字段名(逗号分隔),例如:x,y,layerName","字段复制",{inputValue:"x,y"}),s=n.split(",").map(S=>S.trim()).filter(Boolean);if(!s.length)return;const f=new Map;for(const S of t)try{const I=await J.getBundle(S.kind,S.id),L={};for(const P of s)L[P]=String(I.fields?.[P]??"");f.set(`${S.kind}:${S.id}`,L)}catch{}await m.run({label:`字段复制 ${s.join(",")} → ${t.length} 个`,apply:async()=>{const S=await j.copyFieldsTo(e.kind,e.id,s,t.map(I=>({kind:I.kind,id:I.id})));A.success(`已复制 ${S.copied} 项字段`)},revert:async()=>{const S=t.flatMap(I=>{const L=f.get(`${I.kind}:${I.id}`);return L?[{action:"patch",kind:I.kind,id:I.id,data:L}]:[]});S.length&&await j.batch(S)}})}catch{}}async function at(e,t){if(t.length===0)return;let n=[];await m.run({label:e,apply:async()=>{n=(await j.batch(t)).results.filter(f=>f.ok&&f.action==="create"&&f.result?.id).map(f=>({kind:f.result.kind,id:f.result.id}))},revert:async()=>{const s=n.map(f=>({action:"delete",kind:f.kind,id:f.id}));s.length&&await j.batch(s)}}),A.success(`${e} 完成`)}async function Ye(){if(p.items.value.length===0){O.value=null,se.value=[],ie.value=[],te.value=[];return}const e=p.items.value[0];qt();try{const t=await J.getBundle(e.kind,e.id);O.value=t.summary,se.value=Object.entries(t.fields).map(([n,s])=>({key:n,value:String(s)})),ie.value=t.methods,te.value=(t.status??[]).map(n=>({key:n.key,value:n.value}))}catch(t){A.error(`加载属性失败:${t.message}`)}finally{Zt()}}function qt(){ve.value=!0}function Zt(){ve.value=!1}async function Jt(e){if(!O.value||p.items.value.length===0)return;const t=p.items.value[0],n=O.value.id,s=O.value.name??"";s!==e&&(await m.run({label:`重命名 ${s||"(无)"} → ${e}`,apply:async()=>{await J.setField(t.kind,n,"name",e)},revert:async()=>{try{await J.setField(t.kind,n,"name",s)}catch(f){A.warning(`回滚名称失败:${f.message}`)}}}),A.success("名称已更新"))}async function Qt(e){if(!O.value||p.items.value.length===0)return;const t=p.items.value[0],n=O.value.id,s=O.value.layer??"";s!==e&&(await m.run({label:`修改图层 ${s||"(无)"} → ${e}`,apply:async()=>{await J.setField(t.kind,n,"layerName",e)},revert:async()=>{try{await J.setField(t.kind,n,"layerName",s)}catch(f){A.warning(`回滚图层失败:${f.message}`)}}}),await Ye())}async function vt(e,t){if(!O.value)return;const n=p.items.value[0];let s;try{const f=await J.getBundle(n.kind,O.value.id);s=f.fields?.[e]!=null?String(f.fields[e]):void 0}catch{}await m.run({label:`修改 ${e}`,apply:async()=>{await J.setField(n.kind,O.value.id,e,t)},revert:async()=>{if(s!==void 0)try{await J.setField(n.kind,O.value.id,e,s)}catch(f){A.warning(`回滚 ${e} 失败:${f.message}`)}else A.warning(`回滚 ${e}:没拿到原值快照,仅本地撤销`)}}),await Ye()}async function ea(){try{const e=(await K.prompt("字段名","新增字段",{inputPattern:/^[A-Za-z0-9_]+$/})).value,t=(await K.prompt("字段值","新增字段",{inputValue:""})).value;await vt(e,t)}catch{}}async function ta(e){if(O.value)try{await J.execute(p.items.value[0].kind,O.value.id,e),A.success(`已执行 ${e}`),await Ye()}catch(t){A.error(`执行失败:${t.message}`)}}function aa(){localStorage.setItem("mapEditor.defaults",JSON.stringify(x)),A.success("新建默认已保存(下次创建对象时生效)")}function bt(e){const t=e.site??e.Site,n=e.track??e.Track,s=(S,I,L)=>Number(S?.[I]??S?.[L]??0),f=(S,I,L)=>!!(S?.[I]??S?.[L]);return Ua({site:{drawScale:s(t,"drawScale","DrawScale"),dotRadiusNormal:s(t,"dotRadiusNormal","DotRadiusNormal"),dotRadiusSelected:s(t,"dotRadiusSelected","DotRadiusSelected"),selectionRingM:s(t,"selectionRingM","SelectionRingM"),colorNormalArgb:s(t,"colorNormalArgb","ColorNormalArgb"),colorSelectedArgb:s(t,"colorSelectedArgb","ColorSelectedArgb"),labelColorNormalArgb:s(t,"labelColorNormalArgb","LabelColorNormalArgb"),labelColorSelectedArgb:s(t,"labelColorSelectedArgb","LabelColorSelectedArgb")},track:{drawScale:s(n,"drawScale","DrawScale"),widthNormal:s(n,"widthNormal","WidthNormal"),widthSelected:s(n,"widthSelected","WidthSelected"),showDirectionArrows:f(n,"showDirectionArrows","ShowDirectionArrows"),colorNormalArgb:s(n,"colorNormalArgb","ColorNormalArgb"),colorSelectedArgb:s(n,"colorSelectedArgb","ColorSelectedArgb")}})}async function lt(){G.value=!0;try{const e=await J.getViewportStyle();C.value=bt(e)}catch(e){console.warn("[MapEditor] 加载视口样式失败:",e)}finally{G.value=!1}}function la(e){e.site&&(ce.site=e.site,C.value&&(C.value={...C.value,site:{...e.site}})),e.track&&(ce.track=e.track,C.value&&(C.value={...C.value,track:{...e.track}})),ke&&clearTimeout(ke),ke=setTimeout(()=>{const t={...ce};ce={},na(t)},350)}async function na(e){const t=++re;oe.value=!0;try{const n={};e.site&&(n.site=e.site),e.track&&(n.track=e.track);const s=await J.patchViewportStyle(n);if(t!==re)return;C.value=bt(s)}catch(n){A.error(`视口样式更新失败:${n.message}`),await lt()}finally{t===re&&(oe.value=!1)}}function oa(e){A.info("图层可见 / 可选切换暂时仅本地生效,后续接入反射 API")}function gt(e){Y.value.find(t=>t.name===e)||(Y.value=[...Y.value,{name:e,visible:!0,selectable:!0,color:"#cccccc"}],B.value=[...B.value,e])}async function wt(){try{const e=await st.get();Q.value=!!e.configured}catch{Q.value=!1}E.value=!0}function sa(){try{b.value=localStorage.getItem(Nt)==="1";const e=Number(localStorage.getItem(Ft));Number.isFinite(e)&&e>=300&&e<=720&&(q.value=e)}catch{}}fe(b,e=>{try{localStorage.setItem(Nt,e?"1":"0")}catch{}}),fe(q,e=>{try{localStorage.setItem(Ft,String(Math.round(e)))}catch{}});async function ia(){if(!b.value)try{const e=await st.get();Q.value=!!e.configured}catch{Q.value=!1}b.value=!b.value}async function kt(e){De();const t=(e.created??[]).filter(s=>typeof s=="object"&&s!=null&&typeof s.id=="number"&&!s.error);if(t.length===0)return;const n={label:`AI 生图:落地 ${t.length} 个对象`,apply:async()=>{},revert:async()=>{const s=t.map(f=>({action:"delete",kind:f.kind,id:f.id}));await j.batch(s),A.success(`已撤销 AI 生图(删除 ${s.length} 个对象)`)}};await m.run(n)}async function ra(){const e=await Ba();if(e==="cancel")return;let t=_.value.trim();t||(t=await Vt(),t&&(_.value=t));let n,s=!1;if(e==="replace"){if(!t){A.warning("未找到可覆盖的原地图,请选择「保存成新项目」");return}n=t,s=!0}else{const f=await Da("保存成新地图",t);if(!f)return;n=f}W.value=!0;try{let f=await it.save(n,s);if(!f.ok&&f.conflict&&e==="new"){try{await K.confirm(`服务器已存在地图「${n}」,是否覆盖该文件?`,"覆盖确认",{type:"warning",confirmButtonText:"覆盖",cancelButtonText:"取消"})}catch{return}f=await it.save(n,!0)}if(!f.ok){A.error(`保存失败:${f.message}`);return}e==="replace"?A.success(`已覆盖保存地图「${n}」`):(_.value=f.data.name,A.success(`新地图「${f.data.name}」已保存到服务器`)),await y.push({path:"/admin/maps"})}catch(f){A.error(`保存失败:${f.message}`)}finally{W.value=!1}}function Ze(e){z.value=e,u.value=e==="image"?"image/*":".obj,.glb,.gltf,.fbx,.cyclemodel",k.value?.click()}async function ua(e){const t=e.target,n=t.files?.[0];if(n)try{const s=await n.arrayBuffer(),f=da(s),S=await j.uploadAsset(n.name,f);A.success(`已上传:${S.fileName}`),z.value==="image"?await j.createImage({x:0,y:0,imagePath:S.savedPath,size:1e3}):await j.createModel({x:0,y:0,modelPath:S.savedPath,scale:1}),De()}catch(s){A.error(`上传失败:${s.message}`)}finally{t.value=""}}function da(e){let t="";const n=new Uint8Array(e);for(let s=0;s{M.x=e.x,M.y=e.y},onPick:e=>{Ve(e)},onSelect:e=>Be(e.names)});const ca=La({onWorkspaceShortcut:e=>{Xe(e.action)},onAlarm:()=>{},onObjectCreated:()=>De(),onObjectDeleted:()=>De(),onObjectPatched:()=>De(),onObjectBatchChanged:()=>De(),onViewportStyleUpdated:()=>{lt()},onSelectionDetail:e=>{if(!Array.isArray(e.names))return;const t=Ce(e.names),n=Ee(t);n!==Te.value&&(Te.value=n,p.set(t))}});function De(){Ye()}fe(()=>ca.connected.value,e=>We.value=e,{immediate:!0}),fe(()=>Ee(p.items.value),e=>{Ye(),Te.value=e,p.items.value.length===1&&J.setSelection(p.items.value[0].kind,p.items.value[0].id).catch(()=>{})});function pa(e){if(!(e instanceof HTMLElement))return!1;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"||e.isContentEditable?!0:!!e.closest('.el-input, .el-textarea, .el-select, [contenteditable="true"]')}async function Xe(e){if(e==="undo"){if(!m.canUndo.value)return;await m.undo()}else if(e==="redo"){if(!m.canRedo.value)return;await m.redo()}else await R()}function ht(e){if(pa(e.target))return;const t=e.ctrlKey||e.metaKey;t&&e.key.toLowerCase()==="z"&&!e.shiftKey?(e.preventDefault(),Xe("undo")):t&&(e.key.toLowerCase()==="y"||e.key.toLowerCase()==="z"&&e.shiftKey)?(e.preventDefault(),Xe("redo")):e.key==="Delete"&&(e.preventDefault(),Xe("delete"))}function xt(e){const t=e.detail?.action;(t==="undo"||t==="redo"||t==="delete")&&Xe(t)}async function ma(){try{const e=await j.getViewFilter();Object.assign(Z.selectFilter,e.selectFilter),Object.assign(Z.alignSnap,e.alignSnap),Object.assign(Z.showViewport,e.showViewport),he()}catch(e){console.warn("[MapEditor] 拉后端 viewFilter 失败,沿用本地缓存:",e)}}Ot(async()=>{document.addEventListener("keydown",ht,!0),window.addEventListener("workspace-shortcut",xt);try{const t=await st.get();Q.value=!!t.configured}catch{}const e=localStorage.getItem("mapEditor.defaults");if(e)try{Object.assign(x,JSON.parse(e))}catch{}sa(),Qe(),await ma(),await lt(),await fa()});async function fa(){const e=typeof w.query.map=="string"?w.query.map:"",t=w.query.new==="1";if(e)try{const n=await it.open(e);_.value=n.name,p.clear(),O.value=null,A.success(`已载入地图「${n.name}」:${n.sites} 站点 / ${n.tracks} 路径`)}catch(n){A.error(`载入地图失败:${n.message}`)}else if(t)_.value="";else{const n=await Vt();n&&(_.value=n)}}return za(()=>{document.removeEventListener("keydown",ht,!0),window.removeEventListener("workspace-shortcut",xt)}),(e,t)=>{const n=ft,s=Pt,f=zt,S=He,I=mt,L=Ut;return V(),U("div",Kn,[a(Oa,{"can-undo":D(m).canUndo.value,"can-redo":D(m).canRedo.value,saving:W.value,"view-filter":Z,onCmd:ze},null,8,["can-undo","can-redo","saving","view-filter"]),r("div",Yn,[a(el,{"active-tool":D($).activeTool.value,onSelectTool:et,onOpenAi:wt},null,8,["active-tool"]),r("div",Xn,[a(Ma,{ref_key:"workspaceRef",ref:i,host:D(h),scope:D(F).scope??"Platform",token:D(F).token??"","read-only":!1,"embed-ui":!1,"canvas-only":!0,"hide-toolbar":!0,onPick:Ve,onSelect:Be},null,8,["host","scope","token"])]),a(rn,{"selection-count":D(p).count.value,primary:O.value,fields:se.value,status:te.value,methods:ie.value,loading:ve.value,layers:B.value,defaults:x,"layer-rows":Y.value,"selection-kind":_e.value,"viewport-style":C.value,"viewport-style-loading":G.value,"viewport-syncing":oe.value,onRename:Jt,onChangeLayer:Qt,onSetField:vt,onAddField:ea,onExecAction:ta,onSaveDefaults:aa,onLayerToggle:oa,onAddLayer:gt,onDelete:R,onPatchViewport:la},null,8,["selection-count","primary","fields","status","methods","loading","layers","defaults","layer-rows","selection-kind","viewport-style","viewport-style-loading","viewport-syncing"]),r("button",{class:Se(["ai-assistant-fab",{"is-open":b.value}]),style:jt(b.value?{right:q.value+"px"}:void 0),type:"button",title:b.value?"收起 AI 助手":"打开 AI 助手",onClick:ia},[...t[5]||(t[5]=[r("span",{class:"fab-glyph"},"✦",-1),r("span",{class:"fab-text"},[v("AI"),r("br"),v("助手")],-1)])],14,Hn),a(zn,{open:b.value,"onUpdate:open":t[0]||(t[0]=P=>b.value=P),width:q.value,"onUpdate:width":t[1]||(t[1]=P=>q.value=P),configured:Q.value,"default-bounds":ye.value,"default-layer":x.site.layer,onGenerated:kt},null,8,["open","width","configured","default-bounds","default-layer"])]),a(gn,{"selected-count":D(p).count.value,"mouse-x":M.x,"mouse-y":M.y,"tool-label":D($).toolLabel.value,"snap-on":d.value,"undo-size":D(m).undoStack.value.length,"redo-size":D(m).redoStack.value.length,connected:We.value},null,8,["selected-count","mouse-x","mouse-y","tool-label","snap-on","undo-size","redo-size","connected"]),a(Sn,{modelValue:E.value,"onUpdate:modelValue":t[2]||(t[2]=P=>E.value=P),configured:Q.value,"default-bounds":ye.value,"default-layer":x.site.layer,onGenerated:kt},null,8,["modelValue","configured","default-bounds","default-layer"]),a(L,{modelValue:Fe.value,"onUpdate:modelValue":t[4]||(t[4]=P=>Fe.value=P),title:"切换显示图层",width:"520px"},{footer:l(()=>[a(S,{onClick:t[3]||(t[3]=P=>Fe.value=!1)},{default:l(()=>[...t[6]||(t[6]=[v("关闭",-1)])]),_:1}),a(S,{type:"primary",onClick:Le},{default:l(()=>[...t[7]||(t[7]=[v("新建图层…",-1)])]),_:1})]),default:l(()=>[a(I,{data:Y.value,size:"small",style:{width:"100%"}},{default:l(()=>[a(n,{prop:"name",label:"图层","min-width":"120"}),a(n,{label:"可见",width:"80"},{default:l(({row:P})=>[a(s,{modelValue:P.visible,"onUpdate:modelValue":le=>P.visible=le},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(n,{label:"可选",width:"80"},{default:l(({row:P})=>[a(s,{modelValue:P.selectable,"onUpdate:modelValue":le=>P.selectable=le},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(n,{label:"颜色",width:"100"},{default:l(({row:P})=>[a(f,{modelValue:P.color,"onUpdate:modelValue":le=>P.color=le,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(n,{label:"默认层",width:"110"},{default:l(({row:P})=>[a(S,{size:"small",type:x.site.layer===P.name?"primary":"default",onClick:le=>Ue(P.name)},{default:l(()=>[v(T(x.site.layer===P.name?"当前默认":"设为默认"),1)]),_:2},1032,["type","onClick"])]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"]),r("input",{ref_key:"fileInputRef",ref:k,type:"file",style:{display:"none"},accept:u.value,onChange:ua},null,40,Wn)])}}}),Co=Ne(Gn,[["__scopeId","data-v-108ea5ac"]]);export{Co as default}; diff --git a/MiGu.Server/wwwroot/assets/MapEditorView-Bf_sv8Aw.js b/MiGu.Server/wwwroot/assets/MapEditorView-Bf_sv8Aw.js deleted file mode 100644 index 452d8e0..0000000 --- a/MiGu.Server/wwwroot/assets/MapEditorView-Bf_sv8Aw.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as Ae,aE as U,aH as a,r as Xe,bJ as l,I as wa,aB as r,ag as ut,b9 as _,aG as y,K as ka,J as ha,bq as T,ak as Ne,a3 as xa,ai as de,bj as we,aC as ee,b3 as Se,aD as X,bI as fe,ac as Sa,bh as A,a9 as _a,Q as dt,bt as D,aV as _t,aZ as rt,Z as Va,R as ct,E as pt,N as Ft,O as Tt,S as It,z as Et,a8 as zt,aa as mt,ab as ft,ax as ne,ad as Pt,a4 as Ca,bg as Je,G as Mt,ah as $a,bu as Aa,a1 as Ut,a0 as Lt,x as Na,T as Bt,y as Fa,bx as yt,X as F,b6 as Dt,b4 as Rt,aF as Ta,b2 as Ia,b7 as jt,bv as Ea,b8 as za,bw as Pa,Y}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{W as Ma}from"./Workspace3D-DpUfTJl7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{h as Re,a as je,r as J,n as Ua}from"./reflection-B_glb6eT.js";/* empty css *//* empty css *//* empty css *//* empty css */import{m as j,a as st,b as it}from"./mapEdit-TNAQr3Be.js";import{u as La}from"./useMapEditStream-BgR6WvRg.js";import"./useProjectionStream-BBHmpNXC.js";const Ba={class:"edit-top-bar"},Da=Ae({__name:"EditTopBar",props:{canUndo:{type:Boolean},canRedo:{type:Boolean},saving:{type:Boolean},viewFilter:{}},emits:["cmd"],setup(n,{emit:N}){const g=N;function f(C){g("cmd",C)}function h(C){return C?"☑":"☐"}return(C,i)=>{const k=Xe,u=ha,z=ka,$=wa,p=ut;return _(),U("div",Ba,[a(k,{type:"primary",class:"topbar-save-btn",loading:n.saving,onClick:i[0]||(i[0]=m=>f("project.save"))},{default:l(()=>[...i[3]||(i[3]=[y(" 保存 ",-1)])]),_:1},8,["loading"]),a($,{trigger:"click",onCommand:f},{dropdown:l(()=>[a(z,null,{default:l(()=>[a(u,{command:"file.import.dwg"},{default:l(()=>[...i[5]||(i[5]=[y("导入 .dwg/.dxf",-1)])]),_:1}),a(u,{command:"file.import.geojson"},{default:l(()=>[...i[6]||(i[6]=[y("导入 .geojson",-1)])]),_:1}),a(u,{command:"file.upload.image",divided:""},{default:l(()=>[...i[7]||(i[7]=[y("导入图片",-1)])]),_:1}),a(u,{command:"file.upload.model"},{default:l(()=>[...i[8]||(i[8]=[y("导入 CycleGUI 模型",-1)])]),_:1}),a(u,{command:"file.export.png",divided:""},{default:l(()=>[...i[9]||(i[9]=[y("导出 PNG",-1)])]),_:1}),a(u,{command:"file.export.svg"},{default:l(()=>[...i[10]||(i[10]=[y("导出 SVG",-1)])]),_:1}),a(u,{command:"file.export.json"},{default:l(()=>[...i[11]||(i[11]=[y("导出 JSON",-1)])]),_:1})]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[4]||(i[4]=[y("导入",-1)])]),_:1})]),_:1}),a($,{trigger:"click",onCommand:f},{dropdown:l(()=>[a(z,null,{default:l(()=>[a(u,{command:"edit.cut"},{default:l(()=>[...i[13]||(i[13]=[y("剪切 (Ctrl+X)",-1)])]),_:1}),a(u,{command:"edit.copy"},{default:l(()=>[...i[14]||(i[14]=[y("复制 (Ctrl+C)",-1)])]),_:1}),a(u,{command:"edit.paste"},{default:l(()=>[...i[15]||(i[15]=[y("粘贴 (Ctrl+V)",-1)])]),_:1}),a(u,{command:"edit.delete"},{default:l(()=>[...i[16]||(i[16]=[y("删除 (Del)",-1)])]),_:1}),a(u,{command:"edit.selectAll",divided:""},{default:l(()=>[...i[17]||(i[17]=[y("全选",-1)])]),_:1}),a(u,{command:"edit.invert"},{default:l(()=>[...i[18]||(i[18]=[y("反选",-1)])]),_:1})]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[12]||(i[12]=[y("编辑",-1)])]),_:1})]),_:1}),a($,{trigger:"click",onCommand:f},{dropdown:l(()=>[a(z,null,{default:l(()=>[a(u,{command:"edit.undo",disabled:!n.canUndo},{default:l(()=>[...i[20]||(i[20]=[y("撤销 (Ctrl+Z)",-1)])]),_:1},8,["disabled"]),a(u,{command:"edit.redo",disabled:!n.canRedo},{default:l(()=>[...i[21]||(i[21]=[y("重做 (Ctrl+Y)",-1)])]),_:1},8,["disabled"])]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[19]||(i[19]=[y("撤销",-1)])]),_:1})]),_:1}),a($,{trigger:"click",onCommand:f},{dropdown:l(()=>[a(z,null,{default:l(()=>[a(u,{command:"view.fitAll"},{default:l(()=>[...i[23]||(i[23]=[y("缩放至全屏",-1)])]),_:1}),a(u,{command:"view.fitSelection"},{default:l(()=>[...i[24]||(i[24]=[y("缩放至选中",-1)])]),_:1}),a(u,{command:"view.toggleGrid",divided:""},{default:l(()=>[...i[25]||(i[25]=[y("显示网格",-1)])]),_:1}),a(u,{command:"view.toggleScale"},{default:l(()=>[...i[26]||(i[26]=[y("显示比例尺",-1)])]),_:1}),a(u,{command:"view.toggle2D"},{default:l(()=>[...i[27]||(i[27]=[y("切换 2D / 3D",-1)])]),_:1})]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[22]||(i[22]=[y("视图",-1)])]),_:1})]),_:1}),a($,{trigger:"click",onCommand:f},{dropdown:l(()=>[a(z,null,{default:l(()=>[a(u,{command:"layer.new"},{default:l(()=>[...i[29]||(i[29]=[y("新建图层…",-1)])]),_:1}),a(u,{command:"layer.toggleVisibility"},{default:l(()=>[...i[30]||(i[30]=[y("切换显示图层…",-1)])]),_:1})]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[28]||(i[28]=[y("图层",-1)])]),_:1})]),_:1}),a($,{trigger:"click",onCommand:f},{dropdown:l(()=>[a(z,{class:"topbar-filter-menu"},{default:l(()=>[a(u,{disabled:"",class:"topbar-filter-header"},{default:l(()=>[...i[32]||(i[32]=[y("选择(可拾取)",-1)])]),_:1}),a(u,{command:"view.select.sites"},{default:l(()=>[y(T(h(n.viewFilter.selectFilter.sites))+" 站点",1)]),_:1}),a(u,{command:"view.select.tracks"},{default:l(()=>[y(T(h(n.viewFilter.selectFilter.tracks))+" 路径",1)]),_:1}),a(u,{command:"view.select.cars"},{default:l(()=>[y(T(h(n.viewFilter.selectFilter.cars))+" AGV",1)]),_:1}),a(u,{command:"view.select.decor"},{default:l(()=>[y(T(h(n.viewFilter.selectFilter.decor))+" 区域 / 装饰",1)]),_:1}),a(u,{divided:"",disabled:"",class:"topbar-filter-header"},{default:l(()=>[...i[33]||(i[33]=[y("对齐(鼠标吸附)",-1)])]),_:1}),a(u,{command:"view.snap.sites"},{default:l(()=>[y(T(h(n.viewFilter.alignSnap.sites))+" 吸附站点",1)]),_:1}),a(u,{command:"view.snap.cars"},{default:l(()=>[y(T(h(n.viewFilter.alignSnap.cars))+" 吸附 AGV",1)]),_:1}),a(u,{command:"view.snap.tracks"},{default:l(()=>[y(T(h(n.viewFilter.alignSnap.tracks))+" 吸附路径",1)]),_:1}),a(u,{divided:"",disabled:"",class:"topbar-filter-header"},{default:l(()=>[...i[34]||(i[34]=[y("显示内容",-1)])]),_:1}),a(u,{command:"view.show.sceneLabels"},{default:l(()=>[y(T(h(n.viewFilter.showViewport.sceneLabels))+" 场景图元标记",1)]),_:1}),a(u,{command:"view.show.scenePrimitives"},{default:l(()=>[y(T(h(n.viewFilter.showViewport.scenePrimitives))+" 场景图元",1)]),_:1}),a(u,{command:"view.show.cars"},{default:l(()=>[y(T(h(n.viewFilter.showViewport.cars))+" 车辆",1)]),_:1})]),_:1})]),default:l(()=>[a(k,{text:"",class:"topbar-btn"},{default:l(()=>[...i[31]||(i[31]=[y("过滤",-1)])]),_:1})]),_:1}),i[37]||(i[37]=r("div",{class:"spacer"},null,-1)),a(p,{content:"撤销 (Ctrl+Z)",placement:"bottom"},{default:l(()=>[a(k,{size:"small",disabled:!n.canUndo,class:"topbar-icon-btn",onClick:i[1]||(i[1]=m=>f("edit.undo"))},{default:l(()=>[...i[35]||(i[35]=[y("↶",-1)])]),_:1},8,["disabled"])]),_:1}),a(p,{content:"重做 (Ctrl+Y)",placement:"bottom"},{default:l(()=>[a(k,{size:"small",disabled:!n.canRedo,class:"topbar-icon-btn",onClick:i[2]||(i[2]=m=>f("edit.redo"))},{default:l(()=>[...i[36]||(i[36]=[y("↷",-1)])]),_:1},8,["disabled"])]),_:1})])}}}),Ra=Ne(Da,[["__scopeId","data-v-1082d582"]]),ja={class:"edit-tool-rail"},Oa={class:"rail-group-title"},Ya={class:"rail-group-text"},Ka={class:"rail-group-list"},Ha=["onClick"],Xa={class:"rail-btn-glyph"},Wa={class:"rail-btn-label"},Ga={key:0,class:"rail-divider"},qa={class:"rail-group rail-group-ai"},Za=Ae({__name:"EditToolRail",props:{activeTool:{}},emits:["select-tool","open-ai"],setup(n,{emit:N}){const g=n,f=N,h=[{id:"select",title:"选择",tools:[{id:"select.single",label:"单选",glyph:"⌖",tip:"点击拾取单个对象"},{id:"select.rect",label:"矩形框选",glyph:"▱"},{id:"select.lasso",label:"套索圈选",glyph:"◯"},{id:"select.byType.site",label:"仅站点",glyph:"·"},{id:"select.byType.polyline",label:"仅折线",glyph:"╱",tip:"仅 UITrack(直线/折线)"},{id:"select.byType.bezier",label:"仅贝塞尔",glyph:"∽",tip:"仅 UIBezierTrack"},{id:"select.byType.arc",label:"仅弧形",glyph:"◜",tip:"仅 UICircularArcTrack"},{id:"select.byType.decor",label:"仅装饰",glyph:"★"},{id:"select.byType.currentLayer",label:"当前图层",glyph:"▤",tip:"保留当前图层对象"},{id:"select.invert",label:"反选",glyph:"⇄"},{id:"select.clear",label:"清空选中",glyph:"⊘"}]},{id:"draw",title:"绘制",tools:[{id:"draw.site",label:"添加站点",glyph:"+",tip:"点击工具后在画布单击放置"},{id:"draw.sites.continuous",label:"连续站点",glyph:"⁂",tip:"切换工具或 Esc 退出"},{id:"draw.track.polyline",label:"折线路径",glyph:"─",tip:"依序点击两端站点"},{id:"draw.track.bezier",label:"贝塞尔路径",glyph:"∼",tip:"点两端站点 → 弹框输入中间控制点个数 → 连续点选每个控制点"},{id:"draw.track.arc",label:"弧形路径",glyph:"◜",tip:"点两端站点 → 输入半径(≥ |AB|/2,等于即半圆)"},{id:"draw.decor.line",label:"装饰线段",glyph:"╱"},{id:"draw.decor.rect",label:"装饰矩形",glyph:"▭"},{id:"draw.decor.circle",label:"装饰圆",glyph:"◯"},{id:"draw.decor.text",label:"装饰文本",glyph:"T"},{id:"draw.image",label:"插入图片",glyph:"🖼"},{id:"draw.model",label:"插入模型",glyph:"◎",tip:"CycleGUI 3D 模型 (obj/glb/gltf)"}]},{id:"transform",title:"变换",tools:[{id:"transform.move",label:"移动",glyph:"✥"},{id:"transform.rotate",label:"旋转",glyph:"⟳"},{id:"transform.scale",label:"缩放",glyph:"⤡"},{id:"transform.duplicate",label:"复制副本",glyph:"⎘",tip:"Ctrl+D"},{id:"transform.copy",label:"复制",glyph:"📋",tip:"Ctrl+C"},{id:"transform.paste",label:"粘贴",glyph:"📥",tip:"Ctrl+V"},{id:"transform.delete",label:"删除",glyph:"🗑",tip:"Delete"},{id:"transform.copyFields",label:"复制字段",glyph:"⇉",tip:"多选时第 1 个为源,其余为目标"}]},{id:"align",title:"对齐",tools:[{id:"align.left",label:"左对齐",glyph:"⫷"},{id:"align.right",label:"右对齐",glyph:"⫸"},{id:"align.top",label:"上对齐",glyph:"⫵"},{id:"align.bottom",label:"下对齐",glyph:"⫶"},{id:"align.centerH",label:"水平居中",glyph:"⇔"},{id:"align.centerV",label:"垂直居中",glyph:"⇕"},{id:"align.center",label:"整体居中",glyph:"⊕"},{id:"align.distributeH",label:"水平等距",glyph:"⇿"},{id:"align.distributeV",label:"垂直等距",glyph:"⇳"},{id:"align.toFirst",label:"对齐到首",glyph:"⏮"},{id:"align.toLast",label:"对齐到尾",glyph:"⏭"}]},{id:"batch",title:"批量生成",tools:[{id:"batch.linearH",label:"横向间距",glyph:"⇢"},{id:"batch.linearV",label:"纵向间距",glyph:"⇣"},{id:"batch.matrix",label:"矩阵生成",glyph:"#"},{id:"batch.alongPath",label:"沿路径采样",glyph:"⤳",tip:"先选 1+ 条路径,再点本工具"},{id:"batch.circular",label:"环形阵列",glyph:"◌"}]},{id:"show",title:"显示",tools:[{id:"show.controlPoints",label:"控制点",glyph:"⊙"},{id:"show.controlHandles",label:"控制柄",glyph:"⊝"}]}];function C(k){return k===g.activeTool}function i(k){f("select-tool",k)}return(k,u)=>{const z=ut,$=xa;return _(),U("div",ja,[a($,{class:"rail-scroll"},{default:l(()=>[(_(),U(de,null,we(h,(p,m)=>r("div",{key:p.id,class:"rail-group"},[r("div",Oa,[u[1]||(u[1]=r("span",{class:"rail-group-bar"},null,-1)),r("span",Ya,T(p.title),1),u[2]||(u[2]=r("span",{class:"rail-group-bar"},null,-1))]),r("div",Ka,[(_(!0),U(de,null,we(p.tools,M=>(_(),ee(z,{key:M.id,content:M.tip??M.label,placement:"right","show-after":280},{default:l(()=>[r("button",{class:Se(["rail-btn",{"rail-btn--active":C(M.id)}]),onClick:I=>i(M.id)},[r("span",Xa,T(M.glyph),1),r("span",Wa,T(M.label),1)],10,Ha)]),_:2},1032,["content"]))),128))]),mf("open-ai"))},[...u[3]||(u[3]=[r("span",{class:"rail-btn-glyph"},"✦",-1),r("span",{class:"rail-btn-label"},"AI 生图",-1)])])])]),_:1})])}}}),Ja=Ne(Za,[["__scopeId","data-v-6b284dea"]]),Qa={class:"edit-property-panel"},el={key:0,class:"empty-hint"},tl={key:1,class:"loading-hint"},al={key:2,class:"object-pane"},ll={class:"prop-card prop-card--header"},nl={class:"prop-card-row"},ol={class:"prop-id-block"},sl={class:"prop-id-tag"},il={class:"prop-type-tag"},rl={class:"prop-header-actions"},ul=["disabled"],dl={class:"prop-delete-icon"},cl={class:"prop-card-row prop-name-row"},pl={class:"prop-card-row prop-layer-row"},ml={key:0,class:"prop-card prop-card--geom"},fl={class:"prop-card-header"},yl=["title"],vl={class:"prop-card-flag-text"},bl={class:"prop-card-meta"},gl={class:"prop-grid"},wl={class:"prop-field-label"},kl={key:0,class:"prop-field-unit"},hl={key:1,class:"prop-card prop-card--style"},xl={class:"prop-card-header"},Sl={class:"prop-card-meta"},_l={class:"prop-grid"},Vl={class:"prop-field-label"},Cl={class:"prop-card prop-card--custom"},$l={class:"prop-card-header"},Al={class:"prop-card-meta"},Nl={key:0,class:"prop-grid"},Fl=["title"],Tl={class:"prop-field-row"},Il=["onClick"],El={key:1,class:"prop-empty-row"},zl={key:2,class:"prop-card prop-card--status"},Pl={class:"prop-card-header"},Ml={class:"prop-card-meta"},Ul={class:"prop-status-list"},Ll={class:"prop-status-key"},Bl=["title"],Dl={key:3,class:"prop-card prop-card--actions"},Rl={class:"prop-card-header"},jl={class:"prop-card-meta"},Ol={class:"prop-actions"},Yl=["disabled","onClick"],Kl={key:0,class:"prop-action-spinner"},Hl={class:"prop-action-label"},Xl={class:"defaults-pane"},Wl={key:0,class:"empty-hint defaults-empty"},Gl={class:"prop-card prop-card--style"},ql={class:"prop-card-header"},Zl={class:"prop-card-flag-text"},Jl={class:"prop-card"},Ql={class:"prop-card prop-card--style"},en={class:"prop-card-header"},tn={class:"prop-card-flag-text"},an={class:"prop-card"},ln={key:3,class:"loading-hint"},nn=Ae({__name:"EditPropertyPanel",props:{selectionCount:{},primary:{},fields:{},status:{},methods:{},loading:{type:Boolean},layers:{},defaults:{},layerRows:{},selectionKind:{},viewportStyle:{},viewportStyleLoading:{type:Boolean},viewportSyncing:{type:Boolean}},emits:["rename","change-layer","set-field","add-field","exec-action","save-defaults","layer-toggle","add-layer","delete","patch-viewport"],setup(n,{emit:N}){const g=n,f=N,h=A("object"),C=A(!1);let i=null;const k=A(null),u=A(null);fe(()=>g.viewportStyle,b=>{if(!b){k.value=null,u.value=null;return}k.value={...b.site},u.value={...b.track}},{immediate:!0,deep:!0}),fe(()=>g.selectionKind,b=>{(b==="site"||b==="track")&&(h.value="defaults")});function z(){C.value=!0,i&&clearTimeout(i),i=setTimeout(()=>{C.value=!1},1400)}fe(()=>g.viewportSyncing,(b,d)=>{d&&!b&&z()});function $(b){k.value&&(k.value={...k.value,...b},f("patch-viewport",{site:{...k.value}}))}function p(b){u.value&&(u.value={...u.value,...b},f("patch-viewport",{track:{...u.value}}))}const m=A(null),M=A(""),I=A(!1),v=A(!1);let q=null;function Q(){v.value=!0,q&&clearTimeout(q),q=setTimeout(()=>{v.value=!1},1200)}const ye=new Set(["id","name","layerName"]),W=new Set(["x","y","z","cx","cy","cz","dx","dy","dz","sx","sy","ex","ey","startX","startY","endX","endY","size","width","height","depth","angle","rotation","theta","scale","radius","r","siteA","siteB"]),ve=new Set(["color","displaySetting","direction","typeInfo","mustFree","imagePath","modelPath","fontFamily","fontSize","textColor","lineWidth","opacity"]),O={x:"X",y:"Y",z:"Z",size:"大小",width:"宽",height:"高",depth:"厚",angle:"角度",rotation:"旋转",theta:"θ",scale:"缩放",radius:"半径",siteA:"起点站",siteB:"终点站",startX:"起点 X",startY:"起点 Y",endX:"终点 X",endY:"终点 Y",cx:"中心 X",cy:"中心 Y",color:"颜色",displaySetting:"显示设置",direction:"方向",typeInfo:"类型信息",mustFree:"必须互斥",imagePath:"图片路径",modelPath:"模型路径",fontSize:"字号",textColor:"文字色",lineWidth:"线宽",opacity:"透明度"},se={x:"mm",y:"mm",z:"mm",cx:"mm",cy:"mm",cz:"mm",dx:"mm",dy:"mm",dz:"mm",startX:"mm",startY:"mm",endX:"mm",endY:"mm",width:"mm",height:"mm",depth:"mm",size:"mm",radius:"mm",angle:"°",rotation:"°",theta:"°",fontSize:"px",lineWidth:"px"},ie=ne(()=>g.fields.filter(b=>!ye.has(b.key))),te=ne(()=>ie.value.filter(b=>W.has(b.key))),x=ne(()=>ie.value.filter(b=>ve.has(b.key))),V=ne(()=>ie.value.filter(b=>!W.has(b.key)&&!ve.has(b.key)));function G(b){return O[b]??b}function oe(b){return se[b]??""}function ke(b){if(b==null||b==="")return;const d=Number(b);return Number.isFinite(d)?d:void 0}function re(b){return b.toLowerCase().includes("angle")||b.toLowerCase().includes("rotation")||b==="theta"?1:b==="scale"||b==="opacity"?.1:10}function ce(b){return W.has(b)}function _e(b,d){return b==="color"||b==="textColor"?!0:/^#[0-9a-fA-F]{3,8}$/.test(d)}function B(b,d){return d==="true"||d==="false"||d==="True"||d==="False"}function K(b){return b==="true"||b==="True"||b==="1"}const Z=ne(()=>{const b=(g.primary?.status??"").toLowerCase();return b?b.includes("error")||b.includes("alarm")||b.includes("failed")?"danger":b.includes("warn")||b.includes("idle")?"warning":b.includes("online")||b.includes("running")||b.includes("ready")||b.includes("ok")?"success":"info":"info"}),he=A("");fe(()=>g.primary?.name??"",b=>{he.value=b},{immediate:!0});function Qe(){Oe()}function Oe(){if(!g.primary)return;const b=he.value;b!==(g.primary.name??"")&&f("rename",b)}function Fe(b){f("change-layer",b)}function ae(b,d){f("set-field",b,d),W.has(b)&&Q()}function Ye(){f("add-field")}async function We(b){try{m.value=b,f("exec-action",b)}finally{m.value=null}}function Te(){f("save-defaults")}function Ie(b){f("layer-toggle",b)}function xe(){const b=M.value.trim();b&&(f("add-layer",b),M.value="")}function Ee(){g.selectionCount===0||I.value||(I.value=!0,f("delete"),setTimeout(()=>{I.value=!1},600))}return(b,d)=>{const ze=dt,ue=Pt,Pe=ut,be=ct,Ge=Va,Me=Ca,pe=It,ge=Et,Ue=zt,Le=_a,et=pt,H=Tt,Ve=Ft,Be=Xe,Ce=ft,qe=mt,tt=Sa;return _(),U("div",Qa,[a(tt,{modelValue:h.value,"onUpdate:modelValue":d[20]||(d[20]=c=>h.value=c),class:"prop-tabs"},{default:l(()=>[a(Le,{label:"对象",name:"object"},{default:l(()=>[n.selectionCount===0?(_(),U("div",el,[a(ze,{class:"empty-icon"},{default:l(()=>[a(D(_t))]),_:1}),d[21]||(d[21]=r("span",{class:"empty-title"},"未选中对象",-1)),d[22]||(d[22]=r("span",{class:"empty-desc"},"在画布上点击或框选以编辑属性。",-1))])):n.loading?(_(),U("div",tl,[a(ze,{class:"is-loading"},{default:l(()=>[a(D(rt))]),_:1}),d[23]||(d[23]=r("span",null,"加载属性…",-1))])):(_(),U("div",al,[r("section",ll,[r("div",nl,[r("div",ol,[r("span",sl,T(n.selectionCount>1?`多选 ${n.selectionCount}`:`#${n.primary?.id??"-"}`),1),r("span",il,T(n.primary?.typeName??"-"),1)]),r("div",rl,[n.primary?.status?(_(),ee(ue,{key:0,type:Z.value,size:"small",effect:"dark",class:"prop-status-tag"},{default:l(()=>[y(T(n.primary.status),1)]),_:1},8,["type"])):X("",!0),a(Pe,{content:n.selectionCount>1?`删除选中的 ${n.selectionCount} 个对象(可 Ctrl+Z 撤销)`:"删除该对象(可 Ctrl+Z 撤销)",placement:"top","show-after":220},{default:l(()=>[r("button",{type:"button",class:"prop-delete-btn",disabled:I.value,onClick:Ee},[r("span",dl,T(I.value?"⟳":"🗑"),1),d[24]||(d[24]=r("span",null,"删除",-1))],8,ul)]),_:1},8,["content"])])]),r("div",cl,[d[25]||(d[25]=r("label",{class:"prop-name-label"},"名称",-1)),n.primary?(_(),ee(be,{key:0,"model-value":he.value,size:"small",placeholder:"对象名","onUpdate:modelValue":d[0]||(d[0]=c=>he.value=c),onBlur:Qe,onChange:Oe},null,8,["model-value"])):X("",!0)]),r("div",pl,[d[26]||(d[26]=r("label",{class:"prop-name-label"},"图层",-1)),n.primary?(_(),ee(Me,{key:0,"model-value":n.primary.layer??"",size:"small",placeholder:"—",class:"prop-layer-select","onUpdate:modelValue":d[1]||(d[1]=c=>Fe(c))},{default:l(()=>[a(Ge,{label:"(无)",value:""}),(_(!0),U(de,null,we(n.layers,c=>(_(),ee(Ge,{key:c,label:c,value:c},null,8,["label","value"]))),128))]),_:1},8,["model-value"])):X("",!0)])]),te.value.length>0?(_(),U("section",ml,[r("header",fl,[d[28]||(d[28]=r("span",{class:"prop-card-title"},"位置 / 几何",-1)),r("span",{class:Se(["prop-card-flag",{"is-synced":v.value}]),title:v.value?"已同步到画布":"改动会立即同步到 SimpleLite 画布"},[d[27]||(d[27]=r("span",{class:"prop-card-flag-dot"},null,-1)),r("span",vl,T(v.value?"已同步":"同步到画布"),1)],10,yl),r("span",bl,T(te.value.length)+" 项",1)]),r("div",gl,[(_(!0),U(de,null,we(te.value,c=>(_(),U("div",{key:c.key,class:"prop-grid-item"},[r("label",wl,[y(T(G(c.key))+" ",1),oe(c.key)?(_(),U("span",kl,T(oe(c.key)),1)):X("",!0)]),ce(c.key)?(_(),ee(pe,{key:0,"model-value":ke(c.value),controls:!1,step:re(c.key),size:"small",class:"prop-field-num",onChange:R=>ae(c.key,R==null?"":String(R))},null,8,["model-value","step","onChange"])):(_(),ee(be,{key:1,"model-value":c.value,size:"small",spellcheck:"false",onChange:R=>ae(c.key,R)},null,8,["model-value","onChange"]))]))),128))])])):X("",!0),x.value.length>0?(_(),U("section",hl,[r("header",xl,[d[29]||(d[29]=r("span",{class:"prop-card-title"},"样式 / 外观",-1)),r("span",Sl,T(x.value.length)+" 项",1)]),r("div",_l,[(_(!0),U(de,null,we(x.value,c=>(_(),U("div",{key:c.key,class:"prop-grid-item"},[r("label",Vl,T(G(c.key)),1),_e(c.key,c.value)?(_(),ee(ge,{key:0,"model-value":c.value||"#ffffff","show-alpha":"",size:"small",onChange:R=>ae(c.key,R??"")},null,8,["model-value","onChange"])):B(c.key,c.value)?(_(),ee(Ue,{key:1,"model-value":K(c.value),size:"small",onChange:R=>ae(c.key,R?"true":"false")},null,8,["model-value","onChange"])):(_(),ee(be,{key:2,"model-value":c.value,size:"small",spellcheck:"false",onChange:R=>ae(c.key,R)},null,8,["model-value","onChange"]))]))),128))])])):X("",!0),r("section",Cl,[r("header",$l,[d[30]||(d[30]=r("span",{class:"prop-card-title"},"其它字段 / 自定义",-1)),r("span",Al,T(V.value.length)+" 项",1)]),V.value.length>0?(_(),U("div",Nl,[(_(!0),U(de,null,we(V.value,c=>(_(),U("div",{key:c.key,class:"prop-grid-item prop-grid-item--wide"},[r("label",{class:"prop-field-label",title:c.key},T(c.key),9,Fl),r("div",Tl,[a(be,{"model-value":c.value,size:"small",spellcheck:"false",onChange:R=>ae(c.key,R)},null,8,["model-value","onChange"]),a(Pe,{content:"删除该字段",placement:"top"},{default:l(()=>[r("button",{class:"prop-field-icon-btn",onClick:R=>ae(c.key,"")},"×",8,Il)]),_:2},1024)])]))),128))])):(_(),U("div",El,"无其它字段")),r("button",{class:"prop-add-field-btn",onClick:Ye},"+ 添加字段")]),n.status.length>0?(_(),U("section",zl,[r("header",Pl,[d[31]||(d[31]=r("span",{class:"prop-card-title"},"运行状态",-1)),r("span",Ml,T(n.status.length)+" 项",1)]),r("div",Ul,[(_(!0),U(de,null,we(n.status,c=>(_(),U("div",{key:c.key,class:"prop-status-item"},[r("span",Ll,T(c.key),1),r("span",{class:"prop-status-value",title:c.value},T(c.value),9,Bl)]))),128))])])):X("",!0),n.methods.length>0?(_(),U("section",Dl,[r("header",Rl,[d[32]||(d[32]=r("span",{class:"prop-card-title"},"操作",-1)),r("span",jl,T(n.methods.length)+" 项",1)]),r("div",Ol,[(_(!0),U(de,null,we(n.methods,c=>(_(),ee(Pe,{key:c.methodName,content:c.description||c.label||c.methodName,placement:"top","show-after":220},{default:l(()=>[r("button",{class:"prop-action-btn",disabled:m.value===c.methodName,onClick:R=>We(c.methodName)},[m.value===c.methodName?(_(),U("span",Kl,"⟳")):X("",!0),d[33]||(d[33]=r("span",{class:"prop-action-icon"},"▶",-1)),r("span",Hl,T(c.label||c.methodName),1)],8,Yl)]),_:2},1032,["content"]))),128))])])):X("",!0)]))]),_:1}),a(Le,{label:"类型默认",name:"defaults"},{default:l(()=>[r("div",Xl,[a(et,{type:"info",closable:!1,class:"defaults-alert"},{default:l(()=>[...d[34]||(d[34]=[y(" 视口样式与 SimpleLite「视口样式」对话框同步,修改后即时重绘画布;下方「新建默认」仅影响下次创建对象。 ",-1)])]),_:1}),n.selectionKind?n.selectionKind==="site"&&k.value?(_(),U(de,{key:1},[r("section",Gl,[r("header",ql,[d[38]||(d[38]=r("span",{class:"prop-card-title"},"站点视口样式",-1)),r("span",{class:Se(["prop-card-flag",{"is-synced":C.value}])},[d[37]||(d[37]=r("span",{class:"prop-card-flag-dot"},null,-1)),r("span",Zl,T(n.viewportSyncing?"同步中…":C.value?"已同步":"实时同步"),1)],2)]),a(Ve,{"label-width":"132px",size:"small",class:"defaults-form"},{default:l(()=>[a(H,{label:"整体大小倍率"},{default:l(()=>[a(pe,{"model-value":k.value.drawScale,min:.25,max:12,step:.1,controls:!0,"onUpdate:modelValue":d[2]||(d[2]=c=>$({drawScale:c??k.value.drawScale}))},null,8,["model-value"])]),_:1}),a(H,{label:"未选中圆点半径"},{default:l(()=>[a(pe,{"model-value":k.value.dotRadiusNormal,min:1,max:24,step:.5,"onUpdate:modelValue":d[3]||(d[3]=c=>$({dotRadiusNormal:c??k.value.dotRadiusNormal}))},null,8,["model-value"])]),_:1}),a(H,{label:"选中圆点半径"},{default:l(()=>[a(pe,{"model-value":k.value.dotRadiusSelected,min:1,max:32,step:.5,"onUpdate:modelValue":d[4]||(d[4]=c=>$({dotRadiusSelected:c??k.value.dotRadiusSelected}))},null,8,["model-value"])]),_:1}),a(H,{label:"选中环半径 (m)"},{default:l(()=>[a(pe,{"model-value":k.value.selectionRingM,min:.02,max:.8,step:.01,"onUpdate:modelValue":d[5]||(d[5]=c=>$({selectionRingM:c??k.value.selectionRingM}))},null,8,["model-value"])]),_:1}),a(H,{label:"站点颜色(未选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(k.value.colorNormalArgb),"onUpdate:modelValue":d[6]||(d[6]=c=>$({colorNormalArgb:D(Re)(c??"#ffffff")}))},null,8,["model-value"])]),_:1}),a(H,{label:"站点颜色(选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(k.value.colorSelectedArgb),"onUpdate:modelValue":d[7]||(d[7]=c=>$({colorSelectedArgb:D(Re)(c??"#ff0000")}))},null,8,["model-value"])]),_:1}),a(H,{label:"标签颜色(未选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(k.value.labelColorNormalArgb),"onUpdate:modelValue":d[8]||(d[8]=c=>$({labelColorNormalArgb:D(Re)(c??"#ffffff")}))},null,8,["model-value"])]),_:1}),a(H,{label:"标签颜色(选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(k.value.labelColorSelectedArgb),"onUpdate:modelValue":d[9]||(d[9]=c=>$({labelColorSelectedArgb:D(Re)(c??"#ff0000")}))},null,8,["model-value"])]),_:1})]),_:1})]),r("section",Jl,[d[40]||(d[40]=r("header",{class:"prop-card-header"},[r("span",{class:"prop-card-title"},"新建站点默认")],-1)),a(Ve,{"label-width":"132px",size:"small",class:"defaults-form"},{default:l(()=>[a(H,{label:"默认图层"},{default:l(()=>[a(be,{modelValue:n.defaults.site.layer,"onUpdate:modelValue":d[10]||(d[10]=c=>n.defaults.site.layer=c)},null,8,["modelValue"])]),_:1}),a(H,{label:"名字前缀"},{default:l(()=>[a(be,{modelValue:n.defaults.site.namePrefix,"onUpdate:modelValue":d[11]||(d[11]=c=>n.defaults.site.namePrefix=c)},null,8,["modelValue"])]),_:1}),a(Be,{size:"small",type:"primary",plain:"",onClick:Te},{default:l(()=>[...d[39]||(d[39]=[y("保存新建默认",-1)])]),_:1})]),_:1})])],64)):n.selectionKind==="track"&&u.value?(_(),U(de,{key:2},[r("section",Ql,[r("header",en,[d[42]||(d[42]=r("span",{class:"prop-card-title"},"路径视口样式",-1)),r("span",{class:Se(["prop-card-flag",{"is-synced":C.value}])},[d[41]||(d[41]=r("span",{class:"prop-card-flag-dot"},null,-1)),r("span",tn,T(n.viewportSyncing?"同步中…":C.value?"已同步":"实时同步"),1)],2)]),a(Ve,{"label-width":"132px",size:"small",class:"defaults-form"},{default:l(()=>[a(H,{label:"线宽倍率"},{default:l(()=>[a(pe,{"model-value":u.value.drawScale,min:.25,max:12,step:.1,"onUpdate:modelValue":d[12]||(d[12]=c=>p({drawScale:c??u.value.drawScale}))},null,8,["model-value"])]),_:1}),a(H,{label:"未选中线宽"},{default:l(()=>[a(pe,{"model-value":u.value.widthNormal,min:.4,max:8,step:.1,"onUpdate:modelValue":d[13]||(d[13]=c=>p({widthNormal:c??u.value.widthNormal}))},null,8,["model-value"])]),_:1}),a(H,{label:"选中线宽"},{default:l(()=>[a(pe,{"model-value":u.value.widthSelected,min:.4,max:12,step:.1,"onUpdate:modelValue":d[14]||(d[14]=c=>p({widthSelected:c??u.value.widthSelected}))},null,8,["model-value"])]),_:1}),a(H,{label:"显示方向箭头"},{default:l(()=>[a(Ue,{"model-value":u.value.showDirectionArrows,"onUpdate:modelValue":d[15]||(d[15]=c=>p({showDirectionArrows:!!c}))},null,8,["model-value"])]),_:1}),a(H,{label:"路径颜色(未选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(u.value.colorNormalArgb),"onUpdate:modelValue":d[16]||(d[16]=c=>p({colorNormalArgb:D(Re)(c??"#00ffff")}))},null,8,["model-value"])]),_:1}),a(H,{label:"路径颜色(选中)"},{default:l(()=>[a(ge,{"model-value":D(je)(u.value.colorSelectedArgb),"onUpdate:modelValue":d[17]||(d[17]=c=>p({colorSelectedArgb:D(Re)(c??"#ff0000")}))},null,8,["model-value"])]),_:1})]),_:1})]),r("section",an,[d[44]||(d[44]=r("header",{class:"prop-card-header"},[r("span",{class:"prop-card-title"},"新建路径默认")],-1)),a(Ve,{"label-width":"132px",size:"small",class:"defaults-form"},{default:l(()=>[a(H,{label:"默认图层"},{default:l(()=>[a(be,{modelValue:n.defaults.track.layer,"onUpdate:modelValue":d[18]||(d[18]=c=>n.defaults.track.layer=c)},null,8,["modelValue"])]),_:1}),a(Be,{size:"small",type:"primary",plain:"",onClick:Te},{default:l(()=>[...d[43]||(d[43]=[y("保存新建默认",-1)])]),_:1})]),_:1})])],64)):n.viewportStyleLoading?(_(),U("div",ln,[a(ze,{class:"is-loading"},{default:l(()=>[a(D(rt))]),_:1}),d[45]||(d[45]=r("span",null,"加载视口样式…",-1))])):X("",!0):(_(),U("div",Wl,[a(ze,{class:"empty-icon"},{default:l(()=>[a(D(_t))]),_:1}),d[35]||(d[35]=r("span",{class:"empty-title"},"请选中站点或路径",-1)),d[36]||(d[36]=r("span",{class:"empty-desc"},"在画布上选中一个站点或路径后,可在此调整对应视口样式。",-1))]))])]),_:1}),a(Le,{label:"图层",name:"layers"},{default:l(()=>[a(qe,{data:n.layerRows,size:"small",class:"layer-table"},{default:l(()=>[a(Ce,{prop:"name",label:"图层",width:"120"}),a(Ce,{label:"可见",width:"60"},{default:l(({row:c})=>[a(Ue,{modelValue:c.visible,"onUpdate:modelValue":R=>c.visible=R,onChange:R=>Ie(c)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),a(Ce,{label:"可选",width:"60"},{default:l(({row:c})=>[a(Ue,{modelValue:c.selectable,"onUpdate:modelValue":R=>c.selectable=R,onChange:R=>Ie(c)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),a(Ce,{label:"颜色"},{default:l(({row:c})=>[a(ge,{modelValue:c.color,"onUpdate:modelValue":R=>c.color=R,onChange:R=>Ie(c)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1})]),_:1},8,["data"]),a(be,{modelValue:M.value,"onUpdate:modelValue":d[19]||(d[19]=c=>M.value=c),size:"small",placeholder:"新图层名",class:"new-layer"},{append:l(()=>[a(Be,{onClick:xe},{default:l(()=>[...d[46]||(d[46]=[y("添加",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}}),on=Ne(nn,[["__scopeId","data-v-781515fe"]]),sn={class:"edit-status-bar"},rn={class:"seg"},un={class:"seg"},dn={class:"seg"},cn={class:"seg"},pn={class:"seg"},mn={key:0,class:"seg ok"},fn={key:1,class:"seg warn"},yn=Ae({__name:"EditStatusBar",props:{selectedCount:{},mouseX:{},mouseY:{},toolLabel:{},snapOn:{type:Boolean},undoSize:{},redoSize:{},connected:{type:Boolean}},setup(n){function N(g){return Number.isFinite(g)?g.toFixed(0):"--"}return(g,f)=>(_(),U("div",sn,[r("span",rn,[f[0]||(f[0]=y(" 选中 ",-1)),r("b",null,T(n.selectedCount),1),f[1]||(f[1]=y(" 个 ",-1))]),r("span",un," 鼠标 ("+T(N(n.mouseX))+", "+T(N(n.mouseY))+") mm ",1),r("span",dn,[f[2]||(f[2]=y(" 当前工具:",-1)),r("b",null,T(n.toolLabel),1)]),r("span",cn,[f[3]||(f[3]=y(" 吸附:",-1)),r("b",{class:Se({on:n.snapOn,off:!n.snapOn})},T(n.snapOn?"开":"关"),3)]),f[4]||(f[4]=r("span",{class:"spacer"},null,-1)),r("span",pn,"历史 "+T(n.undoSize)+" / "+T(n.redoSize),1),n.connected?(_(),U("span",mn,"● 实时通道在线")):(_(),U("span",fn,"● 实时通道断开"))]))}}),vn=Ne(yn,[["__scopeId","data-v-6254b10f"]]),bn={class:"upload-hint"},gn={key:0,class:"ai-text"},wn={class:"ai-stat"},kn=Ae({__name:"AiGenerateDialog",props:{modelValue:{type:Boolean},configured:{type:Boolean},defaultBounds:{},defaultLayer:{}},emits:["update:modelValue","generated"],setup(n,{emit:N}){const g=n,f=N,h=yt(),C=A(!1),i=A(null),k=A(["r"]),u=Je({prompt:"",mode:"sites+tracks",referenceImageBase64:void 0,layer:g.defaultLayer??"ai-generated",constraints:""}),z=A(g.defaultBounds??[-1e4,-1e4,1e4,1e4]);fe(()=>g.defaultBounds,I=>{I&&(z.value=I)}),fe(()=>g.defaultLayer,I=>{I&&(u.layer=I)});function $(){f("update:modelValue",!1)}function p(){f("update:modelValue",!1),h.push("/admin/config/system")}async function m(I){if(!I.raw)return;const v=new FileReader;v.onload=()=>{const q=String(v.result||""),Q=q.includes(",")?q.split(",",2)[1]:q;u.referenceImageBase64=Q},v.readAsDataURL(I.raw)}async function M(){try{C.value=!0,u.bounds=z.value;const I=await j.aiMapGenerate(u);i.value=I,F.success(`AI 已生成 ${I.created?.length??0} 个对象`),f("generated",I)}catch(I){F.error(`AI 生图失败:${I.message}`)}finally{C.value=!1}}return(I,v)=>{const q=Bt,Q=pt,ye=ct,W=Tt,ve=dt,O=$a,se=Lt,ie=Ut,te=It,x=Ft,V=ft,G=Pt,oe=mt,ke=Fa,re=Na,ce=Xe,_e=Mt;return _(),ee(_e,{"model-value":n.modelValue,title:"AI 生图",width:"640px",class:"ai-generate-dialog","onUpdate:modelValue":v[9]||(v[9]=B=>f("update:modelValue",B)),onClose:$},{footer:l(()=>[a(ce,{onClick:$},{default:l(()=>[...v[20]||(v[20]=[y("关闭",-1)])]),_:1}),a(ce,{type:"primary",loading:C.value,disabled:!u.prompt.trim()||!n.configured,onClick:M},{default:l(()=>[...v[21]||(v[21]=[y(" 生成并落地 ",-1)])]),_:1},8,["loading","disabled"])]),default:l(()=>[n.configured?X("",!0):(_(),ee(Q,{key:0,type:"warning",closable:!1,class:"cfg-alert"},{default:l(()=>[v[11]||(v[11]=y(" 尚未配置 AI 服务(apiKey / endpoint)。请先到 ",-1)),a(q,{type:"primary",onClick:p},{default:l(()=>[...v[10]||(v[10]=[y("系统级配置 → AI 服务",-1)])]),_:1}),v[12]||(v[12]=y(" 完成配置。 ",-1))]),_:1})),a(x,{"label-width":"100px",size:"default"},{default:l(()=>[a(W,{label:"提示词",required:""},{default:l(()=>[a(ye,{modelValue:u.prompt,"onUpdate:modelValue":v[0]||(v[0]=B=>u.prompt=B),type:"textarea",rows:4,placeholder:"一条 U 型生产线,含 5 个工站,间距 2m,方向单向通行..."},null,8,["modelValue"])]),_:1}),a(W,{label:"参考图片"},{default:l(()=>[a(O,{drag:"","auto-upload":!1,"show-file-list":!1,accept:"image/*",onChange:m},{default:l(()=>[r("div",bn,[a(ve,null,{default:l(()=>[a(D(Aa))]),_:1}),r("span",null,T(u.referenceImageBase64?"已选择图片 (点击替换)":"拖入或点击上传参考图(可选,多模态)"),1)])]),_:1})]),_:1}),a(W,{label:"生成模式"},{default:l(()=>[a(ie,{modelValue:u.mode,"onUpdate:modelValue":v[1]||(v[1]=B=>u.mode=B)},{default:l(()=>[a(se,{value:"sites"},{default:l(()=>[...v[13]||(v[13]=[y("仅站点",-1)])]),_:1}),a(se,{value:"tracks"},{default:l(()=>[...v[14]||(v[14]=[y("仅路径",-1)])]),_:1}),a(se,{value:"sites+tracks"},{default:l(()=>[...v[15]||(v[15]=[y("站点+路径",-1)])]),_:1}),a(se,{value:"full"},{default:l(()=>[...v[16]||(v[16]=[y("完整地图",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(W,{label:"范围 (mm)"},{default:l(()=>[a(te,{modelValue:z.value[0],"onUpdate:modelValue":v[2]||(v[2]=B=>z.value[0]=B),placeholder:"x1",step:500},null,8,["modelValue"]),a(te,{modelValue:z.value[1],"onUpdate:modelValue":v[3]||(v[3]=B=>z.value[1]=B),placeholder:"y1",step:500,class:"ml"},null,8,["modelValue"]),a(te,{modelValue:z.value[2],"onUpdate:modelValue":v[4]||(v[4]=B=>z.value[2]=B),placeholder:"x2",step:500,class:"ml"},null,8,["modelValue"]),a(te,{modelValue:z.value[3],"onUpdate:modelValue":v[5]||(v[5]=B=>z.value[3]=B),placeholder:"y2",step:500,class:"ml"},null,8,["modelValue"])]),_:1}),a(W,{label:"图层"},{default:l(()=>[a(ye,{modelValue:u.layer,"onUpdate:modelValue":v[6]||(v[6]=B=>u.layer=B),placeholder:"ai-generated(默认)"},null,8,["modelValue"])]),_:1}),a(W,{label:"附加约束"},{default:l(()=>[a(ye,{modelValue:u.constraints,"onUpdate:modelValue":v[7]||(v[7]=B=>u.constraints=B),placeholder:"例如:单向通行、最小转弯半径 1500mm"},null,8,["modelValue"])]),_:1})]),_:1}),i.value?(_(),ee(re,{key:1,modelValue:k.value,"onUpdate:modelValue":v[8]||(v[8]=B=>k.value=B),class:"result-panel"},{default:l(()=>[a(ke,{title:"AI 返回 / 落地结果",name:"r"},{default:l(()=>[i.value.assistantText?(_(),U("div",gn,T(i.value.assistantText),1)):X("",!0),r("div",wn,[v[17]||(v[17]=y(" 落地对象 ",-1)),r("b",null,T(i.value.created?.length??0),1),v[18]||(v[18]=y(",工具调用次数 ",-1)),r("b",null,T(i.value.usedTools),1),v[19]||(v[19]=y("。 ",-1))]),a(oe,{data:i.value.created??[],size:"small","max-height":"220"},{default:l(()=>[a(V,{label:"工具",prop:"tool",width:"160"}),a(V,{label:"kind",prop:"kind",width:"80"}),a(V,{label:"id",prop:"id",width:"80"}),a(V,{label:"typeName",prop:"typeName"}),a(V,{label:"错误"},{default:l(({row:B})=>[B.error?(_(),ee(G,{key:0,type:"danger",size:"small"},{default:l(()=>[y(T(B.error),1)]),_:2},1024)):X("",!0)]),_:1})]),_:1},8,["data"])]),_:1})]),_:1},8,["modelValue"])):X("",!0)]),_:1},8,["model-value"])}}}),hn=Ne(kn,[["__scopeId","data-v-47584778"]]),xn={key:0,class:"aap-empty"},Sn=["onClick"],_n={class:"aap-bubble"},Vn={class:"aap-bubble-text"},Cn={key:0,class:"aap-meta"},$n={key:1,class:"aap-msg aap-msg--assistant"},An={class:"aap-bubble aap-bubble--loading"},Nn={class:"aap-toolbar"},Fn={class:"aap-input"},Vt=300,Ct=720,$t="mapEditor.aiAssistant.mode",Tn=Ae({__name:"AiAssistantPanel",props:{open:{type:Boolean},configured:{type:Boolean},width:{},defaultBounds:{},defaultLayer:{}},emits:["update:open","update:width","generated"],setup(n,{emit:N}){const g=n,f=N,h=ne(()=>Math.min(Ct,Math.max(Vt,g.width??360))),C=yt(),i=A([]),k=A(""),u=A(!1),z=A(null);function $(){const x=localStorage.getItem($t);return x==="sites"||x==="tracks"||x==="sites+tracks"||x==="full"?x:"sites+tracks"}const p=A($());fe(p,x=>{try{localStorage.setItem($t,x)}catch{}});let m=!1,M=0,I=0;function v(x){m=!0,M=x.clientX,I=h.value,x.currentTarget.setPointerCapture?.(x.pointerId),x.preventDefault()}function q(x){if(!m)return;const V=Math.min(Ct,Math.max(Vt,I+(M-x.clientX)));f("update:width",V)}function Q(x){m&&(m=!1,x.currentTarget.releasePointerCapture?.(x.pointerId))}Dt(()=>{m=!1});const ye=["生成一条横向直线,5 个站点,间距 2000mm","画一个 3×3 的站点矩阵,间距 2500mm","一条 U 型产线,含 5 个工站,单向通行"];function W(){f("update:open",!1)}function ve(){W(),C.push("/admin/config/system")}function O(x){k.value=x}function se(x){x instanceof KeyboardEvent&&x.key==="Enter"&&!x.shiftKey&&!x.isComposing&&(x.preventDefault(),te())}async function ie(){await Ia();const x=z.value;x&&(x.scrollTop=x.scrollHeight)}async function te(){const x=k.value.trim();if(!(!x||u.value||!g.configured)){i.value.push({role:"user",text:x}),k.value="",ie(),u.value=!0;try{const V={prompt:x,mode:p.value,bounds:g.defaultBounds,layer:g.defaultLayer},G=await j.aiMapGenerate(V),oe=G.created?.length??0;i.value.push({role:"assistant",text:G.assistantText?.trim()||`已根据你的描述生成并落地 ${oe} 个对象。`,meta:{created:oe,usedTools:G.usedTools??0}}),f("generated",G)}catch(V){const G=V.message;i.value.push({role:"assistant",text:`生成失败:${G}`}),F.error(`AI 助手生成失败:${G}`)}finally{u.value=!1,ie()}}}return(x,V)=>{const G=Bt,oe=pt,ke=dt,re=Lt,ce=Ut,_e=ct,B=Xe;return _(),U("div",{class:Se(["ai-assistant-panel",{"is-open":n.open}]),style:Rt({width:h.value+"px"}),role:"complementary","aria-label":"AI 助手"},[r("div",{class:"aap-resizer",title:"拖拽调整宽度",onPointerdown:v,onPointermove:q,onPointerup:Q,onPointercancel:Q},null,32),r("div",{class:"aap-header"},[V[2]||(V[2]=Ta('
AI 助手
用自然语言描述地图需求,自动生成站点 / 路径
',1)),r("button",{class:"aap-close",type:"button",title:"收起",onClick:W},"✕")]),n.configured?X("",!0):(_(),ee(oe,{key:0,type:"warning",closable:!1,class:"aap-alert"},{default:l(()=>[V[4]||(V[4]=y(" 尚未配置 AI 服务(apiKey / endpoint)。请先到 ",-1)),a(G,{type:"primary",onClick:ve},{default:l(()=>[...V[3]||(V[3]=[y("系统级配置 → AI 服务",-1)])]),_:1}),V[5]||(V[5]=y(" 完成配置。 ",-1))]),_:1})),r("div",{ref_key:"listRef",ref:z,class:"aap-messages"},[i.value.length===0?(_(),U("div",xn,[V[6]||(V[6]=r("div",{class:"aap-empty-title"},"试着这样说:",-1)),(_(),U(de,null,we(ye,(K,Z)=>r("button",{key:Z,type:"button",class:"aap-example",onClick:he=>O(K)},T(K),9,Sn)),64))])):X("",!0),(_(!0),U(de,null,we(i.value,(K,Z)=>(_(),U("div",{key:Z,class:Se(["aap-msg",`aap-msg--${K.role}`])},[r("div",_n,[r("div",Vn,T(K.text),1),K.role==="assistant"&&K.meta?(_(),U("div",Cn,[V[7]||(V[7]=y(" 落地对象 ",-1)),r("b",null,T(K.meta.created),1),V[8]||(V[8]=y(" · 工具调用 ",-1)),r("b",null,T(K.meta.usedTools),1)])):X("",!0)])],2))),128)),u.value?(_(),U("div",$n,[r("div",An,[a(ke,{class:"is-loading"},{default:l(()=>[a(D(rt))]),_:1}),V[9]||(V[9]=r("span",null,"AI 正在生成…",-1))])])):X("",!0)],512),r("div",Nn,[V[14]||(V[14]=r("span",{class:"aap-toolbar-label"},"生成模式",-1)),a(ce,{modelValue:p.value,"onUpdate:modelValue":V[0]||(V[0]=K=>p.value=K),size:"small"},{default:l(()=>[a(re,{value:"sites"},{default:l(()=>[...V[10]||(V[10]=[y("站点",-1)])]),_:1}),a(re,{value:"tracks"},{default:l(()=>[...V[11]||(V[11]=[y("路径",-1)])]),_:1}),a(re,{value:"sites+tracks"},{default:l(()=>[...V[12]||(V[12]=[y("站点+路径",-1)])]),_:1}),a(re,{value:"full"},{default:l(()=>[...V[13]||(V[13]=[y("完整",-1)])]),_:1})]),_:1},8,["modelValue"])]),r("div",Fn,[a(_e,{modelValue:k.value,"onUpdate:modelValue":V[1]||(V[1]=K=>k.value=K),type:"textarea",rows:3,resize:"none",disabled:!n.configured||u.value,placeholder:"例如:一条 U 型生产线,含 5 个工站,间距 2m,单向通行…(Enter 发送,Shift+Enter 换行)",onKeydown:se},null,8,["modelValue","disabled"]),a(B,{type:"primary",class:"aap-send",loading:u.value,disabled:!n.configured||!k.value.trim(),onClick:te},{default:l(()=>[...V[15]||(V[15]=[y("发送",-1)])]),_:1},8,["loading","disabled"])])],6)}}}),In=Ne(Tn,[["__scopeId","data-v-9fed2b0d"]]);function En(){const n=A("transform.move"),N=A({grid:!1,gridSizeMm:100,object:!0,endpoint:!0,midpoint:!1,toAngleDeg:void 0}),g=A(!0),f=A(!0),h=ne(()=>{const u=n.value;return u.startsWith("select.")?"select":u.startsWith("draw.")?"draw":u.startsWith("transform.")?"transform":u.startsWith("align.")?"align":u.startsWith("batch.")?"batch":u.startsWith("snap.")?"snap":"show"}),C=ne(()=>({"select.single":"单选","select.rect":"矩形框选","select.lasso":"圈选","select.byType.site":"按类型选 - 站点","select.byType.bezier":"按类型选 - 贝塞尔","select.byType.polyline":"按类型选 - 折线","select.byType.arc":"按类型选 - 弧","select.byType.decor":"按类型选 - 装饰物","select.byType.currentLayer":"按类型选 - 当前图层","select.invert":"反选","select.clear":"清空选中","draw.site":"添加站点","draw.sites.continuous":"连续添加站点","draw.track.polyline":"添加折线路径","draw.track.bezier":"添加贝塞尔路径","draw.track.arc":"添加弧形路径","draw.track.nurbs":"添加 NURBS 路径","draw.decor.line":"添加线段","draw.decor.rect":"添加矩形","draw.decor.circle":"添加圆","draw.decor.text":"添加文本","draw.image":"插入图片","draw.model":"插入 3D 模型","transform.move":"移动","transform.rotate":"旋转","transform.scale":"缩放","transform.duplicate":"复制副本","transform.copy":"复制","transform.paste":"粘贴","transform.delete":"删除","transform.copyFields":"复制字段","align.left":"左对齐","align.right":"右对齐","align.top":"上对齐","align.bottom":"下对齐","align.centerH":"水平居中","align.centerV":"垂直居中","align.center":"整体居中","align.distributeH":"水平等距","align.distributeV":"垂直等距","align.toFirst":"对齐到第一个","align.toLast":"对齐到最后一个","batch.linearH":"横向间隔生成","batch.linearV":"纵向间隔生成","batch.matrix":"矩阵生成","batch.alongPath":"沿路径采样生成","batch.circular":"环形阵列","snap.grid":"网格吸附","snap.object":"对象吸附","snap.endpoint":"端点吸附","snap.midpoint":"中点吸附","show.controlPoints":"显示控制点","show.controlHandles":"显示控制柄"})[n.value]??n.value);function i(u){n.value=u}function k(u){N.value={...N.value,[u]:!N.value[u]}}return{activeTool:n,snap:N,showControlPoints:g,showControlHandles:f,toolCategory:h,toolLabel:C,setTool:i,toggleSnap:k}}function $e(n,N){return`${n}:${N}`}function zn(){const n=A([]),N=A(null),g=ne(()=>n.value.map(m=>m.id)),f=ne(()=>n.value.length);function h(m,M){const I=$e(m,M);return n.value.some(v=>$e(v.kind,v.id)===I)}function C(m){h(m.kind,m.id)||(n.value=[...n.value,m],N.value=$e(m.kind,m.id))}function i(m,M){const I=$e(m,M);n.value=n.value.filter(v=>$e(v.kind,v.id)!==I),N.value===I&&(N.value=null)}function k(m){h(m.kind,m.id)?i(m.kind,m.id):C(m)}function u(m){n.value=m,N.value=m.length>0?$e(m[m.length-1].kind,m[m.length-1].id):null}function z(){n.value=[],N.value=null}function $(m){n.value=n.value.filter(M=>M.kind===m)}function p(m){n.value=[m],N.value=$e(m.kind,m.id)}return{items:n,ids:g,count:f,lastClickedKey:N,has:h,add:C,remove:i,toggle:k,set:u,clear:z,filterByKind:$,selectSingle:p}}function Pn(n={}){const N=n.maxDepth??20,g=A([]),f=A([]),h=A(!1),C=ne(()=>g.value.length>0&&!h.value),i=ne(()=>f.value.length>0&&!h.value);async function k(m){if(!h.value){h.value=!0;try{await m.apply(),g.value=[...g.value,m].slice(-N),f.value=[],n.onChange?.()}finally{h.value=!1}}}async function u(){if(!C.value)return;const m=g.value[g.value.length-1];h.value=!0;try{await m.revert(),g.value=g.value.slice(0,-1),f.value=[...f.value,m].slice(-N),n.onChange?.()}finally{h.value=!1}}async function z(){if(!i.value)return;const m=f.value[f.value.length-1];h.value=!0;try{await m.apply(),f.value=f.value.slice(0,-1),g.value=[...g.value,m].slice(-N),n.onChange?.()}finally{h.value=!1}}function $(){g.value=[],f.value=[],n.onChange?.()}function p(m,M){return{label:m,apply:async()=>{for(const I of M)await I.apply()},revert:async()=>{for(let I=M.length-1;I>=0;I--)await M[I].revert()}}}return{undoStack:g,redoStack:f,busy:h,canUndo:C,canRedo:i,run:k,undo:u,redo:z,clear:$,composite:p}}function Mn(n={}){function N(g){const f=g?.data;if(!f||typeof f!="object"||typeof f.type!="string")return;const h=f.type,C=f.payload;if(h==="workspace.pick"&&n.onPick&&C&&typeof C=="object"&&"x"in C&&"y"in C){const i=C;n.onPick({x:Number(i.x),y:Number(i.y),siteId:typeof i.siteId=="number"?i.siteId:void 0})}else if(h==="workspace.select"&&n.onSelect&&Array.isArray(C))n.onSelect({names:C});else if(h==="workspace.mouse"&&n.onMouse&&C&&typeof C=="object"&&"x"in C&&"y"in C){const i=C;n.onMouse({x:Number(i.x),y:Number(i.y)})}}jt(()=>window.addEventListener("message",N)),Dt(()=>window.removeEventListener("message",N))}function Un(n,N){if(n.length<2)return[];const g=[],f=n.map(p=>p.x),h=n.map(p=>p.y),C=Math.min(...f),i=Math.max(...f),k=Math.min(...h),u=Math.max(...h),z=f.reduce((p,m)=>p+m,0)/f.length,$=h.reduce((p,m)=>p+m,0)/h.length;switch(N){case"left":for(const p of n)g.push(me(p,{x:C}));break;case"right":for(const p of n)g.push(me(p,{x:i}));break;case"top":for(const p of n)g.push(me(p,{y:u}));break;case"bottom":for(const p of n)g.push(me(p,{y:k}));break;case"centerH":for(const p of n)g.push(me(p,{x:z}));break;case"centerV":for(const p of n)g.push(me(p,{y:$}));break;case"center":for(const p of n)g.push(me(p,{x:z,y:$}));break;case"distributeH":{const p=[...n].sort((M,I)=>M.x-I.x),m=(p[p.length-1].x-p[0].x)/(p.length-1);p.forEach((M,I)=>{const v=p[0].x+m*I;Math.abs(v-M.x)>.5&&g.push(me(M,{x:v}))});break}case"distributeV":{const p=[...n].sort((M,I)=>M.y-I.y),m=(p[p.length-1].y-p[0].y)/(p.length-1);p.forEach((M,I)=>{const v=p[0].y+m*I;Math.abs(v-M.y)>.5&&g.push(me(M,{y:v}))});break}case"toFirst":{const p=n[0];for(const m of n.slice(1))g.push(me(m,{x:p.x,y:p.y}));break}case"toLast":{const p=n[n.length-1];for(const m of n.slice(0,-1))g.push(me(m,{x:p.x,y:p.y}));break}}return g}function me(n,N){return{action:"patch",kind:n.kind,id:n.id,data:N}}function Ln(n,N,g,f){return Ot(n,g,N,g,f)}function Bn(n,N,g,f){return Ot(n,N,n,g,f)}function Ot(n,N,g,f,h){const C=[],i=Math.max(2,Math.floor(h.count));for(let k=0;k{const e=p.items.value;if(e.length!==1)return null;const t=e[0].kind;return t==="site"||t==="track"?t:null}),B=A(["g"]),K=A([{name:"g",visible:!0,selectable:!0,color:"#cccccc"}]),Z=Je({selectFilter:{sites:!0,tracks:!0,cars:!0,decor:!0},alignSnap:{sites:!0,cars:!0,tracks:!0},showViewport:{sceneLabels:!0,scenePrimitives:!0,cars:!0}});function he(){try{localStorage.setItem("mapEditor.viewFilter",JSON.stringify(Z))}catch{}}function Qe(){try{const e=localStorage.getItem("mapEditor.viewFilter");if(!e)return;const t=JSON.parse(e);t.selectFilter&&Object.assign(Z.selectFilter,t.selectFilter),t.alignSnap&&Object.assign(Z.alignSnap,t.alignSnap),t.showViewport&&Object.assign(Z.showViewport,t.showViewport)}catch{}}function Oe(){const e=Z.selectFilter,t=p.items.value.filter(o=>o.kind==="site"?e.sites:o.kind==="track"?e.tracks:o.kind==="car"?e.cars:o.kind==="special"?e.decor:!0);t.length!==p.items.value.length&&p.set(t)}const Fe=A(!1),ae=A({siteA:null}),Ye=A(!1),We=A(!1),Te=A("");function Ie(e){return e.map(t=>`${t.kind}:${t.id}`).sort().join(",")}const xe=A(!1),Ee=["draw.site","draw.sites.continuous","draw.track.polyline","draw.track.bezier","draw.track.arc","draw.track.nurbs"];async function b(){if(!xe.value){for(xe.value=!0;xe.value;){let e=null;try{e=await j.pick()}catch{break}if(!xe.value)break;const t=$.activeTool.value;if(!Ee.includes(t))break;if(t==="draw.site"){await c(e.x,e.y),F.success(`已添加站点 (${e.x.toFixed(0)}, ${e.y.toFixed(0)})`);break}else if(t==="draw.sites.continuous")await c(e.x,e.y);else if(t==="draw.track.polyline"||t==="draw.track.bezier"||t==="draw.track.arc"||t==="draw.track.nurbs"){const o=ae.value.siteA;if(await qe(e.siteId),o!=null&&ae.value.siteA==null){const s=t==="draw.track.bezier"?"贝塞尔路径":t==="draw.track.arc"?"弧形路径":t==="draw.track.nurbs"?"NURBS 路径":"直线路径";F.success(`已添加${s}`);break}}else break}xe.value=!1,Ee.includes($.activeTool.value)&&$.setTool("transform.move")}}const d=ne(()=>$.snap.value.grid||$.snap.value.object||$.snap.value.endpoint||$.snap.value.midpoint);async function ze(e){switch(e){case"edit.undo":await m.undo();break;case"edit.redo":await m.redo();break;case"edit.delete":await R();break;case"edit.selectAll":F.info("全选:请使用工具栏「按类型选」批量选中");break;case"edit.invert":F.info("反选功能后续实现");break;case"project.save":await ra();break;case"ai.open":await wt();break;case"file.upload.image":Ze("image");break;case"file.upload.model":Ze("model");break;case"view.fitAll":F.info("请在 3D 视口右键菜单使用「适配全部」");break;case"view.fitSelection":F.info("请在 3D 视口右键菜单使用「适配选中」");break;case"snap.toGrid":$.toggleSnap("grid");break;case"snap.toObject":$.toggleSnap("object");break;case"layer.new":await Le();break;case"layer.toggleVisibility":Fe.value=!0;break;case"view.select.sites":ue("selectFilter","sites");break;case"view.select.tracks":ue("selectFilter","tracks");break;case"view.select.cars":ue("selectFilter","cars");break;case"view.select.decor":ue("selectFilter","decor");break;case"view.snap.sites":ue("alignSnap","sites");break;case"view.snap.cars":ue("alignSnap","cars");break;case"view.snap.tracks":ue("alignSnap","tracks");break;case"view.show.sceneLabels":ue("showViewport","sceneLabels");break;case"view.show.scenePrimitives":ue("showViewport","scenePrimitives");break;case"view.show.cars":ue("showViewport","cars");break;default:F.info(`暂未实现的命令:${e}`)}}async function ue(e,t){const o=Z[e],s=t,w=o[s];o[s]=!o[s],he(),e==="selectFilter"&&Oe();const S={};S[e]={[s]:o[s]};try{await j.setViewFilter(S)}catch(E){console.warn("[MapEditor] 写后端 viewFilter 失败:",E),o[s]=w,he(),e==="selectFilter"&&Oe(),F({message:"过滤设置写入后端失败,已回滚本地状态;请检查 SimpleLite 是否连通后重试。",type:"warning",duration:5e3,showClose:!0})}}function Pe(e){return e==="bezier"?"贝塞尔路径":e==="nurbs"?"NURBS 路径":e==="arc"?"弧形路径":"直线路径"}async function be(e,t){const o=await Me(e),s=await Me(t);if(!o||!s)return F.warning(`无法拉到 site #${e} / #${t} 的 x,y,将不带 typeInfo 创建 track(圆心需手动设置)`),null;const S=Math.hypot(o.x-s.x,o.y-s.y)/2;let E;try{const L=await Y.prompt(`请输入半径 (mm),必须 ≥ ${S.toFixed(1)}(等于即半圆)`,"添加弧形路径",{inputValue:String(Math.ceil(S))});E=Number(L.value)}catch{return"cancelled"}return!Number.isFinite(E)||E0?-S/E:0,va=E>0?w/E:0,St=s==="left"?1:-1,nt=(e.x+t.x)/2+St*le*ya,ot=(e.y+t.y)/2+St*le*va,ba=Math.atan2(e.y-ot,e.x-nt)*180/Math.PI,ga=Math.atan2(t.y-ot,t.x-nt)*180/Math.PI;return["1",nt.toFixed(3),ot.toFixed(3),o.toFixed(3),ba.toFixed(3),ga.toFixed(3)].join(",")}function Ue(e){e&&(x.site.layer=e,x.track.layer=e,F.success(`默认图层已切到 "${e}"`))}async function Le(){try{const t=((await Y.prompt("请输入新图层名(同名会被忽略)","新建图层",{inputValue:""})).value??"").trim();if(!t)return;if(B.value.includes(t)){x.site.layer=t,x.track.layer=t,F.info(`图层 "${t}" 已存在,已切到该层`);return}gt(t),x.site.layer=t,x.track.layer=t,F.success(`已创建图层 "${t}",下次创建对象会落到该层`)}catch{}}async function et(e){if($.setTool(e),ae.value.siteA=null,xe.value=!1,e==="select.clear"){p.clear(),await J.clearSelection().catch(()=>{});return}if(Ee.includes(e)&&b(),e.startsWith("align.")){await Kt(e.replace("align.",""));return}if(e.startsWith("batch.")){await Ht(e);return}if(e==="transform.delete"){await R();return}if(e.startsWith("select.byType.")){const t=e.replace("select.byType.","");H(t);return}if(e==="show.controlPoints"&&($.showControlPoints.value=!$.showControlPoints.value),e==="show.controlHandles"&&($.showControlHandles.value=!$.showControlHandles.value),e==="draw.image"&&Ze("image"),e==="draw.model"&&Ze("model"),e==="transform.copyFields"){await Wt();return}}function H(e){e==="site"?p.filterByKind("site"):e==="polyline"||e==="bezier"||e==="arc"?p.items.value=p.items.value.filter(t=>{if(t.kind!=="track")return!1;const o=t.typeName.toLowerCase();return e==="polyline"?o==="uitrack":e==="bezier"?o.includes("bezier"):e==="arc"?o.includes("arc"):!1}):e==="decor"?p.filterByKind("special"):e==="currentLayer"&&O.value?.layer&&(p.items.value=p.items.value.filter(t=>t.layer===O.value.layer))}async function Ve(e){M.x=e.x,M.y=e.y;const t=$.activeTool.value;if(!(xe.value&&Ee.includes(t))&&!Ye.value){if(t==="draw.site"||t==="draw.sites.continuous"){await c(e.x,e.y);return}if(t==="draw.track.polyline"||t==="draw.track.bezier"||t==="draw.track.arc"||t==="draw.track.nurbs"){try{const o=await j.pick();await qe(o.siteId)}catch{}return}}}function Be(e){p.set(Ce(e))}function Ce(e){const t=[],o=Z.selectFilter;for(const s of e){const w=/^UI([A-Za-z]+)-(\d+)$/.exec(s)??/^([A-Za-z]+)-(\d+)$/.exec(s);if(!w)continue;const S=w[1],E=Number(w[2]),L=S.toLowerCase();let P;L==="site"?P="site":L==="car"||L==="vehicle"?P="car":L.includes("track")?P="track":P="special",!(P==="site"&&!o.sites)&&(P==="track"&&!o.tracks||P==="car"&&!o.cars||P==="special"&&!o.decor||t.push({kind:P,id:E,name:s,typeName:s.startsWith("UI")?`UI${S}`:S}))}return t}async function qe(e){if(e<=0){F.warning("请先拾取一个站点");return}if(ae.value.siteA==null){ae.value.siteA=e,F.success(`已选起点站 #${e},请再拾取终点站`);return}const t=ae.value.siteA,o=e;if(ae.value.siteA=null,t===o){F.warning("起止站点不能相同");return}const s=$.activeTool.value==="draw.track.bezier"?"bezier":$.activeTool.value==="draw.track.arc"?"arc":$.activeTool.value==="draw.track.nurbs"?"nurbs":"track";let w,S="";if(s==="bezier"||s==="nurbs"){const L=await tt(t,o,s);if(L==="cancelled")return;L!=null&&(w=L.typeInfo,S=`(控制点 ${L.midCount})`)}else if(s==="arc"){const L=await be(t,o);if(L==="cancelled")return;L!=null&&(w=L.typeInfo,S=`(半径 ${L.radius.toFixed(0)})`)}let E=-1;await m.run({label:`新建${Pe(s)} (${t}→${o})${S}`,apply:async()=>{const L={siteA:t,siteB:o,layer:x.track.layer};w&&(L.typeInfo=w),E=(await j.createTrack(s,L)).id},revert:async()=>{E>0&&await j.deleteObject("track",E)}}),Ge(s)}async function tt(e,t,o){const s=await Me(e),w=await Me(t);if(!s||!w)return F.warning(`无法拉到 site #${e} / #${t} 的 x,y,将不带 typeInfo 创建 track(控制点会用兜底直线)`),null;const S=Pe(o);let E;try{const P=await Y.prompt("请输入中间控制点个数(不含起止站点;默认 2,输入 0 则不带控制点直接连接两站点)",`创建${S}`,{inputValue:"2",inputPattern:/^\d+$/,inputErrorMessage:"请输入非负整数"});E=Math.max(0,Math.floor(Number(P.value)))}catch{return"cancelled"}if(E===0)return{typeInfo:pe([s,w],o==="bezier"?2:3),midCount:0};F.info(`请在画布上依次点选 ${E} 个中间控制点(任意位置;右键取消创建)`),Ye.value=!0;const L=[];try{for(let P=0;P{o=(await j.createSite({x:e,y:t,layer:x.site.layer,name:`${x.site.namePrefix}-${Date.now()%1e5}`})).id},revert:async()=>{o>0&&await j.deleteObject("site",o)}})}async function R(){const e=[...p.items.value];if(e.length===0)return;const t=[];for(const o of e)try{const s=await J.getBundle(o.kind,o.id);t.push({kind:o.kind,typeName:s.typeName,data:{...s.fields??{}}})}catch{}await m.run({label:`删除 ${e.length} 个对象`,apply:async()=>{const o=e.map(s=>({action:"delete",kind:s.kind,id:s.id}));await j.batch(o),p.clear()},revert:async()=>{const o=t.map(s=>({action:"create",kind:Yt(s.kind,s.typeName),data:s.data}));o.length&&(await j.batch(o),F.success(`已恢复 ${o.length} 个对象(注意:id 已重排)`))}})}function Yt(e,t){const o=(t??"").toLowerCase();if(e==="track")return o.includes("bezier")?"bezier":o.includes("arc")?"arc":o.includes("nurbs")?"nurbs":"track";if(e==="special"){if(o.includes("image"))return"image";if(o.includes("text"))return"text";if(o.includes("model"))return"model"}return e}async function Kt(e){const t=[];for(const s of p.items.value)if(s.kind!=="track")try{const w=await J.getBundle(s.kind,s.id),S=Number(w.fields?.x??0),E=Number(w.fields?.y??0);t.push({kind:s.kind,id:s.id,x:S,y:E})}catch{}if(t.length<2){F.warning("对齐需要选中至少 2 个对象");return}const o=Un(t,e);if(o.length===0){F.info("对齐无变化");return}await m.run({label:`对齐 (${e})`,apply:async()=>{await j.batch(o)},revert:async()=>{const s=t.map(w=>({action:"patch",kind:w.kind,id:w.id,data:{x:w.x,y:w.y}}));await j.batch(s)}})}async function Ht(e){if(e==="batch.linearH"||e==="batch.linearV"){const t=e==="batch.linearH"?"横向":"纵向";try{const{value:o}=await Y.prompt(`输入 ${t}站点数量`,"批量生成",{inputValue:"5",inputType:"number"}),s=Math.max(2,Math.floor(Number(o))),w=await Y.prompt("起点 X","批量生成",{inputValue:"0"}),S=await Y.prompt("起点 Y","批量生成",{inputValue:"0"}),E=await Y.prompt("终点 X","批量生成",{inputValue:"5000"}),L=await Y.prompt("终点 Y","批量生成",{inputValue:"0"}),P=e==="batch.linearH"?Ln(Number(w.value),Number(E.value),Number(S.value),{count:s,layer:x.site.layer}):Bn(Number(w.value),Number(S.value),Number(L.value),{count:s,layer:x.site.layer});await at(`${t}间隔生成 ${s}`,P)}catch{}return}if(e==="batch.matrix"){try{const t=Number((await Y.prompt("行数","矩阵生成",{inputValue:"3"})).value),o=Number((await Y.prompt("列数","矩阵生成",{inputValue:"3"})).value),s=Number((await Y.prompt("x1","矩阵生成",{inputValue:"0"})).value),w=Number((await Y.prompt("y1","矩阵生成",{inputValue:"0"})).value),S=Number((await Y.prompt("x2","矩阵生成",{inputValue:"5000"})).value),E=Number((await Y.prompt("y2","矩阵生成",{inputValue:"5000"})).value),L=Dn(s,w,S,E,{rows:t,cols:o,layer:x.site.layer});await at(`矩阵生成 ${t}×${o}`,L)}catch{}return}if(e==="batch.circular"){try{const t=Number((await Y.prompt("圆心 X","环形阵列",{inputValue:"0"})).value),o=Number((await Y.prompt("圆心 Y","环形阵列",{inputValue:"0"})).value),s=Number((await Y.prompt("半径 (mm)","环形阵列",{inputValue:"2000"})).value),w=Number((await Y.prompt("站点数量","环形阵列",{inputValue:"8"})).value),S=Rn(t,o,s,{count:w,layer:x.site.layer});await at(`环形阵列 r=${s} n=${w}`,S)}catch{}return}if(e==="batch.alongPath"){await Xt();return}}async function Xt(){const e=p.items.value.filter(w=>w.kind==="track");if(e.length===0){F.warning("请先选中至少 1 条路径");return}let t=500,o=!1;try{const{value:w}=await Y.prompt("输入采样间距 (mm)","沿路径采样",{inputValue:"500",inputType:"number"});t=Math.max(10,Math.floor(Number(w)));const{value:S}=await Y.prompt("是否包含端点?输入 1 包含,0 不包含","沿路径采样",{inputValue:"0"});o=Number(S)===1}catch{return}const s=[];await m.run({label:`沿 ${e.length} 条路径间距 ${t}mm 采样`,apply:async()=>{for(const w of e){const S=await j.sampleSitesAlongTrack(w.id,{spacingMm:t,includeEndpoints:o,layer:x.site.layer});s.push(...S.ids)}F.success(`已采样生成 ${s.length} 个站点`)},revert:async()=>{if(!s.length)return;const w=s.map(S=>({action:"delete",kind:"site",id:S}));await j.batch(w)}})}async function Wt(){if(p.items.value.length<2){F.warning("字段复制需要 ≥ 2 个选中对象(第 1 个为源,其余为目标)");return}const[e,...t]=p.items.value;try{const{value:o}=await Y.prompt("输入要复制的字段名(逗号分隔),例如:x,y,layerName","字段复制",{inputValue:"x,y"}),s=o.split(",").map(S=>S.trim()).filter(Boolean);if(!s.length)return;const w=new Map;for(const S of t)try{const E=await J.getBundle(S.kind,S.id),L={};for(const P of s)L[P]=String(E.fields?.[P]??"");w.set(`${S.kind}:${S.id}`,L)}catch{}await m.run({label:`字段复制 ${s.join(",")} → ${t.length} 个`,apply:async()=>{const S=await j.copyFieldsTo(e.kind,e.id,s,t.map(E=>({kind:E.kind,id:E.id})));F.success(`已复制 ${S.copied} 项字段`)},revert:async()=>{const S=t.flatMap(E=>{const L=w.get(`${E.kind}:${E.id}`);return L?[{action:"patch",kind:E.kind,id:E.id,data:L}]:[]});S.length&&await j.batch(S)}})}catch{}}async function at(e,t){if(t.length===0)return;let o=[];await m.run({label:e,apply:async()=>{o=(await j.batch(t)).results.filter(w=>w.ok&&w.action==="create"&&w.result?.id).map(w=>({kind:w.result.kind,id:w.result.id}))},revert:async()=>{const s=o.map(w=>({action:"delete",kind:w.kind,id:w.id}));s.length&&await j.batch(s)}}),F.success(`${e} 完成`)}async function Ke(){if(p.items.value.length===0){O.value=null,se.value=[],ie.value=[],te.value=[];return}const e=p.items.value[0];Gt();try{const t=await J.getBundle(e.kind,e.id);O.value=t.summary,se.value=Object.entries(t.fields).map(([o,s])=>({key:o,value:String(s)})),ie.value=t.methods,te.value=(t.status??[]).map(o=>({key:o.key,value:o.value}))}catch(t){F.error(`加载属性失败:${t.message}`)}finally{qt()}}function Gt(){ve.value=!0}function qt(){ve.value=!1}async function Zt(e){if(!O.value||p.items.value.length===0)return;const t=p.items.value[0],o=O.value.id,s=O.value.name??"";s!==e&&(await m.run({label:`重命名 ${s||"(无)"} → ${e}`,apply:async()=>{await J.setField(t.kind,o,"name",e)},revert:async()=>{try{await J.setField(t.kind,o,"name",s)}catch(w){F.warning(`回滚名称失败:${w.message}`)}}}),F.success("名称已更新"))}async function Jt(e){if(!O.value||p.items.value.length===0)return;const t=p.items.value[0],o=O.value.id,s=O.value.layer??"";s!==e&&(await m.run({label:`修改图层 ${s||"(无)"} → ${e}`,apply:async()=>{await J.setField(t.kind,o,"layerName",e)},revert:async()=>{try{await J.setField(t.kind,o,"layerName",s)}catch(w){F.warning(`回滚图层失败:${w.message}`)}}}),await Ke())}async function vt(e,t){if(!O.value)return;const o=p.items.value[0];let s;try{const w=await J.getBundle(o.kind,O.value.id);s=w.fields?.[e]!=null?String(w.fields[e]):void 0}catch{}await m.run({label:`修改 ${e}`,apply:async()=>{await J.setField(o.kind,O.value.id,e,t)},revert:async()=>{if(s!==void 0)try{await J.setField(o.kind,O.value.id,e,s)}catch(w){F.warning(`回滚 ${e} 失败:${w.message}`)}else F.warning(`回滚 ${e}:没拿到原值快照,仅本地撤销`)}}),await Ke()}async function Qt(){try{const e=(await Y.prompt("字段名","新增字段",{inputPattern:/^[A-Za-z0-9_]+$/})).value,t=(await Y.prompt("字段值","新增字段",{inputValue:""})).value;await vt(e,t)}catch{}}async function ea(e){if(O.value)try{await J.execute(p.items.value[0].kind,O.value.id,e),F.success(`已执行 ${e}`),await Ke()}catch(t){F.error(`执行失败:${t.message}`)}}function ta(){localStorage.setItem("mapEditor.defaults",JSON.stringify(x)),F.success("新建默认已保存(下次创建对象时生效)")}function bt(e){const t=e.site??e.Site,o=e.track??e.Track,s=(S,E,L)=>Number(S?.[E]??S?.[L]??0),w=(S,E,L)=>!!(S?.[E]??S?.[L]);return Ua({site:{drawScale:s(t,"drawScale","DrawScale"),dotRadiusNormal:s(t,"dotRadiusNormal","DotRadiusNormal"),dotRadiusSelected:s(t,"dotRadiusSelected","DotRadiusSelected"),selectionRingM:s(t,"selectionRingM","SelectionRingM"),colorNormalArgb:s(t,"colorNormalArgb","ColorNormalArgb"),colorSelectedArgb:s(t,"colorSelectedArgb","ColorSelectedArgb"),labelColorNormalArgb:s(t,"labelColorNormalArgb","LabelColorNormalArgb"),labelColorSelectedArgb:s(t,"labelColorSelectedArgb","LabelColorSelectedArgb")},track:{drawScale:s(o,"drawScale","DrawScale"),widthNormal:s(o,"widthNormal","WidthNormal"),widthSelected:s(o,"widthSelected","WidthSelected"),showDirectionArrows:w(o,"showDirectionArrows","ShowDirectionArrows"),colorNormalArgb:s(o,"colorNormalArgb","ColorNormalArgb"),colorSelectedArgb:s(o,"colorSelectedArgb","ColorSelectedArgb")}})}async function lt(){G.value=!0;try{const e=await J.getViewportStyle();V.value=bt(e)}catch(e){console.warn("[MapEditor] 加载视口样式失败:",e)}finally{G.value=!1}}function aa(e){e.site&&(ce.site=e.site,V.value&&(V.value={...V.value,site:{...e.site}})),e.track&&(ce.track=e.track,V.value&&(V.value={...V.value,track:{...e.track}})),ke&&clearTimeout(ke),ke=setTimeout(()=>{const t={...ce};ce={},la(t)},350)}async function la(e){const t=++re;oe.value=!0;try{const o={};e.site&&(o.site=e.site),e.track&&(o.track=e.track);const s=await J.patchViewportStyle(o);if(t!==re)return;V.value=bt(s)}catch(o){F.error(`视口样式更新失败:${o.message}`),await lt()}finally{t===re&&(oe.value=!1)}}function na(e){F.info("图层可见 / 可选切换暂时仅本地生效,后续接入反射 API")}function gt(e){K.value.find(t=>t.name===e)||(K.value=[...K.value,{name:e,visible:!0,selectable:!0,color:"#cccccc"}],B.value=[...B.value,e])}async function wt(){try{const e=await st.get();Q.value=!!e.configured}catch{Q.value=!1}I.value=!0}function oa(){try{v.value=localStorage.getItem(At)==="1";const e=Number(localStorage.getItem(Nt));Number.isFinite(e)&&e>=300&&e<=720&&(q.value=e)}catch{}}fe(v,e=>{try{localStorage.setItem(At,e?"1":"0")}catch{}}),fe(q,e=>{try{localStorage.setItem(Nt,String(Math.round(e)))}catch{}});async function sa(){if(!v.value)try{const e=await st.get();Q.value=!!e.configured}catch{Q.value=!1}v.value=!v.value}async function kt(e){De();const t=(e.created??[]).filter(s=>typeof s=="object"&&s!=null&&typeof s.id=="number"&&!s.error);if(t.length===0)return;const o={label:`AI 生图:落地 ${t.length} 个对象`,apply:async()=>{},revert:async()=>{const s=t.map(w=>({action:"delete",kind:w.kind,id:w.id}));await j.batch(s),F.success(`已撤销 AI 生图(删除 ${s.length} 个对象)`)}};await m.run(o)}function ia(){const e=new Date,t=o=>String(o).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}_${t(e.getHours())}-${t(e.getMinutes())}-${t(e.getSeconds())}`}async function ra(){const e=C.value||ia();W.value=!0;try{let t=await it.save(e,!1);if(!t.ok&&t.conflict){try{await Y.confirm(`地图「${e}」已存在,是否替换原地图文件?`,"替换确认",{type:"warning",confirmButtonText:"替换",cancelButtonText:"取消"})}catch{return}t=await it.save(e,!0)}if(!t.ok){F.error(`保存失败:${t.message}`);return}C.value=t.data.name,F.success(`已保存地图「${t.data.name}」`),await f.push({path:"/admin/maps"})}catch(t){F.error(`保存失败:${t.message}`)}finally{W.value=!1}}function Ze(e){z.value=e,u.value=e==="image"?"image/*":".obj,.glb,.gltf,.fbx,.cyclemodel",k.value?.click()}async function ua(e){const t=e.target,o=t.files?.[0];if(o)try{const s=await o.arrayBuffer(),w=da(s),S=await j.uploadAsset(o.name,w);F.success(`已上传:${S.fileName}`),z.value==="image"?await j.createImage({x:0,y:0,imagePath:S.savedPath,size:1e3}):await j.createModel({x:0,y:0,modelPath:S.savedPath,scale:1}),De()}catch(s){F.error(`上传失败:${s.message}`)}finally{t.value=""}}function da(e){let t="";const o=new Uint8Array(e);for(let s=0;s{M.x=e.x,M.y=e.y},onPick:e=>{Ve(e)},onSelect:e=>Be(e.names)});const ca=La({onWorkspaceShortcut:e=>{He(e.action)},onAlarm:()=>{},onObjectCreated:()=>De(),onObjectDeleted:()=>De(),onObjectPatched:()=>De(),onObjectBatchChanged:()=>De(),onViewportStyleUpdated:()=>{lt()},onSelectionDetail:e=>{if(!Array.isArray(e.names))return;const t=Ce(e.names),o=Ie(t);o!==Te.value&&(Te.value=o,p.set(t))}});function De(){Ke()}fe(()=>ca.connected.value,e=>We.value=e,{immediate:!0}),fe(()=>Ie(p.items.value),e=>{Ke(),Te.value=e,p.items.value.length===1&&J.setSelection(p.items.value[0].kind,p.items.value[0].id).catch(()=>{})});function pa(e){if(!(e instanceof HTMLElement))return!1;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"||e.isContentEditable?!0:!!e.closest('.el-input, .el-textarea, .el-select, [contenteditable="true"]')}async function He(e){if(e==="undo"){if(!m.canUndo.value)return;await m.undo()}else if(e==="redo"){if(!m.canRedo.value)return;await m.redo()}else await R()}function ht(e){if(pa(e.target))return;const t=e.ctrlKey||e.metaKey;t&&e.key.toLowerCase()==="z"&&!e.shiftKey?(e.preventDefault(),He("undo")):t&&(e.key.toLowerCase()==="y"||e.key.toLowerCase()==="z"&&e.shiftKey)?(e.preventDefault(),He("redo")):e.key==="Delete"&&(e.preventDefault(),He("delete"))}function xt(e){const t=e.detail?.action;(t==="undo"||t==="redo"||t==="delete")&&He(t)}async function ma(){try{const e=await j.getViewFilter();Object.assign(Z.selectFilter,e.selectFilter),Object.assign(Z.alignSnap,e.alignSnap),Object.assign(Z.showViewport,e.showViewport),he()}catch(e){console.warn("[MapEditor] 拉后端 viewFilter 失败,沿用本地缓存:",e)}}jt(async()=>{document.addEventListener("keydown",ht,!0),window.addEventListener("workspace-shortcut",xt);try{const t=await st.get();Q.value=!!t.configured}catch{}const e=localStorage.getItem("mapEditor.defaults");if(e)try{Object.assign(x,JSON.parse(e))}catch{}oa(),Qe(),await ma(),await lt(),await fa()});async function fa(){const e=typeof g.query.map=="string"?g.query.map:"",t=g.query.new==="1";if(e)try{const o=await it.open(e);C.value=o.name,p.clear(),O.value=null,F.success(`已载入地图「${o.name}」:${o.sites} 站点 / ${o.tracks} 路径`)}catch(o){F.error(`载入地图失败:${o.message}`)}else t&&(C.value="")}return za(()=>{document.removeEventListener("keydown",ht,!0),window.removeEventListener("workspace-shortcut",xt)}),(e,t)=>{const o=ft,s=zt,w=Et,S=Xe,E=mt,L=Mt;return _(),U("div",jn,[a(Ra,{"can-undo":D(m).canUndo.value,"can-redo":D(m).canRedo.value,saving:W.value,"view-filter":Z,onCmd:ze},null,8,["can-undo","can-redo","saving","view-filter"]),r("div",On,[a(Ja,{"active-tool":D($).activeTool.value,onSelectTool:et,onOpenAi:wt},null,8,["active-tool"]),r("div",Yn,[a(Ma,{ref_key:"workspaceRef",ref:i,host:D(h),scope:D(N).scope??"Platform",token:D(N).token??"","read-only":!1,"embed-ui":!1,"canvas-only":!0,"hide-toolbar":!0,onPick:Ve,onSelect:Be},null,8,["host","scope","token"])]),a(on,{"selection-count":D(p).count.value,primary:O.value,fields:se.value,status:te.value,methods:ie.value,loading:ve.value,layers:B.value,defaults:x,"layer-rows":K.value,"selection-kind":_e.value,"viewport-style":V.value,"viewport-style-loading":G.value,"viewport-syncing":oe.value,onRename:Zt,onChangeLayer:Jt,onSetField:vt,onAddField:Qt,onExecAction:ea,onSaveDefaults:ta,onLayerToggle:na,onAddLayer:gt,onDelete:R,onPatchViewport:aa},null,8,["selection-count","primary","fields","status","methods","loading","layers","defaults","layer-rows","selection-kind","viewport-style","viewport-style-loading","viewport-syncing"]),r("button",{class:Se(["ai-assistant-fab",{"is-open":v.value}]),style:Rt(v.value?{right:q.value+"px"}:void 0),type:"button",title:v.value?"收起 AI 助手":"打开 AI 助手",onClick:sa},[...t[5]||(t[5]=[r("span",{class:"fab-glyph"},"✦",-1),r("span",{class:"fab-text"},[y("AI"),r("br"),y("助手")],-1)])],14,Kn),a(In,{open:v.value,"onUpdate:open":t[0]||(t[0]=P=>v.value=P),width:q.value,"onUpdate:width":t[1]||(t[1]=P=>q.value=P),configured:Q.value,"default-bounds":ye.value,"default-layer":x.site.layer,onGenerated:kt},null,8,["open","width","configured","default-bounds","default-layer"])]),a(vn,{"selected-count":D(p).count.value,"mouse-x":M.x,"mouse-y":M.y,"tool-label":D($).toolLabel.value,"snap-on":d.value,"undo-size":D(m).undoStack.value.length,"redo-size":D(m).redoStack.value.length,connected:We.value},null,8,["selected-count","mouse-x","mouse-y","tool-label","snap-on","undo-size","redo-size","connected"]),a(hn,{modelValue:I.value,"onUpdate:modelValue":t[2]||(t[2]=P=>I.value=P),configured:Q.value,"default-bounds":ye.value,"default-layer":x.site.layer,onGenerated:kt},null,8,["modelValue","configured","default-bounds","default-layer"]),a(L,{modelValue:Fe.value,"onUpdate:modelValue":t[4]||(t[4]=P=>Fe.value=P),title:"切换显示图层",width:"520px"},{footer:l(()=>[a(S,{onClick:t[3]||(t[3]=P=>Fe.value=!1)},{default:l(()=>[...t[6]||(t[6]=[y("关闭",-1)])]),_:1}),a(S,{type:"primary",onClick:Le},{default:l(()=>[...t[7]||(t[7]=[y("新建图层…",-1)])]),_:1})]),default:l(()=>[a(E,{data:K.value,size:"small",style:{width:"100%"}},{default:l(()=>[a(o,{prop:"name",label:"图层","min-width":"120"}),a(o,{label:"可见",width:"80"},{default:l(({row:P})=>[a(s,{modelValue:P.visible,"onUpdate:modelValue":le=>P.visible=le},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(o,{label:"可选",width:"80"},{default:l(({row:P})=>[a(s,{modelValue:P.selectable,"onUpdate:modelValue":le=>P.selectable=le},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(o,{label:"颜色",width:"100"},{default:l(({row:P})=>[a(w,{modelValue:P.color,"onUpdate:modelValue":le=>P.color=le,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(o,{label:"默认层",width:"110"},{default:l(({row:P})=>[a(S,{size:"small",type:x.site.layer===P.name?"primary":"default",onClick:le=>Ue(P.name)},{default:l(()=>[y(T(x.site.layer===P.name?"当前默认":"设为默认"),1)]),_:2},1032,["type","onClick"])]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"]),r("input",{ref_key:"fileInputRef",ref:k,type:"file",style:{display:"none"},accept:u.value,onChange:ua},null,40,Hn)])}}}),_o=Ne(Xn,[["__scopeId","data-v-704ddb94"]]);export{_o as default}; diff --git a/MiGu.Server/wwwroot/assets/MapEditorView-DTrk0FFM.css b/MiGu.Server/wwwroot/assets/MapEditorView-CBiaEgWL.css similarity index 98% rename from MiGu.Server/wwwroot/assets/MapEditorView-DTrk0FFM.css rename to MiGu.Server/wwwroot/assets/MapEditorView-CBiaEgWL.css index 46d5f36..3f38724 100644 --- a/MiGu.Server/wwwroot/assets/MapEditorView-DTrk0FFM.css +++ b/MiGu.Server/wwwroot/assets/MapEditorView-CBiaEgWL.css @@ -1 +1 @@ -.edit-top-bar[data-v-1082d582]{display:flex;align-items:center;gap:4px;padding:8px 14px;background:linear-gradient(180deg,#321658f2,#220e40f2);border-bottom:1px solid rgba(255,255,255,.12);backdrop-filter:blur(10px);box-shadow:0 2px 8px #00000040}.spacer[data-v-1082d582]{flex:1}.el-divider--vertical[data-v-1082d582]{margin:0 6px;background:#ffffff26}.topbar-btn[data-v-1082d582]{color:#fdf6ff!important;font-weight:600;font-size:13.5px;padding:6px 12px;height:auto;border-radius:6px;transition:background .15s ease,color .15s ease}.topbar-btn[data-v-1082d582]:hover{color:#fff!important;background:#aa6efa47!important}.topbar-btn[data-v-1082d582]:focus{background:#aa6efa4d!important}.topbar-icon-btn[data-v-1082d582]{color:#fdf6ffeb!important;background:#ffffff0d!important;border:1px solid rgba(255,255,255,.15)!important;font-size:15px}.topbar-icon-btn[data-v-1082d582]:hover:not(.is-disabled){background:#aa6efa4d!important;border-color:#aa6efa8c!important}.topbar-icon-btn.is-disabled[data-v-1082d582]{opacity:.4}.topbar-save-btn[data-v-1082d582]{font-weight:600;font-size:13.5px;padding:6px 18px;height:auto;border-radius:6px;margin-right:4px}.topbar-filter-menu[data-v-1082d582] .topbar-filter-header{font-size:11px;color:#e8d7f58c;cursor:default;pointer-events:none;padding-top:6px;padding-bottom:2px;text-transform:none;letter-spacing:.4px}.edit-tool-rail[data-v-6b284dea]{height:100%;width:170px;background:linear-gradient(180deg,#1c0c38d9,#120624f2);border-right:1px solid rgba(255,255,255,.1);padding:4px 0 12px;backdrop-filter:blur(10px);display:flex;flex-direction:column;box-shadow:inset -1px 0 #ffffff0a}.rail-scroll[data-v-6b284dea]{height:100%}.rail-group[data-v-6b284dea]{display:flex;flex-direction:column;padding:4px 8px 2px}.rail-group-title[data-v-6b284dea]{display:flex;align-items:center;gap:6px;font-size:10px;letter-spacing:2px;color:#bea0e6b3;text-transform:uppercase;margin:4px 0 6px;font-weight:600}.rail-group-bar[data-v-6b284dea]{flex:1;height:1px;background:#bea0e633}.rail-group-list[data-v-6b284dea]{display:flex;flex-direction:column;gap:2px}.rail-divider[data-v-6b284dea]{width:100%;height:1px;background:linear-gradient(90deg,#fff0,#ffffff14,#fff0);margin:6px 0 2px}.rail-btn[data-v-6b284dea]{appearance:none;border:0;cursor:pointer;width:100%;min-height:32px;padding:0 8px;border-radius:6px;background:#ffffff0a;color:#e8d7f5eb;display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:500;text-align:left;transition:background .14s ease,color .14s ease,box-shadow .14s ease,transform .12s ease}.rail-btn[data-v-6b284dea]:hover{background:#965ae633;color:#fff}.rail-btn[data-v-6b284dea]:active{transform:scale(.985)}.rail-btn.rail-btn--active[data-v-6b284dea]{background:linear-gradient(120deg,#aa6efaeb,#7846dceb);color:#fff;box-shadow:0 3px 10px #8c50e673,inset 0 0 0 1px #ffffff2e}.rail-btn-glyph[data-v-6b284dea]{width:20px;display:inline-flex;justify-content:center;align-items:center;font-size:15px;line-height:1;flex:none}.rail-btn-label[data-v-6b284dea]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rail-group-ai[data-v-6b284dea]{margin-top:14px;padding-bottom:10px;position:relative}.rail-group-ai[data-v-6b284dea]:before{content:"";position:absolute;left:8px;right:8px;top:0;height:1px;background:linear-gradient(90deg,#fff0,#dc8ce659,#fff0)}.rail-btn--ai[data-v-6b284dea]{background:linear-gradient(135deg,#7846dc8c,#ff5ac88c);color:#fff;font-weight:600;box-shadow:0 2px 10px #dc5adc4d,inset 0 0 0 1px #fff3}.rail-btn--ai[data-v-6b284dea]:hover{background:linear-gradient(135deg,#965af0d9,#ff6edcd9);color:#fff;box-shadow:0 4px 14px #e66ee68c,inset 0 0 0 1px #ffffff4d}.rail-btn--ai .rail-btn-glyph[data-v-6b284dea]{font-size:16px;text-shadow:0 0 8px rgba(255,200,250,.6)}.edit-property-panel[data-v-781515fe]{height:100%;width:360px;background:linear-gradient(180deg,#1c0c38d9,#120624f2);border-left:1px solid rgba(255,255,255,.1);padding:0;backdrop-filter:blur(10px);overflow:hidden;display:flex;flex-direction:column;color:#e8d7f5eb}.prop-tabs[data-v-781515fe]{height:100%;display:flex;flex-direction:column}.prop-tabs[data-v-781515fe] .el-tabs__header{margin:0;padding:0 8px;border-bottom:1px solid rgba(255,255,255,.08)}.prop-tabs[data-v-781515fe] .el-tabs__nav-wrap:after{background:transparent}.prop-tabs[data-v-781515fe] .el-tabs__item{color:#dcc8f0b3;font-weight:500;font-size:13px;height:36px;line-height:36px}.prop-tabs[data-v-781515fe] .el-tabs__item.is-active{color:#fff}.prop-tabs[data-v-781515fe] .el-tabs__active-bar{background:linear-gradient(90deg,#aa6efa,#ff6edc);height:2px}.prop-tabs[data-v-781515fe] .el-tabs__content{flex:1;overflow:auto;padding:10px 12px 14px}.empty-hint[data-v-781515fe]{display:flex;align-items:center;gap:6px;padding:56px 16px;text-align:center;color:#dcc8f08c;flex-direction:column}.empty-icon[data-v-781515fe]{font-size:28px;color:#b482dc73}.empty-title[data-v-781515fe]{font-size:13px;color:#e8d7f5bf;font-weight:500}.empty-desc[data-v-781515fe]{font-size:11.5px;color:#dcc8f080}.loading-hint[data-v-781515fe]{display:flex;align-items:center;gap:8px;padding:32px 16px;text-align:center;color:#e8d7f5a6;font-size:12.5px;justify-content:center}.object-pane[data-v-781515fe]{display:flex;flex-direction:column;gap:10px}.prop-card[data-v-781515fe]{background:#ffffff0a;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:10px 12px;box-shadow:0 1px 4px #0003}.prop-card--header[data-v-781515fe]{background:linear-gradient(140deg,#aa6efa2e,#461e6e1a);border-color:#aa6efa47}.prop-card--geom[data-v-781515fe]{background:linear-gradient(140deg,#508cdc1a,#2846820f);border-color:#78aae638}.prop-card--style[data-v-781515fe]{background:linear-gradient(140deg,#dc6ec81a,#9646820f);border-color:#e682c838}.prop-card--custom[data-v-781515fe]{background:#ffffff08;border-color:#aa6efa2e}.prop-card--status[data-v-781515fe]{background:#508cdc0f;border-color:#78aae62e}.prop-card--actions[data-v-781515fe]{background:#8c50c80f;border-color:#aa6efa2e}.prop-card-header[data-v-781515fe]{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.prop-card-title[data-v-781515fe]{font-size:11.5px;font-weight:600;letter-spacing:1px;color:#dcb4fad9;text-transform:uppercase}.prop-card-meta[data-v-781515fe]{font-size:10.5px;color:#c8b4dc80}.prop-card-flag[data-v-781515fe]{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;color:#b4c8f099;padding:2px 7px;border-radius:10px;background:#78a0dc1a;transition:background .25s ease,color .25s ease,box-shadow .25s ease;margin-left:auto}.prop-card-flag.is-synced[data-v-781515fe]{background:linear-gradient(120deg,#50c88252,#78dcc852);color:#dcffe6f2;box-shadow:0 0 8px #50c88273}.prop-card-flag-dot[data-v-781515fe]{width:6px;height:6px;border-radius:50%;background:#b4c8f099;transition:background .25s ease,box-shadow .25s ease}.prop-card-flag.is-synced .prop-card-flag-dot[data-v-781515fe]{background:#6ce7a8;box-shadow:0 0 6px #6ce7a8d9}.prop-card-row[data-v-781515fe]{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.prop-card-row[data-v-781515fe]:last-child{margin-bottom:0}.prop-id-block[data-v-781515fe]{display:flex;align-items:center;gap:6px}.prop-id-tag[data-v-781515fe]{background:#aa6efa4d;color:#fff;padding:2px 8px;font-size:11.5px;font-weight:600;border-radius:4px;letter-spacing:.5px}.prop-type-tag[data-v-781515fe]{color:#e8d7f5bf;font-size:11.5px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.prop-status-tag[data-v-781515fe]{font-weight:500}.prop-header-actions[data-v-781515fe]{display:flex;align-items:center;gap:6px}.prop-delete-btn[data-v-781515fe]{appearance:none;cursor:pointer;display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:5px;font-size:11.5px;font-weight:500;letter-spacing:.4px;color:#ffc8d2f2;background:linear-gradient(135deg,#ff5a782e,#dc3c6e38);border:1px solid rgba(255,110,140,.45);transition:background .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .12s ease}.prop-delete-btn[data-v-781515fe]:hover:not(:disabled){background:linear-gradient(135deg,#ff5a788c,#dc3c6ea6);border-color:#ff8caad9;color:#fff;box-shadow:0 3px 10px #dc466e73}.prop-delete-btn[data-v-781515fe]:active:not(:disabled){transform:scale(.96)}.prop-delete-btn[data-v-781515fe]:disabled{opacity:.55;cursor:progress}.prop-delete-icon[data-v-781515fe]{font-size:12px;line-height:1}.prop-name-row[data-v-781515fe],.prop-layer-row[data-v-781515fe]{gap:8px}.prop-name-label[data-v-781515fe]{width:36px;font-size:11.5px;color:#c8b4dcb3;flex:none}.prop-layer-select[data-v-781515fe]{flex:1}.prop-grid[data-v-781515fe]{display:grid;grid-template-columns:1fr 1fr;column-gap:8px;row-gap:8px}.prop-grid-item[data-v-781515fe]{display:flex;flex-direction:column;gap:3px;min-width:0}.prop-grid-item--wide[data-v-781515fe]{grid-column:1 / -1}.prop-field-label[data-v-781515fe]{font-size:11px;color:#c8b4e6c7;letter-spacing:.3px;display:flex;justify-content:space-between;align-items:baseline;gap:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prop-field-unit[data-v-781515fe]{font-size:10px;color:#aa96c88c;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;flex:none}.prop-field-num[data-v-781515fe] .el-input-number{width:100%}.prop-field-num[data-v-781515fe] .el-input__wrapper{background:#ffffff0f;box-shadow:inset 0 0 0 1px #aa6efa2e}.prop-field-row[data-v-781515fe]{display:flex;align-items:center;gap:4px}.prop-field-icon-btn[data-v-781515fe]{appearance:none;border:0;cursor:pointer;width:22px;height:22px;border-radius:4px;background:#ff64821f;color:#ffb4c8d9;font-size:14px;line-height:1;display:inline-flex;align-items:center;justify-content:center;flex:none;transition:background .14s,color .14s}.prop-field-icon-btn[data-v-781515fe]:hover{background:#ff648252;color:#fff}.prop-empty-row[data-v-781515fe]{font-size:11.5px;color:#c8b4dc66;text-align:center;padding:8px 0}.prop-add-field-btn[data-v-781515fe]{appearance:none;border:0;cursor:pointer;width:100%;margin-top:8px;padding:6px 10px;border-radius:6px;background:#aa6efa24;border:1px dashed rgba(170,110,250,.4);color:#dcb4faeb;font-size:12px;font-weight:500;transition:background .14s ease,border-color .14s ease,color .14s ease}.prop-add-field-btn[data-v-781515fe]:hover{background:#aa6efa42;border-color:#aa6efaa6;color:#fff}.prop-status-list[data-v-781515fe]{display:flex;flex-direction:column;gap:4px}.prop-status-item[data-v-781515fe]{display:flex;justify-content:space-between;align-items:center;padding:5px 8px;border-radius:4px;background:#ffffff08;font-size:11.5px}.prop-status-key[data-v-781515fe]{color:#aac8f0d9;font-weight:500}.prop-status-value[data-v-781515fe]{color:#e8f5fff2;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prop-actions[data-v-781515fe]{display:grid;grid-template-columns:1fr 1fr;gap:6px}.prop-action-btn[data-v-781515fe]{appearance:none;border:0;cursor:pointer;padding:7px 10px;border-radius:7px;background:linear-gradient(135deg,#aa6efa33,#7846dc33);border:1px solid rgba(170,110,250,.35);color:#e8d7f5f2;font-size:12px;font-weight:500;display:flex;align-items:center;justify-content:flex-start;gap:6px;transition:background .14s ease,border-color .14s ease,transform .12s ease,box-shadow .14s ease;text-align:left}.prop-action-btn[data-v-781515fe]:hover:not(:disabled){background:linear-gradient(135deg,#aa6efa9e,#ff6edc8c);border-color:#ff82dcb3;color:#fff;box-shadow:0 4px 12px #b45adc66}.prop-action-btn[data-v-781515fe]:active:not(:disabled){transform:scale(.985)}.prop-action-btn[data-v-781515fe]:disabled{opacity:.6;cursor:progress}.prop-action-icon[data-v-781515fe]{font-size:9px;color:#ffc8fad9;flex:none}.prop-action-spinner[data-v-781515fe]{display:inline-block;animation:prop-spin-781515fe .8s linear infinite;font-size:13px}.prop-action-label[data-v-781515fe]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@keyframes prop-spin-781515fe{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.defaults-pane[data-v-781515fe]{display:flex;flex-direction:column;gap:10px}.defaults-alert[data-v-781515fe]{margin-bottom:4px}.defaults-empty[data-v-781515fe]{padding:40px 12px}.defaults-form .el-button[data-v-781515fe]{margin-top:8px}.defaults-form[data-v-781515fe] .el-form-item{margin-bottom:10px}.layer-table[data-v-781515fe]{margin:6px 0;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px #7c3aed24}.layer-table[data-v-781515fe] .el-table__inner-wrapper{background:#fff}.layer-table[data-v-781515fe] th.el-table__cell{background:#f5f3ff!important;color:#2d1b69!important;font-weight:600}.layer-table[data-v-781515fe] td.el-table__cell{background:#fff!important;color:#1a0f3d!important;font-weight:500}.layer-table[data-v-781515fe] .cell{color:#1a0f3d!important}.layer-table[data-v-781515fe] tr:hover>td.el-table__cell{background:#ede9fe!important}.new-layer[data-v-781515fe]{margin-top:8px}.new-layer[data-v-781515fe] .el-input__inner{color:#1a0f3d;font-weight:500}.new-layer[data-v-781515fe] .el-input__inner::placeholder{color:#7a6b9a}.new-layer[data-v-781515fe] .el-input-group__append .el-button{color:#5b21b6;font-weight:600}.edit-status-bar[data-v-6254b10f]{display:flex;align-items:center;gap:16px;padding:4px 14px;background:#140828d9;border-top:1px solid rgba(255,255,255,.08);color:#e8d7f5d9;font-size:12px;font-family:ui-monospace,Menlo,Consolas,monospace;height:28px}.spacer[data-v-6254b10f]{flex:1}.seg b[data-v-6254b10f]{color:var(--mg-accent, #c4a4ff)}.seg .on[data-v-6254b10f]{color:#67c23a}.seg .off[data-v-6254b10f]{color:#a0a0a0}.seg.ok[data-v-6254b10f]{color:#67c23a}.seg.warn[data-v-6254b10f]{color:#f56c6c}.el-upload{--el-upload-dragger-padding-horizontal:10px;--el-upload-dragger-padding-vertical:40px;--el-upload-list-picture-card-size:var(--el-upload-picture-card-size);--el-upload-picture-card-size:148px;cursor:pointer;outline:none;justify-content:center;align-items:center;display:inline-flex}.el-upload.is-disabled{cursor:not-allowed}.el-upload.is-disabled:focus{border-color:var(--el-border-color-darker);color:inherit}.el-upload.is-disabled:focus .el-upload-dragger{border-color:var(--el-border-color-darker)}.el-upload.is-disabled .el-upload-dragger{cursor:not-allowed;background-color:var(--el-disabled-bg-color)}.el-upload.is-disabled .el-upload-dragger .el-upload__text{color:var(--el-text-color-placeholder)}.el-upload.is-disabled .el-upload-dragger .el-upload__text em{color:var(--el-disabled-text-color)}.el-upload.is-disabled .el-upload-dragger:hover{border-color:var(--el-border-color-darker)}.el-upload__input{display:none}.el-upload__tip{color:var(--el-text-color-regular);margin-top:7px;font-size:12px}.el-upload iframe{z-index:-1;opacity:0;filter:alpha(opacity=0);position:absolute;top:0;left:0}.el-upload--picture-card{background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.el-upload--picture-card>i{color:var(--el-text-color-secondary);font-size:28px}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-vertical) var(--el-upload-dragger-padding-horizontal);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);box-sizing:border-box;text-align:center;cursor:pointer;border-radius:6px;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{color:var(--el-text-color-placeholder);margin-bottom:16px;font-size:67px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);text-align:center;font-size:14px}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{padding:calc(var(--el-upload-dragger-padding-vertical) - 1px) calc(var(--el-upload-dragger-padding-horizontal) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{--el-upload-dragger-padding-horizontal:10px;--el-upload-dragger-padding-vertical:40px;--el-upload-list-picture-card-size:var(--el-upload-picture-card-size);--el-upload-picture-card-size:148px;margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{color:var(--el-text-color-regular);box-sizing:border-box;border-radius:4px;width:100%;margin-bottom:5px;font-size:14px;transition:all .5s cubic-bezier(.55,0,.1,1);position:relative}.el-upload-list__item .el-progress{width:100%;position:absolute;top:20px}.el-upload-list__item .el-progress__text{position:absolute;top:-13px;right:0}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);display:none;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{cursor:pointer;opacity:1;color:var(--el-color-primary);font-size:12px;font-style:normal;display:none;position:absolute;top:1px;right:5px}.el-upload-list__item:hover,.el-upload-list__item:focus-within{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close,.el-upload-list__item:focus-within .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-icon--close-tip,.el-upload-list__item:focus-within .el-icon--close-tip{right:24px}.el-upload-list__item:hover .el-progress__text,.el-upload-list__item:focus-within .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{flex-direction:column;justify-content:center;width:calc(100% - 30px);margin-left:4px;display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:hover,.el-upload-list__item.is-success .el-upload-list__item-name:focus{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:not(.focusing):focus,.el-upload-list__item.is-success:active{outline-width:0}.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip,.el-upload-list__item.is-success:active .el-icon--close-tip{display:none}.el-upload-list__item.is-success:hover .el-upload-list__item-status-label,.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:focus-within .el-upload-list__item-status-label{opacity:0;display:none}.el-upload-list__item-name{color:var(--el-text-color-regular);text-align:center;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base);align-items:center;padding:0 4px;display:inline-flex}.el-upload-list__item-name .el-icon{color:var(--el-text-color-secondary);margin-right:6px}.el-upload-list__item-file-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.el-upload-list__item-status-label{line-height:inherit;height:100%;transition:opacity var(--el-transition-duration);justify-content:center;align-items:center;display:none;position:absolute;top:0;right:5px}.el-upload-list__item-delete{color:var(--el-text-color-regular);font-size:12px;display:none;position:absolute;top:0;right:10px}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{flex-wrap:wrap;margin:0;display:inline-flex}.el-upload-list--picture-card .el-upload-list__item{background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);border-radius:6px;margin:0 8px 8px 0;padding:0;display:inline-flex;overflow:hidden}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{object-fit:contain;width:100%;height:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{background:var(--el-color-success);text-align:center;width:40px;height:24px;top:-6px;right:-15px;transform:rotate(45deg)}.el-upload-list--picture-card .el-upload-list__item-status-label i{margin-top:11px;font-size:12px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{cursor:default;color:#fff;opacity:0;background-color:var(--el-overlay-color-lighter);width:100%;height:100%;transition:opacity var(--el-transition-duration);justify-content:center;align-items:center;font-size:20px;display:inline-flex;position:absolute;top:0;left:0}.el-upload-list--picture-card .el-upload-list__item-actions span{cursor:pointer;display:none}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:16px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{font-size:inherit;color:inherit;position:static}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{width:126px;top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%)}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);box-sizing:border-box;border-radius:6px;align-items:center;margin-top:10px;padding:10px;display:flex;overflow:hidden}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:inline-flex}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{object-fit:contain;z-index:1;background-color:var(--el-color-white);justify-content:center;align-items:center;width:70px;height:70px;display:inline-flex;position:relative}.el-upload-list--picture .el-upload-list__item-status-label{background:var(--el-color-success);text-align:center;width:46px;height:26px;position:absolute;top:-7px;right:-17px;transform:rotate(45deg)}.el-upload-list--picture .el-upload-list__item-status-label i{margin-top:12px;font-size:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{z-index:10;cursor:default;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden}.el-upload-cover:after{content:"";vertical-align:middle;height:100%;display:inline-block}.el-upload-cover img{width:100%;height:100%;display:block}.el-upload-cover__label{background:var(--el-color-success);text-align:center;width:40px;height:24px;top:-6px;right:-15px;transform:rotate(45deg)}.el-upload-cover__label i{color:#fff;margin-top:11px;font-size:12px;transform:rotate(-45deg)}.el-upload-cover__progress{vertical-align:middle;width:243px;display:inline-block;position:static}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{width:100%;height:100%;position:absolute;top:0;left:0}.el-upload-cover__interact{background-color:var(--el-overlay-color-light);text-align:center;width:100%;height:100%;position:absolute;bottom:0;left:0}.el-upload-cover__interact .btn{color:#fff;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px;font-size:14px;display:inline-block}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;font-size:24px;line-height:inherit;margin:0 auto 5px;display:block}.el-upload-cover__title{text-overflow:ellipsis;white-space:nowrap;text-align:left;width:100%;height:36px;color:var(--el-text-color-primary);background-color:#fff;margin:0;padding:0 10px;font-size:14px;font-weight:400;line-height:36px;position:absolute;bottom:0;left:0;overflow:hidden}.el-upload-cover+.el-upload__inner{opacity:0;z-index:1;position:relative}.cfg-alert[data-v-47584778]{margin-bottom:12px}.ml[data-v-47584778]{margin-left:6px}.upload-hint[data-v-47584778]{display:flex;align-items:center;gap:8px;padding:12px;color:var(--el-text-color-regular, rgba(232,215,245,.7))}.result-panel[data-v-47584778]{margin-top:8px}.ai-text[data-v-47584778]{color:var(--el-text-color-primary, rgba(232,215,245,.85));padding:6px 0;white-space:pre-wrap}.ai-stat[data-v-47584778]{padding:6px 0;color:var(--el-text-color-primary, rgba(232,215,245,.85))}.ai-stat b[data-v-47584778]{color:var(--mg-accent, #c4a4ff)}.ai-generate-dialog.el-dialog,.ai-generate-dialog .el-dialog{background-color:rgb(var(--mg-bg-card-rgb))!important;box-shadow:0 24px 60px #08021099!important}.ai-assistant-panel[data-v-9fed2b0d]{position:absolute;top:0;right:0;bottom:0;z-index:30;display:flex;flex-direction:column;background:linear-gradient(180deg,#1c0c38fa,#100622fc);border-left:1px solid rgba(190,140,240,.28);box-shadow:-10px 0 30px #0802108c;color:#ece0faf2;transform:translate(100%);opacity:0;visibility:hidden;transition:transform .26s cubic-bezier(.25,.8,.25,1),opacity .26s ease,visibility .26s}.ai-assistant-panel.is-open[data-v-9fed2b0d]{transform:translate(0);opacity:1;visibility:visible}.aap-resizer[data-v-9fed2b0d]{position:absolute;left:0;top:0;bottom:0;width:6px;cursor:ew-resize;z-index:5;background:transparent;transition:background .15s ease;touch-action:none}.aap-resizer[data-v-9fed2b0d]:hover{background:#be8cf073}.aap-header[data-v-9fed2b0d]{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;background:linear-gradient(135deg,#7846dc80,#ff5ac866);border-bottom:1px solid rgba(255,255,255,.12)}.aap-title[data-v-9fed2b0d]{display:flex;align-items:center;gap:10px;min-width:0}.aap-glyph[data-v-9fed2b0d]{font-size:20px;color:#fff;text-shadow:0 0 10px rgba(255,200,250,.7);flex:none}.aap-title-text[data-v-9fed2b0d]{min-width:0}.aap-title-main[data-v-9fed2b0d]{font-size:15px;font-weight:700;color:#fff;line-height:1.2}.aap-title-sub[data-v-9fed2b0d]{font-size:11px;color:#f0deffc7;margin-top:2px}.aap-close[data-v-9fed2b0d]{appearance:none;border:0;background:#ffffff1f;color:#fff;width:26px;height:26px;border-radius:6px;cursor:pointer;font-size:13px;line-height:1;flex:none;transition:background .15s ease}.aap-close[data-v-9fed2b0d]:hover{background:#ffffff3d}.aap-alert[data-v-9fed2b0d]{margin:10px 12px 0}.aap-messages[data-v-9fed2b0d]{flex:1 1 0;min-height:0;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px}.aap-empty[data-v-9fed2b0d]{padding:8px 2px;display:flex;flex-direction:column;gap:8px}.aap-empty-title[data-v-9fed2b0d]{font-size:12px;color:#d2bcf0b3}.aap-example[data-v-9fed2b0d]{appearance:none;text-align:left;border:1px dashed rgba(190,140,240,.4);background:#ffffff0a;color:#e8d7f5e6;border-radius:8px;padding:8px 10px;font-size:12.5px;cursor:pointer;transition:all .15s ease}.aap-example[data-v-9fed2b0d]:hover{background:#965ae638;border-color:#be8cf0b3;color:#fff}.aap-msg[data-v-9fed2b0d]{display:flex}.aap-msg--user[data-v-9fed2b0d]{justify-content:flex-end}.aap-msg--assistant[data-v-9fed2b0d]{justify-content:flex-start}.aap-bubble[data-v-9fed2b0d]{max-width:86%;padding:8px 11px;border-radius:12px;font-size:13px;line-height:1.5}.aap-msg--user .aap-bubble[data-v-9fed2b0d]{background:linear-gradient(135deg,#965af0f2,#7846dcf2);color:#fff;border-bottom-right-radius:4px}.aap-msg--assistant .aap-bubble[data-v-9fed2b0d]{background:#ffffff12;border:1px solid rgba(255,255,255,.1);color:#ece0faf2;border-bottom-left-radius:4px}.aap-bubble-text[data-v-9fed2b0d]{white-space:pre-wrap;word-break:break-word}.aap-meta[data-v-9fed2b0d]{margin-top:6px;padding-top:6px;border-top:1px dashed rgba(255,255,255,.14);font-size:11.5px;color:#d2bcf0cc}.aap-meta b[data-v-9fed2b0d]{color:var(--mg-accent, #c4a4ff)}.aap-bubble--loading[data-v-9fed2b0d]{display:inline-flex;align-items:center;gap:8px;color:#d2bcf0d9}.aap-toolbar[data-v-9fed2b0d]{flex:none;display:flex;align-items:center;gap:8px;padding:8px 12px 0;flex-wrap:wrap}.aap-toolbar-label[data-v-9fed2b0d]{font-size:11.5px;color:#d2bcf0b3;flex:none}.aap-toolbar[data-v-9fed2b0d] .el-radio-button__inner{padding:5px 9px;font-size:12px}.aap-input[data-v-9fed2b0d]{flex:none;padding:8px 12px 12px;display:flex;flex-direction:column;gap:8px}.aap-send[data-v-9fed2b0d]{align-self:flex-end;min-width:84px}.map-editor-page[data-v-704ddb94]{height:calc(100vh - 56px);display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 40%,#2d1456,#1a0930,#0f0420);color:#e8d7f5e6}.me-body[data-v-704ddb94]{flex:1;display:flex;min-height:0;position:relative}.ai-assistant-fab[data-v-704ddb94]{position:absolute;top:50%;right:0;transform:translateY(-50%);z-index:31;display:flex;flex-direction:column;align-items:center;gap:5px;width:42px;padding:14px 0;border:none;border-radius:12px 0 0 12px;cursor:pointer;color:#fff;background:linear-gradient(135deg,#965af0f5,#ff5ac8eb);box-shadow:-4px 0 16px #7828c873;transition:right .26s cubic-bezier(.25,.8,.25,1),filter .15s ease,box-shadow .15s ease}.ai-assistant-fab[data-v-704ddb94]:hover{filter:brightness(1.08);box-shadow:-6px 0 22px #963ce699}.ai-assistant-fab.is-open[data-v-704ddb94]{right:360px}.ai-assistant-fab .fab-glyph[data-v-704ddb94]{font-size:18px;line-height:1;text-shadow:0 0 10px rgba(255,220,255,.85)}.ai-assistant-fab .fab-text[data-v-704ddb94]{font-size:12px;font-weight:700;line-height:1.18;letter-spacing:1px;text-align:center}.me-center[data-v-704ddb94]{flex:1;min-width:0;display:flex}.me-center[data-v-704ddb94] .workspace-3d-wrap{flex:1;height:100%;border:0;border-radius:0;min-height:0} +.edit-top-bar[data-v-1082d582]{display:flex;align-items:center;gap:4px;padding:8px 14px;background:linear-gradient(180deg,#321658f2,#220e40f2);border-bottom:1px solid rgba(255,255,255,.12);backdrop-filter:blur(10px);box-shadow:0 2px 8px #00000040}.spacer[data-v-1082d582]{flex:1}.el-divider--vertical[data-v-1082d582]{margin:0 6px;background:#ffffff26}.topbar-btn[data-v-1082d582]{color:#fdf6ff!important;font-weight:600;font-size:13.5px;padding:6px 12px;height:auto;border-radius:6px;transition:background .15s ease,color .15s ease}.topbar-btn[data-v-1082d582]:hover{color:#fff!important;background:#aa6efa47!important}.topbar-btn[data-v-1082d582]:focus{background:#aa6efa4d!important}.topbar-icon-btn[data-v-1082d582]{color:#fdf6ffeb!important;background:#ffffff0d!important;border:1px solid rgba(255,255,255,.15)!important;font-size:15px}.topbar-icon-btn[data-v-1082d582]:hover:not(.is-disabled){background:#aa6efa4d!important;border-color:#aa6efa8c!important}.topbar-icon-btn.is-disabled[data-v-1082d582]{opacity:.4}.topbar-save-btn[data-v-1082d582]{font-weight:600;font-size:13.5px;padding:6px 18px;height:auto;border-radius:6px;margin-right:4px}.topbar-filter-menu[data-v-1082d582] .topbar-filter-header{font-size:11px;color:#e8d7f58c;cursor:default;pointer-events:none;padding-top:6px;padding-bottom:2px;text-transform:none;letter-spacing:.4px}.edit-tool-rail[data-v-6b284dea]{height:100%;width:170px;background:linear-gradient(180deg,#1c0c38d9,#120624f2);border-right:1px solid rgba(255,255,255,.1);padding:4px 0 12px;backdrop-filter:blur(10px);display:flex;flex-direction:column;box-shadow:inset -1px 0 #ffffff0a}.rail-scroll[data-v-6b284dea]{height:100%}.rail-group[data-v-6b284dea]{display:flex;flex-direction:column;padding:4px 8px 2px}.rail-group-title[data-v-6b284dea]{display:flex;align-items:center;gap:6px;font-size:10px;letter-spacing:2px;color:#bea0e6b3;text-transform:uppercase;margin:4px 0 6px;font-weight:600}.rail-group-bar[data-v-6b284dea]{flex:1;height:1px;background:#bea0e633}.rail-group-list[data-v-6b284dea]{display:flex;flex-direction:column;gap:2px}.rail-divider[data-v-6b284dea]{width:100%;height:1px;background:linear-gradient(90deg,#fff0,#ffffff14,#fff0);margin:6px 0 2px}.rail-btn[data-v-6b284dea]{appearance:none;border:0;cursor:pointer;width:100%;min-height:32px;padding:0 8px;border-radius:6px;background:#ffffff0a;color:#e8d7f5eb;display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:500;text-align:left;transition:background .14s ease,color .14s ease,box-shadow .14s ease,transform .12s ease}.rail-btn[data-v-6b284dea]:hover{background:#965ae633;color:#fff}.rail-btn[data-v-6b284dea]:active{transform:scale(.985)}.rail-btn.rail-btn--active[data-v-6b284dea]{background:linear-gradient(120deg,#aa6efaeb,#7846dceb);color:#fff;box-shadow:0 3px 10px #8c50e673,inset 0 0 0 1px #ffffff2e}.rail-btn-glyph[data-v-6b284dea]{width:20px;display:inline-flex;justify-content:center;align-items:center;font-size:15px;line-height:1;flex:none}.rail-btn-label[data-v-6b284dea]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rail-group-ai[data-v-6b284dea]{margin-top:14px;padding-bottom:10px;position:relative}.rail-group-ai[data-v-6b284dea]:before{content:"";position:absolute;left:8px;right:8px;top:0;height:1px;background:linear-gradient(90deg,#fff0,#dc8ce659,#fff0)}.rail-btn--ai[data-v-6b284dea]{background:linear-gradient(135deg,#7846dc8c,#ff5ac88c);color:#fff;font-weight:600;box-shadow:0 2px 10px #dc5adc4d,inset 0 0 0 1px #fff3}.rail-btn--ai[data-v-6b284dea]:hover{background:linear-gradient(135deg,#965af0d9,#ff6edcd9);color:#fff;box-shadow:0 4px 14px #e66ee68c,inset 0 0 0 1px #ffffff4d}.rail-btn--ai .rail-btn-glyph[data-v-6b284dea]{font-size:16px;text-shadow:0 0 8px rgba(255,200,250,.6)}.edit-property-panel[data-v-781515fe]{height:100%;width:360px;background:linear-gradient(180deg,#1c0c38d9,#120624f2);border-left:1px solid rgba(255,255,255,.1);padding:0;backdrop-filter:blur(10px);overflow:hidden;display:flex;flex-direction:column;color:#e8d7f5eb}.prop-tabs[data-v-781515fe]{height:100%;display:flex;flex-direction:column}.prop-tabs[data-v-781515fe] .el-tabs__header{margin:0;padding:0 8px;border-bottom:1px solid rgba(255,255,255,.08)}.prop-tabs[data-v-781515fe] .el-tabs__nav-wrap:after{background:transparent}.prop-tabs[data-v-781515fe] .el-tabs__item{color:#dcc8f0b3;font-weight:500;font-size:13px;height:36px;line-height:36px}.prop-tabs[data-v-781515fe] .el-tabs__item.is-active{color:#fff}.prop-tabs[data-v-781515fe] .el-tabs__active-bar{background:linear-gradient(90deg,#aa6efa,#ff6edc);height:2px}.prop-tabs[data-v-781515fe] .el-tabs__content{flex:1;overflow:auto;padding:10px 12px 14px}.empty-hint[data-v-781515fe]{display:flex;align-items:center;gap:6px;padding:56px 16px;text-align:center;color:#dcc8f08c;flex-direction:column}.empty-icon[data-v-781515fe]{font-size:28px;color:#b482dc73}.empty-title[data-v-781515fe]{font-size:13px;color:#e8d7f5bf;font-weight:500}.empty-desc[data-v-781515fe]{font-size:11.5px;color:#dcc8f080}.loading-hint[data-v-781515fe]{display:flex;align-items:center;gap:8px;padding:32px 16px;text-align:center;color:#e8d7f5a6;font-size:12.5px;justify-content:center}.object-pane[data-v-781515fe]{display:flex;flex-direction:column;gap:10px}.prop-card[data-v-781515fe]{background:#ffffff0a;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:10px 12px;box-shadow:0 1px 4px #0003}.prop-card--header[data-v-781515fe]{background:linear-gradient(140deg,#aa6efa2e,#461e6e1a);border-color:#aa6efa47}.prop-card--geom[data-v-781515fe]{background:linear-gradient(140deg,#508cdc1a,#2846820f);border-color:#78aae638}.prop-card--style[data-v-781515fe]{background:linear-gradient(140deg,#dc6ec81a,#9646820f);border-color:#e682c838}.prop-card--custom[data-v-781515fe]{background:#ffffff08;border-color:#aa6efa2e}.prop-card--status[data-v-781515fe]{background:#508cdc0f;border-color:#78aae62e}.prop-card--actions[data-v-781515fe]{background:#8c50c80f;border-color:#aa6efa2e}.prop-card-header[data-v-781515fe]{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.prop-card-title[data-v-781515fe]{font-size:11.5px;font-weight:600;letter-spacing:1px;color:#dcb4fad9;text-transform:uppercase}.prop-card-meta[data-v-781515fe]{font-size:10.5px;color:#c8b4dc80}.prop-card-flag[data-v-781515fe]{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;color:#b4c8f099;padding:2px 7px;border-radius:10px;background:#78a0dc1a;transition:background .25s ease,color .25s ease,box-shadow .25s ease;margin-left:auto}.prop-card-flag.is-synced[data-v-781515fe]{background:linear-gradient(120deg,#50c88252,#78dcc852);color:#dcffe6f2;box-shadow:0 0 8px #50c88273}.prop-card-flag-dot[data-v-781515fe]{width:6px;height:6px;border-radius:50%;background:#b4c8f099;transition:background .25s ease,box-shadow .25s ease}.prop-card-flag.is-synced .prop-card-flag-dot[data-v-781515fe]{background:#6ce7a8;box-shadow:0 0 6px #6ce7a8d9}.prop-card-row[data-v-781515fe]{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.prop-card-row[data-v-781515fe]:last-child{margin-bottom:0}.prop-id-block[data-v-781515fe]{display:flex;align-items:center;gap:6px}.prop-id-tag[data-v-781515fe]{background:#aa6efa4d;color:#fff;padding:2px 8px;font-size:11.5px;font-weight:600;border-radius:4px;letter-spacing:.5px}.prop-type-tag[data-v-781515fe]{color:#e8d7f5bf;font-size:11.5px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.prop-status-tag[data-v-781515fe]{font-weight:500}.prop-header-actions[data-v-781515fe]{display:flex;align-items:center;gap:6px}.prop-delete-btn[data-v-781515fe]{appearance:none;cursor:pointer;display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:5px;font-size:11.5px;font-weight:500;letter-spacing:.4px;color:#ffc8d2f2;background:linear-gradient(135deg,#ff5a782e,#dc3c6e38);border:1px solid rgba(255,110,140,.45);transition:background .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .12s ease}.prop-delete-btn[data-v-781515fe]:hover:not(:disabled){background:linear-gradient(135deg,#ff5a788c,#dc3c6ea6);border-color:#ff8caad9;color:#fff;box-shadow:0 3px 10px #dc466e73}.prop-delete-btn[data-v-781515fe]:active:not(:disabled){transform:scale(.96)}.prop-delete-btn[data-v-781515fe]:disabled{opacity:.55;cursor:progress}.prop-delete-icon[data-v-781515fe]{font-size:12px;line-height:1}.prop-name-row[data-v-781515fe],.prop-layer-row[data-v-781515fe]{gap:8px}.prop-name-label[data-v-781515fe]{width:36px;font-size:11.5px;color:#c8b4dcb3;flex:none}.prop-layer-select[data-v-781515fe]{flex:1}.prop-grid[data-v-781515fe]{display:grid;grid-template-columns:1fr 1fr;column-gap:8px;row-gap:8px}.prop-grid-item[data-v-781515fe]{display:flex;flex-direction:column;gap:3px;min-width:0}.prop-grid-item--wide[data-v-781515fe]{grid-column:1 / -1}.prop-field-label[data-v-781515fe]{font-size:11px;color:#c8b4e6c7;letter-spacing:.3px;display:flex;justify-content:space-between;align-items:baseline;gap:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prop-field-unit[data-v-781515fe]{font-size:10px;color:#aa96c88c;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;flex:none}.prop-field-num[data-v-781515fe] .el-input-number{width:100%}.prop-field-num[data-v-781515fe] .el-input__wrapper{background:#ffffff0f;box-shadow:inset 0 0 0 1px #aa6efa2e}.prop-field-row[data-v-781515fe]{display:flex;align-items:center;gap:4px}.prop-field-icon-btn[data-v-781515fe]{appearance:none;border:0;cursor:pointer;width:22px;height:22px;border-radius:4px;background:#ff64821f;color:#ffb4c8d9;font-size:14px;line-height:1;display:inline-flex;align-items:center;justify-content:center;flex:none;transition:background .14s,color .14s}.prop-field-icon-btn[data-v-781515fe]:hover{background:#ff648252;color:#fff}.prop-empty-row[data-v-781515fe]{font-size:11.5px;color:#c8b4dc66;text-align:center;padding:8px 0}.prop-add-field-btn[data-v-781515fe]{appearance:none;border:0;cursor:pointer;width:100%;margin-top:8px;padding:6px 10px;border-radius:6px;background:#aa6efa24;border:1px dashed rgba(170,110,250,.4);color:#dcb4faeb;font-size:12px;font-weight:500;transition:background .14s ease,border-color .14s ease,color .14s ease}.prop-add-field-btn[data-v-781515fe]:hover{background:#aa6efa42;border-color:#aa6efaa6;color:#fff}.prop-status-list[data-v-781515fe]{display:flex;flex-direction:column;gap:4px}.prop-status-item[data-v-781515fe]{display:flex;justify-content:space-between;align-items:center;padding:5px 8px;border-radius:4px;background:#ffffff08;font-size:11.5px}.prop-status-key[data-v-781515fe]{color:#aac8f0d9;font-weight:500}.prop-status-value[data-v-781515fe]{color:#e8f5fff2;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prop-actions[data-v-781515fe]{display:grid;grid-template-columns:1fr 1fr;gap:6px}.prop-action-btn[data-v-781515fe]{appearance:none;border:0;cursor:pointer;padding:7px 10px;border-radius:7px;background:linear-gradient(135deg,#aa6efa33,#7846dc33);border:1px solid rgba(170,110,250,.35);color:#e8d7f5f2;font-size:12px;font-weight:500;display:flex;align-items:center;justify-content:flex-start;gap:6px;transition:background .14s ease,border-color .14s ease,transform .12s ease,box-shadow .14s ease;text-align:left}.prop-action-btn[data-v-781515fe]:hover:not(:disabled){background:linear-gradient(135deg,#aa6efa9e,#ff6edc8c);border-color:#ff82dcb3;color:#fff;box-shadow:0 4px 12px #b45adc66}.prop-action-btn[data-v-781515fe]:active:not(:disabled){transform:scale(.985)}.prop-action-btn[data-v-781515fe]:disabled{opacity:.6;cursor:progress}.prop-action-icon[data-v-781515fe]{font-size:9px;color:#ffc8fad9;flex:none}.prop-action-spinner[data-v-781515fe]{display:inline-block;animation:prop-spin-781515fe .8s linear infinite;font-size:13px}.prop-action-label[data-v-781515fe]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@keyframes prop-spin-781515fe{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.defaults-pane[data-v-781515fe]{display:flex;flex-direction:column;gap:10px}.defaults-alert[data-v-781515fe]{margin-bottom:4px}.defaults-empty[data-v-781515fe]{padding:40px 12px}.defaults-form .el-button[data-v-781515fe]{margin-top:8px}.defaults-form[data-v-781515fe] .el-form-item{margin-bottom:10px}.layer-table[data-v-781515fe]{margin:6px 0;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px #7c3aed24}.layer-table[data-v-781515fe] .el-table__inner-wrapper{background:#fff}.layer-table[data-v-781515fe] th.el-table__cell{background:#f5f3ff!important;color:#2d1b69!important;font-weight:600}.layer-table[data-v-781515fe] td.el-table__cell{background:#fff!important;color:#1a0f3d!important;font-weight:500}.layer-table[data-v-781515fe] .cell{color:#1a0f3d!important}.layer-table[data-v-781515fe] tr:hover>td.el-table__cell{background:#ede9fe!important}.new-layer[data-v-781515fe]{margin-top:8px}.new-layer[data-v-781515fe] .el-input__inner{color:#1a0f3d;font-weight:500}.new-layer[data-v-781515fe] .el-input__inner::placeholder{color:#7a6b9a}.new-layer[data-v-781515fe] .el-input-group__append .el-button{color:#5b21b6;font-weight:600}.edit-status-bar[data-v-6254b10f]{display:flex;align-items:center;gap:16px;padding:4px 14px;background:#140828d9;border-top:1px solid rgba(255,255,255,.08);color:#e8d7f5d9;font-size:12px;font-family:ui-monospace,Menlo,Consolas,monospace;height:28px}.spacer[data-v-6254b10f]{flex:1}.seg b[data-v-6254b10f]{color:var(--mg-accent, #c4a4ff)}.seg .on[data-v-6254b10f]{color:#67c23a}.seg .off[data-v-6254b10f]{color:#a0a0a0}.seg.ok[data-v-6254b10f]{color:#67c23a}.seg.warn[data-v-6254b10f]{color:#f56c6c}.el-upload{--el-upload-dragger-padding-horizontal:10px;--el-upload-dragger-padding-vertical:40px;--el-upload-list-picture-card-size:var(--el-upload-picture-card-size);--el-upload-picture-card-size:148px;cursor:pointer;outline:none;justify-content:center;align-items:center;display:inline-flex}.el-upload.is-disabled{cursor:not-allowed}.el-upload.is-disabled:focus{border-color:var(--el-border-color-darker);color:inherit}.el-upload.is-disabled:focus .el-upload-dragger{border-color:var(--el-border-color-darker)}.el-upload.is-disabled .el-upload-dragger{cursor:not-allowed;background-color:var(--el-disabled-bg-color)}.el-upload.is-disabled .el-upload-dragger .el-upload__text{color:var(--el-text-color-placeholder)}.el-upload.is-disabled .el-upload-dragger .el-upload__text em{color:var(--el-disabled-text-color)}.el-upload.is-disabled .el-upload-dragger:hover{border-color:var(--el-border-color-darker)}.el-upload__input{display:none}.el-upload__tip{color:var(--el-text-color-regular);margin-top:7px;font-size:12px}.el-upload iframe{z-index:-1;opacity:0;filter:alpha(opacity=0);position:absolute;top:0;left:0}.el-upload--picture-card{background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.el-upload--picture-card>i{color:var(--el-text-color-secondary);font-size:28px}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-vertical) var(--el-upload-dragger-padding-horizontal);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);box-sizing:border-box;text-align:center;cursor:pointer;border-radius:6px;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{color:var(--el-text-color-placeholder);margin-bottom:16px;font-size:67px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);text-align:center;font-size:14px}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{padding:calc(var(--el-upload-dragger-padding-vertical) - 1px) calc(var(--el-upload-dragger-padding-horizontal) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{--el-upload-dragger-padding-horizontal:10px;--el-upload-dragger-padding-vertical:40px;--el-upload-list-picture-card-size:var(--el-upload-picture-card-size);--el-upload-picture-card-size:148px;margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{color:var(--el-text-color-regular);box-sizing:border-box;border-radius:4px;width:100%;margin-bottom:5px;font-size:14px;transition:all .5s cubic-bezier(.55,0,.1,1);position:relative}.el-upload-list__item .el-progress{width:100%;position:absolute;top:20px}.el-upload-list__item .el-progress__text{position:absolute;top:-13px;right:0}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);display:none;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{cursor:pointer;opacity:1;color:var(--el-color-primary);font-size:12px;font-style:normal;display:none;position:absolute;top:1px;right:5px}.el-upload-list__item:hover,.el-upload-list__item:focus-within{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close,.el-upload-list__item:focus-within .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-icon--close-tip,.el-upload-list__item:focus-within .el-icon--close-tip{right:24px}.el-upload-list__item:hover .el-progress__text,.el-upload-list__item:focus-within .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{flex-direction:column;justify-content:center;width:calc(100% - 30px);margin-left:4px;display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:hover,.el-upload-list__item.is-success .el-upload-list__item-name:focus{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:not(.focusing):focus,.el-upload-list__item.is-success:active{outline-width:0}.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip,.el-upload-list__item.is-success:active .el-icon--close-tip{display:none}.el-upload-list__item.is-success:hover .el-upload-list__item-status-label,.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:focus-within .el-upload-list__item-status-label{opacity:0;display:none}.el-upload-list__item-name{color:var(--el-text-color-regular);text-align:center;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base);align-items:center;padding:0 4px;display:inline-flex}.el-upload-list__item-name .el-icon{color:var(--el-text-color-secondary);margin-right:6px}.el-upload-list__item-file-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.el-upload-list__item-status-label{line-height:inherit;height:100%;transition:opacity var(--el-transition-duration);justify-content:center;align-items:center;display:none;position:absolute;top:0;right:5px}.el-upload-list__item-delete{color:var(--el-text-color-regular);font-size:12px;display:none;position:absolute;top:0;right:10px}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{flex-wrap:wrap;margin:0;display:inline-flex}.el-upload-list--picture-card .el-upload-list__item{background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);border-radius:6px;margin:0 8px 8px 0;padding:0;display:inline-flex;overflow:hidden}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{object-fit:contain;width:100%;height:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{background:var(--el-color-success);text-align:center;width:40px;height:24px;top:-6px;right:-15px;transform:rotate(45deg)}.el-upload-list--picture-card .el-upload-list__item-status-label i{margin-top:11px;font-size:12px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{cursor:default;color:#fff;opacity:0;background-color:var(--el-overlay-color-lighter);width:100%;height:100%;transition:opacity var(--el-transition-duration);justify-content:center;align-items:center;font-size:20px;display:inline-flex;position:absolute;top:0;left:0}.el-upload-list--picture-card .el-upload-list__item-actions span{cursor:pointer;display:none}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:16px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{font-size:inherit;color:inherit;position:static}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{width:126px;top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%)}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);box-sizing:border-box;border-radius:6px;align-items:center;margin-top:10px;padding:10px;display:flex;overflow:hidden}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:inline-flex}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{object-fit:contain;z-index:1;background-color:var(--el-color-white);justify-content:center;align-items:center;width:70px;height:70px;display:inline-flex;position:relative}.el-upload-list--picture .el-upload-list__item-status-label{background:var(--el-color-success);text-align:center;width:46px;height:26px;position:absolute;top:-7px;right:-17px;transform:rotate(45deg)}.el-upload-list--picture .el-upload-list__item-status-label i{margin-top:12px;font-size:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{z-index:10;cursor:default;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden}.el-upload-cover:after{content:"";vertical-align:middle;height:100%;display:inline-block}.el-upload-cover img{width:100%;height:100%;display:block}.el-upload-cover__label{background:var(--el-color-success);text-align:center;width:40px;height:24px;top:-6px;right:-15px;transform:rotate(45deg)}.el-upload-cover__label i{color:#fff;margin-top:11px;font-size:12px;transform:rotate(-45deg)}.el-upload-cover__progress{vertical-align:middle;width:243px;display:inline-block;position:static}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{width:100%;height:100%;position:absolute;top:0;left:0}.el-upload-cover__interact{background-color:var(--el-overlay-color-light);text-align:center;width:100%;height:100%;position:absolute;bottom:0;left:0}.el-upload-cover__interact .btn{color:#fff;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px;font-size:14px;display:inline-block}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;font-size:24px;line-height:inherit;margin:0 auto 5px;display:block}.el-upload-cover__title{text-overflow:ellipsis;white-space:nowrap;text-align:left;width:100%;height:36px;color:var(--el-text-color-primary);background-color:#fff;margin:0;padding:0 10px;font-size:14px;font-weight:400;line-height:36px;position:absolute;bottom:0;left:0;overflow:hidden}.el-upload-cover+.el-upload__inner{opacity:0;z-index:1;position:relative}.cfg-alert[data-v-47584778]{margin-bottom:12px}.ml[data-v-47584778]{margin-left:6px}.upload-hint[data-v-47584778]{display:flex;align-items:center;gap:8px;padding:12px;color:var(--el-text-color-regular, rgba(232,215,245,.7))}.result-panel[data-v-47584778]{margin-top:8px}.ai-text[data-v-47584778]{color:var(--el-text-color-primary, rgba(232,215,245,.85));padding:6px 0;white-space:pre-wrap}.ai-stat[data-v-47584778]{padding:6px 0;color:var(--el-text-color-primary, rgba(232,215,245,.85))}.ai-stat b[data-v-47584778]{color:var(--mg-accent, #c4a4ff)}.ai-generate-dialog.el-dialog,.ai-generate-dialog .el-dialog{background-color:rgb(var(--mg-bg-card-rgb))!important;box-shadow:0 24px 60px #08021099!important}.ai-assistant-panel[data-v-9fed2b0d]{position:absolute;top:0;right:0;bottom:0;z-index:30;display:flex;flex-direction:column;background:linear-gradient(180deg,#1c0c38fa,#100622fc);border-left:1px solid rgba(190,140,240,.28);box-shadow:-10px 0 30px #0802108c;color:#ece0faf2;transform:translate(100%);opacity:0;visibility:hidden;transition:transform .26s cubic-bezier(.25,.8,.25,1),opacity .26s ease,visibility .26s}.ai-assistant-panel.is-open[data-v-9fed2b0d]{transform:translate(0);opacity:1;visibility:visible}.aap-resizer[data-v-9fed2b0d]{position:absolute;left:0;top:0;bottom:0;width:6px;cursor:ew-resize;z-index:5;background:transparent;transition:background .15s ease;touch-action:none}.aap-resizer[data-v-9fed2b0d]:hover{background:#be8cf073}.aap-header[data-v-9fed2b0d]{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;background:linear-gradient(135deg,#7846dc80,#ff5ac866);border-bottom:1px solid rgba(255,255,255,.12)}.aap-title[data-v-9fed2b0d]{display:flex;align-items:center;gap:10px;min-width:0}.aap-glyph[data-v-9fed2b0d]{font-size:20px;color:#fff;text-shadow:0 0 10px rgba(255,200,250,.7);flex:none}.aap-title-text[data-v-9fed2b0d]{min-width:0}.aap-title-main[data-v-9fed2b0d]{font-size:15px;font-weight:700;color:#fff;line-height:1.2}.aap-title-sub[data-v-9fed2b0d]{font-size:11px;color:#f0deffc7;margin-top:2px}.aap-close[data-v-9fed2b0d]{appearance:none;border:0;background:#ffffff1f;color:#fff;width:26px;height:26px;border-radius:6px;cursor:pointer;font-size:13px;line-height:1;flex:none;transition:background .15s ease}.aap-close[data-v-9fed2b0d]:hover{background:#ffffff3d}.aap-alert[data-v-9fed2b0d]{margin:10px 12px 0}.aap-messages[data-v-9fed2b0d]{flex:1 1 0;min-height:0;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px}.aap-empty[data-v-9fed2b0d]{padding:8px 2px;display:flex;flex-direction:column;gap:8px}.aap-empty-title[data-v-9fed2b0d]{font-size:12px;color:#d2bcf0b3}.aap-example[data-v-9fed2b0d]{appearance:none;text-align:left;border:1px dashed rgba(190,140,240,.4);background:#ffffff0a;color:#e8d7f5e6;border-radius:8px;padding:8px 10px;font-size:12.5px;cursor:pointer;transition:all .15s ease}.aap-example[data-v-9fed2b0d]:hover{background:#965ae638;border-color:#be8cf0b3;color:#fff}.aap-msg[data-v-9fed2b0d]{display:flex}.aap-msg--user[data-v-9fed2b0d]{justify-content:flex-end}.aap-msg--assistant[data-v-9fed2b0d]{justify-content:flex-start}.aap-bubble[data-v-9fed2b0d]{max-width:86%;padding:8px 11px;border-radius:12px;font-size:13px;line-height:1.5}.aap-msg--user .aap-bubble[data-v-9fed2b0d]{background:linear-gradient(135deg,#965af0f2,#7846dcf2);color:#fff;border-bottom-right-radius:4px}.aap-msg--assistant .aap-bubble[data-v-9fed2b0d]{background:#ffffff12;border:1px solid rgba(255,255,255,.1);color:#ece0faf2;border-bottom-left-radius:4px}.aap-bubble-text[data-v-9fed2b0d]{white-space:pre-wrap;word-break:break-word}.aap-meta[data-v-9fed2b0d]{margin-top:6px;padding-top:6px;border-top:1px dashed rgba(255,255,255,.14);font-size:11.5px;color:#d2bcf0cc}.aap-meta b[data-v-9fed2b0d]{color:var(--mg-accent, #c4a4ff)}.aap-bubble--loading[data-v-9fed2b0d]{display:inline-flex;align-items:center;gap:8px;color:#d2bcf0d9}.aap-toolbar[data-v-9fed2b0d]{flex:none;display:flex;align-items:center;gap:8px;padding:8px 12px 0;flex-wrap:wrap}.aap-toolbar-label[data-v-9fed2b0d]{font-size:11.5px;color:#d2bcf0b3;flex:none}.aap-toolbar[data-v-9fed2b0d] .el-radio-button__inner{padding:5px 9px;font-size:12px}.aap-input[data-v-9fed2b0d]{flex:none;padding:8px 12px 12px;display:flex;flex-direction:column;gap:8px}.aap-send[data-v-9fed2b0d]{align-self:flex-end;min-width:84px}.map-editor-page[data-v-108ea5ac]{height:calc(100vh - 56px);display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 40%,#2d1456,#1a0930,#0f0420);color:#e8d7f5e6}.me-body[data-v-108ea5ac]{flex:1;display:flex;min-height:0;position:relative}.ai-assistant-fab[data-v-108ea5ac]{position:absolute;top:50%;right:0;transform:translateY(-50%);z-index:31;display:flex;flex-direction:column;align-items:center;gap:5px;width:42px;padding:14px 0;border:none;border-radius:12px 0 0 12px;cursor:pointer;color:#fff;background:linear-gradient(135deg,#965af0f5,#ff5ac8eb);box-shadow:-4px 0 16px #7828c873;transition:right .26s cubic-bezier(.25,.8,.25,1),filter .15s ease,box-shadow .15s ease}.ai-assistant-fab[data-v-108ea5ac]:hover{filter:brightness(1.08);box-shadow:-6px 0 22px #963ce699}.ai-assistant-fab.is-open[data-v-108ea5ac]{right:360px}.ai-assistant-fab .fab-glyph[data-v-108ea5ac]{font-size:18px;line-height:1;text-shadow:0 0 10px rgba(255,220,255,.85)}.ai-assistant-fab .fab-text[data-v-108ea5ac]{font-size:12px;font-weight:700;line-height:1.18;letter-spacing:1px;text-align:center}.me-center[data-v-108ea5ac]{flex:1;min-width:0;display:flex}.me-center[data-v-108ea5ac] .workspace-3d-wrap{flex:1;height:100%;border:0;border-radius:0;min-height:0} diff --git a/MiGu.Server/wwwroot/assets/MapManagementView-BfnAn-Bv.js b/MiGu.Server/wwwroot/assets/MapManagementView-BfnAn-Bv.js new file mode 100644 index 0000000..ea6d2db --- /dev/null +++ b/MiGu.Server/wwwroot/assets/MapManagementView-BfnAn-Bv.js @@ -0,0 +1,4 @@ +import{aN as le,bC as v,bs as o,aG as c,bk as me,ai as U,aD as m,bL as M,aF as O,bE as G,aE as x,ay as N,ak as ne,L as ge,c7 as Ie,bp as de,aK as t,R as _e,bS as ve,bI as Ne,r as pe,bv as Te,c8 as n,aJ as h,c9 as ce,b$ as ye,ab as be,_ as Be,F as Oe,N as we,O as he,a4 as ke,S as Re,bA as Je,X as E,Y,aa as $e,Z as Me,E as Ce,cb as ae,ad as Se,bj as fe,ac as ze,bX as Ae,a9 as Pe,t as Ue}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{b as P}from"./mapEdit-BXIATxCI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const De={class:"jfn-toggle"},Fe={key:0,class:"jfn-key"},Le={class:"jfn-brace"},qe={key:1,class:"jfn-ellipsis"},Ge={key:2,class:"jfn-brace"},Ke={key:0,class:"jfn-children"},Xe={class:"jfn-line jfn-close"},Ye={class:"jfn-brace"},He={key:0,class:"jfn-comma"},Ze={key:1,class:"jfn-line jfn-primitive"},Qe={key:0,class:"jfn-key"},We={key:1,class:"jfn-comma"},et=le({__name:"JsonFoldNode",props:{value:{},label:{},depth:{default:0},comma:{type:Boolean,default:!1}},setup(r){const l=r,d=v(l.depth<1),_=N(()=>Array.isArray(l.value)),k=N(()=>l.value!==null&&typeof l.value=="object"&&!_.value),$=N(()=>_.value||k.value),T=N(()=>_.value?"[":"{"),y=N(()=>_.value?"]":"}"),b=N(()=>_.value?l.value.map((s,R)=>({key:String(R),label:String(R),value:s})):k.value?Object.entries(l.value).map(([s,R])=>({key:s,label:JSON.stringify(s),value:R})):[]),C=N(()=>{const s=b.value.length;return _.value?` … ${s} items `:` … ${s} keys `}),f=N(()=>{const s=typeof l.value;return s==="string"?"jfn-val jfn-val--str":s==="number"?"jfn-val jfn-val--num":s==="boolean"?"jfn-val jfn-val--bool":"jfn-val jfn-val--null"}),V=N(()=>l.value===null?"null":l.value===void 0?"undefined":typeof l.value=="string"?JSON.stringify(l.value):String(l.value));function S(){d.value=!d.value}return(s,R)=>(o(),c("div",{class:me(["jfn",{"jfn--root":r.depth===0}])},[$.value?(o(),c(U,{key:0},[m("div",{class:"jfn-line",onClick:S},[m("span",De,M(d.value?"▼":"▶"),1),r.label?(o(),c("span",Fe,M(r.label)+": ",1)):O("",!0),m("span",Le,M(T.value),1),d.value?O("",!0):(o(),c("span",qe,M(C.value),1)),d.value?O("",!0):(o(),c("span",Ge,M(y.value),1))]),d.value?(o(),c("div",Ke,[(o(!0),c(U,null,G(b.value,(A,j)=>(o(),x(xe,{key:A.key,label:A.label,value:A.value,depth:r.depth+1,comma:j{if(l.data!==void 0)return l.data;if(l.raw?.trim())try{return JSON.parse(l.raw)}catch{return}});return(_,k)=>{const $=ge;return o(),c("div",tt,[d.value!==void 0?(o(),x(xe,{key:0,value:d.value,depth:0},null,8,["value"])):r.raw?(o(),c("pre",at,M(r.raw),1)):(o(),x($,{key:2,description:"无 JSON 内容"}))])}}}),nt=ne(lt,[["__scopeId","data-v-af36af72"]]),Ve="mapEditor.mapConnections.v1",je="mapEditor.mapIdRegistry.v1";function te(){try{const r=localStorage.getItem(Ve);if(!r)return[];const l=JSON.parse(r);return Array.isArray(l)?l:[]}catch{return[]}}function ue(r){localStorage.setItem(Ve,JSON.stringify(r))}function ot(){try{return JSON.parse(localStorage.getItem(je)??"{}")||{}}catch{return{}}}function st(r){localStorage.setItem(je,JSON.stringify(r))}function se(r){if(!r)return 0;const l=ot();if(l[r]!=null)return l[r];const d=Object.values(l).reduce((_,k)=>Math.max(_,k),0)+1;return l[r]=d,st(l),d}function re(r){return new Promise(l=>setTimeout(()=>l(r),60))}const q={list(){return re(te().slice().sort((r,l)=>l.id-r.id))},create(r){const l=te(),_={id:l.reduce((k,$)=>Math.max(k,$.id),0)+1,...r,sourceMapId:se(r.sourceMap),targetMapId:se(r.targetMap)};return l.push(_),ue(l),re(_)},update(r,l){const d=te(),_=d.findIndex($=>$.id===r);if(_<0)return Promise.reject(new Error("连接不存在或已被删除"));const k={id:r,...l,sourceMapId:se(l.sourceMap),targetMapId:se(l.targetMap)};return d[_]=k,ue(d),re(k)},remove(r){return ue(te().filter(l=>l.id!==r)),re({id:r,deleted:!0})},stationSuggestions(){const r=new Set;for(const l of te())l.sourceStation&&r.add(l.sourceStation),l.targetStation&&r.add(l.targetStation);return Array.from(r)}},rt={class:"mc-panel"},it={class:"mc-toolbar"},ut={class:"mc-cost mg-mono"},ct={class:"mc-pager"},dt=le({__name:"MapConnectionPanel",setup(r,{expose:l}){const d=v(!1),_=v(!1),k=v([]),$=v([]),T=v([]),y=v(""),b=v(1),C=v(10),f=v(!1),V=v(null),S=v(),s=Je({sourceMap:"",sourceStation:"",targetMap:"",targetStation:"",cost:1e3}),R={sourceMap:[{required:!0,message:"请选择起始地图",trigger:"change"}],sourceStation:[{required:!0,message:"请选择起始切换点站点",trigger:"change"}],targetMap:[{required:!0,message:"请选择目的地图",trigger:"change"}],targetStation:[{required:!0,message:"请选择目的切换点站点",trigger:"change"}],cost:[{required:!0,message:"请输入转移代价",trigger:"blur"}]},A=N(()=>{const g=y.value.trim().toLowerCase();return g?k.value.filter(e=>e.sourceMap.toLowerCase().includes(g)||e.targetMap.toLowerCase().includes(g)):k.value}),j=N(()=>{const g=(b.value-1)*C.value;return A.value.slice(g,g+C.value)});Ie([y,C],()=>{b.value=1});async function u(){d.value=!0;try{k.value=await q.list(),T.value=q.stationSuggestions()}catch(g){E.error(`加载地图连接失败:${g.message}`)}finally{d.value=!1}}async function J(){try{const g=await P.list();$.value=g.maps.map(e=>e.name)}catch{$.value=[]}}function w(){s.sourceMap="",s.sourceStation="",s.targetMap="",s.targetStation="",s.cost=1e3}function z(){V.value=null,w(),T.value=q.stationSuggestions(),f.value=!0}function H(g){V.value=g.id,s.sourceMap=g.sourceMap,s.sourceStation=g.sourceStation,s.targetMap=g.targetMap,s.targetStation=g.targetStation,s.cost=g.cost,T.value=q.stationSuggestions(),f.value=!0}function Z(){S.value?.clearValidate()}async function Q(){S.value&&await S.value.validate(async g=>{if(g){_.value=!0;try{const e={sourceMap:s.sourceMap,sourceStation:s.sourceStation,targetMap:s.targetMap,targetStation:s.targetStation,cost:s.cost};V.value===null?(await q.create(e),E.success("已添加地图连接")):(await q.update(V.value,e),E.success("已更新地图连接")),f.value=!1,await u()}catch(e){E.error(`保存失败:${e.message}`)}finally{_.value=!1}}})}async function K(g){try{await Y.confirm(`确认删除「${g.sourceMap} → ${g.targetMap}」这条地图连接?`,"删除地图连接",{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消",confirmButtonClass:"el-button--danger"}),await q.remove(g.id),E.success("已删除"),j.value.length===1&&b.value>1&&(b.value-=1),await u()}catch(e){if(e==="cancel"||e==="close")return;E.error(`删除失败:${e.message}`)}}return de(()=>{u(),J()}),l({refresh:u}),(g,e)=>{const a=_e,p=pe,I=be,D=$e,W=Be,X=Me,L=ke,F=he,ee=Re,ie=we,oe=Oe,B=ye;return o(),c("div",rt,[m("div",it,[t(a,{modelValue:y.value,"onUpdate:modelValue":e[0]||(e[0]=i=>y.value=i),class:"mc-search",placeholder:"请输入地图名称搜索",clearable:"","prefix-icon":ve(Ne)},null,8,["modelValue","prefix-icon"]),t(p,{type:"primary",icon:ve(Te),onClick:z},{default:n(()=>[...e[10]||(e[10]=[h("添加地图关系",-1)])]),_:1},8,["icon"])]),ce((o(),x(D,{data:j.value,class:"mc-table",border:"","empty-text":"还没有地图连接关系,点击右上角「添加地图关系」创建跨楼层 / 拼接连接。"},{default:n(()=>[t(I,{prop:"id",label:"ID",width:"80",sortable:""}),t(I,{prop:"sourceMap",label:"起始地图名称","min-width":"160","show-overflow-tooltip":""}),t(I,{prop:"sourceMapId",label:"起始地图ID",width:"110"}),t(I,{prop:"sourceStation",label:"起始切换点站点","min-width":"150","show-overflow-tooltip":""}),t(I,{prop:"targetMap",label:"目的地图名称","min-width":"160","show-overflow-tooltip":""}),t(I,{prop:"targetMapId",label:"目的地图ID",width:"110"}),t(I,{prop:"targetStation",label:"目的切换点站点","min-width":"150","show-overflow-tooltip":""}),t(I,{label:"转移代价(cm)",width:"130"},{default:n(({row:i})=>[m("span",ut,M(i.cost),1)]),_:1}),t(I,{label:"操作",width:"130",align:"right",fixed:"right"},{default:n(({row:i})=>[t(p,{link:"",type:"primary",onClick:Ee=>H(i)},{default:n(()=>[...e[11]||(e[11]=[h("编辑",-1)])]),_:1},8,["onClick"]),t(p,{link:"",type:"danger",onClick:Ee=>K(i)},{default:n(()=>[...e[12]||(e[12]=[h("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[B,d.value]]),m("div",ct,[t(W,{"current-page":b.value,"onUpdate:currentPage":e[1]||(e[1]=i=>b.value=i),"page-size":C.value,"onUpdate:pageSize":e[2]||(e[2]=i=>C.value=i),total:A.value.length,"page-sizes":[10,20,50],layout:"total, sizes, prev, pager, next, jumper",background:""},null,8,["current-page","page-size","total"])]),t(oe,{modelValue:f.value,"onUpdate:modelValue":e[9]||(e[9]=i=>f.value=i),title:V.value===null?"添加地图关系":"编辑地图关系",width:"520px",class:"map-conn-dialog","append-to-body":"",onClosed:Z},{footer:n(()=>[t(p,{onClick:e[8]||(e[8]=i=>f.value=!1)},{default:n(()=>[...e[13]||(e[13]=[h("取消",-1)])]),_:1}),t(p,{type:"primary",loading:_.value,onClick:Q},{default:n(()=>[...e[14]||(e[14]=[h("确定",-1)])]),_:1},8,["loading"])]),default:n(()=>[t(ie,{ref_key:"formRef",ref:S,model:s,rules:R,"label-width":"120px","label-position":"right"},{default:n(()=>[t(F,{label:"起始地图",prop:"sourceMap"},{default:n(()=>[t(L,{modelValue:s.sourceMap,"onUpdate:modelValue":e[3]||(e[3]=i=>s.sourceMap=i),placeholder:"请选择起始地图",filterable:"",style:{width:"100%"}},{default:n(()=>[(o(!0),c(U,null,G($.value,i=>(o(),x(X,{key:i,label:i,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(F,{label:"起始切换点站点",prop:"sourceStation"},{default:n(()=>[t(L,{modelValue:s.sourceStation,"onUpdate:modelValue":e[4]||(e[4]=i=>s.sourceStation=i),placeholder:"请选择起始切换点站点",filterable:"","allow-create":"","default-first-option":"",style:{width:"100%"}},{default:n(()=>[(o(!0),c(U,null,G(T.value,i=>(o(),x(X,{key:i,label:i,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(F,{label:"目的地图",prop:"targetMap"},{default:n(()=>[t(L,{modelValue:s.targetMap,"onUpdate:modelValue":e[5]||(e[5]=i=>s.targetMap=i),placeholder:"请选择目的地图",filterable:"",style:{width:"100%"}},{default:n(()=>[(o(!0),c(U,null,G($.value,i=>(o(),x(X,{key:i,label:i,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(F,{label:"目的切换点站点",prop:"targetStation"},{default:n(()=>[t(L,{modelValue:s.targetStation,"onUpdate:modelValue":e[6]||(e[6]=i=>s.targetStation=i),placeholder:"请选择目的切换点站点",filterable:"","allow-create":"","default-first-option":"",style:{width:"100%"}},{default:n(()=>[(o(!0),c(U,null,G(T.value,i=>(o(),x(X,{key:i,label:i,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(F,{label:"转移代价(cm)",prop:"cost"},{default:n(()=>[t(ee,{modelValue:s.cost,"onUpdate:modelValue":e[7]||(e[7]=i=>s.cost=i),min:0,step:100,controls:!1,style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),pt=ne(dt,[["__scopeId","data-v-bad72017"]]),mt={class:"mm-merge"},vt={class:"merge-body"},ft={key:1,class:"merge-hint"},gt={class:"merge-hint"},_t={key:0,class:"merge-order"},yt={class:"order-list"},bt={class:"order-item"},wt={class:"order-name"},ht={class:"order-name"},kt=le({__name:"MapMergePanel",emits:["merged"],setup(r,{expose:l,emit:d}){const _=d,k=v(!1),$=v(!1),T=v([]),y=v(""),b=v([]),C=v(""),f=N(()=>T.value.filter(j=>j!==y.value)),V=N(()=>!!y.value&&b.value.length>=1&&C.value.trim().length>0);async function S(){k.value=!0;try{const j=await P.list();T.value=j.maps.map(u=>u.name),y.value=j.maps.find(u=>u.isCurrent)?.name??"",b.value=b.value.filter(u=>f.value.includes(u))}catch(j){E.error(`加载地图列表失败:${j.message}`)}finally{k.value=!1}}function s(){b.value=[],C.value=""}async function R(j){const u=[...b.value],J=C.value.trim(),w=await P.merge(u,J,j);if(w.ok){const z=w.data.overwroteCurrent?"(已覆盖当前地图)":"";E.success(`已把 ${w.data.sourceCount} 张地图合并进「${w.data.baseMap}」并另存为「${w.data.name}」${z}(站点 ${w.data.sites} · 路径 ${w.data.tracks})`),s(),await S(),_("merged",J);return}if(w.conflict){const z=J===y.value?`目标与当前地图「${J}」同名,将用合并结果覆盖当前地图,是否继续?`:`地图「${J}」已存在,是否替换原地图?`;try{await Y.confirm(z,"目标地图已存在",{type:"warning",confirmButtonText:"替换",cancelButtonText:"取消"})}catch{return}await R(!0);return}E.error(w.message)}async function A(){if(V.value){$.value=!0;try{await R(!1)}finally{$.value=!1}}}return de(S),l({refresh:S}),(j,u)=>{const J=Ce,w=Se,z=he,H=Me,Z=ke,Q=_e,K=pe,g=we;return o(),c("div",mt,[t(J,{class:"merge-tip",type:"info",closable:!1,"show-icon":""},{title:n(()=>[...u[3]||(u[3]=[h(" 与桌面端「合并」一致:以",-1),m("strong",null,"当前使用地图",-1),h("为底图,把选中的地图依次合并进来(自动分配独立图层、 站点 / 路径 ID 自动避让,互不冲突),再另存为目标地图。可用于多楼层汇总、多区域拼接。 ",-1)])]),_:1}),!k.value&&!y.value?(o(),x(J,{key:0,class:"merge-tip",type:"warning",closable:!1,"show-icon":"",title:"当前未设置「使用中」地图。请先到「服务器地图」页对某张地图点「使用」,再来执行合并。"})):O("",!0),m("div",vt,[t(g,{"label-width":"120px","label-position":"right",class:"merge-form",onSubmit:u[2]||(u[2]=ae(()=>{},["prevent"]))},{default:n(()=>[t(z,{label:"底图(当前地图)"},{default:n(()=>[y.value?(o(),x(w,{key:0,type:"success",effect:"plain"},{default:n(()=>[h(M(y.value),1)]),_:1})):(o(),c("span",ft,"未设置"))]),_:1}),t(z,{label:"合并进来的地图",required:""},{default:n(()=>[t(Z,{modelValue:b.value,"onUpdate:modelValue":u[0]||(u[0]=e=>b.value=e),multiple:"",filterable:"",loading:k.value,disabled:!y.value,placeholder:"选择 1 张及以上要合并进当前地图的地图",style:{width:"100%"}},{default:n(()=>[(o(!0),c(U,null,G(f.value,e=>(o(),x(H,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","disabled"])]),_:1}),t(z,{label:"另存为",required:""},{default:n(()=>[t(Q,{modelValue:C.value,"onUpdate:modelValue":u[1]||(u[1]=e=>C.value=e),disabled:!y.value,placeholder:"目标地图名称(与当前地图同名则覆盖当前地图)",clearable:"",maxlength:"60"},null,8,["modelValue","disabled"])]),_:1}),t(z,null,{default:n(()=>[t(K,{type:"primary",loading:$.value,disabled:!V.value,onClick:A},{default:n(()=>[...u[4]||(u[4]=[h("开始合并",-1)])]),_:1},8,["loading","disabled"]),t(K,{text:"",disabled:!y.value,onClick:s},{default:n(()=>[...u[5]||(u[5]=[h("重置",-1)])]),_:1},8,["disabled"]),m("span",gt,"已选 "+M(b.value.length)+" 张",1)]),_:1})]),_:1}),y.value?(o(),c("div",_t,[u[7]||(u[7]=m("div",{class:"order-title"},"叠加顺序",-1)),m("ol",yt,[m("li",bt,[t(w,{size:"small",type:"success",effect:"plain"},{default:n(()=>[...u[6]||(u[6]=[h("底图",-1)])]),_:1}),m("span",wt,M(y.value),1)]),(o(!0),c(U,null,G(b.value,(e,a)=>(o(),c("li",{key:e,class:"order-item"},[t(w,{size:"small",type:"info",effect:"plain"},{default:n(()=>[h("叠加 "+M(a+1),1)]),_:2},1024),m("span",ht,M(e),1)]))),128))])])):O("",!0)])])}}}),$t=ne(kt,[["__scopeId","data-v-bd67282a"]]),Mt={class:"map-mgr-page"},Ct={class:"mm-section"},St={class:"map-mgr-header"},xt={class:"actions"},Vt={key:0},jt={key:1},Et={class:"mm-body"},It={class:"map-name"},Nt={class:"mm-detail-head"},Tt={class:"mm-detail-title"},Bt={class:"map-name"},Ot={key:0,class:"mm-detail-meta"},Rt={class:"mm-json-wrap"},Jt=le({__name:"MapManagementView",setup(r){const l=Ae(),d=v(),_=v("maps");function k(){_.value="maps",w()}const $=v(!1),T=v([]),y=v(""),b=v(""),C=v(""),f=v(""),V=v(""),S=v(""),s=v(!1),R=N(()=>T.value.find(e=>e.name===f.value)?.isCurrent??!1);function A({row:e}){const a=[];return e.isCurrent&&a.push("current-row"),e.name===f.value&&a.push("viewing-row"),a.join(" ")}async function j(e){s.value=!0,S.value="",V.value="";try{const a=await P.readContent(e);V.value=a.path,S.value=a.content}catch(a){E.error(`加载地图配置失败:${a.message}`)}finally{s.value=!1}}async function u(e){f.value=e.name,await j(e.name),await fe(),d.value?.setCurrentRow(e)}function J(e){f.value===e.name&&S.value||u(e)}async function w(){$.value=!0;try{const e=await P.list();T.value=e.maps,y.value=e.directory;const a=e.maps.find(p=>p.isCurrent);if(b.value=a?.name??"",f.value&&!e.maps.some(p=>p.name===f.value))f.value="",S.value="",V.value="",d.value?.setCurrentRow(void 0);else if(f.value){const p=e.maps.find(I=>I.name===f.value);await j(f.value),p&&(await fe(),d.value?.setCurrentRow(p))}}catch(e){E.error(`加载地图列表失败:${e.message}`)}finally{$.value=!1}}function z(){l.push({path:"/admin/map-editor",query:{new:"1"}})}function H(e){l.push({path:"/admin/map-editor",query:{map:e.name}})}async function Z(e){if(!e.isCurrent){C.value=e.name;try{const a=await P.sceneTaskStatus();if(a.hasTask){const I=a.busyCars.slice(0,5).map(D=>`${D.name}(#${D.id}):${D.reasons.join("、")}`).join(` +`);await Y.alert(`场景内仍有 ${a.busyCount} 台车辆存在任务,无法切换当前地图。 + +${I}`,"禁止切换地图",{type:"warning",confirmButtonText:"我知道了"});return}await Y.confirm(`确认将「${e.name}」设为当前项目默认使用的地图?切换会重新加载场景。`,"切换使用地图",{type:"warning",confirmButtonText:"确认切换",cancelButtonText:"取消"});const p=await P.use(e.name);E.success(`已切换到「${p.name}」:${p.sites} 站点 / ${p.tracks} 路径`),await w()}catch(a){if(a==="cancel"||a==="close")return;E.error(`切换失败:${a.message}`)}finally{C.value=""}}}const Q=/^[^\\/:*?"<>|]+$/;async function K(e){try{const p=((await Y.prompt("请输入新的地图名称","重命名地图",{inputValue:e.name,inputPattern:Q,inputErrorMessage:'名称不能包含 \\ / : * ? " < > | 等字符',confirmButtonText:"确定",cancelButtonText:"取消"})).value??"").trim();if(!p||p===e.name)return;C.value=e.name,await P.rename(e.name,p),f.value===e.name&&(f.value=p),E.success(`已重命名为「${p}」`),await w()}catch(a){if(a==="cancel"||a==="close")return;E.error(`重命名失败:${a.message}`)}finally{C.value=""}}async function g(e){try{await Y.confirm(`确认删除地图「${e.name}」?该操作会从固定文件夹中移除对应 JSON 文件,不可恢复。`,"删除地图",{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消",confirmButtonClass:"el-button--danger"}),await P.delete(e.name),f.value===e.name&&(f.value="",S.value="",V.value="",d.value?.setCurrentRow(void 0)),E.success(`已删除「${e.name}」`),await w()}catch(a){if(a==="cancel"||a==="close")return;E.error(`删除失败:${a.message}`)}}return de(w),(e,a)=>{const p=pe,I=Ce,D=Se,W=be,X=$e,L=Ue,F=ge,ee=Pe,ie=ze,oe=ye;return o(),c("div",Mt,[t(ie,{modelValue:_.value,"onUpdate:modelValue":a[0]||(a[0]=B=>_.value=B),type:"border-card",class:"map-mgr-tabs admin-tabs"},{default:n(()=>[t(ee,{label:"服务器地图",name:"maps"},{default:n(()=>[m("div",Ct,[m("div",St,[a[3]||(a[3]=m("span",{class:"subtitle"}," 统一维护后台所有地图资源(固定文件夹 / JSON),可新增 / 使用 / 重命名 / 编辑 / 删除。 ",-1)),m("div",xt,[t(p,{loading:$.value,onClick:w},{default:n(()=>[...a[1]||(a[1]=[h("刷新",-1)])]),_:1},8,["loading"]),t(p,{type:"primary",onClick:z},{default:n(()=>[...a[2]||(a[2]=[h("新增地图",-1)])]),_:1})])]),y.value?(o(),x(I,{key:0,class:"dir-tip",type:"info",closable:!1,"show-icon":""},{title:n(()=>[a[5]||(a[5]=h(" 地图文件夹:",-1)),m("code",null,M(y.value),1),b.value?(o(),c("span",Vt,[a[4]||(a[4]=h(" · 当前使用:",-1)),m("strong",null,M(b.value),1)])):(o(),c("span",jt," · 当前未设置默认使用地图"))]),_:1})):O("",!0),m("div",Et,[t(L,{shadow:"never",class:"mm-list-card"},{default:n(()=>[ce((o(),x(X,{ref_key:"tableRef",ref:d,data:T.value,class:"map-table",border:"","highlight-current-row":"","row-key":"name","row-class-name":A,"empty-text":"固定文件夹内还没有地图,点击右上角「新增地图」创建。",onRowClick:J},{default:n(()=>[t(W,{label:"地图名称","min-width":"180"},{default:n(({row:B})=>[m("span",It,M(B.name),1),B.isCurrent?(o(),x(D,{key:0,size:"small",type:"success",effect:"dark",class:"current-tag"},{default:n(()=>[...a[6]||(a[6]=[h(" 使用中 ",-1)])]),_:1})):O("",!0)]),_:1}),t(W,{label:"修改时间",prop:"modified",width:"170"}),t(W,{label:"操作",width:"260",align:"right"},{default:n(({row:B})=>[t(p,{size:"small",type:"primary",plain:"",disabled:B.isCurrent,loading:C.value===B.name,onClick:ae(i=>Z(B),["stop"])},{default:n(()=>[h(M(B.isCurrent?"使用中":"使用"),1)]),_:2},1032,["disabled","loading","onClick"]),t(p,{size:"small",onClick:ae(i=>K(B),["stop"])},{default:n(()=>[...a[7]||(a[7]=[h("重命名",-1)])]),_:1},8,["onClick"]),t(p,{size:"small",onClick:ae(i=>H(B),["stop"])},{default:n(()=>[...a[8]||(a[8]=[h("编辑",-1)])]),_:1},8,["onClick"]),t(p,{size:"small",type:"danger",plain:"",onClick:ae(i=>g(B),["stop"])},{default:n(()=>[...a[9]||(a[9]=[h("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[oe,$.value]])]),_:1}),t(L,{shadow:"never",class:"mm-detail-card"},{default:n(()=>[f.value?(o(),c(U,{key:1},[m("div",Nt,[m("div",Tt,[m("span",Bt,M(f.value),1),R.value?(o(),x(D,{key:0,size:"small",type:"success",effect:"dark"},{default:n(()=>[...a[10]||(a[10]=[h("使用中",-1)])]),_:1})):O("",!0)]),V.value?(o(),c("div",Ot,[m("code",null,M(V.value),1)])):O("",!0)]),ce((o(),c("div",Rt,[S.value?(o(),x(nt,{key:0,raw:S.value},null,8,["raw"])):s.value?O("",!0):(o(),x(F,{key:1,description:"未能加载地图配置"}))])),[[oe,s.value]])],64)):(o(),x(F,{key:0,description:"点击左侧地图行,右侧预览 JSON 配置(可按 {} 折叠)"}))]),_:1})])])]),_:1}),t(ee,{label:"多地图连接管理",name:"connections"},{default:n(()=>[t(pt)]),_:1}),t(ee,{label:"地图合并",name:"merge"},{default:n(()=>[t($t,{onMerged:k})]),_:1})]),_:1},8,["modelValue"])])}}}),na=ne(Jt,[["__scopeId","data-v-2d014670"]]);export{na as default}; diff --git a/MiGu.Server/wwwroot/assets/MapManagementView-CccyKhbv.js b/MiGu.Server/wwwroot/assets/MapManagementView-CccyKhbv.js deleted file mode 100644 index 2014a12..0000000 --- a/MiGu.Server/wwwroot/assets/MapManagementView-CccyKhbv.js +++ /dev/null @@ -1,4 +0,0 @@ -import{aI as te,bI as he,b7 as ae,b9 as d,aE as h,aB as _,aH as t,R as se,bt as oe,bn as xe,r as le,bc as Ve,bJ as n,aG as g,bK as re,bA as ie,aC as E,ab as ue,bq as B,_ as Ee,G as Ie,N as ce,O as de,a4 as pe,ai as L,bj as J,S as Te,bh as p,bg as Be,ax as Q,X as M,Y as j,aa as me,Z as fe,ak as ne,E as ge,aD as W,bL as Ne,ad as ve,ac as ze,bx as Oe,a9 as Ue}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{b as A}from"./mapEdit-TNAQr3Be.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const _e="mapEditor.mapConnections.v1",be="mapEditor.mapIdRegistry.v1";function K(){try{const i=localStorage.getItem(_e);if(!i)return[];const s=JSON.parse(i);return Array.isArray(s)?s:[]}catch{return[]}}function ee(i){localStorage.setItem(_e,JSON.stringify(i))}function Ae(){try{return JSON.parse(localStorage.getItem(be)??"{}")||{}}catch{return{}}}function De(i){localStorage.setItem(be,JSON.stringify(i))}function X(i){if(!i)return 0;const s=Ae();if(s[i]!=null)return s[i];const b=Object.values(s).reduce((S,v)=>Math.max(S,v),0)+1;return s[i]=b,De(s),b}function Z(i){return new Promise(s=>setTimeout(()=>s(i),60))}const P={list(){return Z(K().slice().sort((i,s)=>s.id-i.id))},create(i){const s=K(),S={id:s.reduce((v,$)=>Math.max(v,$.id),0)+1,...i,sourceMapId:X(i.sourceMap),targetMapId:X(i.targetMap)};return s.push(S),ee(s),Z(S)},update(i,s){const b=K(),S=b.findIndex($=>$.id===i);if(S<0)return Promise.reject(new Error("连接不存在或已被删除"));const v={id:i,...s,sourceMapId:X(s.sourceMap),targetMapId:X(s.targetMap)};return b[S]=v,ee(b),Z(v)},remove(i){return ee(K().filter(s=>s.id!==i)),Z({id:i,deleted:!0})},stationSuggestions(){const i=new Set;for(const s of K())s.sourceStation&&i.add(s.sourceStation),s.targetStation&&i.add(s.targetStation);return Array.from(i)}},Pe={class:"mc-panel"},Re={class:"mc-toolbar"},qe={class:"mc-cost mg-mono"},Le={class:"mc-pager"},Je=te({__name:"MapConnectionPanel",setup(i,{expose:s}){const b=p(!1),S=p(!1),v=p([]),$=p([]),V=p([]),f=p(""),m=p(1),x=p(10),y=p(!1),I=p(null),T=p(),u=Be({sourceMap:"",sourceStation:"",targetMap:"",targetStation:"",cost:1e3}),R={sourceMap:[{required:!0,message:"请选择起始地图",trigger:"change"}],sourceStation:[{required:!0,message:"请选择起始切换点站点",trigger:"change"}],targetMap:[{required:!0,message:"请选择目的地图",trigger:"change"}],targetStation:[{required:!0,message:"请选择目的切换点站点",trigger:"change"}],cost:[{required:!0,message:"请输入转移代价",trigger:"blur"}]},q=Q(()=>{const c=f.value.trim().toLowerCase();return c?v.value.filter(e=>e.sourceMap.toLowerCase().includes(c)||e.targetMap.toLowerCase().includes(c)):v.value}),k=Q(()=>{const c=(m.value-1)*x.value;return q.value.slice(c,c+x.value)});he([f,x],()=>{m.value=1});async function a(){b.value=!0;try{v.value=await P.list(),V.value=P.stationSuggestions()}catch(c){M.error(`加载地图连接失败:${c.message}`)}finally{b.value=!1}}async function l(){try{const c=await A.list();$.value=c.maps.map(e=>e.name)}catch{$.value=[]}}function r(){u.sourceMap="",u.sourceStation="",u.targetMap="",u.targetStation="",u.cost=1e3}function C(){I.value=null,r(),V.value=P.stationSuggestions(),y.value=!0}function N(c){I.value=c.id,u.sourceMap=c.sourceMap,u.sourceStation=c.sourceStation,u.targetMap=c.targetMap,u.targetStation=c.targetStation,u.cost=c.cost,V.value=P.stationSuggestions(),y.value=!0}function D(){T.value?.clearValidate()}async function F(){T.value&&await T.value.validate(async c=>{if(c){S.value=!0;try{const e={sourceMap:u.sourceMap,sourceStation:u.sourceStation,targetMap:u.targetMap,targetStation:u.targetStation,cost:u.cost};I.value===null?(await P.create(e),M.success("已添加地图连接")):(await P.update(I.value,e),M.success("已更新地图连接")),y.value=!1,await a()}catch(e){M.error(`保存失败:${e.message}`)}finally{S.value=!1}}})}async function U(c){try{await j.confirm(`确认删除「${c.sourceMap} → ${c.targetMap}」这条地图连接?`,"删除地图连接",{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消",confirmButtonClass:"el-button--danger"}),await P.remove(c.id),M.success("已删除"),k.value.length===1&&m.value>1&&(m.value-=1),await a()}catch(e){if(e==="cancel"||e==="close")return;M.error(`删除失败:${e.message}`)}}return ae(()=>{a(),l()}),s({refresh:a}),(c,e)=>{const w=se,z=le,O=ue,ye=me,we=Ee,Y=fe,H=pe,G=de,Me=Te,Se=ce,$e=Ie,ke=ie;return d(),h("div",Pe,[_("div",Re,[t(w,{modelValue:f.value,"onUpdate:modelValue":e[0]||(e[0]=o=>f.value=o),class:"mc-search",placeholder:"请输入地图名称搜索",clearable:"","prefix-icon":oe(xe)},null,8,["modelValue","prefix-icon"]),t(z,{type:"primary",icon:oe(Ve),onClick:C},{default:n(()=>[...e[10]||(e[10]=[g("添加地图关系",-1)])]),_:1},8,["icon"])]),re((d(),E(ye,{data:k.value,class:"mc-table",border:"","empty-text":"还没有地图连接关系,点击右上角「添加地图关系」创建跨楼层 / 拼接连接。"},{default:n(()=>[t(O,{prop:"id",label:"ID",width:"80",sortable:""}),t(O,{prop:"sourceMap",label:"起始地图名称","min-width":"160","show-overflow-tooltip":""}),t(O,{prop:"sourceMapId",label:"起始地图ID",width:"110"}),t(O,{prop:"sourceStation",label:"起始切换点站点","min-width":"150","show-overflow-tooltip":""}),t(O,{prop:"targetMap",label:"目的地图名称","min-width":"160","show-overflow-tooltip":""}),t(O,{prop:"targetMapId",label:"目的地图ID",width:"110"}),t(O,{prop:"targetStation",label:"目的切换点站点","min-width":"150","show-overflow-tooltip":""}),t(O,{label:"转移代价(cm)",width:"130"},{default:n(({row:o})=>[_("span",qe,B(o.cost),1)]),_:1}),t(O,{label:"操作",width:"130",align:"right",fixed:"right"},{default:n(({row:o})=>[t(z,{link:"",type:"primary",onClick:Ce=>N(o)},{default:n(()=>[...e[11]||(e[11]=[g("编辑",-1)])]),_:1},8,["onClick"]),t(z,{link:"",type:"danger",onClick:Ce=>U(o)},{default:n(()=>[...e[12]||(e[12]=[g("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ke,b.value]]),_("div",Le,[t(we,{"current-page":m.value,"onUpdate:currentPage":e[1]||(e[1]=o=>m.value=o),"page-size":x.value,"onUpdate:pageSize":e[2]||(e[2]=o=>x.value=o),total:q.value.length,"page-sizes":[10,20,50],layout:"total, sizes, prev, pager, next, jumper",background:""},null,8,["current-page","page-size","total"])]),t($e,{modelValue:y.value,"onUpdate:modelValue":e[9]||(e[9]=o=>y.value=o),title:I.value===null?"添加地图关系":"编辑地图关系",width:"520px",class:"map-conn-dialog","append-to-body":"",onClosed:D},{footer:n(()=>[t(z,{onClick:e[8]||(e[8]=o=>y.value=!1)},{default:n(()=>[...e[13]||(e[13]=[g("取消",-1)])]),_:1}),t(z,{type:"primary",loading:S.value,onClick:F},{default:n(()=>[...e[14]||(e[14]=[g("确定",-1)])]),_:1},8,["loading"])]),default:n(()=>[t(Se,{ref_key:"formRef",ref:T,model:u,rules:R,"label-width":"120px","label-position":"right"},{default:n(()=>[t(G,{label:"起始地图",prop:"sourceMap"},{default:n(()=>[t(H,{modelValue:u.sourceMap,"onUpdate:modelValue":e[3]||(e[3]=o=>u.sourceMap=o),placeholder:"请选择起始地图",filterable:"",style:{width:"100%"}},{default:n(()=>[(d(!0),h(L,null,J($.value,o=>(d(),E(Y,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(G,{label:"起始切换点站点",prop:"sourceStation"},{default:n(()=>[t(H,{modelValue:u.sourceStation,"onUpdate:modelValue":e[4]||(e[4]=o=>u.sourceStation=o),placeholder:"请选择起始切换点站点",filterable:"","allow-create":"","default-first-option":"",style:{width:"100%"}},{default:n(()=>[(d(!0),h(L,null,J(V.value,o=>(d(),E(Y,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(G,{label:"目的地图",prop:"targetMap"},{default:n(()=>[t(H,{modelValue:u.targetMap,"onUpdate:modelValue":e[5]||(e[5]=o=>u.targetMap=o),placeholder:"请选择目的地图",filterable:"",style:{width:"100%"}},{default:n(()=>[(d(!0),h(L,null,J($.value,o=>(d(),E(Y,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(G,{label:"目的切换点站点",prop:"targetStation"},{default:n(()=>[t(H,{modelValue:u.targetStation,"onUpdate:modelValue":e[6]||(e[6]=o=>u.targetStation=o),placeholder:"请选择目的切换点站点",filterable:"","allow-create":"","default-first-option":"",style:{width:"100%"}},{default:n(()=>[(d(!0),h(L,null,J(V.value,o=>(d(),E(Y,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(G,{label:"转移代价(cm)",prop:"cost"},{default:n(()=>[t(Me,{modelValue:u.cost,"onUpdate:modelValue":e[7]||(e[7]=o=>u.cost=o),min:0,step:100,controls:!1,style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),je=ne(Je,[["__scopeId","data-v-bad72017"]]),Fe={class:"mm-merge"},Ge={class:"merge-body"},Ke={key:1,class:"merge-hint"},Ye={class:"merge-hint"},He={key:0,class:"merge-order"},Xe={class:"order-list"},Ze={class:"order-item"},Qe={class:"order-name"},We={class:"order-name"},et=te({__name:"MapMergePanel",emits:["merged"],setup(i,{expose:s,emit:b}){const S=b,v=p(!1),$=p(!1),V=p([]),f=p(""),m=p([]),x=p(""),y=Q(()=>V.value.filter(k=>k!==f.value)),I=Q(()=>!!f.value&&m.value.length>=1&&x.value.trim().length>0);async function T(){v.value=!0;try{const k=await A.list();V.value=k.maps.map(a=>a.name),f.value=k.maps.find(a=>a.isCurrent)?.name??"",m.value=m.value.filter(a=>y.value.includes(a))}catch(k){M.error(`加载地图列表失败:${k.message}`)}finally{v.value=!1}}function u(){m.value=[],x.value=""}async function R(k){const a=[...m.value],l=x.value.trim(),r=await A.merge(a,l,k);if(r.ok){const C=r.data.overwroteCurrent?"(已覆盖当前地图)":"";M.success(`已把 ${r.data.sourceCount} 张地图合并进「${r.data.baseMap}」并另存为「${r.data.name}」${C}(站点 ${r.data.sites} · 路径 ${r.data.tracks})`),u(),await T(),S("merged",l);return}if(r.conflict){const C=l===f.value?`目标与当前地图「${l}」同名,将用合并结果覆盖当前地图,是否继续?`:`地图「${l}」已存在,是否替换原地图?`;try{await j.confirm(C,"目标地图已存在",{type:"warning",confirmButtonText:"替换",cancelButtonText:"取消"})}catch{return}await R(!0);return}M.error(r.message)}async function q(){if(I.value){$.value=!0;try{await R(!1)}finally{$.value=!1}}}return ae(T),s({refresh:T}),(k,a)=>{const l=ge,r=ve,C=de,N=fe,D=pe,F=se,U=le,c=ce;return d(),h("div",Fe,[t(l,{class:"merge-tip",type:"info",closable:!1,"show-icon":""},{title:n(()=>[...a[3]||(a[3]=[g(" 与桌面端「合并」一致:以",-1),_("strong",null,"当前使用地图",-1),g("为底图,把选中的地图依次合并进来(自动分配独立图层、 站点 / 路径 ID 自动避让,互不冲突),再另存为目标地图。可用于多楼层汇总、多区域拼接。 ",-1)])]),_:1}),!v.value&&!f.value?(d(),E(l,{key:0,class:"merge-tip",type:"warning",closable:!1,"show-icon":"",title:"当前未设置「使用中」地图。请先到「服务器地图」页对某张地图点「使用」,再来执行合并。"})):W("",!0),_("div",Ge,[t(c,{"label-width":"120px","label-position":"right",class:"merge-form",onSubmit:a[2]||(a[2]=Ne(()=>{},["prevent"]))},{default:n(()=>[t(C,{label:"底图(当前地图)"},{default:n(()=>[f.value?(d(),E(r,{key:0,type:"success",effect:"plain"},{default:n(()=>[g(B(f.value),1)]),_:1})):(d(),h("span",Ke,"未设置"))]),_:1}),t(C,{label:"合并进来的地图",required:""},{default:n(()=>[t(D,{modelValue:m.value,"onUpdate:modelValue":a[0]||(a[0]=e=>m.value=e),multiple:"",filterable:"",loading:v.value,disabled:!f.value,placeholder:"选择 1 张及以上要合并进当前地图的地图",style:{width:"100%"}},{default:n(()=>[(d(!0),h(L,null,J(y.value,e=>(d(),E(N,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","disabled"])]),_:1}),t(C,{label:"另存为",required:""},{default:n(()=>[t(F,{modelValue:x.value,"onUpdate:modelValue":a[1]||(a[1]=e=>x.value=e),disabled:!f.value,placeholder:"目标地图名称(与当前地图同名则覆盖当前地图)",clearable:"",maxlength:"60"},null,8,["modelValue","disabled"])]),_:1}),t(C,null,{default:n(()=>[t(U,{type:"primary",loading:$.value,disabled:!I.value,onClick:q},{default:n(()=>[...a[4]||(a[4]=[g("开始合并",-1)])]),_:1},8,["loading","disabled"]),t(U,{text:"",disabled:!f.value,onClick:u},{default:n(()=>[...a[5]||(a[5]=[g("重置",-1)])]),_:1},8,["disabled"]),_("span",Ye,"已选 "+B(m.value.length)+" 张",1)]),_:1})]),_:1}),f.value?(d(),h("div",He,[a[7]||(a[7]=_("div",{class:"order-title"},"叠加顺序",-1)),_("ol",Xe,[_("li",Ze,[t(r,{size:"small",type:"success",effect:"plain"},{default:n(()=>[...a[6]||(a[6]=[g("底图",-1)])]),_:1}),_("span",Qe,B(f.value),1)]),(d(!0),h(L,null,J(m.value,(e,w)=>(d(),h("li",{key:e,class:"order-item"},[t(r,{size:"small",type:"info",effect:"plain"},{default:n(()=>[g("叠加 "+B(w+1),1)]),_:2},1024),_("span",We,B(e),1)]))),128))])])):W("",!0)])])}}}),tt=ne(et,[["__scopeId","data-v-bd67282a"]]),at={class:"map-mgr-page"},lt={class:"mm-section"},nt={class:"map-mgr-header"},ot={class:"actions"},st={key:0},rt={key:1},it={class:"map-name"},ut=te({__name:"MapManagementView",setup(i){const s=Oe(),b=p("maps");function S(){b.value="maps",y()}const v=p(!1),$=p([]),V=p(""),f=p(""),m=p("");function x({row:a}){return a.isCurrent?"current-row":""}async function y(){v.value=!0;try{const a=await A.list();$.value=a.maps,V.value=a.directory;const l=a.maps.find(r=>r.isCurrent);f.value=l?.name??""}catch(a){M.error(`加载地图列表失败:${a.message}`)}finally{v.value=!1}}function I(){s.push({path:"/admin/map-editor",query:{new:"1"}})}function T(a){s.push({path:"/admin/map-editor",query:{map:a.name}})}async function u(a){if(!a.isCurrent){m.value=a.name;try{const l=await A.sceneTaskStatus();if(l.hasTask){const C=l.busyCars.slice(0,5).map(N=>`${N.name}(#${N.id}):${N.reasons.join("、")}`).join(` -`);await j.alert(`场景内仍有 ${l.busyCount} 台车辆存在任务,无法切换当前地图。 - -${C}`,"禁止切换地图",{type:"warning",confirmButtonText:"我知道了"});return}await j.confirm(`确认将「${a.name}」设为当前项目默认使用的地图?切换会重新加载场景。`,"切换使用地图",{type:"warning",confirmButtonText:"确认切换",cancelButtonText:"取消"});const r=await A.use(a.name);M.success(`已切换到「${r.name}」:${r.sites} 站点 / ${r.tracks} 路径`),await y()}catch(l){if(l==="cancel"||l==="close")return;M.error(`切换失败:${l.message}`)}finally{m.value=""}}}const R=/^[^\\/:*?"<>|]+$/;async function q(a){try{const r=((await j.prompt("请输入新的地图名称","重命名地图",{inputValue:a.name,inputPattern:R,inputErrorMessage:'名称不能包含 \\ / : * ? " < > | 等字符',confirmButtonText:"确定",cancelButtonText:"取消"})).value??"").trim();if(!r||r===a.name)return;m.value=a.name,await A.rename(a.name,r),M.success(`已重命名为「${r}」`),await y()}catch(l){if(l==="cancel"||l==="close")return;M.error(`重命名失败:${l.message}`)}finally{m.value=""}}async function k(a){try{await j.confirm(`确认删除地图「${a.name}」?该操作会从固定文件夹中移除对应 JSON 文件,不可恢复。`,"删除地图",{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消",confirmButtonClass:"el-button--danger"}),await A.delete(a.name),M.success(`已删除「${a.name}」`),await y()}catch(l){if(l==="cancel"||l==="close")return;M.error(`删除失败:${l.message}`)}}return ae(y),(a,l)=>{const r=le,C=ge,N=ve,D=ue,F=me,U=Ue,c=ze,e=ie;return d(),h("div",at,[t(c,{modelValue:b.value,"onUpdate:modelValue":l[0]||(l[0]=w=>b.value=w),type:"border-card",class:"map-mgr-tabs admin-tabs"},{default:n(()=>[t(U,{label:"服务器地图",name:"maps"},{default:n(()=>[_("div",lt,[_("div",nt,[l[3]||(l[3]=_("span",{class:"subtitle"}," 统一维护后台所有地图资源(固定文件夹 / JSON),可新增 / 使用 / 重命名 / 编辑 / 删除。 ",-1)),_("div",ot,[t(r,{loading:v.value,onClick:y},{default:n(()=>[...l[1]||(l[1]=[g("刷新",-1)])]),_:1},8,["loading"]),t(r,{type:"primary",onClick:I},{default:n(()=>[...l[2]||(l[2]=[g("新增地图",-1)])]),_:1})])]),V.value?(d(),E(C,{key:0,class:"dir-tip",type:"info",closable:!1,"show-icon":""},{title:n(()=>[l[5]||(l[5]=g(" 地图文件夹:",-1)),_("code",null,B(V.value),1),f.value?(d(),h("span",st,[l[4]||(l[4]=g(" · 当前使用:",-1)),_("strong",null,B(f.value),1)])):(d(),h("span",rt," · 当前未设置默认使用地图"))]),_:1})):W("",!0),re((d(),E(F,{data:$.value,class:"map-table",border:"","row-class-name":x,"empty-text":"固定文件夹内还没有地图,点击右上角「新增地图」创建。"},{default:n(()=>[t(D,{label:"地图名称","min-width":"220"},{default:n(({row:w})=>[_("span",it,B(w.name),1),w.isCurrent?(d(),E(N,{key:0,size:"small",type:"success",effect:"dark",class:"current-tag"},{default:n(()=>[...l[6]||(l[6]=[g(" 使用中 ",-1)])]),_:1})):W("",!0)]),_:1}),t(D,{label:"修改时间",prop:"modified",width:"190"}),t(D,{label:"操作",width:"360",align:"right"},{default:n(({row:w})=>[t(r,{size:"small",type:"primary",disabled:w.isCurrent,loading:m.value===w.name,onClick:z=>u(w)},{default:n(()=>[g(B(w.isCurrent?"使用中":"使用"),1)]),_:2},1032,["disabled","loading","onClick"]),t(r,{size:"small",onClick:z=>q(w)},{default:n(()=>[...l[7]||(l[7]=[g("重命名",-1)])]),_:1},8,["onClick"]),t(r,{size:"small",onClick:z=>T(w)},{default:n(()=>[...l[8]||(l[8]=[g("编辑",-1)])]),_:1},8,["onClick"]),t(r,{size:"small",type:"danger",plain:"",onClick:z=>k(w)},{default:n(()=>[...l[9]||(l[9]=[g("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[e,v.value]])])]),_:1}),t(U,{label:"多地图连接管理",name:"connections"},{default:n(()=>[t(je)]),_:1}),t(U,{label:"地图合并",name:"merge"},{default:n(()=>[t(tt,{onMerged:S})]),_:1})]),_:1},8,["modelValue"])])}}}),Vt=ne(ut,[["__scopeId","data-v-9727d426"]]);export{Vt as default}; diff --git a/MiGu.Server/wwwroot/assets/MapManagementView-DJMxI8po.css b/MiGu.Server/wwwroot/assets/MapManagementView-DJMxI8po.css deleted file mode 100644 index fe235ec..0000000 --- a/MiGu.Server/wwwroot/assets/MapManagementView-DJMxI8po.css +++ /dev/null @@ -1 +0,0 @@ -.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-button-width-large:40px;--el-pagination-button-height-large:40px;--el-pagination-item-gap:16px;white-space:nowrap;color:var(--el-pagination-text-color);font-size:var(--el-pagination-font-size);align-items:center;font-weight:400;display:flex}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield}.el-pagination .el-select{width:128px}.el-pagination .btn-prev,.el-pagination .btn-next{font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box;border:none;justify-content:center;align-items:center;padding:0 4px;display:flex}.el-pagination .btn-prev *,.el-pagination .btn-next *{pointer-events:none}.el-pagination .btn-prev:focus,.el-pagination .btn-next:focus{outline:none}.el-pagination .btn-prev:hover,.el-pagination .btn-next:hover{color:var(--el-pagination-hover-color)}.el-pagination .btn-prev.is-active,.el-pagination .btn-next.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pagination .btn-prev.is-active.is-disabled,.el-pagination .btn-next.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pagination .btn-prev:disabled,.el-pagination .btn-prev.is-disabled,.el-pagination .btn-next:disabled,.el-pagination .btn-next.is-disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination .btn-prev:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-prev .el-icon,.el-pagination .btn-next .el-icon{width:inherit;font-size:12px;font-weight:700;display:block}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{margin-left:var(--el-pagination-item-gap);color:var(--el-text-color-regular);font-weight:400}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{margin-left:var(--el-pagination-item-gap);color:var(--el-text-color-regular);align-items:center;font-weight:400;display:flex}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{text-align:center;box-sizing:border-box}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{flex:1;justify-content:flex-end;align-items:center;display:flex}.el-pagination.is-background .btn-prev,.el-pagination.is-background .btn-next,.el-pagination.is-background .el-pager li{background-color:var(--el-pagination-button-bg-color);margin:0 4px}.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .el-pager li:disabled,.el-pagination.is-background .el-pager li.is-disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-prev,.el-pagination--small .btn-next,.el-pagination--small .el-pager li{height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);font-size:var(--el-pagination-font-size-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small span:not([class*=suffix]),.el-pagination--small button{font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select{width:100px}.el-pagination--large .btn-prev,.el-pagination--large .btn-next,.el-pagination--large .el-pager li{height:var(--el-pagination-button-height-large);line-height:var(--el-pagination-button-height-large);min-width:var(--el-pagination-button-width-large)}.el-pagination--large .el-select .el-input{width:160px}.el-pager{-webkit-user-select:none;user-select:none;align-items:center;margin:0;padding:0;font-size:0;list-style:none;display:flex}.el-pager li{font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box;border:none;justify-content:center;align-items:center;padding:0 4px;display:flex}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:none}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pager li:disabled,.el-pager li.is-disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.mc-panel[data-v-bad72017]{height:100%;display:flex;flex-direction:column;gap:12px;min-height:0}.mc-toolbar[data-v-bad72017]{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.mc-search[data-v-bad72017]{width:300px;max-width:60%}.mc-table[data-v-bad72017]{flex:1;min-height:0}.mc-cost[data-v-bad72017]{font-variant-numeric:tabular-nums}.mc-pager[data-v-bad72017]{flex-shrink:0;display:flex;justify-content:center;padding-top:2px}.mm-merge[data-v-bd67282a]{height:100%;display:flex;flex-direction:column;gap:14px;min-height:0;overflow:auto}.merge-tip[data-v-bd67282a]{flex-shrink:0}.merge-body[data-v-bd67282a]{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}.merge-form[data-v-bd67282a]{flex:1 1 440px;max-width:580px}.merge-hint[data-v-bd67282a]{margin-left:12px;font-size:12.5px;color:var(--mg-text-muted)}.merge-order[data-v-bd67282a]{flex:0 1 280px;min-width:220px;padding:12px 16px;border-radius:var(--mg-radius);background:rgba(var(--mg-accent-rgb),.08);border:1px solid var(--mg-veil-border)}.order-title[data-v-bd67282a]{font-size:13px;font-weight:600;color:var(--mg-text-light);margin-bottom:10px}.order-list[data-v-bd67282a]{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:8px}.order-item[data-v-bd67282a]{display:flex;align-items:center;gap:8px}.order-name[data-v-bd67282a]{color:var(--mg-text-light);font-size:13px;word-break:break-all}.map-mgr-page[data-v-9727d426]{flex:1;min-height:0;display:flex;flex-direction:column;box-sizing:border-box}.map-mgr-tabs[data-v-9727d426]{flex:1;min-height:0;display:flex;flex-direction:column}.mm-section[data-v-9727d426]{height:100%;display:flex;flex-direction:column;gap:14px;min-height:0}.map-mgr-header[data-v-9727d426]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}.subtitle[data-v-9727d426]{font-size:12.5px;line-height:1.5;color:var(--mg-text-muted)}.dir-tip[data-v-9727d426]{flex-shrink:0}.dir-tip code[data-v-9727d426]{font-family:var(--mg-font-mono, monospace);padding:1px 6px;border-radius:4px;background:var(--mg-veil-2);color:var(--mg-text-light)}.map-table[data-v-9727d426]{flex:1;min-height:0}.map-name[data-v-9727d426]{font-weight:500;color:var(--mg-text-light)}.current-tag[data-v-9727d426]{margin-left:8px}.map-table[data-v-9727d426] .current-row>td.el-table__cell{background:rgba(var(--mg-status-success-rgb),.16)!important}.map-table[data-v-9727d426] .current-row:hover>td.el-table__cell{background:rgba(var(--mg-status-success-rgb),.24)!important} diff --git a/MiGu.Server/wwwroot/assets/MapManagementView-DSxBVRvt.css b/MiGu.Server/wwwroot/assets/MapManagementView-DSxBVRvt.css new file mode 100644 index 0000000..c7fcb08 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/MapManagementView-DSxBVRvt.css @@ -0,0 +1 @@ +.jfn[data-v-99ed5a4d]{font-family:var(--mg-font-mono, Consolas, monospace);font-size:12px;line-height:1.55;color:var(--mg-text-light, #e8e0f0)}.jfn-line[data-v-99ed5a4d]{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px;cursor:default;user-select:text}.jfn-line[data-v-99ed5a4d]:not(.jfn-primitive):not(.jfn-close){cursor:pointer}.jfn-toggle[data-v-99ed5a4d]{display:inline-block;width:14px;flex-shrink:0;color:var(--mg-text-muted, #9a8fb0);font-size:10px}.jfn-children[data-v-99ed5a4d]{padding-left:16px;border-left:1px solid rgba(255,255,255,.06);margin-left:6px}.jfn-key[data-v-99ed5a4d]{color:#c792ea}.jfn-brace[data-v-99ed5a4d]{color:#89ddff}.jfn-ellipsis[data-v-99ed5a4d]{color:var(--mg-text-muted, #9a8fb0);font-style:italic}.jfn-comma[data-v-99ed5a4d]{color:var(--mg-text-muted, #9a8fb0)}.jfn-val--str[data-v-99ed5a4d]{color:#c3e88d}.jfn-val--num[data-v-99ed5a4d]{color:#f78c6c}.jfn-val--bool[data-v-99ed5a4d]{color:#ffcb6b}.jfn-val--null[data-v-99ed5a4d]{color:#89ddff;font-style:italic}.json-fold-viewer[data-v-af36af72]{flex:1;min-height:0;overflow:auto;padding:4px 2px}.json-fold-fallback[data-v-af36af72]{margin:0;font-family:var(--mg-font-mono, Consolas, monospace);font-size:12px;line-height:1.45;white-space:pre-wrap;word-break:break-all;color:var(--mg-text-light)}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-button-width-large:40px;--el-pagination-button-height-large:40px;--el-pagination-item-gap:16px;white-space:nowrap;color:var(--el-pagination-text-color);font-size:var(--el-pagination-font-size);align-items:center;font-weight:400;display:flex}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield}.el-pagination .el-select{width:128px}.el-pagination .btn-prev,.el-pagination .btn-next{font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box;border:none;justify-content:center;align-items:center;padding:0 4px;display:flex}.el-pagination .btn-prev *,.el-pagination .btn-next *{pointer-events:none}.el-pagination .btn-prev:focus,.el-pagination .btn-next:focus{outline:none}.el-pagination .btn-prev:hover,.el-pagination .btn-next:hover{color:var(--el-pagination-hover-color)}.el-pagination .btn-prev.is-active,.el-pagination .btn-next.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pagination .btn-prev.is-active.is-disabled,.el-pagination .btn-next.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pagination .btn-prev:disabled,.el-pagination .btn-prev.is-disabled,.el-pagination .btn-next:disabled,.el-pagination .btn-next.is-disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination .btn-prev:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-prev .el-icon,.el-pagination .btn-next .el-icon{width:inherit;font-size:12px;font-weight:700;display:block}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{margin-left:var(--el-pagination-item-gap);color:var(--el-text-color-regular);font-weight:400}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{margin-left:var(--el-pagination-item-gap);color:var(--el-text-color-regular);align-items:center;font-weight:400;display:flex}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{text-align:center;box-sizing:border-box}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{flex:1;justify-content:flex-end;align-items:center;display:flex}.el-pagination.is-background .btn-prev,.el-pagination.is-background .btn-next,.el-pagination.is-background .el-pager li{background-color:var(--el-pagination-button-bg-color);margin:0 4px}.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .el-pager li:disabled,.el-pagination.is-background .el-pager li.is-disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-prev,.el-pagination--small .btn-next,.el-pagination--small .el-pager li{height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);font-size:var(--el-pagination-font-size-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small span:not([class*=suffix]),.el-pagination--small button{font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select{width:100px}.el-pagination--large .btn-prev,.el-pagination--large .btn-next,.el-pagination--large .el-pager li{height:var(--el-pagination-button-height-large);line-height:var(--el-pagination-button-height-large);min-width:var(--el-pagination-button-width-large)}.el-pagination--large .el-select .el-input{width:160px}.el-pager{-webkit-user-select:none;user-select:none;align-items:center;margin:0;padding:0;font-size:0;list-style:none;display:flex}.el-pager li{font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box;border:none;justify-content:center;align-items:center;padding:0 4px;display:flex}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:none}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pager li:disabled,.el-pager li.is-disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.mc-panel[data-v-bad72017]{height:100%;display:flex;flex-direction:column;gap:12px;min-height:0}.mc-toolbar[data-v-bad72017]{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.mc-search[data-v-bad72017]{width:300px;max-width:60%}.mc-table[data-v-bad72017]{flex:1;min-height:0}.mc-cost[data-v-bad72017]{font-variant-numeric:tabular-nums}.mc-pager[data-v-bad72017]{flex-shrink:0;display:flex;justify-content:center;padding-top:2px}.mm-merge[data-v-bd67282a]{height:100%;display:flex;flex-direction:column;gap:14px;min-height:0;overflow:auto}.merge-tip[data-v-bd67282a]{flex-shrink:0}.merge-body[data-v-bd67282a]{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}.merge-form[data-v-bd67282a]{flex:1 1 440px;max-width:580px}.merge-hint[data-v-bd67282a]{margin-left:12px;font-size:12.5px;color:var(--mg-text-muted)}.merge-order[data-v-bd67282a]{flex:0 1 280px;min-width:220px;padding:12px 16px;border-radius:var(--mg-radius);background:rgba(var(--mg-accent-rgb),.08);border:1px solid var(--mg-veil-border)}.order-title[data-v-bd67282a]{font-size:13px;font-weight:600;color:var(--mg-text-light);margin-bottom:10px}.order-list[data-v-bd67282a]{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:8px}.order-item[data-v-bd67282a]{display:flex;align-items:center;gap:8px}.order-name[data-v-bd67282a]{color:var(--mg-text-light);font-size:13px;word-break:break-all}.map-mgr-page[data-v-2d014670]{flex:1;min-height:0;display:flex;flex-direction:column;box-sizing:border-box}.map-mgr-tabs[data-v-2d014670]{flex:1;min-height:0;display:flex;flex-direction:column}.mm-section[data-v-2d014670]{height:100%;display:flex;flex-direction:column;gap:14px;min-height:0}.map-mgr-header[data-v-2d014670]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}.subtitle[data-v-2d014670]{font-size:12.5px;line-height:1.5;color:var(--mg-text-muted)}.dir-tip[data-v-2d014670]{flex-shrink:0}.dir-tip code[data-v-2d014670]{font-family:var(--mg-font-mono, monospace);padding:1px 6px;border-radius:4px;background:var(--mg-veil-2);color:var(--mg-text-light)}.mm-body[data-v-2d014670]{flex:1;min-height:0;display:grid;grid-template-columns:minmax(420px,1fr) 1.2fr;gap:14px}.mm-list-card[data-v-2d014670],.mm-detail-card[data-v-2d014670]{min-height:0;display:flex;flex-direction:column;background:#1e0e378c!important;border:1px solid rgba(255,255,255,.08)!important;backdrop-filter:blur(12px)}.mm-list-card[data-v-2d014670] .el-card__body,.mm-detail-card[data-v-2d014670] .el-card__body{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column}.map-table[data-v-2d014670]{flex:1;min-height:0}.map-table[data-v-2d014670] .el-table__row{cursor:pointer}.map-name[data-v-2d014670]{font-weight:500;color:var(--mg-text-light)}.current-tag[data-v-2d014670]{margin-left:8px}.map-table[data-v-2d014670] .current-row>td.el-table__cell{background:rgba(var(--mg-status-success-rgb),.16)!important}.map-table[data-v-2d014670] .current-row:hover>td.el-table__cell{background:rgba(var(--mg-status-success-rgb),.24)!important}.map-table[data-v-2d014670] .viewing-row>td.el-table__cell{background:rgba(var(--mg-accent-rgb, 120, 80, 200),.12)!important}.mm-detail-head[data-v-2d014670]{flex-shrink:0;margin-bottom:10px}.mm-detail-title[data-v-2d014670]{display:flex;align-items:center;gap:8px;margin-bottom:6px}.mm-detail-meta code[data-v-2d014670]{font-family:var(--mg-font-mono, monospace);font-size:11px;color:var(--mg-text-muted);word-break:break-all}.mm-json-wrap[data-v-2d014670]{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden} diff --git a/MiGu.Server/wwwroot/assets/MapMonitorConfigView-BC-sAP6v.css b/MiGu.Server/wwwroot/assets/MapMonitorConfigView-BC-sAP6v.css deleted file mode 100644 index 44ff70f..0000000 --- a/MiGu.Server/wwwroot/assets/MapMonitorConfigView-BC-sAP6v.css +++ /dev/null @@ -1 +0,0 @@ -.mmcg[data-v-242bdaa0]{display:flex;flex-direction:column;gap:8px;padding:12px 14px;background:var(--mg-veil-1);border:1px solid var(--mg-veil-border);border-radius:8px}.mmcg-head[data-v-242bdaa0]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mmcg-title[data-v-242bdaa0]{font-weight:600;font-size:13px;color:var(--mg-text-light)}.mmcg-head .spacer[data-v-242bdaa0]{flex:1}.mmcg-empty[data-v-242bdaa0]{margin:4px 0 0;font-size:12px;font-style:italic}.muted[data-v-242bdaa0]{color:var(--mg-text-dim)}.mmcg-grid[data-v-242bdaa0]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 12px;align-items:center}.mmcg-grid[data-v-242bdaa0] .el-checkbox{margin-right:0;height:28px}.mmcg-grid[data-v-242bdaa0] .el-checkbox__label{color:var(--mg-text-light);font-size:12.5px;font-family:ui-monospace,Menlo,Consolas,monospace}.mmcg-orphans[data-v-242bdaa0]{margin-top:4px}.orphan-list[data-v-242bdaa0]{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.mmc-card[data-v-4d3be43b]{margin:0}.mmc-header[data-v-4d3be43b]{display:flex;align-items:center;gap:8px}.mmc-title[data-v-4d3be43b]{font-weight:600;font-size:15px;color:var(--mg-text-light)}.mmc-header .spacer[data-v-4d3be43b]{flex:1}.mmc-desc[data-v-4d3be43b]{color:var(--mg-text-muted);font-size:12.5px;margin:0 0 12px;line-height:1.7}.mmc-desc code[data-v-4d3be43b]{background:var(--mg-veil-2);padding:1px 5px;border-radius:4px;font-family:ui-monospace,Menlo,Consolas,monospace}.mmc-tabs[data-v-4d3be43b] .el-tabs__item{color:var(--mg-text-muted)!important}.mmc-tabs[data-v-4d3be43b] .el-tabs__item.is-active{color:var(--mg-text-light)!important}.mmc-tab-body[data-v-4d3be43b]{display:flex;flex-direction:column;gap:18px;padding-top:6px} diff --git a/MiGu.Server/wwwroot/assets/MapMonitorConfigView-CYlZhPX2.js b/MiGu.Server/wwwroot/assets/MapMonitorConfigView-CYlZhPX2.js deleted file mode 100644 index 5a1f588..0000000 --- a/MiGu.Server/wwwroot/assets/MapMonitorConfigView-CYlZhPX2.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as K,b9 as c,aE as f,aB as r,bq as S,aH as d,bJ as s,aG as i,ad as L,aC as g,s as q,r as P,aD as B,v as H,ai as G,bj as O,u as X,E as Q,ax as $,ak as F,bh as k,b7 as R,X as V,bg as J,t as W,ac as Y,a9 as Z,bK as ee,bA as te,bt as j,bi as ae,as as le}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{P as se}from"./PermissionGuard-BlMEkqrL.js";/* empty css *//* empty css *//* empty css *//* empty css */import{b as D,r as I,e as ne}from"./reflection-B_glb6eT.js";/* empty css */const oe={class:"mmcg"},ie={class:"mmcg-head"},de={class:"mmcg-title"},ce={key:0,class:"mmcg-empty muted"},re={key:2,class:"mmcg-orphans"},ue={class:"orphan-list"},me=K({__name:"MapMonitorConfigGroup",props:{title:{},available:{},selected:{},emptyTip:{}},emits:["update:selected"],setup(p,{emit:M}){const n=p,m=M,_=$(()=>n.available.length?n.selected.length?`${n.selected.length} / ${n.available.length}`:`白名单空 = 显示全部 (${n.available.length})`:"空"),a=$(()=>n.selected.filter(u=>!n.available.includes(u))),b=$(()=>n.available.length>n.selected.length);function y(u){const e=[...u.filter(l=>typeof l=="string"),...a.value];m("update:selected",e)}function E(){m("update:selected",[...n.available,...a.value])}function h(){m("update:selected",[...a.value])}function x(u){m("update:selected",n.selected.filter(t=>t!==u))}function z(){m("update:selected",n.selected.filter(u=>n.available.includes(u)))}return(u,t)=>{const e=L,l=P,w=q,N=X,T=H,U=Q;return c(),f("section",oe,[r("header",ie,[r("span",de,S(p.title),1),d(e,{size:"small",effect:"plain",type:"info"},{default:s(()=>[i(S(_.value),1)]),_:1}),t[2]||(t[2]=r("div",{class:"spacer"},null,-1)),p.available.length?(c(),g(w,{key:0},{default:s(()=>[d(l,{size:"small",disabled:!b.value,onClick:E},{default:s(()=>[...t[0]||(t[0]=[i("全选",-1)])]),_:1},8,["disabled"]),d(l,{size:"small",disabled:!p.selected.length,onClick:h},{default:s(()=>[...t[1]||(t[1]=[i("清空",-1)])]),_:1},8,["disabled"])]),_:1})):B("",!0)]),p.available.length?(c(),g(T,{key:1,"model-value":p.selected,class:"mmcg-grid","onUpdate:modelValue":y},{default:s(()=>[(c(!0),f(G,null,O(p.available,v=>(c(),g(N,{key:v,value:v,label:v,class:"mmcg-cb"},null,8,["value","label"]))),128))]),_:1},8,["model-value"])):(c(),f("p",ce,S(p.emptyTip),1)),a.value.length?(c(),f("div",re,[d(U,{type:"warning",closable:!1,"show-icon":"",title:`检测到 ${a.value.length} 个残留键(后端已经不再暴露,但仍在白名单中)`},{default:s(()=>[r("div",ue,[(c(!0),f(G,null,O(a.value,v=>(c(),g(e,{key:v,type:"warning",size:"small",closable:"",onClose:o=>x(v)},{default:s(()=>[i(S(v),1)]),_:2},1032,["onClose"]))),128)),d(l,{link:"",type:"warning",size:"small",onClick:z},{default:s(()=>[...t[3]||(t[3]=[i("一键清理全部残留",-1)])]),_:1})])]),_:1},8,["title"])])):B("",!0)])}}}),A=F(me,[["__scopeId","data-v-242bdaa0"]]),pe={class:"mmc-header"},ve={class:"mmc-tab-body"},fe=K({__name:"MapMonitorConfigView",setup(p){const M=[{value:"car",label:"车辆 (Car)"},{value:"site",label:"站点 (Site)"},{value:"track",label:"路径 (Track)"}],n=k("car"),m=k(!1),_=k(!1),a=J(D()),b=J(ne()),y=k(JSON.stringify(D())),E=$(()=>y.value!==JSON.stringify(a));function h(t,e){for(const l of M)t[l.value].fields=[...e[l.value]?.fields??[]],t[l.value].status=[...e[l.value]?.status??[]],t[l.value].methods=[...e[l.value]?.methods??[]]}async function x(t=!1){m.value=!0;try{const e=await I.getMonitorConfig();h(a,e.config),h(b,e.available),y.value=JSON.stringify(a),t&&V.success("已重载")}catch(e){V.error(`加载失败:${e instanceof Error?e.message:String(e)}`)}finally{m.value=!1}}async function z(){_.value=!0;try{const t=await I.saveMonitorConfig({car:{...a.car},site:{...a.site},track:{...a.track}});h(a,t),y.value=JSON.stringify(a),V.success("已保存(已写入 simple.json)")}catch(t){V.error(`保存失败:${t instanceof Error?t.message:String(t)}`)}finally{_.value=!1}}function u(t,e,l){a[t][e]=[...l]}return R(()=>x()),(t,e)=>{const l=L,w=P,N=Z,T=Y,U=W,v=te;return c(),g(se,{"widget-id":"ConfigCenter"},{default:s(()=>[d(U,{shadow:"never",class:"mmc-card"},{header:s(()=>[r("div",pe,[e[6]||(e[6]=r("span",{class:"mmc-title"},"地图监控配置",-1)),d(l,{size:"small",effect:"plain"},{default:s(()=>[...e[2]||(e[2]=[i("section=map-monitor",-1)])]),_:1}),E.value?(c(),g(l,{key:0,size:"small",type:"warning",effect:"dark"},{default:s(()=>[...e[3]||(e[3]=[i("未保存",-1)])]),_:1})):B("",!0),e[7]||(e[7]=r("div",{class:"spacer"},null,-1)),d(w,{size:"small",icon:j(ae),loading:m.value,onClick:e[0]||(e[0]=o=>x(!0))},{default:s(()=>[...e[4]||(e[4]=[i("重载",-1)])]),_:1},8,["icon","loading"]),d(w,{size:"small",type:"primary",icon:j(le),loading:_.value,disabled:!E.value,onClick:z},{default:s(()=>[...e[5]||(e[5]=[i(" 保存 ",-1)])]),_:1},8,["icon","loading","disabled"])])]),default:s(()=>[e[8]||(e[8]=r("p",{class:"mmc-desc"},[i(" 勾选「地图监控」右侧选中信息面板要展示的内容白名单(按对象类型 - 车辆 / 站点 / 路径 分组)。 三组分别控制 "),r("b",null,"属性"),i("、"),r("b",null,"状态"),i("、"),r("b",null,"动作"),i(" Tab 里可见的字段 / 状态项 / 可执行方法。 每组留空 = 显示全部;勾选任何一项即进入白名单模式(仅显示已勾选)。保存后直接写入 SimpleLite 的 "),r("code",null,"simple.json"),i(" ("),r("code",null,"Configuration.conf.monitorVisibility"),i(")。 ")],-1)),d(T,{modelValue:n.value,"onUpdate:modelValue":e[1]||(e[1]=o=>n.value=o),class:"mmc-tabs"},{default:s(()=>[(c(),f(G,null,O(M,o=>d(N,{key:o.value,label:o.label,name:o.value},{default:s(()=>[ee((c(),f("div",ve,[d(A,{title:"属性字段(Properties)",available:b[o.value].fields,selected:a[o.value].fields,"empty-tip":"该类型暂未发现任何 [FieldMember]。在 SimpleLite 端添加字段后点重载会刷新。","onUpdate:selected":C=>u(o.value,"fields",C)},null,8,["available","selected","onUpdate:selected"]),d(A,{title:"状态项(Status)",available:b[o.value].status,selected:a[o.value].status,"empty-tip":"该类型暂未发现任何 status 字段(来自 obj.status 反射)。","onUpdate:selected":C=>u(o.value,"status",C)},null,8,["available","selected","onUpdate:selected"]),d(A,{title:"可执行动作(Methods)",available:b[o.value].methods,selected:a[o.value].methods,"empty-tip":"该类型暂未发现任何 [MethodMember] 方法。","onUpdate:selected":C=>u(o.value,"methods",C)},null,8,["available","selected","onUpdate:selected"])])),[[v,m.value]])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})}}}),ze=F(fe,[["__scopeId","data-v-4d3be43b"]]);export{ze as default}; diff --git a/MiGu.Server/wwwroot/assets/MapMonitorView-Du9_ePeE.css b/MiGu.Server/wwwroot/assets/MapMonitorView-7EMxOrDQ.css similarity index 91% rename from MiGu.Server/wwwroot/assets/MapMonitorView-Du9_ePeE.css rename to MiGu.Server/wwwroot/assets/MapMonitorView-7EMxOrDQ.css index 405efc2..cf20063 100644 --- a/MiGu.Server/wwwroot/assets/MapMonitorView-Du9_ePeE.css +++ b/MiGu.Server/wwwroot/assets/MapMonitorView-7EMxOrDQ.css @@ -1 +1 @@ -.vehicle-monitor[data-v-c1cc74ad]{display:flex;flex-direction:column;gap:6px;min-height:0;height:100%;overflow:hidden}.overview-row[data-v-c1cc74ad]{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;flex:none}.overview-item[data-v-c1cc74ad]{background:var(--mg-veil-1);border:1px solid var(--mg-veil-border);border-radius:6px;padding:4px 2px;text-align:center;transition:var(--mg-transition, all .2s ease)}.overview-item[data-v-c1cc74ad]:hover{background:rgba(var(--mg-accent-rgb, 142, 200, 252),.14);border-color:rgba(var(--mg-accent-rgb, 142, 200, 252),.4)}.overview-num[data-v-c1cc74ad]{font-size:15px;font-weight:600;color:var(--mg-text-light);line-height:1.2}.overview-num.online[data-v-c1cc74ad]{color:var(--mg-accent);text-shadow:0 0 12px rgba(var(--mg-accent-rgb),.55)}.overview-num.running[data-v-c1cc74ad]{color:var(--mg-status-success);text-shadow:0 0 12px rgba(var(--mg-status-success-rgb),.45)}.overview-num.charging[data-v-c1cc74ad]{color:var(--mg-primary-hover);text-shadow:0 0 12px rgba(var(--mg-primary-hover-rgb),.55)}.overview-num.fault[data-v-c1cc74ad]{color:var(--mg-status-danger);text-shadow:0 0 12px rgba(var(--mg-status-danger-rgb),.5)}.overview-label[data-v-c1cc74ad]{font-size:11px;color:var(--mg-text-muted);margin-top:2px}.toolbar[data-v-c1cc74ad]{display:flex;gap:6px;flex:none}.toolbar .search[data-v-c1cc74ad]{flex:1;min-width:0}.toolbar .filter[data-v-c1cc74ad]{width:100px;flex:none}.vehicle-list[data-v-c1cc74ad]{flex:1 1 0;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding-right:2px}.vehicle-row[data-v-c1cc74ad]{background:var(--mg-veil-1);border:1px solid var(--mg-veil-border);border-radius:4px;padding:4px 6px;cursor:pointer;display:flex;flex-direction:column;gap:2px;flex:none;transition:all .18s ease}.vehicle-row[data-v-c1cc74ad]:hover{background:rgba(var(--mg-accent-rgb, 142, 200, 252),.12);border-color:rgba(var(--mg-accent-rgb, 142, 200, 252),.35)}.vehicle-row.is-selected[data-v-c1cc74ad]{background:#6d28d952;border-color:#a78bfabf;box-shadow:inset 3px 0 #c4b5fdf2}.vehicle-head[data-v-c1cc74ad]{display:flex;align-items:center;gap:6px}.vid[data-v-c1cc74ad]{font-size:10.5px;color:var(--mg-text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;flex:none}.vname[data-v-c1cc74ad]{flex:1;min-width:0;color:var(--mg-text-light);font-weight:600;font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.state-tag[data-v-c1cc74ad]{display:inline-flex;align-items:center;gap:4px;flex:none}.dot[data-v-c1cc74ad]{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor}.dot-running[data-v-c1cc74ad]{color:#6fcd45;box-shadow:0 0 8px #6fcd45;animation:pulse-c1cc74ad 1.5s infinite}.dot-charging[data-v-c1cc74ad]{color:var(--mg-primary-hover);box-shadow:0 0 8px var(--mg-primary-hover)}.dot-paused[data-v-c1cc74ad]{color:#e6a23c;box-shadow:0 0 6px #e6a23c}.dot-fault[data-v-c1cc74ad]{color:#ff7396;box-shadow:0 0 8px #ff7396;animation:pulse-c1cc74ad .9s infinite}.dot-offline[data-v-c1cc74ad]{color:var(--mg-text-faint)}.dot-idle[data-v-c1cc74ad]{color:var(--mg-accent);box-shadow:0 0 6px rgba(var(--mg-accent-rgb),.6)}@keyframes pulse-c1cc74ad{0%,to{opacity:1}50%{opacity:.35}}.vehicle-sub[data-v-c1cc74ad]{display:flex;align-items:center;gap:6px;font-size:10.5px}.battery-mini[data-v-c1cc74ad]{display:flex;align-items:center;gap:6px;flex:0 0 44%;min-width:0}.mission-mini[data-v-c1cc74ad]{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.battery-bar[data-v-c1cc74ad]{flex:1;min-width:0}.battery-bar[data-v-c1cc74ad] .el-progress-bar__outer{background:var(--mg-veil-3)}.battery-text[data-v-c1cc74ad]{width:34px;text-align:right;font-variant-numeric:tabular-nums;font-weight:600;font-size:11.5px;flex:none}.battery-text.low[data-v-c1cc74ad]{color:var(--mg-status-danger)}.battery-text.mid[data-v-c1cc74ad]{color:var(--mg-status-warning)}.battery-text.high[data-v-c1cc74ad]{color:var(--mg-status-success)}.mission-name[data-v-c1cc74ad]{flex:1;min-width:0;color:var(--mg-text-light);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mission-name.muted[data-v-c1cc74ad]{color:var(--mg-text-dim)}.mission-tag[data-v-c1cc74ad]{flex:none}.empty[data-v-c1cc74ad]{text-align:center;padding:24px 0;font-size:12px}.muted[data-v-c1cc74ad]{color:var(--mg-text-muted)}.mission-list-panel[data-v-38e00e9c]{display:flex;flex-direction:column;gap:8px;min-height:0;height:100%;position:relative}.toolbar[data-v-38e00e9c]{display:flex;align-items:center;gap:8px;flex:none;flex-wrap:wrap}.toolbar .search[data-v-38e00e9c]{flex:1;min-width:120px}.delivery-table[data-v-38e00e9c]{flex:1;min-height:0;width:100%;overflow:hidden}.mission-list-panel[data-v-38e00e9c] .delivery-table .el-table__inner-wrapper,.mission-list-panel[data-v-38e00e9c] .delivery-table .el-table__header-wrapper,.mission-list-panel[data-v-38e00e9c] .delivery-table .el-table__body-wrapper{overflow-x:hidden!important}.mission-list-panel[data-v-38e00e9c] .delivery-table table{table-layout:fixed;width:100%!important}.mission-list-panel[data-v-38e00e9c] .delivery-table th.el-table__cell,.mission-list-panel[data-v-38e00e9c] .delivery-table td.el-table__cell{padding:3px 2px}.mission-list-panel[data-v-38e00e9c] .delivery-table .cell{padding:0 2px;font-size:11px;line-height:1.35}.mission-list-panel[data-v-38e00e9c] .delivery-table th .cell{font-size:11px;font-weight:600;white-space:nowrap}.cell-ellipsis[data-v-38e00e9c]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-pill[data-v-38e00e9c]{display:inline-block;max-width:100%;padding:0 3px;border-radius:3px;font-size:10px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-pill--success[data-v-38e00e9c]{color:var(--mg-status-success)}.status-pill--primary[data-v-38e00e9c]{color:var(--mg-status-info)}.status-pill--warning[data-v-38e00e9c]{color:var(--mg-status-warning)}.status-pill--danger[data-v-38e00e9c]{color:var(--mg-status-danger)}.status-pill--info[data-v-38e00e9c]{color:var(--mg-text-muted)}.mission-list-panel[data-v-38e00e9c] .el-table,.mission-list-panel[data-v-38e00e9c] .el-table th.el-table__cell,.mission-list-panel[data-v-38e00e9c] .el-table .cell{color:var(--mg-text-light);background:transparent}.mission-list-panel[data-v-38e00e9c] .el-table tr{background:#ffffff08}.mission-list-panel[data-v-38e00e9c] .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:#ffffff0f}.mission-list-panel[data-v-38e00e9c] .is-selected-row td{background:#6d28d959!important}.mission-list-panel[data-v-38e00e9c] .is-overdue-row td{color:var(--mg-status-danger)!important}.empty[data-v-38e00e9c]{text-align:center;padding:16px 0;font-size:12px}.muted[data-v-38e00e9c]{color:var(--mg-text-dim)}.ctx-menu[data-v-38e00e9c]{position:fixed;z-index:9000;min-width:128px;padding:4px 0;background:#1e1e2e;border:1px solid rgba(255,255,255,.15);border-radius:8px;box-shadow:0 8px 24px #00000073}.ctx-item[data-v-38e00e9c]{display:block;width:100%;padding:8px 14px;border:none;background:transparent;color:#fff;font-size:13px;text-align:left;cursor:pointer}.ctx-item[data-v-38e00e9c]:hover:not(:disabled){background:rgba(var(--mg-accent-rgb, 142, 200, 252),.2)}.ctx-item[data-v-38e00e9c]:disabled{color:#ffffff59;cursor:not-allowed}.hint[data-v-1e1b7025]{margin:0 0 10px;font-size:13px;color:#3c1e6ebf}.filter-input[data-v-1e1b7025]{margin-bottom:8px}.site-scroll[data-v-1e1b7025]{border:1px solid rgba(170,110,250,.18);border-radius:8px}.site-row[data-v-1e1b7025]{display:flex;gap:8px;width:100%;padding:8px 10px;border:none;border-bottom:1px solid rgba(170,110,250,.1);background:transparent;color:#3c1e6eeb;text-align:left;cursor:pointer;transition:background .12s ease}.site-row[data-v-1e1b7025]:hover{background:#a78bfa26}.site-row.active[data-v-1e1b7025]{background:#7c3aed29;color:#5b21b6;font-weight:600;box-shadow:inset 3px 0 #7c3aed}.sid[data-v-1e1b7025]{font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#7c3aed;flex:none}.sname[data-v-1e1b7025]{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty[data-v-1e1b7025]{padding:20px;text-align:center;color:#785aa0b3;font-size:12px}.monitor-selection[data-v-c9236d99]{display:flex;flex-direction:column;min-height:0;height:100%}.pane[data-v-c9236d99]{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding-right:2px}.pane-loading[data-v-c9236d99]{display:flex;align-items:center;justify-content:center;gap:8px;padding:32px;color:var(--mg-text-muted);font-size:13px}.empty-hint[data-v-c9236d99]{display:flex;flex-direction:column;gap:4px;padding:24px 8px;text-align:center}.empty-title[data-v-c9236d99]{font-size:13px;color:var(--mg-text-light);font-weight:500}.empty-desc[data-v-c9236d99]{font-size:11.5px;color:var(--mg-text-dim)}.card[data-v-c9236d99]{background:var(--mg-veil-1);border:1px solid var(--mg-veil-border);border-radius:8px;padding:8px 10px;flex:none}.card--header[data-v-c9236d99]{background:linear-gradient(140deg,#aa6efa33,#461e6e14);border-color:#aa6efa47}.card--actions[data-v-c9236d99]{background:#8c50c814;border-color:#aa6efa38}.card-hd[data-v-c9236d99]{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:11px;font-weight:600;letter-spacing:.8px;color:var(--mg-text-muted);text-transform:uppercase}.card-hd .meta[data-v-c9236d99]{font-size:10px;font-weight:400;color:var(--mg-text-dim);text-transform:none;letter-spacing:0}.title-row[data-v-c9236d99]{display:flex;align-items:center;gap:6px;margin-bottom:4px}.id-tag[data-v-c9236d99]{font-size:11px;font-weight:600;padding:1px 7px;border-radius:4px;background:var(--mg-primary);color:#fff}.type-tag[data-v-c9236d99]{font-size:11px;color:var(--mg-text-muted)}.name-line[data-v-c9236d99]{font-size:14px;font-weight:600;color:var(--mg-text-light);line-height:1.3;word-break:break-all}.sub-line[data-v-c9236d99]{margin-top:2px;font-size:11px;color:var(--mg-text-muted);font-family:ui-monospace,Consolas,monospace}.kv-grid[data-v-c9236d99]{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.kv-list[data-v-c9236d99]{display:flex;flex-direction:column;gap:2px}.kv-row[data-v-c9236d99]{display:grid;grid-template-columns:minmax(72px,38%) 1fr;gap:8px;align-items:start;font-size:12px;line-height:1.35;padding:4px 0;border-bottom:1px solid var(--mg-divider)}.kv-row[data-v-c9236d99]:last-child{border-bottom:none}.kv-row.is-warn .v[data-v-c9236d99],.kv-row .v.is-low-battery[data-v-c9236d99]{color:var(--mg-status-danger)}.kv[data-v-c9236d99]{display:flex;flex-direction:column;gap:2px;min-width:0}.k[data-v-c9236d99],.kv-row .k[data-v-c9236d99]{color:var(--mg-text-muted);font-size:11px;word-break:break-word}.v[data-v-c9236d99],.kv-row .v[data-v-c9236d99]{color:var(--mg-text-light);word-break:break-word;font-size:12px}.mono[data-v-c9236d99]{font-family:ui-monospace,Consolas,monospace;font-size:11.5px}.action-grid[data-v-c9236d99]{display:grid;grid-template-columns:1fr 1fr;gap:6px}.action-grid--vehicle[data-v-c9236d99]{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}.action-btn[data-v-c9236d99]{appearance:none;cursor:pointer;border:1px solid var(--mg-action-border);background:var(--mg-action-bg);color:#fff;font-size:12px;font-weight:600;padding:7px 8px;border-radius:6px;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease;text-align:center;line-height:1.25}.action-btn--goto[data-v-c9236d99]{border-color:#fac878a6;background:#78461473}.action-btn[data-v-c9236d99]:hover:not(:disabled){background:var(--mg-action-bg-hover);border-color:var(--mg-action-border-hi);box-shadow:0 2px 8px #00000040}.action-btn--goto[data-v-c9236d99]:hover:not(:disabled){background:#a0641ebf;border-color:#ffdc96e6}.action-btn[data-v-c9236d99]:disabled{opacity:.55;cursor:progress}:root[data-theme=fame-lavender] .action-btn--goto[data-v-c9236d99]{border-color:#b45309;background:#b45309}:root[data-theme=fame-lavender] .action-btn--goto[data-v-c9236d99]:hover:not(:disabled){border-color:#92400e;background:#92400e}.muted-line[data-v-c9236d99]{font-size:11.5px;color:var(--mg-text-dim);line-height:1.4;padding:2px 0}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;vertical-align:middle;width:-moz-fit-content;width:fit-content;display:inline-block;position:relative}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color);justify-content:center;align-items:center;display:inline-flex}.el-badge__content.is-fixed{top:0;right:calc(1px + var(--el-badge-size) / 2);z-index:var(--el-index-normal);position:absolute;transform:translateY(-50%)translate(100%)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;width:8px;height:8px;padding:0;right:0}.el-badge__content.is-hide-zero{display:none}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.floating-alarm-card[data-v-0b6ee97c]{position:absolute;width:320px;padding:10px 12px;border-radius:10px;background:#140828eb;backdrop-filter:blur(10px);box-shadow:0 10px 32px #0a02108c,0 0 0 1px #ffffff14 inset;color:#e8d7f5f2;font-size:13px;cursor:grab;user-select:none;z-index:1000;transition:box-shadow .2s,transform .2s}.floating-alarm-card.dragging[data-v-0b6ee97c]{cursor:grabbing;box-shadow:0 14px 40px #0a0210b3}.fac-header[data-v-0b6ee97c]{display:flex;align-items:center;gap:8px;margin-bottom:6px}.fac-dot[data-v-0b6ee97c]{width:10px;height:10px;border-radius:999px;background:var(--lvl-color, #67c23a);box-shadow:0 0 8px var(--lvl-color, #67c23a)}.fac-title[data-v-0b6ee97c]{flex:1;font-weight:600}.fac-time[data-v-0b6ee97c]{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11.5px;color:#e8d7f5a6}.fac-close[data-v-0b6ee97c]{cursor:pointer;opacity:.7}.fac-close[data-v-0b6ee97c]:hover{opacity:1}.fac-body[data-v-0b6ee97c]{padding:4px 0 6px}.fac-info[data-v-0b6ee97c]{line-height:1.4;word-break:break-all}.fac-coord[data-v-0b6ee97c]{font-size:11.5px;color:#e8d7f5b3;margin-top:4px;font-family:ui-monospace,Menlo,Consolas,monospace}.fac-actions[data-v-0b6ee97c]{display:flex;gap:6px;justify-content:flex-end}.muted[data-v-0b6ee97c]{color:#e8d7f580}.floating-alarm-card.lvl-info[data-v-0b6ee97c]{--lvl-color: #67c23a}.floating-alarm-card.lvl-warn[data-v-0b6ee97c]{--lvl-color: #e6a23c}.floating-alarm-card.lvl-error[data-v-0b6ee97c]{--lvl-color: #f56c6c}.floating-alarm-card.lvl-critical[data-v-0b6ee97c]{--lvl-color: #d63a3a}.floating-alarm-stack[data-v-c37fdeb1]{position:absolute;inset:0;pointer-events:none}.floating-alarm-stack[data-v-c37fdeb1]>*{pointer-events:auto}.snooze-tray[data-v-c37fdeb1]{position:absolute;right:24px;top:24px}.canvas-toolbar[data-v-968a4c89]{display:flex;align-items:center;gap:6px;padding:6px 10px;background:#00000073;border-top:1px solid rgba(255,255,255,.1);border-bottom-left-radius:var(--mg-radius, 16px);border-bottom-right-radius:var(--mg-radius, 16px);backdrop-filter:blur(10px) saturate(140%);-webkit-backdrop-filter:blur(10px) saturate(140%);flex-wrap:wrap}.canvas-toolbar[data-v-968a4c89] .el-button{display:inline-flex;align-items:center;gap:4px}.btn-label[data-v-968a4c89]{margin-left:2px}.caret[data-v-968a4c89]{margin-left:2px;font-size:10px;opacity:.7}.separator[data-v-968a4c89]{width:1px;height:18px;background:#ffffff2e;margin:0 4px}.toolbar-menu .menu-row[data-v-968a4c89]{display:flex;align-items:center;gap:8px;padding:5px 14px;cursor:pointer;user-select:none;font-size:13px;color:var(--el-text-color-primary)}.toolbar-menu .menu-row[data-v-968a4c89]:hover{background:var(--el-fill-color-light)}.toolbar-menu .menu-row[data-v-968a4c89] .el-checkbox{margin-right:0;pointer-events:none}.layer-menu[data-v-968a4c89]{max-height:320px;overflow-y:auto}.menu-empty[data-v-968a4c89]{padding:10px 14px;color:var(--el-text-color-secondary);font-size:12px}.muted-hint[data-v-968a4c89]{margin:0 0 8px;color:var(--el-text-color-secondary);font-size:12px}.map-monitor-page[data-v-a35ed0fa]{display:flex;flex-direction:column;gap:14px;height:calc(100vh - 124px)}.kpi-row[data-v-a35ed0fa]{flex:none}.main-row[data-v-a35ed0fa]{flex:1;min-height:0}.main-row>.el-col[data-v-a35ed0fa]{display:flex;flex-direction:column;min-height:0}.side-col[data-v-a35ed0fa]{display:flex;flex-direction:column;gap:12px;min-height:0;height:100%}.side-card[data-v-a35ed0fa]{display:flex;flex-direction:column;min-height:0;overflow:hidden}.workbench-card[data-v-a35ed0fa]{flex:1 1 0;min-height:0;max-height:52%}.detail-card[data-v-a35ed0fa]{flex:1 1 0;min-height:200px}.workbench-card[data-v-a35ed0fa] .el-card__body,.detail-card[data-v-a35ed0fa] .el-card__body{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.muted[data-v-a35ed0fa]{color:var(--mg-text-muted);font-size:12px}.workbench-card[data-v-a35ed0fa] .el-card__header,.detail-card[data-v-a35ed0fa] .el-card__header{color:var(--mg-text-light)}.workbench-header[data-v-a35ed0fa]{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.workbench-tabs[data-v-a35ed0fa]{flex:1;min-width:0}.workbench-tabs[data-v-a35ed0fa] .el-tabs__header{margin:0}.workbench-tabs[data-v-a35ed0fa] .el-tabs__nav-wrap:after{display:none}.workbench-tabs[data-v-a35ed0fa] .el-tabs__item{color:var(--mg-text-muted);padding:0 10px;height:32px;line-height:32px}.workbench-tabs[data-v-a35ed0fa] .el-tabs__item.is-active{color:var(--mg-text-light)}.workbench-tabs[data-v-a35ed0fa] .el-tabs__active-bar{background-color:var(--mg-accent, #8ec8fc)}[data-v-a35ed0fa] .el-row.main-row{height:100%}[data-v-a35ed0fa] .el-col-16>div{height:100%;min-height:0}.canvas-with-alarms[data-v-a35ed0fa]{position:relative;height:100%;min-height:0;flex:1;display:flex;flex-direction:column}.canvas-with-alarms[data-v-a35ed0fa] .workspace-3d-wrap{flex:1} +.vehicle-monitor[data-v-c1cc74ad]{display:flex;flex-direction:column;gap:6px;min-height:0;height:100%;overflow:hidden}.overview-row[data-v-c1cc74ad]{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;flex:none}.overview-item[data-v-c1cc74ad]{background:var(--mg-veil-1);border:1px solid var(--mg-veil-border);border-radius:6px;padding:4px 2px;text-align:center;transition:var(--mg-transition, all .2s ease)}.overview-item[data-v-c1cc74ad]:hover{background:rgba(var(--mg-accent-rgb, 142, 200, 252),.14);border-color:rgba(var(--mg-accent-rgb, 142, 200, 252),.4)}.overview-num[data-v-c1cc74ad]{font-size:15px;font-weight:600;color:var(--mg-text-light);line-height:1.2}.overview-num.online[data-v-c1cc74ad]{color:var(--mg-accent);text-shadow:0 0 12px rgba(var(--mg-accent-rgb),.55)}.overview-num.running[data-v-c1cc74ad]{color:var(--mg-status-success);text-shadow:0 0 12px rgba(var(--mg-status-success-rgb),.45)}.overview-num.charging[data-v-c1cc74ad]{color:var(--mg-primary-hover);text-shadow:0 0 12px rgba(var(--mg-primary-hover-rgb),.55)}.overview-num.fault[data-v-c1cc74ad]{color:var(--mg-status-danger);text-shadow:0 0 12px rgba(var(--mg-status-danger-rgb),.5)}.overview-label[data-v-c1cc74ad]{font-size:11px;color:var(--mg-text-muted);margin-top:2px}.toolbar[data-v-c1cc74ad]{display:flex;gap:6px;flex:none}.toolbar .search[data-v-c1cc74ad]{flex:1;min-width:0}.toolbar .filter[data-v-c1cc74ad]{width:100px;flex:none}.vehicle-list[data-v-c1cc74ad]{flex:1 1 0;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding-right:2px}.vehicle-row[data-v-c1cc74ad]{background:var(--mg-veil-1);border:1px solid var(--mg-veil-border);border-radius:4px;padding:4px 6px;cursor:pointer;display:flex;flex-direction:column;gap:2px;flex:none;transition:all .18s ease}.vehicle-row[data-v-c1cc74ad]:hover{background:rgba(var(--mg-accent-rgb, 142, 200, 252),.12);border-color:rgba(var(--mg-accent-rgb, 142, 200, 252),.35)}.vehicle-row.is-selected[data-v-c1cc74ad]{background:#6d28d952;border-color:#a78bfabf;box-shadow:inset 3px 0 #c4b5fdf2}.vehicle-head[data-v-c1cc74ad]{display:flex;align-items:center;gap:6px}.vid[data-v-c1cc74ad]{font-size:10.5px;color:var(--mg-text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;flex:none}.vname[data-v-c1cc74ad]{flex:1;min-width:0;color:var(--mg-text-light);font-weight:600;font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.state-tag[data-v-c1cc74ad]{display:inline-flex;align-items:center;gap:4px;flex:none}.dot[data-v-c1cc74ad]{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor}.dot-running[data-v-c1cc74ad]{color:#6fcd45;box-shadow:0 0 8px #6fcd45;animation:pulse-c1cc74ad 1.5s infinite}.dot-charging[data-v-c1cc74ad]{color:var(--mg-primary-hover);box-shadow:0 0 8px var(--mg-primary-hover)}.dot-paused[data-v-c1cc74ad]{color:#e6a23c;box-shadow:0 0 6px #e6a23c}.dot-fault[data-v-c1cc74ad]{color:#ff7396;box-shadow:0 0 8px #ff7396;animation:pulse-c1cc74ad .9s infinite}.dot-offline[data-v-c1cc74ad]{color:var(--mg-text-faint)}.dot-idle[data-v-c1cc74ad]{color:var(--mg-accent);box-shadow:0 0 6px rgba(var(--mg-accent-rgb),.6)}@keyframes pulse-c1cc74ad{0%,to{opacity:1}50%{opacity:.35}}.vehicle-sub[data-v-c1cc74ad]{display:flex;align-items:center;gap:6px;font-size:10.5px}.battery-mini[data-v-c1cc74ad]{display:flex;align-items:center;gap:6px;flex:0 0 44%;min-width:0}.mission-mini[data-v-c1cc74ad]{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.battery-bar[data-v-c1cc74ad]{flex:1;min-width:0}.battery-bar[data-v-c1cc74ad] .el-progress-bar__outer{background:var(--mg-veil-3)}.battery-text[data-v-c1cc74ad]{width:34px;text-align:right;font-variant-numeric:tabular-nums;font-weight:600;font-size:11.5px;flex:none}.battery-text.low[data-v-c1cc74ad]{color:var(--mg-status-danger)}.battery-text.mid[data-v-c1cc74ad]{color:var(--mg-status-warning)}.battery-text.high[data-v-c1cc74ad]{color:var(--mg-status-success)}.mission-name[data-v-c1cc74ad]{flex:1;min-width:0;color:var(--mg-text-light);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mission-name.muted[data-v-c1cc74ad]{color:var(--mg-text-dim)}.mission-tag[data-v-c1cc74ad]{flex:none}.empty[data-v-c1cc74ad]{text-align:center;padding:24px 0;font-size:12px}.muted[data-v-c1cc74ad]{color:var(--mg-text-muted)}.mission-list-panel[data-v-38e00e9c]{display:flex;flex-direction:column;gap:8px;min-height:0;height:100%;position:relative}.toolbar[data-v-38e00e9c]{display:flex;align-items:center;gap:8px;flex:none;flex-wrap:wrap}.toolbar .search[data-v-38e00e9c]{flex:1;min-width:120px}.delivery-table[data-v-38e00e9c]{flex:1;min-height:0;width:100%;overflow:hidden}.mission-list-panel[data-v-38e00e9c] .delivery-table .el-table__inner-wrapper,.mission-list-panel[data-v-38e00e9c] .delivery-table .el-table__header-wrapper,.mission-list-panel[data-v-38e00e9c] .delivery-table .el-table__body-wrapper{overflow-x:hidden!important}.mission-list-panel[data-v-38e00e9c] .delivery-table table{table-layout:fixed;width:100%!important}.mission-list-panel[data-v-38e00e9c] .delivery-table th.el-table__cell,.mission-list-panel[data-v-38e00e9c] .delivery-table td.el-table__cell{padding:3px 2px}.mission-list-panel[data-v-38e00e9c] .delivery-table .cell{padding:0 2px;font-size:11px;line-height:1.35}.mission-list-panel[data-v-38e00e9c] .delivery-table th .cell{font-size:11px;font-weight:600;white-space:nowrap}.cell-ellipsis[data-v-38e00e9c]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-pill[data-v-38e00e9c]{display:inline-block;max-width:100%;padding:0 3px;border-radius:3px;font-size:10px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-pill--success[data-v-38e00e9c]{color:var(--mg-status-success)}.status-pill--primary[data-v-38e00e9c]{color:var(--mg-status-info)}.status-pill--warning[data-v-38e00e9c]{color:var(--mg-status-warning)}.status-pill--danger[data-v-38e00e9c]{color:var(--mg-status-danger)}.status-pill--info[data-v-38e00e9c]{color:var(--mg-text-muted)}.mission-list-panel[data-v-38e00e9c] .el-table,.mission-list-panel[data-v-38e00e9c] .el-table th.el-table__cell,.mission-list-panel[data-v-38e00e9c] .el-table .cell{color:var(--mg-text-light);background:transparent}.mission-list-panel[data-v-38e00e9c] .el-table tr{background:#ffffff08}.mission-list-panel[data-v-38e00e9c] .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:#ffffff0f}.mission-list-panel[data-v-38e00e9c] .is-selected-row td{background:#6d28d959!important}.mission-list-panel[data-v-38e00e9c] .is-overdue-row td{color:var(--mg-status-danger)!important}.empty[data-v-38e00e9c]{text-align:center;padding:16px 0;font-size:12px}.muted[data-v-38e00e9c]{color:var(--mg-text-dim)}.ctx-menu[data-v-38e00e9c]{position:fixed;z-index:9000;min-width:128px;padding:4px 0;background:#1e1e2e;border:1px solid rgba(255,255,255,.15);border-radius:8px;box-shadow:0 8px 24px #00000073}.ctx-item[data-v-38e00e9c]{display:block;width:100%;padding:8px 14px;border:none;background:transparent;color:#fff;font-size:13px;text-align:left;cursor:pointer}.ctx-item[data-v-38e00e9c]:hover:not(:disabled){background:rgba(var(--mg-accent-rgb, 142, 200, 252),.2)}.ctx-item[data-v-38e00e9c]:disabled{color:#ffffff59;cursor:not-allowed}.hint[data-v-1e1b7025]{margin:0 0 10px;font-size:13px;color:#3c1e6ebf}.filter-input[data-v-1e1b7025]{margin-bottom:8px}.site-scroll[data-v-1e1b7025]{border:1px solid rgba(170,110,250,.18);border-radius:8px}.site-row[data-v-1e1b7025]{display:flex;gap:8px;width:100%;padding:8px 10px;border:none;border-bottom:1px solid rgba(170,110,250,.1);background:transparent;color:#3c1e6eeb;text-align:left;cursor:pointer;transition:background .12s ease}.site-row[data-v-1e1b7025]:hover{background:#a78bfa26}.site-row.active[data-v-1e1b7025]{background:#7c3aed29;color:#5b21b6;font-weight:600;box-shadow:inset 3px 0 #7c3aed}.sid[data-v-1e1b7025]{font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#7c3aed;flex:none}.sname[data-v-1e1b7025]{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty[data-v-1e1b7025]{padding:20px;text-align:center;color:#785aa0b3;font-size:12px}.monitor-selection[data-v-c9236d99]{display:flex;flex-direction:column;min-height:0;height:100%}.pane[data-v-c9236d99]{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding-right:2px}.pane-loading[data-v-c9236d99]{display:flex;align-items:center;justify-content:center;gap:8px;padding:32px;color:var(--mg-text-muted);font-size:13px}.empty-hint[data-v-c9236d99]{display:flex;flex-direction:column;gap:4px;padding:24px 8px;text-align:center}.empty-title[data-v-c9236d99]{font-size:13px;color:var(--mg-text-light);font-weight:500}.empty-desc[data-v-c9236d99]{font-size:11.5px;color:var(--mg-text-dim)}.card[data-v-c9236d99]{background:var(--mg-veil-1);border:1px solid var(--mg-veil-border);border-radius:8px;padding:8px 10px;flex:none}.card--header[data-v-c9236d99]{background:linear-gradient(140deg,#aa6efa33,#461e6e14);border-color:#aa6efa47}.card--actions[data-v-c9236d99]{background:#8c50c814;border-color:#aa6efa38}.card-hd[data-v-c9236d99]{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:11px;font-weight:600;letter-spacing:.8px;color:var(--mg-text-muted);text-transform:uppercase}.card-hd .meta[data-v-c9236d99]{font-size:10px;font-weight:400;color:var(--mg-text-dim);text-transform:none;letter-spacing:0}.title-row[data-v-c9236d99]{display:flex;align-items:center;gap:6px;margin-bottom:4px}.id-tag[data-v-c9236d99]{font-size:11px;font-weight:600;padding:1px 7px;border-radius:4px;background:var(--mg-primary);color:#fff}.type-tag[data-v-c9236d99]{font-size:11px;color:var(--mg-text-muted)}.name-line[data-v-c9236d99]{font-size:14px;font-weight:600;color:var(--mg-text-light);line-height:1.3;word-break:break-all}.sub-line[data-v-c9236d99]{margin-top:2px;font-size:11px;color:var(--mg-text-muted);font-family:ui-monospace,Consolas,monospace}.kv-grid[data-v-c9236d99]{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.kv-list[data-v-c9236d99]{display:flex;flex-direction:column;gap:2px}.kv-row[data-v-c9236d99]{display:grid;grid-template-columns:minmax(72px,38%) 1fr;gap:8px;align-items:start;font-size:12px;line-height:1.35;padding:4px 0;border-bottom:1px solid var(--mg-divider)}.kv-row[data-v-c9236d99]:last-child{border-bottom:none}.kv-row.is-warn .v[data-v-c9236d99],.kv-row .v.is-low-battery[data-v-c9236d99]{color:var(--mg-status-danger)}.kv[data-v-c9236d99]{display:flex;flex-direction:column;gap:2px;min-width:0}.k[data-v-c9236d99],.kv-row .k[data-v-c9236d99]{color:var(--mg-text-muted);font-size:11px;word-break:break-word}.v[data-v-c9236d99],.kv-row .v[data-v-c9236d99]{color:var(--mg-text-light);word-break:break-word;font-size:12px}.mono[data-v-c9236d99]{font-family:ui-monospace,Consolas,monospace;font-size:11.5px}.action-grid[data-v-c9236d99]{display:grid;grid-template-columns:1fr 1fr;gap:6px}.action-grid--vehicle[data-v-c9236d99]{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}.action-btn[data-v-c9236d99]{appearance:none;cursor:pointer;border:1px solid var(--mg-action-border);background:var(--mg-action-bg);color:#fff;font-size:12px;font-weight:600;padding:7px 8px;border-radius:6px;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease;text-align:center;line-height:1.25}.action-btn--goto[data-v-c9236d99]{border-color:#fac878a6;background:#78461473}.action-btn[data-v-c9236d99]:hover:not(:disabled){background:var(--mg-action-bg-hover);border-color:var(--mg-action-border-hi);box-shadow:0 2px 8px #00000040}.action-btn--goto[data-v-c9236d99]:hover:not(:disabled){background:#a0641ebf;border-color:#ffdc96e6}.action-btn[data-v-c9236d99]:disabled{opacity:.55;cursor:progress}:root[data-theme=fame-lavender] .action-btn--goto[data-v-c9236d99]{border-color:#b45309;background:#b45309}:root[data-theme=fame-lavender] .action-btn--goto[data-v-c9236d99]:hover:not(:disabled){border-color:#92400e;background:#92400e}.muted-line[data-v-c9236d99]{font-size:11.5px;color:var(--mg-text-dim);line-height:1.4;padding:2px 0}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;vertical-align:middle;width:-moz-fit-content;width:fit-content;display:inline-block;position:relative}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color);justify-content:center;align-items:center;display:inline-flex}.el-badge__content.is-fixed{top:0;right:calc(1px + var(--el-badge-size) / 2);z-index:var(--el-index-normal);position:absolute;transform:translateY(-50%)translate(100%)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;width:8px;height:8px;padding:0;right:0}.el-badge__content.is-hide-zero{display:none}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.floating-alarm-card[data-v-0b6ee97c]{position:absolute;width:320px;padding:10px 12px;border-radius:10px;background:#140828eb;backdrop-filter:blur(10px);box-shadow:0 10px 32px #0a02108c,0 0 0 1px #ffffff14 inset;color:#e8d7f5f2;font-size:13px;cursor:grab;user-select:none;z-index:1000;transition:box-shadow .2s,transform .2s}.floating-alarm-card.dragging[data-v-0b6ee97c]{cursor:grabbing;box-shadow:0 14px 40px #0a0210b3}.fac-header[data-v-0b6ee97c]{display:flex;align-items:center;gap:8px;margin-bottom:6px}.fac-dot[data-v-0b6ee97c]{width:10px;height:10px;border-radius:999px;background:var(--lvl-color, #67c23a);box-shadow:0 0 8px var(--lvl-color, #67c23a)}.fac-title[data-v-0b6ee97c]{flex:1;font-weight:600}.fac-time[data-v-0b6ee97c]{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11.5px;color:#e8d7f5a6}.fac-close[data-v-0b6ee97c]{cursor:pointer;opacity:.7}.fac-close[data-v-0b6ee97c]:hover{opacity:1}.fac-body[data-v-0b6ee97c]{padding:4px 0 6px}.fac-info[data-v-0b6ee97c]{line-height:1.4;word-break:break-all}.fac-coord[data-v-0b6ee97c]{font-size:11.5px;color:#e8d7f5b3;margin-top:4px;font-family:ui-monospace,Menlo,Consolas,monospace}.fac-actions[data-v-0b6ee97c]{display:flex;gap:6px;justify-content:flex-end}.muted[data-v-0b6ee97c]{color:#e8d7f580}.floating-alarm-card.lvl-info[data-v-0b6ee97c]{--lvl-color: #67c23a}.floating-alarm-card.lvl-warn[data-v-0b6ee97c]{--lvl-color: #e6a23c}.floating-alarm-card.lvl-error[data-v-0b6ee97c]{--lvl-color: #f56c6c}.floating-alarm-card.lvl-critical[data-v-0b6ee97c]{--lvl-color: #d63a3a}.floating-alarm-stack[data-v-c37fdeb1]{position:absolute;inset:0;pointer-events:none}.floating-alarm-stack[data-v-c37fdeb1]>*{pointer-events:auto}.snooze-tray[data-v-c37fdeb1]{position:absolute;right:24px;top:24px}.canvas-toolbar[data-v-968a4c89]{display:flex;align-items:center;gap:6px;padding:6px 10px;background:#00000073;border-top:1px solid rgba(255,255,255,.1);border-bottom-left-radius:var(--mg-radius, 16px);border-bottom-right-radius:var(--mg-radius, 16px);backdrop-filter:blur(10px) saturate(140%);-webkit-backdrop-filter:blur(10px) saturate(140%);flex-wrap:wrap}.canvas-toolbar[data-v-968a4c89] .el-button{display:inline-flex;align-items:center;gap:4px}.btn-label[data-v-968a4c89]{margin-left:2px}.caret[data-v-968a4c89]{margin-left:2px;font-size:10px;opacity:.7}.separator[data-v-968a4c89]{width:1px;height:18px;background:#ffffff2e;margin:0 4px}.toolbar-menu .menu-row[data-v-968a4c89]{display:flex;align-items:center;gap:8px;padding:5px 14px;cursor:pointer;user-select:none;font-size:13px;color:var(--el-text-color-primary)}.toolbar-menu .menu-row[data-v-968a4c89]:hover{background:var(--el-fill-color-light)}.toolbar-menu .menu-row[data-v-968a4c89] .el-checkbox{margin-right:0;pointer-events:none}.layer-menu[data-v-968a4c89]{max-height:320px;overflow-y:auto}.menu-empty[data-v-968a4c89]{padding:10px 14px;color:var(--el-text-color-secondary);font-size:12px}.muted-hint[data-v-968a4c89]{margin:0 0 8px;color:var(--el-text-color-secondary);font-size:12px}.map-monitor-page[data-v-90324f90]{display:flex;flex-direction:column;gap:14px;height:calc(100vh - 124px)}.kpi-row[data-v-90324f90]{flex:none}.main-row[data-v-90324f90]{flex:1;min-height:0}.main-row>.el-col[data-v-90324f90]{display:flex;flex-direction:column;min-height:0}.side-col[data-v-90324f90]{display:flex;flex-direction:column;gap:12px;min-height:0;height:100%}.side-card[data-v-90324f90]{display:flex;flex-direction:column;min-height:0;overflow:hidden}.workbench-card[data-v-90324f90]{flex:1 1 0;min-height:0;max-height:52%}.detail-card[data-v-90324f90]{flex:1 1 0;min-height:200px}.workbench-card[data-v-90324f90] .el-card__body,.detail-card[data-v-90324f90] .el-card__body{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.muted[data-v-90324f90]{color:var(--mg-text-muted);font-size:12px}.workbench-card[data-v-90324f90] .el-card__header,.detail-card[data-v-90324f90] .el-card__header{color:var(--mg-text-light)}.workbench-header[data-v-90324f90]{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.workbench-tabs[data-v-90324f90]{flex:1;min-width:0}.workbench-tabs[data-v-90324f90] .el-tabs__header{margin:0}.workbench-tabs[data-v-90324f90] .el-tabs__nav-wrap:after{display:none}.workbench-tabs[data-v-90324f90] .el-tabs__item{color:var(--mg-text-muted);padding:0 10px;height:32px;line-height:32px}.workbench-tabs[data-v-90324f90] .el-tabs__item.is-active{color:var(--mg-text-light)}.workbench-tabs[data-v-90324f90] .el-tabs__active-bar{background-color:var(--mg-accent, #8ec8fc)}[data-v-90324f90] .el-row.main-row{height:100%}[data-v-90324f90] .el-col-16>div{height:100%;min-height:0}.canvas-with-alarms[data-v-90324f90]{position:relative;height:100%;min-height:0;flex:1;display:flex;flex-direction:column}.canvas-with-alarms[data-v-90324f90] .workspace-3d-wrap{flex:1} diff --git a/MiGu.Server/wwwroot/assets/MapMonitorView-Bc6X9WQO.js b/MiGu.Server/wwwroot/assets/MapMonitorView-Bc6X9WQO.js deleted file mode 100644 index 1b6a665..0000000 --- a/MiGu.Server/wwwroot/assets/MapMonitorView-Bc6X9WQO.js +++ /dev/null @@ -1,2 +0,0 @@ -import{aI as Ie,b9 as d,aE as h,aB as t,bq as p,aH as a,R as Ke,a4 as ut,bJ as i,ai as J,bj as oe,Z as dt,b3 as _e,ad as Ge,aG as H,$ as ft,aD as $e,bh as N,ax as M,ak as Ne,aU as le,b7 as He,b8 as Qe,u as et,aa as tt,ab as nt,bK as We,bB as je,bL as ye,b4 as at,Y as De,X as E,bI as lt,aC as ge,a3 as vt,r as Pe,G as st,bv as it,Q as Xe,bt as X,aZ as mt,b6 as ot,au as pt,o as gt,I as yt,ba as _t,an as Ae,K as ht,bd as kt,aQ as bt,J as wt,aO as $t,bG as qe,bE as Ct,bD as St,at as It,bF as Nt,aL as xt,al as Lt,ag as Tt,bg as Vt,L as Et,a2 as Mt,w as At,a6 as Pt,t as Dt,ac as Ft,a9 as Ot}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{W as Rt}from"./Workspace3D-DpUfTJl7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import{r as Se}from"./reflection-B_glb6eT.js";import{m as zt}from"./mapEdit-TNAQr3Be.js";import{O as Bt}from"./ops-BCeFEEjY.js";import{e as Ut}from"./ops-CsVl7GhE.js";import{f as rt,i as Wt}from"./monitorConfigCache-BigdkiFw.js";/* empty css *//* empty css *//* empty css */import{l as jt,a as Kt}from"./projection-BMms551H.js";import{u as Gt}from"./useProjectionStream-BBHmpNXC.js";const Ht={class:"vehicle-monitor"},Xt={class:"overview-row"},Yt={class:"overview-item"},qt={class:"overview-num"},Zt={class:"overview-item"},Jt={class:"overview-num online"},Qt={class:"overview-item"},en={class:"overview-num running"},tn={class:"overview-item"},nn={class:"overview-num charging"},an={class:"overview-item"},ln={class:"overview-num fault"},sn={class:"toolbar"},on={class:"vehicle-list"},rn=["onClick"],cn={class:"vehicle-head"},un={class:"vid"},dn=["title"],fn={class:"vehicle-sub"},vn=["title"],mn={class:"mission-mini"},pn=["title"],gn={key:1,class:"mission-name muted"},yn={key:0,class:"empty muted"},_n=Ie({__name:"VehicleMonitorPanel",props:{cars:{},missions:{},selectedId:{}},emits:["select"],setup(s,{emit:b}){const f=s,x=b,V=N(""),o=N(""),g=[{value:"idle",label:"空闲"},{value:"running",label:"运行中"},{value:"charging",label:"充电中"},{value:"paused",label:"已暂停"},{value:"fault",label:"故障"},{value:"offline",label:"离线"}],C=g.reduce((y,L)=>(y[L.value]=L.label,y),{});function R(y){return C[y]??y}function U(y){switch(y){case"running":return"success";case"charging":return"primary";case"paused":return"warning";case"fault":return"danger";case"offline":return"info";case"idle":default:return"info"}}const W={queued:"排队",assigned:"已分配",running:"执行中",paused:"暂停",completed:"已完成",cancelled:"已取消",failed:"失败"};function K(y){return W[y]??y}function j(y){switch(y){case"running":return"success";case"assigned":return"primary";case"queued":return"info";case"paused":return"warning";case"completed":return"success";case"cancelled":return"info";case"failed":return"danger";default:return"info"}}const A=M(()=>f.cars.filter(y=>y.state!=="offline").length),k=M(()=>f.cars.filter(y=>y.state==="running").length),Q=M(()=>f.cars.filter(y=>y.state==="charging").length),Z=M(()=>f.cars.filter(y=>y.state==="fault").length),Y=M(()=>{const y=r=>r==="running"?0:r==="paused"?1:r==="assigned"?2:3,L=new Map;for(const r of f.missions){if(!r.carId||r.status!=="running"&&r.status!=="paused"&&r.status!=="assigned")continue;const v=L.get(r.carId);(!v||y(r.status)r.id===y.missionId);if(L)return L}return Y.value.get(y.id)}function D(y){const L=y.batterySoc??0,r=L>1?L:L*100;return Math.max(0,Math.min(100,Math.round(r)))}function te(y){return y<20?"#f56c6c":y<50?"#e6a23c":"#67c23a"}function me(y){return y<20?"low":y<50?"mid":"high"}const z=M(()=>{const y=V.value.trim().toLowerCase(),L=y?y.split(/\s+/).filter(Boolean):[];return f.cars.filter(r=>{if(o.value&&r.state!==o.value)return!1;if(!L.length)return!0;const v=O(r),F=[r.id,r.name,r.typeName??"",r.group??"",r.ip??"",R(r.state),v?.name??"",v?K(v.status):""].join(" ").toLowerCase();return L.every(u=>F.includes(u))})});function G(y){x("select",{kind:"vehicle",id:ne(y),name:y.name})}function ne(y){return y.rawId!=null?String(y.rawId):y.id.replace(/^C/i,"").replace(/^0+/,"")||y.id}return(y,L)=>{const r=Ke,v=dt,F=ut,u=Ge,c=ft;return d(),h("div",Ht,[t("div",Xt,[t("div",Yt,[t("div",qt,p(s.cars.length),1),L[2]||(L[2]=t("div",{class:"overview-label"},"总数",-1))]),t("div",Zt,[t("div",Jt,p(A.value),1),L[3]||(L[3]=t("div",{class:"overview-label"},"在线",-1))]),t("div",Qt,[t("div",en,p(k.value),1),L[4]||(L[4]=t("div",{class:"overview-label"},"运行",-1))]),t("div",tn,[t("div",nn,p(Q.value),1),L[5]||(L[5]=t("div",{class:"overview-label"},"充电",-1))]),t("div",an,[t("div",ln,p(Z.value),1),L[6]||(L[6]=t("div",{class:"overview-label"},"故障",-1))])]),t("div",sn,[a(r,{modelValue:V.value,"onUpdate:modelValue":L[0]||(L[0]=_=>V.value=_),size:"small",clearable:"",placeholder:"搜索 ID / 名称 / 任务",class:"search"},null,8,["modelValue"]),a(F,{modelValue:o.value,"onUpdate:modelValue":L[1]||(L[1]=_=>o.value=_),size:"small",placeholder:"状态",clearable:"",class:"filter"},{default:i(()=>[(d(),h(J,null,oe(g,_=>a(v,{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),t("div",on,[(d(!0),h(J,null,oe(z.value,_=>(d(),h("div",{key:_.id,class:_e(["vehicle-row",{"is-selected":_.id===s.selectedId}]),onClick:S=>G(_)},[t("div",cn,[t("span",un,p(_.id),1),t("span",{class:"vname",title:_.name},p(_.name),9,dn),a(u,{size:"small",type:U(_.state),class:"state-tag",effect:"dark"},{default:i(()=>[t("span",{class:_e(["dot",`dot-${_.state}`])},null,2),H(" "+p(R(_.state)),1)]),_:2},1032,["type"])]),t("div",fn,[t("div",{class:"battery-mini",title:`电量 ${D(_)}%`},[a(c,{percentage:D(_),"stroke-width":6,"show-text":!1,color:te(D(_)),class:"battery-bar"},null,8,["percentage","color"]),t("span",{class:_e(["battery-text",me(D(_))])},p(D(_))+"% ",3)],8,vn),t("div",mn,[O(_)?(d(),h(J,{key:0},[a(u,{size:"small",type:j(O(_).status),effect:"plain",class:"mission-tag"},{default:i(()=>[H(p(K(O(_).status)),1)]),_:2},1032,["type"]),t("span",{class:"mission-name",title:O(_).name},p(O(_).name),9,pn)],64)):(d(),h("span",gn,"空闲"))])])],10,rn))),128)),z.value.length?$e("",!0):(d(),h("div",yn," 无匹配车辆 "))])])}}}),hn=Ne(_n,[["__scopeId","data-v-c1cc74ad"]]),Fe="/sl/projection/deliveries";async function kn(s){const b={};s?.includeFinished===!1&&(b.includeFinished="false"),s?.includeAborted===!1&&(b.includeAborted="false");const{data:f}=await le.get(Fe,{params:b});return Array.isArray(f)?f:[]}async function bn(s){await le.post(`${Fe}/${s}/cancel`)}async function wn(s){await le.post(`${Fe}/${s}/resend`)}async function $n(s){await le.post(`${Fe}/${s}/force-complete`)}const Cn={class:"mission-list-panel"},Sn={class:"toolbar"},In=["title"],Nn=["title"],xn=["title"],Ln=["title"],Tn={key:1,class:"muted"},Vn={key:0,class:"empty muted"},En=["disabled"],Mn=["disabled"],An=Ie({__name:"MissionListPanel",props:{deliveries:{},selectedId:{},loading:{type:Boolean}},emits:["select","refresh","actionDone"],setup(s,{emit:b}){const f=s,x=b,V=N(""),o=N(!0),g=N(!0),C=N(!1),R=N(0),U=N(0),W=N(null),K=M(()=>{const r=V.value.trim().toLowerCase(),v=r?r.split(/\s+/).filter(Boolean):[];return f.deliveries.filter(F=>{if(!v.length)return!0;const u=[String(F.id),F.srcLabel,F.dstLabel,F.status,F.carName??"",F.missionName].join(" ").toLowerCase();return v.every(c=>u.includes(c))})});function j(r,v=9){const F=r.indexOf("-"),u=F>=0?r.slice(F+1):r;return u.length<=v?u:`${u.slice(0,v)}…`}function A(r){return{已下发:"待发",执行中:"执行",已完成:"完成",已取消:"取消",强制结束:"强结",任务异常:"异常"}[r]??(r.length>4?`${r.slice(0,3)}…`:r)}function k(r,v=6){return r.length<=v?r:`${r.slice(0,v)}…`}function Q(r){switch(r){case"Fetching":case"Putting":return"success";case"Waiting":return"primary";case"Finished":return"info";case"Canceled":case"Terminated":return"warning";case"Error":return"danger";default:return"info"}}function Z({row:r}){const v=[];return r.id===f.selectedId&&v.push("is-selected-row"),r.overdue&&v.push("is-overdue-row"),v.join(" ")}function Y(r){return["Finished","Canceled","Terminated","Error"].includes(r)}function O(r){return r!=null&&!Y(r.statusCode)}function D(r){return r!=null&&!Y(r.statusCode)}function te(){x("refresh",{includeFinished:o.value,includeAborted:g.value})}function me(r){G(),x("select",r)}function z(r,v,F){F.preventDefault(),W.value=r,R.value=F.clientX,U.value=F.clientY,C.value=!0}function G(){C.value=!1,W.value=null}const ne={cancel:"取消任务",resend:"重发任务","force-complete":"强制完成"};async function y(r){const v=W.value;if(G(),!!v&&!(r==="cancel"&&!O(v))&&!(r==="force-complete"&&!D(v))){try{await De.confirm(`确定对任务 #${v.id}(${v.srcLabel} → ${v.dstLabel})执行「${ne[r]}」?`,"确认操作",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消"})}catch{return}try{r==="cancel"?await bn(v.id):r==="resend"?await wn(v.id):await $n(v.id),E.success(`${ne[r]} 已提交`),x("actionDone")}catch(F){E.error(`${ne[r]} 失败:${F.message}`)}}}function L(){G()}return He(()=>document.addEventListener("click",L)),Qe(()=>document.removeEventListener("click",L)),(r,v)=>{const F=Ke,u=et,c=nt,_=tt;return d(),h("div",Cn,[t("div",Sn,[a(F,{modelValue:V.value,"onUpdate:modelValue":v[0]||(v[0]=S=>V.value=S),size:"small",clearable:"",placeholder:"搜索任务 ID / 站点 / 车辆",class:"search"},null,8,["modelValue"]),a(u,{modelValue:o.value,"onUpdate:modelValue":v[1]||(v[1]=S=>o.value=S),size:"small",onChange:te},{default:i(()=>[...v[7]||(v[7]=[H(" 含已完成 ",-1)])]),_:1},8,["modelValue"]),a(u,{modelValue:g.value,"onUpdate:modelValue":v[2]||(v[2]=S=>g.value=S),size:"small",onChange:te},{default:i(()=>[...v[8]||(v[8]=[H(" 含取消/异常 ",-1)])]),_:1},8,["modelValue"])]),a(_,{data:K.value,size:"small",stripe:"","highlight-current-row":"","row-class-name":Z,height:"100%",class:"delivery-table","table-layout":"fixed",onRowClick:me,onRowContextmenu:z},{default:i(()=>[a(c,{prop:"id",label:"ID",width:"40",align:"center"}),a(c,{label:"起点","show-overflow-tooltip":""},{default:i(({row:S})=>[t("span",{class:"cell-ellipsis",title:S.srcLabel},p(j(S.srcLabel)),9,In)]),_:1}),a(c,{label:"终点","show-overflow-tooltip":""},{default:i(({row:S})=>[t("span",{class:"cell-ellipsis",title:S.dstLabel},p(j(S.dstLabel)),9,Nn)]),_:1}),a(c,{label:"状态",width:"52",align:"center"},{default:i(({row:S})=>[t("span",{class:_e(["status-pill",`status-pill--${Q(S.statusCode)}`]),title:S.status},p(A(S.status)),11,xn)]),_:1}),a(c,{label:"车辆",width:"56","show-overflow-tooltip":""},{default:i(({row:S})=>[S.carName?(d(),h("span",{key:0,class:"cell-ellipsis",title:S.carName},p(k(S.carName)),9,Ln)):(d(),h("span",Tn,"—"))]),_:1})]),_:1},8,["data"]),K.value.length?$e("",!0):(d(),h("div",Vn,"暂无搬运任务")),We(t("div",{class:"ctx-menu",style:at({left:`${R.value}px`,top:`${U.value}px`}),onClick:v[6]||(v[6]=ye(()=>{},["stop"]))},[t("button",{type:"button",class:"ctx-item",disabled:!O(W.value),onClick:v[3]||(v[3]=S=>y("cancel"))}," 取消任务 ",8,En),t("button",{type:"button",class:"ctx-item",onClick:v[4]||(v[4]=S=>y("resend"))}," 重发任务 "),t("button",{type:"button",class:"ctx-item",disabled:!D(W.value),onClick:v[5]||(v[5]=S=>y("force-complete"))}," 强制完成 ",8,Mn)],4),[[je,C.value]])])}}}),Pn=Ne(An,[["__scopeId","data-v-38e00e9c"]]),Dn=["onClick"],Fn={class:"sid"},On={class:"sname"},Rn={key:0,class:"empty"},zn=Ie({__name:"SitePickDialog",props:{modelValue:{type:Boolean},title:{},sites:{}},emits:["update:modelValue","confirm","pickOnMap"],setup(s,{expose:b,emit:f}){const x=s,V=f,o=M({get:()=>x.modelValue,set:A=>V("update:modelValue",A)}),g=N(""),C=N(null),R=N(!1),U=M(()=>{const A=g.value.trim().toLowerCase();return A?x.sites.filter(k=>String(k.id).includes(A)||k.name.toLowerCase().includes(A)||k.label.toLowerCase().includes(A)):x.sites});lt(()=>x.modelValue,A=>{A&&(g.value="",C.value=x.sites[0]?.id??null)});function W(){C.value!=null&&(V("confirm",C.value),o.value=!1)}function K(){R.value=!0,V("pickOnMap")}function j(){R.value=!1}return b({close:()=>{o.value=!1},endMapPick:()=>{R.value=!1}}),(A,k)=>{const Q=Ke,Z=vt,Y=Pe,O=st;return d(),ge(O,{modelValue:o.value,"onUpdate:modelValue":k[2]||(k[2]=D=>o.value=D),title:s.title,width:"420px","destroy-on-close":"","append-to-body":"",class:"site-pick-dialog",onClosed:j},{footer:i(()=>[a(Y,{onClick:k[1]||(k[1]=D=>o.value=!1)},{default:i(()=>[...k[3]||(k[3]=[H("取消",-1)])]),_:1}),a(Y,{loading:R.value,onClick:K},{default:i(()=>[...k[4]||(k[4]=[H("在地图上拾取",-1)])]),_:1},8,["loading"]),a(Y,{type:"primary",disabled:C.value==null,onClick:W},{default:i(()=>[...k[5]||(k[5]=[H("确认前往",-1)])]),_:1},8,["disabled"])]),default:i(()=>[k[6]||(k[6]=t("p",{class:"hint"},"请选择车辆要前往的目标站点。",-1)),a(Q,{modelValue:g.value,"onUpdate:modelValue":k[0]||(k[0]=D=>g.value=D),clearable:"",placeholder:"搜索站点 ID / 名称",class:"filter-input"},null,8,["modelValue"]),a(Z,{"max-height":"280px",class:"site-scroll"},{default:i(()=>[(d(!0),h(J,null,oe(U.value,D=>(d(),h("button",{key:D.id,type:"button",class:_e(["site-row",{active:C.value===D.id}]),onClick:te=>C.value=D.id},[t("span",Fn,"#"+p(D.id),1),t("span",On,p(D.name||"未命名"),1)],10,Dn))),128)),U.value.length?$e("",!0):(d(),h("div",Rn,"无匹配站点"))]),_:1})]),_:1},8,["modelValue","title"])}}}),Bn=Ne(zn,[["__scopeId","data-v-1e1b7025"]]),Un=new Set(["Goto","GotoSite"]),Wn=["去某地","前往站点"];function Ze(s){if(s.params?.length)return!1;if(Un.has(s.methodName))return!0;const b=s.label??"";return Wn.some(f=>b.includes(f))}async function jn(){return(await Se.listObjects("site")).map(b=>({id:b.id,name:b.name,label:`#${b.id} ${b.name||"站点"}`})).sort((b,f)=>b.id-f.id)}async function Je(){try{E.info({message:"请在 3D 地图上点击目标站点附近",duration:4e3});const s=await zt.pick();return s.siteId==null||s.siteId<0?(E.warning("未识别到附近站点,请靠近站点再点击"),null):s.siteId}catch(s){return s instanceof Error&&/取消|cancel|499/i.test(s.message)||E.error(`地图拾取失败:${s instanceof Error?s.message:String(s)}`),null}}function Kn(s){if(s&&typeof s=="object"&&"response"in s&&s.response?.status===404)return!0;const b=s instanceof Error?s.message:String(s);return/status code 404/i.test(b)}async function Gn(s,b){try{const f=await Se.gotoCarSite(s,b);return E.success(f.message||`已下发前往站点 #${b}`),!0}catch(f){if(!Kn(f))return E.error(`前往站点失败:${f instanceof Error?f.message:String(f)}`),!1;try{const x=await Se.execute("car",s,"WebGotoSite",{siteId:b});return E.success(x.returnValue?`已执行:${x.returnValue}`:`已下发前往站点 #${b}`),!0}catch(x){const V=x instanceof Error?x.message:String(x),o=/WebGotoSite|goto-site|不存在可调用方法/i.test(V);return E.error(o?`${V}。当前 SimpleLite 仍是旧版 DLL:请先完全关闭 SimpleLite 窗口,再在 PowerShell 执行 Migu2.0/scripts/redeploy-simplelite.ps1,然后重新登录;或调用 POST /api/health/simplelite/restart-for-update`:`前往站点失败:${V}`),!1}}}async function Hn(s,b,f){const x=f.label||f.methodName,V={};for(const o of f.params)try{const{value:g}=await De.prompt(`参数 ${o.name}(${o.typeName})`,x,{inputValue:o.defaultValue??"",confirmButtonText:"确定",cancelButtonText:"取消"});V[o.name]=g??""}catch{return!1}try{const o=await Se.execute(s,b,f.methodName,V);return E.success(o.returnValue?`已执行:${o.returnValue}`:`已执行 ${x}`),!0}catch(o){return E.error(`执行失败:${o instanceof Error?o.message:String(o)}`),!1}}const Xn={class:"monitor-selection"},Yn={key:0,class:"empty-hint"},qn={key:1,class:"pane"},Zn={key:0,class:"pane-loading"},Jn={class:"card card--header"},Qn={class:"title-row"},ea={class:"id-tag"},ta={class:"name-line"},na={class:"card"},aa={class:"kv-grid"},la={class:"kv"},sa={class:"v mono"},ia={class:"kv"},oa={class:"v mono"},ra={class:"kv"},ca={class:"v mono"},ua={key:0,class:"card"},da={class:"card-hd"},fa={class:"meta"},va={class:"kv-list"},ma={class:"k"},pa=["title"],ga={key:1,class:"card card--actions"},ya={class:"action-grid"},_a=["disabled","onClick"],ha={class:"card card--header"},ka={class:"title-row"},ba={class:"id-tag"},wa={class:"name-line"},$a={class:"card"},Ca={class:"kv-list"},Sa={class:"kv-row"},Ia=["title"],Na={class:"kv-row"},xa={class:"v"},La=["title"],Ta={class:"kv-row"},Va={class:"kv-row"},Ea=["title"],Ma={class:"card card--actions"},Aa={class:"card-hd"},Pa={key:0,class:"meta"},Da={key:1,class:"meta"},Fa={key:0,class:"muted-line"},Oa={key:1,class:"action-grid action-grid--vehicle"},Ra=["disabled","title","onClick"],za={key:0,class:"muted-line"},Ba={key:1,class:"muted-line"},Ua={key:2,class:"action-grid action-grid--vehicle"},Wa=["disabled","onClick"],ja={class:"card card--header"},Ka={class:"title-row"},Ga={class:"id-tag"},Ha={class:"name-line"},Xa={key:0,class:"card"},Ya={class:"kv-list"},qa={class:"k"},Za={class:"v"},Ja={class:"k"},Qa={class:"v"},el={key:1,class:"card card--actions"},tl={class:"action-grid"},nl=["disabled","onClick"],al={key:4,class:"muted-line"},ll=Ie({__name:"MonitorSelectionPanel",props:{selection:{},refreshKey:{},cars:{},missions:{},readOnly:{type:Boolean}},setup(s){const b=new Set(["AllowLock","PreventLock"]),f=s,x=it(),V=N(!1),o=N(!1),g=N(!1),C=N(null),R=N(null),U=N(""),W=N(""),K=N(""),j=N({}),A=N([]),k=N([]),Q=N({}),Z=N([]),Y=N([]),O=N(!1),D=N(!1),te=N([]),me=N("选择目标站点"),z={car:"car",vehicle:"car",site:"site",track:"track"},G=M(()=>{const e=f.selection?.kind?.toLowerCase();return e?z[e]??null:null}),ne=M(()=>{const e=f.selection?.kind?.toLowerCase();return e==="site"?"site":e==="vehicle"||e==="car"?"vehicle":e==="track"?"track":"other"}),y=M(()=>{const e=Number(f.selection?.id);return Number.isFinite(e)?e:f.selection?.id??"-"});function L(e,l=1){if(e==null||e==="")return"—";const m=Number(e);return Number.isFinite(m)?m.toFixed(l):e}function r(...e){for(const l of e){const m=j.value[l];if(m!=null&&m!=="")return m}return""}function v(...e){for(const l of e){const m=A.value.find(P=>P.key===l);if(m?.value)return m.value}for(const l of e){const m=A.value.find(P=>P.key.includes(l));if(m?.value)return m.value}return""}function F(){const e=v("标记","tags");return e?/unavailable/i.test(e):!1}const u=M(()=>({name:r("name")||U.value||f.selection?.name||`站点 ${y.value}`,x:L(r("x"),1),y:L(r("y"),1),z:L(r("z"),1),disabled:F()})),c=M(()=>{const e=Z.value;if(e.length){const l=new Set(e);return k.value.filter(m=>l.has(m.methodName))}return k.value.filter(l=>b.has(l.methodName))}),_=M(()=>{const e=Y.value;if(!e.length)return k.value;const l=new Set(e);return k.value.filter(m=>l.has(m.methodName))});function S(){if(!f.selection||ne.value!=="vehicle")return;const e=String(f.selection.id);return f.cars?.find(l=>l.id===e||String(l.rawId??"")===e||pe(l)===e)}function pe(e){return e.rawId!=null?String(e.rawId):e.id.replace(/^C/i,"").replace(/^0+/,"")||e.id}const re=M(()=>A.value.map(e=>({key:e.key,value:e.value||"—",warn:/alarm|error|fault|block|stop/i.test(`${e.key} ${e.value}`)&&e.value!=="0"&&e.value!=="无"})));function he(){const e=r("tags");if(e)return e;const l=v("tags","标记");if(l)return l;for(const m of A.value)if(/tag|标记/i.test(m.key)&&m.value)return m.value;return""}function Me(){const e=he();if(/occupied/i.test(e))return!0;for(const l of A.value)if(/occupied/i.test(l.value??""))return!0;return!1}function ke(){const e=S(),l=r("batterySoc","battery","电量");let m=null;if(l){const P=Number(l);Number.isFinite(P)&&(m=P<=1?Math.round(P*100):Math.round(P))}else e!=null&&(m=Math.round(e.batterySoc<=1?e.batterySoc*100:e.batterySoc));return m==null?{text:"—",low:!1}:{text:`${m}%`,low:m<20}}function ee(){const e=S(),l=r("x"),m=r("y"),P=r("th","theta"),w=l||(e!=null?String(e.x):""),de=m||(e!=null?String(e.y):""),Ve=P||(e!=null?String(e.theta):"");if(w||de)return`(${w||"—"}, ${de||"—"}${Ve?`, ${L(Ve,1)}°`:""})`;const Ee=r("siteID");return Ee&&Ee!=="-1"?`站点 #${Ee}`:v("位姿","站点")||"—"}function Le(){const e=v("TCStat")||r("TCStat");if(e&&e!=="/"&&e.trim()!=="")return e;const l=v("blockedBy");if(l&&l!=="[]"&&l!=="/")try{const Ve=JSON.parse(l);if(Array.isArray(Ve)&&Ve.length>0){const Ee=Ve.map(Be=>Be.carid).filter(Be=>Be!=null);return Ee.length?`被车辆 ${Ee.join("、")} 交管`:"交管阻塞"}}catch{return l.length>48?`${l.slice(0,48)}…`:l}const m=v("trafficStopped");if(m&&m!=="(0, 0)"&&m!=="(0,0)"&&m!=="/")return`交管暂停 ${m}`;const P=v("holdingLocks"),w=v("pendingLocks"),de=[];return P&&P!=="[]"&&de.push(`已占 ${P}`),w&&w!=="[]"&&de.push(`待锁 ${w}`),de.length?de.join(";"):"正常"}function ie(){const e=v("车体_AlarmInfo","AlarmInfo")||A.value.find(m=>/alarminfo/i.test(m.key))?.value;if(e&&e!=="0"&&e!=="/"&&e.trim()!=="")return{text:e,warn:!0};const l=r("lstatus")||v("lstatus");return l&&/故障|报警|异常|失联|超时|检修/i.test(l)?{text:l,warn:!0}:{text:"无",warn:!1}}const q=M(()=>{const e=S(),l=Me(),m=l?"任务中":"空闲",P=ie(),w=ke();return{id:e?.id??f.selection?.id??"-",name:U.value||e?.name||f.selection?.name||"车辆",runLabel:m,runTagType:l?"success":"info",traffic:Le(),alarm:P.text,alarmWarn:P.warn,battery:w.text,batteryLow:w.low,position:ee()}});function xe(){const e=Q.value,l=K.value,m=W.value;if(l&&e[l]?.length)return e[l];if(m&&e[m]?.length)return e[m];for(const[P,w]of Object.entries(e))if(w.length&&(l&&(P===l||P.endsWith("."+m)||l.endsWith("."+P))||m&&(P===m||P.endsWith("."+m))))return w;return[]}const I=M(()=>xe()),n=M(()=>{const e=I.value;if(!e.length)return[];const l=new Set(e);return k.value.filter(m=>l.has(m.methodName))}),$=M(()=>Bt.filter(e=>e.target==="car"&&x.hasOp(e.code)));async function T(e){const l=Number(f.selection?.id);if(Number.isFinite(l)){if(e.needConfirm)try{await De.confirm(`确认执行 [${e.label}]? -目标车辆:${f.selection?.id}`,"二次确认",{type:"warning"})}catch{return}C.value=e.code;try{const m=await Ut({opCode:e.code,targetId:String(l),reason:""});m.ok?E.success(`已执行 ${e.label}(auditId=${m.auditId})`):E.warning(m.message||`执行未成功:${e.label}`)}catch(m){E.error(`执行失败:${m.message}`)}finally{C.value=null}}}const B=M(()=>O.value?Object.keys(Q.value).length?I.value.length?"当前车型无可执行动作。":"当前车型未配置动作,或方法名与运营维护中勾选的不一致。":"未配置动作。请在「配置中心 → 运营维护」按车型勾选动作并保存。":"加载配置中…"),ce=M(()=>({name:r("name")||U.value||f.selection?.name||`路径 ${y.value}`})),se=M(()=>[{key:"layer",label:"图层",value:r("layerName","layer")||"—"},{key:"type",label:"类型",value:W.value||"—"}]);function ae(e){return e?`${e.kind}:${e.id}`:""}async function be(e=!1){if(!(O.value&&!e))try{const l=await rt(e);Q.value={...l.config.carActionByType??{}},Z.value=[...l.config.site?.methods??[]],Y.value=[...l.config.track?.methods??[]]}catch{Q.value={},Z.value=[],Y.value=[]}finally{O.value=!0}}function we(e,l){U.value=e.summary?.name??l??"",W.value=e.typeName??"",K.value="fullTypeName"in e&&e.fullTypeName?e.fullTypeName:e.typeName??"",j.value={...e.fields};for(const m of e.fieldList??[])j.value[m.key]=m.value;A.value=e.status??[],k.value=e.methods??[]}function Te(){const e=S();if(!e)return!1;U.value=e.name,W.value=e.typeName??"",K.value=e.typeName??"";const l=Math.round(e.batterySoc<=1?e.batterySoc*100:e.batterySoc);return j.value={x:String(e.x),y:String(e.y),th:String(e.theta),batterySoc:String(l)},A.value=[],k.value=[],!0}async function Ce(){if(!f.selection){U.value="",j.value={},A.value=[],k.value=[],o.value=!1;return}const e=G.value,l=Number(f.selection.id);if(!e||!Number.isFinite(l))return;const m=o.value,P=!m&&ne.value==="vehicle"&&Te();P&&(o.value=!0),m?g.value=!0:V.value=!P;try{if(f.readOnly){const de=await Se.getBundle(e,l);we(de,f.selection.name??""),k.value=[],o.value=!0;return}await be(!1);const w=await Se.getBundle(e,l);we(w,f.selection.name??""),o.value=!0}catch(w){f.readOnly?console.warn("[MonitorSelection] 只读详情加载失败,降级用列表数据",w):E.error(`加载选中信息失败:${w.message}`)}finally{V.value=!1,g.value=!1}}async function Oe(e){const l=G.value;if(!l||!f.selection||!e.methodName)return;const m=Number(f.selection.id);if(Number.isFinite(m)){if(l==="car"&&Ze(e)){R.value=e,me.value=`选择目标站点 — ${e.label||e.methodName}`,C.value=e.methodName;try{const P=await Je();if(P!=null){await Re(P);return}te.value=await jn(),D.value=!0}catch(P){E.error(`加载站点列表失败:${P.message}`)}finally{D.value||(C.value=null)}return}C.value=e.methodName;try{await Hn(l,m,e)&&await Ce()}finally{C.value=null}}}async function Re(e){const l=Number(f.selection?.id);if(Number.isFinite(l)){C.value=R.value?.methodName??"goto";try{await Gn(l,e)&&await Ce()}finally{C.value=null,R.value=null}}}async function ct(){const e=await Je();D.value=!1,e!=null&&await Re(e)}let ze=0,Ye="";return lt(()=>[ae(f.selection),f.refreshKey],async(e,l)=>{const m=++ze;if(l&&e[0]===l[0]&&e[0]&&e[1]!==l[1])return await be(!0),void 0;e[0]!==Ye&&(o.value=!1,Ye=e[0]),await Ce()},{immediate:!0}),(e,l)=>{const m=Xe,P=Ge;return d(),h("div",Xn,[s.selection?(d(),h("div",qn,[V.value?(d(),h("div",Zn,[a(m,{class:"is-loading"},{default:i(()=>[a(X(mt))]),_:1}),l[2]||(l[2]=t("span",null,"加载中…",-1))])):ne.value==="site"?(d(),h(J,{key:1},[t("section",Jn,[t("div",Qn,[t("span",ea,"#"+p(y.value),1),l[3]||(l[3]=t("span",{class:"type-tag"},"站点",-1))]),t("div",ta,p(u.value.name),1)]),t("section",na,[l[7]||(l[7]=t("header",{class:"card-hd"},[t("span",null,"位置")],-1)),t("div",aa,[t("div",la,[l[4]||(l[4]=t("span",{class:"k"},"X",-1)),t("span",sa,p(u.value.x),1)]),t("div",ia,[l[5]||(l[5]=t("span",{class:"k"},"Y",-1)),t("span",oa,p(u.value.y),1)]),t("div",ra,[l[6]||(l[6]=t("span",{class:"k"},"Z",-1)),t("span",ca,p(u.value.z),1)])])]),re.value.length?(d(),h("section",ua,[t("header",da,[l[8]||(l[8]=t("span",null,"状态",-1)),t("span",fa,p(re.value.length),1)]),t("div",va,[(d(!0),h(J,null,oe(re.value,w=>(d(),h("div",{key:w.key,class:"kv-row"},[t("span",ma,p(w.key),1),t("span",{class:"v",title:w.value},p(w.value),9,pa)]))),128))])])):$e("",!0),!s.readOnly&&c.value.length?(d(),h("section",ga,[l[9]||(l[9]=t("header",{class:"card-hd"},[t("span",null,"操作")],-1)),t("div",ya,[(d(!0),h(J,null,oe(c.value,w=>(d(),h("button",{key:w.methodName,type:"button",class:"action-btn",disabled:C.value===w.methodName,onClick:de=>Oe(w)},p(w.label||w.methodName),9,_a))),128))])])):$e("",!0)],64)):ne.value==="vehicle"?(d(),h(J,{key:2},[t("section",ha,[t("div",ka,[t("span",ba,p(q.value.id),1),a(P,{size:"small",type:q.value.runTagType,effect:"dark"},{default:i(()=>[H(p(q.value.runLabel),1)]),_:1},8,["type"])]),t("div",wa,p(q.value.name),1)]),t("section",$a,[l[15]||(l[15]=t("header",{class:"card-hd"},[t("span",null,"运行信息")],-1)),t("div",Ca,[t("div",Sa,[l[10]||(l[10]=t("span",{class:"k"},"交管状态",-1)),t("span",{class:"v",title:q.value.traffic},p(q.value.traffic),9,Ia)]),t("div",Na,[l[11]||(l[11]=t("span",{class:"k"},"运行状态",-1)),t("span",xa,p(q.value.runLabel),1)]),t("div",{class:_e(["kv-row",{"is-warn":q.value.alarmWarn}])},[l[12]||(l[12]=t("span",{class:"k"},"报警状态",-1)),t("span",{class:"v",title:q.value.alarm},p(q.value.alarm),9,La)],2),t("div",Ta,[l[13]||(l[13]=t("span",{class:"k"},"电量",-1)),t("span",{class:_e(["v",{"is-low-battery":q.value.batteryLow}])},p(q.value.battery),3)]),t("div",Va,[l[14]||(l[14]=t("span",{class:"k"},"位置",-1)),t("span",{class:"v mono",title:q.value.position},p(q.value.position),9,Ea)])])]),t("section",Ma,[t("header",Aa,[t("span",null,p(s.readOnly?"运维动作":"动作"),1),!s.readOnly&&n.value.length?(d(),h("span",Pa,p(n.value.length),1)):s.readOnly&&$.value.length?(d(),h("span",Da,p($.value.length),1)):$e("",!0)]),s.readOnly?(d(),h(J,{key:0},[$.value.length?(d(),h("div",Oa,[(d(!0),h(J,null,oe($.value,w=>(d(),h("button",{key:w.code,type:"button",class:_e(["action-btn",{"action-btn--goto":w.needConfirm}]),disabled:C.value===w.code,title:w.description,onClick:de=>T(w)},p(w.label),11,Ra))),128))])):(d(),h("div",Fa,"当前账号无可执行的运维动作。"))],64)):(d(),h(J,{key:1},[g.value?(d(),h("div",za,"加载动作…")):n.value.length?(d(),h("div",Ua,[(d(!0),h(J,null,oe(n.value,w=>(d(),h("button",{key:w.methodName,type:"button",class:_e(["action-btn",{"action-btn--goto":X(Ze)(w)}]),disabled:C.value===w.methodName,onClick:de=>Oe(w)},p(w.label||w.methodName),11,Wa))),128))])):(d(),h("div",Ba,p(B.value),1))],64))])],64)):ne.value==="track"?(d(),h(J,{key:3},[t("section",ja,[t("div",Ka,[t("span",Ga,"#"+p(y.value),1),l[16]||(l[16]=t("span",{class:"type-tag"},"路径",-1))]),t("div",Ha,p(ce.value.name),1)]),re.value.length||se.value.length?(d(),h("section",Xa,[l[17]||(l[17]=t("header",{class:"card-hd"},[t("span",null,"信息")],-1)),t("div",Ya,[(d(!0),h(J,null,oe(se.value,w=>(d(),h("div",{key:w.key,class:"kv-row"},[t("span",qa,p(w.label),1),t("span",Za,p(w.value),1)]))),128)),(d(!0),h(J,null,oe(re.value,w=>(d(),h("div",{key:"s-"+w.key,class:"kv-row"},[t("span",Ja,p(w.key),1),t("span",Qa,p(w.value),1)]))),128))])])):$e("",!0),!s.readOnly&&_.value.length?(d(),h("section",el,[l[18]||(l[18]=t("header",{class:"card-hd"},[t("span",null,"动作")],-1)),t("div",tl,[(d(!0),h(J,null,oe(_.value,w=>(d(),h("button",{key:w.methodName,type:"button",class:"action-btn",disabled:C.value===w.methodName,onClick:de=>Oe(w)},p(w.label||w.methodName),9,nl))),128))])])):$e("",!0)],64)):(d(),h("div",al,"该类型暂不支持监控详情展示。"))])):(d(),h("div",Yn,[...l[1]||(l[1]=[t("span",{class:"empty-title"},"未选中对象",-1),t("span",{class:"empty-desc"},"在 3D 画布或车辆列表中点击以查看信息。",-1)])])),a(Bn,{modelValue:D.value,"onUpdate:modelValue":l[0]||(l[0]=w=>D.value=w),title:me.value,sites:te.value,onConfirm:Re,onPickOnMap:ct},null,8,["modelValue","title","sites"])])}}}),sl=Ne(ll,[["__scopeId","data-v-c9236d99"]]),il={class:"fac-header"},ol={class:"fac-title"},rl={class:"fac-time"},cl={class:"fac-body"},ul={class:"fac-info"},dl={class:"fac-coord"},fl={key:0},vl={key:1,class:"muted"},ml={class:"fac-actions"},pl=Ie({__name:"FloatingAlarmCard",props:{alarm:{},initialOffset:{}},emits:["close","ack","snooze","locate"],setup(s,{emit:b}){const f=s,x=b,V=N(null),o=N(!1),g=N({right:f.initialOffset?.right??24,bottom:f.initialOffset?.bottom??24}),C=M(()=>typeof f.alarm.x=="number"&&Number.isFinite(f.alarm.x)),R=M(()=>{const z=(f.alarm.info||"").toLowerCase();return z.includes("critical")||z.includes("严重")||z.includes("紧急")?"critical":z.includes("error")||z.includes("故障")?"error":z.includes("warn")||z.includes("告警")?"warn":"info"}),U=M(()=>{try{return new Date(f.alarm.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return""}}),W=M(()=>({left:g.value.left!==void 0?`${g.value.left}px`:void 0,top:g.value.top!==void 0?`${g.value.top}px`:void 0,right:g.value.right!==void 0?`${g.value.right}px`:void 0,bottom:g.value.bottom!==void 0?`${g.value.bottom}px`:void 0}));let K=0,j=0,A=0,k=0;function Q(z){if(!V.value)return;const G=V.value.getBoundingClientRect();A=G.left,k=G.top,K=z.clientX,j=z.clientY,o.value=!0,window.addEventListener("mousemove",Z),window.addEventListener("mouseup",Y)}function Z(z){g.value={left:A+(z.clientX-K),top:k+(z.clientY-j)}}function Y(){o.value=!1,window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",Y)}ot(()=>{window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",Y)});function O(){x("close")}function D(){x("ack")}function te(){x("snooze")}function me(){x("locate",f.alarm)}return(z,G)=>{const ne=Xe,y=Pe;return d(),h("div",{ref_key:"cardRef",ref:V,class:_e(["floating-alarm-card",[`lvl-${R.value}`,{dragging:o.value}]]),style:at(W.value),onMousedown:ye(Q,["stop"])},[t("div",il,[G[0]||(G[0]=t("span",{class:"fac-dot"},null,-1)),t("span",ol,p(s.alarm.carName)+" #"+p(s.alarm.carId),1),t("span",rl,p(U.value),1),a(ne,{class:"fac-close",onClick:ye(O,["stop"])},{default:i(()=>[a(X(pt))]),_:1})]),t("div",cl,[t("div",ul,p(s.alarm.info),1),t("div",dl,[C.value?(d(),h("span",fl,"坐标 ("+p(s.alarm.x?.toFixed(0))+", "+p(s.alarm.y?.toFixed(0))+") mm",1)):(d(),h("span",vl,"无坐标"))])]),t("div",ml,[a(y,{size:"small",plain:"",disabled:!C.value,onClick:ye(me,["stop"])},{default:i(()=>[...G[1]||(G[1]=[H("定位",-1)])]),_:1},8,["disabled"]),a(y,{size:"small",plain:"",onClick:ye(D,["stop"])},{default:i(()=>[...G[2]||(G[2]=[H("确认",-1)])]),_:1}),a(y,{size:"small",plain:"",onClick:ye(te,["stop"])},{default:i(()=>[...G[3]||(G[3]=[H("稍后",-1)])]),_:1})])],38)}}}),gl=Ne(pl,[["__scopeId","data-v-0b6ee97c"]]),yl={class:"floating-alarm-stack"},_l=Ie({__name:"FloatingAlarmStack",props:{alarms:{}},emits:["locate","ack"],setup(s,{emit:b}){const f=s,x=b,V=N(new Set),o=N(new Set);function g(k){return`${k.carId}`}const C=M(()=>f.alarms.filter(k=>k.action!=="clear").filter(k=>!V.value.has(g(k))).filter(k=>!o.value.has(g(k)))),R=M(()=>f.alarms.filter(k=>o.value.has(g(k))));function U(k){V.value=new Set([...V.value,g(k)])}function W(k){V.value=new Set([...V.value,g(k)]),x("ack",k)}function K(k){o.value=new Set([...o.value,g(k)])}function j(k){x("locate",k)}function A(){o.value=new Set}return(k,Q)=>{const Z=Pe,Y=gt;return d(),h("div",yl,[(d(!0),h(J,null,oe(C.value,(O,D)=>(d(),ge(gl,{key:`${O.carId}-${O.timestamp}`,alarm:O,"initial-offset":{right:24,bottom:24+D*132},onClose:te=>U(O),onAck:te=>W(O),onSnooze:te=>K(O),onLocate:j},null,8,["alarm","initial-offset","onClose","onAck","onSnooze"]))),128)),R.value.length?(d(),h("div",{key:0,class:"snooze-tray",onClick:A},[a(Y,{value:R.value.length,type:"warning"},{default:i(()=>[a(Z,{size:"small",circle:""},{default:i(()=>[...Q[0]||(Q[0]=[H("≡",-1)])]),_:1})]),_:1},8,["value"])])):$e("",!0)])}}}),hl=Ne(_l,[["__scopeId","data-v-c37fdeb1"]]),fe="/sl/projection/toolbar";function Ue(s,b){return{key:s,value:b,Key:s,Value:b}}function kl(s,b){return{name:s,visible:b,Name:s,Visible:b}}function bl(s){return{note:s,Note:s}}function wl(s){return{fileName:s,FileName:s}}async function ve(s){const b=(await s).data;if(!b?.success)throw new Error(b?.message??"请求失败");if(b.data==null)throw new Error("服务端返回空数据");return b.data}const ue={getState:()=>ve(le.get(`${fe}/state`)),setAlign:(s,b)=>ve(le.post(`${fe}/align`,Ue(s,b))),setSelect:(s,b)=>ve(le.post(`${fe}/select`,Ue(s,b))),setDisplay:(s,b)=>ve(le.post(`${fe}/display`,Ue(s,b))),setLayerVisibility:(s,b)=>ve(le.post(`${fe}/layer`,kl(s,b))),startRecording:s=>ve(le.post(`${fe}/recording/start`,bl(s??""))),stopRecording:()=>ve(le.post(`${fe}/recording/stop`)),deleteRecording:s=>ve(le.delete(`${fe}/recording/${encodeURIComponent(s)}`)),startPlayback:s=>ve(le.post(`${fe}/playback/start`,wl(s))),stopPlayback:()=>ve(le.post(`${fe}/playback/stop`)),toggleViewMode:()=>ve(le.post(`${fe}/view/toggle`)),setCameraFollow:(s,b)=>ve(le.post(`${fe}/camera/follow`,{carId:s??void 0,enabled:b,CarId:s??void 0,Enabled:b})),locateCamera:s=>ve(le.post(`${fe}/camera/locate`,{carId:s,CarId:s}))},$l={class:"canvas-toolbar"},Cl=["onClick"],Sl=["onClick"],Il={key:0,class:"menu-empty"},Nl=["onClick"],xl=["onClick"],Ll={class:"btn-label"},Tl={class:"btn-label"},Vl={class:"btn-label"},El={class:"btn-label"},Ml={class:"muted-hint"},Al=Ie({__name:"WorkspaceCanvasToolbar",props:{followCarId:{default:null}},setup(s){const b=s,f=[{key:"sites",label:"站点"},{key:"cars",label:"AGV"},{key:"tracks",label:"路径"}],x=[{key:"tracks",label:"路径"},{key:"cars",label:"AGV"},{key:"decor",label:"区域/装饰"},{key:"sites",label:"站点"}],V=[{key:"labels",label:"场景图元标记"},{key:"primitives",label:"场景图元"},{key:"cars",label:"车辆"}],o=N(null),g=Vt({align:!1,select:!1,display:!1,layer:!1,recording:!1,playback:!1,view:!1,follow:!1}),C=N(!1),R=N(!1);let U=null;const W=M(()=>{const u=o.value?.recording;if(!u?.isRecording)return"录制";const c=Math.floor((u.elapsedMs??0)/1e3),_=String(Math.floor(c/60)).padStart(2,"0"),S=String(c%60).padStart(2,"0");return`停止 ${_}:${S}`}),K=M(()=>o.value?.view?.map2D??!0),j=M(()=>o.value?.view?.follow?.enabled??!1),A=M(()=>{const u=b.followCarId;if(u!=null&&Number.isFinite(u))return u;const c=o.value?.view?.follow?.carId;return c!=null&&Number.isFinite(c)?c:null});async function k(){try{o.value=await ue.getState()}catch(u){E.error(`同步工具栏状态失败:${u.message}`)}}async function Q(u){if(o.value){g.align=!0;try{o.value=await ue.setAlign(u,!o.value.align[u])}catch(c){E.error(`切换对齐失败:${c.message}`)}finally{g.align=!1}}}async function Z(u){if(o.value){g.select=!0;try{o.value=await ue.setSelect(u,!o.value.select[u])}catch(c){E.error(`切换选择过滤失败:${c.message}`)}finally{g.select=!1}}}async function Y(u){if(o.value){g.display=!0;try{o.value=await ue.setDisplay(u,!o.value.display[u])}catch(c){E.error(`切换显示内容失败:${c.message}`)}finally{g.display=!1}}}async function O(u,c){g.layer=!0;try{o.value=await ue.setLayerVisibility(u,c)}catch(_){E.error(`切换图层失败:${_.message}`)}finally{g.layer=!1}}function D(){E.info("寻路右键动作尚未接入 SimpleLite;请使用 SegmentPlan.FindRoute / 工作台脚本。")}async function te(){const u=o.value?.recording;if(u){if(u.isPlaying){E.warning("当前在回放中,请先停止回放。");return}g.recording=!0;try{o.value=u.isRecording?await ue.stopRecording():await ue.startRecording("")}catch(c){E.error(`录制操作失败:${c.message}`)}finally{g.recording=!1}}}async function me(){const u=o.value?.recording;if(u){if(u.isRecording){E.warning("录制中无法进入回放,请先停止录制。");return}if(u.isPlaying){g.playback=!0;try{o.value=await ue.stopPlayback()}catch(c){E.error(`停止回放失败:${c.message}`)}finally{g.playback=!1}return}await k(),C.value=!0}}async function z(u){g.playback=!0;try{o.value=await ue.startPlayback(u),C.value=!1,R.value=!1,E.success(`已开始回放 ${u}`)}catch(c){E.error(`启动回放失败:${c.message}`)}finally{g.playback=!1}}async function G(u){try{await De.confirm(`确认删除录像 ${u}?此操作不可恢复。`,"删除录像",{type:"warning"})}catch{return}try{o.value=await ue.deleteRecording(u),E.success(`已删除 ${u}`)}catch(c){E.error(`删除失败:${c.message}`)}}async function ne(){await k(),R.value=!0}async function y(){g.view=!0;try{o.value=await ue.toggleViewMode()}catch(u){E.error(`切换视图失败:${u.message}`)}finally{g.view=!1}}async function L(){const u=A.value;if(!j.value&&(u==null||!Number.isFinite(u))){E.warning("请先在车辆列表或 3D 画布中选中一辆车");return}g.follow=!0;try{const c=!j.value;o.value=await ue.setCameraFollow(u,c),c?E.success({message:`已开始跟随车辆 #${u}`,duration:1500,grouping:!0}):E.info("已停止自动跟随")}catch(c){E.error(`自动跟随失败:${c.message}`)}finally{g.follow=!1}}function r(u){if(!Number.isFinite(u)||u<=0)return"0 B";if(u<1024)return`${u} B`;const c=u/1024;return c<1024?`${c.toFixed(0)} KB`:`${(c/1024).toFixed(1)} MB`}function v(u){if(!Number.isFinite(u)||u<=0)return"00:00:00";const c=Math.floor(u/1e3),_=String(Math.floor(c/3600)).padStart(2,"0"),S=String(Math.floor(c%3600/60)).padStart(2,"0"),pe=String(c%60).padStart(2,"0");return`${_}:${S}:${pe}`}function F(u){if(!u)return"—";const c=new Date(u);if(isNaN(c.getTime()))return u;const _=S=>String(S).padStart(2,"0");return`${c.getFullYear()}-${_(c.getMonth()+1)}-${_(c.getDate())} ${_(c.getHours())}:${_(c.getMinutes())}`}return He(()=>{k(),U=setInterval(()=>{const u=o.value?.recording;(u?.isRecording||u?.isPlaying||o.value?.view?.follow?.enabled)&&k()},1e3)}),ot(()=>{U&&clearInterval(U),j.value&&ue.setCameraFollow(null,!1).catch(()=>{})}),(u,c)=>{const _=Xe,S=Pe,pe=et,re=ht,he=yt,Me=wt,ke=Et,ee=nt,Le=tt,ie=st,q=Ge,xe=Tt;return d(),h("div",$l,[a(he,{trigger:"click","hide-on-click":!1,placement:"top-start"},{dropdown:i(()=>[a(re,{class:"toolbar-menu"},{default:i(()=>[(d(),h(J,null,oe(f,I=>t("div",{key:I.key,class:"menu-row",onClick:ye(n=>Q(I.key),["stop"])},[a(pe,{"model-value":o.value?.align[I.key]??!1},null,8,["model-value"]),t("span",null,p(I.label),1)],8,Cl)),64))]),_:1})]),default:i(()=>[a(S,{size:"small",loading:g.align},{default:i(()=>[a(_,null,{default:i(()=>[a(X(_t))]),_:1}),c[2]||(c[2]=t("span",{class:"btn-label"},"对齐",-1)),a(_,{class:"caret"},{default:i(()=>[a(X(Ae))]),_:1})]),_:1},8,["loading"])]),_:1}),a(he,{trigger:"click","hide-on-click":!1,placement:"top-start"},{dropdown:i(()=>[a(re,{class:"toolbar-menu"},{default:i(()=>[(d(),h(J,null,oe(x,I=>t("div",{key:I.key,class:"menu-row",onClick:ye(n=>Z(I.key),["stop"])},[a(pe,{"model-value":o.value?.select[I.key]??!1},null,8,["model-value"]),t("span",null,p(I.label),1)],8,Sl)),64))]),_:1})]),default:i(()=>[a(S,{size:"small",loading:g.select},{default:i(()=>[a(_,null,{default:i(()=>[a(X(kt))]),_:1}),c[3]||(c[3]=t("span",{class:"btn-label"},"选择",-1)),a(_,{class:"caret"},{default:i(()=>[a(X(Ae))]),_:1})]),_:1},8,["loading"])]),_:1}),a(he,{trigger:"click",placement:"top-start"},{dropdown:i(()=>[a(re,{class:"toolbar-menu"},{default:i(()=>[a(Me,{onClick:D},{default:i(()=>[...c[5]||(c[5]=[H("寻路",-1)])]),_:1})]),_:1})]),default:i(()=>[a(S,{size:"small"},{default:i(()=>[a(_,null,{default:i(()=>[a(X(bt))]),_:1}),c[4]||(c[4]=t("span",{class:"btn-label"},"右击功能",-1)),a(_,{class:"caret"},{default:i(()=>[a(X(Ae))]),_:1})]),_:1})]),_:1}),c[14]||(c[14]=t("span",{class:"separator"},null,-1)),a(he,{trigger:"click","hide-on-click":!1,placement:"top-start"},{dropdown:i(()=>[a(re,{class:"toolbar-menu layer-menu"},{default:i(()=>[!o.value||o.value.layers.length===0?(d(),h("div",Il,"(无图层)")):(d(!0),h(J,{key:1},oe(o.value.layers,I=>(d(),h("div",{key:I.name,class:"menu-row",onClick:ye(n=>O(I.name,!I.visible),["stop"])},[a(pe,{"model-value":I.visible},null,8,["model-value"]),t("span",null,"图层 "+p(I.name),1)],8,Nl))),128))]),_:1})]),default:i(()=>[a(S,{size:"small",loading:g.layer},{default:i(()=>[a(_,null,{default:i(()=>[a(X($t))]),_:1}),c[6]||(c[6]=t("span",{class:"btn-label"},"显示图层",-1)),a(_,{class:"caret"},{default:i(()=>[a(X(Ae))]),_:1})]),_:1},8,["loading"])]),_:1}),a(he,{trigger:"click","hide-on-click":!1,placement:"top-start"},{dropdown:i(()=>[a(re,{class:"toolbar-menu"},{default:i(()=>[(d(),h(J,null,oe(V,I=>t("div",{key:I.key,class:"menu-row",onClick:ye(n=>Y(I.key),["stop"])},[a(pe,{"model-value":o.value?.display[I.key]??!1},null,8,["model-value"]),t("span",null,p(I.label),1)],8,xl)),64))]),_:1})]),default:i(()=>[a(S,{size:"small",loading:g.display},{default:i(()=>[a(_,null,{default:i(()=>[a(X(qe))]),_:1}),c[7]||(c[7]=t("span",{class:"btn-label"},"显示内容",-1)),a(_,{class:"caret"},{default:i(()=>[a(X(Ae))]),_:1})]),_:1},8,["loading"])]),_:1}),c[15]||(c[15]=t("span",{class:"separator"},null,-1)),a(S,{size:"small",type:o.value?.recording.isRecording?"danger":"default",loading:g.recording,onClick:te},{default:i(()=>[o.value?.recording.isRecording?(d(),ge(_,{key:0},{default:i(()=>[a(X(Ct))]),_:1})):(d(),ge(_,{key:1},{default:i(()=>[a(X(St))]),_:1})),t("span",Ll,p(W.value),1)]),_:1},8,["type","loading"]),a(S,{size:"small",type:o.value?.recording.isPlaying?"warning":"default",loading:g.playback,onClick:me},{default:i(()=>[o.value?.recording.isPlaying?(d(),ge(_,{key:0},{default:i(()=>[a(X(It))]),_:1})):(d(),ge(_,{key:1},{default:i(()=>[a(X(Nt))]),_:1})),t("span",Tl,p(o.value?.recording.isPlaying?"退出回放":"回放"),1)]),_:1},8,["type","loading"]),a(S,{size:"small",onClick:ne},{default:i(()=>[a(_,null,{default:i(()=>[a(X(xt))]),_:1}),c[8]||(c[8]=t("span",{class:"btn-label"},"录像管理",-1))]),_:1}),a(S,{size:"small",type:K.value?"primary":"default",loading:g.view,onClick:y},{default:i(()=>[a(_,null,{default:i(()=>[a(X(qe))]),_:1}),t("span",Vl,p(K.value?"2D":"3D"),1)]),_:1},8,["type","loading"]),a(S,{size:"small",type:j.value?"warning":"default",disabled:!j.value&&A.value==null,loading:g.follow,onClick:L},{default:i(()=>[a(_,null,{default:i(()=>[a(X(Lt))]),_:1}),t("span",El,p(j.value?"停止跟随":"自动跟随"),1)]),_:1},8,["type","disabled","loading"]),a(ie,{modelValue:C.value,"onUpdate:modelValue":c[0]||(c[0]=I=>C.value=I),title:"选择录像回放",width:"640px","append-to-body":"","destroy-on-close":""},{default:i(()=>[!o.value||o.value.recording.entries.length===0?(d(),ge(ke,{key:0,description:"(无可用录像。点 ● 录制 创建首份录像。)"})):(d(),ge(Le,{key:1,data:o.value.recording.entries,size:"small",stripe:""},{default:i(()=>[a(ee,{prop:"fileName",label:"文件名","min-width":"180"}),a(ee,{label:"大小",width:"90"},{default:i(({row:I})=>[H(p(r(I.fileSizeBytes)),1)]),_:1}),a(ee,{prop:"frameCount",label:"帧",width:"70"}),a(ee,{label:"时长",width:"100"},{default:i(({row:I})=>[H(p(v(I.durationMs)),1)]),_:1}),a(ee,{label:"时间",width:"160"},{default:i(({row:I})=>[H(p(F(I.fileWriteTime)),1)]),_:1}),a(ee,{label:"操作",width:"100",fixed:"right"},{default:i(({row:I})=>[a(S,{link:"",type:"primary",disabled:!I.headerReadable,onClick:n=>z(I.fileName)},{default:i(()=>[...c[9]||(c[9]=[H("回放",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1},8,["data"]))]),_:1},8,["modelValue"]),a(ie,{modelValue:R.value,"onUpdate:modelValue":c[1]||(c[1]=I=>R.value=I),title:"录像管理",width:"780px","append-to-body":"","destroy-on-close":""},{default:i(()=>[t("p",Ml,"目录:"+p(o.value?.recording.recordingsDirectory??"—"),1),!o.value||o.value.recording.entries.length===0?(d(),ge(ke,{key:0,description:"(无可用录像。)"})):(d(),ge(Le,{key:1,data:o.value.recording.entries,size:"small",stripe:""},{default:i(()=>[a(ee,{prop:"fileName",label:"文件名","min-width":"200"}),a(ee,{label:"大小",width:"90"},{default:i(({row:I})=>[H(p(r(I.fileSizeBytes)),1)]),_:1}),a(ee,{prop:"frameCount",label:"帧",width:"70"}),a(ee,{label:"时长",width:"100"},{default:i(({row:I})=>[H(p(v(I.durationMs)),1)]),_:1}),a(ee,{label:"时间",width:"160"},{default:i(({row:I})=>[H(p(F(I.fileWriteTime)),1)]),_:1}),a(ee,{label:"状态",width:"120"},{default:i(({row:I})=>[I.headerReadable?(d(),ge(q,{key:0,type:"success",size:"small"},{default:i(()=>[...c[10]||(c[10]=[H("完整",-1)])]),_:1})):(d(),ge(xe,{key:1,content:I.error,placement:"top"},{default:i(()=>[a(q,{type:"danger",size:"small"},{default:i(()=>[...c[11]||(c[11]=[H("头部不可读",-1)])]),_:1})]),_:1},8,["content"]))]),_:1}),a(ee,{label:"操作",width:"160",fixed:"right"},{default:i(({row:I})=>[a(S,{link:"",type:"primary",disabled:!I.headerReadable,onClick:n=>z(I.fileName)},{default:i(()=>[...c[12]||(c[12]=[H("回放",-1)])]),_:1},8,["disabled","onClick"]),a(S,{link:"",type:"danger",onClick:n=>G(I.fileName)},{default:i(()=>[...c[13]||(c[13]=[H("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]))]),_:1},8,["modelValue"])])}}}),Pl=Ne(Al,[["__scopeId","data-v-968a4c89"]]),Dl={class:"map-monitor-page"},Fl={class:"muted"},Ol={class:"canvas-with-alarms"},Rl={class:"workbench-header"},zl=Ie({__name:"MapMonitorView",props:{readOnly:{type:Boolean}},setup(s){const b=it(),f="localhost:8223",x=N([]),V=N([]),o=N([]),g=N({includeFinished:!0,includeAborted:!0}),C=N(null),R=N(0),U=N(!1),W=N("vehicle"),K=N(null),j=N(null),A=N([]);async function k(n){const $=Number(n.carId);if(!Number.isFinite($)){E.warning(`报警车辆 id 无法解析:${n.carId}`);return}C.value={kind:"vehicle",id:String($),name:n.carName??String(n.carId)},await pe($)}function Q(n){}let Z=null;const Y=M(()=>x.value.filter(n=>n.state!=="offline").length),O=M(()=>o.value.length>0?o.value.filter(n=>n.statusCode==="Fetching"||n.statusCode==="Putting").length:V.value.filter(n=>n.status==="running").length),D=M(()=>o.value.length>0?o.value.filter(n=>n.statusCode==="Waiting").length:V.value.filter(n=>n.status==="queued").length),te=M(()=>{if(!C.value||C.value.kind!=="vehicle")return null;const n=C.value;return x.value.find(T=>T.id===n.id||ie(T)===n.id)?.id??null}),me=M(()=>{if(!C.value||C.value.kind!=="vehicle")return null;const n=C.value.id,$=Number(n);if(Number.isFinite($))return $;const T=x.value.find(B=>B.id===n||ie(B)===n);if(T?.rawId!=null)return T.rawId;if(T){const B=Number(ie(T));if(Number.isFinite(B))return B}return null});function z(n){}const G=/^(?:UI)?(?:Car|Vehicle)-(\d+)$/i,ne=/^UISite-(\d+)$/i,y=/^(?:UITrack|UICircularArcTrack|UIBezierTrack|UINurbsTrack)-(\d+)$/i;function L(n){const $=G.exec(n);if($)return{kind:"vehicle",id:$[1]};const T=ne.exec(n);if(T)return{kind:"site",id:T[1]};const B=y.exec(n);if(B)return{kind:"track",id:B[1]};const ce=/^UI([A-Za-z]+)-(\d+)$/.exec(n)??/^([A-Za-z]+)-(\d+)$/.exec(n);if(!ce)return null;const se=ce[1].toLowerCase(),ae=ce[2];return se==="site"?{kind:"site",id:ae}:se==="car"||se==="vehicle"?{kind:"vehicle",id:ae}:se.includes("track")?{kind:"track",id:ae}:null}function r(n,$){return!n&&!$?!0:!n||!$?!1:n.kind===$.kind&&n.id===$.id}function v(n,$){K.value=null;let T;if(n.kind==="vehicle"){const B=($?ee($):void 0)??x.value.find(ce=>ie(ce)===n.id);T=B?{kind:"vehicle",id:ie(B),name:B.name}:{kind:"vehicle",id:n.id,name:`Vehicle ${n.id}`}}else T={kind:n.kind,id:n.id,name:$||`${n.kind==="site"?"Site":"Track"} ${n.id}`};r(C.value,T)||(C.value=T)}function F(n,$,T){if(K.value=null,n==="car"){const ae=String($),be=T?.find(Ce=>G.test(Ce))??`Car-${$}`,we=ee(be)??x.value.find(Ce=>ie(Ce)===ae||Ce.id===ae),Te=we?{kind:"vehicle",id:ie(we),name:we.name}:{kind:"vehicle",id:ae,name:`Vehicle ${ae}`};r(C.value,Te)||(C.value=Te);return}const B=String($),ce=T?.find(ae=>{const be=L(ae);return be?.kind===n&&be.id===B}),se={kind:n,id:B,name:ce||`${n==="site"?"Site":"Track"} ${B}`};r(C.value,se)||(C.value=se)}function u(n){const $=n.siteIds?.length??0,T=n.trackIds?.length??0,B=n.carIds?.length??0,ce=Array.isArray(n.names)?n.names.length:0;if($+T+B+ce===0){C.value=null;return}if(Array.isArray(n.names))for(const se of n.names){const ae=L(se);if(ae){v(ae,se);return}}if(n.kind&&n.id){F(n.kind,n.id,n.names);return}if($>0){F("site",n.siteIds[0],n.names);return}if(T>0){F("track",n.trackIds[0],n.names);return}B>0&&F("car",n.carIds[0],n.names)}function c(n){if(!n.length){S();return}for(const $ of n){const T=L($);if(T){v(T,$);return}}S()}function _(){S()}async function S(){try{const n=await Se.getSelection();if(!n?.kind||n.id==null||n.kind!=="car"&&n.kind!=="site"&&n.kind!=="track")return;F(n.kind,Number(n.id),n.name?[n.name]:void 0)}catch{}}async function pe(n){if(!Number.isFinite(n))return;const[$,T]=await Promise.allSettled([Se.setSelection("car",n),ue.locateCamera(n)]);$.status==="rejected"&&E.error({message:`同步 3D 选中失败:${$.reason.message}`,grouping:!0}),T.status==="rejected"&&E.error({message:`定位车辆失败:${T.reason.message}`,grouping:!0})}async function re(n){K.value=null,r(C.value,n)||(C.value=n),await pe(Number(n.id))}async function he(n){if(K.value=n.id,n.carId!=null){const $=x.value.find(T=>T.rawId===n.carId||ie(T)===String(n.carId));if($){await re({kind:"vehicle",id:ie($),name:$.name});return}C.value={kind:"vehicle",id:String(n.carId),name:n.carName??`Vehicle ${n.carId}`},await pe(n.carId);return}C.value={kind:"delivery",id:String(n.id),name:`${n.srcLabel} → ${n.dstLabel}`}}function Me(n){g.value=n,ke()}async function ke(){try{o.value=await kn(g.value)}catch(n){console.warn("[MapMonitor] refreshDeliveries failed",n),o.value=[]}}function ee(n){const $=Le(n);return x.value.find(T=>T.name===n||T.id===n||$!=null&&ie(T)===$)}function Le(n){return/^(?:UI)?(?:Car|Vehicle)-(\d+)$/i.exec(n)?.[1]??null}function ie(n){return n.rawId!=null?String(n.rawId):n.id.replace(/^C/i,"").replace(/^0+/,"")||n.id}async function q(){U.value=!0;try{const[n,$]=await Promise.all([jt(),Kt()]);x.value=n,V.value=$,await ke()}catch(n){console.warn("[MapMonitor] refreshAll failed",n)}finally{U.value=!1}}const xe=Gt({autoConnect:!0});function I(n){if(n?.kind)switch(n.kind){case"alarm":{const $=n.payload;if(!$)return;A.value=[$,...A.value.filter(T=>T.carId!==$.carId)].slice(0,30);break}case"car-state":case"mission-status":q();break;case"selection-detail":n.payload&&typeof n.payload=="object"&&u(n.payload);break;case"monitor-config-updated":Wt(),R.value++;break}}return xe.on(I),He(async()=>{rt(),await q(),Z=setInterval(()=>{!xe.connected.value||x.value.length===0?q():W.value==="mission"&&ke()},3e3)}),Qe(()=>{Z&&clearInterval(Z),xe.off(I)}),(n,$)=>{const T=Pt,B=At,ce=Mt,se=Ot,ae=Ft,be=Pe,we=Dt;return d(),h("div",Dl,[a(ce,{gutter:12,class:"kpi-row"},{default:i(()=>[a(B,{span:8},{default:i(()=>[a(T,{title:"在线车辆",value:Y.value},{suffix:i(()=>[t("span",Fl,"/ "+p(x.value.length),1)]),_:1},8,["value"])]),_:1}),a(B,{span:8},{default:i(()=>[a(T,{title:"运行中任务",value:O.value},null,8,["value"])]),_:1}),a(B,{span:8},{default:i(()=>[a(T,{title:"排队任务",value:D.value},null,8,["value"])]),_:1})]),_:1}),a(ce,{gutter:12,class:"main-row"},{default:i(()=>[a(B,{span:16},{default:i(()=>[t("div",Ol,[a(Rt,{ref_key:"workspaceRef",ref:j,host:X(f),scope:X(b).scope??"Platform",token:X(b).token??"","read-only":!!s.readOnly,"canvas-only":!0,"hide-toolbar":!0,onPick:z,onSelect:c,onReady:_},null,8,["host","scope","token","read-only"]),a(hl,{alarms:A.value,onLocate:k,onAck:Q},null,8,["alarms"]),a(Pl,{"follow-car-id":me.value},null,8,["follow-car-id"])])]),_:1}),a(B,{span:8,class:"side-col"},{default:i(()=>[a(we,{shadow:"never",class:"side-card workbench-card"},{header:i(()=>[t("div",Rl,[a(ae,{modelValue:W.value,"onUpdate:modelValue":$[0]||($[0]=Te=>W.value=Te),class:"workbench-tabs"},{default:i(()=>[a(se,{label:"车辆监控台",name:"vehicle"}),a(se,{label:"任务列表",name:"mission"})]),_:1},8,["modelValue"]),a(be,{link:"",type:"primary",size:"small",loading:U.value,onClick:q},{default:i(()=>[...$[1]||($[1]=[H(" 刷新 ",-1)])]),_:1},8,["loading"])])]),default:i(()=>[We(a(hn,{cars:x.value,missions:V.value,"selected-id":te.value,onSelect:re},null,8,["cars","missions","selected-id"]),[[je,W.value==="vehicle"]]),We(a(Pn,{deliveries:o.value,"selected-id":K.value,onSelect:he,onRefresh:Me,onActionDone:ke},null,8,["deliveries","selected-id"]),[[je,W.value==="mission"]])]),_:1}),a(we,{shadow:"never",class:"side-card detail-card"},{header:i(()=>[...$[2]||($[2]=[t("span",null,"选中信息",-1)])]),default:i(()=>[a(sl,{selection:C.value,"refresh-key":R.value,cars:x.value,missions:V.value,"read-only":!!s.readOnly},null,8,["selection","refresh-key","cars","missions","read-only"])]),_:1})]),_:1})]),_:1})])}}}),ps=Ne(zl,[["__scopeId","data-v-a35ed0fa"]]);export{ps as default}; diff --git a/MiGu.Server/wwwroot/assets/MapMonitorView-CdBlKooR.js b/MiGu.Server/wwwroot/assets/MapMonitorView-CdBlKooR.js new file mode 100644 index 0000000..50f8787 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/MapMonitorView-CdBlKooR.js @@ -0,0 +1,2 @@ +import{aN as he,bs as f,aG as b,aD as n,bL as p,aK as l,R as Ke,a4 as ot,c8 as i,ai as J,bE as ce,Z as rt,bk as me,ad as je,aJ as q,$ as ct,aF as ye,bC as C,ay as A,ak as ke,b4 as Pe,bp as Xe,br as Je,u as Qe,aa as et,ab as tt,c9 as We,c0 as qe,cb as ve,bl as nt,Y as De,X as T,c7 as Fe,aE as fe,a3 as ut,r as Ae,F as at,bV as lt,Q as Ge,bS as H,bc as dt,bo as st,av as ft,o as vt,I as mt,bt as pt,an as Ee,K as gt,bw as yt,aX as _t,J as ht,aV as kt,c5 as He,c3 as bt,c2 as wt,au as $t,c4 as St,aQ as Ct,al as It,ag as Nt,bA as xt,L as Lt,a2 as Tt,bW as Mt,bX as Vt,w as Et,a6 as At,t as Ft,ac as Pt,a9 as Dt}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{W as Rt}from"./Workspace3D-B9mv4VWE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import{r as pe}from"./reflection-BwOBPyb9.js";import{m as Ot}from"./mapEdit-BXIATxCI.js";import{O as zt}from"./ops-BCeFEEjY.js";import{e as Bt}from"./ops-C48uBBTk.js";import{f as it,i as Ut}from"./monitorConfigCache-DXn96T8F.js";/* empty css *//* empty css *//* empty css */import{w as re}from"./workspaceToolbar-abOZ7a24.js";import{l as Wt,a as qt}from"./projection-BHFE6Meg.js";import{u as Kt}from"./useProjectionStream-ayb6RvWW.js";const jt={class:"vehicle-monitor"},Xt={class:"overview-row"},Gt={class:"overview-item"},Ht={class:"overview-num"},Yt={class:"overview-item"},Zt={class:"overview-num online"},Jt={class:"overview-item"},Qt={class:"overview-num running"},en={class:"overview-item"},tn={class:"overview-num charging"},nn={class:"overview-item"},an={class:"overview-num fault"},ln={class:"toolbar"},sn={class:"vehicle-list"},on=["onClick"],rn={class:"vehicle-head"},cn={class:"vid"},un=["title"],dn={class:"vehicle-sub"},fn=["title"],vn={class:"mission-mini"},mn=["title"],pn={key:1,class:"mission-name muted"},gn={key:0,class:"empty muted"},yn=he({__name:"VehicleMonitorPanel",props:{cars:{},missions:{},selectedId:{}},emits:["select"],setup(g,{emit:E}){const c=g,P=E,D=C(""),s=C(""),y=[{value:"idle",label:"空闲"},{value:"running",label:"运行中"},{value:"charging",label:"充电中"},{value:"paused",label:"已暂停"},{value:"fault",label:"故障"},{value:"offline",label:"离线"}],x=y.reduce((h,L)=>(h[L.value]=L.label,h),{});function U(h){return x[h]??h}function N(h){switch(h){case"running":return"success";case"charging":return"primary";case"paused":return"warning";case"fault":return"danger";case"offline":return"info";case"idle":default:return"info"}}const X={queued:"排队",assigned:"已分配",running:"执行中",paused:"暂停",completed:"已完成",cancelled:"已取消",failed:"失败"};function G(h){return X[h]??h}function O(h){switch(h){case"running":return"success";case"assigned":return"primary";case"queued":return"info";case"paused":return"warning";case"completed":return"success";case"cancelled":return"info";case"failed":return"danger";default:return"info"}}const F=A(()=>c.cars.filter(h=>h.state!=="offline").length),w=A(()=>c.cars.filter(h=>h.state==="running").length),Y=A(()=>c.cars.filter(h=>h.state==="charging").length),Z=A(()=>c.cars.filter(h=>h.state==="fault").length),K=A(()=>{const h=r=>r==="running"?0:r==="paused"?1:r==="assigned"?2:3,L=new Map;for(const r of c.missions){if(!r.carId||r.status!=="running"&&r.status!=="paused"&&r.status!=="assigned")continue;const m=L.get(r.carId);(!m||h(r.status)r.id===h.missionId);if(L)return L}return K.value.get(h.id)}function R(h){const L=h.batterySoc??0,r=L>1?L:L*100;return Math.max(0,Math.min(100,Math.round(r)))}function ae(h){return h<20?"#f56c6c":h<50?"#e6a23c":"#67c23a"}function ue(h){return h<20?"low":h<50?"mid":"high"}const W=A(()=>{const h=D.value.trim().toLowerCase(),L=h?h.split(/\s+/).filter(Boolean):[];return c.cars.filter(r=>{if(s.value&&r.state!==s.value)return!1;if(!L.length)return!0;const m=z(r),B=[r.id,r.name,r.typeName??"",r.group??"",r.ip??"",U(r.state),m?.name??"",m?G(m.status):""].join(" ").toLowerCase();return L.every(u=>B.includes(u))})});function j(h){P("select",{kind:"vehicle",id:le(h),name:h.name})}function le(h){return h.rawId!=null?String(h.rawId):h.id.replace(/^C/i,"").replace(/^0+/,"")||h.id}return(h,L)=>{const r=Ke,m=rt,B=ot,u=je,o=ct;return f(),b("div",jt,[n("div",Xt,[n("div",Gt,[n("div",Ht,p(g.cars.length),1),L[2]||(L[2]=n("div",{class:"overview-label"},"总数",-1))]),n("div",Yt,[n("div",Zt,p(F.value),1),L[3]||(L[3]=n("div",{class:"overview-label"},"在线",-1))]),n("div",Jt,[n("div",Qt,p(w.value),1),L[4]||(L[4]=n("div",{class:"overview-label"},"运行",-1))]),n("div",en,[n("div",tn,p(Y.value),1),L[5]||(L[5]=n("div",{class:"overview-label"},"充电",-1))]),n("div",nn,[n("div",an,p(Z.value),1),L[6]||(L[6]=n("div",{class:"overview-label"},"故障",-1))])]),n("div",ln,[l(r,{modelValue:D.value,"onUpdate:modelValue":L[0]||(L[0]=_=>D.value=_),size:"small",clearable:"",placeholder:"搜索 ID / 名称 / 任务",class:"search"},null,8,["modelValue"]),l(B,{modelValue:s.value,"onUpdate:modelValue":L[1]||(L[1]=_=>s.value=_),size:"small",placeholder:"状态",clearable:"",class:"filter"},{default:i(()=>[(f(),b(J,null,ce(y,_=>l(m,{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),n("div",sn,[(f(!0),b(J,null,ce(W.value,_=>(f(),b("div",{key:_.id,class:me(["vehicle-row",{"is-selected":_.id===g.selectedId}]),onClick:I=>j(_)},[n("div",rn,[n("span",cn,p(_.id),1),n("span",{class:"vname",title:_.name},p(_.name),9,un),l(u,{size:"small",type:N(_.state),class:"state-tag",effect:"dark"},{default:i(()=>[n("span",{class:me(["dot",`dot-${_.state}`])},null,2),q(" "+p(U(_.state)),1)]),_:2},1032,["type"])]),n("div",dn,[n("div",{class:"battery-mini",title:`电量 ${R(_)}%`},[l(o,{percentage:R(_),"stroke-width":6,"show-text":!1,color:ae(R(_)),class:"battery-bar"},null,8,["percentage","color"]),n("span",{class:me(["battery-text",ue(R(_))])},p(R(_))+"% ",3)],8,fn),n("div",vn,[z(_)?(f(),b(J,{key:0},[l(u,{size:"small",type:O(z(_).status),effect:"plain",class:"mission-tag"},{default:i(()=>[q(p(G(z(_).status)),1)]),_:2},1032,["type"]),n("span",{class:"mission-name",title:z(_).name},p(z(_).name),9,mn)],64)):(f(),b("span",pn,"空闲"))])])],10,on))),128)),W.value.length?ye("",!0):(f(),b("div",gn," 无匹配车辆 "))])])}}}),_n=ke(yn,[["__scopeId","data-v-c1cc74ad"]]),Re="/sl/projection/deliveries";async function hn(g){const E={};g?.includeFinished===!1&&(E.includeFinished="false"),g?.includeAborted===!1&&(E.includeAborted="false");const{data:c}=await Pe.get(Re,{params:E});return Array.isArray(c)?c:[]}async function kn(g){await Pe.post(`${Re}/${g}/cancel`)}async function bn(g){await Pe.post(`${Re}/${g}/resend`)}async function wn(g){await Pe.post(`${Re}/${g}/force-complete`)}const $n={class:"mission-list-panel"},Sn={class:"toolbar"},Cn=["title"],In=["title"],Nn=["title"],xn=["title"],Ln={key:1,class:"muted"},Tn={key:0,class:"empty muted"},Mn=["disabled"],Vn=["disabled"],En=he({__name:"MissionListPanel",props:{deliveries:{},selectedId:{},loading:{type:Boolean}},emits:["select","refresh","actionDone"],setup(g,{emit:E}){const c=g,P=E,D=C(""),s=C(!0),y=C(!0),x=C(!1),U=C(0),N=C(0),X=C(null),G=A(()=>{const r=D.value.trim().toLowerCase(),m=r?r.split(/\s+/).filter(Boolean):[];return c.deliveries.filter(B=>{if(!m.length)return!0;const u=[String(B.id),B.srcLabel,B.dstLabel,B.status,B.carName??"",B.missionName].join(" ").toLowerCase();return m.every(o=>u.includes(o))})});function O(r,m=9){const B=r.indexOf("-"),u=B>=0?r.slice(B+1):r;return u.length<=m?u:`${u.slice(0,m)}…`}function F(r){return{已下发:"待发",执行中:"执行",已完成:"完成",已取消:"取消",强制结束:"强结",任务异常:"异常"}[r]??(r.length>4?`${r.slice(0,3)}…`:r)}function w(r,m=6){return r.length<=m?r:`${r.slice(0,m)}…`}function Y(r){switch(r){case"Fetching":case"Putting":return"success";case"Waiting":return"primary";case"Finished":return"info";case"Canceled":case"Terminated":return"warning";case"Error":return"danger";default:return"info"}}function Z({row:r}){const m=[];return r.id===c.selectedId&&m.push("is-selected-row"),r.overdue&&m.push("is-overdue-row"),m.join(" ")}function K(r){return["Finished","Canceled","Terminated","Error"].includes(r)}function z(r){return r!=null&&!K(r.statusCode)}function R(r){return r!=null&&!K(r.statusCode)}function ae(){P("refresh",{includeFinished:s.value,includeAborted:y.value})}function ue(r){j(),P("select",r)}function W(r,m,B){B.preventDefault(),X.value=r,U.value=B.clientX,N.value=B.clientY,x.value=!0}function j(){x.value=!1,X.value=null}const le={cancel:"取消任务",resend:"重发任务","force-complete":"强制完成"};async function h(r){const m=X.value;if(j(),!!m&&!(r==="cancel"&&!z(m))&&!(r==="force-complete"&&!R(m))){try{await De.confirm(`确定对任务 #${m.id}(${m.srcLabel} → ${m.dstLabel})执行「${le[r]}」?`,"确认操作",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消"})}catch{return}try{r==="cancel"?await kn(m.id):r==="resend"?await bn(m.id):await wn(m.id),T.success(`${le[r]} 已提交`),P("actionDone")}catch(B){T.error(`${le[r]} 失败:${B.message}`)}}}function L(){j()}return Xe(()=>document.addEventListener("click",L)),Je(()=>document.removeEventListener("click",L)),(r,m)=>{const B=Ke,u=Qe,o=tt,_=et;return f(),b("div",$n,[n("div",Sn,[l(B,{modelValue:D.value,"onUpdate:modelValue":m[0]||(m[0]=I=>D.value=I),size:"small",clearable:"",placeholder:"搜索任务 ID / 站点 / 车辆",class:"search"},null,8,["modelValue"]),l(u,{modelValue:s.value,"onUpdate:modelValue":m[1]||(m[1]=I=>s.value=I),size:"small",onChange:ae},{default:i(()=>[...m[7]||(m[7]=[q(" 含已完成 ",-1)])]),_:1},8,["modelValue"]),l(u,{modelValue:y.value,"onUpdate:modelValue":m[2]||(m[2]=I=>y.value=I),size:"small",onChange:ae},{default:i(()=>[...m[8]||(m[8]=[q(" 含取消/异常 ",-1)])]),_:1},8,["modelValue"])]),l(_,{data:G.value,size:"small",stripe:"","highlight-current-row":"","row-class-name":Z,height:"100%",class:"delivery-table","table-layout":"fixed",onRowClick:ue,onRowContextmenu:W},{default:i(()=>[l(o,{prop:"id",label:"ID",width:"40",align:"center"}),l(o,{label:"起点","show-overflow-tooltip":""},{default:i(({row:I})=>[n("span",{class:"cell-ellipsis",title:I.srcLabel},p(O(I.srcLabel)),9,Cn)]),_:1}),l(o,{label:"终点","show-overflow-tooltip":""},{default:i(({row:I})=>[n("span",{class:"cell-ellipsis",title:I.dstLabel},p(O(I.dstLabel)),9,In)]),_:1}),l(o,{label:"状态",width:"52",align:"center"},{default:i(({row:I})=>[n("span",{class:me(["status-pill",`status-pill--${Y(I.statusCode)}`]),title:I.status},p(F(I.status)),11,Nn)]),_:1}),l(o,{label:"车辆",width:"56","show-overflow-tooltip":""},{default:i(({row:I})=>[I.carName?(f(),b("span",{key:0,class:"cell-ellipsis",title:I.carName},p(w(I.carName)),9,xn)):(f(),b("span",Ln,"—"))]),_:1})]),_:1},8,["data"]),G.value.length?ye("",!0):(f(),b("div",Tn,"暂无搬运任务")),We(n("div",{class:"ctx-menu",style:nt({left:`${U.value}px`,top:`${N.value}px`}),onClick:m[6]||(m[6]=ve(()=>{},["stop"]))},[n("button",{type:"button",class:"ctx-item",disabled:!z(X.value),onClick:m[3]||(m[3]=I=>h("cancel"))}," 取消任务 ",8,Mn),n("button",{type:"button",class:"ctx-item",onClick:m[4]||(m[4]=I=>h("resend"))}," 重发任务 "),n("button",{type:"button",class:"ctx-item",disabled:!R(X.value),onClick:m[5]||(m[5]=I=>h("force-complete"))}," 强制完成 ",8,Vn)],4),[[qe,x.value]])])}}}),An=ke(En,[["__scopeId","data-v-38e00e9c"]]),Fn=["onClick"],Pn={class:"sid"},Dn={class:"sname"},Rn={key:0,class:"empty"},On=he({__name:"SitePickDialog",props:{modelValue:{type:Boolean},title:{},sites:{}},emits:["update:modelValue","confirm","pickOnMap"],setup(g,{expose:E,emit:c}){const P=g,D=c,s=A({get:()=>P.modelValue,set:F=>D("update:modelValue",F)}),y=C(""),x=C(null),U=C(!1),N=A(()=>{const F=y.value.trim().toLowerCase();return F?P.sites.filter(w=>String(w.id).includes(F)||w.name.toLowerCase().includes(F)||w.label.toLowerCase().includes(F)):P.sites});Fe(()=>P.modelValue,F=>{F&&(y.value="",x.value=P.sites[0]?.id??null)});function X(){x.value!=null&&(D("confirm",x.value),s.value=!1)}function G(){U.value=!0,D("pickOnMap")}function O(){U.value=!1}return E({close:()=>{s.value=!1},endMapPick:()=>{U.value=!1}}),(F,w)=>{const Y=Ke,Z=ut,K=Ae,z=at;return f(),fe(z,{modelValue:s.value,"onUpdate:modelValue":w[2]||(w[2]=R=>s.value=R),title:g.title,width:"420px","destroy-on-close":"","append-to-body":"",class:"site-pick-dialog",onClosed:O},{footer:i(()=>[l(K,{onClick:w[1]||(w[1]=R=>s.value=!1)},{default:i(()=>[...w[3]||(w[3]=[q("取消",-1)])]),_:1}),l(K,{loading:U.value,onClick:G},{default:i(()=>[...w[4]||(w[4]=[q("在地图上拾取",-1)])]),_:1},8,["loading"]),l(K,{type:"primary",disabled:x.value==null,onClick:X},{default:i(()=>[...w[5]||(w[5]=[q("确认前往",-1)])]),_:1},8,["disabled"])]),default:i(()=>[w[6]||(w[6]=n("p",{class:"hint"},"请选择车辆要前往的目标站点。",-1)),l(Y,{modelValue:y.value,"onUpdate:modelValue":w[0]||(w[0]=R=>y.value=R),clearable:"",placeholder:"搜索站点 ID / 名称",class:"filter-input"},null,8,["modelValue"]),l(Z,{"max-height":"280px",class:"site-scroll"},{default:i(()=>[(f(!0),b(J,null,ce(N.value,R=>(f(),b("button",{key:R.id,type:"button",class:me(["site-row",{active:x.value===R.id}]),onClick:ae=>x.value=R.id},[n("span",Pn,"#"+p(R.id),1),n("span",Dn,p(R.name||"未命名"),1)],10,Fn))),128)),N.value.length?ye("",!0):(f(),b("div",Rn,"无匹配站点"))]),_:1})]),_:1},8,["modelValue","title"])}}}),zn=ke(On,[["__scopeId","data-v-1e1b7025"]]),Bn=new Set(["Goto","GotoSite"]),Un=["去某地","前往站点"];function Ye(g){if(g.params?.length)return!1;if(Bn.has(g.methodName))return!0;const E=g.label??"";return Un.some(c=>E.includes(c))}async function Wn(){return(await pe.listObjects("site")).map(E=>({id:E.id,name:E.name,label:`#${E.id} ${E.name||"站点"}`})).sort((E,c)=>E.id-c.id)}async function Ze(){try{T.info({message:"请在 3D 地图上点击目标站点附近",duration:4e3});const g=await Ot.pick();return g.siteId==null||g.siteId<0?(T.warning("未识别到附近站点,请靠近站点再点击"),null):g.siteId}catch(g){return g instanceof Error&&/取消|cancel|499/i.test(g.message)||T.error(`地图拾取失败:${g instanceof Error?g.message:String(g)}`),null}}function qn(g){if(g&&typeof g=="object"&&"response"in g&&g.response?.status===404)return!0;const E=g instanceof Error?g.message:String(g);return/status code 404/i.test(E)}async function Kn(g,E){try{const c=await pe.gotoCarSite(g,E);return T.success(c.message||`已下发前往站点 #${E}`),!0}catch(c){if(!qn(c))return T.error(`前往站点失败:${c instanceof Error?c.message:String(c)}`),!1;try{const P=await pe.execute("car",g,"WebGotoSite",{siteId:E});return T.success(P.returnValue?`已执行:${P.returnValue}`:`已下发前往站点 #${E}`),!0}catch(P){const D=P instanceof Error?P.message:String(P),s=/WebGotoSite|goto-site|不存在可调用方法/i.test(D);return T.error(s?`${D}。当前 SimpleLite 仍是旧版 DLL:请先完全关闭 SimpleLite 窗口,再在 PowerShell 执行 Migu2.0/scripts/redeploy-simplelite.ps1,然后重新登录;或调用 POST /api/health/simplelite/restart-for-update`:`前往站点失败:${D}`),!1}}}async function jn(g,E,c){const P=c.label||c.methodName,D={};for(const s of c.params)try{const{value:y}=await De.prompt(`参数 ${s.name}(${s.typeName})`,P,{inputValue:s.defaultValue??"",confirmButtonText:"确定",cancelButtonText:"取消"});D[s.name]=y??""}catch{return!1}try{const s=await pe.execute(g,E,c.methodName,D);return T.success(s.returnValue?`已执行:${s.returnValue}`:`已执行 ${P}`),!0}catch(s){return T.error(`执行失败:${s instanceof Error?s.message:String(s)}`),!1}}const Xn={class:"monitor-selection"},Gn={key:0,class:"empty-hint"},Hn={key:1,class:"pane"},Yn={key:0,class:"pane-loading"},Zn={class:"card card--header"},Jn={class:"title-row"},Qn={class:"id-tag"},ea={class:"name-line"},ta={class:"card"},na={class:"kv-grid"},aa={class:"kv"},la={class:"v mono"},sa={class:"kv"},ia={class:"v mono"},oa={class:"kv"},ra={class:"v mono"},ca={key:0,class:"card"},ua={class:"card-hd"},da={class:"meta"},fa={class:"kv-list"},va={class:"k"},ma=["title"],pa={key:1,class:"card card--actions"},ga={class:"action-grid"},ya=["disabled","onClick"],_a={class:"card card--header"},ha={class:"title-row"},ka={class:"id-tag"},ba={class:"name-line"},wa={class:"card"},$a={class:"kv-list"},Sa={class:"kv-row"},Ca=["title"],Ia={class:"kv-row"},Na={class:"v"},xa=["title"],La={class:"kv-row"},Ta={class:"kv-row"},Ma=["title"],Va={class:"card card--actions"},Ea={class:"card-hd"},Aa={key:0,class:"meta"},Fa={key:1,class:"meta"},Pa={key:0,class:"muted-line"},Da={key:1,class:"action-grid action-grid--vehicle"},Ra=["disabled","title","onClick"],Oa={key:0,class:"muted-line"},za={key:1,class:"muted-line"},Ba={key:2,class:"action-grid action-grid--vehicle"},Ua=["disabled","onClick"],Wa={class:"card card--header"},qa={class:"title-row"},Ka={class:"id-tag"},ja={class:"name-line"},Xa={key:0,class:"card"},Ga={class:"kv-list"},Ha={class:"k"},Ya={class:"v"},Za={class:"k"},Ja={class:"v"},Qa={key:1,class:"card card--actions"},el={class:"action-grid"},tl=["disabled","onClick"],nl={key:4,class:"muted-line"},al=he({__name:"MonitorSelectionPanel",props:{selection:{},refreshKey:{},cars:{},missions:{},readOnly:{type:Boolean}},setup(g){const E=new Set(["AllowLock","PreventLock"]),c=g,P=lt(),D=C(!1),s=C(!1),y=C(!1),x=C(null),U=C(null),N=C(""),X=C(""),G=C(""),O=C({}),F=C([]),w=C([]),Y=C({}),Z=C([]),K=C([]),z=C(!1),R=C(!1),ae=C([]),ue=C("选择目标站点"),W={car:"car",vehicle:"car",site:"site",track:"track"},j=A(()=>{const e=c.selection?.kind?.toLowerCase();return e?W[e]??null:null}),le=A(()=>{const e=c.selection?.kind?.toLowerCase();return e==="site"?"site":e==="vehicle"||e==="car"?"vehicle":e==="track"?"track":"other"}),h=A(()=>{const e=Number(c.selection?.id);return Number.isFinite(e)?e:c.selection?.id??"-"});function L(e,a=1){if(e==null||e==="")return"—";const d=Number(e);return Number.isFinite(d)?d.toFixed(a):e}function r(...e){for(const a of e){const d=O.value[a];if(d!=null&&d!=="")return d}return""}function m(...e){for(const a of e){const d=F.value.find(V=>V.key===a);if(d?.value)return d.value}for(const a of e){const d=F.value.find(V=>V.key.includes(a));if(d?.value)return d.value}return""}function B(){const e=m("标记","tags");return e?/unavailable/i.test(e):!1}const u=A(()=>({name:r("name")||N.value||c.selection?.name||`站点 ${h.value}`,x:L(r("x"),1),y:L(r("y"),1),z:L(r("z"),1),disabled:B()})),o=A(()=>{const e=Z.value;if(e.length){const a=new Set(e);return w.value.filter(d=>a.has(d.methodName))}return w.value.filter(a=>E.has(a.methodName))}),_=A(()=>{const e=K.value;if(!e.length)return w.value;const a=new Set(e);return w.value.filter(d=>a.has(d.methodName))});function I(){if(!c.selection||le.value!=="vehicle")return;const e=String(c.selection.id);return c.cars?.find(a=>a.id===e||String(a.rawId??"")===e||ie(a)===e)}function ie(e){return e.rawId!=null?String(e.rawId):e.id.replace(/^C/i,"").replace(/^0+/,"")||e.id}const de=A(()=>F.value.map(e=>({key:e.key,value:e.value||"—",warn:/alarm|error|fault|block|stop/i.test(`${e.key} ${e.value}`)&&e.value!=="0"&&e.value!=="无"})));function ge(){const e=r("tags");if(e)return e;const a=m("tags","标记");if(a)return a;for(const d of F.value)if(/tag|标记/i.test(d.key)&&d.value)return d.value;return""}function Le(){const e=ge();if(/occupied/i.test(e))return!0;for(const a of F.value)if(/occupied/i.test(a.value??""))return!0;return!1}function _e(){const e=I(),a=r("batterySoc","battery","电量");let d=null;if(a){const V=Number(a);Number.isFinite(V)&&(d=V<=1?Math.round(V*100):Math.round(V))}else e!=null&&(d=Math.round(e.batterySoc<=1?e.batterySoc*100:e.batterySoc));return d==null?{text:"—",low:!1}:{text:`${d}%`,low:d<20}}function ee(){const e=I(),a=r("x"),d=r("y"),V=r("th","theta"),k=a||(e!=null?String(e.x):""),ne=d||(e!=null?String(e.y):""),Ne=V||(e!=null?String(e.theta):"");if(k||ne)return`(${k||"—"}, ${ne||"—"}${Ne?`, ${L(Ne,1)}°`:""})`;const xe=r("siteID");return xe&&xe!=="-1"?`站点 #${xe}`:m("位姿","站点")||"—"}function Se(){const e=m("TCStat")||r("TCStat");if(e&&e!=="/"&&e.trim()!=="")return e;const a=m("blockedBy");if(a&&a!=="[]"&&a!=="/")try{const Ne=JSON.parse(a);if(Array.isArray(Ne)&&Ne.length>0){const xe=Ne.map(Ue=>Ue.carid).filter(Ue=>Ue!=null);return xe.length?`被车辆 ${xe.join("、")} 交管`:"交管阻塞"}}catch{return a.length>48?`${a.slice(0,48)}…`:a}const d=m("trafficStopped");if(d&&d!=="(0, 0)"&&d!=="(0,0)"&&d!=="/")return`交管暂停 ${d}`;const V=m("holdingLocks"),k=m("pendingLocks"),ne=[];return V&&V!=="[]"&&ne.push(`已占 ${V}`),k&&k!=="[]"&&ne.push(`待锁 ${k}`),ne.length?ne.join(";"):"正常"}function be(){const e=m("车体_AlarmInfo","AlarmInfo")||F.value.find(d=>/alarminfo/i.test(d.key))?.value;if(e&&e!=="0"&&e!=="/"&&e.trim()!=="")return{text:e,warn:!0};const a=r("lstatus")||m("lstatus");return a&&/故障|报警|异常|失联|超时|检修/i.test(a)?{text:a,warn:!0}:{text:"无",warn:!1}}const Q=A(()=>{const e=I(),a=Le(),d=a?"任务中":"空闲",V=be(),k=_e();return{id:e?.id??c.selection?.id??"-",name:N.value||e?.name||c.selection?.name||"车辆",runLabel:d,runTagType:a?"success":"info",traffic:Se(),alarm:V.text,alarmWarn:V.warn,battery:k.text,batteryLow:k.low,position:ee()}});function Te(){const e=Y.value,a=G.value,d=X.value;if(a&&e[a]?.length)return e[a];if(d&&e[d]?.length)return e[d];for(const[V,k]of Object.entries(e))if(k.length&&(a&&(V===a||V.endsWith("."+d)||a.endsWith("."+V))||d&&(V===d||V.endsWith("."+d))))return k;return[]}const S=A(()=>Te()),se=A(()=>{const e=S.value;if(!e.length)return[];const a=new Set(e);return w.value.filter(d=>a.has(d.methodName))}),we=A(()=>zt.filter(e=>e.target==="car"&&P.hasOp(e.code)));async function Oe(e){const a=Number(c.selection?.id);if(Number.isFinite(a)){if(e.needConfirm)try{await De.confirm(`确认执行 [${e.label}]? +目标车辆:${c.selection?.id}`,"二次确认",{type:"warning"})}catch{return}x.value=e.code;try{const d=await Bt({opCode:e.code,targetId:String(a),reason:""});d.ok?T.success(`已执行 ${e.label}(auditId=${d.auditId})`):T.warning(d.message||`执行未成功:${e.label}`)}catch(d){T.error(`执行失败:${d.message}`)}finally{x.value=null}}}const ze=A(()=>z.value?Object.keys(Y.value).length?S.value.length?"当前车型无可执行动作。":"当前车型未配置动作,或方法名与运营维护中勾选的不一致。":"未配置动作。请在「配置中心 → 运营维护」按车型勾选动作并保存。":"加载配置中…"),Ce=A(()=>({name:r("name")||N.value||c.selection?.name||`路径 ${h.value}`})),Me=A(()=>[{key:"layer",label:"图层",value:r("layerName","layer")||"—"},{key:"type",label:"类型",value:X.value||"—"}]);function Be(e){return e?`${e.kind}:${e.id}`:""}async function oe(e=!1){if(!(z.value&&!e))try{const a=await it(e);Y.value={...a.config.carActionByType??{}},Z.value=[...a.config.site?.methods??[]],K.value=[...a.config.track?.methods??[]]}catch{Y.value={},Z.value=[],K.value=[]}finally{z.value=!0}}function $e(e,a){N.value=e.summary?.name??a??"",X.value=e.typeName??"",G.value="fullTypeName"in e&&e.fullTypeName?e.fullTypeName:e.typeName??"",O.value={...e.fields};for(const d of e.fieldList??[])O.value[d.key]=d.value;F.value=e.status??[],w.value=e.methods??[]}function Ve(){const e=I();if(!e)return!1;N.value=e.name,X.value=e.typeName??"",G.value=e.typeName??"";const a=Math.round(e.batterySoc<=1?e.batterySoc*100:e.batterySoc);return O.value={x:String(e.x),y:String(e.y),th:String(e.theta),batterySoc:String(a)},F.value=[],w.value=[],!0}async function Ie(){if(!c.selection){N.value="",O.value={},F.value=[],w.value=[],s.value=!1;return}const e=j.value,a=Number(c.selection.id);if(!e||!Number.isFinite(a))return;const d=s.value,V=!d&&le.value==="vehicle"&&Ve();V&&(s.value=!0),d?y.value=!0:D.value=!V;try{if(c.readOnly){const ne=await pe.getBundle(e,a);$e(ne,c.selection.name??""),w.value=[],s.value=!0;return}await oe(!1);const k=await pe.getBundle(e,a);$e(k,c.selection.name??""),s.value=!0}catch(k){c.readOnly?console.warn("[MonitorSelection] 只读详情加载失败,降级用列表数据",k):T.error(`加载选中信息失败:${k.message}`)}finally{D.value=!1,y.value=!1}}async function t(e){const a=j.value;if(!a||!c.selection||!e.methodName)return;const d=Number(c.selection.id);if(Number.isFinite(d)){if(a==="car"&&Ye(e)){U.value=e,ue.value=`选择目标站点 — ${e.label||e.methodName}`,x.value=e.methodName;try{const V=await Ze();if(V!=null){await v(V);return}ae.value=await Wn(),R.value=!0}catch(V){T.error(`加载站点列表失败:${V.message}`)}finally{R.value||(x.value=null)}return}x.value=e.methodName;try{await jn(a,d,e)&&await Ie()}finally{x.value=null}}}async function v(e){const a=Number(c.selection?.id);if(Number.isFinite(a)){x.value=U.value?.methodName??"goto";try{await Kn(a,e)&&await Ie()}finally{x.value=null,U.value=null}}}async function $(){const e=await Ze();R.value=!1,e!=null&&await v(e)}let M=0,te="";return Fe(()=>[Be(c.selection),c.refreshKey],async(e,a)=>{const d=++M;if(a&&e[0]===a[0]&&e[0]&&e[1]!==a[1])return await oe(!0),void 0;e[0]!==te&&(s.value=!1,te=e[0]),await Ie()},{immediate:!0}),(e,a)=>{const d=Ge,V=je;return f(),b("div",Xn,[g.selection?(f(),b("div",Hn,[D.value?(f(),b("div",Yn,[l(d,{class:"is-loading"},{default:i(()=>[l(H(dt))]),_:1}),a[2]||(a[2]=n("span",null,"加载中…",-1))])):le.value==="site"?(f(),b(J,{key:1},[n("section",Zn,[n("div",Jn,[n("span",Qn,"#"+p(h.value),1),a[3]||(a[3]=n("span",{class:"type-tag"},"站点",-1))]),n("div",ea,p(u.value.name),1)]),n("section",ta,[a[7]||(a[7]=n("header",{class:"card-hd"},[n("span",null,"位置")],-1)),n("div",na,[n("div",aa,[a[4]||(a[4]=n("span",{class:"k"},"X",-1)),n("span",la,p(u.value.x),1)]),n("div",sa,[a[5]||(a[5]=n("span",{class:"k"},"Y",-1)),n("span",ia,p(u.value.y),1)]),n("div",oa,[a[6]||(a[6]=n("span",{class:"k"},"Z",-1)),n("span",ra,p(u.value.z),1)])])]),de.value.length?(f(),b("section",ca,[n("header",ua,[a[8]||(a[8]=n("span",null,"状态",-1)),n("span",da,p(de.value.length),1)]),n("div",fa,[(f(!0),b(J,null,ce(de.value,k=>(f(),b("div",{key:k.key,class:"kv-row"},[n("span",va,p(k.key),1),n("span",{class:"v",title:k.value},p(k.value),9,ma)]))),128))])])):ye("",!0),!g.readOnly&&o.value.length?(f(),b("section",pa,[a[9]||(a[9]=n("header",{class:"card-hd"},[n("span",null,"操作")],-1)),n("div",ga,[(f(!0),b(J,null,ce(o.value,k=>(f(),b("button",{key:k.methodName,type:"button",class:"action-btn",disabled:x.value===k.methodName,onClick:ne=>t(k)},p(k.label||k.methodName),9,ya))),128))])])):ye("",!0)],64)):le.value==="vehicle"?(f(),b(J,{key:2},[n("section",_a,[n("div",ha,[n("span",ka,p(Q.value.id),1),l(V,{size:"small",type:Q.value.runTagType,effect:"dark"},{default:i(()=>[q(p(Q.value.runLabel),1)]),_:1},8,["type"])]),n("div",ba,p(Q.value.name),1)]),n("section",wa,[a[15]||(a[15]=n("header",{class:"card-hd"},[n("span",null,"运行信息")],-1)),n("div",$a,[n("div",Sa,[a[10]||(a[10]=n("span",{class:"k"},"交管状态",-1)),n("span",{class:"v",title:Q.value.traffic},p(Q.value.traffic),9,Ca)]),n("div",Ia,[a[11]||(a[11]=n("span",{class:"k"},"运行状态",-1)),n("span",Na,p(Q.value.runLabel),1)]),n("div",{class:me(["kv-row",{"is-warn":Q.value.alarmWarn}])},[a[12]||(a[12]=n("span",{class:"k"},"报警状态",-1)),n("span",{class:"v",title:Q.value.alarm},p(Q.value.alarm),9,xa)],2),n("div",La,[a[13]||(a[13]=n("span",{class:"k"},"电量",-1)),n("span",{class:me(["v",{"is-low-battery":Q.value.batteryLow}])},p(Q.value.battery),3)]),n("div",Ta,[a[14]||(a[14]=n("span",{class:"k"},"位置",-1)),n("span",{class:"v mono",title:Q.value.position},p(Q.value.position),9,Ma)])])]),n("section",Va,[n("header",Ea,[n("span",null,p(g.readOnly?"运维动作":"动作"),1),!g.readOnly&&se.value.length?(f(),b("span",Aa,p(se.value.length),1)):g.readOnly&&we.value.length?(f(),b("span",Fa,p(we.value.length),1)):ye("",!0)]),g.readOnly?(f(),b(J,{key:0},[we.value.length?(f(),b("div",Da,[(f(!0),b(J,null,ce(we.value,k=>(f(),b("button",{key:k.code,type:"button",class:me(["action-btn",{"action-btn--goto":k.needConfirm}]),disabled:x.value===k.code,title:k.description,onClick:ne=>Oe(k)},p(k.label),11,Ra))),128))])):(f(),b("div",Pa,"当前账号无可执行的运维动作。"))],64)):(f(),b(J,{key:1},[y.value?(f(),b("div",Oa,"加载动作…")):se.value.length?(f(),b("div",Ba,[(f(!0),b(J,null,ce(se.value,k=>(f(),b("button",{key:k.methodName,type:"button",class:me(["action-btn",{"action-btn--goto":H(Ye)(k)}]),disabled:x.value===k.methodName,onClick:ne=>t(k)},p(k.label||k.methodName),11,Ua))),128))])):(f(),b("div",za,p(ze.value),1))],64))])],64)):le.value==="track"?(f(),b(J,{key:3},[n("section",Wa,[n("div",qa,[n("span",Ka,"#"+p(h.value),1),a[16]||(a[16]=n("span",{class:"type-tag"},"路径",-1))]),n("div",ja,p(Ce.value.name),1)]),de.value.length||Me.value.length?(f(),b("section",Xa,[a[17]||(a[17]=n("header",{class:"card-hd"},[n("span",null,"信息")],-1)),n("div",Ga,[(f(!0),b(J,null,ce(Me.value,k=>(f(),b("div",{key:k.key,class:"kv-row"},[n("span",Ha,p(k.label),1),n("span",Ya,p(k.value),1)]))),128)),(f(!0),b(J,null,ce(de.value,k=>(f(),b("div",{key:"s-"+k.key,class:"kv-row"},[n("span",Za,p(k.key),1),n("span",Ja,p(k.value),1)]))),128))])])):ye("",!0),!g.readOnly&&_.value.length?(f(),b("section",Qa,[a[18]||(a[18]=n("header",{class:"card-hd"},[n("span",null,"动作")],-1)),n("div",el,[(f(!0),b(J,null,ce(_.value,k=>(f(),b("button",{key:k.methodName,type:"button",class:"action-btn",disabled:x.value===k.methodName,onClick:ne=>t(k)},p(k.label||k.methodName),9,tl))),128))])])):ye("",!0)],64)):(f(),b("div",nl,"该类型暂不支持监控详情展示。"))])):(f(),b("div",Gn,[...a[1]||(a[1]=[n("span",{class:"empty-title"},"未选中对象",-1),n("span",{class:"empty-desc"},"在 3D 画布或车辆列表中点击以查看信息。",-1)])])),l(zn,{modelValue:R.value,"onUpdate:modelValue":a[0]||(a[0]=k=>R.value=k),title:ue.value,sites:ae.value,onConfirm:v,onPickOnMap:$},null,8,["modelValue","title","sites"])])}}}),ll=ke(al,[["__scopeId","data-v-c9236d99"]]),sl={class:"fac-header"},il={class:"fac-title"},ol={class:"fac-time"},rl={class:"fac-body"},cl={class:"fac-info"},ul={class:"fac-coord"},dl={key:0},fl={key:1,class:"muted"},vl={class:"fac-actions"},ml=he({__name:"FloatingAlarmCard",props:{alarm:{},initialOffset:{}},emits:["close","ack","snooze","locate"],setup(g,{emit:E}){const c=g,P=E,D=C(null),s=C(!1),y=C({right:c.initialOffset?.right??24,bottom:c.initialOffset?.bottom??24}),x=A(()=>typeof c.alarm.x=="number"&&Number.isFinite(c.alarm.x)),U=A(()=>{const W=(c.alarm.info||"").toLowerCase();return W.includes("critical")||W.includes("严重")||W.includes("紧急")?"critical":W.includes("error")||W.includes("故障")?"error":W.includes("warn")||W.includes("告警")?"warn":"info"}),N=A(()=>{try{return new Date(c.alarm.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return""}}),X=A(()=>({left:y.value.left!==void 0?`${y.value.left}px`:void 0,top:y.value.top!==void 0?`${y.value.top}px`:void 0,right:y.value.right!==void 0?`${y.value.right}px`:void 0,bottom:y.value.bottom!==void 0?`${y.value.bottom}px`:void 0}));let G=0,O=0,F=0,w=0;function Y(W){if(!D.value)return;const j=D.value.getBoundingClientRect();F=j.left,w=j.top,G=W.clientX,O=W.clientY,s.value=!0,window.addEventListener("mousemove",Z),window.addEventListener("mouseup",K)}function Z(W){y.value={left:F+(W.clientX-G),top:w+(W.clientY-O)}}function K(){s.value=!1,window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",K)}st(()=>{window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",K)});function z(){P("close")}function R(){P("ack")}function ae(){P("snooze")}function ue(){P("locate",c.alarm)}return(W,j)=>{const le=Ge,h=Ae;return f(),b("div",{ref_key:"cardRef",ref:D,class:me(["floating-alarm-card",[`lvl-${U.value}`,{dragging:s.value}]]),style:nt(X.value),onMousedown:ve(Y,["stop"])},[n("div",sl,[j[0]||(j[0]=n("span",{class:"fac-dot"},null,-1)),n("span",il,p(g.alarm.carName)+" #"+p(g.alarm.carId),1),n("span",ol,p(N.value),1),l(le,{class:"fac-close",onClick:ve(z,["stop"])},{default:i(()=>[l(H(ft))]),_:1})]),n("div",rl,[n("div",cl,p(g.alarm.info),1),n("div",ul,[x.value?(f(),b("span",dl,"坐标 ("+p(g.alarm.x?.toFixed(0))+", "+p(g.alarm.y?.toFixed(0))+") mm",1)):(f(),b("span",fl,"无坐标"))])]),n("div",vl,[l(h,{size:"small",plain:"",disabled:!x.value,onClick:ve(ue,["stop"])},{default:i(()=>[...j[1]||(j[1]=[q("定位",-1)])]),_:1},8,["disabled"]),l(h,{size:"small",plain:"",onClick:ve(R,["stop"])},{default:i(()=>[...j[2]||(j[2]=[q("确认",-1)])]),_:1}),l(h,{size:"small",plain:"",onClick:ve(ae,["stop"])},{default:i(()=>[...j[3]||(j[3]=[q("稍后",-1)])]),_:1})])],38)}}}),pl=ke(ml,[["__scopeId","data-v-0b6ee97c"]]),gl={class:"floating-alarm-stack"},yl=he({__name:"FloatingAlarmStack",props:{alarms:{}},emits:["locate","ack"],setup(g,{emit:E}){const c=g,P=E,D=C(new Set),s=C(new Set);function y(w){return`${w.carId}`}const x=A(()=>c.alarms.filter(w=>w.action!=="clear").filter(w=>!D.value.has(y(w))).filter(w=>!s.value.has(y(w)))),U=A(()=>c.alarms.filter(w=>s.value.has(y(w))));function N(w){D.value=new Set([...D.value,y(w)])}function X(w){D.value=new Set([...D.value,y(w)]),P("ack",w)}function G(w){s.value=new Set([...s.value,y(w)])}function O(w){P("locate",w)}function F(){s.value=new Set}return(w,Y)=>{const Z=Ae,K=vt;return f(),b("div",gl,[(f(!0),b(J,null,ce(x.value,(z,R)=>(f(),fe(pl,{key:`${z.carId}-${z.timestamp}`,alarm:z,"initial-offset":{right:24,bottom:24+R*132},onClose:ae=>N(z),onAck:ae=>X(z),onSnooze:ae=>G(z),onLocate:O},null,8,["alarm","initial-offset","onClose","onAck","onSnooze"]))),128)),U.value.length?(f(),b("div",{key:0,class:"snooze-tray",onClick:F},[l(K,{value:U.value.length,type:"warning"},{default:i(()=>[l(Z,{size:"small",circle:""},{default:i(()=>[...Y[0]||(Y[0]=[q("≡",-1)])]),_:1})]),_:1},8,["value"])])):ye("",!0)])}}}),_l=ke(yl,[["__scopeId","data-v-c37fdeb1"]]),hl={class:"canvas-toolbar"},kl=["onClick"],bl=["onClick"],wl={key:0,class:"menu-empty"},$l=["onClick"],Sl=["onClick"],Cl={class:"btn-label"},Il={class:"btn-label"},Nl={class:"btn-label"},xl={class:"btn-label"},Ll={class:"muted-hint"},Tl=he({__name:"WorkspaceCanvasToolbar",props:{followCarId:{default:null}},setup(g){const E=g,c=[{key:"sites",label:"站点"},{key:"cars",label:"AGV"},{key:"tracks",label:"路径"}],P=[{key:"tracks",label:"路径"},{key:"cars",label:"AGV"},{key:"decor",label:"区域/装饰"},{key:"sites",label:"站点"}],D=[{key:"labels",label:"场景图元标记"},{key:"primitives",label:"场景图元"},{key:"cars",label:"车辆"}],s=C(null),y=xt({align:!1,select:!1,display:!1,layer:!1,recording:!1,playback:!1,view:!1,follow:!1}),x=C(!1),U=C(!1);let N=null;const X=A(()=>{const u=s.value?.recording;if(!u?.isRecording)return"录制";const o=Math.floor((u.elapsedMs??0)/1e3),_=String(Math.floor(o/60)).padStart(2,"0"),I=String(o%60).padStart(2,"0");return`停止 ${_}:${I}`}),G=A(()=>s.value?.view?.map2D??!0),O=A(()=>s.value?.view?.follow?.enabled??!1),F=A(()=>{const u=E.followCarId;if(u!=null&&Number.isFinite(u))return u;const o=s.value?.view?.follow?.carId;return o!=null&&Number.isFinite(o)?o:null});async function w(){try{s.value=await re.getState()}catch(u){T.error(`同步工具栏状态失败:${u.message}`)}}async function Y(u){if(s.value){y.align=!0;try{s.value=await re.setAlign(u,!s.value.align[u])}catch(o){T.error(`切换对齐失败:${o.message}`)}finally{y.align=!1}}}async function Z(u){if(s.value){y.select=!0;try{s.value=await re.setSelect(u,!s.value.select[u])}catch(o){T.error(`切换选择过滤失败:${o.message}`)}finally{y.select=!1}}}async function K(u){if(s.value){y.display=!0;try{s.value=await re.setDisplay(u,!s.value.display[u])}catch(o){T.error(`切换显示内容失败:${o.message}`)}finally{y.display=!1}}}async function z(u,o){y.layer=!0;try{s.value=await re.setLayerVisibility(u,o)}catch(_){T.error(`切换图层失败:${_.message}`)}finally{y.layer=!1}}function R(){T.info("寻路右键动作尚未接入 SimpleLite;请使用 SegmentPlan.FindRoute / 工作台脚本。")}async function ae(){const u=s.value?.recording;if(u){if(u.isPlaying){T.warning("当前在回放中,请先停止回放。");return}y.recording=!0;try{s.value=u.isRecording?await re.stopRecording():await re.startRecording("")}catch(o){T.error(`录制操作失败:${o.message}`)}finally{y.recording=!1}}}async function ue(){const u=s.value?.recording;if(u){if(u.isRecording){T.warning("录制中无法进入回放,请先停止录制。");return}if(u.isPlaying){y.playback=!0;try{s.value=await re.stopPlayback()}catch(o){T.error(`停止回放失败:${o.message}`)}finally{y.playback=!1}return}await w(),x.value=!0}}async function W(u){y.playback=!0;try{s.value=await re.startPlayback(u),x.value=!1,U.value=!1,T.success(`已开始回放 ${u}`)}catch(o){T.error(`启动回放失败:${o.message}`)}finally{y.playback=!1}}async function j(u){try{await De.confirm(`确认删除录像 ${u}?此操作不可恢复。`,"删除录像",{type:"warning"})}catch{return}try{s.value=await re.deleteRecording(u),T.success(`已删除 ${u}`)}catch(o){T.error(`删除失败:${o.message}`)}}async function le(){await w(),U.value=!0}async function h(){y.view=!0;try{s.value=await re.toggleViewMode()}catch(u){T.error(`切换视图失败:${u.message}`)}finally{y.view=!1}}async function L(){const u=F.value;if(!O.value&&(u==null||!Number.isFinite(u))){T.warning("请先在车辆列表或 3D 画布中选中一辆车");return}y.follow=!0;try{const o=!O.value;s.value=await re.setCameraFollow(u,o),o?T.success({message:`已开始跟随车辆 #${u}`,duration:1500,grouping:!0}):T.info("已停止自动跟随")}catch(o){T.error(`自动跟随失败:${o.message}`)}finally{y.follow=!1}}function r(u){if(!Number.isFinite(u)||u<=0)return"0 B";if(u<1024)return`${u} B`;const o=u/1024;return o<1024?`${o.toFixed(0)} KB`:`${(o/1024).toFixed(1)} MB`}function m(u){if(!Number.isFinite(u)||u<=0)return"00:00:00";const o=Math.floor(u/1e3),_=String(Math.floor(o/3600)).padStart(2,"0"),I=String(Math.floor(o%3600/60)).padStart(2,"0"),ie=String(o%60).padStart(2,"0");return`${_}:${I}:${ie}`}function B(u){if(!u)return"—";const o=new Date(u);if(isNaN(o.getTime()))return u;const _=I=>String(I).padStart(2,"0");return`${o.getFullYear()}-${_(o.getMonth()+1)}-${_(o.getDate())} ${_(o.getHours())}:${_(o.getMinutes())}`}return Xe(()=>{w(),N=setInterval(()=>{const u=s.value?.recording;(u?.isRecording||u?.isPlaying||s.value?.view?.follow?.enabled)&&w()},1e3)}),st(()=>{N&&clearInterval(N),O.value&&re.setCameraFollow(null,!1).catch(()=>{})}),(u,o)=>{const _=Ge,I=Ae,ie=Qe,de=gt,ge=mt,Le=ht,_e=Lt,ee=tt,Se=et,be=at,Q=je,Te=Nt;return f(),b("div",hl,[l(ge,{trigger:"click","hide-on-click":!1,placement:"top-start"},{dropdown:i(()=>[l(de,{class:"toolbar-menu"},{default:i(()=>[(f(),b(J,null,ce(c,S=>n("div",{key:S.key,class:"menu-row",onClick:ve(se=>Y(S.key),["stop"])},[l(ie,{"model-value":s.value?.align[S.key]??!1},null,8,["model-value"]),n("span",null,p(S.label),1)],8,kl)),64))]),_:1})]),default:i(()=>[l(I,{size:"small",loading:y.align},{default:i(()=>[l(_,null,{default:i(()=>[l(H(pt))]),_:1}),o[2]||(o[2]=n("span",{class:"btn-label"},"对齐",-1)),l(_,{class:"caret"},{default:i(()=>[l(H(Ee))]),_:1})]),_:1},8,["loading"])]),_:1}),l(ge,{trigger:"click","hide-on-click":!1,placement:"top-start"},{dropdown:i(()=>[l(de,{class:"toolbar-menu"},{default:i(()=>[(f(),b(J,null,ce(P,S=>n("div",{key:S.key,class:"menu-row",onClick:ve(se=>Z(S.key),["stop"])},[l(ie,{"model-value":s.value?.select[S.key]??!1},null,8,["model-value"]),n("span",null,p(S.label),1)],8,bl)),64))]),_:1})]),default:i(()=>[l(I,{size:"small",loading:y.select},{default:i(()=>[l(_,null,{default:i(()=>[l(H(yt))]),_:1}),o[3]||(o[3]=n("span",{class:"btn-label"},"选择",-1)),l(_,{class:"caret"},{default:i(()=>[l(H(Ee))]),_:1})]),_:1},8,["loading"])]),_:1}),l(ge,{trigger:"click",placement:"top-start"},{dropdown:i(()=>[l(de,{class:"toolbar-menu"},{default:i(()=>[l(Le,{onClick:R},{default:i(()=>[...o[5]||(o[5]=[q("寻路",-1)])]),_:1})]),_:1})]),default:i(()=>[l(I,{size:"small"},{default:i(()=>[l(_,null,{default:i(()=>[l(H(_t))]),_:1}),o[4]||(o[4]=n("span",{class:"btn-label"},"右击功能",-1)),l(_,{class:"caret"},{default:i(()=>[l(H(Ee))]),_:1})]),_:1})]),_:1}),o[14]||(o[14]=n("span",{class:"separator"},null,-1)),l(ge,{trigger:"click","hide-on-click":!1,placement:"top-start"},{dropdown:i(()=>[l(de,{class:"toolbar-menu layer-menu"},{default:i(()=>[!s.value||s.value.layers.length===0?(f(),b("div",wl,"(无图层)")):(f(!0),b(J,{key:1},ce(s.value.layers,S=>(f(),b("div",{key:S.name,class:"menu-row",onClick:ve(se=>z(S.name,!S.visible),["stop"])},[l(ie,{"model-value":S.visible},null,8,["model-value"]),n("span",null,"图层 "+p(S.name),1)],8,$l))),128))]),_:1})]),default:i(()=>[l(I,{size:"small",loading:y.layer},{default:i(()=>[l(_,null,{default:i(()=>[l(H(kt))]),_:1}),o[6]||(o[6]=n("span",{class:"btn-label"},"显示图层",-1)),l(_,{class:"caret"},{default:i(()=>[l(H(Ee))]),_:1})]),_:1},8,["loading"])]),_:1}),l(ge,{trigger:"click","hide-on-click":!1,placement:"top-start"},{dropdown:i(()=>[l(de,{class:"toolbar-menu"},{default:i(()=>[(f(),b(J,null,ce(D,S=>n("div",{key:S.key,class:"menu-row",onClick:ve(se=>K(S.key),["stop"])},[l(ie,{"model-value":s.value?.display[S.key]??!1},null,8,["model-value"]),n("span",null,p(S.label),1)],8,Sl)),64))]),_:1})]),default:i(()=>[l(I,{size:"small",loading:y.display},{default:i(()=>[l(_,null,{default:i(()=>[l(H(He))]),_:1}),o[7]||(o[7]=n("span",{class:"btn-label"},"显示内容",-1)),l(_,{class:"caret"},{default:i(()=>[l(H(Ee))]),_:1})]),_:1},8,["loading"])]),_:1}),o[15]||(o[15]=n("span",{class:"separator"},null,-1)),l(I,{size:"small",type:s.value?.recording.isRecording?"danger":"default",loading:y.recording,onClick:ae},{default:i(()=>[s.value?.recording.isRecording?(f(),fe(_,{key:0},{default:i(()=>[l(H(bt))]),_:1})):(f(),fe(_,{key:1},{default:i(()=>[l(H(wt))]),_:1})),n("span",Cl,p(X.value),1)]),_:1},8,["type","loading"]),l(I,{size:"small",type:s.value?.recording.isPlaying?"warning":"default",loading:y.playback,onClick:ue},{default:i(()=>[s.value?.recording.isPlaying?(f(),fe(_,{key:0},{default:i(()=>[l(H($t))]),_:1})):(f(),fe(_,{key:1},{default:i(()=>[l(H(St))]),_:1})),n("span",Il,p(s.value?.recording.isPlaying?"退出回放":"回放"),1)]),_:1},8,["type","loading"]),l(I,{size:"small",onClick:le},{default:i(()=>[l(_,null,{default:i(()=>[l(H(Ct))]),_:1}),o[8]||(o[8]=n("span",{class:"btn-label"},"录像管理",-1))]),_:1}),l(I,{size:"small",type:G.value?"primary":"default",loading:y.view,onClick:h},{default:i(()=>[l(_,null,{default:i(()=>[l(H(He))]),_:1}),n("span",Nl,p(G.value?"2D":"3D"),1)]),_:1},8,["type","loading"]),l(I,{size:"small",type:O.value?"warning":"default",disabled:!O.value&&F.value==null,loading:y.follow,onClick:L},{default:i(()=>[l(_,null,{default:i(()=>[l(H(It))]),_:1}),n("span",xl,p(O.value?"停止跟随":"自动跟随"),1)]),_:1},8,["type","disabled","loading"]),l(be,{modelValue:x.value,"onUpdate:modelValue":o[0]||(o[0]=S=>x.value=S),title:"选择录像回放",width:"640px","append-to-body":"","destroy-on-close":""},{default:i(()=>[!s.value||s.value.recording.entries.length===0?(f(),fe(_e,{key:0,description:"(无可用录像。点 ● 录制 创建首份录像。)"})):(f(),fe(Se,{key:1,data:s.value.recording.entries,size:"small",stripe:""},{default:i(()=>[l(ee,{prop:"fileName",label:"文件名","min-width":"180"}),l(ee,{label:"大小",width:"90"},{default:i(({row:S})=>[q(p(r(S.fileSizeBytes)),1)]),_:1}),l(ee,{prop:"frameCount",label:"帧",width:"70"}),l(ee,{label:"时长",width:"100"},{default:i(({row:S})=>[q(p(m(S.durationMs)),1)]),_:1}),l(ee,{label:"时间",width:"160"},{default:i(({row:S})=>[q(p(B(S.fileWriteTime)),1)]),_:1}),l(ee,{label:"操作",width:"100",fixed:"right"},{default:i(({row:S})=>[l(I,{link:"",type:"primary",disabled:!S.headerReadable,onClick:se=>W(S.fileName)},{default:i(()=>[...o[9]||(o[9]=[q("回放",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1},8,["data"]))]),_:1},8,["modelValue"]),l(be,{modelValue:U.value,"onUpdate:modelValue":o[1]||(o[1]=S=>U.value=S),title:"录像管理",width:"780px","append-to-body":"","destroy-on-close":""},{default:i(()=>[n("p",Ll,"目录:"+p(s.value?.recording.recordingsDirectory??"—"),1),!s.value||s.value.recording.entries.length===0?(f(),fe(_e,{key:0,description:"(无可用录像。)"})):(f(),fe(Se,{key:1,data:s.value.recording.entries,size:"small",stripe:""},{default:i(()=>[l(ee,{prop:"fileName",label:"文件名","min-width":"200"}),l(ee,{label:"大小",width:"90"},{default:i(({row:S})=>[q(p(r(S.fileSizeBytes)),1)]),_:1}),l(ee,{prop:"frameCount",label:"帧",width:"70"}),l(ee,{label:"时长",width:"100"},{default:i(({row:S})=>[q(p(m(S.durationMs)),1)]),_:1}),l(ee,{label:"时间",width:"160"},{default:i(({row:S})=>[q(p(B(S.fileWriteTime)),1)]),_:1}),l(ee,{label:"状态",width:"120"},{default:i(({row:S})=>[S.headerReadable?(f(),fe(Q,{key:0,type:"success",size:"small"},{default:i(()=>[...o[10]||(o[10]=[q("完整",-1)])]),_:1})):(f(),fe(Te,{key:1,content:S.error,placement:"top"},{default:i(()=>[l(Q,{type:"danger",size:"small"},{default:i(()=>[...o[11]||(o[11]=[q("头部不可读",-1)])]),_:1})]),_:1},8,["content"]))]),_:1}),l(ee,{label:"操作",width:"160",fixed:"right"},{default:i(({row:S})=>[l(I,{link:"",type:"primary",disabled:!S.headerReadable,onClick:se=>W(S.fileName)},{default:i(()=>[...o[12]||(o[12]=[q("回放",-1)])]),_:1},8,["disabled","onClick"]),l(I,{link:"",type:"danger",onClick:se=>j(S.fileName)},{default:i(()=>[...o[13]||(o[13]=[q("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]))]),_:1},8,["modelValue"])])}}}),Ml=ke(Tl,[["__scopeId","data-v-968a4c89"]]),Vl={class:"map-monitor-page"},El={class:"muted"},Al={class:"canvas-with-alarms"},Fl={class:"workbench-header"},Pl=he({__name:"MapMonitorView",props:{readOnly:{type:Boolean}},setup(g){const E=lt(),c=Mt(),P=Vt(),D="localhost:8223",s=C([]),y=C([]),x=C([]),U=C({includeFinished:!0,includeAborted:!0}),N=C(null),X=C(0),G=C(!1),O=C("vehicle"),F=C(null),w=C(null),Y=C(!1),Z=C(null),K=C(null),z=C([]);async function R(t){const v=Number(t.carId);if(!Number.isFinite(v)){T.warning(`报警车辆 id 无法解析:${t.carId}`);return}N.value={kind:"vehicle",id:String(v),name:t.carName??String(t.carId)},await se(v)}function ae(t){}let ue=null;const W=A(()=>s.value.filter(t=>t.state!=="offline").length),j=A(()=>x.value.length>0?x.value.filter(t=>t.statusCode==="Fetching"||t.statusCode==="Putting").length:y.value.filter(t=>t.status==="running").length),le=A(()=>x.value.length>0?x.value.filter(t=>t.statusCode==="Waiting").length:y.value.filter(t=>t.status==="queued").length),h=A(()=>{if(!N.value||N.value.kind!=="vehicle")return null;const t=N.value;return s.value.find($=>$.id===t.id||oe($)===t.id)?.id??null}),L=A(()=>{if(!N.value||N.value.kind!=="vehicle")return null;const t=N.value.id,v=Number(t);if(Number.isFinite(v))return v;const $=s.value.find(M=>M.id===t||oe(M)===t);if($?.rawId!=null)return $.rawId;if($){const M=Number(oe($));if(Number.isFinite(M))return M}return null});function r(t){}const m=/^(?:UI)?(?:Car|Vehicle)-(\d+)$/i,B=/^UISite-(\d+)$/i,u=/^(?:UITrack|UICircularArcTrack|UIBezierTrack|UINurbsTrack)-(\d+)$/i;function o(t){const v=m.exec(t);if(v)return{kind:"vehicle",id:v[1]};const $=B.exec(t);if($)return{kind:"site",id:$[1]};const M=u.exec(t);if(M)return{kind:"track",id:M[1]};const te=/^UI([A-Za-z]+)-(\d+)$/.exec(t)??/^([A-Za-z]+)-(\d+)$/.exec(t);if(!te)return null;const e=te[1].toLowerCase(),a=te[2];return e==="site"?{kind:"site",id:a}:e==="car"||e==="vehicle"?{kind:"vehicle",id:a}:e.includes("track")?{kind:"track",id:a}:null}function _(t,v){return!t&&!v?!0:!t||!v?!1:t.kind===v.kind&&t.id===v.id}function I(t,v){F.value=null;let $;if(t.kind==="vehicle"){const M=(v?Me(v):void 0)??s.value.find(te=>oe(te)===t.id);$=M?{kind:"vehicle",id:oe(M),name:M.name}:{kind:"vehicle",id:t.id,name:`Vehicle ${t.id}`}}else $={kind:t.kind,id:t.id,name:v||`${t.kind==="site"?"Site":"Track"} ${t.id}`};_(N.value,$)||(N.value=$)}function ie(t,v,$){if(F.value=null,t==="car"){const a=String(v),d=$?.find(ne=>m.test(ne))??`Car-${v}`,V=Me(d)??s.value.find(ne=>oe(ne)===a||ne.id===a),k=V?{kind:"vehicle",id:oe(V),name:V.name}:{kind:"vehicle",id:a,name:`Vehicle ${a}`};_(N.value,k)||(N.value=k);return}const M=String(v),te=$?.find(a=>{const d=o(a);return d?.kind===t&&d.id===M}),e={kind:t,id:M,name:te||`${t==="site"?"Site":"Track"} ${M}`};_(N.value,e)||(N.value=e)}function de(t){const v=t.siteIds?.length??0,$=t.trackIds?.length??0,M=t.carIds?.length??0,te=Array.isArray(t.names)?t.names.length:0;if(v+$+M+te===0){N.value=null;return}if(Array.isArray(t.names))for(const e of t.names){const a=o(e);if(a){I(a,e);return}}if(t.kind&&t.id){ie(t.kind,t.id,t.names);return}if(v>0){ie("site",t.siteIds[0],t.names);return}if($>0){ie("track",t.trackIds[0],t.names);return}M>0&&ie("car",t.carIds[0],t.names)}function ge(t){if(!t.length){S();return}for(const v of t){const $=o(v);if($){I($,v);return}}S()}function Le(){const t=c.query.focusKind,v=c.query.focusId;if(typeof t!="string"||typeof v!="string"||t!=="car"&&t!=="site"&&t!=="track"&&t!=="special")return!1;const $=Number(v);if(!Number.isFinite($))return!1;Z.value={kind:t,id:$};const M={...c.query};return delete M.focusKind,delete M.focusId,P.replace({path:c.path,query:M}),!0}async function _e(){const t=Z.value;if(!t||!Y.value)return;Z.value=null;const{kind:v,id:$}=t;if(v==="car"){const M=s.value.find(te=>oe(te)===String($)||te.rawId===$);N.value=M?{kind:"vehicle",id:oe(M),name:M.name}:{kind:"vehicle",id:String($),name:`Vehicle ${$}`},await se($);return}if(v==="site"||v==="track"){ie(v,$);try{await pe.setSelection(v,$)}catch(M){T.error({message:`定位对象失败:${M.message}`,grouping:!0})}return}try{await pe.setSelection("special",$),N.value={kind:"special",id:String($),name:`装饰物 ${$}`}}catch(M){T.error({message:`定位对象失败:${M.message}`,grouping:!0})}}function ee(){Le()&&_e()}function Se(){const t=c.query.playback;if(typeof t!="string"||!t)return!1;K.value=t;const v={...c.query};return delete v.playback,P.replace({path:c.path,query:v}),!0}async function be(){const t=K.value;if(!(!t||!Y.value)){K.value=null;try{await re.startPlayback(t),T.success({message:`已开始回放:${t}`,grouping:!0})}catch(v){T.error({message:`启动回放失败:${v.message}`,grouping:!0})}}}function Q(){Se()&&be()}function Te(){Y.value=!0,S(),_e(),be()}async function S(){try{const t=await pe.getSelection();if(!t?.kind||t.id==null||t.kind!=="car"&&t.kind!=="site"&&t.kind!=="track")return;ie(t.kind,Number(t.id),t.name?[t.name]:void 0)}catch{}}async function se(t){if(!Number.isFinite(t))return;const[v,$]=await Promise.allSettled([pe.setSelection("car",t),re.locateCamera(t)]);v.status==="rejected"&&T.error({message:`同步 3D 选中失败:${v.reason.message}`,grouping:!0}),$.status==="rejected"&&T.error({message:`定位车辆失败:${$.reason.message}`,grouping:!0})}async function we(t){F.value=null,_(N.value,t)||(N.value=t),await se(Number(t.id))}async function Oe(t){if(F.value=t.id,t.carId!=null){const v=s.value.find($=>$.rawId===t.carId||oe($)===String(t.carId));if(v){await we({kind:"vehicle",id:oe(v),name:v.name});return}N.value={kind:"vehicle",id:String(t.carId),name:t.carName??`Vehicle ${t.carId}`},await se(t.carId);return}N.value={kind:"delivery",id:String(t.id),name:`${t.srcLabel} → ${t.dstLabel}`}}function ze(t){U.value=t,Ce()}async function Ce(){try{x.value=await hn(U.value)}catch(t){console.warn("[MapMonitor] refreshDeliveries failed",t),x.value=[]}}function Me(t){const v=Be(t);return s.value.find($=>$.name===t||$.id===t||v!=null&&oe($)===v)}function Be(t){return/^(?:UI)?(?:Car|Vehicle)-(\d+)$/i.exec(t)?.[1]??null}function oe(t){return t.rawId!=null?String(t.rawId):t.id.replace(/^C/i,"").replace(/^0+/,"")||t.id}async function $e(){G.value=!0;try{const[t,v]=await Promise.all([Wt(),qt()]);s.value=t,y.value=v,await Ce()}catch(t){console.warn("[MapMonitor] refreshAll failed",t)}finally{G.value=!1}}const Ve=Kt({autoConnect:!0});function Ie(t){if(t?.kind)switch(t.kind){case"alarm":{const v=t.payload;if(!v)return;z.value=[v,...z.value.filter($=>$.carId!==v.carId)].slice(0,30);break}case"car-state":case"mission-status":$e();break;case"selection-detail":t.payload&&typeof t.payload=="object"&&de(t.payload);break;case"monitor-config-updated":Ut(),X.value++;break}}return Ve.on(Ie),Fe(()=>[c.query.focusKind,c.query.focusId],()=>ee()),Fe(()=>c.query.playback,()=>Q()),Xe(async()=>{ee(),Q(),it(),await $e(),_e(),ue=setInterval(()=>{!Ve.connected.value||s.value.length===0?$e():O.value==="mission"&&Ce()},3e3)}),Je(()=>{ue&&clearInterval(ue),Ve.off(Ie)}),(t,v)=>{const $=At,M=Et,te=Tt,e=Dt,a=Pt,d=Ae,V=Ft;return f(),b("div",Vl,[l(te,{gutter:12,class:"kpi-row"},{default:i(()=>[l(M,{span:8},{default:i(()=>[l($,{title:"在线车辆",value:W.value},{suffix:i(()=>[n("span",El,"/ "+p(s.value.length),1)]),_:1},8,["value"])]),_:1}),l(M,{span:8},{default:i(()=>[l($,{title:"运行中任务",value:j.value},null,8,["value"])]),_:1}),l(M,{span:8},{default:i(()=>[l($,{title:"排队任务",value:le.value},null,8,["value"])]),_:1})]),_:1}),l(te,{gutter:12,class:"main-row"},{default:i(()=>[l(M,{span:16},{default:i(()=>[n("div",Al,[l(Rt,{ref_key:"workspaceRef",ref:w,host:H(D),scope:H(E).scope??"Platform",token:H(E).token??"","read-only":!!g.readOnly,"canvas-only":!0,"hide-toolbar":!0,onPick:r,onSelect:ge,onReady:Te},null,8,["host","scope","token","read-only"]),l(_l,{alarms:z.value,onLocate:R,onAck:ae},null,8,["alarms"]),l(Ml,{"follow-car-id":L.value},null,8,["follow-car-id"])])]),_:1}),l(M,{span:8,class:"side-col"},{default:i(()=>[l(V,{shadow:"never",class:"side-card workbench-card"},{header:i(()=>[n("div",Fl,[l(a,{modelValue:O.value,"onUpdate:modelValue":v[0]||(v[0]=k=>O.value=k),class:"workbench-tabs"},{default:i(()=>[l(e,{label:"车辆监控台",name:"vehicle"}),l(e,{label:"任务列表",name:"mission"})]),_:1},8,["modelValue"]),l(d,{link:"",type:"primary",size:"small",loading:G.value,onClick:$e},{default:i(()=>[...v[1]||(v[1]=[q(" 刷新 ",-1)])]),_:1},8,["loading"])])]),default:i(()=>[We(l(_n,{cars:s.value,missions:y.value,"selected-id":h.value,onSelect:we},null,8,["cars","missions","selected-id"]),[[qe,O.value==="vehicle"]]),We(l(An,{deliveries:x.value,"selected-id":F.value,onSelect:Oe,onRefresh:ze,onActionDone:Ce},null,8,["deliveries","selected-id"]),[[qe,O.value==="mission"]])]),_:1}),l(V,{shadow:"never",class:"side-card detail-card"},{header:i(()=>[...v[2]||(v[2]=[n("span",null,"选中信息",-1)])]),default:i(()=>[l(ll,{selection:N.value,"refresh-key":X.value,cars:s.value,missions:y.value,"read-only":!!g.readOnly},null,8,["selection","refresh-key","cars","missions","read-only"])]),_:1})]),_:1})]),_:1})])}}}),fs=ke(Pl,[["__scopeId","data-v-90324f90"]]);export{fs as default}; diff --git a/MiGu.Server/wwwroot/assets/MissionEditorView-BNUdM9Ij.js b/MiGu.Server/wwwroot/assets/MissionEditorView-BNUdM9Ij.js deleted file mode 100644 index eed830e..0000000 --- a/MiGu.Server/wwwroot/assets/MissionEditorView-BNUdM9Ij.js +++ /dev/null @@ -1 +0,0 @@ -import{R as o}from"./ReflectionManagerPanel-BZQZIz4T.js";import{aI as i,aE as t,aH as r,b9 as p,ak as e}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./reflection-B_glb6eT.js";import"./useMapEditStream-BgR6WvRg.js";import"./useProjectionStream-BBHmpNXC.js";const m={class:"mission-page"},s=i({__name:"MissionEditorView",setup(a){return(n,c)=>(p(),t("div",m,[r(o,{kind:"process","kind-label":"任务",title:"任务编排(Mission / 进程,含插件 MissionType 实例化)","empty-text":"当前没有任务;点击右上角「新建任务」从已加载的 MissionType 中选一个实例化。"})]))}}),z=e(s,[["__scopeId","data-v-40f885f1"]]);export{z as default}; diff --git a/MiGu.Server/wwwroot/assets/MissionEditorView-DOR5c4wb.css b/MiGu.Server/wwwroot/assets/MissionEditorView-DOR5c4wb.css deleted file mode 100644 index d19c9e2..0000000 --- a/MiGu.Server/wwwroot/assets/MissionEditorView-DOR5c4wb.css +++ /dev/null @@ -1 +0,0 @@ -.mission-page[data-v-40f885f1]{height:calc(100vh - 56px);padding:12px 14px;box-sizing:border-box} diff --git a/MiGu.Server/wwwroot/assets/MonitorDashboardView-Dl0hq3jL.js b/MiGu.Server/wwwroot/assets/MonitorDashboardView-BhyuAhkj.js similarity index 60% rename from MiGu.Server/wwwroot/assets/MonitorDashboardView-Dl0hq3jL.js rename to MiGu.Server/wwwroot/assets/MonitorDashboardView-BhyuAhkj.js index 5c4c31e..b74a386 100644 --- a/MiGu.Server/wwwroot/assets/MonitorDashboardView-Dl0hq3jL.js +++ b/MiGu.Server/wwwroot/assets/MonitorDashboardView-BhyuAhkj.js @@ -1 +1 @@ -import{aI as k,b7 as M,aE as T,aH as t,bJ as e,bh as p,a2 as V,b9 as z,w as B,a6 as D,aB as d,bq as c,t as I,aa as N,ab as S,ad as P,aG as v,$ as q,ax as _,ak as A}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{l as G,a as H}from"./projection-BMms551H.js";import{l as J}from"./ops-CsVl7GhE.js";import"./reflection-B_glb6eT.js";const R={class:"muted"},$=k({__name:"MonitorDashboardView",setup(j){const n=p([]),m=p([]),i=p([]),b=_(()=>n.value.filter(l=>l.state!=="offline").length),x=_(()=>m.value.filter(l=>l.status==="running").length),C=_(()=>n.value.filter(l=>l.state==="fault").length);function E(l){switch(l){case"running":return"success";case"idle":return"info";case"charging":return"warning";case"paused":return"warning";case"fault":return"danger";case"offline":return"info";default:return"info"}}return M(async()=>{[n.value,m.value,i.value]=await Promise.all([G(),H(),J()])}),(l,r)=>{const u=D,o=B,f=V,a=S,g=P,y=q,h=N,w=I;return z(),T("div",null,[t(f,{gutter:14,class:"kpi-row"},{default:e(()=>[t(o,{span:6},{default:e(()=>[t(u,{title:"车辆在线",value:b.value},{suffix:e(()=>[d("span",R,"/ "+c(n.value.length),1)]),_:1},8,["value"])]),_:1}),t(o,{span:6},{default:e(()=>[t(u,{title:"任务进行中",value:x.value},null,8,["value"])]),_:1}),t(o,{span:6},{default:e(()=>[t(u,{title:"故障车辆",value:C.value},null,8,["value"])]),_:1}),t(o,{span:6},{default:e(()=>[t(u,{title:"今日运维动作",value:i.value.length},null,8,["value"])]),_:1})]),_:1}),t(f,{gutter:14,style:{"margin-top":"14px"}},{default:e(()=>[t(o,{span:14},{default:e(()=>[t(w,{shadow:"never"},{header:e(()=>[...r[0]||(r[0]=[d("span",null,"实时车辆",-1)])]),default:e(()=>[t(h,{data:n.value,size:"small","max-height":"360",stripe:""},{default:e(()=>[t(a,{prop:"name",label:"名称",width:"100"}),t(a,{prop:"state",label:"状态",width:"90"},{default:e(s=>[t(g,{size:"small",type:E(s.row.state)},{default:e(()=>[v(c(s.row.state),1)]),_:2},1032,["type"])]),_:1}),t(a,{prop:"group",label:"分组",width:"100"}),t(a,{label:"电量",width:"160"},{default:e(s=>[t(y,{percentage:Math.round(s.row.batterySoc*100),"stroke-width":8},null,8,["percentage"])]),_:1}),t(a,{prop:"missionId",label:"当前任务"})]),_:1},8,["data"])]),_:1})]),_:1}),t(o,{span:10},{default:e(()=>[t(w,{shadow:"never"},{header:e(()=>[...r[1]||(r[1]=[d("span",null,"最近运维动作",-1)])]),default:e(()=>[t(h,{data:i.value,size:"small","max-height":"360",stripe:""},{default:e(()=>[t(a,{prop:"ts",label:"时间",width:"180"}),t(a,{prop:"opCode",label:"动作"}),t(a,{prop:"target",label:"目标",width:"100"}),t(a,{prop:"result",label:"结果",width:"80"},{default:e(s=>[t(g,{size:"small",type:s.row.result==="ok"?"success":"danger"},{default:e(()=>[v(c(s.row.result),1)]),_:2},1032,["type"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})])}}}),ot=A($,[["__scopeId","data-v-53088435"]]);export{ot as default}; +import{aN as k,bp as M,aG as T,aK as t,c8 as e,bC as p,a2 as V,bs as z,w as D,a6 as N,aD as d,bL as c,t as B,aa as S,ab as I,ad as P,aJ as v,$ as A,ay as _,ak as G}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{l as J,a as K}from"./projection-BHFE6Meg.js";import{l as L}from"./ops-C48uBBTk.js";import"./reflection-BwOBPyb9.js";const R={class:"muted"},$=k({__name:"MonitorDashboardView",setup(j){const n=p([]),m=p([]),i=p([]),b=_(()=>n.value.filter(l=>l.state!=="offline").length),C=_(()=>m.value.filter(l=>l.status==="running").length),x=_(()=>n.value.filter(l=>l.state==="fault").length);function y(l){switch(l){case"running":return"success";case"idle":return"info";case"charging":return"warning";case"paused":return"warning";case"fault":return"danger";case"offline":return"info";default:return"info"}}return M(async()=>{[n.value,m.value,i.value]=await Promise.all([J(),K(),L()])}),(l,r)=>{const u=N,o=D,f=V,a=I,g=P,E=A,w=S,h=B;return z(),T("div",null,[t(f,{gutter:14,class:"kpi-row"},{default:e(()=>[t(o,{span:6},{default:e(()=>[t(u,{title:"车辆在线",value:b.value},{suffix:e(()=>[d("span",R,"/ "+c(n.value.length),1)]),_:1},8,["value"])]),_:1}),t(o,{span:6},{default:e(()=>[t(u,{title:"任务进行中",value:C.value},null,8,["value"])]),_:1}),t(o,{span:6},{default:e(()=>[t(u,{title:"故障车辆",value:x.value},null,8,["value"])]),_:1}),t(o,{span:6},{default:e(()=>[t(u,{title:"今日运维动作",value:i.value.length},null,8,["value"])]),_:1})]),_:1}),t(f,{gutter:14,style:{"margin-top":"14px"}},{default:e(()=>[t(o,{span:14},{default:e(()=>[t(h,{shadow:"never"},{header:e(()=>[...r[0]||(r[0]=[d("span",null,"实时车辆",-1)])]),default:e(()=>[t(w,{data:n.value,size:"small","max-height":"360",stripe:""},{default:e(()=>[t(a,{prop:"name",label:"名称",width:"100"}),t(a,{prop:"state",label:"状态",width:"90"},{default:e(s=>[t(g,{size:"small",type:y(s.row.state)},{default:e(()=>[v(c(s.row.state),1)]),_:2},1032,["type"])]),_:1}),t(a,{prop:"group",label:"分组",width:"100"}),t(a,{label:"电量",width:"160"},{default:e(s=>[t(E,{percentage:Math.round(s.row.batterySoc*100),"stroke-width":8},null,8,["percentage"])]),_:1}),t(a,{prop:"missionId",label:"当前任务"})]),_:1},8,["data"])]),_:1})]),_:1}),t(o,{span:10},{default:e(()=>[t(h,{shadow:"never"},{header:e(()=>[...r[1]||(r[1]=[d("span",null,"最近运维动作",-1)])]),default:e(()=>[t(w,{data:i.value,size:"small","max-height":"360",stripe:""},{default:e(()=>[t(a,{prop:"ts",label:"时间",width:"180"}),t(a,{prop:"opCode",label:"动作"}),t(a,{prop:"target",label:"目标",width:"100"}),t(a,{prop:"result",label:"结果",width:"80"},{default:e(s=>[t(g,{size:"small",type:s.row.result==="ok"?"success":"danger"},{default:e(()=>[v(c(s.row.result),1)]),_:2},1032,["type"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})])}}}),ot=G($,[["__scopeId","data-v-53088435"]]);export{ot as default}; diff --git a/MiGu.Server/wwwroot/assets/MonitorMapView-D59BIz8C.js b/MiGu.Server/wwwroot/assets/MonitorMapView-D59BIz8C.js new file mode 100644 index 0000000..ca9bbc9 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/MonitorMapView-D59BIz8C.js @@ -0,0 +1 @@ +import o from"./MapMonitorView-CdBlKooR.js";import{aN as r,aE as t,bs as p}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./Workspace3D-B9mv4VWE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import"./reflection-BwOBPyb9.js";import"./mapEdit-BXIATxCI.js";import"./ops-BCeFEEjY.js";import"./ops-C48uBBTk.js";import"./monitorConfigCache-DXn96T8F.js";/* empty css *//* empty css *//* empty css */import"./workspaceToolbar-abOZ7a24.js";import"./projection-BHFE6Meg.js";import"./useProjectionStream-ayb6RvWW.js";const H=r({__name:"MonitorMapView",setup(i){return(m,e)=>(p(),t(o,{"read-only":""}))}});export{H as default}; diff --git a/MiGu.Server/wwwroot/assets/MonitorMapView-OvNLwhYc.js b/MiGu.Server/wwwroot/assets/MonitorMapView-OvNLwhYc.js deleted file mode 100644 index c1f384b..0000000 --- a/MiGu.Server/wwwroot/assets/MonitorMapView-OvNLwhYc.js +++ /dev/null @@ -1 +0,0 @@ -import o from"./MapMonitorView-Bc6X9WQO.js";import{aI as r,aC as t,b9 as p}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./Workspace3D-DpUfTJl7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import"./reflection-B_glb6eT.js";import"./mapEdit-TNAQr3Be.js";import"./ops-BCeFEEjY.js";import"./ops-CsVl7GhE.js";import"./monitorConfigCache-BigdkiFw.js";/* empty css *//* empty css *//* empty css */import"./projection-BMms551H.js";import"./useProjectionStream-BBHmpNXC.js";const G=r({__name:"MonitorMapView",setup(i){return(m,e)=>(p(),t(o,{"read-only":""}))}});export{G as default}; diff --git a/MiGu.Server/wwwroot/assets/OpsActionPanelView-CgLT81Kn.js b/MiGu.Server/wwwroot/assets/OpsActionPanelView-CYj4_682.js similarity index 66% rename from MiGu.Server/wwwroot/assets/OpsActionPanelView-CgLT81Kn.js rename to MiGu.Server/wwwroot/assets/OpsActionPanelView-CYj4_682.js index 5da9a2f..eb8c0bc 100644 --- a/MiGu.Server/wwwroot/assets/OpsActionPanelView-CgLT81Kn.js +++ b/MiGu.Server/wwwroot/assets/OpsActionPanelView-CYj4_682.js @@ -1,2 +1,2 @@ -import{aI as T,bv as V,b7 as z,aC as m,bJ as a,bh as B,b9 as d,aH as o,t as S,aa as M,bt as _,ab as P,aB as p,bq as r,ad as $,aG as i,R as A,r as D,ae as N,aE as G,ai as H,bj as L,af as R,bg as U,ax as j,X as f,Y as q}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{P as F}from"./PermissionGuard-BlMEkqrL.js";import{O as g}from"./ops-BCeFEEjY.js";import{l as C,e as J}from"./ops-CsVl7GhE.js";/* empty css */const W={style:{display:"flex","align-items":"center",gap:"8px"}},me=T({__name:"OpsActionPanelView",setup(X){const w=V(),u=U({}),c=B([]),E=j(()=>g.filter(n=>w.hasOp(n.code)));async function x(n){const e=u[n.code];if(!e&&n.target!=="note"){f.warning("请填写目标 ID");return}if(n.needConfirm)try{await q.confirm(`确认执行 [${n.label}]? -目标:${e}`,"二次确认",{type:"warning"})}catch{return}try{const l=await J({opCode:n.code,targetId:e});f.success(`成功,auditId=${l.auditId}`),c.value=await C()}catch(l){f.error(`失败:${l instanceof Error?l.message:String(l)}`)}}return z(async()=>{c.value=await C()}),(n,e)=>{const l=$,s=P,h=A,k=D,v=M,b=S,I=R,O=N;return d(),m(F,{"widget-id":"OpsActionPanel"},{default:a(()=>[o(b,{shadow:"never"},{header:a(()=>[p("div",W,[e[1]||(e[1]=p("span",null,"运维操作(架构 §5.1 白名单)",-1)),o(l,{size:"small",type:"info"},{default:a(()=>[...e[0]||(e[0]=[i("scope=RCSMonitor",-1)])]),_:1}),o(l,{size:"small",type:"success"},{default:a(()=>[i(r(E.value.length)+" / "+r(_(g).length)+" 可用",1)]),_:1})])]),default:a(()=>[o(v,{data:_(g),size:"small",border:""},{default:a(()=>[o(s,{prop:"code",label:"权限码",width:"200"},{default:a(t=>[p("code",null,r(t.row.code),1)]),_:1}),o(s,{prop:"label",label:"操作",width:"140"}),o(s,{prop:"target",label:"目标",width:"80"}),o(s,{prop:"needConfirm",label:"二次确认",width:"100"},{default:a(t=>[t.row.needConfirm?(d(),m(l,{key:0,size:"small",type:"warning"},{default:a(()=>[...e[2]||(e[2]=[i("是",-1)])]),_:1})):(d(),m(l,{key:1,size:"small",effect:"plain"},{default:a(()=>[...e[3]||(e[3]=[i("否",-1)])]),_:1}))]),_:1}),o(s,{prop:"description",label:"说明"}),o(s,{label:"操作",width:"200"},{default:a(t=>[o(h,{modelValue:u[t.row.code],"onUpdate:modelValue":y=>u[t.row.code]=y,placeholder:"目标 ID",size:"small",style:{width:"100px","margin-right":"6px"}},null,8,["modelValue","onUpdate:modelValue"]),o(k,{size:"small",type:t.row.needConfirm?"warning":"primary",disabled:!_(w).hasOp(t.row.code),onClick:y=>x(t.row)},{default:a(()=>[...e[4]||(e[4]=[i("执行",-1)])]),_:1},8,["type","disabled","onClick"])]),_:1})]),_:1},8,["data"])]),_:1}),o(b,{shadow:"never",style:{"margin-top":"12px"}},{header:a(()=>[...e[5]||(e[5]=[p("span",null,"本地操作记录(占位 Mock)",-1)])]),default:a(()=>[o(O,null,{default:a(()=>[(d(!0),G(H,null,L(c.value,t=>(d(),m(I,{key:t.id,timestamp:t.ts,type:t.result==="ok"?"success":"danger"},{default:a(()=>[p("strong",null,r(t.opCode),1),i(" → "+r(t.target)+"("+r(t.user)+") ",1)]),_:2},1032,["timestamp","type"]))),128))]),_:1})]),_:1})]),_:1})}}});export{me as default}; +import{aN as O,bV as T,bp as z,aE as m,c8 as a,bC as S,bs as d,aK as o,t as B,aa as A,bS as _,ab as M,aD as p,bL as r,ad as P,aJ as i,R as $,r as D,ae as N,aG as L,ai as G,bE as R,af as U,bA as F,ay as H,X as f,Y as J}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{P as K}from"./PermissionGuard-CR4qtxrh.js";import{O as g}from"./ops-BCeFEEjY.js";import{l as E,e as W}from"./ops-C48uBBTk.js";/* empty css */const X={style:{display:"flex","align-items":"center",gap:"8px"}},me=O({__name:"OpsActionPanelView",setup(Y){const w=T(),u=F({}),c=S([]),C=H(()=>g.filter(n=>w.hasOp(n.code)));async function x(n){const e=u[n.code];if(!e&&n.target!=="note"){f.warning("请填写目标 ID");return}if(n.needConfirm)try{await J.confirm(`确认执行 [${n.label}]? +目标:${e}`,"二次确认",{type:"warning"})}catch{return}try{const l=await W({opCode:n.code,targetId:e});f.success(`成功,auditId=${l.auditId}`),c.value=await E()}catch(l){f.error(`失败:${l instanceof Error?l.message:String(l)}`)}}return z(async()=>{c.value=await E()}),(n,e)=>{const l=P,s=M,h=$,k=D,v=A,b=B,I=U,V=N;return d(),m(K,{"widget-id":"OpsActionPanel"},{default:a(()=>[o(b,{shadow:"never"},{header:a(()=>[p("div",X,[e[1]||(e[1]=p("span",null,"运维操作(架构 §5.1 白名单)",-1)),o(l,{size:"small",type:"info"},{default:a(()=>[...e[0]||(e[0]=[i("scope=RCSMonitor",-1)])]),_:1}),o(l,{size:"small",type:"success"},{default:a(()=>[i(r(C.value.length)+" / "+r(_(g).length)+" 可用",1)]),_:1})])]),default:a(()=>[o(v,{data:_(g),size:"small",border:""},{default:a(()=>[o(s,{prop:"code",label:"权限码",width:"200"},{default:a(t=>[p("code",null,r(t.row.code),1)]),_:1}),o(s,{prop:"label",label:"操作",width:"140"}),o(s,{prop:"target",label:"目标",width:"80"}),o(s,{prop:"needConfirm",label:"二次确认",width:"100"},{default:a(t=>[t.row.needConfirm?(d(),m(l,{key:0,size:"small",type:"warning"},{default:a(()=>[...e[2]||(e[2]=[i("是",-1)])]),_:1})):(d(),m(l,{key:1,size:"small",effect:"plain"},{default:a(()=>[...e[3]||(e[3]=[i("否",-1)])]),_:1}))]),_:1}),o(s,{prop:"description",label:"说明"}),o(s,{label:"操作",width:"200"},{default:a(t=>[o(h,{modelValue:u[t.row.code],"onUpdate:modelValue":y=>u[t.row.code]=y,placeholder:"目标 ID",size:"small",style:{width:"100px","margin-right":"6px"}},null,8,["modelValue","onUpdate:modelValue"]),o(k,{size:"small",type:t.row.needConfirm?"warning":"primary",disabled:!_(w).hasOp(t.row.code),onClick:y=>x(t.row)},{default:a(()=>[...e[4]||(e[4]=[i("执行",-1)])]),_:1},8,["type","disabled","onClick"])]),_:1})]),_:1},8,["data"])]),_:1}),o(b,{shadow:"never",style:{"margin-top":"12px"}},{header:a(()=>[...e[5]||(e[5]=[p("span",null,"本地操作记录(占位 Mock)",-1)])]),default:a(()=>[o(V,null,{default:a(()=>[(d(!0),L(G,null,R(c.value,t=>(d(),m(I,{key:t.id,timestamp:t.ts,type:t.result==="ok"?"success":"danger"},{default:a(()=>[p("strong",null,r(t.opCode),1),i(" → "+r(t.target)+"("+r(t.user)+") ",1)]),_:2},1032,["timestamp","type"]))),128))]),_:1})]),_:1})]),_:1})}}});export{me as default}; diff --git a/MiGu.Server/wwwroot/assets/OpsCenterView-DK8hhBKP.css b/MiGu.Server/wwwroot/assets/OpsCenterView-DK8hhBKP.css new file mode 100644 index 0000000..8ab2392 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/OpsCenterView-DK8hhBKP.css @@ -0,0 +1 @@ +.playback-card[data-v-49ba457d]{height:100%}.pb-header[data-v-49ba457d]{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.pb-title[data-v-49ba457d]{display:flex;align-items:center;gap:8px}.pb-playing[data-v-49ba457d]{font-weight:400}.pb-actions[data-v-49ba457d]{display:flex;align-items:center;gap:8px}.pb-search[data-v-49ba457d]{width:240px}.pb-dir[data-v-49ba457d]{margin:0 0 12px;font-size:12px;color:var(--mg-text-muted, #909399)}.pb-name[data-v-49ba457d]{display:flex;align-items:center;gap:8px}.pb-name-text[data-v-49ba457d]{font-weight:500}.pb-filename[data-v-49ba457d]{font-size:12px;color:var(--mg-text-muted, #909399)}.monitor-section[data-v-bf134df3]{min-height:80px}.cfg-check-grid[data-v-bf134df3]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 10px}.type-actions[data-v-bf134df3]{width:100%}.empty-hint[data-v-bf134df3]{margin:4px 0 0;font-size:12px}.muted[data-v-bf134df3]{color:var(--mg-text-muted)}.el-overlay.is-drawer{overflow:hidden}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color,var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary,20px);--el-drawer-dragger-size:8px;box-sizing:border-box;background-color:var(--el-drawer-bg-color);box-shadow:var(--el-box-shadow-dark);transition:all var(--el-transition-duration);flex-direction:column;display:flex;position:absolute}.el-drawer .rtl,.el-drawer .ltr,.el-drawer .ttb,.el-drawer .btt{transform:translate(0)}.el-drawer__sr-focus:focus{outline:none!important}.el-drawer__header{color:var(--el-text-color-primary);padding:var(--el-drawer-padding-primary);align-items:center;margin-bottom:32px;padding-bottom:0;display:flex;overflow:hidden}.el-drawer__header>:first-child{flex:1}.el-drawer__title{line-height:inherit;flex:1;margin:0;font-size:16px}.el-drawer__footer{padding:var(--el-drawer-padding-primary);text-align:right;padding-top:10px;overflow:hidden}.el-drawer__close-btn{cursor:pointer;font-size:var(--el-font-size-extra-large);color:inherit;background-color:#0000;border:none;outline:none;display:inline-flex}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{padding:var(--el-drawer-padding-primary);flex:1;overflow:auto}.el-drawer__body>*{box-sizing:border-box}.el-drawer.is-dragging{transition:none}.el-drawer__dragger{-webkit-user-select:none;user-select:none;background-color:#0000;transition:all .2s;position:absolute}.el-drawer__dragger:before{content:"";background-color:#0000;transition:all .2s;position:absolute}.el-drawer__dragger:hover:before{background-color:var(--el-color-primary)}.el-drawer.ltr,.el-drawer.rtl{height:100%;top:0;bottom:0}.el-drawer.ltr>.el-drawer__dragger,.el-drawer.rtl>.el-drawer__dragger{height:100%;width:var(--el-drawer-dragger-size);cursor:ew-resize;top:0;bottom:0}.el-drawer.ltr>.el-drawer__dragger:before,.el-drawer.rtl>.el-drawer__dragger:before{width:3px;top:0;bottom:0}.el-drawer.ttb,.el-drawer.btt{width:100%;left:0;right:0}.el-drawer.ttb>.el-drawer__dragger,.el-drawer.btt>.el-drawer__dragger{width:100%;height:var(--el-drawer-dragger-size);cursor:ns-resize;left:0;right:0}.el-drawer.ttb>.el-drawer__dragger:before,.el-drawer.btt>.el-drawer__dragger:before{height:3px;left:0;right:0}.el-drawer.ltr{left:0}.el-drawer.ltr>.el-drawer__dragger{right:0}.el-drawer.ltr>.el-drawer__dragger:before{right:-2px}.el-drawer.rtl{right:0}.el-drawer.rtl>.el-drawer__dragger{left:0}.el-drawer.rtl>.el-drawer__dragger:before{left:-2px}.el-drawer.ttb{top:0}.el-drawer.ttb>.el-drawer__dragger{bottom:0}.el-drawer.ttb>.el-drawer__dragger:before{bottom:-2px}.el-drawer.btt{bottom:0}.el-drawer.btt>.el-drawer__dragger{top:0}.el-drawer.btt>.el-drawer__dragger:before{top:-2px}.el-modal-drawer.is-penetrable{pointer-events:none}.el-modal-drawer.is-penetrable .el-drawer{pointer-events:auto}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-from,.el-drawer-fade-enter-active,.el-drawer-fade-enter-to,.el-drawer-fade-leave-from,.el-drawer-fade-leave-active,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{background-color:#0000!important}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.logview[data-v-43fe0c7b]{display:flex;flex-direction:column;gap:14px;flex:1;min-height:0}.ov-card[data-v-43fe0c7b] .el-card__body{padding:16px 18px}.ov-head[data-v-43fe0c7b]{display:flex;align-items:center;justify-content:space-between}.ov-title[data-v-43fe0c7b]{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--mg-text-light)}.ov-desc[data-v-43fe0c7b]{color:var(--mg-text-muted);font-size:12.5px;line-height:1.6;margin:10px 0 12px}.ov-desc code[data-v-43fe0c7b]{font-family:var(--mg-font-mono, monospace);color:var(--mg-accent)}.ov-stats[data-v-43fe0c7b]{display:grid;grid-template-columns:2.2fr .8fr .8fr 1.4fr;gap:12px}.ov-stat[data-v-43fe0c7b]{display:flex;flex-direction:column;gap:3px}.ov-stat .k[data-v-43fe0c7b]{font-size:11px;color:var(--mg-text-muted)}.ov-stat .v[data-v-43fe0c7b]{font-size:13px;color:var(--mg-text-light);font-variant-numeric:tabular-nums}.ov-stat .v.path[data-v-43fe0c7b]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--mg-font-mono, monospace)}.body-card[data-v-43fe0c7b],.body-card[data-v-43fe0c7b] .el-card__body,.log-tabs[data-v-43fe0c7b]{flex:1;min-height:0;display:flex;flex-direction:column}.log-tabs[data-v-43fe0c7b] .el-tabs__content{flex:1;min-height:0}.tab-lbl[data-v-43fe0c7b]{margin-left:5px}.toolbar[data-v-43fe0c7b]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 12px}.toolbar .spacer[data-v-43fe0c7b]{flex:1}.sel-kw[data-v-43fe0c7b]{width:200px}.sel-interval[data-v-43fe0c7b]{width:120px}.muted[data-v-43fe0c7b]{color:var(--mg-text-muted);font-size:12px}.mono[data-v-43fe0c7b]{font-family:var(--mg-font-mono, monospace);font-size:12.5px}.crumbs[data-v-43fe0c7b]{display:inline-flex;align-items:center}.crumb[data-v-43fe0c7b]{cursor:pointer;color:var(--mg-accent)}.crumb[data-v-43fe0c7b]:hover{text-decoration:underline}.live-table[data-v-43fe0c7b],.files-table[data-v-43fe0c7b],.entries-table[data-v-43fe0c7b]{width:100%}.live-table[data-v-43fe0c7b] .tagged-row{background:rgba(var(--mg-primary-rgb),.06)}.name-cell[data-v-43fe0c7b]{display:inline-flex;align-items:center;gap:6px}.name-cell.is-dir[data-v-43fe0c7b]{color:var(--mg-accent);font-weight:500;cursor:pointer}.detail-content[data-v-43fe0c7b]{margin-top:14px}.detail-bar[data-v-43fe0c7b]{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:13px;color:var(--mg-text-light)}.detail-pre[data-v-43fe0c7b],.raw-pre[data-v-43fe0c7b]{margin:0;padding:12px;font-family:var(--mg-font-mono, monospace);font-size:12.5px;line-height:1.55;background:var(--mg-veil-2, rgba(0,0,0,.25));color:var(--mg-text-light);border-radius:8px;white-space:pre-wrap;word-break:break-all;max-height:360px;overflow:auto}.raw-pre[data-v-43fe0c7b]{max-height:calc(100vh - 200px);white-space:pre;word-break:normal}.file-bar[data-v-43fe0c7b]{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}.file-bar .spacer[data-v-43fe0c7b]{flex:1}.sel-tail[data-v-43fe0c7b]{width:140px}.sel-tag[data-v-43fe0c7b]{width:200px}.analyze-empty[data-v-43fe0c7b]{display:flex;align-items:center;justify-content:center;min-height:320px}.an-target[data-v-43fe0c7b]{max-width:360px;display:inline-flex;align-items:center;gap:4px;overflow:hidden}.an-target .mono[data-v-43fe0c7b]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.an-stats[data-v-43fe0c7b]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 12px}.an-grid[data-v-43fe0c7b]{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;margin-bottom:12px}.an-card[data-v-43fe0c7b] .el-card__body{padding:12px 14px}.an-card-title[data-v-43fe0c7b]{font-size:13px;font-weight:600;color:var(--mg-text-light);margin-bottom:8px}.an-card-title .muted[data-v-43fe0c7b]{font-weight:400}.an-chart[data-v-43fe0c7b]{width:100%;height:260px}.an-chart.tall[data-v-43fe0c7b]{height:300px}.an-fields-body[data-v-43fe0c7b]{display:grid;grid-template-columns:minmax(420px,1fr) 1.2fr;gap:14px;align-items:stretch}.an-field-chart-wrap[data-v-43fe0c7b]{position:relative;min-height:300px;border-left:1px solid var(--mg-divider, rgba(255,255,255,.08));padding-left:14px}.an-field-hint[data-v-43fe0c7b]{display:flex;align-items:center;justify-content:center;height:300px}@media (max-width: 1200px){.an-grid[data-v-43fe0c7b],.an-fields-body[data-v-43fe0c7b]{grid-template-columns:1fr}.an-field-chart-wrap[data-v-43fe0c7b]{border-left:none;border-top:1px solid var(--mg-divider, rgba(255,255,255,.08));padding-left:0;padding-top:12px}}.mmcg[data-v-242bdaa0]{display:flex;flex-direction:column;gap:8px;padding:12px 14px;background:var(--mg-veil-1);border:1px solid var(--mg-veil-border);border-radius:8px}.mmcg-head[data-v-242bdaa0]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mmcg-title[data-v-242bdaa0]{font-weight:600;font-size:13px;color:var(--mg-text-light)}.mmcg-head .spacer[data-v-242bdaa0]{flex:1}.mmcg-empty[data-v-242bdaa0]{margin:4px 0 0;font-size:12px;font-style:italic}.muted[data-v-242bdaa0]{color:var(--mg-text-dim)}.mmcg-grid[data-v-242bdaa0]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 12px;align-items:center}.mmcg-grid[data-v-242bdaa0] .el-checkbox{margin-right:0;height:28px}.mmcg-grid[data-v-242bdaa0] .el-checkbox__label{color:var(--mg-text-light);font-size:12.5px;font-family:ui-monospace,Menlo,Consolas,monospace}.mmcg-orphans[data-v-242bdaa0]{margin-top:4px}.orphan-list[data-v-242bdaa0]{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.mmc-card[data-v-4d3be43b]{margin:0}.mmc-header[data-v-4d3be43b]{display:flex;align-items:center;gap:8px}.mmc-title[data-v-4d3be43b]{font-weight:600;font-size:15px;color:var(--mg-text-light)}.mmc-header .spacer[data-v-4d3be43b]{flex:1}.mmc-desc[data-v-4d3be43b]{color:var(--mg-text-muted);font-size:12.5px;margin:0 0 12px;line-height:1.7}.mmc-desc code[data-v-4d3be43b]{background:var(--mg-veil-2);padding:1px 5px;border-radius:4px;font-family:ui-monospace,Menlo,Consolas,monospace}.mmc-tabs[data-v-4d3be43b] .el-tabs__item{color:var(--mg-text-muted)!important}.mmc-tabs[data-v-4d3be43b] .el-tabs__item.is-active{color:var(--mg-text-light)!important}.mmc-tab-body[data-v-4d3be43b]{display:flex;flex-direction:column;gap:18px;padding-top:6px}.config-hub-page[data-v-0bd2e46f]{padding:16px;height:100%;display:flex;flex-direction:column;overflow:hidden}.hub-tabs[data-v-0bd2e46f]{flex:1;min-height:0;display:flex;flex-direction:column}[data-v-0bd2e46f] .el-tabs__content{flex:1;min-height:0;overflow:auto}[data-v-0bd2e46f] .el-tab-pane{height:100%}.config-pane[data-v-0bd2e46f]{height:100%;overflow:auto}[data-v-0bd2e46f] .el-tabs__item{color:var(--mg-text-muted, rgba(255, 255, 255, .65))}[data-v-0bd2e46f] .el-tabs__item.is-active{color:var(--mg-text-light, #fff)}[data-v-0bd2e46f] .el-tabs__active-bar{background-color:var(--mg-accent, var(--el-color-primary))}[data-v-0bd2e46f] .el-tabs__nav-wrap:after{background-color:#ffffff14} diff --git a/MiGu.Server/wwwroot/assets/OpsCenterView-DSZVXypR.js b/MiGu.Server/wwwroot/assets/OpsCenterView-DSZVXypR.js new file mode 100644 index 0000000..be64747 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/OpsCenterView-DSZVXypR.js @@ -0,0 +1,2 @@ +import{aN as he,bX as Ll,bp as nl,bs as i,aE as x,c8 as t,aG as V,bL as u,aF as K,c9 as ee,b$ as Ie,aa as Tl,aK as l,ab as El,aD as n,ad as Ke,aJ as s,r as Pe,bS as $,c4 as et,aP as lt,R as Ml,bI as $e,bD as me,bC as m,ay as te,X as W,Y as tt,t as ol,ak as ke,bo as at,N as nt,G as ot,O as st,S as it,E as sl,x as ut,ai as X,bE as oe,y as dt,v as Nl,u as il,c0 as tl,e as rt,bK as Je,b4 as de,c7 as we,br as ct,Q as mt,aQ as Ye,ac as ul,a9 as dl,a8 as vt,a4 as pt,Z as ft,c5 as Ze,aM as gt,ap as _t,p as bt,q as yt,bk as wt,bH as ht,aZ as kt,a_ as Fe,bR as Qe,aR as kl,L as Ct,ca as xt,F as $t,B as Vt,C as zt,aB as St,H as Lt,a1 as Tt,a0 as Et,bj as Cl,s as Mt,at as Nt,bA as xl,bW as Ut}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{w as Xe}from"./workspaceToolbar-abOZ7a24.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{n as $l,C as At,c as Rt,s as Vl,d as Dt,l as Bt}from"./ConfigPageBase-CgfsngDp.js";import{r as al,b as zl,e as Ot}from"./reflection-BwOBPyb9.js";import{f as Ft}from"./monitorConfigCache-DXn96T8F.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{P as Ul}from"./PermissionGuard-CR4qtxrh.js";import{er as It,cf as Kt,ce as Pt,cg as Gt,ch as Wt,ci as jt,cj as Ht,cd as qt,c9 as el}from"./install-D_iTbSFG.js";/* empty css *//* empty css */const Jt={class:"pb-header"},Yt={class:"pb-title"},Zt={class:"pb-actions"},Qt={key:0,class:"pb-dir"},Xt={class:"pb-name"},ea={class:"pb-name-text"},la={key:0,class:"pb-filename"},ta=he({__name:"PlaybackView",setup(w){const y=Ll(),f=m(!1),U=m(!1),S=m([]),b=m(""),E=m(!1),D=m(""),F=te(()=>{const v=D.value.trim().toLowerCase();return v?S.value.filter(r=>(r.displayName||"").toLowerCase().includes(v)||r.fileName.toLowerCase().includes(v)||(r.note||"").toLowerCase().includes(v)):S.value});function B(v){return v.displayName&&v.displayName.trim()?v.displayName.trim():v.fileName}function P(v){if(!v)return"-";const r=new Date(v);return Number.isNaN(r.getTime())?v:r.toLocaleString()}function Y(v){if(!v||v<0)return"-";const r=Math.round(v/1e3),j=Math.floor(r/3600),A=Math.floor(r%3600/60),h=r%60,c=d=>String(d).padStart(2,"0");return j>0?`${c(j)}:${c(A)}:${c(h)}`:`${c(A)}:${c(h)}`}function I(v){if(!v||v<0)return"-";if(v<1024)return`${v} B`;const r=v/1024;return r<1024?`${r<10?r.toFixed(1):r.toFixed(0)} KB`:`${(r/1024).toFixed(1)} MB`}async function g(){f.value=!0;try{const v=await Xe.getState();S.value=v.recording?.entries??[],b.value=v.recording?.recordingsDirectory??"",E.value=!!v.recording?.isPlaying}catch(v){S.value=[],W.error({message:v.message||"加载录像列表失败",grouping:!0})}finally{f.value=!1}}function _(v){y.push({path:"/admin/map-monitor",query:{playback:v.fileName}})}async function M(v){try{await tt.confirm(`确认删除录像「${B(v)}」?此操作不可恢复。`,"删除录像",{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消"}),await Xe.deleteRecording(v.fileName),W.success("已删除"),await g()}catch(r){if(r==="cancel"||r==="close")return;W.error(`删除失败:${r.message}`)}}async function Z(){U.value=!0;try{await Xe.stopPlayback(),W.success("已停止回放"),await g()}catch(v){W.error(`停止回放失败:${v.message}`)}finally{U.value=!1}}return nl(g),(v,r)=>{const j=Ke,A=Ml,h=Pe,c=El,d=Tl,p=ol,R=Ie;return i(),x(p,{shadow:"never",class:"playback-card"},{header:t(()=>[n("div",Jt,[n("div",Yt,[r[2]||(r[2]=n("span",null,"调度回放",-1)),E.value?(i(),x(j,{key:0,type:"success",size:"small",effect:"dark",class:"pb-playing"},{default:t(()=>[...r[1]||(r[1]=[s("回放中",-1)])]),_:1})):K("",!0)]),n("div",Zt,[l(A,{modelValue:D.value,"onUpdate:modelValue":r[0]||(r[0]=k=>D.value=k),"prefix-icon":$($e),placeholder:"按名称 / 文件名 / 备注检索",clearable:"",size:"small",class:"pb-search"},null,8,["modelValue","prefix-icon"]),E.value?(i(),x(h,{key:0,size:"small",type:"warning",plain:"",loading:U.value,onClick:Z},{default:t(()=>[...r[3]||(r[3]=[s(" 停止回放 ",-1)])]),_:1},8,["loading"])):K("",!0),l(h,{size:"small",icon:$(me),loading:f.value,onClick:g},{default:t(()=>[...r[4]||(r[4]=[s("刷新",-1)])]),_:1},8,["icon","loading"])])])]),default:t(()=>[b.value?(i(),V("p",Qt,"录像目录:"+u(b.value),1)):K("",!0),ee((i(),x(d,{data:F.value,stripe:"","empty-text":"暂无录像。在地图监控画布底栏「录制」后即可在此管理回放。"},{default:t(()=>[l(c,{label:"名称","min-width":"220"},{default:t(({row:k})=>[n("div",Xt,[n("span",ea,u(B(k)),1),k.headerReadable?K("",!0):(i(),x(j,{key:0,type:"danger",size:"small",effect:"plain"},{default:t(()=>[...r[5]||(r[5]=[s("头部不可读",-1)])]),_:1}))]),k.displayName&&k.displayName.trim()?(i(),V("div",la,u(k.fileName),1)):K("",!0)]),_:1}),l(c,{label:"录制时间",width:"180"},{default:t(({row:k})=>[s(u(P(k.fileWriteTime)),1)]),_:1}),l(c,{label:"时长",width:"110",align:"right"},{default:t(({row:k})=>[s(u(Y(k.durationMs)),1)]),_:1}),l(c,{label:"帧数",width:"90",align:"right"},{default:t(({row:k})=>[s(u(k.frameCount||"-"),1)]),_:1}),l(c,{label:"大小",width:"100",align:"right"},{default:t(({row:k})=>[s(u(I(k.fileSizeBytes)),1)]),_:1}),l(c,{prop:"note",label:"备注","min-width":"140","show-overflow-tooltip":""}),l(c,{label:"操作",width:"220",fixed:"right"},{default:t(({row:k})=>[l(h,{text:"",size:"small",type:"primary",icon:$(et),disabled:!k.headerReadable,onClick:H=>_(k)},{default:t(()=>[...r[6]||(r[6]=[s(" 查看 ",-1)])]),_:1},8,["icon","disabled","onClick"]),l(h,{text:"",size:"small",type:"danger",icon:$(lt),onClick:H=>M(k)},{default:t(()=>[...r[7]||(r[7]=[s("删除",-1)])]),_:1},8,["icon","onClick"])]),_:1})]),_:1},8,["data"])),[[R,f.value]])]),_:1})}}}),aa=ke(ta,[["__scopeId","data-v-49ba457d"]]);function na(w,y,f){if(!w)return[];const U=w[y]??w[f];if(U?.length)return[...U];for(const[S,b]of Object.entries(w))if(b?.length){if(S===y||S===f)return[...b];if(y.endsWith("."+S)||S.endsWith("."+f))return[...b];if(y.endsWith("."+f)&&(S===f||S.endsWith("."+f)))return[...b]}return[]}const oa={class:"monitor-section"},sa={key:0,class:"muted empty-hint"},Sl="simple-platform-methods-by-type-car-v1",ia=500,ua=he({__name:"OpsConfigView",setup(w){const y=Je([]),f=Je([]),U=Je([]),S=m(!1),b=m(!1),E=m([]),D=m(null),F=m(!1);let B=null,P=null;function Y(c){P=c,B&&clearTimeout(B),B=setTimeout(()=>{I()},ia)}async function I(){if(B=null,F.value){B=setTimeout(()=>{I()},200);return}const c=P;if(P=null,!!c){F.value=!0;try{const d=await Vl(c,{cachedRoot:D.value});D.value=d,W.success({message:"地图监控配置已自动保存",duration:1200,grouping:!0})}catch(d){W.error(`地图监控配置自动保存失败:${d instanceof Error?d.message:String(d)}`)}finally{F.value=!1,P&&Y(P)}}}at(()=>{B&&(clearTimeout(B),B=null),P&&!F.value&&I()});async function g(c,d){S.value=!0,b.value=!0;try{const p=await Ft(),[{config:R,cache:k},H]=await Promise.all([Bt(c,p),M()]);D.value=k,f.value=Z(p.available.site.methods),U.value=Z(p.available.track.methods),d(R)}catch{d($l(c)),f.value=[],U.value=[],await M()}finally{S.value=!1,b.value=!1}}async function _(c){D.value=await Vl(c,{cachedRoot:D.value})}async function M(){try{const c=sessionStorage.getItem(Sl);if(c){const d=JSON.parse(c);if(Array.isArray(d)&&d.length){y.value=d;return}}}catch{}try{const d=(await al.listMethodsByType("car")).map(p=>({typeKey:p.fullTypeName??p.typeName,shortTypeName:p.typeName,title:`${p.typeLabel??p.typeName} / ${p.fullTypeName??p.typeName} [${p.assemblyName}]`,methods:p.methods.map(R=>({methodName:R.methodName,label:R.label||R.methodName})).filter(R=>!!R.methodName)})).filter(p=>p.methods.length>0).sort((p,R)=>p.title.localeCompare(R.title));y.value=d;try{sessionStorage.setItem(Sl,JSON.stringify(d))}catch{}}catch{y.value=[]}}function Z(c){return c?.length?c.map(d=>({methodName:d,label:d})):[]}function v(c){return c.monitor??Dt()}function r(c,d){const p=v(c).carActionByType;return na(p,d.typeKey,d.shortTypeName)}function j(c,d){const p=r(c,d).slice().sort().join("\0");return`${d.typeKey}\0${p}`}function A(c,d,p,R,k){const H=v(d),le={...d,monitor:{...H,[p]:{...H[p],[R]:[...k]}}};c(le),Y(le)}function h(c,d,p,R){const k=v(d),H=Rt(k.carActionByType);H[p.typeKey]=[...R],p.shortTypeName!==p.typeKey&&delete H[p.shortTypeName];const le={...d,monitor:{...k,carActionByType:H}};c(le),Y(le)}return(c,d)=>{const p=ot,R=it,k=st,H=sl,le=il,ve=Nl,se=dt,Ve=ut,ze=nt,Se=Ie;return i(),x(At,{section:"ops",title:"运营维护",description:"调度回放、日志管理、版本维护(OpsConfig)",defaults:$(rt),"normalize-payload":$($l),"after-load":g,"before-save":_},{default:t(({payload:O,update:J})=>[l(ze,{"label-width":"200px",model:O},{default:t(()=>[l(p,{"content-position":"left"},{default:t(()=>[...d[1]||(d[1]=[s("调度回放",-1)])]),_:1}),l(k,{label:"保留时长 (天)"},{default:t(()=>[l(R,{"model-value":O.playback.retentionDays,min:1,max:3650,"onUpdate:modelValue":C=>J({...O,playback:{...O.playback,retentionDays:C??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(k,{label:"采样频率 (Hz)"},{default:t(()=>[l(R,{"model-value":O.playback.samplingHz,min:1,max:100,"onUpdate:modelValue":C=>J({...O,playback:{...O.playback,samplingHz:C??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(p,{"content-position":"left"},{default:t(()=>[...d[2]||(d[2]=[s("日志保留",-1)])]),_:1}),l(k,{label:"热数据 (天)"},{default:t(()=>[l(R,{"model-value":O.logRetention.hotDays,min:1,max:365,"onUpdate:modelValue":C=>J({...O,logRetention:{...O.logRetention,hotDays:C??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(k,{label:"冷数据 (天)"},{default:t(()=>[l(R,{"model-value":O.logRetention.coldDays,min:1,max:3650,"onUpdate:modelValue":C=>J({...O,logRetention:{...O.logRetention,coldDays:C??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(p,{"content-position":"left"},{default:t(()=>[...d[3]||(d[3]=[s("版本维护",-1)])]),_:1}),l(k,{label:"保留发布版本"},{default:t(()=>[l(R,{"model-value":O.version.keepReleases,min:1,max:100,"onUpdate:modelValue":C=>J({...O,version:{keepReleases:C??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(p,{"content-position":"left"},{default:t(()=>[...d[4]||(d[4]=[s("地图监控信息与动作管理",-1)])]),_:1}),ee((i(),V("div",oa,[l(H,{type:"info",closable:!1,"show-icon":"",title:F.value?"正在自动保存…":"支持直接多选,修改后会自动保存到地图监控(simple.json),无需点击上方「保存」。若某组不勾选,表示该组在地图监控中显示全部。",style:{"margin-bottom":"10px"}},null,8,["title"]),ee((i(),x(k,{label:"按车型动作配置"},{default:t(()=>[l(Ve,{modelValue:E.value,"onUpdate:modelValue":d[0]||(d[0]=C=>E.value=C),class:"type-actions"},{default:t(()=>[(i(!0),V(X,null,oe(y.value,C=>(i(),x(se,{key:C.typeKey,name:C.typeKey,title:`${C.title}(${C.methods.length})`},{default:t(()=>[ee(n("div",null,[(i(),x(ve,{key:j(O,C),"model-value":r(O,C),class:"cfg-check-grid","onUpdate:modelValue":ae=>h(J,O,C,ae)},{default:t(()=>[(i(!0),V(X,null,oe(C.methods,ae=>(i(),x(le,{key:`${C.typeKey}-${ae.methodName}`,label:ae.methodName},{default:t(()=>[s(u(ae.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["model-value","onUpdate:modelValue"]))],512),[[tl,E.value.includes(C.typeKey)]])]),_:2},1032,["name","title"]))),128))]),_:2},1032,["modelValue"]),!S.value&&!b.value&&!y.value.length?(i(),V("p",sa," 暂未扫描到带 MethodMember 的车型(请确认 SimpleLite 已连接并已加载插件)。 ")):K("",!0)]),_:2},1024)),[[Se,b.value]]),l(k,{label:"站点动作显示项"},{default:t(()=>[l(ve,{"model-value":O.monitor?.site?.actionKeys??[],class:"cfg-check-grid","onUpdate:modelValue":C=>A(J,O,"site","actionKeys",C)},{default:t(()=>[(i(!0),V(X,null,oe(f.value,C=>(i(),x(le,{key:`sa-${C.methodName}`,label:C.methodName},{default:t(()=>[s(u(C.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(k,{label:"路径动作显示项"},{default:t(()=>[l(ve,{"model-value":O.monitor?.track?.actionKeys??[],class:"cfg-check-grid","onUpdate:modelValue":C=>A(J,O,"track","actionKeys",C)},{default:t(()=>[(i(!0),V(X,null,oe(U.value,C=>(i(),x(le,{key:`ta-${C.methodName}`,label:C.methodName},{default:t(()=>[s(u(C.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024)])),[[Se,S.value]])]),_:2},1032,["model"])]),_:1},8,["defaults","normalize-payload"])}}}),da=ke(ua,[["__scopeId","data-v-bf134df3"]]),ra="/api",ca="/sl/projection/diagnosis",ce={overview:()=>de.get("/logs/overview").then(w=>w.data),files:w=>de.get("/logs/files",{params:w}).then(y=>y.data),entries:w=>de.get("/logs/entries",{params:w}).then(y=>y.data),digest:w=>de.get("/logs/digest",{params:w}).then(y=>y.data),liveDiagnosis:()=>de.get(`${ca}/all`).then(w=>{if(!w.data?.success||!w.data.data)throw new Error(w.data?.message??"获取实时诊断失败");return w.data.data}),browse:w=>de.get("/logs/browse",{params:w?{path:w}:void 0}).then(y=>y.data),analyze:w=>de.get("/logs/analyze",{params:w}).then(y=>y.data),raw:(w,y=2e3)=>de.get("/logs/raw",{params:{file:w,tail:y},responseType:"text"}).then(f=>f.data),downloadUrl:w=>`${ra}/logs/download?file=${encodeURIComponent(w)}`},ma={class:"logview"},va={class:"ov-head"},pa={class:"ov-title"},fa={key:0,class:"ov-stats"},ga={class:"ov-stat"},_a=["title"],ba={class:"ov-stat"},ya={class:"v"},wa={class:"ov-stat"},ha={class:"v"},ka={class:"ov-stat"},Ca={class:"v"},xa={class:"toolbar"},$a={key:0,class:"muted"},Va={key:0},za={key:1,class:"muted"},Sa={class:"mono"},La={class:"muted"},Ta={class:"toolbar"},Ea=["onClick"],Ma={key:0,class:"muted"},Na={class:"mono"},Ua={key:0,class:"muted"},Aa={key:0,class:"analyze-empty"},Ra={class:"toolbar"},Da={class:"mono"},Ba={key:1,class:"an-stats"},Oa={class:"ov-stat"},Fa={class:"v"},Ia={class:"ov-stat"},Ka={class:"v"},Pa={class:"ov-stat"},Ga={class:"v"},Wa={class:"ov-stat"},ja={class:"v"},Ha={class:"an-grid"},qa={class:"an-fields-body"},Ja={class:"mono"},Ya={class:"an-field-chart-wrap"},Za={class:"an-field-hint muted"},Qa={key:1,class:"muted"},Xa={class:"detail-content"},en={class:"detail-bar"},ln={class:"detail-pre"},tn={class:"file-bar"},an={key:2,class:"muted"},nn={key:3,class:"muted"},on={key:1,class:"muted"},sn={class:"mono"},un={key:2,class:"raw-pre"},dn=he({__name:"LogManagementView",setup(w){It([Kt,Pt,Gt,Wt,jt,Ht,qt]);const y=m("live"),f=m(null),U=m(!1),S=m(null),b=m(!1),E=m(!0),D=m(""),F=m(!0),B=m(2),P=m(""),Y=m(!1);let I;const g=m(null),_=m(!1),M=m(""),Z=m(""),v=m(!1),r=m(null),j=m(!1),A=m(""),h=m("structured"),c=m(!1),d=m(null),p=m(""),R=m(3e3),k=m(""),H=m(!1),le=te(()=>p.value?p.value.split(` +`).length:0);function ve(o){return o?o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/1024/1024).toFixed(2)} MB`:"0 B"}function se(o){const e=new Date(o);return Number.isNaN(e.getTime())?o:e.toLocaleString("zh-CN",{hour12:!1})}function Ve(o){const e=new Date(o);return Number.isNaN(e.getTime())?o:e.toLocaleTimeString("zh-CN",{hour12:!1})+"."+String(e.getMilliseconds()).padStart(3,"0")}function ze(o){const e=new Date(o).getTime();return Number.isNaN(e)?0:e}const Se=te(()=>{let o=S.value?.items??[];Y.value&&(o=o.filter(z=>z.tagged));const e=P.value.trim().toLowerCase();return e&&(o=o.filter(z=>z.content.toLowerCase().includes(e)||z.tag.toLowerCase().includes(e))),[...o].sort((z,N)=>ze(N.time)-ze(z.time))});function O({row:o}){return o.tagged?"tagged-row":""}async function J(){b.value=!0;try{S.value=await ce.liveDiagnosis(),D.value=""}catch(o){D.value=`实时诊断不可用:${o.message}`}finally{b.value=!1,E.value=!1}}function C(){ae(),F.value&&y.value==="live"&&(I=window.setInterval(J,B.value*1e3))}function ae(){I&&(window.clearInterval(I),I=void 0)}we([F,B],C),we(y,o=>{o==="live"?(J(),C()):ae(),o==="analyze"&&Cl(fl)});const Al=te(()=>{const o=M.value?M.value.split("/"):[],e=[{label:"log",path:""}];let z="";for(const N of o)z=z?`${z}/${N}`:N,e.push({label:N,path:z});return e}),Rl=te(()=>{const o=g.value;if(!o)return[];const e=o.dirs.map(T=>({kind:"dir",name:T.name,rel:T.rel,mtime:T.mtime,bytes:0,fileCount:T.fileCount,isLog:!1,ext:""})),z=o.files.map(T=>({kind:"file",name:T.name,rel:T.rel,mtime:T.mtime,bytes:T.bytes,fileCount:0,isLog:T.isLog,ext:T.name.includes(".")?T.name.slice(T.name.lastIndexOf(".")):""}));let N=[...e,...z];const L=Z.value.trim().toLowerCase();return L&&(N=N.filter(T=>T.name.toLowerCase().includes(L))),N});async function Le(){_.value=!0;try{g.value=await ce.browse(M.value||void 0),M.value=g.value.path}catch(o){W.error(`浏览目录失败:${o.message}`)}finally{_.value=!1}}function Te(o){M.value=o,Le()}function Dl(o){o.kind==="dir"?Te(o.rel):rl(o.rel)}function rl(o){A.value=o,j.value=!0,k.value="",H.value=!1,d.value=null,p.value="",h.value=o.toLowerCase().endsWith(".log")?"structured":"raw",Ee()}async function Ee(){c.value=!0;try{h.value==="structured"?d.value=await ce.entries({file:A.value,order:"desc",limit:1e3}):p.value=await ce.raw(A.value,R.value)}catch(o){h.value==="raw"?p.value=`读取失败:${o.message}`:W.error(`解析失败:${o.message}`)}finally{c.value=!1}}function Bl(){(h.value==="structured"&&!d.value||h.value==="raw"&&!p.value)&&Ee()}function cl(){h.value==="structured"?d.value=null:p.value="",Ee()}const ml=te(()=>{let o=d.value?.entries??[];H.value&&(o=o.filter(z=>z.tag));const e=k.value.trim().toLowerCase();return e&&(o=o.filter(z=>z.content.toLowerCase().includes(e)||z.tag.toLowerCase().includes(e))),o}),pe=m(""),Me=m(!1),Q=m(null),Ne=m("minute"),Ce=m(""),ne=m(""),Ue=m(""),Ge=m(null),We=m(null),je=m(null);let fe=null,ge=null,_e=null;const Ae=["#7c3aed","#3b82f6","#22c55e","#f59e0b","#ef4444","#06b6d4","#ec4899","#84cc16"];function ie(o,e){return typeof window>"u"?e:getComputedStyle(document.documentElement).getPropertyValue(o).trim()||e}function He(o){return o===""?"(滚动记录)":o}const Ol=te(()=>{const o=Q.value?.timeRange;return!o?.start||!o?.end?"—":`${se(o.start)} ~ ${se(o.end)}`});async function Re(){if(pe.value){Me.value=!0;try{Q.value=await ce.analyze({file:pe.value,granularity:Ne.value,tag:Ce.value||void 0,field:ne.value||void 0,keyword:Ue.value.trim()||void 0})}catch(o){W.error(`分析失败:${o.message}`)}finally{Me.value=!1}}}function vl(o){j.value=!1,pe.value=o,Ce.value="",ne.value="",Ue.value="",y.value="analyze",Re()}function Fl(o){ne.value=ne.value===o?"":o}function pl(){y.value="files"}we([Ne,Ce,ne],()=>{pe.value&&Re()});function Il(){if(!Ge.value)return;const o=Q.value;fe?.dispose(),fe=el(Ge.value,void 0,{renderer:"canvas"});const e=ie("--mg-text-muted","#909399"),z=ie("--mg-divider","rgba(255,255,255,0.08)"),N=(o?.tags??[]).slice(0,12).slice().reverse();fe.setOption({backgroundColor:"transparent",grid:{left:8,right:28,top:10,bottom:6,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:L=>{const T=L[0];return`${T.name}: ${T.value} 条`}},xAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:e,fontSize:11},splitLine:{lineStyle:{color:z,type:"dashed"}}},yAxis:{type:"category",data:N.map(L=>He(L.tag)),axisLine:{lineStyle:{color:z}},axisLabel:{color:e,fontSize:11}},series:[{type:"bar",barMaxWidth:16,data:N.map((L,T)=>({value:L.count,itemStyle:{color:Ae[(N.length-1-T)%Ae.length],borderRadius:[0,3,3,0]}})),label:{show:!0,position:"right",color:e,fontSize:11}}]})}function Kl(){if(!We.value)return;const o=Q.value;ge?.dispose(),ge=el(We.value,void 0,{renderer:"canvas"});const e=ie("--mg-text-muted","#909399"),z=ie("--mg-divider","rgba(255,255,255,0.08)"),N=(o?.volume.buckets??[]).map(ue=>new Date(ue).getTime()),T=(o?.volume.topTags??[]).map((ue,q)=>({name:He(ue.tag),type:"bar",stack:"vol",barMaxWidth:18,data:N.map((be,ye)=>[be,ue.counts[ye]]),itemStyle:{color:Ae[q%Ae.length]}}));T.push({name:"总量",type:"line",smooth:!0,showSymbol:!1,z:5,data:N.map((ue,q)=>[ue,o?.volume.total[q]??0]),lineStyle:{width:2,color:ie("--mg-text-light","#e5e7eb")}}),ge.setOption({backgroundColor:"transparent",grid:{left:36,right:16,top:30,bottom:28,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{top:0,textStyle:{color:e,fontSize:11},itemHeight:8,itemWidth:12},xAxis:{type:"time",axisLine:{lineStyle:{color:z}},axisLabel:{color:e,fontSize:11},splitLine:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:e,fontSize:11},splitLine:{lineStyle:{color:z,type:"dashed"}}},series:T})}function Pl(){if(!je.value)return;const o=Q.value;_e?.dispose(),_e=el(je.value,void 0,{renderer:"canvas"});const e=ie("--mg-text-muted","#909399"),z=ie("--mg-divider","rgba(255,255,255,0.08)"),N=ie("--mg-accent","#7c3aed"),L=o?.series?.points??[];_e.setOption({backgroundColor:"transparent",grid:{left:44,right:16,top:18,bottom:L.length>60?40:28,containLabel:!0},tooltip:{trigger:"axis"},dataZoom:L.length>60?[{type:"inside"},{type:"slider",height:16,bottom:4}]:[],xAxis:{type:"time",axisLine:{lineStyle:{color:z}},axisLabel:{color:e,fontSize:11},splitLine:{show:!1}},yAxis:{type:"value",scale:!0,axisLine:{show:!1},axisLabel:{color:e,fontSize:11},splitLine:{lineStyle:{color:z,type:"dashed"}}},series:[{name:o?.series?.field??"",type:"line",smooth:!0,showSymbol:L.length<80,symbolSize:4,data:L.map(T=>[new Date(T.t).getTime(),T.v]),lineStyle:{width:2,color:N},itemStyle:{color:N},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:N+"44"},{offset:1,color:N+"00"}]}}}]})}function fl(){Il(),Kl(),Pl()}we(Q,()=>{y.value==="analyze"&&Cl(fl)});function gl(){fe?.resize(),ge?.resize(),_e?.resize()}function De(o){r.value={time:o.time,tag:o.tag,content:o.content},v.value=!0}function _l(o){const e=document.createElement("a");e.href=ce.downloadUrl(o),e.download=o.split("/").pop()??"log.log",document.body.appendChild(e),e.click(),e.remove()}async function Gl(o){try{await navigator.clipboard.writeText(o),W.success("已复制")}catch{W.warning("复制失败,请手动选择文本")}}async function bl(){U.value=!0;try{f.value=await ce.overview()}catch(o){W.error(`加载概览失败:${o.message}`)}finally{U.value=!1}}async function Wl(){await bl(),y.value==="live"?await J():await Le()}return nl(async()=>{await bl(),await J(),C(),Le(),window.addEventListener("resize",gl)}),ct(()=>{ae(),window.removeEventListener("resize",gl),fe?.dispose(),fe=null,ge?.dispose(),ge=null,_e?.dispose(),_e=null}),(o,e)=>{const z=mt,N=Ke,L=Pe,T=ol,ue=vt,q=ft,be=pt,ye=Ml,yl=il,Be=sl,G=El,Oe=Tl,qe=dl,jl=yt,Hl=bt,ql=Ct,Jl=ul,wl=zt,Yl=Vt,Zl=$t,hl=Et,Ql=Tt,Xl=Lt,xe=Ie;return i(),x(Ul,{"widget-id":"ConfigCenter"},{default:t(()=>[n("div",ma,[l(T,{shadow:"never",class:"ov-card"},{default:t(()=>[n("div",va,[n("div",pa,[l(z,null,{default:t(()=>[l($(Ye))]),_:1}),e[22]||(e[22]=n("span",null,"日志管理",-1)),l(N,{size:"small",effect:"plain",type:"info"},{default:t(()=>[...e[21]||(e[21]=[s("Diagnosis · Post / Toast / DLog",-1)])]),_:1})]),l(L,{size:"small",icon:$(me),loading:U.value,onClick:Wl},{default:t(()=>[...e[23]||(e[23]=[s("刷新",-1)])]),_:1},8,["icon","loading"])]),e[28]||(e[28]=n("p",{class:"ov-desc"},[n("b",null,"实时诊断"),s("直连 SimpleLite 内核 "),n("code",null,"Diagnosis"),s(" 的内存态 "),n("code",null,"Post"),s(" / "),n("code",null,"Toast"),s(" (有标签按标签合订、无标签滚动记录);"),n("b",null,"日志文件"),s("浏览工作目录 "),n("code",null,"log/"),s(" 下的落盘日志(DLog)。 ")],-1)),f.value?(i(),V("div",fa,[n("div",ga,[e[24]||(e[24]=n("span",{class:"k"},"日志根目录",-1)),n("span",{class:"v path",title:f.value.root??""},u(f.value.root??"—"),9,_a)]),n("div",ba,[e[25]||(e[25]=n("span",{class:"k"},"文件数",-1)),n("span",ya,u(f.value.totalFiles??0),1)]),n("div",wa,[e[26]||(e[26]=n("span",{class:"k"},"总大小",-1)),n("span",ha,u(ve(f.value.totalBytes??0)),1)]),n("div",ka,[e[27]||(e[27]=n("span",{class:"k"},"最近写入",-1)),n("span",Ca,u(f.value.latestFileTime?se(f.value.latestFileTime):"—"),1)])])):K("",!0)]),_:1}),l(T,{shadow:"never",class:"body-card","body-style":"padding: 0 14px 14px"},{default:t(()=>[l(Jl,{modelValue:y.value,"onUpdate:modelValue":e[10]||(e[10]=a=>y.value=a),class:"log-tabs"},{default:t(()=>[l(qe,{name:"live"},{label:t(()=>[l(z,null,{default:t(()=>[l($(gt))]),_:1}),e[29]||(e[29]=n("span",{class:"tab-lbl"},"实时诊断",-1))]),default:t(()=>[n("div",xa,[l(ue,{modelValue:F.value,"onUpdate:modelValue":e[0]||(e[0]=a=>F.value=a),size:"small","inline-prompt":"","active-text":"自动","inactive-text":"手动"},null,8,["modelValue"]),l(be,{modelValue:B.value,"onUpdate:modelValue":e[1]||(e[1]=a=>B.value=a),size:"small",class:"sel-interval",disabled:!F.value},{default:t(()=>[l(q,{value:1,label:"每 1 秒"}),l(q,{value:2,label:"每 2 秒"}),l(q,{value:3,label:"每 3 秒"}),l(q,{value:5,label:"每 5 秒"})]),_:1},8,["modelValue","disabled"]),l(L,{size:"small",icon:$(me),loading:b.value,onClick:J},{default:t(()=>[...e[30]||(e[30]=[s("刷新",-1)])]),_:1},8,["icon","loading"]),l(ye,{modelValue:P.value,"onUpdate:modelValue":e[2]||(e[2]=a=>P.value=a),size:"small",clearable:"",placeholder:"标签 / 内容过滤",class:"sel-kw","prefix-icon":$($e)},null,8,["modelValue","prefix-icon"]),l(yl,{modelValue:Y.value,"onUpdate:modelValue":e[3]||(e[3]=a=>Y.value=a),size:"small"},{default:t(()=>[...e[31]||(e[31]=[s("仅带标签",-1)])]),_:1},8,["modelValue"]),e[32]||(e[32]=n("div",{class:"spacer"},null,-1)),S.value?(i(),V("span",$a,[s(" 合订 "+u(S.value.taggedCount)+" · 滚动 "+u(S.value.untaggedCount)+" · 共 "+u(S.value.total)+" ",1),S.value.serverTime?(i(),V("span",Va," · 更新 "+u(Ve(S.value.serverTime)),1)):K("",!0)])):K("",!0)]),D.value?(i(),x(Be,{key:0,type:"warning",closable:!1,"show-icon":"",title:D.value,style:{margin:"0 0 10px"}},null,8,["title"])):K("",!0),ee((i(),x(Oe,{data:Se.value,size:"small","max-height":"calc(100vh - 392px)","row-class-name":O,class:"live-table",onRowDblclick:e[4]||(e[4]=a=>De(a))},{empty:t(()=>[n("span",La,u(D.value?"SimpleLite 未连接":"暂无诊断消息"),1)]),default:t(()=>[l(G,{label:"时间",width:"130"},{default:t(({row:a})=>[s(u(Ve(a.time)),1)]),_:1}),l(G,{label:"标签",width:"170"},{default:t(({row:a})=>[a.tagged?(i(),x(N,{key:0,size:"small",effect:"dark"},{default:t(()=>[s(u(a.tag),1)]),_:2},1024)):(i(),V("span",za,"— 滚动"))]),_:1}),l(G,{label:"内容","show-overflow-tooltip":""},{default:t(({row:a})=>[n("span",Sa,u(a.content),1)]),_:1}),l(G,{label:"操作",width:"70",align:"center"},{default:t(({row:a})=>[l(L,{link:"",type:"primary",icon:$(Ze),onClick:re=>De(a)},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"])),[[xe,b.value&&E.value]])]),_:1}),l(qe,{name:"files"},{label:t(()=>[l(z,null,{default:t(()=>[l($(Fe))]),_:1}),e[33]||(e[33]=n("span",{class:"tab-lbl"},"日志文件",-1))]),default:t(()=>[n("div",Ta,[l(L,{size:"small",icon:$(_t),disabled:g.value?.parent==null,onClick:e[5]||(e[5]=a=>Te(g.value?.parent??""))},{default:t(()=>[...e[34]||(e[34]=[s("上一级",-1)])]),_:1},8,["icon","disabled"]),l(Hl,{separator:"/",class:"crumbs"},{default:t(()=>[(i(!0),V(X,null,oe(Al.value,a=>(i(),x(jl,{key:a.path},{default:t(()=>[n("a",{class:"crumb",onClick:re=>Te(a.path)},u(a.label),9,Ea)]),_:2},1024))),128))]),_:1}),l(L,{size:"small",icon:$(me),loading:_.value,onClick:Le},{default:t(()=>[...e[35]||(e[35]=[s("刷新",-1)])]),_:1},8,["icon","loading"]),l(ye,{modelValue:Z.value,"onUpdate:modelValue":e[6]||(e[6]=a=>Z.value=a),size:"small",clearable:"",placeholder:"按名称过滤",class:"sel-kw","prefix-icon":$($e)},null,8,["modelValue","prefix-icon"]),e[36]||(e[36]=n("div",{class:"spacer"},null,-1)),g.value?(i(),V("span",Ma,u(g.value.dirCount)+" 个文件夹 · "+u(g.value.fileCount)+" 个文件",1)):K("",!0)]),g.value&&!g.value.exists?(i(),x(Be,{key:0,type:"info",closable:!1,"show-icon":"",title:g.value.message||"日志目录尚未生成。",style:{margin:"0 0 10px"}},null,8,["title"])):K("",!0),ee((i(),x(Oe,{data:Rl.value,size:"small","max-height":"calc(100vh - 392px)",class:"files-table",onRowDblclick:Dl},{empty:t(()=>[...e[41]||(e[41]=[n("span",{class:"muted"},"该目录为空",-1)])]),default:t(()=>[l(G,{label:"名称","min-width":"280"},{default:t(({row:a})=>[n("span",{class:wt(["name-cell",{"is-dir":a.kind==="dir"}])},[l(z,null,{default:t(()=>[(i(),x(ht(a.kind==="dir"?$(kt):$(Ye))))]),_:2},1024),n("span",Na,u(a.name),1)],2)]),_:1}),l(G,{label:"类型",width:"160"},{default:t(({row:a})=>[a.kind==="dir"?(i(),V("span",Ua,"文件夹("+u(a.fileCount)+" 文件)",1)):(i(),x(N,{key:1,size:"small",effect:"plain",type:a.isLog?"success":"info"},{default:t(()=>[s(u(a.ext||"文件"),1)]),_:2},1032,["type"]))]),_:1}),l(G,{label:"大小",width:"110",align:"right"},{default:t(({row:a})=>[s(u(a.kind==="dir"?"—":ve(a.bytes)),1)]),_:1}),l(G,{label:"修改时间",width:"180"},{default:t(({row:a})=>[s(u(se(a.mtime)),1)]),_:1}),l(G,{label:"操作",width:"240",align:"center"},{default:t(({row:a})=>[a.kind==="dir"?(i(),x(L,{key:0,link:"",type:"primary",icon:$(Fe),onClick:re=>Te(a.rel)},{default:t(()=>[...e[37]||(e[37]=[s("进入",-1)])]),_:1},8,["icon","onClick"])):(i(),V(X,{key:1},[l(L,{link:"",type:"primary",icon:$(Ze),onClick:re=>rl(a.rel)},{default:t(()=>[...e[38]||(e[38]=[s("打开",-1)])]),_:1},8,["icon","onClick"]),a.isLog?(i(),x(L,{key:0,link:"",type:"primary",icon:$(Qe),onClick:re=>vl(a.rel)},{default:t(()=>[...e[39]||(e[39]=[s("分析",-1)])]),_:1},8,["icon","onClick"])):K("",!0),l(L,{link:"",type:"primary",icon:$(kl),onClick:re=>_l(a.rel)},{default:t(()=>[...e[40]||(e[40]=[s("下载",-1)])]),_:1},8,["icon","onClick"])],64))]),_:1})]),_:1},8,["data"])),[[xe,_.value]])]),_:1}),l(qe,{name:"analyze"},{label:t(()=>[l(z,null,{default:t(()=>[l($(Qe))]),_:1}),e[42]||(e[42]=n("span",{class:"tab-lbl"},"日志分析",-1))]),default:t(()=>[pe.value?(i(),V(X,{key:1},[n("div",Ra,[l(N,{size:"small",type:"info",effect:"plain",class:"an-target"},{default:t(()=>[l(z,null,{default:t(()=>[l($(Ye))]),_:1}),n("span",Da,u(pe.value),1)]),_:1}),l(L,{size:"small",icon:$(Fe),onClick:pl},{default:t(()=>[...e[44]||(e[44]=[s("换文件",-1)])]),_:1},8,["icon"]),e[46]||(e[46]=n("div",{class:"spacer"},null,-1)),e[47]||(e[47]=n("span",{class:"muted"},"粒度",-1)),l(be,{modelValue:Ne.value,"onUpdate:modelValue":e[7]||(e[7]=a=>Ne.value=a),size:"small",class:"sel-interval"},{default:t(()=>[l(q,{value:"second",label:"按秒"}),l(q,{value:"minute",label:"按分"}),l(q,{value:"hour",label:"按时"})]),_:1},8,["modelValue"]),l(be,{modelValue:Ce.value,"onUpdate:modelValue":e[8]||(e[8]=a=>Ce.value=a),size:"small",clearable:"",placeholder:"聚焦标签",class:"sel-tag"},{default:t(()=>[(i(!0),V(X,null,oe(Q.value?.tags??[],a=>(i(),x(q,{key:a.tag||"__none__",value:a.tag,label:`${He(a.tag)} (${a.count})`},null,8,["value","label"]))),128))]),_:1},8,["modelValue"]),l(ye,{modelValue:Ue.value,"onUpdate:modelValue":e[9]||(e[9]=a=>Ue.value=a),size:"small",clearable:"",placeholder:"关键字过滤",class:"sel-kw","prefix-icon":$($e),onKeyup:xt(Re,["enter"])},null,8,["modelValue","prefix-icon"]),l(L,{size:"small",type:"primary",icon:$(me),loading:Me.value,onClick:Re},{default:t(()=>[...e[45]||(e[45]=[s("分析",-1)])]),_:1},8,["icon","loading"])]),Q.value?.truncated?(i(),x(Be,{key:0,type:"warning",closable:!1,"show-icon":"",title:"文件较大,仅分析了前部分内容,统计为近似值。",style:{margin:"0 0 10px"}})):K("",!0),Q.value?(i(),V("div",Ba,[n("div",Oa,[e[48]||(e[48]=n("span",{class:"k"},"总条数",-1)),n("span",Fa,u(Q.value.total),1)]),n("div",Ia,[e[49]||(e[49]=n("span",{class:"k"},"标签数",-1)),n("span",Ka,u(Q.value.tags.length),1)]),n("div",Pa,[e[50]||(e[50]=n("span",{class:"k"},"数值字段",-1)),n("span",Ga,u(Q.value.fields.length),1)]),n("div",Wa,[e[51]||(e[51]=n("span",{class:"k"},"时间范围",-1)),n("span",ja,u(Ol.value),1)])])):K("",!0),ee((i(),V("div",Ha,[l(T,{shadow:"never",class:"an-card"},{default:t(()=>[e[52]||(e[52]=n("div",{class:"an-card-title"},"标签分布(Top 12)",-1)),n("div",{ref_key:"tagChartRef",ref:Ge,class:"an-chart"},null,512)]),_:1}),l(T,{shadow:"never",class:"an-card"},{default:t(()=>[e[53]||(e[53]=n("div",{class:"an-card-title"},"日志量随时间(Top 标签堆叠 + 总量)",-1)),n("div",{ref_key:"volChartRef",ref:We,class:"an-chart"},null,512)]),_:1})])),[[xe,Me.value]]),l(T,{shadow:"never",class:"an-card an-fields"},{default:t(()=>[e[55]||(e[55]=n("div",{class:"an-card-title"},[s(" 数值字段 "),n("span",{class:"muted"},"(识别 key=value / key:value,点「绘制」查看时序)")],-1)),n("div",qa,[l(Oe,{data:Q.value?.fields??[],size:"small","max-height":"280",class:"fields-table"},{empty:t(()=>[...e[54]||(e[54]=[n("span",{class:"muted"},"未识别到数值字段",-1)])]),default:t(()=>[l(G,{label:"字段","min-width":"110"},{default:t(({row:a})=>[n("span",Ja,u(a.name),1)]),_:1}),l(G,{label:"样本",width:"76",align:"right"},{default:t(({row:a})=>[s(u(a.samples),1)]),_:1}),l(G,{label:"最小",width:"86",align:"right"},{default:t(({row:a})=>[s(u(a.min),1)]),_:1}),l(G,{label:"最大",width:"86",align:"right"},{default:t(({row:a})=>[s(u(a.max),1)]),_:1}),l(G,{label:"均值",width:"96",align:"right"},{default:t(({row:a})=>[s(u(a.avg),1)]),_:1}),l(G,{label:"操作",width:"92",align:"center"},{default:t(({row:a})=>[l(L,{link:"",type:ne.value===a.name?"success":"primary",onClick:re=>Fl(a.name)},{default:t(()=>[s(u(ne.value===a.name?"已绘制":"绘制"),1)]),_:2},1032,["type","onClick"])]),_:1})]),_:1},8,["data"]),n("div",Ya,[ee(n("div",{ref_key:"fieldChartRef",ref:je,class:"an-chart tall"},null,512),[[tl,ne.value]]),ee(n("div",Za,"选择左侧一个数值字段查看其时序曲线",512),[[tl,!ne.value]])])])]),_:1})],64)):(i(),V("div",Aa,[l(ql,{description:"从「日志文件」选择一个 .log 文件进行分析"},{default:t(()=>[l(L,{type:"primary",icon:$(Fe),onClick:pl},{default:t(()=>[...e[43]||(e[43]=[s("去选择日志文件",-1)])]),_:1},8,["icon"])]),_:1})]))]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(Zl,{modelValue:v.value,"onUpdate:modelValue":e[12]||(e[12]=a=>v.value=a),title:"日志条目详情",width:"680px","append-to-body":""},{default:t(()=>[r.value?(i(),V(X,{key:0},[l(Yl,{column:1,border:"",size:"small"},{default:t(()=>[l(wl,{label:"时间"},{default:t(()=>[s(u(r.value.time?se(r.value.time):"(无时间戳)"),1)]),_:1}),l(wl,{label:"标签"},{default:t(()=>[r.value.tag?(i(),x(N,{key:0,size:"small",effect:"dark"},{default:t(()=>[s(u(r.value.tag),1)]),_:1})):(i(),V("span",Qa,"(无,滚动记录)"))]),_:1})]),_:1}),n("div",Xa,[n("div",en,[e[57]||(e[57]=n("span",null,"内容",-1)),l(L,{size:"small",link:"",type:"primary",icon:$(St),onClick:e[11]||(e[11]=a=>Gl(r.value.content))},{default:t(()=>[...e[56]||(e[56]=[s("复制",-1)])]),_:1},8,["icon"])]),n("pre",ln,u(r.value.content),1)])],64)):K("",!0)]),_:1},8,["modelValue"]),l(Xl,{modelValue:j.value,"onUpdate:modelValue":e[20]||(e[20]=a=>j.value=a),title:A.value,size:"64%","append-to-body":""},{default:t(()=>[n("div",tn,[l(Ql,{modelValue:h.value,"onUpdate:modelValue":e[13]||(e[13]=a=>h.value=a),size:"small",onChange:Bl},{default:t(()=>[l(hl,{label:"structured"},{default:t(()=>[...e[58]||(e[58]=[s("结构化",-1)])]),_:1}),l(hl,{label:"raw"},{default:t(()=>[...e[59]||(e[59]=[s("原文",-1)])]),_:1})]),_:1},8,["modelValue"]),h.value==="structured"?(i(),V(X,{key:0},[l(ye,{modelValue:k.value,"onUpdate:modelValue":e[14]||(e[14]=a=>k.value=a),size:"small",clearable:"",placeholder:"内容 / 标签过滤",class:"sel-kw","prefix-icon":$($e)},null,8,["modelValue","prefix-icon"]),l(yl,{modelValue:H.value,"onUpdate:modelValue":e[15]||(e[15]=a=>H.value=a),size:"small"},{default:t(()=>[...e[60]||(e[60]=[s("仅带标签",-1)])]),_:1},8,["modelValue"])],64)):(i(),x(be,{key:1,modelValue:R.value,"onUpdate:modelValue":e[16]||(e[16]=a=>R.value=a),size:"small",class:"sel-tail",onChange:cl},{default:t(()=>[l(q,{value:1e3,label:"尾部 1000 行"}),l(q,{value:3e3,label:"尾部 3000 行"}),l(q,{value:1e4,label:"尾部 1 万行"}),l(q,{value:5e4,label:"尾部 5 万行"})]),_:1},8,["modelValue"])),h.value==="raw"&&p.value?(i(),V("span",an,u(le.value)+" 行",1)):h.value==="structured"&&d.value?(i(),V("span",nn,u(ml.value.length)+" / "+u(d.value.total)+" 条",1)):K("",!0),e[64]||(e[64]=n("div",{class:"spacer"},null,-1)),A.value.toLowerCase().endsWith(".log")?(i(),x(L,{key:4,size:"small",type:"primary",plain:"",icon:$(Qe),onClick:e[17]||(e[17]=a=>vl(A.value))},{default:t(()=>[...e[61]||(e[61]=[s("分析此文件",-1)])]),_:1},8,["icon"])):K("",!0),l(L,{size:"small",icon:$(kl),onClick:e[18]||(e[18]=a=>_l(A.value))},{default:t(()=>[...e[62]||(e[62]=[s("下载",-1)])]),_:1},8,["icon"]),l(L,{size:"small",icon:$(me),loading:c.value,onClick:cl},{default:t(()=>[...e[63]||(e[63]=[s("刷新",-1)])]),_:1},8,["icon","loading"])]),h.value==="structured"&&d.value?.truncated?(i(),x(Be,{key:0,type:"warning",closable:!1,"show-icon":"",title:"文件较大,仅解析了前部分条目。",style:{margin:"0 0 10px"}})):K("",!0),h.value==="structured"?ee((i(),x(Oe,{key:1,data:ml.value,size:"small","max-height":"calc(100vh - 220px)",class:"entries-table",onRowDblclick:e[19]||(e[19]=a=>De({time:a.time,tag:a.tag,content:a.content}))},{default:t(()=>[l(G,{label:"时间",width:"190"},{default:t(({row:a})=>[s(u(a.time?se(a.time):"—"),1)]),_:1}),l(G,{label:"标签",width:"160"},{default:t(({row:a})=>[a.tag?(i(),x(N,{key:0,size:"small",effect:"dark"},{default:t(()=>[s(u(a.tag),1)]),_:2},1024)):(i(),V("span",on,"—"))]),_:1}),l(G,{label:"内容","show-overflow-tooltip":""},{default:t(({row:a})=>[n("span",sn,u(a.content),1)]),_:1}),l(G,{label:"操作",width:"70",align:"center"},{default:t(({row:a})=>[l(L,{link:"",type:"primary",icon:$(Ze),onClick:re=>De({time:a.time,tag:a.tag,content:a.content})},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"])),[[xe,c.value]]):ee((i(),V("pre",un,[s(u(p.value),1)])),[[xe,c.value]])]),_:1},8,["modelValue","title"])])]),_:1})}}}),rn=ke(dn,[["__scopeId","data-v-43fe0c7b"]]),cn={class:"mmcg"},mn={class:"mmcg-head"},vn={class:"mmcg-title"},pn={key:0,class:"mmcg-empty muted"},fn={key:2,class:"mmcg-orphans"},gn={class:"orphan-list"},_n=he({__name:"MapMonitorConfigGroup",props:{title:{},available:{},selected:{},emptyTip:{}},emits:["update:selected"],setup(w,{emit:y}){const f=w,U=y,S=te(()=>f.available.length?f.selected.length?`${f.selected.length} / ${f.available.length}`:`白名单空 = 显示全部 (${f.available.length})`:"空"),b=te(()=>f.selected.filter(I=>!f.available.includes(I))),E=te(()=>f.available.length>f.selected.length);function D(I){const _=[...I.filter(M=>typeof M=="string"),...b.value];U("update:selected",_)}function F(){U("update:selected",[...f.available,...b.value])}function B(){U("update:selected",[...b.value])}function P(I){U("update:selected",f.selected.filter(g=>g!==I))}function Y(){U("update:selected",f.selected.filter(I=>f.available.includes(I)))}return(I,g)=>{const _=Ke,M=Pe,Z=Mt,v=il,r=Nl,j=sl;return i(),V("section",cn,[n("header",mn,[n("span",vn,u(w.title),1),l(_,{size:"small",effect:"plain",type:"info"},{default:t(()=>[s(u(S.value),1)]),_:1}),g[2]||(g[2]=n("div",{class:"spacer"},null,-1)),w.available.length?(i(),x(Z,{key:0},{default:t(()=>[l(M,{size:"small",disabled:!E.value,onClick:F},{default:t(()=>[...g[0]||(g[0]=[s("全选",-1)])]),_:1},8,["disabled"]),l(M,{size:"small",disabled:!w.selected.length,onClick:B},{default:t(()=>[...g[1]||(g[1]=[s("清空",-1)])]),_:1},8,["disabled"])]),_:1})):K("",!0)]),w.available.length?(i(),x(r,{key:1,"model-value":w.selected,class:"mmcg-grid","onUpdate:modelValue":D},{default:t(()=>[(i(!0),V(X,null,oe(w.available,A=>(i(),x(v,{key:A,value:A,label:A,class:"mmcg-cb"},null,8,["value","label"]))),128))]),_:1},8,["model-value"])):(i(),V("p",pn,u(w.emptyTip),1)),b.value.length?(i(),V("div",fn,[l(j,{type:"warning",closable:!1,"show-icon":"",title:`检测到 ${b.value.length} 个残留键(后端已经不再暴露,但仍在白名单中)`},{default:t(()=>[n("div",gn,[(i(!0),V(X,null,oe(b.value,A=>(i(),x(_,{key:A,type:"warning",size:"small",closable:"",onClose:h=>P(A)},{default:t(()=>[s(u(A),1)]),_:2},1032,["onClose"]))),128)),l(M,{link:"",type:"warning",size:"small",onClick:Y},{default:t(()=>[...g[3]||(g[3]=[s("一键清理全部残留",-1)])]),_:1})])]),_:1},8,["title"])])):K("",!0)])}}}),ll=ke(_n,[["__scopeId","data-v-242bdaa0"]]),bn={class:"mmc-header"},yn={class:"mmc-tab-body"},wn=he({__name:"MapMonitorConfigView",setup(w){const y=[{value:"car",label:"车辆 (Car)"},{value:"site",label:"站点 (Site)"},{value:"track",label:"路径 (Track)"}],f=m("car"),U=m(!1),S=m(!1),b=xl(zl()),E=xl(Ot()),D=m(JSON.stringify(zl())),F=te(()=>D.value!==JSON.stringify(b));function B(g,_){for(const M of y)g[M.value].fields=[..._[M.value]?.fields??[]],g[M.value].status=[..._[M.value]?.status??[]],g[M.value].methods=[..._[M.value]?.methods??[]]}async function P(g=!1){U.value=!0;try{const _=await al.getMonitorConfig();B(b,_.config),B(E,_.available),D.value=JSON.stringify(b),g&&W.success("已重载")}catch(_){W.error(`加载失败:${_ instanceof Error?_.message:String(_)}`)}finally{U.value=!1}}async function Y(){S.value=!0;try{const g=await al.saveMonitorConfig({car:{...b.car},site:{...b.site},track:{...b.track}});B(b,g),D.value=JSON.stringify(b),W.success("已保存(已写入 simple.json)")}catch(g){W.error(`保存失败:${g instanceof Error?g.message:String(g)}`)}finally{S.value=!1}}function I(g,_,M){b[g][_]=[...M]}return nl(()=>P()),(g,_)=>{const M=Ke,Z=Pe,v=dl,r=ul,j=ol,A=Ie;return i(),x(Ul,{"widget-id":"ConfigCenter"},{default:t(()=>[l(j,{shadow:"never",class:"mmc-card"},{header:t(()=>[n("div",bn,[_[6]||(_[6]=n("span",{class:"mmc-title"},"地图监控配置",-1)),l(M,{size:"small",effect:"plain"},{default:t(()=>[..._[2]||(_[2]=[s("section=map-monitor",-1)])]),_:1}),F.value?(i(),x(M,{key:0,size:"small",type:"warning",effect:"dark"},{default:t(()=>[..._[3]||(_[3]=[s("未保存",-1)])]),_:1})):K("",!0),_[7]||(_[7]=n("div",{class:"spacer"},null,-1)),l(Z,{size:"small",icon:$(me),loading:U.value,onClick:_[0]||(_[0]=h=>P(!0))},{default:t(()=>[..._[4]||(_[4]=[s("重载",-1)])]),_:1},8,["icon","loading"]),l(Z,{size:"small",type:"primary",icon:$(Nt),loading:S.value,disabled:!F.value,onClick:Y},{default:t(()=>[..._[5]||(_[5]=[s(" 保存 ",-1)])]),_:1},8,["icon","loading","disabled"])])]),default:t(()=>[_[8]||(_[8]=n("p",{class:"mmc-desc"},[s(" 勾选「地图监控」右侧选中信息面板要展示的内容白名单(按对象类型 - 车辆 / 站点 / 路径 分组)。 三组分别控制 "),n("b",null,"属性"),s("、"),n("b",null,"状态"),s("、"),n("b",null,"动作"),s(" Tab 里可见的字段 / 状态项 / 可执行方法。 每组留空 = 显示全部;勾选任何一项即进入白名单模式(仅显示已勾选)。保存后直接写入 SimpleLite 的 "),n("code",null,"simple.json"),s(" ("),n("code",null,"Configuration.conf.monitorVisibility"),s(")。 ")],-1)),l(r,{modelValue:f.value,"onUpdate:modelValue":_[1]||(_[1]=h=>f.value=h),class:"mmc-tabs"},{default:t(()=>[(i(),V(X,null,oe(y,h=>l(v,{key:h.value,label:h.label,name:h.value},{default:t(()=>[ee((i(),V("div",yn,[l(ll,{title:"属性字段(Properties)",available:E[h.value].fields,selected:b[h.value].fields,"empty-tip":"该类型暂未发现任何 [FieldMember]。在 SimpleLite 端添加字段后点重载会刷新。","onUpdate:selected":c=>I(h.value,"fields",c)},null,8,["available","selected","onUpdate:selected"]),l(ll,{title:"状态项(Status)",available:E[h.value].status,selected:b[h.value].status,"empty-tip":"该类型暂未发现任何 status 字段(来自 obj.status 反射)。","onUpdate:selected":c=>I(h.value,"status",c)},null,8,["available","selected","onUpdate:selected"]),l(ll,{title:"可执行动作(Methods)",available:E[h.value].methods,selected:b[h.value].methods,"empty-tip":"该类型暂未发现任何 [MethodMember] 方法。","onUpdate:selected":c=>I(h.value,"methods",c)},null,8,["available","selected","onUpdate:selected"])])),[[A,U.value]])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})}}}),hn=ke(wn,[["__scopeId","data-v-4d3be43b"]]),kn={class:"config-hub-page"},Cn={class:"config-pane"},xn={class:"config-pane"},$n={class:"config-pane"},Vn={class:"config-pane"},zn=he({__name:"OpsCenterView",setup(w){const y=Ut(),f=Ll(),U=["playback","ops","logs","map-monitor"];function S(){const E=y.query.tab;return typeof E=="string"&&U.includes(E)?E:"playback"}const b=m(S());return we(b,E=>{y.query.tab!==E&&f.replace({query:{...y.query,tab:E}})}),we(()=>y.query.tab,()=>{const E=S();E!==b.value&&(b.value=E)}),(E,D)=>{const F=dl,B=ul;return i(),V("div",kn,[l(B,{modelValue:b.value,"onUpdate:modelValue":D[0]||(D[0]=P=>b.value=P),class:"hub-tabs"},{default:t(()=>[l(F,{name:"playback",label:"调度回放"},{default:t(()=>[n("div",Cn,[l(aa)])]),_:1}),l(F,{name:"ops",label:"运营维护",lazy:""},{default:t(()=>[n("div",xn,[l(da)])]),_:1}),l(F,{name:"logs",label:"日志管理",lazy:""},{default:t(()=>[n("div",$n,[l(rn)])]),_:1}),l(F,{name:"map-monitor",label:"地图监控配置",lazy:""},{default:t(()=>[n("div",Vn,[l(hn)])]),_:1})]),_:1},8,["modelValue"])])}}}),uo=ke(zn,[["__scopeId","data-v-0bd2e46f"]]);export{uo as default}; diff --git a/MiGu.Server/wwwroot/assets/OpsConfigView-Ch6itZUF.js b/MiGu.Server/wwwroot/assets/OpsConfigView-Ch6itZUF.js deleted file mode 100644 index 084b1aa..0000000 --- a/MiGu.Server/wwwroot/assets/OpsConfigView-Ch6itZUF.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as te,b6 as oe,aC as b,bJ as n,bt as P,b9 as u,aH as s,N as le,H as ae,aG as h,O as ne,S as se,bK as R,aE as C,E as ie,x as re,ai as E,bj as T,y as ue,aB as ce,v as me,u as de,bq as D,bB as fe,aD as pe,bA as ve,e as _e,bp as $,bh as S,X as j,ak as ye}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as be,n as w,c as he,d as ge,s as W,l as ke}from"./ConfigPageBase-MHa7yfOO.js";import{r as Ce}from"./reflection-B_glb6eT.js";import{f as Ve}from"./monitorConfigCache-BigdkiFw.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */function Ne(V,m,d){if(!V)return[];const g=V[m]??V[d];if(g?.length)return[...g];for(const[c,f]of Object.entries(V))if(f?.length){if(c===m||c===d)return[...f];if(m.endsWith("."+c)||c.endsWith("."+d))return[...f];if(m.endsWith("."+d)&&(c===d||c.endsWith("."+d)))return[...f]}return[]}const xe={class:"monitor-section"},Ae={key:0,class:"muted empty-hint"},G="simple-platform-methods-by-type-car-v1",Se=500,Ee=te({__name:"OpsConfigView",setup(V){const m=$([]),d=$([]),g=$([]),c=S(!1),f=S(!1),U=S([]),N=S(null),x=S(!1);let _=null,k=null;function M(l){k=l,_&&clearTimeout(_),_=setTimeout(()=>{K()},Se)}async function K(){if(_=null,x.value){_=setTimeout(()=>{K()},200);return}const l=k;if(k=null,!!l){x.value=!0;try{const e=await W(l,{cachedRoot:N.value});N.value=e,j.success({message:"地图监控配置已自动保存",duration:1200,grouping:!0})}catch(e){j.error(`地图监控配置自动保存失败:${e instanceof Error?e.message:String(e)}`)}finally{x.value=!1,k&&M(k)}}}oe(()=>{_&&(clearTimeout(_),_=null),k&&!x.value&&K()});async function J(l,e){c.value=!0,f.value=!0;try{const t=await Ve(),[{config:i,cache:r},p]=await Promise.all([ke(l,t),L()]);N.value=r,d.value=I(t.available.site.methods),g.value=I(t.available.track.methods),e(i)}catch{e(w(l)),d.value=[],g.value=[],await L()}finally{c.value=!1,f.value=!1}}async function Y(l){N.value=await W(l,{cachedRoot:N.value})}async function L(){try{const l=sessionStorage.getItem(G);if(l){const e=JSON.parse(l);if(Array.isArray(e)&&e.length){m.value=e;return}}}catch{}try{const e=(await Ce.listMethodsByType("car")).map(t=>({typeKey:t.fullTypeName??t.typeName,shortTypeName:t.typeName,title:`${t.typeLabel??t.typeName} / ${t.fullTypeName??t.typeName} [${t.assemblyName}]`,methods:t.methods.map(i=>({methodName:i.methodName,label:i.label||i.methodName})).filter(i=>!!i.methodName)})).filter(t=>t.methods.length>0).sort((t,i)=>t.title.localeCompare(i.title));m.value=e;try{sessionStorage.setItem(G,JSON.stringify(e))}catch{}}catch{m.value=[]}}function I(l){return l?.length?l.map(e=>({methodName:e,label:e})):[]}function O(l){return l.monitor??ge()}function F(l,e){const t=O(l).carActionByType;return Ne(t,e.typeKey,e.shortTypeName)}function q(l,e){const t=F(l,e).slice().sort().join("\0");return`${e.typeKey}\0${t}`}function H(l,e,t,i,r){const p=O(e),v={...e,monitor:{...p,[t]:{...p[t],[i]:[...r]}}};l(v),M(v)}function X(l,e,t,i){const r=O(e),p=he(r.carActionByType);p[t.typeKey]=[...i],t.shortTypeName!==t.typeKey&&delete p[t.shortTypeName];const v={...e,monitor:{...r,carActionByType:p}};l(v),M(v)}return(l,e)=>{const t=ae,i=se,r=ne,p=ie,v=de,B=me,Q=ue,Z=re,ee=le,z=ve;return u(),b(be,{section:"ops",title:"运营维护",description:"调度回放、日志管理、版本维护(OpsConfig)",defaults:P(_e),"normalize-payload":P(w),"after-load":J,"before-save":Y},{default:n(({payload:a,update:y})=>[s(ee,{"label-width":"200px",model:a},{default:n(()=>[s(t,{"content-position":"left"},{default:n(()=>[...e[1]||(e[1]=[h("调度回放",-1)])]),_:1}),s(r,{label:"保留时长 (天)"},{default:n(()=>[s(i,{"model-value":a.playback.retentionDays,min:1,max:3650,"onUpdate:modelValue":o=>y({...a,playback:{...a.playback,retentionDays:o??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),s(r,{label:"采样频率 (Hz)"},{default:n(()=>[s(i,{"model-value":a.playback.samplingHz,min:1,max:100,"onUpdate:modelValue":o=>y({...a,playback:{...a.playback,samplingHz:o??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),s(t,{"content-position":"left"},{default:n(()=>[...e[2]||(e[2]=[h("日志保留",-1)])]),_:1}),s(r,{label:"热数据 (天)"},{default:n(()=>[s(i,{"model-value":a.logRetention.hotDays,min:1,max:365,"onUpdate:modelValue":o=>y({...a,logRetention:{...a.logRetention,hotDays:o??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),s(r,{label:"冷数据 (天)"},{default:n(()=>[s(i,{"model-value":a.logRetention.coldDays,min:1,max:3650,"onUpdate:modelValue":o=>y({...a,logRetention:{...a.logRetention,coldDays:o??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),s(t,{"content-position":"left"},{default:n(()=>[...e[3]||(e[3]=[h("版本维护",-1)])]),_:1}),s(r,{label:"保留发布版本"},{default:n(()=>[s(i,{"model-value":a.version.keepReleases,min:1,max:100,"onUpdate:modelValue":o=>y({...a,version:{keepReleases:o??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),s(t,{"content-position":"left"},{default:n(()=>[...e[4]||(e[4]=[h("地图监控信息与动作管理",-1)])]),_:1}),R((u(),C("div",xe,[s(p,{type:"info",closable:!1,"show-icon":"",title:x.value?"正在自动保存…":"支持直接多选,修改后会自动保存到地图监控(simple.json),无需点击上方「保存」。若某组不勾选,表示该组在地图监控中显示全部。",style:{"margin-bottom":"10px"}},null,8,["title"]),R((u(),b(r,{label:"按车型动作配置"},{default:n(()=>[s(Z,{modelValue:U.value,"onUpdate:modelValue":e[0]||(e[0]=o=>U.value=o),class:"type-actions"},{default:n(()=>[(u(!0),C(E,null,T(m.value,o=>(u(),b(Q,{key:o.typeKey,name:o.typeKey,title:`${o.title}(${o.methods.length})`},{default:n(()=>[R(ce("div",null,[(u(),b(B,{key:q(a,o),"model-value":F(a,o),class:"cfg-check-grid","onUpdate:modelValue":A=>X(y,a,o,A)},{default:n(()=>[(u(!0),C(E,null,T(o.methods,A=>(u(),b(v,{key:`${o.typeKey}-${A.methodName}`,label:A.methodName},{default:n(()=>[h(D(A.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["model-value","onUpdate:modelValue"]))],512),[[fe,U.value.includes(o.typeKey)]])]),_:2},1032,["name","title"]))),128))]),_:2},1032,["modelValue"]),!c.value&&!f.value&&!m.value.length?(u(),C("p",Ae," 暂未扫描到带 MethodMember 的车型(请确认 SimpleLite 已连接并已加载插件)。 ")):pe("",!0)]),_:2},1024)),[[z,f.value]]),s(r,{label:"站点动作显示项"},{default:n(()=>[s(B,{"model-value":a.monitor?.site?.actionKeys??[],class:"cfg-check-grid","onUpdate:modelValue":o=>H(y,a,"site","actionKeys",o)},{default:n(()=>[(u(!0),C(E,null,T(d.value,o=>(u(),b(v,{key:`sa-${o.methodName}`,label:o.methodName},{default:n(()=>[h(D(o.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024),s(r,{label:"路径动作显示项"},{default:n(()=>[s(B,{"model-value":a.monitor?.track?.actionKeys??[],class:"cfg-check-grid","onUpdate:modelValue":o=>H(y,a,"track","actionKeys",o)},{default:n(()=>[(u(!0),C(E,null,T(g.value,o=>(u(),b(v,{key:`ta-${o.methodName}`,label:o.methodName},{default:n(()=>[h(D(o.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024)])),[[z,c.value]])]),_:2},1032,["model"])]),_:1},8,["defaults","normalize-payload"])}}}),Ye=ye(Ee,[["__scopeId","data-v-bf134df3"]]);export{Ye as default}; diff --git a/MiGu.Server/wwwroot/assets/OpsConfigView-Dn7upUIu.css b/MiGu.Server/wwwroot/assets/OpsConfigView-Dn7upUIu.css deleted file mode 100644 index 332b295..0000000 --- a/MiGu.Server/wwwroot/assets/OpsConfigView-Dn7upUIu.css +++ /dev/null @@ -1 +0,0 @@ -.monitor-section[data-v-bf134df3]{min-height:80px}.cfg-check-grid[data-v-bf134df3]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 10px}.type-actions[data-v-bf134df3]{width:100%}.empty-hint[data-v-bf134df3]{margin:4px 0 0;font-size:12px}.muted[data-v-bf134df3]{color:var(--mg-text-muted)} diff --git a/MiGu.Server/wwwroot/assets/PermissionGuard-BlMEkqrL.js b/MiGu.Server/wwwroot/assets/PermissionGuard-CR4qtxrh.js similarity index 53% rename from MiGu.Server/wwwroot/assets/PermissionGuard-BlMEkqrL.js rename to MiGu.Server/wwwroot/assets/PermissionGuard-CR4qtxrh.js index c73d434..3f4f41e 100644 --- a/MiGu.Server/wwwroot/assets/PermissionGuard-BlMEkqrL.js +++ b/MiGu.Server/wwwroot/assets/PermissionGuard-CR4qtxrh.js @@ -1 +1 @@ -import{aI as p,bv as c,bk as i,aE as u,aB as s,aC as m,L as g,bJ as v,ax as k,b9 as d,bq as y,ak as _}from"./index-Dg4NaXsE.js";/* empty css *//* empty css */const f=["title"],b={class:"pg-hidden-hint"},h=p({__name:"PermissionGuard",props:{widgetId:{}},setup(e){const n=e,l=c(),a=k(()=>l.widgetOf(n.widgetId));return(o,t)=>{const r=g;return a.value==="interactive"?i(o.$slots,"default",{key:0},void 0,!0):a.value==="readonly"?(d(),u("div",{key:1,class:"pg-readonly",title:`${e.widgetId} 当前为只读`},[i(o.$slots,"default",{},void 0,!0),t[0]||(t[0]=s("div",{class:"pg-mask"},null,-1))],8,f)):(d(),m(r,{key:2,class:"pg-hidden"},{description:v(()=>[t[1]||(t[1]=s("p",{class:"pg-hidden-title"},"当前账号无权查看此功能",-1)),s("p",b,"控件:"+y(e.widgetId)+"。若应为管理员可见,请尝试顶部切换「管理员/运营」或刷新页面。",1)]),_:1}))}}}),E=_(h,[["__scopeId","data-v-4766a149"]]);export{E as P}; +import{aN as p,bV as c,bF as i,aG as u,aD as s,aE as m,L as g,c8 as y,ay as v,bs as d,bL as k,ak as _}from"./index-D5GfLbIx.js";/* empty css *//* empty css */const f=["title"],h={class:"pg-hidden-hint"},w=p({__name:"PermissionGuard",props:{widgetId:{}},setup(e){const n=e,l=c(),a=v(()=>l.widgetOf(n.widgetId));return(o,t)=>{const r=g;return a.value==="interactive"?i(o.$slots,"default",{key:0},void 0,!0):a.value==="readonly"?(d(),u("div",{key:1,class:"pg-readonly",title:`${e.widgetId} 当前为只读`},[i(o.$slots,"default",{},void 0,!0),t[0]||(t[0]=s("div",{class:"pg-mask"},null,-1))],8,f)):(d(),m(r,{key:2,class:"pg-hidden"},{description:y(()=>[t[1]||(t[1]=s("p",{class:"pg-hidden-title"},"当前账号无权查看此功能",-1)),s("p",h,"控件:"+k(e.widgetId)+"。若应为管理员可见,请尝试顶部切换「管理员/运营」或刷新页面。",1)]),_:1}))}}}),E=_(w,[["__scopeId","data-v-4766a149"]]);export{E as P}; diff --git a/MiGu.Server/wwwroot/assets/PlaybackView-BsrAVvYx.css b/MiGu.Server/wwwroot/assets/PlaybackView-BsrAVvYx.css deleted file mode 100644 index 7d96197..0000000 --- a/MiGu.Server/wwwroot/assets/PlaybackView-BsrAVvYx.css +++ /dev/null @@ -1 +0,0 @@ -.el-date-table{-webkit-user-select:none;user-select:none;font-size:12px}.el-date-table.is-week-mode .el-date-table__row:hover .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:var(--el-datepicker-text-color)}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child .el-date-table-cell{border-top-left-radius:15px;border-bottom-left-radius:15px;margin-left:5px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child .el-date-table-cell{border-top-right-radius:15px;border-bottom-right-radius:15px;margin-right:5px}.el-date-table.is-week-mode .el-date-table__row.current .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td{box-sizing:border-box;text-align:center;cursor:pointer;width:32px;height:30px;padding:4px 0;position:relative}.el-date-table td .el-date-table-cell{box-sizing:border-box;height:30px;padding:3px 0}.el-date-table td .el-date-table-cell .el-date-table-cell__text{border-radius:50%;width:24px;height:24px;margin:0 auto;line-height:24px;display:block;position:absolute;left:50%;transform:translate(-50%)}.el-date-table td.next-month,.el-date-table td.prev-month{color:var(--el-datepicker-off-text-color)}.el-date-table td.today{position:relative}.el-date-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-date-table td.today.start-date .el-date-table-cell__text,.el-date-table td.today.end-date .el-date-table-cell__text{color:#fff}.el-date-table td.available:hover{color:var(--el-datepicker-hover-text-color)}.el-date-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.current:not(.disabled) .el-date-table-cell__text{color:#fff;background-color:var(--el-datepicker-active-color)}.el-date-table td.current:not(.disabled):focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-date-table td.start-date .el-date-table-cell,.el-date-table td.end-date .el-date-table-cell{color:#fff}.el-date-table td.start-date .el-date-table-cell__text,.el-date-table td.end-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color)}.el-date-table td.start-date .el-date-table-cell{border-top-left-radius:15px;border-bottom-left-radius:15px;margin-left:5px}.el-date-table td.end-date .el-date-table-cell{border-top-right-radius:15px;border-bottom-right-radius:15px;margin-right:5px}.el-date-table td.disabled .el-date-table-cell{background-color:var(--el-fill-color-light);opacity:1;cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-date-table td.selected .el-date-table-cell{border-radius:15px;margin-left:5px;margin-right:5px}.el-date-table td.selected .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff;border-radius:15px}.el-date-table td.week{color:var(--el-datepicker-off-text-color);cursor:default;font-size:80%}.el-date-table td:focus{outline:none}.el-date-table th{color:var(--el-datepicker-header-text-color);border-bottom:solid 1px var(--el-border-color-lighter);padding:5px;font-weight:400}.el-date-table th.el-date-table__week-header{width:24px;padding:0}.el-month-table{border-collapse:collapse;margin:-1px;font-size:12px}.el-month-table td{text-align:center;cursor:pointer;width:68px;padding:8px 0;position:relative}.el-month-table td .el-date-table-cell{box-sizing:border-box;height:48px;padding:6px 0}.el-month-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-month-table td.today.start-date .el-date-table-cell__text,.el-month-table td.today.end-date .el-date-table-cell__text{color:#fff}.el-month-table td.disabled .el-date-table-cell__text{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-month-table td.disabled .el-date-table-cell__text:hover{color:var(--el-text-color-placeholder)}.el-month-table td .el-date-table-cell__text{width:54px;height:36px;color:var(--el-datepicker-text-color);border-radius:18px;margin:0 auto;line-height:36px;display:block;position:absolute;left:50%;transform:translate(-50%)}.el-month-table td .el-date-table-cell__text:hover{color:var(--el-datepicker-hover-text-color)}.el-month-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-month-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-month-table td.start-date .el-date-table-cell,.el-month-table td.end-date .el-date-table-cell{color:#fff}.el-month-table td.start-date .el-date-table-cell__text,.el-month-table td.end-date .el-date-table-cell__text{color:#fff;background-color:var(--el-datepicker-active-color)}.el-month-table td.start-date .el-date-table-cell{border-top-left-radius:24px;border-bottom-left-radius:24px;margin-left:3px}.el-month-table td.end-date .el-date-table-cell{border-top-right-radius:24px;border-bottom-right-radius:24px;margin-right:3px}.el-month-table td.current:not(.disabled) .el-date-table-cell{border-radius:24px;margin-left:3px;margin-right:3px}.el-month-table td.current:not(.disabled) .el-date-table-cell__text{color:#fff;background-color:var(--el-datepicker-active-color)}.el-month-table td:focus-visible{outline:none}.el-month-table td:focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-year-table{border-collapse:collapse;margin:-1px;font-size:12px}.el-year-table .el-icon{color:var(--el-datepicker-icon-color)}.el-year-table td{text-align:center;cursor:pointer;width:68px;padding:8px 0;position:relative}.el-year-table td .el-date-table-cell{box-sizing:border-box;height:48px;padding:6px 0}.el-year-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-year-table td.today.start-date .el-date-table-cell__text,.el-year-table td.today.end-date .el-date-table-cell__text{color:#fff}.el-year-table td.disabled .el-date-table-cell__text{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-year-table td.disabled .el-date-table-cell__text:hover{color:var(--el-text-color-placeholder)}.el-year-table td .el-date-table-cell__text{width:60px;height:36px;color:var(--el-datepicker-text-color);border-radius:18px;margin:0 auto;line-height:36px;display:block;position:absolute;left:50%;transform:translate(-50%)}.el-year-table td .el-date-table-cell__text:hover{color:var(--el-datepicker-hover-text-color)}.el-year-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-year-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-year-table td.start-date .el-date-table-cell,.el-year-table td.end-date .el-date-table-cell{color:#fff}.el-year-table td.start-date .el-date-table-cell__text,.el-year-table td.end-date .el-date-table-cell__text{color:#fff;background-color:var(--el-datepicker-active-color)}.el-year-table td.start-date .el-date-table-cell{border-top-left-radius:24px;border-bottom-left-radius:24px}.el-year-table td.end-date .el-date-table-cell{border-top-right-radius:24px;border-bottom-right-radius:24px}.el-year-table td.current:not(.disabled) .el-date-table-cell__text{color:#fff;background-color:var(--el-datepicker-active-color)}.el-year-table td:focus-visible{outline:none}.el-year-table td:focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{vertical-align:top;width:50%;max-height:192px;display:inline-block;position:relative;overflow:auto}.el-time-spinner__wrapper.el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__wrapper.is-arrow{box-sizing:border-box;text-align:center;overflow:hidden}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:default}.el-time-spinner__arrow{color:var(--el-text-color-secondary);width:100%;z-index:var(--el-index-normal);text-align:center;cursor:pointer;height:30px;font-size:12px;line-height:30px;position:absolute;left:0}.el-time-spinner__arrow:hover{color:var(--el-color-primary)}.el-time-spinner__arrow.arrow-up{top:10px}.el-time-spinner__arrow.arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__input.el-input .el-input__inner{text-align:center;padding:0}.el-time-spinner__list{text-align:center;margin:0;padding:0;list-style:none}.el-time-spinner__list:after,.el-time-spinner__list:before{content:"";width:100%;height:80px;display:block}.el-time-spinner__item{height:32px;color:var(--el-text-color-regular);font-size:12px;line-height:32px}.el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:pointer}.el-time-spinner__item.is-active:not(.is-disabled){color:var(--el-text-color-primary);font-weight:700}.el-time-spinner__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transition:var(--el-transition-md-fade);transform-origin:top;transform:scaleY(1)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transition:var(--el-transition-md-fade);transform-origin:bottom;transform:scaleY(1)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transition:var(--el-transition-md-fade);transform-origin:0 0;transform:scale(1)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-leave-active,.el-collapse-transition-enter-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-picker__popper{--el-datepicker-border-color:var(--el-disabled-border-color)}.el-picker__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-datepicker-border-color);box-shadow:var(--el-box-shadow-light)}.el-picker__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-datepicker-border-color)}.el-picker__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:#0000;border-left-color:#0000}.el-picker__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:#0000;border-right-color:#0000}.el-picker__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:#0000;border-left-color:#0000}.el-picker__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-top-color:#0000;border-right-color:#0000}.el-date-editor{--el-date-editor-width:220px;--el-date-editor-monthrange-width:300px;--el-date-editor-daterange-width:350px;--el-date-editor-datetimerange-width:400px;--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;text-align:left;vertical-align:middle;position:relative}.el-date-editor.el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-date-editor.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-date-editor.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-date-editor.el-input,.el-date-editor.el-input__wrapper{width:var(--el-date-editor-width);height:var(--el-input-height,var(--el-component-size))}.el-date-editor--monthrange{--el-date-editor-width:var(--el-date-editor-monthrange-width)}.el-date-editor--daterange,.el-date-editor--timerange{--el-date-editor-width:var(--el-date-editor-daterange-width)}.el-date-editor--datetimerange{--el-date-editor-width:var(--el-date-editor-datetimerange-width)}.el-date-editor--dates .el-input__wrapper{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .close-icon,.el-date-editor .clear-icon{cursor:pointer}.el-date-editor .clear-icon:hover{color:var(--el-input-clear-hover-color)}.el-date-editor .el-range__icon{height:inherit;color:var(--el-text-color-placeholder);float:left;font-size:14px}.el-date-editor .el-range__icon svg{vertical-align:middle}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:center;width:39%;height:30px;line-height:30px;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);background-color:#0000;border:none;outline:none;margin:0;padding:0;display:inline-block}.el-date-editor .el-range-input::placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-separator{overflow-wrap:break-word;height:100%;color:var(--el-text-color-primary);flex:1;justify-content:center;align-items:center;margin:0;padding:0 5px;font-size:14px;display:inline-flex}.el-date-editor .el-range__close-icon{color:var(--el-text-color-placeholder);height:inherit;width:unset;cursor:pointer;font-size:14px}.el-date-editor .el-range__close-icon:hover{color:var(--el-input-clear-hover-color)}.el-date-editor .el-range__close-icon svg{vertical-align:middle}.el-date-editor .el-range__close-icon--hidden{opacity:0;visibility:hidden}.el-range-editor.el-input__wrapper{vertical-align:middle;align-items:center;padding:0 10px;display:inline-flex}.el-range-editor.is-active,.el-range-editor.is-active:hover{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-range-editor--large{line-height:var(--el-component-size-large)}.el-range-editor--large.el-input__wrapper{height:var(--el-component-size-large)}.el-range-editor--large .el-range-separator{font-size:14px;line-height:40px}.el-range-editor--large .el-range-input{height:38px;font-size:14px;line-height:38px}.el-range-editor--small{line-height:var(--el-component-size-small)}.el-range-editor--small.el-input__wrapper{height:var(--el-component-size-small)}.el-range-editor--small .el-range-separator{font-size:12px;line-height:24px}.el-range-editor--small .el-range-input{height:22px;font-size:12px;line-height:22px}.el-range-editor.is-disabled{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled:hover,.el-range-editor.is-disabled:focus{border-color:var(--el-disabled-border-color)}.el-range-editor.is-disabled input{background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled input::placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled .el-range-separator{color:var(--el-disabled-text-color)}.el-picker-panel{color:var(--el-text-color-regular);background:var(--el-datepicker-bg-color);border-radius:var(--el-popper-border-radius,var(--el-border-radius-base));line-height:30px}.el-picker-panel .el-time-panel{border:solid 1px var(--el-datepicker-border-color);background-color:var(--el-datepicker-bg-color);box-shadow:var(--el-box-shadow-light);margin:5px 0}.el-picker-panel__body:after,.el-picker-panel__body-wrapper:after{content:"";clear:both;display:table}.el-picker-panel__content{margin:15px;position:relative}.el-picker-panel__footer{border-top:1px solid var(--el-datepicker-inner-border-color);text-align:right;background-color:var(--el-datepicker-bg-color);padding:4px 12px;font-size:0;position:relative}.el-picker-panel__shortcut{width:100%;color:var(--el-datepicker-text-color);text-align:left;cursor:pointer;background-color:#0000;border:0;outline:none;padding-left:12px;font-size:14px;line-height:28px;display:block}.el-picker-panel__shortcut:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__shortcut.active{color:var(--el-datepicker-active-color);background-color:#e6f1fe}.el-picker-panel__btn{border:1px solid var(--el-fill-color-darker);color:var(--el-text-color-primary);cursor:pointer;background-color:#0000;border-radius:2px;outline:none;padding:0 20px;font-size:12px;line-height:24px}.el-picker-panel__btn[disabled]{color:var(--el-text-color-disabled);cursor:not-allowed}.el-picker-panel__icon-btn{color:var(--el-datepicker-icon-color);cursor:pointer;background:0 0;border:0;outline:none;margin-top:8px;padding:1px 6px;font-size:12px;line-height:1}.el-picker-panel__icon-btn:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn:focus-visible{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn.is-disabled{color:var(--el-text-color-disabled)}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__icon-btn.is-disabled .el-icon{cursor:inherit}.el-picker-panel__icon-btn .el-icon{cursor:pointer;font-size:inherit}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel.is-disabled .el-picker-panel__prev-btn{color:var(--el-text-color-disabled)}.el-picker-panel.is-disabled .el-picker-panel__prev-btn:hover{cursor:not-allowed}.el-picker-panel.is-disabled .el-picker-panel__prev-btn .el-icon{cursor:inherit}.el-picker-panel.is-disabled .el-picker-panel__next-btn{color:var(--el-text-color-disabled)}.el-picker-panel.is-disabled .el-picker-panel__next-btn:hover{cursor:not-allowed}.el-picker-panel.is-disabled .el-picker-panel__next-btn .el-icon{cursor:inherit}.el-picker-panel.is-disabled .el-picker-panel__icon-btn{color:var(--el-text-color-disabled)}.el-picker-panel.is-disabled .el-picker-panel__icon-btn:hover{cursor:not-allowed}.el-picker-panel.is-disabled .el-picker-panel__icon-btn .el-icon{cursor:inherit}.el-picker-panel.is-disabled .el-picker-panel__shortcut{color:var(--el-text-color-disabled)}.el-picker-panel.is-disabled .el-picker-panel__shortcut:hover{cursor:not-allowed}.el-picker-panel.is-disabled .el-picker-panel__shortcut .el-icon{cursor:inherit}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{border-right:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;width:110px;padding-top:6px;position:absolute;top:0;bottom:0;overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary);--el-datepicker-bg-color:var(--el-bg-color-overlay);--el-fill-color-blank:var(--el-datepicker-bg-color);width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{padding:0 5px;display:table-cell;position:relative}.el-date-picker__time-header{border-bottom:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;width:100%;padding:8px 5px 5px;font-size:12px;display:table;position:relative}.el-date-picker__header{text-align:center;padding:12px 12px 0}.el-date-picker__header--bordered{border-bottom:solid 1px var(--el-border-color-lighter);margin-bottom:0;padding-bottom:12px}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{text-align:center;cursor:pointer;color:var(--el-text-color-regular);padding:0 5px;font-size:16px;font-weight:500;line-height:22px}.el-date-picker__header-label:hover{color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label:focus-visible{color:var(--el-datepicker-hover-text-color);outline:none}.el-date-picker__header-label.active{color:var(--el-datepicker-active-color)}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{text-align:center;padding:10px}.el-date-picker__time-label{float:left;cursor:pointer;margin-left:10px;line-height:30px}.el-date-picker .el-time-panel{position:absolute}.el-date-picker.is-disabled .el-date-picker__header-label{color:var(--el-text-color-disabled)}.el-date-picker.is-disabled .el-date-picker__header-label:hover{cursor:not-allowed}.el-date-picker.is-disabled .el-date-picker__header-label .el-icon{cursor:inherit}.el-date-range-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary);--el-datepicker-bg-color:var(--el-bg-color-overlay);width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker.single-panel{width:322px}.el-date-range-picker.single-panel .el-picker-panel__body{min-width:322px}.el-date-range-picker.single-panel.has-sidebar.has-time{width:434px}.el-date-range-picker.single-panel.has-sidebar{width:438px}.el-date-range-picker.single-panel .el-picker-panel__content{width:292px;margin:15px;padding:0;display:block;position:relative}.el-date-range-picker__header{text-align:center;height:28px;position:relative}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{margin-right:50px;font-size:16px;font-weight:500}.el-date-range-picker__header-label{text-align:center;cursor:pointer;color:var(--el-text-color-regular);padding:0 5px;font-size:16px;font-weight:500;line-height:22px}.el-date-range-picker__header-label:hover{color:var(--el-datepicker-hover-text-color)}.el-date-range-picker__header-label:focus-visible{color:var(--el-datepicker-hover-text-color);outline:none}.el-date-range-picker__header-label.active{color:var(--el-datepicker-active-color)}.el-date-range-picker__content{box-sizing:border-box;width:50%;margin:0;padding:16px;display:table-cell}.el-date-range-picker__content.is-left{border-right:1px solid var(--el-datepicker-inner-border-color)}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{border-bottom:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;width:100%;padding:8px 5px 5px;font-size:12px;display:table;position:relative}.el-date-range-picker__time-header>.el-icon-arrow-right{vertical-align:middle;color:var(--el-datepicker-icon-color);font-size:20px;display:table-cell}.el-date-range-picker__time-picker-wrap{padding:0 5px;display:table-cell;position:relative}.el-date-range-picker__time-picker-wrap .el-picker-panel{z-index:1;background:#fff;position:absolute;top:13px;right:0}.el-date-range-picker__time-picker-wrap .el-time-panel{position:absolute}.el-date-range-picker.is-disabled .el-date-range-picker__header-label{color:var(--el-text-color-disabled)}.el-date-range-picker.is-disabled .el-date-range-picker__header-label:hover{cursor:not-allowed}.el-date-range-picker.is-disabled .el-date-range-picker__header-label .el-icon{cursor:inherit}.el-time-range-picker{width:354px;overflow:visible}.el-time-range-picker__content{text-align:center;z-index:1;padding:10px;position:relative}.el-time-range-picker__cell{box-sizing:border-box;width:50%;margin:0;padding:4px 7px 7px;display:inline-block}.el-time-range-picker__header{text-align:center;margin-bottom:5px;font-size:14px}.el-time-range-picker__body{border:1px solid var(--el-datepicker-border-color);border-radius:2px}.el-time-panel{width:180px;z-index:var(--el-index-top);-webkit-user-select:none;user-select:none;box-sizing:content-box;border-radius:2px;position:relative;left:0}.el-time-panel__content{font-size:0;position:relative;overflow:hidden}.el-time-panel__content:after,.el-time-panel__content:before{content:"";z-index:-1;box-sizing:border-box;text-align:left;height:32px;margin-top:-16px;padding-top:6px;position:absolute;top:50%;left:0;right:0}.el-time-panel__content:after{margin-left:12%;margin-right:12%;left:50%}.el-time-panel__content:before{border-top:1px solid var(--el-border-color-light);border-bottom:1px solid var(--el-border-color-light);margin-left:12%;margin-right:12%;padding-left:50%}.el-time-panel__content.has-seconds:after{left:66.6667%}.el-time-panel__content.has-seconds:before{padding-left:33.3333%}.el-time-panel__footer{border-top:1px solid var(--el-timepicker-inner-border-color,var(--el-border-color-light));text-align:right;box-sizing:border-box;height:36px;padding:4px;line-height:25px}.el-time-panel__btn{cursor:pointer;color:var(--el-text-color-primary);background-color:#0000;border:none;outline:none;margin:0 5px;padding:0 5px;font-size:12px;line-height:28px}.el-time-panel__btn.confirm{color:var(--el-timepicker-active-color,var(--el-color-primary));font-weight:800}.el-picker-panel.is-border{border:solid 1px var(--el-border-color-lighter)}.el-picker-panel.is-border .el-picker-panel__body-wrapper{position:relative}.el-picker-panel.is-border.el-picker-panel [slot=sidebar],.el-picker-panel.is-border.el-picker-panel__sidebar{border-right:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;width:110px;height:100%;padding-top:6px;position:absolute;top:0;overflow:auto} diff --git a/MiGu.Server/wwwroot/assets/PlaybackView-DVrgp4e4.js b/MiGu.Server/wwwroot/assets/PlaybackView-DVrgp4e4.js deleted file mode 100644 index a1f8ea0..0000000 --- a/MiGu.Server/wwwroot/assets/PlaybackView-DVrgp4e4.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as c,aC as y,bJ as a,t as w,b9 as V,aH as e,a2 as E,w as k,R as B,B as g,r as x,aG as n,bt as N,bF as P,H as v,aa as z,ab as C,aB as D,bq as S,bg as A,bh as I}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const K=30,X=c({__name:"PlaybackView",setup(T){const s=A({kw:"",range:null}),i=I([{id:"SNAP-001",ts:"2026-05-19 10:21:33",type:"调度异常",summary:"AGV-005 上线超时 → 故障",size:"128 KB"},{id:"SNAP-002",ts:"2026-05-19 14:05:17",type:"路口死锁",summary:"路口-N 等待链 3 节点 30s",size:"64 KB"},{id:"SNAP-003",ts:"2026-05-20 09:11:02",type:"手动快照",summary:"用户 admin 触发 SnapshotExport",size:"420 KB"}]);return(G,t)=>{const d=B,r=k,m=g,o=x,u=E,_=v,l=C,b=z,f=w;return V(),y(f,{shadow:"never"},{header:a(()=>[D("span",null,"调度回放(PlaybackPolicy.retentionDays="+S(K)+" 天)")]),default:a(()=>[e(u,{gutter:12},{default:a(()=>[e(r,{span:6},{default:a(()=>[e(d,{modelValue:s.kw,"onUpdate:modelValue":t[0]||(t[0]=p=>s.kw=p),placeholder:"按任务 / 车辆检索",clearable:""},null,8,["modelValue"])]),_:1}),e(r,{span:8},{default:a(()=>[e(m,{modelValue:s.range,"onUpdate:modelValue":t[1]||(t[1]=p=>s.range=p),type:"datetimerange","range-separator":"→","start-placeholder":"开始","end-placeholder":"结束",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(r,{span:10},{default:a(()=>[e(o,{type:"primary"},{default:a(()=>[...t[2]||(t[2]=[n("检索快照",-1)])]),_:1}),e(o,null,{default:a(()=>[...t[3]||(t[3]=[n("下载日志",-1)])]),_:1}),e(o,{icon:N(P),plain:""},{default:a(()=>[...t[4]||(t[4]=[n("回放选中",-1)])]),_:1},8,["icon"])]),_:1})]),_:1}),e(_),e(b,{data:i.value,stripe:""},{default:a(()=>[e(l,{prop:"id",label:"ID",width:"100"}),e(l,{prop:"ts",label:"时间",width:"180"}),e(l,{prop:"type",label:"类型",width:"140"}),e(l,{prop:"summary",label:"概要"}),e(l,{prop:"size",label:"大小",width:"100"}),e(l,{label:"操作",width:"160"},{default:a(()=>[e(o,{text:"",size:"small"},{default:a(()=>[...t[5]||(t[5]=[n("回放",-1)])]),_:1}),e(o,{text:"",size:"small"},{default:a(()=>[...t[6]||(t[6]=[n("下载",-1)])]),_:1})]),_:1})]),_:1},8,["data"])]),_:1})}}});export{X as default}; diff --git a/MiGu.Server/wwwroot/assets/ProcessPanelView-Cb7rpouy.css b/MiGu.Server/wwwroot/assets/ProcessPanelView-Cb7rpouy.css new file mode 100644 index 0000000..d0fdc22 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/ProcessPanelView-Cb7rpouy.css @@ -0,0 +1 @@ +.process-page[data-v-05b2f671]{height:calc(100vh - 56px);padding:12px 14px;box-sizing:border-box} diff --git a/MiGu.Server/wwwroot/assets/ProcessPanelView-DLKKlZA4.css b/MiGu.Server/wwwroot/assets/ProcessPanelView-DLKKlZA4.css deleted file mode 100644 index 8f09c6c..0000000 --- a/MiGu.Server/wwwroot/assets/ProcessPanelView-DLKKlZA4.css +++ /dev/null @@ -1 +0,0 @@ -.process-page[data-v-6a85813e]{height:calc(100vh - 56px);padding:12px 14px;box-sizing:border-box} diff --git a/MiGu.Server/wwwroot/assets/ProcessPanelView-Dh8TMlBL.js b/MiGu.Server/wwwroot/assets/ProcessPanelView-Dh8TMlBL.js new file mode 100644 index 0000000..be7d882 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/ProcessPanelView-Dh8TMlBL.js @@ -0,0 +1 @@ +import{R as t}from"./ReflectionManagerPanel-CqcqGxZI.js";import{aN as o,aG as e,aK as r,bs as i,ak as s}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./reflection-BwOBPyb9.js";import"./projectSaveFlow-BOHSv3Vc.js";import"./useProjectionStream-ayb6RvWW.js";import"./mapEdit-BXIATxCI.js";const p={class:"process-page"},m=o({__name:"ProcessPanelView",setup(a){return(n,c)=>(i(),e("div",p,[r(t,{kind:"process","kind-label":"进程",title:"进程管理(Mission / Process)","empty-text":"当前没有进程;点击右上角「新建进程」即可基于已加载的 MissionType 实例化一个。","show-status-column":"","status-label":"状态","status-reflection-key":"status","enable-project-save":""})]))}}),A=s(m,[["__scopeId","data-v-05b2f671"]]);export{A as default}; diff --git a/MiGu.Server/wwwroot/assets/ProcessPanelView-DoD_u6oD.js b/MiGu.Server/wwwroot/assets/ProcessPanelView-DoD_u6oD.js deleted file mode 100644 index 46d8e5d..0000000 --- a/MiGu.Server/wwwroot/assets/ProcessPanelView-DoD_u6oD.js +++ /dev/null @@ -1 +0,0 @@ -import{R as o}from"./ReflectionManagerPanel-BZQZIz4T.js";import{aI as t,aE as r,aH as e,b9 as i,ak as p}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./reflection-B_glb6eT.js";import"./useMapEditStream-BgR6WvRg.js";import"./useProjectionStream-BBHmpNXC.js";const m={class:"process-page"},s=t({__name:"ProcessPanelView",setup(a){return(n,c)=>(i(),r("div",m,[e(o,{kind:"process","kind-label":"进程",title:"进程管理(Mission / Process)","empty-text":"当前没有进程;点击右上角「新建进程」即可基于已加载的 MissionType 实例化一个。"})]))}}),z=p(s,[["__scopeId","data-v-6a85813e"]]);export{z as default}; diff --git a/MiGu.Server/wwwroot/assets/ProjectPropertiesView-DxQyu0yl.js b/MiGu.Server/wwwroot/assets/ProjectPropertiesView-wJsYQ6C1.js similarity index 60% rename from MiGu.Server/wwwroot/assets/ProjectPropertiesView-DxQyu0yl.js rename to MiGu.Server/wwwroot/assets/ProjectPropertiesView-wJsYQ6C1.js index 6f678ef..1156d3e 100644 --- a/MiGu.Server/wwwroot/assets/ProjectPropertiesView-DxQyu0yl.js +++ b/MiGu.Server/wwwroot/assets/ProjectPropertiesView-wJsYQ6C1.js @@ -1,2 +1,2 @@ -import{aI as R,bI as se,b7 as ie,b9 as l,aE as C,aB as V,bq as h,aC as i,bJ as o,ai as re,bj as ce,F as ue,aD as F,aH as n,R as de,Q as pe,bt as O,bn as me,r as fe,bi as _e,aL as ve,aG as N,bK as ye,bA as be,aa as ge,ab as ke,a8 as he,S as Ee,ad as Ce,L as we,bh as d,ax as M,X as P,Y as je,C as Le,t as Se,bg as Ve,ak as G,ac as Fe,a9 as Be}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as E}from"./reflection-B_glb6eT.js";const $e={class:"fme-root"},Ie={class:"fme-header"},xe={class:"fme-desc"},Ne={key:0,class:"fme-path"},Pe={key:1,class:"fme-path-empty"},ze={class:"fme-toolbar"},Te={class:"fme-btn-text"},De={key:0,class:"fme-locked"},Ue=R({__name:"FieldMemberEditor",props:{targetLabel:{},description:{},loader:{type:Function},onSet:{type:Function},onSave:{type:Function}},setup(B,{expose:f}){const _=B,v=d(!1),y=d(!1),w=d(""),p=d([]),j=d([]),$=d("保存"),c=Ve({}),z=d(!1),s=M(()=>{const e=w.value.trim().toLowerCase();return e?p.value.filter(t=>t.key.toLowerCase().includes(e)||t.label.toLowerCase().includes(e)):p.value}),m=M(()=>p.value.reduce((e,t)=>t.locked?e:c[t.key]!==t.value?e+1:e,0)),g=M(()=>m.value>0);function T(e){return e==="Boolean"}function D(e){return e==="Int32"||e==="Int64"||e==="Int16"||e==="Byte"}function K(e){return e==="Single"||e==="Double"||e==="Decimal"}function Q(e){const t=(e??"").trim().toLowerCase();return t==="true"||t==="1"||t==="yes"}function X(e){const t=parseInt(e,10);return Number.isFinite(t)?t:0}function Y(e){const t=parseFloat(e);return Number.isFinite(t)?t:0}function I(e){return c[e.key]??e.value}function x(e,t){c[e.key]=t}function W(e){if(e.locked)return!1;const t=c[e.key];return t!==void 0&&t!==e.value}async function k(){v.value=!0;try{const e=await _.loader();p.value=e.fields,j.value=e.pathInfos??[],e.saveButtonLabel&&($.value=e.saveButtonLabel);for(const t of e.fields)c[t.key]=t.value;for(const t of Object.keys(c))e.fields.find(u=>u.key===t)||delete c[t]}catch(e){P.error(`加载${_.targetLabel}失败:${e.message}`)}finally{v.value=!1}}function Z(){for(const e of p.value)c[e.key]=e.value}async function ee(){const e=p.value.filter(r=>!r.locked&&c[r.key]!==r.value);y.value=!0;let t=0;const u=[];for(const r of e)try{await _.onSet(r.key,c[r.key]??""),t+=1}catch(L){u.push({key:r.key,reason:L.message})}if(u.length>0){y.value=!1;try{await je.confirm(`共 ${e.length} 项改动:成功 ${t},失败 ${u.length}(首项: ${u[0].key} → ${u[0].reason})。 -是否仍要把已成功应用的改动持久化到磁盘?`,"部分字段写入失败",{confirmButtonText:"仍然保存",cancelButtonText:"取消",type:"warning"})}catch{P.warning(`已取消保存(${t} 项已写入内存,${u.length} 项未生效)`),await k();return}y.value=!0}try{const r=await _.onSave();P.success(`已保存到:${r.path}(应用 ${t} 项改动${u.length>0?`;${u.length} 项失败已忽略`:""})`),await k()}catch(r){P.error(`保存失败:${r.message}`)}finally{y.value=!1}}return se(()=>_.loader,()=>{k()}),ie(k),f({refresh:k}),(e,t)=>{const u=ue,r=Le,L=pe,H=de,U=fe,S=ke,te=he,J=Ee,A=Ce,ae=ge,le=we,oe=Se,ne=be;return l(),C("div",$e,[V("div",Ie,[V("p",xe,h(B.description),1),j.value.length>0?(l(),i(r,{key:0,column:1,size:"small",border:"",class:"fme-paths"},{default:o(()=>[(l(!0),C(re,null,ce(j.value,a=>(l(),i(u,{key:a.label,label:a.label},{default:o(()=>[a.value?(l(),C("code",Ne,h(a.value),1)):(l(),C("span",Pe,"("+h(a.emptyHint??"空")+")",1))]),_:2},1032,["label"]))),128))]),_:1})):F("",!0),V("div",ze,[n(H,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=a=>w.value=a),placeholder:"按中文/英文键过滤",size:"small",clearable:"",class:"fme-search"},{prefix:o(()=>[n(L,null,{default:o(()=>[n(O(me))]),_:1})]),_:1},8,["modelValue"]),n(U,{size:"small",loading:v.value,onClick:k},{default:o(()=>[n(L,null,{default:o(()=>[n(O(_e))]),_:1}),t[1]||(t[1]=V("span",{class:"fme-btn-text"},"刷新",-1))]),_:1},8,["loading"]),n(U,{size:"small",type:"primary",disabled:!g.value&&!z.value,loading:y.value,onClick:ee},{default:o(()=>[n(L,null,{default:o(()=>[n(O(ve))]),_:1}),V("span",Te,h($.value)+h(g.value?`(${m.value} 项未应用)`:""),1)]),_:1},8,["disabled","loading"]),g.value?(l(),i(U,{key:0,size:"small",link:"",type:"warning",onClick:Z},{default:o(()=>[...t[2]||(t[2]=[N(" 放弃未应用的改动 ",-1)])]),_:1})):F("",!0)])]),ye((l(),i(oe,{shadow:"never",class:"fme-table-card"},{default:o(()=>[n(ae,{data:s.value,stripe:"",border:"",size:"small",height:"100%",class:"fme-table","row-key":"key"},{default:o(()=>[n(S,{label:"中文说明",prop:"label","min-width":"240","show-overflow-tooltip":""}),n(S,{label:"英文键",prop:"key",width:"240","show-overflow-tooltip":""}),n(S,{label:"类型",prop:"typeName",width:"100"}),n(S,{label:"当前值(可编辑)","min-width":"260"},{default:o(({row:a})=>[a.locked?(l(),C("span",De,h(a.value)+"(🔒 锁定)",1)):T(a.typeName)?(l(),i(te,{key:1,"model-value":Q(I(a)),"onUpdate:modelValue":b=>x(a,String(!!b))},null,8,["model-value","onUpdate:modelValue"])):D(a.typeName)?(l(),i(J,{key:2,"model-value":X(I(a)),controls:!1,step:1,precision:0,size:"small",class:"fme-input","onUpdate:modelValue":b=>x(a,String(b??0))},null,8,["model-value","onUpdate:modelValue"])):K(a.typeName)?(l(),i(J,{key:3,"model-value":Y(I(a)),controls:!1,step:.1,size:"small",class:"fme-input","onUpdate:modelValue":b=>x(a,String(b??0))},null,8,["model-value","onUpdate:modelValue"])):(l(),i(H,{key:4,"model-value":I(a),size:"small",class:"fme-input","onUpdate:modelValue":b=>x(a,b)},null,8,["model-value","onUpdate:modelValue"]))]),_:1}),n(S,{label:"状态",width:"100",align:"center"},{default:o(({row:a})=>[a.locked?(l(),i(A,{key:0,size:"small",type:"info",effect:"plain"},{default:o(()=>[...t[3]||(t[3]=[N("只读",-1)])]),_:1})):W(a)?(l(),i(A,{key:1,size:"small",type:"warning",effect:"dark"},{default:o(()=>[...t[4]||(t[4]=[N("已修改",-1)])]),_:1})):(l(),i(A,{key:2,size:"small",type:"success",effect:"plain"},{default:o(()=>[...t[5]||(t[5]=[N("同步",-1)])]),_:1}))]),_:1})]),_:1},8,["data"]),!v.value&&p.value.length===0?(l(),i(le,{key:0,description:`未发现可编辑的 [FieldMember] 字段(target: ${B.targetLabel})`},null,8,["description"])):F("",!0)]),_:1})),[[ne,v.value]])])}}}),q=G(Ue,[["__scopeId","data-v-708f3ec1"]]),Ae={class:"pp-page"},Oe=R({__name:"ProjectPropertiesView",setup(B){const f=d("project"),_=d(null),v=d(null);function y(s){f.value=s}async function w(){const s=await E.getProjectFields();return{fields:s.fields,pathInfos:[{label:"最近加载/保存的项目 JSON",value:s.lastLoadedPath,emptyHint:"尚未通过 SimpleLite 加载或保存过项目"},{label:"simple.json autoload",value:s.autoloadPath,emptyHint:"未配置"}],saveButtonLabel:"保存(写回项目 JSON)"}}function p(s,m){return E.setProjectField(s,m)}async function j(){return{path:(await E.saveProject()).path}}async function $(){const s=await E.getAppConfigFields();return{fields:s.fields,pathInfos:[{label:"保存目标",value:s.savePath,emptyHint:"simple.json"}],saveButtonLabel:"保存(写入 simple.json)"}}function c(s,m){return E.setAppConfigField(s,m)}async function z(){return{path:(await E.saveAppConfig()).path}}return(s,m)=>{const g=Be,T=Fe;return l(),C("div",Ae,[n(T,{modelValue:f.value,"onUpdate:modelValue":m[0]||(m[0]=D=>f.value=D),type:"border-card",class:"pp-tabs admin-tabs",onTabChange:y},{default:o(()=>[n(g,{label:"项目属性 (Scene.conf)",name:"project"},{default:o(()=>[f.value==="project"?(l(),i(q,{key:0,ref_key:"projectEditor",ref:_,"target-label":"项目属性",description:"对应 SimpleLite 桌面端主菜单「项目属性…」。编辑字段后点「保存」即可一次完成内存生效 + 写回项目 JSON 文件(含全部场景/车辆/路径/属性)。",loader:w,"on-set":p,"on-save":j},null,512)):F("",!0)]),_:1}),n(g,{label:"核心配置 (simple.json)",name:"app-config"},{default:o(()=>[f.value==="app-config"?(l(),i(q,{key:0,ref_key:"appConfigEditor",ref:v,"target-label":"核心配置",description:"对应 SimpleLite 桌面端主菜单「核心配置 → 编辑配置…」。修改后点「保存」即可一次完成内存生效 + 写入可执行目录下的 simple.json。",loader:$,"on-set":c,"on-save":z},null,512)):F("",!0)]),_:1})]),_:1},8,["modelValue"])])}}}),st=G(Oe,[["__scopeId","data-v-b5a5a932"]]);export{st as default}; +import{aN as R,c7 as se,bp as ie,bs as l,aG as C,aD as j,bL as h,aE as i,c8 as o,ai as re,bE as ce,C as ue,aF as F,aK as n,R as de,Q as pe,bS as O,bI as me,r as fe,bD as _e,aQ as ve,aJ as x,c9 as ye,b$ as be,aa as ge,ab as ke,a8 as he,S as Ee,ad as Ce,L as we,bC as d,ay as M,X as P,Y as Se,B as Le,t as Ve,bA as je,ak as q,ac as Fe,a9 as $e}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as E}from"./reflection-BwOBPyb9.js";const Be={class:"fme-root"},Ie={class:"fme-header"},Ne={class:"fme-desc"},xe={key:0,class:"fme-path"},Pe={key:1,class:"fme-path-empty"},ze={class:"fme-toolbar"},De={class:"fme-btn-text"},Te={key:0,class:"fme-locked"},Ue=R({__name:"FieldMemberEditor",props:{targetLabel:{},description:{},loader:{type:Function},onSet:{type:Function},onSave:{type:Function}},setup($,{expose:f}){const _=$,v=d(!1),y=d(!1),w=d(""),p=d([]),S=d([]),B=d("保存"),c=je({}),z=d(!1),s=M(()=>{const e=w.value.trim().toLowerCase();return e?p.value.filter(t=>t.key.toLowerCase().includes(e)||t.label.toLowerCase().includes(e)):p.value}),m=M(()=>p.value.reduce((e,t)=>t.locked?e:c[t.key]!==t.value?e+1:e,0)),g=M(()=>m.value>0);function D(e){return e==="Boolean"}function T(e){return e==="Int32"||e==="Int64"||e==="Int16"||e==="Byte"}function G(e){return e==="Single"||e==="Double"||e==="Decimal"}function K(e){const t=(e??"").trim().toLowerCase();return t==="true"||t==="1"||t==="yes"}function X(e){const t=parseInt(e,10);return Number.isFinite(t)?t:0}function Y(e){const t=parseFloat(e);return Number.isFinite(t)?t:0}function I(e){return c[e.key]??e.value}function N(e,t){c[e.key]=t}function W(e){if(e.locked)return!1;const t=c[e.key];return t!==void 0&&t!==e.value}async function k(){v.value=!0;try{const e=await _.loader();p.value=e.fields,S.value=e.pathInfos??[],e.saveButtonLabel&&(B.value=e.saveButtonLabel);for(const t of e.fields)c[t.key]=t.value;for(const t of Object.keys(c))e.fields.find(u=>u.key===t)||delete c[t]}catch(e){P.error(`加载${_.targetLabel}失败:${e.message}`)}finally{v.value=!1}}function Z(){for(const e of p.value)c[e.key]=e.value}async function ee(){const e=p.value.filter(r=>!r.locked&&c[r.key]!==r.value);y.value=!0;let t=0;const u=[];for(const r of e)try{await _.onSet(r.key,c[r.key]??""),t+=1}catch(L){u.push({key:r.key,reason:L.message})}if(u.length>0){y.value=!1;try{await Se.confirm(`共 ${e.length} 项改动:成功 ${t},失败 ${u.length}(首项: ${u[0].key} → ${u[0].reason})。 +是否仍要把已成功应用的改动持久化到磁盘?`,"部分字段写入失败",{confirmButtonText:"仍然保存",cancelButtonText:"取消",type:"warning"})}catch{P.warning(`已取消保存(${t} 项已写入内存,${u.length} 项未生效)`),await k();return}y.value=!0}try{const r=await _.onSave();P.success(`已保存到:${r.path}(应用 ${t} 项改动${u.length>0?`;${u.length} 项失败已忽略`:""})`),await k()}catch(r){P.error(`保存失败:${r.message}`)}finally{y.value=!1}}return se(()=>_.loader,()=>{k()}),ie(k),f({refresh:k}),(e,t)=>{const u=ue,r=Le,L=pe,H=de,U=fe,V=ke,te=he,J=Ee,A=Ce,ae=ge,le=we,oe=Ve,ne=be;return l(),C("div",Be,[j("div",Ie,[j("p",Ne,h($.description),1),S.value.length>0?(l(),i(r,{key:0,column:1,size:"small",border:"",class:"fme-paths"},{default:o(()=>[(l(!0),C(re,null,ce(S.value,a=>(l(),i(u,{key:a.label,label:a.label},{default:o(()=>[a.value?(l(),C("code",xe,h(a.value),1)):(l(),C("span",Pe,"("+h(a.emptyHint??"空")+")",1))]),_:2},1032,["label"]))),128))]),_:1})):F("",!0),j("div",ze,[n(H,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=a=>w.value=a),placeholder:"按中文/英文键过滤",size:"small",clearable:"",class:"fme-search"},{prefix:o(()=>[n(L,null,{default:o(()=>[n(O(me))]),_:1})]),_:1},8,["modelValue"]),n(U,{size:"small",loading:v.value,onClick:k},{default:o(()=>[n(L,null,{default:o(()=>[n(O(_e))]),_:1}),t[1]||(t[1]=j("span",{class:"fme-btn-text"},"刷新",-1))]),_:1},8,["loading"]),n(U,{size:"small",type:"primary",disabled:!g.value&&!z.value,loading:y.value,onClick:ee},{default:o(()=>[n(L,null,{default:o(()=>[n(O(ve))]),_:1}),j("span",De,h(B.value)+h(g.value?`(${m.value} 项未应用)`:""),1)]),_:1},8,["disabled","loading"]),g.value?(l(),i(U,{key:0,size:"small",link:"",type:"warning",onClick:Z},{default:o(()=>[...t[2]||(t[2]=[x(" 放弃未应用的改动 ",-1)])]),_:1})):F("",!0)])]),ye((l(),i(oe,{shadow:"never",class:"fme-table-card"},{default:o(()=>[n(ae,{data:s.value,stripe:"",border:"",size:"small",height:"100%",class:"fme-table","row-key":"key"},{default:o(()=>[n(V,{label:"中文说明",prop:"label","min-width":"240","show-overflow-tooltip":""}),n(V,{label:"英文键",prop:"key",width:"240","show-overflow-tooltip":""}),n(V,{label:"类型",prop:"typeName",width:"100"}),n(V,{label:"当前值(可编辑)","min-width":"260"},{default:o(({row:a})=>[a.locked?(l(),C("span",Te,h(a.value)+"(🔒 锁定)",1)):D(a.typeName)?(l(),i(te,{key:1,"model-value":K(I(a)),"onUpdate:modelValue":b=>N(a,String(!!b))},null,8,["model-value","onUpdate:modelValue"])):T(a.typeName)?(l(),i(J,{key:2,"model-value":X(I(a)),controls:!1,step:1,precision:0,size:"small",class:"fme-input","onUpdate:modelValue":b=>N(a,String(b??0))},null,8,["model-value","onUpdate:modelValue"])):G(a.typeName)?(l(),i(J,{key:3,"model-value":Y(I(a)),controls:!1,step:.1,size:"small",class:"fme-input","onUpdate:modelValue":b=>N(a,String(b??0))},null,8,["model-value","onUpdate:modelValue"])):(l(),i(H,{key:4,"model-value":I(a),size:"small",class:"fme-input","onUpdate:modelValue":b=>N(a,b)},null,8,["model-value","onUpdate:modelValue"]))]),_:1}),n(V,{label:"状态",width:"100",align:"center"},{default:o(({row:a})=>[a.locked?(l(),i(A,{key:0,size:"small",type:"info",effect:"plain"},{default:o(()=>[...t[3]||(t[3]=[x("只读",-1)])]),_:1})):W(a)?(l(),i(A,{key:1,size:"small",type:"warning",effect:"dark"},{default:o(()=>[...t[4]||(t[4]=[x("已修改",-1)])]),_:1})):(l(),i(A,{key:2,size:"small",type:"success",effect:"plain"},{default:o(()=>[...t[5]||(t[5]=[x("同步",-1)])]),_:1}))]),_:1})]),_:1},8,["data"]),!v.value&&p.value.length===0?(l(),i(le,{key:0,description:`未发现可编辑的 [FieldMember] 字段(target: ${$.targetLabel})`},null,8,["description"])):F("",!0)]),_:1})),[[ne,v.value]])])}}}),Q=q(Ue,[["__scopeId","data-v-708f3ec1"]]),Ae={class:"pp-page"},Oe=R({__name:"ProjectPropertiesView",setup($){const f=d("project"),_=d(null),v=d(null);function y(s){f.value=s}async function w(){const s=await E.getProjectFields();return{fields:s.fields,pathInfos:[{label:"最近加载/保存的项目 JSON",value:s.lastLoadedPath,emptyHint:"尚未通过 SimpleLite 加载或保存过项目"},{label:"simple.json autoload",value:s.autoloadPath,emptyHint:"未配置"}],saveButtonLabel:"保存(写回项目 JSON)"}}function p(s,m){return E.setProjectField(s,m)}async function S(){return{path:(await E.saveProject()).path}}async function B(){const s=await E.getAppConfigFields();return{fields:s.fields,pathInfos:[{label:"保存目标",value:s.savePath,emptyHint:"simple.json"}],saveButtonLabel:"保存(写入 simple.json)"}}function c(s,m){return E.setAppConfigField(s,m)}async function z(){return{path:(await E.saveAppConfig()).path}}return(s,m)=>{const g=$e,D=Fe;return l(),C("div",Ae,[n(D,{modelValue:f.value,"onUpdate:modelValue":m[0]||(m[0]=T=>f.value=T),type:"border-card",class:"pp-tabs admin-tabs",onTabChange:y},{default:o(()=>[n(g,{label:"项目属性 (Scene.conf)",name:"project"},{default:o(()=>[f.value==="project"?(l(),i(Q,{key:0,ref_key:"projectEditor",ref:_,"target-label":"项目属性",description:"对应 SimpleLite 桌面端主菜单「项目属性…」。编辑字段后点「保存」即可一次完成内存生效 + 写回项目 JSON 文件(含全部场景/车辆/路径/属性)。",loader:w,"on-set":p,"on-save":S},null,512)):F("",!0)]),_:1}),n(g,{label:"核心配置 (simple.json)",name:"app-config"},{default:o(()=>[f.value==="app-config"?(l(),i(Q,{key:0,ref_key:"appConfigEditor",ref:v,"target-label":"核心配置",description:"对应 SimpleLite 桌面端主菜单「核心配置 → 编辑配置…」。修改后点「保存」即可一次完成内存生效 + 写入可执行目录下的 simple.json。",loader:B,"on-set":c,"on-save":z},null,512)):F("",!0)]),_:1})]),_:1},8,["modelValue"])])}}}),st=q(Oe,[["__scopeId","data-v-b5a5a932"]]);export{st as default}; diff --git a/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-BZQZIz4T.js b/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-BZQZIz4T.js deleted file mode 100644 index 692617f..0000000 --- a/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-BZQZIz4T.js +++ /dev/null @@ -1,4 +0,0 @@ -import{aI as xe,bI as Ce,b7 as Ve,b9 as o,aC as r,bJ as a,aE as v,L as Ne,bK as Se,bA as ze,aa as Be,aH as n,ab as De,ad as Te,aG as p,bq as w,ag as Le,r as Pe,aD as _,aB as c,bt as W,am as fl,bi as Ee,ax as j,bh as f,X as m,Y,t as Fe,ak as Ue,R as yl,Q as bl,bn as gl,ai as D,bc as $e,ar as _l,K as kl,bj as ae,J as hl,ay as wl,bL as ne,F as $l,a8 as xl,z as Cl,S as Vl,C as Nl,b3 as Sl,G as zl,N as Bl,a1 as Dl,a0 as Tl,O as Ll,bg as Pl,I as El}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import{r as C}from"./reflection-B_glb6eT.js";import{u as Fl}from"./useMapEditStream-BgR6WvRg.js";const Ul={class:"plg-header"},Al={class:"plg-title"},Il={key:0},Kl=xe({__name:"PluginListPanel",props:{visible:{type:Boolean}},emits:["changed"],setup($,{expose:ie,emit:g}){const A=$,H=g,T=j(()=>A.visible!==!1),I=f([]),L=f(!1),S=f(!0),G=f(null);async function P(){L.value=!0;try{I.value=await C.listPlugins()}catch(y){m.warning(`插件列表加载失败:${y.message}(旧版 SimpleLite 可能未带 /plugins 接口,请重启)`)}finally{L.value=!1}}async function J(y){try{await Y.confirm(`确认卸载插件 ${y.name}? - -此插件贡献了 ${y.missionTypes} 个进程类型 / ${y.carTypes} 个车/脚本类型;如果当前还有这些类型的实例存在,卸载会失败(请先在管理面板里删除)。`,"卸载插件",{type:"warning",confirmButtonText:"卸载",cancelButtonText:"取消"})}catch{return}G.value=y.name;try{const k=await C.unloadPlugin(y.name);m.success(k.message??`已卸载 ${y.name}`),H("changed"),await P()}catch(k){m.error(`卸载失败:${k.message}`)}finally{G.value=null}}return Ce(()=>A.visible,y=>{y&&P()}),Ve(()=>{T.value&&P()}),ie({refresh:P}),(y,k)=>{const E=Pe,Q=Ne,B=De,K=Te,R=Le,X=Be,u=Fe,F=ze;return T.value?(o(),r(u,{key:0,shadow:"never",class:"plugin-list-card"},{header:a(()=>[c("div",Ul,[c("span",Al,"已加载插件 ("+w(I.value.length)+")",1),n(E,{text:"",size:"small",icon:W(fl),class:"plg-collapse",onClick:k[0]||(k[0]=x=>S.value=!S.value)},{default:a(()=>[p(w(S.value?"展开":"折叠"),1)]),_:1},8,["icon"]),n(E,{size:"small",loading:L.value,icon:W(Ee),onClick:P},{default:a(()=>[...k[1]||(k[1]=[p("刷新",-1)])]),_:1},8,["loading","icon"])])]),default:a(()=>[S.value?_("",!0):(o(),v("div",Il,[!L.value&&I.value.length===0?(o(),r(Q,{key:0,description:"尚未通过 PluginManager 加载任何插件 (重启 SimpleLite 后会自动迁移现有 plugins/ 内的 dll)"})):Se((o(),r(X,{key:1,data:I.value,size:"small",stripe:"",border:"",class:"plg-table"},{default:a(()=>[n(B,{prop:"name",label:"插件名",width:"200","show-overflow-tooltip":""}),n(B,{prop:"assemblyVersion",label:"版本",width:"120"}),n(B,{label:"类型贡献",width:"200"},{default:a(({row:x})=>[n(K,{size:"small",type:"success",effect:"plain",class:"plg-tag"},{default:a(()=>[p(" 进程 "+w(x.missionTypes),1)]),_:2},1024),n(K,{size:"small",type:"primary",effect:"plain",class:"plg-tag"},{default:a(()=>[p(" 车/脚本 "+w(x.carTypes),1)]),_:2},1024),n(K,{size:"small",type:"info",effect:"plain",class:"plg-tag"},{default:a(()=>[p(" 共 "+w(x.loadedTypes)+" type ",1)]),_:2},1024)]),_:1}),n(B,{prop:"dllPath",label:"路径","min-width":"240","show-overflow-tooltip":""}),n(B,{label:"状态",width:"120"},{default:a(({row:x})=>[x.collectible?(o(),r(K,{key:0,size:"small",type:"success"},{default:a(()=>[...k[2]||(k[2]=[p("可卸载",-1)])]),_:1})):(o(),r(R,{key:1,content:"此插件被加到 default ALC(旧路径加载),重启 SimpleLite 后会自动迁移到 collectible",placement:"top"},{default:a(()=>[n(K,{size:"small",type:"warning"},{default:a(()=>[...k[3]||(k[3]=[p("不可卸载",-1)])]),_:1})]),_:1}))]),_:1}),n(B,{label:"操作",width:"100"},{default:a(({row:x})=>[n(E,{text:"",size:"small",type:"danger",disabled:!x.collectible,loading:G.value===x.name,onClick:M=>J(x)},{default:a(()=>[...k[4]||(k[4]=[p(" 卸载 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1},8,["data"])),[[F,L.value]])]))]),_:1})):_("",!0)}}}),Rl=Ue(Kl,[["__scopeId","data-v-d89a2aa6"]]),Ml={class:"ref-mgr-page"},Ol={class:"ref-mgr-header"},jl={class:"ref-mgr-title"},Wl={class:"ref-mgr-actions"},Gl={class:"ref-type-asm"},Xl={class:"ref-mgr-body"},Yl={class:"detail-header"},Zl={class:"detail-title"},ql={class:"detail-id"},Hl={class:"detail-name"},Jl={class:"detail-actions"},Ql={class:"field-section"},et={class:"field-section-title"},lt={key:1,class:"field-empty"},tt={class:"field-section"},at={class:"field-section-title"},nt={class:"dyn-row"},ot={key:1,class:"field-empty"},st={key:0,class:"field-section"},it={class:"field-section-title"},ut=["title"],dt={class:"field-section"},rt={class:"field-section-title"},ct={key:0,class:"field-empty"},mt={key:0,class:"method-grid script-method-grid"},pt=["disabled"],vt={key:0,class:"method-btn-spin"},ft={key:1,class:"method-btn-icon"},yt=["disabled"],bt={key:0,class:"method-btn-spin"},gt={key:1,class:"method-btn-icon"},_t={key:1,class:"field-empty"},kt={key:2,class:"method-grid"},ht=["disabled","onClick"],wt={key:0,class:"method-btn-spin"},$t={key:1,class:"method-btn-icon"},xt={class:"method-btn-label"},Ct={key:2,class:"method-btn-tag"},Vt=xe({__name:"ReflectionManagerPanel",props:{kind:{},kindLabel:{},title:{},emptyText:{},disableCreate:{type:Boolean},disableDelete:{type:Boolean},showSummaryColumn:{type:Boolean},summaryLabel:{},showStatusColumn:{type:Boolean},statusLabel:{},showScriptActions:{type:Boolean}},setup($,{expose:ie}){const g=$,A=f(!1),H=f(!1),T=f(null),I=f(null),L=f(null),S=f(null),G=f(!1),P=f(!1),J=f(""),y=f(null),k=f(null),E=f(!1),Q=f(""),B=f(""),K=f(null),R=f([]),X=f([]),u=f(null),F=f([]),x=f([]),M=f([]),ue=j(()=>F.value.filter(l=>l.source!=="dynamic")),de=j(()=>F.value.filter(l=>l.source==="dynamic")),re=j(()=>!!g.showScriptActions&&g.kind==="script"&&!!u.value),Ae=j(()=>M.value.length+(re.value?2:0)),Ie=j(()=>{let l=110;return g.showScriptActions&&g.kind==="script"&&(l+=130),g.disableDelete||(l+=60),l}),pe=j(()=>{const l=J.value.trim().toLowerCase();return l?R.value.filter(e=>String(e.id).includes(l)||(e.name??"").toLowerCase().includes(l)||(e.typeName??"").toLowerCase().includes(l)):R.value}),Ke=new Set(["process","mission","car","vehicle"]),Re=j(()=>Ke.has(g.kind));async function z(){A.value=!0;try{const[l,e]=await Promise.all([C.listObjects(g.kind),C.listCreatableTypes(g.kind).catch(()=>[])]);R.value=l,X.value=e,u.value&&!R.value.find(i=>i.id===u.value.id)&&(u.value=null,F.value=[],M.value=[],x.value=[])}catch(l){m.error(`加载 ${g.kindLabel} 失败:${l.message}`)}finally{A.value=!1}}async function U(l){if(u.value=l,F.value=[],M.value=[],x.value=[],!!l){H.value=!0;try{const e=l.subKind??g.kind,i=await C.getBundle(e,l.id);i.fieldList&&i.fieldList.length>0?F.value=i.fieldList.map(d=>({...d})):F.value=Object.entries(i.fields??{}).map(([d,b])=>({key:d,value:String(b),source:"dynamic"})),M.value=i.methods??[],x.value=i.status??[]}catch(e){m.error(`加载详情失败:${e.message}`)}finally{H.value=!1}}}function ee(l){return l?.subKind??g.kind}async function Me(){G.value=!0;try{const l=await C.reloadPlugins();m.success(`已扫描 plugins/ 目录:发现 ${l.totalDlls} dll,新加载 ${l.newlyLoaded};进程类型 ${l.missionTypes}、车辆/脚本类型 ${l.carTypes}`),await z(),K.value?.refresh()}catch(l){m.error(`刷新插件失败:${l.message}`)}finally{G.value=!1}}const le=f(!1),V=f(""),s=Pl({name:"",layer:"",x:0,y:0,z:0,siteA:0,siteB:0,trackKind:"line",imagePath:"",modelPath:"",content:"Text"});function Oe(l){switch(l){case"site":return"站点";case"track":return"路径";case"image":return"图片";case"text":return"文本";case"model":return"模型";case"car":return"车辆";default:return l}}function ve(l){const e=l??(g.kind==="special"?"image":g.kind==="scene"?"site":g.kind==="vehicle"?"car":g.kind);V.value=e,s.name="",s.layer="",s.x=0,s.y=0,s.z=0,s.siteA=0,s.siteB=0,s.trackKind="line",s.imagePath="",s.modelPath="",s.content="Text",le.value=!0}ie({openCreateForm:ve,refresh:z});async function fe(){P.value=!0;try{const l=V.value;let e=l;const i={name:s.name||void 0,layer:s.layer||void 0};l==="site"?(i.x=s.x,i.y=s.y,i.z=s.z):l==="track"?(e=s.trackKind==="line"?"track":s.trackKind,i.siteA=s.siteA,i.siteB=s.siteB):l==="image"?(i.x=s.x,i.y=s.y,i.imagePath=s.imagePath):l==="text"?(i.x=s.x,i.y=s.y,i.content=s.content):l==="model"?(i.x=s.x,i.y=s.y,i.modelPath=s.modelPath):l==="car"&&(i.x=s.x,i.y=s.y);const d=await C.createObject(e,"",i);m.success(`已创建 ${d.typeName??l} #${d.id}`),le.value=!1,await z();const b=R.value.find(oe=>oe.id===d.id);b&&await U(b)}catch(l){m.error(`创建失败:${l.message}`)}finally{P.value=!1}}async function je(l){try{let e;try{e=(await Y.prompt(`为新${g.kindLabel}指定名称(可空,留空使用默认名)`,`新建${g.kindLabel}`,{inputValue:"",confirmButtonText:"创建",cancelButtonText:"取消"})).value||void 0}catch{return}const i=await C.createObject(g.kind,l,{name:e});m.success(`已创建 ${i.typeName} #${i.id}`),await z();const d=R.value.find(b=>b.id===i.id);d&&await U(d)}catch(e){m.error(`创建失败:${e.message}`)}}async function We(l){try{await Y.confirm(`确认删除 ${l.typeName} #${l.id} (${l.name})?该操作无法撤销。`,`删除${g.kindLabel}`,{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消"})}catch{return}I.value=l.id;try{const e=ee(l);await C.deleteObject(e,l.id),m.success(`已删除 ${l.typeName} #${l.id}`),u.value?.id===l.id&&(u.value=null),await z()}catch(e){m.error(`删除失败:${e.message}`)}finally{I.value=null}}async function Z(l,e){if(u.value){S.value=l;try{const i=ee(u.value);await C.setField(i,u.value.id,l,e),m.success(`已更新 ${l}`)}catch(i){m.error(`更新 ${l} 失败:${i.message}`),await U(u.value)}finally{S.value=null}}}async function Ge(l){if(u.value){try{await Y.confirm(`确认删除动态字段 "${l}"?`,"删除字段",{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消"})}catch{return}L.value=l;try{const e=ee(u.value);await C.deleteField(e,u.value.id,l),m.success(`已删除字段 ${l}`),await U(u.value)}catch(e){m.error(`删除字段失败:${e.message}`)}finally{L.value=null}}}async function Xe(){if(!u.value)return;let l="";try{l=(await Y.prompt("字段名(key)","添加动态字段",{inputValidator:d=>!!d&&/^[A-Za-z_][A-Za-z0-9_\-]*$/.test(d)||"只允许字母/数字/下划线/横线,且首字符非数字",confirmButtonText:"下一步",cancelButtonText:"取消"})).value}catch{return}let e="";try{e=(await Y.prompt(`字段 "${l}" 的初始值(可空)`,"添加动态字段",{inputValue:"",confirmButtonText:"保存",cancelButtonText:"取消"})).value}catch{return}if(F.value.find(i=>i.key===l)){m.warning(`字段 ${l} 已存在,请直接编辑`);return}await Z(l,e),await U(u.value)}async function ye(l){if(l)try{const e=ee(l);await C.setSelection(e,l.id),m.success(`已在 3D 视口高亮 ${l.typeName??e} #${l.id}`)}catch(e){m.error(`高亮失败:${e.message}`)}}async function be(l){if(l){y.value="source",k.value=l.id;try{const e=await C.getScriptSource(l.id);Q.value=`脚本 ${e.name||e.typeName}(#${e.id}) 内容`,B.value=e.script||"(无脚本)",E.value=!0}catch(e){m.error(`查看脚本失败:${e.message}`)}finally{y.value=null,k.value=null}}}async function ge(l){if(l){y.value="status",k.value=l.id;try{const e=await C.getScriptExceptionStatus(l.id);Q.value=`脚本 ${e.name||e.typeName}(#${e.id}) 异常状态`,B.value=e.report||"(无异常状态)",E.value=!0}catch(e){m.error(`查看异常状态失败:${e.message}`)}finally{y.value=null,k.value=null}}}function Ye(){u.value&&be(u.value)}function Ze(){u.value&&ge(u.value)}function _e(l,e){return k.value===l.id&&y.value===e}async function qe(){try{await navigator.clipboard.writeText(B.value),m.success("已复制到剪贴板")}catch{m.warning("复制失败,请手动选择文本复制")}}async function He(l){if(!u.value)return;const e=ee(u.value);if(l.hasParams){const i={};for(const d of l.params)try{const b=await Y.prompt(`参数 ${d.name} (${d.typeName})`+(d.hasDefault?` -默认: ${d.defaultValue}`:""),`调用 ${l.label??l.methodName}`,{inputValue:d.defaultValue??""});i[d.name]=b.value}catch{return}T.value=l.methodName;try{const d=await C.execute(e,u.value.id,l.methodName,i);m.success(`${l.label??l.methodName} 完成${d.returnValue?`:${d.returnValue}`:""}`),await U(u.value)}catch(d){m.error(`执行失败:${d.message}`)}finally{T.value=null}return}T.value=l.methodName;try{const i=await C.execute(e,u.value.id,l.methodName);m.success(`${l.label??l.methodName} 完成${i.returnValue?`:${i.returnValue}`:""}`),await U(u.value)}catch(i){m.error(`执行失败:${i.message}`)}finally{T.value=null}}function Je(l){return l.typeName==="Boolean"?!0:l.value==="true"||l.value==="false"||l.value==="True"||l.value==="False"}function Qe(l){return l.key==="color"||l.key==="textColor"?!0:/^#[0-9a-fA-F]{3,8}$/.test(l.value)}function el(l){return l.typeName?["Int32","Int64","Single","Double","Decimal","UInt32","UInt64"].includes(l.typeName):!1}function ll(l){return l==="true"||l==="True"||l==="1"}function tl(l){if(l==null||l==="")return;const e=Number(l);return Number.isFinite(e)?e:void 0}function al(l){const e=l.typeName?.trim();return e&&e!=="String"?`${l.key} (${e})`:l.key}function nl(l){const e=(l.value??"").trim();return e||(l.typeName?`(空 · ${l.typeName})`:"(空)")}function ol(l){if((l.typeName??"").endsWith("[]"))return!0;const i=(l.value??"").trim();return i.startsWith("[")||i.startsWith("{")}return Fl({onObjectCreated:()=>z(),onObjectDeleted:()=>z(),onObjectPatched:()=>{u.value&&U(u.value)},onObjectBatchChanged:()=>z()}),Ce(()=>g.kind,z),Ve(z),(l,e)=>{const i=bl,d=yl,b=Pe,oe=hl,sl=kl,il=El,te=Le,q=De,ul=Be,ke=Ne,he=Fe,dl=Te,rl=xl,cl=Cl,O=Vl,ce=$l,me=Nl,se=Tl,ml=Dl,N=Ll,pl=Bl,we=zl,vl=ze;return o(),v("div",Ml,[n(Rl,{ref_key:"pluginPanelRef",ref:K,visible:!0,onChanged:z},null,512),c("div",Ol,[c("h2",jl,w($.title),1),c("div",Wl,[n(d,{modelValue:J.value,"onUpdate:modelValue":e[0]||(e[0]=t=>J.value=t),placeholder:`搜索 ${$.kindLabel} (id / 名称 / 类型)`,size:"small",clearable:"",class:"ref-mgr-search"},{prefix:a(()=>[n(i,null,{default:a(()=>[n(W(gl))]),_:1})]),_:1},8,["modelValue","placeholder"]),$.disableCreate?_("",!0):(o(),v(D,{key:0},[Re.value?(o(),r(il,{key:0,trigger:"click",disabled:X.value.length===0,onCommand:je},{dropdown:a(()=>[n(sl,null,{default:a(()=>[(o(!0),v(D,null,ae(X.value,t=>(o(),r(oe,{key:t.typeName,command:t.typeName},{default:a(()=>[p(w(t.label)+" ",1),c("span",Gl,"· "+w(t.shortName),1)]),_:2},1032,["command"]))),128)),X.value.length===0?(o(),r(oe,{key:0,disabled:""},{default:a(()=>[...e[20]||(e[20]=[p(" 未发现可创建的子类型 ",-1)])]),_:1})):_("",!0)]),_:1})]),default:a(()=>[n(b,{type:"primary",size:"small",icon:W($e),disabled:X.value.length===0},{default:a(()=>[p(" 新建"+w($.kindLabel),1),n(i,{class:"el-icon--right"},{default:a(()=>[n(W(_l))]),_:1})]),_:1},8,["icon","disabled"])]),_:1},8,["disabled"])):(o(),r(b,{key:1,type:"primary",size:"small",icon:W($e),onClick:e[1]||(e[1]=t=>ve())},{default:a(()=>[p(" 新建"+w($.kindLabel),1)]),_:1},8,["icon"]))],64)),n(te,{content:"重新扫描 ./plugins 目录加载新增 .dll,并重建可创建类型列表",placement:"bottom"},{default:a(()=>[n(b,{size:"small",loading:G.value,icon:W(wl),onClick:Me},{default:a(()=>[...e[21]||(e[21]=[p(" 刷新插件 ",-1)])]),_:1},8,["loading","icon"])]),_:1}),n(b,{size:"small",loading:A.value,icon:W(Ee),onClick:z},{default:a(()=>[...e[22]||(e[22]=[p("刷新",-1)])]),_:1},8,["loading","icon"])])]),c("div",Xl,[n(he,{shadow:"never",class:"ref-mgr-list-card"},{default:a(()=>[Se((o(),r(ul,{data:pe.value,stripe:"",border:"",size:"small","highlight-current-row":"",class:"ref-mgr-table",onCurrentChange:U},{default:a(()=>[n(q,{prop:"id",label:"ID",width:"70"}),n(q,{prop:"name",label:"名称","min-width":"160"}),n(q,{prop:"typeName",label:"类型",width:"160","show-overflow-tooltip":""}),$.showSummaryColumn?(o(),r(q,{key:0,prop:"summary",label:$.summaryLabel??"概况","min-width":"160","show-overflow-tooltip":""},null,8,["label"])):_("",!0),$.showStatusColumn?(o(),r(q,{key:1,prop:"status",label:$.statusLabel??"状态",width:"120","show-overflow-tooltip":""},null,8,["label"])):_("",!0),n(q,{label:"操作",width:Ie.value},{default:a(({row:t})=>[n(b,{text:"",size:"small",onClick:ne(h=>ye(t),["stop"])},{default:a(()=>[...e[23]||(e[23]=[p(" 3D 高亮 ",-1)])]),_:1},8,["onClick"]),$.showScriptActions&&$.kind==="script"?(o(),v(D,{key:0},[n(b,{text:"",size:"small",loading:_e(t,"source"),disabled:y.value!==null,onClick:ne(h=>be(t),["stop"])},{default:a(()=>[...e[24]||(e[24]=[p(" 查看脚本 ",-1)])]),_:1},8,["loading","disabled","onClick"]),n(b,{text:"",size:"small",loading:_e(t,"status"),disabled:y.value!==null,onClick:ne(h=>ge(t),["stop"])},{default:a(()=>[...e[25]||(e[25]=[p(" 异常状态 ",-1)])]),_:1},8,["loading","disabled","onClick"])],64)):_("",!0),$.disableDelete?_("",!0):(o(),r(b,{key:1,text:"",size:"small",type:"danger",loading:I.value===t.id,onClick:ne(h=>We(t),["stop"])},{default:a(()=>[...e[26]||(e[26]=[p(" 删除 ",-1)])]),_:1},8,["loading","onClick"]))]),_:1},8,["width"])]),_:1},8,["data"])),[[vl,A.value]]),!A.value&&pe.value.length===0?(o(),r(ke,{key:0,description:$.emptyText},null,8,["description"])):_("",!0)]),_:1}),n(he,{shadow:"never",class:"ref-mgr-detail-card"},{default:a(()=>[u.value?(o(),v(D,{key:1},[c("div",Yl,[c("div",Zl,[n(dl,{size:"small",type:"info"},{default:a(()=>[p(w(u.value.typeName),1)]),_:1}),c("span",ql,"#"+w(u.value.id),1),c("span",Hl,w(u.value.name),1)]),c("div",Jl,[c("button",{class:"header-action-btn",onClick:e[2]||(e[2]=t=>ye(u.value))},"在 3D 中高亮")])]),c("div",Ql,[c("div",et,"强类型字段 ("+w(ue.value.length)+")",1),ue.value.length>0?(o(),r(me,{key:0,column:2,border:"",size:"small"},{default:a(()=>[(o(!0),v(D,null,ae(ue.value,t=>(o(),r(ce,{key:t.key,label:t.key,"label-style":t.locked?{color:"#aaa"}:void 0},{default:a(()=>[Je(t)?(o(),r(rl,{key:0,"model-value":ll(t.value),disabled:!!t.locked||S.value===t.key,size:"small",onChange:h=>Z(t.key,h?"true":"false")},null,8,["model-value","disabled","onChange"])):Qe(t)?(o(),r(cl,{key:1,"model-value":t.value||"#ffffff",disabled:!!t.locked||S.value===t.key,"show-alpha":"",size:"small",onChange:h=>Z(t.key,h??"")},null,8,["model-value","disabled","onChange"])):el(t)?(o(),r(O,{key:2,"model-value":tl(t.value),controls:!1,disabled:!!t.locked||S.value===t.key,size:"small",class:"field-num",onChange:h=>Z(t.key,h==null?"":String(h))},null,8,["model-value","disabled","onChange"])):(o(),r(d,{key:3,modelValue:t.value,"onUpdate:modelValue":h=>t.value=h,size:"small",disabled:!!t.locked||S.value===t.key,onChange:h=>Z(t.key,h)},null,8,["modelValue","onUpdate:modelValue","disabled","onChange"]))]),_:2},1032,["label","label-style"]))),128))]),_:1})):(o(),v("div",lt,"该对象未声明任何 [FieldMember]"))]),c("div",tt,[c("div",at,[c("span",null,"动态字段 ("+w(de.value.length)+")",1),c("button",{class:"add-field-btn",onClick:Xe},"+ 添加字段")]),de.value.length>0?(o(),r(me,{key:0,column:1,border:"",size:"small"},{default:a(()=>[(o(!0),v(D,null,ae(de.value,t=>(o(),r(ce,{key:t.key,label:t.key},{default:a(()=>[c("div",nt,[n(d,{modelValue:t.value,"onUpdate:modelValue":h=>t.value=h,size:"small",disabled:S.value===t.key,onChange:h=>Z(t.key,h)},null,8,["modelValue","onUpdate:modelValue","disabled","onChange"]),n(te,{content:"删除该字段",placement:"top"},{default:a(()=>[n(b,{size:"small",text:"",type:"danger",loading:L.value===t.key,onClick:h=>Ge(t.key)},{default:a(()=>[...e[27]||(e[27]=[p(" 删除 ",-1)])]),_:1},8,["loading","onClick"])]),_:2},1024)])]),_:2},1032,["label"]))),128))]),_:1})):(o(),v("div",ot,"尚无动态字段;点击右上角「+ 添加字段」"))]),x.value.length>0?(o(),v("div",st,[c("div",it,"运行状态 (只读, "+w(x.value.length)+")",1),n(me,{column:1,border:"",size:"small"},{default:a(()=>[(o(!0),v(D,null,ae(x.value,t=>(o(),r(ce,{key:t.key,label:al(t)},{default:a(()=>[c("span",{class:Sl(["status-value",{"status-value--array":ol(t)}]),title:t.typeName},w(nl(t)),11,ut)]),_:2},1032,["label"]))),128))]),_:1})])):_("",!0),c("div",dt,[c("div",rt,"动作 / 方法 ("+w(Ae.value)+")",1),H.value?(o(),v("div",ct,"加载方法中…")):(o(),v(D,{key:1},[re.value?(o(),v("div",mt,[n(te,{content:"弹窗展示当前 CarProgram 的完整 script 内容",placement:"top"},{default:a(()=>[c("button",{class:"method-btn",disabled:y.value!==null,onClick:Ye},[y.value==="source"?(o(),v("span",vt,"⟳")):(o(),v("span",ft,"▶")),e[28]||(e[28]=c("span",{class:"method-btn-label"},"查看脚本",-1))],8,pt)]),_:1}),n(te,{content:"弹窗展示 state、exception、notifies 等异常状态报告",placement:"top"},{default:a(()=>[c("button",{class:"method-btn",disabled:y.value!==null,onClick:Ze},[y.value==="status"?(o(),v("span",bt,"⟳")):(o(),v("span",gt,"▶")),e[29]||(e[29]=c("span",{class:"method-btn-label"},"查看异常状态",-1))],8,yt)]),_:1})])):_("",!0),M.value.length===0&&!re.value?(o(),v("div",_t,"该类型未暴露 [MethodMember]")):M.value.length>0?(o(),v("div",kt,[(o(!0),v(D,null,ae(M.value,t=>(o(),r(te,{key:t.methodName,content:t.description??t.hint??"",disabled:!t.description&&!t.hint,placement:"top"},{default:a(()=>[c("button",{class:"method-btn",disabled:T.value===t.methodName,onClick:h=>He(t)},[T.value===t.methodName?(o(),v("span",wt,"⟳")):(o(),v("span",$t,"▶")),c("span",xt,w(t.label??t.methodName),1),t.hasParams?(o(),v("span",Ct,"带参")):_("",!0)],8,ht)]),_:2},1032,["content","disabled"]))),128))])):_("",!0)],64))])],64)):(o(),r(ke,{key:0,description:"左侧选中一行查看 / 编辑详情"}))]),_:1})]),n(we,{modelValue:le.value,"onUpdate:modelValue":e[17]||(e[17]=t=>le.value=t),title:`新建 ${$.kindLabel}${V.value?" · "+Oe(V.value):""}`,width:"480px","append-to-body":""},{footer:a(()=>[n(b,{onClick:e[16]||(e[16]=t=>le.value=!1)},{default:a(()=>[...e[34]||(e[34]=[p("取消",-1)])]),_:1}),n(b,{type:"primary",loading:P.value,onClick:fe},{default:a(()=>[...e[35]||(e[35]=[p("创建",-1)])]),_:1},8,["loading"])]),default:a(()=>[n(pl,{model:s,size:"small","label-width":"100px",onSubmit:ne(fe,["prevent"])},{default:a(()=>[V.value==="track"?(o(),r(N,{key:0,label:"路径类型"},{default:a(()=>[n(ml,{modelValue:s.trackKind,"onUpdate:modelValue":e[3]||(e[3]=t=>s.trackKind=t)},{default:a(()=>[n(se,{value:"line"},{default:a(()=>[...e[30]||(e[30]=[p("直线",-1)])]),_:1}),n(se,{value:"bezier"},{default:a(()=>[...e[31]||(e[31]=[p("贝塞尔",-1)])]),_:1}),n(se,{value:"arc"},{default:a(()=>[...e[32]||(e[32]=[p("圆弧",-1)])]),_:1}),n(se,{value:"nurbs"},{default:a(()=>[...e[33]||(e[33]=[p("NURBS",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):_("",!0),n(N,{label:"名称"},{default:a(()=>[n(d,{modelValue:s.name,"onUpdate:modelValue":e[4]||(e[4]=t=>s.name=t),placeholder:"(可空,留空走默认名)"},null,8,["modelValue"])]),_:1}),n(N,{label:"图层"},{default:a(()=>[n(d,{modelValue:s.layer,"onUpdate:modelValue":e[5]||(e[5]=t=>s.layer=t),placeholder:"g / main / ..."},null,8,["modelValue"])]),_:1}),["site","image","text","model"].includes(V.value)?(o(),v(D,{key:1},[n(N,{label:"X (mm)"},{default:a(()=>[n(O,{modelValue:s.x,"onUpdate:modelValue":e[6]||(e[6]=t=>s.x=t),controls:!1},null,8,["modelValue"])]),_:1}),n(N,{label:"Y (mm)"},{default:a(()=>[n(O,{modelValue:s.y,"onUpdate:modelValue":e[7]||(e[7]=t=>s.y=t),controls:!1},null,8,["modelValue"])]),_:1}),V.value==="site"?(o(),r(N,{key:0,label:"Z (mm)"},{default:a(()=>[n(O,{modelValue:s.z,"onUpdate:modelValue":e[8]||(e[8]=t=>s.z=t),controls:!1},null,8,["modelValue"])]),_:1})):_("",!0)],64)):_("",!0),V.value==="track"?(o(),v(D,{key:2},[n(N,{label:"起点站 ID"},{default:a(()=>[n(O,{modelValue:s.siteA,"onUpdate:modelValue":e[9]||(e[9]=t=>s.siteA=t),controls:!1,min:1},null,8,["modelValue"])]),_:1}),n(N,{label:"终点站 ID"},{default:a(()=>[n(O,{modelValue:s.siteB,"onUpdate:modelValue":e[10]||(e[10]=t=>s.siteB=t),controls:!1,min:1},null,8,["modelValue"])]),_:1})],64)):_("",!0),V.value==="image"?(o(),r(N,{key:3,label:"图片路径"},{default:a(()=>[n(d,{modelValue:s.imagePath,"onUpdate:modelValue":e[11]||(e[11]=t=>s.imagePath=t),placeholder:"/uploads/xxxxx.png"},null,8,["modelValue"])]),_:1})):_("",!0),V.value==="model"?(o(),r(N,{key:4,label:"模型路径"},{default:a(()=>[n(d,{modelValue:s.modelPath,"onUpdate:modelValue":e[12]||(e[12]=t=>s.modelPath=t),placeholder:"/uploads/xxxxx.glb"},null,8,["modelValue"])]),_:1})):_("",!0),V.value==="text"?(o(),r(N,{key:5,label:"文本"},{default:a(()=>[n(d,{modelValue:s.content,"onUpdate:modelValue":e[13]||(e[13]=t=>s.content=t),placeholder:"Text"},null,8,["modelValue"])]),_:1})):_("",!0),V.value==="car"?(o(),r(N,{key:6,label:"X (mm)"},{default:a(()=>[n(O,{modelValue:s.x,"onUpdate:modelValue":e[14]||(e[14]=t=>s.x=t),controls:!1},null,8,["modelValue"])]),_:1})):_("",!0),V.value==="car"?(o(),r(N,{key:7,label:"Y (mm)"},{default:a(()=>[n(O,{modelValue:s.y,"onUpdate:modelValue":e[15]||(e[15]=t=>s.y=t),controls:!1},null,8,["modelValue"])]),_:1})):_("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),n(we,{modelValue:E.value,"onUpdate:modelValue":e[19]||(e[19]=t=>E.value=t),title:Q.value,width:"720px","append-to-body":""},{footer:a(()=>[n(b,{onClick:qe},{default:a(()=>[...e[36]||(e[36]=[p("复制",-1)])]),_:1}),n(b,{type:"primary",onClick:e[18]||(e[18]=t=>E.value=!1)},{default:a(()=>[...e[37]||(e[37]=[p("关闭",-1)])]),_:1})]),default:a(()=>[n(d,{"model-value":B.value,type:"textarea",autosize:{minRows:16,maxRows:26},readonly:"",class:"script-dialog-textarea"},null,8,["model-value"])]),_:1},8,["modelValue","title"])])}}}),Ht=Ue(Vt,[["__scopeId","data-v-ddd8ee18"]]);export{Ht as R}; diff --git a/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-Bsiwi559.css b/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-Bsiwi559.css new file mode 100644 index 0000000..1e690d3 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-Bsiwi559.css @@ -0,0 +1 @@ +.plugin-list-card[data-v-d89a2aa6]{background:#1e0e378c!important;border:1px solid rgba(255,255,255,.08)!important;backdrop-filter:blur(12px);margin-bottom:12px}.plg-header[data-v-d89a2aa6]{display:flex;align-items:center;gap:8px}.plg-title[data-v-d89a2aa6]{font-size:14px;font-weight:600;color:var(--mg-text-light)}.plg-collapse[data-v-d89a2aa6]{margin-left:auto}.plg-tag[data-v-d89a2aa6]{margin-right:4px;margin-bottom:2px}.plg-table[data-v-d89a2aa6],[data-v-d89a2aa6] .el-table{background:transparent}[data-v-d89a2aa6] .el-table tr,[data-v-d89a2aa6] .el-table th.el-table__cell,[data-v-d89a2aa6] .el-table td.el-table__cell{background:transparent!important;color:var(--mg-text-light);border-color:var(--mg-divider)}[data-v-d89a2aa6] .el-card__header{padding:10px 14px;border-bottom:1px solid var(--mg-divider)}.ref-mgr-page[data-v-19454213]{height:100%;display:flex;flex-direction:column;gap:12px;color:var(--mg-text-light)}.ref-mgr-header[data-v-19454213]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0 4px;border-bottom:1px solid var(--mg-divider)}.ref-mgr-title[data-v-19454213]{margin:0;font-size:16px;font-weight:600;color:var(--el-text-color-primary, #fff);letter-spacing:.5px}.ref-mgr-actions[data-v-19454213]{display:flex;align-items:center;gap:8px}.ref-mgr-search[data-v-19454213]{width:280px}.ref-type-asm[data-v-19454213]{margin-left:6px;color:var(--mg-text-dim);font-size:11px}.ref-mgr-body[data-v-19454213]{flex:1;display:grid;grid-template-columns:minmax(380px,.9fr) 1.4fr;gap:12px;min-height:0}.ref-mgr-list-card[data-v-19454213],.ref-mgr-detail-card[data-v-19454213]{background:#1e0e378c!important;border:1px solid rgba(255,255,255,.08)!important;backdrop-filter:blur(12px);height:100%;display:flex;flex-direction:column}.ref-mgr-list-card[data-v-19454213] .el-card__body,.ref-mgr-detail-card[data-v-19454213] .el-card__body{flex:1;overflow:auto;padding:12px}.ref-mgr-table[data-v-19454213]{flex:1;min-height:240px}.detail-header[data-v-19454213]{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding-bottom:10px;border-bottom:1px dashed var(--mg-veil-border)}.detail-title[data-v-19454213]{display:flex;align-items:baseline;gap:10px}.detail-actions[data-v-19454213]{display:flex;align-items:center;gap:8px}.detail-id[data-v-19454213]{color:var(--mg-text-dim);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px}.detail-name[data-v-19454213]{color:var(--el-text-color-primary, #fff);font-size:15px;font-weight:600}.detail-tabs[data-v-19454213] .el-tabs__header{margin-bottom:0}.detail-tabs[data-v-19454213] .el-tabs__item{color:var(--mg-text-muted)!important}.detail-tabs[data-v-19454213] .el-tabs__item.is-active{color:var(--mg-text-light)!important}.detail-tab-body[data-v-19454213]{flex:1;min-height:0;overflow:auto;padding-top:10px}.field-section[data-v-19454213]{margin-top:14px}.field-section--first[data-v-19454213]{margin-top:0}.field-section-title[data-v-19454213]{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600;color:var(--el-text-color-primary, rgba(255, 255, 255, .85));margin-bottom:8px;letter-spacing:.4px}.field-empty[data-v-19454213]{color:var(--mg-text-dim);font-size:12px;padding:6px 2px}.status-value[data-v-19454213]{display:inline-block;max-width:100%;word-break:break-word;line-height:1.45}.status-value--array[data-v-19454213]{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;color:var(--mg-text-muted)}.method-grid[data-v-19454213]{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}.script-method-grid[data-v-19454213]{margin-bottom:8px}.method-btn[data-v-19454213]{appearance:none;border:0;cursor:pointer;padding:8px 12px;border-radius:7px;background:linear-gradient(135deg,#aa6efa4d,#7846dc4d);border:1px solid rgba(170,110,250,.55);color:#fff;font-size:12.5px;font-weight:500;letter-spacing:.3px;display:flex;align-items:center;gap:6px;text-align:left;transition:background .14s ease,border-color .14s ease,transform .12s ease,box-shadow .14s ease}.method-btn[data-v-19454213]:hover:not(:disabled){background:linear-gradient(135deg,#aa6efab8,#ff6edc9e);border-color:#ff82dcc7;box-shadow:0 4px 14px #b45adc6b}.method-btn[data-v-19454213]:active:not(:disabled){transform:scale(.985)}.method-btn[data-v-19454213]:disabled{opacity:.55;cursor:progress}.method-btn-icon[data-v-19454213]{font-size:10px;color:#ffc8fad9;flex:none}.method-btn-spin[data-v-19454213]{display:inline-block;font-size:13px;animation:ref-spin-19454213 .8s linear infinite}.method-btn-label[data-v-19454213]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.method-btn-tag[data-v-19454213]{flex:none;padding:1px 6px;border-radius:4px;background:#ffffff2e;font-size:10px;letter-spacing:.4px}@keyframes ref-spin-19454213{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.add-field-btn[data-v-19454213]{appearance:none;border:0;cursor:pointer;padding:4px 10px;border-radius:6px;background:#aa6efa2e;border:1px dashed rgba(170,110,250,.45);color:#ffe6fff2;font-size:12px;font-weight:500;transition:background .14s ease,border-color .14s ease,color .14s ease}.add-field-btn[data-v-19454213]:hover{background:#aa6efa57;border-color:#aa6efabf;color:#fff}.header-action-btn[data-v-19454213]{appearance:none;border:0;cursor:pointer;padding:6px 14px;border-radius:6px;background:linear-gradient(135deg,#aa6efa52,#7846dc52);border:1px solid rgba(170,110,250,.55);color:#fff;font-size:12.5px;font-weight:500;letter-spacing:.4px;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease}.header-action-btn[data-v-19454213]:hover{background:linear-gradient(135deg,#aa6efab8,#ff6edc9e);border-color:#ff82dcc7;box-shadow:0 3px 10px #b45adc66}.script-dialog-textarea[data-v-19454213] .el-textarea__inner{font-family:ui-monospace,Menlo,Consolas,monospace;line-height:1.45}.dyn-row[data-v-19454213]{display:flex;align-items:center;gap:8px}.field-num[data-v-19454213] .el-input-number{width:100%}[data-v-19454213] .el-descriptions__title{color:var(--mg-text-light)!important;font-size:13px;font-weight:600}[data-v-19454213] .el-descriptions__label{color:var(--mg-text-muted)}[data-v-19454213] .el-descriptions__content{color:var(--mg-text-light)}[data-v-19454213] .el-table{background:transparent}[data-v-19454213] .el-table__inner-wrapper,[data-v-19454213] .el-table tr,[data-v-19454213] .el-table th.el-table__cell,[data-v-19454213] .el-table td.el-table__cell{background:transparent!important;color:var(--mg-text-light);border-color:var(--mg-divider)}[data-v-19454213] .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--mg-veil-1)!important}[data-v-19454213] .el-table__body tr.current-row>td.el-table__cell{background:#aa6efa33!important}:root[data-theme=fame-lavender] .method-btn[data-v-19454213],:root[data-theme=fame-lavender] .header-action-btn[data-v-19454213]{background:#7c3aed;border-color:#7c3aed;color:#fff}:root[data-theme=fame-lavender] .method-btn[data-v-19454213]:hover:not(:disabled),:root[data-theme=fame-lavender] .header-action-btn[data-v-19454213]:hover{background:#6d28d9;border-color:#6d28d9;box-shadow:0 4px 14px #7c3aed59}:root[data-theme=fame-lavender] .method-btn-icon[data-v-19454213]{color:#ffffffd9}:root[data-theme=fame-lavender] .method-btn-tag[data-v-19454213]{background:#ffffff47}:root[data-theme=fame-lavender] .add-field-btn[data-v-19454213]{background:#7c3aed1f;border-color:#7c3aed80;color:#6d28d9}:root[data-theme=fame-lavender] .add-field-btn[data-v-19454213]:hover{background:#7c3aed38;border-color:#7c3aedb3;color:#5b21b6} diff --git a/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-Btm77NGt.css b/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-Btm77NGt.css deleted file mode 100644 index 4ce4363..0000000 --- a/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-Btm77NGt.css +++ /dev/null @@ -1 +0,0 @@ -.plugin-list-card[data-v-d89a2aa6]{background:#1e0e378c!important;border:1px solid rgba(255,255,255,.08)!important;backdrop-filter:blur(12px);margin-bottom:12px}.plg-header[data-v-d89a2aa6]{display:flex;align-items:center;gap:8px}.plg-title[data-v-d89a2aa6]{font-size:14px;font-weight:600;color:var(--mg-text-light)}.plg-collapse[data-v-d89a2aa6]{margin-left:auto}.plg-tag[data-v-d89a2aa6]{margin-right:4px;margin-bottom:2px}.plg-table[data-v-d89a2aa6],[data-v-d89a2aa6] .el-table{background:transparent}[data-v-d89a2aa6] .el-table tr,[data-v-d89a2aa6] .el-table th.el-table__cell,[data-v-d89a2aa6] .el-table td.el-table__cell{background:transparent!important;color:var(--mg-text-light);border-color:var(--mg-divider)}[data-v-d89a2aa6] .el-card__header{padding:10px 14px;border-bottom:1px solid var(--mg-divider)}.ref-mgr-page[data-v-ddd8ee18]{height:100%;display:flex;flex-direction:column;gap:12px;color:var(--mg-text-light)}.ref-mgr-header[data-v-ddd8ee18]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0 4px;border-bottom:1px solid var(--mg-divider)}.ref-mgr-title[data-v-ddd8ee18]{margin:0;font-size:16px;font-weight:600;color:var(--el-text-color-primary, #fff);letter-spacing:.5px}.ref-mgr-actions[data-v-ddd8ee18]{display:flex;align-items:center;gap:8px}.ref-mgr-search[data-v-ddd8ee18]{width:280px}.ref-type-asm[data-v-ddd8ee18]{margin-left:6px;color:var(--mg-text-dim);font-size:11px}.ref-mgr-body[data-v-ddd8ee18]{flex:1;display:grid;grid-template-columns:minmax(380px,.9fr) 1.4fr;gap:12px;min-height:0}.ref-mgr-list-card[data-v-ddd8ee18],.ref-mgr-detail-card[data-v-ddd8ee18]{background:#1e0e378c!important;border:1px solid rgba(255,255,255,.08)!important;backdrop-filter:blur(12px);height:100%;display:flex;flex-direction:column}.ref-mgr-list-card[data-v-ddd8ee18] .el-card__body,.ref-mgr-detail-card[data-v-ddd8ee18] .el-card__body{flex:1;overflow:auto;padding:12px}.ref-mgr-table[data-v-ddd8ee18]{flex:1;min-height:240px}.detail-header[data-v-ddd8ee18]{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding-bottom:10px;border-bottom:1px dashed var(--mg-veil-border)}.detail-title[data-v-ddd8ee18]{display:flex;align-items:baseline;gap:10px}.detail-actions[data-v-ddd8ee18]{display:flex;align-items:center;gap:8px}.detail-id[data-v-ddd8ee18]{color:var(--mg-text-dim);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px}.detail-name[data-v-ddd8ee18]{color:var(--el-text-color-primary, #fff);font-size:15px;font-weight:600}.field-section[data-v-ddd8ee18]{margin-top:14px}.field-section-title[data-v-ddd8ee18]{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600;color:var(--el-text-color-primary, rgba(255, 255, 255, .85));margin-bottom:8px;letter-spacing:.4px}.field-empty[data-v-ddd8ee18]{color:var(--mg-text-dim);font-size:12px;padding:6px 2px}.status-value[data-v-ddd8ee18]{display:inline-block;max-width:100%;word-break:break-word;line-height:1.45}.status-value--array[data-v-ddd8ee18]{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;color:var(--mg-text-muted)}.method-grid[data-v-ddd8ee18]{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}.script-method-grid[data-v-ddd8ee18]{margin-bottom:8px}.method-btn[data-v-ddd8ee18]{appearance:none;border:0;cursor:pointer;padding:8px 12px;border-radius:7px;background:linear-gradient(135deg,#aa6efa4d,#7846dc4d);border:1px solid rgba(170,110,250,.55);color:#fff;font-size:12.5px;font-weight:500;letter-spacing:.3px;display:flex;align-items:center;gap:6px;text-align:left;transition:background .14s ease,border-color .14s ease,transform .12s ease,box-shadow .14s ease}.method-btn[data-v-ddd8ee18]:hover:not(:disabled){background:linear-gradient(135deg,#aa6efab8,#ff6edc9e);border-color:#ff82dcc7;box-shadow:0 4px 14px #b45adc6b}.method-btn[data-v-ddd8ee18]:active:not(:disabled){transform:scale(.985)}.method-btn[data-v-ddd8ee18]:disabled{opacity:.55;cursor:progress}.method-btn-icon[data-v-ddd8ee18]{font-size:10px;color:#ffc8fad9;flex:none}.method-btn-spin[data-v-ddd8ee18]{display:inline-block;font-size:13px;animation:ref-spin-ddd8ee18 .8s linear infinite}.method-btn-label[data-v-ddd8ee18]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.method-btn-tag[data-v-ddd8ee18]{flex:none;padding:1px 6px;border-radius:4px;background:#ffffff2e;font-size:10px;letter-spacing:.4px}@keyframes ref-spin-ddd8ee18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.add-field-btn[data-v-ddd8ee18]{appearance:none;border:0;cursor:pointer;padding:4px 10px;border-radius:6px;background:#aa6efa2e;border:1px dashed rgba(170,110,250,.45);color:#ffe6fff2;font-size:12px;font-weight:500;transition:background .14s ease,border-color .14s ease,color .14s ease}.add-field-btn[data-v-ddd8ee18]:hover{background:#aa6efa57;border-color:#aa6efabf;color:#fff}.header-action-btn[data-v-ddd8ee18]{appearance:none;border:0;cursor:pointer;padding:6px 14px;border-radius:6px;background:linear-gradient(135deg,#aa6efa52,#7846dc52);border:1px solid rgba(170,110,250,.55);color:#fff;font-size:12.5px;font-weight:500;letter-spacing:.4px;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease}.header-action-btn[data-v-ddd8ee18]:hover{background:linear-gradient(135deg,#aa6efab8,#ff6edc9e);border-color:#ff82dcc7;box-shadow:0 3px 10px #b45adc66}.script-dialog-textarea[data-v-ddd8ee18] .el-textarea__inner{font-family:ui-monospace,Menlo,Consolas,monospace;line-height:1.45}.dyn-row[data-v-ddd8ee18]{display:flex;align-items:center;gap:8px}.field-num[data-v-ddd8ee18] .el-input-number{width:100%}[data-v-ddd8ee18] .el-descriptions__title{color:var(--mg-text-light)!important;font-size:13px;font-weight:600}[data-v-ddd8ee18] .el-descriptions__label{color:var(--mg-text-muted)}[data-v-ddd8ee18] .el-descriptions__content{color:var(--mg-text-light)}[data-v-ddd8ee18] .el-table{background:transparent}[data-v-ddd8ee18] .el-table__inner-wrapper,[data-v-ddd8ee18] .el-table tr,[data-v-ddd8ee18] .el-table th.el-table__cell,[data-v-ddd8ee18] .el-table td.el-table__cell{background:transparent!important;color:var(--mg-text-light);border-color:var(--mg-divider)}[data-v-ddd8ee18] .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--mg-veil-1)!important}[data-v-ddd8ee18] .el-table__body tr.current-row>td.el-table__cell{background:#aa6efa33!important}:root[data-theme=fame-lavender] .method-btn[data-v-ddd8ee18],:root[data-theme=fame-lavender] .header-action-btn[data-v-ddd8ee18]{background:#7c3aed;border-color:#7c3aed;color:#fff}:root[data-theme=fame-lavender] .method-btn[data-v-ddd8ee18]:hover:not(:disabled),:root[data-theme=fame-lavender] .header-action-btn[data-v-ddd8ee18]:hover{background:#6d28d9;border-color:#6d28d9;box-shadow:0 4px 14px #7c3aed59}:root[data-theme=fame-lavender] .method-btn-icon[data-v-ddd8ee18]{color:#ffffffd9}:root[data-theme=fame-lavender] .method-btn-tag[data-v-ddd8ee18]{background:#ffffff47}:root[data-theme=fame-lavender] .add-field-btn[data-v-ddd8ee18]{background:#7c3aed1f;border-color:#7c3aed80;color:#6d28d9}:root[data-theme=fame-lavender] .add-field-btn[data-v-ddd8ee18]:hover{background:#7c3aed38;border-color:#7c3aedb3;color:#5b21b6} diff --git a/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-CqcqGxZI.js b/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-CqcqGxZI.js new file mode 100644 index 0000000..afd78a1 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/ReflectionManagerPanel-CqcqGxZI.js @@ -0,0 +1,4 @@ +import{aN as Me,c7 as Ue,bp as Oe,bs as o,aE as c,c8 as a,aG as v,L as We,c9 as Je,b$ as qe,aa as Xe,aK as n,ab as Ye,ad as Qe,aJ as g,bL as h,ag as Ze,r as Ge,aF as _,aD as b,bS as M,am as Kt,bD as He,ay as N,bC as p,X as f,Y as G,t as et,ak as tt,bX as Ft,R as Rt,Q as It,bI as At,ai as z,bv as Ae,as as jt,K as Mt,bE as de,J as Ut,az as Ot,aQ as Wt,cb as ce,ac as Jt,a9 as qt,C as Xt,a8 as Yt,z as Qt,S as Zt,bk as Gt,F as Ht,N as el,a1 as tl,a0 as ll,O as al,bA as nl,I as ol,B as sl,bj as il}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import{r as $}from"./reflection-BwOBPyb9.js";import{u as ul,a as rl,e as dl}from"./projectSaveFlow-BOHSv3Vc.js";const cl=new Set(["car","vehicle","site","track","special"]);function ml(y){return cl.has(y)}function pl(y){return y==="vehicle"||y==="car"?"car":y==="site"||y==="track"||y==="special"?y:null}const vl="/admin/map-monitor";function fl(y,le){return{focusKind:y,focusId:String(le)}}const yl=new Set(["car","site","track","special","process"]);function je(y){return yl.has(y)}const bl={class:"plg-header"},gl={class:"plg-title"},_l={key:0},kl=Me({__name:"PluginListPanel",props:{visible:{type:Boolean}},emits:["changed"],setup(y,{expose:le,emit:ge}){const m=y,Q=ge,H=N(()=>m.visible!==!1),L=p([]),R=p(!1),U=p(!0),E=p(null);async function I(){R.value=!0;try{L.value=await $.listPlugins()}catch(x){f.warning(`插件列表加载失败:${x.message}(旧版 SimpleLite 可能未带 /plugins 接口,请重启)`)}finally{R.value=!1}}async function A(x){try{await G.confirm(`确认卸载插件 ${x.name}? + +此插件贡献了 ${x.missionTypes} 个进程类型 / ${x.carTypes} 个车/脚本类型;如果当前还有这些类型的实例存在,卸载会失败(请先在管理面板里删除)。`,"卸载插件",{type:"warning",confirmButtonText:"卸载",cancelButtonText:"取消"})}catch{return}E.value=x.name;try{const w=await $.unloadPlugin(x.name);f.success(w.message??`已卸载 ${x.name}`),Q("changed"),await I()}catch(w){f.error(`卸载失败:${w.message}`)}finally{E.value=null}}return Ue(()=>m.visible,x=>{x&&I()}),Oe(()=>{H.value&&I()}),le({refresh:I}),(x,w)=>{const Z=Ge,V=We,T=Ye,D=Qe,ae=Ze,ee=Xe,me=et,pe=qe;return H.value?(o(),c(me,{key:0,shadow:"never",class:"plugin-list-card"},{header:a(()=>[b("div",bl,[b("span",gl,"已加载插件 ("+h(L.value.length)+")",1),n(Z,{text:"",size:"small",icon:M(Kt),class:"plg-collapse",onClick:w[0]||(w[0]=C=>U.value=!U.value)},{default:a(()=>[g(h(U.value?"展开":"折叠"),1)]),_:1},8,["icon"]),n(Z,{size:"small",loading:R.value,icon:M(He),onClick:I},{default:a(()=>[...w[1]||(w[1]=[g("刷新",-1)])]),_:1},8,["loading","icon"])])]),default:a(()=>[U.value?_("",!0):(o(),v("div",_l,[!R.value&&L.value.length===0?(o(),c(V,{key:0,description:"尚未通过 PluginManager 加载任何插件 (重启 SimpleLite 后会自动迁移现有 plugins/ 内的 dll)"})):Je((o(),c(ee,{key:1,data:L.value,size:"small",stripe:"",border:"",class:"plg-table"},{default:a(()=>[n(T,{prop:"name",label:"插件名",width:"200","show-overflow-tooltip":""}),n(T,{prop:"assemblyVersion",label:"版本",width:"120"}),n(T,{label:"类型贡献",width:"200"},{default:a(({row:C})=>[n(D,{size:"small",type:"success",effect:"plain",class:"plg-tag"},{default:a(()=>[g(" 进程 "+h(C.missionTypes),1)]),_:2},1024),n(D,{size:"small",type:"primary",effect:"plain",class:"plg-tag"},{default:a(()=>[g(" 车/脚本 "+h(C.carTypes),1)]),_:2},1024),n(D,{size:"small",type:"info",effect:"plain",class:"plg-tag"},{default:a(()=>[g(" 共 "+h(C.loadedTypes)+" type ",1)]),_:2},1024)]),_:1}),n(T,{prop:"dllPath",label:"路径","min-width":"240","show-overflow-tooltip":""}),n(T,{label:"状态",width:"120"},{default:a(({row:C})=>[C.collectible?(o(),c(D,{key:0,size:"small",type:"success"},{default:a(()=>[...w[2]||(w[2]=[g("可卸载",-1)])]),_:1})):(o(),c(ae,{key:1,content:"此插件被加到 default ALC(旧路径加载),重启 SimpleLite 后会自动迁移到 collectible",placement:"top"},{default:a(()=>[n(D,{size:"small",type:"warning"},{default:a(()=>[...w[3]||(w[3]=[g("不可卸载",-1)])]),_:1})]),_:1}))]),_:1}),n(T,{label:"操作",width:"100"},{default:a(({row:C})=>[n(Z,{text:"",size:"small",type:"danger",disabled:!C.collectible,loading:E.value===C.name,onClick:K=>A(C)},{default:a(()=>[...w[4]||(w[4]=[g(" 卸载 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),_:1})]),_:1},8,["data"])),[[pe,R.value]])]))]),_:1})):_("",!0)}}}),hl=tt(kl,[["__scopeId","data-v-d89a2aa6"]]),wl={class:"ref-mgr-page"},$l={class:"ref-mgr-header"},xl={class:"ref-mgr-title"},Cl={class:"ref-mgr-actions"},Vl={class:"ref-type-asm"},Sl={class:"ref-mgr-body"},Pl={class:"detail-header"},Nl={class:"detail-title"},Tl={class:"detail-id"},Bl={class:"detail-name"},zl={key:0,class:"detail-actions"},Ll={class:"detail-tab-body"},El={class:"field-section field-section--first"},Dl={class:"field-section-title"},Kl={key:1,class:"field-empty"},Fl={class:"field-section"},Rl={class:"field-section-title"},Il={class:"dyn-row"},Al={key:1,class:"field-empty"},jl={key:1,class:"field-section field-section--first"},Ml={class:"field-section-title"},Ul=["title"],Ol={key:1,class:"field-empty"},Wl={key:2,class:"field-section field-section--first"},Jl={class:"field-section-title"},ql={key:0,class:"field-empty"},Xl={key:0,class:"method-grid script-method-grid"},Yl=["disabled"],Ql={key:0,class:"method-btn-spin"},Zl={key:1,class:"method-btn-icon"},Gl=["disabled"],Hl={key:0,class:"method-btn-spin"},ea={key:1,class:"method-btn-icon"},ta={key:1,class:"field-empty"},la={key:2,class:"method-grid"},aa=["disabled","onClick"],na={key:0,class:"method-btn-spin"},oa={key:1,class:"method-btn-icon"},sa={class:"method-btn-label"},ia={key:2,class:"method-btn-tag"},ua=Me({__name:"ReflectionManagerPanel",props:{kind:{},kindLabel:{},title:{},emptyText:{},disableCreate:{type:Boolean},disableDelete:{type:Boolean},showSummaryColumn:{type:Boolean},summaryLabel:{},showStatusColumn:{type:Boolean},statusLabel:{},statusReflectionKey:{},showScriptActions:{type:Boolean},autoSaveProject:{type:Boolean},enableProjectSave:{type:Boolean},saveButtonLabel:{}},setup(y,{expose:le}){const ge=Ft(),m=y,Q=p(!1),H=p(!1),L=p(null),R=p(null),U=p(null),E=p(null),I=p(!1),A=p(!1),x=p(null),w=p(!1),Z=p(""),V=p(null),T=p(null),D=p(!1),ae=p(""),ee=p(""),me=p(null),pe=p(null),C=p(null),K=p([]),ne=p([]),d=p(null),oe=p("properties"),O=p([]),W=p([]),J=p([]),_e=N(()=>O.value.filter(t=>t.source!=="dynamic")),ke=N(()=>O.value.filter(t=>t.source==="dynamic")),he=N(()=>!!m.showScriptActions&&m.kind==="script"&&!!d.value),lt=N(()=>J.value.length+(he.value?2:0)),ve=N(()=>ml(m.kind)),Ce=N(()=>m.enableProjectSave??je(m.kind)),Ve=N(()=>m.autoSaveProject??je(m.kind)),Se=N(()=>m.saveButtonLabel??"保存"),at=N(()=>x.value?`将当前内存项目写回 JSON;上次保存:${x.value}`:"将场景/车辆/进程等修改写回项目 JSON,下次启动可自动加载"),nt=N(()=>{let t=0;return ve.value&&(t+=90),m.showScriptActions&&m.kind==="script"&&(t+=130),m.disableDelete||(t+=60),Math.max(t,72)}),Pe=N(()=>{const t=Z.value.trim().toLowerCase();return t?K.value.filter(e=>String(e.id).includes(t)||(e.name??"").toLowerCase().includes(t)||(e.typeName??"").toLowerCase().includes(t)):K.value}),ot=new Set(["process","mission","car","vehicle"]),st=N(()=>ot.has(m.kind));function Ne(t,e){const u=t.find(r=>r.key===e)?.value?.trim();return u||null}async function it(t){const e=m.statusReflectionKey;if(!m.showStatusColumn||!e||t.length===0)return t;const s=6,u=t.slice();let r=0;const F=async()=>{for(;rF.id===t);r<0||K.value[r].status!==u&&(K.value[r].status=u)}function Te(t){if(t==null)return;const e=K.value.find(s=>s.id===t);e&&il(()=>pe.value?.setCurrentRow(e))}async function B(){Q.value=!0;const t=d.value?.id??null;try{const[e,s]=await Promise.all([$.listObjects(m.kind),$.listCreatableTypes(m.kind).catch(()=>[])]);K.value=await it(e),ne.value=s;const u=t!=null?K.value.find(r=>r.id===t):void 0;u?(d.value=u,Te(u.id)):t!=null&&(d.value=null,O.value=[],J.value=[],W.value=[])}catch(e){f.error(`加载 ${m.kindLabel} 失败:${e.message}`)}finally{Q.value=!1}}async function j(t){if(!t){if(C.value!=null)return;d.value=null,O.value=[],J.value=[],W.value=[];return}const e=d.value?.id===t.id;d.value=t,e||(oe.value="properties"),O.value=[],J.value=[],W.value=[],C.value=t.id,H.value=!0;try{const s=t.subKind??m.kind,u=await $.getBundle(s,t.id);u.fieldList&&u.fieldList.length>0?O.value=u.fieldList.map(r=>({...r})):O.value=Object.entries(u.fields??{}).map(([r,F])=>({key:r,value:String(F),source:"dynamic"})),J.value=u.methods??[],W.value=u.status??[],ut(t.id,W.value),Te(t.id)}catch(s){f.error(`加载详情失败:${s.message}`)}finally{H.value=!1,C.value=null}}function se(t){return t?.subKind??m.kind}async function rt(t){if(!Ce.value&&!Ve.value)return!0;if(A.value)return!1;A.value=!0;try{const e=await $.saveProject();return x.value=e.path,t?.quiet,!0}catch(e){return f.warning({message:`保存项目到本地失败:${e.message}`,grouping:!0}),!1}finally{A.value=!1}}async function ie(){if(!Ve.value)return;await rt({quiet:!0})||f.warning({message:`变更已生效于内存,但未能写入项目文件,请稍后点击「${Se.value}」重试`,grouping:!0,duration:5e3})}async function dt(){const t=await rl();if(t!=="cancel"&&!A.value){A.value=!0;try{const e=await dl(t);e&&(x.value=e,f.success({message:`项目已保存:${e}`,grouping:!0}))}catch(e){f.warning({message:`保存项目到本地失败:${e.message}`,grouping:!0})}finally{A.value=!1}}}async function ct(){I.value=!0;try{const t=await $.reloadPlugins();f.success(`已扫描 plugins/ 目录:发现 ${t.totalDlls} dll,新加载 ${t.newlyLoaded};进程类型 ${t.missionTypes}、车辆/脚本类型 ${t.carTypes}`),await B(),me.value?.refresh()}catch(t){f.error(`刷新插件失败:${t.message}`)}finally{I.value=!1}}const ue=p(!1),S=p(""),i=nl({name:"",layer:"",x:0,y:0,z:0,siteA:0,siteB:0,trackKind:"line",imagePath:"",modelPath:"",content:"Text"});function mt(t){switch(t){case"site":return"站点";case"track":return"路径";case"image":return"图片";case"text":return"文本";case"model":return"模型";case"car":return"车辆";default:return t}}function Be(t){const e=t??(m.kind==="special"?"image":m.kind==="scene"?"site":m.kind==="vehicle"?"car":m.kind);S.value=e,i.name="",i.layer="",i.x=0,i.y=0,i.z=0,i.siteA=0,i.siteB=0,i.trackKind="line",i.imagePath="",i.modelPath="",i.content="Text",ue.value=!0}le({openCreateForm:Be,refresh:B});async function ze(){w.value=!0;try{const t=S.value;let e=t;const s={name:i.name||void 0,layer:i.layer||void 0};t==="site"?(s.x=i.x,s.y=i.y,s.z=i.z):t==="track"?(e=i.trackKind==="line"?"track":i.trackKind,s.siteA=i.siteA,s.siteB=i.siteB):t==="image"?(s.x=i.x,s.y=i.y,s.imagePath=i.imagePath):t==="text"?(s.x=i.x,s.y=i.y,s.content=i.content):t==="model"?(s.x=i.x,s.y=i.y,s.modelPath=i.modelPath):t==="car"&&(s.x=i.x,s.y=i.y);const u=await $.createObject(e,"",s);f.success(`已创建 ${u.typeName??t} #${u.id}`),ue.value=!1,await B();const r=K.value.find(F=>F.id===u.id);r&&await j(r),await ie()}catch(t){f.error(`创建失败:${t.message}`)}finally{w.value=!1}}async function pt(t){try{let e;try{e=(await G.prompt(`为新${m.kindLabel}指定名称(可空,留空使用默认名)`,`新建${m.kindLabel}`,{inputValue:"",confirmButtonText:"创建",cancelButtonText:"取消"})).value||void 0}catch{return}const s=await $.createObject(m.kind,t,{name:e});f.success(`已创建 ${s.typeName} #${s.id}`),await B();const u=K.value.find(r=>r.id===s.id);u&&await j(u),await ie()}catch(e){f.error(`创建失败:${e.message}`)}}async function vt(t){try{await G.confirm(`确认删除 ${t.typeName} #${t.id} (${t.name})?该操作无法撤销。`,`删除${m.kindLabel}`,{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消"})}catch{return}R.value=t.id;try{const e=se(t);await $.deleteObject(e,t.id),f.success(`已删除 ${t.typeName} #${t.id}`),d.value?.id===t.id&&(d.value=null),await B(),await ie()}catch(e){f.error(`删除失败:${e.message}`)}finally{R.value=null}}async function te(t,e){if(d.value){E.value=t;try{const s=se(d.value);await $.setField(s,d.value.id,t,e),f.success(`已更新 ${t}`),await ie()}catch(s){f.error(`更新 ${t} 失败:${s.message}`),await j(d.value)}finally{E.value=null}}}async function ft(t){if(d.value){try{await G.confirm(`确认删除动态字段 "${t}"?`,"删除字段",{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消"})}catch{return}U.value=t;try{const e=se(d.value);await $.deleteField(e,d.value.id,t),f.success(`已删除字段 ${t}`),await j(d.value),await ie()}catch(e){f.error(`删除字段失败:${e.message}`)}finally{U.value=null}}}async function yt(){if(!d.value)return;let t="";try{t=(await G.prompt("字段名(key)","添加动态字段",{inputValidator:u=>!!u&&/^[A-Za-z_][A-Za-z0-9_\-]*$/.test(u)||"只允许字母/数字/下划线/横线,且首字符非数字",confirmButtonText:"下一步",cancelButtonText:"取消"})).value}catch{return}let e="";try{e=(await G.prompt(`字段 "${t}" 的初始值(可空)`,"添加动态字段",{inputValue:"",confirmButtonText:"保存",cancelButtonText:"取消"})).value}catch{return}if(O.value.find(s=>s.key===t)){f.warning(`字段 ${t} 已存在,请直接编辑`);return}await te(t,e),await j(d.value)}async function Le(t){if(!t||!ve.value)return;const e=se(t),s=pl(e);if(s)try{await ge.push({path:vl,query:fl(s,t.id)})}catch(u){f.error(`跳转地图失败:${u.message}`)}}async function Ee(t){if(t){V.value="source",T.value=t.id;try{const e=await $.getScriptSource(t.id);ae.value=`脚本 ${e.name||e.typeName}(#${e.id}) 内容`,ee.value=e.script||"(无脚本)",D.value=!0}catch(e){f.error(`查看脚本失败:${e.message}`)}finally{V.value=null,T.value=null}}}async function De(t){if(t){V.value="status",T.value=t.id;try{const e=await $.getScriptExceptionStatus(t.id);ae.value=`脚本 ${e.name||e.typeName}(#${e.id}) 异常状态`,ee.value=e.report||"(无异常状态)",D.value=!0}catch(e){f.error(`查看异常状态失败:${e.message}`)}finally{V.value=null,T.value=null}}}function bt(){d.value&&Ee(d.value)}function gt(){d.value&&De(d.value)}function Ke(t,e){return T.value===t.id&&V.value===e}async function _t(){try{await navigator.clipboard.writeText(ee.value),f.success("已复制到剪贴板")}catch{f.warning("复制失败,请手动选择文本复制")}}async function kt(t){if(!d.value)return;const e=se(d.value);if(t.hasParams){const s={};for(const u of t.params)try{const r=await G.prompt(`参数 ${u.name} (${u.typeName})`+(u.hasDefault?` +默认: ${u.defaultValue}`:""),`调用 ${t.label??t.methodName}`,{inputValue:u.defaultValue??""});s[u.name]=r.value}catch{return}L.value=t.methodName;try{const u=await $.execute(e,d.value.id,t.methodName,s);f.success(`${t.label??t.methodName} 完成${u.returnValue?`:${u.returnValue}`:""}`),await j(d.value)}catch(u){f.error(`执行失败:${u.message}`)}finally{L.value=null}return}L.value=t.methodName;try{const s=await $.execute(e,d.value.id,t.methodName);f.success(`${t.label??t.methodName} 完成${s.returnValue?`:${s.returnValue}`:""}`),await j(d.value)}catch(s){f.error(`执行失败:${s.message}`)}finally{L.value=null}}function ht(t){return t.typeName==="Boolean"?!0:t.value==="true"||t.value==="false"||t.value==="True"||t.value==="False"}function wt(t){return t.key==="color"||t.key==="textColor"?!0:/^#[0-9a-fA-F]{3,8}$/.test(t.value)}function $t(t){return t.typeName?["Int32","Int64","Single","Double","Decimal","UInt32","UInt64"].includes(t.typeName):!1}function xt(t){return t==="true"||t==="True"||t==="1"}function Ct(t){if(t==null||t==="")return;const e=Number(t);return Number.isFinite(e)?e:void 0}function Vt(t){const e=t.typeName?.trim();return e&&e!=="String"?`${t.key} (${e})`:t.key}function St(t){const e=(t.value??"").trim();return e||(t.typeName?`(空 · ${t.typeName})`:"(空)")}function Pt(t){if((t.typeName??"").endsWith("[]"))return!0;const s=(t.value??"").trim();return s.startsWith("[")||s.startsWith("{")}return ul({onObjectCreated:()=>B(),onObjectDeleted:()=>B(),onObjectPatched:()=>{d.value&&j(d.value)},onObjectBatchChanged:()=>B()}),Ue(()=>m.kind,B),Oe(B),(t,e)=>{const s=It,u=Rt,r=Ge,F=Ut,fe=Mt,re=ol,q=Ze,X=Ye,ye=Xe,Fe=We,Re=et,Nt=Qe,we=qt,Tt=Jt,Bt=Yt,zt=Qt,Y=Zt,$e=Xt,xe=sl,be=ll,Lt=tl,P=al,Et=el,Ie=Ht,Dt=qe;return o(),v("div",wl,[n(hl,{ref_key:"pluginPanelRef",ref:me,visible:!0,onChanged:B},null,512),b("div",$l,[b("h2",xl,h(y.title),1),b("div",Cl,[n(u,{modelValue:Z.value,"onUpdate:modelValue":e[0]||(e[0]=l=>Z.value=l),placeholder:`搜索 ${y.kindLabel} (id / 名称 / 类型)`,size:"small",clearable:"",class:"ref-mgr-search"},{prefix:a(()=>[n(s,null,{default:a(()=>[n(M(At))]),_:1})]),_:1},8,["modelValue","placeholder"]),y.disableCreate?_("",!0):(o(),v(z,{key:0},[st.value?(o(),c(re,{key:0,trigger:"click",disabled:ne.value.length===0,onCommand:pt},{dropdown:a(()=>[n(fe,null,{default:a(()=>[(o(!0),v(z,null,de(ne.value,l=>(o(),c(F,{key:l.typeName,command:l.typeName},{default:a(()=>[g(h(l.label)+" ",1),b("span",Vl,"· "+h(l.shortName),1)]),_:2},1032,["command"]))),128)),ne.value.length===0?(o(),c(F,{key:0,disabled:""},{default:a(()=>[...e[21]||(e[21]=[g(" 未发现可创建的子类型 ",-1)])]),_:1})):_("",!0)]),_:1})]),default:a(()=>[n(r,{type:"primary",size:"small",icon:M(Ae),disabled:ne.value.length===0},{default:a(()=>[g(" 新建"+h(y.kindLabel),1),n(s,{class:"el-icon--right"},{default:a(()=>[n(M(jt))]),_:1})]),_:1},8,["icon","disabled"])]),_:1},8,["disabled"])):(o(),c(r,{key:1,type:"primary",size:"small",icon:M(Ae),onClick:e[1]||(e[1]=l=>Be())},{default:a(()=>[g(" 新建"+h(y.kindLabel),1)]),_:1},8,["icon"]))],64)),n(q,{content:"重新扫描 ./plugins 目录加载新增 .dll,并重建可创建类型列表",placement:"bottom"},{default:a(()=>[n(r,{size:"small",loading:I.value,icon:M(Ot),onClick:ct},{default:a(()=>[...e[22]||(e[22]=[g(" 刷新插件 ",-1)])]),_:1},8,["loading","icon"])]),_:1}),n(r,{size:"small",loading:Q.value,icon:M(He),onClick:B},{default:a(()=>[...e[23]||(e[23]=[g("刷新",-1)])]),_:1},8,["loading","icon"]),Ce.value?(o(),c(q,{key:1,content:at.value,placement:"bottom"},{default:a(()=>[n(r,{size:"small",type:"primary",loading:A.value,icon:M(Wt),onClick:dt},{default:a(()=>[g(h(Se.value),1)]),_:1},8,["loading","icon"])]),_:1},8,["content"])):_("",!0)])]),b("div",Sl,[n(Re,{shadow:"never",class:"ref-mgr-list-card"},{default:a(()=>[Je((o(),c(ye,{ref_key:"tableRef",ref:pe,data:Pe.value,"row-key":"id",stripe:"",border:"",size:"small","highlight-current-row":"",class:"ref-mgr-table",onCurrentChange:j},{default:a(()=>[n(X,{prop:"id",label:"ID",width:"70"}),n(X,{prop:"name",label:"名称","min-width":"160"}),n(X,{prop:"typeName",label:"类型",width:"160","show-overflow-tooltip":""}),y.showSummaryColumn?(o(),c(X,{key:0,prop:"summary",label:y.summaryLabel??"概况","min-width":"160","show-overflow-tooltip":""},null,8,["label"])):_("",!0),y.showStatusColumn?(o(),c(X,{key:1,prop:"status",label:y.statusLabel??"状态",width:"120","show-overflow-tooltip":""},null,8,["label"])):_("",!0),n(X,{label:"操作",width:nt.value},{default:a(({row:l})=>[ve.value?(o(),c(r,{key:0,text:"",size:"small",onClick:ce(k=>Le(l),["stop"])},{default:a(()=>[...e[24]||(e[24]=[g(" 查看对象 ",-1)])]),_:1},8,["onClick"])):_("",!0),y.showScriptActions&&y.kind==="script"?(o(),v(z,{key:1},[n(r,{text:"",size:"small",loading:Ke(l,"source"),disabled:V.value!==null,onClick:ce(k=>Ee(l),["stop"])},{default:a(()=>[...e[25]||(e[25]=[g(" 查看脚本 ",-1)])]),_:1},8,["loading","disabled","onClick"]),n(r,{text:"",size:"small",loading:Ke(l,"status"),disabled:V.value!==null,onClick:ce(k=>De(l),["stop"])},{default:a(()=>[...e[26]||(e[26]=[g(" 异常状态 ",-1)])]),_:1},8,["loading","disabled","onClick"])],64)):_("",!0),y.disableDelete?_("",!0):(o(),c(r,{key:2,text:"",size:"small",type:"danger",loading:R.value===l.id,onClick:ce(k=>vt(l),["stop"])},{default:a(()=>[...e[27]||(e[27]=[g(" 删除 ",-1)])]),_:1},8,["loading","onClick"]))]),_:1},8,["width"])]),_:1},8,["data"])),[[Dt,Q.value]]),!Q.value&&Pe.value.length===0?(o(),c(Fe,{key:0,description:y.emptyText},null,8,["description"])):_("",!0)]),_:1}),n(Re,{shadow:"never",class:"ref-mgr-detail-card"},{default:a(()=>[d.value?(o(),v(z,{key:1},[b("div",Pl,[b("div",Nl,[n(Nt,{size:"small",type:"info"},{default:a(()=>[g(h(d.value.typeName),1)]),_:1}),b("span",Tl,"#"+h(d.value.id),1),b("span",Bl,h(d.value.name),1)]),ve.value?(o(),v("div",zl,[b("button",{class:"header-action-btn",onClick:e[2]||(e[2]=l=>Le(d.value))},"查看对象")])):_("",!0)]),n(Tt,{modelValue:oe.value,"onUpdate:modelValue":e[3]||(e[3]=l=>oe.value=l),class:"detail-tabs"},{default:a(()=>[n(we,{label:"属性",name:"properties"}),n(we,{label:"状态",name:"status"}),n(we,{label:"动作",name:"action"})]),_:1},8,["modelValue"]),b("div",Ll,[oe.value==="properties"?(o(),v(z,{key:0},[b("div",El,[b("div",Dl,"强类型字段 ("+h(_e.value.length)+")",1),_e.value.length>0?(o(),c(xe,{key:0,column:2,border:"",size:"small"},{default:a(()=>[(o(!0),v(z,null,de(_e.value,l=>(o(),c($e,{key:l.key,label:l.key,"label-style":l.locked?{color:"#aaa"}:void 0},{default:a(()=>[ht(l)?(o(),c(Bt,{key:0,"model-value":xt(l.value),disabled:!!l.locked||E.value===l.key,size:"small",onChange:k=>te(l.key,k?"true":"false")},null,8,["model-value","disabled","onChange"])):wt(l)?(o(),c(zt,{key:1,"model-value":l.value||"#ffffff",disabled:!!l.locked||E.value===l.key,"show-alpha":"",size:"small",onChange:k=>te(l.key,k??"")},null,8,["model-value","disabled","onChange"])):$t(l)?(o(),c(Y,{key:2,"model-value":Ct(l.value),controls:!1,disabled:!!l.locked||E.value===l.key,size:"small",class:"field-num",onChange:k=>te(l.key,k==null?"":String(k))},null,8,["model-value","disabled","onChange"])):(o(),c(u,{key:3,modelValue:l.value,"onUpdate:modelValue":k=>l.value=k,size:"small",disabled:!!l.locked||E.value===l.key,onChange:k=>te(l.key,k)},null,8,["modelValue","onUpdate:modelValue","disabled","onChange"]))]),_:2},1032,["label","label-style"]))),128))]),_:1})):(o(),v("div",Kl,"该对象未声明任何 [FieldMember]"))]),b("div",Fl,[b("div",Rl,[b("span",null,"动态字段 ("+h(ke.value.length)+")",1),b("button",{class:"add-field-btn",onClick:yt},"+ 添加字段")]),ke.value.length>0?(o(),c(xe,{key:0,column:1,border:"",size:"small"},{default:a(()=>[(o(!0),v(z,null,de(ke.value,l=>(o(),c($e,{key:l.key,label:l.key},{default:a(()=>[b("div",Il,[n(u,{modelValue:l.value,"onUpdate:modelValue":k=>l.value=k,size:"small",disabled:E.value===l.key,onChange:k=>te(l.key,k)},null,8,["modelValue","onUpdate:modelValue","disabled","onChange"]),n(q,{content:"删除该字段",placement:"top"},{default:a(()=>[n(r,{size:"small",text:"",type:"danger",loading:U.value===l.key,onClick:k=>ft(l.key)},{default:a(()=>[...e[28]||(e[28]=[g(" 删除 ",-1)])]),_:1},8,["loading","onClick"])]),_:2},1024)])]),_:2},1032,["label"]))),128))]),_:1})):(o(),v("div",Al,"尚无动态字段;点击右上角「+ 添加字段」"))])],64)):oe.value==="status"?(o(),v("div",jl,[b("div",Ml,"运行状态 (只读, "+h(W.value.length)+")",1),W.value.length>0?(o(),c(xe,{key:0,column:1,border:"",size:"small"},{default:a(()=>[(o(!0),v(z,null,de(W.value,l=>(o(),c($e,{key:l.key,label:Vt(l)},{default:a(()=>[b("span",{class:Gt(["status-value",{"status-value--array":Pt(l)}]),title:l.typeName},h(St(l)),11,Ul)]),_:2},1032,["label"]))),128))]),_:1})):(o(),v("div",Ol,"暂无运行状态信息"))])):(o(),v("div",Wl,[b("div",Jl,"动作 / 方法 ("+h(lt.value)+")",1),H.value?(o(),v("div",ql,"加载方法中…")):(o(),v(z,{key:1},[he.value?(o(),v("div",Xl,[n(q,{content:"弹窗展示当前 CarProgram 的完整 script 内容",placement:"top"},{default:a(()=>[b("button",{class:"method-btn",disabled:V.value!==null,onClick:bt},[V.value==="source"?(o(),v("span",Ql,"⟳")):(o(),v("span",Zl,"▶")),e[29]||(e[29]=b("span",{class:"method-btn-label"},"查看脚本",-1))],8,Yl)]),_:1}),n(q,{content:"弹窗展示 state、exception、notifies 等异常状态报告",placement:"top"},{default:a(()=>[b("button",{class:"method-btn",disabled:V.value!==null,onClick:gt},[V.value==="status"?(o(),v("span",Hl,"⟳")):(o(),v("span",ea,"▶")),e[30]||(e[30]=b("span",{class:"method-btn-label"},"查看异常状态",-1))],8,Gl)]),_:1})])):_("",!0),J.value.length===0&&!he.value?(o(),v("div",ta,"该类型未暴露 [MethodMember]")):J.value.length>0?(o(),v("div",la,[(o(!0),v(z,null,de(J.value,l=>(o(),c(q,{key:l.methodName,content:l.description??l.hint??"",disabled:!l.description&&!l.hint,placement:"top"},{default:a(()=>[b("button",{class:"method-btn",disabled:L.value===l.methodName,onClick:k=>kt(l)},[L.value===l.methodName?(o(),v("span",na,"⟳")):(o(),v("span",oa,"▶")),b("span",sa,h(l.label??l.methodName),1),l.hasParams?(o(),v("span",ia,"带参")):_("",!0)],8,aa)]),_:2},1032,["content","disabled"]))),128))])):_("",!0)],64))]))])],64)):(o(),c(Fe,{key:0,description:"左侧选中一行查看 / 编辑详情"}))]),_:1})]),n(Ie,{modelValue:ue.value,"onUpdate:modelValue":e[18]||(e[18]=l=>ue.value=l),title:`新建 ${y.kindLabel}${S.value?" · "+mt(S.value):""}`,width:"480px","append-to-body":""},{footer:a(()=>[n(r,{onClick:e[17]||(e[17]=l=>ue.value=!1)},{default:a(()=>[...e[35]||(e[35]=[g("取消",-1)])]),_:1}),n(r,{type:"primary",loading:w.value,onClick:ze},{default:a(()=>[...e[36]||(e[36]=[g("创建",-1)])]),_:1},8,["loading"])]),default:a(()=>[n(Et,{model:i,size:"small","label-width":"100px",onSubmit:ce(ze,["prevent"])},{default:a(()=>[S.value==="track"?(o(),c(P,{key:0,label:"路径类型"},{default:a(()=>[n(Lt,{modelValue:i.trackKind,"onUpdate:modelValue":e[4]||(e[4]=l=>i.trackKind=l)},{default:a(()=>[n(be,{value:"line"},{default:a(()=>[...e[31]||(e[31]=[g("直线",-1)])]),_:1}),n(be,{value:"bezier"},{default:a(()=>[...e[32]||(e[32]=[g("贝塞尔",-1)])]),_:1}),n(be,{value:"arc"},{default:a(()=>[...e[33]||(e[33]=[g("圆弧",-1)])]),_:1}),n(be,{value:"nurbs"},{default:a(()=>[...e[34]||(e[34]=[g("NURBS",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):_("",!0),n(P,{label:"名称"},{default:a(()=>[n(u,{modelValue:i.name,"onUpdate:modelValue":e[5]||(e[5]=l=>i.name=l),placeholder:"(可空,留空走默认名)"},null,8,["modelValue"])]),_:1}),n(P,{label:"图层"},{default:a(()=>[n(u,{modelValue:i.layer,"onUpdate:modelValue":e[6]||(e[6]=l=>i.layer=l),placeholder:"g / main / ..."},null,8,["modelValue"])]),_:1}),["site","image","text","model"].includes(S.value)?(o(),v(z,{key:1},[n(P,{label:"X (mm)"},{default:a(()=>[n(Y,{modelValue:i.x,"onUpdate:modelValue":e[7]||(e[7]=l=>i.x=l),controls:!1},null,8,["modelValue"])]),_:1}),n(P,{label:"Y (mm)"},{default:a(()=>[n(Y,{modelValue:i.y,"onUpdate:modelValue":e[8]||(e[8]=l=>i.y=l),controls:!1},null,8,["modelValue"])]),_:1}),S.value==="site"?(o(),c(P,{key:0,label:"Z (mm)"},{default:a(()=>[n(Y,{modelValue:i.z,"onUpdate:modelValue":e[9]||(e[9]=l=>i.z=l),controls:!1},null,8,["modelValue"])]),_:1})):_("",!0)],64)):_("",!0),S.value==="track"?(o(),v(z,{key:2},[n(P,{label:"起点站 ID"},{default:a(()=>[n(Y,{modelValue:i.siteA,"onUpdate:modelValue":e[10]||(e[10]=l=>i.siteA=l),controls:!1,min:1},null,8,["modelValue"])]),_:1}),n(P,{label:"终点站 ID"},{default:a(()=>[n(Y,{modelValue:i.siteB,"onUpdate:modelValue":e[11]||(e[11]=l=>i.siteB=l),controls:!1,min:1},null,8,["modelValue"])]),_:1})],64)):_("",!0),S.value==="image"?(o(),c(P,{key:3,label:"图片路径"},{default:a(()=>[n(u,{modelValue:i.imagePath,"onUpdate:modelValue":e[12]||(e[12]=l=>i.imagePath=l),placeholder:"/uploads/xxxxx.png"},null,8,["modelValue"])]),_:1})):_("",!0),S.value==="model"?(o(),c(P,{key:4,label:"模型路径"},{default:a(()=>[n(u,{modelValue:i.modelPath,"onUpdate:modelValue":e[13]||(e[13]=l=>i.modelPath=l),placeholder:"/uploads/xxxxx.glb"},null,8,["modelValue"])]),_:1})):_("",!0),S.value==="text"?(o(),c(P,{key:5,label:"文本"},{default:a(()=>[n(u,{modelValue:i.content,"onUpdate:modelValue":e[14]||(e[14]=l=>i.content=l),placeholder:"Text"},null,8,["modelValue"])]),_:1})):_("",!0),S.value==="car"?(o(),c(P,{key:6,label:"X (mm)"},{default:a(()=>[n(Y,{modelValue:i.x,"onUpdate:modelValue":e[15]||(e[15]=l=>i.x=l),controls:!1},null,8,["modelValue"])]),_:1})):_("",!0),S.value==="car"?(o(),c(P,{key:7,label:"Y (mm)"},{default:a(()=>[n(Y,{modelValue:i.y,"onUpdate:modelValue":e[16]||(e[16]=l=>i.y=l),controls:!1},null,8,["modelValue"])]),_:1})):_("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),n(Ie,{modelValue:D.value,"onUpdate:modelValue":e[20]||(e[20]=l=>D.value=l),title:ae.value,width:"720px","append-to-body":""},{footer:a(()=>[n(r,{onClick:_t},{default:a(()=>[...e[37]||(e[37]=[g("复制",-1)])]),_:1}),n(r,{type:"primary",onClick:e[19]||(e[19]=l=>D.value=!1)},{default:a(()=>[...e[38]||(e[38]=[g("关闭",-1)])]),_:1})]),default:a(()=>[n(u,{"model-value":ee.value,type:"textarea",autosize:{minRows:16,maxRows:26},readonly:"",class:"script-dialog-textarea"},null,8,["model-value"])]),_:1},8,["modelValue","title"])])}}}),Ea=tt(ua,[["__scopeId","data-v-19454213"]]);export{Ea as R}; diff --git a/MiGu.Server/wwwroot/assets/RoutingPolicyView-vyV201zY.js b/MiGu.Server/wwwroot/assets/RoutingPolicyView-vyV201zY.js deleted file mode 100644 index 1ecc9e8..0000000 --- a/MiGu.Server/wwwroot/assets/RoutingPolicyView-vyV201zY.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as f,aC as w,bJ as t,bt as h,b9 as g,aH as e,N as v,O as E,a4 as I,Z as k,aa as x,ab as z,S as C,f as U}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as V}from"./ConfigPageBase-MHa7yfOO.js";/* empty css *//* empty css *//* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const X=f({__name:"RoutingPolicyView",setup(D){function _(r){return Object.entries(r).map(([p,a])=>({k:p,v:a}))}return(r,p)=>{const a=k,u=I,m=E,o=z,d=C,n=x,c=v;return g(),w(V,{section:"routing",title:"路径规划策略",description:"算法选择、权重、避障规则、区域限速(RoutingPolicy)",defaults:h(U)},{default:t(({payload:l,update:s})=>[e(c,{"label-width":"140px",model:l},{default:t(()=>[e(m,{label:"算法"},{default:t(()=>[e(u,{"model-value":l.algorithm,"onUpdate:modelValue":i=>s({...l,algorithm:i})},{default:t(()=>[e(a,{label:"Dijkstra",value:"dijkstra"}),e(a,{label:"A*",value:"astar"}),e(a,{label:"自定义",value:"custom"})]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(m,{label:"权重"},{default:t(()=>[e(n,{data:_(l.weights),size:"small"},{default:t(()=>[e(o,{label:"维度",prop:"k",width:"140"}),e(o,{label:"权重"},{default:t(i=>[e(d,{"model-value":i.row.v,min:0,max:10,step:.1,"onUpdate:modelValue":b=>s({...l,weights:{...l.weights,[i.row.k]:b??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["data"])]),_:2},1024),e(m,{label:"避障规则"},{default:t(()=>[e(n,{data:l.avoidance,size:"small"},{default:t(()=>[e(o,{label:"ID",prop:"id",width:"100"}),e(o,{label:"区域 ID",prop:"zoneId",width:"140"}),e(o,{label:"规则",prop:"rule"})]),_:1},8,["data"])]),_:2},1024),e(m,{label:"区域限速"},{default:t(()=>[e(n,{data:l.zoneSpeedLimits,size:"small"},{default:t(()=>[e(o,{label:"区域",prop:"zoneId",width:"140"}),e(o,{label:"最大速度 (m/s)",prop:"maxSpeedMps"})]),_:1},8,["data"])]),_:2},1024)]),_:2},1032,["model"])]),_:1},8,["defaults"])}}});export{X as default}; diff --git a/MiGu.Server/wwwroot/assets/ScenarioTemplateView-CmTU4kEH.js b/MiGu.Server/wwwroot/assets/ScenarioTemplateView-CmTU4kEH.js deleted file mode 100644 index 99f6ed4..0000000 --- a/MiGu.Server/wwwroot/assets/ScenarioTemplateView-CmTU4kEH.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as b,aC as _,bJ as e,bt as C,b9 as n,aH as t,a2 as E,aE as g,ai as v,bj as w,w as S,t as h,aB as r,bq as a,ad as k,aG as o,H as D,C as P,F as V,g as B,ak as T}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as x}from"./ConfigPageBase-MHa7yfOO.js";/* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const I={class:"tpl-title"},L={class:"tpl-meta"},N={class:"tpl-baseline"},F=b({__name:"ScenarioTemplateView",setup(R){return(y,z)=>{const c=k,d=h,m=S,p=E,f=D,l=V,u=P;return n(),_(x,{section:"scenario",title:"业务场景模板化",description:"SPS / Pack / 环线 / 点对点;DSL/低代码扩展(ScenarioTemplateConfig)",defaults:C(B)},{default:e(({payload:s})=>[t(p,{gutter:12},{default:e(()=>[(n(!0),g(v,null,w(s.templates,i=>(n(),_(m,{key:i.id,span:6},{default:e(()=>[t(d,{shadow:"hover",class:"tpl-card"},{default:e(()=>[r("div",I,a(i.name),1),r("div",L,[t(c,{size:"small"},{default:e(()=>[o(a(i.category),1)]),_:2},1024),t(c,{size:"small",type:"info"},{default:e(()=>[o("v"+a(i.version),1)]),_:2},1024)]),r("pre",N,a(i.baselineJson||"{}"),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),t(f),t(u,{column:2,border:""},{default:e(()=>[t(l,{label:"DSL 启用"},{default:e(()=>[o(a(s.dslPolicy.enabled?"是":"否"),1)]),_:2},1024),t(l,{label:"Schema 版本"},{default:e(()=>[o(a(s.dslPolicy.schemaVersion),1)]),_:2},1024),t(l,{label:"低代码"},{default:e(()=>[o(a(s.lowCode.enabled?"启用":"关闭"),1)]),_:2},1024),t(l,{label:"编辑器"},{default:e(()=>[o(a(s.lowCode.editor),1)]),_:2},1024),t(l,{label:"保留版本"},{default:e(()=>[o(a(s.versionPolicy.keepVersions),1)]),_:2},1024),t(l,{label:"允许回滚"},{default:e(()=>[o(a(s.versionPolicy.allowRollback?"是":"否"),1)]),_:2},1024)]),_:2},1024)]),_:1},8,["defaults"])}}}),Y=T(F,[["__scopeId","data-v-4faf66a8"]]);export{Y as default}; diff --git a/MiGu.Server/wwwroot/assets/ScenarioTemplateView-rv7Jf-RX.css b/MiGu.Server/wwwroot/assets/ScenarioTemplateView-rv7Jf-RX.css deleted file mode 100644 index 29c260a..0000000 --- a/MiGu.Server/wwwroot/assets/ScenarioTemplateView-rv7Jf-RX.css +++ /dev/null @@ -1 +0,0 @@ -.tpl-card[data-v-4faf66a8]{margin-bottom:12px}.tpl-title[data-v-4faf66a8]{font-weight:600;margin-bottom:6px}.tpl-meta[data-v-4faf66a8]{display:flex;gap:6px;margin-bottom:8px}.tpl-baseline[data-v-4faf66a8]{margin:0;font-size:11px;background:#f5f7fa;padding:6px;border-radius:4px;max-height:80px;overflow:auto} diff --git a/MiGu.Server/wwwroot/assets/ScriptPanelView-BHu191Ko.css b/MiGu.Server/wwwroot/assets/ScriptPanelView-BHu191Ko.css new file mode 100644 index 0000000..9dc9837 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/ScriptPanelView-BHu191Ko.css @@ -0,0 +1 @@ +.script-page[data-v-10fa0621]{height:calc(100vh - 56px);padding:12px 14px;box-sizing:border-box} diff --git a/MiGu.Server/wwwroot/assets/ScriptPanelView-D8niLWli.js b/MiGu.Server/wwwroot/assets/ScriptPanelView-D8niLWli.js new file mode 100644 index 0000000..ec7438d --- /dev/null +++ b/MiGu.Server/wwwroot/assets/ScriptPanelView-D8niLWli.js @@ -0,0 +1 @@ +import{R as t}from"./ReflectionManagerPanel-CqcqGxZI.js";import{aN as r,aG as o,aK as i,bs as e,ak as m}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./reflection-BwOBPyb9.js";import"./projectSaveFlow-BOHSv3Vc.js";import"./useProjectionStream-ayb6RvWW.js";import"./mapEdit-BXIATxCI.js";const p={class:"script-page"},a=r({__name:"ScriptPanelView",setup(s){return(c,n)=>(e(),o("div",p,[i(t,{kind:"script","kind-label":"脚本",title:"脚本管理(CarProgram 运行实例 · 与 SimpleLite 工作台「脚本」页对齐)","empty-text":"当前无 CarProgram 实例。CarProgram 是 Mission 运行时编译用户脚本后产生的对象,请在 SimpleLite 工作台新建 Mission(任务)后由调度运行时自动生成。","disable-create":"","disable-delete":"","show-summary-column":"","summary-label":"车辆","show-status-column":"","status-label":"状态","show-script-actions":""})]))}}),z=m(a,[["__scopeId","data-v-10fa0621"]]);export{z as default}; diff --git a/MiGu.Server/wwwroot/assets/ScriptPanelView-DMd6Dq7p.js b/MiGu.Server/wwwroot/assets/ScriptPanelView-DMd6Dq7p.js deleted file mode 100644 index e245cea..0000000 --- a/MiGu.Server/wwwroot/assets/ScriptPanelView-DMd6Dq7p.js +++ /dev/null @@ -1 +0,0 @@ -import{R as t}from"./ReflectionManagerPanel-BZQZIz4T.js";import{aI as r,aE as o,aH as i,b9 as e,ak as a}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./reflection-B_glb6eT.js";import"./useMapEditStream-BgR6WvRg.js";import"./useProjectionStream-BBHmpNXC.js";const m={class:"script-page"},p=r({__name:"ScriptPanelView",setup(s){return(c,n)=>(e(),o("div",m,[i(t,{kind:"script","kind-label":"脚本",title:"脚本管理(CarProgram 运行实例 · 与 SimpleLite 工作台「脚本」页对齐)","empty-text":"当前无 CarProgram 实例。CarProgram 是 Mission 运行时编译用户脚本后产生的对象,要创建脚本请到「任务编排」页新建 Mission。","disable-create":"","disable-delete":"","show-summary-column":"","summary-label":"车辆","show-status-column":"","status-label":"状态","show-script-actions":""})]))}}),q=a(p,[["__scopeId","data-v-40d1e5dd"]]);export{q as default}; diff --git a/MiGu.Server/wwwroot/assets/ScriptPanelView-zM2-1jjH.css b/MiGu.Server/wwwroot/assets/ScriptPanelView-zM2-1jjH.css deleted file mode 100644 index 9ce84ff..0000000 --- a/MiGu.Server/wwwroot/assets/ScriptPanelView-zM2-1jjH.css +++ /dev/null @@ -1 +0,0 @@ -.script-page[data-v-40d1e5dd]{height:calc(100vh - 56px);padding:12px 14px;box-sizing:border-box} diff --git a/MiGu.Server/wwwroot/assets/ServiceStatusView-CiTg6q_Q.js b/MiGu.Server/wwwroot/assets/ServiceStatusView-nxCKHggR.js similarity index 73% rename from MiGu.Server/wwwroot/assets/ServiceStatusView-CiTg6q_Q.js rename to MiGu.Server/wwwroot/assets/ServiceStatusView-nxCKHggR.js index 73d1b4c..763533f 100644 --- a/MiGu.Server/wwwroot/assets/ServiceStatusView-CiTg6q_Q.js +++ b/MiGu.Server/wwwroot/assets/ServiceStatusView-nxCKHggR.js @@ -1 +1 @@ -import{aI as w,b7 as k,b8 as E,aE as x,aH as s,bJ as e,t as y,bh as V,bx as C,b9 as D,C as I,F as z,aG as a,bq as f,bt as B,ad as M,aB as m,r as W,ak as N}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const O={class:"status-page mg-content"},K={class:"status-actions"},R=w({__name:"ServiceStatusView",setup(T){const b=C(),_=new Date().toLocaleString("zh-CN"),i=V("00:00:00");let r;const S=Date.now();function u(){const p=Date.now()-S,t=Math.floor(p/1e3),o=String(Math.floor(t/3600)).padStart(2,"0"),l=String(Math.floor(t%3600/60)).padStart(2,"0"),d=String(t%60).padStart(2,"0");i.value=`${o}:${l}:${d}`}k(()=>{u(),r=window.setInterval(u,1e3)}),E(()=>{r&&clearInterval(r)});function v(){b.back()}return(p,t)=>{const o=M,l=z,d=I,n=W,g=y;return D(),x("div",O,[s(g,{shadow:"never",class:"status-card"},{header:e(()=>[t[1]||(t[1]=m("span",null,"SimpleLite Service Status",-1)),s(o,{type:"success",effect:"dark",style:{"margin-left":"8px"}},{default:e(()=>[...t[0]||(t[0]=[a("Web-Enabled (Mock)",-1)])]),_:1})]),default:e(()=>[s(d,{column:2,border:""},{default:e(()=>[s(l,{label:"模式"},{default:e(()=>[...t[2]||(t[2]=[a("Web-Enabled",-1)])]),_:1}),s(l,{label:"启动时间"},{default:e(()=>[a(f(B(_)),1)]),_:1}),s(l,{label:"运行时长"},{default:e(()=>[a(f(i.value),1)]),_:1}),s(l,{label:"节点角色"},{default:e(()=>[s(o,{type:"success"},{default:e(()=>[...t[3]||(t[3]=[a("Active (ROSE)",-1)])]),_:1})]),_:1}),s(l,{label:"WebAPI"},{default:e(()=>[t[5]||(t[5]=a("http://0.0.0.0:7001 ",-1)),s(o,{size:"small"},{default:e(()=>[...t[4]||(t[4]=[a("OK",-1)])]),_:1})]),_:1}),s(l,{label:"WebSocket"},{default:e(()=>[t[7]||(t[7]=a("ws://0.0.0.0:7002 ",-1)),s(o,{size:"small"},{default:e(()=>[...t[6]||(t[6]=[a("OK",-1)])]),_:1})]),_:1}),s(l,{label:"webVRender"},{default:e(()=>[t[9]||(t[9]=a("http://0.0.0.0:8223 ",-1)),s(o,{size:"small",type:"success"},{default:e(()=>[...t[8]||(t[8]=[a("OK",-1)])]),_:1})]),_:1}),s(l,{label:"Platform.Server"},{default:e(()=>[...t[10]||(t[10]=[a(":8080 (pid=12345)",-1)])]),_:1}),s(l,{label:"在线 Vue 客户端"},{default:e(()=>[...t[11]||(t[11]=[a("admin=3, monitor=4",-1)])]),_:1}),s(l,{label:"调度循环 / 任务"},{default:e(()=>[...t[12]||(t[12]=[a("50 Hz · 14 / 32",-1)])]),_:1})]),_:1}),m("div",K,[s(n,null,{default:e(()=>[...t[13]||(t[13]=[a("查看日志",-1)])]),_:1}),s(n,{type:"warning",plain:""},{default:e(()=>[...t[14]||(t[14]=[a("重启 Web",-1)])]),_:1}),s(n,{type:"danger",plain:""},{default:e(()=>[...t[15]||(t[15]=[a("关闭服务",-1)])]),_:1}),s(n,{onClick:v},{default:e(()=>[...t[16]||(t[16]=[a("返回",-1)])]),_:1})])]),_:1})])}}}),q=N(R,[["__scopeId","data-v-ddc086d3"]]);export{q as default}; +import{aN as w,bp as k,br as E,aG as y,aK as s,c8 as e,t as C,bC as D,bX as V,bs as x,B as z,C as B,aJ as a,bL as f,bS as I,ad as M,aD as m,r as N,ak as W}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const K={class:"status-page mg-content"},O={class:"status-actions"},L=w({__name:"ServiceStatusView",setup(R){const b=V(),S=new Date().toLocaleString("zh-CN"),i=D("00:00:00");let r;const _=Date.now();function u(){const p=Date.now()-_,t=Math.floor(p/1e3),o=String(Math.floor(t/3600)).padStart(2,"0"),l=String(Math.floor(t%3600/60)).padStart(2,"0"),d=String(t%60).padStart(2,"0");i.value=`${o}:${l}:${d}`}k(()=>{u(),r=window.setInterval(u,1e3)}),E(()=>{r&&clearInterval(r)});function v(){b.back()}return(p,t)=>{const o=M,l=B,d=z,n=N,g=C;return x(),y("div",K,[s(g,{shadow:"never",class:"status-card"},{header:e(()=>[t[1]||(t[1]=m("span",null,"SimpleLite Service Status",-1)),s(o,{type:"success",effect:"dark",style:{"margin-left":"8px"}},{default:e(()=>[...t[0]||(t[0]=[a("Web-Enabled (Mock)",-1)])]),_:1})]),default:e(()=>[s(d,{column:2,border:""},{default:e(()=>[s(l,{label:"模式"},{default:e(()=>[...t[2]||(t[2]=[a("Web-Enabled",-1)])]),_:1}),s(l,{label:"启动时间"},{default:e(()=>[a(f(I(S)),1)]),_:1}),s(l,{label:"运行时长"},{default:e(()=>[a(f(i.value),1)]),_:1}),s(l,{label:"节点角色"},{default:e(()=>[s(o,{type:"success"},{default:e(()=>[...t[3]||(t[3]=[a("Active (ROSE)",-1)])]),_:1})]),_:1}),s(l,{label:"WebAPI"},{default:e(()=>[t[5]||(t[5]=a("http://0.0.0.0:7001 ",-1)),s(o,{size:"small"},{default:e(()=>[...t[4]||(t[4]=[a("OK",-1)])]),_:1})]),_:1}),s(l,{label:"WebSocket"},{default:e(()=>[t[7]||(t[7]=a("ws://0.0.0.0:7002 ",-1)),s(o,{size:"small"},{default:e(()=>[...t[6]||(t[6]=[a("OK",-1)])]),_:1})]),_:1}),s(l,{label:"webVRender"},{default:e(()=>[t[9]||(t[9]=a("http://0.0.0.0:8223 ",-1)),s(o,{size:"small",type:"success"},{default:e(()=>[...t[8]||(t[8]=[a("OK",-1)])]),_:1})]),_:1}),s(l,{label:"Platform.Server"},{default:e(()=>[...t[10]||(t[10]=[a(":8080 (pid=12345)",-1)])]),_:1}),s(l,{label:"在线 Vue 客户端"},{default:e(()=>[...t[11]||(t[11]=[a("admin=3, monitor=4",-1)])]),_:1}),s(l,{label:"调度循环 / 任务"},{default:e(()=>[...t[12]||(t[12]=[a("50 Hz · 14 / 32",-1)])]),_:1})]),_:1}),m("div",O,[s(n,null,{default:e(()=>[...t[13]||(t[13]=[a("查看日志",-1)])]),_:1}),s(n,{type:"warning",plain:""},{default:e(()=>[...t[14]||(t[14]=[a("重启 Web",-1)])]),_:1}),s(n,{type:"danger",plain:""},{default:e(()=>[...t[15]||(t[15]=[a("关闭服务",-1)])]),_:1}),s(n,{onClick:v},{default:e(()=>[...t[16]||(t[16]=[a("返回",-1)])]),_:1})])]),_:1})])}}}),H=W(L,[["__scopeId","data-v-ddc086d3"]]);export{H as default}; diff --git a/MiGu.Server/wwwroot/assets/StrategyConfigView-DCtZMQRi.css b/MiGu.Server/wwwroot/assets/StrategyConfigView-DCtZMQRi.css new file mode 100644 index 0000000..1687801 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/StrategyConfigView-DCtZMQRi.css @@ -0,0 +1 @@ +.config-hub-page[data-v-3f68371b]{padding:16px;height:100%;display:flex;flex-direction:column;overflow:hidden}.hub-tabs[data-v-3f68371b]{flex:1;min-height:0;display:flex;flex-direction:column}[data-v-3f68371b] .el-tabs__content{flex:1;min-height:0;overflow:auto}[data-v-3f68371b] .el-tab-pane{height:100%}.config-pane[data-v-3f68371b]{height:100%;overflow:auto}[data-v-3f68371b] .el-tabs__item{color:var(--mg-text-muted, rgba(255, 255, 255, .65))}[data-v-3f68371b] .el-tabs__item.is-active{color:var(--mg-text-light, #fff)}[data-v-3f68371b] .el-tabs__active-bar{background-color:var(--mg-accent, var(--el-color-primary))}[data-v-3f68371b] .el-tabs__nav-wrap:after{background-color:#ffffff14} diff --git a/MiGu.Server/wwwroot/assets/StrategyConfigView-DqIoZFxi.js b/MiGu.Server/wwwroot/assets/StrategyConfigView-DqIoZFxi.js new file mode 100644 index 0000000..327d6a8 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/StrategyConfigView-DqIoZFxi.js @@ -0,0 +1 @@ +import{aN as p,bs as f,aE as g,c8 as t,aK as e,N as x,O as T,a4 as B,Z as F,aa as E,ab as U,S as I,bS as v,f as P,a1 as N,a0 as L,aJ as c,a8 as k,i as j,ac as A,a9 as R,bL as z,j as q,D as G,bC as M,c7 as D,aG as O,bW as $,bX as K,aD as w,ak as Q}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as V}from"./ConfigPageBase-CgfsngDp.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./PermissionGuard-CR4qtxrh.js";/* empty css */import"./reflection-BwOBPyb9.js";import"./monitorConfigCache-DXn96T8F.js";const H=p({__name:"RoutingPolicyView",setup(b){function m(d){return Object.entries(d).map(([a,n])=>({k:a,v:n}))}return(d,a)=>{const n=F,i=B,l=T,s=U,u=I,o=E,r=x;return f(),g(V,{section:"routing",title:"路径规划策略",description:"算法选择、权重、避障规则、区域限速(RoutingPolicy)",defaults:v(P)},{default:t(({payload:_,update:C})=>[e(r,{"label-width":"140px",model:_},{default:t(()=>[e(l,{label:"算法"},{default:t(()=>[e(i,{"model-value":_.algorithm,"onUpdate:modelValue":h=>C({..._,algorithm:h})},{default:t(()=>[e(n,{label:"Dijkstra",value:"dijkstra"}),e(n,{label:"A*",value:"astar"}),e(n,{label:"自定义",value:"custom"})]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(l,{label:"权重"},{default:t(()=>[e(o,{data:m(_.weights),size:"small"},{default:t(()=>[e(s,{label:"维度",prop:"k",width:"140"}),e(s,{label:"权重"},{default:t(h=>[e(u,{"model-value":h.row.v,min:0,max:10,step:.1,"onUpdate:modelValue":S=>C({..._,weights:{..._.weights,[h.row.k]:S??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["data"])]),_:2},1024),e(l,{label:"避障规则"},{default:t(()=>[e(o,{data:_.avoidance,size:"small"},{default:t(()=>[e(s,{label:"ID",prop:"id",width:"100"}),e(s,{label:"区域 ID",prop:"zoneId",width:"140"}),e(s,{label:"规则",prop:"rule"})]),_:1},8,["data"])]),_:2},1024),e(l,{label:"区域限速"},{default:t(()=>[e(o,{data:_.zoneSpeedLimits,size:"small"},{default:t(()=>[e(s,{label:"区域",prop:"zoneId",width:"140"}),e(s,{label:"最大速度 (m/s)",prop:"maxSpeedMps"})]),_:1},8,["data"])]),_:2},1024)]),_:2},1032,["model"])]),_:1},8,["defaults"])}}}),J=p({__name:"TaskAllocationView",setup(b){return(m,d)=>{const a=L,n=N,i=T,l=k,s=I,u=x;return f(),g(V,{section:"task",title:"任务分配机制",description:"负载均衡、就近分配、优先级调度(TaskAllocationPolicy)",defaults:v(j)},{default:t(({payload:o,update:r})=>[e(u,{"label-width":"160px",model:o},{default:t(()=>[e(i,{label:"分配模式"},{default:t(()=>[e(n,{"model-value":o.mode,"onUpdate:modelValue":_=>r({...o,mode:_})},{default:t(()=>[e(a,{value:"roundRobin"},{default:t(()=>[...d[0]||(d[0]=[c("轮询",-1)])]),_:1}),e(a,{value:"nearest"},{default:t(()=>[...d[1]||(d[1]=[c("就近",-1)])]),_:1}),e(a,{value:"leastLoad"},{default:t(()=>[...d[2]||(d[2]=[c("最少负载",-1)])]),_:1}),e(a,{value:"custom"},{default:t(()=>[...d[3]||(d[3]=[c("自定义",-1)])]),_:1})]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(i,{label:"启用负载均衡"},{default:t(()=>[e(l,{"model-value":o.loadBalance,"onUpdate:modelValue":_=>r({...o,loadBalance:!!_})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(i,{label:"单车队列上限"},{default:t(()=>[e(s,{"model-value":o.maxQueuePerCar,min:1,max:100,"onUpdate:modelValue":_=>r({...o,maxQueuePerCar:_??0})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])]),_:1},8,["defaults"])}}}),W=p({__name:"TrafficRuleView",setup(b){return(m,d)=>{const a=U,n=E,i=R,l=A;return f(),g(V,{section:"traffic",title:"交通管制规则",description:"路口策略、区域互斥、动态让行(TrafficRule)",defaults:v(q)},{default:t(({payload:s})=>[e(l,{"model-value":"ix"},{default:t(()=>[e(i,{name:"ix",label:"路口策略"},{default:t(()=>[e(n,{data:s.intersections,size:"small"},{default:t(()=>[e(a,{label:"ID",prop:"id",width:"100"}),e(a,{label:"站点 IDs",prop:"siteIds"},{default:t(u=>[c(z(u.row.siteIds.join(", ")),1)]),_:1}),e(a,{label:"模式",prop:"mode",width:"100"})]),_:1},8,["data"])]),_:2},1024),e(i,{name:"mz",label:"区域互斥"},{default:t(()=>[e(n,{data:s.mutex,size:"small"},{default:t(()=>[e(a,{label:"ID",prop:"id",width:"100"}),e(a,{label:"区域 IDs",prop:"zoneIds"},{default:t(u=>[c(z(u.row.zoneIds.join(", ")),1)]),_:1})]),_:1},8,["data"])]),_:2},1024),e(i,{name:"yd",label:"动态让行"},{default:t(()=>[e(n,{data:s.yields,size:"small"},{default:t(()=>[e(a,{label:"ID",prop:"id",width:"100"}),e(a,{label:"From",prop:"from",width:"140"}),e(a,{label:"To",prop:"to",width:"140"}),e(a,{label:"条件",prop:"condition"})]),_:1},8,["data"])]),_:2},1024)]),_:2},1024)]),_:1},8,["defaults"])}}}),X=p({__name:"ChargePolicyView",setup(b){return(m,d)=>{const a=k,n=T,i=I,l=U,s=E,u=x;return f(),g(V,{section:"charge",title:"充电逻辑",description:"充电优先级、空闲充电、任务中断充电(ChargePolicy)",defaults:v(G)},{default:t(({payload:o,update:r})=>[e(u,{"label-width":"180px",model:o},{default:t(()=>[e(n,{label:"允许任务中断充电"},{default:t(()=>[e(a,{"model-value":o.allowMidTaskCharge,"onUpdate:modelValue":_=>r({...o,allowMidTaskCharge:!!_})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(n,{label:"空闲多少秒后充电"},{default:t(()=>[e(i,{"model-value":o.idleChargeAfterSec,min:0,max:86400,"onUpdate:modelValue":_=>r({...o,idleChargeAfterSec:_??0})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(n,{label:"充电优先级规则"},{default:t(()=>[e(s,{data:o.priority,size:"small"},{default:t(()=>[e(l,{label:"ID",prop:"id",width:"100"}),e(l,{label:"条件",prop:"condition"}),e(l,{label:"权重",prop:"weight",width:"100"})]),_:1},8,["data"])]),_:2},1024)]),_:2},1032,["model"])]),_:1},8,["defaults"])}}}),Z={class:"config-hub-page"},y={class:"config-pane"},Y={class:"config-pane"},ee={class:"config-pane"},te={class:"config-pane"},le=p({__name:"StrategyConfigView",setup(b){const m=$(),d=K(),a=["routing","task","traffic","charge"];function n(){const l=m.query.tab;return typeof l=="string"&&a.includes(l)?l:"routing"}const i=M(n());return D(i,l=>{m.query.tab!==l&&d.replace({query:{...m.query,tab:l}})}),D(()=>m.query.tab,()=>{const l=n();l!==i.value&&(i.value=l)}),(l,s)=>{const u=R,o=A;return f(),O("div",Z,[e(o,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=r=>i.value=r),class:"hub-tabs"},{default:t(()=>[e(u,{name:"routing",label:"路径规划"},{default:t(()=>[w("div",y,[e(H)])]),_:1}),e(u,{name:"task",label:"任务分配",lazy:""},{default:t(()=>[w("div",Y,[e(J)])]),_:1}),e(u,{name:"traffic",label:"交通管制",lazy:""},{default:t(()=>[w("div",ee,[e(W)])]),_:1}),e(u,{name:"charge",label:"充电策略",lazy:""},{default:t(()=>[w("div",te,[e(X)])]),_:1})]),_:1},8,["modelValue"])])}}}),Ie=Q(le,[["__scopeId","data-v-3f68371b"]]);export{Ie as default}; diff --git a/MiGu.Server/wwwroot/assets/SystemCenterView-Cj7be1bs.css b/MiGu.Server/wwwroot/assets/SystemCenterView-Cj7be1bs.css new file mode 100644 index 0000000..a164e69 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/SystemCenterView-Cj7be1bs.css @@ -0,0 +1 @@ +.theme-customizer[data-v-8a725bd2]{margin-top:8px}.tc-hint[data-v-8a725bd2]{margin:0 0 12px;font-size:12px;color:var(--mg-text-dim, rgba(255, 255, 255, .55));line-height:1.5}.tc-title-row[data-v-8a725bd2]{display:flex;align-items:center;gap:10px;width:100%}.tc-swatch[data-v-8a725bd2]{width:22px;height:22px;border-radius:6px;flex-shrink:0;box-shadow:0 2px 6px #00000059}.tc-name[data-v-8a725bd2]{font-weight:600;color:var(--mg-text-light, #fff)}.tc-panel[data-v-8a725bd2]{padding:4px 8px 12px}.tc-picker-row[data-v-8a725bd2]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.tc-hex[data-v-8a725bd2]{font-family:ui-monospace,monospace;font-size:12px;color:var(--mg-text-muted, rgba(255, 255, 255, .75))}.tc-field-hint[data-v-8a725bd2]{font-size:11px;color:var(--mg-text-dim, rgba(255, 255, 255, .45))}.tc-actions[data-v-8a725bd2]{display:flex;gap:8px;margin-top:8px;padding-left:100px}.tc-footer[data-v-8a725bd2]{margin-top:16px}.ai-service-card[data-v-b66101c5]{margin:12px 0}.ml-8[data-v-b66101c5]{margin-left:8px}.rbac-header[data-v-2392979d]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.rbac-title-wrap[data-v-2392979d]{display:flex;flex-direction:column;gap:4px}.rbac-title[data-v-2392979d]{font-weight:600;font-size:16px;color:var(--mg-text-light)}.rbac-desc[data-v-2392979d]{font-size:12.5px;color:var(--mg-text-muted)}.tab-toolbar[data-v-2392979d]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.toolbar-hint[data-v-2392979d]{font-size:13px;color:var(--mg-text-muted)}.mg-tag[data-v-2392979d]{margin:2px 4px 2px 0}.muted[data-v-2392979d]{color:var(--mg-text-faint)}.page-picker[data-v-2392979d]{display:flex;flex-direction:column;gap:14px;max-height:320px;overflow-y:auto;padding:4px 2px}.page-group-head[data-v-2392979d]{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.page-group-title[data-v-2392979d]{font-weight:600;font-size:13px;color:var(--mg-accent, #c4b5fd)}.page-checks[data-v-2392979d]{display:flex;flex-wrap:wrap;gap:4px 18px}.wildcard-hint[data-v-2392979d]{font-size:13px;color:var(--mg-status-warning, #f59e0b);padding:4px 0 8px}.config-hub-page[data-v-ee3a3656]{padding:16px;height:100%;display:flex;flex-direction:column;overflow:hidden}.hub-tabs[data-v-ee3a3656]{flex:1;min-height:0;display:flex;flex-direction:column}[data-v-ee3a3656] .el-tabs__content{flex:1;min-height:0;overflow:auto}[data-v-ee3a3656] .el-tab-pane{height:100%}.config-pane[data-v-ee3a3656]{height:100%;overflow:auto}[data-v-ee3a3656] .el-tabs__item{color:var(--mg-text-muted, rgba(255, 255, 255, .65))}[data-v-ee3a3656] .el-tabs__item.is-active{color:var(--mg-text-light, #fff)}[data-v-ee3a3656] .el-tabs__active-bar{background-color:var(--mg-accent, var(--el-color-primary))}[data-v-ee3a3656] .el-tabs__nav-wrap:after{background-color:#ffffff14} diff --git a/MiGu.Server/wwwroot/assets/SystemCenterView-DTMANlHu.js b/MiGu.Server/wwwroot/assets/SystemCenterView-DTMANlHu.js new file mode 100644 index 0000000..a7aa3fa --- /dev/null +++ b/MiGu.Server/wwwroot/assets/SystemCenterView-DTMANlHu.js @@ -0,0 +1,2 @@ +import{aN as Q,bZ as Ye,bC as C,bs as u,aG as x,aD as c,aK as e,x as Ze,c8 as l,ai as R,bE as D,aE as E,N as ie,bS as T,aj as Qe,O as ue,z as el,bL as S,r as de,aJ as d,bl as ll,ad as re,aF as H,ay as Z,aW as al,X as b,y as tl,ak as ee,bp as he,h as ol,S as nl,G as Se,a4 as Te,Z as Ie,a8 as ze,R as Ae,t as Pe,bA as se,b4 as B,bV as sl,ac as Ne,a9 as Re,bv as Ve,c9 as we,b$ as il,ab as ul,aS as ke,b9 as dl,aP as Ce,bD as rl,F as ml,a2 as pl,w as cl,v as fl,Y as Ue,aa as _l,u as vl,L as bl,c7 as xe,bW as gl,bX as yl}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as Vl}from"./ConfigPageBase-CgfsngDp.js";/* empty css *//* empty css */import{a as Ee,m as wl}from"./mapEdit-BXIATxCI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css */import"./PermissionGuard-CR4qtxrh.js";import"./reflection-BwOBPyb9.js";import"./monitorConfigCache-DXn96T8F.js";const kl={class:"theme-customizer"},Cl={class:"tc-title-row"},Ul={class:"tc-name"},xl={class:"tc-panel"},El={class:"tc-picker-row"},$l={class:"tc-hex"},hl={class:"tc-field-hint"},Sl={class:"tc-actions"},Tl={class:"tc-footer"},Il=Q({__name:"ThemeCustomizer",setup(v){const s=Ye(),I=C(s.themeId),M=["#7c3aed","#8b5cf6","#c4b5fd","#5b21b6","#4c1d95","#6366f1","#a855f7","#9333ea","#1565c0","#00796b","#b71c1c","#455a64","#e65100"],A=Z(()=>s.availableThemes.some(y=>w(y.id)));function w(y){const p=s.themeOverrides[y];return!!p&&Object.keys(p).length>0}function m(y){const p=s.getMergedTheme(al(y));return{background:`linear-gradient(135deg, ${p.preview} 0%, ${p.previewAccent} 100%)`}}function i(y,p,z){z&&(s.setThemeColor(y,p,z),y===s.themeId&&b.success("已应用当前主题配色"))}function $(y){s.clearThemeOverrides(y),b.info("已恢复该主题默认配色")}function g(){s.clearAllThemeOverrides(),b.info("已恢复全部主题默认配色")}return(y,p)=>{const z=re,O=el,r=ue,F=ie,q=de,G=tl,J=Ze;return u(),x("div",kl,[p[6]||(p[6]=c("p",{class:"tc-hint"}," 为各主题单独调色;修改后立即预览。当前生效主题会同步应用到全站。保存系统配置时一并写入本地。 ",-1)),e(J,{modelValue:I.value,"onUpdate:modelValue":p[0]||(p[0]=n=>I.value=n),accordion:""},{default:l(()=>[(u(!0),x(R,null,D(T(s).availableThemes,n=>(u(),E(G,{key:n.id,name:n.id},{title:l(()=>[c("div",Cl,[c("span",{class:"tc-swatch",style:ll(m(n.id))},null,4),c("span",Ul,S(n.name),1),w(n.id)?(u(),E(z,{key:0,size:"small",type:"warning",effect:"plain"},{default:l(()=>[...p[1]||(p[1]=[d("已自定义",-1)])]),_:1})):H("",!0),n.id===T(s).themeId?(u(),E(z,{key:1,size:"small",type:"success",effect:"plain"},{default:l(()=>[...p[2]||(p[2]=[d("当前",-1)])]),_:1})):H("",!0)])]),default:l(()=>[c("div",xl,[e(F,{"label-width":"100px",class:"tc-form"},{default:l(()=>[(u(!0),x(R,null,D(T(Qe),V=>(u(),E(r,{key:V.key,label:V.label},{default:l(()=>[c("div",El,[e(O,{"model-value":T(s).getThemeColor(n.id,V.key),"color-format":"hex",predefine:M,"onUpdate:modelValue":f=>i(n.id,V.key,f)},null,8,["model-value","onUpdate:modelValue"]),c("span",$l,S(T(s).getThemeColor(n.id,V.key)),1),c("span",hl,S(V.hint),1)])]),_:2},1032,["label"]))),128))]),_:2},1024),c("div",Sl,[e(q,{size:"small",onClick:V=>T(s).setThemeId(n.id)},{default:l(()=>[...p[3]||(p[3]=[d("切换到此主题",-1)])]),_:1},8,["onClick"]),e(q,{size:"small",disabled:!w(n.id),onClick:V=>$(n.id)},{default:l(()=>[...p[4]||(p[4]=[d("恢复默认",-1)])]),_:1},8,["disabled","onClick"])])])]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),c("div",Tl,[e(q,{size:"small",type:"warning",plain:"",disabled:!A.value,onClick:g},{default:l(()=>[...p[5]||(p[5]=[d(" 重置全部主题配色 ",-1)])]),_:1},8,["disabled"])])])}}}),zl=ee(Il,[["__scopeId","data-v-8a725bd2"]]),Al=Q({__name:"SystemConfigView",setup(v){const s=se({endpoint:"https://api.openai.com/v1/chat/completions",apiKey:"",model:"gpt-4o-mini",systemPrompt:"你是一个 AGV 路网设计师。",temperature:.4,maxTokens:4096,timeoutSec:60,configured:!1}),I=C(!1),M=C(!1);he(async()=>{try{const m=await Ee.get();Object.assign(s,m)}catch(m){b.warning(`无法读取 AI 配置:${m.message}`)}});async function A(){try{I.value=!0,await Ee.save({...s}),b.success("AI 配置已保存"),s.configured=!!s.apiKey}catch(m){b.error(`保存失败:${m.message}`)}finally{I.value=!1}}async function w(){try{M.value=!0;const m=await wl.aiMapGenerate({prompt:'测试连通:仅返回 "ok",不要生成任何站点或路径。',mode:"sites",bounds:[0,0,0,0]});b.success(`AI 服务连通正常:返回工具调用 ${m.usedTools} 次`)}catch(m){b.error(`连通失败:${m.message}`)}finally{M.value=!1}}return(m,i)=>{const $=nl,g=ue,y=Se,p=Ie,z=Te,O=ze,r=Ae,F=ie,q=re,G=de,J=Pe;return u(),x(R,null,[e(Vl,{section:"system",title:"系统级配置",description:"运行参数、日志策略、安全策略(对齐 SystemConfig)",defaults:T(ol)},{default:l(({payload:n,update:V})=>[e(F,{"label-width":"160px",model:n},{default:l(()=>[e(g,{label:"调度循环 (Hz)"},{default:l(()=>[e($,{"model-value":n.dispatchLoopHz,min:1,max:200,"onUpdate:modelValue":f=>V({...n,dispatchLoopHz:f??0})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(y,{"content-position":"left"},{default:l(()=>[...i[7]||(i[7]=[d("日志策略",-1)])]),_:1}),e(g,{label:"日志级别"},{default:l(()=>[e(z,{"model-value":n.log.level,"onUpdate:modelValue":f=>V({...n,log:{...n.log,level:f}})},{default:l(()=>[(u(),x(R,null,D(["trace","debug","info","warn","error"],f=>e(p,{key:f,label:f,value:f},null,8,["label","value"])),64))]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(g,{label:"日志保留 (天)"},{default:l(()=>[e($,{"model-value":n.log.rollDays,min:1,max:365,"onUpdate:modelValue":f=>V({...n,log:{...n.log,rollDays:f??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(g,{label:"单文件上限 (MB)"},{default:l(()=>[e($,{"model-value":n.log.maxSizeMB,min:1,max:4096,"onUpdate:modelValue":f=>V({...n,log:{...n.log,maxSizeMB:f??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(y,{"content-position":"left"},{default:l(()=>[...i[8]||(i[8]=[d("安全策略",-1)])]),_:1}),e(g,{label:"JWT 过期 (分钟)"},{default:l(()=>[e($,{"model-value":n.security.jwtExpireMin,min:5,max:43200,"onUpdate:modelValue":f=>V({...n,security:{...n.security,jwtExpireMin:f??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(g,{label:"启用 Swagger"},{default:l(()=>[e(O,{"model-value":n.security.enableSwagger,"onUpdate:modelValue":f=>V({...n,security:{...n.security,enableSwagger:!!f}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(g,{label:"CORS 白名单"},{default:l(()=>[e(r,{type:"textarea",rows:3,"model-value":n.security.corsWhitelist.join(` +`),"onUpdate:modelValue":f=>V({...n,security:{...n.security,corsWhitelist:f.split(/\s+/).filter(Boolean)}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(y,{"content-position":"left"},{default:l(()=>[...i[9]||(i[9]=[d("界面主题配色",-1)])]),_:1}),e(g,{label:"主题取色盘"},{default:l(()=>[e(zl)]),_:1})]),_:2},1032,["model"])]),_:1},8,["defaults"]),e(J,{class:"ai-service-card",shadow:"never"},{header:l(()=>[i[12]||(i[12]=c("span",null,"AI 服务(地图编辑器「AI 生图」依赖)",-1)),s.configured?(u(),E(q,{key:0,type:"success",size:"small",effect:"dark",class:"ml-8"},{default:l(()=>[...i[10]||(i[10]=[d("已配置",-1)])]),_:1})):(u(),E(q,{key:1,type:"warning",size:"small",effect:"dark",class:"ml-8"},{default:l(()=>[...i[11]||(i[11]=[d("未配置",-1)])]),_:1}))]),default:l(()=>[e(F,{"label-width":"140px",size:"default"},{default:l(()=>[e(g,{label:"Endpoint"},{default:l(()=>[e(r,{modelValue:s.endpoint,"onUpdate:modelValue":i[0]||(i[0]=n=>s.endpoint=n),placeholder:"https://api.openai.com/v1/chat/completions"},null,8,["modelValue"])]),_:1}),e(g,{label:"API Key"},{default:l(()=>[e(r,{modelValue:s.apiKey,"onUpdate:modelValue":i[1]||(i[1]=n=>s.apiKey=n),type:"password","show-password":"",placeholder:"sk-..."},null,8,["modelValue"])]),_:1}),e(g,{label:"模型"},{default:l(()=>[e(r,{modelValue:s.model,"onUpdate:modelValue":i[2]||(i[2]=n=>s.model=n),placeholder:"gpt-4o-mini"},null,8,["modelValue"])]),_:1}),e(g,{label:"System Prompt"},{default:l(()=>[e(r,{modelValue:s.systemPrompt,"onUpdate:modelValue":i[3]||(i[3]=n=>s.systemPrompt=n),type:"textarea",rows:4},null,8,["modelValue"])]),_:1}),e(g,{label:"Temperature"},{default:l(()=>[e($,{modelValue:s.temperature,"onUpdate:modelValue":i[4]||(i[4]=n=>s.temperature=n),min:0,max:2,step:.1},null,8,["modelValue"])]),_:1}),e(g,{label:"Max Tokens"},{default:l(()=>[e($,{modelValue:s.maxTokens,"onUpdate:modelValue":i[5]||(i[5]=n=>s.maxTokens=n),min:64,max:32e3,step:64},null,8,["modelValue"])]),_:1}),e(g,{label:"超时 (秒)"},{default:l(()=>[e($,{modelValue:s.timeoutSec,"onUpdate:modelValue":i[6]||(i[6]=n=>s.timeoutSec=n),min:5,max:600},null,8,["modelValue"])]),_:1}),e(g,null,{default:l(()=>[e(G,{type:"primary",loading:I.value,onClick:A},{default:l(()=>[...i[13]||(i[13]=[d("保存 AI 配置",-1)])]),_:1},8,["loading"]),e(G,{loading:M.value,onClick:w},{default:l(()=>[...i[14]||(i[14]=[d("测试连通",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})],64)}}}),Pl=ee(Al,[["__scopeId","data-v-b66101c5"]]);async function Nl(){const{data:v}=await B.get("/rbac/catalog");return v}async function Rl(){const{data:v}=await B.get("/rbac/roles");return v}async function Ml(v){if(v.id){const{data:I}=await B.put(`/rbac/roles/${v.id}`,v);return I}const{data:s}=await B.post("/rbac/roles",v);return s}async function Ol(v){await B.delete(`/rbac/roles/${v}`)}async function Bl(){const{data:v}=await B.get("/rbac/users");return v}async function Dl(v){const{data:s}=await B.post("/rbac/users",v);return s}async function $e(v,s){const{data:I}=await B.put(`/rbac/users/${v}`,s);return I}async function ql(v,s){await B.put(`/rbac/users/${v}/password`,{password:s})}async function jl(v){await B.delete(`/rbac/users/${v}`)}const Ll={class:"rbac-header"},Fl={class:"tab-toolbar"},Gl={class:"toolbar-hint"},Kl={key:0,class:"muted"},Wl={class:"tab-toolbar"},Hl={class:"toolbar-hint"},Jl={key:1},Xl={key:0,class:"page-picker"},Yl={class:"page-group-head"},Zl={class:"page-group-title"},Ql={class:"page-group-actions"},ea={key:1,class:"wildcard-hint"},la=Q({__name:"AuthRoleView",setup(v){const s=sl(),I=Z(()=>s.user?.id??""),M=C("users"),A=C(!1),w=C(!1),m=C(null),i=C([]),$=C([]);function g(o){return i.value.find(a=>a.id===o)?.name??o}function y(o){return o==="*"?"通用":o==="Platform"?"管理端":o==="RCSMonitor"?"运营端":o}function p(o){return o==="*"?"danger":o==="Platform"?"warning":"success"}async function z(){A.value=!0;try{const[o,a,_]=await Promise.all([Nl(),Rl(),Bl()]);m.value=o,i.value=a,$.value=_}catch(o){b.error(`加载失败:${L(o)}`)}finally{A.value=!1}}const O=C(!1),r=se({id:null,username:"",displayName:"",password:"",roleIds:[],enabled:!0});function F(){Object.assign(r,{id:null,username:"",displayName:"",password:"",roleIds:[],enabled:!0}),O.value=!0}function q(o){Object.assign(r,{id:o.id,username:o.username,displayName:o.displayName,password:"",roleIds:[...o.roleIds],enabled:o.enabled}),O.value=!0}async function G(){w.value=!0;try{r.id?(await $e(r.id,{displayName:r.displayName,roleIds:r.roleIds,enabled:r.enabled}),b.success("用户已更新")):(await Dl({username:r.username,displayName:r.displayName,password:r.password,roleIds:r.roleIds,enabled:r.enabled}),b.success("用户已创建")),O.value=!1,await z()}catch(o){b.error(L(o))}finally{w.value=!1}}async function J(o,a){o._busy=!0;try{await $e(o.id,{enabled:a}),o.enabled=a,b.success(a?"已启用":"已停用")}catch(_){b.error(L(_))}finally{o._busy=!1}}async function n(o){try{await Ue.confirm(`确定删除用户「${o.username}」?此操作不可恢复。`,"删除确认",{type:"warning"})}catch{return}try{await jl(o.id),b.success("用户已删除"),await z()}catch(a){b.error(L(a))}}const V=C(!1),f=C(null),X=C("");function Me(o){f.value=o,X.value="",V.value=!0}async function Oe(){if(f.value){if(!X.value){b.warning("请输入新密码");return}w.value=!0;try{await ql(f.value.id,X.value),b.success("密码已重置"),V.value=!1}catch(o){b.error(L(o))}finally{w.value=!1}}}const K=C(!1),U=se({id:null,name:"",description:"",scope:"Platform"}),P=C([]),j=C(!1),le=C([]),ae=C([]),me=Z(()=>(m.value?.pages??[]).filter(o=>U.scope==="*"||o.scope===U.scope)),pe=Z(()=>{const o=new Map;for(const a of me.value)o.has(a.group)||o.set(a.group,[]),o.get(a.group).push(a);return[...o.entries()].map(([a,_])=>({group:a,pages:_}))});function Be(){Object.assign(U,{id:null,name:"",description:"",scope:"Platform"}),P.value=[],j.value=!1,le.value=[],ae.value=[],K.value=!0}function De(o){Object.assign(U,{id:o.id,name:o.name,description:o.description,scope:o.scope}),j.value=o.pages.includes("*"),P.value=j.value?[]:[...o.pages],le.value=[...o.ops],ae.value=o.widgetGrants.map(a=>({...a})),K.value=!0}function qe(){const o=new Set(me.value.map(a=>a.key));P.value=P.value.filter(a=>o.has(a))}function ce(o,a){const _=o.map(h=>h.key);a?P.value=[...new Set([...P.value,..._])]:P.value=P.value.filter(h=>!_.includes(h))}async function je(){if(!U.name.trim()){b.warning("请填写角色名称");return}w.value=!0;try{await Ml({id:U.id??void 0,name:U.name,description:U.description,scope:U.scope,pages:j.value?["*"]:P.value,ops:le.value,widgetGrants:ae.value}),b.success(U.id?"角色已更新":"角色已创建"),K.value=!1,await z()}catch(o){b.error(L(o))}finally{w.value=!1}}async function Le(o){try{await Ue.confirm(`确定删除角色「${o.name}」?`,"删除确认",{type:"warning"})}catch{return}try{await Ol(o.id),b.success("角色已删除"),await z()}catch(a){b.error(L(a))}}function L(o){return o instanceof Error?o.message:String(o)}return he(z),(o,a)=>{const _=de,h=ul,Y=re,te=ze,fe=_l,_e=Re,Fe=Ne,Ge=Pe,W=Ae,N=ue,ve=Ie,be=Te,oe=ie,ne=ml,ge=cl,Ke=pl,We=Se,He=vl,Je=fl,Xe=bl,ye=il;return u(),x(R,null,[e(Ge,{shadow:"never",class:"rbac-card"},{header:l(()=>[c("div",Ll,[a[19]||(a[19]=c("div",{class:"rbac-title-wrap"},[c("span",{class:"rbac-title"},"权限与角色管理"),c("span",{class:"rbac-desc"},"为角色分配可访问页面、操作与控件,并为用户指派角色(标准 RBAC)。")],-1)),e(_,{icon:T(rl),loading:A.value,onClick:z},{default:l(()=>[...a[18]||(a[18]=[d("刷新",-1)])]),_:1},8,["icon","loading"])])]),default:l(()=>[e(Fe,{modelValue:M.value,"onUpdate:modelValue":a[0]||(a[0]=t=>M.value=t),class:"rbac-tabs"},{default:l(()=>[e(_e,{label:"用户管理",name:"users"},{default:l(()=>[c("div",Fl,[c("span",Gl,"共 "+S($.value.length)+" 个用户",1),e(_,{type:"primary",icon:T(Ve),onClick:F},{default:l(()=>[...a[20]||(a[20]=[d("新增用户",-1)])]),_:1},8,["icon"])]),we((u(),E(fe,{data:$.value,size:"default",border:"",stripe:""},{default:l(()=>[e(h,{label:"用户名",prop:"username",width:"140"}),e(h,{label:"显示名",prop:"displayName",width:"150"}),e(h,{label:"角色","min-width":"200"},{default:l(({row:t})=>[(u(!0),x(R,null,D(t.roleIds,k=>(u(),E(Y,{key:k,size:"small",effect:"plain",class:"mg-tag"},{default:l(()=>[d(S(g(k)),1)]),_:2},1024))),128)),t.roleIds.length?H("",!0):(u(),x("span",Kl,"—"))]),_:1}),e(h,{label:"可用域",width:"180"},{default:l(({row:t})=>[(u(!0),x(R,null,D(t.scopes,k=>(u(),E(Y,{key:k,size:"small",type:"info",effect:"plain",class:"mg-tag"},{default:l(()=>[d(S(y(k)),1)]),_:2},1024))),128))]),_:1}),e(h,{label:"启用",width:"90",align:"center"},{default:l(({row:t})=>[e(te,{"model-value":t.enabled,loading:t._busy,onChange:k=>J(t,!!k)},null,8,["model-value","loading","onChange"])]),_:1}),e(h,{label:"操作",width:"220",align:"center"},{default:l(({row:t})=>[e(_,{link:"",type:"primary",icon:T(ke),onClick:k=>q(t)},{default:l(()=>[...a[21]||(a[21]=[d("编辑",-1)])]),_:1},8,["icon","onClick"]),e(_,{link:"",type:"warning",icon:T(dl),onClick:k=>Me(t)},{default:l(()=>[...a[22]||(a[22]=[d("改密",-1)])]),_:1},8,["icon","onClick"]),e(_,{link:"",type:"danger",icon:T(Ce),disabled:t.id===I.value,onClick:k=>n(t)},{default:l(()=>[...a[23]||(a[23]=[d("删除",-1)])]),_:1},8,["icon","disabled","onClick"])]),_:1})]),_:1},8,["data"])),[[ye,A.value]])]),_:1}),e(_e,{label:"角色与页面权限",name:"roles"},{default:l(()=>[c("div",Wl,[c("span",Hl,"共 "+S(i.value.length)+" 个角色",1),e(_,{type:"primary",icon:T(Ve),onClick:Be},{default:l(()=>[...a[24]||(a[24]=[d("新增角色",-1)])]),_:1},8,["icon"])]),we((u(),E(fe,{data:i.value,size:"default",border:"",stripe:""},{default:l(()=>[e(h,{label:"角色名称",width:"160"},{default:l(({row:t})=>[c("span",null,S(t.name),1),t.system?(u(),E(Y,{key:0,size:"small",type:"success",effect:"plain",class:"mg-tag"},{default:l(()=>[...a[25]||(a[25]=[d("内置",-1)])]),_:1})):H("",!0)]),_:1}),e(h,{label:"描述",prop:"description","min-width":"180","show-overflow-tooltip":""}),e(h,{label:"归属域",width:"120"},{default:l(({row:t})=>[e(Y,{size:"small",type:p(t.scope),effect:"plain"},{default:l(()=>[d(S(y(t.scope)),1)]),_:2},1032,["type"])]),_:1}),e(h,{label:"可访问页面",width:"130",align:"center"},{default:l(({row:t})=>[t.pages.includes("*")?(u(),E(Y,{key:0,size:"small",type:"danger",effect:"plain"},{default:l(()=>[...a[26]||(a[26]=[d("全部页面",-1)])]),_:1})):(u(),x("span",Jl,S(t.pages.length)+" 个",1))]),_:1}),e(h,{label:"操作",width:"160",align:"center"},{default:l(({row:t})=>[e(_,{link:"",type:"primary",icon:T(ke),onClick:k=>De(t)},{default:l(()=>[...a[27]||(a[27]=[d("编辑",-1)])]),_:1},8,["icon","onClick"]),e(_,{link:"",type:"danger",icon:T(Ce),disabled:t.system,onClick:k=>Le(t)},{default:l(()=>[...a[28]||(a[28]=[d("删除",-1)])]),_:1},8,["icon","disabled","onClick"])]),_:1})]),_:1},8,["data"])),[[ye,A.value]])]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(ne,{modelValue:O.value,"onUpdate:modelValue":a[7]||(a[7]=t=>O.value=t),title:r.id?"编辑用户":"新增用户",width:"480px","destroy-on-close":""},{footer:l(()=>[e(_,{onClick:a[6]||(a[6]=t=>O.value=!1)},{default:l(()=>[...a[29]||(a[29]=[d("取消",-1)])]),_:1}),e(_,{type:"primary",loading:w.value,onClick:G},{default:l(()=>[...a[30]||(a[30]=[d("保存",-1)])]),_:1},8,["loading"])]),default:l(()=>[e(oe,{"label-width":"84px","label-position":"right"},{default:l(()=>[e(N,{label:"用户名",required:""},{default:l(()=>[e(W,{modelValue:r.username,"onUpdate:modelValue":a[1]||(a[1]=t=>r.username=t),disabled:!!r.id,placeholder:"登录用户名"},null,8,["modelValue","disabled"])]),_:1}),e(N,{label:"显示名"},{default:l(()=>[e(W,{modelValue:r.displayName,"onUpdate:modelValue":a[2]||(a[2]=t=>r.displayName=t),placeholder:"界面展示名称(留空则同用户名)"},null,8,["modelValue"])]),_:1}),r.id?H("",!0):(u(),E(N,{key:0,label:"初始密码",required:""},{default:l(()=>[e(W,{modelValue:r.password,"onUpdate:modelValue":a[3]||(a[3]=t=>r.password=t),type:"password","show-password":"",placeholder:"设置初始登录密码"},null,8,["modelValue"])]),_:1})),e(N,{label:"角色"},{default:l(()=>[e(be,{modelValue:r.roleIds,"onUpdate:modelValue":a[4]||(a[4]=t=>r.roleIds=t),multiple:"",filterable:"",placeholder:"选择一个或多个角色",style:{width:"100%"}},{default:l(()=>[(u(!0),x(R,null,D(i.value,t=>(u(),E(ve,{key:t.id,label:`${t.name}(${y(t.scope)})`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(N,{label:"启用"},{default:l(()=>[e(te,{modelValue:r.enabled,"onUpdate:modelValue":a[5]||(a[5]=t=>r.enabled=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"]),e(ne,{modelValue:V.value,"onUpdate:modelValue":a[10]||(a[10]=t=>V.value=t),title:"重置密码",width:"420px","destroy-on-close":""},{footer:l(()=>[e(_,{onClick:a[9]||(a[9]=t=>V.value=!1)},{default:l(()=>[...a[31]||(a[31]=[d("取消",-1)])]),_:1}),e(_,{type:"primary",loading:w.value,onClick:Oe},{default:l(()=>[...a[32]||(a[32]=[d("确定",-1)])]),_:1},8,["loading"])]),default:l(()=>[e(oe,{"label-width":"84px"},{default:l(()=>[e(N,{label:"用户"},{default:l(()=>[c("span",null,S(f.value?.displayName)+"("+S(f.value?.username)+")",1)]),_:1}),e(N,{label:"新密码",required:""},{default:l(()=>[e(W,{modelValue:X.value,"onUpdate:modelValue":a[8]||(a[8]=t=>X.value=t),type:"password","show-password":"",placeholder:"输入新密码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),e(ne,{modelValue:K.value,"onUpdate:modelValue":a[17]||(a[17]=t=>K.value=t),title:U.id?"编辑角色":"新增角色",width:"760px",top:"6vh","destroy-on-close":""},{footer:l(()=>[e(_,{onClick:a[16]||(a[16]=t=>K.value=!1)},{default:l(()=>[...a[36]||(a[36]=[d("取消",-1)])]),_:1}),e(_,{type:"primary",loading:w.value,onClick:je},{default:l(()=>[...a[37]||(a[37]=[d("保存",-1)])]),_:1},8,["loading"])]),default:l(()=>[e(oe,{"label-width":"92px","label-position":"right"},{default:l(()=>[e(Ke,{gutter:12},{default:l(()=>[e(ge,{span:12},{default:l(()=>[e(N,{label:"角色名称",required:""},{default:l(()=>[e(W,{modelValue:U.name,"onUpdate:modelValue":a[11]||(a[11]=t=>U.name=t),placeholder:"如:场景设计员"},null,8,["modelValue"])]),_:1})]),_:1}),e(ge,{span:12},{default:l(()=>[e(N,{label:"归属域",required:""},{default:l(()=>[e(be,{modelValue:U.scope,"onUpdate:modelValue":a[12]||(a[12]=t=>U.scope=t),style:{width:"100%"},onChange:qe},{default:l(()=>[(u(!0),x(R,null,D(m.value?.scopes??[],t=>(u(),E(ve,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(N,{label:"描述"},{default:l(()=>[e(W,{modelValue:U.description,"onUpdate:modelValue":a[13]||(a[13]=t=>U.description=t),placeholder:"角色用途说明"},null,8,["modelValue"])]),_:1}),e(We,{"content-position":"left"},{default:l(()=>[...a[33]||(a[33]=[d("可访问页面",-1)])]),_:1}),e(N,{label:"授权方式"},{default:l(()=>[e(te,{modelValue:j.value,"onUpdate:modelValue":a[14]||(a[14]=t=>j.value=t),"active-text":"该域全部页面(含未来新增)","inactive-text":"按页面精确勾选","inline-prompt":"",style:{"--el-switch-on-color":"var(--mg-primary, #6366f1)"}},null,8,["modelValue"])]),_:1}),j.value?(u(),x("div",ea,"已授予「"+S(y(U.scope))+"」下的全部页面(包括未来新增的页面)。",1)):(u(),x("div",Xl,[(u(!0),x(R,null,D(pe.value,t=>(u(),x("div",{key:t.group,class:"page-group"},[c("div",Yl,[c("span",Zl,S(t.group),1),c("span",Ql,[e(_,{link:"",type:"primary",size:"small",onClick:k=>ce(t.pages,!0)},{default:l(()=>[...a[34]||(a[34]=[d("全选",-1)])]),_:1},8,["onClick"]),e(_,{link:"",type:"info",size:"small",onClick:k=>ce(t.pages,!1)},{default:l(()=>[...a[35]||(a[35]=[d("清空",-1)])]),_:1},8,["onClick"])])]),e(Je,{modelValue:P.value,"onUpdate:modelValue":a[15]||(a[15]=k=>P.value=k),class:"page-checks"},{default:l(()=>[(u(!0),x(R,null,D(t.pages,k=>(u(),E(He,{key:k.key,value:k.key,label:k.key},{default:l(()=>[d(S(k.label),1)]),_:2},1032,["value","label"]))),128))]),_:2},1032,["modelValue"])]))),128)),pe.value.length?H("",!0):(u(),E(Xe,{key:0,description:"该域暂无可分配页面","image-size":60}))]))]),_:1})]),_:1},8,["modelValue","title"])],64)}}}),aa=ee(la,[["__scopeId","data-v-2392979d"]]),ta={class:"config-hub-page"},oa={class:"config-pane"},na={class:"config-pane"},sa=Q({__name:"SystemCenterView",setup(v){const s=gl(),I=yl(),M=["system","auth"];function A(){const m=s.query.tab;return typeof m=="string"&&M.includes(m)?m:"system"}const w=C(A());return xe(w,m=>{s.query.tab!==m&&I.replace({query:{...s.query,tab:m}})}),xe(()=>s.query.tab,()=>{const m=A();m!==w.value&&(w.value=m)}),(m,i)=>{const $=Re,g=Ne;return u(),x("div",ta,[e(g,{modelValue:w.value,"onUpdate:modelValue":i[0]||(i[0]=y=>w.value=y),class:"hub-tabs"},{default:l(()=>[e($,{name:"system",label:"系统级配置"},{default:l(()=>[c("div",oa,[e(Pl)])]),_:1}),e($,{name:"auth",label:"权限与角色",lazy:""},{default:l(()=>[c("div",na,[e(aa)])]),_:1})]),_:1},8,["modelValue"])])}}}),Ra=ee(sa,[["__scopeId","data-v-ee3a3656"]]);export{Ra as default}; diff --git a/MiGu.Server/wwwroot/assets/SystemConfigView-Cy7YXbTA.js b/MiGu.Server/wwwroot/assets/SystemConfigView-Cy7YXbTA.js deleted file mode 100644 index 4f617c3..0000000 --- a/MiGu.Server/wwwroot/assets/SystemConfigView-Cy7YXbTA.js +++ /dev/null @@ -1,2 +0,0 @@ -import{aI as P,by as F,bh as A,b9 as c,aE as x,aB as p,aH as l,x as K,bJ as t,ai as U,bj as B,aC as k,N as $,bt as v,aj as G,O as j,z as R,bq as h,r as D,aG as u,b4 as W,ad as H,aD as M,ax as J,aP as q,X as _,y as X,ak as L,b7 as Y,bg as Z,t as Q,S as ee,H as le,a4 as te,Z as oe,a8 as ae,R as ne,h as se}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as ie}from"./ConfigPageBase-MHa7yfOO.js";/* empty css *//* empty css */import{a as O,m as me}from"./mapEdit-TNAQr3Be.js";/* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const de={class:"theme-customizer"},re={class:"tc-title-row"},ue={class:"tc-name"},pe={class:"tc-panel"},ce={class:"tc-picker-row"},fe={class:"tc-hex"},_e={class:"tc-field-hint"},ge={class:"tc-actions"},be={class:"tc-footer"},ve=P({__name:"ThemeCustomizer",setup(N){const o=F(),V=A(o.themeId),w=["#7c3aed","#8b5cf6","#c4b5fd","#5b21b6","#4c1d95","#6366f1","#a855f7","#9333ea","#1565c0","#00796b","#b71c1c","#455a64","#e65100"],S=J(()=>o.availableThemes.some(d=>C(d.id)));function C(d){const n=o.themeOverrides[d];return!!n&&Object.keys(n).length>0}function r(d){const n=o.getMergedTheme(q(d));return{background:`linear-gradient(135deg, ${n.preview} 0%, ${n.previewAccent} 100%)`}}function a(d,n,g){g&&(o.setThemeColor(d,n,g),d===o.themeId&&_.success("已应用当前主题配色"))}function f(d){o.clearThemeOverrides(d),_.info("已恢复该主题默认配色")}function i(){o.clearAllThemeOverrides(),_.info("已恢复全部主题默认配色")}return(d,n)=>{const g=H,z=R,b=j,E=$,y=D,T=X,I=K;return c(),x("div",de,[n[6]||(n[6]=p("p",{class:"tc-hint"}," 为各主题单独调色;修改后立即预览。当前生效主题会同步应用到全站。保存系统配置时一并写入本地。 ",-1)),l(I,{modelValue:V.value,"onUpdate:modelValue":n[0]||(n[0]=e=>V.value=e),accordion:""},{default:t(()=>[(c(!0),x(U,null,B(v(o).availableThemes,e=>(c(),k(T,{key:e.id,name:e.id},{title:t(()=>[p("div",re,[p("span",{class:"tc-swatch",style:W(r(e.id))},null,4),p("span",ue,h(e.name),1),C(e.id)?(c(),k(g,{key:0,size:"small",type:"warning",effect:"plain"},{default:t(()=>[...n[1]||(n[1]=[u("已自定义",-1)])]),_:1})):M("",!0),e.id===v(o).themeId?(c(),k(g,{key:1,size:"small",type:"success",effect:"plain"},{default:t(()=>[...n[2]||(n[2]=[u("当前",-1)])]),_:1})):M("",!0)])]),default:t(()=>[p("div",pe,[l(E,{"label-width":"100px",class:"tc-form"},{default:t(()=>[(c(!0),x(U,null,B(v(G),m=>(c(),k(b,{key:m.key,label:m.label},{default:t(()=>[p("div",ce,[l(z,{"model-value":v(o).getThemeColor(e.id,m.key),"color-format":"hex",predefine:w,"onUpdate:modelValue":s=>a(e.id,m.key,s)},null,8,["model-value","onUpdate:modelValue"]),p("span",fe,h(v(o).getThemeColor(e.id,m.key)),1),p("span",_e,h(m.hint),1)])]),_:2},1032,["label"]))),128))]),_:2},1024),p("div",ge,[l(y,{size:"small",onClick:m=>v(o).setThemeId(e.id)},{default:t(()=>[...n[3]||(n[3]=[u("切换到此主题",-1)])]),_:1},8,["onClick"]),l(y,{size:"small",disabled:!C(e.id),onClick:m=>f(e.id)},{default:t(()=>[...n[4]||(n[4]=[u("恢复默认",-1)])]),_:1},8,["disabled","onClick"])])])]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),p("div",be,[l(y,{size:"small",type:"warning",plain:"",disabled:!S.value,onClick:i},{default:t(()=>[...n[5]||(n[5]=[u(" 重置全部主题配色 ",-1)])]),_:1},8,["disabled"])])])}}}),Ve=L(ve,[["__scopeId","data-v-8a725bd2"]]),ye=P({__name:"SystemConfigView",setup(N){const o=Z({endpoint:"https://api.openai.com/v1/chat/completions",apiKey:"",model:"gpt-4o-mini",systemPrompt:"你是一个 AGV 路网设计师。",temperature:.4,maxTokens:4096,timeoutSec:60,configured:!1}),V=A(!1),w=A(!1);Y(async()=>{try{const r=await O.get();Object.assign(o,r)}catch(r){_.warning(`无法读取 AI 配置:${r.message}`)}});async function S(){try{V.value=!0,await O.save({...o}),_.success("AI 配置已保存"),o.configured=!!o.apiKey}catch(r){_.error(`保存失败:${r.message}`)}finally{V.value=!1}}async function C(){try{w.value=!0;const r=await me.aiMapGenerate({prompt:'测试连通:仅返回 "ok",不要生成任何站点或路径。',mode:"sites",bounds:[0,0,0,0]});_.success(`AI 服务连通正常:返回工具调用 ${r.usedTools} 次`)}catch(r){_.error(`连通失败:${r.message}`)}finally{w.value=!1}}return(r,a)=>{const f=ee,i=j,d=le,n=oe,g=te,z=ae,b=ne,E=$,y=H,T=D,I=Q;return c(),x(U,null,[l(ie,{section:"system",title:"系统级配置",description:"运行参数、日志策略、安全策略(对齐 SystemConfig)",defaults:v(se)},{default:t(({payload:e,update:m})=>[l(E,{"label-width":"160px",model:e},{default:t(()=>[l(i,{label:"调度循环 (Hz)"},{default:t(()=>[l(f,{"model-value":e.dispatchLoopHz,min:1,max:200,"onUpdate:modelValue":s=>m({...e,dispatchLoopHz:s??0})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(d,{"content-position":"left"},{default:t(()=>[...a[7]||(a[7]=[u("日志策略",-1)])]),_:1}),l(i,{label:"日志级别"},{default:t(()=>[l(g,{"model-value":e.log.level,"onUpdate:modelValue":s=>m({...e,log:{...e.log,level:s}})},{default:t(()=>[(c(),x(U,null,B(["trace","debug","info","warn","error"],s=>l(n,{key:s,label:s,value:s},null,8,["label","value"])),64))]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(i,{label:"日志保留 (天)"},{default:t(()=>[l(f,{"model-value":e.log.rollDays,min:1,max:365,"onUpdate:modelValue":s=>m({...e,log:{...e.log,rollDays:s??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(i,{label:"单文件上限 (MB)"},{default:t(()=>[l(f,{"model-value":e.log.maxSizeMB,min:1,max:4096,"onUpdate:modelValue":s=>m({...e,log:{...e.log,maxSizeMB:s??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(d,{"content-position":"left"},{default:t(()=>[...a[8]||(a[8]=[u("安全策略",-1)])]),_:1}),l(i,{label:"JWT 过期 (分钟)"},{default:t(()=>[l(f,{"model-value":e.security.jwtExpireMin,min:5,max:43200,"onUpdate:modelValue":s=>m({...e,security:{...e.security,jwtExpireMin:s??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(i,{label:"启用 Swagger"},{default:t(()=>[l(z,{"model-value":e.security.enableSwagger,"onUpdate:modelValue":s=>m({...e,security:{...e.security,enableSwagger:!!s}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(i,{label:"CORS 白名单"},{default:t(()=>[l(b,{type:"textarea",rows:3,"model-value":e.security.corsWhitelist.join(` -`),"onUpdate:modelValue":s=>m({...e,security:{...e.security,corsWhitelist:s.split(/\s+/).filter(Boolean)}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),l(d,{"content-position":"left"},{default:t(()=>[...a[9]||(a[9]=[u("界面主题配色",-1)])]),_:1}),l(i,{label:"主题取色盘"},{default:t(()=>[l(Ve)]),_:1})]),_:2},1032,["model"])]),_:1},8,["defaults"]),l(I,{class:"ai-service-card",shadow:"never"},{header:t(()=>[a[12]||(a[12]=p("span",null,"AI 服务(地图编辑器「AI 生图」依赖)",-1)),o.configured?(c(),k(y,{key:0,type:"success",size:"small",effect:"dark",class:"ml-8"},{default:t(()=>[...a[10]||(a[10]=[u("已配置",-1)])]),_:1})):(c(),k(y,{key:1,type:"warning",size:"small",effect:"dark",class:"ml-8"},{default:t(()=>[...a[11]||(a[11]=[u("未配置",-1)])]),_:1}))]),default:t(()=>[l(E,{"label-width":"140px",size:"default"},{default:t(()=>[l(i,{label:"Endpoint"},{default:t(()=>[l(b,{modelValue:o.endpoint,"onUpdate:modelValue":a[0]||(a[0]=e=>o.endpoint=e),placeholder:"https://api.openai.com/v1/chat/completions"},null,8,["modelValue"])]),_:1}),l(i,{label:"API Key"},{default:t(()=>[l(b,{modelValue:o.apiKey,"onUpdate:modelValue":a[1]||(a[1]=e=>o.apiKey=e),type:"password","show-password":"",placeholder:"sk-..."},null,8,["modelValue"])]),_:1}),l(i,{label:"模型"},{default:t(()=>[l(b,{modelValue:o.model,"onUpdate:modelValue":a[2]||(a[2]=e=>o.model=e),placeholder:"gpt-4o-mini"},null,8,["modelValue"])]),_:1}),l(i,{label:"System Prompt"},{default:t(()=>[l(b,{modelValue:o.systemPrompt,"onUpdate:modelValue":a[3]||(a[3]=e=>o.systemPrompt=e),type:"textarea",rows:4},null,8,["modelValue"])]),_:1}),l(i,{label:"Temperature"},{default:t(()=>[l(f,{modelValue:o.temperature,"onUpdate:modelValue":a[4]||(a[4]=e=>o.temperature=e),min:0,max:2,step:.1},null,8,["modelValue"])]),_:1}),l(i,{label:"Max Tokens"},{default:t(()=>[l(f,{modelValue:o.maxTokens,"onUpdate:modelValue":a[5]||(a[5]=e=>o.maxTokens=e),min:64,max:32e3,step:64},null,8,["modelValue"])]),_:1}),l(i,{label:"超时 (秒)"},{default:t(()=>[l(f,{modelValue:o.timeoutSec,"onUpdate:modelValue":a[6]||(a[6]=e=>o.timeoutSec=e),min:5,max:600},null,8,["modelValue"])]),_:1}),l(i,null,{default:t(()=>[l(T,{type:"primary",loading:V.value,onClick:S},{default:t(()=>[...a[13]||(a[13]=[u("保存 AI 配置",-1)])]),_:1},8,["loading"]),l(T,{loading:w.value,onClick:C},{default:t(()=>[...a[14]||(a[14]=[u("测试连通",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})],64)}}}),Fe=L(ye,[["__scopeId","data-v-b66101c5"]]);export{Fe as default}; diff --git a/MiGu.Server/wwwroot/assets/SystemConfigView-zK_tPjiF.css b/MiGu.Server/wwwroot/assets/SystemConfigView-zK_tPjiF.css deleted file mode 100644 index 11c0a91..0000000 --- a/MiGu.Server/wwwroot/assets/SystemConfigView-zK_tPjiF.css +++ /dev/null @@ -1 +0,0 @@ -.theme-customizer[data-v-8a725bd2]{margin-top:8px}.tc-hint[data-v-8a725bd2]{margin:0 0 12px;font-size:12px;color:var(--mg-text-dim, rgba(255, 255, 255, .55));line-height:1.5}.tc-title-row[data-v-8a725bd2]{display:flex;align-items:center;gap:10px;width:100%}.tc-swatch[data-v-8a725bd2]{width:22px;height:22px;border-radius:6px;flex-shrink:0;box-shadow:0 2px 6px #00000059}.tc-name[data-v-8a725bd2]{font-weight:600;color:var(--mg-text-light, #fff)}.tc-panel[data-v-8a725bd2]{padding:4px 8px 12px}.tc-picker-row[data-v-8a725bd2]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.tc-hex[data-v-8a725bd2]{font-family:ui-monospace,monospace;font-size:12px;color:var(--mg-text-muted, rgba(255, 255, 255, .75))}.tc-field-hint[data-v-8a725bd2]{font-size:11px;color:var(--mg-text-dim, rgba(255, 255, 255, .45))}.tc-actions[data-v-8a725bd2]{display:flex;gap:8px;margin-top:8px;padding-left:100px}.tc-footer[data-v-8a725bd2]{margin-top:16px}.ai-service-card[data-v-b66101c5]{margin:12px 0}.ml-8[data-v-b66101c5]{margin-left:8px} diff --git a/MiGu.Server/wwwroot/assets/TaskAllocationView-BoGL3AmK.js b/MiGu.Server/wwwroot/assets/TaskAllocationView-BoGL3AmK.js deleted file mode 100644 index d33dd73..0000000 --- a/MiGu.Server/wwwroot/assets/TaskAllocationView-BoGL3AmK.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as p,aC as f,bJ as o,bt as c,b9 as b,aH as e,N as v,O as V,a1 as x,a0 as B,aG as n,a8 as C,S as E,i as U}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as k}from"./ConfigPageBase-MHa7yfOO.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const j=p({__name:"TaskAllocationView",setup(w){return(T,t)=>{const m=B,d=x,u=V,i=C,s=E,_=v;return b(),f(k,{section:"task",title:"任务分配机制",description:"负载均衡、就近分配、优先级调度(TaskAllocationPolicy)",defaults:c(U)},{default:o(({payload:l,update:r})=>[e(_,{"label-width":"160px",model:l},{default:o(()=>[e(u,{label:"分配模式"},{default:o(()=>[e(d,{"model-value":l.mode,"onUpdate:modelValue":a=>r({...l,mode:a})},{default:o(()=>[e(m,{value:"roundRobin"},{default:o(()=>[...t[0]||(t[0]=[n("轮询",-1)])]),_:1}),e(m,{value:"nearest"},{default:o(()=>[...t[1]||(t[1]=[n("就近",-1)])]),_:1}),e(m,{value:"leastLoad"},{default:o(()=>[...t[2]||(t[2]=[n("最少负载",-1)])]),_:1}),e(m,{value:"custom"},{default:o(()=>[...t[3]||(t[3]=[n("自定义",-1)])]),_:1})]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(u,{label:"启用负载均衡"},{default:o(()=>[e(i,{"model-value":l.loadBalance,"onUpdate:modelValue":a=>r({...l,loadBalance:!!a})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(u,{label:"单车队列上限"},{default:o(()=>[e(s,{"model-value":l.maxQueuePerCar,min:1,max:100,"onUpdate:modelValue":a=>r({...l,maxQueuePerCar:a??0})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])]),_:1},8,["defaults"])}}});export{j as default}; diff --git a/MiGu.Server/wwwroot/assets/TaskTemplateView-0IwfArtT.css b/MiGu.Server/wwwroot/assets/TaskTemplateView-0IwfArtT.css new file mode 100644 index 0000000..2122e5c --- /dev/null +++ b/MiGu.Server/wwwroot/assets/TaskTemplateView-0IwfArtT.css @@ -0,0 +1 @@ +.vue-flow{position:relative;width:100%;height:100%;overflow:hidden;z-index:0;direction:ltr}.vue-flow__container{position:absolute;height:100%;width:100%;left:0;top:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.vue-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.vue-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{position:absolute;z-index:5;margin:15px}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10}}:root{--vf-node-bg: #fff;--vf-node-text: #222;--vf-connection-path: #b1b1b7;--vf-handle: #555}.vue-flow__edge.updating .vue-flow__edge-path{stroke:#777}.vue-flow__edge-text{font-size:10px}.vue-flow__edge-textbg{fill:#fff}.vue-flow__connection-path{stroke:var(--vf-connection-path)}.vue-flow__node{cursor:grab}.vue-flow__node.selectable:focus,.vue-flow__node.selectable:focus-visible{outline:none}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;text-align:center;border-width:1px;border-style:solid;color:var(--vf-node-text);background-color:var(--vf-node-bg);border-color:var(--vf-node-color)}.vue-flow__node-default.selected,.vue-flow__node-default.selected:hover,.vue-flow__node-input.selected,.vue-flow__node-input.selected:hover,.vue-flow__node-output.selected,.vue-flow__node-output.selected:hover{box-shadow:0 0 0 .5px var(--vf-box-shadow)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible,.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible,.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid #555}.vue-flow__node-default .vue-flow__handle,.vue-flow__node-input .vue-flow__handle,.vue-flow__node-output .vue-flow__handle{background:var(--vf-handle)}.vue-flow__node-default.selectable:hover,.vue-flow__node-input.selectable:hover,.vue-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.vue-flow__node-input{--vf-node-color: var(--vf-node-color, #0041d0);--vf-handle: var(--vf-node-color, #0041d0);--vf-box-shadow: var(--vf-node-color, #0041d0);background:var(--vf-node-bg);border-color:var(--vf-node-color, #0041d0)}.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible{outline:none;border:1px solid var(--vf-node-color, #0041d0)}.vue-flow__node-default{--vf-handle: var(--vf-node-color, #1a192b);--vf-box-shadow: var(--vf-node-color, #1a192b);background:var(--vf-node-bg);border-color:var(--vf-node-color, #1a192b)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible{outline:none;border:1px solid var(--vf-node-color, #1a192b)}.vue-flow__node-output{--vf-handle: var(--vf-node-color, #ff0072);--vf-box-shadow: var(--vf-node-color, #ff0072);background:var(--vf-node-bg);border-color:var(--vf-node-color, #ff0072)}.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid var(--vf-node-color, #ff0072)}.vue-flow__nodesselection-rect,.vue-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible,.vue-flow__selection:focus,.vue-flow__selection:focus-visible{outline:none}.vue-flow__handle{width:6px;height:6px;background:var(--vf-handle);border:1px solid #fff;border-radius:100%}.vue-flow__controls{box-shadow:0 0 2px 1px #00000014}.vue-flow__controls-button{background:#fefefe;border:none;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;user-select:none;padding:5px}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}.node-palette[data-v-ab330bfe]{height:100%;overflow:auto;padding:10px;box-sizing:border-box}.palette-search[data-v-ab330bfe]{margin-bottom:10px}.palette-group[data-v-ab330bfe]{margin-bottom:14px}.palette-group-title[data-v-ab330bfe]{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#606266;margin-bottom:8px}.palette-group-dot[data-v-ab330bfe]{width:8px;height:8px;border-radius:50%;flex-shrink:0}.palette-item[data-v-ab330bfe]{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;margin-bottom:6px;border:1px solid #ebeef5;border-radius:6px;background:#fafafa;cursor:grab;transition:border-color .15s,background .15s}.palette-item[data-v-ab330bfe]:hover{border-color:#c6e2ff;background:#ecf5ff}.palette-dot[data-v-ab330bfe]{width:10px;height:10px;border-radius:50%;margin-top:3px;flex-shrink:0}.palette-item-label[data-v-ab330bfe]{font-size:13px;font-weight:500;color:#303133}.palette-item-desc[data-v-ab330bfe]{font-size:11px;color:#909399;margin-top:2px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node-inspector[data-v-4198dd80]{height:100%;overflow:auto;padding:12px;box-sizing:border-box}.inspector-head[data-v-4198dd80]{margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #ebeef5}.inspector-title[data-v-4198dd80]{font-size:15px;font-weight:600;color:#303133}.inspector-id[data-v-4198dd80]{font-size:11px;color:#909399;margin-top:4px}.inspector-form[data-v-4198dd80] .el-form-item__label{font-weight:500;color:#606266!important}.inspector-form[data-v-4198dd80] .el-input__inner,.inspector-form[data-v-4198dd80] .el-textarea__inner,.inspector-form[data-v-4198dd80] .el-input-number .el-input__inner{color:#303133!important}.inspector-form[data-v-4198dd80] .inspector-switch{--el-switch-on-color: #7c3aed;--el-switch-off-color: #dcdfe6}.inspector-form[data-v-4198dd80] .inspector-switch .el-switch__core{border-color:#dcdfe6;background:#dcdfe6}.inspector-form[data-v-4198dd80] .inspector-switch.is-checked .el-switch__core{border-color:#7c3aed;background:#7c3aed}.inspector-form[data-v-4198dd80] .inspector-switch .el-switch__inner{color:#606266!important}.inspector-form[data-v-4198dd80] .inspector-switch.is-checked .el-switch__inner{color:#fff!important}.inspector-form[data-v-4198dd80] .el-select-dropdown__item{white-space:normal;line-height:1.4;height:auto;min-height:34px;padding-top:6px;padding-bottom:6px}.inspector-actions[data-v-4198dd80]{margin-top:16px;padding-top:12px;border-top:1px solid #ebeef5}.inspector-delete-btn[data-v-4198dd80]{width:100%}.edge-inspector[data-v-fbb2914e]{height:100%;overflow:auto;padding:12px;box-sizing:border-box}.inspector-head[data-v-fbb2914e]{margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #ebeef5}.inspector-title[data-v-fbb2914e]{font-size:15px;font-weight:600;color:#303133}.inspector-id[data-v-fbb2914e]{font-size:11px;color:#909399;margin-top:4px}.edge-meta[data-v-fbb2914e]{margin:0 0 12px}.edge-meta-row[data-v-fbb2914e]{display:flex;gap:8px;margin-bottom:8px;font-size:13px}.edge-meta-row dt[data-v-fbb2914e]{flex-shrink:0;width:36px;color:#909399}.edge-meta-row dd[data-v-fbb2914e]{margin:0;color:#303133;font-weight:500}.edge-hint[data-v-fbb2914e]{font-size:12px;line-height:1.5;margin:0 0 12px}.muted[data-v-fbb2914e]{color:#909399}.edge-delete-btn[data-v-fbb2914e]{width:100%}.wf-node[data-v-bc154e2a]{min-width:140px;padding:8px 0 8px 12px;border-radius:8px;border:2px solid var(--node-color, #409eff);background:#fff;box-shadow:0 2px 8px #00000014;font-size:12px;position:relative}.wf-node-dual[data-v-bc154e2a]{display:flex;flex-direction:column;min-height:88px;padding-right:0}.wf-node.selected[data-v-bc154e2a]{box-shadow:0 0 0 2px #409eff59,0 4px 12px #0000001f}.wf-node-body[data-v-bc154e2a]{flex:1;padding-right:8px}.wf-node-head[data-v-bc154e2a]{display:flex;align-items:center;gap:6px;margin-bottom:4px}.wf-node-dot[data-v-bc154e2a]{width:8px;height:8px;border-radius:50%;background:var(--node-color)}.wf-node-type[data-v-bc154e2a]{color:#909399;font-size:11px}.wf-node-label[data-v-bc154e2a]{font-weight:600;color:#303133;line-height:1.4}.wf-outlets[data-v-bc154e2a]{display:flex;flex-direction:column;justify-content:flex-end;gap:2px;margin-top:4px;padding-right:0}.wf-outlet-row[data-v-bc154e2a]{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-height:22px;padding-right:0}.wf-port-label[data-v-bc154e2a]{font-size:10px;line-height:1;padding:2px 5px;border-radius:3px;white-space:nowrap;pointer-events:none}.wf-port-top[data-v-bc154e2a]{color:#529b2e;background:#f0f9eb}.wf-port-bottom[data-v-bc154e2a]{color:#c45656;background:#fef0f0}[data-v-bc154e2a] .wf-handle{width:10px;height:10px;background:var(--node-color, #409eff);border:2px solid #fff}[data-v-bc154e2a] .wf-handle-target{left:-5px!important;top:50%!important;transform:translate(-50%,-50%)!important}[data-v-bc154e2a] .wf-handle-source{right:-5px!important;top:50%!important;transform:translate(50%,-50%)!important}[data-v-bc154e2a] .wf-outlet-handle{position:relative!important;inset:auto!important;transform:none!important;flex-shrink:0;margin-right:-5px}[data-v-bc154e2a] .wf-handle-success{background:#67c23a}[data-v-bc154e2a] .wf-handle-fail{background:#f56c6c}.wf-list-panel[data-v-cea4ce7c]{display:flex;flex-direction:column;border-bottom:1px solid #ebeef5;flex-shrink:0;max-height:220px}.wf-list-head[data-v-cea4ce7c]{display:flex;align-items:center;justify-content:space-between;padding:8px 12px 4px}.wf-list-title[data-v-cea4ce7c]{font-size:12px;font-weight:600;color:#606266}.wf-list-actions[data-v-cea4ce7c]{display:flex;align-items:center;gap:4px}.wf-list[data-v-cea4ce7c]{list-style:none;margin:0;padding:4px 8px 8px;overflow-y:auto}.wf-list-item[data-v-cea4ce7c]{display:flex;align-items:center;gap:4px;padding:8px 10px;border-radius:6px;cursor:pointer;transition:background .15s}.wf-list-item[data-v-cea4ce7c]:hover{background:#f5f7fa}.wf-list-item.active[data-v-cea4ce7c]{background:#ecf5ff;border:1px solid #b3d8ff}.wf-list-item-main[data-v-cea4ce7c]{flex:1;min-width:0}.wf-list-item-name[data-v-cea4ce7c]{display:block;font-size:13px;font-weight:500;color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-list-item-meta[data-v-cea4ce7c]{font-size:11px;color:#909399}.wf-list-more[data-v-cea4ce7c]{padding:0 4px;min-height:auto}.wf-list-hint[data-v-cea4ce7c]{margin:0;padding:6px 12px 10px;font-size:11px;color:#909399;line-height:1.4;border-top:1px solid #f0f2f5}.workflow-editor[data-v-2f835d2a]{height:100%;display:flex;flex-direction:column;background:#f5f7fa;border-radius:8px;overflow:hidden;border:1px solid #ebeef5}.wf-toolbar[data-v-2f835d2a]{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fff;border-bottom:1px solid #ebeef5;flex-shrink:0;flex-wrap:wrap}.wf-toolbar-left[data-v-2f835d2a],.wf-toolbar-right[data-v-2f835d2a]{display:flex;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap}.wf-toolbar-center[data-v-2f835d2a]{flex:1;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;min-width:120px}.wf-name-input[data-v-2f835d2a]{width:200px}.wf-issue-tag[data-v-2f835d2a]{max-width:220px;overflow:hidden;text-overflow:ellipsis}.wf-body[data-v-2f835d2a]{flex:1;display:flex;min-height:0}.wf-panel[data-v-2f835d2a]{display:flex;flex-direction:column;background:#fff;min-height:0}.wf-panel-left[data-v-2f835d2a]{width:220px;border-right:1px solid #ebeef5;flex-shrink:0}.wf-palette-body[data-v-2f835d2a]{flex:1;min-height:0;overflow:hidden}.wf-panel-center[data-v-2f835d2a]{flex:1;min-width:0}.wf-panel-right[data-v-2f835d2a]{width:280px;border-left:1px solid #ebeef5;flex-shrink:0}.wf-panel-title[data-v-2f835d2a]{padding:8px 12px;font-size:12px;font-weight:600;color:#606266;border-bottom:1px solid #ebeef5;flex-shrink:0}.wf-panel-center[data-v-2f835d2a] .vue-flow{width:100%;height:100%}.wf-panel-center[data-v-2f835d2a] .vue-flow__node{background:transparent!important;border:none!important;padding:0!important;box-shadow:none!important}.wf-panel-center[data-v-2f835d2a] .vue-flow__edge.selected .vue-flow__edge-path{stroke-width:3!important;filter:drop-shadow(0 0 2px rgba(64,158,255,.45))}.wf-panel-center[data-v-2f835d2a] .vue-flow__edge.selected .vue-flow__edge-text{fill:#409eff;font-weight:600}.task-template-page[data-v-4ab211b0]{height:calc(100vh - 56px);padding:12px 14px;box-sizing:border-box}.task-template-page[data-v-4ab211b0] .workflow-editor{height:100%} diff --git a/MiGu.Server/wwwroot/assets/TaskTemplateView-BOoJh-Fl.js b/MiGu.Server/wwwroot/assets/TaskTemplateView-BOoJh-Fl.js new file mode 100644 index 0000000..e6c8c8c --- /dev/null +++ b/MiGu.Server/wwwroot/assets/TaskTemplateView-BOoJh-Fl.js @@ -0,0 +1,26 @@ +import{aN as me,bp as ut,bs as O,aG as ne,bF as ke,bk as rt,bS as V,aH as nl,bN as xe,bC as Ee,ay as ie,b6 as Pt,aT as Pi,c7 as ye,bY as ol,br as il,aK as ue,c8 as ge,b0 as At,b1 as Ai,bq as yn,bn as rl,aD as X,ai as Te,bE as je,bl as Oe,bj as We,bo as Oi,b7 as ll,aE as ve,aF as Se,bK as it,bL as Ce,bP as fe,bA as zi,b8 as So,bO as al,aL as sl,by as $t,b2 as be,bf as Gt,bB as ul,bG as Bi,bU as cl,bg as Vi,bH as xt,aJ as Pe,R as No,Q as dl,bI as fl,ak as wt,N as hl,O as pl,S as gl,a8 as vl,a4 as ml,Z as yl,L as wl,r as zn,I as _l,cb as Vo,K as bl,J as xl,bM as El,ad as Sl,X as $e,Y as zt}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */function Zt(e){return Ai()?(yn(e),!0):!1}function qe(e){return typeof e=="function"?e():V(e)}const Nl=typeof window<"u"&&typeof document<"u",kl=e=>typeof e<"u",Cl=Object.prototype.toString,$l=e=>Cl.call(e)==="[object Object]",Il=()=>{};function Ml(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const Ri=e=>e();function Tl(e=Ri){const t=Ee(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:ul(t),pause:n,resume:o,eventFilter:i}}function Ro(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function Dl(e,t,n={}){const{eventFilter:o=Ri,...i}=n;return ye(e,Ml(o,t),i)}function _t(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:l,resume:a,isActive:s}=Tl(o);return{stop:Dl(e,t,{...i,eventFilter:r}),pause:l,resume:a,isActive:s}}function Pl(e,t={}){if(!So(e))return al(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=sl(()=>({get(){return e.value[o]},set(i){var r;if((r=qe(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const a=[...e.value];a[o]=i,e.value=a}else{const a={...e.value,[o]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(e.value)),e.value=a}else e.value[o]=i}}));return n}function so(e,t=!1){function n(h,{flush:p="sync",deep:v=!1,timeout:k,throwOnTimeout:w}={}){let x=null;const I=[new Promise(m=>{x=ye(e,C=>{h(C)!==t&&(x?.(),m(C))},{flush:p,deep:v,immediate:!0})})];return k!=null&&I.push(Ro(k,w).then(()=>qe(e)).finally(()=>x?.())),Promise.race(I)}function o(h,p){if(!So(h))return n(C=>C===h,p);const{flush:v="sync",deep:k=!1,timeout:w,throwOnTimeout:x}=p??{};let $=null;const m=[new Promise(C=>{$=ye([e,h],([z,Y])=>{t!==(z===Y)&&($?.(),C(z))},{flush:v,deep:k,immediate:!0})})];return w!=null&&m.push(Ro(w,x).then(()=>qe(e)).finally(()=>($?.(),qe(e)))),Promise.race(m)}function i(h){return n(p=>!!p,h)}function r(h){return o(null,h)}function l(h){return o(void 0,h)}function a(h){return n(Number.isNaN,h)}function s(h,p){return n(v=>{const k=Array.from(v);return k.includes(h)||k.includes(qe(h))},p)}function u(h){return c(1,h)}function c(h=1,p){let v=-1;return n(()=>(v+=1,v>=h),p)}return Array.isArray(qe(e))?{toMatch:n,toContains:s,changed:u,changedTimes:c,get not(){return so(e,!t)}}:{toMatch:n,toBe:o,toBeTruthy:i,toBeNull:r,toBeNaN:a,toBeUndefined:l,changed:u,changedTimes:c,get not(){return so(e,!t)}}}function uo(e){return so(e)}function Al(e){var t;const n=qe(e);return(t=n?.$el)!=null?t:n}const Hi=Nl?window:void 0;function Li(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=Hi):[t,n,o,i]=e,!t)return Il;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],l=()=>{r.forEach(c=>c()),r.length=0},a=(c,h,p,v)=>(c.addEventListener(h,p,v),()=>c.removeEventListener(h,p,v)),s=ye(()=>[Al(t),qe(i)],([c,h])=>{if(l(),!c)return;const p=$l(h)?{...h}:h;r.push(...n.flatMap(v=>o.map(k=>a(c,v,k,p))))},{immediate:!0,flush:"post"}),u=()=>{s(),l()};return Zt(u),u}function Ol(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Ho(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=Hi,eventName:r="keydown",passive:l=!1,dedupe:a=!1}=o,s=Ol(t);return Li(i,r,c=>{c.repeat&&qe(a)||s(c)&&n(c)},l)}function zl(e){return JSON.parse(JSON.stringify(e))}function Kn(e,t,n,o={}){var i,r,l;const{clone:a=!1,passive:s=!1,eventName:u,deep:c=!1,defaultValue:h,shouldEmit:p}=o,v=At(),k=n||v?.emit||((i=v?.$emit)==null?void 0:i.bind(v))||((l=(r=v?.proxy)==null?void 0:r.$emit)==null?void 0:l.bind(v?.proxy));let w=u;t||(t="modelValue"),w=w||`update:${t.toString()}`;const x=m=>a?typeof a=="function"?a(m):zl(m):m,$=()=>kl(e[t])?x(e[t]):h,I=m=>{p?p(m)&&k(w,m):k(w,m)};if(s){const m=$(),C=Ee(m);let z=!1;return ye(()=>e[t],Y=>{z||(z=!0,C.value=x(Y),We(()=>z=!1))}),ye(C,Y=>{!z&&(Y!==e[t]||c)&&I(Y)},{deep:c}),C}else return ie({get(){return $()},set(m){I(m)}})}var Bl={value:()=>{}};function Bn(){for(var e=0,t=arguments.length,n={},o;e=0&&(o=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}wn.prototype=Bn.prototype={constructor:wn,on:function(e,t){var n=this._,o=Vl(e+"",n),i,r=-1,l=o.length;if(arguments.length<2){for(;++r0)for(var n=new Array(i),o=0,i,r;o=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Fo.hasOwnProperty(t)?{space:Fo[t],local:e}:e}function Hl(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===co&&t.documentElement.namespaceURI===co?t.createElement(e):t.createElementNS(n,e)}}function Ll(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Fi(e){var t=Vn(e);return(t.local?Ll:Hl)(t)}function Fl(){}function ko(e){return e==null?Fl:function(){return this.querySelector(e)}}function Yl(e){typeof e!="function"&&(e=ko(e));for(var t=this._groups,n=t.length,o=new Array(n),i=0;i=m&&(m=I+1);!(z=x[m])&&++m=0;)(l=o[i])&&(r&&l.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(l,r),r=l);return this}function pa(e){e||(e=ga);function t(h,p){return h&&p?e(h.__data__,p.__data__):!h-!p}for(var n=this._groups,o=n.length,i=new Array(o),r=0;rt?1:e>=t?0:NaN}function va(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function ma(){return Array.from(this)}function ya(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?Ia:typeof t=="function"?Ta:Ma)(e,t,n??"")):It(this.node(),e)}function It(e,t){return e.style.getPropertyValue(t)||Xi(e).getComputedStyle(e,null).getPropertyValue(t)}function Pa(e){return function(){delete this[e]}}function Aa(e,t){return function(){this[e]=t}}function Oa(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function za(e,t){return arguments.length>1?this.each((t==null?Pa:typeof t=="function"?Oa:Aa)(e,t)):this.node()[e]}function Zi(e){return e.trim().split(/^|\s+/)}function Co(e){return e.classList||new qi(e)}function qi(e){this._node=e,this._names=Zi(e.getAttribute("class")||"")}qi.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ki(e,t){for(var n=Co(e),o=-1,i=t.length;++o=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function cs(e){return function(){var t=this.__on;if(t){for(var n=0,o=-1,i=t.length,r;n()=>e;function fo(e,{sourceEvent:t,subject:n,target:o,identifier:i,active:r,x:l,y:a,dx:s,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}fo.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function _s(e){return!e.ctrlKey&&!e.button}function bs(){return this.parentNode}function xs(e,t){return t??{x:e.x,y:e.y}}function Es(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ss(){var e=_s,t=bs,n=xs,o=Es,i={},r=Bn("start","drag","end"),l=0,a,s,u,c,h=0;function p(C){C.on("mousedown.drag",v).filter(o).on("touchstart.drag",x).on("touchmove.drag",$,ws).on("touchend.drag touchcancel.drag",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(C,z){if(!(c||!e.call(this,C,z))){var Y=m(this,t.call(this,C,z),C,z,"mouse");Y&&(Be(C.view).on("mousemove.drag",k,qt).on("mouseup.drag",w,qt),er(C.view),Jn(C),u=!1,a=C.clientX,s=C.clientY,Y("start",C))}}function k(C){if(St(C),!u){var z=C.clientX-a,Y=C.clientY-s;u=z*z+Y*Y>h}i.mouse("drag",C)}function w(C){Be(C.view).on("mousemove.drag mouseup.drag",null),tr(C.view,u),St(C),i.mouse("end",C)}function x(C,z){if(e.call(this,C,z)){var Y=C.changedTouches,B=t.call(this,C,z),R=Y.length,j,P;for(j=0;j>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?sn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?sn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ks.exec(e))?new Ae(t[1],t[2],t[3],1):(t=Cs.exec(e))?new Ae(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$s.exec(e))?sn(t[1],t[2],t[3],t[4]):(t=Is.exec(e))?sn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ms.exec(e))?qo(t[1],t[2]/100,t[3]/100,1):(t=Ts.exec(e))?qo(t[1],t[2]/100,t[3]/100,t[4]):Yo.hasOwnProperty(e)?Uo(Yo[e]):e==="transparent"?new Ae(NaN,NaN,NaN,0):null}function Uo(e){return new Ae(e>>16&255,e>>8&255,e&255,1)}function sn(e,t,n,o){return o<=0&&(e=t=n=NaN),new Ae(e,t,n,o)}function As(e){return e instanceof on||(e=gt(e)),e?(e=e.rgb(),new Ae(e.r,e.g,e.b,e.opacity)):new Ae}function ho(e,t,n,o){return arguments.length===1?As(e):new Ae(e,t,n,o??1)}function Ae(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}$o(Ae,ho,nr(on,{brighter(e){return e=e==null?Nn:Math.pow(Nn,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Kt:Math.pow(Kt,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ae(ht(this.r),ht(this.g),ht(this.b),kn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xo,formatHex:Xo,formatHex8:Os,formatRgb:Zo,toString:Zo}));function Xo(){return`#${ft(this.r)}${ft(this.g)}${ft(this.b)}`}function Os(){return`#${ft(this.r)}${ft(this.g)}${ft(this.b)}${ft((isNaN(this.opacity)?1:this.opacity)*255)}`}function Zo(){const e=kn(this.opacity);return`${e===1?"rgb(":"rgba("}${ht(this.r)}, ${ht(this.g)}, ${ht(this.b)}${e===1?")":`, ${e})`}`}function kn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ht(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ft(e){return e=ht(e),(e<16?"0":"")+e.toString(16)}function qo(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ve(e,t,n,o)}function or(e){if(e instanceof Ve)return new Ve(e.h,e.s,e.l,e.opacity);if(e instanceof on||(e=gt(e)),!e)return new Ve;if(e instanceof Ve)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),r=Math.max(t,n,o),l=NaN,a=r-i,s=(r+i)/2;return a?(t===r?l=(n-o)/a+(n0&&s<1?0:l,new Ve(l,a,s,e.opacity)}function zs(e,t,n,o){return arguments.length===1?or(e):new Ve(e,t,n,o??1)}function Ve(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}$o(Ve,zs,nr(on,{brighter(e){return e=e==null?Nn:Math.pow(Nn,e),new Ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Kt:Math.pow(Kt,e),new Ve(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new Ae(jn(e>=240?e-240:e+120,i,o),jn(e,i,o),jn(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Ve(Ko(this.h),un(this.s),un(this.l),kn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=kn(this.opacity);return`${e===1?"hsl(":"hsla("}${Ko(this.h)}, ${un(this.s)*100}%, ${un(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ko(e){return e=(e||0)%360,e<0?e+360:e}function un(e){return Math.max(0,Math.min(1,e||0))}function jn(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Io=e=>()=>e;function Bs(e,t){return function(n){return e+n*t}}function Vs(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function Rs(e){return(e=+e)==1?ir:function(t,n){return n-t?Vs(t,n,e):Io(isNaN(t)?n:t)}}function ir(e,t){var n=t-e;return n?Bs(e,n):Io(isNaN(e)?t:e)}const Cn=function e(t){var n=Rs(t);function o(i,r){var l=n((i=ho(i)).r,(r=ho(r)).r),a=n(i.g,r.g),s=n(i.b,r.b),u=ir(i.opacity,r.opacity);return function(c){return i.r=l(c),i.g=a(c),i.b=s(c),i.opacity=u(c),i+""}}return o.gamma=e,o}(1);function Hs(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,o=t.slice(),i;return function(r){for(i=0;in&&(r=t.slice(n,r),a[l]?a[l]+=r:a[++l]=r),(o=o[0])===(i=i[0])?a[l]?a[l]+=i:a[++l]=i:(a[++l]=null,s.push({i:l,x:Fe(o,i)})),n=Qn.lastIndex;return n180?c+=360:c-u>180&&(u+=360),p.push({i:h.push(i(h)+"rotate(",null,o)-2,x:Fe(u,c)})):c&&h.push(i(h)+"rotate("+c+o)}function a(u,c,h,p){u!==c?p.push({i:h.push(i(h)+"skewX(",null,o)-2,x:Fe(u,c)}):c&&h.push(i(h)+"skewX("+c+o)}function s(u,c,h,p,v,k){if(u!==h||c!==p){var w=v.push(i(v)+"scale(",null,",",null,")");k.push({i:w-4,x:Fe(u,h)},{i:w-2,x:Fe(c,p)})}else(h!==1||p!==1)&&v.push(i(v)+"scale("+h+","+p+")")}return function(u,c){var h=[],p=[];return u=e(u),c=e(c),r(u.translateX,u.translateY,c.translateX,c.translateY,h,p),l(u.rotate,c.rotate,h,p),a(u.skewX,c.skewX,h,p),s(u.scaleX,u.scaleY,c.scaleX,c.scaleY,h,p),u=c=null,function(v){for(var k=-1,w=p.length,x;++k=0&&e._call.call(void 0,t),e=e._next;--Mt}function Qo(){vt=(In=jt.now())+Rn,Mt=Lt=0;try{tu()}finally{Mt=0,ou(),vt=0}}function nu(){var e=jt.now(),t=e-In;t>sr&&(Rn-=t,In=e)}function ou(){for(var e,t=$n,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:$n=n);Ft=e,vo(o)}function vo(e){if(!Mt){Lt&&(Lt=clearTimeout(Lt));var t=e-vt;t>24?(e<1/0&&(Lt=setTimeout(Qo,e-jt.now()-Rn)),Bt&&(Bt=clearInterval(Bt))):(Bt||(In=jt.now(),Bt=setInterval(nu,sr)),Mt=1,ur(Qo))}}function ei(e,t,n){var o=new Mn;return t=t==null?0:+t,o.restart(i=>{o.stop(),e(i+t)},t,n),o}var iu=Bn("start","end","cancel","interrupt"),ru=[],dr=0,ti=1,mo=2,bn=3,ni=4,yo=5,xn=6;function Hn(e,t,n,o,i,r){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;lu(e,n,{name:t,index:o,group:i,on:iu,tween:ru,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:dr})}function To(e,t){var n=Re(e,t);if(n.state>dr)throw new Error("too late; already scheduled");return n}function Xe(e,t){var n=Re(e,t);if(n.state>bn)throw new Error("too late; already running");return n}function Re(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function lu(e,t,n){var o=e.__transition,i;o[t]=n,n.timer=cr(r,0,n.time);function r(u){n.state=ti,n.timer.restart(l,n.delay,n.time),n.delay<=u&&l(u-n.delay)}function l(u){var c,h,p,v;if(n.state!==ti)return s();for(c in o)if(v=o[c],v.name===n.name){if(v.state===bn)return ei(l);v.state===ni?(v.state=xn,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete o[c]):+cmo&&o.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function zu(e,t,n){var o,i,r=Ou(t)?To:Xe;return function(){var l=r(this,e),a=l.on;a!==o&&(i=(o=a).copy()).on(t,n),l.on=i}}function Bu(e,t){var n=this._id;return arguments.length<2?Re(this.node(),n).on.on(e):this.each(zu(n,e,t))}function Vu(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Ru(){return this.on("end.remove",Vu(this._id))}function Hu(e){var t=this._name,n=this._id;typeof e!="function"&&(e=ko(e));for(var o=this._groups,i=o.length,r=new Array(i),l=0;l()=>e;function dc(e,{sourceEvent:t,target:n,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function Ke(e,t,n){this.k=e,this.x=t,this.y=n}Ke.prototype={constructor:Ke,scale:function(e){return e===1?this:new Ke(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ke(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Tt=new Ke(1,0,0);Ke.prototype;function eo(e){e.stopImmediatePropagation()}function Vt(e){e.preventDefault(),e.stopImmediatePropagation()}function fc(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function hc(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function oi(){return this.__zoom||Tt}function pc(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function gc(){return navigator.maxTouchPoints||"ontouchstart"in this}function vc(e,t,n){var o=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],l=e.invertY(t[1][1])-n[1][1];return e.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),l>r?(r+l)/2:Math.min(0,r)||Math.max(0,l))}function mc(){var e=fc,t=hc,n=vc,o=pc,i=gc,r=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],a=250,s=_n,u=Bn("start","zoom","end"),c,h,p,v=500,k=150,w=0,x=10;function $(y){y.property("__zoom",oi).on("wheel.zoom",R,{passive:!1}).on("mousedown.zoom",j).on("dblclick.zoom",P).filter(i).on("touchstart.zoom",D).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",Q).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}$.transform=function(y,M,S,T){var A=y.selection?y.selection():y;A.property("__zoom",oi),y!==A?z(y,M,S,T):A.interrupt().each(function(){Y(this,arguments).event(T).start().zoom(null,typeof M=="function"?M.apply(this,arguments):M).end()})},$.scaleBy=function(y,M,S,T){$.scaleTo(y,function(){var A=this.__zoom.k,L=typeof M=="function"?M.apply(this,arguments):M;return A*L},S,T)},$.scaleTo=function(y,M,S,T){$.transform(y,function(){var A=t.apply(this,arguments),L=this.__zoom,F=S==null?C(A):typeof S=="function"?S.apply(this,arguments):S,J=L.invert(F),oe=typeof M=="function"?M.apply(this,arguments):M;return n(m(I(L,oe),F,J),A,l)},S,T)},$.translateBy=function(y,M,S,T){$.transform(y,function(){return n(this.__zoom.translate(typeof M=="function"?M.apply(this,arguments):M,typeof S=="function"?S.apply(this,arguments):S),t.apply(this,arguments),l)},null,T)},$.translateTo=function(y,M,S,T,A){$.transform(y,function(){var L=t.apply(this,arguments),F=this.__zoom,J=T==null?C(L):typeof T=="function"?T.apply(this,arguments):T;return n(Tt.translate(J[0],J[1]).scale(F.k).translate(typeof M=="function"?-M.apply(this,arguments):-M,typeof S=="function"?-S.apply(this,arguments):-S),L,l)},T,A)};function I(y,M){return M=Math.max(r[0],Math.min(r[1],M)),M===y.k?y:new Ke(M,y.x,y.y)}function m(y,M,S){var T=M[0]-S[0]*y.k,A=M[1]-S[1]*y.k;return T===y.x&&A===y.y?y:new Ke(y.k,T,A)}function C(y){return[(+y[0][0]+ +y[1][0])/2,(+y[0][1]+ +y[1][1])/2]}function z(y,M,S,T){y.on("start.zoom",function(){Y(this,arguments).event(T).start()}).on("interrupt.zoom end.zoom",function(){Y(this,arguments).event(T).end()}).tween("zoom",function(){var A=this,L=arguments,F=Y(A,L).event(T),J=t.apply(A,L),oe=S==null?C(J):typeof S=="function"?S.apply(A,L):S,ae=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),ce=A.__zoom,Z=typeof M=="function"?M.apply(A,L):M,q=s(ce.invert(oe).concat(ae/ce.k),Z.invert(oe).concat(ae/Z.k));return function(te){if(te===1)te=Z;else{var he=q(te),we=ae/he[2];te=new Ke(we,oe[0]-he[0]*we,oe[1]-he[1]*we)}F.zoom(null,te)}})}function Y(y,M,S){return!S&&y.__zooming||new B(y,M)}function B(y,M){this.that=y,this.args=M,this.active=0,this.sourceEvent=null,this.extent=t.apply(y,M),this.taps=0}B.prototype={event:function(y){return y&&(this.sourceEvent=y),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(y,M){return this.mouse&&y!=="mouse"&&(this.mouse[1]=M.invert(this.mouse[0])),this.touch0&&y!=="touch"&&(this.touch0[1]=M.invert(this.touch0[0])),this.touch1&&y!=="touch"&&(this.touch1[1]=M.invert(this.touch1[0])),this.that.__zoom=M,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(y){var M=Be(this.that).datum();u.call(y,this.that,new dc(y,{sourceEvent:this.sourceEvent,target:$,transform:this.that.__zoom,dispatch:u}),M)}};function R(y,...M){if(!e.apply(this,arguments))return;var S=Y(this,M).event(y),T=this.__zoom,A=Math.max(r[0],Math.min(r[1],T.k*Math.pow(2,o.apply(this,arguments)))),L=Le(y);if(S.wheel)(S.mouse[0][0]!==L[0]||S.mouse[0][1]!==L[1])&&(S.mouse[1]=T.invert(S.mouse[0]=L)),clearTimeout(S.wheel);else{if(T.k===A)return;S.mouse=[L,T.invert(L)],En(this),S.start()}Vt(y),S.wheel=setTimeout(F,k),S.zoom("mouse",n(m(I(T,A),S.mouse[0],S.mouse[1]),S.extent,l));function F(){S.wheel=null,S.end()}}function j(y,...M){if(p||!e.apply(this,arguments))return;var S=y.currentTarget,T=Y(this,M,!0).event(y),A=Be(y.view).on("mousemove.zoom",oe,!0).on("mouseup.zoom",ae,!0),L=Le(y,S),F=y.clientX,J=y.clientY;er(y.view),eo(y),T.mouse=[L,this.__zoom.invert(L)],En(this),T.start();function oe(ce){if(Vt(ce),!T.moved){var Z=ce.clientX-F,q=ce.clientY-J;T.moved=Z*Z+q*q>w}T.event(ce).zoom("mouse",n(m(T.that.__zoom,T.mouse[0]=Le(ce,S),T.mouse[1]),T.extent,l))}function ae(ce){A.on("mousemove.zoom mouseup.zoom",null),tr(ce.view,T.moved),Vt(ce),T.event(ce).end()}}function P(y,...M){if(e.apply(this,arguments)){var S=this.__zoom,T=Le(y.changedTouches?y.changedTouches[0]:y,this),A=S.invert(T),L=S.k*(y.shiftKey?.5:2),F=n(m(I(S,L),T,A),t.apply(this,M),l);Vt(y),a>0?Be(this).transition().duration(a).call(z,F,T,y):Be(this).call($.transform,F,T,y)}}function D(y,...M){if(e.apply(this,arguments)){var S=y.touches,T=S.length,A=Y(this,M,y.changedTouches.length===T).event(y),L,F,J,oe;for(eo(y),F=0;F(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(K||{}),Po=(e=>(e.Partial="partial",e.Full="full",e))(Po||{}),ct=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(ct||{}),lt=(e=>(e.Strict="strict",e.Loose="loose",e))(lt||{}),wo=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(wo||{}),Ut=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(Ut||{}),gr=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(gr||{});const yc=["INPUT","SELECT","TEXTAREA"],wc=typeof document<"u"?document:null;function _o(e){var t,n;const o=((n=(t=e.composedPath)==null?void 0:t.call(e))==null?void 0:n[0])||e.target,i=typeof o?.hasAttribute=="function"?o.hasAttribute("contenteditable"):!1,r=typeof o?.closest=="function"?o.closest(".nokey"):null;return yc.includes(o?.nodeName)||i||!!r}function _c(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function ii(e,t,n,o){const i=t.replace("+",` +`).replace(` + +`,` ++`).split(` +`).map(l=>l.trim().toLowerCase());if(i.length===1)return e.toLowerCase()===t.toLowerCase();o||n.add(e.toLowerCase());const r=i.every((l,a)=>n.has(l)&&Array.from(n.values())[a]===i[a]);return o&&n.delete(e.toLowerCase()),r}function bc(e,t){return n=>{if(!n.code&&!n.key)return!1;const o=xc(n.code,e);return Array.isArray(e)?e.some(i=>ii(n[o],i,t,n.type==="keyup")):ii(n[o],e,t,n.type==="keyup")}}function xc(e,t){return t.includes(e)?"code":"key"}function Xt(e,t){const n=ie(()=>fe(t?.target)??wc),o=it(fe(e)===!0);let i=!1;const r=new Set;let l=s(fe(e));ye(()=>fe(e),(u,c)=>{typeof c=="boolean"&&typeof u!="boolean"&&a(),l=s(u)},{immediate:!0}),Li(["blur","contextmenu"],a),Ho((...u)=>l(...u),u=>{var c,h;const p=fe(t?.actInsideInputWithModifier)??!0,v=fe(t?.preventDefault)??!1;if(i=_c(u),(!i||i&&!p)&&_o(u))return;const w=((h=(c=u.composedPath)==null?void 0:c.call(u))==null?void 0:h[0])||u.target,x=w?.nodeName==="BUTTON"||w?.nodeName==="A";!v&&(i||!x)&&u.preventDefault(),o.value=!0},{eventName:"keydown",target:n}),Ho((...u)=>l(...u),u=>{const c=fe(t?.actInsideInputWithModifier)??!0;if(o.value){if((!i||i&&!c)&&_o(u))return;i=!1,o.value=!1}},{eventName:"keyup",target:n});function a(){i=!1,r.clear(),o.value=fe(e)===!0}function s(u){return u===null?(a(),()=>!1):typeof u=="boolean"?(a(),o.value=u,()=>!1):Array.isArray(u)||typeof u=="string"?bc(u,r):u}return o}const vr="vue-flow__node-desc",mr="vue-flow__edge-desc",Ec="vue-flow__aria-live",yr=["Enter"," ","Escape"],kt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function Tn(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function Dn(e,t){const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),o=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*o)}function Ln(e){return{width:e.offsetWidth,height:e.offsetHeight}}function mt(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function wr(e,t){return{x:mt(e.x,t[0][0],t[1][0]),y:mt(e.y,t[0][1],t[1][1])}}function ri(e){const t=e.getRootNode();return"elementFromPoint"in t?t:window.document}function at(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function pt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!at(e)}function Yt(e){return pt(e)&&"computedPosition"in e}function fn(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Sc(e){return fn(e.width)&&fn(e.height)&&fn(e.x)&&fn(e.y)}function Nc(e,t,n){const o={id:e.id.toString(),type:e.type??"default",dimensions:Gt({width:0,height:0}),computedPosition:Gt({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:Ie(e.data)?e.data:{},events:Gt(Ie(e.events)?e.events:{})};return Object.assign(t??o,e,{id:e.id.toString(),parentNode:n})}function _r(e,t,n){var o,i;const r={id:e.id.toString(),type:e.type??t?.type??"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(o=e.sourceHandle)==null?void 0:o.toString(),targetHandle:(i=e.targetHandle)==null?void 0:i.toString(),updatable:e.updatable??n?.updatable,selectable:e.selectable??n?.selectable,focusable:e.focusable??n?.focusable,data:Ie(e.data)?e.data:{},events:Gt(Ie(e.events)?e.events:{}),label:e.label??"",interactionWidth:e.interactionWidth??n?.interactionWidth,...n??{}};return Object.assign(t??r,e,{id:e.id.toString()})}function br(e,t,n,o){const i=typeof e=="string"?e:e.id,r=new Set,l=o==="source"?"target":"source";for(const a of n)a[l]===i&&r.add(a[o]);return t.filter(a=>r.has(a.id))}function kc(...e){if(e.length===3){const[r,l,a]=e;return br(r,l,a,"target")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(r=>at(r)&&r.source===o).map(r=>n.find(l=>pt(l)&&l.id===r.target))}function Cc(...e){if(e.length===3){const[r,l,a]=e;return br(r,l,a,"source")}const[t,n]=e,o=typeof t=="string"?t:t.id;return n.filter(r=>at(r)&&r.target===o).map(r=>n.find(l=>pt(l)&&l.id===r.source))}function xr({source:e,sourceHandle:t,target:n,targetHandle:o}){return`vueflow__edge-${e}${t??""}-${n}${o??""}`}function $c(e,t){return t.some(n=>at(n)&&n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle))}function Qt({x:e,y:t},{x:n,y:o,zoom:i}){return{x:e*i+n,y:t*i+o}}function en({x:e,y:t},{x:n,y:o,zoom:i},r=!1,l=[1,1]){const a={x:(e-n)/i,y:(t-o)/i};return r?Fn(a,l):a}function Ic(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}}function Er({x:e,y:t,width:n,height:o}){return{x:e,y:t,x2:e+n,y2:t+o}}function Mc({x:e,y:t,x2:n,y2:o}){return{x:e,y:t,width:n-e,height:o-t}}function Sr(e){let t={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let n=0;n0,x=(h??0)*(p??0);(k||w||v>=x||a.dragging)&&l.push(a)}return l}function kr(e,t){const n=new Set;if(typeof e=="string")n.add(e);else if(e.length>=1)for(const o of e)n.add(o.id);return t.filter(o=>n.has(o.source)||n.has(o.target))}function bt(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=Number.parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=Number.parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return rn(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function Tc(e,t,n){if(typeof e=="string"||typeof e=="number"){const o=bt(e,n),i=bt(e,t);return{top:o,right:i,bottom:o,left:i,x:i*2,y:o*2}}if(typeof e=="object"){const o=bt(e.top??e.y??0,n),i=bt(e.bottom??e.y??0,n),r=bt(e.left??e.x??0,t),l=bt(e.right??e.x??0,t);return{top:o,right:l,bottom:i,left:r,x:r+l,y:o+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function Dc(e,t,n,o,i,r){const{x:l,y:a}=Qt(e,{x:t,y:n,zoom:o}),{x:s,y:u}=Qt({x:e.x+e.width,y:e.y+e.height},{x:t,y:n,zoom:o}),c=i-s,h=r-u;return{left:Math.floor(l),top:Math.floor(a),right:Math.floor(c),bottom:Math.floor(h)}}function li(e,t,n,o,i,r=.1){const l=Tc(r,t,n),a=(t-l.x)/e.width,s=(n-l.y)/e.height,u=Math.min(a,s),c=mt(u,o,i),h=e.x+e.width/2,p=e.y+e.height/2,v=t/2-h*c,k=n/2-p*c,w=Dc(e,v,k,c,t,n),x={left:Math.min(w.left-l.left,0),top:Math.min(w.top-l.top,0),right:Math.min(w.right-l.right,0),bottom:Math.min(w.bottom-l.bottom,0)};return{x:v-x.left+x.right,y:k-x.top+x.bottom,zoom:c}}function Pc(e,t){return{x:t.x+e.x,y:t.y+e.y,z:(e.z>t.z?e.z:t.z)+1}}function Cr(e,t){if(!e.parentNode)return!1;const n=t.get(e.parentNode);return n?n.selected?!0:Cr(n,t):!1}function tn(e,t){return typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(o=>`${o}=${e[o]}`).join("&")}`}function ai(e){const t=e.ctrlKey&&Pn()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t}function si(e,t,n){return en?-mt(Math.abs(e-n),1,t)/t:0}function $r(e,t,n=15,o=40){const i=si(e.x,o,t.width-o)*n,r=si(e.y,o,t.height-o)*n;return[i,r]}function to(e,t){if(t){const n=e.position.x+e.dimensions.width-t.dimensions.width,o=e.position.y+e.dimensions.height-t.dimensions.height;if(n>0||o>0||e.position.x<0||e.position.y<0){let i={};if(typeof t.style=="function"?i={...t.style(t)}:t.style&&(i={...t.style}),i.width=i.width??`${t.dimensions.width}px`,i.height=i.height??`${t.dimensions.height}px`,n>0)if(typeof i.width=="string"){const r=Number(i.width.replace("px",""));i.width=`${r+n}px`}else i.width+=n;if(o>0)if(typeof i.height=="string"){const r=Number(i.height.replace("px",""));i.height=`${r+o}px`}else i.height+=o;if(e.position.x<0){const r=Math.abs(e.position.x);if(t.position.x=t.position.x-r,typeof i.width=="string"){const l=Number(i.width.replace("px",""));i.width=`${l+r}px`}else i.width+=r;e.position.x=0}if(e.position.y<0){const r=Math.abs(e.position.y);if(t.position.y=t.position.y-r,typeof i.height=="string"){const l=Number(i.height.replace("px",""));i.height=`${l+r}px`}else i.height+=r;e.position.y=0}t.dimensions.width=Number(i.width.toString().replace("px","")),t.dimensions.height=Number(i.height.toString().replace("px","")),typeof t.style=="function"?t.style=r=>{const l=t.style;return{...l(r),...i}}:t.style={...t.style,...i}}}}function ui(e,t){var n,o;const i=e.filter(l=>l.type==="add"||l.type==="remove");for(const l of i)if(l.type==="add")t.findIndex(s=>s.id===l.item.id)===-1&&t.push(l.item);else if(l.type==="remove"){const a=t.findIndex(s=>s.id===l.id);a!==-1&&t.splice(a,1)}const r=t.map(l=>l.id);for(const l of t)for(const a of e)if(a.id===l.id)switch(a.type){case"select":l.selected=a.selected;break;case"position":if(Yt(l)&&(typeof a.position<"u"&&(l.position=a.position),typeof a.dragging<"u"&&(l.dragging=a.dragging),l.expandParent&&l.parentNode)){const s=t[r.indexOf(l.parentNode)];s&&Yt(s)&&to(l,s)}break;case"dimensions":if(Yt(l)&&(typeof a.dimensions<"u"&&(l.dimensions=a.dimensions),typeof a.updateStyle<"u"&&a.updateStyle&&(l.style={...l.style||{},width:`${(n=a.dimensions)==null?void 0:n.width}px`,height:`${(o=a.dimensions)==null?void 0:o.height}px`}),typeof a.resizing<"u"&&(l.resizing=a.resizing),l.expandParent&&l.parentNode)){const s=t[r.indexOf(l.parentNode)];s&&Yt(s)&&(!!s.dimensions.width&&!!s.dimensions.height?to(l,s):We(()=>{to(l,s)}))}break}return t}function nt(e,t){return{id:e,type:"select",selected:t}}function ci(e){return{item:e,type:"add"}}function di(e){return{id:e,type:"remove"}}function fi(e,t,n,o,i){return{id:e,source:t,target:n,sourceHandle:o||null,targetHandle:i||null,type:"remove"}}function ot(e,t=new Set,n=!1){const o=[];for(const[i,r]of e){const l=t.has(i);!(r.selected===void 0&&!l)&&r.selected!==l&&(n&&(r.selected=l),o.push(nt(r.id,l)))}return o}const hi=()=>{};function W(e){const t=new Set;let n=hi,o=()=>!1;const i=()=>t.size>0||o(),r=p=>{n=p},l=()=>{n=hi},a=p=>{o=p},s=()=>{o=()=>!1},u=p=>{t.delete(p)};return{on:p=>{t.add(p);const v=()=>u(p);return Zt(v),{off:v}},off:u,trigger:p=>{const v=[n];return i()?v.push(...t):e&&v.push(e),Promise.allSettled(v.map(k=>k(p)))},hasListeners:i,listeners:t,setEmitter:r,removeEmitter:l,setHasEmitListeners:a,removeHasEmitListeners:s}}function pi(e,t,n){let o=e;do{if(o&&o.matches(t))return!0;if(o===n)return!1;o=o.parentElement}while(o);return!1}function Ac(e,t,n,o){var i,r;const l=new Map;for(const[a,s]of e)(s.selected||s.id===o)&&(!s.parentNode||!Cr(s,e))&&(s.draggable||t&&typeof s.draggable>"u")&&e.get(a)&&l.set(a,{id:s.id,position:s.position||{x:0,y:0},distance:{x:n.x-((i=s.computedPosition)==null?void 0:i.x)||0,y:n.y-((r=s.computedPosition)==null?void 0:r.y)||0},from:{x:s.computedPosition.x,y:s.computedPosition.y},extent:s.extent,parentNode:s.parentNode,dimensions:{...s.dimensions},expandParent:s.expandParent});return Array.from(l.values())}function no({id:e,dragItems:t,findNode:n}){const o=[];for(const i of t){const r=n(i.id);r&&o.push(r)}return[e?o.find(i=>i.id===e):o[0],o]}function Ir(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function Oc(e,t,n){const[o,i,r,l]=typeof e!="string"?Ir(e.padding):[0,0,0,0];return n&&typeof n.computedPosition.x<"u"&&typeof n.computedPosition.y<"u"&&typeof n.dimensions.width<"u"&&typeof n.dimensions.height<"u"?[[n.computedPosition.x+l,n.computedPosition.y+o],[n.computedPosition.x+n.dimensions.width-i,n.computedPosition.y+n.dimensions.height-r]]:!1}function zc(e,t,n,o){let i=e.extent||n;if((i==="parent"||!Array.isArray(i)&&i?.range==="parent")&&!e.expandParent)if(e.parentNode&&o&&e.dimensions.width&&e.dimensions.height){const r=Oc(i,e,o);r&&(i=r)}else t(new De(Me.NODE_EXTENT_INVALID,e.id)),i=n;else if(Array.isArray(i)){const r=o?.computedPosition.x||0,l=o?.computedPosition.y||0;i=[[i[0][0]+r,i[0][1]+l],[i[1][0]+r,i[1][1]+l]]}else if(i!=="parent"&&i?.range&&Array.isArray(i.range)){const[r,l,a,s]=Ir(i.padding),u=o?.computedPosition.x||0,c=o?.computedPosition.y||0;i=[[i.range[0][0]+u+s,i.range[0][1]+c+r],[i.range[1][0]+u-l,i.range[1][1]+c-a]]}return i==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:i}function Bc({width:e,height:t},n){return[n[0],[n[1][0]-(e||0),n[1][1]-(t||0)]]}function Ao(e,t,n,o,i){const r=Bc(e.dimensions,zc(e,n,o,i)),l=wr(t,r);return{position:{x:l.x-(i?.computedPosition.x||0),y:l.y-(i?.computedPosition.y||0)},computedPosition:l}}function Dt(e,t,n=K.Left,o=!1){const i=(t?.x??0)+e.computedPosition.x,r=(t?.y??0)+e.computedPosition.y,{width:l,height:a}=t??Lc(e);if(o)return{x:i+l/2,y:r+a/2};switch(t?.position??n){case K.Top:return{x:i+l/2,y:r};case K.Right:return{x:i+l,y:r+a/2};case K.Bottom:return{x:i+l/2,y:r+a};case K.Left:return{x:i,y:r+a/2}}}function gi(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function Vc({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:o,targetWidth:i,targetHeight:r,width:l,height:a,viewport:s}){const u={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+i),y2:Math.max(e.y+o,t.y+r)};u.x===u.x2&&(u.x2+=1),u.y===u.y2&&(u.y2+=1);const c=Er({x:(0-s.x)/s.zoom,y:(0-s.y)/s.zoom,width:l/s.zoom,height:a/s.zoom}),h=Math.max(0,Math.min(c.x2,u.x2)-Math.max(c.x,u.x)),p=Math.max(0,Math.min(c.y2,u.y2)-Math.max(c.y,u.y));return Math.ceil(h*p)>0}function Rc(e,t,n=!1){const o=typeof e.zIndex=="number";let i=o?e.zIndex:0;const r=t(e.source),l=t(e.target);return!r||!l?0:(n&&(i=o?e.zIndex:Math.max(r.computedPosition.z||0,l.computedPosition.z||0)),i)}var Me=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(Me||{});const vi={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid +Node: ${e}`,NODE_NOT_FOUND:e=>`Node not found +Node: ${e}`,NODE_MISSING_PARENT:(e,t)=>`Node is missing a parent +Node: ${e} +Parent: ${t}`,NODE_TYPE_MISSING:e=>`Node type is missing +Type: ${e}`,NODE_EXTENT_INVALID:e=>`Only child nodes can use a parent extent +Node: ${e}`,EDGE_INVALID:e=>`An edge needs a source and a target +Edge: ${e}`,EDGE_SOURCE_MISSING:(e,t)=>`Edge source is missing +Edge: ${e} +Source: ${t}`,EDGE_TARGET_MISSING:(e,t)=>`Edge target is missing +Edge: ${e} +Target: ${t}`,EDGE_TYPE_MISSING:e=>`Edge type is missing +Type: ${e}`,EDGE_SOURCE_TARGET_SAME:(e,t,n)=>`Edge source and target are the same +Edge: ${e} +Source: ${t} +Target: ${n}`,EDGE_SOURCE_TARGET_MISSING:(e,t,n)=>`Edge source or target is missing +Edge: ${e} +Source: ${t} +Target: ${n}`,EDGE_ORPHANED:e=>`Edge was orphaned (suddenly missing source or target) and has been removed +Edge: ${e}`,EDGE_NOT_FOUND:e=>`Edge not found +Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"};class De extends Error{constructor(t,...n){var o;super((o=vi[t])==null?void 0:o.call(vi,...n)),this.name="VueFlowError",this.code=t,this.args=n}}function Oo(e){return"clientX"in e}function Hc(e){return"sourceEvent"in e}function Ge(e,t){const n=Oo(e);let o,i;return n?(o=e.clientX,i=e.clientY):"touches"in e&&e.touches.length>0?(o=e.touches[0].clientX,i=e.touches[0].clientY):"changedTouches"in e&&e.changedTouches.length>0?(o=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY):(o=0,i=0),{x:o-(t?.left??0),y:i-(t?.top??0)}}const Pn=()=>{var e;return typeof navigator<"u"&&((e=navigator?.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Lc(e){var t,n;return{width:((t=e.dimensions)==null?void 0:t.width)??e.width??0,height:((n=e.dimensions)==null?void 0:n.height)??e.height??0}}function Fn(e,t=[1,1]){return{x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}}const Fc=()=>!0;function oo(e){e?.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function Yc(e,t,n){const o=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const r of t.values())Dn(i,Tn(r))>0&&o.push(r);return o}const Gc=250;function Wc(e,t,n,o){var i,r;let l=[],a=Number.POSITIVE_INFINITY;const s=Yc(e,n,t+Gc);for(const u of s){const c=[...((i=u.handleBounds)==null?void 0:i.source)??[],...((r=u.handleBounds)==null?void 0:r.target)??[]];for(const h of c){if(o.nodeId===h.nodeId&&o.type===h.type&&o.id===h.id)continue;const{x:p,y:v}=Dt(u,h,h.position,!0),k=Math.sqrt((p-e.x)**2+(v-e.y)**2);k>t||(k1){const u=o.type==="source"?"target":"source";return l.find(c=>c.type===u)??l[0]}return l[0]}function mi(e,{handle:t,connectionMode:n,fromNodeId:o,fromHandleId:i,fromType:r,doc:l,lib:a,flowId:s,isValidConnection:u=Fc},c,h,p,v){const k=r==="target",w=t?l.querySelector(`.${a}-flow__handle[data-id="${s}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x,y:$}=Ge(e),I=l.elementFromPoint(x,$),m=I?.classList.contains(`${a}-flow__handle`)?I:w,C={handleDomNode:m,isValid:!1,connection:null,toHandle:null};if(m){const z=Mr(void 0,m),Y=m.getAttribute("data-nodeid"),B=m.getAttribute("data-handleid"),R=m.classList.contains("connectable"),j=m.classList.contains("connectableend");if(!Y||!z)return C;const P={source:k?Y:o,sourceHandle:k?B:i,target:k?o:Y,targetHandle:k?i:B};C.connection=P;const E=R&&j&&(n===lt.Strict?k&&z==="source"||!k&&z==="target":Y!==o||B!==i);C.isValid=E&&u(P,{nodes:h,edges:c,sourceNode:p(P.source),targetNode:p(P.target)}),C.toHandle=Tr(Y,z,B,v,n,!0)}return C}function Mr(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function Uc(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}function Xc(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}function Tr(e,t,n,o,i,r=!1){var l,a,s;const u=o.get(e);if(!u)return null;const c=i===lt.Strict?(l=u.handleBounds)==null?void 0:l[t]:[...((a=u.handleBounds)==null?void 0:a.source)??[],...((s=u.handleBounds)==null?void 0:s.target)??[]],h=(n?c?.find(p=>p.id===n):c?.[0])??null;return h&&r?{...h,...Dt(u,h,h.position,!0)}:h}const bo={[K.Left]:K.Right,[K.Right]:K.Left,[K.Top]:K.Bottom,[K.Bottom]:K.Top},Zc=["production","prod"];function rn(e,...t){Dr()&&console.warn(`[Vue Flow]: ${e}`,...t)}function Dr(){return!Zc.includes("production")}function yi(e,t,n,o,i){const r=t.querySelectorAll(`.vue-flow__handle.${e}`);return r?.length?Array.from(r).map(l=>{const a=l.getBoundingClientRect();return{id:l.getAttribute("data-handleid"),type:e,nodeId:i,position:l.getAttribute("data-handlepos"),x:(a.left-n.left)/o,y:(a.top-n.top)/o,...Ln(l)}}):null}function xo(e,t,n,o,i,r=!1,l){i.value=!1,e.selected?(r||e.selected&&t)&&(o([e]),We(()=>{l.blur()})):n([e])}function Ie(e){return typeof V(e)<"u"}function qc(e,t,n,o){if(!e||!e.source||!e.target)return n(new De(Me.EDGE_INVALID,e?.id??"[ID UNKNOWN]")),!1;let i;return at(e)?i=e:i={...e,id:xr(e)},i=_r(i,void 0,o),$c(i,t)?!1:i}function Kc(e,t,n,o,i){if(!t.source||!t.target)return i(new De(Me.EDGE_INVALID,e.id)),!1;if(!n)return i(new De(Me.EDGE_NOT_FOUND,e.id)),!1;const{id:r,...l}=e;return{...l,id:o?xr(t):r,source:t.source,target:t.target,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle}}function wi(e,t,n){const o={},i=[];for(let r=0;ra.id===r.parentNode);r.parentNode&&!l&&n(new De(Me.NODE_MISSING_PARENT,r.id,r.parentNode)),(r.parentNode||o[r.id])&&(o[r.id]&&(r.isParent=!0),l&&(l.isParent=!0))}return i}function _i(e,t,n,o,i,r){let l=i;const a=o.get(l)||new Map;o.set(l,a.set(n,t)),l=`${i}-${e}`;const s=o.get(l)||new Map;if(o.set(l,s.set(n,t)),r){l=`${i}-${e}-${r}`;const u=o.get(l)||new Map;o.set(l,u.set(n,t))}}function io(e,t,n){e.clear();for(const o of n){const{source:i,target:r,sourceHandle:l=null,targetHandle:a=null}=o,s={edgeId:o.id,source:i,target:r,sourceHandle:l,targetHandle:a},u=`${i}-${l}--${r}-${a}`,c=`${r}-${a}--${i}-${l}`;_i("source",s,c,e,i,l),_i("target",s,u,e,r,a)}}function bi(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function ro(e,t,n,o,i,r,l,a){const s=[];for(const u of e){const c=at(u)?u:qc(u,a,i,r);if(!c)continue;const h=n(c.source),p=n(c.target);if(!h||!p){i(new De(Me.EDGE_SOURCE_TARGET_MISSING,c.id,c.source,c.target));continue}if(!h){i(new De(Me.EDGE_SOURCE_MISSING,c.id,c.source));continue}if(!p){i(new De(Me.EDGE_TARGET_MISSING,c.id,c.target));continue}if(t&&!t(c,{edges:a,nodes:l,sourceNode:h,targetNode:p})){i(new De(Me.EDGE_INVALID,c.id));continue}const v=o(c.id);s.push({..._r(c,v,r),sourceNode:h,targetNode:p})}return s}const xi=Symbol("vueFlow"),Pr=Symbol("nodeId"),Ar=Symbol("nodeRef"),Jc=Symbol("edgeId"),jc=Symbol("edgeRef"),Yn=Symbol("slots");function Or(e){const{vueFlowRef:t,snapToGrid:n,snapGrid:o,noDragClassName:i,nodeLookup:r,nodeExtent:l,nodeDragThreshold:a,viewport:s,autoPanOnNodeDrag:u,autoPanSpeed:c,nodesDraggable:h,panBy:p,findNode:v,multiSelectionActive:k,nodesSelectionActive:w,selectNodesOnDrag:x,removeSelectedElements:$,addSelectedNodes:I,updateNodePositions:m,emits:C}=Ne(),{onStart:z,onDrag:Y,onStop:B,onClick:R,el:j,disabled:P,id:D,selectable:E,dragHandle:Q}=e,y=it(!1);let M=[],S,T=null,A={x:void 0,y:void 0},L={x:0,y:0},F=null,J=!1,oe=!1,ae=0,ce=!1;const Z=td(),q=({x:re,y:N})=>{A={x:re,y:N};let d=!1;if(M=M.map(f=>{const g={x:re-f.distance.x,y:N-f.distance.y},{computedPosition:b}=Ao(f,n.value?Fn(g,o.value):g,C.error,l.value,f.parentNode?v(f.parentNode):void 0);return d=d||f.position.x!==b.x||f.position.y!==b.y,f.position=b,f}),oe=oe||d,!!d&&(m(M,!0,!0),y.value=!0,F)){const[f,g]=no({id:D,dragItems:M,findNode:v});Y({event:F,node:f,nodes:g})}},te=()=>{if(!T)return;const[re,N]=$r(L,T,c.value);if(re!==0||N!==0){const d={x:(A.x??0)-re/s.value.zoom,y:(A.y??0)-N/s.value.zoom};p({x:re,y:N})&&q(d)}ae=requestAnimationFrame(te)},he=(re,N)=>{J=!0;const d=v(D);!x.value&&!k.value&&d&&(d.selected||$()),d&&fe(E)&&x.value&&xo(d,k.value,I,$,w,!1,N);const f=Z(re.sourceEvent);if(A=f,M=Ac(r.value,h.value,f,D),M.length){const[g,b]=no({id:D,dragItems:M,findNode:v});z({event:re.sourceEvent,node:g,nodes:b})}},we=(re,N)=>{var d;re.sourceEvent.type==="touchmove"&&re.sourceEvent.touches.length>1||(oe=!1,a.value===0&&he(re,N),A=Z(re.sourceEvent),T=((d=t.value)==null?void 0:d.getBoundingClientRect())||null,L=Ge(re.sourceEvent,T))},se=(re,N)=>{const d=Z(re.sourceEvent);if(!ce&&J&&u.value&&(ce=!0,te()),!J){const f=d.xSnapped-(A.x??0),g=d.ySnapped-(A.y??0);Math.sqrt(f*f+g*g)>a.value&&he(re,N)}(A.x!==d.xSnapped||A.y!==d.ySnapped)&&M.length&&J&&(F=re.sourceEvent,L=Ge(re.sourceEvent,T),q(d))},pe=re=>{let N=!1;if(!J&&!y.value&&!k.value){const d=re.sourceEvent,f=Z(d),g=f.xSnapped-(A.x??0),b=f.ySnapped-(A.y??0),_=Math.sqrt(g*g+b*b);_!==0&&_<=a.value&&(R?.(d),N=!0)}if(M.length&&!N){oe&&(m(M,!1,!1),oe=!1);const[d,f]=no({id:D,dragItems:M,findNode:v});B({event:re.sourceEvent,node:d,nodes:f})}M=[],y.value=!1,ce=!1,J=!1,A={x:void 0,y:void 0},cancelAnimationFrame(ae)};return ye([()=>fe(P),j],([re,N],d,f)=>{if(N){const g=Be(N);re||(S=Ss().on("start",b=>we(b,N)).on("drag",b=>se(b,N)).on("end",b=>pe(b)).filter(b=>{const _=b.target,H=fe(Q);return!b.button&&(!i.value||!pi(_,`.${i.value}`,N)&&(!H||pi(_,H,N)))}),g.call(S)),f(()=>{g.on(".drag",null),S&&(S.on("start",null),S.on("drag",null),S.on("end",null))})}}),y}function Qc(){return{doubleClick:W(),click:W(),mouseEnter:W(),mouseMove:W(),mouseLeave:W(),contextMenu:W(),updateStart:W(),update:W(),updateEnd:W()}}function ed(e,t){const n=Qc();return n.doubleClick.on(o=>{var i,r;t.edgeDoubleClick(o),(r=(i=e.events)==null?void 0:i.doubleClick)==null||r.call(i,o)}),n.click.on(o=>{var i,r;t.edgeClick(o),(r=(i=e.events)==null?void 0:i.click)==null||r.call(i,o)}),n.mouseEnter.on(o=>{var i,r;t.edgeMouseEnter(o),(r=(i=e.events)==null?void 0:i.mouseEnter)==null||r.call(i,o)}),n.mouseMove.on(o=>{var i,r;t.edgeMouseMove(o),(r=(i=e.events)==null?void 0:i.mouseMove)==null||r.call(i,o)}),n.mouseLeave.on(o=>{var i,r;t.edgeMouseLeave(o),(r=(i=e.events)==null?void 0:i.mouseLeave)==null||r.call(i,o)}),n.contextMenu.on(o=>{var i,r;t.edgeContextMenu(o),(r=(i=e.events)==null?void 0:i.contextMenu)==null||r.call(i,o)}),n.updateStart.on(o=>{var i,r;t.edgeUpdateStart(o),(r=(i=e.events)==null?void 0:i.updateStart)==null||r.call(i,o)}),n.update.on(o=>{var i,r;t.edgeUpdate(o),(r=(i=e.events)==null?void 0:i.update)==null||r.call(i,o)}),n.updateEnd.on(o=>{var i,r;t.edgeUpdateEnd(o),(r=(i=e.events)==null?void 0:i.updateEnd)==null||r.call(i,o)}),Object.entries(n).reduce((o,[i,r])=>(o.emit[i]=r.trigger,o.on[i]=r.on,o),{emit:{},on:{}})}function td(){const{viewport:e,snapGrid:t,snapToGrid:n,vueFlowRef:o}=Ne();return i=>{var r;const l=((r=o.value)==null?void 0:r.getBoundingClientRect())??{left:0,top:0},a=Hc(i)?i.sourceEvent:i,{x:s,y:u}=Ge(a,l),c=en({x:s,y:u},e.value),{x:h,y:p}=n.value?Fn(c,t.value):c;return{xSnapped:h,ySnapped:p,...c}}}function hn(){return!0}function zr({handleId:e,nodeId:t,type:n,isValidConnection:o,edgeUpdaterType:i,onEdgeUpdate:r,onEdgeUpdateEnd:l}){const{id:a,vueFlowRef:s,connectionMode:u,connectionRadius:c,connectOnClick:h,connectionClickStartHandle:p,nodesConnectable:v,autoPanOnConnect:k,autoPanSpeed:w,findNode:x,panBy:$,startConnection:I,updateConnection:m,endConnection:C,emits:z,viewport:Y,edges:B,nodes:R,isValidConnection:j,nodeLookup:P}=Ne();let D=null,E=!1,Q=null;function y(S){var T;const A=fe(n)==="target",L=Oo(S),F=ri(S.target),J=S.currentTarget;if(J&&(L&&S.button===0||!L)){let oe=function(U){d=Ge(U,pe),q=Wc(en(d,Y.value,!1,[1,1]),c.value,P.value,b),f||(g(),f=!0);const le=mi(U,{handle:q,connectionMode:u.value,fromNodeId:fe(t),fromHandleId:fe(e),fromType:A?"target":"source",isValidConnection:Z,doc:F,lib:"vue",flowId:a,nodeLookup:P.value},B.value,R.value,x,P.value);Q=le.handleDomNode,D=le.connection,E=Xc(!!q,le.isValid);const de={...ee,isValid:E,to:le.toHandle&&E?Qt({x:le.toHandle.x,y:le.toHandle.y},Y.value):d,toHandle:le.toHandle,toPosition:E&&le.toHandle?le.toHandle.position:bo[b.position],toNode:le.toHandle?P.value.get(le.toHandle.nodeId):null};if(E&&q&&ee?.toHandle&&de.toHandle&&ee.toHandle.type===de.toHandle.type&&ee.toHandle.nodeId===de.toHandle.nodeId&&ee.toHandle.id===de.toHandle.id&&ee.to.x===de.to.x&&ee.to.y===de.to.y)return;const _e=q??le.toHandle;if(m(_e&&E?Qt({x:_e.x,y:_e.y},Y.value):d,_e,Uc(!!_e,E)),ee=de,!q&&!E&&!Q)return oo(N);D&&D.source!==D.target&&Q&&(oo(N),N=Q,Q.classList.add("connecting","vue-flow__handle-connecting"),Q.classList.toggle("valid",!!E),Q.classList.toggle("vue-flow__handle-valid",!!E))},ae=function(U){"touches"in U&&U.touches.length>0||((q||Q)&&D&&E&&(r?r(U,D):z.connect(D)),z.connectEnd(U),i&&l?.(U),oo(N),cancelAnimationFrame(te),C(U),f=!1,E=!1,D=null,Q=null,F.removeEventListener("mousemove",oe),F.removeEventListener("mouseup",ae),F.removeEventListener("touchmove",oe),F.removeEventListener("touchend",ae))};const ce=x(fe(t));let Z=fe(o)||j.value||hn;!Z&&ce&&(Z=(A?ce.isValidSourcePos:ce.isValidTargetPos)||hn);let q,te=0;const{x:he,y:we}=Ge(S),se=Mr(fe(i),J),pe=(T=s.value)==null?void 0:T.getBoundingClientRect();if(!pe||!se)return;const re=Tr(fe(t),se,fe(e),P.value,u.value);if(!re)return;let N,d=Ge(S,pe),f=!1;const g=()=>{if(!k.value)return;const[U,le]=$r(d,pe,w.value);$({x:U,y:le}),te=requestAnimationFrame(g)},b={...re,nodeId:fe(t),type:se,position:re.position},_=P.value.get(fe(t)),G={inProgress:!0,isValid:null,from:Dt(_,b,K.Left,!0),fromHandle:b,fromPosition:b.position,fromNode:_,to:d,toHandle:null,toPosition:bo[b.position],toNode:null};I({nodeId:fe(t),id:fe(e),type:se,position:J?.getAttribute("data-handlepos")||K.Top,...d},{x:he-pe.left,y:we-pe.top}),z.connectStart({event:S,nodeId:fe(t),handleId:fe(e),handleType:se});let ee=G;F.addEventListener("mousemove",oe),F.addEventListener("mouseup",ae),F.addEventListener("touchmove",oe),F.addEventListener("touchend",ae)}}function M(S){var T,A;if(!h.value)return;const L=fe(n)==="target";if(!p.value){z.clickConnectStart({event:S,nodeId:fe(t),handleId:fe(e)}),I({nodeId:fe(t),type:fe(n),id:fe(e),position:K.Top,...Ge(S)},void 0,!0);return}let F=fe(o)||j.value||hn;const J=x(fe(t));if(!F&&J&&(F=(L?J.isValidSourcePos:J.isValidTargetPos)||hn),J&&(typeof J.connectable>"u"?v.value:J.connectable)===!1)return;const oe=ri(S.target),ae=mi(S,{handle:{nodeId:fe(t),id:fe(e),type:fe(n),position:K.Top,...Ge(S)},connectionMode:u.value,fromNodeId:p.value.nodeId,fromHandleId:p.value.id??null,fromType:p.value.type,isValidConnection:F,doc:oe,lib:"vue",flowId:a,nodeLookup:P.value},B.value,R.value,x,P.value),ce=((T=ae.connection)==null?void 0:T.source)===((A=ae.connection)==null?void 0:A.target);ae.isValid&&ae.connection&&!ce&&z.connect(ae.connection),z.clickConnectEnd(S),C(S,!0)}return{handlePointerDown:y,handleClick:M}}function nd(){return Pt(Pr,"")}function Br(e){const t=e??nd()??"",n=Pt(Ar,Ee(null)),{findNode:o,edges:i,emits:r}=Ne(),l=o(t);return l||r.error(new De(Me.NODE_NOT_FOUND,t)),{id:t,nodeEl:n,node:l,parentNode:ie(()=>o(l.parentNode)),connectedEdges:ie(()=>kr([l],i.value))}}function od(){return{doubleClick:W(),click:W(),mouseEnter:W(),mouseMove:W(),mouseLeave:W(),contextMenu:W(),dragStart:W(),drag:W(),dragStop:W()}}function id(e,t){const n=od();return n.doubleClick.on(o=>{var i,r;t.nodeDoubleClick(o),(r=(i=e.events)==null?void 0:i.doubleClick)==null||r.call(i,o)}),n.click.on(o=>{var i,r;t.nodeClick(o),(r=(i=e.events)==null?void 0:i.click)==null||r.call(i,o)}),n.mouseEnter.on(o=>{var i,r;t.nodeMouseEnter(o),(r=(i=e.events)==null?void 0:i.mouseEnter)==null||r.call(i,o)}),n.mouseMove.on(o=>{var i,r;t.nodeMouseMove(o),(r=(i=e.events)==null?void 0:i.mouseMove)==null||r.call(i,o)}),n.mouseLeave.on(o=>{var i,r;t.nodeMouseLeave(o),(r=(i=e.events)==null?void 0:i.mouseLeave)==null||r.call(i,o)}),n.contextMenu.on(o=>{var i,r;t.nodeContextMenu(o),(r=(i=e.events)==null?void 0:i.contextMenu)==null||r.call(i,o)}),n.dragStart.on(o=>{var i,r;t.nodeDragStart(o),(r=(i=e.events)==null?void 0:i.dragStart)==null||r.call(i,o)}),n.drag.on(o=>{var i,r;t.nodeDrag(o),(r=(i=e.events)==null?void 0:i.drag)==null||r.call(i,o)}),n.dragStop.on(o=>{var i,r;t.nodeDragStop(o),(r=(i=e.events)==null?void 0:i.dragStop)==null||r.call(i,o)}),Object.entries(n).reduce((o,[i,r])=>(o.emit[i]=r.trigger,o.on[i]=r.on,o),{emit:{},on:{}})}function Vr(){const{getSelectedNodes:e,nodeExtent:t,updateNodePositions:n,findNode:o,snapGrid:i,snapToGrid:r,nodesDraggable:l,emits:a}=Ne();return(s,u=!1)=>{const c=r.value?i.value[0]:5,h=r.value?i.value[1]:5,p=u?4:1,v=s.x*c*p,k=s.y*h*p,w=[];for(const x of e.value)if(x.draggable||l&&typeof x.draggable>"u"){const $={x:x.computedPosition.x+v,y:x.computedPosition.y+k},{position:I}=Ao(x,$,a.error,t.value,x.parentNode?o(x.parentNode):void 0);w.push({id:x.id,position:I,from:x.position,distance:{x:s.x,y:s.y},dimensions:x.dimensions})}n(w,!0,!1)}}const pn=.1,rd=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function tt(){return rn("Viewport not initialized yet."),Promise.resolve(!1)}const ld={zoomIn:tt,zoomOut:tt,zoomTo:tt,fitView:tt,setCenter:tt,fitBounds:tt,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:tt,setTransform:tt,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function ad(e){function t(o,i){return new Promise(r=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(i?.interpolate==="linear"?Wt:_n).scaleBy(lo(e.d3Selection,i?.duration,i?.ease,()=>{r(!0)}),o):r(!1)})}function n(o,i,r,l){return new Promise(a=>{var s;const{x:u,y:c}=wr({x:-o,y:-i},e.translateExtent),h=Tt.translate(-u,-c).scale(r);e.d3Selection&&e.d3Zoom?(s=e.d3Zoom)==null||s.interpolate(l?.interpolate==="linear"?Wt:_n).transform(lo(e.d3Selection,l?.duration,l?.ease,()=>{a(!0)}),h):a(!1)})}return ie(()=>e.d3Zoom&&e.d3Selection&&e.dimensions.width&&e.dimensions.height?{viewportInitialized:!0,zoomIn:i=>t(1.2,i),zoomOut:i=>t(1/1.2,i),zoomTo:(i,r)=>new Promise(l=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(r?.interpolate==="linear"?Wt:_n).scaleTo(lo(e.d3Selection,r?.duration,r?.ease,()=>{l(!0)}),i):l(!1)}),setViewport:(i,r)=>n(i.x,i.y,i.zoom,r),setTransform:(i,r)=>n(i.x,i.y,i.zoom,r),getViewport:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),getTransform:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),fitView:(i={padding:pn,includeHiddenNodes:!1,duration:0})=>{var r,l;const a=[];for(const p of e.nodes)p.dimensions.width&&p.dimensions.height&&(i?.includeHiddenNodes||!p.hidden)&&(!((r=i.nodes)!=null&&r.length)||(l=i.nodes)!=null&&l.length&&i.nodes.includes(p.id))&&a.push(p);if(!a.length)return Promise.resolve(!1);const s=Sr(a),{x:u,y:c,zoom:h}=li(s,e.dimensions.width,e.dimensions.height,i.minZoom??e.minZoom,i.maxZoom??e.maxZoom,i.padding??pn);return n(u,c,h,i)},setCenter:(i,r,l)=>{const a=typeof l?.zoom<"u"?l.zoom:e.maxZoom,s=e.dimensions.width/2-i*a,u=e.dimensions.height/2-r*a;return n(s,u,a,l)},fitBounds:(i,r={padding:pn})=>{const{x:l,y:a,zoom:s}=li(i,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,r.padding??pn);return n(l,a,s,r)},project:i=>en(i,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:i=>{if(e.vueFlowRef){const{x:r,y:l}=e.vueFlowRef.getBoundingClientRect(),a={x:i.x-r,y:i.y-l};return en(a,e.viewport,e.snapToGrid,e.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:i=>{if(e.vueFlowRef){const{x:r,y:l}=e.vueFlowRef.getBoundingClientRect(),a={x:i.x+r,y:i.y+l};return Qt(a,e.viewport)}return{x:0,y:0}}}:ld)}function lo(e,t=0,n=rd,o=()=>{}){const i=typeof t=="number"&&t>0;return i||o(),i?e.transition().duration(t).ease(n).on("end",o):e}function sd(e,t,n){const o=Pi(!0);return o.run(()=>{const i=()=>{o.run(()=>{let w,x,$=!!(n.nodes.value.length||n.edges.value.length);w=_t([e.modelValue,()=>{var I,m;return(m=(I=e.modelValue)==null?void 0:I.value)==null?void 0:m.length}],([I])=>{I&&Array.isArray(I)&&(x?.pause(),n.setElements(I),!x&&!$&&I.length?$=!0:x?.resume())}),x=_t([n.nodes,n.edges,()=>n.edges.value.length,()=>n.nodes.value.length],([I,m])=>{var C;(C=e.modelValue)!=null&&C.value&&Array.isArray(e.modelValue.value)&&(w?.pause(),e.modelValue.value=[...I,...m],We(()=>{w?.resume()}))},{immediate:$}),yn(()=>{w?.stop(),x?.stop()})})},r=()=>{o.run(()=>{let w,x,$=!!n.nodes.value.length;w=_t([e.nodes,()=>{var I,m;return(m=(I=e.nodes)==null?void 0:I.value)==null?void 0:m.length}],([I])=>{I&&Array.isArray(I)&&(x?.pause(),n.setNodes(I),!x&&!$&&I.length?$=!0:x?.resume())}),x=_t([n.nodes,()=>n.nodes.value.length],([I])=>{var m;(m=e.nodes)!=null&&m.value&&Array.isArray(e.nodes.value)&&(w?.pause(),e.nodes.value=[...I],We(()=>{w?.resume()}))},{immediate:$}),yn(()=>{w?.stop(),x?.stop()})})},l=()=>{o.run(()=>{let w,x,$=!!n.edges.value.length;w=_t([e.edges,()=>{var I,m;return(m=(I=e.edges)==null?void 0:I.value)==null?void 0:m.length}],([I])=>{I&&Array.isArray(I)&&(x?.pause(),n.setEdges(I),!x&&!$&&I.length?$=!0:x?.resume())}),x=_t([n.edges,()=>n.edges.value.length],([I])=>{var m;(m=e.edges)!=null&&m.value&&Array.isArray(e.edges.value)&&(w?.pause(),e.edges.value=[...I],We(()=>{w?.resume()}))},{immediate:$}),yn(()=>{w?.stop(),x?.stop()})})},a=()=>{o.run(()=>{ye(()=>t.maxZoom,()=>{t.maxZoom&&Ie(t.maxZoom)&&n.setMaxZoom(t.maxZoom)},{immediate:!0})})},s=()=>{o.run(()=>{ye(()=>t.minZoom,()=>{t.minZoom&&Ie(t.minZoom)&&n.setMinZoom(t.minZoom)},{immediate:!0})})},u=()=>{o.run(()=>{ye(()=>t.translateExtent,()=>{t.translateExtent&&Ie(t.translateExtent)&&n.setTranslateExtent(t.translateExtent)},{immediate:!0})})},c=()=>{o.run(()=>{ye(()=>t.nodeExtent,()=>{t.nodeExtent&&Ie(t.nodeExtent)&&n.setNodeExtent(t.nodeExtent)},{immediate:!0})})},h=()=>{o.run(()=>{ye(()=>t.applyDefault,()=>{Ie(t.applyDefault)&&(n.applyDefault.value=t.applyDefault)},{immediate:!0})})},p=()=>{o.run(()=>{const w=async x=>{let $=x;typeof t.autoConnect=="function"&&($=await t.autoConnect(x)),$!==!1&&n.addEdges([$])};ye(()=>t.autoConnect,()=>{Ie(t.autoConnect)&&(n.autoConnect.value=t.autoConnect)},{immediate:!0}),ye(n.autoConnect,(x,$,I)=>{x?n.onConnect(w):n.hooks.value.connect.off(w),I(()=>{n.hooks.value.connect.off(w)})},{immediate:!0})})},v=()=>{const w=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const x of Object.keys(t)){const $=x;if(!w.includes($)){const I=xe(()=>t[$]),m=n[$];So(m)&&o.run(()=>{ye(I,C=>{Ie(C)&&(m.value=C)},{immediate:!0})})}}};(()=>{i(),r(),l(),s(),a(),u(),c(),h(),p(),v()})()}),()=>o.stop()}function ud(){return{edgesChange:W(),nodesChange:W(),nodeDoubleClick:W(),nodeClick:W(),nodeMouseEnter:W(),nodeMouseMove:W(),nodeMouseLeave:W(),nodeContextMenu:W(),nodeDragStart:W(),nodeDrag:W(),nodeDragStop:W(),nodesInitialized:W(),miniMapNodeClick:W(),miniMapNodeDoubleClick:W(),miniMapNodeMouseEnter:W(),miniMapNodeMouseMove:W(),miniMapNodeMouseLeave:W(),connect:W(),connectStart:W(),connectEnd:W(),clickConnectStart:W(),clickConnectEnd:W(),paneReady:W(),init:W(),move:W(),moveStart:W(),moveEnd:W(),selectionDragStart:W(),selectionDrag:W(),selectionDragStop:W(),selectionContextMenu:W(),selectionStart:W(),selectionEnd:W(),viewportChangeStart:W(),viewportChange:W(),viewportChangeEnd:W(),paneScroll:W(),paneClick:W(),paneContextMenu:W(),paneMouseEnter:W(),paneMouseMove:W(),paneMouseLeave:W(),edgeContextMenu:W(),edgeMouseEnter:W(),edgeMouseMove:W(),edgeMouseLeave:W(),edgeDoubleClick:W(),edgeClick:W(),edgeUpdateStart:W(),edgeUpdate:W(),edgeUpdateEnd:W(),updateNodeInternals:W(),error:W(e=>rn(e.message))}}function cd(e,t){const n=At();rl(()=>{for(const[i,r]of Object.entries(t.value)){const l=a=>{e(i,a)};r.setEmitter(l),Zt(r.removeEmitter),r.setHasEmitListeners(()=>o(i)),Zt(r.removeHasEmitListeners)}});function o(i){var r;const l=dd(i);return!!((r=n?.vnode.props)==null?void 0:r[l])}}function dd(e){const[t,...n]=e.split(":");return`on${t.replace(/(?:^|-)(\w)/g,(i,r)=>r.toUpperCase())}${n.length?`:${n.join(":")}`:""}`}function Rr(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:Po.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:Ut.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:ct.Bezier,style:{}},connectionMode:lt.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:Number.NaN,y:Number.NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:Pn()?"Meta":"Control",zoomActivationKeyCode:Pn()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:ud(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}const fd=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function hd(e,t,n){const o=ad(e),i=d=>{const f=d??[];e.hooks.updateNodeInternals.trigger(f)},r=d=>Cc(d,e.nodes,e.edges),l=d=>kc(d,e.nodes,e.edges),a=d=>kr(d,e.edges),s=({id:d,type:f,nodeId:g})=>{var b;const _=d?`-${f}-${d}`:`-${f}`;return Array.from(((b=e.connectionLookup.get(`${g}${_}`))==null?void 0:b.values())??[])},u=d=>{if(d)return t.value.get(d)},c=d=>{if(d)return n.value.get(d)},h=(d,f,g)=>{var b,_;const H=[];for(const G of d){const ee={id:G.id,type:"position",dragging:g,from:G.from};if(f&&(ee.position=G.position,G.parentNode)){const U=u(G.parentNode);ee.position={x:ee.position.x-(((b=U?.computedPosition)==null?void 0:b.x)??0),y:ee.position.y-(((_=U?.computedPosition)==null?void 0:_.y)??0)}}H.push(ee)}H?.length&&e.hooks.nodesChange.trigger(H)},p=d=>{if(!e.vueFlowRef)return;const f=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!f)return;const g=window.getComputedStyle(f),{m22:b}=new window.DOMMatrixReadOnly(g.transform),_=[];for(const H of d){const G=H,ee=u(G.id);if(ee){const U=Ln(G.nodeElement);if(!!(U.width&&U.height&&(ee.dimensions.width!==U.width||ee.dimensions.height!==U.height||G.forceUpdate))){const de=G.nodeElement.getBoundingClientRect();ee.dimensions=U,ee.handleBounds.source=yi("source",G.nodeElement,de,b,ee.id),ee.handleBounds.target=yi("target",G.nodeElement,de,b,ee.id),_.push({id:ee.id,type:"dimensions",dimensions:U})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&o.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),_.length&&e.hooks.nodesChange.trigger(_)},v=(d,f)=>{const g=new Set,b=new Set;for(const G of d)pt(G)?g.add(G.id):at(G)&&b.add(G.id);const _=ot(t.value,g,!0),H=ot(n.value,b);if(e.multiSelectionActive){for(const G of g)_.push(nt(G,f));for(const G of b)H.push(nt(G,f))}_.length&&e.hooks.nodesChange.trigger(_),H.length&&e.hooks.edgesChange.trigger(H)},k=d=>{if(e.multiSelectionActive){const f=d.map(g=>nt(g.id,!0));e.hooks.nodesChange.trigger(f);return}e.hooks.nodesChange.trigger(ot(t.value,new Set(d.map(f=>f.id)),!0)),e.hooks.edgesChange.trigger(ot(n.value))},w=d=>{if(e.multiSelectionActive){const f=d.map(g=>nt(g.id,!0));e.hooks.edgesChange.trigger(f);return}e.hooks.edgesChange.trigger(ot(n.value,new Set(d.map(f=>f.id)))),e.hooks.nodesChange.trigger(ot(t.value,new Set,!0))},x=d=>{v(d,!0)},$=d=>{const g=(d||e.nodes).map(b=>(b.selected=!1,nt(b.id,!1)));e.hooks.nodesChange.trigger(g)},I=d=>{const g=(d||e.edges).map(b=>(b.selected=!1,nt(b.id,!1)));e.hooks.edgesChange.trigger(g)},m=d=>{if(!d||!d.length)return v([],!1);const f=d.reduce((g,b)=>{const _=nt(b.id,!1);return pt(b)?g.nodes.push(_):g.edges.push(_),g},{nodes:[],edges:[]});f.nodes.length&&e.hooks.nodesChange.trigger(f.nodes),f.edges.length&&e.hooks.edgesChange.trigger(f.edges)},C=d=>{var f;(f=e.d3Zoom)==null||f.scaleExtent([d,e.maxZoom]),e.minZoom=d},z=d=>{var f;(f=e.d3Zoom)==null||f.scaleExtent([e.minZoom,d]),e.maxZoom=d},Y=d=>{var f;(f=e.d3Zoom)==null||f.translateExtent(d),e.translateExtent=d},B=d=>{e.nodeExtent=d,i()},R=d=>{var f;(f=e.d3Zoom)==null||f.clickDistance(d)},j=d=>{e.nodesDraggable=d,e.nodesConnectable=d,e.elementsSelectable=d},P=d=>{const f=d instanceof Function?d(e.nodes):d;!e.initialized&&!f.length||(e.nodes=wi(f,u,e.hooks.error.trigger))},D=d=>{const f=d instanceof Function?d(e.edges):d;if(!e.initialized&&!f.length)return;const g=ro(f,e.isValidConnection,u,c,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);io(e.connectionLookup,n.value,g),e.edges=g},E=d=>{const f=d instanceof Function?d([...e.nodes,...e.edges]):d;!e.initialized&&!f.length||(P(f.filter(pt)),D(f.filter(at)))},Q=d=>{let f=d instanceof Function?d(e.nodes):d;f=Array.isArray(f)?f:[f];const g=wi(f,u,e.hooks.error.trigger),b=[];for(const _ of g)b.push(ci(_));b.length&&e.hooks.nodesChange.trigger(b)},y=d=>{let f=d instanceof Function?d(e.edges):d;f=Array.isArray(f)?f:[f];const g=ro(f,e.isValidConnection,u,c,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),b=[];for(const _ of g)b.push(ci(_));b.length&&e.hooks.edgesChange.trigger(b)},M=(d,f=!0,g=!1)=>{const b=d instanceof Function?d(e.nodes):d,_=Array.isArray(b)?b:[b],H=[],G=[];function ee(le){const de=a(le);for(const _e of de)(!Ie(_e.deletable)||_e.deletable)&&G.push(fi(_e.id,_e.source,_e.target,_e.sourceHandle,_e.targetHandle))}function U(le){const de=[];for(const _e of e.nodes)_e.parentNode===le&&de.push(_e);if(de.length){for(const _e of de)H.push(di(_e.id));f&&ee(de);for(const _e of de)U(_e.id)}}for(const le of _){const de=typeof le=="string"?u(le):le;de&&(Ie(de.deletable)&&!de.deletable||(H.push(di(de.id)),f&&ee([de]),g&&U(de.id)))}G.length&&e.hooks.edgesChange.trigger(G),H.length&&e.hooks.nodesChange.trigger(H)},S=d=>{const f=d instanceof Function?d(e.edges):d,g=Array.isArray(f)?f:[f],b=[];for(const _ of g){const H=typeof _=="string"?c(_):_;H&&(Ie(H.deletable)&&!H.deletable||b.push(fi(typeof _=="string"?_:_.id,H.source,H.target,H.sourceHandle,H.targetHandle)))}e.hooks.edgesChange.trigger(b)},T=(d,f,g=!0)=>{const b=c(d.id);if(!b)return!1;const _=e.edges.indexOf(b),H=Kc(d,f,b,g,e.hooks.error.trigger);if(H){const[G]=ro([H],e.isValidConnection,u,c,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((ee,U)=>U===_?G:ee),io(e.connectionLookup,n.value,[G]),G}return!1},A=(d,f,g={replace:!1})=>{const b=c(d);if(!b)return;const _=typeof f=="function"?f(b):f;b.data=g.replace?_:{...b.data,..._}},L=d=>ui(d,e.nodes),F=d=>{const f=ui(d,e.edges);return io(e.connectionLookup,n.value,f),f},J=(d,f,g={replace:!1})=>{const b=u(d);if(!b)return;const _=typeof f=="function"?f(b):f;g.replace?e.nodes.splice(e.nodes.indexOf(b),1,_):Object.assign(b,_)},oe=(d,f,g={replace:!1})=>{const b=u(d);if(!b)return;const _=typeof f=="function"?f(b):f;b.data=g.replace?_:{...b.data,..._}},ae=(d,f,g=!1)=>{g?e.connectionClickStartHandle=d:e.connectionStartHandle=d,e.connectionEndHandle=null,e.connectionStatus=null,f&&(e.connectionPosition=f)},ce=(d,f=null,g=null)=>{e.connectionStartHandle&&(e.connectionPosition=d,e.connectionEndHandle=f,e.connectionStatus=g)},Z=(d,f)=>{e.connectionPosition={x:Number.NaN,y:Number.NaN},e.connectionEndHandle=null,e.connectionStatus=null,f?e.connectionClickStartHandle=null:e.connectionStartHandle=null},q=d=>{const f=Sc(d),g=f?null:Yt(d)?d:u(d.id);return!f&&!g?[null,null,f]:[f?d:Tn(g),g,f]},te=(d,f=!0,g=e.nodes)=>{const[b,_,H]=q(d);if(!b)return[];const G=[];for(const ee of g||e.nodes){if(!H&&(ee.id===_.id||!ee.computedPosition))continue;const U=Tn(ee),le=Dn(U,b);(f&&le>0||le>=U.width*U.height||le>=Number(b.width)*Number(b.height))&&G.push(ee)}return G},he=(d,f,g=!0)=>{const[b]=q(d);if(!b)return!1;const _=Dn(b,f);return g&&_>0||_>=Number(b.width)*Number(b.height)},we=d=>{const{viewport:f,dimensions:g,d3Zoom:b,d3Selection:_,translateExtent:H}=e;if(!b||!_||!d.x&&!d.y)return!1;const G=Tt.translate(f.x+d.x,f.y+d.y).scale(f.zoom),ee=[[0,0],[g.width,g.height]],U=b.constrain()(G,ee,H),le=e.viewport.x!==U.x||e.viewport.y!==U.y||e.viewport.zoom!==U.k;return b.transform(_,U),le},se=d=>{const f=d instanceof Function?d(e):d,g=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];Ie(f.defaultEdgeOptions)&&(e.defaultEdgeOptions=f.defaultEdgeOptions);const b=f.modelValue||f.nodes||f.edges?[]:void 0;b&&(f.modelValue&&b.push(...f.modelValue),f.nodes&&b.push(...f.nodes),f.edges&&b.push(...f.edges),E(b));const _=()=>{Ie(f.maxZoom)&&z(f.maxZoom),Ie(f.minZoom)&&C(f.minZoom),Ie(f.translateExtent)&&Y(f.translateExtent)};for(const H of Object.keys(f)){const G=H,ee=f[G];![...fd,...g].includes(G)&&Ie(ee)&&(e[G]=ee)}uo(()=>e.d3Zoom).not.toBeNull().then(_),e.initialized||(e.initialized=!0)};return{updateNodePositions:h,updateNodeDimensions:p,setElements:E,setNodes:P,setEdges:D,addNodes:Q,addEdges:y,removeNodes:M,removeEdges:S,findNode:u,findEdge:c,updateEdge:T,updateEdgeData:A,updateNode:J,updateNodeData:oe,applyEdgeChanges:F,applyNodeChanges:L,addSelectedElements:x,addSelectedNodes:k,addSelectedEdges:w,setMinZoom:C,setMaxZoom:z,setTranslateExtent:Y,setNodeExtent:B,setPaneClickDistance:R,removeSelectedElements:m,removeSelectedNodes:$,removeSelectedEdges:I,startConnection:ae,updateConnection:ce,endConnection:Z,setInteractive:j,setState:se,getIntersectingNodes:te,getIncomers:r,getOutgoers:l,getConnectedEdges:a,getHandleConnections:s,isNodeIntersecting:he,panBy:we,fitView:d=>o.value.fitView(d),zoomIn:d=>o.value.zoomIn(d),zoomOut:d=>o.value.zoomOut(d),zoomTo:(d,f)=>o.value.zoomTo(d,f),setViewport:(d,f)=>o.value.setViewport(d,f),setTransform:(d,f)=>o.value.setTransform(d,f),getViewport:()=>o.value.getViewport(),getTransform:()=>o.value.getTransform(),setCenter:(d,f,g)=>o.value.setCenter(d,f,g),fitBounds:(d,f)=>o.value.fitBounds(d,f),project:d=>o.value.project(d),screenToFlowCoordinate:d=>o.value.screenToFlowCoordinate(d),flowToScreenCoordinate:d=>o.value.flowToScreenCoordinate(d),toObject:()=>{const d=[],f=[];for(const g of e.nodes){const{computedPosition:b,handleBounds:_,selected:H,dimensions:G,isParent:ee,resizing:U,dragging:le,events:de,..._e}=g;d.push(_e)}for(const g of e.edges){const{selected:b,sourceNode:_,targetNode:H,events:G,...ee}=g;f.push(ee)}return JSON.parse(JSON.stringify({nodes:d,edges:f,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:d=>new Promise(f=>{const{nodes:g,edges:b,position:_,zoom:H,viewport:G}=d;g&&P(g),b&&D(b);const[ee,U]=G?.x&&G?.y?[G.x,G.y]:_??[null,null];if(ee&&U){const le=G?.zoom||H||e.viewport.zoom;return uo(()=>o.value.viewportInitialized).toBe(!0).then(()=>{o.value.setViewport({x:ee,y:U,zoom:le}).then(()=>{f(!0)})})}else f(!0)}),updateNodeInternals:i,viewportHelper:o,$reset:()=>{const d=Rr();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const f=Tt.translate(d.defaultViewport.x??0,d.defaultViewport.y??0).scale(mt(d.defaultViewport.zoom??1,d.minZoom,d.maxZoom)),g=e.viewportRef.getBoundingClientRect(),b=[[0,0],[g.width,g.height]],_=e.d3Zoom.constrain()(f,b,d.translateExtent);e.d3Zoom.transform(e.d3Selection,_)}se(d)},$destroy:()=>{}}}const pd=["data-id","data-handleid","data-nodeid","data-handlepos"],gd={name:"Handle",compatConfig:{MODE:3}},Ye=me({...gd,props:{id:{default:null},type:{},position:{default:()=>K.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=nl(e,["position","connectable","connectableStart","connectableEnd","id"]),o=xe(()=>n.type??"source"),i=xe(()=>n.isValidConnection??null),{id:r,connectionStartHandle:l,connectionClickStartHandle:a,connectionEndHandle:s,vueFlowRef:u,nodesConnectable:c,noDragClassName:h,noPanClassName:p}=Ne(),{id:v,node:k,nodeEl:w,connectedEdges:x}=Br(),$=Ee(),I=xe(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),m=xe(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),C=xe(()=>{var D,E,Q,y,M,S;return((D=l.value)==null?void 0:D.nodeId)===v&&((E=l.value)==null?void 0:E.id)===e.id&&((Q=l.value)==null?void 0:Q.type)===o.value||((y=s.value)==null?void 0:y.nodeId)===v&&((M=s.value)==null?void 0:M.id)===e.id&&((S=s.value)==null?void 0:S.type)===o.value}),z=xe(()=>{var D,E,Q;return((D=a.value)==null?void 0:D.nodeId)===v&&((E=a.value)==null?void 0:E.id)===e.id&&((Q=a.value)==null?void 0:Q.type)===o.value}),{handlePointerDown:Y,handleClick:B}=zr({nodeId:v,handleId:e.id,isValidConnection:i,type:o}),R=ie(()=>typeof e.connectable=="string"&&e.connectable==="single"?!x.value.some(D=>{const E=D[`${o.value}Handle`];return D[o.value]!==v?!1:E?E===e.id:!0}):typeof e.connectable=="number"?x.value.filter(D=>{const E=D[`${o.value}Handle`];return D[o.value]!==v?!1:E?E===e.id:!0}).length{var D;if(!k.dimensions.width||!k.dimensions.height)return;const E=(D=k.handleBounds[o.value])==null?void 0:D.find(L=>L.id===e.id);if(!u.value||E)return;const Q=u.value.querySelector(".vue-flow__transformationpane");if(!w.value||!$.value||!Q||!e.id)return;const y=w.value.getBoundingClientRect(),M=$.value.getBoundingClientRect(),S=window.getComputedStyle(Q),{m22:T}=new window.DOMMatrixReadOnly(S.transform),A={id:e.id,position:e.position,x:(M.left-y.left)/T,y:(M.top-y.top)/T,type:o.value,nodeId:v,...Ln($.value)};k.handleBounds[o.value]=[...k.handleBounds[o.value]??[],A]});function j(D){const E=Oo(D);R.value&&I.value&&(E&&D.button===0||!E)&&Y(D)}function P(D){!v||!a.value&&!I.value||R.value&&B(D)}return t({handleClick:B,handlePointerDown:Y,onClick:P,onPointerDown:j}),(D,E)=>(O(),ne("div",{ref_key:"handle",ref:$,"data-id":`${V(r)}-${V(v)}-${e.id}-${o.value}`,"data-handleid":e.id,"data-nodeid":V(v),"data-handlepos":D.position,class:rt(["vue-flow__handle",[`vue-flow__handle-${D.position}`,`vue-flow__handle-${e.id}`,V(h),V(p),o.value,{connectable:R.value,connecting:z.value,connectablestart:I.value,connectableend:m.value,connectionindicator:R.value&&(I.value&&!C.value||m.value&&C.value)}]]),onMousedown:j,onTouchstartPassive:j,onClick:P},[ke(D.$slots,"default",{id:D.id})],42,pd))}}),Gn=function({sourcePosition:e=K.Bottom,targetPosition:t=K.Top,label:n,connectable:o=!0,isValidTargetPos:i,isValidSourcePos:r,data:l}){const a=l.label??n;return[be(Ye,{type:"target",position:t,connectable:o,isValidConnection:i}),typeof a!="string"&&a?be(a):be(Te,[a]),be(Ye,{type:"source",position:e,connectable:o,isValidConnection:r})]};Gn.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"];Gn.inheritAttrs=!1;Gn.compatConfig={MODE:3};const vd=Gn,Wn=function({targetPosition:e=K.Top,label:t,connectable:n=!0,isValidTargetPos:o,data:i}){const r=i.label??t;return[be(Ye,{type:"target",position:e,connectable:n,isValidConnection:o}),typeof r!="string"&&r?be(r):be(Te,[r])]};Wn.props=["targetPosition","label","isValidTargetPos","connectable","data"];Wn.inheritAttrs=!1;Wn.compatConfig={MODE:3};const md=Wn,Un=function({sourcePosition:e=K.Bottom,label:t,connectable:n=!0,isValidSourcePos:o,data:i}){const r=i.label??t;return[typeof r!="string"&&r?be(r):be(Te,[r]),be(Ye,{type:"source",position:e,connectable:n,isValidConnection:o})]};Un.props=["sourcePosition","label","isValidSourcePos","connectable","data"];Un.inheritAttrs=!1;Un.compatConfig={MODE:3};const yd=Un,wd=["transform"],_d=["width","height","x","y","rx","ry"],bd=["y"],xd={name:"EdgeText",compatConfig:{MODE:3}},Ed=me({...xd,props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(e){const t=Ee({x:0,y:0,width:0,height:0}),n=Ee(null),o=ie(()=>`translate(${e.x-t.value.width/2} ${e.y-t.value.height/2})`);ut(i),ye([()=>e.x,()=>e.y,n,()=>e.label],i);function i(){if(!n.value)return;const r=n.value.getBBox();(r.width!==t.value.width||r.height!==t.value.height)&&(t.value=r)}return(r,l)=>(O(),ne("g",{transform:o.value,class:"vue-flow__edge-textwrapper"},[r.labelShowBg?(O(),ne("rect",{key:0,class:"vue-flow__edge-textbg",width:`${t.value.width+2*r.labelBgPadding[0]}px`,height:`${t.value.height+2*r.labelBgPadding[1]}px`,x:-r.labelBgPadding[0],y:-r.labelBgPadding[1],style:Oe(r.labelBgStyle),rx:r.labelBgBorderRadius,ry:r.labelBgBorderRadius},null,12,_d)):Se("",!0),X("text",Vi(r.$attrs,{ref_key:"el",ref:n,class:"vue-flow__edge-text",y:t.value.height/2,dy:"0.3em",style:r.labelStyle}),[ke(r.$slots,"default",{},()=>[typeof r.label!="string"?(O(),ve(xt(r.label),{key:0})):(O(),ne(Te,{key:1},[Pe(Ce(r.label),1)],64))])],16,bd)],8,wd))}}),Sd=["id","d","marker-end","marker-start"],Nd=["d","stroke-width"],kd={name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3}},Xn=me({...kd,props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(e,{expose:t}){const n=Ee(null),o=Ee(null),i=Ee(null),r=cl();return t({pathEl:n,interactionEl:o,labelEl:i}),(l,a)=>(O(),ne(Te,null,[X("path",Vi(V(r),{id:l.id,ref_key:"pathEl",ref:n,d:l.path,class:"vue-flow__edge-path","marker-end":l.markerEnd,"marker-start":l.markerStart}),null,16,Sd),l.interactionWidth?(O(),ne("path",{key:0,ref_key:"interactionEl",ref:o,fill:"none",d:l.path,"stroke-width":l.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,Nd)):Se("",!0),l.label&&l.labelX&&l.labelY?(O(),ve(Ed,{key:1,ref_key:"labelEl",ref:i,x:l.labelX,y:l.labelY,label:l.label,"label-show-bg":l.labelShowBg,"label-bg-style":l.labelBgStyle,"label-bg-padding":l.labelBgPadding,"label-bg-border-radius":l.labelBgBorderRadius,"label-style":l.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):Se("",!0)],64))}});function Hr({sourceX:e,sourceY:t,targetX:n,targetY:o}){const i=Math.abs(n-e)/2,r=n=0?.5*e:t*25*Math.sqrt(-e)}function Ei({pos:e,x1:t,y1:n,x2:o,y2:i,c:r}){let l,a;switch(e){case K.Left:l=t-gn(t-o,r),a=n;break;case K.Right:l=t+gn(o-t,r),a=n;break;case K.Top:l=t,a=n-gn(n-i,r);break;case K.Bottom:l=t,a=n+gn(i-n,r);break}return[l,a]}function Fr(e){const{sourceX:t,sourceY:n,sourcePosition:o=K.Bottom,targetX:i,targetY:r,targetPosition:l=K.Top,curvature:a=.25}=e,[s,u]=Ei({pos:o,x1:t,y1:n,x2:i,y2:r,c:a}),[c,h]=Ei({pos:l,x1:i,y1:r,x2:t,y2:n,c:a}),[p,v,k,w]=Lr({sourceX:t,sourceY:n,targetX:i,targetY:r,sourceControlX:s,sourceControlY:u,targetControlX:c,targetControlY:h});return[`M${t},${n} C${s},${u} ${c},${h} ${i},${r}`,p,v,k,w]}function Si({pos:e,x1:t,y1:n,x2:o,y2:i}){let r,l;switch(e){case K.Left:case K.Right:r=.5*(t+o),l=n;break;case K.Top:case K.Bottom:r=t,l=.5*(n+i);break}return[r,l]}function Yr(e){const{sourceX:t,sourceY:n,sourcePosition:o=K.Bottom,targetX:i,targetY:r,targetPosition:l=K.Top}=e,[a,s]=Si({pos:o,x1:t,y1:n,x2:i,y2:r}),[u,c]=Si({pos:l,x1:i,y1:r,x2:t,y2:n}),[h,p,v,k]=Lr({sourceX:t,sourceY:n,targetX:i,targetY:r,sourceControlX:a,sourceControlY:s,targetControlX:u,targetControlY:c});return[`M${t},${n} C${a},${s} ${u},${c} ${i},${r}`,h,p,v,k]}const Ni={[K.Left]:{x:-1,y:0},[K.Right]:{x:1,y:0},[K.Top]:{x:0,y:-1},[K.Bottom]:{x:0,y:1}};function Cd({source:e,sourcePosition:t=K.Bottom,target:n}){return t===K.Left||t===K.Right?e.xe[h]?-1:1)*y:$[h]=(u[h]>n[h]?-1:1)*y}}if(t!==o){const Q=h==="x"?"y":"x",y=l[h]===a[Q],M=s[Q]>u[Q],S=s[Q]=E?(k=(j.x+P.x)/2,w=v[0].y):(k=v[0].x,w=(j.y+P.y)/2)}return[[e,{x:s.x+x.x,y:s.y+x.y},...v,{x:u.x+$.x,y:u.y+$.y},n],k,w,C,z]}function Id(e,t,n,o){const i=Math.min(ki(e,t)/2,ki(t,n)/2,o),{x:r,y:l}=t;if(e.x===r&&r===n.x||e.y===l&&l===n.y)return`L${r} ${l}`;if(e.y===l){const u=e.x{let C;return m>0&&m{const[n,o,i]=Md(e);return be(Xn,{path:n,labelX:o,labelY:i,...t,...e})}}}),Dd=Td,Pd=me({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(e,{attrs:t}){return()=>{const[n,o,i]=Eo({...e,sourcePosition:e.sourcePosition??K.Bottom,targetPosition:e.targetPosition??K.Top});return be(Xn,{path:n,labelX:o,labelY:i,...t,...e})}}}),Gr=Pd,Ad=me({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(e,{attrs:t}){return()=>be(Gr,{...e,...t,borderRadius:0})}}),Od=Ad,zd=me({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:t}){return()=>{const[n,o,i]=Fr({...e,sourcePosition:e.sourcePosition??K.Bottom,targetPosition:e.targetPosition??K.Top});return be(Xn,{path:n,labelX:o,labelY:i,...t,...e})}}}),Bd=zd,Vd=me({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:t}){return()=>{const[n,o,i]=Yr({...e,sourcePosition:e.sourcePosition??K.Bottom,targetPosition:e.targetPosition??K.Top});return be(Xn,{path:n,labelX:o,labelY:i,...t,...e})}}}),Rd=Vd,Hd={input:yd,default:vd,output:md},Ld={default:Bd,straight:Dd,step:Od,smoothstep:Gr,simplebezier:Rd};function Fd(e,t,n){const o=ie(()=>w=>t.value.get(w)),i=ie(()=>w=>n.value.get(w)),r=ie(()=>{const w={...Ld,...e.edgeTypes},x=Object.keys(w);for(const $ of e.edges)$.type&&!x.includes($.type)&&(w[$.type]=$.type);return w}),l=ie(()=>{const w={...Hd,...e.nodeTypes},x=Object.keys(w);for(const $ of e.nodes)$.type&&!x.includes($.type)&&(w[$.type]=$.type);return w}),a=ie(()=>e.onlyRenderVisibleElements?Nr(e.nodes,{x:0,y:0,width:e.dimensions.width,height:e.dimensions.height},e.viewport,!0):e.nodes),s=ie(()=>{if(e.onlyRenderVisibleElements){const w=[];for(const x of e.edges){const $=t.value.get(x.source),I=t.value.get(x.target);Vc({sourcePos:$.computedPosition||{x:0,y:0},targetPos:I.computedPosition||{x:0,y:0},sourceWidth:$.dimensions.width,sourceHeight:$.dimensions.height,targetWidth:I.dimensions.width,targetHeight:I.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&w.push(x)}return w}return e.edges}),u=ie(()=>[...a.value,...s.value]),c=ie(()=>{const w=[];for(const x of e.nodes)x.selected&&w.push(x);return w}),h=ie(()=>{const w=[];for(const x of e.edges)x.selected&&w.push(x);return w}),p=ie(()=>[...c.value,...h.value]),v=ie(()=>{const w=[];for(const x of e.nodes)x.dimensions.width&&x.dimensions.height&&x.handleBounds!==void 0&&w.push(x);return w}),k=ie(()=>a.value.length>0&&v.value.length===a.value.length);return{getNode:o,getEdge:i,getElements:u,getEdgeTypes:r,getNodeTypes:l,getEdges:s,getNodes:a,getSelectedElements:p,getSelectedNodes:c,getSelectedEdges:h,getNodesInitialized:v,areNodesInitialized:k}}class dt{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var t;const n=(t=At())==null?void 0:t.appContext.app,o=n?.config.globalProperties.$vueFlowStorage??dt.instance;return dt.instance=o??new dt,n&&(n.config.globalProperties.$vueFlowStorage=dt.instance),dt.instance}set(t,n){return this.flows.set(t,n)}get(t){return this.flows.get(t)}remove(t){return this.flows.delete(t)}create(t,n){const o=Rr(),i=zi(o),r={};for(const[p,v]of Object.entries(i.hooks)){const k=`on${p.charAt(0).toUpperCase()+p.slice(1)}`;r[k]=v.on}const l={};for(const[p,v]of Object.entries(i.hooks))l[p]=v.trigger;const a=ie(()=>{const p=new Map;for(const v of i.nodes)p.set(v.id,v);return p}),s=ie(()=>{const p=new Map;for(const v of i.edges)p.set(v.id,v);return p}),u=Fd(i,a,s),c=hd(i,a,s);c.setState({...i,...n});const h={...r,...u,...c,...Pl(i),nodeLookup:a,edgeLookup:s,emits:l,id:t,vueFlowVersion:"1.48.2",$destroy:()=>{this.remove(t)}};return this.set(t,h),h}getId(){return`vue-flow-${this.currentId++}`}}function Ne(e){const t=dt.getInstance(),n=Ai(),o=typeof e=="object",i=o?e:{id:e},r=i.id,l=r??n?.vueFlowId;let a;if(n){const s=Pt(xi,null);typeof s<"u"&&s!==null&&(!l||s.id===l)&&(a=s)}if(a||l&&(a=t.get(l)),!a||l&&a.id!==l){const s=r??t.getId(),u=t.create(s,i);a=u,(n??Pi(!0)).run(()=>{ye(u.applyDefault,(h,p,v)=>{const k=x=>{u.applyNodeChanges(x)},w=x=>{u.applyEdgeChanges(x)};h?(u.onNodesChange(k),u.onEdgesChange(w)):(u.hooks.value.nodesChange.off(k),u.hooks.value.edgesChange.off(w)),v(()=>{u.hooks.value.nodesChange.off(k),u.hooks.value.edgesChange.off(w)})},{immediate:!0}),Zt(()=>{if(a){const h=t.get(a.id);h?h.$destroy():rn(`No store instance found for id ${a.id} in storage.`)}})})}else o&&a.setState(i);if(n&&($t(xi,a),n.vueFlowId=a.id),o){const s=At();s?.type.name!=="VueFlow"&&a.emits.error(new De(Me.USEVUEFLOW_OPTIONS))}return a}function Yd(e){const{emits:t,dimensions:n}=Ne();let o;ut(()=>{const i=()=>{var r,l;if(!e.value||!(((l=(r=e.value).checkVisibility)==null?void 0:l.call(r))??!0))return;const a=Ln(e.value);(a.width===0||a.height===0)&&t.error(new De(Me.MISSING_VIEWPORT_DIMENSIONS)),n.value={width:a.width||500,height:a.height||500}};i(),window.addEventListener("resize",i),e.value&&(o=new ResizeObserver(()=>i()),o.observe(e.value)),Oi(()=>{window.removeEventListener("resize",i),o&&e.value&&o.unobserve(e.value)})})}const Gd={name:"UserSelection",compatConfig:{MODE:3}},Wd=me({...Gd,props:{userSelectionRect:{}},setup(e){return(t,n)=>(O(),ne("div",{class:"vue-flow__selection vue-flow__container",style:Oe({width:`${t.userSelectionRect.width}px`,height:`${t.userSelectionRect.height}px`,transform:`translate(${t.userSelectionRect.x}px, ${t.userSelectionRect.y}px)`})},null,4))}}),Ud=["tabIndex"],Xd={name:"NodesSelection",compatConfig:{MODE:3}},Zd=me({...Xd,setup(e){const{emits:t,viewport:n,getSelectedNodes:o,noPanClassName:i,disableKeyboardA11y:r,userSelectionActive:l}=Ne(),a=Vr(),s=Ee(null),u=Or({el:s,onStart(k){t.selectionDragStart(k),t.nodeDragStart(k)},onDrag(k){t.selectionDrag(k),t.nodeDrag(k)},onStop(k){t.selectionDragStop(k),t.nodeDragStop(k)}});ut(()=>{var k;r.value||(k=s.value)==null||k.focus({preventScroll:!0})});const c=ie(()=>Sr(o.value)),h=ie(()=>({width:`${c.value.width}px`,height:`${c.value.height}px`,top:`${c.value.y}px`,left:`${c.value.x}px`}));function p(k){t.selectionContextMenu({event:k,nodes:o.value})}function v(k){r.value||kt[k.key]&&(k.preventDefault(),a({x:kt[k.key].x,y:kt[k.key].y},k.shiftKey))}return(k,w)=>!V(l)&&c.value.width&&c.value.height?(O(),ne("div",{key:0,class:rt(["vue-flow__nodesselection vue-flow__container",V(i)]),style:Oe({transform:`translate(${V(n).x}px,${V(n).y}px) scale(${V(n).zoom})`})},[X("div",{ref_key:"el",ref:s,class:rt([{dragging:V(u)},"vue-flow__nodesselection-rect"]),style:Oe(h.value),tabIndex:V(r)?void 0:-1,onContextmenu:p,onKeydown:v},null,46,Ud)],6)):Se("",!0)}});function qd(e,t){return{x:e.clientX-t.left,y:e.clientY-t.top}}const Kd={name:"Pane",compatConfig:{MODE:3}},Jd=me({...Kd,props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(e){const{vueFlowRef:t,nodes:n,viewport:o,emits:i,userSelectionActive:r,removeSelectedElements:l,userSelectionRect:a,elementsSelectable:s,nodesSelectionActive:u,getSelectedEdges:c,getSelectedNodes:h,removeNodes:p,removeEdges:v,selectionMode:k,deleteKeyCode:w,multiSelectionKeyCode:x,multiSelectionActive:$,edgeLookup:I,nodeLookup:m,connectionLookup:C,defaultEdgeOptions:z,connectionStartHandle:Y,panOnDrag:B}=Ne(),R=it(null),j=it(new Set),P=it(new Set),D=it(null),E=xe(()=>s.value&&(e.isSelecting||r.value)),Q=xe(()=>Y.value!==null);let y=!1,M=!1;const S=Xt(w,{actInsideInputWithModifier:!1}),T=Xt(x);ye(S,Z=>{Z&&(p(h.value),v(c.value),u.value=!1)}),ye(T,Z=>{$.value=Z});function A(Z,q){return te=>{te.target===q&&Z?.(te)}}function L(Z){if(y||Q.value){y=!1;return}i.paneClick(Z),l(),u.value=!1}function F(Z){var q;if(Array.isArray(B.value)&&((q=B.value)!=null&&q.includes(2))){Z.preventDefault();return}i.paneContextMenu(Z)}function J(Z){i.paneScroll(Z)}function oe(Z){var q,te,he;if(D.value=((q=t.value)==null?void 0:q.getBoundingClientRect())??null,!s.value||!e.isSelecting||Z.button!==0||Z.target!==R.value||!D.value)return;(he=(te=Z.target)==null?void 0:te.setPointerCapture)==null||he.call(te,Z.pointerId);const{x:we,y:se}=qd(Z,D.value);M=!0,y=!1,l(),a.value={width:0,height:0,startX:we,startY:se,x:we,y:se},i.selectionStart(Z)}function ae(Z){var q;if(!D.value||!a.value)return;y=!0;const{x:te,y:he}=Ge(Z,D.value),{startX:we=0,startY:se=0}=a.value,pe={startX:we,startY:se,x:tef.id)),P.value=new Set;const d=((q=z.value)==null?void 0:q.selectable)??!0;for(const f of j.value){const g=C.value.get(f);if(g)for(const{edgeId:b}of g.values()){const _=I.value.get(b);_&&(_.selectable??d)&&P.value.add(b)}}if(!bi(re,j.value)){const f=ot(m.value,j.value,!0);i.nodesChange(f)}if(!bi(N,P.value)){const f=ot(I.value,P.value);i.edgesChange(f)}a.value=pe,r.value=!0,u.value=!1}function ce(Z){var q;Z.button!==0||!M||((q=Z.target)==null||q.releasePointerCapture(Z.pointerId),!r.value&&a.value&&Z.target===R.value&&L(Z),r.value=!1,a.value=null,u.value=j.value.size>0,i.selectionEnd(Z),e.selectionKeyPressed&&(y=!1),M=!1)}return(Z,q)=>(O(),ne("div",{ref_key:"container",ref:R,class:rt(["vue-flow__pane vue-flow__container",{selection:Z.isSelecting}]),onClick:q[0]||(q[0]=te=>E.value?void 0:A(L,R.value)(te)),onContextmenu:q[1]||(q[1]=te=>A(F,R.value)(te)),onWheelPassive:q[2]||(q[2]=te=>A(J,R.value)(te)),onPointerenter:q[3]||(q[3]=te=>E.value?void 0:V(i).paneMouseEnter(te)),onPointerdown:q[4]||(q[4]=te=>E.value?oe(te):V(i).paneMouseMove(te)),onPointermove:q[5]||(q[5]=te=>E.value?ae(te):V(i).paneMouseMove(te)),onPointerup:q[6]||(q[6]=te=>E.value?ce(te):void 0),onPointerleave:q[7]||(q[7]=te=>V(i).paneMouseLeave(te))},[ke(Z.$slots,"default"),V(r)&&V(a)?(O(),ve(Wd,{key:0,"user-selection-rect":V(a)},null,8,["user-selection-rect"])):Se("",!0),V(u)&&V(h).length?(O(),ve(Zd,{key:1})):Se("",!0)],34))}}),jd={name:"Transform",compatConfig:{MODE:3}},Qd=me({...jd,setup(e){const{viewport:t,fitViewOnInit:n,fitViewOnInitDone:o}=Ne(),i=ie(()=>n.value?!o.value:!1),r=ie(()=>`translate(${t.value.x}px,${t.value.y}px) scale(${t.value.zoom})`);return(l,a)=>(O(),ne("div",{class:"vue-flow__transformationpane vue-flow__container",style:Oe({transform:r.value,opacity:i.value?0:void 0})},[ke(l.$slots,"default")],4))}}),ef={name:"Viewport",compatConfig:{MODE:3}},tf=me({...ef,setup(e){const{minZoom:t,maxZoom:n,defaultViewport:o,translateExtent:i,zoomActivationKeyCode:r,selectionKeyCode:l,panActivationKeyCode:a,panOnScroll:s,panOnScrollMode:u,panOnScrollSpeed:c,panOnDrag:h,zoomOnDoubleClick:p,zoomOnPinch:v,zoomOnScroll:k,preventScrolling:w,noWheelClassName:x,noPanClassName:$,emits:I,connectionStartHandle:m,userSelectionActive:C,paneDragging:z,d3Zoom:Y,d3Selection:B,d3ZoomHandler:R,viewport:j,viewportRef:P,paneClickDistance:D}=Ne();Yd(P);const E=it(!1),Q=it(!1);let y=null,M=!1,S=0,T={x:0,y:0,zoom:0};const A=Xt(a),L=Xt(l),F=Xt(r),J=xe(()=>(!L.value||L.value&&l.value===!0)&&(A.value||h.value)),oe=xe(()=>A.value||s.value),ae=xe(()=>l.value===!0&&J.value!==!0),ce=xe(()=>L.value&&l.value!==!0||C.value||ae.value),Z=xe(()=>m.value!==null);ut(()=>{if(!P.value){rn("Viewport element is missing");return}const se=P.value,pe=se.getBoundingClientRect(),re=mc().clickDistance(D.value).scaleExtent([t.value,n.value]).translateExtent(i.value),N=Be(se).call(re),d=N.on("wheel.zoom"),f=Tt.translate(o.value.x??0,o.value.y??0).scale(mt(o.value.zoom??1,t.value,n.value)),g=[[0,0],[pe.width,pe.height]],b=re.constrain()(f,g,i.value);re.transform(N,b),re.wheelDelta(ai),Y.value=re,B.value=N,R.value=d,j.value={x:b.x,y:b.y,zoom:b.k},re.on("start",_=>{var H;if(!_.sourceEvent)return null;S=_.sourceEvent.button,E.value=!0;const G=he(_.transform);((H=_.sourceEvent)==null?void 0:H.type)==="mousedown"&&(z.value=!0),T=G,I.viewportChangeStart(G),I.moveStart({event:_,flowTransform:G})}),re.on("end",_=>{if(!_.sourceEvent)return null;if(E.value=!1,z.value=!1,q(J.value,S??0)&&!M&&I.paneContextMenu(_.sourceEvent),M=!1,te(T,_.transform)){const H=he(_.transform);T=H,I.viewportChangeEnd(H),I.moveEnd({event:_,flowTransform:H})}}),re.filter(_=>{var H;const G=F.value||k.value,ee=v.value&&_.ctrlKey,U=_.button,le=_.type==="wheel";if(U===1&&_.type==="mousedown"&&(we(_,"vue-flow__node")||we(_,"vue-flow__edge")))return!0;if(!J.value&&!G&&!oe.value&&!p.value&&!v.value||C.value||Z.value&&!le||!p.value&&_.type==="dblclick"||we(_,x.value)&&le||we(_,$.value)&&(!le||oe.value&&le&&!F.value)||!v.value&&_.ctrlKey&&le||!G&&!oe.value&&!ee&&le)return!1;if(!v&&_.type==="touchstart"&&((H=_.touches)==null?void 0:H.length)>1)return _.preventDefault(),!1;if(!J.value&&(_.type==="mousedown"||_.type==="touchstart")||ae.value&&Array.isArray(h.value)&&h.value.includes(0)&&U===0||Array.isArray(h.value)&&!h.value.includes(U)&&(_.type==="mousedown"||_.type==="touchstart"))return!1;const de=Array.isArray(h.value)&&h.value.includes(U)||l.value===!0&&Array.isArray(h.value)&&!h.value.includes(0)||!U||U<=1;return(!_.ctrlKey||A.value||le)&&de}),ye([C,J],()=>{C.value&&!E.value?re.on("zoom",null):C.value||re.on("zoom",_=>{j.value={x:_.transform.x,y:_.transform.y,zoom:_.transform.k};const H=he(_.transform);M=q(J.value,S??0),I.viewportChange(H),I.move({event:_,flowTransform:H})})},{immediate:!0}),ye([C,oe,u,F,v,w,x],()=>{oe.value&&!F.value&&!C.value?N.on("wheel.zoom",_=>{if(we(_,x.value))return!1;const H=F.value||k.value,G=v.value&&_.ctrlKey;if(!(!w.value||oe.value||H||G))return!1;_.preventDefault(),_.stopImmediatePropagation();const U=N.property("__zoom").k||1,le=Pn();if(!A.value&&_.ctrlKey&&v.value&&le){const Qr=Le(_),el=ai(_),tl=U*2**el;re.scaleTo(N,tl,Qr,_);return}const de=_.deltaMode===1?20:1;let _e=u.value===Ut.Vertical?0:_.deltaX*de,et=u.value===Ut.Horizontal?0:_.deltaY*de;!le&&_.shiftKey&&u.value!==Ut.Vertical&&!_e&&et&&(_e=et,et=0),re.translateBy(N,-(_e/U)*c.value,-(et/U)*c.value);const He=he(N.property("__zoom"));y&&clearTimeout(y),Q.value?(I.move({event:_,flowTransform:He}),I.viewportChange(He),y=setTimeout(()=>{I.moveEnd({event:_,flowTransform:He}),I.viewportChangeEnd(He),Q.value=!1},150)):(Q.value=!0,I.moveStart({event:_,flowTransform:He}),I.viewportChangeStart(He))},{passive:!1}):typeof d<"u"&&N.on("wheel.zoom",function(_,H){const G=!w.value&&_.type==="wheel"&&!_.ctrlKey,ee=F.value||k.value,U=v.value&&_.ctrlKey;if(!ee&&!s.value&&!U&&_.type==="wheel"||G||we(_,x.value))return null;_.preventDefault(),d.call(this,_,H)},{passive:!1})},{immediate:!0})});function q(se,pe){return pe===2&&Array.isArray(se)&&se.includes(2)}function te(se,pe){return se.x!==pe.x&&!Number.isNaN(pe.x)||se.y!==pe.y&&!Number.isNaN(pe.y)||se.zoom!==pe.k&&!Number.isNaN(pe.k)}function he(se){return{x:se.x,y:se.y,zoom:se.k}}function we(se,pe){return se.target.closest(`.${pe}`)}return(se,pe)=>(O(),ne("div",{ref_key:"viewportRef",ref:P,class:"vue-flow__viewport vue-flow__container"},[ue(Jd,{"is-selecting":ce.value,"selection-key-pressed":V(L),class:rt({connecting:Z.value,dragging:V(z),draggable:V(h)===!0||Array.isArray(V(h))&&V(h).includes(0)})},{default:ge(()=>[ue(Qd,null,{default:ge(()=>[ke(se.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),nf=["id"],of=["id"],rf=["id"],lf={name:"A11yDescriptions",compatConfig:{MODE:3}},af=me({...lf,setup(e){const{id:t,disableKeyboardA11y:n,ariaLiveMessage:o}=Ne();return(i,r)=>(O(),ne(Te,null,[X("div",{id:`${V(vr)}-${V(t)}`,style:{display:"none"}}," Press enter or space to select a node. "+Ce(V(n)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,nf),X("div",{id:`${V(mr)}-${V(t)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,of),V(n)?Se("",!0):(O(),ne("div",{key:0,id:`${V(Ec)}-${V(t)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},Ce(V(o)),9,rf))],64))}});function sf(){const e=Ne();ye(()=>e.viewportHelper.value.viewportInitialized,t=>{t&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function uf(e,t,n){return n===K.Left?e-t:n===K.Right?e+t:e}function cf(e,t,n){return n===K.Top?e-t:n===K.Bottom?e+t:e}const zo=function({radius:e=10,centerX:t=0,centerY:n=0,position:o=K.Top,type:i}){return be("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${i}`,cx:uf(t,e,o),cy:cf(n,e,o),r:e,stroke:"transparent",fill:"transparent"})};zo.props=["radius","centerX","centerY","position","type"];zo.compatConfig={MODE:3};const Ci=zo,df=me({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(e){const{id:t,addSelectedEdges:n,connectionMode:o,edgeUpdaterRadius:i,emits:r,nodesSelectionActive:l,noPanClassName:a,getEdgeTypes:s,removeSelectedEdges:u,findEdge:c,findNode:h,isValidConnection:p,multiSelectionActive:v,disableKeyboardA11y:k,elementsSelectable:w,edgesUpdatable:x,edgesFocusable:$,hooks:I}=Ne(),m=ie(()=>c(e.id)),{emit:C,on:z}=ed(m.value,r),Y=Pt(Yn),B=At(),R=Ee(!1),j=Ee(!1),P=Ee(""),D=Ee(null),E=Ee("source"),Q=Ee(null),y=xe(()=>typeof m.value.selectable>"u"?w.value:m.value.selectable),M=xe(()=>typeof m.value.updatable>"u"?x.value:m.value.updatable),S=xe(()=>typeof m.value.focusable>"u"?$.value:m.value.focusable);$t(Jc,e.id),$t(jc,Q);const T=ie(()=>m.value.class instanceof Function?m.value.class(m.value):m.value.class),A=ie(()=>m.value.style instanceof Function?m.value.style(m.value):m.value.style),L=ie(()=>{const f=m.value.type||"default",g=Y?.[`edge-${f}`];if(g)return g;let b=m.value.template??s.value[f];if(typeof b=="string"&&B){const _=Object.keys(B.appContext.components);_&&_.includes(f)&&(b=Bi(f,!1))}return b&&typeof b!="string"?b:(r.error(new De(Me.EDGE_TYPE_MISSING,b)),!1)}),{handlePointerDown:F}=zr({nodeId:P,handleId:D,type:E,isValidConnection:p,edgeUpdaterType:E,onEdgeUpdate:ae,onEdgeUpdateEnd:ce});return()=>{const f=h(m.value.source),g=h(m.value.target),b="pathOptions"in m.value?m.value.pathOptions:{};if(!f&&!g)return r.error(new De(Me.EDGE_SOURCE_TARGET_MISSING,m.value.id,m.value.source,m.value.target)),null;if(!f)return r.error(new De(Me.EDGE_SOURCE_MISSING,m.value.id,m.value.source)),null;if(!g)return r.error(new De(Me.EDGE_TARGET_MISSING,m.value.id,m.value.target)),null;if(!m.value||m.value.hidden||f.hidden||g.hidden)return null;let _;o.value===lt.Strict?_=f.handleBounds.source:_=[...f.handleBounds.source||[],...f.handleBounds.target||[]];const H=gi(_,m.value.sourceHandle);let G;o.value===lt.Strict?G=g.handleBounds.target:G=[...g.handleBounds.target||[],...g.handleBounds.source||[]];const ee=gi(G,m.value.targetHandle),U=H?.position||K.Bottom,le=ee?.position||K.Top,{x:de,y:_e}=Dt(f,H,U),{x:et,y:He}=Dt(g,ee,le);return m.value.sourceX=de,m.value.sourceY=_e,m.value.targetX=et,m.value.targetY=He,be("g",{ref:Q,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${L.value===!1?"default":m.value.type||"default"}`,a.value,T.value,{updating:R.value,selected:m.value.selected,animated:m.value.animated,inactive:!y.value&&!I.value.edgeClick.hasListeners()}],tabIndex:S.value?0:void 0,"aria-label":m.value.ariaLabel===null?void 0:m.value.ariaLabel??`Edge from ${m.value.source} to ${m.value.target}`,"aria-describedby":S.value?`${mr}-${t}`:void 0,"aria-roledescription":"edge",role:S.value?"group":"img",...m.value.domAttributes,onClick:q,onContextmenu:te,onDblclick:he,onMouseenter:we,onMousemove:se,onMouseleave:pe,onKeyDown:S.value?d:void 0},[j.value?null:be(L.value===!1?s.value.default:L.value,{id:e.id,sourceNode:f,targetNode:g,source:m.value.source,target:m.value.target,type:m.value.type,updatable:M.value,selected:m.value.selected,animated:m.value.animated,label:m.value.label,labelStyle:m.value.labelStyle,labelShowBg:m.value.labelShowBg,labelBgStyle:m.value.labelBgStyle,labelBgPadding:m.value.labelBgPadding,labelBgBorderRadius:m.value.labelBgBorderRadius,data:m.value.data,events:{...m.value.events,...z},style:A.value,markerStart:`url('#${tn(m.value.markerStart,t)}')`,markerEnd:`url('#${tn(m.value.markerEnd,t)}')`,sourcePosition:U,targetPosition:le,sourceX:de,sourceY:_e,targetX:et,targetY:He,sourceHandleId:m.value.sourceHandle,targetHandleId:m.value.targetHandle,interactionWidth:m.value.interactionWidth,...b}),[M.value==="source"||M.value===!0?[be("g",{onMousedown:re,onMouseenter:J,onMouseout:oe},be(Ci,{position:U,centerX:de,centerY:_e,radius:i.value,type:"source","data-type":"source"}))]:null,M.value==="target"||M.value===!0?[be("g",{onMousedown:N,onMouseenter:J,onMouseout:oe},be(Ci,{position:le,centerX:et,centerY:He,radius:i.value,type:"target","data-type":"target"}))]:null]])};function J(){R.value=!0}function oe(){R.value=!1}function ae(f,g){C.update({event:f,edge:m.value,connection:g})}function ce(f){C.updateEnd({event:f,edge:m.value}),j.value=!1}function Z(f,g){f.button===0&&(j.value=!0,P.value=g?m.value.target:m.value.source,D.value=(g?m.value.targetHandle:m.value.sourceHandle)??null,E.value=g?"target":"source",C.updateStart({event:f,edge:m.value}),F(f))}function q(f){var g;const b={event:f,edge:m.value};y.value&&(l.value=!1,m.value.selected&&v.value?(u([m.value]),(g=Q.value)==null||g.blur()):n([m.value])),C.click(b)}function te(f){C.contextMenu({event:f,edge:m.value})}function he(f){C.doubleClick({event:f,edge:m.value})}function we(f){C.mouseEnter({event:f,edge:m.value})}function se(f){C.mouseMove({event:f,edge:m.value})}function pe(f){C.mouseLeave({event:f,edge:m.value})}function re(f){Z(f,!0)}function N(f){Z(f,!1)}function d(f){var g;!k.value&&yr.includes(f.key)&&y.value&&(f.key==="Escape"?((g=Q.value)==null||g.blur(),u([c(e.id)])):n([c(e.id)]))}}}),ff=df,hf=me({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var e;const{id:t,connectionMode:n,connectionStartHandle:o,connectionEndHandle:i,connectionPosition:r,connectionLineType:l,connectionLineStyle:a,connectionLineOptions:s,connectionStatus:u,viewport:c,findNode:h}=Ne(),p=(e=Pt(Yn))==null?void 0:e["connection-line"],v=ie(()=>{var I;return h((I=o.value)==null?void 0:I.nodeId)}),k=ie(()=>{var I;return h((I=i.value)==null?void 0:I.nodeId)??null}),w=ie(()=>({x:(r.value.x-c.value.x)/c.value.zoom,y:(r.value.y-c.value.y)/c.value.zoom})),x=ie(()=>s.value.markerStart?`url(#${tn(s.value.markerStart,t)})`:""),$=ie(()=>s.value.markerEnd?`url(#${tn(s.value.markerEnd,t)})`:"");return()=>{var I,m,C;if(!v.value||!o.value)return null;const z=o.value.id,Y=o.value.type,B=v.value.handleBounds;let R=B?.[Y]??[];if(n.value===lt.Loose){const A=B?.[Y==="source"?"target":"source"]??[];R=[...R,...A]}if(!R)return null;const j=(z?R.find(A=>A.id===z):R[0])??null,P=j?.position??K.Top,{x:D,y:E}=Dt(v.value,j,P);let Q=null;k.value&&(n.value===lt.Strict?Q=((I=k.value.handleBounds[Y==="source"?"target":"source"])==null?void 0:I.find(A=>{var L;return A.id===((L=i.value)==null?void 0:L.id)}))||null:Q=((m=[...k.value.handleBounds.source??[],...k.value.handleBounds.target??[]])==null?void 0:m.find(A=>{var L;return A.id===((L=i.value)==null?void 0:L.id)}))||null);const y=((C=i.value)==null?void 0:C.position)??(P?bo[P]:null);if(!P||!y)return null;const M=l.value??s.value.type??ct.Bezier;let S="";const T={sourceX:D,sourceY:E,sourcePosition:P,targetX:w.value.x,targetY:w.value.y,targetPosition:y};return M===ct.Bezier?[S]=Fr(T):M===ct.Step?[S]=Eo({...T,borderRadius:0}):M===ct.SmoothStep?[S]=Eo(T):M===ct.SimpleBezier?[S]=Yr(T):S=`M${D},${E} ${w.value.x},${w.value.y}`,be("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},be("g",{class:"vue-flow__connection"},p?be(p,{sourceX:D,sourceY:E,sourcePosition:P,targetX:w.value.x,targetY:w.value.y,targetPosition:y,sourceNode:v.value,sourceHandle:j,targetNode:k.value,targetHandle:Q,markerEnd:$.value,markerStart:x.value,connectionStatus:u.value}):be("path",{d:S,class:[s.value.class,u.value,"vue-flow__connection-path"],style:{...a.value,...s.value.style},"marker-end":$.value,"marker-start":x.value})))}}}),pf=hf,gf=["id","markerWidth","markerHeight","markerUnits","orient"],vf={name:"MarkerType",compatConfig:{MODE:3}},mf=me({...vf,props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(e){return(t,n)=>(O(),ne("marker",{id:t.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${t.width}`,markerHeight:`${t.height}`,markerUnits:t.markerUnits,orient:t.orient},[t.type===V(wo).ArrowClosed?(O(),ne("polyline",{key:0,style:Oe({stroke:t.color,fill:t.color,strokeWidth:t.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):Se("",!0),t.type===V(wo).Arrow?(O(),ne("polyline",{key:1,style:Oe({stroke:t.color,strokeWidth:t.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):Se("",!0)],8,gf))}}),yf={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},wf={name:"MarkerDefinitions",compatConfig:{MODE:3}},_f=me({...wf,setup(e){const{id:t,edges:n,connectionLineOptions:o,defaultMarkerColor:i}=Ne(),r=ie(()=>{const l=new Set,a=[],s=u=>{if(u){const c=tn(u,t);l.has(c)||(typeof u=="object"?a.push({...u,id:c,color:u.color||i.value}):a.push({id:c,color:i.value,type:u}),l.add(c))}};for(const u of[o.value.markerEnd,o.value.markerStart])s(u);for(const u of n.value)for(const c of[u.markerStart,u.markerEnd])s(c);return a.sort((u,c)=>u.id.localeCompare(c.id))});return(l,a)=>(O(),ne("svg",yf,[X("defs",null,[(O(!0),ne(Te,null,je(r.value,s=>(O(),ve(mf,{id:s.id,key:s.id,type:s.type,color:s.color,width:s.width,height:s.height,markerUnits:s.markerUnits,"stroke-width":s.strokeWidth,orient:s.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),bf={name:"Edges",compatConfig:{MODE:3}},xf=me({...bf,setup(e){const{findNode:t,getEdges:n,elevateEdgesOnSelect:o}=Ne();return(i,r)=>(O(),ne(Te,null,[ue(_f),(O(!0),ne(Te,null,je(V(n),l=>(O(),ne("svg",{key:l.id,class:"vue-flow__edges vue-flow__container",style:Oe({zIndex:V(Rc)(l,V(t),V(o))})},[ue(V(ff),{id:l.id},null,8,["id"])],4))),128)),ue(V(pf))],64))}}),Ef=me({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(e){const{id:t,noPanClassName:n,selectNodesOnDrag:o,nodesSelectionActive:i,multiSelectionActive:r,emits:l,removeSelectedNodes:a,addSelectedNodes:s,updateNodeDimensions:u,onUpdateNodeInternals:c,getNodeTypes:h,nodeExtent:p,elevateNodesOnSelect:v,disableKeyboardA11y:k,ariaLiveMessage:w,snapToGrid:x,snapGrid:$,nodeDragThreshold:I,nodesDraggable:m,elementsSelectable:C,nodesConnectable:z,nodesFocusable:Y,hooks:B}=Ne(),R=Ee(null);$t(Ar,R),$t(Pr,e.id);const j=Pt(Yn),P=At(),D=Vr(),{node:E,parentNode:Q}=Br(e.id),{emit:y,on:M}=id(E,l),S=xe(()=>typeof E.draggable>"u"?m.value:E.draggable),T=xe(()=>typeof E.selectable>"u"?C.value:E.selectable),A=xe(()=>typeof E.connectable>"u"?z.value:E.connectable),L=xe(()=>typeof E.focusable>"u"?Y.value:E.focusable),F=ie(()=>T.value||S.value||B.value.nodeClick.hasListeners()||B.value.nodeDoubleClick.hasListeners()||B.value.nodeMouseEnter.hasListeners()||B.value.nodeMouseMove.hasListeners()||B.value.nodeMouseLeave.hasListeners()),J=xe(()=>!!E.dimensions.width&&!!E.dimensions.height),oe=ie(()=>{const g=E.type||"default",b=j?.[`node-${g}`];if(b)return b;let _=E.template||h.value[g];if(typeof _=="string"&&P){const H=Object.keys(P.appContext.components);H&&H.includes(g)&&(_=Bi(g,!1))}return _&&typeof _!="string"?_:(l.error(new De(Me.NODE_TYPE_MISSING,_)),!1)}),ae=Or({id:e.id,el:R,disabled:()=>!S.value,selectable:T,dragHandle:()=>E.dragHandle,onStart(g){y.dragStart(g)},onDrag(g){y.drag(g)},onStop(g){y.dragStop(g)},onClick(g){d(g)}}),ce=ie(()=>E.class instanceof Function?E.class(E):E.class),Z=ie(()=>{const g=(E.style instanceof Function?E.style(E):E.style)||{},b=E.width instanceof Function?E.width(E):E.width,_=E.height instanceof Function?E.height(E):E.height;return!g.width&&b&&(g.width=typeof b=="string"?b:`${b}px`),!g.height&&_&&(g.height=typeof _=="string"?_:`${_}px`),g}),q=xe(()=>Number(E.zIndex??Z.value.zIndex??0));return c(g=>{(g.includes(e.id)||!g.length)&&he()}),ut(()=>{ye(()=>E.hidden,(g=!1,b,_)=>{!g&&R.value&&(e.resizeObserver.observe(R.value),_(()=>{R.value&&e.resizeObserver.unobserve(R.value)}))},{immediate:!0,flush:"post"})}),ye([()=>E.type,()=>E.sourcePosition,()=>E.targetPosition],()=>{We(()=>{u([{id:e.id,nodeElement:R.value,forceUpdate:!0}])})}),ye([()=>E.position.x,()=>E.position.y,()=>{var g;return(g=Q.value)==null?void 0:g.computedPosition.x},()=>{var g;return(g=Q.value)==null?void 0:g.computedPosition.y},()=>{var g;return(g=Q.value)==null?void 0:g.computedPosition.z},q,()=>E.selected,()=>E.dimensions.height,()=>E.dimensions.width,()=>{var g;return(g=Q.value)==null?void 0:g.dimensions.height},()=>{var g;return(g=Q.value)==null?void 0:g.dimensions.width}],([g,b,_,H,G,ee])=>{const U={x:g,y:b,z:ee+(v.value&&E.selected?1e3:0)};typeof _<"u"&&typeof H<"u"?E.computedPosition=Pc({x:_,y:H,z:G},U):E.computedPosition=U},{flush:"post",immediate:!0}),ye([()=>E.extent,p],([g,b],[_,H])=>{(g!==_||b!==H)&&te()}),E.extent==="parent"||typeof E.extent=="object"&&"range"in E.extent&&E.extent.range==="parent"?uo(()=>J).toBe(!0).then(te):te(),()=>E.hidden?null:be("div",{ref:R,"data-id":E.id,class:["vue-flow__node",`vue-flow__node-${oe.value===!1?"default":E.type||"default"}`,{[n.value]:S.value,dragging:ae?.value,draggable:S.value,selected:E.selected,selectable:T.value,parent:E.isParent},ce.value],style:{visibility:J.value?"visible":"hidden",zIndex:E.computedPosition.z??q.value,transform:`translate(${E.computedPosition.x}px,${E.computedPosition.y}px)`,pointerEvents:F.value?"all":"none",...Z.value},tabIndex:L.value?0:void 0,role:L.value?"group":void 0,"aria-describedby":k.value?void 0:`${vr}-${t}`,"aria-label":E.ariaLabel,"aria-roledescription":"node",...E.domAttributes,onMouseenter:we,onMousemove:se,onMouseleave:pe,onContextmenu:re,onClick:d,onDblclick:N,onKeydown:f},[be(oe.value===!1?h.value.default:oe.value,{id:E.id,type:E.type,data:E.data,events:{...E.events,...M},selected:E.selected,resizing:E.resizing,dragging:ae.value,connectable:A.value,position:E.computedPosition,dimensions:E.dimensions,isValidTargetPos:E.isValidTargetPos,isValidSourcePos:E.isValidSourcePos,parent:E.parentNode,parentNodeId:E.parentNode,zIndex:E.computedPosition.z??q.value,targetPosition:E.targetPosition,sourcePosition:E.sourcePosition,label:E.label,dragHandle:E.dragHandle,onUpdateNodeInternals:he})]);function te(){const g=E.computedPosition,{computedPosition:b,position:_}=Ao(E,x.value?Fn(g,$.value):g,l.error,p.value,Q.value);(E.computedPosition.x!==b.x||E.computedPosition.y!==b.y)&&(E.computedPosition={...E.computedPosition,...b}),(E.position.x!==_.x||E.position.y!==_.y)&&(E.position=_)}function he(){R.value&&u([{id:e.id,nodeElement:R.value,forceUpdate:!0}])}function we(g){ae?.value||y.mouseEnter({event:g,node:E})}function se(g){ae?.value||y.mouseMove({event:g,node:E})}function pe(g){ae?.value||y.mouseLeave({event:g,node:E})}function re(g){return y.contextMenu({event:g,node:E})}function N(g){return y.doubleClick({event:g,node:E})}function d(g){T.value&&(!o.value||!S.value||I.value>0)&&xo(E,r.value,s,a,i,!1,R.value),y.click({event:g,node:E})}function f(g){if(!(_o(g)||k.value))if(yr.includes(g.key)&&T.value){const b=g.key==="Escape";xo(E,r.value,s,a,i,b,R.value)}else S.value&&E.selected&&kt[g.key]&&(g.preventDefault(),w.value=`Moved selected node ${g.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~E.position.x}, y: ${~~E.position.y}`,D({x:kt[g.key].x,y:kt[g.key].y},g.shiftKey))}}}),Sf=Ef;function Nf(e={includeHiddenNodes:!1}){const{nodes:t}=Ne();return ie(()=>{if(t.value.length===0)return!1;for(const n of t.value)if((e.includeHiddenNodes||!n.hidden)&&(n?.handleBounds===void 0||n.dimensions.width===0||n.dimensions.height===0))return!1;return!0})}const kf={class:"vue-flow__nodes vue-flow__container"},Cf={name:"Nodes",compatConfig:{MODE:3}},$f=me({...Cf,setup(e){const{getNodes:t,updateNodeDimensions:n,emits:o}=Ne(),i=Nf(),r=Ee();return ye(i,l=>{l&&We(()=>{o.nodesInitialized(t.value)})},{immediate:!0}),ut(()=>{r.value=new ResizeObserver(l=>{const a=l.map(s=>({id:s.target.getAttribute("data-id"),nodeElement:s.target,forceUpdate:!0}));We(()=>n(a))})}),Oi(()=>{var l;return(l=r.value)==null?void 0:l.disconnect()}),(l,a)=>(O(),ne("div",kf,[r.value?(O(!0),ne(Te,{key:0},je(V(t),(s,u,c,h)=>{const p=[s.id];if(h&&h.key===s.id&&ll(h,p))return h;const v=(O(),ve(V(Sf),{id:s.id,key:s.id,"resize-observer":r.value},null,8,["id","resize-observer"]));return v.memo=p,v},a,0),128)):Se("",!0)]))}});function If(){const{emits:e}=Ne();ut(()=>{if(Dr()){const t=document.querySelector(".vue-flow__pane");t&&window.getComputedStyle(t).zIndex!=="1"&&e.error(new De(Me.MISSING_STYLES))}})}const Mf=X("div",{class:"vue-flow__edge-labels"},null,-1),Tf={name:"VueFlow",compatConfig:{MODE:3}},Df=me({...Tf,props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(e,{expose:t,emit:n}){const o=e,i=ol(),r=Kn(o,"modelValue",n),l=Kn(o,"nodes",n),a=Kn(o,"edges",n),s=Ne(o),u=sd({modelValue:r,nodes:l,edges:a},o,s);return cd(n,s.hooks),sf(),If(),$t(Yn,i),il(u),t(s),(c,h)=>(O(),ne("div",{ref:V(s).vueFlowRef,class:"vue-flow"},[ue(tf,null,{default:ge(()=>[ue(xf),Mf,ue($f),ke(c.$slots,"zoom-pane")]),_:3}),ke(c.$slots,"default"),ue(af)],512))}}),Pf={name:"Panel",compatConfig:{MODE:3}},Af=me({...Pf,props:{position:{}},setup(e){const t=e,{userSelectionActive:n}=Ne(),o=ie(()=>`${t.position}`.split("-"));return(i,r)=>(O(),ne("div",{class:rt(["vue-flow__panel",o.value]),style:Oe({pointerEvents:V(n)?"none":"all"})},[ke(i.$slots,"default")],6))}});var Je=(e=>(e.Lines="lines",e.Dots="dots",e))(Je||{});const Wr=function({dimensions:e,size:t,color:n}){return be("path",{stroke:n,"stroke-width":t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},Ur=function({radius:e,color:t}){return be("circle",{cx:e,cy:e,r:e,fill:t})};Je.Lines+"",Je.Dots+"";const Of={[Je.Dots]:"#81818a",[Je.Lines]:"#eee"},zf=["id","x","y","width","height","patternTransform"],Bf={key:2,height:"100",width:"100"},Vf=["fill"],Rf=["x","y","fill"],Hf={name:"Background",compatConfig:{MODE:3}},Lf=me({...Hf,props:{id:{},variant:{default:()=>Je.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:t,viewport:n}=Ne(),o=ie(()=>{const l=n.value.zoom,[a,s]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[a*l||1,s*l||1],c=e.size*l,[h,p]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset],v=[h*l||1+u[0]/2,p*l||1+u[1]/2];return{scaledGap:u,offset:v,size:c}}),i=xe(()=>`pattern-${t}${e.id?`-${e.id}`:""}`),r=xe(()=>e.color||e.patternColor||Of[e.variant||Je.Dots]);return(l,a)=>(O(),ne("svg",{class:"vue-flow__background vue-flow__container",style:Oe({height:`${l.height>100?100:l.height}%`,width:`${l.width>100?100:l.width}%`})},[ke(l.$slots,"pattern-container",{id:i.value},()=>[X("pattern",{id:i.value,x:V(n).x%o.value.scaledGap[0],y:V(n).y%o.value.scaledGap[1],width:o.value.scaledGap[0],height:o.value.scaledGap[1],patternTransform:`translate(-${o.value.offset[0]},-${o.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[ke(l.$slots,"pattern",{},()=>[l.variant===V(Je).Lines?(O(),ve(V(Wr),{key:0,size:l.lineWidth,color:r.value,dimensions:o.value.scaledGap},null,8,["size","color","dimensions"])):l.variant===V(Je).Dots?(O(),ve(V(Ur),{key:1,color:r.value,radius:o.value.size/2},null,8,["color","radius"])):Se("",!0),l.bgColor?(O(),ne("svg",Bf,[X("rect",{width:"100%",height:"100%",fill:l.bgColor},null,8,Vf)])):Se("",!0)])],8,zf)]),X("rect",{x:l.x,y:l.y,width:"100%",height:"100%",fill:`url(#${i.value})`},null,8,Rf),ke(l.$slots,"default",{id:i.value})],4))}}),Ff={name:"ControlButton",compatConfig:{MODE:3}},Yf=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Gf={type:"button",class:"vue-flow__controls-button"};function Wf(e,t,n,o,i,r){return O(),ne("button",Gf,[ke(e.$slots,"default")])}const vn=Yf(Ff,[["render",Wf]]),Uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Xf=X("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1),Zf=[Xf];function qf(e,t){return O(),ne("svg",Uf,Zf)}const Kf={render:qf},Jf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},jf=X("path",{d:"M0 0h32v4.2H0z"},null,-1),Qf=[jf];function eh(e,t){return O(),ne("svg",Jf,Qf)}const th={render:eh},nh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},oh=X("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1),ih=[oh];function rh(e,t){return O(),ne("svg",nh,ih)}const lh={render:rh},ah={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},sh=X("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1),uh=[sh];function ch(e,t){return O(),ne("svg",ah,uh)}const dh={render:ch},fh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},hh=X("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1),ph=[hh];function gh(e,t){return O(),ne("svg",fh,ph)}const vh={render:gh},mh={name:"Controls",compatConfig:{MODE:3}},yh=me({...mh,props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>gr.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:t}){const{nodesDraggable:n,nodesConnectable:o,elementsSelectable:i,setInteractive:r,zoomIn:l,zoomOut:a,fitView:s,viewport:u,minZoom:c,maxZoom:h}=Ne(),p=xe(()=>n.value||o.value||i.value),v=xe(()=>u.value.zoom<=c.value),k=xe(()=>u.value.zoom>=h.value);function w(){l(),t("zoomIn")}function x(){a(),t("zoomOut")}function $(){s(e.fitViewParams),t("fitView")}function I(){r(!p.value),t("interactionChange",!p.value)}return(m,C)=>(O(),ve(V(Af),{class:"vue-flow__controls",position:m.position},{default:ge(()=>[ke(m.$slots,"top"),m.showZoom?(O(),ne(Te,{key:0},[ke(m.$slots,"control-zoom-in",{},()=>[ue(vn,{class:"vue-flow__controls-zoomin",disabled:k.value,onClick:w},{default:ge(()=>[ke(m.$slots,"icon-zoom-in",{},()=>[(O(),ve(xt(V(Kf))))])]),_:3},8,["disabled"])]),ke(m.$slots,"control-zoom-out",{},()=>[ue(vn,{class:"vue-flow__controls-zoomout",disabled:v.value,onClick:x},{default:ge(()=>[ke(m.$slots,"icon-zoom-out",{},()=>[(O(),ve(xt(V(th))))])]),_:3},8,["disabled"])])],64)):Se("",!0),m.showFitView?ke(m.$slots,"control-fit-view",{key:1},()=>[ue(vn,{class:"vue-flow__controls-fitview",onClick:$},{default:ge(()=>[ke(m.$slots,"icon-fit-view",{},()=>[(O(),ve(xt(V(lh))))])]),_:3})]):Se("",!0),m.showInteractive?ke(m.$slots,"control-interactive",{key:2},()=>[m.showInteractive?(O(),ve(vn,{key:0,class:"vue-flow__controls-interactive",onClick:I},{default:ge(()=>[p.value?ke(m.$slots,"icon-unlock",{key:0},()=>[(O(),ve(xt(V(vh))))]):Se("",!0),p.value?Se("",!0):ke(m.$slots,"icon-lock",{key:1},()=>[(O(),ve(xt(V(dh))))])]),_:3})):Se("",!0)]):Se("",!0),ke(m.$slots,"default")]),_:3},8,["position"]))}}),wh=[{label:"指定车辆",value:"fixed"},{label:"指定类型",value:"byType"}],_h={key:"strategy",equals:"fixed"},bh={key:"strategy",equals:"byType"};function xh(){return[{key:"strategy",label:"分配策略",type:"select",required:!0,defaultValue:"fixed",options:[...wh]},{key:"carId",label:"车辆编号",type:"string",required:!0,placeholder:"如 C01",when:_h},{key:"carType",label:"车辆类型",type:"string",required:!0,placeholder:"如 Forklift / SimpleLite.RCS.Cars.AgvCar",when:bh}]}function Eh(){return[{key:"apiUrl",label:"接口地址",type:"string",required:!0,placeholder:"如 http://127.0.0.1:8080/api/hook/notify"},{key:"dataConfig",label:"数据配置",type:"textarea",required:!0,defaultValue:"{}",placeholder:'JSON 格式,如 {"event":"mission.done","payload":{"status":"ok"}}'},{key:"message",label:"消息",type:"textarea",placeholder:"运维可见的提示文本(可选)"},{key:"level",label:"级别",type:"select",defaultValue:"info",options:[{label:"信息",value:"info"},{label:"警告",value:"warn"},{label:"错误",value:"error"}]}]}function Sh(){return[{key:"eventName",label:"事件名",type:"string",required:!0,placeholder:"如 site.arrived"},{key:"timeoutSec",label:"超时(秒)",type:"number",defaultValue:60,placeholder:"超时后走「超时」连线;0 表示不超时"}]}const st={triggered:"triggered",timeout:"timeout"},An={triggered:"正常执行",timeout:"超时执行"},Nh=[{label:"Modbus TCP",value:"modbus-tcp"},{label:"Modbus RTU",value:"modbus-rtu"}],kh=[{label:"读信号(接收)",value:"read"},{label:"写信号(输出)",value:"write"}],Ch=[{label:"布尔",value:"bool"},{label:"Int16",value:"int16"},{label:"UInt16",value:"uint16"},{label:"Int32",value:"int32"},{label:"Float32",value:"float32"}],$h=[{label:"等于",value:"eq"},{label:"不等于",value:"ne"},{label:"大于",value:"gt"},{label:"大于等于",value:"gte"},{label:"小于",value:"lt"},{label:"小于等于",value:"lte"},{label:"值发生变化",value:"changed"}],Ih=[{label:"持续写入",value:"hold"},{label:"脉冲 (写入后复位)",value:"pulse"}],$i={key:"ioMode",equals:"read"},mn={key:"ioMode",equals:"write"};function Mh(){return[{key:"ioMode",label:"读写模式",type:"select",required:!0,defaultValue:"read",options:kh},{key:"protocol",label:"协议类型",type:"select",required:!0,defaultValue:"modbus-tcp",options:Nh},{key:"host",label:"连接地址",type:"string",required:!0,placeholder:"modbus-tcp: 10.0.2.30:502;modbus-rtu: COM3,9600,8,N,1"},{key:"address",label:"寄存器地址",type:"number",required:!0,defaultValue:0,placeholder:"如 40001 或 0(视驱动约定)"},{key:"dataType",label:"数据类型",type:"select",required:!0,defaultValue:"bool",options:Ch},{key:"compareOp",label:"触发条件",type:"select",required:!0,defaultValue:"eq",options:$h,when:$i},{key:"pollIntervalMs",label:"轮询间隔 (ms)",type:"number",defaultValue:500,when:$i},{key:"writeValue",label:"写入值",type:"string",required:!0,placeholder:"如 1 / true / 100",when:mn},{key:"writeMode",label:"写入模式",type:"select",defaultValue:"hold",options:Ih,when:mn},{key:"pulseMs",label:"脉冲宽度 (ms)",type:"number",defaultValue:500,placeholder:"writeMode=pulse 时有效",when:mn},{key:"verifyRead",label:"写入后回读校验",type:"boolean",defaultValue:!0,when:mn}]}const Th=[{label:"取货",value:"pick"},{label:"放货",value:"drop"},{label:"充电",value:"startCharging"}];function Dh(){return[{key:"actionType",label:"动作类型",type:"select",required:!0,defaultValue:"pick",options:[...Th]},{key:"actionParameters",label:"动作参数 (actionParameters)",type:"textarea",placeholder:'JSON 数组:[{"key":"height","value":"100"}]'}]}const Ph=["流程入口","调度动作","流程逻辑","事件与信号","协议控制"],Xr=[{type:"start",label:"开始",category:"流程入口",color:"#67c23a",description:"流程起点",singleton:!0,params:[]},{type:"end",label:"结束",category:"流程入口",color:"#909399",description:"流程终点",params:[]},{type:"gotoSite",label:"前往站点",category:"调度动作",color:"#e6a23c",description:"AGV 移动到目标站点",params:[{key:"siteId",label:"目标站点",type:"string",required:!0,placeholder:"如 S001"}]},{type:"executeAction",label:"执行动作",category:"调度动作",color:"#e6a23c",description:"下发 VDA5050 单条动作指令",params:Dh()},{type:"assignCar",label:"分配车辆",category:"调度动作",color:"#e6a23c",description:"为任务指定车辆或车型",params:xh()},{type:"branch",label:"条件分支",category:"流程逻辑",color:"#9b59b6",description:"条件成立与否走不同分支",params:[{key:"expression",label:"条件表达式",type:"textarea",required:!0,placeholder:"如 batterySoc > 0.2"}]},{type:"delay",label:"延时事件",category:"流程逻辑",color:"#9b59b6",description:"等待指定秒数后继续",params:[{key:"seconds",label:"延时(秒)",type:"number",required:!0,defaultValue:5}]},{type:"waitEvent",label:"等待事件",category:"事件与信号",color:"#409eff",description:"等待事件触发,超时走另一路",params:Sh()},{type:"notify",label:"通知事件",category:"事件与信号",color:"#409eff",description:"调用接口推送 JSON 通知",params:Eh()},{type:"deviceControl",label:"设备控制",category:"协议控制",color:"#13c2c2",description:"Modbus 读等待或写输出",params:Mh()}],yt=new Map(Xr.map(e=>[e.type,e]));function Zr(e){const t=yt.get(e);if(!t)return{};const n={};for(const o of t.params)o.defaultValue!==void 0?n[o.key]=o.defaultValue:o.type==="boolean"?n[o.key]=!1:o.type==="number"?n[o.key]=0:n[o.key]="";return n}const qr={id:"wf-demo-001",name:"A区送料示例",version:1,viewport:{x:0,y:0,zoom:1},nodes:[{id:"n1",type:"start",label:"开始",position:{x:60,y:200},params:{}},{id:"n2",type:"assignCar",label:"分配车辆",position:{x:240,y:180},params:{strategy:"fixed",carId:"C01"}},{id:"n3",type:"gotoSite",label:"前往入库点",position:{x:460,y:180},params:{siteId:"S001"}},{id:"n4",type:"executeAction",label:"取货",position:{x:680,y:180},params:{actionType:"pick",actionParameters:'[{"key":"loadType","value":"pallet"}]'}},{id:"n5",type:"waitEvent",label:"等待到达",position:{x:900,y:180},params:{eventName:"site.arrived",timeoutSec:120}},{id:"n6",type:"notify",label:"送料完成通知",position:{x:1120,y:180},params:{apiUrl:"http://127.0.0.1:8080/api/hook/notify",dataConfig:'{"event":"delivery.complete","message":"送料完成"}',message:"送料完成",level:"info"}},{id:"n7",type:"end",label:"结束",position:{x:1340,y:200},params:{}},{id:"n8",type:"notify",label:"等待超时告警",position:{x:1120,y:320},params:{apiUrl:"http://127.0.0.1:8080/api/hook/notify",dataConfig:'{"event":"wait.timeout","message":"等待到达超时"}',message:"等待到达超时",level:"warn"}}],edges:[{id:"e1",source:"n1",target:"n2"},{id:"e2",source:"n2",target:"n3"},{id:"e3",source:"n3",target:"n4"},{id:"e4",source:"n4",target:"n5"},{id:"e5",source:"n5",target:"n6",sourceHandle:"triggered",label:"正常执行"},{id:"e5t",source:"n5",target:"n8",sourceHandle:"timeout",label:"超时执行"},{id:"e6",source:"n6",target:"n7"},{id:"e8",source:"n8",target:"n7"}]},Ah={class:"node-palette"},Oh={class:"palette-group-title"},zh=["onDragstart"],Bh={class:"palette-item-text"},Vh={class:"palette-item-label"},Rh={key:0,class:"palette-item-desc"},Hh=me({__name:"NodePalette",setup(e){const t=Ee(""),n={流程入口:"#67c23a",调度动作:"#e6a23c",流程逻辑:"#9b59b6",事件与信号:"#409eff",协议控制:"#13c2c2"},o=ie(()=>{const r=t.value.trim().toLowerCase(),l=Xr.filter(s=>r?s.label.toLowerCase().includes(r)||s.type.toLowerCase().includes(r)||s.category.toLowerCase().includes(r):!0),a=new Map;for(const s of l){const u=a.get(s.category)??[];u.push(s),a.set(s.category,u)}return Ph.filter(s=>a.has(s)).map(s=>({category:s,color:n[s]??"#909399",items:a.get(s)??[]}))});function i(r,l){r.dataTransfer&&(r.dataTransfer.setData("application/workflow-node",l),r.dataTransfer.effectAllowed="move")}return(r,l)=>{const a=dl,s=No;return O(),ne("div",Ah,[ue(s,{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=u=>t.value=u),size:"small",clearable:"",placeholder:"搜索控件",class:"palette-search"},{prefix:ge(()=>[ue(a,null,{default:ge(()=>[ue(V(fl))]),_:1})]),_:1},8,["modelValue"]),(O(!0),ne(Te,null,je(o.value,u=>(O(),ne("div",{key:u.category,class:"palette-group"},[X("div",Oh,[X("span",{class:"palette-group-dot",style:Oe({background:u.color})},null,4),Pe(" "+Ce(u.category),1)]),(O(!0),ne(Te,null,je(u.items,c=>(O(),ne("div",{key:c.type,class:"palette-item",draggable:"true",onDragstart:h=>i(h,c.type)},[X("span",{class:"palette-dot",style:Oe({background:c.color})},null,4),X("div",Bh,[X("div",Vh,Ce(c.label),1),c.description?(O(),ne("div",Rh,Ce(c.description),1)):Se("",!0)])],40,zh))),128))]))),128))])}}}),Lh=wt(Hh,[["__scopeId","data-v-ab330bfe"]]),Fh={class:"node-inspector"},Yh={class:"inspector-head"},Gh={class:"inspector-title"},Wh={class:"inspector-id"},Uh={class:"inspector-actions"},Xh=me({__name:"NodeInspector",props:{node:{}},emits:["update","delete"],setup(e,{emit:t}){const n=e,o=t,i=Ee(yt.get(n.node?.type??"")),r=Ee(""),l=Ee({}),a=ie(()=>(i.value?.params??[]).filter(x=>x.when?l.value[x.when.key]===x.when.equals:!0)),s={modifiers:[{name:"flip",options:{fallbackPlacements:["bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:"viewport",padding:8}}]};ye(()=>n.node,w=>{i.value=w?yt.get(w.type):void 0,r.value=w?.label??"",l.value=w?Object.fromEntries(Object.entries(w.params).map(([x,$])=>[x,$])):{}},{immediate:!0});function u(w){return typeof w=="boolean"?w:w==="true"||w===1||w==="1"}function c(w){return w.when?l.value[w.when.key]===w.when.equals:!0}function h(){const w=i.value?.params??[];for(const x of w)c(x)||delete l.value[x.key]}function p(w,x){l.value[w]=x,h(),k()}function v(){n.node&&o("update",{label:r.value})}function k(){n.node&&o("update",{params:{...l.value}})}return(w,x)=>{const $=No,I=pl,m=gl,C=vl,z=yl,Y=ml,B=wl,R=hl,j=zn;return O(),ne("div",Fh,[e.node?(O(),ne(Te,{key:0},[X("div",Yh,[X("div",Gh,Ce(i.value?.label??e.node.type),1),X("div",Wh,"ID: "+Ce(e.node.id),1)]),ue(R,{"label-position":"top",size:"small",class:"inspector-form"},{default:ge(()=>[ue(I,{label:"显示名称"},{default:ge(()=>[ue($,{modelValue:r.value,"onUpdate:modelValue":x[0]||(x[0]=P=>r.value=P),onChange:v},null,8,["modelValue"])]),_:1}),(O(!0),ne(Te,null,je(a.value,P=>(O(),ve(I,{key:P.key,label:P.label,required:P.required},{default:ge(()=>[P.type==="string"?(O(),ve($,{key:0,"model-value":String(l.value[P.key]??""),placeholder:P.placeholder,"onUpdate:modelValue":D=>p(P.key,D)},null,8,["model-value","placeholder","onUpdate:modelValue"])):P.type==="number"?(O(),ve(m,{key:1,"model-value":Number(l.value[P.key]??0),"controls-position":"right",style:{width:"100%"},"onUpdate:modelValue":D=>p(P.key,D??0)},null,8,["model-value","onUpdate:modelValue"])):P.type==="boolean"?(O(),ve(C,{key:2,class:"inspector-switch","model-value":u(l.value[P.key]),"active-text":"是","inactive-text":"否","inline-prompt":"","onUpdate:modelValue":D=>p(P.key,D)},null,8,["model-value","onUpdate:modelValue"])):P.type==="select"?(O(),ve(Y,{key:3,"model-value":l.value[P.key],style:{width:"100%"},placement:"bottom-start",teleported:"","fit-input-width":"","popper-options":s,"onUpdate:modelValue":D=>p(P.key,D)},{default:ge(()=>[(O(!0),ne(Te,null,je(P.options??[],D=>(O(),ve(z,{key:String(D.value),label:D.label,value:D.value},null,8,["label","value"]))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):P.type==="textarea"?(O(),ve($,{key:4,"model-value":String(l.value[P.key]??""),type:"textarea",rows:3,placeholder:P.placeholder,"onUpdate:modelValue":D=>p(P.key,D)},null,8,["model-value","placeholder","onUpdate:modelValue"])):Se("",!0)]),_:2},1032,["label","required"]))),128)),a.value.length===0?(O(),ve(B,{key:0,description:"此节点无可配置参数","image-size":48})):Se("",!0)]),_:1}),X("div",Uh,[ue(j,{type:"danger",plain:"",size:"small",class:"inspector-delete-btn",onClick:x[1]||(x[1]=P=>o("delete"))},{default:ge(()=>[...x[2]||(x[2]=[Pe(" 删除节点 ",-1)])]),_:1})])],64)):(O(),ve(B,{key:1,description:"选中画布上的节点以编辑参数","image-size":64}))])}}}),Zh=wt(Xh,[["__scopeId","data-v-4198dd80"]]),qh={class:"edge-inspector"},Kh={class:"inspector-head"},Jh={class:"inspector-id"},jh={class:"edge-meta"},Qh={class:"edge-meta-row"},ep={class:"edge-meta-row"},tp={key:0,class:"edge-meta-row"},np=me({__name:"EdgeInspector",props:{edge:{}},emits:["delete"],setup(e,{emit:t}){const n=t;return(o,i)=>{const r=zn;return O(),ne("div",qh,[X("div",Kh,[i[1]||(i[1]=X("div",{class:"inspector-title"},"连线",-1)),X("div",Jh,"ID: "+Ce(e.edge.id),1)]),X("dl",jh,[X("div",Qh,[i[2]||(i[2]=X("dt",null,"起点",-1)),X("dd",null,Ce(e.edge.sourceLabel),1)]),X("div",ep,[i[3]||(i[3]=X("dt",null,"终点",-1)),X("dd",null,Ce(e.edge.targetLabel),1)]),e.edge.label?(O(),ne("div",tp,[i[4]||(i[4]=X("dt",null,"出口",-1)),X("dd",null,Ce(e.edge.label),1)])):Se("",!0)]),i[6]||(i[6]=X("p",{class:"edge-hint muted"},"按 Delete / Backspace 可快速删除;或点击下方按钮。",-1)),ue(r,{type:"danger",plain:"",size:"small",class:"edge-delete-btn",onClick:i[0]||(i[0]=l=>n("delete"))},{default:ge(()=>[...i[5]||(i[5]=[Pe(" 删除连线 ",-1)])]),_:1})])}}}),op=wt(np,[["__scopeId","data-v-fbb2914e"]]),ip={class:"wf-node-body"},rp={class:"wf-node-head"},lp={class:"wf-node-type"},ap={class:"wf-node-label"},sp={class:"wf-outlets"},up={class:"wf-outlet-row"},cp={class:"wf-port-label wf-port-top"},dp={class:"wf-outlet-row"},fp={class:"wf-port-label wf-port-bottom"},hp={class:"wf-node-body"},pp={class:"wf-node-head"},gp={class:"wf-node-type"},vp={class:"wf-node-label"},mp=me({__name:"WorkflowNode",props:{id:{},data:{},selected:{type:Boolean}},setup(e){const t=e,n=ie(()=>yt.get(t.data.type)?.label??t.data.type),o=ie(()=>yt.get(t.data.type)?.color??"#409eff"),i=ie(()=>t.data.type==="branch"||t.data.type==="waitEvent"),r=ie(()=>t.data.type==="waitEvent"?{top:An.triggered,bottom:An.timeout}:t.data.type==="branch"?{top:"成立",bottom:"不成立"}:{top:"",bottom:""});return(l,a)=>(O(),ne("div",{class:rt(["wf-node",{selected:e.selected,"wf-node-dual":i.value}]),style:Oe({"--node-color":o.value})},[ue(V(Ye),{type:"target",position:V(K).Left,class:"wf-handle wf-handle-target"},null,8,["position"]),i.value?(O(),ne(Te,{key:0},[X("div",ip,[X("div",rp,[a[0]||(a[0]=X("span",{class:"wf-node-dot"},null,-1)),X("span",lp,Ce(n.value),1)]),X("div",ap,Ce(e.data.label),1)]),X("div",sp,[X("div",up,[X("span",cp,Ce(r.value.top),1),e.data.type==="branch"?(O(),ve(V(Ye),{key:0,id:"success",type:"source",position:V(K).Right,class:"wf-handle wf-handle-success wf-outlet-handle"},null,8,["position"])):e.data.type==="waitEvent"?(O(),ve(V(Ye),{key:1,id:"triggered",type:"source",position:V(K).Right,class:"wf-handle wf-handle-success wf-outlet-handle"},null,8,["position"])):Se("",!0)]),X("div",dp,[X("span",fp,Ce(r.value.bottom),1),e.data.type==="branch"?(O(),ve(V(Ye),{key:0,id:"fail",type:"source",position:V(K).Right,class:"wf-handle wf-handle-fail wf-outlet-handle"},null,8,["position"])):e.data.type==="waitEvent"?(O(),ve(V(Ye),{key:1,id:"timeout",type:"source",position:V(K).Right,class:"wf-handle wf-handle-fail wf-outlet-handle"},null,8,["position"])):Se("",!0)])])],64)):(O(),ne(Te,{key:1},[X("div",hp,[X("div",pp,[a[1]||(a[1]=X("span",{class:"wf-node-dot"},null,-1)),X("span",gp,Ce(n.value),1)]),X("div",vp,Ce(e.data.label),1)]),e.data.type!=="end"?(O(),ve(V(Ye),{key:0,type:"source",position:V(K).Right,class:"wf-handle wf-handle-source"},null,8,["position"])):Se("",!0)],64))],6))}}),yp=wt(mp,[["__scopeId","data-v-bc154e2a"]]),wp={class:"wf-list-panel"},_p={class:"wf-list-head"},bp={class:"wf-list-actions"},xp={class:"wf-list"},Ep=["onClick"],Sp={class:"wf-list-item-main"},Np={class:"wf-list-item-name"},kp={class:"wf-list-item-meta"},Cp={class:"wf-list-hint"},$p=me({__name:"WorkflowListPanel",props:{workflows:{},activeId:{}},emits:["select","create","save","duplicate","delete"],setup(e,{emit:t}){const n=t;function o(i,r){i==="duplicate"&&n("duplicate",r),i==="delete"&&n("delete",r)}return(i,r)=>{const l=zn,a=xl,s=bl,u=_l;return O(),ne("div",wp,[X("div",_p,[r[6]||(r[6]=X("span",{class:"wf-list-title"},"流程库",-1)),X("div",bp,[ue(l,{size:"small",type:"primary",link:"",onClick:r[0]||(r[0]=c=>n("create"))},{default:ge(()=>[...r[4]||(r[4]=[Pe("+ 新建",-1)])]),_:1}),ue(l,{size:"small",type:"success",link:"",onClick:r[1]||(r[1]=c=>n("save"))},{default:ge(()=>[...r[5]||(r[5]=[Pe("保存",-1)])]),_:1})])]),X("ul",xp,[(O(!0),ne(Te,null,je(e.workflows,c=>(O(),ne("li",{key:c.id,class:rt(["wf-list-item",{active:c.id===e.activeId}]),onClick:h=>n("select",c.id)},[X("div",Sp,[X("span",Np,Ce(c.name||"未命名流程"),1),X("span",kp,Ce(c.nodes.length)+" 节点",1)]),ue(u,{trigger:"click",onClick:r[3]||(r[3]=Vo(()=>{},["stop"])),onCommand:h=>o(h,c.id)},{dropdown:ge(()=>[ue(s,null,{default:ge(()=>[ue(a,{command:"duplicate"},{default:ge(()=>[...r[8]||(r[8]=[Pe("复制",-1)])]),_:1}),ue(a,{command:"delete",disabled:e.workflows.length<=1},{default:ge(()=>[...r[9]||(r[9]=[Pe("删除",-1)])]),_:1},8,["disabled"])]),_:1})]),default:ge(()=>[ue(l,{size:"small",text:"",class:"wf-list-more",onClick:r[2]||(r[2]=Vo(()=>{},["stop"]))},{default:ge(()=>[...r[7]||(r[7]=[Pe("⋯",-1)])]),_:1})]),_:1},8,["onCommand"])],10,Ep))),128))]),X("p",Cp,"共 "+Ce(e.workflows.length)+" 个流程(仅当前会话内存);持久化请点顶栏「导出」下载 JSON。",1)])}}}),Ip=wt($p,[["__scopeId","data-v-cea4ce7c"]]);function Ct(e){const t=El(e);return JSON.parse(JSON.stringify(t))}function Rt(e){const t=[],n=e.nodes,o=e.edges,i=n.filter(s=>s.type==="start"),r=n.filter(s=>s.type==="end");i.length===0&&t.push({level:"error",message:"流程缺少「开始」节点"}),i.length>1&&t.push({level:"error",message:"流程只能有一个「开始」节点"}),r.length===0&&t.push({level:"warning",message:"建议添加「结束」节点"});const l=new Map,a=new Map;for(const s of o)l.set(s.source,(l.get(s.source)??0)+1),a.set(s.target,(a.get(s.target)??0)+1);for(const s of n)if(s.type==="start"&&(l.get(s.id)??0)===0&&t.push({level:"error",message:`「${s.label}」未连接下游节点`}),s.type==="end"&&(a.get(s.id)??0)===0&&t.push({level:"warning",message:`「${s.label}」没有上游连线`}),s.type!=="start"&&s.type!=="end"&&(a.get(s.id)??0)===0&&t.push({level:"warning",message:`节点「${s.label}」处于孤立状态`}),s.type==="waitEvent"){const u=o.filter(v=>v.source===s.id),c=u.some(v=>v.sourceHandle===st.triggered||!v.sourceHandle),h=u.some(v=>v.sourceHandle===st.timeout),p=Number(s.params.timeoutSec??0);c||t.push({level:"warning",message:`「${s.label}」未连接「正常执行」出口`}),p>0&&!h&&t.push({level:"warning",message:`「${s.label}」未连接「超时执行」出口,超时后将无法继续执行`})}return t}const ln=3,Mp={nearest:"fixed",idle:"byType"};function Tp(e,t){return e.when?t[e.when.key]===e.when.equals:!0}function Kr(e,t){const n=yt.get(e);if(!n)return{...t};const o={...Zr(e),...t};if(e==="assignCar"&&typeof o.strategy=="string"){const r=Mp[o.strategy];r&&(o.strategy=r)}const i={};for(const r of n.params){if(!Tp(r,o))continue;let l=o[r.key];r.type==="select"&&r.options?.length&&(r.options.some(s=>s.value===l)||(l=r.defaultValue??r.options[0].value)),l!==void 0&&(i[r.key]=l)}return i}function Ot(e){return{...e,nodes:e.nodes.map(t=>({...t,params:Kr(t.type,t.params)}))}}function Ii(e){return e.map(t=>({id:t.id,type:"workflow",position:{...t.position},data:{type:t.type,label:t.label,params:{...t.params}}}))}function Mi(e){return e.map(t=>({id:t.id,source:t.source,target:t.target,sourceHandle:t.sourceHandle,label:t.label??Dp(t.sourceHandle),selectable:!0,interactionWidth:20,animated:!0,style:{stroke:Pp(t.sourceHandle),strokeWidth:2},labelStyle:{fill:"#606266",fontSize:11},labelBgStyle:{fill:"#fff",fillOpacity:.85}}))}function Dp(e){if(e===st.triggered)return An.triggered;if(e===st.timeout)return An.timeout;if(e==="success")return"成立";if(e==="fail")return"不成立"}function Pp(e){return e===st.timeout||e==="fail"?"#f56c6c":e===st.triggered||e==="success"?"#67c23a":"#409eff"}function Ap(e,t){return{nodes:e.map(n=>({id:n.id,type:n.data.type,label:n.data.label,position:{...n.position},params:{...n.data.params}})),edges:t.map(n=>({id:n.id,source:n.source,target:n.target,sourceHandle:n.sourceHandle??void 0,label:n.label??void 0}))}}let On=100;function Op(){return On+=1,`n${On}`}function zp(){return On+=1,`e${On}`}function Bp(e,t){function n(o,i){const r=t.filter(a=>a.source===o);if(i){const a=r.find(s=>s.sourceHandle===i);if(a)return a.target}return r.find(a=>!a.sourceHandle)?.target??null}return e.map(o=>{const i={...o};return delete i.nextId,delete i.failNextId,delete i.timeoutNextId,o.type==="end"?{...i,nextId:null}:o.type==="branch"?{...i,nextId:n(o.id,"success"),failNextId:n(o.id,"fail")}:o.type==="waitEvent"?{...i,nextId:n(o.id,st.triggered),timeoutNextId:n(o.id,st.timeout)}:{...i,nextId:n(o.id)}})}function Vp(e){return{...e,nodes:Bp(e.nodes,e.edges)}}function Rp(e,t){const n=new Blob([e],{type:"application/json;charset=utf-8"}),o=URL.createObjectURL(n),i=document.createElement("a");i.href=o,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(o)}function Hp(e,t="workflow-catalog"){const n={catalogVersion:ln,exportedAt:new Date().toISOString(),workflows:e.map(i=>Vp(i))},o=t.replace(/[\\/:*?"<>|]/g,"_");Rp(JSON.stringify(n,null,2),`${o}.json`)}let Ti=0;function Zn(){return Ti+=1,`wf-${Date.now()}-${Ti}`}function Lp(e="未命名流程"){return{id:Zn(),name:e,version:1,nodes:[],edges:[],viewport:{x:0,y:0,zoom:.85}}}function Fp(){const e=Ot(Ct(qr));return{catalogVersion:ln,workflows:[e],activeWorkflowId:e.id}}function Yp(){return Fp()}function Bo(e,t){return e.workflows.find(n=>n.id===t)}function Ht(e){return Bo(e,e.activeWorkflowId)??e.workflows[0]}function Jr(e,t){const n=Ot(t),o=e.workflows.findIndex(r=>r.id===n.id),i=o>=0?e.workflows.map((r,l)=>l===o?n:r):[...e.workflows,n];return{catalogVersion:ln,workflows:i,activeWorkflowId:n.id}}function Di(e,t){return e.workflows.some(n=>n.id===t)?{...e,activeWorkflowId:t}:null}function qn(e,t){const n=Ot(t);return e.workflows.some(o=>o.id===n.id)?Jr(e,n):{catalogVersion:ln,workflows:[...e.workflows,n],activeWorkflowId:n.id}}function Gp(e,t){if(e.workflows.length<=1)return null;const n=e.workflows.filter(i=>i.id!==t);let o=e.activeWorkflowId;return o===t&&(o=n[0].id),{catalogVersion:ln,workflows:n,activeWorkflowId:o}}function Wp(e,t){const n=Bo(e,t);if(!n)return null;const o=Ot({...Ct(n),id:Zn(),name:`${n.name}(副本)`});return qn(e,o)}function Up(e){const t=Ot(Ct(qr));return{library:e.workflows.some(i=>i.id===t.id)?e:qn(e,t),demoId:t.id}}function Xp(e,t){if(t.length===0)return null;let n=e;for(const o of t)n=qn(n,o);return{library:n,lastImportedId:t[t.length-1].id}}class Et extends Error{constructor(t){super(t),this.name="WorkflowImportError"}}function Zp(e){let t;try{t=JSON.parse(e)}catch{throw new Et("JSON 格式无效,请检查文件内容")}if(!t||typeof t!="object")throw new Et("文件内容不是有效的流程 JSON 对象");const n=t;if(Array.isArray(n.workflows)){const i=n.workflows.map((r,l)=>ao(r,l)).filter(r=>r!==null);if(i.length===0)throw new Et("流程库文件中没有可导入的流程");return{mode:"catalog",workflows:i}}if(n.workflow&&typeof n.workflow=="object"){const i=ao(n.workflow,0);if(!i)throw new Et("draft 格式中的 workflow 字段无效");return{mode:"single",workflows:[i]}}const o=ao(t,0);if(!o)throw new Et("无法识别文件结构:需包含 nodes、edges 字段,或 workflows 数组");return{mode:"single",workflows:[o]}}function ao(e,t){if(!e||typeof e!="object")return null;const n=e;if(!Array.isArray(n.nodes))return null;const o=typeof n.id=="string"&&n.id.trim()?n.id.trim():Zn(),i=typeof n.name=="string"&&n.name.trim()?n.name.trim():`导入流程 ${t+1}`,r=typeof n.version=="number"?n.version:1,l=Array.isArray(n.edges)?Jp(n.edges):[],a=qp(n.viewport),s=n.nodes.map((u,c)=>Kp(u,c));return jr({id:o,name:i,version:r,nodes:s,edges:l,...a?{viewport:a}:{}})}function qp(e){if(!e||typeof e!="object")return;const t=e,n=Number(t.x),o=Number(t.y),i=Number(t.zoom);if(!(!Number.isFinite(n)||!Number.isFinite(o)||!Number.isFinite(i)))return{x:n,y:o,zoom:i}}function Kp(e,t){const n=e&&typeof e=="object"?e:{},o=typeof n.id=="string"&&n.id.trim()?n.id.trim():`n-import-${t+1}`,i=typeof n.type=="string"&&n.type.trim()?n.type.trim():"start",r=typeof n.label=="string"&&n.label.trim()?n.label.trim():i,l=n.position&&typeof n.position=="object"?{x:Number(n.position.x)||0,y:Number(n.position.y)||0}:{x:80+t*40,y:120},a=n.params&&typeof n.params=="object"&&!Array.isArray(n.params)?{...n.params}:{};return{id:o,type:i,label:r,position:l,params:a}}function Jp(e){return e.map((t,n)=>{if(!t||typeof t!="object")return null;const o=t,i=typeof o.source=="string"?o.source:"",r=typeof o.target=="string"?o.target:"";return!i||!r?null:{id:typeof o.id=="string"&&o.id.trim()?o.id.trim():`e-import-${n+1}`,source:i,target:r,...typeof o.sourceHandle=="string"?{sourceHandle:o.sourceHandle}:{},...typeof o.label=="string"?{label:o.label}:{}}}).filter(t=>t!==null)}function jr(e){const t={...e,nodes:e.nodes.map(n=>{const{nextId:o,failNextId:i,timeoutNextId:r,...l}=n;return l})};return Ot(t)}function jp(e,t){const n=new Set(t);return e.map(o=>{let i=o.id;return n.has(i)&&(i=Zn()),n.add(i),i===o.id?o:{...o,id:i}})}function Qp(){return new Promise(e=>{const t=document.createElement("input");t.type="file",t.accept=".json,application/json",t.style.display="none",t.onchange=()=>{const n=t.files?.[0]??null;t.remove(),e(n)},t.oncancel=()=>{t.remove(),e(null)},document.body.appendChild(t),t.click()})}async function eg(e){return e.text()}function tg(e){return e.mode==="catalog"?`流程库文件,共 ${e.workflows.length} 个流程`:`单个流程「${e.workflows[0]?.name??"未命名"}」`}const ng={class:"workflow-editor"},og={class:"wf-toolbar"},ig={class:"wf-toolbar-left"},rg={class:"wf-toolbar-center"},lg={class:"wf-toolbar-right"},ag={class:"wf-body"},sg={class:"wf-panel wf-panel-left"},ug={class:"wf-panel wf-panel-center"},cg={class:"wf-panel wf-panel-right"},dg=me({__name:"WorkflowEditor",setup(e){const t={workflow:Gt(yp)},n=Ee(Yp()),o=zi(Ct(Ht(n.value))),i=Ee(Ii(o.nodes)),r=Ee(Mi(o.edges)),l=Ee(null),a=Ee(null);let s=null;const{screenToFlowCoordinate:u,addEdges:c,getViewport:h,setViewport:p,removeNodes:v,removeEdges:k,getSelectedNodes:w,getSelectedEdges:x}=Ne(),$=ie(()=>l.value?o.nodes.find(N=>N.id===l.value)??null:null),I=ie(()=>{if(!a.value)return null;const N=r.value.find(g=>g.id===a.value);if(!N)return null;const d=o.nodes.find(g=>g.id===N.source),f=o.nodes.find(g=>g.id===N.target);return{id:N.id,sourceLabel:d?.label??N.source,targetLabel:f?.label??N.target,label:N.label}}),m=ie(()=>w.value.length>0||x.value.length>0||l.value!==null||a.value!==null),C=ie(()=>Rt(o));ye([i,r],()=>{z(),R()},{deep:!0}),ye(()=>o.name,R);function z(){const{nodes:N,edges:d}=Ap(i.value,r.value);o.nodes=N,o.edges=d}function Y(){z();const N=h();return{...Ct(o),version:o.version,viewport:{x:N.x,y:N.y,zoom:N.zoom}}}function B(){const N=Y();return n.value=Jr(n.value,N),N}function R(){s&&clearTimeout(s),s=setTimeout(()=>{B()},400)}function j(N){const d=Ct(N);Object.assign(o,d),i.value=Ii(o.nodes),r.value=Mi(o.edges),l.value=null,a.value=null,We(()=>{const f=d.viewport??{x:0,y:0,zoom:.85};p(f)})}function P(N){if(N===n.value.activeWorkflowId)return;B();const d=Di(n.value,N);d&&(n.value=d,j(Ht(n.value)))}function D(){B();const N=Lp();n.value=qn(n.value,N),j(N),$e.success("已创建新流程")}async function E(N){const d=n.value.workflows.find(b=>b.id===N);if(!d)return;try{await zt.confirm(`确定从流程库删除「${d.name}」?`,"删除流程",{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消",confirmButtonClass:"el-button--danger"})}catch{return}N===n.value.activeWorkflowId&&B();const f=N===n.value.activeWorkflowId,g=Gp(n.value,N);if(!g){$e.warning("至少保留一个流程");return}n.value=g,f&&j(Ht(n.value)),$e.success("流程已删除")}function Q(N){B();const d=Wp(n.value,N);d&&(n.value=d,j(Ht(n.value)),$e.success("已复制流程"))}function y(){const N=B(),d=Rt(N).filter(g=>g.level==="error");if(d.length>0){$e.error(d[0].message);return}const f=Rt(N).filter(g=>g.level==="warning");f.length>0?$e.warning(`已保存「${N.name||"未命名流程"}」,但有 ${f.length} 条校验警告`):$e.success(`已保存「${N.name||"未命名流程"}」`)}function M(){B();const N=n.value.workflows,d=N.filter(f=>Rt(f).some(g=>g.level==="error"));if(d.length>0){$e.error(`「${d[0].name}」存在校验错误,请先修复后再导出`);return}Hp(N,"workflow-catalog"),$e.success(`已导出 ${N.length} 个流程到 workflow-catalog.json`)}async function S(){const N=await Qp();if(!N)return;let d;try{d=await eg(N)}catch{$e.error("读取文件失败");return}let f;try{f=Zp(d)}catch(U){$e.error(U instanceof Et?U.message:"导入失败");return}const g=tg(f);try{await zt.confirm(`${g}。将追加到流程库(流程 ID 与已有重复时自动分配新 ID),是否继续?`,"导入 JSON",{type:"info",confirmButtonText:"导入",cancelButtonText:"取消"})}catch{return}B();const b=new Set(n.value.workflows.map(U=>U.id)),_=jp(f.workflows.map(U=>jr(U)),b),H=Xp(n.value,_);if(!H){$e.error("没有可导入的流程");return}n.value=H.library;const G=Bo(n.value,H.lastImportedId);G&&j(G);const ee=_.reduce((U,le)=>U+Rt(le).filter(de=>de.level==="warning").length,0);ee>0?$e.warning(`已导入 ${_.length} 个流程,共 ${ee} 条校验警告,请在顶栏查看`):$e.success(_.length===1?`已导入流程「${_[0].name}」`:`已导入 ${_.length} 个流程`)}function T(N){N.preventDefault(),N.dataTransfer&&(N.dataTransfer.dropEffect="move")}function A(N){const d=N.dataTransfer?.getData("application/workflow-node");if(!d)return;const f=yt.get(d);if(!f)return;if(f.singleton&&o.nodes.some(_=>_.type===d)){$e.warning(`「${f.label}」节点在流程中只能有一个`);return}const g=u({x:N.clientX,y:N.clientY}),b=Op();i.value=[...i.value,{id:b,type:"workflow",position:g,data:{type:d,label:f.label,params:Kr(d,Zr(d))}}]}function L({node:N}){l.value=N.id,a.value=null}function F({edge:N}){a.value=N.id,l.value=null}function J(){l.value=null,a.value=null}function oe(N){!N.source||!N.target||c([{id:zp(),source:N.source,target:N.target,sourceHandle:N.sourceHandle??void 0,animated:!0,style:{stroke:"#409eff",strokeWidth:2}}])}function ae(N){for(const d of N)d.type==="remove"&&d.id===l.value&&(l.value=null);z()}function ce(N){for(const d of N)d.type==="remove"&&d.id===a.value&&(a.value=null);z()}function Z(){const N=w.value;if(N.length>0)return N;if(!l.value)return[];const d=i.value.find(f=>f.id===l.value);return d?[d]:[]}function q(){const N=x.value;if(N.length>0)return N;if(!a.value)return[];const d=r.value.find(f=>f.id===a.value);return d?[d]:[]}async function te(){const N=Z();if(N.length!==0){try{await zt.confirm(N.length===1?`确定删除节点「${N[0].data.label}」?关联连线将一并移除。`:`确定删除选中的 ${N.length} 个节点?关联连线将一并移除。`,"删除节点",{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消",confirmButtonClass:"el-button--danger"})}catch{return}v(N),l.value=null,$e.success(N.length===1?"节点已删除":`已删除 ${N.length} 个节点`)}}function he(){const N=q();N.length!==0&&(k(N),a.value=null,$e.success(N.length===1?"连线已删除":`已删除 ${N.length} 条连线`))}async function we(){const N=Z();let d=q();if(N.length===0&&d.length===0){$e.info("请先选中要删除的节点或连线");return}if(N.length>0){try{await zt.confirm(N.length===1?`确定删除节点「${N[0].data.label}」?关联连线将一并移除。`:`确定删除选中的 ${N.length} 个节点?关联连线将一并移除。`,"删除节点",{type:"warning",confirmButtonText:"删除",cancelButtonText:"取消",confirmButtonClass:"el-button--danger"})}catch{return}v(N),l.value=null;const g=new Set(N.map(b=>b.id));d=d.filter(b=>!g.has(b.source)&&!g.has(b.target))}d=d.filter(g=>r.value.some(b=>b.id===g.id)),d.length>0&&(k(d),a.value=null);const f=[];N.length>0&&f.push(`${N.length} 个节点`),d.length>0&&f.push(`${d.length} 条连线`),$e.success(`已删除 ${f.join("、")}`)}function se(N){if(!l.value)return;const d=i.value.findIndex(g=>g.id===l.value);if(d<0)return;const f=i.value[d];N.label!==void 0&&(f.data.label=N.label),N.params!==void 0&&(f.data.params={...N.params}),i.value=[...i.value]}function pe(){B();const{library:N,demoId:d}=Up(n.value);n.value=Di(N,d)??N,j(Ht(n.value)),$e.success("已切换到示例流程")}async function re(){if(i.value.length===0&&r.value.length===0){$e.info("画布已是空的");return}try{await zt.confirm("确定清空当前流程画布上的所有节点和连线?","清除画布",{type:"warning",confirmButtonText:"清除",cancelButtonText:"取消",confirmButtonClass:"el-button--danger"})}catch{return}i.value=[],r.value=[],o.nodes=[],o.edges=[],l.value=null,a.value=null,B(),$e.success("画布已清空")}return(N,d)=>{const f=No,g=Sl,b=zn;return O(),ne("div",ng,[X("div",og,[X("div",ig,[ue(f,{modelValue:o.name,"onUpdate:modelValue":d[0]||(d[0]=_=>o.name=_),size:"small",class:"wf-name-input",placeholder:"流程名称"},null,8,["modelValue"]),ue(g,{size:"small",type:"info"},{default:ge(()=>[Pe("流程库 "+Ce(n.value.workflows.length)+" 个",1)]),_:1})]),X("div",rg,[(O(!0),ne(Te,null,je(C.value,(_,H)=>(O(),ve(g,{key:H,size:"small",type:_.level==="error"?"danger":"warning",class:"wf-issue-tag"},{default:ge(()=>[Pe(Ce(_.message),1)]),_:2},1032,["type"]))),128)),C.value.length===0?(O(),ve(g,{key:0,size:"small",type:"success"},{default:ge(()=>[...d[3]||(d[3]=[Pe("校验通过",-1)])]),_:1})):Se("",!0)]),X("div",lg,[ue(b,{size:"small",type:"danger",plain:"",disabled:!m.value,onClick:we},{default:ge(()=>[...d[4]||(d[4]=[Pe(" 删除选中 ",-1)])]),_:1},8,["disabled"]),ue(b,{size:"small",onClick:pe},{default:ge(()=>[...d[5]||(d[5]=[Pe("加载示例",-1)])]),_:1}),ue(b,{size:"small",onClick:S},{default:ge(()=>[...d[6]||(d[6]=[Pe("导入",-1)])]),_:1}),ue(b,{size:"small",type:"primary",plain:"",onClick:M},{default:ge(()=>[...d[7]||(d[7]=[Pe("导出",-1)])]),_:1}),ue(b,{size:"small",type:"danger",plain:"",onClick:re},{default:ge(()=>[...d[8]||(d[8]=[Pe("清除画布",-1)])]),_:1})])]),X("div",ag,[X("aside",sg,[ue(Ip,{workflows:n.value.workflows,"active-id":n.value.activeWorkflowId,onSelect:P,onCreate:D,onSave:y,onDuplicate:Q,onDelete:E},null,8,["workflows","active-id"]),d[9]||(d[9]=X("div",{class:"wf-panel-title"},"控件库",-1)),ue(Lh,{class:"wf-palette-body"})]),X("main",ug,[ue(V(Df),{nodes:i.value,"onUpdate:nodes":d[1]||(d[1]=_=>i.value=_),edges:r.value,"onUpdate:edges":d[2]||(d[2]=_=>r.value=_),"node-types":t,"default-viewport":o.viewport??{x:0,y:0,zoom:.85},"delete-key-code":["Delete","Backspace"],"fit-view-on-init":"",onDrop:A,onDragover:T,onNodeClick:L,onEdgeClick:F,onPaneClick:J,onConnect:oe,onNodesChange:ae,onEdgesChange:ce},{default:ge(()=>[ue(V(Lf),{"pattern-color":"#e8eaed",gap:16}),ue(V(yh),{position:"bottom-right"})]),_:1},8,["nodes","edges","default-viewport"])]),X("aside",cg,[d[10]||(d[10]=X("div",{class:"wf-panel-title"},"参数配置",-1)),I.value?(O(),ve(op,{key:0,edge:I.value,onDelete:he},null,8,["edge"])):(O(),ve(Zh,{key:1,node:$.value,onUpdate:se,onDelete:te},null,8,["node"]))])])])}}}),fg=wt(dg,[["__scopeId","data-v-2f835d2a"]]),hg={class:"task-template-page"},pg=me({__name:"TaskTemplateView",setup(e){return(t,n)=>(O(),ne("div",hg,[ue(fg)]))}}),Ig=wt(pg,[["__scopeId","data-v-4ab211b0"]]);export{Ig as default}; diff --git a/MiGu.Server/wwwroot/assets/TrackTableView-B2SrXZLA.css b/MiGu.Server/wwwroot/assets/TrackTableView-B2SrXZLA.css new file mode 100644 index 0000000..a2a87bc --- /dev/null +++ b/MiGu.Server/wwwroot/assets/TrackTableView-B2SrXZLA.css @@ -0,0 +1 @@ +.scene-mgr-page[data-v-a723a6fa]{height:calc(100vh - 56px);padding:12px 14px;box-sizing:border-box;display:flex;flex-direction:column}.scene-tabs[data-v-a723a6fa]{flex:1;display:flex;flex-direction:column;overflow:hidden} diff --git a/MiGu.Server/wwwroot/assets/TrackTableView-B6xSRo4y.js b/MiGu.Server/wwwroot/assets/TrackTableView-B6xSRo4y.js new file mode 100644 index 0000000..48501e3 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/TrackTableView-B6xSRo4y.js @@ -0,0 +1 @@ +import{aN as m,bs as _,aG as k,aK as e,c8 as a,a9 as v,ac as x,bC as r,ak as g,aE as T}from"./index-D5GfLbIx.js";/* empty css *//* empty css */import{R as s}from"./ReflectionManagerPanel-CqcqGxZI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./reflection-BwOBPyb9.js";import"./projectSaveFlow-BOHSv3Vc.js";import"./useProjectionStream-ayb6RvWW.js";import"./mapEdit-BXIATxCI.js";const y={class:"scene-mgr-page"},P=m({__name:"SceneManagerView",setup(f){const l=r("site"),o=r(null),p=r(null),c=r(null);function u(t){(t==="site"?o.value:t==="track"?p.value:t==="special"?c.value:null)?.refresh?.()}return(t,n)=>{const i=v,d=x;return _(),k("div",y,[e(d,{modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=b=>l.value=b),type:"border-card",class:"scene-tabs admin-tabs",onTabChange:u},{default:a(()=>[e(i,{label:"站点",name:"site"},{default:a(()=>[e(s,{ref_key:"sitePanelRef",ref:o,kind:"site","kind-label":"站点",title:"站点管理(Site / UISite,含禁用/启用、必空点等动作)","empty-text":"当前没有站点;点击右上角「新建站点」按 x/y 坐标添加。","enable-project-save":""},null,512)]),_:1}),e(i,{label:"路径",name:"track"},{default:a(()=>[e(s,{ref_key:"trackPanelRef",ref:p,kind:"track","kind-label":"路径",title:"路径管理(Track / UITrack,含方向、冲突、投影、二分等动作)","empty-text":"当前没有路径;点击右上角「新建路径」选起止站点添加。","enable-project-save":""},null,512)]),_:1}),e(i,{label:"装饰物",name:"special"},{default:a(()=>[e(s,{ref_key:"specialPanelRef",ref:c,kind:"special","kind-label":"装饰物",title:"装饰物管理(UI_Image / UI_Text / UI_Model)","empty-text":"当前没有装饰物;新建图片/文本/模型可用底部按钮,或先在地图编辑里上传资产。","enable-project-save":""},null,512)]),_:1})]),_:1},8,["modelValue"])])}}}),R=g(P,[["__scopeId","data-v-a723a6fa"]]),Z=m({__name:"TrackTableView",setup(f){return(l,o)=>(_(),T(R))}});export{Z as default}; diff --git a/MiGu.Server/wwwroot/assets/TrackTableView-C-Cp6740.css b/MiGu.Server/wwwroot/assets/TrackTableView-C-Cp6740.css deleted file mode 100644 index a6006cd..0000000 --- a/MiGu.Server/wwwroot/assets/TrackTableView-C-Cp6740.css +++ /dev/null @@ -1 +0,0 @@ -.scene-mgr-page[data-v-ce41515a]{height:calc(100vh - 56px);padding:12px 14px;box-sizing:border-box;display:flex;flex-direction:column}.scene-tabs[data-v-ce41515a]{flex:1;display:flex;flex-direction:column;overflow:hidden} diff --git a/MiGu.Server/wwwroot/assets/TrackTableView-CKv4G01-.js b/MiGu.Server/wwwroot/assets/TrackTableView-CKv4G01-.js deleted file mode 100644 index 0b5274b..0000000 --- a/MiGu.Server/wwwroot/assets/TrackTableView-CKv4G01-.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as m,b9 as _,aE as b,aH as e,bJ as a,a9 as x,ac as g,bh as l,ak as T,aC as v}from"./index-Dg4NaXsE.js";/* empty css *//* empty css */import{R as s}from"./ReflectionManagerPanel-BZQZIz4T.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./reflection-B_glb6eT.js";import"./useMapEditStream-BgR6WvRg.js";import"./useProjectionStream-BBHmpNXC.js";const y={class:"scene-mgr-page"},I=m({__name:"SceneManagerView",setup(f){const r=l("site"),o=l(null),p=l(null),c=l(null);function u(t){(t==="site"?o.value:t==="track"?p.value:t==="special"?c.value:null)?.refresh?.()}return(t,n)=>{const i=x,d=g;return _(),b("div",y,[e(d,{modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=k=>r.value=k),type:"border-card",class:"scene-tabs admin-tabs",onTabChange:u},{default:a(()=>[e(i,{label:"站点",name:"site"},{default:a(()=>[e(s,{ref_key:"sitePanelRef",ref:o,kind:"site","kind-label":"站点",title:"站点管理(Site / UISite,含禁用/启用、必空点等动作)","empty-text":"当前没有站点;点击右上角「新建站点」按 x/y 坐标添加。"},null,512)]),_:1}),e(i,{label:"路径",name:"track"},{default:a(()=>[e(s,{ref_key:"trackPanelRef",ref:p,kind:"track","kind-label":"路径",title:"路径管理(Track / UITrack,含方向、冲突、投影、二分等动作)","empty-text":"当前没有路径;点击右上角「新建路径」选起止站点添加。"},null,512)]),_:1}),e(i,{label:"装饰物",name:"special"},{default:a(()=>[e(s,{ref_key:"specialPanelRef",ref:c,kind:"special","kind-label":"装饰物",title:"装饰物管理(UI_Image / UI_Text / UI_Model)","empty-text":"当前没有装饰物;新建图片/文本/模型可用底部按钮,或先在地图编辑里上传资产。"},null,512)]),_:1})]),_:1},8,["modelValue"])])}}}),P=T(I,[["__scopeId","data-v-ce41515a"]]),Y=m({__name:"TrackTableView",setup(f){return(r,o)=>(_(),v(P))}});export{Y as default}; diff --git a/MiGu.Server/wwwroot/assets/TrafficRuleView-CZpyEJOL.js b/MiGu.Server/wwwroot/assets/TrafficRuleView-CZpyEJOL.js deleted file mode 100644 index 3eab714..0000000 --- a/MiGu.Server/wwwroot/assets/TrafficRuleView-CZpyEJOL.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as m,aC as d,bJ as e,bt as _,b9 as c,aH as a,ac as f,a9 as b,aa as u,ab as I,aG as s,bq as p,j as w}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import{C as T}from"./ConfigPageBase-MHa7yfOO.js";/* empty css *//* empty css *//* empty css */import"./PermissionGuard-BlMEkqrL.js";/* empty css */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const H=m({__name:"TrafficRuleView",setup(h){return(x,C)=>{const t=I,o=u,l=b,n=f;return c(),d(T,{section:"traffic",title:"交通管制规则",description:"路口策略、区域互斥、动态让行(TrafficRule)",defaults:_(w)},{default:e(({payload:i})=>[a(n,{"model-value":"ix"},{default:e(()=>[a(l,{name:"ix",label:"路口策略"},{default:e(()=>[a(o,{data:i.intersections,size:"small"},{default:e(()=>[a(t,{label:"ID",prop:"id",width:"100"}),a(t,{label:"站点 IDs",prop:"siteIds"},{default:e(r=>[s(p(r.row.siteIds.join(", ")),1)]),_:1}),a(t,{label:"模式",prop:"mode",width:"100"})]),_:1},8,["data"])]),_:2},1024),a(l,{name:"mz",label:"区域互斥"},{default:e(()=>[a(o,{data:i.mutex,size:"small"},{default:e(()=>[a(t,{label:"ID",prop:"id",width:"100"}),a(t,{label:"区域 IDs",prop:"zoneIds"},{default:e(r=>[s(p(r.row.zoneIds.join(", ")),1)]),_:1})]),_:1},8,["data"])]),_:2},1024),a(l,{name:"yd",label:"动态让行"},{default:e(()=>[a(o,{data:i.yields,size:"small"},{default:e(()=>[a(t,{label:"ID",prop:"id",width:"100"}),a(t,{label:"From",prop:"from",width:"140"}),a(t,{label:"To",prop:"to",width:"140"}),a(t,{label:"条件",prop:"condition"})]),_:1},8,["data"])]),_:2},1024)]),_:2},1024)]),_:1},8,["defaults"])}}});export{H as default}; diff --git a/MiGu.Server/wwwroot/assets/VehicleHubView-1cdDkq5N.js b/MiGu.Server/wwwroot/assets/VehicleHubView-BC4ONtdY.js similarity index 71% rename from MiGu.Server/wwwroot/assets/VehicleHubView-1cdDkq5N.js rename to MiGu.Server/wwwroot/assets/VehicleHubView-BC4ONtdY.js index 8ecb1c4..4e009be 100644 --- a/MiGu.Server/wwwroot/assets/VehicleHubView-1cdDkq5N.js +++ b/MiGu.Server/wwwroot/assets/VehicleHubView-BC4ONtdY.js @@ -1 +1 @@ -import{aI as ee,b9 as M,aE as B,b3 as X,aB as l,aH as t,$ as Le,bq as b,bL as Pe,I as ve,bJ as n,r as ce,bt as p,b1 as Re,K as _e,J as be,aG as _,a8 as he,Q as we,bC as ze,aA as Ne,av as He,bH as We,ay as qe,ax as C,Y as le,X as q,ak as de,b as R,bh as F,b7 as ue,ad as je,bi as ge,bc as Je,as as Ge,bK as ye,bA as Ce,aC as j,aD as re,ai as Y,bj as Z,R as fe,aK as Ke,a4 as Ie,Z as Ve,L as ke,N as Qe,O as Xe,a5 as Ye,H as Ze,S as et,k as tt,E as at,ac as $e,a9 as Me,C as lt,F as nt,aU as ot,b8 as st,bp as me,bv as it,bI as pe,bw as rt,bx as ct,bn as dt,am as ut}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as ft}from"./reflection-B_glb6eT.js";import{u as xe,C as Ee}from"./ConfigPageBase-MHa7yfOO.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css */import{l as mt}from"./projection-BMms551H.js";import{u as pt}from"./useProjectionStream-BBHmpNXC.js";/* empty css *//* empty css */import"./PermissionGuard-BlMEkqrL.js";import"./monitorConfigCache-BigdkiFw.js";const vt={online:"OnlineCar",offline:"OfflineCar",repair:"Repair",blown:"Blown"};async function Ae(s,d){const o=vt[d];if(!o)return!1;try{return await ft.execute("car",s,o),!0}catch{return!1}}function _t(s,d){const o=s??(d?`http://${d}:8081`:null);o&&window.open(o,"_blank","noopener,noreferrer")}const bt={class:"battery-strip"},ht={class:"card-head"},wt={class:"title-block"},gt={class:"vid"},yt=["title"],Ct={class:"card-body"},It={class:"thumb"},Vt={class:"metrics"},kt={class:"metric-row"},$t={class:"value mono"},Mt={class:"metric-row"},xt={class:"metric-row"},Et={class:"metric-row"},At={class:"value"},Ft={class:"metric-row"},St={class:"value"},Ut={class:"icon-grid"},Bt={class:"icon-cell",title:"CPU"},Ot={class:"icon-cell",title:"内存"},Tt={class:"icon-cell",title:"报警"},Dt={class:"icon-cell",title:"连接"},Lt={class:"card-foot"},Pt=ee({__name:"VehicleHealthCard",props:{vehicle:{},selected:{type:Boolean},canWrite:{type:Boolean}},emits:["select","maintenanceChanged"],setup(s,{emit:d}){const o=s,k=d,f={idle:"空闲",running:"运行",charging:"充电",paused:"暂停",fault:"故障",offline:"离线"},w=C(()=>f[o.vehicle.state]??o.vehicle.state),g=C(()=>{const e=o.vehicle.batterySoc??0,a=e>1?e:e*100;return Math.max(0,Math.min(100,Math.round(a)))}),x=C(()=>{const e=g.value;return e<20?"#f56c6c":e<50?"#e6a23c":"#67c23a"}),v=C(()=>o.vehicle.maintenanceMode==="online"),U=C(()=>({"is-selected":o.selected,"is-alarm":o.vehicle.isAlarmActive,"is-offline":o.vehicle.maintenanceMode==="offline"||o.vehicle.state==="offline","is-maintenance":o.vehicle.maintenanceMode==="repair"||o.vehicle.maintenanceMode==="blown","is-unreachable":o.vehicle.reachable===!1})),u=C(()=>{const e=o.vehicle.latencyMs;return e==null?"—":o.vehicle.reachable===!1?"超时":`${e} ms`}),y=C(()=>{const e=o.vehicle.latencyMs;return o.vehicle.reachable===!1?"danger":e!=null&&e>80?"warn":""}),I=C(()=>{const e=o.vehicle.faultRatePercent;return e==null?"—":`${e.toFixed(2)}%`}),H=C(()=>{const e=o.vehicle.faultRatePercent??0;return e>=5?"danger":e>=1?"warn":""}),O=C(()=>{const e=o.vehicle.cpuPercent;return e!=null?`${Math.round(e)}%`:"—"}),L=C(()=>{const e=o.vehicle.memPercent;return e!=null?`${Math.round(e)}%`:"—"});function z(){k("select",o.vehicle.id)}function T(e){e.target.closest(".head-actions")||_t(o.vehicle.onboardUrl,o.vehicle.ip)}async function S(e){const a=o.vehicle.rawId??parseInt(o.vehicle.id.replace(/\D/g,""),10);if(!Number.isFinite(a))return;await Ae(a,e)?(q.success("维护状态已更新"),k("maintenanceChanged")):q.error("维护操作失败")}async function c(e){if(!o.canWrite)return;const a=e?"online":"offline";try{await le.confirm(e?"确认将车辆上线?":"确认将车辆下线维护?","维护确认",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消"}),await S(a)}catch{}}async function i(e){if(!o.canWrite)return;const a=e;if(a==="blown"){try{await le.confirm("返厂检修将停止调度并清空站点,确认?","危险操作",{type:"error",confirmButtonText:"确定",cancelButtonText:"取消"}),await S(a)}catch{}return}if(a==="repair"){try{await le.confirm("现场检修:不调度但仍刷新状态,确认?","维护确认",{type:"warning"}),await S(a)}catch{}return}await S(a)}return(e,a)=>{const m=Le,N=ce,D=be,G=_e,K=ve,Q=he,V=we;return M(),B("div",{class:X(["vehicle-health-card",U.value]),onClick:z,onDblclick:T},[l("div",bt,[t(m,{percentage:g.value,"stroke-width":4,"show-text":!1,color:x.value},null,8,["percentage","color"])]),l("div",ht,[l("div",wt,[l("span",gt,b(s.vehicle.id),1),l("span",{class:"vname",title:s.vehicle.name},b(s.vehicle.name),9,yt)]),l("div",{class:"head-actions",onClick:a[1]||(a[1]=Pe(()=>{},["stop"]))},[t(K,{trigger:"click",onCommand:i},{dropdown:n(()=>[t(G,null,{default:n(()=>[t(D,{command:"online"},{default:n(()=>[...a[2]||(a[2]=[_("上线",-1)])]),_:1}),t(D,{command:"offline"},{default:n(()=>[...a[3]||(a[3]=[_("下线维护",-1)])]),_:1}),t(D,{command:"repair"},{default:n(()=>[...a[4]||(a[4]=[_("现场检修",-1)])]),_:1}),t(D,{command:"blown",divided:""},{default:n(()=>[...a[5]||(a[5]=[_("返厂检修",-1)])]),_:1})]),_:1})]),default:n(()=>[t(N,{size:"small",text:"",icon:p(Re)},null,8,["icon"])]),_:1}),t(Q,{"model-value":v.value,size:"small",disabled:!s.canWrite,"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:a[0]||(a[0]=J=>c(!!J))},null,8,["model-value","disabled"])])]),l("div",Ct,[l("div",It,[t(V,{size:36},{default:n(()=>[t(p(ze))]),_:1})]),l("div",Vt,[l("div",kt,[a[6]||(a[6]=l("span",{class:"label"},"IP",-1)),l("span",$t,b(s.vehicle.ip??"—"),1)]),l("div",Mt,[a[7]||(a[7]=l("span",{class:"label"},"延迟",-1)),l("span",{class:X(["value",y.value])},b(u.value),3)]),l("div",xt,[a[8]||(a[8]=l("span",{class:"label"},"故障率",-1)),l("span",{class:X(["value",H.value])},b(I.value),3)]),l("div",Et,[a[9]||(a[9]=l("span",{class:"label"},"群组",-1)),l("span",At,b(s.vehicle.group??"—"),1)]),l("div",Ft,[a[10]||(a[10]=l("span",{class:"label"},"状态",-1)),l("span",St,b(s.vehicle.lstatus??w.value),1)])])]),l("div",Ut,[l("div",Bt,[t(V,null,{default:n(()=>[t(p(Ne))]),_:1}),l("span",null,b(O.value),1)]),l("div",Ot,[t(V,null,{default:n(()=>[t(p(He))]),_:1}),l("span",null,b(L.value),1)]),l("div",Tt,[t(V,{class:X({"is-alarm":s.vehicle.isAlarmActive})},{default:n(()=>[t(p(We))]),_:1},8,["class"]),l("span",null,b(s.vehicle.isAlarmActive?"报警":"正常"),1)]),l("div",Dt,[t(V,{class:X({"is-down":s.vehicle.reachable===!1})},{default:n(()=>[t(p(qe))]),_:1},8,["class"]),l("span",null,b(s.vehicle.reachable===!1?"不可达":"可达"),1)])]),l("div",Lt,[l("span",null,"电量 "+b(g.value)+"%",1),a[11]||(a[11]=l("span",{class:"hint"},"双击打开车载界面",-1))])],34)}}}),Rt=de(Pt,[["__scopeId","data-v-30c5a691"]]),ae=F([]),ie=F(!1);function Fe(){const s=xe();async function d(f=!1){ie.value=!0;try{const g=(await s.load("fleet",f)).payload??R;ae.value=JSON.parse(JSON.stringify(g.groups??[]))}finally{ie.value=!1}}function o(f){for(const w of ae.value)if(w.carIds.includes(f))return w.name||w.id}function k(f){for(const w of ae.value)if(w.carIds.includes(f))return w.region||void 0}return{groups:ae,loading:ie,reload:d,fleetNameForCarId:o,regionForCarId:k}}const zt={class:"fleet-alloc"},Nt={class:"fa-header"},Ht={class:"fa-body"},Wt={class:"fc-row"},qt={key:0,class:"fa-note"},jt=ee({__name:"FleetAllocationPanel",props:{cars:{},canWrite:{type:Boolean}},emits:["saved"],setup(s,{emit:d}){const o=s,k=d,f=xe(),{reload:w}=Fe(),g=F(!1),x=F(!1),v=F(!1),U=F({ota:R.ota,batchOps:R.batchOps,networkDiag:R.networkDiag}),u=F([]);function y(){v.value=!0}const I=C(()=>{const i=new Map;for(const e of o.cars)i.set(e.id,e.name??e.id);return i});function H(i){const e=new Set;for(const a of u.value)if(a!==i)for(const m of a.carIds)e.add(m);return o.cars.map(a=>({id:a.id,label:a.name&&a.name!==a.id?`${a.id} · ${a.name}`:a.id,takenByOther:e.has(a.id)}))}const O=C(()=>{const i=I.value,e=[];for(const a of u.value)for(const m of a.carIds)!i.has(m)&&!e.includes(m)&&e.push(m);return e});function L(){const i=new Set(u.value.map(m=>m.id));let e=u.value.length+1,a=`G-${e}`;for(;i.has(a);)e+=1,a=`G-${e}`;return a}function z(){u.value.push({id:L(),name:"新车队",floor:"",region:"",carIds:[]}),y()}function T(i){u.value.splice(i,1),y()}async function S(i=!1){g.value=!0;try{const a=(await f.load("fleet",i)).payload??R;U.value={ota:a.ota??R.ota,batchOps:a.batchOps??R.batchOps,networkDiag:a.networkDiag??R.networkDiag},u.value=JSON.parse(JSON.stringify(a.groups??[])),v.value=!1,i&&q.success("已重载车队配置")}catch(e){q.error(`加载车队配置失败:${e instanceof Error?e.message:String(e)}`)}finally{g.value=!1}}async function c(){x.value=!0;try{const i={...U.value,groups:JSON.parse(JSON.stringify(u.value))},e=await f.save("fleet",i);v.value=!1,await w(!0),k("saved"),q.success(`车队分配已保存 v${e.version}`)}catch(i){q.error(`保存失败:${i instanceof Error?i.message:String(i)}`)}finally{x.value=!1}}return ue(()=>S()),(i,e)=>{const a=je,m=ce,N=ke,D=fe,G=Ve,K=Ie,Q=Ce;return M(),B("section",zt,[l("div",Nt,[e[5]||(e[5]=l("span",{class:"fa-title"},"车队分配",-1)),t(a,{size:"small",type:"info",effect:"plain"},{default:n(()=>[...e[1]||(e[1]=[_("区域管理",-1)])]),_:1}),e[6]||(e[6]=l("span",{class:"fa-sub"},"将车辆分配到车队,并设定车队名称 / 区域 / 楼层",-1)),e[7]||(e[7]=l("div",{class:"spacer"},null,-1)),t(m,{size:"small",icon:p(ge),loading:g.value,onClick:e[0]||(e[0]=V=>S(!0))},{default:n(()=>[...e[2]||(e[2]=[_("重载",-1)])]),_:1},8,["icon","loading"]),t(m,{size:"small",icon:p(Je),disabled:!s.canWrite,onClick:z},{default:n(()=>[...e[3]||(e[3]=[_("新建车队",-1)])]),_:1},8,["icon","disabled"]),t(m,{size:"small",type:"primary",icon:p(Ge),loading:x.value,disabled:!s.canWrite||!v.value,onClick:c},{default:n(()=>[...e[4]||(e[4]=[_(" 保存 ",-1)])]),_:1},8,["icon","loading","disabled"])]),ye((M(),B("div",Ht,[u.value.length?re("",!0):(M(),j(N,{key:0,description:"暂无车队,点击「新建车队」开始分配"})),(M(!0),B(Y,null,Z(u.value,(V,J)=>(M(),B("div",{key:V.id,class:"fleet-card"},[l("div",Wt,[t(D,{modelValue:V.name,"onUpdate:modelValue":A=>V.name=A,size:"small",class:"fc-name",placeholder:"车队名称",disabled:!s.canWrite,onInput:y},{prepend:n(()=>[...e[8]||(e[8]=[_("名称",-1)])]),_:1},8,["modelValue","onUpdate:modelValue","disabled"]),t(D,{modelValue:V.region,"onUpdate:modelValue":A=>V.region=A,size:"small",class:"fc-region",placeholder:"区域",disabled:!s.canWrite,onInput:y},{prepend:n(()=>[...e[9]||(e[9]=[_("区域",-1)])]),_:1},8,["modelValue","onUpdate:modelValue","disabled"]),t(D,{modelValue:V.floor,"onUpdate:modelValue":A=>V.floor=A,size:"small",class:"fc-floor",placeholder:"楼层",disabled:!s.canWrite,onInput:y},{prepend:n(()=>[...e[10]||(e[10]=[_("楼层",-1)])]),_:1},8,["modelValue","onUpdate:modelValue","disabled"]),t(a,{size:"small",effect:"plain"},{default:n(()=>[_(b(V.carIds.length)+" 辆",1)]),_:2},1024),t(m,{size:"small",type:"danger",text:"",icon:p(Ke),disabled:!s.canWrite,onClick:A=>T(J)},{default:n(()=>[...e[11]||(e[11]=[_(" 删除 ",-1)])]),_:1},8,["icon","disabled","onClick"])]),t(K,{modelValue:V.carIds,"onUpdate:modelValue":A=>V.carIds=A,size:"small",multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",class:"fc-cars",placeholder:"选择要分配到该车队的车辆",disabled:!s.canWrite,onChange:y},{default:n(()=>[(M(!0),B(Y,null,Z(H(V),A=>(M(),j(G,{key:A.id,label:A.label,value:A.id,disabled:A.takenByOther},null,8,["label","value","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]))),128))])),[[Q,g.value]]),O.value.length?(M(),B("p",qt," 提示:以下已分配的车辆 ID 不在当前在册车辆中:"+b(O.value.join("、")),1)):re("",!0)])}}}),Jt=de(jt,[["__scopeId","data-v-f299c1d2"]]),Gt=ee({__name:"VehicleMaintenanceView",setup(s){return(d,o)=>{const k=Ye,f=Xe,w=Ze,g=he,x=fe,v=et,U=Qe;return M(),j(Ee,{section:"vehicle",title:"车辆维护策略",description:"电量阈值、故障上报、自动报修(VehicleMaintenancePolicy)",defaults:p(tt)},{default:n(({payload:u,update:y})=>[t(U,{"label-width":"160px",model:u},{default:n(()=>[t(f,{label:"低电量阈值"},{default:n(()=>[t(k,{"model-value":u.lowBatteryThreshold*100,min:0,max:100,"format-tooltip":I=>`${I}%`,"onUpdate:modelValue":I=>y({...u,lowBatteryThreshold:(Number(I)||0)/100})},null,8,["model-value","format-tooltip","onUpdate:modelValue"])]),_:2},1024),t(f,{label:"临界电量阈值"},{default:n(()=>[t(k,{"model-value":u.criticalBatteryThreshold*100,min:0,max:100,"format-tooltip":I=>`${I}%`,"onUpdate:modelValue":I=>y({...u,criticalBatteryThreshold:(Number(I)||0)/100})},null,8,["model-value","format-tooltip","onUpdate:modelValue"])]),_:2},1024),t(w,{"content-position":"left"},{default:n(()=>[...o[0]||(o[0]=[_("故障上报",-1)])]),_:1}),t(f,{label:"启用"},{default:n(()=>[t(g,{"model-value":u.faultReport.enabled,"onUpdate:modelValue":I=>y({...u,faultReport:{...u.faultReport,enabled:!!I}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),t(f,{label:"接收邮箱"},{default:n(()=>[t(x,{"model-value":u.faultReport.emailTo.join(", "),"onUpdate:modelValue":I=>y({...u,faultReport:{...u.faultReport,emailTo:I.split(/[,\s]+/).filter(Boolean)}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),t(w,{"content-position":"left"},{default:n(()=>[...o[1]||(o[1]=[_("自动报修",-1)])]),_:1}),t(f,{label:"启用"},{default:n(()=>[t(g,{"model-value":u.autoRepair.enabled,"onUpdate:modelValue":I=>y({...u,autoRepair:{...u.autoRepair,enabled:!!I}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),t(f,{label:"冷却时间 (秒)"},{default:n(()=>[t(v,{"model-value":u.autoRepair.cooldownSec,min:0,max:86400,"onUpdate:modelValue":I=>y({...u,autoRepair:{...u.autoRepair,cooldownSec:I??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])]),_:1},8,["defaults"])}}}),Kt=ee({__name:"FleetLifecycleView",setup(s){return(d,o)=>{const k=at,f=nt,w=lt,g=Me,x=$e;return M(),j(Ee,{section:"fleet",title:"车队全生命周期",description:"分区域/跨楼层/多车协作;OTA、批量操作、网络诊断(FleetLifecycleConfig)",defaults:p(R)},{default:n(({payload:v})=>[t(k,{type:"info",closable:!1,"show-icon":"",title:"车队分配已移至「车辆运维 → 运维总览」",description:"在运维总览中可新建车队、设定名称/区域/楼层,并将车辆分配到各车队。",style:{"margin-bottom":"12px"}}),t(x,{"model-value":"ota"},{default:n(()=>[t(g,{name:"ota",label:"OTA 升级"},{default:n(()=>[t(w,{column:2,border:""},{default:n(()=>[t(f,{label:"启用"},{default:n(()=>[_(b(v.ota.enabled?"是":"否"),1)]),_:2},1024),t(f,{label:"批次大小"},{default:n(()=>[_(b(v.ota.batchSize),1)]),_:2},1024),t(f,{label:"失败回滚"},{default:n(()=>[_(b(v.ota.rollbackOnFail?"是":"否"),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(g,{name:"batch",label:"批量操作"},{default:n(()=>[t(w,{column:2,border:""},{default:n(()=>[t(f,{label:"需确认"},{default:n(()=>[_(b(v.batchOps.confirmationRequired?"是":"否"),1)]),_:2},1024),t(f,{label:"最大批量"},{default:n(()=>[_(b(v.batchOps.maxBatch),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(g,{name:"diag",label:"网络诊断"},{default:n(()=>[t(w,{column:2,border:""},{default:n(()=>[t(f,{label:"RTT 阈值 (ms)"},{default:n(()=>[_(b(v.networkDiag.rttThresholdMs),1)]),_:2},1024),t(f,{label:"丢包阈值"},{default:n(()=>[_(b(v.networkDiag.packetLossThreshold),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:1},8,["defaults"])}}});async function Qt(){const{data:s}=await ot.get("/sl/projection/fleet/health");return Array.isArray(s)?s:[]}const Xt=5e3,Yt=2e4;function Zt(s){const d=(s.lstatus??"").toLowerCase();return/返厂|blown/.test(d)?"blown":/现场检修|repair/.test(d)?"repair":/下线|offline/.test(d)||s.state==="offline"?"offline":"online"}function ea(s,d){return{...s,ip:d?.ip??s.ip,onboardUrl:d?.onboardUrl??s.onboardUrl??(s.ip?`http://${s.ip}:8081`:void 0),latencyMs:d?.latencyMs,reachable:d?.reachable,faultRatePercent:d?.faultRatePercent,isAlarmActive:d?.isAlarmActive??s.state==="fault",cpuPercent:d?.cpuPercent,memPercent:d?.memPercent,maintenanceMode:Zt(s)}}function ta(){const s=me([]),d=me([]),o=F(!1),k=F(!1),f=F(null);let w=null,g=null;const x=C(()=>{const c=new Map;for(const i of d.value)c.set(i.carId,i);return c}),v=C(()=>s.value.map(c=>{const i=c.rawId??parseInt(c.id.replace(/\D/g,""),10),e=Number.isFinite(i)?x.value.get(i):void 0;return ea(c,e)})),U=C(()=>v.value.length),u=C(()=>v.value.filter(c=>c.state!=="offline"&&c.maintenanceMode==="online").length),y=C(()=>v.value.filter(c=>c.maintenanceMode==="offline"||c.maintenanceMode==="repair"||c.maintenanceMode==="blown").length),I=C(()=>v.value.filter(c=>c.isAlarmActive).length),H=C(()=>v.value.filter(c=>c.reachable===!1).length);async function O(){o.value=!0;try{s.value=await mt()}finally{o.value=!1}}async function L(){k.value=!0;try{d.value=await Qt()}finally{k.value=!1}}async function z(){await Promise.all([O(),L()])}function T(c,i){const e=s.value.findIndex(m=>(m.rawId??parseInt(m.id.replace(/\D/g,""),10))===c);if(e<0)return;const a=[...s.value];a[e]={...a[e],...i,lastUpdate:new Date().toISOString()},s.value=a}const S=pt({extraEventKinds:["alarm","car-state"],autoConnect:!0});return S.on(c=>{if(c.kind==="car-state"&&c.payload&&typeof c.payload=="object"){const i=c.payload,e=i.rawId;e!=null&&T(e,{state:i.state,lstatus:i.lstatus})}if(c.kind==="alarm"&&c.payload&&typeof c.payload=="object"){const i=c.payload;if(i.carId!=null){const e=i.action==="raise"||i.action==="update",a=d.value.findIndex(m=>m.carId===i.carId);if(a>=0){const m=[...d.value];m[a]={...m[a],isAlarmActive:e},d.value=m}T(i.carId,{state:e?"fault":void 0})}}}),ue(()=>{z(),w=setInterval(()=>void O(),Xt),g=setInterval(()=>void L(),Yt)}),st(()=>{w&&clearInterval(w),g&&clearInterval(g),S.disconnect()}),{cardModels:v,loading:o,healthLoading:k,selectedId:f,totalCount:U,onlineCount:u,maintenanceCount:y,alarmCount:I,unreachableCount:H,refreshAll:z,loadCars:O,loadHealth:L}}const aa={class:"vehicle-hub-page"},la={class:"overview-pane"},na={class:"hub-toolbar"},oa={class:"stats-row"},sa={class:"stat"},ia={class:"num"},ra={class:"stat online"},ca={class:"num"},da={class:"stat warn"},ua={class:"num"},fa={class:"stat danger"},ma={class:"num"},pa={class:"stat muted"},va={class:"num"},_a={class:"filters-row"},ba={class:"card-grid"},ha={class:"config-pane"},wa={class:"config-pane"},ga=ee({__name:"VehicleHubView",setup(s){const d=it(),o=C(()=>d.scope==="Platform"||(d.effectivePermissions?.allowedOps??[]).includes("*")),k=rt(),f=ct(),w=["overview","maintenance","fleet"];function g(){const h=k.query.tab;return typeof h=="string"&&w.includes(h)?h:"overview"}const x=F(g());pe(x,h=>{k.query.tab!==h&&f.replace({query:{...k.query,tab:h}})}),pe(()=>k.query.tab,()=>{const h=g();h!==x.value&&(x.value=h)});const{cardModels:v,loading:U,healthLoading:u,selectedId:y,totalCount:I,onlineCount:H,maintenanceCount:O,alarmCount:L,unreachableCount:z,refreshAll:T}=ta(),{groups:S,reload:c,fleetNameForCarId:i,regionForCarId:e}=Fe();ue(()=>void c());const a=F(""),m=F(""),N=F(""),D=[{value:"idle",label:"空闲"},{value:"running",label:"运行"},{value:"charging",label:"充电"},{value:"paused",label:"暂停"},{value:"fault",label:"故障"},{value:"offline",label:"离线"}],G=C(()=>S.value.map(h=>({value:h.id,label:h.region?`${h.name}(${h.region})`:h.name||h.id})));function K(){c(!0)}function Q(h){if(!N.value)return!0;const r=S.value.find(E=>E.id===N.value);return r?r.carIds.includes(h):!1}const V=C(()=>{const h=a.value.trim().toLowerCase(),r=h?h.split(/\s+/).filter(Boolean):[];return v.value.filter(E=>{if(m.value&&E.state!==m.value||!Q(E.id))return!1;if(!r.length)return!0;const P=i(E.id),W=e(E.id),ne=[E.id,E.name,E.ip,E.group,P,W,E.lstatus].filter(Boolean).join(" ").toLowerCase();return r.every(te=>ne.includes(te))})}),J=C(()=>y.value?[y.value]:[]);async function A(h){const r=h,E=V.value.filter(P=>y.value?P.id===y.value:!0);if(E.length)try{await le.confirm(`对 ${E.length} 辆车执行「${h}」?`,"批量维护",{type:"warning"});for(const P of E){const W=P.rawId??parseInt(P.id.replace(/\D/g,""),10);Number.isFinite(W)&&await Ae(W,r)}q.success("批量操作已提交"),await T()}catch{}}return(h,r)=>{const E=fe,P=Ve,W=Ie,ne=we,te=ce,oe=be,Se=_e,Ue=ve,Be=ke,se=Me,Oe=$e,Te=Ce;return M(),B("div",aa,[t(Oe,{modelValue:x.value,"onUpdate:modelValue":r[4]||(r[4]=$=>x.value=$),class:"hub-tabs"},{default:n(()=>[t(se,{name:"overview",label:"运维总览"},{default:n(()=>[l("div",la,[l("div",na,[l("div",oa,[l("div",sa,[l("span",ia,b(p(I)),1),r[5]||(r[5]=l("span",{class:"label"},"总数",-1))]),l("div",ra,[l("span",ca,b(p(H)),1),r[6]||(r[6]=l("span",{class:"label"},"在线",-1))]),l("div",da,[l("span",ua,b(p(O)),1),r[7]||(r[7]=l("span",{class:"label"},"维护中",-1))]),l("div",fa,[l("span",ma,b(p(L)),1),r[8]||(r[8]=l("span",{class:"label"},"报警",-1))]),l("div",pa,[l("span",va,b(p(z)),1),r[9]||(r[9]=l("span",{class:"label"},"不可达",-1))])]),l("div",_a,[t(E,{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=$=>a.value=$),size:"small",clearable:"",placeholder:"搜索 ID / 名称 / IP",class:"search-input","prefix-icon":p(dt)},null,8,["modelValue","prefix-icon"]),t(W,{modelValue:m.value,"onUpdate:modelValue":r[1]||(r[1]=$=>m.value=$),size:"small",clearable:"",placeholder:"状态",class:"filter-select"},{default:n(()=>[(M(),B(Y,null,Z(D,$=>t(P,{key:$.value,label:$.label,value:$.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),t(W,{modelValue:N.value,"onUpdate:modelValue":r[2]||(r[2]=$=>N.value=$),size:"small",clearable:"",placeholder:"车队",class:"filter-select fleet-filter"},{default:n(()=>[(M(!0),B(Y,null,Z(G.value,$=>(M(),j(P,{key:$.value,label:$.label,value:$.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),t(Ue,{disabled:!o.value||!J.value.length,onCommand:A},{dropdown:n(()=>[t(Se,null,{default:n(()=>[t(oe,{command:"online"},{default:n(()=>[...r[11]||(r[11]=[_("批量上线",-1)])]),_:1}),t(oe,{command:"offline"},{default:n(()=>[...r[12]||(r[12]=[_("批量下线",-1)])]),_:1}),t(oe,{command:"repair"},{default:n(()=>[...r[13]||(r[13]=[_("批量现场检修",-1)])]),_:1})]),_:1})]),default:n(()=>[t(te,{size:"small",disabled:!o.value||!J.value.length},{default:n(()=>[r[10]||(r[10]=_(" 批量维护 ",-1)),t(ne,{class:"el-icon--right"},{default:n(()=>[t(p(ut))]),_:1})]),_:1},8,["disabled"])]),_:1},8,["disabled"]),t(te,{size:"small",icon:p(ge),loading:p(U)||p(u),onClick:p(T)},{default:n(()=>[...r[14]||(r[14]=[_(" 刷新 ",-1)])]),_:1},8,["icon","loading","onClick"])])]),ye((M(),B("div",ba,[(M(!0),B(Y,null,Z(V.value,$=>(M(),j(Rt,{key:$.id,vehicle:$,selected:p(y)===$.id,"can-write":o.value,onSelect:r[3]||(r[3]=De=>y.value=De),onMaintenanceChanged:p(T)},null,8,["vehicle","selected","can-write","onMaintenanceChanged"]))),128)),!V.value.length&&!p(U)?(M(),j(Be,{key:0,description:"无匹配车辆"})):re("",!0)])),[[Te,p(U)&&!p(v).length]]),t(Jt,{cars:p(v),"can-write":o.value,onSaved:K},null,8,["cars","can-write"]),r[15]||(r[15]=l("p",{class:"footnote"},"故障率 = 报警占用时长 ÷ 自上线以来运行时长(SimpleLite 进程内累计)",-1))])]),_:1}),t(se,{name:"maintenance",label:"维护策略",lazy:""},{default:n(()=>[l("div",ha,[t(Gt)])]),_:1}),t(se,{name:"fleet",label:"车队生命周期",lazy:""},{default:n(()=>[l("div",wa,[t(Kt)])]),_:1})]),_:1},8,["modelValue"])])}}}),Qa=de(ga,[["__scopeId","data-v-0caa3fa5"]]);export{Qa as default}; +import{aN as ee,bs as M,aG as B,bk as Q,aD as l,aK as t,$ as Le,bL as b,cb as Pe,I as ve,c8 as n,r as ce,bS as p,bi as Re,K as _e,J as be,aJ as _,a8 as he,Q as we,c1 as ze,aC as Ne,aw as We,c6 as He,az as qe,ay as C,Y as le,X as q,ak as de,b as R,bC as F,bp as ue,ad as Je,bD as ge,bv as je,at as Ge,c9 as ye,b$ as Ce,aE as J,aF as re,ai as Y,bE as Z,R as fe,aP as Ke,a4 as Ie,Z as Ve,L as ke,N as Xe,O as Qe,a5 as Ye,G as Ze,S as et,k as tt,E as at,ac as $e,a9 as Me,B as lt,C as nt,b4 as ot,br as st,bK as me,bV as it,c7 as pe,bW as rt,bX as ct,bI as dt,am as ut}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as ft}from"./reflection-BwOBPyb9.js";import{u as Ee,C as xe}from"./ConfigPageBase-CgfsngDp.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css */import{l as mt}from"./projection-BHFE6Meg.js";import{u as pt}from"./useProjectionStream-ayb6RvWW.js";/* empty css *//* empty css */import"./PermissionGuard-CR4qtxrh.js";import"./monitorConfigCache-DXn96T8F.js";const vt={online:"OnlineCar",offline:"OfflineCar",repair:"Repair",blown:"Blown"};async function Se(s,d){const o=vt[d];if(!o)return!1;try{return await ft.execute("car",s,o),!0}catch{return!1}}function _t(s,d){const o=s??(d?`http://${d}:8081`:null);o&&window.open(o,"_blank","noopener,noreferrer")}const bt={class:"battery-strip"},ht={class:"card-head"},wt={class:"title-block"},gt={class:"vid"},yt=["title"],Ct={class:"card-body"},It={class:"thumb"},Vt={class:"metrics"},kt={class:"metric-row"},$t={class:"value mono"},Mt={class:"metric-row"},Et={class:"metric-row"},xt={class:"metric-row"},St={class:"value"},Ft={class:"metric-row"},At={class:"value"},Ut={class:"icon-grid"},Bt={class:"icon-cell",title:"CPU"},Ot={class:"icon-cell",title:"内存"},Tt={class:"icon-cell",title:"报警"},Dt={class:"icon-cell",title:"连接"},Lt={class:"card-foot"},Pt=ee({__name:"VehicleHealthCard",props:{vehicle:{},selected:{type:Boolean},canWrite:{type:Boolean}},emits:["select","maintenanceChanged"],setup(s,{emit:d}){const o=s,k=d,f={idle:"空闲",running:"运行",charging:"充电",paused:"暂停",fault:"故障",offline:"离线"},w=C(()=>f[o.vehicle.state]??o.vehicle.state),g=C(()=>{const e=o.vehicle.batterySoc??0,a=e>1?e:e*100;return Math.max(0,Math.min(100,Math.round(a)))}),E=C(()=>{const e=g.value;return e<20?"#f56c6c":e<50?"#e6a23c":"#67c23a"}),v=C(()=>o.vehicle.maintenanceMode==="online"),U=C(()=>({"is-selected":o.selected,"is-alarm":o.vehicle.isAlarmActive,"is-offline":o.vehicle.maintenanceMode==="offline"||o.vehicle.state==="offline","is-maintenance":o.vehicle.maintenanceMode==="repair"||o.vehicle.maintenanceMode==="blown","is-unreachable":o.vehicle.reachable===!1})),u=C(()=>{const e=o.vehicle.latencyMs;return e==null?"—":o.vehicle.reachable===!1?"超时":`${e} ms`}),y=C(()=>{const e=o.vehicle.latencyMs;return o.vehicle.reachable===!1?"danger":e!=null&&e>80?"warn":""}),I=C(()=>{const e=o.vehicle.faultRatePercent;return e==null?"—":`${e.toFixed(2)}%`}),W=C(()=>{const e=o.vehicle.faultRatePercent??0;return e>=5?"danger":e>=1?"warn":""}),O=C(()=>{const e=o.vehicle.cpuPercent;return e!=null?`${Math.round(e)}%`:"—"}),L=C(()=>{const e=o.vehicle.memPercent;return e!=null?`${Math.round(e)}%`:"—"});function z(){k("select",o.vehicle.id)}function T(e){e.target.closest(".head-actions")||_t(o.vehicle.onboardUrl,o.vehicle.ip)}async function A(e){const a=o.vehicle.rawId??parseInt(o.vehicle.id.replace(/\D/g,""),10);if(!Number.isFinite(a))return;await Se(a,e)?(q.success("维护状态已更新"),k("maintenanceChanged")):q.error("维护操作失败")}async function c(e){if(!o.canWrite)return;const a=e?"online":"offline";try{await le.confirm(e?"确认将车辆上线?":"确认将车辆下线维护?","维护确认",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消"}),await A(a)}catch{}}async function i(e){if(!o.canWrite)return;const a=e;if(a==="blown"){try{await le.confirm("返厂检修将停止调度并清空站点,确认?","危险操作",{type:"error",confirmButtonText:"确定",cancelButtonText:"取消"}),await A(a)}catch{}return}if(a==="repair"){try{await le.confirm("现场检修:不调度但仍刷新状态,确认?","维护确认",{type:"warning"}),await A(a)}catch{}return}await A(a)}return(e,a)=>{const m=Le,N=ce,D=be,G=_e,K=ve,X=he,V=we;return M(),B("div",{class:Q(["vehicle-health-card",U.value]),onClick:z,onDblclick:T},[l("div",bt,[t(m,{percentage:g.value,"stroke-width":4,"show-text":!1,color:E.value},null,8,["percentage","color"])]),l("div",ht,[l("div",wt,[l("span",gt,b(s.vehicle.id),1),l("span",{class:"vname",title:s.vehicle.name},b(s.vehicle.name),9,yt)]),l("div",{class:"head-actions",onClick:a[1]||(a[1]=Pe(()=>{},["stop"]))},[t(K,{trigger:"click",onCommand:i},{dropdown:n(()=>[t(G,null,{default:n(()=>[t(D,{command:"online"},{default:n(()=>[...a[2]||(a[2]=[_("上线",-1)])]),_:1}),t(D,{command:"offline"},{default:n(()=>[...a[3]||(a[3]=[_("下线维护",-1)])]),_:1}),t(D,{command:"repair"},{default:n(()=>[...a[4]||(a[4]=[_("现场检修",-1)])]),_:1}),t(D,{command:"blown",divided:""},{default:n(()=>[...a[5]||(a[5]=[_("返厂检修",-1)])]),_:1})]),_:1})]),default:n(()=>[t(N,{size:"small",text:"",icon:p(Re)},null,8,["icon"])]),_:1}),t(X,{"model-value":v.value,size:"small",disabled:!s.canWrite,"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:a[0]||(a[0]=j=>c(!!j))},null,8,["model-value","disabled"])])]),l("div",Ct,[l("div",It,[t(V,{size:36},{default:n(()=>[t(p(ze))]),_:1})]),l("div",Vt,[l("div",kt,[a[6]||(a[6]=l("span",{class:"label"},"IP",-1)),l("span",$t,b(s.vehicle.ip??"—"),1)]),l("div",Mt,[a[7]||(a[7]=l("span",{class:"label"},"延迟",-1)),l("span",{class:Q(["value",y.value])},b(u.value),3)]),l("div",Et,[a[8]||(a[8]=l("span",{class:"label"},"故障率",-1)),l("span",{class:Q(["value",W.value])},b(I.value),3)]),l("div",xt,[a[9]||(a[9]=l("span",{class:"label"},"群组",-1)),l("span",St,b(s.vehicle.group??"—"),1)]),l("div",Ft,[a[10]||(a[10]=l("span",{class:"label"},"状态",-1)),l("span",At,b(s.vehicle.lstatus??w.value),1)])])]),l("div",Ut,[l("div",Bt,[t(V,null,{default:n(()=>[t(p(Ne))]),_:1}),l("span",null,b(O.value),1)]),l("div",Ot,[t(V,null,{default:n(()=>[t(p(We))]),_:1}),l("span",null,b(L.value),1)]),l("div",Tt,[t(V,{class:Q({"is-alarm":s.vehicle.isAlarmActive})},{default:n(()=>[t(p(He))]),_:1},8,["class"]),l("span",null,b(s.vehicle.isAlarmActive?"报警":"正常"),1)]),l("div",Dt,[t(V,{class:Q({"is-down":s.vehicle.reachable===!1})},{default:n(()=>[t(p(qe))]),_:1},8,["class"]),l("span",null,b(s.vehicle.reachable===!1?"不可达":"可达"),1)])]),l("div",Lt,[l("span",null,"电量 "+b(g.value)+"%",1),a[11]||(a[11]=l("span",{class:"hint"},"双击打开车载界面",-1))])],34)}}}),Rt=de(Pt,[["__scopeId","data-v-30c5a691"]]),ae=F([]),ie=F(!1);function Fe(){const s=Ee();async function d(f=!1){ie.value=!0;try{const g=(await s.load("fleet",f)).payload??R;ae.value=JSON.parse(JSON.stringify(g.groups??[]))}finally{ie.value=!1}}function o(f){for(const w of ae.value)if(w.carIds.includes(f))return w.name||w.id}function k(f){for(const w of ae.value)if(w.carIds.includes(f))return w.region||void 0}return{groups:ae,loading:ie,reload:d,fleetNameForCarId:o,regionForCarId:k}}const zt={class:"fleet-alloc"},Nt={class:"fa-header"},Wt={class:"fa-body"},Ht={class:"fc-row"},qt={key:0,class:"fa-note"},Jt=ee({__name:"FleetAllocationPanel",props:{cars:{},canWrite:{type:Boolean}},emits:["saved"],setup(s,{emit:d}){const o=s,k=d,f=Ee(),{reload:w}=Fe(),g=F(!1),E=F(!1),v=F(!1),U=F({ota:R.ota,batchOps:R.batchOps,networkDiag:R.networkDiag}),u=F([]);function y(){v.value=!0}const I=C(()=>{const i=new Map;for(const e of o.cars)i.set(e.id,e.name??e.id);return i});function W(i){const e=new Set;for(const a of u.value)if(a!==i)for(const m of a.carIds)e.add(m);return o.cars.map(a=>({id:a.id,label:a.name&&a.name!==a.id?`${a.id} · ${a.name}`:a.id,takenByOther:e.has(a.id)}))}const O=C(()=>{const i=I.value,e=[];for(const a of u.value)for(const m of a.carIds)!i.has(m)&&!e.includes(m)&&e.push(m);return e});function L(){const i=new Set(u.value.map(m=>m.id));let e=u.value.length+1,a=`G-${e}`;for(;i.has(a);)e+=1,a=`G-${e}`;return a}function z(){u.value.push({id:L(),name:"新车队",floor:"",region:"",carIds:[]}),y()}function T(i){u.value.splice(i,1),y()}async function A(i=!1){g.value=!0;try{const a=(await f.load("fleet",i)).payload??R;U.value={ota:a.ota??R.ota,batchOps:a.batchOps??R.batchOps,networkDiag:a.networkDiag??R.networkDiag},u.value=JSON.parse(JSON.stringify(a.groups??[])),v.value=!1,i&&q.success("已重载车队配置")}catch(e){q.error(`加载车队配置失败:${e instanceof Error?e.message:String(e)}`)}finally{g.value=!1}}async function c(){E.value=!0;try{const i={...U.value,groups:JSON.parse(JSON.stringify(u.value))},e=await f.save("fleet",i);v.value=!1,await w(!0),k("saved"),q.success(`车队分配已保存 v${e.version}`)}catch(i){q.error(`保存失败:${i instanceof Error?i.message:String(i)}`)}finally{E.value=!1}}return ue(()=>A()),(i,e)=>{const a=Je,m=ce,N=ke,D=fe,G=Ve,K=Ie,X=Ce;return M(),B("section",zt,[l("div",Nt,[e[5]||(e[5]=l("span",{class:"fa-title"},"车队分配",-1)),t(a,{size:"small",type:"info",effect:"plain"},{default:n(()=>[...e[1]||(e[1]=[_("区域管理",-1)])]),_:1}),e[6]||(e[6]=l("span",{class:"fa-sub"},"将车辆分配到车队,并设定车队名称 / 区域 / 楼层",-1)),e[7]||(e[7]=l("div",{class:"spacer"},null,-1)),t(m,{size:"small",icon:p(ge),loading:g.value,onClick:e[0]||(e[0]=V=>A(!0))},{default:n(()=>[...e[2]||(e[2]=[_("重载",-1)])]),_:1},8,["icon","loading"]),t(m,{size:"small",icon:p(je),disabled:!s.canWrite,onClick:z},{default:n(()=>[...e[3]||(e[3]=[_("新建车队",-1)])]),_:1},8,["icon","disabled"]),t(m,{size:"small",type:"primary",icon:p(Ge),loading:E.value,disabled:!s.canWrite||!v.value,onClick:c},{default:n(()=>[...e[4]||(e[4]=[_(" 保存 ",-1)])]),_:1},8,["icon","loading","disabled"])]),ye((M(),B("div",Wt,[u.value.length?re("",!0):(M(),J(N,{key:0,description:"暂无车队,点击「新建车队」开始分配"})),(M(!0),B(Y,null,Z(u.value,(V,j)=>(M(),B("div",{key:V.id,class:"fleet-card"},[l("div",Ht,[t(D,{modelValue:V.name,"onUpdate:modelValue":S=>V.name=S,size:"small",class:"fc-name",placeholder:"车队名称",disabled:!s.canWrite,onInput:y},{prepend:n(()=>[...e[8]||(e[8]=[_("名称",-1)])]),_:1},8,["modelValue","onUpdate:modelValue","disabled"]),t(D,{modelValue:V.region,"onUpdate:modelValue":S=>V.region=S,size:"small",class:"fc-region",placeholder:"区域",disabled:!s.canWrite,onInput:y},{prepend:n(()=>[...e[9]||(e[9]=[_("区域",-1)])]),_:1},8,["modelValue","onUpdate:modelValue","disabled"]),t(D,{modelValue:V.floor,"onUpdate:modelValue":S=>V.floor=S,size:"small",class:"fc-floor",placeholder:"楼层",disabled:!s.canWrite,onInput:y},{prepend:n(()=>[...e[10]||(e[10]=[_("楼层",-1)])]),_:1},8,["modelValue","onUpdate:modelValue","disabled"]),t(a,{size:"small",effect:"plain"},{default:n(()=>[_(b(V.carIds.length)+" 辆",1)]),_:2},1024),t(m,{size:"small",type:"danger",text:"",icon:p(Ke),disabled:!s.canWrite,onClick:S=>T(j)},{default:n(()=>[...e[11]||(e[11]=[_(" 删除 ",-1)])]),_:1},8,["icon","disabled","onClick"])]),t(K,{modelValue:V.carIds,"onUpdate:modelValue":S=>V.carIds=S,size:"small",multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",class:"fc-cars",placeholder:"选择要分配到该车队的车辆",disabled:!s.canWrite,onChange:y},{default:n(()=>[(M(!0),B(Y,null,Z(W(V),S=>(M(),J(G,{key:S.id,label:S.label,value:S.id,disabled:S.takenByOther},null,8,["label","value","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]))),128))])),[[X,g.value]]),O.value.length?(M(),B("p",qt," 提示:以下已分配的车辆 ID 不在当前在册车辆中:"+b(O.value.join("、")),1)):re("",!0)])}}}),jt=de(Jt,[["__scopeId","data-v-f299c1d2"]]),Gt=ee({__name:"VehicleMaintenanceView",setup(s){return(d,o)=>{const k=Ye,f=Qe,w=Ze,g=he,E=fe,v=et,U=Xe;return M(),J(xe,{section:"vehicle",title:"车辆维护策略",description:"电量阈值、故障上报、自动报修(VehicleMaintenancePolicy)",defaults:p(tt)},{default:n(({payload:u,update:y})=>[t(U,{"label-width":"160px",model:u},{default:n(()=>[t(f,{label:"低电量阈值"},{default:n(()=>[t(k,{"model-value":u.lowBatteryThreshold*100,min:0,max:100,"format-tooltip":I=>`${I}%`,"onUpdate:modelValue":I=>y({...u,lowBatteryThreshold:(Number(I)||0)/100})},null,8,["model-value","format-tooltip","onUpdate:modelValue"])]),_:2},1024),t(f,{label:"临界电量阈值"},{default:n(()=>[t(k,{"model-value":u.criticalBatteryThreshold*100,min:0,max:100,"format-tooltip":I=>`${I}%`,"onUpdate:modelValue":I=>y({...u,criticalBatteryThreshold:(Number(I)||0)/100})},null,8,["model-value","format-tooltip","onUpdate:modelValue"])]),_:2},1024),t(w,{"content-position":"left"},{default:n(()=>[...o[0]||(o[0]=[_("故障上报",-1)])]),_:1}),t(f,{label:"启用"},{default:n(()=>[t(g,{"model-value":u.faultReport.enabled,"onUpdate:modelValue":I=>y({...u,faultReport:{...u.faultReport,enabled:!!I}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),t(f,{label:"接收邮箱"},{default:n(()=>[t(E,{"model-value":u.faultReport.emailTo.join(", "),"onUpdate:modelValue":I=>y({...u,faultReport:{...u.faultReport,emailTo:I.split(/[,\s]+/).filter(Boolean)}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),t(w,{"content-position":"left"},{default:n(()=>[...o[1]||(o[1]=[_("自动报修",-1)])]),_:1}),t(f,{label:"启用"},{default:n(()=>[t(g,{"model-value":u.autoRepair.enabled,"onUpdate:modelValue":I=>y({...u,autoRepair:{...u.autoRepair,enabled:!!I}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),t(f,{label:"冷却时间 (秒)"},{default:n(()=>[t(v,{"model-value":u.autoRepair.cooldownSec,min:0,max:86400,"onUpdate:modelValue":I=>y({...u,autoRepair:{...u.autoRepair,cooldownSec:I??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])]),_:1},8,["defaults"])}}}),Kt=ee({__name:"FleetLifecycleView",setup(s){return(d,o)=>{const k=at,f=nt,w=lt,g=Me,E=$e;return M(),J(xe,{section:"fleet",title:"车队全生命周期",description:"分区域/跨楼层/多车协作;OTA、批量操作、网络诊断(FleetLifecycleConfig)",defaults:p(R)},{default:n(({payload:v})=>[t(k,{type:"info",closable:!1,"show-icon":"",title:"车队分配已移至「车辆运维 → 运维总览」",description:"在运维总览中可新建车队、设定名称/区域/楼层,并将车辆分配到各车队。",style:{"margin-bottom":"12px"}}),t(E,{"model-value":"ota"},{default:n(()=>[t(g,{name:"ota",label:"OTA 升级"},{default:n(()=>[t(w,{column:2,border:""},{default:n(()=>[t(f,{label:"启用"},{default:n(()=>[_(b(v.ota.enabled?"是":"否"),1)]),_:2},1024),t(f,{label:"批次大小"},{default:n(()=>[_(b(v.ota.batchSize),1)]),_:2},1024),t(f,{label:"失败回滚"},{default:n(()=>[_(b(v.ota.rollbackOnFail?"是":"否"),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(g,{name:"batch",label:"批量操作"},{default:n(()=>[t(w,{column:2,border:""},{default:n(()=>[t(f,{label:"需确认"},{default:n(()=>[_(b(v.batchOps.confirmationRequired?"是":"否"),1)]),_:2},1024),t(f,{label:"最大批量"},{default:n(()=>[_(b(v.batchOps.maxBatch),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(g,{name:"diag",label:"网络诊断"},{default:n(()=>[t(w,{column:2,border:""},{default:n(()=>[t(f,{label:"RTT 阈值 (ms)"},{default:n(()=>[_(b(v.networkDiag.rttThresholdMs),1)]),_:2},1024),t(f,{label:"丢包阈值"},{default:n(()=>[_(b(v.networkDiag.packetLossThreshold),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:1},8,["defaults"])}}});async function Xt(){const{data:s}=await ot.get("/sl/projection/fleet/health");return Array.isArray(s)?s:[]}const Qt=5e3,Yt=2e4;function Zt(s){const d=(s.lstatus??"").toLowerCase();return/返厂|blown/.test(d)?"blown":/现场检修|repair/.test(d)?"repair":/下线|offline/.test(d)||s.state==="offline"?"offline":"online"}function ea(s,d){return{...s,ip:d?.ip??s.ip,onboardUrl:d?.onboardUrl??s.onboardUrl??(s.ip?`http://${s.ip}:8081`:void 0),latencyMs:d?.latencyMs,reachable:d?.reachable,faultRatePercent:d?.faultRatePercent,isAlarmActive:d?.isAlarmActive??s.state==="fault",cpuPercent:d?.cpuPercent,memPercent:d?.memPercent,maintenanceMode:Zt(s)}}function ta(){const s=me([]),d=me([]),o=F(!1),k=F(!1),f=F(null);let w=null,g=null;const E=C(()=>{const c=new Map;for(const i of d.value)c.set(i.carId,i);return c}),v=C(()=>s.value.map(c=>{const i=c.rawId??parseInt(c.id.replace(/\D/g,""),10),e=Number.isFinite(i)?E.value.get(i):void 0;return ea(c,e)})),U=C(()=>v.value.length),u=C(()=>v.value.filter(c=>c.state!=="offline"&&c.maintenanceMode==="online").length),y=C(()=>v.value.filter(c=>c.maintenanceMode==="offline"||c.maintenanceMode==="repair"||c.maintenanceMode==="blown").length),I=C(()=>v.value.filter(c=>c.isAlarmActive).length),W=C(()=>v.value.filter(c=>c.reachable===!1).length);async function O(){o.value=!0;try{s.value=await mt()}finally{o.value=!1}}async function L(){k.value=!0;try{d.value=await Xt()}finally{k.value=!1}}async function z(){await Promise.all([O(),L()])}function T(c,i){const e=s.value.findIndex(m=>(m.rawId??parseInt(m.id.replace(/\D/g,""),10))===c);if(e<0)return;const a=[...s.value];a[e]={...a[e],...i,lastUpdate:new Date().toISOString()},s.value=a}const A=pt({extraEventKinds:["alarm","car-state"],autoConnect:!0});return A.on(c=>{if(c.kind==="car-state"&&c.payload&&typeof c.payload=="object"){const i=c.payload,e=i.rawId;e!=null&&T(e,{state:i.state,lstatus:i.lstatus})}if(c.kind==="alarm"&&c.payload&&typeof c.payload=="object"){const i=c.payload;if(i.carId!=null){const e=i.action==="raise"||i.action==="update",a=d.value.findIndex(m=>m.carId===i.carId);if(a>=0){const m=[...d.value];m[a]={...m[a],isAlarmActive:e},d.value=m}T(i.carId,{state:e?"fault":void 0})}}}),ue(()=>{z(),w=setInterval(()=>void O(),Qt),g=setInterval(()=>void L(),Yt)}),st(()=>{w&&clearInterval(w),g&&clearInterval(g),A.disconnect()}),{cardModels:v,loading:o,healthLoading:k,selectedId:f,totalCount:U,onlineCount:u,maintenanceCount:y,alarmCount:I,unreachableCount:W,refreshAll:z,loadCars:O,loadHealth:L}}const aa={class:"vehicle-hub-page"},la={class:"overview-pane"},na={class:"hub-toolbar"},oa={class:"stats-row"},sa={class:"stat"},ia={class:"num"},ra={class:"stat online"},ca={class:"num"},da={class:"stat warn"},ua={class:"num"},fa={class:"stat danger"},ma={class:"num"},pa={class:"stat muted"},va={class:"num"},_a={class:"filters-row"},ba={class:"card-grid"},ha={class:"config-pane"},wa={class:"config-pane"},ga=ee({__name:"VehicleHubView",setup(s){const d=it(),o=C(()=>d.scope==="Platform"||(d.effectivePermissions?.allowedOps??[]).includes("*")),k=rt(),f=ct(),w=["overview","maintenance","fleet"];function g(){const h=k.query.tab;return typeof h=="string"&&w.includes(h)?h:"overview"}const E=F(g());pe(E,h=>{k.query.tab!==h&&f.replace({query:{...k.query,tab:h}})}),pe(()=>k.query.tab,()=>{const h=g();h!==E.value&&(E.value=h)});const{cardModels:v,loading:U,healthLoading:u,selectedId:y,totalCount:I,onlineCount:W,maintenanceCount:O,alarmCount:L,unreachableCount:z,refreshAll:T}=ta(),{groups:A,reload:c,fleetNameForCarId:i,regionForCarId:e}=Fe();ue(()=>void c());const a=F(""),m=F(""),N=F(""),D=[{value:"idle",label:"空闲"},{value:"running",label:"运行"},{value:"charging",label:"充电"},{value:"paused",label:"暂停"},{value:"fault",label:"故障"},{value:"offline",label:"离线"}],G=C(()=>A.value.map(h=>({value:h.id,label:h.region?`${h.name}(${h.region})`:h.name||h.id})));function K(){c(!0)}function X(h){if(!N.value)return!0;const r=A.value.find(x=>x.id===N.value);return r?r.carIds.includes(h):!1}const V=C(()=>{const h=a.value.trim().toLowerCase(),r=h?h.split(/\s+/).filter(Boolean):[];return v.value.filter(x=>{if(m.value&&x.state!==m.value||!X(x.id))return!1;if(!r.length)return!0;const P=i(x.id),H=e(x.id),ne=[x.id,x.name,x.ip,x.group,P,H,x.lstatus].filter(Boolean).join(" ").toLowerCase();return r.every(te=>ne.includes(te))})}),j=C(()=>y.value?[y.value]:[]);async function S(h){const r=h,x=V.value.filter(P=>y.value?P.id===y.value:!0);if(x.length)try{await le.confirm(`对 ${x.length} 辆车执行「${h}」?`,"批量维护",{type:"warning"});for(const P of x){const H=P.rawId??parseInt(P.id.replace(/\D/g,""),10);Number.isFinite(H)&&await Se(H,r)}q.success("批量操作已提交"),await T()}catch{}}return(h,r)=>{const x=fe,P=Ve,H=Ie,ne=we,te=ce,oe=be,Ae=_e,Ue=ve,Be=ke,se=Me,Oe=$e,Te=Ce;return M(),B("div",aa,[t(Oe,{modelValue:E.value,"onUpdate:modelValue":r[4]||(r[4]=$=>E.value=$),class:"hub-tabs"},{default:n(()=>[t(se,{name:"overview",label:"运维总览"},{default:n(()=>[l("div",la,[l("div",na,[l("div",oa,[l("div",sa,[l("span",ia,b(p(I)),1),r[5]||(r[5]=l("span",{class:"label"},"总数",-1))]),l("div",ra,[l("span",ca,b(p(W)),1),r[6]||(r[6]=l("span",{class:"label"},"在线",-1))]),l("div",da,[l("span",ua,b(p(O)),1),r[7]||(r[7]=l("span",{class:"label"},"维护中",-1))]),l("div",fa,[l("span",ma,b(p(L)),1),r[8]||(r[8]=l("span",{class:"label"},"报警",-1))]),l("div",pa,[l("span",va,b(p(z)),1),r[9]||(r[9]=l("span",{class:"label"},"不可达",-1))])]),l("div",_a,[t(x,{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=$=>a.value=$),size:"small",clearable:"",placeholder:"搜索 ID / 名称 / IP",class:"search-input","prefix-icon":p(dt)},null,8,["modelValue","prefix-icon"]),t(H,{modelValue:m.value,"onUpdate:modelValue":r[1]||(r[1]=$=>m.value=$),size:"small",clearable:"",placeholder:"状态",class:"filter-select"},{default:n(()=>[(M(),B(Y,null,Z(D,$=>t(P,{key:$.value,label:$.label,value:$.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),t(H,{modelValue:N.value,"onUpdate:modelValue":r[2]||(r[2]=$=>N.value=$),size:"small",clearable:"",placeholder:"车队",class:"filter-select fleet-filter"},{default:n(()=>[(M(!0),B(Y,null,Z(G.value,$=>(M(),J(P,{key:$.value,label:$.label,value:$.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),t(Ue,{disabled:!o.value||!j.value.length,onCommand:S},{dropdown:n(()=>[t(Ae,null,{default:n(()=>[t(oe,{command:"online"},{default:n(()=>[...r[11]||(r[11]=[_("批量上线",-1)])]),_:1}),t(oe,{command:"offline"},{default:n(()=>[...r[12]||(r[12]=[_("批量下线",-1)])]),_:1}),t(oe,{command:"repair"},{default:n(()=>[...r[13]||(r[13]=[_("批量现场检修",-1)])]),_:1})]),_:1})]),default:n(()=>[t(te,{size:"small",disabled:!o.value||!j.value.length},{default:n(()=>[r[10]||(r[10]=_(" 批量维护 ",-1)),t(ne,{class:"el-icon--right"},{default:n(()=>[t(p(ut))]),_:1})]),_:1},8,["disabled"])]),_:1},8,["disabled"]),t(te,{size:"small",icon:p(ge),loading:p(U)||p(u),onClick:p(T)},{default:n(()=>[...r[14]||(r[14]=[_(" 刷新 ",-1)])]),_:1},8,["icon","loading","onClick"])])]),ye((M(),B("div",ba,[(M(!0),B(Y,null,Z(V.value,$=>(M(),J(Rt,{key:$.id,vehicle:$,selected:p(y)===$.id,"can-write":o.value,onSelect:r[3]||(r[3]=De=>y.value=De),onMaintenanceChanged:p(T)},null,8,["vehicle","selected","can-write","onMaintenanceChanged"]))),128)),!V.value.length&&!p(U)?(M(),J(Be,{key:0,description:"无匹配车辆"})):re("",!0)])),[[Te,p(U)&&!p(v).length]]),t(jt,{cars:p(v),"can-write":o.value,onSaved:K},null,8,["cars","can-write"]),r[15]||(r[15]=l("p",{class:"footnote"},"故障率 = 报警占用时长 ÷ 自上线以来运行时长(SimpleLite 进程内累计)",-1))])]),_:1}),t(se,{name:"maintenance",label:"维护策略",lazy:""},{default:n(()=>[l("div",ha,[t(Gt)])]),_:1}),t(se,{name:"fleet",label:"车队生命周期",lazy:""},{default:n(()=>[l("div",wa,[t(Kt)])]),_:1})]),_:1},8,["modelValue"])])}}}),Xa=de(ga,[["__scopeId","data-v-0caa3fa5"]]);export{Xa as default}; diff --git a/MiGu.Server/wwwroot/assets/WizardView-C7EOtEcB.js b/MiGu.Server/wwwroot/assets/WizardView-B-JxMvwI.js similarity index 50% rename from MiGu.Server/wwwroot/assets/WizardView-C7EOtEcB.js rename to MiGu.Server/wwwroot/assets/WizardView-B-JxMvwI.js index adddd03..c83eed7 100644 --- a/MiGu.Server/wwwroot/assets/WizardView-C7EOtEcB.js +++ b/MiGu.Server/wwwroot/assets/WizardView-B-JxMvwI.js @@ -1 +1 @@ -import{aU as x,aI as L,bv as M,b7 as P,X as f,aE as o,aB as t,aF as A,bq as l,bt as v,aH as d,bJ as r,ai as h,bj as b,aD as z,bh as y,bg as F,ax as k,Q as O,r as R,bx as j,b9 as i,aw as G,b3 as C,aq as H,aT as J,aC as W,aG as K,as as Q,ad as U,ak as X}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css */import{_ as Y}from"./FRLD-logo-white-no_title-BE78iS6n.js";async function Z(){const{data:u}=await x.get("/wizard/options");return u}async function ss(){const{data:u}=await x.get("/wizard/profile");return u}async function ts(u){const{data:p}=await x.put("/wizard/profile",u);return p}const as={class:"wizard-page"},es={class:"wz-card"},ns={class:"wz-head"},is={class:"wz-user"},os={key:0,class:"wz-loading"},ls={key:1,class:"wz-grid"},ds={class:"wz-main"},cs={class:"wz-section"},rs={class:"wz-section-head"},us={class:"chip-grid"},vs=["onClick"],ms={class:"chip-name"},ps={class:"chip-desc"},_s={class:"wz-section"},gs={class:"wz-section-head"},fs={class:"chip-grid"},hs=["onClick"],bs={class:"chip-name"},ws={class:"chip-desc"},zs={key:0,class:"wz-section"},ys={class:"wz-section-head"},ks={class:"chip-grid"},Cs=["onClick"],Ks={class:"chip-name"},xs={class:"chip-desc"},Es={class:"wz-summary"},Ss={class:"sum-row"},Ts={class:"sum-row"},Ns={class:"sum-row"},Vs={class:"sum-scenes"},Bs={key:0,class:"sum-empty"},Ws={class:"wz-foot"},$s={class:"foot-right"},qs=L({__name:"WizardView",setup(u){const p=j(),m=M(),E=y(!0),_=y(!1),g=y(null),e=F({platformType:"standard",navigationKinds:[],modules:[],scenarios:[]}),S=k(()=>g.value?.scenarios?.templates??[]),$={magnetic:"scene.magnetic",qrcode:"scene.qrcode",laser:"scene.laser"},T=k(()=>e.navigationKinds.map(n=>$[n]??`scene.${n}`)),N=k(()=>e.navigationKinds.length>0);function w(n,s){const c=n.indexOf(s);c>=0?n.splice(c,1):n.push(s)}P(async()=>{try{const[n,s]=await Promise.all([Z(),ss()]);g.value=n,e.platformType=s.platformType||"standard",e.navigationKinds=[...s.navigationKinds??[]],e.modules=s.modules?.length?[...s.modules]:["wms"],e.scenarios=[...s.scenarios??[]]}catch(n){f.error(`加载向导失败:${n instanceof Error?n.message:String(n)}`)}finally{E.value=!1}});async function q(){if(!N.value){f.warning("请至少选择一种导航方式");return}_.value=!0;try{await ts({platformType:e.platformType,modules:e.modules,navigationKinds:e.navigationKinds,scenarios:e.scenarios}),m.markWizardDone(),f.success("部署配置已保存"),p.push(m.scope==="RCSMonitor"?"/monitor/map":"/admin/dashboard")}catch(n){f.error(`保存失败:${n instanceof Error?n.message:String(n)}`)}finally{_.value=!1}}function D(){m.logout(),p.push("/login")}return(n,s)=>{const c=O,I=U,V=R;return i(),o("div",as,[s[14]||(s[14]=t("div",{class:"wz-orb wz-orb-a","aria-hidden":"true"},null,-1)),s[15]||(s[15]=t("div",{class:"wz-orb wz-orb-b","aria-hidden":"true"},null,-1)),t("div",es,[t("header",ns,[s[0]||(s[0]=A('
迷毂
平台配置向导
按需选择导航方式与功能模块,系统据此裁剪界面并按需加载内核能力
',1)),t("div",is,l(v(m).user?.displayName??v(m).user?.username??""),1)]),E.value?(i(),o("div",os,"正在加载配置选项…")):(i(),o("div",ls,[t("div",ds,[t("section",cs,[t("div",rs,[d(c,null,{default:r(()=>[d(v(G))]),_:1}),s[1]||(s[1]=t("h3",null,"导航方式",-1)),s[2]||(s[2]=t("span",{class:"req"},"至少选 1 项",-1))]),t("div",us,[(i(!0),o(h,null,b(g.value?.navigationKinds??[],a=>(i(),o("button",{key:a.id,type:"button",class:C(["chip",{on:e.navigationKinds.includes(a.id)}]),onClick:B=>w(e.navigationKinds,a.id)},[t("div",ms,l(a.name),1),t("div",ps,l(a.description),1)],10,vs))),128))])]),t("section",_s,[t("div",gs,[d(c,null,{default:r(()=>[d(v(H))]),_:1}),s[3]||(s[3]=t("h3",null,"功能模块",-1))]),t("div",fs,[(i(!0),o(h,null,b(g.value?.modules??[],a=>(i(),o("button",{key:a.id,type:"button",class:C(["chip",{on:e.modules.includes(a.id)}]),onClick:B=>w(e.modules,a.id)},[t("div",bs,l(a.name),1),t("div",ws,l(a.description),1)],10,hs))),128))])]),S.value.length?(i(),o("section",zs,[t("div",ys,[d(c,null,{default:r(()=>[d(v(J))]),_:1}),s[4]||(s[4]=t("h3",null,"业务场景",-1))]),t("div",ks,[(i(!0),o(h,null,b(S.value,a=>(i(),o("button",{key:a.id,type:"button",class:C(["chip",{on:e.scenarios.includes(a.id)}]),onClick:B=>w(e.scenarios,a.id)},[t("div",Ks,l(a.name),1),t("div",xs,l(a.category),1)],10,Cs))),128))])])):z("",!0)]),t("aside",Es,[s[8]||(s[8]=t("div",{class:"sum-title"},"已选概览",-1)),t("div",Ss,[s[5]||(s[5]=t("span",null,"导航方式",-1)),t("b",null,l(e.navigationKinds.length),1)]),t("div",Ts,[s[6]||(s[6]=t("span",null,"功能模块",-1)),t("b",null,l(e.modules.length),1)]),t("div",Ns,[s[7]||(s[7]=t("span",null,"业务场景",-1)),t("b",null,l(e.scenarios.length),1)]),s[9]||(s[9]=t("div",{class:"sum-divider"},null,-1)),s[10]||(s[10]=t("div",{class:"sum-label"},"将激活的内核场景插件",-1)),t("div",Vs,[(i(!0),o(h,null,b(T.value,a=>(i(),W(I,{key:a,size:"small",effect:"dark",class:"sum-tag"},{default:r(()=>[K(l(a),1)]),_:2},1024))),128)),T.value.length?z("",!0):(i(),o("span",Bs,"(请先选择导航方式)"))])])])),t("footer",Ws,[d(V,{text:"",class:"logout-btn",onClick:D},{default:r(()=>[...s[11]||(s[11]=[K("退出登录",-1)])]),_:1}),t("div",$s,[s[13]||(s[13]=t("span",{class:"foot-hint"},"保存后写入部署画像并联动 SimpleLite 选择性加载导航场景",-1)),d(V,{type:"primary",loading:_.value,disabled:!N.value,onClick:q},{default:r(()=>[_.value?z("",!0):(i(),W(c,{key:0,class:"btn-ic"},{default:r(()=>[d(v(Q))]),_:1})),s[12]||(s[12]=K("完成并进入平台 ",-1))]),_:1},8,["loading","disabled"])])])])])}}}),As=X(qs,[["__scopeId","data-v-a4c5be60"]]);export{As as default}; +import{b4 as E,aN as D,bV as I,bp as M,X as f,aG as o,aD as t,aI as P,bL as l,bS as v,aK as d,c8 as r,ai as h,bE as b,aF as z,bC as y,bA as F,ay as k,Q as O,r as R,bX as X,bs as i,ax as G,bk as C,ar as J,b3 as Q,aE as $,aJ as K,at as j,ad as H,ak as U}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css */import{_ as Y}from"./FRLD-logo-white-no_title-BE78iS6n.js";async function Z(){const{data:u}=await E.get("/wizard/options");return u}async function ss(){const{data:u}=await E.get("/wizard/profile");return u}async function ts(u){const{data:p}=await E.put("/wizard/profile",u);return p}const as={class:"wizard-page"},es={class:"wz-card"},ns={class:"wz-head"},is={class:"wz-user"},os={key:0,class:"wz-loading"},ls={key:1,class:"wz-grid"},ds={class:"wz-main"},cs={class:"wz-section"},rs={class:"wz-section-head"},us={class:"chip-grid"},vs=["onClick"],ms={class:"chip-name"},ps={class:"chip-desc"},_s={class:"wz-section"},gs={class:"wz-section-head"},fs={class:"chip-grid"},hs=["onClick"],bs={class:"chip-name"},ws={class:"chip-desc"},zs={key:0,class:"wz-section"},ys={class:"wz-section-head"},ks={class:"chip-grid"},Cs=["onClick"],Ks={class:"chip-name"},Es={class:"chip-desc"},Ss={class:"wz-summary"},xs={class:"sum-row"},Ns={class:"sum-row"},Vs={class:"sum-row"},Ts={class:"sum-scenes"},Ws={key:0,class:"sum-empty"},$s={class:"wz-foot"},Bs={class:"foot-right"},Ls=D({__name:"WizardView",setup(u){const p=X(),m=I(),S=y(!0),_=y(!1),g=y(null),e=F({platformType:"standard",navigationKinds:[],modules:[],scenarios:[]}),x=k(()=>g.value?.scenarios?.templates??[]),B={magnetic:"scene.magnetic",qrcode:"scene.qrcode",laser:"scene.laser"},N=k(()=>e.navigationKinds.map(n=>B[n]??`scene.${n}`)),V=k(()=>e.navigationKinds.length>0);function w(n,s){const c=n.indexOf(s);c>=0?n.splice(c,1):n.push(s)}M(async()=>{try{const[n,s]=await Promise.all([Z(),ss()]);g.value=n,e.platformType=s.platformType||"standard",e.navigationKinds=[...s.navigationKinds??[]],e.modules=s.modules?.length?[...s.modules]:["wms"],e.scenarios=[...s.scenarios??[]]}catch(n){f.error(`加载向导失败:${n instanceof Error?n.message:String(n)}`)}finally{S.value=!1}});async function L(){if(!V.value){f.warning("请至少选择一种导航方式");return}_.value=!0;try{await ts({platformType:e.platformType,modules:e.modules,navigationKinds:e.navigationKinds,scenarios:e.scenarios}),m.markWizardDone(),f.success("部署配置已保存"),p.push(m.scope==="RCSMonitor"?"/monitor/map":"/admin/dashboard")}catch(n){f.error(`保存失败:${n instanceof Error?n.message:String(n)}`)}finally{_.value=!1}}function q(){m.logout(),p.push("/login")}return(n,s)=>{const c=O,A=H,T=R;return i(),o("div",as,[s[14]||(s[14]=t("div",{class:"wz-orb wz-orb-a","aria-hidden":"true"},null,-1)),s[15]||(s[15]=t("div",{class:"wz-orb wz-orb-b","aria-hidden":"true"},null,-1)),t("div",es,[t("header",ns,[s[0]||(s[0]=P('
迷毂
平台配置向导
按需选择导航方式与功能模块,系统据此裁剪界面并按需加载内核能力
',1)),t("div",is,l(v(m).user?.displayName??v(m).user?.username??""),1)]),S.value?(i(),o("div",os,"正在加载配置选项…")):(i(),o("div",ls,[t("div",ds,[t("section",cs,[t("div",rs,[d(c,null,{default:r(()=>[d(v(G))]),_:1}),s[1]||(s[1]=t("h3",null,"导航方式",-1)),s[2]||(s[2]=t("span",{class:"req"},"至少选 1 项",-1))]),t("div",us,[(i(!0),o(h,null,b(g.value?.navigationKinds??[],a=>(i(),o("button",{key:a.id,type:"button",class:C(["chip",{on:e.navigationKinds.includes(a.id)}]),onClick:W=>w(e.navigationKinds,a.id)},[t("div",ms,l(a.name),1),t("div",ps,l(a.description),1)],10,vs))),128))])]),t("section",_s,[t("div",gs,[d(c,null,{default:r(()=>[d(v(J))]),_:1}),s[3]||(s[3]=t("h3",null,"功能模块",-1))]),t("div",fs,[(i(!0),o(h,null,b(g.value?.modules??[],a=>(i(),o("button",{key:a.id,type:"button",class:C(["chip",{on:e.modules.includes(a.id)}]),onClick:W=>w(e.modules,a.id)},[t("div",bs,l(a.name),1),t("div",ws,l(a.description),1)],10,hs))),128))])]),x.value.length?(i(),o("section",zs,[t("div",ys,[d(c,null,{default:r(()=>[d(v(Q))]),_:1}),s[4]||(s[4]=t("h3",null,"业务场景",-1))]),t("div",ks,[(i(!0),o(h,null,b(x.value,a=>(i(),o("button",{key:a.id,type:"button",class:C(["chip",{on:e.scenarios.includes(a.id)}]),onClick:W=>w(e.scenarios,a.id)},[t("div",Ks,l(a.name),1),t("div",Es,l(a.category),1)],10,Cs))),128))])])):z("",!0)]),t("aside",Ss,[s[8]||(s[8]=t("div",{class:"sum-title"},"已选概览",-1)),t("div",xs,[s[5]||(s[5]=t("span",null,"导航方式",-1)),t("b",null,l(e.navigationKinds.length),1)]),t("div",Ns,[s[6]||(s[6]=t("span",null,"功能模块",-1)),t("b",null,l(e.modules.length),1)]),t("div",Vs,[s[7]||(s[7]=t("span",null,"业务场景",-1)),t("b",null,l(e.scenarios.length),1)]),s[9]||(s[9]=t("div",{class:"sum-divider"},null,-1)),s[10]||(s[10]=t("div",{class:"sum-label"},"将激活的内核场景插件",-1)),t("div",Ts,[(i(!0),o(h,null,b(N.value,a=>(i(),$(A,{key:a,size:"small",effect:"dark",class:"sum-tag"},{default:r(()=>[K(l(a),1)]),_:2},1024))),128)),N.value.length?z("",!0):(i(),o("span",Ws,"(请先选择导航方式)"))])])])),t("footer",$s,[d(T,{text:"",class:"logout-btn",onClick:q},{default:r(()=>[...s[11]||(s[11]=[K("退出登录",-1)])]),_:1}),t("div",Bs,[s[13]||(s[13]=t("span",{class:"foot-hint"},"保存后写入部署画像并联动 SimpleLite 选择性加载导航场景",-1)),d(T,{type:"primary",loading:_.value,disabled:!V.value,onClick:L},{default:r(()=>[_.value?z("",!0):(i(),$(c,{key:0,class:"btn-ic"},{default:r(()=>[d(v(j))]),_:1})),s[12]||(s[12]=K("完成并进入平台 ",-1))]),_:1},8,["loading","disabled"])])])])])}}}),Ps=U(Ls,[["__scopeId","data-v-a4c5be60"]]);export{Ps as default}; diff --git a/MiGu.Server/wwwroot/assets/Workspace3D-DpUfTJl7.js b/MiGu.Server/wwwroot/assets/Workspace3D-B9mv4VWE.js similarity index 58% rename from MiGu.Server/wwwroot/assets/Workspace3D-DpUfTJl7.js rename to MiGu.Server/wwwroot/assets/Workspace3D-B9mv4VWE.js index 4375c94..44dafe3 100644 --- a/MiGu.Server/wwwroot/assets/Workspace3D-DpUfTJl7.js +++ b/MiGu.Server/wwwroot/assets/Workspace3D-B9mv4VWE.js @@ -1 +1 @@ -import{aI as J,b7 as Q,b6 as X,aE as b,b3 as Z,aH as u,ad as K,bJ as c,aB as f,bq as s,aC as V,aD as p,r as Y,bt as T,Q as ee,bh as l,ax as A,b9 as i,aG as m,bi as ae,aS as te,aZ as ne,ak as oe}from"./index-Dg4NaXsE.js";/* empty css *//* empty css *//* empty css */const se={key:0,class:"workspace-3d-toolbar"},le={class:"hint"},re=["src"],ce={key:1,class:"workspace-3d-mask"},ie=1800,de=4,ue=18e3,fe=J({__name:"Workspace3D",props:{host:{default:void 0},scope:{default:"Platform"},token:{default:""},readOnly:{type:Boolean,default:!1},embedUi:{type:Boolean,default:!1},canvasOnly:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1}},emits:["pick","select","ready"],setup(o,{expose:M,emit:R}){const n=o,h=R,_=l(),O=l(),y=l(!1),v=l("正在连接 webVRender ..."),w=l(null),g=l([]),r=l(""),d=A(()=>n.host??"localhost:8223"??"localhost:8223"),z=A(()=>{const a=new URLSearchParams;return a.set("scope",n.scope??"Platform"),n.token&&a.set("token",n.token),a.set("ro",n.readOnly?"1":"0"),n.canvasOnly?a.set("ui","canvas-only"):n.embedUi&&a.set("ui","embed"),`http://${d.value}/?${a.toString()}`});let k=null,E=0;function F(){return`http://${d.value}`}function B(a){return new Promise(e=>setTimeout(e,a))}function P(){return n.canvasOnly||n.embedUi}function H(){return n.canvasOnly?"/declareCanvasOnly":n.embedUi?"/declareEmbedUi":null}async function D(a){try{return(await fetch(`${F()}${a}`,{method:"GET",cache:"no-store",credentials:"omit",signal:AbortSignal.timeout(ie)})).ok}catch{return!1}}async function I(){const a=H();if(a){for(let e=0;e{a!==E||y.value||(v.value=`连接超时 (http://${d.value}),请确认 SimpleLite 已启动`)},ue)}function L(a){const e=z.value;if(!a)return e;const t=e.includes("?")?"&":"?";return`${e}${t}_=${Date.now()}`}async function x(a=!1){const e=++E;if(y.value=!1,v.value=`正在连接 webVRender (http://${d.value}) ...`,N(e),P())I(),r.value=L(a||!!r.value);else{if(v.value="正在等待 SimpleLite webVRender 就绪 ...",await G(),e!==E)return;r.value=L(a||!!r.value)}}function q(){y.value=!0,S(),h("ready")}function C(a){if(!_.value||a.source!==_.value.contentWindow)return;const e=a.data;if(!(!e||typeof e!="object")){if(e.type==="workspace.pick"&&e.payload&&typeof e.payload.x=="number")w.value=e.payload,h("pick",e.payload);else if(e.type==="workspace.select"&&Array.isArray(e.payload))g.value=e.payload,h("select",e.payload);else if(e.type==="workspace.shortcut"&&e.payload&&typeof e.payload=="object"){const t=e.payload.action;(t==="undo"||t==="redo"||t==="delete")&&window.dispatchEvent(new CustomEvent("workspace-shortcut",{detail:{action:t}}))}}}function W(){x(!0)}function $(){const a=O.value;a&&(document.fullscreenElement?document.exitFullscreen():a.requestFullscreen())}return Q(()=>{window.addEventListener("message",C),x(!1)}),X(()=>{window.removeEventListener("message",C),S()}),M({reload:W,enterFullscreen:$}),(a,e)=>{const t=K,U=Y,j=ee;return i(),b("div",{class:Z(["workspace-3d-wrap",{"workspace-3d--canvas-only":o.canvasOnly||o.hideToolbar}])},[o.canvasOnly||o.hideToolbar?p("",!0):(i(),b("div",se,[u(t,{type:o.readOnly?"info":"success",effect:"dark",size:"small"},{default:c(()=>[m(s(o.readOnly?"只读":"可交互"),1)]),_:1},8,["type"]),f("span",le,"webVRender · http://"+s(d.value)+" · scope="+s(o.scope),1),e[2]||(e[2]=f("div",{class:"spacer"},null,-1)),w.value?(i(),V(t,{key:0,type:"warning",size:"small"},{default:c(()=>[m(" Pick ("+s(w.value.x.toFixed(0))+", "+s(w.value.y.toFixed(0))+") ",1)]),_:1})):p("",!0),g.value.length?(i(),V(t,{key:1,type:"primary",size:"small"},{default:c(()=>[m(" Selected: "+s(g.value.length),1)]),_:1})):p("",!0),u(U,{size:"small",icon:T(ae),onClick:W},{default:c(()=>[...e[0]||(e[0]=[m("重载",-1)])]),_:1},8,["icon"]),u(U,{size:"small",icon:T(te),onClick:$},{default:c(()=>[...e[1]||(e[1]=[m("全屏",-1)])]),_:1},8,["icon"])])),f("div",{ref_key:"frameWrap",ref:O,class:"workspace-3d-frame"},[r.value?(i(),b("iframe",{key:0,ref_key:"frame",ref:_,src:r.value,class:"workspace-3d-iframe",allow:"fullscreen",onLoad:q},null,40,re)):p("",!0),y.value?p("",!0):(i(),b("div",ce,[u(j,{class:"is-loading",size:"32"},{default:c(()=>[u(T(ne))]),_:1}),f("span",null,s(v.value),1),e[3]||(e[3]=f("span",{class:"muted"},"如长时间未加载,请确认 SimpleLite 已以 Web-Enabled 模式启动且 8223 端口可达。",-1))]))],512)],2)}}}),we=oe(fe,[["__scopeId","data-v-17efa15d"]]);export{we as W}; +import{aN as J,bp as K,bo as Q,aG as b,bk as X,aK as u,ad as Y,c8 as c,aD as f,bL as s,aE as V,aF as p,r as Z,bS as T,Q as ee,bC as l,ay as A,bs as i,aJ as m,bD as ae,a$ as te,bc as ne,ak as oe}from"./index-D5GfLbIx.js";/* empty css *//* empty css *//* empty css */const se={key:0,class:"workspace-3d-toolbar"},le={class:"hint"},re=["src"],ce={key:1,class:"workspace-3d-mask"},ie=1800,de=4,ue=18e3,fe=J({__name:"Workspace3D",props:{host:{default:void 0},scope:{default:"Platform"},token:{default:""},readOnly:{type:Boolean,default:!1},embedUi:{type:Boolean,default:!1},canvasOnly:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1}},emits:["pick","select","ready"],setup(o,{expose:F,emit:M}){const n=o,h=M,_=l(),D=l(),y=l(!1),v=l("正在连接 webVRender ..."),w=l(null),g=l([]),r=l(""),d=A(()=>n.host??"localhost:8223"??"localhost:8223"),R=A(()=>{const a=new URLSearchParams;return a.set("scope",n.scope??"Platform"),n.token&&a.set("token",n.token),a.set("ro",n.readOnly?"1":"0"),n.canvasOnly?a.set("ui","canvas-only"):n.embedUi&&a.set("ui","embed"),`http://${d.value}/?${a.toString()}`});let k=null,E=0;function z(){return`http://${d.value}`}function L(a){return new Promise(e=>setTimeout(e,a))}function P(){return n.canvasOnly||n.embedUi}function N(){return n.canvasOnly?"/declareCanvasOnly":n.embedUi?"/declareEmbedUi":null}async function O(a){try{return(await fetch(`${z()}${a}`,{method:"GET",cache:"no-store",credentials:"omit",signal:AbortSignal.timeout(ie)})).ok}catch{return!1}}async function G(){const a=N();if(a){for(let e=0;e{a!==E||y.value||(v.value=`连接超时 (http://${d.value}),请确认 SimpleLite 已启动`)},ue)}function B(a){const e=R.value;if(!a)return e;const t=e.includes("?")?"&":"?";return`${e}${t}_=${Date.now()}`}async function C(a=!1){const e=++E;if(y.value=!1,v.value=`正在连接 webVRender (http://${d.value}) ...`,I(e),P())G(),r.value=B(a||!!r.value);else{if(v.value="正在等待 SimpleLite webVRender 就绪 ...",await H(),e!==E)return;r.value=B(a||!!r.value)}}function j(){y.value=!0,S(),h("ready")}function W(a){if(!_.value||a.source!==_.value.contentWindow)return;const e=a.data;if(!(!e||typeof e!="object")){if(e.type==="workspace.pick"&&e.payload&&typeof e.payload.x=="number")w.value=e.payload,h("pick",e.payload);else if(e.type==="workspace.select"&&Array.isArray(e.payload))g.value=e.payload,h("select",e.payload);else if(e.type==="workspace.shortcut"&&e.payload&&typeof e.payload=="object"){const t=e.payload.action;(t==="undo"||t==="redo"||t==="delete")&&window.dispatchEvent(new CustomEvent("workspace-shortcut",{detail:{action:t}}))}}}function $(){C(!0)}function x(){const a=D.value;a&&(document.fullscreenElement?document.exitFullscreen():a.requestFullscreen())}return K(()=>{window.addEventListener("message",W),C(!1)}),Q(()=>{window.removeEventListener("message",W),S()}),F({reload:$,enterFullscreen:x}),(a,e)=>{const t=Y,U=Z,q=ee;return i(),b("div",{class:X(["workspace-3d-wrap",{"workspace-3d--canvas-only":o.canvasOnly||o.hideToolbar}])},[o.canvasOnly||o.hideToolbar?p("",!0):(i(),b("div",se,[u(t,{type:o.readOnly?"info":"success",effect:"dark",size:"small"},{default:c(()=>[m(s(o.readOnly?"只读":"可交互"),1)]),_:1},8,["type"]),f("span",le,"webVRender · http://"+s(d.value)+" · scope="+s(o.scope),1),e[2]||(e[2]=f("div",{class:"spacer"},null,-1)),w.value?(i(),V(t,{key:0,type:"warning",size:"small"},{default:c(()=>[m(" Pick ("+s(w.value.x.toFixed(0))+", "+s(w.value.y.toFixed(0))+") ",1)]),_:1})):p("",!0),g.value.length?(i(),V(t,{key:1,type:"primary",size:"small"},{default:c(()=>[m(" Selected: "+s(g.value.length),1)]),_:1})):p("",!0),u(U,{size:"small",icon:T(ae),onClick:$},{default:c(()=>[...e[0]||(e[0]=[m("重载",-1)])]),_:1},8,["icon"]),u(U,{size:"small",icon:T(te),onClick:x},{default:c(()=>[...e[1]||(e[1]=[m("全屏",-1)])]),_:1},8,["icon"])])),f("div",{ref_key:"frameWrap",ref:D,class:"workspace-3d-frame"},[r.value?(i(),b("iframe",{key:0,ref_key:"frame",ref:_,src:r.value,class:"workspace-3d-iframe",allow:"fullscreen",onLoad:j},null,40,re)):p("",!0),y.value?p("",!0):(i(),b("div",ce,[u(q,{class:"is-loading",size:"32"},{default:c(()=>[u(T(ne))]),_:1}),f("span",null,s(v.value),1),e[3]||(e[3]=f("span",{class:"muted"},"如长时间未加载,请确认 SimpleLite 已以 Web-Enabled 模式启动且 8223 端口可达。",-1))]))],512)],2)}}}),we=oe(fe,[["__scopeId","data-v-17efa15d"]]);export{we as W}; diff --git a/MiGu.Server/wwwroot/assets/el-breadcrumb-item-DXfSxFSr.css b/MiGu.Server/wwwroot/assets/el-breadcrumb-item-DXfSxFSr.css new file mode 100644 index 0000000..9bb10e9 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/el-breadcrumb-item-DXfSxFSr.css @@ -0,0 +1 @@ +.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:before,.el-breadcrumb:after{content:"";display:table}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{color:var(--el-text-color-placeholder);margin:0 9px;font-weight:700}.el-breadcrumb__separator.el-icon{margin:0 6px;font-weight:400}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{float:left;align-items:center;display:inline-flex}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner.is-link,.el-breadcrumb__inner a{transition:var(--el-transition-color);color:var(--el-text-color-primary);font-weight:700;text-decoration:none}.el-breadcrumb__inner.is-link:hover,.el-breadcrumb__inner a:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover{color:var(--el-text-color-regular);cursor:text;font-weight:400}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none} diff --git a/MiGu.Server/wwwroot/assets/index-D5GfLbIx.js b/MiGu.Server/wwwroot/assets/index-D5GfLbIx.js new file mode 100644 index 0000000..7779147 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/index-D5GfLbIx.js @@ -0,0 +1,100 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-DR-JtkF-.js","assets/el-tooltip-l0sNRNKZ.js","assets/FRLD-logo-white-no_title-BE78iS6n.js","assets/LoginView-DKfiSb8w.css","assets/base-BhyKBIh7.css","assets/el-form-item-D_relxjU.css","assets/el-button-ZSOkJyjJ.css","assets/el-collapse-item-BvmEG8Qn.css","assets/el-input-BddTPWVI.css","assets/el-input-number-DExoAqKP.css","assets/el-link-CPQZ-olG.css","assets/el-checkbox-CzNtyWdF.css","assets/el-popper-Wf_ds9r7.css","assets/ServiceStatusView-nxCKHggR.js","assets/ServiceStatusView-IGba4H4q.css","assets/el-card-BAyktVMS.css","assets/el-descriptions-BpDzfuC8.css","assets/el-tag-1VV9QMa7.css","assets/WizardView-B-JxMvwI.js","assets/WizardView-D_EJbvb2.css","assets/AppShell-CsAf-EtY.js","assets/AppShell-CFoRRXmz.css","assets/el-scrollbar-GF-yQkxY.css","assets/el-button-group-B09mLjuS.css","assets/el-dropdown-item-CtcKg9JC.css","assets/el-breadcrumb-item-DXfSxFSr.css","assets/el-radio-button-TYBaCPcE.css","assets/DashboardView-Rj8saK5Q.js","assets/install-D_iTbSFG.js","assets/projection-BHFE6Meg.js","assets/reflection-BwOBPyb9.js","assets/DashboardView-hw3Lq69B.css","assets/el-tab-pane-C5lGmld3.css","assets/MapMonitorView-CdBlKooR.js","assets/Workspace3D-B9mv4VWE.js","assets/Workspace3D-mhI80n5T.css","assets/mapEdit-BXIATxCI.js","assets/ops-BCeFEEjY.js","assets/ops-C48uBBTk.js","assets/monitorConfigCache-DXn96T8F.js","assets/workspaceToolbar-abOZ7a24.js","assets/useProjectionStream-ayb6RvWW.js","assets/MapMonitorView-7EMxOrDQ.css","assets/el-col-BWEC13sA.css","assets/el-statistic-D5_dVssE.css","assets/el-progress-B7X4OvaL.css","assets/el-select-CK58rX4v.css","assets/el-table-column-Dp73S2HR.css","assets/el-dialog-TSZfE1b8.css","assets/el-empty-S7fQQ3B8.css","assets/MapManagementView-BfnAn-Bv.js","assets/MapManagementView-DSxBVRvt.css","assets/el-loading-Dq8WDDkr.css","assets/el-alert-B6UgayC7.css","assets/MapEditorView-BeHcrkSz.js","assets/projectSaveFlow-BOHSv3Vc.js","assets/MapEditorView-CBiaEgWL.css","assets/el-color-picker-DRNdOQmm.css","assets/el-switch-DpR9-s4E.css","assets/TrackTableView-B6xSRo4y.js","assets/ReflectionManagerPanel-CqcqGxZI.js","assets/ReflectionManagerPanel-Bsiwi559.css","assets/TrackTableView-B2SrXZLA.css","assets/CarPanelView-BiDARL2O.js","assets/CarPanelView-CyQ-iKoo.css","assets/ProcessPanelView-Dh8TMlBL.js","assets/ProcessPanelView-Cb7rpouy.css","assets/ScriptPanelView-D8niLWli.js","assets/ScriptPanelView-BHu191Ko.css","assets/TaskTemplateView-BOoJh-Fl.js","assets/TaskTemplateView-0IwfArtT.css","assets/ProjectPropertiesView-wJsYQ6C1.js","assets/ProjectPropertiesView-CvKuii5E.css","assets/StrategyConfigView-DqIoZFxi.js","assets/ConfigPageBase-CgfsngDp.js","assets/PermissionGuard-CR4qtxrh.js","assets/PermissionGuard-B-YLUKV0.css","assets/ConfigPageBase-DOgE48Ff.css","assets/StrategyConfigView-DCtZMQRi.css","assets/VehicleHubView-BC4ONtdY.js","assets/VehicleHubView-BySAdLFB.css","assets/el-divider-B0pQhKGi.css","assets/FacilityConfigView-BdZ62AIz.js","assets/FacilityConfigView-DTlQlSfB.css","assets/BusinessConfigView-BfBO4uM6.js","assets/BusinessConfigView-mcy1bFqR.css","assets/OpsCenterView-DSZVXypR.js","assets/OpsCenterView-DK8hhBKP.css","assets/el-checkbox-group-D_6SYB2i.css","assets/SystemCenterView-DTMANlHu.js","assets/SystemCenterView-Cj7be1bs.css","assets/MonitorDashboardView-BhyuAhkj.js","assets/MonitorDashboardView-CzA4Ot5V.css","assets/MonitorMapView-D59BIz8C.js","assets/OpsActionPanelView-CYj4_682.js","assets/OpsActionPanelView-C3hWMI-V.css","assets/AnnotationView-BCpnjaJW.js"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/** +* @vue/shared v3.5.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Ev(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const hn={},ll=[],ut=()=>{},i2=()=>!1,Od=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),_d=e=>e.startsWith("onUpdate:"),Vn=Object.assign,xv=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},e3=Object.prototype.hasOwnProperty,Nt=(e,t)=>e3.call(e,t),we=Array.isArray,il=e=>hu(e)==="[object Map]",Rd=e=>hu(e)==="[object Set]",Ur=e=>hu(e)==="[object Date]",Fe=e=>typeof e=="function",Ae=e=>typeof e=="string",Fa=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",qr=e=>(ot(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),u2=Object.prototype.toString,hu=e=>u2.call(e),t3=e=>hu(e).slice(8,-1),Fi=e=>hu(e)==="[object Object]",Id=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yi=Ev(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$d=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},n3=/-\w/g,qn=$d(e=>e.replace(n3,t=>t.slice(1).toUpperCase())),a3=/\B([A-Z])/g,br=$d(e=>e.replace(a3,"-$1").toLowerCase()),vu=$d(e=>e.charAt(0).toUpperCase()+e.slice(1)),wi=$d(e=>e?`on${vu(e)}`:""),ro=(e,t)=>!Object.is(e,t),wc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},Tv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},o3=e=>{const t=Ae(e)?Number(e):NaN;return isNaN(t)?e:t};let Kg;const Nd=()=>Kg||(Kg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ze(e){if(we(e)){const t={};for(let n=0;n{if(n){const a=n.split(s3);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(Ae(e))t=e;else if(we(e))for(let n=0;nTs(n,t))}const p2=e=>!!(e&&e.__v_isRef===!0),Ce=e=>Ae(e)?e:e==null?"":we(e)||ot(e)&&(e.toString===u2||!Fe(e.toString))?p2(e)?Ce(e.value):JSON.stringify(e,h2,2):String(e),h2=(e,t)=>p2(t)?h2(e,t.value):il(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,o],r)=>(n[zf(a,r)+" =>"]=o,n),{})}:Rd(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zf(n))}:Fa(t)?zf(t):ot(t)&&!we(t)&&!Fi(t)?String(t):t,zf=(e,t="")=>{var n;return Fa(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Hn;class v2{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Hn&&(Hn.active?(this.parent=Hn,this.index=(Hn.scopes||(Hn.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(Hn===this)Hn=this.prevScope;else{let t=Hn;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(Ci){let t=Ci;for(Ci=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Si;){let t=Si;for(Si=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function y2(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function w2(e){let t,n=e.depsTail,a=n;for(;a;){const o=a.prevDep;a.version===-1?(a===n&&(n=o),$v(a),f3(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=o}e.deps=t,e.depsTail=n}function jp(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(S2(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function S2(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zi)||(e.globalVersion=zi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!jp(e))))return;e.flags|=2;const t=e.dep,n=bn,a=so;bn=e,so=!0;try{y2(e);const o=e.fn(e._value);(t.version===0||ro(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{bn=n,so=a,w2(e),e.flags&=-3}}function $v(e,t=!1){const{dep:n,prevSub:a,nextSub:o}=e;if(a&&(a.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)$v(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function f3(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let so=!0;const C2=[];function dr(){C2.push(so),so=!1}function fr(){const e=C2.pop();so=e===void 0?!0:e}function Wg(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=bn;bn=void 0;try{t()}finally{bn=n}}}let zi=0;class p3{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Pd{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!bn||!so||bn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==bn)n=this.activeLink=new p3(bn,this),bn.deps?(n.prevDep=bn.depsTail,bn.depsTail.nextDep=n,bn.depsTail=n):bn.deps=bn.depsTail=n,k2(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=bn.depsTail,n.nextDep=void 0,bn.depsTail.nextDep=n,bn.depsTail=n,bn.deps===n&&(bn.deps=a)}return n}trigger(t){this.version++,zi++,this.notify(t)}notify(t){Rv();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Iv()}}}function k2(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)k2(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Hc=new WeakMap,ws=Symbol(""),Up=Symbol(""),Hi=Symbol("");function ta(e,t,n){if(so&&bn){let a=Hc.get(e);a||Hc.set(e,a=new Map);let o=a.get(n);o||(a.set(n,o=new Pd),o.map=a,o.key=n),o.track()}}function nr(e,t,n,a,o,r){const s=Hc.get(e);if(!s){zi++;return}const l=u=>{u&&u.trigger()};if(Rv(),t==="clear")s.forEach(l);else{const u=we(e),c=u&&Id(n);if(u&&n==="length"){const d=Number(a);s.forEach((f,p)=>{(p==="length"||p===Hi||!Fa(p)&&p>=d)&&l(f)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),c&&l(s.get(Hi)),t){case"add":u?c&&l(s.get("length")):(l(s.get(ws)),il(e)&&l(s.get(Up)));break;case"delete":u||(l(s.get(ws)),il(e)&&l(s.get(Up)));break;case"set":il(e)&&l(s.get(ws));break}}Iv()}function h3(e,t){const n=Hc.get(e);return n&&n.get(t)}function Ws(e){const t=Jt(e);return t===e?t:(ta(t,"iterate",Hi),Ba(e)?t:t.map(uo))}function Ad(e){return ta(e=Jt(e),"iterate",Hi),e}function Io(e,t){return pr(e)?bl(lr(e)?uo(t):t):uo(t)}const v3={__proto__:null,[Symbol.iterator](){return Kf(this,Symbol.iterator,e=>Io(this,e))},concat(...e){return Ws(this).concat(...e.map(t=>we(t)?Ws(t):t))},entries(){return Kf(this,"entries",e=>(e[1]=Io(this,e[1]),e))},every(e,t){return Xo(this,"every",e,t,void 0,arguments)},filter(e,t){return Xo(this,"filter",e,t,n=>n.map(a=>Io(this,a)),arguments)},find(e,t){return Xo(this,"find",e,t,n=>Io(this,n),arguments)},findIndex(e,t){return Xo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xo(this,"findLast",e,t,n=>Io(this,n),arguments)},findLastIndex(e,t){return Xo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Wf(this,"includes",e)},indexOf(...e){return Wf(this,"indexOf",e)},join(e){return Ws(this).join(e)},lastIndexOf(...e){return Wf(this,"lastIndexOf",e)},map(e,t){return Xo(this,"map",e,t,void 0,arguments)},pop(){return Zl(this,"pop")},push(...e){return Zl(this,"push",e)},reduce(e,...t){return jg(this,"reduce",e,t)},reduceRight(e,...t){return jg(this,"reduceRight",e,t)},shift(){return Zl(this,"shift")},some(e,t){return Xo(this,"some",e,t,void 0,arguments)},splice(...e){return Zl(this,"splice",e)},toReversed(){return Ws(this).toReversed()},toSorted(e){return Ws(this).toSorted(e)},toSpliced(...e){return Ws(this).toSpliced(...e)},unshift(...e){return Zl(this,"unshift",e)},values(){return Kf(this,"values",e=>Io(this,e))}};function Kf(e,t,n){const a=Ad(e),o=a[t]();return a!==e&&!Ba(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const m3=Array.prototype;function Xo(e,t,n,a,o,r){const s=Ad(e),l=s!==e&&!Ba(e),u=s[t];if(u!==m3[t]){const f=u.apply(e,r);return l?uo(f):f}let c=n;s!==e&&(l?c=function(f,p){return n.call(this,Io(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const d=u.call(s,c,a);return l&&o?o(d):d}function jg(e,t,n,a){const o=Ad(e),r=o!==e&&!Ba(e);let s=n,l=!1;o!==e&&(r?(l=a.length===0,s=function(c,d,f){return l&&(l=!1,c=Io(e,c)),n.call(this,c,Io(e,d),f,e)}):n.length>3&&(s=function(c,d,f){return n.call(this,c,d,f,e)}));const u=o[t](s,...a);return l?Io(e,u):u}function Wf(e,t,n){const a=Jt(e);ta(a,"iterate",Hi);const o=a[t](...n);return(o===-1||o===!1)&&Vd(n[0])?(n[0]=Jt(n[0]),a[t](...n)):o}function Zl(e,t,n=[]){dr(),Rv();const a=Jt(e)[t].apply(e,n);return Iv(),fr(),a}const g3=Ev("__proto__,__v_isRef,__isVue"),E2=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fa));function b3(e){Fa(e)||(e=String(e));const t=Jt(this);return ta(t,"has",e),t.hasOwnProperty(e)}class x2{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return a===(o?r?$2:I2:r?R2:_2).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const s=we(t);if(!o){let u;if(s&&(u=v3[n]))return u;if(n==="hasOwnProperty")return b3}const l=Reflect.get(t,n,Gt(t)?t:a);if((Fa(n)?E2.has(n):g3(n))||(o||ta(t,"get",n),r))return l;if(Gt(l)){const u=s&&Id(n)?l:l.value;return o&&ot(u)?gl(u):u}return ot(l)?o?gl(l):Dt(l):l}}class T2 extends x2{constructor(t=!1){super(!1,t)}set(t,n,a,o){let r=t[n];const s=we(t)&&Id(n);if(!this._isShallow){const c=pr(r);if(!Ba(a)&&!pr(a)&&(r=Jt(r),a=Jt(a)),!s&&Gt(r)&&!Gt(a))return c||(r.value=a),!0}const l=s?Number(n)e,Gu=e=>Reflect.getPrototypeOf(e);function k3(e,t,n){return function(...a){const o=this.__v_raw,r=Jt(o),s=il(r),l=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,c=o[e](...a),d=n?qp:t?bl:uo;return!t&&ta(r,"iterate",u?Up:ws),Vn(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:l?[d(f[0]),d(f[1])]:d(f),done:p}}})}}function Xu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function E3(e,t){const n={get(o){const r=this.__v_raw,s=Jt(r),l=Jt(o);e||(ro(o,l)&&ta(s,"get",o),ta(s,"get",l));const{has:u}=Gu(s),c=t?qp:e?bl:uo;if(u.call(s,o))return c(r.get(o));if(u.call(s,l))return c(r.get(l));r!==s&&r.get(o)},get size(){const o=this.__v_raw;return!e&&ta(Jt(o),"iterate",ws),o.size},has(o){const r=this.__v_raw,s=Jt(r),l=Jt(o);return e||(ro(o,l)&&ta(s,"has",o),ta(s,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const s=this,l=s.__v_raw,u=Jt(l),c=t?qp:e?bl:uo;return!e&&ta(u,"iterate",ws),l.forEach((d,f)=>o.call(r,c(d),c(f),s))}};return Vn(n,e?{add:Xu("add"),set:Xu("set"),delete:Xu("delete"),clear:Xu("clear")}:{add(o){const r=Jt(this),s=Gu(r),l=Jt(o),u=!t&&!Ba(o)&&!pr(o)?l:o;return s.has.call(r,u)||ro(o,u)&&s.has.call(r,o)||ro(l,u)&&s.has.call(r,l)||(r.add(u),nr(r,"add",u,u)),this},set(o,r){!t&&!Ba(r)&&!pr(r)&&(r=Jt(r));const s=Jt(this),{has:l,get:u}=Gu(s);let c=l.call(s,o);c||(o=Jt(o),c=l.call(s,o));const d=u.call(s,o);return s.set(o,r),c?ro(r,d)&&nr(s,"set",o,r):nr(s,"add",o,r),this},delete(o){const r=Jt(this),{has:s,get:l}=Gu(r);let u=s.call(r,o);u||(o=Jt(o),u=s.call(r,o)),l&&l.call(r,o);const c=r.delete(o);return u&&nr(r,"delete",o,void 0),c},clear(){const o=Jt(this),r=o.size!==0,s=o.clear();return r&&nr(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=k3(o,e,t)}),n}function Ld(e,t){const n=E3(e,t);return(a,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?a:Reflect.get(Nt(n,o)&&o in a?n:a,o,r)}const x3={get:Ld(!1,!1)},T3={get:Ld(!1,!0)},O3={get:Ld(!0,!1)},_3={get:Ld(!0,!0)},_2=new WeakMap,R2=new WeakMap,I2=new WeakMap,$2=new WeakMap;function R3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function I3(e){return e.__v_skip||!Object.isExtensible(e)?0:R3(t3(e))}function Dt(e){return pr(e)?e:Bd(e,!1,y3,x3,_2)}function Dd(e){return Bd(e,!1,S3,T3,R2)}function gl(e){return Bd(e,!0,w3,O3,I2)}function N2(e){return Bd(e,!0,C3,_3,$2)}function Bd(e,t,n,a,o){if(!ot(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=I3(e);if(r===0)return e;const s=o.get(e);if(s)return s;const l=new Proxy(e,r===2?a:n);return o.set(e,l),l}function lr(e){return pr(e)?lr(e.__v_raw):!!(e&&e.__v_isReactive)}function pr(e){return!!(e&&e.__v_isReadonly)}function Ba(e){return!!(e&&e.__v_isShallow)}function Vd(e){return e?!!e.__v_raw:!1}function Jt(e){const t=e&&e.__v_raw;return t?Jt(t):e}function Ya(e){return!Nt(e,"__v_skip")&&Object.isExtensible(e)&&c2(e,"__v_skip",!0),e}const uo=e=>ot(e)?Dt(e):e,bl=e=>ot(e)?gl(e):e;function Gt(e){return e?e.__v_isRef===!0:!1}function M(e){return M2(e,!1)}function Tt(e){return M2(e,!0)}function M2(e,t){return Gt(e)?e:new $3(e,t)}class $3{constructor(t,n){this.dep=new Pd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Jt(t),this._value=n?t:uo(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||Ba(t)||pr(t);t=a?t:Jt(t),ro(t,n)&&(this._rawValue=t,this._value=a?t:uo(t),this.dep.trigger())}}function Sc(e){e.dep&&e.dep.trigger()}function i(e){return Gt(e)?e.value:e}function xn(e){return Fe(e)?e():i(e)}const N3={get:(e,t,n)=>t==="__v_raw"?e:i(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const o=e[t];return Gt(o)&&!Gt(n)?(o.value=n,!0):Reflect.set(e,t,n,a)}};function P2(e){return lr(e)?e:new Proxy(e,N3)}class M3{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Pd,{get:a,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=a,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function voe(e){return new M3(e)}function Pn(e){const t=we(e)?new Array(e.length):{};for(const n in e)t[n]=A2(e,n);return t}class P3{constructor(t,n,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=Fa(n)?n:String(n),this._raw=Jt(t);let o=!0,r=t;if(!we(t)||Fa(this._key)||!Id(this._key))do o=!Vd(r)||Ba(r);while(o&&(r=r.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=i(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Gt(this._raw[this._key])){const n=this._object[this._key];if(Gt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return h3(this._raw,this._key)}}class A3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ht(e,t,n){return Gt(e)?e:Fe(e)?new A3(e):ot(e)&&arguments.length>1?A2(e,t,n):M(e)}function A2(e,t,n){return new P3(e,t,n)}class L3{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Pd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&bn!==this)return b2(this,!0),!0}get value(){const t=this.dep.track();return S2(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function D3(e,t,n=!1){let a,o;return Fe(e)?a=e:(a=e.get,o=e.set),new L3(a,o,n)}const Ju={},Kc=new WeakMap;let ls;function B3(e,t=!1,n=ls){if(n){let a=Kc.get(n);a||Kc.set(n,a=[]),a.push(e)}}function V3(e,t,n=hn){const{immediate:a,deep:o,once:r,scheduler:s,augmentJob:l,call:u}=n,c=S=>o?S:Ba(S)||o===!1||o===0?ar(S,1):ar(S);let d,f,p,g,h=!1,v=!1;if(Gt(e)?(f=()=>e.value,h=Ba(e)):lr(e)?(f=()=>c(e),h=!0):we(e)?(v=!0,h=e.some(S=>lr(S)||Ba(S)),f=()=>e.map(S=>{if(Gt(S))return S.value;if(lr(S))return c(S);if(Fe(S))return u?u(S,2):S()})):Fe(e)?t?f=u?()=>u(e,2):e:f=()=>{if(p){dr();try{p()}finally{fr()}}const S=ls;ls=d;try{return u?u(e,3,[g]):e(g)}finally{ls=S}}:f=ut,t&&o){const S=f,k=o===!0?1/0:o;f=()=>ar(S(),k)}const m=Md(),b=()=>{d.stop(),m&&m.active&&xv(m.effects,d)};if(r&&t){const S=t;t=(...k)=>{S(...k),b()}}let w=v?new Array(e.length).fill(Ju):Ju;const y=S=>{if(!(!(d.flags&1)||!d.dirty&&!S))if(t){const k=d.run();if(o||h||(v?k.some((x,O)=>ro(x,w[O])):ro(k,w))){p&&p();const x=ls;ls=d;try{const O=[k,w===Ju?void 0:v&&w[0]===Ju?[]:w,g];w=k,u?u(t,3,O):t(...O)}finally{ls=x}}}else d.run()};return l&&l(y),d=new m2(f),d.scheduler=s?()=>s(y,!1):y,g=S=>B3(S,!1,d),p=d.onStop=()=>{const S=Kc.get(d);if(S){if(u)u(S,4);else for(const k of S)k();Kc.delete(d)}},t?a?y(!0):w=d.run():s?s(y.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function ar(e,t=1/0,n){if(t<=0||!ot(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Gt(e))ar(e.value,t,n);else if(we(e))for(let a=0;a{ar(a,t,n)});else if(Fi(e)){for(const a in e)ar(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&ar(e[a],t,n)}return e}/** +* @vue/runtime-core v3.5.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function mu(e,t,n,a){try{return a?e(...a):e()}catch(o){Fd(o,t,n)}}function co(e,t,n,a){if(Fe(e)){const o=mu(e,t,n,a);return o&&qr(o)&&o.catch(r=>{Fd(r,t,n)}),o}if(we(e)){const o=[];for(let r=0;r>>1,o=pa[a],r=Ki(o);r=Ki(n)?pa.push(e):pa.splice(z3(t),0,e),e.flags|=1,D2()}}function D2(){Wc||(Wc=L2.then(V2))}function H3(e){we(e)?ul.push(...e):Dr&&e.id===-1?Dr.splice(Qs+1,0,e):e.flags&1||(ul.push(e),e.flags|=1),D2()}function Ug(e,t,n=_o+1){for(;nKi(n)-Ki(a));if(ul.length=0,Dr){Dr.push(...t);return}for(Dr=t,Qs=0;Qse.id==null?e.flags&2?-1:1/0:e.id;function V2(e){try{for(_o=0;_o{a._d&&Yc(-1);const r=jc(t);let s;try{s=e(...o)}finally{jc(r),a._d&&Yc(1)}return s};return a._n=!0,a._c=!0,a._d=!0,a}function ct(e,t){if(Jn===null)return e;const n=jd(Jn),a=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&Fe(t)?t.call(a&&a.proxy):t}}function Mv(){return!!(dt()||Ss)}const K3=Symbol.for("v-scx"),W3=()=>$e(K3);function la(e,t){return Pv(e,null,t)}function pe(e,t,n){return Pv(e,t,n)}function Pv(e,t,n=hn){const{immediate:a,deep:o,flush:r,once:s}=n,l=Vn({},n),u=t&&a||!t&&r!=="post";let c;if(ji){if(r==="sync"){const g=W3();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=ut,g.resume=ut,g.pause=ut,g}}const d=na;l.call=(g,h,v)=>co(g,d,h,v);let f=!1;r==="post"?l.scheduler=g=>{da(g,d&&d.suspense)}:r!=="sync"&&(f=!0,l.scheduler=(g,h)=>{h?g():Nv(g)}),l.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const p=V3(e,t,l);return ji&&(c?c.push(p):u&&p()),p}function j3(e,t,n){const a=this.proxy,o=Ae(e)?e.includes(".")?z2(a,e):()=>a[e]:e.bind(a,a);let r;Fe(t)?r=t:(r=t.handler,n=t);const s=bu(this),l=Pv(o,r.bind(a),n);return s(),l}function z2(e,t){const n=t.split(".");return()=>{let a=e;for(let o=0;oe.__isTeleport,us=e=>e&&(e.disabled||e.disabled===""),U3=e=>e&&(e.defer||e.defer===""),qg=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Yg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yp=(e,t)=>{const n=e&&e.to;return Ae(n)?t?t(n):null:n},q3={name:"Teleport",__isTeleport:!0,process(e,t,n,a,o,r,s,l,u,c){const{mc:d,pc:f,pbc:p,o:{insert:g,querySelector:h,createText:v,createComment:m,parentNode:b}}=c,w=us(t.props);let{dynamicChildren:y}=t;const S=(O,T,I)=>{O.shapeFlag&16&&d(O.children,T,I,o,r,s,l,u)},k=(O=t)=>{const T=us(O.props),I=O.target=Yp(O.props,h),_=Gp(I,O,v,g);I&&(s!=="svg"&&qg(I)?s="svg":s!=="mathml"&&Yg(I)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(I),T||(S(O,I,_),fi(O,!1)))},x=O=>{const T=()=>{if($r.get(O)===T){if($r.delete(O),us(O.props)){const I=b(O.el)||n;S(O,I,O.anchor),fi(O,!0)}k(O)}};$r.set(O,T),da(T,r)};if(e==null){const O=t.el=v(""),T=t.anchor=v("");if(g(O,n,a),g(T,n,a),U3(t.props)||r&&r.pendingBranch){x(t);return}w&&(S(t,n,T),fi(t,!0)),k()}else{t.el=e.el;const O=t.anchor=e.anchor,T=$r.get(e);if(T){T.flags|=8,$r.delete(e),x(t);return}t.targetStart=e.targetStart;const I=t.target=e.target,_=t.targetAnchor=e.targetAnchor,N=us(e.props),$=N?n:I,B=N?O:_;if(s==="svg"||qg(I)?s="svg":(s==="mathml"||Yg(I))&&(s="mathml"),y?(p(e.dynamicChildren,y,$,o,r,s,l),Kv(e,t,!0)):u||f(e,t,$,B,o,r,s,l,!1),w)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zu(t,n,O,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=t.target=Yp(t.props,h);K&&Zu(t,K,null,c,0)}else N&&Zu(t,I,_,c,1);fi(t,w)}},remove(e,t,n,{um:a,o:{remove:o}},r){const{shapeFlag:s,children:l,anchor:u,targetStart:c,targetAnchor:d,target:f,props:p}=e;let g=r||!us(p);const h=$r.get(e);if(h&&(h.flags|=8,$r.delete(e),g=!1),f&&(o(c),o(d)),r&&o(u),s&16)for(let v=0;v{e.isMounted=!0}),Vt(()=>{e.isUnmounting=!0}),e}const Ha=[Function,Array],j2={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ha,onEnter:Ha,onAfterEnter:Ha,onEnterCancelled:Ha,onBeforeLeave:Ha,onLeave:Ha,onAfterLeave:Ha,onLeaveCancelled:Ha,onBeforeAppear:Ha,onAppear:Ha,onAfterAppear:Ha,onAppearCancelled:Ha},U2=e=>{const t=e.subTree;return t.component?U2(t.component):t},G3={name:"BaseTransition",props:j2,setup(e,{slots:t}){const n=dt(),a=W2();return()=>{const o=t.default&&Av(t.default(),!0),r=o&&o.length?q2(o):n.subTree?re():void 0;if(!r)return;const s=Jt(e),{mode:l}=s;if(a.isLeaving)return jf(r);const u=Gg(r);if(!u)return jf(r);let c=Wi(u,s,a,n,f=>c=f);u.type!==kn&&Os(u,c);let d=n.subTree&&Gg(n.subTree);if(d&&d.type!==kn&&!cs(d,u)&&U2(n).type!==kn){let f=Wi(d,s,a,n);if(Os(d,f),l==="out-in"&&u.type!==kn)return a.isLeaving=!0,f.afterLeave=()=>{a.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,d=void 0},jf(r);l==="in-out"&&u.type!==kn?f.delayLeave=(p,g,h)=>{const v=Y2(a,d);v[String(d.key)]=d,p[Ro]=()=>{g(),p[Ro]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{h(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return r}}};function q2(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==kn){t=n;break}}return t}const X3=G3;function Y2(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function Wi(e,t,n,a,o){const{appear:r,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:g,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:m,onAppear:b,onAfterAppear:w,onAppearCancelled:y}=t,S=String(e.key),k=Y2(n,e),x=(I,_)=>{I&&co(I,a,9,_)},O=(I,_)=>{const N=_[1];x(I,_),we(I)?I.every($=>$.length<=1)&&N():I.length<=1&&N()},T={mode:s,persisted:l,beforeEnter(I){let _=u;if(!n.isMounted)if(r)_=m||u;else return;I[Ro]&&I[Ro](!0);const N=k[S];N&&cs(e,N)&&N.el[Ro]&&N.el[Ro](),x(_,[I])},enter(I){if(k[S]===e)return;let _=c,N=d,$=f;if(!n.isMounted)if(r)_=b||c,N=w||d,$=y||f;else return;let B=!1;I[Ql]=j=>{B||(B=!0,j?x($,[I]):x(N,[I]),T.delayedLeave&&T.delayedLeave(),I[Ql]=void 0)};const K=I[Ql].bind(null,!1);_?O(_,[I,K]):K()},leave(I,_){const N=String(e.key);if(I[Ql]&&I[Ql](!0),n.isUnmounting)return _();x(p,[I]);let $=!1;I[Ro]=K=>{$||($=!0,_(),K?x(v,[I]):x(h,[I]),I[Ro]=void 0,k[N]===e&&delete k[N])};const B=I[Ro].bind(null,!1);k[N]=e,g?O(g,[I,B]):B()},clone(I){const _=Wi(I,t,n,a,o);return o&&o(_),_}};return T}function jf(e){if(zd(e))return e=Fo(e),e.children=null,e}function Gg(e){if(!zd(e))return K2(e.type)&&e.children?q2(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Fe(n.default))return n.default()}}function Os(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Os(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Av(e,t=!1,n){let a=[],o=0;for(let r=0;r1)for(let r=0;rki(v,t&&(we(t)?t[m]:t),n,a,o));return}if(cl(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&ki(e,t,n,a.component.subTree);return}const r=a.shapeFlag&4?jd(a.component):a.el,s=o?null:r,{i:l,r:u}=e,c=t&&t.r,d=l.refs===hn?l.refs={}:l.refs,f=l.setupState,p=Jt(f),g=f===hn?i2:v=>Xg(d,v)?!1:Nt(p,v),h=(v,m)=>!(m&&Xg(d,m));if(c!=null&&c!==u){if(Jg(t),Ae(c))d[c]=null,g(c)&&(f[c]=null);else if(Gt(c)){const v=t;h(c,v.k)&&(c.value=null),v.k&&(d[v.k]=null)}}if(Fe(u))mu(u,l,12,[s,d]);else{const v=Ae(u),m=Gt(u);if(v||m){const b=()=>{if(e.f){const w=v?g(u)?f[u]:d[u]:h()||!e.k?u.value:d[e.k];if(o)we(w)&&xv(w,r);else if(we(w))w.includes(r)||w.push(r);else if(v)d[u]=[r],g(u)&&(f[u]=d[u]);else{const y=[r];h(u,e.k)&&(u.value=y),e.k&&(d[e.k]=y)}}else v?(d[u]=s,g(u)&&(f[u]=s)):m&&(h(u,e.k)&&(u.value=s),e.k&&(d[e.k]=s))};if(s){const w=()=>{b(),Uc.delete(e)};w.id=-1,Uc.set(e,w),da(w,n)}else Jg(e),b()}}}function Jg(e){const t=Uc.get(e);t&&(t.flags|=8,Uc.delete(e))}Nd().requestIdleCallback;Nd().cancelIdleCallback;const cl=e=>!!e.type.__asyncLoader,zd=e=>e.type.__isKeepAlive;function gu(e,t){X2(e,"a",t)}function Lv(e,t){X2(e,"da",t)}function X2(e,t,n=na){const a=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Hd(t,a,n),n){let o=n.parent;for(;o&&o.parent;)zd(o.parent.vnode)&&J3(a,t,n,o),o=o.parent}}function J3(e,t,n,a){const o=Hd(t,e,a,!0);Fl(()=>{xv(a[t],o)},n)}function Hd(e,t,n=na,a=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{dr();const l=bu(n),u=co(t,n,e,s);return l(),fr(),u});return a?o.unshift(r):o.push(r),r}}const yr=e=>(t,n=na)=>{(!ji||e==="sp")&&Hd(e,(...a)=>t(...a),n)},Kd=yr("bm"),ht=yr("m"),Dv=yr("bu"),yo=yr("u"),Vt=yr("bum"),Fl=yr("um"),Z3=yr("sp"),Q3=yr("rtg"),eT=yr("rtc");function tT(e,t=na){Hd("ec",e,t)}const Bv="components",nT="directives";function Mt(e,t){return Fv(Bv,e,!0,t)||e}const J2=Symbol.for("v-ndc");function it(e){return Ae(e)?Fv(Bv,e,!1)||e:e||J2}function Vv(e){return Fv(nT,e)}function Fv(e,t,n=!0,a=!1){const o=Jn||na;if(o){const r=o.type;if(e===Bv){const l=BT(r,!1);if(l&&(l===t||l===qn(t)||l===vu(qn(t))))return r}const s=Zg(o[e]||r[e],t)||Zg(o.appContext[e],t);return!s&&a?r:s}}function Zg(e,t){return e&&(e[t]||e[qn(t)]||e[vu(qn(t))])}function kt(e,t,n,a){let o;const r=n&&n[a],s=we(e);if(s||Ae(e)){const l=s&&lr(e);let u=!1,c=!1;l&&(u=!Ba(e),c=pr(e),e=Ad(e)),o=new Array(e.length);for(let d=0,f=e.length;dt(l,u,void 0,r&&r[u]));else{const l=Object.keys(e);o=new Array(l.length);for(let u=0,c=l.length;u{const r=a.fn(...o);return r&&(r.key=a.key),r}:a.fn)}return e}function oe(e,t,n={},a,o){if(Jn.ce||Jn.parent&&cl(Jn.parent)&&Jn.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),E(),le(Ve,null,[X("slot",n,a&&a())],c?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),E();const s=r&&Z2(r(n)),l=n.key||s&&s.key,u=le(Ve,{key:(l&&!Fa(l)?l:`_${t}`)+(!s&&a?"_fb":"")},s||(a?a():[]),s&&e._===1?64:-2);return!o&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function Z2(e){return e.some(t=>Zt(t)?!(t.type===kn||t.type===Ve&&!Z2(t.children)):!0)?e:null}function aT(e,t){const n={};for(const a in e)n[wi(a)]=e[a];return n}const Xp=e=>e?bw(e)?jd(e):Xp(e.parent):null,Ei=Vn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xp(e.parent),$root:e=>Xp(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>tw(e),$forceUpdate:e=>e.f||(e.f=()=>{Nv(e.update)}),$nextTick:e=>e.n||(e.n=Ne.bind(e.proxy)),$watch:e=>j3.bind(e)}),Uf=(e,t)=>e!==hn&&!e.__isScriptSetup&&Nt(e,t),oT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:o,props:r,accessCache:s,type:l,appContext:u}=e;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return a[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Uf(a,t))return s[t]=1,a[t];if(o!==hn&&Nt(o,t))return s[t]=2,o[t];if(Nt(r,t))return s[t]=3,r[t];if(n!==hn&&Nt(n,t))return s[t]=4,n[t];Jp&&(s[t]=0)}}const c=Ei[t];let d,f;if(c)return t==="$attrs"&&ta(e.attrs,"get",""),c(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==hn&&Nt(n,t))return s[t]=4,n[t];if(f=u.config.globalProperties,Nt(f,t))return f[t]},set({_:e},t,n){const{data:a,setupState:o,ctx:r}=e;return Uf(o,t)?(o[t]=n,!0):a!==hn&&Nt(a,t)?(a[t]=n,!0):Nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:o,props:r,type:s}},l){let u;return!!(n[l]||e!==hn&&l[0]!=="$"&&Nt(e,l)||Uf(t,l)||Nt(r,l)||Nt(a,l)||Nt(Ei,l)||Nt(o.config.globalProperties,l)||(u=s.__cssModules)&&u[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Nt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wn(){return Q2().slots}function wr(){return Q2().attrs}function Q2(e){const t=dt();return t.setupContext||(t.setupContext=ww(t))}function Qg(e){return we(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function moe(e,t){const n={};for(const a in e)t.includes(a)||Object.defineProperty(n,a,{enumerable:!0,get:()=>e[a]});return n}let Jp=!0;function rT(e){const t=tw(e),n=e.proxy,a=e.ctx;Jp=!1,t.beforeCreate&&eb(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:l,provide:u,inject:c,created:d,beforeMount:f,mounted:p,beforeUpdate:g,updated:h,activated:v,deactivated:m,beforeDestroy:b,beforeUnmount:w,destroyed:y,unmounted:S,render:k,renderTracked:x,renderTriggered:O,errorCaptured:T,serverPrefetch:I,expose:_,inheritAttrs:N,components:$,directives:B,filters:K}=t;if(c&&sT(c,a,null),s)for(const A in s){const P=s[A];Fe(P)&&(a[A]=P.bind(n))}if(o){const A=o.call(n,n);ot(A)&&(e.data=Dt(A))}if(Jp=!0,r)for(const A in r){const P=r[A],V=Fe(P)?P.bind(n,n):Fe(P.get)?P.get.bind(n,n):ut,F=!Fe(P)&&Fe(P.set)?P.set.bind(n):ut,H=C({get:V,set:F});Object.defineProperty(a,A,{enumerable:!0,configurable:!0,get:()=>H.value,set:U=>H.value=U})}if(l)for(const A in l)ew(l[A],a,n,A);if(u){const A=Fe(u)?u.call(n):u;Reflect.ownKeys(A).forEach(P=>{St(P,A[P])})}d&&eb(d,e,"c");function W(A,P){we(P)?P.forEach(V=>A(V.bind(n))):P&&A(P.bind(n))}if(W(Kd,f),W(ht,p),W(Dv,g),W(yo,h),W(gu,v),W(Lv,m),W(tT,T),W(eT,x),W(Q3,O),W(Vt,w),W(Fl,S),W(Z3,I),we(_))if(_.length){const A=e.exposed||(e.exposed={});_.forEach(P=>{Object.defineProperty(A,P,{get:()=>n[P],set:V=>n[P]=V,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===ut&&(e.render=k),N!=null&&(e.inheritAttrs=N),$&&(e.components=$),B&&(e.directives=B),I&&G2(e)}function sT(e,t,n=ut){we(e)&&(e=Zp(e));for(const a in e){const o=e[a];let r;ot(o)?"default"in o?r=$e(o.from||a,o.default,!0):r=$e(o.from||a):r=$e(o),Gt(r)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[a]=r}}function eb(e,t,n){co(we(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function ew(e,t,n,a){let o=a.includes(".")?z2(n,a):()=>n[a];if(Ae(e)){const r=t[e];Fe(r)&&pe(o,r)}else if(Fe(e))pe(o,e.bind(n));else if(ot(e))if(we(e))e.forEach(r=>ew(r,t,n,a));else{const r=Fe(e.handler)?e.handler.bind(n):t[e.handler];Fe(r)&&pe(o,r,e)}}function tw(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let u;return l?u=l:!o.length&&!n&&!a?u=t:(u={},o.length&&o.forEach(c=>qc(u,c,s,!0)),qc(u,t,s)),ot(t)&&r.set(t,u),u}function qc(e,t,n,a=!1){const{mixins:o,extends:r}=t;r&&qc(e,r,n,!0),o&&o.forEach(s=>qc(e,s,n,!0));for(const s in t)if(!(a&&s==="expose")){const l=lT[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const lT={data:tb,props:nb,emits:nb,methods:pi,computed:pi,beforeCreate:ca,created:ca,beforeMount:ca,mounted:ca,beforeUpdate:ca,updated:ca,beforeDestroy:ca,beforeUnmount:ca,destroyed:ca,unmounted:ca,activated:ca,deactivated:ca,errorCaptured:ca,serverPrefetch:ca,components:pi,directives:pi,watch:uT,provide:tb,inject:iT};function tb(e,t){return t?e?function(){return Vn(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function iT(e,t){return pi(Zp(e),Zp(t))}function Zp(e){if(we(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${qn(t)}Modifiers`]||e[`${br(t)}Modifiers`];function pT(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||hn;let o=n;const r=t.startsWith("update:"),s=r&&fT(a,t.slice(7));s&&(s.trim&&(o=n.map(d=>Ae(d)?d.trim():d)),s.number&&(o=n.map(Tv)));let l,u=a[l=wi(t)]||a[l=wi(qn(t))];!u&&r&&(u=a[l=wi(br(t))]),u&&co(u,e,6,o);const c=a[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,co(c,e,6,o)}}const hT=new WeakMap;function aw(e,t,n=!1){const a=n?hT:t.emitsCache,o=a.get(e);if(o!==void 0)return o;const r=e.emits;let s={},l=!1;if(!Fe(e)){const u=c=>{const d=aw(c,t,!0);d&&(l=!0,Vn(s,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!l?(ot(e)&&a.set(e,null),null):(we(r)?r.forEach(u=>s[u]=null):Vn(s,r),ot(e)&&a.set(e,s),s)}function Wd(e,t){return!e||!Od(t)?!1:(t=t.slice(2).replace(/Once$/,""),Nt(e,t[0].toLowerCase()+t.slice(1))||Nt(e,br(t))||Nt(e,t))}function ab(e){const{type:t,vnode:n,proxy:a,withProxy:o,propsOptions:[r],slots:s,attrs:l,emit:u,render:c,renderCache:d,props:f,data:p,setupState:g,ctx:h,inheritAttrs:v}=e,m=jc(e);let b,w;try{if(n.shapeFlag&4){const S=o||a,k=S;b=$o(c.call(k,S,d,f,g,p,h)),w=l}else{const S=t;b=$o(S.length>1?S(f,{attrs:l,slots:s,emit:u}):S(f,null)),w=t.props?l:vT(l)}}catch(S){xi.length=0,Fd(S,e,1),b=X(kn)}let y=b;if(w&&v!==!1){const S=Object.keys(w),{shapeFlag:k}=y;S.length&&k&7&&(r&&S.some(_d)&&(w=mT(w,r)),y=Fo(y,w,!1,!0))}return n.dirs&&(y=Fo(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Os(y,n.transition),b=y,jc(m),b}const vT=e=>{let t;for(const n in e)(n==="class"||n==="style"||Od(n))&&((t||(t={}))[n]=e[n]);return t},mT=(e,t)=>{const n={};for(const a in e)(!_d(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function gT(e,t,n){const{props:a,children:o,component:r}=e,{props:s,children:l,patchFlag:u}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return a?ob(a,s,c):!!s;if(u&8){const d=t.dynamicProps;for(let f=0;fObject.create(rw),lw=e=>Object.getPrototypeOf(e)===rw;function yT(e,t,n,a=!1){const o={},r=sw();e.propsDefaults=Object.create(null),iw(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=a?o:Dd(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function wT(e,t,n,a){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,l=Jt(o),[u]=e.propsOptions;let c=!1;if((a||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[p,g]=uw(f,t,!0);Vn(s,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!u)return ot(e)&&a.set(e,ll),ll;if(we(r))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Hv=e=>we(e)?e.map($o):[$o(e)],CT=(e,t,n)=>{if(t._n)return t;const a=ne((...o)=>Hv(t(...o)),n);return a._c=!1,a},cw=(e,t,n)=>{const a=e._ctx;for(const o in e){if(zv(o))continue;const r=e[o];if(Fe(r))t[o]=CT(o,r,a);else if(r!=null){const s=Hv(r);t[o]=()=>s}}},dw=(e,t)=>{const n=Hv(t);e.slots.default=()=>n},fw=(e,t,n)=>{for(const a in t)(n||!zv(a))&&(e[a]=t[a])},kT=(e,t,n)=>{const a=e.slots=sw();if(e.vnode.shapeFlag&32){const o=t._;o?(fw(a,t,n),n&&c2(a,"_",o,!0)):cw(t,a)}else t&&dw(e,t)},ET=(e,t,n)=>{const{vnode:a,slots:o}=e;let r=!0,s=hn;if(a.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:fw(o,t,n):(r=!t.$stable,cw(t,o)),s=t}else t&&(dw(e,t),s={default:1});if(r)for(const l in o)!zv(l)&&s[l]==null&&delete o[l]},da=RT;function xT(e){return TT(e)}function TT(e,t){const n=Nd();n.__VUE__=!0;const{insert:a,remove:o,patchProp:r,createElement:s,createText:l,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:p,setScopeId:g=ut,insertStaticContent:h}=e,v=(D,q,te,fe=null,he=null,ve=null,Ie=void 0,Le=null,_e=!!q.dynamicChildren)=>{if(D===q)return;D&&!cs(D,q)&&(fe=Z(D),U(D,he,ve,!0),D=null),q.patchFlag===-2&&(_e=!1,q.dynamicChildren=null);const{type:ye,ref:Te,shapeFlag:be}=q;switch(ye){case zl:m(D,q,te,fe);break;case kn:b(D,q,te,fe);break;case Cc:D==null&&w(q,te,fe,Ie);break;case Ve:$(D,q,te,fe,he,ve,Ie,Le,_e);break;default:be&1?k(D,q,te,fe,he,ve,Ie,Le,_e):be&6?B(D,q,te,fe,he,ve,Ie,Le,_e):(be&64||be&128)&&ye.process(D,q,te,fe,he,ve,Ie,Le,_e,Y)}Te!=null&&he?ki(Te,D&&D.ref,ve,q||D,!q):Te==null&&D&&D.ref!=null&&ki(D.ref,null,ve,D,!0)},m=(D,q,te,fe)=>{if(D==null)a(q.el=l(q.children),te,fe);else{const he=q.el=D.el;q.children!==D.children&&c(he,q.children)}},b=(D,q,te,fe)=>{D==null?a(q.el=u(q.children||""),te,fe):q.el=D.el},w=(D,q,te,fe)=>{[D.el,D.anchor]=h(D.children,q,te,fe,D.el,D.anchor)},y=({el:D,anchor:q},te,fe)=>{let he;for(;D&&D!==q;)he=p(D),a(D,te,fe),D=he;a(q,te,fe)},S=({el:D,anchor:q})=>{let te;for(;D&&D!==q;)te=p(D),o(D),D=te;o(q)},k=(D,q,te,fe,he,ve,Ie,Le,_e)=>{if(q.type==="svg"?Ie="svg":q.type==="math"&&(Ie="mathml"),D==null)x(q,te,fe,he,ve,Ie,Le,_e);else{const ye=D.el&&D.el._isVueCE?D.el:null;try{ye&&ye._beginPatch(),I(D,q,he,ve,Ie,Le,_e)}finally{ye&&ye._endPatch()}}},x=(D,q,te,fe,he,ve,Ie,Le)=>{let _e,ye;const{props:Te,shapeFlag:be,transition:Pe,dirs:He}=D;if(_e=D.el=s(D.type,ve,Te&&Te.is,Te),be&8?d(_e,D.children):be&16&&T(D.children,_e,null,fe,he,qf(D,ve),Ie,Le),He&&ns(D,null,fe,"created"),O(_e,D,D.scopeId,Ie,fe),Te){for(const Qe in Te)Qe!=="value"&&!yi(Qe)&&r(_e,Qe,null,Te[Qe],ve,fe);"value"in Te&&r(_e,"value",null,Te.value,ve),(ye=Te.onVnodeBeforeMount)&&xo(ye,fe,D)}He&&ns(D,null,fe,"beforeMount");const Je=OT(he,Pe);Je&&Pe.beforeEnter(_e),a(_e,q,te),((ye=Te&&Te.onVnodeMounted)||Je||He)&&da(()=>{try{ye&&xo(ye,fe,D),Je&&Pe.enter(_e),He&&ns(D,null,fe,"mounted")}finally{}},he)},O=(D,q,te,fe,he)=>{if(te&&g(D,te),fe)for(let ve=0;ve{for(let ye=_e;ye{const Le=q.el=D.el;let{patchFlag:_e,dynamicChildren:ye,dirs:Te}=q;_e|=D.patchFlag&16;const be=D.props||hn,Pe=q.props||hn;let He;if(te&&as(te,!1),(He=Pe.onVnodeBeforeUpdate)&&xo(He,te,q,D),Te&&ns(q,D,te,"beforeUpdate"),te&&as(te,!0),(be.innerHTML&&Pe.innerHTML==null||be.textContent&&Pe.textContent==null)&&d(Le,""),ye?_(D.dynamicChildren,ye,Le,te,fe,qf(q,he),ve):Ie||P(D,q,Le,null,te,fe,qf(q,he),ve,!1),_e>0){if(_e&16)N(Le,be,Pe,te,he);else if(_e&2&&be.class!==Pe.class&&r(Le,"class",null,Pe.class,he),_e&4&&r(Le,"style",be.style,Pe.style,he),_e&8){const Je=q.dynamicProps;for(let Qe=0;Qe{He&&xo(He,te,q,D),Te&&ns(q,D,te,"updated")},fe)},_=(D,q,te,fe,he,ve,Ie)=>{for(let Le=0;Le{if(q!==te){if(q!==hn)for(const ve in q)!yi(ve)&&!(ve in te)&&r(D,ve,q[ve],null,he,fe);for(const ve in te){if(yi(ve))continue;const Ie=te[ve],Le=q[ve];Ie!==Le&&ve!=="value"&&r(D,ve,Le,Ie,he,fe)}"value"in te&&r(D,"value",q.value,te.value,he)}},$=(D,q,te,fe,he,ve,Ie,Le,_e)=>{const ye=q.el=D?D.el:l(""),Te=q.anchor=D?D.anchor:l("");let{patchFlag:be,dynamicChildren:Pe,slotScopeIds:He}=q;He&&(Le=Le?Le.concat(He):He),D==null?(a(ye,te,fe),a(Te,te,fe),T(q.children||[],te,Te,he,ve,Ie,Le,_e)):be>0&&be&64&&Pe&&D.dynamicChildren&&D.dynamicChildren.length===Pe.length?(_(D.dynamicChildren,Pe,te,he,ve,Ie,Le),(q.key!=null||he&&q===he.subTree)&&Kv(D,q,!0)):P(D,q,te,Te,he,ve,Ie,Le,_e)},B=(D,q,te,fe,he,ve,Ie,Le,_e)=>{q.slotScopeIds=Le,D==null?q.shapeFlag&512?he.ctx.activate(q,te,fe,Ie,_e):K(q,te,fe,he,ve,Ie,_e):j(D,q,_e)},K=(D,q,te,fe,he,ve,Ie)=>{const Le=D.component=PT(D,fe,he);if(zd(D)&&(Le.ctx.renderer=Y),AT(Le,!1,Ie),Le.asyncDep){if(he&&he.registerDep(Le,W,Ie),!D.el){const _e=Le.subTree=X(kn);b(null,_e,q,te),D.placeholder=_e.el}}else W(Le,D,q,te,he,ve,Ie)},j=(D,q,te)=>{const fe=q.component=D.component;if(gT(D,q,te))if(fe.asyncDep&&!fe.asyncResolved){A(fe,q,te);return}else fe.next=q,fe.update();else q.el=D.el,fe.vnode=q},W=(D,q,te,fe,he,ve,Ie)=>{const Le=()=>{if(D.isMounted){let{next:be,bu:Pe,u:He,parent:Je,vnode:Qe}=D;{const zt=pw(D);if(zt){be&&(be.el=Qe.el,A(D,be,Ie)),zt.asyncDep.then(()=>{da(()=>{D.isUnmounted||ye()},he)});return}}let lt=be,Ze;as(D,!1),be?(be.el=Qe.el,A(D,be,Ie)):be=Qe,Pe&&wc(Pe),(Ze=be.props&&be.props.onVnodeBeforeUpdate)&&xo(Ze,Je,be,Qe),as(D,!0);const gt=ab(D),At=D.subTree;D.subTree=gt,v(At,gt,f(At.el),Z(At),D,he,ve),be.el=gt.el,lt===null&&bT(D,gt.el),He&&da(He,he),(Ze=be.props&&be.props.onVnodeUpdated)&&da(()=>xo(Ze,Je,be,Qe),he)}else{let be;const{el:Pe,props:He}=q,{bm:Je,m:Qe,parent:lt,root:Ze,type:gt}=D,At=cl(q);as(D,!1),Je&&wc(Je),!At&&(be=He&&He.onVnodeBeforeMount)&&xo(be,lt,q),as(D,!0);{Ze.ce&&Ze.ce._hasShadowRoot()&&Ze.ce._injectChildStyle(gt,D.parent?D.parent.type:void 0);const zt=D.subTree=ab(D);v(null,zt,te,fe,D,he,ve),q.el=zt.el}if(Qe&&da(Qe,he),!At&&(be=He&&He.onVnodeMounted)){const zt=q;da(()=>xo(be,lt,zt),he)}(q.shapeFlag&256||lt&&cl(lt.vnode)&<.vnode.shapeFlag&256)&&D.a&&da(D.a,he),D.isMounted=!0,q=te=fe=null}};D.scope.on();const _e=D.effect=new m2(Le);D.scope.off();const ye=D.update=_e.run.bind(_e),Te=D.job=_e.runIfDirty.bind(_e);Te.i=D,Te.id=D.uid,_e.scheduler=()=>Nv(Te),as(D,!0),ye()},A=(D,q,te)=>{q.component=D;const fe=D.vnode.props;D.vnode=q,D.next=null,wT(D,q.props,fe,te),ET(D,q.children,te),dr(),Ug(D),fr()},P=(D,q,te,fe,he,ve,Ie,Le,_e=!1)=>{const ye=D&&D.children,Te=D?D.shapeFlag:0,be=q.children,{patchFlag:Pe,shapeFlag:He}=q;if(Pe>0){if(Pe&128){F(ye,be,te,fe,he,ve,Ie,Le,_e);return}else if(Pe&256){V(ye,be,te,fe,he,ve,Ie,Le,_e);return}}He&8?(Te&16&&ce(ye,he,ve),be!==ye&&d(te,be)):Te&16?He&16?F(ye,be,te,fe,he,ve,Ie,Le,_e):ce(ye,he,ve,!0):(Te&8&&d(te,""),He&16&&T(be,te,fe,he,ve,Ie,Le,_e))},V=(D,q,te,fe,he,ve,Ie,Le,_e)=>{D=D||ll,q=q||ll;const ye=D.length,Te=q.length,be=Math.min(ye,Te);let Pe;for(Pe=0;PeTe?ce(D,he,ve,!0,!1,be):T(q,te,fe,he,ve,Ie,Le,_e,be)},F=(D,q,te,fe,he,ve,Ie,Le,_e)=>{let ye=0;const Te=q.length;let be=D.length-1,Pe=Te-1;for(;ye<=be&&ye<=Pe;){const He=D[ye],Je=q[ye]=_e?er(q[ye]):$o(q[ye]);if(cs(He,Je))v(He,Je,te,null,he,ve,Ie,Le,_e);else break;ye++}for(;ye<=be&&ye<=Pe;){const He=D[be],Je=q[Pe]=_e?er(q[Pe]):$o(q[Pe]);if(cs(He,Je))v(He,Je,te,null,he,ve,Ie,Le,_e);else break;be--,Pe--}if(ye>be){if(ye<=Pe){const He=Pe+1,Je=HePe)for(;ye<=be;)U(D[ye],he,ve,!0),ye++;else{const He=ye,Je=ye,Qe=new Map;for(ye=Je;ye<=Pe;ye++){const me=q[ye]=_e?er(q[ye]):$o(q[ye]);me.key!=null&&Qe.set(me.key,ye)}let lt,Ze=0;const gt=Pe-Je+1;let At=!1,zt=0;const nt=new Array(gt);for(ye=0;ye=gt){U(me,he,ve,!0);continue}let je;if(me.key!=null)je=Qe.get(me.key);else for(lt=Je;lt<=Pe;lt++)if(nt[lt-Je]===0&&cs(me,q[lt])){je=lt;break}je===void 0?U(me,he,ve,!0):(nt[je-Je]=ye+1,je>=zt?zt=je:At=!0,v(me,q[je],te,null,he,ve,Ie,Le,_e),Ze++)}const ft=At?_T(nt):ll;for(lt=ft.length-1,ye=gt-1;ye>=0;ye--){const me=Je+ye,je=q[me],ie=q[me+1],xe=me+1{const{el:ve,type:Ie,transition:Le,children:_e,shapeFlag:ye}=D;if(ye&6){H(D.component.subTree,q,te,fe);return}if(ye&128){D.suspense.move(q,te,fe);return}if(ye&64){Ie.move(D,q,te,Y);return}if(Ie===Ve){a(ve,q,te);for(let be=0;be<_e.length;be++)H(_e[be],q,te,fe);a(D.anchor,q,te);return}if(Ie===Cc){y(D,q,te);return}if(fe!==2&&ye&1&&Le)if(fe===0)Le.beforeEnter(ve),a(ve,q,te),da(()=>Le.enter(ve),he);else{const{leave:be,delayLeave:Pe,afterLeave:He}=Le,Je=()=>{D.ctx.isUnmounted?o(ve):a(ve,q,te)},Qe=()=>{ve._isLeaving&&ve[Ro](!0),be(ve,()=>{Je(),He&&He()})};Pe?Pe(ve,Je,Qe):Qe()}else a(ve,q,te)},U=(D,q,te,fe=!1,he=!1)=>{const{type:ve,props:Ie,ref:Le,children:_e,dynamicChildren:ye,shapeFlag:Te,patchFlag:be,dirs:Pe,cacheIndex:He,memo:Je}=D;if(be===-2&&(he=!1),Le!=null&&(dr(),ki(Le,null,te,D,!0),fr()),He!=null&&(q.renderCache[He]=void 0),Te&256){q.ctx.deactivate(D);return}const Qe=Te&1&&Pe,lt=!cl(D);let Ze;if(lt&&(Ze=Ie&&Ie.onVnodeBeforeUnmount)&&xo(Ze,q,D),Te&6)ae(D.component,te,fe);else{if(Te&128){D.suspense.unmount(te,fe);return}Qe&&ns(D,null,q,"beforeUnmount"),Te&64?D.type.remove(D,q,te,Y,fe):ye&&!ye.hasOnce&&(ve!==Ve||be>0&&be&64)?ce(ye,q,te,!1,!0):(ve===Ve&&be&384||!he&&Te&16)&&ce(_e,q,te),fe&&J(D)}const gt=Je!=null&&He==null;(lt&&(Ze=Ie&&Ie.onVnodeUnmounted)||Qe||gt)&&da(()=>{Ze&&xo(Ze,q,D),Qe&&ns(D,null,q,"unmounted"),gt&&(D.el=null)},te)},J=D=>{const{type:q,el:te,anchor:fe,transition:he}=D;if(q===Ve){ee(te,fe);return}if(q===Cc){S(D);return}const ve=()=>{o(te),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(D.shapeFlag&1&&he&&!he.persisted){const{leave:Ie,delayLeave:Le}=he,_e=()=>Ie(te,ve);Le?Le(D.el,ve,_e):_e()}else ve()},ee=(D,q)=>{let te;for(;D!==q;)te=p(D),o(D),D=te;o(q)},ae=(D,q,te)=>{const{bum:fe,scope:he,job:ve,subTree:Ie,um:Le,m:_e,a:ye}=D;sb(_e),sb(ye),fe&&wc(fe),he.stop(),ve&&(ve.flags|=8,U(Ie,D,q,te)),Le&&da(Le,q),da(()=>{D.isUnmounted=!0},q)},ce=(D,q,te,fe=!1,he=!1,ve=0)=>{for(let Ie=ve;Ie{if(D.shapeFlag&6)return Z(D.component.subTree);if(D.shapeFlag&128)return D.suspense.next();const q=p(D.anchor||D.el),te=q&&q[H2];return te?p(te):q};let de=!1;const ue=(D,q,te)=>{let fe;D==null?q._vnode&&(U(q._vnode,null,null,!0),fe=q._vnode.component):v(q._vnode||null,D,q,null,null,null,te),q._vnode=D,de||(de=!0,Ug(fe),B2(),de=!1)},Y={p:v,um:U,m:H,r:J,mt:K,mc:T,pc:P,pbc:_,n:Z,o:e};return{render:ue,hydrate:void 0,createApp:dT(ue)}}function qf({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function as({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function OT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Kv(e,t,n=!1){const a=e.children,o=t.children;if(we(a)&&we(o))for(let r=0;r>1,e[n[l]]0&&(t[a]=n[r-1]),n[r]=a)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function pw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:pw(t)}function sb(e){if(e)for(let t=0;te.__isSuspense;function RT(e,t){t&&t.pendingBranch?we(e)?t.effects.push(...e):t.effects.push(e):H3(e)}const Ve=Symbol.for("v-fgt"),zl=Symbol.for("v-txt"),kn=Symbol.for("v-cmt"),Cc=Symbol.for("v-stc"),xi=[];let va=null;function E(e=!1){xi.push(va=e?null:[])}function IT(){xi.pop(),va=xi[xi.length-1]||null}let yl=1;function Yc(e,t=!1){yl+=e,e<0&&va&&t&&(va.hasOnce=!0)}function mw(e){return e.dynamicChildren=yl>0?va||ll:null,IT(),yl>0&&va&&va.push(e),e}function L(e,t,n,a,o,r){return mw(z(e,t,n,a,o,r,!0))}function le(e,t,n,a,o){return mw(X(e,t,n,a,o,!0))}function Zt(e){return e?e.__v_isVNode===!0:!1}function cs(e,t){return e.type===t.type&&e.key===t.key}const gw=({key:e})=>e??null,kc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||Gt(e)||Fe(e)?{i:Jn,r:e,k:t,f:!!n}:e:null);function z(e,t=null,n=null,a=0,o=null,r=e===Ve?0:1,s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gw(t),ref:t&&kc(t),scopeId:F2,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:a,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Jn};return l?(Wv(u,n),r&128&&e.normalize(u)):n&&(u.shapeFlag|=Ae(n)?8:16),yl>0&&!s&&va&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&va.push(u),u}const X=$T;function $T(e,t=null,n=null,a=0,o=null,r=!1){if((!e||e===J2)&&(e=kn),Zt(e)){const l=Fo(e,t,!0);return n&&Wv(l,n),yl>0&&!r&&va&&(l.shapeFlag&6?va[va.indexOf(e)]=l:va.push(l)),l.patchFlag=-2,l}if(VT(e)&&(e=e.__vccOpts),t){t=ir(t);let{class:l,style:u}=t;l&&!Ae(l)&&(t.class=R(l)),ot(u)&&(Vd(u)&&!we(u)&&(u=Vn({},u)),t.style=ze(u))}const s=Ae(e)?1:vw(e)?128:K2(e)?64:ot(e)?4:Fe(e)?2:0;return z(e,t,n,a,o,s,r,!0)}function ir(e){return e?Vd(e)||lw(e)?Vn({},e):e:null}function Fo(e,t,n=!1,a=!1){const{props:o,ref:r,patchFlag:s,children:l,transition:u}=e,c=t?pt(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&gw(c),ref:t&&t.ref?n&&r?we(r)?r.concat(kc(t)):[r,kc(t)]:kc(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fo(e.ssContent),ssFallback:e.ssFallback&&Fo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&a&&Os(d,u.clone(d)),d}function wt(e=" ",t=0){return X(zl,null,e,t)}function goe(e,t){const n=X(Cc,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(E(),le(kn,null,e)):X(kn,null,e)}function $o(e){return e==null||typeof e=="boolean"?X(kn):we(e)?X(Ve,null,e.slice()):Zt(e)?er(e):X(zl,null,String(e))}function er(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fo(e)}function Wv(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(we(t))n=16;else if(typeof t=="object")if(a&65){const o=t.default;o&&(o._c&&(o._d=!1),Wv(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!lw(t)?t._ctx=Jn:o===3&&Jn&&(Jn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Fe(t)?(t={default:t,_ctx:Jn},n=32):(t=String(t),a&64?(n=16,t=[wt(t)]):n=8);e.children=t,e.shapeFlag|=n}function pt(...e){const t={};for(let n=0;nna||Jn;let Gc,eh;{const e=Nd(),t=(n,a)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(a),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};Gc=t("__VUE_INSTANCE_SETTERS__",n=>na=n),eh=t("__VUE_SSR_SETTERS__",n=>ji=n)}const bu=e=>{const t=na;return Gc(e),e.scope.on(),()=>{e.scope.off(),Gc(t)}},lb=()=>{na&&na.scope.off(),Gc(null)};function bw(e){return e.vnode.shapeFlag&4}let ji=!1;function AT(e,t=!1,n=!1){t&&eh(t);const{props:a,children:o}=e.vnode,r=bw(e);yT(e,a,r,t),kT(e,o,n||t);const s=r?LT(e,t):void 0;return t&&eh(!1),s}function LT(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,oT);const{setup:a}=n;if(a){dr();const o=e.setupContext=a.length>1?ww(e):null,r=bu(e),s=mu(a,e,0,[e.props,o]),l=qr(s);if(fr(),r(),(l||e.sp)&&!cl(e)&&G2(e),l){if(s.then(lb,lb),t)return s.then(u=>{ib(e,u)}).catch(u=>{Fd(u,e,0)});e.asyncDep=s}else ib(e,s)}else yw(e)}function ib(e,t,n){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ot(t)&&(e.setupState=P2(t)),yw(e)}function yw(e,t,n){const a=e.type;e.render||(e.render=a.render||ut);{const o=bu(e);dr();try{rT(e)}finally{fr(),o()}}}const DT={get(e,t){return ta(e,"get",""),e[t]}};function ww(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,DT),slots:e.slots,emit:e.emit,expose:t}}function jd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(P2(Ya(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ei)return Ei[n](e)},has(t,n){return n in t||n in Ei}})):e.proxy}function BT(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function VT(e){return Fe(e)&&"__vccOpts"in e}const C=(e,t)=>D3(e,t,ji);function qe(e,t,n){try{Yc(-1);const a=arguments.length;return a===2?ot(t)&&!we(t)?Zt(t)?X(e,null,[t]):X(e,t):X(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&Zt(n)&&(n=[n]),X(e,t,n))}finally{Yc(1)}}function boe(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let a=0;a0&&va&&va.push(e),!0}const FT="3.5.34",zT=ut;/** +* @vue/runtime-dom v3.5.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let th;const ub=typeof window<"u"&&window.trustedTypes;if(ub)try{th=ub.createPolicy("vue",{createHTML:e=>e})}catch{}const Sw=th?e=>th.createHTML(e):e=>e,HT="http://www.w3.org/2000/svg",KT="http://www.w3.org/1998/Math/MathML",Qo=typeof document<"u"?document:null,cb=Qo&&Qo.createElement("template"),WT={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const o=t==="svg"?Qo.createElementNS(HT,e):t==="mathml"?Qo.createElementNS(KT,e):n?Qo.createElement(e,{is:n}):Qo.createElement(e);return e==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:e=>Qo.createTextNode(e),createComment:e=>Qo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{cb.innerHTML=Sw(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const l=cb.content;if(a==="svg"||a==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Rr="transition",ei="animation",wl=Symbol("_vtc"),Cw={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},kw=Vn({},j2,Cw),jT=e=>(e.displayName="Transition",e.props=kw,e),Yn=jT((e,{slots:t})=>qe(X3,Ew(e),t)),os=(e,t=[])=>{we(e)?e.forEach(n=>n(...t)):e&&e(...t)},db=e=>e?we(e)?e.some(t=>t.length>1):e.length>1:!1;function Ew(e){const t={};for(const $ in e)$ in Cw||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:a,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=r,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,h=UT(o),v=h&&h[0],m=h&&h[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:y,onLeave:S,onLeaveCancelled:k,onBeforeAppear:x=b,onAppear:O=w,onAppearCancelled:T=y}=t,I=($,B,K,j)=>{$._enterCancelled=j,Nr($,B?d:l),Nr($,B?c:s),K&&K()},_=($,B)=>{$._isLeaving=!1,Nr($,f),Nr($,g),Nr($,p),B&&B()},N=$=>(B,K)=>{const j=$?O:w,W=()=>I(B,$,K);os(j,[B,W]),fb(()=>{Nr(B,$?u:r),Oo(B,$?d:l),db(j)||pb(B,a,v,W)})};return Vn(t,{onBeforeEnter($){os(b,[$]),Oo($,r),Oo($,s)},onBeforeAppear($){os(x,[$]),Oo($,u),Oo($,c)},onEnter:N(!1),onAppear:N(!0),onLeave($,B){$._isLeaving=!0;const K=()=>_($,B);Oo($,f),$._enterCancelled?(Oo($,p),nh($)):(nh($),Oo($,p)),fb(()=>{$._isLeaving&&(Nr($,f),Oo($,g),db(S)||pb($,a,m,K))}),os(S,[$,K])},onEnterCancelled($){I($,!1,void 0,!0),os(y,[$])},onAppearCancelled($){I($,!0,void 0,!0),os(T,[$])},onLeaveCancelled($){_($),os(k,[$])}})}function UT(e){if(e==null)return null;if(ot(e))return[Yf(e.enter),Yf(e.leave)];{const t=Yf(e);return[t,t]}}function Yf(e){return o3(e)}function Oo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wl]||(e[wl]=new Set)).add(t)}function Nr(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[wl];n&&(n.delete(t),n.size||(e[wl]=void 0))}function fb(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qT=0;function pb(e,t,n,a){const o=e._endId=++qT,r=()=>{o===e._endId&&a()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:l,propCount:u}=xw(e,t);if(!s)return a();const c=s+"end";let d=0;const f=()=>{e.removeEventListener(c,p),r()},p=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d(n[h]||"").split(", "),o=a(`${Rr}Delay`),r=a(`${Rr}Duration`),s=hb(o,r),l=a(`${ei}Delay`),u=a(`${ei}Duration`),c=hb(l,u);let d=null,f=0,p=0;t===Rr?s>0&&(d=Rr,f=s,p=r.length):t===ei?c>0&&(d=ei,f=c,p=u.length):(f=Math.max(s,c),d=f>0?s>c?Rr:ei:null,p=d?d===Rr?r.length:u.length:0);const g=d===Rr&&/\b(?:transform|all)(?:,|$)/.test(a(`${Rr}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:g}}function hb(e,t){for(;e.lengthvb(n)+vb(e[a])))}function vb(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function nh(e){return(e?e.ownerDocument:document).body.offsetHeight}function YT(e,t,n){const a=e[wl];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Xc=Symbol("_vod"),Tw=Symbol("_vsh"),$t={name:"show",beforeMount(e,{value:t},{transition:n}){e[Xc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ti(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),ti(e,!0),a.enter(e)):a.leave(e,()=>{ti(e,!1)}):ti(e,t))},beforeUnmount(e,{value:t}){ti(e,t)}};function ti(e,t){e.style.display=t?e[Xc]:"none",e[Tw]=!t}const GT=Symbol(""),XT=/(?:^|;)\s*display\s*:/;function JT(e,t,n){const a=e.style,o=Ae(n);let r=!1;if(n&&!o){if(t)if(Ae(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&hi(a,l,"")}else for(const s in t)n[s]==null&&hi(a,s,"");for(const s in n){s==="display"&&(r=!0);const l=n[s];l!=null?QT(e,s,!Ae(t)&&t?t[s]:void 0,l)||hi(a,s,l):hi(a,s,"")}}else if(o){if(t!==n){const s=a[GT];s&&(n+=";"+s),a.cssText=n,r=XT.test(n)}}else t&&e.removeAttribute("style");Xc in e&&(e[Xc]=r?a.display:"",e[Tw]&&(a.display="none"))}const mb=/\s*!important$/;function hi(e,t,n){if(we(n))n.forEach(a=>hi(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=ZT(e,t);mb.test(n)?e.setProperty(br(a),n.replace(mb,""),"important"):e[a]=n}}const gb=["Webkit","Moz","ms"],Gf={};function ZT(e,t){const n=Gf[t];if(n)return n;let a=qn(t);if(a!=="filter"&&a in e)return Gf[t]=a;a=vu(a);for(let o=0;oXf||(aO.then(()=>Xf=0),Xf=Date.now());function rO(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;co(sO(a,n.value),t,5,[a])};return n.value=e,n.attached=oO(),n}function sO(e,t){if(we(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>o=>!o._stopped&&a&&a(o))}else return t}const kb=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lO=(e,t,n,a,o,r)=>{const s=o==="svg";t==="class"?YT(e,a,s):t==="style"?JT(e,n,a):Od(t)?_d(t)||tO(e,t,n,a,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):iO(e,t,a,s))?(wb(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yb(e,t,a,s,r,t!=="value")):e._isVueCE&&(uO(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ae(a)))?wb(e,qn(t),a,r,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),yb(e,t,a,s))};function iO(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&kb(t)&&Fe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return kb(t)&&Ae(n)?!1:t in e}function uO(e,t){const n=e._def.props;if(!n)return!1;const a=qn(t);return Array.isArray(n)?n.some(o=>qn(o)===a):Object.keys(n).some(o=>qn(o)===a)}const Ow=new WeakMap,_w=new WeakMap,Jc=Symbol("_moveCb"),Eb=Symbol("_enterCb"),cO=e=>(delete e.props.mode,e),dO=cO({name:"TransitionGroup",props:Vn({},kw,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=dt(),a=W2();let o,r;return yo(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!vO(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(fO),o.forEach(pO);const l=o.filter(hO);nh(n.vnode.el),l.forEach(u=>{const c=u.el,d=c.style;Oo(c,s),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[Jc]=p=>{p&&p.target!==c||(!p||p.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[Jc]=null,Nr(c,s))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const s=Jt(e),l=Ew(s);let u=s.tag||Ve;if(o=[],r)for(let c=0;c{l.split(/\s+/).forEach(u=>u&&a.classList.remove(u))}),n.split(/\s+/).forEach(l=>l&&a.classList.add(l)),a.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(a);const{hasTransform:s}=xw(a);return r.removeChild(a),s}const Sl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return we(t)?n=>wc(t,n):t};function mO(e){e.target.composing=!0}function xb(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ur=Symbol("_assign");function Tb(e,t,n){return t&&(e=e.trim()),n&&(e=Tv(e)),e}const $w={created(e,{modifiers:{lazy:t,trim:n,number:a}},o){e[ur]=Sl(o);const r=a||o.props&&o.props.type==="number";Vr(e,t?"change":"input",s=>{s.target.composing||e[ur](Tb(e.value,n,r))}),(n||r)&&Vr(e,"change",()=>{e.value=Tb(e.value,n,r)}),t||(Vr(e,"compositionstart",mO),Vr(e,"compositionend",xb),Vr(e,"change",xb))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:o,number:r}},s){if(e[ur]=Sl(s),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Tv(e.value):e.value,u=t??"";if(l===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(a&&t===n||o&&e.value.trim()===u)||(e.value=u)}},Nw={deep:!0,created(e,t,n){e[ur]=Sl(n),Vr(e,"change",()=>{const a=e._modelValue,o=Pw(e),r=e.checked,s=e[ur];if(we(a)){const l=f2(a,o),u=l!==-1;if(r&&!u)s(a.concat(o));else if(!r&&u){const c=[...a];c.splice(l,1),s(c)}}else if(Rd(a)){const l=new Set(a);r?l.add(o):l.delete(o),s(l)}else s(Aw(e,r))})},mounted:Ob,beforeUpdate(e,t,n){e[ur]=Sl(n),Ob(e,t,n)}};function Ob(e,{value:t,oldValue:n},a){e._modelValue=t;let o;if(we(t))o=f2(t,a.props.value)>-1;else if(Rd(t))o=t.has(a.props.value);else{if(t===n)return;o=Ts(t,Aw(e,!0))}e.checked!==o&&(e.checked=o)}const Mw={created(e,{value:t},n){e.checked=Ts(t,n.props.value),e[ur]=Sl(n),Vr(e,"change",()=>{e[ur](Pw(e))})},beforeUpdate(e,{value:t,oldValue:n},a){e[ur]=Sl(a),t!==n&&(e.checked=Ts(t,a.props.value))}};function Pw(e){return"_value"in e?e._value:e.value}function Aw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gO=["ctrl","shift","alt","meta"],bO={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>gO.some(n=>e[`${n}Key`]&&!t.includes(n))},Xe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=(o,...r)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=o=>{if(!("key"in o))return;const r=br(o.key);if(t.some(s=>s===r||yO[s]===r))return e(o)})},wO=Vn({patchProp:lO},WT);let _b;function Lw(){return _b||(_b=xT(wO))}const Yr=(...e)=>{Lw().render(...e)},Dw=(...e)=>{const t=Lw().createApp(...e),{mount:n}=t;return t.mount=a=>{const o=CO(a);if(!o)return;const r=t._component;!Fe(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,SO(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function SO(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function CO(e){return Ae(e)?document.querySelector(e):e}/*! + * pinia v2.3.1 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let Bw;const Ud=e=>Bw=e,Vw=Symbol();function ah(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ti;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ti||(Ti={}));function kO(){const e=Ov(!0),t=e.run(()=>M({}));let n=[],a=[];const o=Ya({install(r){Ud(o),o._a=r,r.provide(Vw,o),r.config.globalProperties.$pinia=o,a.forEach(s=>n.push(s)),a=[]},use(r){return this._a?n.push(r):a.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Fw=()=>{};function Rb(e,t,n,a=Fw){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),a())};return!n&&Md()&&_v(o),o}function js(e,...t){e.slice().forEach(n=>{n(...t)})}const EO=e=>e(),Ib=Symbol(),Jf=Symbol();function oh(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,a)=>e.set(a,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],o=e[n];ah(o)&&ah(a)&&e.hasOwnProperty(n)&&!Gt(a)&&!lr(a)?e[n]=oh(o,a):e[n]=a}return e}const xO=Symbol();function TO(e){return!ah(e)||!e.hasOwnProperty(xO)}const{assign:Mr}=Object;function OO(e){return!!(Gt(e)&&e.effect)}function _O(e,t,n,a){const{state:o,actions:r,getters:s}=t,l=n.state.value[e];let u;function c(){l||(n.state.value[e]=o?o():{});const d=Pn(n.state.value[e]);return Mr(d,r,Object.keys(s||{}).reduce((f,p)=>(f[p]=Ya(C(()=>{Ud(n);const g=n._s.get(e);return s[p].call(g,g)})),f),{}))}return u=zw(e,c,t,n,a,!0),u}function zw(e,t,n={},a,o,r){let s;const l=Mr({actions:{}},n),u={deep:!0};let c,d,f=[],p=[],g;const h=a.state.value[e];!r&&!h&&(a.state.value[e]={});let v;function m(T){let I;c=d=!1,typeof T=="function"?(T(a.state.value[e]),I={type:Ti.patchFunction,storeId:e,events:g}):(oh(a.state.value[e],T),I={type:Ti.patchObject,payload:T,storeId:e,events:g});const _=v=Symbol();Ne().then(()=>{v===_&&(c=!0)}),d=!0,js(f,I,a.state.value[e])}const b=r?function(){const{state:I}=n,_=I?I():{};this.$patch(N=>{Mr(N,_)})}:Fw;function w(){s.stop(),f=[],p=[],a._s.delete(e)}const y=(T,I="")=>{if(Ib in T)return T[Jf]=I,T;const _=function(){Ud(a);const N=Array.from(arguments),$=[],B=[];function K(A){$.push(A)}function j(A){B.push(A)}js(p,{args:N,name:_[Jf],store:k,after:K,onError:j});let W;try{W=T.apply(this&&this.$id===e?this:k,N)}catch(A){throw js(B,A),A}return W instanceof Promise?W.then(A=>(js($,A),A)).catch(A=>(js(B,A),Promise.reject(A))):(js($,W),W)};return _[Ib]=!0,_[Jf]=I,_},S={_p:a,$id:e,$onAction:Rb.bind(null,p),$patch:m,$reset:b,$subscribe(T,I={}){const _=Rb(f,T,I.detached,()=>N()),N=s.run(()=>pe(()=>a.state.value[e],$=>{(I.flush==="sync"?d:c)&&T({storeId:e,type:Ti.direct,events:g},$)},Mr({},u,I)));return _},$dispose:w},k=Dt(S);a._s.set(e,k);const O=(a._a&&a._a.runWithContext||EO)(()=>a._e.run(()=>(s=Ov()).run(()=>t({action:y}))));for(const T in O){const I=O[T];if(Gt(I)&&!OO(I)||lr(I))r||(h&&TO(I)&&(Gt(I)?I.value=h[T]:oh(I,h[T])),a.state.value[e][T]=I);else if(typeof I=="function"){const _=y(I,T);O[T]=_,l.actions[T]=I}}return Mr(k,O),Mr(Jt(k),O),Object.defineProperty(k,"$state",{get:()=>a.state.value[e],set:T=>{m(I=>{Mr(I,T)})}}),a._p.forEach(T=>{Mr(k,s.run(()=>T({store:k,app:a._a,pinia:a,options:l})))}),h&&r&&n.hydrate&&n.hydrate(k.$state,h),c=!0,d=!0,k}/*! #__NO_SIDE_EFFECTS__ */function Hw(e,t,n){let a,o;const r=typeof t=="function";typeof e=="string"?(a=e,o=r?n:t):(o=e,a=e.id);function s(l,u){const c=Mv();return l=l||(c?$e(Vw,null):null),l&&Ud(l),l=Bw,l._s.has(a)||(r?zw(a,t,o,l):_O(a,o,l)),l._s.get(a)}return s.$id=a,s}const Se={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},RO=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],Zf=["sun","mon","tue","wed","thu","fri","sat"],at="update:modelValue",yt="change",Tn="input",$b=Symbol("INSTALLED_KEY"),wo=["","default","small","large"],Nb=["left","center","right"];var Kw=typeof global=="object"&&global&&global.Object===Object&&global,IO=typeof self=="object"&&self&&self.Object===Object&&self,So=Kw||IO||Function("return this")(),Xa=So.Symbol,Ww=Object.prototype,$O=Ww.hasOwnProperty,NO=Ww.toString,ni=Xa?Xa.toStringTag:void 0;function MO(e){var t=$O.call(e,ni),n=e[ni];try{e[ni]=void 0;var a=!0}catch{}var o=NO.call(e);return a&&(t?e[ni]=n:delete e[ni]),o}var PO=Object.prototype,AO=PO.toString;function LO(e){return AO.call(e)}var DO="[object Null]",BO="[object Undefined]",Mb=Xa?Xa.toStringTag:void 0;function Bs(e){return e==null?e===void 0?BO:DO:Mb&&Mb in Object(e)?MO(e):LO(e)}function zo(e){return e!=null&&typeof e=="object"}var VO="[object Symbol]";function qd(e){return typeof e=="symbol"||zo(e)&&Bs(e)==VO}function jv(e,t){for(var n=-1,a=e==null?0:e.length,o=Array(a);++n0){if(++t>=p8)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function g8(e){return function(){return e}}var Zc=function(){try{var e=Fs(Object,"defineProperty");return e({},"",{}),e}catch{}}(),b8=Zc?function(e,t){return Zc(e,"toString",{configurable:!0,enumerable:!1,value:g8(t),writable:!0})}:Uv,qw=m8(b8);function y8(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var E8=9007199254740991,x8=/^(?:0|[1-9]\d*)$/;function Yd(e,t){var n=typeof e;return t=t??E8,!!t&&(n=="number"||n!="symbol"&&x8.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=_8}function Kl(e){return e!=null&&Gv(e.length)&&!qv(e)}function R8(e,t,n){if(!ya(n))return!1;var a=typeof t;return(a=="number"?Kl(n)&&Yd(t,n.length):a=="string"&&t in n)?yu(n[t],e):!1}function I8(e){return Xw(function(t,n){var a=-1,o=n.length,r=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(r=e.length>3&&typeof r=="function"?(o--,r):void 0,s&&R8(n[0],n[1],s)&&(r=o<3?void 0:r,o=1),t=Object(t);++a-1}function F6(e,t){var n=this.__data__,a=Xd(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function Sr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(l)?t>1?Cu(l,t-1,n,a,o):em(o,l):a||(o[o.length]=l)}return o}function Qc(e){var t=e==null?0:e.length;return t?Cu(e,1):[]}function nS(e){return qw(Gw(e,void 0,Qc),e+"")}var tm=tS(Object.getPrototypeOf,Object),t_="[object Object]",n_=Function.prototype,a_=Object.prototype,aS=n_.toString,o_=a_.hasOwnProperty,r_=aS.call(Object);function nm(e){if(!zo(e)||Bs(e)!=t_)return!1;var t=tm(e);if(t===null)return!0;var n=o_.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&aS.call(n)==r_}function s_(e,t,n){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(o);++a=t?e:t)),e}function Pa(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Oi(n),n=n===n?n:0),t!==void 0&&(t=Oi(t),t=t===t?t:0),l_(Oi(e),t,n)}function i_(){this.__data__=new Sr,this.size=0}function u_(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function c_(e){return this.__data__.get(e)}function d_(e){return this.__data__.has(e)}var f_=200;function p_(e,t){var n=this.__data__;if(n instanceof Sr){var a=n.__data__;if(!Gi||a.lengthl))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,g=n&zR?new Xi:void 0;for(r.set(e,t),r.set(t,e);++f=t||O<0||f&&T>=r}function b(){var x=np();if(m(x))return w(x);l=setTimeout(b,v(x))}function w(x){return l=void 0,p&&a?g(x):(a=o=void 0,s)}function y(){l!==void 0&&clearTimeout(l),c=0,a=u=o=l=void 0}function S(){return l===void 0?s:w(np())}function k(){var x=np(),O=m(x);if(a=arguments,o=this,u=x,O){if(l===void 0)return h(u);if(f)return clearTimeout(l),l=setTimeout(b,t),g(u)}return l===void 0&&(l=setTimeout(b,t)),s}return k.cancel=y,k.flush=S,k}function uh(e,t,n){(n!==void 0&&!yu(e[t],n)||n===void 0&&!(t in e))&&Gd(e,t,n)}function CS(e){return zo(e)&&Kl(e)}function ch(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function II(e){return Hl(e,Su(e))}function $I(e,t,n,a,o,r,s){var l=ch(e,n),u=ch(t,n),c=s.get(u);if(c){uh(e,n,c);return}var d=r?r(l,u,n+"",e,t,s):void 0,f=d===void 0;if(f){var p=ba(u),g=!p&&qi(u),h=!p&&!g&&Zv(u);d=u,p||g||h?ba(l)?d=l:CS(l)?d=Uw(l):g?(f=!1,d=rS(u,!0)):h?(f=!1,d=cS(u,!0)):d=[]:nm(u)||Ui(u)?(d=l,Ui(l)?d=II(l):(!ya(l)||qv(l))&&(d=dS(u))):f=!1}f&&(s.set(u,d),o(d,u,a,r,s),s.delete(u)),uh(e,n,d)}function kS(e,t,n,a,o){e!==t&&SS(t,function(r,s){if(o||(o=new lo),ya(r))$I(e,t,s,n,kS,a,o);else{var l=a?a(ch(e,s),r,s+"",e,t,o):void 0;l===void 0&&(l=r),uh(e,s,l)}},Su)}function NI(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function ES(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a-1;return Yw(e,wS(t),o,!0)}function MI(e,t){var n=-1,a=Kl(e)?Array(e.length):[];return TI(e,function(o,r,s){a[++n]=t(o,r,s)}),a}function PI(e,t){var n=ba(e)?jv:MI;return n(e,wS(t))}function xS(e,t){return Cu(PI(e,t),1)}var AI=1/0;function LI(e){var t=e==null?0:e.length;return t?Cu(e,AI):[]}function kl(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),r}),Hl(e,uS(e),n),a&&(n=Ri(n,KI|WI|jI,HI));for(var o=t.length;o--;)zI(n,t[o]);return n});function OS(e,t,n,a){if(!ya(e))return e;t=Wl(t,e);for(var o=-1,r=t.length,s=r-1,l=e;l!=null&&++o=ZI){var c=JI(e);if(c)return rm(c);s=!1,o=vS,u=new Xi}else u=l;e:for(;++ae===void 0,Wt=e=>typeof e=="boolean",Be=e=>typeof e=="number",ha=e=>!e&&e!==0||we(e)&&e.length===0||ot(e)&&!Object.keys(e).length,xa=e=>typeof Element>"u"?!1:e instanceof Element,Aa=e=>En(e),e$=e=>Ae(e)?!Number.isNaN(Number(e)):!1,Eu=e=>e===window,Ji=e=>Object.keys(e),_S=e=>Object.entries(e),Wr=(e,t,n)=>({get value(){return yn(e,t,n)},set value(a){YI(e,t,a)}}),t$="__epPropKey",G=e=>e,n$=e=>ot(e)&&!!e.__epPropKey,Co=(e,t)=>{if(!ot(e)||n$(e))return e;const{values:n,required:a,default:o,type:r,validator:s}=e,l={type:r,required:!!a,validator:n||s?u=>{let c=!1,d=[];if(n&&(d=Array.from(n),Nt(e,"default")&&d.push(o),c||(c=d.includes(u))),s&&(c||(c=s(u))),!c&&d.length>0){const f=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");zT(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[t$]:!0};return Nt(e,"default")&&(l.default=o),l},Ee=e=>kl(Object.entries(e).map(([t,n])=>[t,Co(n,t)])),a$=Ee({zIndex:{type:G([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:G([String,Object]),default:"body"}}),o$={scroll:({scrollTop:e,fixed:t})=>Be(e)&&Wt(t),[yt]:e=>Wt(e)};var RS=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function rn(e,t){throw new RS(`[${e}] ${t}`)}function jt(e,t){{const n=Ae(e)?new RS(`[${e}] ${t}`):e;console.warn(n)}}const r$=["class","style"],s$=/^on[A-Z]/,nf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=C(()=>(n?.value||[]).concat(r$)),o=dt();return o?C(()=>kl(Object.entries(o.proxy?.$attrs).filter(([r])=>!a.value.includes(r)&&!(t&&s$.test(r))))):(jt("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),C(()=>({})))};function IS(e,t){var n;const a=Tt();return la(()=>{a.value=e()},{...t,flush:(n=t?.flush)!==null&&n!==void 0?n:"sync"}),gl(a)}function jl(e,t){return Md()?(_v(e,t),!0):!1}const op=new WeakMap,l$=(...e)=>{var t;const n=e[0],a=(t=dt())===null||t===void 0?void 0:t.proxy,o=a??Md();if(o==null&&!Mv())throw new Error("injectLocal must be called in setup");return o&&op.has(o)&&n in op.get(o)?op.get(o)[n]:$e(...e)},Pt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const i$=e=>typeof e<"u",$S=e=>e!=null,u$=Object.prototype.toString,c$=e=>u$.call(e)==="[object Object]",af=(e,t,n)=>Math.min(n,Math.max(t,e)),Ea=()=>{},td=d$();function d$(){var e,t,n;return Pt&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function NS(e,t){function n(...a){return new Promise((o,r)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(o).catch(r)})}return n}function f$(e,t={}){let n,a,o=Ea;const r=u=>{clearTimeout(u),o(),o=Ea};let s;return u=>{const c=xn(e),d=xn(t.maxWait);return n&&r(n),c<=0||d!==void 0&&d<=0?(a&&(r(a),a=void 0),Promise.resolve(u())):new Promise((f,p)=>{o=t.rejectOnCancel?p:f,s=u,d&&!a&&(a=setTimeout(()=>{n&&r(n),a=void 0,f(s())},d)),n=setTimeout(()=>{a&&r(a),a=void 0,f(u())},c)})}}function p$(...e){let t=0,n,a=!0,o=Ea,r,s,l,u,c;!Gt(e[0])&&typeof e[0]=="object"?{delay:s,trailing:l=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[s,l=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,o(),o=Ea)};return p=>{const g=xn(s),h=Date.now()-t,v=()=>r=p();return d(),g<=0?(t=Date.now(),v()):(h>g?(t=Date.now(),(u||!a)&&v()):l&&(r=new Promise((m,b)=>{o=c?b:m,n=setTimeout(()=>{t=Date.now(),a=!0,m(v()),d()},Math.max(0,g-h))})),!u&&!n&&(n=setTimeout(()=>a=!0,g)),a=!1,r)}}function i0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function fl(e){return Array.isArray(e)?e:[e]}function h$(e){return dt()}function v$(e){return Dt(Gt(e)?new Proxy({},{get(t,n,a){return i(Reflect.get(e.value,n,a))},set(t,n,a){return Gt(e.value[n])&&!Gt(a)?e.value[n].value=a:e.value[n]=a,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function m$(e){return v$(C(e))}function xu(e,t=200,n={}){return NS(f$(t,n),e)}function g$(e,t=200,n={}){const a=M(xn(e)),o=xu(()=>{a.value=e.value},t,n);return pe(e,()=>o()),N2(a)}function MS(e,t=200,n=!1,a=!0,o=!1){return NS(p$(t,n,a,o),e)}function sm(e,t=!0,n){h$()?ht(e,n):t?e():Ne(e)}function El(e,t,n={}){const{immediate:a=!0,immediateCallback:o=!1}=n,r=Tt(!1);let s;function l(){s&&(clearTimeout(s),s=void 0)}function u(){r.value=!1,l()}function c(...d){o&&e(),l(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=void 0,e(...d)},xn(t))}return a&&(r.value=!0,Pt&&c()),jl(u),{isPending:N2(r),start:c,stop:u}}function b$(e,t,n){return pe(e,t,{...n,immediate:!0})}const eo=Pt?window:void 0,y$=Pt?window.document:void 0;function Rn(e){var t;const n=xn(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Bt(...e){const t=(a,o,r,s)=>(a.addEventListener(o,r,s),()=>a.removeEventListener(o,r,s)),n=C(()=>{const a=fl(xn(e[0])).filter(o=>o!=null);return a.every(o=>typeof o!="string")?a:void 0});return b$(()=>{var a,o;return[(a=(o=n.value)===null||o===void 0?void 0:o.map(r=>Rn(r)))!==null&&a!==void 0?a:[eo].filter(r=>r!=null),fl(xn(n.value?e[1]:e[0])),fl(i(n.value?e[2]:e[1])),xn(n.value?e[3]:e[2])]},([a,o,r,s],l,u)=>{if(!a?.length||!o?.length||!r?.length)return;const c=c$(s)?{...s}:s,d=a.flatMap(f=>o.flatMap(p=>r.map(g=>t(f,p,g,c))));u(()=>{d.forEach(f=>f())})},{flush:"post"})}let u0=!1;function lm(e,t,n={}){const{window:a=eo,ignore:o=[],capture:r=!0,detectIframe:s=!1,controls:l=!1}=n;if(!a)return l?{stop:Ea,cancel:Ea,trigger:Ea}:Ea;if(td&&!u0){u0=!0;const m={passive:!0};Array.from(a.document.body.children).forEach(b=>b.addEventListener("click",Ea,m)),a.document.documentElement.addEventListener("click",Ea,m)}let u=!0;const c=m=>xn(o).some(b=>{if(typeof b=="string")return Array.from(a.document.querySelectorAll(b)).some(w=>w===m.target||m.composedPath().includes(w));{const w=Rn(b);return w&&(m.target===w||m.composedPath().includes(w))}});function d(m){const b=xn(m);return b&&b.$.subTree.shapeFlag===16}function f(m,b){const w=xn(m),y=w.$.subTree&&w.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(S=>S.el===b.target||b.composedPath().includes(S.el))}const p=m=>{const b=Rn(e);if(m.target!=null&&!(!(b instanceof Element)&&d(e)&&f(e,m))&&!(!b||b===m.target||m.composedPath().includes(b))){if("detail"in m&&m.detail===0&&(u=!c(m)),!u){u=!0;return}t(m)}};let g=!1;const h=[Bt(a,"click",m=>{g||(g=!0,setTimeout(()=>{g=!1},0),p(m))},{passive:!0,capture:r}),Bt(a,"pointerdown",m=>{const b=Rn(e);u=!c(m)&&!!(b&&!m.composedPath().includes(b))},{passive:!0}),s&&Bt(a,"blur",m=>{setTimeout(()=>{const b=Rn(e);let w=a.document.activeElement;for(;w?.shadowRoot;)w=w.shadowRoot.activeElement;w?.tagName==="IFRAME"&&!b?.contains(a.document.activeElement)&&t(m)},0)},{passive:!0})].filter(Boolean),v=()=>h.forEach(m=>m());return l?{stop:v,cancel:()=>{u=!1},trigger:m=>{u=!0,p(m),u=!1}}:v}function w$(){const e=Tt(!1),t=dt();return t&&ht(()=>{e.value=!0},t),e}function of(e){const t=w$();return C(()=>(t.value,!!e()))}function Tu(e,t,n={}){const{window:a=eo,...o}=n;let r;const s=of(()=>a&&"MutationObserver"in a),l=()=>{r&&(r.disconnect(),r=void 0)},u=pe(C(()=>{const f=fl(xn(e)).map(Rn).filter($S);return new Set(f)}),f=>{l(),s.value&&f.size&&(r=new MutationObserver(t),f.forEach(p=>r.observe(p,o)))},{immediate:!0,flush:"post"}),c=()=>r?.takeRecords(),d=()=>{u(),l()};return jl(d),{isSupported:s,stop:d,takeRecords:c}}function S$(e,t,n={}){const{window:a=eo,document:o=a?.document,flush:r="sync"}=n;if(!a||!o)return Ea;let s;const l=d=>{s?.(),s=d},u=la(()=>{const d=Rn(e);if(d){const{stop:f}=Tu(o,p=>{p.map(g=>[...g.removedNodes]).flat().some(g=>g===d||g.contains(d))&&t(p)},{window:a,childList:!0,subtree:!0});l(f)}},{flush:r}),c=()=>{u(),l()};return jl(c),c}function C$(e={}){var t;const{window:n=eo,deep:a=!0,triggerOnRemoval:o=!1}=e,r=(t=e.document)!==null&&t!==void 0?t:n?.document,s=()=>{let c=r?.activeElement;if(a)for(var d;c?.shadowRoot;)c=c==null||(d=c.shadowRoot)===null||d===void 0?void 0:d.activeElement;return c},l=Tt(),u=()=>{l.value=s()};if(n){const c={capture:!0,passive:!0};Bt(n,"blur",d=>{d.relatedTarget===null&&u()},c),Bt(n,"focus",u,c)}return o&&S$(l,u,{document:r}),u(),l}const k$=Symbol("vueuse-ssr-width");function E$(){const e=Mv()?l$(k$,null):null;return typeof e=="number"?e:void 0}function x$(e,t={}){const{window:n=eo,ssrWidth:a=E$()}=t,o=of(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),r=Tt(typeof a=="number"),s=Tt(),l=Tt(!1),u=c=>{l.value=c.matches};return la(()=>{if(r.value){r.value=!o.value,l.value=xn(e).split(",").some(c=>{const d=c.includes("not all"),f=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),p=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let g=!!(f||p);return f&&g&&(g=a>=i0(f[1])),p&&g&&(g=a<=i0(p[1])),d?!g:g});return}o.value&&(s.value=n.matchMedia(xn(e)),l.value=s.value.matches)}),Bt(s,"change",u,{passive:!0}),C(()=>l.value)}function T$(e){return JSON.parse(JSON.stringify(e))}function O$(e,t,n={}){const{window:a=eo,initialValue:o,observe:r=!1}=n,s=Tt(o),l=C(()=>{var c;return Rn(t)||(a==null||(c=a.document)===null||c===void 0?void 0:c.documentElement)});function u(){const c=xn(e),d=xn(l);if(d&&a&&c){var f;s.value=((f=a.getComputedStyle(d).getPropertyValue(c))===null||f===void 0?void 0:f.trim())||s.value||o}}return r&&Tu(l,u,{attributeFilter:["style","class"],window:a}),pe([l,()=>xn(e)],(c,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),u()},{immediate:!0}),pe([s,l],([c,d])=>{const f=xn(e);d?.style&&f&&(c==null?d.style.removeProperty(f):d.style.setProperty(f,c))},{immediate:!0}),s}function _$(e={}){const{document:t=y$}=e;if(!t)return Tt("visible");const n=Tt(t.visibilityState);return Bt(t,"visibilitychange",()=>{n.value=t.visibilityState},{passive:!0}),n}function nn(e,t,n={}){const{window:a=eo,...o}=n;let r;const s=of(()=>a&&"ResizeObserver"in a),l=()=>{r&&(r.disconnect(),r=void 0)},u=pe(C(()=>{const d=xn(e);return Array.isArray(d)?d.map(f=>Rn(f)):[Rn(d)]}),d=>{if(l(),s.value&&a){r=new ResizeObserver(t);for(const f of d)f&&r.observe(f,o)}},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return jl(c),{isSupported:s,stop:c}}function c0(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:o=!0,immediate:r=!0,updateTiming:s="sync"}=t,l=Tt(0),u=Tt(0),c=Tt(0),d=Tt(0),f=Tt(0),p=Tt(0),g=Tt(0),h=Tt(0);function v(){const b=Rn(e);if(!b){n&&(l.value=0,u.value=0,c.value=0,d.value=0,f.value=0,p.value=0,g.value=0,h.value=0);return}const w=b.getBoundingClientRect();l.value=w.height,u.value=w.bottom,c.value=w.left,d.value=w.right,f.value=w.top,p.value=w.width,g.value=w.x,h.value=w.y}function m(){s==="sync"?v():s==="next-frame"&&requestAnimationFrame(()=>v())}return nn(e,m),pe(()=>Rn(e),b=>!b&&m()),Tu(e,m,{attributeFilter:["style","class"]}),o&&Bt("scroll",m,{capture:!0,passive:!0}),a&&Bt("resize",m,{passive:!0}),sm(()=>{r&&m()}),{height:l,bottom:u,left:c,right:d,top:f,width:p,x:g,y:h,update:m}}function dh(e,t={width:0,height:0},n={}){const{window:a=eo,box:o="content-box"}=n,r=C(()=>{var f;return(f=Rn(e))===null||f===void 0||(f=f.namespaceURI)===null||f===void 0?void 0:f.includes("svg")}),s=Tt(t.width),l=Tt(t.height),{stop:u}=nn(e,([f])=>{const p=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(a&&r.value){const g=Rn(e);if(g){const h=g.getBoundingClientRect();s.value=h.width,l.value=h.height}}else if(p){const g=fl(p);s.value=g.reduce((h,{inlineSize:v})=>h+v,0),l.value=g.reduce((h,{blockSize:v})=>h+v,0)}else s.value=f.contentRect.width,l.value=f.contentRect.height},n);sm(()=>{const f=Rn(e);f&&(s.value="offsetWidth"in f?f.offsetWidth:t.width,l.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=pe(()=>Rn(e),f=>{s.value=f?t.width:0,l.value=f?t.height:0});function d(){u(),c()}return{width:s,height:l,stop:d}}function R$(e,t,n={}){const{root:a,rootMargin:o,threshold:r=0,window:s=eo,immediate:l=!0}=n,u=of(()=>s&&"IntersectionObserver"in s),c=C(()=>fl(xn(e)).map(Rn).filter($S));let d=Ea;const f=Tt(l),p=u.value?pe(()=>[c.value,Rn(a),xn(o),f.value],([h,v,m])=>{if(d(),!f.value||!h.length)return;const b=new IntersectionObserver(t,{root:Rn(v),rootMargin:m,threshold:r});h.forEach(w=>w&&b.observe(w)),d=()=>{b.disconnect(),d=Ea}},{immediate:l,flush:"post"}):Ea,g=()=>{d(),p(),f.value=!1};return jl(g),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:g}}function PS(e,t,n,a={}){var o,r;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=a,p=dt(),g=n||p?.emit||(p==null||(o=p.$emit)===null||o===void 0?void 0:o.bind(p))||(p==null||(r=p.proxy)===null||r===void 0||(r=r.$emit)===null||r===void 0?void 0:r.bind(p?.proxy));let h=u;t||(t="modelValue"),h=h||`update:${t.toString()}`;const v=w=>s?typeof s=="function"?s(w):T$(w):w,m=()=>i$(e[t])?v(e[t]):d,b=w=>{f?f(w)&&g(h,w):g(h,w)};if(l){const w=M(m());let y=!1;return pe(()=>e[t],S=>{y||(y=!0,w.value=v(S),Ne(()=>y=!1))}),pe(w,S=>{!y&&(S!==e[t]||c)&&b(S)},{deep:c}),w}else return C({get(){return m()},set(w){b(w)}})}function I$(e={}){const{window:t=eo}=e;if(!t)return Tt(!1);const n=Tt(t.document.hasFocus()),a={passive:!0};return Bt(t,"blur",()=>{n.value=!1},a),Bt(t,"focus",()=>{n.value=!0},a),n}function im(e={}){const{window:t=eo,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:r=!0,type:s="inner"}=e,l=Tt(n),u=Tt(a),c=()=>{if(t)if(s==="outer")l.value=t.outerWidth,u.value=t.outerHeight;else if(s==="visual"&&t.visualViewport){const{width:f,height:p,scale:g}=t.visualViewport;l.value=Math.round(f*g),u.value=Math.round(p*g)}else r?(l.value=t.innerWidth,u.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight)};c(),sm(c);const d={passive:!0};return Bt("resize",c,d),t&&s==="visual"&&t.visualViewport&&Bt(t.visualViewport,"resize",c,d),o&&pe(x$("(orientation: portrait)"),()=>c()),{width:l,height:u}}function um(){const e=Tt(),t=M(0),n=C(()=>({minWidth:`${Math.max(t.value,11)}px`}));return nn(e,()=>{t.value=e.value?.getBoundingClientRect().width??0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const Po=({from:e,replacement:t,scope:n,version:a,ref:o,type:r="API"},s)=>{pe(()=>i(s),l=>{l&&jt(n,`[${r}] ${e} is about to be deprecated in version ${a}, please use ${t} instead. +For more detail, please visit: ${o} +`)},{immediate:!0})},$$='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',AS=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,d0=e=>typeof Element>"u"?!1:e instanceof Element,N$=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,f0=e=>Array.from(e.querySelectorAll($$)).filter(t=>Is(t)&&N$(t)),Is=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Ec=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const o=document.createEvent(a);return o.initEvent(t,...n),e.dispatchEvent(o),e},LS=e=>!e.getAttribute("aria-owns"),DS=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const o=a.querySelectorAll(n);return o[Array.prototype.indexOf.call(o,e)+t]||null},Ou=(e,t)=>{if(!e||!e.focus)return;let n=!1;d0(e)&&!Is(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),d0(e)&&n&&e.removeAttribute("tabindex")},pl=e=>{e&&(Ou(e),!LS(e)&&e.click())},rf=()=>Pt&&/firefox/i.test(window.navigator.userAgent),BS=()=>Pt&&/android/i.test(window.navigator.userAgent),cm=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),rp=e=>vu(e),M$="utils/dom/style",VS=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ao=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ua=(e,t)=>{!e||!t.trim()||e.classList.add(...VS(t))},ra=(e,t)=>{!e||!t.trim()||e.classList.remove(...VS(t))},or=(e,t)=>{if(!Pt||!e||!t||AS(e))return"";let n=qn(t);n==="float"&&(n="cssFloat");try{const a=e.style[n];if(a)return a;const o=document.defaultView?.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}},FS=(e,t,n)=>{if(!(!e||!t))if(ot(t))_S(t).forEach(([a,o])=>FS(e,a,o));else{const a=qn(t);e.style[a]=n}};function pn(e,t="px"){if(!e&&e!==0)return"";if(Be(e)||e$(e))return`${e}${t}`;if(Ae(e))return e;jt(M$,"binding value must be a string or number")}const zS=(e,t,n,a)=>{const o={offsetX:0,offsetY:0},r=M(!1),s=(p,g)=>{if(e.value){const{offsetX:h,offsetY:v}=o,m=e.value.getBoundingClientRect(),b=Math.max(m.left,0),w=Math.max(m.top,0),y=m.width,S=m.height,k=document.documentElement.clientWidth,x=document.documentElement.clientHeight,O=-b+h,T=-w+v,I=k-b-y+h,_=x-w-(S{const g=p.clientX,h=p.clientY,{offsetX:v,offsetY:m}=o,b=y=>{r.value||(r.value=!0),s(v+y.clientX-g,m+y.clientY-h)},w=()=>{r.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",w)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",w)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",l),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",l),window.removeEventListener("resize",f))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:p,offsetY:g}=o;s(p,g)};return ht(()=>{la(()=>{n.value?u():c()})}),Vt(()=>{c()}),{isDragging:r,resetPosition:d,updatePosition:f}};var P$={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"},inputOTP:{groupLabel:"OTP Input",defaultLabel:"Please enter OTP character {index}"}}};const A$=e=>(t,n)=>L$(t,n,i(e)),L$=(e,t,n)=>yn(n,e,e).replace(/\{(\w+)\}/g,(a,o)=>`${t?.[o]??`{${o}}`}`),D$=e=>({lang:C(()=>i(e).name),locale:Gt(e)?e:M(e),t:A$(e)}),HS=Symbol("localeContextKey"),xt=e=>{const t=e||$e(HS,M());return D$(C(()=>t.value||P$))},B$="is-",rs=(e,t,n,a,o)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),a&&(r+=`__${a}`),o&&(r+=`--${o}`),r},KS=Symbol("namespaceContextKey"),dm=e=>{const t=e||(dt()?$e(KS,M("el")):M("el"));return C(()=>i(t)||"el")},ge=(e,t)=>{const n=dm(t);return{namespace:n,b:(v="")=>rs(n.value,e,v,"",""),e:v=>v?rs(n.value,e,"",v,""):"",m:v=>v?rs(n.value,e,"","",v):"",be:(v,m)=>v&&m?rs(n.value,e,v,m,""):"",em:(v,m)=>v&&m?rs(n.value,e,"",v,m):"",bm:(v,m)=>v&&m?rs(n.value,e,v,"",m):"",bem:(v,m,b)=>v&&m&&b?rs(n.value,e,v,m,b):"",is:(v,...m)=>{const b=m.length>=1?m[0]:!0;return v&&b?`${B$}${v}`:""},cssVar:v=>{const m={};for(const b in v)v[b]&&(m[`--${n.value}-${b}`]=v[b]);return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const b in v)v[b]&&(m[`--${n.value}-${e}-${b}`]=v[b]);return m},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}};function V$(e,t,n,a){const o=n-t;return e/=a/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const Ra=e=>Pt?window.requestAnimationFrame(e):setTimeout(e,16),fo=e=>Pt?window.cancelAnimationFrame(e):clearTimeout(e),F$=(e,t)=>{if(!Pt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=or(e,n);return["scroll","auto","overlay"].some(o=>a.includes(o))},fm=(e,t)=>{if(!Pt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(F$(n,t))return n;AS(n)?n=n.host:n=n.parentNode}return n};let ec;const WS=e=>{if(!Pt)return 0;if(ec!==void 0)return ec;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",t.appendChild(a);const o=a.offsetWidth;return t.parentNode?.removeChild(t),ec=n-o,ec};function pm(e,t){if(!Pt)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const o=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),r=o+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;ol&&(e.scrollTop=r-e.clientHeight)}function z$(e,t,n,a,o){const r=Date.now();let s;const l=()=>{const u=Date.now()-r,c=V$(u>a?a:u,t,n,a);Eu(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u{s&&fo(s)}}const p0=(e,t)=>Eu(t)?e.ownerDocument.documentElement:t,h0=e=>Eu(e)?window.scrollY:e.scrollTop,sf=(e,t={})=>{Gt(e)||rn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ge("popup"),a=C(()=>n.bm("parent","hidden"));let o=0,r=!1,s="0",l=!1;const u=()=>{l||(l=!0,setTimeout(()=>{typeof document>"u"||r&&document&&(document.body.style.width=s,ra(document.body,a.value))},200))};pe(e,c=>{if(!c){u();return}l=!1,r=!Ao(document.body,a.value),r&&(s=document.body.style.width,Ua(document.body,a.value)),o=WS(n.namespace.value);const d=document.documentElement.clientHeight0&&(d||f==="scroll")&&r&&(document.body.style.width=`calc(100% - ${o}px)`)}),_v(()=>u())},Ln=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const r=e?.(o);if(n===!1||!r)return t?.(o)},v0=e=>t=>t.pointerType==="mouse"?e(t):void 0,qt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=jS(e);if(t){if(Object.values(Se).includes(t))return t;switch(t){case" ":return Se.space;default:return""}}return""},jS=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&BS()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},H$=Co({type:G(Boolean),default:null}),K$=Co({type:G(Function)}),W$=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,a=[t],o={[e]:H$,[n]:K$};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const p=dt(),{emit:g}=p,h=p.props,v=C(()=>Fe(h[n])),m=C(()=>h[e]===null),b=O=>{s.value!==!0&&(s.value=!0,l&&(l.value=O),Fe(d)&&d(O))},w=O=>{s.value!==!1&&(s.value=!1,l&&(l.value=O),Fe(f)&&f(O))},y=O=>{if(h.disabled===!0||Fe(c)&&!c())return;const T=v.value&&Pt;T&&g(t,!0),(m.value||!T)&&b(O)},S=O=>{if(h.disabled===!0||!Pt)return;const T=v.value&&Pt;T&&g(t,!1),(m.value||!T)&&w(O)},k=O=>{Wt(O)&&(h.disabled&&O?v.value&&g(t,!1):s.value!==O&&(O?b():w()))},x=()=>{s.value?S():y()};return pe(()=>h[e],k),u&&p.appContext.config.globalProperties.$route!==void 0&&pe(()=>({...p.proxy.$route}),()=>{u.value&&s.value&&S()}),ht(()=>{k(h[e])}),{hide:S,show:y,toggle:x,hasUpdateHandler:v}},useModelToggleProps:o,useModelToggleEmits:a}},US=e=>{const t=dt();return C(()=>t?.proxy?.$props?.[e])};var Ta="top",Ja="bottom",Za="right",Oa="left",hm="auto",_u=[Ta,Ja,Za,Oa],xl="start",Zi="end",j$="clippingParents",qS="viewport",ai="popper",U$="reference",m0=_u.reduce(function(e,t){return e.concat([t+"-"+xl,t+"-"+Zi])},[]),jo=[].concat(_u,[hm]).reduce(function(e,t){return e.concat([t,t+"-"+xl,t+"-"+Zi])},[]),q$="beforeRead",Y$="read",G$="afterRead",X$="beforeMain",J$="main",Z$="afterMain",Q$="beforeWrite",eN="write",tN="afterWrite",nN=[q$,Y$,G$,X$,J$,Z$,Q$,eN,tN];function Ko(e){return e?(e.nodeName||"").toLowerCase():null}function za(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $s(e){var t=za(e).Element;return e instanceof t||e instanceof Element}function Ga(e){var t=za(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vm(e){if(typeof ShadowRoot>"u")return!1;var t=za(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function aN(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},r=t.elements[n];!Ga(r)||!Ko(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(s){var l=o[s];l===!1?r.removeAttribute(s):r.setAttribute(s,l===!0?"":l)}))})}function oN(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var o=t.elements[a],r=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),l=s.reduce(function(u,c){return u[c]="",u},{});!Ga(o)||!Ko(o)||(Object.assign(o.style,l),Object.keys(r).forEach(function(u){o.removeAttribute(u)}))})}}var YS={name:"applyStyles",enabled:!0,phase:"write",fn:aN,effect:oN,requires:["computeStyles"]};function Lo(e){return e.split("-")[0]}var Cs=Math.max,nd=Math.min,Tl=Math.round;function fh(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function GS(){return!/^((?!chrome|android).)*safari/i.test(fh())}function Ol(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,r=1;t&&Ga(e)&&(o=e.offsetWidth>0&&Tl(a.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Tl(a.height)/e.offsetHeight||1);var s=$s(e)?za(e):window,l=s.visualViewport,u=!GS()&&n,c=(a.left+(u&&l?l.offsetLeft:0))/o,d=(a.top+(u&&l?l.offsetTop:0))/r,f=a.width/o,p=a.height/r;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function mm(e){var t=Ol(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function XS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vm(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function vr(e){return za(e).getComputedStyle(e)}function rN(e){return["table","td","th"].indexOf(Ko(e))>=0}function ts(e){return(($s(e)?e.ownerDocument:e.document)||window.document).documentElement}function lf(e){return Ko(e)==="html"?e:e.assignedSlot||e.parentNode||(vm(e)?e.host:null)||ts(e)}function g0(e){return!Ga(e)||vr(e).position==="fixed"?null:e.offsetParent}function sN(e){var t=/firefox/i.test(fh()),n=/Trident/i.test(fh());if(n&&Ga(e)){var a=vr(e);if(a.position==="fixed")return null}var o=lf(e);for(vm(o)&&(o=o.host);Ga(o)&&["html","body"].indexOf(Ko(o))<0;){var r=vr(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function Ru(e){for(var t=za(e),n=g0(e);n&&rN(n)&&vr(n).position==="static";)n=g0(n);return n&&(Ko(n)==="html"||Ko(n)==="body"&&vr(n).position==="static")?t:n||sN(e)||t}function gm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ii(e,t,n){return Cs(e,nd(t,n))}function lN(e,t,n){var a=Ii(e,t,n);return a>n?n:a}function JS(){return{top:0,right:0,bottom:0,left:0}}function ZS(e){return Object.assign({},JS(),e)}function QS(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var iN=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ZS(typeof e!="number"?e:QS(e,_u))};function uN(e){var t,n=e.state,a=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Lo(n.placement),u=gm(l),c=[Oa,Za].indexOf(l)>=0,d=c?"height":"width";if(!(!r||!s)){var f=iN(o.padding,n),p=mm(r),g=u==="y"?Ta:Oa,h=u==="y"?Ja:Za,v=n.rects.reference[d]+n.rects.reference[u]-s[u]-n.rects.popper[d],m=s[u]-n.rects.reference[u],b=Ru(r),w=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,y=v/2-m/2,S=f[g],k=w-p[d]-f[h],x=w/2-p[d]/2+y,O=Ii(S,x,k),T=u;n.modifiersData[a]=(t={},t[T]=O,t.centerOffset=O-x,t)}}function cN(e){var t=e.state,n=e.options,a=n.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||XS(t.elements.popper,o)&&(t.elements.arrow=o))}var dN={name:"arrow",enabled:!0,phase:"main",fn:uN,effect:cN,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _l(e){return e.split("-")[1]}var fN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pN(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:Tl(n*o)/o||0,y:Tl(a*o)/o||0}}function b0(e){var t,n=e.popper,a=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,g=p===void 0?0:p,h=s.y,v=h===void 0?0:h,m=typeof d=="function"?d({x:g,y:v}):{x:g,y:v};g=m.x,v=m.y;var b=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),y=Oa,S=Ta,k=window;if(c){var x=Ru(n),O="clientHeight",T="clientWidth";if(x===za(n)&&(x=ts(n),vr(x).position!=="static"&&l==="absolute"&&(O="scrollHeight",T="scrollWidth")),x=x,o===Ta||(o===Oa||o===Za)&&r===Zi){S=Ja;var I=f&&x===k&&k.visualViewport?k.visualViewport.height:x[O];v-=I-a.height,v*=u?1:-1}if(o===Oa||(o===Ta||o===Ja)&&r===Zi){y=Za;var _=f&&x===k&&k.visualViewport?k.visualViewport.width:x[T];g-=_-a.width,g*=u?1:-1}}var N=Object.assign({position:l},c&&fN),$=d===!0?pN({x:g,y:v},za(n)):{x:g,y:v};if(g=$.x,v=$.y,u){var B;return Object.assign({},N,(B={},B[S]=w?"0":"",B[y]=b?"0":"",B.transform=(k.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",B))}return Object.assign({},N,(t={},t[S]=w?v+"px":"",t[y]=b?g+"px":"",t.transform="",t))}function hN(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,r=n.adaptive,s=r===void 0?!0:r,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:Lo(t.placement),variation:_l(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,b0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,b0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var eC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hN,data:{}},tc={passive:!0};function vN(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,r=o===void 0?!0:o,s=a.resize,l=s===void 0?!0:s,u=za(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",n.update,tc)}),l&&u.addEventListener("resize",n.update,tc),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",n.update,tc)}),l&&u.removeEventListener("resize",n.update,tc)}}var tC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vN,data:{}},mN={left:"right",right:"left",bottom:"top",top:"bottom"};function xc(e){return e.replace(/left|right|bottom|top/g,function(t){return mN[t]})}var gN={start:"end",end:"start"};function y0(e){return e.replace(/start|end/g,function(t){return gN[t]})}function bm(e){var t=za(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function ym(e){return Ol(ts(e)).left+bm(e).scrollLeft}function bN(e,t){var n=za(e),a=ts(e),o=n.visualViewport,r=a.clientWidth,s=a.clientHeight,l=0,u=0;if(o){r=o.width,s=o.height;var c=GS();(c||!c&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:r,height:s,x:l+ym(e),y:u}}function yN(e){var t,n=ts(e),a=bm(e),o=(t=e.ownerDocument)==null?void 0:t.body,r=Cs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Cs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-a.scrollLeft+ym(e),u=-a.scrollTop;return vr(o||n).direction==="rtl"&&(l+=Cs(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:l,y:u}}function wm(e){var t=vr(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function nC(e){return["html","body","#document"].indexOf(Ko(e))>=0?e.ownerDocument.body:Ga(e)&&wm(e)?e:nC(lf(e))}function $i(e,t){var n;t===void 0&&(t=[]);var a=nC(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),r=za(a),s=o?[r].concat(r.visualViewport||[],wm(a)?a:[]):a,l=t.concat(s);return o?l:l.concat($i(lf(s)))}function ph(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wN(e,t){var n=Ol(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function w0(e,t,n){return t===qS?ph(bN(e,n)):$s(t)?wN(t,n):ph(yN(ts(e)))}function SN(e){var t=$i(lf(e)),n=["absolute","fixed"].indexOf(vr(e).position)>=0,a=n&&Ga(e)?Ru(e):e;return $s(a)?t.filter(function(o){return $s(o)&&XS(o,a)&&Ko(o)!=="body"}):[]}function CN(e,t,n,a){var o=t==="clippingParents"?SN(e):[].concat(t),r=[].concat(o,[n]),s=r[0],l=r.reduce(function(u,c){var d=w0(e,c,a);return u.top=Cs(d.top,u.top),u.right=nd(d.right,u.right),u.bottom=nd(d.bottom,u.bottom),u.left=Cs(d.left,u.left),u},w0(e,s,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function aC(e){var t=e.reference,n=e.element,a=e.placement,o=a?Lo(a):null,r=a?_l(a):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case Ta:u={x:s,y:t.y-n.height};break;case Ja:u={x:s,y:t.y+t.height};break;case Za:u={x:t.x+t.width,y:l};break;case Oa:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=o?gm(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case xl:u[c]=u[c]-(t[d]/2-n[d]/2);break;case Zi:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function Qi(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,r=n.strategy,s=r===void 0?e.strategy:r,l=n.boundary,u=l===void 0?j$:l,c=n.rootBoundary,d=c===void 0?qS:c,f=n.elementContext,p=f===void 0?ai:f,g=n.altBoundary,h=g===void 0?!1:g,v=n.padding,m=v===void 0?0:v,b=ZS(typeof m!="number"?m:QS(m,_u)),w=p===ai?U$:ai,y=e.rects.popper,S=e.elements[h?w:p],k=CN($s(S)?S:S.contextElement||ts(e.elements.popper),u,d,s),x=Ol(e.elements.reference),O=aC({reference:x,element:y,placement:o}),T=ph(Object.assign({},y,O)),I=p===ai?T:x,_={top:k.top-I.top+b.top,bottom:I.bottom-k.bottom+b.bottom,left:k.left-I.left+b.left,right:I.right-k.right+b.right},N=e.modifiersData.offset;if(p===ai&&N){var $=N[o];Object.keys(_).forEach(function(B){var K=[Za,Ja].indexOf(B)>=0?1:-1,j=[Ta,Ja].indexOf(B)>=0?"y":"x";_[B]+=$[j]*K})}return _}function kN(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?jo:u,d=_l(a),f=d?l?m0:m0.filter(function(h){return _l(h)===d}):_u,p=f.filter(function(h){return c.indexOf(h)>=0});p.length===0&&(p=f);var g=p.reduce(function(h,v){return h[v]=Qi(e,{placement:v,boundary:o,rootBoundary:r,padding:s})[Lo(v)],h},{});return Object.keys(g).sort(function(h,v){return g[h]-g[v]})}function EN(e){if(Lo(e)===hm)return[];var t=xc(e);return[y0(e),t,y0(t)]}function xN(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,r=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,h=g===void 0?!0:g,v=n.allowedAutoPlacements,m=t.options.placement,b=Lo(m),w=b===m,y=u||(w||!h?[xc(m)]:EN(m)),S=[m].concat(y).reduce(function(ee,ae){return ee.concat(Lo(ae)===hm?kN(t,{placement:ae,boundary:d,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):ae)},[]),k=t.rects.reference,x=t.rects.popper,O=new Map,T=!0,I=S[0],_=0;_=0,j=K?"width":"height",W=Qi(t,{placement:N,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),A=K?B?Za:Oa:B?Ja:Ta;k[j]>x[j]&&(A=xc(A));var P=xc(A),V=[];if(r&&V.push(W[$]<=0),l&&V.push(W[A]<=0,W[P]<=0),V.every(function(ee){return ee})){I=N,T=!1;break}O.set(N,V)}if(T)for(var F=h?3:1,H=function(ee){var ae=S.find(function(ce){var Z=O.get(ce);if(Z)return Z.slice(0,ee).every(function(de){return de})});if(ae)return I=ae,"break"},U=F;U>0;U--){var J=H(U);if(J==="break")break}t.placement!==I&&(t.modifiersData[a]._skip=!0,t.placement=I,t.reset=!0)}}var TN={name:"flip",enabled:!0,phase:"main",fn:xN,requiresIfExists:["offset"],data:{_skip:!1}};function S0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function C0(e){return[Ta,Za,Ja,Oa].some(function(t){return e[t]>=0})}function ON(e){var t=e.state,n=e.name,a=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=Qi(t,{elementContext:"reference"}),l=Qi(t,{altBoundary:!0}),u=S0(s,a),c=S0(l,o,r),d=C0(u),f=C0(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var _N={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ON};function RN(e,t,n){var a=Lo(e),o=[Oa,Ta].indexOf(a)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=r[0],l=r[1];return s=s||0,l=(l||0)*o,[Oa,Za].indexOf(a)>=0?{x:l,y:s}:{x:s,y:l}}function IN(e){var t=e.state,n=e.options,a=e.name,o=n.offset,r=o===void 0?[0,0]:o,s=jo.reduce(function(d,f){return d[f]=RN(f,t.rects,r),d},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=s}var $N={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:IN};function NN(e){var t=e.state,n=e.name;t.modifiersData[n]=aC({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var oC={name:"popperOffsets",enabled:!0,phase:"read",fn:NN,data:{}};function MN(e){return e==="x"?"y":"x"}function PN(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,r=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,h=n.tetherOffset,v=h===void 0?0:h,m=Qi(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=Lo(t.placement),w=_l(t.placement),y=!w,S=gm(b),k=MN(S),x=t.modifiersData.popperOffsets,O=t.rects.reference,T=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,_=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(x){if(r){var B,K=S==="y"?Ta:Oa,j=S==="y"?Ja:Za,W=S==="y"?"height":"width",A=x[S],P=A+m[K],V=A-m[j],F=g?-T[W]/2:0,H=w===xl?O[W]:T[W],U=w===xl?-T[W]:-O[W],J=t.elements.arrow,ee=g&&J?mm(J):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:JS(),ce=ae[K],Z=ae[j],de=Ii(0,O[W],ee[W]),ue=y?O[W]/2-F-de-ce-_.mainAxis:H-de-ce-_.mainAxis,Y=y?-O[W]/2+F+de+Z+_.mainAxis:U+de+Z+_.mainAxis,Q=t.elements.arrow&&Ru(t.elements.arrow),D=Q?S==="y"?Q.clientTop||0:Q.clientLeft||0:0,q=(B=N?.[S])!=null?B:0,te=A+ue-q-D,fe=A+Y-q,he=Ii(g?nd(P,te):P,A,g?Cs(V,fe):V);x[S]=he,$[S]=he-A}if(l){var ve,Ie=S==="x"?Ta:Oa,Le=S==="x"?Ja:Za,_e=x[k],ye=k==="y"?"height":"width",Te=_e+m[Ie],be=_e-m[Le],Pe=[Ta,Oa].indexOf(b)!==-1,He=(ve=N?.[k])!=null?ve:0,Je=Pe?Te:_e-O[ye]-T[ye]-He+_.altAxis,Qe=Pe?_e+O[ye]+T[ye]-He-_.altAxis:be,lt=g&&Pe?lN(Je,_e,Qe):Ii(g?Je:Te,_e,g?Qe:be);x[k]=lt,$[k]=lt-_e}t.modifiersData[a]=$}}var AN={name:"preventOverflow",enabled:!0,phase:"main",fn:PN,requiresIfExists:["offset"]};function LN(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DN(e){return e===za(e)||!Ga(e)?bm(e):LN(e)}function BN(e){var t=e.getBoundingClientRect(),n=Tl(t.width)/e.offsetWidth||1,a=Tl(t.height)/e.offsetHeight||1;return n!==1||a!==1}function VN(e,t,n){n===void 0&&(n=!1);var a=Ga(t),o=Ga(t)&&BN(t),r=ts(t),s=Ol(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&((Ko(t)!=="body"||wm(r))&&(l=DN(t)),Ga(t)?(u=Ol(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=ym(r))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function FN(e){var t=new Map,n=new Set,a=[];e.forEach(function(r){t.set(r.name,r)});function o(r){n.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),a.push(r)}return e.forEach(function(r){n.has(r.name)||o(r)}),a}function zN(e){var t=FN(e);return nN.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function HN(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function KN(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var k0={placement:"bottom",modifiers:[],strategy:"absolute"};function E0(){for(var e=arguments.length,t=new Array(e),n=0;n{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=YN(u);Object.assign(s.value,c)},requires:["computeStyles"]},o=C(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=i(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],a,{name:"applyStyles",enabled:!1}]}}),r=Tt(),s=M({styles:{popper:{position:i(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{r.value&&(r.value.destroy(),r.value=void 0)};return pe(o,u=>{const c=i(r);c&&c.setOptions(u)},{deep:!0}),pe([e,t],([u,c])=>{l(),!(!u||!c)&&(r.value=UN(u,c,i(o)))}),Vt(()=>{l()}),{state:C(()=>({...i(r)?.state||{}})),styles:C(()=>i(s).styles),attributes:C(()=>i(s).attributes),update:()=>i(r)?.update(),forceUpdate:()=>i(r)?.forceUpdate(),instanceRef:C(()=>i(r))}};function YN(e){const t=Object.keys(e.elements);return{styles:kl(t.map(n=>[n,e.styles[n]||{}])),attributes:kl(t.map(n=>[n,e.attributes[n]]))}}const Cm=e=>{if(!e)return{onClick:ut,onMousedown:ut,onMouseup:ut};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}},GN=(e,t=0)=>{if(t===0)return e;const n=M(ot(t)&&!!t.initVal);let a=null;const o=s=>{if(Rt(s)){n.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{n.value=e.value},s)},r=s=>{s==="leading"?Be(t)?o(t):o(t.leading):ot(t)?o(t.trailing):n.value=!1};return ht(()=>r("leading")),pe(()=>e.value,s=>{r(s?"leading":"trailing")}),n};function x0(){let e;const t=(a,o)=>{n(),e=globalThis.setTimeout(a,o)},n=()=>{e!==void 0&&(globalThis.clearTimeout(e),e=void 0)};return jl(()=>n()),{registerTimeout:t,cancelTimeout:n}}const hh={prefix:Math.floor(Math.random()*1e4),current:0},XN=Symbol("elIdInjection"),km=()=>dt()?$e(XN,hh):hh,Gn=e=>{const t=km();!Pt&&t===hh&&jt("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed +usage: app.provide(ID_INJECTION_KEY, { + prefix: number, + current: number, +})`);const n=dm();return IS(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let el=[];const T0=e=>{qt(e)===Se.esc&&el.forEach(t=>t(e))},JN=e=>{ht(()=>{el.length===0&&document.addEventListener("keydown",T0),Pt&&el.push(e)}),Vt(()=>{el=el.filter(t=>t!==e),el.length===0&&Pt&&document.removeEventListener("keydown",T0)})},rC=()=>{const e=dm(),t=km(),n=C(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:C(()=>`#${n.value}`)}},ZN=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},QN=()=>{const{id:e,selector:t}=rC();return Kd(()=>{Pt&&(document.body.querySelector(t.value)||ZN(e.value))}),{id:e,selector:t}},eM=Ee({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),tM=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:o})=>{const{registerTimeout:r}=x0(),{registerTimeout:s,cancelTimeout:l}=x0();return{onOpen:(d,f=i(e))=>{r(()=>{a(d);const p=i(n);Be(p)&&p>0&&s(()=>{o(d)},p)},f)},onClose:(d,f=i(t))=>{l(),r(()=>{o(d)},f)}}},sC=Symbol("elForwardRef"),nM=e=>{St(sC,{setForwardRef:n=>{e.value=n}})},aM=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),O0={current:0},_0=M(0),oM=2e3,R0=Symbol("elZIndexContextKey"),lC=Symbol("zIndexContextKey"),Iu=e=>{const t=dt()?$e(R0,O0):O0,n=e||(dt()?$e(lC,void 0):void 0),a=C(()=>{const s=i(n);return Be(s)?s:oM}),o=C(()=>a.value+_0.value),r=()=>(t.current++,_0.value=t.current,o.value);return!Pt&&!$e(R0)&&jt("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed +usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:o,nextZIndex:r}},Rl=Math.min,ks=Math.max,ad=Math.round,nc=Math.floor,Do=e=>({x:e,y:e}),rM={left:"right",right:"left",bottom:"top",top:"bottom"};function vh(e,t,n){return ks(e,Rl(t,n))}function $u(e,t){return typeof e=="function"?e(t):e}function Ns(e){return e.split("-")[0]}function Nu(e){return e.split("-")[1]}function iC(e){return e==="x"?"y":"x"}function Em(e){return e==="y"?"height":"width"}function zr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function xm(e){return iC(zr(e))}function sM(e,t,n){n===void 0&&(n=!1);const a=Nu(e),o=xm(e),r=Em(o);let s=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=od(s)),[s,od(s)]}function lM(e){const t=od(e);return[mh(e),t,mh(t)]}function mh(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const I0=["left","right"],$0=["right","left"],iM=["top","bottom"],uM=["bottom","top"];function cM(e,t,n){switch(e){case"top":case"bottom":return n?t?$0:I0:t?I0:$0;case"left":case"right":return t?iM:uM;default:return[]}}function dM(e,t,n,a){const o=Nu(e);let r=cM(Ns(e),n==="start",a);return o&&(r=r.map(s=>s+"-"+o),t&&(r=r.concat(r.map(mh)))),r}function od(e){const t=Ns(e);return rM[t]+e.slice(t.length)}function fM(e){return{top:0,right:0,bottom:0,left:0,...e}}function uC(e){return typeof e!="number"?fM(e):{top:e,right:e,bottom:e,left:e}}function rd(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function N0(e,t,n){let{reference:a,floating:o}=e;const r=zr(t),s=xm(t),l=Em(s),u=Ns(t),c=r==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[l]/2-o[l]/2;let g;switch(u){case"top":g={x:d,y:a.y-o.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-o.width,y:f};break;default:g={x:a.x,y:a.y}}switch(Nu(t)){case"start":g[s]-=p*(n&&c?-1:1);break;case"end":g[s]+=p*(n&&c?-1:1);break}return g}async function cC(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:r,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:g=0}=$u(t,e),h=uC(g),m=l[p?f==="floating"?"reference":"floating":f],b=rd(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(m)))==null||n?m:m.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:a,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),S=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},k=rd(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:y,strategy:u}):w);return{top:(b.top-k.top+h.top)/S.y,bottom:(k.bottom-b.bottom+h.bottom)/S.y,left:(b.left-k.left+h.left)/S.x,right:(k.right-b.right+h.right)/S.x}}const pM=50,hM=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:cC},u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=N0(c,a,u),p=a,g=0;const h={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:r,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=$u(e,t)||{};if(c==null)return{};const f=uC(d),p={x:n,y:a},g=xm(o),h=Em(g),v=await s.getDimensions(c),m=g==="y",b=m?"top":"left",w=m?"bottom":"right",y=m?"clientHeight":"clientWidth",S=r.reference[h]+r.reference[g]-p[g]-r.floating[h],k=p[g]-r.reference[g],x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=x?x[y]:0;(!O||!await(s.isElement==null?void 0:s.isElement(x)))&&(O=l.floating[y]||r.floating[h]);const T=S/2-k/2,I=O/2-v[h]/2-1,_=Rl(f[b],I),N=Rl(f[w],I),$=_,B=O-v[h]-N,K=O/2-v[h]/2+T,j=vh($,K,B),W=!u.arrow&&Nu(o)!=null&&K!==j&&r.reference[h]/2-(K<$?_:N)-v[h]/2<0,A=W?K<$?K-$:K-B:0;return{[g]:p[g]+A,data:{[g]:j,centerOffset:K-j-A,...W&&{alignmentOffset:A}},reset:W}}}),mM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...m}=$u(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const b=Ns(o),w=zr(l),y=Ns(l)===l,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),k=p||(y||!v?[od(l)]:lM(l)),x=h!=="none";!p&&x&&k.push(...dM(l,v,h,S));const O=[l,...k],T=await u.detectOverflow(t,m),I=[];let _=((a=r.flip)==null?void 0:a.overflows)||[];if(d&&I.push(T[b]),f){const K=sM(o,s,S);I.push(T[K[0]],T[K[1]])}if(_=[..._,{placement:o,overflows:I}],!I.every(K=>K<=0)){var N,$;const K=(((N=r.flip)==null?void 0:N.index)||0)+1,j=O[K];if(j&&(!(f==="alignment"?w!==zr(j):!1)||_.every(P=>zr(P.placement)===w?P.overflows[0]>0:!0)))return{data:{index:K,overflows:_},reset:{placement:j}};let W=($=_.filter(A=>A.overflows[0]<=0).sort((A,P)=>A.overflows[1]-P.overflows[1])[0])==null?void 0:$.placement;if(!W)switch(g){case"bestFit":{var B;const A=(B=_.filter(P=>{if(x){const V=zr(P.placement);return V===w||V==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(V=>V>0).reduce((V,F)=>V+F,0)]).sort((P,V)=>P[1]-V[1])[0])==null?void 0:B[0];A&&(W=A);break}case"initialPlacement":W=l;break}if(o!==W)return{reset:{placement:W}}}return{}}}},gM=new Set(["left","top"]);async function bM(e,t){const{placement:n,platform:a,elements:o}=e,r=await(a.isRTL==null?void 0:a.isRTL(o.floating)),s=Ns(n),l=Nu(n),u=zr(n)==="y",c=gM.has(s)?-1:1,d=r&&u?-1:1,f=$u(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof h=="number"&&(g=l==="end"?h*-1:h),u?{x:g*d,y:p*c}:{x:p*c,y:g*d}}const yM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:r,placement:s,middlewareData:l}=t,u=await bM(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:o+u.x,y:r+u.y,data:{...u,placement:s}}}}},wM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o,platform:r}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:b=>{let{x:w,y}=b;return{x:w,y}}},...c}=$u(e,t),d={x:n,y:a},f=await r.detectOverflow(t,c),p=zr(Ns(o)),g=iC(p);let h=d[g],v=d[p];if(s){const b=g==="y"?"top":"left",w=g==="y"?"bottom":"right",y=h+f[b],S=h-f[w];h=vh(y,h,S)}if(l){const b=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=v+f[b],S=v-f[w];v=vh(y,v,S)}const m=u.fn({...t,[g]:h,[p]:v});return{...m,data:{x:m.x-n,y:m.y-a,enabled:{[g]:s,[p]:l}}}}}};function uf(){return typeof window<"u"}function Ul(e){return dC(e)?(e.nodeName||"").toLowerCase():"#document"}function Va(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Uo(e){var t;return(t=(dC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dC(e){return uf()?e instanceof Node||e instanceof Va(e).Node:!1}function po(e){return uf()?e instanceof Element||e instanceof Va(e).Element:!1}function kr(e){return uf()?e instanceof HTMLElement||e instanceof Va(e).HTMLElement:!1}function M0(e){return!uf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Va(e).ShadowRoot}function Mu(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=ho(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function SM(e){return/^(table|td|th)$/.test(Ul(e))}function cf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const CM=/transform|translate|scale|rotate|perspective|filter/,kM=/paint|layout|strict|content/,ss=e=>!!e&&e!=="none";let sp;function Tm(e){const t=po(e)?ho(e):e;return ss(t.transform)||ss(t.translate)||ss(t.scale)||ss(t.rotate)||ss(t.perspective)||!Om()&&(ss(t.backdropFilter)||ss(t.filter))||CM.test(t.willChange||"")||kM.test(t.contain||"")}function EM(e){let t=Gr(e);for(;kr(t)&&!Il(t);){if(Tm(t))return t;if(cf(t))return null;t=Gr(t)}return null}function Om(){return sp==null&&(sp=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),sp}function Il(e){return/^(html|body|#document)$/.test(Ul(e))}function ho(e){return Va(e).getComputedStyle(e)}function df(e){return po(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gr(e){if(Ul(e)==="html")return e;const t=e.assignedSlot||e.parentNode||M0(e)&&e.host||Uo(e);return M0(t)?t.host:t}function fC(e){const t=Gr(e);return Il(t)?e.ownerDocument?e.ownerDocument.body:e.body:kr(t)&&Mu(t)?t:fC(t)}function eu(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=fC(e),r=o===((a=e.ownerDocument)==null?void 0:a.body),s=Va(o);if(r){const l=gh(s);return t.concat(s,s.visualViewport||[],Mu(o)?o:[],l&&n?eu(l):[])}else return t.concat(o,eu(o,[],n))}function gh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pC(e){const t=ho(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=kr(e),r=o?e.offsetWidth:n,s=o?e.offsetHeight:a,l=ad(n)!==r||ad(a)!==s;return l&&(n=r,a=s),{width:n,height:a,$:l}}function _m(e){return po(e)?e:e.contextElement}function hl(e){const t=_m(e);if(!kr(t))return Do(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:r}=pC(t);let s=(r?ad(n.width):n.width)/a,l=(r?ad(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const xM=Do(0);function hC(e){const t=Va(e);return!Om()||!t.visualViewport?xM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Va(e)?!1:t}function Ms(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=_m(e);let s=Do(1);t&&(a?po(a)&&(s=hl(a)):s=hl(e));const l=TM(r,n,a)?hC(r):Do(0);let u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(r){const p=Va(r),g=a&&po(a)?Va(a):a;let h=p,v=gh(h);for(;v&&a&&g!==h;){const m=hl(v),b=v.getBoundingClientRect(),w=ho(v),y=b.left+(v.clientLeft+parseFloat(w.paddingLeft))*m.x,S=b.top+(v.clientTop+parseFloat(w.paddingTop))*m.y;u*=m.x,c*=m.y,d*=m.x,f*=m.y,u+=y,c+=S,h=Va(v),v=gh(h)}}return rd({width:d,height:f,x:u,y:c})}function ff(e,t){const n=df(e).scrollLeft;return t?t.left+n:Ms(Uo(e)).left+n}function vC(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-ff(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function OM(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const r=o==="fixed",s=Uo(a),l=t?cf(t.floating):!1;if(a===s||l&&r)return n;let u={scrollLeft:0,scrollTop:0},c=Do(1);const d=Do(0),f=kr(a);if((f||!f&&!r)&&((Ul(a)!=="body"||Mu(s))&&(u=df(a)),f)){const g=Ms(a);c=hl(a),d.x=g.x+a.clientLeft,d.y=g.y+a.clientTop}const p=s&&!f&&!r?vC(s,u):Do(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}}function _M(e){return Array.from(e.getClientRects())}function RM(e){const t=Uo(e),n=df(e),a=e.ownerDocument.body,o=ks(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),r=ks(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+ff(e);const l=-n.scrollTop;return ho(a).direction==="rtl"&&(s+=ks(t.clientWidth,a.clientWidth)-o),{width:o,height:r,x:s,y:l}}const P0=25;function IM(e,t){const n=Va(e),a=Uo(e),o=n.visualViewport;let r=a.clientWidth,s=a.clientHeight,l=0,u=0;if(o){r=o.width,s=o.height;const d=Om();(!d||d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}const c=ff(a);if(c<=0){const d=a.ownerDocument,f=d.body,p=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(a.clientWidth-f.clientWidth-g);h<=P0&&(r-=h)}else c<=P0&&(r+=c);return{width:r,height:s,x:l,y:u}}function $M(e,t){const n=Ms(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,r=kr(e)?hl(e):Do(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,u=o*r.x,c=a*r.y;return{width:s,height:l,x:u,y:c}}function A0(e,t,n){let a;if(t==="viewport")a=IM(e,n);else if(t==="document")a=RM(Uo(e));else if(po(t))a=$M(t,n);else{const o=hC(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return rd(a)}function mC(e,t){const n=Gr(e);return n===t||!po(n)||Il(n)?!1:ho(n).position==="fixed"||mC(n,t)}function NM(e,t){const n=t.get(e);if(n)return n;let a=eu(e,[],!1).filter(l=>po(l)&&Ul(l)!=="body"),o=null;const r=ho(e).position==="fixed";let s=r?Gr(e):e;for(;po(s)&&!Il(s);){const l=ho(s),u=Tm(s);!u&&l.position==="fixed"&&(o=null),(r?!u&&!o:!u&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Mu(s)&&!u&&mC(e,s))?a=a.filter(d=>d!==s):o=l,s=Gr(s)}return t.set(e,a),a}function MM(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const s=[...n==="clippingAncestors"?cf(t)?[]:NM(t,this._c):[].concat(n),a],l=A0(t,s[0],o);let u=l.top,c=l.right,d=l.bottom,f=l.left;for(let p=1;p{s(!1,1e-7)},1e3)}O===1&&!bC(c,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(k,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,y)}n.observe(e)}return s(!0),r}function FM(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=_m(e),d=o||r?[...c?eu(c):[],...t?eu(t):[]]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),r&&b.addEventListener("resize",n)});const f=c&&l?VM(c,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(b=>{let[w]=b;w&&w.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=g)==null||y.observe(t)})),n()}),c&&!u&&g.observe(c),t&&g.observe(t));let h,v=u?Ms(e):null;u&&m();function m(){const b=Ms(e);v&&!bC(v,b)&&n(),v=b,h=requestAnimationFrame(m)}return n(),()=>{var b;d.forEach(w=>{o&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),f?.(),(b=g)==null||b.disconnect(),g=null,u&&cancelAnimationFrame(h)}}const zM=cC,HM=yM,KM=wM,WM=mM,jM=vM,UM=(e,t,n)=>{const a=new Map,o={platform:BM,...n},r={...o.platform,_c:a};return hM(e,t,{...o,platform:r})};function qM(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:r,value:s}=e.value;o==null||r==null||(t={selectionStart:o,selectionEnd:r,value:s,beforeTxt:s.slice(0,Math.max(0,o)),afterTxt:s.slice(Math.max(0,r))})}function a(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:r,afterTxt:s,selectionStart:l}=t;if(r==null||s==null||l==null)return;let u=o.length;if(o.endsWith(s))u=o.length-s.length;else if(o.startsWith(r))u=r.length;else{const c=r[l-1],d=o.indexOf(c,l-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,a]}const YM="utils/vue/vnode";function bh(e){return Zt(e)&&e.type===Ve}function yC(e){return Zt(e)&&e.type===kn}function GM(e){return Zt(e)&&!bh(e)&&!yC(e)}const XM=e=>{if(!Zt(e))return jt(YM,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=(Zt(e.type)?e.type.props:void 0)||{},a={};return Object.keys(n).forEach(o=>{Nt(n[o],"default")&&(a[o]=n[o].default)}),Object.keys(t).forEach(o=>{a[qn(o)]=t[o]}),a},La=e=>{const t=we(e)?e:[e],n=[];return t.forEach(a=>{we(a)?n.push(...La(a)):Zt(a)&&a.component?.subTree?n.push(a,...La(a.component.subTree)):Zt(a)&&we(a.children)?n.push(...La(a.children)):Zt(a)&&a.shapeFlag===2?n.push(...La(a.type())):n.push(a)}),n},JM=(e,t,n)=>La(e.subTree).filter(a=>Zt(a)&&a.type?.name===t&&!!a.component).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),pf=(e,t)=>{const n=Tt({}),a=Tt([]),o=new WeakMap,r=c=>{n.value[c.uid]=c,Sc(n),ht(()=>{const d=c.getVnode().el,f=d.parentNode;if(!o.has(f)){o.set(f,[]);const p=f.insertBefore.bind(f);f.insertBefore=(g,h)=>(o.get(f).some(v=>g===v||h===v)&&Sc(n),p(g,h))}o.get(f).push(d)})},s=c=>{delete n.value[c.uid],Sc(n);const d=c.getVnode().el,f=d.parentNode,p=o.get(f),g=p.indexOf(d);p.splice(g,1)},l=()=>{a.value=JM(e,t,n.value)},u=c=>c.render();return{children:a,addChild:r,removeChild:s,ChildrenSorter:se({setup(c,{slots:d}){return()=>(l(),d.default?qe(u,{render:d.default}):null)}})}},Nn=Co({type:String,values:wo,required:!1}),wC=Symbol("size"),SC=()=>{const e=$e(wC,{});return C(()=>i(e.size)||"")};function Er(e,{disabled:t,beforeFocus:n,afterFocus:a,beforeBlur:o,afterBlur:r}={}){const{emit:s}=dt(),l=Tt(),u=M(!1),c=p=>{const g=Fe(n)?n(p):!1;i(t)||u.value||g||(u.value=!0,s("focus",p),a?.())},d=p=>{const g=Fe(o)?o(p):!1;i(t)||p.relatedTarget&&l.value?.contains(p.relatedTarget)||g||(u.value=!1,s("blur",p),r?.())},f=p=>{i(t)||Is(p.target)||l.value?.contains(document.activeElement)&&l.value!==document.activeElement||e.value?.focus()};return pe([l,()=>i(t)],([p,g])=>{p&&(g?p.removeAttribute("tabindex"):p.setAttribute("tabindex","-1"))}),Bt(l,"focus",c,!0),Bt(l,"blur",d,!0),Bt(l,"click",f,!0),{isFocused:u,wrapperRef:l,handleFocus:c,handleBlur:d}}function Pu({afterComposition:e,emit:t}){const n=M(!1),a=l=>{t?.("compositionstart",l),n.value=!0},o=l=>{t?.("compositionupdate",l),n.value=!0},r=l=>{t?.("compositionend",l),n.value&&(n.value=!1,Ne(()=>e(l)))};return{isComposing:n,handleComposition:l=>{l.type==="compositionend"?r(l):o(l)},handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:r}}const CC=Symbol("emptyValuesContextKey"),ZM="use-empty-values",QM=["",void 0,null],zs=Ee({emptyValues:Array,valueOnClear:{type:G([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Fe(e)?e():e,we(e)?e.every(t=>!t):!e)}}),Au=(e,t)=>{const n=dt()?$e(CC,M({})):M({}),a=C(()=>e.emptyValues||n.value.emptyValues||QM),o=C(()=>Fe(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Fe(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:void 0),r=s=>{let l=!0;return we(s)?l=a.value.some(u=>dn(s,u)):l=a.value.includes(s),l};return r(o.value)||jt(ZM,"value-on-clear should be a value of empty-values"),{emptyValues:a,valueOnClear:o,isEmptyValue:r}},eP=Ee({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ia=e=>hr(eP,e),kC=e=>{const t=e.props,n=we(t)?kl(t.map(a=>[a,{}])):t;e.setPropsDefaults=a=>{if(n){for(const[o,r]of Object.entries(a)){const s=n[o];if(Nt(n,o)){if(nm(s)){n[o]={...s,default:r};continue}n[o]={type:s,default:r}}}e.props=n}}},st=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return kC(e),e},EC=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),tP=(e,t)=>(e.install=n=>{n.directive(t,e)},e),sn=e=>(e.install=ut,kC(e),e),D0="ElAffix";var nP=se({name:D0,__name:"affix",props:a$,emits:o$,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("affix"),s=Tt(),l=Tt(),u=Tt(),{height:c}=im(),{height:d,width:f,top:p,bottom:g,left:h,update:v}=c0(l,{windowScroll:!1}),m=c0(s),b=M(!1),w=M(0),y=M(0),S=C(()=>!a.teleported||!b.value),k=C(()=>({display:"flow-root",height:b.value?`${d.value}px`:"",width:b.value?`${f.value}px`:""})),x=C(()=>{if(!b.value)return{};const _=pn(a.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:a.position==="top"?_:"",bottom:a.position==="bottom"?_:"",left:a.teleported?`${h.value}px`:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:a.zIndex}}),O=()=>{if(!u.value)return;w.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:_,target:N,offset:$}=a,B=$+d.value;if(_==="top")if(N){const K=m.bottom.value-B;b.value=$>p.value&&m.bottom.value>0,y.value=K<0?K:0}else b.value=$>p.value;else if(N){const K=c.value-m.top.value-B;b.value=c.value-$m.top.value,y.value=K<0?-K:0}else b.value=c.value-${if(!b.value){v();return}b.value=!1,await Ne(),v(),b.value=!0},I=async()=>{v(),await Ne(),o("scroll",{scrollTop:w.value,fixed:b.value})};return pe(b,_=>o(yt,_)),ht(()=>{a.target?(s.value=document.querySelector(a.target)??void 0,s.value||rn(D0,`Target does not exist: ${a.target}`)):s.value=document.documentElement,u.value=fm(l.value,!0),v()}),gu(()=>{Ne(T)}),Lv(()=>{b.value=!1}),Bt(u,"scroll",I),la(O),t({update:O,updateRoot:T}),(_,N)=>(E(),L("div",{ref_key:"root",ref:l,class:R(i(r).b()),style:ze(k.value)},[(E(),le(Vl,{disabled:S.value,to:e.appendTo},[z("div",{class:R({[i(r).m("fixed")]:b.value}),style:ze(x.value)},[oe(_.$slots,"default")],6)],8,["disabled","to"]))],6))}}),aP=nP;const oP=st(aP);/*! Element Plus Icons Vue v2.3.2 */var rP=se({name:"Aim",__name:"aim",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),z("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),yoe=rP,sP=se({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),qo=sP,lP=se({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),mr=lP,iP=se({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),sa=iP,uP=se({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),hf=uP,cP=se({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),woe=cP,dP=se({name:"Back",__name:"back",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),z("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),fP=dP,pP=se({name:"Bell",__name:"bell",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),z("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),z("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),Soe=pP,hP=se({name:"Box",__name:"box",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),z("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),z("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),Coe=hP,vP=se({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),mP=vP,gP=se({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),koe=gP,bP=se({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),xC=bP,yP=se({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),wP=yP,SP=se({name:"Check",__name:"check",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),$l=SP,CP=se({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),kP=CP,EP=se({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),z("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),Rm=EP,xP=se({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Im=xP,TP=se({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Yo=TP,OP=se({name:"Clock",__name:"clock",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),z("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),z("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),TC=OP,_P=se({name:"Close",__name:"close",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Qa=_P,RP=se({name:"Coin",__name:"coin",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),z("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),z("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),Eoe=RP,IP=se({name:"Compass",__name:"compass",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),z("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),xoe=IP,$P=se({name:"Connection",__name:"connection",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),z("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),Toe=$P,NP=se({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),z("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),Ooe=NP,MP=se({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),z("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),_oe=MP,PP=se({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),z("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),Roe=PP,AP=se({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),Xr=AP,LP=se({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),Jr=LP,DP=se({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),Ioe=DP,BP=se({name:"Delete",__name:"delete",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),VP=BP,FP=se({name:"Document",__name:"document",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),zP=FP,HP=se({name:"Download",__name:"download",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),$oe=HP,KP=se({name:"Edit",__name:"edit",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),z("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Noe=KP,WP=se({name:"Expand",__name:"expand",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),Moe=WP,jP=se({name:"Files",__name:"files",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),Poe=jP,UP=se({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),z("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),Aoe=UP,qP=se({name:"Fold",__name:"fold",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),Loe=qP,YP=se({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),Doe=YP,GP=se({name:"Folder",__name:"folder",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),Boe=GP,XP=se({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),JP=XP,ZP=se({name:"Hide",__name:"hide",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),z("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),QP=ZP,eA=se({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),Voe=eA,tA=se({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),tu=tA,nA=se({name:"Key",__name:"key",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),Foe=nA,aA=se({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),z("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),zoe=aA,oA=se({name:"List",__name:"list",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),Hoe=oA,rA=se({name:"Loading",__name:"loading",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),vo=rA,sA=se({name:"Lock",__name:"lock",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),z("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),Koe=sA,lA=se({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),z("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),Woe=lA,iA=se({name:"Minus",__name:"minus",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),uA=iA,cA=se({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),joe=cA,dA=se({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),B0=dA,fA=se({name:"More",__name:"more",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),pA=fA,hA=se({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),z("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),Uoe=hA,vA=se({name:"Operation",__name:"operation",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),qoe=vA,mA=se({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),gA=mA,bA=se({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),z("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),Yoe=bA,yA=se({name:"Plus",__name:"plus",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),OC=yA,wA=se({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),Goe=wA,SA=se({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),Xoe=SA,CA=se({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),kA=CA,EA=se({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),xA=EA,TA=se({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),OA=TA,_A=se({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Joe=_A,RA=se({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),IA=RA,$A=se({name:"Search",__name:"search",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),NA=$A,MA=se({name:"Setting",__name:"setting",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),Zoe=MA,PA=se({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),AA=PA,LA=se({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),DA=LA,BA=se({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),ac=BA,VA=se({name:"Star",__name:"star",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),FA=VA,zA=se({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),_C=zA,HA=se({name:"Tools",__name:"tools",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),Qoe=HA,KA=se({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),ere=KA,WA=se({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),tre=WA,jA=se({name:"User",__name:"user",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),nre=jA,UA=se({name:"Van",__name:"van",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),are=UA,qA=se({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),ore=qA,YA=se({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),rre=YA,GA=se({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),sre=GA,XA=se({name:"View",__name:"view",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),JA=XA,ZA=se({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),vf=ZA,QA=se({name:"Warning",__name:"warning",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),lre=QA,eL=se({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),RC=eL,tL=se({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(E(),L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),nL=tL;const Ut=G([String,Object,Function]),IC={Close:Qa},$m={Close:Qa,SuccessFilled:_C,InfoFilled:tu,WarningFilled:vf,CircleCloseFilled:Im},Zr={primary:tu,success:_C,warning:vf,error:Im,info:tu},mf={validating:vo,success:Rm,error:Yo},aL=["light","dark"],oL=Ee({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Ji(Zr),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:aL,default:"light"}}),rL={close:e=>e instanceof MouseEvent},sL=Ee({size:{type:G([Number,String])},color:{type:String}});var lL=se({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:sL,setup(e){const t=e,n=ge("icon"),a=C(()=>{const{size:o,color:r}=t,s=pn(o);return!s&&!r?{}:{fontSize:s,"--color":r}});return(o,r)=>(E(),L("i",pt({class:i(n).b(),style:a.value},o.$attrs),[oe(o.$slots,"default")],16))}}),iL=lL;const De=st(iL);var uL=se({name:"ElAlert",__name:"alert",props:oL,emits:rL,setup(e,{emit:t}){const{Close:n}=$m,a=e,o=t,r=wn(),s=ge("alert"),l=M(!0),u=C(()=>Zr[a.type]),c=C(()=>{if(a.description)return!0;const f=r.default?.();return f?La(f).some(p=>!yC(p)):!1}),d=f=>{l.value=!1,o("close",f)};return(f,p)=>(E(),le(Yn,{name:i(s).b("fade"),persisted:""},{default:ne(()=>[ct(z("div",{class:R([i(s).b(),i(s).m(e.type),i(s).is("center",e.center),i(s).is(e.effect)]),role:"alert"},[e.showIcon&&(f.$slots.icon||u.value)?(E(),le(i(De),{key:0,class:R([i(s).e("icon"),i(s).is("big",c.value)])},{default:ne(()=>[oe(f.$slots,"icon",{},()=>[(E(),le(it(u.value)))])]),_:3},8,["class"])):re("v-if",!0),z("div",{class:R(i(s).e("content"))},[e.title||f.$slots.title?(E(),L("span",{key:0,class:R([i(s).e("title"),{"with-description":c.value}])},[oe(f.$slots,"title",{},()=>[wt(Ce(e.title),1)])],2)):re("v-if",!0),c.value?(E(),L("p",{key:1,class:R(i(s).e("description"))},[oe(f.$slots,"default",{},()=>[wt(Ce(e.description),1)])],2)):re("v-if",!0),e.closable?(E(),L(Ve,{key:2},[e.closeText?(E(),L("div",{key:0,class:R([i(s).e("close-btn"),i(s).is("customed")]),onClick:d},Ce(e.closeText),3)):(E(),le(i(De),{key:1,class:R(i(s).e("close-btn")),onClick:d},{default:ne(()=>[X(i(n))]),_:1},8,["class"]))],64)):re("v-if",!0)],2)],2),[[$t,l.value]])]),_:3},8,["name"]))}}),cL=uL;const dL=st(cL),$C=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],NC=Ee({role:{type:String,values:$C,default:"tooltip"}}),Nm=Symbol("popper"),MC=Symbol("popperContent");var fL=se({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=ge("popper"),{arrowRef:a,arrowStyle:o}=$e(MC,void 0);return Vt(()=>{a.value=void 0}),t({arrowRef:a}),(r,s)=>(E(),L("span",{ref_key:"arrowRef",ref:a,class:R(i(n).e("arrow")),style:ze(i(o)),"data-popper-arrow":""},null,6))}}),pL=fL;const PC=Ee({virtualRef:{type:G(Object)},virtualTriggering:Boolean,onMouseenter:{type:G(Function)},onMouseleave:{type:G(Function)},onClick:{type:G(Function)},onKeydown:{type:G(Function)},onFocus:{type:G(Function)},onBlur:{type:G(Function)},onContextmenu:{type:G(Function)},id:String,open:Boolean}),ip="ElOnlyChild",AC=se({name:ip,setup(e,{slots:t,attrs:n}){const a=aM($e(sC)?.setForwardRef??ut);return()=>{const o=t.default?.(n);if(!o)return null;const[r,s]=LC(o);return r?(s>1&&jt(ip,"requires exact only one valid child."),ct(Fo(r,n),[[a]])):(jt(ip,"no valid child node found"),null)}}});function LC(e){if(!e)return[null,0];const t=e,n=t.filter(a=>a.type!==kn).length;for(const a of t){if(ot(a))switch(a.type){case kn:continue;case zl:case"svg":return[V0(a),n];case Ve:return LC(a.children);default:return[a,n]}return[V0(a),n]}return[null,0]}function V0(e){return X("span",{class:ge("only-child").e("content")},[e])}var hL=se({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:PC,setup(e,{expose:t}){const n=e,{role:a,triggerRef:o}=$e(Nm,void 0);nM(o);const r=C(()=>l.value?n.id:void 0),s=C(()=>{if(a&&a.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=C(()=>{if(a&&a.value!=="tooltip")return a.value}),u=C(()=>l.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return ht(()=>{pe(()=>n.virtualRef,f=>{f&&(o.value=Rn(f))},{immediate:!0}),pe(o,(f,p)=>{c?.(),c=void 0,xa(p)&&d.forEach(g=>{const h=n[g];h&&p.removeEventListener(g.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(g))}),xa(f)&&(d.forEach(g=>{const h=n[g];h&&f.addEventListener(g.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(g))}),Is(f)&&(c=pe([r,s,l,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{En(g[v])?f.removeAttribute(h):f.setAttribute(h,g[v])})},{immediate:!0}))),xa(p)&&Is(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),Vt(()=>{if(c?.(),c=void 0,o.value&&xa(o.value)){const f=o.value;d.forEach(p=>{const g=n[p];g&&f.removeEventListener(p.slice(2).toLowerCase(),g,["onFocus","onBlur"].includes(p))}),o.value=void 0}}),t({triggerRef:o}),(f,p)=>e.virtualTriggering?re("v-if",!0):(E(),le(i(AC),pt({key:0},f.$attrs,{"aria-controls":r.value,"aria-describedby":s.value,"aria-expanded":u.value,"aria-haspopup":l.value}),{default:ne(()=>[oe(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),vL=hL;const DC=Ee({arrowOffset:{type:Number,default:5}}),mL=Ee({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:G(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:jo,default:"bottom"},popperOptions:{type:G(Object),default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),BC=Ee({...mL,...DC,id:String,style:{type:G([String,Array,Object,Boolean]),default:void 0},className:{type:G([String,Array,Object])},effect:{type:G(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:G([String,Array,Object])},popperStyle:{type:G([String,Array,Object,Boolean]),default:void 0},referenceEl:{type:G(Object)},triggerTargetEl:{type:G(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ia(["ariaLabel"]),loop:Boolean}),gL={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},bL=Ee({size:{type:String,values:wo},disabled:Boolean}),yL=Ee({...bL,model:Object,rules:{type:G(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:G([Object,Boolean]),default:!0}}),wL={validate:(e,t,n)=>(we(e)||Ae(e))&&Wt(t)&&Ae(n)},Hs=Symbol("formContextKey"),Wo=Symbol("formItemContextKey"),In=(e,t={})=>{const n=M(void 0),a=t.prop?n:US("size"),o=t.global?n:SC(),r=t.form?{size:void 0}:$e(Hs,void 0),s=t.formItem?{size:void 0}:$e(Wo,void 0);return C(()=>a.value||i(e)||s?.size||r?.size||o.value||"")},ln=e=>{const t=US("disabled"),n=$e(Hs,void 0);return C(()=>t.value??i(e)??n?.disabled??!1)},Fn=()=>({form:$e(Hs,void 0),formItem:$e(Wo,void 0)}),Ia=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=M(!1)),a||(a=M(!1));const o=dt(),r=()=>{let c=o?.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},s=M();let l;const u=C(()=>!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&t.inputIds?.length<=1));return ht(()=>{l=pe([Ht(e,"id"),n],([c,d])=>{const f=c??(d?void 0:Gn().value);f!==s.value&&(t?.removeInputId&&!r()&&(s.value&&t.removeInputId(s.value),!a?.value&&!d&&f&&t.addInputId(f)),s.value=f)},{immediate:!0})}),Fl(()=>{l&&l(),t?.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:u,inputId:s}},SL=["","error","validating","success"],CL=Ee({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:G([String,Array])},required:{type:Boolean,default:void 0},rules:{type:G([Object,Array])},error:String,validateStatus:{type:String,values:SL},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:wo}}),F0=e=>[...new Set(e)],oi=e=>we(e)?e[0]:e,aa=e=>!e&&e!==0?[]:we(e)?e:[e],kL="ElForm";function EL(){const e=M([]),t=C(()=>{if(!e.value.length)return"0";const r=Math.max(...e.value);return r?`${r}px`:""});function n(r){const s=e.value.indexOf(r);return s===-1&&t.value==="0"&&jt(kL,`unexpected width ${r}`),s}function a(r,s){if(r&&s){const l=n(s);e.value.splice(l,1,r)}else r&&e.value.push(r)}function o(r){const s=n(r);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:a,deregisterLabelWidth:o}}const oc=(e,t)=>{const n=Dn(t).map(a=>we(a)?a.join("."):a);return n.length>0?e.filter(a=>a.propString&&n.includes(a.propString)):e},Us="ElForm";var xL=se({name:Us,__name:"form",props:yL,emits:wL,setup(e,{expose:t,emit:n}){const a=e,o=n,r=M(),s=Dt([]),l=new Map,u=In(),c=ge("form"),d=C(()=>{const{labelPosition:O,inline:T}=a;return[c.b(),c.m(u.value||"default"),{[c.m(`label-${O}`)]:O,[c.m("inline")]:T}]}),f=O=>oc(s,[O])[0],p=O=>{s.includes(O)||s.push(O),O.propString&&(l.has(O.propString)?O.setInitialValue(l.get(O.propString)):l.set(O.propString,No(O.fieldValue)))},g=(O,T)=>{if(T){l.delete(T);return}const I=s.indexOf(O);I>-1&&(s.splice(I,1),O.propString&&l.set(O.propString,No(O.getInitialValue())))},h=O=>{if(!a.model){jt(Us,"model is required for setInitialValues to work.");return}if(!O){jt(Us,"initModel is required for setInitialValues to work.");return}for(const T of l.keys())l.set(T,No(Wr(O,T).value));s.forEach(T=>{T.prop&&T.setInitialValue(Wr(O,T.prop).value)})},v=(O=[])=>{if(!a.model){jt(Us,"model is required for resetFields to work.");return}oc(s,O).forEach(_=>_.resetField());const T=new Set(s.map(_=>_.propString).filter(Boolean)),I=O.length>0?Dn(O).map(_=>we(_)?_.join("."):_):[...l.keys()];for(const _ of I)!T.has(_)&&l.has(_)&&(Wr(a.model,_).value=No(l.get(_)))},m=(O=[])=>{oc(s,O).forEach(T=>T.clearValidate())},b=C(()=>{const O=!!a.model;return O||jt(Us,"model is required for validate to work."),O}),w=O=>{if(s.length===0)return[];const T=oc(s,O);return T.length?T:(jt(Us,"please pass correct props!"),[])},y=async O=>k(void 0,O),S=async(O=[])=>{if(!b.value)return!1;const T=w(O);if(T.length===0)return!0;let I={};for(const _ of T)try{await _.validate(""),_.validateState==="error"&&!_.error&&_.resetField()}catch(N){I={...I,...N}}return Object.keys(I).length===0?!0:Promise.reject(I)},k=async(O=[],T)=>{let I=!1;const _=!Fe(T);try{return I=await S(O),I===!0&&await T?.(I),I}catch(N){if(N instanceof Error)throw N;const $=N;return a.scrollToError&&r.value&&r.value.querySelector(`.${c.b()}-item.is-error`)?.scrollIntoView(a.scrollIntoViewOptions),!I&&await T?.(!1,$),_&&Promise.reject($)}},x=O=>{const T=f(O);T&&T.$el?.scrollIntoView(a.scrollIntoViewOptions)};return pe(()=>a.rules,()=>{a.validateOnRuleChange&&y().catch(ut)},{deep:!0,flush:"post"}),St(Hs,Dt({...Pn(a),emit:o,resetFields:v,clearValidate:m,validateField:k,getField:f,addField:p,removeField:g,setInitialValues:h,...EL()})),t({validate:y,validateField:k,resetFields:v,clearValidate:m,scrollToField:x,getField:f,fields:s,setInitialValues:h}),(O,T)=>(E(),L("form",{ref_key:"formRef",ref:r,class:R(d.value)},[oe(O.$slots,"default")],2))}}),TL=xL;const z0="ElLabelWrap";var OL=se({name:z0,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=$e(Hs,void 0),a=$e(Wo);a||rn(z0,"usage: ");const o=ge("form"),r=M(),s=M(0),l=()=>{if(r.value?.firstElementChild){const d=window.getComputedStyle(r.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},u=(d="update")=>{Ne(()=>{t.default&&e.isAutoWidth&&(d==="update"?s.value=l():d==="remove"&&n?.deregisterLabelWidth(s.value))})},c=()=>u("update");return ht(()=>{c()}),Vt(()=>{u("remove")}),yo(()=>c()),pe(s,(d,f)=>{e.updateAll&&n?.registerLabelWidth(d,f)}),nn(C(()=>r.value?.firstElementChild??null),c),()=>{if(!t)return null;const{isAutoWidth:d}=e;if(d){const f=n?.autoLabelWidth,p=a?.hasLabel,g={};if(p&&f&&f!=="auto"){const h=Math.max(0,Number.parseInt(f,10)-s.value),v=(a.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";h&&(g[v]=`${h}px`)}return X("div",{ref:r,class:[o.be("item","label-wrap")],style:g},[t.default?.()])}else return X(Ve,{ref:r},[t.default?.()])}}});function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tc(e,t,n){return RL()?Tc=Reflect.construct.bind():Tc=function(o,r,s){var l=[null];l.push.apply(l,r);var u=Function.bind.apply(o,l),c=new u;return s&&nu(c,s.prototype),c},Tc.apply(null,arguments)}function IL(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function wh(e){var t=typeof Map=="function"?new Map:void 0;return wh=function(a){if(a===null||!IL(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,o)}function o(){return Tc(a,arguments,yh(this).constructor)}return o.prototype=Object.create(a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),nu(o,a)},wh(e)}var $L=/%[sdj%]/g,NL=function(){};function Sh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function Da(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a=r)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return s}return e}function ML(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Kn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ML(t)&&typeof e=="string"&&!e)}function PL(e,t,n){var a=[],o=0,r=e.length;function s(l){a.push.apply(a,l||[]),o++,o===r&&n(a)}e.forEach(function(l){t(l,s)})}function H0(e,t,n){var a=0,o=e.length;function r(s){if(s&&s.length){n(s);return}var l=a;a=a+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},vi={integer:function(t){return vi.number(t)&&parseInt(t,10)===t},float:function(t){return vi.number(t)&&!vi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!vi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(U0.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(FL())},hex:function(t){return typeof t=="string"&&!!t.match(U0.hex)}},zL=function(t,n,a,o,r){if(t.required&&n===void 0){VC(t,n,a,o,r);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;s.indexOf(l)>-1?vi[l](n)||o.push(Da(r.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Da(r.messages.types[l],t.fullField,t.type))},HL=function(t,n,a,o,r){var s=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",g=typeof n=="string",h=Array.isArray(n);if(p?f="number":g?f="string":h&&(f="array"),!f)return!1;h&&(d=n.length),g&&(d=n.replace(c,"_").length),s?d!==t.len&&o.push(Da(r.messages[f].len,t.fullField,t.len)):l&&!u&&dt.max?o.push(Da(r.messages[f].max,t.fullField,t.max)):l&&u&&(dt.max)&&o.push(Da(r.messages[f].range,t.fullField,t.min,t.max))},qs="enum",KL=function(t,n,a,o,r){t[qs]=Array.isArray(t[qs])?t[qs]:[],t[qs].indexOf(n)===-1&&o.push(Da(r.messages[qs],t.fullField,t[qs].join(", ")))},WL=function(t,n,a,o,r){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Da(r.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||o.push(Da(r.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Qt={required:VC,whitespace:VL,type:zL,range:HL,enum:KL,pattern:WL},jL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n,"string")&&!t.required)return a();Qt.required(t,n,o,s,r,"string"),Kn(n,"string")||(Qt.type(t,n,o,s,r),Qt.range(t,n,o,s,r),Qt.pattern(t,n,o,s,r),t.whitespace===!0&&Qt.whitespace(t,n,o,s,r))}a(s)},UL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&Qt.type(t,n,o,s,r)}a(s)},qL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&(Qt.type(t,n,o,s,r),Qt.range(t,n,o,s,r))}a(s)},YL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&Qt.type(t,n,o,s,r)}a(s)},GL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),Kn(n)||Qt.type(t,n,o,s,r)}a(s)},XL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&(Qt.type(t,n,o,s,r),Qt.range(t,n,o,s,r))}a(s)},JL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&(Qt.type(t,n,o,s,r),Qt.range(t,n,o,s,r))}a(s)},ZL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return a();Qt.required(t,n,o,s,r,"array"),n!=null&&(Qt.type(t,n,o,s,r),Qt.range(t,n,o,s,r))}a(s)},QL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&Qt.type(t,n,o,s,r)}a(s)},eD="enum",tD=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&Qt[eD](t,n,o,s,r)}a(s)},nD=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n,"string")&&!t.required)return a();Qt.required(t,n,o,s,r),Kn(n,"string")||Qt.pattern(t,n,o,s,r)}a(s)},aD=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n,"date")&&!t.required)return a();if(Qt.required(t,n,o,s,r),!Kn(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Qt.type(t,u,o,s,r),u&&Qt.range(t,u.getTime(),o,s,r)}}a(s)},oD=function(t,n,a,o,r){var s=[],l=Array.isArray(n)?"array":typeof n;Qt.required(t,n,o,s,r,l),a(s)},up=function(t,n,a,o,r){var s=t.type,l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Kn(n,s)&&!t.required)return a();Qt.required(t,n,o,l,r,s),Kn(n,s)||Qt.type(t,n,o,l,r)}a(l)},rD=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r)}a(s)},Ni={string:jL,method:UL,number:qL,boolean:YL,regexp:GL,integer:XL,float:JL,array:ZL,object:QL,enum:tD,pattern:nD,date:aD,url:up,hex:up,email:up,required:oD,any:rD};function Ch(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var kh=Ch(),Lu=function(){function e(n){this.rules=null,this._messages=kh,this.define(n)}var t=e.prototype;return t.define=function(a){var o=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(typeof a!="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(r){var s=a[r];o.rules[r]=Array.isArray(s)?s:[s]})},t.messages=function(a){return a&&(this._messages=j0(Ch(),a)),this._messages},t.validate=function(a,o,r){var s=this;o===void 0&&(o={}),r===void 0&&(r=function(){});var l=a,u=o,c=r;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(v){var m=[],b={};function w(S){if(Array.isArray(S)){var k;m=(k=m).concat.apply(k,S)}else m.push(S)}for(var y=0;yn.labelPosition||o?.labelPosition),b=C(()=>m.value==="top"?{}:{width:pn(n.labelWidth??o?.labelWidth)}),w=C(()=>{if(m.value==="top"||o?.inline)return{};if(!n.label&&!n.labelWidth&&_)return{};const Y=pn(n.labelWidth??o?.labelWidth);return!n.label&&!a.label?{marginLeft:Y}:{}}),y=C(()=>[l.b(),l.m(s.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",j.value||n.required),l.is("no-asterisk",o?.hideRequiredAsterisk),o?.requireAsteriskPosition==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:o?.statusIcon,[l.m(`label-${m.value}`)]:m.value}]),S=C(()=>Wt(n.inlineMessage)?n.inlineMessage:o?.inlineMessage||!1),k=C(()=>[l.e("error"),{[l.em("error","inline")]:S.value}]),x=C(()=>n.prop?we(n.prop)?n.prop.join("."):n.prop:""),O=C(()=>!!(n.label||a.label)),T=C(()=>n.for??(c.value.length===1?c.value[0]:void 0)),I=C(()=>!T.value&&O.value),_=!!r,N=C(()=>{const Y=o?.model;if(!(!Y||!n.prop))return Wr(Y,n.prop).value}),$=C(()=>{const{required:Y}=n,Q=[];n.rules&&Q.push(...Dn(n.rules));const D=o?.rules;if(D&&n.prop){const q=Wr(D,n.prop).value;q&&Q.push(...Dn(q))}if(Y!==void 0){const q=Q.map((te,fe)=>[te,fe]).filter(([te])=>"required"in te);if(q.length>0)for(const[te,fe]of q)te.required!==Y&&(Q[fe]={...te,required:Y});else Q.push({required:Y})}return Q}),B=C(()=>$.value.length>0),K=Y=>$.value.filter(Q=>!Q.trigger||!Y?!0:we(Q.trigger)?Q.trigger.includes(Y):Q.trigger===Y).map(({trigger:Q,...D})=>D),j=C(()=>$.value.some(Y=>Y.required)),W=C(()=>f.value==="error"&&n.showMessage&&(o?.showMessage??!0)),A=C(()=>`${n.label||""}${o?.labelSuffix||""}`),P=Y=>{d.value=Y},V=Y=>{const{errors:Q,fields:D}=Y;(!Q||!D)&&console.error(Y),P("error"),p.value=Q?Q?.[0]?.message??`${n.prop} is required`:"",o?.emit("validate",n.prop,!1,p.value)},F=()=>{P("success"),o?.emit("validate",n.prop,!0,"")},H=async Y=>{const Q=x.value;return new Lu({[Q]:Y}).validate({[Q]:N.value},{firstFields:!0}).then(()=>(F(),!0)).catch(D=>(V(D),Promise.reject(D)))},U=async(Y,Q)=>{if(v||!n.prop)return!1;const D=Fe(Q);if(!B.value)return Q?.(!1),!1;const q=K(Y);return q.length===0?(Q?.(!0),!0):(P("validating"),H(q).then(()=>(Q?.(!0),!0)).catch(te=>{const{fields:fe}=te;return Q?.(!1,fe),D?!1:Promise.reject(fe)}))},J=()=>{P(""),p.value="",v=!1},ee=async()=>{const Y=o?.model;if(!Y||!n.prop)return;const Q=Wr(Y,n.prop);v=!0,Q.value=No(h),await Ne(),J(),v=!1},ae=Y=>{c.value.includes(Y)||c.value.push(Y)},ce=Y=>{c.value=c.value.filter(Q=>Q!==Y)},Z=Y=>{h=No(Y)},de=()=>h;pe(()=>n.error,Y=>{p.value=Y||"",P(Y?"error":"")},{immediate:!0}),pe(()=>n.validateStatus,Y=>P(Y||""));const ue=Dt({...Pn(n),$el:g,size:s,validateMessage:p,validateState:d,labelId:u,inputIds:c,isGroup:I,hasLabel:O,fieldValue:N,addInputId:ae,removeInputId:ce,resetField:ee,clearValidate:J,validate:U,propString:x,setInitialValue:Z,getInitialValue:de});return St(Wo,ue),pe(x,(Y,Q)=>{!o||!Q||(o.removeField(ue,Q),Y&&(Z(N.value),o.addField(ue)))}),ht(()=>{n.prop&&(Z(N.value),o?.addField(ue))}),Vt(()=>{o?.removeField(ue)}),t({size:s,validateMessage:p,validateState:d,validate:U,clearValidate:J,resetField:ee,setInitialValue:Z}),(Y,Q)=>(E(),L("div",{ref_key:"formItemRef",ref:g,class:R(y.value),role:I.value?"group":void 0,"aria-labelledby":I.value?i(u):void 0},[X(i(OL),{"is-auto-width":b.value.width==="auto","update-all":i(o)?.labelWidth==="auto"},{default:ne(()=>[e.label||Y.$slots.label?(E(),le(it(T.value?"label":"div"),{key:0,id:i(u),for:T.value,class:R(i(l).e("label")),style:ze(b.value)},{default:ne(()=>[oe(Y.$slots,"label",{label:A.value},()=>[wt(Ce(A.value),1)])]),_:3},8,["id","for","class","style"])):re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),z("div",{class:R(i(l).e("content")),style:ze(w.value)},[oe(Y.$slots,"default"),X(Rw,{name:`${i(l).namespace.value}-zoom-in-top`},{default:ne(()=>[W.value?oe(Y.$slots,"error",{key:0,error:p.value},()=>[z("div",{class:R(k.value)},Ce(p.value),3)]):re("v-if",!0)]),_:3},8,["name"])],6)],10,sD))}}),FC=lD;const iD=st(TL,{FormItem:FC}),uD=sn(FC),cp="focus-trap.focus-after-trapped",dp="focus-trap.focus-after-released",cD="focus-trap.focusout-prevented",q0={cancelable:!0,bubbles:!1},dD={cancelable:!0,bubbles:!1},Y0="focusAfterTrapped",G0="focusAfterReleased",zC=Symbol("elFocusTrap"),Mm=M(),gf=M(0),Pm=M(0);let sc=0;const HC=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},X0=(e,t)=>{for(const n of e)if(!fD(n,t))return n},fD=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},pD=e=>{const t=HC(e);return[X0(t,e),X0(t.reverse(),e)]},hD=e=>e instanceof HTMLInputElement&&"select"in e,Pr=(e,t)=>{if(e){const n=document.activeElement;Ou(e,{preventScroll:!0}),Pm.value=window.performance.now(),e!==n&&hD(e)&&t&&e.select()}};function J0(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const vD=()=>{let e=[];return{push:a=>{const o=e[0];o&&a!==o&&o.pause(),e=J0(e,a),e.unshift(a)},remove:a=>{e=J0(e,a),e[0]?.resume?.()}}},mD=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if(Pr(a,t),document.activeElement!==n)return},Z0=vD(),gD=()=>gf.value>Pm.value,lc=()=>{Mm.value="pointer",gf.value=window.performance.now()},Q0=()=>{Mm.value="keyboard",gf.value=window.performance.now()},bD=()=>(ht(()=>{sc===0&&(document.addEventListener("mousedown",lc),document.addEventListener("touchstart",lc),document.addEventListener("keydown",Q0)),sc++}),Vt(()=>{sc--,sc<=0&&(document.removeEventListener("mousedown",lc),document.removeEventListener("touchstart",lc),document.removeEventListener("keydown",Q0))}),{focusReason:Mm,lastUserFocusTimestamp:gf,lastAutomatedFocusTimestamp:Pm}),ic=e=>new CustomEvent(cD,{...dD,detail:e});var yD=se({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Y0,G0,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=M();let a,o;const{focusReason:r}=bD();JN(h=>{e.trapped&&!s.paused&&t("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{altKey:v,ctrlKey:m,metaKey:b,currentTarget:w,shiftKey:y}=h,{loop:S}=e,k=qt(h)===Se.tab&&!v&&!m&&!b,x=document.activeElement;if(k&&x){const O=w,[T,I]=pD(O);if(T&&I){if(!y&&x===I){const _=ic({focusReason:r.value});t("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),S&&Pr(T,!0))}else if(y&&[T,O].includes(x)){const _=ic({focusReason:r.value});t("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),S&&Pr(I,!0))}}else if(x===O){const _=ic({focusReason:r.value});t("focusout-prevented",_),_.defaultPrevented||h.preventDefault()}}};St(zC,{focusTrapRef:n,onKeydown:l}),pe(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),pe([n],([h],[v])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",d),h.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",l),v.removeEventListener("focusin",d),v.removeEventListener("focusout",f))});const u=h=>{t(Y0,h)},c=h=>t(G0,h),d=h=>{const v=i(n);if(!v)return;const m=h.target,b=h.relatedTarget,w=m&&v.contains(m);e.trapped||b&&v.contains(b)||(a=b),w&&t("focusin",h),!s.paused&&e.trapped&&(w?o=m:Pr(o,!0))},f=h=>{const v=i(n);if(!(s.paused||!v))if(e.trapped){const m=h.relatedTarget;!En(m)&&!v.contains(m)&&setTimeout(()=>{if(!s.paused&&e.trapped){const b=ic({focusReason:r.value});t("focusout-prevented",b),b.defaultPrevented||Pr(o,!0)}},0)}else{const m=h.target;m&&v.contains(m)||t("focusout",h)}};async function p(){await Ne();const h=i(n);if(h){Z0.push(s);const v=h.contains(document.activeElement)?a:document.activeElement;if(a=v,!h.contains(v)){const m=new Event(cp,q0);h.addEventListener(cp,u),h.dispatchEvent(m),m.defaultPrevented||Ne(()=>{let b=e.focusStartEl;Ae(b)||(Pr(b),document.activeElement!==b&&(b="first")),b==="first"&&mD(HC(h),!0),(document.activeElement===v||b==="container")&&Pr(h)})}}}function g(){const h=i(n);if(h){h.removeEventListener(cp,u);const v=new CustomEvent(dp,{...q0,detail:{focusReason:r.value}});h.addEventListener(dp,c),h.dispatchEvent(v),!v.defaultPrevented&&(r.value=="keyboard"||!gD()||h.contains(document.activeElement))&&Pr(a??document.body),h.removeEventListener(dp,c),Z0.remove(s),a=null,o=null}}return ht(()=>{e.trapped&&p(),pe(()=>e.trapped,h=>{h?p():g()})}),Vt(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",l),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0),a=null,o=null}),{onKeydown:l}}}),Mn=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};function wD(e,t,n,a,o,r){return oe(e.$slots,"default",{handleKeydown:e.onKeydown})}var SD=Mn(yD,[["render",wD]]),ql=SD;const CD=(e,t=[])=>{const{placement:n,strategy:a,popperOptions:o}=e,r={placement:n,strategy:a,...o,modifiers:[...ED(e),...t]};return xD(r,o?.modifiers),r},kD=e=>{if(Pt)return Rn(e)};function ED(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:a}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:a}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function xD(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const TD=0,OD=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:a,role:o}=$e(Nm,void 0),r=M(),s=C(()=>e.arrowOffset),l=C(()=>({name:"eventListeners",enabled:!!e.visible})),u=C(()=>{const w=i(r),y=i(s)??TD;return{name:"arrow",enabled:!BI(w),options:{element:w,padding:y}}}),c=C(()=>({onFirstUpdate:()=>{h()},...CD(e,[i(u),i(l)])})),d=C(()=>kD(e.referenceEl)||i(a)),{attributes:f,state:p,styles:g,update:h,forceUpdate:v,instanceRef:m}=qN(d,n,c);pe(m,w=>t.value=w,{flush:"sync"}),ht(()=>{pe(()=>i(d)?.getBoundingClientRect?.(),()=>{h()})});let b;return pe(()=>e.visible,w=>{b?.(),b=void 0,w&&(b=nn(n,h).stop)}),Vt(()=>{t.value=void 0,b?.(),b=void 0}),{attributes:f,arrowRef:r,contentRef:n,instanceRef:m,state:p,styles:g,role:o,forceUpdate:v,update:h}},_D=(e,{attributes:t,styles:n,role:a})=>{const{nextZIndex:o}=Iu(),r=ge("popper"),s=C(()=>i(t).popper),l=M(Be(e.zIndex)?e.zIndex:o()),u=C(()=>[r.b(),r.is("pure",e.pure),r.is(e.effect),e.popperClass]),c=C(()=>[{zIndex:i(l)},i(n).popper,e.popperStyle||{}]),d=C(()=>a.value==="dialog"?"false":void 0),f=C(()=>i(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:s,contentClass:u,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=Be(e.zIndex)?e.zIndex:o()}}},RD=(e,t)=>{const n=M(!1),a=M(),o=()=>{t("focus")},r=c=>{c.detail?.focusReason!=="pointer"&&(a.value="first",t("blur"))},s=c=>{e.visible&&!n.value&&(c.target&&(a.value=c.target),n.value=!0)},l=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},u=()=>{n.value=!1,t("close")};return Vt(()=>{a.value=void 0}),{focusStartRef:a,trapped:n,onFocusAfterReleased:r,onFocusAfterTrapped:o,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:u}};var ID=se({name:"ElPopperContent",__name:"content",props:BC,emits:gL,setup(e,{expose:t,emit:n}){const a=n,o=e,{focusStartRef:r,trapped:s,onFocusAfterReleased:l,onFocusAfterTrapped:u,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=RD(o,a),{attributes:p,arrowRef:g,contentRef:h,styles:v,instanceRef:m,role:b,update:w}=OD(o),{ariaModal:y,arrowStyle:S,contentAttrs:k,contentClass:x,contentStyle:O,updateZIndex:T}=_D(o,{styles:v,attributes:p,role:b}),I=$e(Wo,void 0);St(MC,{arrowStyle:S,arrowRef:g}),I&&St(Wo,{...I,addInputId:ut,removeInputId:ut});let _;const N=(B=!0)=>{w(),B&&T()},$=()=>{N(!1),o.visible&&o.focusOnShow?s.value=!0:o.visible===!1&&(s.value=!1)};return ht(()=>{pe(()=>o.triggerTargetEl,(B,K)=>{_?.(),_=void 0;const j=i(B||h.value),W=i(K||h.value);xa(j)&&(_=pe([b,()=>o.ariaLabel,y,()=>o.id],A=>{["role","aria-label","aria-modal","id"].forEach((P,V)=>{En(A[V])?j.removeAttribute(P):j.setAttribute(P,A[V])})},{immediate:!0})),W!==j&&xa(W)&&["role","aria-label","aria-modal","id"].forEach(A=>{W.removeAttribute(A)})},{immediate:!0}),pe(()=>o.visible,$,{immediate:!0})}),Vt(()=>{_?.(),_=void 0,h.value=void 0}),t({popperContentRef:h,popperInstanceRef:m,updatePopper:N,contentStyle:O}),(B,K)=>(E(),L("div",pt({ref_key:"contentRef",ref:h},i(k),{style:i(O),class:i(x),tabindex:"-1",onMouseenter:K[0]||(K[0]=j=>B.$emit("mouseenter",j)),onMouseleave:K[1]||(K[1]=j=>B.$emit("mouseleave",j))}),[X(i(ql),{loop:e.loop,trapped:i(s),"trap-on-focus-in":!0,"focus-trap-el":i(h),"focus-start-el":i(r),onFocusAfterTrapped:i(u),onFocusAfterReleased:i(l),onFocusin:i(c),onFocusoutPrevented:i(d),onReleaseRequested:i(f)},{default:ne(()=>[oe(B.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),$D=ID,ND=se({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:NC,setup(e,{expose:t}){const n=e,a={triggerRef:M(),popperInstanceRef:M(),contentRef:M(),referenceRef:M(),role:C(()=>n.role)};return t(a),St(Nm,a),(o,r)=>oe(o.$slots,"default")}}),MD=ND;const KC=st(MD),Kt=Ee({...eM,...BC,appendTo:{type:G([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:G(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ia(["ariaLabel"])}),Bo=Ee({...PC,disabled:Boolean,trigger:{type:G([String,Array]),default:"hover"},triggerKeys:{type:G(Array),default:()=>[Se.enter,Se.numpadEnter,Se.space]},focusOnTarget:Boolean}),{useModelToggleProps:PD,useModelToggleEmits:AD,useModelToggle:LD}=W$("visible"),DD=Ee({...NC,...PD,...Kt,...Bo,...DC,showArrow:{type:Boolean,default:!0}}),BD=[...AD,"before-show","before-hide","show","hide","open","close"],Am=Symbol("elTooltip"),Eh=(e,t)=>we(e)?e.includes(t):e===t,Ys=(e,t,n)=>a=>{Eh(i(e),t)&&n(a)};var VD=se({name:"ElTooltipTrigger",__name:"trigger",props:Bo,setup(e,{expose:t}){const n=e,a=ge("tooltip"),{controlled:o,id:r,open:s,onOpen:l,onClose:u,onToggle:c}=$e(Am,void 0),d=M(null),f=()=>{if(i(o)||n.disabled)return!0},p=Ht(n,"trigger"),g=Ln(f,Ys(p,"hover",S=>{l(S),n.focusOnTarget&&S.target&&Ne(()=>{Ou(S.target,{preventScroll:!0})})})),h=Ln(f,Ys(p,"hover",u)),v=Ln(f,Ys(p,"click",S=>{S.button===0&&c(S)})),m=Ln(f,Ys(p,"focus",l)),b=Ln(f,Ys(p,"focus",u)),w=Ln(f,Ys(p,"contextmenu",S=>{S.preventDefault(),c(S)})),y=Ln(f,S=>{const k=qt(S);n.triggerKeys.includes(k)&&(S.preventDefault(),c(S))});return t({triggerRef:d}),(S,k)=>(E(),le(i(vL),{id:i(r),"virtual-ref":e.virtualRef,open:i(s),"virtual-triggering":e.virtualTriggering,class:R(i(a).e("trigger")),onBlur:i(b),onClick:i(v),onContextmenu:i(w),onFocus:i(m),onMouseenter:i(g),onMouseleave:i(h),onKeydown:i(y)},{default:ne(()=>[oe(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),FD=VD,zD=se({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Kt,setup(e,{expose:t}){const n=e,{selector:a}=rC(),o=ge("tooltip"),r=M(),s=IS(()=>r.value?.popperContentRef);let l;const{controlled:u,id:c,open:d,trigger:f,onClose:p,onOpen:g,onShow:h,onHide:v,onBeforeShow:m,onBeforeHide:b}=$e(Am,void 0),w=C(()=>n.transition||`${o.namespace.value}-fade-in-linear`),y=C(()=>n.persistent);Vt(()=>{l?.()});const S=C(()=>i(y)?!0:i(d)),k=C(()=>n.disabled?!1:i(d)),x=C(()=>n.appendTo||a.value),O=C(()=>n.style??{}),T=M(!0),I=()=>{v(),A()&&Ou(document.body,{preventScroll:!0}),T.value=!0},_=()=>{if(i(u))return!0},N=Ln(_,()=>{n.enterable&&Eh(i(f),"hover")&&g()}),$=Ln(_,()=>{Eh(i(f),"hover")&&p()}),B=()=>{r.value?.updatePopper?.(),m?.()},K=()=>{b?.()},j=()=>{h()},W=()=>{n.virtualTriggering||p()},A=P=>{const V=r.value?.popperContentRef,F=P?.relatedTarget||document.activeElement;return V?.contains(F)};return pe(()=>i(d),P=>{P?(T.value=!1,l=lm(s,()=>{i(u)||aa(i(f)).every(V=>V!=="hover"&&V!=="focus")&&p()},{detectIframe:!0})):l?.()},{flush:"post"}),t({contentRef:r,isFocusInsideContent:A}),(P,V)=>(E(),le(Vl,{disabled:!e.teleported,to:x.value},[S.value||!T.value?(E(),le(Yn,{key:0,name:w.value,appear:!y.value,onAfterLeave:I,onBeforeEnter:B,onAfterEnter:j,onBeforeLeave:K,persisted:""},{default:ne(()=>[ct(X(i($D),pt({id:i(c),ref_key:"contentRef",ref:r},P.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":T.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,O.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:k.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:i(N),onMouseleave:i($),onBlur:W,onClose:i(p)}),{default:ne(()=>[oe(P.$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","loop","onMouseenter","onMouseleave","onClose"]),[[$t,k.value]])]),_:3},8,["name","appear"])):re("v-if",!0)],8,["disabled","to"]))}}),HD=zD;const KD=["innerHTML"],WD={key:1};var jD=se({name:"ElTooltip",__name:"tooltip",props:DD,emits:BD,setup(e,{expose:t,emit:n}){const a=e,o=n;QN();const r=ge("tooltip"),s=Gn(),l=M(),u=M(),c=()=>{const S=i(l);S&&S.popperInstanceRef?.update()},d=M(!1),f=M(),{show:p,hide:g,hasUpdateHandler:h}=LD({indicator:d,toggleReason:f}),{onOpen:v,onClose:m}=tM({showAfter:Ht(a,"showAfter"),hideAfter:Ht(a,"hideAfter"),autoClose:Ht(a,"autoClose"),open:p,close:g}),b=C(()=>Wt(a.visible)&&!h.value),w=C(()=>[r.b(),a.popperClass]);St(Am,{controlled:b,id:s,open:gl(d),trigger:Ht(a,"trigger"),onOpen:v,onClose:m,onToggle:S=>{i(d)?m(S):v(S)},onShow:()=>{o("show",f.value)},onHide:()=>{o("hide",f.value)},onBeforeShow:()=>{o("before-show",f.value)},onBeforeHide:()=>{o("before-hide",f.value)},updatePopper:c}),pe(()=>a.disabled,S=>{S&&d.value&&(d.value=!1),!S&&Wt(a.visible)&&(d.value=a.visible)});const y=S=>u.value?.isFocusInsideContent(S);return Lv(()=>d.value&&g()),Vt(()=>{f.value=void 0}),t({popperRef:l,contentRef:u,isFocusInsideContent:y,updatePopper:c,onOpen:v,onClose:m,hide:g}),(S,k)=>(E(),le(i(KC),{ref_key:"popperRef",ref:l,role:e.role},{default:ne(()=>[X(FD,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:ne(()=>[S.$slots.default?oe(S.$slots,"default",{key:0}):re("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),X(HD,{ref_key:"contentRef",ref:u,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":w.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:ne(()=>[oe(S.$slots,"content",{},()=>[e.rawContent?(E(),L("span",{key:0,innerHTML:e.content},null,8,KD)):(E(),L("span",WD,Ce(e.content),1))]),e.showArrow?(E(),le(i(pL),{key:0})):re("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","loop"])]),_:3},8,["role"]))}}),UD=jD;const Wn=st(UD),fn=e=>e,Lm=Ee({id:{type:String,default:void 0},size:Nn,disabled:{type:Boolean,default:void 0},modelValue:{type:G([String,Number,Object]),default:""},modelModifiers:{type:G(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:G(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:G([Boolean,Object]),default:!1},autocomplete:{type:G(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:Ut,default:Yo},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:Ut},prefixIcon:{type:Ut},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:G([Object,Array,String,Boolean]),default:()=>fn({})},countGraphemes:{type:G(Function)},autofocus:Boolean,rows:{type:Number,default:2},...ia(["ariaLabel"]),inputmode:{type:G(String),default:void 0},name:String}),qD={[at]:e=>Ae(e),input:e=>Ae(e),change:(e,t)=>Ae(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:e=>e===void 0||e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};Ya(Yo);let Ka;const YD={height:"0",visibility:"hidden",overflow:rf()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},GD=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],ey=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function XD(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:GD.map(r=>[r,t.getPropertyValue(r)]),paddingSize:a,borderSize:o,boxSizing:n}}function ty(e,t=1,n){if(!Ka){Ka=document.createElement("textarea");let d=document.body;!rf()&&e.parentNode&&(d=e.parentNode),d.appendChild(Ka)}const{paddingSize:a,borderSize:o,boxSizing:r,contextStyle:s}=XD(e);s.forEach(([d,f])=>Ka?.style.setProperty(d,f)),Object.entries(YD).forEach(([d,f])=>Ka?.style.setProperty(d,f,"important")),Ka.value=e.value||e.placeholder||"";let l=Ka.scrollHeight;const u={};r==="border-box"?l=l+o:r==="content-box"&&(l=l-a),Ka.value="";const c=Ka.scrollHeight-a;if(Be(t)){let d=c*t;r==="border-box"&&(d=d+a+o),l=Math.max(d,l),u.minHeight=`${d}px`}if(Be(n)){let d=c*n;r==="border-box"&&(d=d+a+o),l=Math.min(d,l)}return u.height=`${l}px`,Ka.parentNode?.removeChild(Ka),Ka=void 0,u}const JD=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],ZD=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","inputmode"],ny="ElInput";var QD=se({name:ny,inheritAttrs:!1,__name:"input",props:Lm,emits:qD,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wr(),s=wn(),l=C(()=>[a.type==="textarea"?b.b():m.b(),m.m(h.value),m.is("disabled",v.value),m.is("exceed",de.value),{[m.b("group")]:s.prepend||s.append,[m.m("prefix")]:s.prefix||a.prefixIcon,[m.m("suffix")]:s.suffix||a.suffixIcon||a.clearable||a.showPassword,[m.bm("suffix","password-clear")]:ee.value&&ae.value,[m.b("hidden")]:a.type==="hidden"},r.class]),u=C(()=>[m.e("wrapper"),m.is("focus",B.value)]),c=nf(),d=C(()=>a.maxlength?.toString()),{form:f,formItem:p}=Fn(),{inputId:g}=Ia(a,{formItemContext:p}),h=In(),v=ln(),m=ge("input"),b=ge("textarea"),w=Tt(),y=Tt(),S=M(!1),k=M(!1),x=M(),O=M(),T=Tt(a.inputStyle),I=M(""),_=M(),N=C(()=>w.value||y.value),{wrapperRef:$,isFocused:B,handleFocus:K,handleBlur:j}=Er(N,{disabled:v,afterBlur(){a.validateEvent&&p?.validate?.("blur").catch(ut)}}),W=C(()=>f?.statusIcon??!1),A=C(()=>p?.validateState||""),P=C(()=>A.value&&mf[A.value]),V=C(()=>k.value?JA:QP),F=C(()=>[r.style]),H=C(()=>[a.inputStyle,T.value,{resize:a.resize},_.value?{height:_.value}:void 0]),U=C(()=>En(a.modelValue)?"":String(a.modelValue)),J=C(()=>a.clearable&&!v.value&&!a.readonly),ee=C(()=>J.value&&!!U.value&&(B.value||S.value)),ae=C(()=>a.showPassword&&!v.value&&!!U.value),ce=C(()=>a.showWordLimit&&!!d.value&&(a.type==="text"||a.type==="textarea")&&!v.value&&!a.readonly&&!a.showPassword),Z=C(()=>a.countGraphemes&&a.showWordLimit?a.countGraphemes(U.value):U.value.length),de=C(()=>!!ce.value&&Z.value>Number(d.value)),ue=C(()=>!!s.suffix||!!a.suffixIcon||a.clearable||a.showPassword||ce.value||!!A.value&&W.value),Y=C(()=>!!Object.keys(a.modelModifiers).length),[Q,D]=qM(w);let q;nn(y,nt=>{if(he(),!ce.value&&!J.value||a.resize!=="both"&&a.resize!=="horizontal")return;const{width:ft}=nt[0].target.getBoundingClientRect(),me=()=>{q=void 0,x.value={right:`calc(100% - ${ft-10}px)`},O.value={right:`calc(100% - ${ft-11}px)`}};q&&fo(q),q=Ra(me)});const te=()=>{const{type:nt,autosize:ft}=a;if(!(!Pt||nt!=="textarea"||!y.value))if(ft){const me=ot(ft)?ft.minRows:void 0,je=ot(ft)?ft.maxRows:void 0,ie=ty(y.value,me,je);T.value={overflowY:"hidden",...ie},Ne(()=>{y.value.offsetHeight,T.value=ie})}else T.value={minHeight:ty(y.value).minHeight}},he=(nt=>{let ft=!1;return()=>{if(ft||!a.autosize){a.resize!=="none"&&setTimeout(()=>{_.value=y.value?.style.height});return}y.value?.offsetParent!==null&&(setTimeout(nt),ft=!0)}})(te),ve=()=>{const nt=N.value,ft=a.formatter?a.formatter(U.value):U.value;!nt||nt.value===ft||a.type==="file"||(nt.value=ft)},Ie=nt=>{const{trim:ft,number:me}=a.modelModifiers;return ft&&(nt=nt.trim()),me&&(nt=`${ey(nt)}`),a.formatter&&a.parser&&(nt=a.parser(nt)),nt},Le=async nt=>{if(ye.value)return;const{lazy:ft}=a.modelModifiers;let{value:me}=nt.target,je=!1;if(ft){o(Tn,me);return}if(me=Ie(me),a.countGraphemes&&d.value!=null){const ie=Number(d.value),xe=a.countGraphemes(me),Ue=a.countGraphemes(I.value);if(xe>ie&&xe>Ue)if(Ue>ie)me=I.value,je=!0;else{const et=I.value,bt=me;let vt=0;for(;vtvt&&Yt>vt&&et[Et-1]===bt[Yt-1];)Et--,Yt--;const an=bt.slice(0,vt),Lt=et.slice(vt,Et),en=bt.slice(vt,Yt),Ye=bt.slice(Yt),Ge=Ue-a.countGraphemes(Lt),tt=Math.max(0,ie-Ge);let Oe="";if(tt>0)if(typeof Intl<"u"&&"Segmenter"in Intl){const Ke=new Intl.Segmenter(void 0,{granularity:"grapheme"});for(const{segment:We}of Ke.segment(en)){const Xt=Oe+We;if(a.countGraphemes(Xt)>tt)break;Oe=Xt}}else for(const Ke of Array.from(en)){const We=Oe+Ke;if(a.countGraphemes(We)>tt)break;Oe=We}me=an+Oe+Ye,je=!0}}if(String(me)===U.value){if(a.formatter||je){const ie=nt.target,xe=ie.value,Ue=ie.selectionStart,et=ie.selectionEnd;if(ve(),je&&N.value&&Ue!=null&&et!=null){const bt=N.value.value,vt=xe.slice(Math.max(0,et));let Et=Math.min(Ue,bt.length);vt&&bt.endsWith(vt)&&(Et=bt.length-vt.length),N.value.setSelectionRange(Et,Et)}}return}I.value=me,Q(),o(at,me),o(Tn,me),await Ne(),(a.formatter&&a.parser||!Y.value)&&ve(),D()},_e=async nt=>{let{value:ft}=nt.target;ft=Ie(ft),a.modelModifiers.lazy&&o(at,ft),o(yt,ft,nt),await Ne(),ve()},{isComposing:ye,handleCompositionStart:Te,handleCompositionUpdate:be,handleCompositionEnd:Pe}=Pu({emit:o,afterComposition:Le}),He=()=>{k.value=!k.value},Je=()=>N.value?.focus(),Qe=()=>N.value?.blur(),lt=nt=>{S.value=!1,o("mouseleave",nt)},Ze=nt=>{S.value=!0,o("mouseenter",nt)},gt=nt=>{o("keydown",nt)},At=()=>{N.value?.select()},zt=nt=>{o(at,""),o(yt,""),o("clear",nt),o(Tn,"")};return pe(()=>a.modelValue,()=>{Ne(()=>{te(),a.autosize&&(_.value=void 0)}),a.validateEvent&&p?.validate?.("change").catch(ut)}),pe(()=>U.value,nt=>{I.value=nt},{immediate:!0}),pe(U,nt=>{if(!N.value)return;const{trim:ft,number:me}=a.modelModifiers,je=N.value.value,ie=(me||a.type==="number")&&!/^0\d/.test(je)?`${ey(je)}`:je;ie!==nt&&(document.activeElement===N.value&&N.value.type!=="range"&&ft&&ie.trim()===nt||ve())}),pe(()=>a.type,async()=>{await Ne(),ve(),te()}),ht(()=>{!a.formatter&&a.parser&&jt(ny,"If you set the parser, you also need to set the formatter."),ve(),Ne(te)}),Vt(()=>{q&&fo(q)}),t({input:w,textarea:y,ref:N,textareaStyle:H,autosize:Ht(a,"autosize"),isComposing:ye,passwordVisible:k,focus:Je,blur:Qe,select:At,clear:zt,resizeTextarea:te}),(nt,ft)=>(E(),L("div",{class:R([l.value,{[i(m).bm("group","append")]:nt.$slots.append,[i(m).bm("group","prepend")]:nt.$slots.prepend}]),style:ze(F.value),onMouseenter:Ze,onMouseleave:lt},[re(" input "),e.type!=="textarea"?(E(),L(Ve,{key:0},[re(" prepend slot "),nt.$slots.prepend?(E(),L("div",{key:0,class:R(i(m).be("group","prepend"))},[oe(nt.$slots,"prepend")],2)):re("v-if",!0),z("div",{ref_key:"wrapperRef",ref:$,class:R(u.value)},[re(" prefix slot "),nt.$slots.prefix||e.prefixIcon?(E(),L("span",{key:0,class:R(i(m).e("prefix"))},[z("span",{class:R(i(m).e("prefix-inner"))},[oe(nt.$slots,"prefix"),e.prefixIcon?(E(),le(i(De),{key:0,class:R(i(m).e("icon"))},{default:ne(()=>[(E(),le(it(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),z("input",pt({id:i(g),ref_key:"input",ref:w,class:i(m).e("inner")},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,type:e.showPassword?k.value?"text":"password":e.type,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:ft[0]||(ft[0]=(...me)=>i(Te)&&i(Te)(...me)),onCompositionupdate:ft[1]||(ft[1]=(...me)=>i(be)&&i(be)(...me)),onCompositionend:ft[2]||(ft[2]=(...me)=>i(Pe)&&i(Pe)(...me)),onInput:Le,onChange:_e,onKeydown:gt}),null,16,JD),re(" suffix slot "),ue.value?(E(),L("span",{key:1,class:R(i(m).e("suffix"))},[z("span",{class:R(i(m).e("suffix-inner"))},[J.value?(E(),le(i(De),{key:0,class:R([i(m).e("icon"),i(m).e("clear")]),style:ze({visibility:ee.value?"visible":"hidden"}),onMousedown:Xe(i(ut),["prevent"]),onClick:zt},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class","style","onMousedown"])):re("v-if",!0),!ee.value||!ae.value||!ce.value?(E(),L(Ve,{key:1},[oe(nt.$slots,"suffix"),e.suffixIcon?(E(),le(i(De),{key:0,class:R(i(m).e("icon"))},{default:ne(()=>[(E(),le(it(e.suffixIcon)))]),_:1},8,["class"])):re("v-if",!0)],64)):re("v-if",!0),ae.value?(E(),le(i(De),{key:2,class:R([i(m).e("icon"),i(m).e("password")]),onClick:He,onMousedown:Xe(i(ut),["prevent"]),onMouseup:Xe(i(ut),["prevent"])},{default:ne(()=>[oe(nt.$slots,"password-icon",{visible:k.value},()=>[(E(),le(it(V.value)))])]),_:3},8,["class","onMousedown","onMouseup"])):re("v-if",!0),ce.value?(E(),L("span",{key:3,class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},[z("span",{class:R(i(m).e("count-inner"))},Ce(Z.value)+" / "+Ce(d.value),3)],2)):re("v-if",!0),A.value&&P.value&&W.value?(E(),le(i(De),{key:4,class:R([i(m).e("icon"),i(m).e("validateIcon"),i(m).is("loading",A.value==="validating")])},{default:ne(()=>[(E(),le(it(P.value)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),nt.$slots.append?(E(),L("div",{key:1,class:R(i(m).be("group","append"))},[oe(nt.$slots,"append")],2)):re("v-if",!0)],64)):(E(),L(Ve,{key:1},[re(" textarea "),z("textarea",pt({id:i(g),ref_key:"textarea",ref:y,class:[i(b).e("inner"),i(m).is("focus",i(B)),i(b).is("clearable",e.clearable)]},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,tabindex:e.tabindex,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,style:H.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:ft[3]||(ft[3]=(...me)=>i(Te)&&i(Te)(...me)),onCompositionupdate:ft[4]||(ft[4]=(...me)=>i(be)&&i(be)(...me)),onCompositionend:ft[5]||(ft[5]=(...me)=>i(Pe)&&i(Pe)(...me)),onInput:Le,onFocus:ft[6]||(ft[6]=(...me)=>i(K)&&i(K)(...me)),onBlur:ft[7]||(ft[7]=(...me)=>i(j)&&i(j)(...me)),onChange:_e,onKeydown:gt}),null,16,ZD),ee.value?(E(),le(i(De),{key:0,class:R([i(b).e("icon"),i(b).e("clear")]),style:ze(O.value),onMousedown:Xe(i(ut),["prevent"]),onClick:zt},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class","style","onMousedown"])):re("v-if",!0),ce.value?(E(),L("span",{key:1,style:ze(x.value),class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},Ce(Z.value)+" / "+Ce(d.value),7)):re("v-if",!0)],64))],38))}}),e5=QD;const Un=st(e5),t5=Ee({...Lm,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:G(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:G([Function,Array]),default:ut},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:Kt.popperOptions,showArrow:{type:Boolean,default:!0},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:Kt.teleported,appendTo:Kt.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),n5={[at]:e=>Ae(e)||Be(e),[Tn]:e=>Ae(e)||Be(e),[yt]:e=>Ae(e)||Be(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>ot(e)},a5=Ee({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:G([String,Object,Array,Boolean]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:G([String,Object,Array,Boolean]),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,...ia(["ariaLabel","ariaOrientation"])}),au={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Be)},WC={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"}},o5=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),r5=Ee({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Dm=Symbol("scrollbarContextKey");function Vo(e,t,n=.03){return e-t>n}const s5=Ee({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),l5="Thumb";var i5=se({__name:"thumb",props:r5,setup(e){const t=e,n=$e(Dm),a=ge("scrollbar");n||rn(l5,"can not inject scrollbar context");const o=M(),r=M(),s=M({}),l=M(!1);let u=!1,c=!1,d=0,f=0,p=Pt?document.onselectstart:null;const g=C(()=>WC[t.vertical?"vertical":"horizontal"]),h=C(()=>o5({size:t.size,move:t.move,bar:g.value})),v=C(()=>o.value[g.value.offset]**2/n.wrapElement[g.value.scrollSize]/t.ratio/r.value[g.value.offset]),m=T=>{if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;window.getSelection()?.removeAllRanges(),w(T);const I=T.currentTarget;I&&(s.value[g.value.axis]=I[g.value.offset]-(T[g.value.client]-I.getBoundingClientRect()[g.value.direction]))},b=T=>{if(!r.value||!o.value||!n.wrapElement)return;const I=(Math.abs(T.target.getBoundingClientRect()[g.value.direction]-T[g.value.client])-r.value[g.value.offset]/2)*100*v.value/o.value[g.value.offset];n.wrapElement[g.value.scroll]=I*n.wrapElement[g.value.scrollSize]/100},w=T=>{T.stopImmediatePropagation(),u=!0,d=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),p=document.onselectstart,document.onselectstart=()=>!1},y=T=>{if(!o.value||!r.value||u===!1)return;const I=s.value[g.value.axis];if(!I)return;const _=((o.value.getBoundingClientRect()[g.value.direction]-T[g.value.client])*-1-(r.value[g.value.offset]-I))*100*v.value/o.value[g.value.offset];g.value.scroll==="scrollLeft"?n.wrapElement[g.value.scroll]=_*f/100:n.wrapElement[g.value.scroll]=_*d/100},S=()=>{u=!1,s.value[g.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",S),O(),c&&(l.value=!1)},k=()=>{c=!1,l.value=!!t.size},x=()=>{c=!0,l.value=u};Vt(()=>{O(),document.removeEventListener("mouseup",S)});const O=()=>{document.onselectstart!==p&&(document.onselectstart=p)};return Bt(Ht(n,"scrollbarElement"),"mousemove",k),Bt(Ht(n,"scrollbarElement"),"mouseleave",x),(T,I)=>(E(),le(Yn,{name:i(a).b("fade"),persisted:""},{default:ne(()=>[ct(z("div",{ref_key:"instance",ref:o,class:R([i(a).e("bar"),i(a).is(g.value.key)]),onMousedown:b,onClick:I[0]||(I[0]=Xe(()=>{},["stop"]))},[z("div",{ref_key:"thumb",ref:r,class:R(i(a).e("thumb")),style:ze(h.value),onMousedown:m},null,38)],34),[[$t,e.always||l.value]])]),_:1},8,["name"]))}}),ay=i5,u5=se({__name:"bar",props:s5,setup(e,{expose:t}){const n=e,a=$e(Dm),o=M(0),r=M(0),s=M(""),l=M(""),u=M(1),c=M(1);return t({handleScroll:p=>{if(p){const g=p.offsetHeight-4,h=p.offsetWidth-4;r.value=p.scrollTop*100/g*u.value,o.value=p.scrollLeft*100/h*c.value}},update:()=>{const p=a?.wrapElement;if(!p)return;const g=p.offsetHeight-4,h=p.offsetWidth-4,v=g**2/p.scrollHeight,m=h**2/p.scrollWidth,b=Math.max(v,n.minSize),w=Math.max(m,n.minSize);u.value=v/(g-v)/(b/(g-b)),c.value=m/(h-m)/(w/(h-w)),l.value=b+4(E(),L(Ve,null,[X(ay,{move:o.value,ratio:c.value,size:s.value,always:e.always},null,8,["move","ratio","size","always"]),X(ay,{move:r.value,ratio:u.value,size:l.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),c5=u5;const d5=["tabindex"],fp="ElScrollbar";var f5=se({name:fp,__name:"scrollbar",props:a5,emits:au,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("scrollbar");let s,l,u,c=0,d=0,f="";const p={bottom:!1,top:!1,right:!1,left:!1},g=M(),h=M(),v=M(),m=M(),b=C(()=>{const $={},B=pn(a.height),K=pn(a.maxHeight);return B&&($.height=B),K&&($.maxHeight=K),[a.wrapStyle,$]}),w=C(()=>[a.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!a.native}]),y=C(()=>[r.e("view"),a.viewClass]),S=$=>p[$]??!1,k={top:"bottom",bottom:"top",left:"right",right:"left"},x=$=>{const B=k[f];if(!B)return;const K=$[f],j=$[B];K&&!p[f]&&(p[f]=!0),!j&&p[B]&&(p[B]=!1)},O=()=>{if(h.value){m.value?.handleScroll(h.value);const $=c,B=d;c=h.value.scrollTop,d=h.value.scrollLeft;const K={bottom:!Vo(h.value.scrollHeight-a.distance,h.value.clientHeight+c),top:c<=a.distance&&$!==0,right:!Vo(h.value.scrollWidth-a.distance,h.value.clientWidth+d)&&B!==d,left:d<=a.distance&&B!==0};if(o("scroll",{scrollTop:c,scrollLeft:d}),$!==c&&(f=c>$?"bottom":"top"),B!==d&&(f=d>B?"right":"left"),a.distance>0){if(S(f))return;x(K)}K[f]&&o("end-reached",f)}};function T($,B){ot($)?h.value.scrollTo($):Be($)&&Be(B)&&h.value.scrollTo($,B)}const I=$=>{if(!Be($)){jt(fp,"value must be a number");return}h.value.scrollTop=$},_=$=>{if(!Be($)){jt(fp,"value must be a number");return}h.value.scrollLeft=$},N=()=>{m.value?.update(),p[f]=!1,h.value&&m.value?.handleScroll(h.value)};return pe(()=>a.noresize,$=>{$?(s?.(),l?.(),u?.()):({stop:s}=nn(v,N),{stop:l}=nn(h,N),u=Bt("resize",N))},{immediate:!0}),pe(()=>[a.maxHeight,a.height],()=>{a.native||Ne(()=>{N()})}),St(Dm,Dt({scrollbarElement:g,wrapElement:h})),gu(()=>{h.value&&(h.value.scrollTop=c,h.value.scrollLeft=d)}),ht(()=>{a.native||Ne(()=>{N()})}),yo(()=>N()),t({wrapRef:h,update:N,scrollTo:T,setScrollTop:I,setScrollLeft:_,handleScroll:O}),($,B)=>(E(),L("div",{ref_key:"scrollbarRef",ref:g,class:R(i(r).b())},[z("div",{ref_key:"wrapRef",ref:h,class:R(w.value),style:ze(b.value),tabindex:e.tabindex,onScroll:O},[(E(),le(it(e.tag),{id:e.id,ref_key:"resizeRef",ref:v,class:R(y.value),style:ze(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:ne(()=>[oe($.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,d5),e.native?re("v-if",!0):(E(),le(c5,{key:0,ref_key:"barRef",ref:m,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),p5=f5;const mo=st(p5),h5=["aria-expanded","aria-owns"],v5={key:0},m5=["id","aria-selected","onClick"],oy="ElAutocomplete";var g5=se({name:oy,inheritAttrs:!1,__name:"autocomplete",props:t5,emits:n5,setup(e,{expose:t,emit:n}){const a=e,o=n,r=C(()=>{const Y=Un.props??[];return hr(a,we(Y)?Y:Object.keys(Y))}),s=wr(),l=ln(),u=ge("autocomplete"),c=M(),d=M(),f=M(),p=M();let g=!1,h=!1;const v=M([]),m=M(-1),b=M(""),w=M(!1),y=M(!1),S=M(!1),k=Gn(),x=C(()=>s.style),O=C(()=>(v.value.length>0||S.value)&&w.value),T=C(()=>!a.hideLoading&&S.value),I=C(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),_=()=>{O.value&&(b.value=`${c.value.$el.offsetWidth}px`)},N=()=>{m.value=-1},$=async Y=>{if(y.value)return;const Q=D=>{S.value=!1,!y.value&&(we(D)?(v.value=D,m.value=a.highlightFirstItem?0:-1):rn(oy,"autocomplete suggestions must be an array"))};if(S.value=!0,we(a.fetchSuggestions))Q(a.fetchSuggestions);else{const D=await a.fetchSuggestions(Y,Q);we(D)&&Q(D)}},B=xu($,C(()=>a.debounce)),K=Y=>{const Q=!!Y;if(o(Tn,Y),o(at,Y),y.value=!1,w.value||(w.value=Q),!a.triggerOnFocus&&!Y){y.value=!0,v.value=[];return}B(Y)},j=Y=>{l.value||(Y.target?.tagName!=="INPUT"||I.value.includes(document.activeElement))&&(w.value=!0)},W=Y=>{o(yt,Y)},A=Y=>{if(h)h=!1;else{w.value=!0,o("focus",Y);const Q=a.modelValue??"";a.triggerOnFocus&&!g&&B(String(Q))}},P=Y=>{setTimeout(()=>{if(f.value?.isFocusInsideContent()){h=!0;return}w.value&&U(),o("blur",Y)})},V=()=>{w.value=!1,o(at,""),o("clear")},F=async()=>{c.value?.isComposing||(O.value&&m.value>=0&&m.value{O.value&&(Y.preventDefault(),Y.stopPropagation(),U())},U=()=>{w.value=!1},J=()=>{c.value?.focus()},ee=()=>{c.value?.blur()},ae=async Y=>{o(Tn,Y[a.valueKey]),o(at,Y[a.valueKey]),o("select",Y),v.value=[],m.value=-1},ce=Y=>{if(!O.value||S.value)return;if(Y<0){if(!a.loopNavigation){m.value=-1;return}Y=v.value.length-1}Y>=v.value.length&&(Y=a.loopNavigation?0:v.value.length-1);const[Q,D]=Z(),q=D[Y],te=Q.scrollTop,{offsetTop:fe,scrollHeight:he}=q;fe+he>te+Q.clientHeight&&(Q.scrollTop=fe+he-Q.clientHeight),fe{const Y=d.value.querySelector(`.${u.be("suggestion","wrap")}`);return[Y,Y.querySelectorAll(`.${u.be("suggestion","list")} li`)]},de=lm(p,Y=>{if(f.value?.isFocusInsideContent())return;const Q=h;h=!1,O.value&&(Q?P(new FocusEvent("blur",Y)):U())}),ue=Y=>{switch(qt(Y)){case Se.up:Y.preventDefault(),ce(m.value-1);break;case Se.down:Y.preventDefault(),ce(m.value+1);break;case Se.enter:case Se.numpadEnter:Y.preventDefault(),F();break;case Se.tab:U();break;case Se.esc:H(Y);break;case Se.home:Y.preventDefault(),ce(0);break;case Se.end:Y.preventDefault(),ce(v.value.length-1);break;case Se.pageUp:Y.preventDefault(),ce(Math.max(0,m.value-10));break;case Se.pageDown:Y.preventDefault(),ce(Math.min(v.value.length-1,m.value+10));break}};return Vt(()=>{de?.()}),ht(()=>{const Y=c.value?.ref;Y&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:k.value},{key:"aria-activedescendant",value:`${k.value}-item-${m.value}`}].forEach(({key:Q,value:D})=>Y.setAttribute(Q,D)),g=Y.hasAttribute("readonly"))}),t({highlightedIndex:m,activated:w,loading:S,inputRef:c,popperRef:f,suggestions:v,handleSelect:ae,handleKeyEnter:F,focus:J,blur:ee,close:U,highlight:ce,getData:$}),(Y,Q)=>(E(),le(i(Wn),{ref_key:"popperRef",ref:f,visible:O.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[i(u).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"show-arrow":e.showArrow,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${i(u).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:_,onHide:N},{content:ne(()=>[z("div",{ref_key:"regionRef",ref:d,class:R([i(u).b("suggestion"),i(u).is("loading",T.value)]),style:ze({[e.fitInputWidth?"width":"minWidth"]:b.value,outline:"none"}),role:"region"},[Y.$slots.header?(E(),L("div",{key:0,class:R(i(u).be("suggestion","header")),onClick:Q[0]||(Q[0]=Xe(()=>{},["stop"]))},[oe(Y.$slots,"header")],2)):re("v-if",!0),X(i(mo),{id:i(k),tag:"ul","wrap-class":i(u).be("suggestion","wrap"),"view-class":i(u).be("suggestion","list"),role:"listbox"},{default:ne(()=>[T.value?(E(),L("li",v5,[oe(Y.$slots,"loading",{},()=>[X(i(De),{class:R(i(u).is("loading"))},{default:ne(()=>[X(i(vo))]),_:1},8,["class"])])])):(E(!0),L(Ve,{key:1},kt(v.value,(D,q)=>(E(),L("li",{id:`${i(k)}-item-${q}`,key:q,class:R({highlighted:m.value===q}),role:"option","aria-selected":m.value===q,onClick:te=>ae(D)},[oe(Y.$slots,"default",{item:D},()=>[wt(Ce(D[e.valueKey]),1)])],10,m5))),128))]),_:3},8,["id","wrap-class","view-class"]),Y.$slots.footer?(E(),L("div",{key:1,class:R(i(u).be("suggestion","footer")),onClick:Q[1]||(Q[1]=Xe(()=>{},["stop"]))},[oe(Y.$slots,"footer")],2)):re("v-if",!0)],6)]),default:ne(()=>[z("div",{ref_key:"listboxRef",ref:p,class:R([i(u).b(),Y.$attrs.class]),style:ze(x.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":O.value,"aria-owns":i(k)},[X(i(Un),pt({ref_key:"inputRef",ref:c},pt(r.value,Y.$attrs),{"model-value":e.modelValue,disabled:i(l),onInput:K,onChange:W,onFocus:A,onBlur:P,onClear:V,onKeydown:ue,onMousedown:j}),ga({_:2},[Y.$slots.prepend?{name:"prepend",fn:ne(()=>[oe(Y.$slots,"prepend")]),key:"0"}:void 0,Y.$slots.append?{name:"append",fn:ne(()=>[oe(Y.$slots,"append")]),key:"1"}:void 0,Y.$slots.prefix?{name:"prefix",fn:ne(()=>[oe(Y.$slots,"prefix")]),key:"2"}:void 0,Y.$slots.suffix?{name:"suffix",fn:ne(()=>[oe(Y.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,h5)]),_:3},8,["visible","placement","popper-class","popper-style","popper-options","show-arrow","teleported","append-to","transition"]))}}),b5=g5;const y5=st(b5),w5=Ee({size:{type:[Number,String],values:wo,validator:e=>Be(e)},shape:{type:String,values:["circle","square"]},icon:{type:Ut},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:G(String),default:"cover"}}),S5={error:e=>e instanceof Event},jC=Symbol("avatarGroupContextKey"),C5={size:{type:G([Number,String]),values:wo,validator:e=>Be(e)},shape:{type:G(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:G(String),default:"light"},placement:{type:G(String),values:jo,default:"top"},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,collapseClass:String,collapseStyle:{type:G([String,Array,Object,Boolean]),default:void 0}},k5=["src","alt","srcset"];var E5=se({name:"ElAvatar",__name:"avatar",props:w5,emits:S5,setup(e,{emit:t}){const n=e,a=t,o=$e(jC,void 0),r=ge("avatar"),s=M(!1),l=C(()=>n.size??o?.size),u=C(()=>n.shape??o?.shape??"circle"),c=C(()=>{const{icon:g}=n,h=[r.b()];return Ae(l.value)&&h.push(r.m(l.value)),g&&h.push(r.m("icon")),u.value&&h.push(r.m(u.value)),h}),d=C(()=>Be(l.value)?r.cssVarBlock({size:pn(l.value)}):void 0),f=C(()=>({objectFit:n.fit}));pe(()=>[n.src,n.srcSet],()=>s.value=!1);function p(g){s.value=!0,a("error",g)}return(g,h)=>(E(),L("span",{class:R(c.value),style:ze(d.value)},[(e.src||e.srcSet)&&!s.value?(E(),L("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:ze(f.value),onError:p},null,44,k5)):e.icon?(E(),le(i(De),{key:1},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1})):oe(g.$slots,"default",{key:2})],6))}}),UC=E5,qC=se({name:"ElAvatarGroup",props:C5,setup(e,{slots:t}){const n=ge("avatar-group");return St(jC,Dt({size:Ht(e,"size"),shape:Ht(e,"shape")})),()=>{const a=La(t.default?.()??[]);let o=a;if(e.collapseAvatars&&a.length>e.maxCollapseAvatars){o=a.slice(0,e.maxCollapseAvatars);const r=a.slice(e.maxCollapseAvatars);o.push(X(Wn,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>X(UC,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[wt("+ "),r.length]}),content:()=>X("div",{class:n.e("collapse-avatars")},[r.map((s,l)=>Zt(s)?Fo(s,{key:s.key??l}):s)])}))}return X("div",{class:n.b()},[o])}}});const x5=st(UC,{AvatarGroup:qC}),T5=sn(qC),O5={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},_5={click:e=>e instanceof MouseEvent},R5=(e,t,n)=>{const a=Tt(),o=Tt(),r=M(!1),s=()=>{a.value&&(r.value=a.value.scrollTop>=e.visibilityHeight)},l=u=>{a.value?.scrollTo({top:0,behavior:"smooth"}),t("click",u)};return Bt(o,"scroll",MS(s,300,!0)),ht(()=>{o.value=document,a.value=document.documentElement,e.target&&(a.value=document.querySelector(e.target)??void 0,a.value||rn(n,`target does not exist: ${e.target}`),o.value=a.value),s()}),{visible:r,handleClick:l}},ry="ElBacktop";var I5=se({name:ry,__name:"backtop",props:O5,emits:_5,setup(e,{emit:t}){const n=e,a=t,o=ge("backtop"),{handleClick:r,visible:s}=R5(n,a,ry),l=C(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(u,c)=>(E(),le(Yn,{name:`${i(o).namespace.value}-fade-in`},{default:ne(()=>[i(s)?(E(),L("div",{key:0,style:ze(l.value),class:R(i(o).b()),onClick:c[0]||(c[0]=Xe((...d)=>i(r)&&i(r)(...d),["stop"]))},[oe(u.$slots,"default",{},()=>[X(i(De),{class:R(i(o).e("icon"))},{default:ne(()=>[X(i(wP))]),_:1},8,["class"])])],6)):re("v-if",!0)]),_:3},8,["name"]))}}),$5=I5;const N5=st($5),M5=Ee({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:G([String,Object,Array,Boolean]),default:void 0},offset:{type:G(Array),default:()=>[0,0]},badgeClass:{type:String}});var P5=se({name:"ElBadge",__name:"badge",props:M5,setup(e,{expose:t}){const n=e,a=ge("badge"),o=C(()=>n.isDot?"":Be(n.value)&&Be(n.max)?n.max[{backgroundColor:n.color,marginRight:pn(-n.offset[0]),marginTop:pn(n.offset[1])},n.badgeStyle??{}]);return t({content:o}),(s,l)=>(E(),L("div",{class:R(i(a).b())},[oe(s.$slots,"default"),X(Yn,{name:`${i(a).namespace.value}-zoom-in-center`},{default:ne(()=>[!e.hidden&&(o.value||e.isDot||s.$slots.content)?(E(),L("sup",{key:0,class:R([i(a).e("content"),i(a).em("content",e.type),i(a).is("fixed",!!s.$slots.default),i(a).is("dot",e.isDot),i(a).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:ze(r.value)},[oe(s.$slots,"content",{value:o.value},()=>[wt(Ce(o.value),1)])],6)):re("v-if",!0)]),_:3},8,["name"])],2))}}),A5=P5;const YC=st(A5),L5=Ee({separator:{type:String,default:"/"},separatorIcon:{type:Ut}}),GC=Symbol("breadcrumbKey"),D5=Ee({to:{type:G([String,Object]),default:""},replace:Boolean}),B5=["aria-label"];var V5=se({name:"ElBreadcrumb",__name:"breadcrumb",props:L5,setup(e){const{t}=xt(),n=e,a=ge("breadcrumb"),o=M();return St(GC,n),ht(()=>{const r=o.value.querySelectorAll(`.${a.e("item")}`);r.length&&r[r.length-1].setAttribute("aria-current","page")}),(r,s)=>(E(),L("div",{ref_key:"breadcrumb",ref:o,class:R(i(a).b()),"aria-label":i(t)("el.breadcrumb.label"),role:"navigation"},[oe(r.$slots,"default")],10,B5))}}),F5=V5,z5=se({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:D5,setup(e){const t=e,n=dt(),a=$e(GC,void 0),o=ge("breadcrumb"),r=n.appContext.config.globalProperties.$router,s=()=>{!t.to||!r||(t.replace?r.replace(t.to):r.push(t.to))};return(l,u)=>(E(),L("span",{class:R(i(o).e("item"))},[z("span",{class:R([i(o).e("inner"),i(o).is("link",!!e.to)]),role:"link",onClick:s},[oe(l.$slots,"default")],2),i(a)?.separatorIcon?(E(),le(i(De),{key:0,class:R(i(o).e("separator"))},{default:ne(()=>[(E(),le(it(i(a).separatorIcon)))]),_:1},8,["class"])):(E(),L("span",{key:1,class:R(i(o).e("separator")),role:"presentation"},Ce(i(a)?.separator),3))],2))}}),XC=z5;const H5=st(F5,{BreadcrumbItem:XC}),K5=sn(XC),xh=["default","primary","success","warning","info","danger","text",""],W5=["button","submit","reset"],Th=Ee({size:Nn,disabled:{type:Boolean,default:void 0},type:{type:String,values:xh,default:""},icon:{type:Ut},nativeType:{type:String,values:W5,default:"button"},loading:Boolean,loadingIcon:{type:Ut,default:()=>vo},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:G([String,Object]),default:"button"}}),j5={click:e=>e instanceof MouseEvent},JC=Symbol(),sd=M();function xr(e,t=void 0){const n=dt()?$e(JC,sd):sd;return e?C(()=>n.value?.[e]??t):n}function bf(e,t){const n=xr(),a=ge(e,C(()=>n.value?.namespace||"el")),o=xt(C(()=>n.value?.locale)),r=Iu(C(()=>n.value?.zIndex||2e3)),s=C(()=>i(t)||n.value?.size||"");return Bm(C(()=>i(n)||{})),{ns:a,locale:o,zIndex:r,size:s}}const Bm=(e,t,n=!1)=>{const a=!!dt(),o=a?xr():void 0,r=t?.provide??(a?St:void 0);if(!r){jt("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const s=C(()=>{const l=i(e);return o?.value?U5(o.value,l):l});return r(JC,s),r(HS,C(()=>s.value.locale)),r(KS,C(()=>s.value.namespace)),r(lC,C(()=>s.value.zIndex)),r(wC,{size:C(()=>s.value.size||"")}),r(CC,C(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!sd.value)&&(sd.value=s.value),s},U5=(e,t)=>{const n=[...new Set([...Ji(e),...Ji(t)])],a={};for(const o of n)a[o]=t[o]!==void 0?t[o]:e[o];return a},q5=Ee({a11y:{type:Boolean,default:!0},locale:{type:G(Object)},size:Nn,button:{type:G(Object)},card:{type:G(Object)},dialog:{type:G(Object)},link:{type:G(Object)},experimentalFeatures:{type:G(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:G(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:G(Object)},...zs}),ea={placement:"top"},Y5=se({name:"ElConfigProvider",props:q5,setup(e,{slots:t}){const n=Bm(e);return pe(()=>e.message,a=>{Object.assign(ea,n?.value?.message??{},a??{})},{immediate:!0,deep:!0}),()=>oe(t,"default",{config:n?.value})}}),G5=st(Y5),ZC=Symbol("buttonGroupContextKey"),X5=(e,t)=>{Po({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},C(()=>e.type==="text"));const n=$e(ZC,void 0),a=xr("button"),{form:o}=Fn(),r=In(C(()=>n?.size)),s=ln(),l=M(),u=wn(),c=C(()=>e.type||n?.type||a.value?.type||""),d=C(()=>e.autoInsertSpace??a.value?.autoInsertSpace??!1),f=C(()=>e.plain??a.value?.plain??!1),p=C(()=>e.round??a.value?.round??!1),g=C(()=>e.text??a.value?.text??!1),h=C(()=>e.dashed??a.value?.dashed??!1),v=C(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=C(()=>{const w=u.default?.();if(d.value&&w?.length===1){const y=w[0];if(y?.type===zl){const S=y.children;return/^\p{Unified_Ideograph}{2}$/u.test(S.trim())}}return!1});return{_disabled:s,_size:r,_type:c,_ref:l,_props:v,_plain:f,_round:p,_text:g,_dashed:h,shouldAddSpace:m,handleClick:w=>{if(s.value||e.loading){w.stopPropagation();return}e.nativeType==="reset"&&o?.resetFields(),t("click",w)}}};function Zn(e,t){J5(e)&&(e="100%");const n=Z5(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function uc(e){return Math.min(1,Math.max(0,e))}function J5(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Z5(e){return typeof e=="string"&&e.indexOf("%")!==-1}function QC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function cc(e){return Number(e)<=1?`${Number(e)*100}%`:e}function vs(e){return e.length===1?"0"+e:String(e)}function Q5(e,t,n){return{r:Zn(e,255)*255,g:Zn(t,255)*255,b:Zn(n,255)*255}}function sy(e,t,n){e=Zn(e,255),t=Zn(t,255),n=Zn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let r=0,s=0;const l=(a+o)/2;if(a===o)s=0,r=0;else{const u=a-o;switch(s=l>.5?u/(2-a-o):u/(a+o),a){case e:r=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eB(e,t,n){let a,o,r;if(e=Zn(e,360),t=Zn(t,100),n=Zn(n,100),t===0)o=n,r=n,a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;a=pp(l,s,e+1/3),o=pp(l,s,e),r=pp(l,s,e-1/3)}return{r:a*255,g:o*255,b:r*255}}function ly(e,t,n){e=Zn(e,255),t=Zn(t,255),n=Zn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let r=0;const s=a,l=a-o,u=a===0?0:l/a;if(a===o)r=0;else{switch(a){case e:r=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}const Oh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function sB(e){let t={r:0,g:0,b:0},n=1,a=null,o=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=uB(e)),typeof e=="object"&&(Na(e.r)&&Na(e.g)&&Na(e.b)?(t=Q5(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Na(e.h)&&Na(e.s)&&Na(e.v)?(a=cc(e.s),o=cc(e.v),t=tB(e.h,a,o),s=!0,l="hsv"):Na(e.h)&&Na(e.s)&&Na(e.l)?(a=cc(e.s),r=cc(e.l),t=eB(e.h,a,r),s=!0,l="hsl"):Na(e.c)&&Na(e.m)&&Na(e.y)&&Na(e.k)&&(t=aB(e.c,e.m,e.y,e.k),s=!0,l="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=QC(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const lB="[-\\+]?\\d+%?",iB="[-\\+]?\\d*\\.\\d+%?",Hr="(?:"+iB+")|(?:"+lB+")",hp="[\\s|\\(]+("+Hr+")[,|\\s]+("+Hr+")[,|\\s]+("+Hr+")\\s*\\)?",dc="[\\s|\\(]+("+Hr+")[,|\\s]+("+Hr+")[,|\\s]+("+Hr+")[,|\\s]+("+Hr+")\\s*\\)?",ja={CSS_UNIT:new RegExp(Hr),rgb:new RegExp("rgb"+hp),rgba:new RegExp("rgba"+dc),hsl:new RegExp("hsl"+hp),hsla:new RegExp("hsla"+dc),hsv:new RegExp("hsv"+hp),hsva:new RegExp("hsva"+dc),cmyk:new RegExp("cmyk"+dc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function uB(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(Oh[e])e=Oh[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=ja.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ja.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ja.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ja.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ja.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ja.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ja.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=ja.hex8.exec(e),n?{r:Ma(n[1]),g:Ma(n[2]),b:Ma(n[3]),a:cy(n[4]),format:t?"name":"hex8"}:(n=ja.hex6.exec(e),n?{r:Ma(n[1]),g:Ma(n[2]),b:Ma(n[3]),format:t?"name":"hex"}:(n=ja.hex4.exec(e),n?{r:Ma(n[1]+n[1]),g:Ma(n[2]+n[2]),b:Ma(n[3]+n[3]),a:cy(n[4]+n[4]),format:t?"name":"hex8"}:(n=ja.hex3.exec(e),n?{r:Ma(n[1]+n[1]),g:Ma(n[2]+n[2]),b:Ma(n[3]+n[3]),format:t?"name":"hex"}:!1))))))))))}function Na(e){return typeof e=="number"?!Number.isNaN(e):ja.CSS_UNIT.test(e)}class gn{constructor(t="",n={}){if(t instanceof gn)return t;typeof t=="number"&&(t=rB(t)),this.originalInput=t;const a=sB(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,a,o;const r=t.r/255,s=t.g/255,l=t.b/255;return r<=.03928?n=r/12.92:n=Math.pow((r+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*a+.0722*o}getAlpha(){return this.a}setAlpha(t){return this.a=QC(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=ly(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=ly(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${a}%, ${o}%)`:`hsva(${n}, ${a}%, ${o}%, ${this.roundA})`}toHsl(){const t=sy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=sy(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${a}%, ${o}%)`:`hsla(${n}, ${a}%, ${o}%, ${this.roundA})`}toHex(t=!1){return iy(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return nB(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),a=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${a})`:`rgba(${t}, ${n}, ${a}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(Zn(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(Zn(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return{...uy(this.r,this.g,this.b)}}toCmykString(){const{c:t,m:n,y:a,k:o}=uy(this.r,this.g,this.b);return`cmyk(${t}, ${n}, ${a}, ${o})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+iy(this.r,this.g,this.b,!1);for(const[n,a]of Object.entries(Oh))if(t===a)return n;return!1}toString(t){const n=!!t;t=t??this.format;let a=!1;const o=this.a<1&&this.a>=0;return!n&&o&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),t==="cmyk"&&(a=this.toCmykString()),a||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new gn(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=uc(n.l),new gn(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new gn(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=uc(n.l),new gn(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=uc(n.s),new gn(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=uc(n.s),new gn(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new gn(n)}mix(t,n=50){const a=this.toRgb(),o=new gn(t).toRgb(),r=n/100,s={r:(o.r-a.r)*r+a.r,g:(o.g-a.g)*r+a.g,b:(o.b-a.b)*r+a.b,a:(o.a-a.a)*r+a.a};return new gn(s)}analogous(t=6,n=30){const a=this.toHsl(),o=360/n,r=[this];for(a.h=(a.h-(o*t>>1)+720)%360;--t;)a.h=(a.h+o)%360,r.push(new gn(a));return r}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new gn(t)}monochromatic(t=6){const n=this.toHsv(),{h:a}=n,{s:o}=n;let{v:r}=n;const s=[],l=1/t;for(;t--;)s.push(new gn({h:a,s:o,v:r})),r=(r+l)%1;return s}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new gn({h:(n+72)%360,s:t.s,l:t.l}),new gn({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),a=new gn(t).toRgb(),o=n.a+a.a*(1-n.a);return new gn({r:(n.r*n.a+a.r*a.a*(1-n.a))/o,g:(n.g*n.a+a.g*a.a*(1-n.a))/o,b:(n.b*n.a+a.b*a.a*(1-n.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:a}=n,o=[this],r=360/t;for(let s=1;s{let a={},o=e.color;if(o){const r=o.match(/var\((.*?)\)/);r&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(r[1]));const s=new gn(o),l=e.dark?s.tint(20).toString():To(s,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?To(s,90):s.tint(90).toString(),"text-color":o,"border-color":e.dark?To(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":l,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?To(s,90):s.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?To(s,50):s.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?To(s,80):s.tint(80).toString());else if(e.link||e.text){const u=e.dark?To(s,30):s.tint(30).toString();if(a=n.cssVarBlock({"text-color":o,"hover-text-color":u,"active-text-color":l}),e.link&&(a[n.cssVarBlockName("hover-link-text-color")]=u,a[n.cssVarBlockName("active-color")]=l),t.value){const c=e.dark?To(s,50):s.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]="transparent",a[n.cssVarBlockName("disabled-text-color")]=c,a[n.cssVarBlockName("disabled-border-color")]="transparent"}}else{const u=e.dark?To(s,30):s.tint(30).toString(),c=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":u,"hover-text-color":c,"hover-border-color":u,"active-bg-color":l,"active-border-color":l}),t.value){const d=e.dark?To(s,50):s.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=d,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=d}}}return a})}var dB=se({name:"ElButton",__name:"button",props:Th,emits:j5,setup(e,{expose:t,emit:n}){const a=e,o=n,r=cB(a),s=ge("button"),{_ref:l,_size:u,_type:c,_disabled:d,_props:f,_plain:p,_round:g,_text:h,_dashed:v,shouldAddSpace:m,handleClick:b}=X5(a,o),w=C(()=>[s.b(),s.m(c.value),s.m(u.value),s.is("disabled",d.value),s.is("loading",a.loading),s.is("plain",p.value),s.is("round",g.value),s.is("circle",a.circle),s.is("text",h.value),s.is("dashed",v.value),s.is("link",a.link),s.is("has-bg",a.bg)]);return t({ref:l,size:u,type:c,disabled:d,shouldAddSpace:m}),(y,S)=>(E(),le(it(e.tag),pt({ref_key:"_ref",ref:l},i(f),{class:w.value,style:i(r),onClick:i(b)}),{default:ne(()=>[e.loading?(E(),L(Ve,{key:0},[y.$slots.loading?oe(y.$slots,"loading",{key:0}):(E(),le(i(De),{key:1,class:R(i(s).is("loading"))},{default:ne(()=>[(E(),le(it(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||y.$slots.icon?(E(),le(i(De),{key:1},{default:ne(()=>[e.icon?(E(),le(it(e.icon),{key:0})):oe(y.$slots,"icon",{key:1})]),_:3})):re("v-if",!0),y.$slots.default?(E(),L("span",{key:2,class:R({[i(s).em("text","expand")]:i(m)})},[oe(y.$slots,"default")],2)):re("v-if",!0)]),_:3},16,["class","style","onClick"]))}}),fB=dB;const pB={size:Th.size,type:Th.type,direction:{type:G(String),values:["horizontal","vertical"],default:"horizontal"}};var hB=se({name:"ElButtonGroup",__name:"button-group",props:pB,setup(e){const t=e;St(ZC,Dt({size:Ht(t,"size"),type:Ht(t,"type")}));const n=ge("button");return(a,o)=>(E(),L("div",{class:R([i(n).b("group"),i(n).bm("group",t.direction)])},[oe(a.$slots,"default")],2))}}),ek=hB;const Bn=st(fB,{ButtonGroup:ek}),tk=sn(ek),vB=e=>we(e)&&e.length===2&&e.every(t=>Ur(t)),mB=Ee({modelValue:{type:Date},range:{type:G(Array),validator:vB},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:G(Function)}}),gB={[at]:e=>Ur(e),[Tn]:e=>Ur(e)},dy=["hours","minutes","seconds"],Go="EP_PICKER_BASE",Vm="ElPopperOptions",nk=Symbol("commonPickerContextKey"),fy="HH:mm:ss",tl="YYYY-MM-DD",bB={date:tl,dates:tl,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${tl} ${fy}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:tl,datetimerange:`${tl} ${fy}`};var Tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ak={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){var n=1e3,a=6e4,o=36e5,r="millisecond",s="second",l="minute",u="hour",c="day",d="week",f="month",p="quarter",g="year",h="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var j=["th","st","nd","rd"],W=K%100;return"["+K+(j[(W-20)%10]||j[W]||j[0])+"]"}},y=function(K,j,W){var A=String(K);return!A||A.length>=j?K:""+Array(j+1-A.length).join(W)+K},S={s:y,z:function(K){var j=-K.utcOffset(),W=Math.abs(j),A=Math.floor(W/60),P=W%60;return(j<=0?"+":"-")+y(A,2,"0")+":"+y(P,2,"0")},m:function K(j,W){if(j.date()1)return K(F[0])}else{var H=j.name;x[H]=j,P=H}return!A&&P&&(k=P),P||!A&&k},_=function(K,j){if(T(K))return K.clone();var W=typeof j=="object"?j:{};return W.date=K,W.args=arguments,new $(W)},N=S;N.l=I,N.i=T,N.w=function(K,j){return _(K,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var $=function(){function K(W){this.$L=I(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[O]=!0}var j=K.prototype;return j.parse=function(W){this.$d=function(A){var P=A.date,V=A.utc;if(P===null)return new Date(NaN);if(N.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var F=P.match(m);if(F){var H=F[2]-1||0,U=(F[7]||"0").substring(0,3);return V?new Date(Date.UTC(F[1],H,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)):new Date(F[1],H,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)}}return new Date(P)}(W),this.init()},j.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},j.$utils=function(){return N},j.isValid=function(){return this.$d.toString()!==v},j.isSame=function(W,A){var P=_(W);return this.startOf(A)<=P&&P<=this.endOf(A)},j.isAfter=function(W,A){return _(W)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),ok=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),rk=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),py=function(e,t){const n=Ur(e),a=Ur(t);return n&&a?e.getTime()===t.getTime():!n&&!a?e===t:!1},sk=function(e,t){const n=we(e),a=we(t);return n&&a?e.length!==t.length?!1:e.every((o,r)=>py(o,t[r])):!n&&!a?py(e,t):!1},hy=function(e,t,n){const a=ha(t)||t==="x"?rt(e).locale(n):rt(e,t).locale(n);return a.isValid()?a:void 0},vy=function(e,t,n){return ha(t)?e:t==="x"?+e:rt(e).locale(n).format(t)},mp=(e,t)=>{const n=[],a=t?.();for(let o=0;owe(e)?e.map(t=>t.toDate()):e.toDate(),Fm=Ee({disabledHours:{type:G(Function)},disabledMinutes:{type:G(Function)},disabledSeconds:{type:G(Function)}}),lk=Ee({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),zm=Ee({automaticDropdown:{type:Boolean,default:!0},id:{type:G([Array,String])},name:{type:G([Array,String])},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:G([String,Object]),default:Yo},editable:{type:Boolean,default:!0},saveOnBlur:{type:Boolean,default:!0},prefixIcon:{type:G([String,Object]),default:""},size:Nn,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:G(Object),default:()=>({})},modelValue:{type:G([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:G([Date,Array])},defaultTime:{type:G([Date,Array])},isRange:Boolean,...Fm,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:G([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,singlePanel:Boolean,placement:{type:G(String),values:jo,default:"bottom"},fallbackPlacements:{type:G(Array),default:["bottom","top","right","left"]},...zs,...ia(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),wB=Ee({id:{type:G(Array)},name:{type:G(Array)},modelValue:{type:G([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),ik=(e,t)=>{const{lang:n}=xt(),a=M(!1),o=M(!1),r=M(null),s=C(()=>{const{modelValue:h}=e;return!h||we(h)&&!h.filter(Boolean).length}),l=h=>{if(!sk(e.modelValue,h)){let v;we(h)?v=h.map(m=>vy(m,e.valueFormat,n.value)):h&&(v=vy(h,e.valueFormat,n.value)),t(at,h&&v,n.value)}},u=C(()=>{let h;if(s.value?c.value.getDefaultValue&&(h=c.value.getDefaultValue()):we(e.modelValue)?h=e.modelValue.map(v=>hy(v,e.valueFormat,n.value)):h=hy(e.modelValue??"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const v=c.value.getRangeAvailableTime(h);dn(v,h)||(h=v,s.value||l(Oc(h)))}return we(h)&&h.some(v=>!v)&&(h=[]),h}),c=M({});return{parsedValue:u,pickerActualVisible:o,pickerOptions:c,pickerVisible:a,userInput:r,valueIsEmpty:s,emitInput:l,onCalendarChange:h=>{t("calendar-change",h)},onPanelChange:(h,v,m)=>{t("panel-change",h,v,m)},onPick:(h="",v=!1)=>{a.value=v;let m;we(h)?m=h.map(b=>b.toDate()):m=h&&h.toDate(),r.value=null,l(m)},onSetPickerOption:h=>{c.value[h[0]]=h[1],c.value.panelReady=!0}}},SB=["id","name","placeholder","value","disabled"],CB=["id","name","placeholder","value","disabled"];var kB=se({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:wB,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:r}=Fn(),{inputId:s}=Ia(Dt({id:C(()=>a.id?.[0])}),{formItemContext:r}),l=nf(),u=ge("date"),c=ge("range"),d=M(),f=M(),{wrapperRef:p,isFocused:g}=Er(d,{disabled:C(()=>a.disabled)}),h=T=>{o("click",T)},v=T=>{o("mouseenter",T)},m=T=>{o("mouseleave",T)},b=T=>{o("touchstart",T)},w=T=>{o("startInput",T)},y=T=>{o("endInput",T)},S=T=>{o("startChange",T)},k=T=>{o("endChange",T)};return t({focus:()=>{d.value?.focus()},blur:()=>{d.value?.blur(),f.value?.blur()}}),(T,I)=>(E(),L("div",{ref_key:"wrapperRef",ref:p,class:R([i(u).is("active",i(g)),T.$attrs.class]),style:ze(T.$attrs.style),onClick:h,onMouseenter:v,onMouseleave:m,onTouchstartPassive:b},[oe(T.$slots,"prefix"),z("input",pt(i(l),{id:i(s),ref_key:"inputRef",ref:d,name:T.name&&T.name[0],placeholder:T.startPlaceholder,value:T.modelValue&&T.modelValue[0],class:i(c).b("input"),disabled:T.disabled,onInput:w,onChange:S}),null,16,SB),oe(T.$slots,"range-separator"),z("input",pt(i(l),{id:T.id&&T.id[1],ref_key:"endInputRef",ref:f,name:T.name&&T.name[1],placeholder:T.endPlaceholder,value:T.modelValue&&T.modelValue[1],class:i(c).b("input"),disabled:T.disabled,onInput:y,onChange:k}),null,16,CB),oe(T.$slots,"suffix")],38))}}),EB=kB,xB=se({name:"Picker",__name:"picker",props:zm,emits:[at,yt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const a=e,o=n,r=wr(),s=ge("date"),l=ge("input"),u=ge("range"),{formItem:c}=Fn(),d=$e(Vm,{}),f=Au(a,null),p=M(),g=M(),h=M(null);let v=!1;const m=ln(),b=ik(a,o),{parsedValue:w,pickerActualVisible:y,userInput:S,pickerVisible:k,pickerOptions:x,valueIsEmpty:O,emitInput:T,onPick:I,onSetPickerOption:_,onCalendarChange:N,onPanelChange:$}=b,{isFocused:B,handleFocus:K,handleBlur:j}=Er(g,{disabled:m,beforeFocus(){return a.readonly},afterFocus(){a.automaticDropdown&&(k.value=!0)},beforeBlur(ie){return!v&&p.value?.isFocusInsideContent(ie)},afterBlur(){Y.value&&!a.saveOnBlur?O.value||x.value.handleCancel?.():He(),k.value=!1,v=!1,a.validateEvent&&c?.validate("blur").catch(ut)}}),W=M(!1),A=C(()=>[s.b("editor"),s.bm("editor",a.type),l.e("wrapper"),s.is("disabled",m.value),s.is("active",k.value),u.b("editor"),Te?u.bm("editor",Te.value):"",r.class]),P=C(()=>[l.e("icon"),u.e("close-icon"),fe.value?"":u.em("close-icon","hidden")]);pe(k,ie=>{ie?Ne(()=>{ie&&(h.value=a.modelValue)}):(S.value=null,Ne(()=>{V(a.modelValue)}))});const V=(ie,xe)=>{(xe||!sk(ie,h.value))&&(o(yt,ie),xe&&(h.value=ie),a.validateEvent&&c?.validate("change").catch(ut))},F=ie=>{o("keydown",ie)},H=C(()=>g.value?Array.from(g.value.$el.querySelectorAll("input")):[]),U=(ie,xe,Ue)=>{const et=H.value;et.length&&(!Ue||Ue==="min"?(et[0].setSelectionRange(ie,xe),et[0].focus()):Ue==="max"&&(et[1].setSelectionRange(ie,xe),et[1].focus()))},J=()=>{y.value=!0},ee=()=>{o("visible-change",!0)},ae=()=>{y.value=!1,k.value=!1,o("visible-change",!1)},ce=()=>{k.value=!0},Z=()=>{k.value=!1},de=C(()=>{const ie=Qe(w.value);return we(S.value)?[S.value[0]??(ie&&ie[0])??"",S.value[1]??(ie&&ie[1])??""]:S.value!==null?S.value:Y.value&&O.value&&!a.saveOnBlur||!Y.value&&O.value||!k.value&&O.value?"":ie?Q.value||D.value||q.value?ie.join(", "):ie:""}),ue=C(()=>a.type.includes("time")),Y=C(()=>a.type.startsWith("time")),Q=C(()=>a.type==="dates"),D=C(()=>a.type==="months"),q=C(()=>a.type==="years"),te=C(()=>a.prefixIcon||(ue.value?TC:mP)),fe=C(()=>a.clearable&&!m.value&&!a.readonly&&!O.value&&(W.value||B.value)),he=ie=>{a.readonly||m.value||(fe.value&&(ie?.stopPropagation(),x.value.handleClear?x.value.handleClear():T(f.valueOnClear.value),V(f.valueOnClear.value,!0),ae()),o("clear"))},ve=async ie=>{a.readonly||m.value||(ie.target?.tagName!=="INPUT"||B.value||!a.automaticDropdown)&&(k.value=!0)},Ie=()=>{a.readonly||m.value||!O.value&&a.clearable&&(W.value=!0)},Le=()=>{W.value=!1},_e=ie=>{a.readonly||m.value||(ie.touches[0].target?.tagName!=="INPUT"||B.value||!a.automaticDropdown)&&(k.value=!0)},ye=C(()=>a.type.includes("range")),Te=In(),be=C(()=>i(p)?.popperRef?.contentRef),Pe=lm(g,ie=>{const xe=i(be),Ue=Rn(g);xe&&(ie.target===xe||ie.composedPath().includes(xe))||ie.target===Ue||Ue&&ie.composedPath().includes(Ue)||(k.value=!1)});Vt(()=>{Pe?.()});const He=()=>{if(Y.value&&!a.saveOnBlur)return;const ie=we(S.value)&&S.value.every(xe=>xe==="");if(S.value&&!ie){const xe=Je(de.value);xe&&(lt(xe)&&T(Oc(xe)),S.value=null)}(S.value===""||ie)&&(T(f.valueOnClear.value),V(f.valueOnClear.value,!0),S.value=null)},Je=ie=>ie?x.value.parseUserInput(ie):null,Qe=ie=>ie?we(ie)?ie.map(xe=>xe.format(a.format)):ie.format(a.format):null,lt=ie=>x.value.isValidValue(ie),Ze=async ie=>{if(a.readonly||m.value)return;const xe=qt(ie);if(F(ie),xe===Se.esc){k.value===!0&&(k.value=!1,ie.preventDefault(),ie.stopPropagation());return}if(xe===Se.down&&(x.value.handleFocusPicker&&(ie.preventDefault(),ie.stopPropagation()),k.value===!1&&(k.value=!0,await Ne()),x.value.handleFocusPicker)){x.value.handleFocusPicker();return}if(xe===Se.tab){v=!0;return}if(xe===Se.enter||xe===Se.numpadEnter){k.value?(S.value===null||S.value===""||lt(Je(de.value)))&&(He(),k.value=!1):k.value=!0,ie.preventDefault(),ie.stopPropagation();return}if(S.value){ie.stopPropagation();return}x.value.handleKeydownInput&&x.value.handleKeydownInput(ie)},gt=ie=>{S.value=ie,k.value||(k.value=!0)},At=ie=>{const xe=ie.target;S.value?S.value=[xe.value,S.value[1]]:S.value=[xe.value,null]},zt=ie=>{const xe=ie.target;S.value?S.value=[S.value[0],xe.value]:S.value=[null,xe.value]},nt=()=>{const ie=S.value,xe=Je(ie&&ie[0]),Ue=i(w);if(xe&&xe.isValid()){S.value=[Qe(xe),de.value?.[1]||null];const et=[xe,Ue&&(Ue[1]||null)];lt(et)&&(T(Oc(et)),S.value=null)}},ft=()=>{const ie=i(S),xe=Je(ie&&ie[1]),Ue=i(w);if(xe&&xe.isValid()){S.value=[i(de)?.[0]||null,Qe(xe)];const et=[Ue&&Ue[0],xe];lt(et)&&(T(Oc(et)),S.value=null)}},me=()=>{g.value?.focus()},je=()=>{g.value?.blur()};return St(Go,{props:a,emptyValues:f}),St(nk,b),t({focus:me,blur:je,handleOpen:ce,handleClose:Z,onPick:I}),(ie,xe)=>(E(),le(i(Wn),pt({ref_key:"refPopper",ref:p,visible:i(k),effect:"light",pure:"",trigger:"click"},ie.$attrs,{role:"dialog",teleported:"",transition:`${i(s).namespace.value}-zoom-in-top`,"popper-class":[`${i(s).namespace.value}-picker__popper`,ie.popperClass],"popper-style":ie.popperStyle,"popper-options":i(d),"fallback-placements":ie.fallbackPlacements,"gpu-acceleration":!1,placement:ie.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:J,onShow:ee,onHide:ae}),{default:ne(()=>[ye.value?(E(),le(EB,{key:1,id:ie.id,ref_key:"inputRef",ref:g,"model-value":de.value,name:ie.name,disabled:i(m),readonly:!ie.editable||ie.readonly,"start-placeholder":ie.startPlaceholder,"end-placeholder":ie.endPlaceholder,class:R(A.value),style:ze(ie.$attrs.style),"aria-label":ie.ariaLabel,tabindex:ie.tabindex,autocomplete:"off",role:"combobox",onClick:ve,onFocus:i(K),onBlur:i(j),onStartInput:At,onStartChange:nt,onEndInput:zt,onEndChange:ft,onMousedown:ve,onMouseenter:Ie,onMouseleave:Le,onTouchstartPassive:_e,onKeydown:Ze},{prefix:ne(()=>[te.value?(E(),le(i(De),{key:0,class:R([i(l).e("icon"),i(u).e("icon")])},{default:ne(()=>[(E(),le(it(te.value)))]),_:1},8,["class"])):re("v-if",!0)]),"range-separator":ne(()=>[oe(ie.$slots,"range-separator",{},()=>[z("span",{class:R(i(u).b("separator"))},Ce(ie.rangeSeparator),3)])]),suffix:ne(()=>[ie.clearIcon?(E(),le(i(De),{key:0,class:R(P.value),onMousedown:Xe(i(ut),["prevent"]),onClick:he},{default:ne(()=>[(E(),le(it(ie.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(E(),le(i(Un),{key:0,id:ie.id,ref_key:"inputRef",ref:g,"container-role":"combobox","model-value":de.value,name:ie.name,size:i(Te),disabled:i(m),placeholder:ie.placeholder,class:R([i(s).b("editor"),i(s).bm("editor",ie.type),i(s).is("focus",i(k)),ie.$attrs.class]),style:ze(ie.$attrs.style),readonly:!ie.editable||ie.readonly||Q.value||D.value||q.value||ie.type==="week","aria-label":ie.ariaLabel,tabindex:ie.tabindex,"validate-event":!1,onInput:gt,onFocus:i(K),onBlur:i(j),onKeydown:Ze,onChange:He,onMousedown:ve,onMouseenter:Ie,onMouseleave:Le,onTouchstartPassive:_e,onClick:xe[0]||(xe[0]=Xe(()=>{},["stop"]))},{prefix:ne(()=>[te.value?(E(),le(i(De),{key:0,class:R(i(l).e("icon")),onMousedown:Xe(ve,["prevent"]),onTouchstartPassive:_e},{default:ne(()=>[(E(),le(it(te.value)))]),_:1},8,["class"])):re("v-if",!0)]),suffix:ne(()=>[fe.value&&ie.clearIcon?(E(),le(i(De),{key:0,class:R(`${i(l).e("icon")} clear-icon`),onMousedown:Xe(i(ut),["prevent"]),onClick:he},{default:ne(()=>[(E(),le(it(ie.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:ne(()=>[oe(ie.$slots,"default",{visible:i(k),actualVisible:i(y),parsedValue:i(w),format:ie.format,dateFormat:ie.dateFormat,timeFormat:ie.timeFormat,unlinkPanels:ie.unlinkPanels,type:ie.type,defaultValue:ie.defaultValue,showNow:ie.showNow,showConfirm:ie.showConfirm,showFooter:ie.showFooter,showWeekNumber:ie.showWeekNumber,singlePanel:ie.singlePanel,onPick:xe[1]||(xe[1]=(...Ue)=>i(I)&&i(I)(...Ue)),onSelectRange:U,onSetPickerOption:xe[2]||(xe[2]=(...Ue)=>i(_)&&i(_)(...Ue)),onCalendarChange:xe[3]||(xe[3]=(...Ue)=>i(N)&&i(N)(...Ue)),onClear:he,onPanelChange:xe[4]||(xe[4]=(...Ue)=>i($)&&i($)(...Ue)),onMousedown:xe[5]||(xe[5]=Xe(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}}),uk=xB;const Ar=new Map;if(Pt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Ar.values())for(const{documentHandler:a}of n)a(t,e);e=void 0}})}function my(e,t){let n=[];return we(t.arg)?n=t.arg:xa(t.arg)&&n.push(t.arg),function(a,o){const r=t.instance.popperRef,s=a.target,l=o?.target,u=!t||!t.instance,c=!s||!l,d=e.contains(s)||e.contains(l),f=e===s,p=n.length&&n.some(h=>h?.contains(s))||n.length&&n.includes(l),g=r&&(r.contains(s)||r.contains(l));u||c||d||f||p||g||t.value(a,o)}}const Qr={beforeMount(e,t){Ar.has(e)||Ar.set(e,[]),Ar.get(e).push({documentHandler:my(e,t),bindingFn:t.value})},updated(e,t){Ar.has(e)||Ar.set(e,[]);const n=Ar.get(e),a=n.findIndex(r=>r.bindingFn===t.oldValue),o={documentHandler:my(e,t),bindingFn:t.value};a>=0?n.splice(a,1,o):n.push(o)},unmounted(e){Ar.delete(e)}},fc="_RepeatClick",ld={beforeMount(e,t){const n=t.value,{interval:a=100,delay:o=600}=Fe(n)?{}:n;let r,s;const l=()=>Fe(n)?n():n.handler(),u=()=>{s&&(clearTimeout(s),s=void 0),r&&(clearInterval(r),r=void 0)},c=d=>{d.button===0&&(u(),l(),document.addEventListener("mouseup",u,{once:!0}),s=setTimeout(()=>{r=setInterval(()=>{l()},a)},o))};e[fc]={start:c,clear:u},e.addEventListener("mousedown",c)},unmounted(e){if(!e[fc])return;const{start:t,clear:n}=e[fc];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[fc]=null}},_h="_trap-focus-children",ms=[],gy=e=>{if(ms.length===0)return;const t=qt(e),n=ms[ms.length-1][_h];if(n.length>0&&t===Se.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const a=e.shiftKey,o=e.target===n[0],r=e.target===n[n.length-1];o&&a&&(e.preventDefault(),n[n.length-1].focus()),r&&!a&&(e.preventDefault(),n[0].focus())}},TB={beforeMount(e){e[_h]=f0(e),ms.push(e),ms.length<=1&&document.addEventListener("keydown",gy)},updated(e){Ne(()=>{e[_h]=f0(e)})},unmounted(){ms.shift(),ms.length===0&&document.removeEventListener("keydown",gy)}};var by=!1,ds,Rh,Ih,_c,Rc,ck,Ic,$h,Nh,Mh,dk,Ph,Ah,fk,pk;function Ca(){if(!by){by=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Ph=/\b(iPhone|iP[ao]d)/.exec(e),Ah=/\b(iP[ao]d)/.exec(e),Mh=/Android/i.exec(e),fk=/FBAN\/\w+;/i.exec(e),pk=/Mobile/i.exec(e),dk=!!/Win64/.exec(e),t){ds=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ds&&document&&document.documentMode&&(ds=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);ck=a?parseFloat(a[1])+4:ds,Rh=t[2]?parseFloat(t[2]):NaN,Ih=t[3]?parseFloat(t[3]):NaN,_c=t[4]?parseFloat(t[4]):NaN,_c?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Rc=t&&t[1]?parseFloat(t[1]):NaN):Rc=NaN}else ds=Rh=Ih=Rc=_c=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ic=o?parseFloat(o[1].replace("_",".")):!0}else Ic=!1;$h=!!n[2],Nh=!!n[3]}else Ic=$h=Nh=!1}}var Lh={ie:function(){return Ca()||ds},ieCompatibilityMode:function(){return Ca()||ck>ds},ie64:function(){return Lh.ie()&&dk},firefox:function(){return Ca()||Rh},opera:function(){return Ca()||Ih},webkit:function(){return Ca()||_c},safari:function(){return Lh.webkit()},chrome:function(){return Ca()||Rc},windows:function(){return Ca()||$h},osx:function(){return Ca()||Ic},linux:function(){return Ca()||Nh},iphone:function(){return Ca()||Ph},mobile:function(){return Ca()||Ph||Ah||Mh||pk},nativeApp:function(){return Ca()||fk},android:function(){return Ca()||Mh},ipad:function(){return Ca()||Ah}},OB=Lh,_B=!!(typeof window<"u"&&window.document&&window.document.createElement),RB={canUseDOM:_B},hk=RB,vk;hk.canUseDOM&&(vk=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function IB(e,t){if(!hk.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a=typeof o[n]=="function"}return!a&&vk&&e==="wheel"&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}var $B=IB,yy=10,wy=40,Sy=800;function mk(e){var t=0,n=0,a=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=t*yy,o=n*yy,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||o)&&e.deltaMode&&(e.deltaMode==1?(a*=wy,o*=wy):(a*=Sy,o*=Sy)),a&&!t&&(t=a<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:o}}mk.getEventType=function(){return OB.firefox()?"DOMMouseScroll":$B("wheel")?"wheel":"mousewheel"};var NB=mk;/** +* Checks if an event is supported in the current execution environment. +* +* NOTE: This will not work correctly for non-generic events such as `change`, +* `reset`, `load`, `error`, and `select`. +* +* Borrows from Modernizr. +* +* @param {string} eventNameSuffix Event name, e.g. "click". +* @param {?boolean} capture Check if the capture phase is supported. +* @return {boolean} True if the event is supported. +* @internal +* @license Modernizr 3.0.0pre (Custom Build) | MIT +*/const Dh="_Mousewheel",Cy=function(e,t){if(e&&e.addEventListener){gk(e);const n=function(a){const o=NB(a);t&&Reflect.apply(t,this,[a,o])};e[Dh]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},gk=e=>{e._Mousewheel?.wheelHandler&&(e.removeEventListener("wheel",e[Dh].wheelHandler),e[Dh]=null)},MB={beforeMount(e,t){Cy(e,t.value)},unmounted(e){gk(e)},updated(e,t){t.value!==t.oldValue&&Cy(e,t.value)}},PB=Ee({...lk,datetimeRole:String,parsedValue:{type:G(Object)}}),bk=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(s,l,u,c)=>{const d={hour:e,minute:t,second:n};let f=s;return["hour","minute","second"].forEach(p=>{if(d[p]){let g;const h=d[p];switch(p){case"minute":g=h(f.hour(),l,c);break;case"second":g=h(f.hour(),f.minute(),l,c);break;default:g=h(l,c);break}if(g?.length&&!g.includes(f[p]())){const v=u?0:g.length-1;f=f[p](g[v])}}}),f},o={};return{timePickerOptions:o,getAvailableTime:a,onSetOption:([s,l])=>{o[s]=l}}},gp=e=>{const t=(a,o)=>a||o,n=a=>a!==!0;return e.map(t).filter(n)},yk=(e,t,n)=>({getHoursList:(s,l)=>mp(24,e&&(()=>e?.(s,l))),getMinutesList:(s,l,u)=>mp(60,t&&(()=>t?.(s,l,u))),getSecondsList:(s,l,u,c)=>mp(60,n&&(()=>n?.(s,l,u,c)))}),wk=(e,t,n)=>{const{getHoursList:a,getMinutesList:o,getSecondsList:r}=yk(e,t,n);return{getAvailableHours:(c,d)=>gp(a(c,d)),getAvailableMinutes:(c,d,f)=>gp(o(c,d,f)),getAvailableSeconds:(c,d,f,p)=>gp(r(c,d,f,p))}},Sk=(e,t)=>{const n=M(e.parsedValue);return pe(()=>e.visible,a=>{const o=xn(t.modelValue),r=xn(t.valueOnClear);if(a&&o===r){n.value=r;return}a||(n.value=e.parsedValue)}),n},AB=Ee({role:{type:String,required:!0},spinnerDate:{type:G(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:G(String),default:""},...Fm}),LB=["onClick"],DB=["onMouseenter"];var BB=se({__name:"basic-time-spinner",props:AB,emits:[yt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:o,saveOnBlur:r}=$e(Go).props,s=t,l=ge("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=yk(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const p={hours:!1,minutes:!1,seconds:!1},g=M(),h={hours:M(),minutes:M(),seconds:M()},v=C(()=>n.showSeconds?dy:dy.slice(0,2)),m=C(()=>{const{spinnerDate:H}=n;return{hours:H.hour(),minutes:H.minute(),seconds:H.second()}}),b=C(()=>{const{hours:H,minutes:U}=i(m),{role:J,spinnerDate:ee}=n,ae=a?void 0:ee;return{hours:u(J,ae),minutes:c(H,J,ae),seconds:d(H,U,J,ae)}}),w=C(()=>{const{hours:H,minutes:U,seconds:J}=i(m);return{hours:vp(H,23),minutes:vp(U,59),seconds:vp(J,59)}}),y=Ho(H=>{f=!1,x(H)},200),S=H=>{if(!n.amPmMode)return"";const U=n.amPmMode==="A";let J=H<12?" am":" pm";return U&&(J=J.toUpperCase()),J},k=H=>{let U=[0,0];const J=o||"HH:mm:ss",ee=J.indexOf("HH"),ae=J.indexOf("mm"),ce=J.indexOf("ss");switch(H){case"hours":ee!==-1&&(U=[ee,ee+2]);break;case"minutes":ae!==-1&&(U=[ae,ae+2]);break;case"seconds":ce!==-1&&(U=[ce,ce+2]);break}const[Z,de]=U;s("select-range",Z,de),g.value=H},x=H=>{I(H,i(m)[H])},O=()=>{x("hours"),x("minutes"),x("seconds")},T=H=>H.querySelector(`.${l.namespace.value}-scrollbar__wrap`),I=(H,U)=>{if(n.arrowControl)return;const J=i(h[H]);J&&J.$el&&(r||(p[H]=!0,Ra(()=>{p[H]=!1})),T(J.$el).scrollTop=Math.max(0,U*_(H)))},_=H=>{const U=i(h[H])?.$el.querySelector("li");return U&&Number.parseFloat(or(U,"height"))||0},N=()=>{B(1)},$=()=>{B(-1)},B=H=>{g.value||k("hours");const U=g.value,J=i(m)[U],ee=K(U,J,H,g.value==="hours"?24:60);j(U,ee),I(U,ee),Ne(()=>k(U))},K=(H,U,J,ee)=>{let ae=(U+J+ee)%ee;const ce=i(b)[H];for(;ce[ae]&&ae!==U;)ae=(ae+J+ee)%ee;return ae},j=(H,U)=>{if(i(b)[H][U])return;const{hours:J,minutes:ee,seconds:ae}=i(m);let ce;switch(H){case"hours":ce=n.spinnerDate.hour(U).minute(ee).second(ae);break;case"minutes":ce=n.spinnerDate.hour(J).minute(U).second(ae);break;case"seconds":ce=n.spinnerDate.hour(J).minute(ee).second(U);break}s(yt,ce)},W=(H,{value:U,disabled:J})=>{J||(j(H,U),k(H),I(H,U))},A=H=>{if(!r&&p[H])return;const U=i(h[H]);U&&(f=!0,y(H),j(H,Math.min(Math.round((T(U.$el).scrollTop-(P(H)*.5-10)/_(H)+3)/_(H)),H==="hours"?23:59)))},P=H=>i(h[H]).$el.offsetHeight,V=()=>{const H=U=>{const J=i(h[U]);J&&J.$el&&(T(J.$el).onscroll=()=>{A(U)})};H("hours"),H("minutes"),H("seconds")};ht(()=>{Ne(()=>{!n.arrowControl&&V(),O(),n.role==="start"&&k("hours")})});const F=(H,U)=>{h[U].value=H??void 0};return s("set-option",[`${n.role}_scrollDown`,B]),s("set-option",[`${n.role}_emitSelectRange`,k]),pe(()=>n.spinnerDate,()=>{f||O()}),(H,U)=>(E(),L("div",{class:R([i(l).b("spinner"),{"has-seconds":H.showSeconds}])},[H.arrowControl?re("v-if",!0):(E(!0),L(Ve,{key:0},kt(v.value,J=>(E(),le(i(mo),{key:J,ref_for:!0,ref:ee=>F(ee,J),class:R(i(l).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(l).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ee=>k(J),onMousemove:ee=>x(J)},{default:ne(()=>[(E(!0),L(Ve,null,kt(b.value[J],(ee,ae)=>(E(),L("li",{key:ae,class:R([i(l).be("spinner","item"),i(l).is("active",ae===m.value[J]),i(l).is("disabled",ee)]),onClick:ce=>W(J,{value:ae,disabled:ee})},[J==="hours"?(E(),L(Ve,{key:0},[wt(Ce(("0"+(H.amPmMode?ae%12||12:ae)).slice(-2))+Ce(S(ae)),1)],64)):(E(),L(Ve,{key:1},[wt(Ce(("0"+ae).slice(-2)),1)],64))],10,LB))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),H.arrowControl?(E(!0),L(Ve,{key:1},kt(v.value,J=>(E(),L("div",{key:J,class:R([i(l).be("spinner","wrapper"),i(l).is("arrow")]),onMouseenter:ee=>k(J)},[ct((E(),le(i(De),{class:R(["arrow-up",i(l).be("spinner","arrow")])},{default:ne(()=>[X(i(hf))]),_:1},8,["class"])),[[i(ld),$]]),ct((E(),le(i(De),{class:R(["arrow-down",i(l).be("spinner","arrow")])},{default:ne(()=>[X(i(qo))]),_:1},8,["class"])),[[i(ld),N]]),z("ul",{class:R(i(l).be("spinner","list"))},[(E(!0),L(Ve,null,kt(w.value[J],(ee,ae)=>(E(),L("li",{key:ae,class:R([i(l).be("spinner","item"),i(l).is("active",ee===m.value[J]),i(l).is("disabled",b.value[J][ee])])},[i(Be)(ee)?(E(),L(Ve,{key:0},[J==="hours"?(E(),L(Ve,{key:0},[wt(Ce(("0"+(H.amPmMode?ee%12||12:ee)).slice(-2))+Ce(S(ee)),1)],64)):(E(),L(Ve,{key:1},[wt(Ce(("0"+ee).slice(-2)),1)],64))],64)):re("v-if",!0)],2))),128))],2)],42,DB))),128)):re("v-if",!0)],2))}}),Bh=BB,VB=se({__name:"panel-time-pick",props:PB,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=$e(Go),{arrowControl:r,disabledHours:s,disabledMinutes:l,disabledSeconds:u,defaultValue:c}=o.props,{getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:p}=wk(s,l,u),g=ge("time"),{t:h,lang:v}=xt(),m=M([0,2]),b=Sk(n,{modelValue:C(()=>o.props.modelValue),valueOnClear:C(()=>o?.emptyValues?o.emptyValues.valueOnClear.value:null)}),w=C(()=>Rt(n.actualVisible)?`${g.namespace.value}-zoom-in-top`:""),y=C(()=>n.format.includes("ss")),S=C(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),k=P=>{const V=rt(P).locale(v.value),F=j(V);return V.isSame(F)},x=()=>{const P=b.value;a("pick",P,!1),Ne(()=>{b.value=P})},O=(P=!1,V=!1)=>{V||a("pick",n.parsedValue,P)},T=P=>{n.visible&&a("pick",j(P).millisecond(0),!0)},I=(P,V)=>{a("select-range",P,V),m.value=[P,V]},_=P=>{const V=n.format,F=V.indexOf("HH"),H=V.indexOf("mm"),U=V.indexOf("ss"),J=[],ee=[];F!==-1&&(J.push(F),ee.push("hours")),H!==-1&&(J.push(H),ee.push("minutes")),U!==-1&&y.value&&(J.push(U),ee.push("seconds"));const ae=(J.indexOf(m.value[0])+P+J.length)%J.length;$.start_emitSelectRange(ee[ae])},N=P=>{const V=qt(P),{left:F,right:H,up:U,down:J}=Se;if([F,H].includes(V)){_(V===F?-1:1),P.preventDefault();return}if([U,J].includes(V)){const ee=V===U?-1:1;$.start_scrollDown(ee),P.preventDefault();return}},{timePickerOptions:$,onSetOption:B,getAvailableTime:K}=bk({getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:p}),j=P=>K(P,n.datetimeRole||"",!0),W=P=>P?rt(P,n.format).locale(v.value):null,A=()=>rt(c).locale(v.value);return a("set-picker-option",["isValidValue",k]),a("set-picker-option",["parseUserInput",W]),a("set-picker-option",["handleKeydownInput",N]),a("set-picker-option",["getRangeAvailableTime",j]),a("set-picker-option",["getDefaultValue",A]),a("set-picker-option",["handleCancel",x]),(P,V)=>(E(),le(Yn,{name:w.value},{default:ne(()=>[P.actualVisible||P.visible?(E(),L("div",{key:0,class:R(i(g).b("panel"))},[z("div",{class:R([i(g).be("panel","content"),{"has-seconds":y.value}])},[X(Bh,{ref:"spinner",role:P.datetimeRole||"start","arrow-control":i(r),"show-seconds":y.value,"am-pm-mode":S.value,"spinner-date":P.parsedValue,"disabled-hours":i(s),"disabled-minutes":i(l),"disabled-seconds":i(u),onChange:T,onSetOption:i(B),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),z("div",{class:R(i(g).be("panel","footer"))},[z("button",{type:"button",class:R([i(g).be("panel","btn"),"cancel"]),onClick:x},Ce(i(h)("el.datepicker.cancel")),3),z("button",{type:"button",class:R([i(g).be("panel","btn"),"confirm"]),onClick:V[0]||(V[0]=F=>O())},Ce(i(h)("el.datepicker.confirm")),3)],2)],2)):re("v-if",!0)]),_:1},8,["name"]))}}),id=VB;const FB=Ee({...lk,parsedValue:{type:G(Array)}}),zB=["disabled"];var HB=se({__name:"panel-time-range",props:FB,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=(Q,D)=>{const q=[];for(let te=Q;te<=D;te++)q.push(te);return q},{t:r,lang:s}=xt(),l=ge("time"),u=ge("picker"),c=$e(Go),{arrowControl:d,disabledHours:f,disabledMinutes:p,disabledSeconds:g,defaultValue:h}=c.props,v=C(()=>[l.be("range-picker","body"),l.be("panel","content"),l.is("arrow",d),k.value?"has-seconds":""]),m=C(()=>[l.be("range-picker","body"),l.be("panel","content"),l.is("arrow",d),k.value?"has-seconds":""]),b=C(()=>n.parsedValue[0]),w=C(()=>n.parsedValue[1]),y=Sk(n,{modelValue:C(()=>c.props.modelValue),valueOnClear:C(()=>c?.emptyValues?c.emptyValues.valueOnClear.value:null)}),S=()=>{const Q=y.value;a("pick",Q,!1),Ne(()=>{y.value=Q})},k=C(()=>n.format.includes("ss")),x=C(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),O=(Q=!1)=>{a("pick",[b.value,w.value],Q)},T=Q=>{N(Q.millisecond(0),w.value)},I=Q=>{N(b.value,Q.millisecond(0))},_=Q=>{const D=Q.map(te=>rt(te).locale(s.value)),q=U(D);return D[0].isSame(q[0])&&D[1].isSame(q[1])},N=(Q,D)=>{n.visible&&a("pick",[Q,D],!0)},$=C(()=>b.value>w.value),B=M([0,2]),K=(Q,D)=>{a("select-range",Q,D,"min"),B.value=[Q,D]},j=C(()=>k.value?11:8),W=(Q,D)=>{a("select-range",Q,D,"max");const q=i(j);B.value=[Q+q,D+q]},A=Q=>{const D=k.value?[0,3,6,11,14,17]:[0,3,8,11],q=["hours","minutes"].concat(k.value?["seconds"]:[]),te=(D.indexOf(B.value[0])+Q+D.length)%D.length,fe=D.length/2;te{const D=qt(Q),{left:q,right:te,up:fe,down:he}=Se;if([q,te].includes(D)){A(D===q?-1:1),Q.preventDefault();return}if([fe,he].includes(D)){const ve=D===fe?-1:1;ce[`${B.value[0]{const q=f?f(Q):[],te=Q==="start",fe=(D||(te?w.value:b.value)).hour();return ap(q,te?o(fe+1,23):o(0,fe-1))},F=(Q,D,q)=>{const te=p?p(Q,D):[],fe=D==="start",he=q||(fe?w.value:b.value);if(Q!==he.hour())return te;const ve=he.minute();return ap(te,fe?o(ve+1,59):o(0,ve-1))},H=(Q,D,q,te)=>{const fe=g?g(Q,D,q):[],he=q==="start",ve=te||(he?w.value:b.value),Ie=ve.hour(),Le=ve.minute();if(Q!==Ie||D!==Le)return fe;const _e=ve.second();return ap(fe,he?o(_e+1,59):o(0,_e-1))},U=([Q,D])=>[Z(Q,"start",!0,D),Z(D,"end",!1,Q)],{getAvailableHours:J,getAvailableMinutes:ee,getAvailableSeconds:ae}=wk(V,F,H),{timePickerOptions:ce,getAvailableTime:Z,onSetOption:de}=bk({getAvailableHours:J,getAvailableMinutes:ee,getAvailableSeconds:ae}),ue=Q=>Q?we(Q)?Q.map(D=>rt(D,n.format).locale(s.value)):rt(Q,n.format).locale(s.value):null,Y=()=>{if(we(h))return h.map(D=>rt(D).locale(s.value));const Q=rt(h).locale(s.value);return[Q,Q.add(60,"m")]};return a("set-picker-option",["parseUserInput",ue]),a("set-picker-option",["isValidValue",_]),a("set-picker-option",["handleKeydownInput",P]),a("set-picker-option",["getDefaultValue",Y]),a("set-picker-option",["getRangeAvailableTime",U]),a("set-picker-option",["handleCancel",S]),(Q,D)=>Q.actualVisible?(E(),L("div",{key:0,class:R([i(l).b("range-picker"),i(u).b("panel")])},[z("div",{class:R(i(l).be("range-picker","content"))},[z("div",{class:R(i(l).be("range-picker","cell"))},[z("div",{class:R(i(l).be("range-picker","header"))},Ce(i(r)("el.datepicker.startTime")),3),z("div",{class:R(v.value)},[X(Bh,{ref:"minSpinner",role:"start","show-seconds":k.value,"am-pm-mode":x.value,"arrow-control":i(d),"spinner-date":b.value,"disabled-hours":V,"disabled-minutes":F,"disabled-seconds":H,onChange:T,onSetOption:i(de),onSelectRange:K},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),z("div",{class:R(i(l).be("range-picker","cell"))},[z("div",{class:R(i(l).be("range-picker","header"))},Ce(i(r)("el.datepicker.endTime")),3),z("div",{class:R(m.value)},[X(Bh,{ref:"maxSpinner",role:"end","show-seconds":k.value,"am-pm-mode":x.value,"arrow-control":i(d),"spinner-date":w.value,"disabled-hours":V,"disabled-minutes":F,"disabled-seconds":H,onChange:I,onSetOption:i(de),onSelectRange:W},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),z("div",{class:R(i(l).be("panel","footer"))},[z("button",{type:"button",class:R([i(l).be("panel","btn"),"cancel"]),onClick:D[0]||(D[0]=q=>S())},Ce(i(r)("el.datepicker.cancel")),3),z("button",{type:"button",class:R([i(l).be("panel","btn"),"confirm"]),disabled:$.value,onClick:D[1]||(D[1]=q=>O())},Ce(i(r)("el.datepicker.confirm")),11,zB)],2)],2)):re("v-if",!0)}}),KB=HB,Ck={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,r=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,u={},c=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(b){this[m]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var w=b.match(/([+-]|\d\d)/g),y=60*w[1]+(+w[2]||0);return y===0?0:w[0]==="+"?-y:y}(m)}],p=function(m){var b=u[m];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(m,b){var w,y=u.meridiem;if(y){for(var S=1;S<=24;S+=1)if(m.indexOf(y(S,0,b))>-1){w=S>12;break}}else w=m===(b?"pm":"PM");return w},h={A:[l,function(m){this.afternoon=g(m,!1)}],a:[l,function(m){this.afternoon=g(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[r,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[r,d("day")],Do:[l,function(m){var b=u.ordinal,w=m.match(/\d+/);if(this.day=w[0],b)for(var y=1;y<=31;y+=1)b(y).replace(/\[|\]/g,"")===m&&(this.day=y)}],w:[s,d("week")],ww:[r,d("week")],M:[s,d("month")],MM:[r,d("month")],MMM:[l,function(m){var b=p("months"),w=(p("monthsShort")||b.map(function(y){return y.slice(0,3)})).indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[l,function(m){var b=p("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(m){this.year=c(m)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(m){var b,w;b=m,w=u&&u.formats;for(var y=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,N,$){var B=$&&$.toUpperCase();return N||w[$]||n[$]||w[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,j,W){return j||W.slice(1)})})).match(a),S=y.length,k=0;k-1)return new Date((P==="X"?1e3:1)*A);var H=v(P)(A),U=H.year,J=H.month,ee=H.day,ae=H.hours,ce=H.minutes,Z=H.seconds,de=H.milliseconds,ue=H.zone,Y=H.week,Q=new Date,D=ee||(U||J?1:Q.getDate()),q=U||Q.getFullYear(),te=0;U&&!J||(te=J>0?J-1:Q.getMonth());var fe,he=ae||0,ve=ce||0,Ie=Z||0,Le=de||0;return ue?new Date(Date.UTC(q,te,D,he,ve,Ie,Le+60*ue.offset*1e3)):V?new Date(Date.UTC(q,te,D,he,ve,Ie,Le)):(fe=new Date(q,te,D,he,ve,Ie,Le),Y&&(fe=F(fe).week(Y).toDate()),fe)}catch{return new Date("")}}(x,I,O,w),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),$&&x!=this.format(I)&&(this.$d=new Date("")),u={}}else if(I instanceof Array)for(var K=I.length,j=1;j<=K;j+=1){T[1]=I[j-1];var W=w.apply(this,T);if(W.isValid()){this.$d=W.$d,this.$L=W.$L,this.init();break}j===K&&(this.$d=new Date(""))}else S.call(this,k)}}})})(Ck);var WB=Ck.exports;const Hm=Or(WB);rt.extend(Hm);var jB=se({name:"ElTimePicker",install:null,props:{...zm,isRange:Boolean},emits:[at],setup(e,t){const n=M(),[a,o]=e.isRange?["timerange",KB]:["time",id],r=s=>t.emit(at,s);return St(Vm,e.popperOptions),t.expose({focus:()=>{n.value?.focus()},blur:()=>{n.value?.blur()},handleOpen:()=>{n.value?.handleOpen()},handleClose:()=>{n.value?.handleClose()}}),()=>X(uk,pt(e,{ref:n,type:a,format:e.format??"HH:mm:ss","onUpdate:modelValue":r}),{default:s=>X(o,s,null)})}});const UB=st(jB),gr=Ee({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:wo},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),qB={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},YB=["aria-label"],GB=["aria-label"];var XB=se({name:"ElTag",__name:"tag",props:gr,emits:qB,setup(e,{emit:t}){const n=e,a=t,o=In(),{t:r}=xt(),s=ge("tag"),l=C(()=>{const{type:f,hit:p,effect:g,closable:h,round:v}=n;return[s.b(),s.is("closable",h),s.m(f||"primary"),s.m(o.value),s.m(g),s.is("hit",p),s.is("round",v)]}),u=f=>{a("close",f)},c=f=>{a("click",f)},d=f=>{f?.component?.subTree?.component?.bum&&(f.component.subTree.component.bum=null)};return(f,p)=>e.disableTransitions?(E(),L("span",{key:0,class:R(l.value),style:ze({backgroundColor:e.color}),onClick:c},[z("span",{class:R(i(s).e("content"))},[oe(f.$slots,"default")],2),e.closable?(E(),L("button",{key:0,"aria-label":i(r)("el.tag.close"),class:R(i(s).e("close")),type:"button",onClick:Xe(u,["stop"])},[X(i(De),null,{default:ne(()=>[X(i(Qa))]),_:1})],10,YB)):re("v-if",!0)],6)):(E(),le(Yn,{key:1,name:`${i(s).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:ne(()=>[z("span",{class:R(l.value),style:ze({backgroundColor:e.color}),onClick:c},[z("span",{class:R(i(s).e("content"))},[oe(f.$slots,"default")],2),e.closable?(E(),L("button",{key:0,"aria-label":i(r)("el.tag.close"),class:R(i(s).e("close")),type:"button",onClick:Xe(u,["stop"])},[X(i(De),null,{default:ne(()=>[X(i(Qa))]),_:1})],10,GB)):re("v-if",!0)],6)]),_:3},8,["name"]))}}),JB=XB;const cr=st(JB),kk=Symbol("ElSelectGroup"),Du=Symbol("ElSelect"),ud={label:"label",value:"value",disabled:"disabled",options:"options"};function Bu(e){const t=M({...ud,...e.props});let n={...e.props};return pe(()=>e.props,l=>{dn(l,n)||(t.value={...ud,...l},n={...l})},{deep:!0}),{aliasProps:t,getLabel:l=>yn(l,t.value.label),getValue:l=>yn(l,t.value.value),getDisabled:l=>yn(l,t.value.disabled),getOptions:l=>yn(l,t.value.options)}}const Ek=Ee({name:String,id:String,modelValue:{type:G([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Nn,effect:{type:G(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:G([String,Object])},popperOptions:{type:G(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:G(Function)},filterMethod:{type:G(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:G(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},teleported:Kt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ut,default:Yo},fitInputWidth:Boolean,suffixIcon:{type:Ut,default:qo},tagType:{...gr.type,default:"info"},tagEffect:{...gr.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:G(String),values:jo,default:"bottom-start"},fallbackPlacements:{type:G(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Kt.appendTo,options:{type:G(Array)},props:{type:G(Object),default:()=>ud},...zs,...ia(["ariaLabel"])}),ZB={[at]:e=>!0,[yt]:e=>!0,"popup-scroll":au.scroll,"end-reached":au["end-reached"],"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},Vh="ElOption",QB=Ee({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function eV(e,t){const n=$e(Du);n||rn(Vh,"usage: ");const a=$e(kk,{disabled:!1}),o=C(()=>d(Dn(n.props.modelValue),e.value)),r=C(()=>{if(n.props.multiple){const g=Dn(n.props.modelValue??[]);return!o.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=C(()=>e.label??(ot(e.value)?"":e.value)),l=C(()=>e.value||e.label||""),u=C(()=>e.disabled||t.groupDisabled||r.value),c=dt(),d=(g=[],h)=>{if(ot(e.value)){const v=n.props.valueKey;return g&&g.some(m=>Jt(yn(m,v))===yn(h,v))}else return g&&g.includes(h)},f=()=>{u.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},p=g=>{t.visible=new RegExp(cm(g),"i").test(String(s.value))||e.created};return pe(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),pe(()=>e.value,(g,h)=>{const{remote:v,valueKey:m}=n.props;if((v?g!==h:!dn(g,h))&&(n.onOptionDestroy(h,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!v){if(m&&ot(g)&&ot(h)&&g[m]===h[m])return;n.setSelected()}}),pe(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:o,isDisabled:u,hoverItem:f,updateOption:p}}var tV=se({name:Vh,componentName:Vh,props:QB,setup(e){const t=ge("select"),n=Gn(),a=C(()=>[t.be("dropdown","item"),t.is("disabled",i(l)),t.is("selected",i(s)),t.is("hovering",i(p))]),o=Dt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:r,itemSelected:s,isDisabled:l,select:u,hoverItem:c,updateOption:d}=eV(e,o),{visible:f,hover:p}=Pn(o),g=dt().proxy;u.onOptionCreate(g),Vt(()=>{const m=g.value;Ne(()=>{const{selected:b}=u.states,w=b.some(y=>y.value===g.value);u.states.cachedOptions.get(m)===g&&!w&&u.states.cachedOptions.delete(m)}),u.onOptionDestroy(m,g)});function h(){l.value||u.handleOptionSelect(g)}return{ns:t,id:n,containerKls:a,currentLabel:r,itemSelected:s,isDisabled:l,select:u,visible:f,hover:p,states:o,hoverItem:c,handleMousedown:m=>{let b=m.target;const w=m.currentTarget;for(;b&&b!==w;){if(Is(b))return;b=b.parentElement}m.preventDefault()},updateOption:d,selectOptionClick:h}}});const nV=["id","aria-disabled","aria-selected"];function aV(e,t,n,a,o,r){return ct((E(),L("li",{id:e.id,class:R(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onMousedown:t[1]||(t[1]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onClick:t[2]||(t[2]=Xe((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[oe(e.$slots,"default",{},()=>[z("span",null,Ce(e.currentLabel),1)])],42,nV)),[[$t,e.visible]])}var Km=Mn(tV,[["render",aV]]),oV=se({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ge("select"),n=M(),a=dt(),o=M([]);St(kk,Dt({...Pn(e)}));const r=C(()=>o.value.some(c=>c.visible===!0)),s=c=>c.type.name==="ElOption"&&!!c.component?.proxy,l=c=>{const d=Dn(c),f=[];return d.forEach(p=>{Zt(p)&&(s(p)?f.push(p.component.proxy):we(p.children)&&p.children.length?f.push(...l(p.children)):p.component?.subTree&&f.push(...l(p.component.subTree)))}),f},u=()=>{o.value=l(a.subTree)};return ht(()=>{u()}),Tu(n,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:r,ns:t}}});function rV(e,t,n,a,o,r){return ct((E(),L("ul",{ref:"groupRef",class:R(e.ns.be("group","wrap"))},[z("li",{class:R(e.ns.be("group","title"))},Ce(e.label),3),z("li",null,[z("ul",{class:R(e.ns.b("group"))},[oe(e.$slots,"default")],2)])],2)),[[$t,e.visible]])}var Wm=Mn(oV,[["render",rV]]),sV=se({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=$e(Du),t=ge("select"),n=C(()=>e.props.popperClass),a=C(()=>e.props.multiple),o=C(()=>e.props.fitInputWidth),r=M("");function s(){const l=e.selectRef?.offsetWidth;l?r.value=`${l-2}px`:r.value=""}return ht(()=>{s(),nn(e.selectRef,s)}),{ns:t,minWidth:r,popperClass:n,isMultiple:a,isFitInputWidth:o}}});function lV(e,t,n,a,o,r){return E(),L("div",{class:R([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:ze({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(E(),L("div",{key:0,class:R(e.ns.be("dropdown","header"))},[oe(e.$slots,"header")],2)):re("v-if",!0),oe(e.$slots,"default"),e.$slots.footer?(E(),L("div",{key:1,class:R(e.ns.be("dropdown","footer"))},[oe(e.$slots,"footer")],2)):re("v-if",!0)],6)}var iV=Mn(sV,[["render",lV]]);const uV=(e,t)=>{const{t:n}=xt(),a=wn(),o=Gn(),r=ge("select"),s=ge("input"),l=Dt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),u=M(),c=M(),d=M(),f=M(),p=M(),g=M(),h=M(),v=M(),m=M(),b=M(),w=M(),y=M(!1),S=M(),k=M(!1),{form:x,formItem:O}=Fn(),{inputId:T}=Ia(e,{formItemContext:O}),{valueOnClear:I,isEmptyValue:_}=Au(e),{isComposing:N,handleCompositionStart:$,handleCompositionUpdate:B,handleCompositionEnd:K}=Pu({afterComposition:Re=>gt(Re)}),j=ln(),{wrapperRef:W,isFocused:A,handleBlur:P}=Er(p,{disabled:j,afterFocus(){e.automaticDropdown&&!y.value&&(y.value=!0,l.menuVisibleOnFocus=!0)},beforeBlur(Re){return d.value?.isFocusInsideContent(Re)||f.value?.isFocusInsideContent(Re)},afterBlur(){y.value=!1,l.menuVisibleOnFocus=!1,e.validateEvent&&O?.validate?.("blur").catch(ut)}}),V=C(()=>we(e.modelValue)?e.modelValue.length>0:!_(e.modelValue)),F=C(()=>x?.statusIcon??!1),H=C(()=>e.clearable&&!j.value&&V.value&&(A.value||l.inputHovering)),U=C(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),J=C(()=>r.is("reverse",!!(U.value&&y.value))),ee=C(()=>O?.validateState||""),ae=C(()=>ee.value&&mf[ee.value]),ce=C(()=>e.remote?e.debounce:0),Z=C(()=>e.remote&&!l.inputValue&&l.options.size===0),de=C(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&l.inputValue&&l.options.size>0&&ue.value===0?e.noMatchText||n("el.select.noMatch"):l.options.size===0?e.noDataText||n("el.select.noData"):null),ue=C(()=>Y.value.filter(Re=>Re.visible).length),Y=C(()=>{const Re=Array.from(l.options.values()),mt=[];return l.optionValues.forEach(Ft=>{const tn=Re.findIndex(_n=>_n.value===Ft);tn>-1&&mt.push(Re[tn])}),mt.length>=Re.length?mt:Re}),Q=C(()=>Array.from(l.cachedOptions.values())),D=C(()=>{const Re=Y.value.filter(mt=>!mt.created).some(mt=>mt.currentLabel===l.inputValue);return e.filterable&&e.allowCreate&&l.inputValue!==""&&!Re}),q=()=>{e.filterable&&Fe(e.filterMethod)||e.filterable&&e.remote&&Fe(e.remoteMethod)||Y.value.forEach(Re=>{Re.updateOption?.(l.inputValue)})},te=In(),fe=C(()=>["small"].includes(te.value)?"small":"default"),he=C({get(){return y.value&&(e.loading||!Z.value||e.remote&&!!a.empty)&&(!k.value||!ha(l.previousQuery)||l.options.size>0)},set(Re){y.value=Re}}),ve=C(()=>{if(e.multiple&&!Rt(e.modelValue))return Dn(e.modelValue).length===0&&!l.inputValue;const Re=we(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Rt(Re)?!l.inputValue:!0}),Ie=C(()=>{const Re=e.placeholder??n("el.select.placeholder");return e.multiple||!V.value?Re:l.selectedLabel}),Le=td?null:"mouseenter";pe(()=>e.modelValue,(Re,mt)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(l.inputValue="",_e("")),Te(),!dn(Re,mt)&&e.validateEvent&&O?.validate("change").catch(ut)},{flush:"post",deep:!0}),pe(()=>y.value,Re=>{Re?_e(l.inputValue):(l.inputValue="",l.previousQuery=null,l.isBeforeHide=!0,l.menuVisibleOnFocus=!1)}),pe(()=>l.options.entries(),()=>{Pt&&(Te(),e.defaultFirstOption&&(e.filterable||e.remote)&&ue.value&&ye())},{flush:"post"}),pe([()=>l.hoveringIndex,Y],([Re])=>{Be(Re)&&Re>-1?S.value=Y.value[Re]||{}:S.value={},Y.value.forEach(mt=>{mt.hover=S.value===mt})}),la(()=>{l.isBeforeHide||q()});const _e=Re=>{l.previousQuery===Re||N.value||(l.previousQuery=Re,e.filterable&&Fe(e.filterMethod)?e.filterMethod(Re):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(Re),e.defaultFirstOption&&(e.filterable||e.remote)&&ue.value?Ne(ye):Ne(Pe))},ye=()=>{const Re=Y.value.filter(tn=>tn.visible&&!tn.disabled&&!tn.states.groupDisabled),mt=Re.find(tn=>tn.created),Ft=Re[0];l.hoveringIndex=xe(Y.value.map(tn=>tn.value),mt||Ft)},Te=()=>{if(e.multiple)l.selectedLabel="";else{const mt=be(we(e.modelValue)?e.modelValue[0]:e.modelValue);l.selectedLabel=mt.currentLabel,l.selected=[mt];return}const Re=[];Rt(e.modelValue)||Dn(e.modelValue).forEach(mt=>{Re.push(be(mt))}),l.selected=Re},be=Re=>{let mt;const Ft=Fi(Re);for(let _n=l.cachedOptions.size-1;_n>=0;_n--){const Sa=Q.value[_n];if(Ft?yn(Sa.value,e.valueKey)===yn(Re,e.valueKey):Sa.value===Re){mt={index:Y.value.filter(_r=>!_r.created).indexOf(Sa),value:Re,currentLabel:Sa.currentLabel,get isDisabled(){return Sa.isDisabled}};break}}if(mt)return mt;const tn=l.selected.find(_n=>Ft?yn(_n.value,e.valueKey)===yn(Re,e.valueKey):_n.value===Re);return{index:-1,value:Re,currentLabel:Ft?Re.label:tn?tn.currentLabel:Re??""}},Pe=()=>{const Re=l.selected.length;if(Re>0){const mt=l.selected[Re-1];l.hoveringIndex=Y.value.findIndex(Ft=>Oe(mt)===Oe(Ft))}else l.hoveringIndex=-1},He=()=>{l.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},Je=()=>{l.collapseItemWidth=b.value.getBoundingClientRect().width},Qe=()=>{d.value?.updatePopper?.()},lt=()=>{f.value?.updatePopper?.()},Ze=()=>{l.inputValue.length>0&&!y.value&&(y.value=!0),_e(l.inputValue)},gt=Re=>{if(l.inputValue=Re.target.value,e.remote)k.value=!0,At();else return Ze()},At=xu(()=>{Ze(),k.value=!1},ce),zt=Re=>{dn(e.modelValue,Re)||t(yt,Re)},nt=Re=>ES(Re,mt=>{const Ft=l.cachedOptions.get(mt);return!Ft?.disabled&&!Ft?.states.groupDisabled}),ft=Re=>{const mt=qt(Re);if(e.multiple&&mt!==Se.delete&&Re.target.value.length<=0){const Ft=Dn(e.modelValue).slice(),tn=nt(Ft);if(tn<0)return;const _n=Ft[tn];Ft.splice(tn,1),t(at,Ft),zt(Ft),t("remove-tag",_n)}},me=(Re,mt)=>{const Ft=l.selected.indexOf(mt);if(Ft>-1&&!j.value){const tn=Dn(e.modelValue).slice();tn.splice(Ft,1),t(at,tn),zt(tn),t("remove-tag",mt.value)}Re.stopPropagation(),Yt()},je=Re=>{Re.stopPropagation();const mt=e.multiple?[]:I.value;if(e.multiple)for(const Ft of l.selected)Ft.isDisabled&&mt.push(Ft.value);t(at,mt),zt(mt),l.hoveringIndex=-1,y.value=!1,t("clear"),Yt()},ie=Re=>{if(e.multiple){const mt=Dn(e.modelValue??[]).slice(),Ft=xe(mt,Re);Ft>-1?mt.splice(Ft,1):(e.multipleLimit<=0||mt.length{Ue(Re)})},xe=(Re,mt)=>Rt(mt)?-1:ot(mt.value)?Re.findIndex(Ft=>dn(yn(Ft,e.valueKey),Oe(mt))):Re.indexOf(mt.value),Ue=Re=>{const mt=we(Re)?Re[Re.length-1]:Re;let Ft=null;if(!En(mt?.value)){const tn=Y.value.filter(_n=>_n.value===mt.value);tn.length>0&&(Ft=tn[0].$el)}if(d.value&&Ft){const tn=d.value?.popperRef?.contentRef?.querySelector?.(`.${r.be("dropdown","wrap")}`);tn&&pm(tn,Ft)}w.value?.handleScroll()},et=Re=>{l.options.set(Re.value,Re),l.cachedOptions.set(Re.value,Re)},bt=(Re,mt)=>{l.options.get(Re)===mt&&l.options.delete(Re)},vt=C(()=>d.value?.popperRef?.contentRef),Et=()=>{l.isBeforeHide=!1,Ne(()=>{w.value?.update(),Ue(l.selected)})},Yt=()=>{p.value?.focus()},an=()=>{if(y.value){y.value=!1,Ne(()=>p.value?.blur());return}p.value?.blur()},Lt=Re=>{je(Re)},en=Re=>{if(y.value=!1,A.value){const mt=new FocusEvent("blur",Re);Ne(()=>P(mt))}},Ye=()=>{l.inputValue.length>0?l.inputValue="":y.value=!1},Ge=Re=>{j.value||e.filterable&&y.value&&Re&&!h.value?.contains(Re.target)||(td&&(l.inputHovering=!0),l.menuVisibleOnFocus?l.menuVisibleOnFocus=!1:y.value=!y.value)},tt=()=>{if(!y.value)Ge();else{const Re=Y.value[l.hoveringIndex];Re&&!Re.isDisabled&&ie(Re)}},Oe=Re=>ot(Re.value)?yn(Re.value,e.valueKey):Re.value,Ke=C(()=>Y.value.filter(Re=>Re.visible).every(Re=>Re.isDisabled)),We=C(()=>e.multiple?e.collapseTags?l.selected.slice(0,e.maxCollapseTags):l.selected:[]),Xt=C(()=>e.multiple?e.collapseTags?l.selected.slice(e.maxCollapseTags):[]:[]),un=Re=>{if(!y.value){y.value=!0;return}if(!(l.options.size===0||ue.value===0||N.value)&&!Ke.value){Re==="next"?(l.hoveringIndex++,l.hoveringIndex===l.options.size&&(l.hoveringIndex=0)):Re==="prev"&&(l.hoveringIndex--,l.hoveringIndex<0&&(l.hoveringIndex=l.options.size-1));const mt=Y.value[l.hoveringIndex];(mt.isDisabled||!mt.visible)&&un(Re),Ne(()=>Ue(S.value))}},On=(Re,mt,Ft,tn)=>{for(let _n=mt;_n>=0&&_n{const Ft=l.options.size;if(Ft===0)return;const tn=Pa(Re,0,Ft-1),_n=Y.value,Sa=mt==="up"?-1:1,_r=On(_n,tn,Sa,Ft)??On(_n,tn-Sa,-Sa,Ft);_r!=null&&(l.hoveringIndex=_r,Ne(()=>Ue(S.value)))},wa=Re=>{const mt=qt(Re);let Ft=!0;switch(mt){case Se.up:un("prev");break;case Se.down:un("next");break;case Se.enter:case Se.numpadEnter:N.value||tt();break;case Se.esc:Ye();break;case Se.backspace:Ft=!1,ft(Re);return;case Se.home:if(!y.value)return;Xn(0,"down");break;case Se.end:if(!y.value)return;Xn(l.options.size-1,"up");break;case Se.pageUp:if(!y.value)return;Xn(l.hoveringIndex-10,"up");break;case Se.pageDown:if(!y.value)return;Xn(l.hoveringIndex+10,"down");break;default:Ft=!1;break}Ft&&(Re.preventDefault(),Re.stopPropagation())},to=()=>{if(!c.value)return 0;const Re=window.getComputedStyle(c.value);return Number.parseFloat(Re.gap||"6px")},Lf=C(()=>{const Re=to(),mt=e.filterable?Re+11:0;return{maxWidth:`${b.value&&e.maxCollapseTags===1?l.selectionWidth-l.collapseItemWidth-Re-mt:l.selectionWidth-mt}px`}}),Df=C(()=>({maxWidth:`${l.selectionWidth}px`})),Bf=Re=>{t("popup-scroll",Re)},Vf=Re=>{t("end-reached",Re)};nn(c,He),nn(W,Qe),nn(m,lt),nn(b,Je);let Ks;return pe(()=>he.value,Re=>{Re?Ks=nn(v,Qe).stop:(Ks?.(),Ks=void 0),t("visible-change",Re)}),ht(()=>{Te()}),{inputId:T,contentId:o,nsSelect:r,nsInput:s,states:l,isFocused:A,expanded:y,optionsArray:Y,hoverOption:S,selectSize:te,filteredOptionsCount:ue,updateTooltip:Qe,updateTagTooltip:lt,debouncedOnInputChange:At,onInput:gt,deletePrevTag:ft,deleteTag:me,deleteSelected:je,handleOptionSelect:ie,scrollToOption:Ue,hasModelValue:V,shouldShowPlaceholder:ve,currentPlaceholder:Ie,mouseEnterEventName:Le,needStatusIcon:F,showClearBtn:H,iconComponent:U,iconReverse:J,validateState:ee,validateIcon:ae,showNewOption:D,updateOptions:q,collapseTagSize:fe,setSelected:Te,selectDisabled:j,emptyText:de,handleCompositionStart:$,handleCompositionUpdate:B,handleCompositionEnd:K,handleKeydown:wa,onOptionCreate:et,onOptionDestroy:bt,handleMenuEnter:Et,focus:Yt,blur:an,handleClearClick:Lt,handleClickOutside:en,handleEsc:Ye,toggleMenu:Ge,selectOption:tt,getValueKey:Oe,navigateOptions:un,dropdownMenuVisible:he,showTagList:We,collapseTagList:Xt,popupScroll:Bf,getOption:be,endReached:Vf,tagStyle:Lf,collapseTagStyle:Df,popperRef:vt,inputRef:p,tooltipRef:d,tagTooltipRef:f,prefixRef:g,suffixRef:h,selectRef:u,wrapperRef:W,selectionRef:c,scrollbarRef:w,menuRef:v,tagMenuRef:m,collapseItemRef:b}};var cV=se({name:"ElOptions",setup(e,{slots:t}){const n=$e(Du);let a=[];return()=>{const o=t.default?.(),r=[];function s(l){we(l)&&l.forEach(u=>{const c=(u?.type||{})?.name;c==="ElOptionGroup"?s(!Ae(u.children)&&!we(u.children)&&Fe(u.children?.default)?u.children?.default():u.children):c==="ElOption"?r.push(u.props?.value):we(u.children)&&s(u.children)})}return o.length&&s(o[0]?.children),dn(r,a)||(a=r,n&&(n.states.optionValues=r)),o}}});const ky="ElSelect",ou=new WeakMap,dV=e=>(...t)=>{const n=t[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&t[2]?.includes("ElTreeSelect"))return;const a=ou.get(e)?.originalWarnHandler;if(a){a(...t);return}console.warn(...t)},fV=e=>{let t=ou.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:dV(e),count:0},ou.set(e,t)),t};var pV=se({name:ky,componentName:ky,components:{ElSelectMenu:iV,ElOption:Km,ElOptions:cV,ElOptionGroup:Wm,ElTag:cr,ElScrollbar:mo,ElTooltip:Wn,ElIcon:De},directives:{ClickOutside:Qr},props:Ek,emits:ZB,setup(e,{emit:t,slots:n}){const a=dt(),o=fV(a.appContext);o.count+=1,a.appContext.config.warnHandler=o.handler;const r=C(()=>{const{modelValue:w,multiple:y}=e,S=y?[]:void 0;return we(w)?y?w:S:y?S:w}),s=Dt({...Pn(e),modelValue:r}),l=uV(s,t),{calculatorRef:u,inputStyle:c}=um(),{getLabel:d,getValue:f,getOptions:p,getDisabled:g}=Bu(e),h=w=>({label:d(w),value:f(w),disabled:g(w)}),v=w=>w.reduce((y,S)=>(y.push(S),S.children&&S.children.length>0&&y.push(...v(S.children)),y),[]),m=w=>{La(w||[]).forEach(y=>{if(ot(y)&&(y.type.name==="ElOption"||y.type.name==="ElTree")){const S=y.type.name;if(S==="ElTree")v(y.props?.data||[]).forEach(k=>{k.currentLabel=k.label??(ot(k.value)?"":k.value),l.onOptionCreate(k)});else if(S==="ElOption"){const k={...y.props};k.currentLabel=k.label??(ot(k.value)?"":k.value),l.onOptionCreate(k)}}})};pe(()=>[e.persistent||l.expanded.value||!n.default?void 0:n.default?.(),r.value],()=>{e.persistent||l.expanded.value||n.default&&(l.states.options.clear(),m(n.default?.()))},{immediate:!0}),St(Du,Dt({props:s,states:l.states,selectRef:l.selectRef,optionsArray:l.optionsArray,setSelected:l.setSelected,handleOptionSelect:l.handleOptionSelect,onOptionCreate:l.onOptionCreate,onOptionDestroy:l.onOptionDestroy}));const b=C(()=>e.multiple?l.states.selected.map(w=>w.currentLabel):l.states.selectedLabel);return Vt(()=>{const w=ou.get(a.appContext);w&&(w.count-=1,w.count<=0&&(a.appContext.config.warnHandler=w.originalWarnHandler,ou.delete(a.appContext)))}),{...l,modelValue:r,selectedLabel:b,calculatorRef:u,inputStyle:c,getLabel:d,getValue:f,getOptions:p,getDisabled:g,getOptionProps:h}}});const hV=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],vV=["textContent"],mV={key:1};function gV(e,t,n,a,o,r){const s=Mt("el-tag"),l=Mt("el-tooltip"),u=Mt("el-icon"),c=Mt("el-option"),d=Mt("el-option-group"),f=Mt("el-options"),p=Mt("el-scrollbar"),g=Mt("el-select-menu"),h=Vv("click-outside");return ct((E(),L("div",pt({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[wi(e.mouseEnterEventName)]:t[11]||(t[11]=v=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=v=>e.states.inputHovering=!1)}),[X(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=v=>e.states.isBeforeHide=!1)},{default:ne(()=>[z("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=Xe((...v)=>e.toggleMenu&&e.toggleMenu(...v),["prevent"]))},[e.$slots.prefix?(E(),L("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),z("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(E(!0),L(Ve,null,kt(e.showTagList,v=>(E(),L("div",{key:e.getValueKey(v),class:R(e.nsSelect.e("selected-item"))},[X(s,{closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ze(e.tagStyle),onClose:m=>e.deleteTag(m,v)},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:v.index,label:v.currentLabel,value:v.value},()=>[wt(Ce(v.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(E(),le(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":e.tagTooltip?.fallbackPlacements??["bottom","top","right","left"],effect:e.tagTooltip?.effect??e.effect,placement:e.tagTooltip?.placement??"bottom","popper-class":e.tagTooltip?.popperClass??e.popperClass,"popper-style":e.tagTooltip?.popperStyle??e.popperStyle,teleported:e.tagTooltip?.teleported??e.teleported,"append-to":e.tagTooltip?.appendTo??e.appendTo,"popper-options":e.tagTooltip?.popperOptions??e.popperOptions,transition:e.tagTooltip?.transition,"show-after":e.tagTooltip?.showAfter,"hide-after":e.tagTooltip?.hideAfter,"auto-close":e.tagTooltip?.autoClose,offset:e.tagTooltip?.offset},{default:ne(()=>[z("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[X(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ze(e.collapseTagStyle)},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))}," + "+Ce(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ne(()=>[z("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(E(!0),L(Ve,null,kt(e.collapseTagList,v=>(E(),L("div",{key:e.getValueKey(v),class:R(e.nsSelect.e("selected-item"))},[X(s,{class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:m=>e.deleteTag(m,v)},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:v.index,label:v.currentLabel,value:v.value},()=>[wt(Ce(v.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]):re("v-if",!0),z("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[z("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:ze(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":e.hoverOption?.id||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...v)=>e.handleKeydown&&e.handleKeydown(...v)),onCompositionstart:t[1]||(t[1]=(...v)=>e.handleCompositionStart&&e.handleCompositionStart(...v)),onCompositionupdate:t[2]||(t[2]=(...v)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...v)),onCompositionend:t[3]||(t[3]=(...v)=>e.handleCompositionEnd&&e.handleCompositionEnd(...v)),onInput:t[4]||(t[4]=(...v)=>e.onInput&&e.onInput(...v)),onChange:t[5]||(t[5]=Xe(()=>{},["stop"])),onClick:t[6]||(t[6]=Xe((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},null,46,hV),e.filterable?(E(),L("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:Ce(e.states.inputValue)},null,10,vV)):re("v-if",!0)],2),e.shouldShowPlaceholder?(E(),L("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[z("span",null,Ce(e.currentPlaceholder),1)]):(E(),L("span",mV,Ce(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),z("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(E(),le(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ne(()=>[(E(),le(it(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.showClearBtn&&e.clearIcon?(E(),le(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(E(),le(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ne(()=>[(E(),le(it(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]),content:ne(()=>[X(g,{ref:"menuRef"},{default:ne(()=>[e.$slots.header?(E(),L("div",{key:0,class:R(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=Xe(()=>{},["stop"]))},[oe(e.$slots,"header")],2)):re("v-if",!0),ct(X(p,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:R([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll,onEndReached:e.endReached},{default:ne(()=>[e.showNewOption?(E(),le(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):re("v-if",!0),X(f,null,{default:ne(()=>[oe(e.$slots,"default",{},()=>[(E(!0),L(Ve,null,kt(e.options,(v,m)=>(E(),L(Ve,{key:m},[e.getOptions(v)?.length?(E(),le(d,{key:0,label:e.getLabel(v),disabled:e.getDisabled(v)},{default:ne(()=>[(E(!0),L(Ve,null,kt(e.getOptions(v),b=>(E(),le(c,pt({key:e.getValue(b)},{ref_for:!0},e.getOptionProps(b)),null,16))),128))]),_:2},1032,["label","disabled"])):(E(),le(c,pt({key:1,ref_for:!0},e.getOptionProps(v)),null,16))],64))),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll","onEndReached"]),[[$t,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(E(),L("div",{key:1,class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(E(),L("div",{key:2,class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[z("span",null,Ce(e.emptyText),1)])],2)):re("v-if",!0),e.$slots.footer?(E(),L("div",{key:3,class:R(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=Xe(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)):re("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[h,e.handleClickOutside,e.popperRef]])}var bV=Mn(pV,[["render",gV]]);const es=st(bV,{Option:Km,OptionGroup:Wm}),cd=sn(Km),yV=sn(Wm),wV=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return jr(t).map((a,o)=>n-(t-o-1))},SV=e=>jr(e.daysInMonth()).map((t,n)=>n+1),CV=e=>jr(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),kV=Ee({selectedDay:{type:G(Object)},range:{type:G(Array)},date:{type:G(Object),required:!0},hideHeader:{type:Boolean}}),EV={pick:e=>ot(e)};var xk={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a,o){var r=a.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,p,g,h,v){var m=f.name?f:f.$locale(),b=s(m[p]),w=s(m[g]),y=b||w.map(function(k){return k.slice(0,h)});if(!v)return y;var S=m.weekStart;return y.map(function(k,x){return y[(x+(S||0))%7]})},u=function(){return o.Ls[o.locale()]},c=function(f,p){return f.formats[p]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,v,m){return v||m.slice(1)})}(f.formats[p.toUpperCase()])},d=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):l(f,"months")},monthsShort:function(p){return p?p.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):l(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return c(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return l(u(),"months")},o.monthsShort=function(){return l(u(),"monthsShort","months",3)},o.weekdays=function(f){return l(u(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return l(u(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return l(u(),"weekdaysMin","weekdays",2,f)}}})})(xk);var xV=xk.exports;const Tk=Or(xV),TV=(e,t)=>{rt.extend(Tk);const n=rt.localeData().firstDayOfWeek(),{t:a,lang:o}=xt(),r=rt().locale(o.value),s=C(()=>!!e.range&&!!e.range.length),l=C(()=>{let p=[];if(s.value){const[g,h]=e.range,v=jr(h.date()-g.date()+1).map(w=>({text:g.date()+w,type:"current"}));let m=v.length%7;m=m===0?0:7-m;const b=jr(m).map((w,y)=>({text:y+1,type:"next"}));p=v.concat(b)}else{const g=e.date.startOf("month").day(),h=wV(e.date,(g-n+7)%7).map(b=>({text:b,type:"prev"})),v=SV(e.date).map(b=>({text:b,type:"current"}));p=[...h,...v];const m=jr(7-(p.length%7||7)).map((b,w)=>({text:w+1,type:"next"}));p=p.concat(m)}return CV(p)}),u=C(()=>{const p=n;return p===0?Zf.map(g=>a(`el.datepicker.weeks.${g}`)):Zf.slice(p).concat(Zf.slice(0,p)).map(g=>a(`el.datepicker.weeks.${g}`))}),c=(p,g)=>{switch(g){case"prev":return e.date.startOf("month").subtract(1,"month").date(p);case"next":return e.date.startOf("month").add(1,"month").date(p);case"current":return e.date.date(p)}};return{now:r,isInRange:s,rows:l,weekDays:u,getFormattedDate:c,handlePickDay:({text:p,type:g})=>{t("pick",c(p,g))},getSlotData:({text:p,type:g})=>{const h=c(p,g);return{isSelected:h.isSame(e.selectedDay),type:`${g}-month`,day:h.format(tl),date:h.toDate()}}}},OV={key:0},_V=["onClick"];var RV=se({name:"DateTable",__name:"date-table",props:kV,emits:EV,setup(e,{expose:t,emit:n}){const a=e,{isInRange:o,now:r,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:c,getSlotData:d}=TV(a,n),f=ge("calendar-table"),p=ge("calendar-day"),g=({text:h,type:v})=>{const m=[v];if(v==="current"){const b=u(h,v);b.isSame(a.selectedDay,"day")&&m.push(p.is("selected")),b.isSame(r,"day")&&m.push(p.is("today"))}return m};return t({getFormattedDate:u}),(h,v)=>(E(),L("table",{class:R([i(f).b(),i(f).is("range",i(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?re("v-if",!0):(E(),L("thead",OV,[z("tr",null,[(E(!0),L(Ve,null,kt(i(l),m=>(E(),L("th",{key:m,scope:"col"},Ce(m),1))),128))])])),z("tbody",null,[(E(!0),L(Ve,null,kt(i(s),(m,b)=>(E(),L("tr",{key:b,class:R({[i(f).e("row")]:!0,[i(f).em("row","hide-border")]:b===0&&e.hideHeader})},[(E(!0),L(Ve,null,kt(m,(w,y)=>(E(),L("td",{key:y,class:R(g(w)),onClick:S=>i(c)(w)},[z("div",{class:R(i(p).b())},[oe(h.$slots,"date-cell",{data:i(d)(w)},()=>[z("span",null,Ce(w.text),1)])],2)],10,_V))),128))],2))),128))])],2))}}),Ey=RV;const IV=(e,t)=>{const n=e.endOf("month"),a=t.startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),t]]},$V=(e,t)=>{const n=e.endOf("month"),a=e.add(1,"month").startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a,r=o.endOf("month"),s=t.startOf("month"),l=r.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[o.startOf("week"),r],[l.startOf("week"),t]]},NV=(e,t,n)=>{const{lang:a}=xt(),o=M(),r=rt().locale(a.value),s=C({get(){return e.modelValue?u.value:o.value},set(b){if(!b)return;o.value=b;const w=b.toDate();t(Tn,w),t(at,w)}}),l=C(()=>{if(!e.range||!we(e.range)||e.range.length!==2||e.range.some(y=>!Ur(y)))return[];const[b,w]=e.range.map(y=>rt(y).locale(a.value));return b.isAfter(w)?(jt(n,"end time should be greater than start time"),[]):b.isSame(w,"month")?g(b,w):b.add(1,"month").month()!==w.month()?(jt(n,"start time and end time interval must not exceed two months"),[]):g(b,w)}),u=C(()=>e.modelValue?rt(e.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:r)),c=C(()=>u.value.subtract(1,"month").date(1)),d=C(()=>u.value.add(1,"month").date(1)),f=C(()=>u.value.subtract(1,"year").date(1)),p=C(()=>u.value.add(1,"year").date(1)),g=(b,w)=>{const y=b.startOf("week"),S=w.endOf("week"),k=y.get("month"),x=S.get("month");return k===x?[[y,S]]:(k+1)%12===x?IV(y,S):k+2===x||(k+1)%11===x?$V(y,S):(jt(n,"start time and end time interval must not exceed two months"),[])},h=b=>{s.value=b},v=b=>{const w={"prev-month":c.value,"next-month":d.value,"prev-year":f.value,"next-year":p.value,today:r}[b];w.isSame(u.value,"day")||h(w)};return{calculateValidatedDateRange:g,date:u,realSelectedDay:s,pickDay:h,selectDate:v,validatedRange:l,handleDateChange:b=>{b==="today"?v("today"):h(b)}}},MV=Ee({date:{type:G(Object),required:!0},formatter:{type:G(Function)}}),PV={"date-change":e=>ot(e)||Ae(e)};var AV=se({name:"SelectController",__name:"select-controller",props:MV,emits:PV,setup(e,{emit:t}){const n=e,a=t,o=ge("calendar-select"),{t:r,lang:s}=xt(),l=Array.from({length:12},(h,v)=>{const m=v+1;return{value:m,label:Fe(n.formatter)?n.formatter(m,"month"):m}}),u=C(()=>n.date.year()),c=C(()=>n.date.month()+1),d=C(()=>{const h=[];for(let v=-10;v<10;v++){const m=u.value+v;if(m>0){const b=Fe(n.formatter)?n.formatter(m,"year"):m;h.push({value:m,label:b})}}return h}),f=h=>{a("date-change",rt(new Date(h,c.value-1,1)).locale(s.value))},p=h=>{a("date-change",rt(new Date(u.value,h-1,1)).locale(s.value))},g=()=>{a("date-change","today")};return(h,v)=>(E(),L(Ve,null,[X(i(es),{"model-value":u.value,size:"small",class:R(i(o).e("year")),"validate-event":!1,options:d.value,onChange:f},null,8,["model-value","class","options"]),X(i(es),{"model-value":c.value,size:"small",class:R(i(o).e("month")),"validate-event":!1,options:i(l),onChange:p},null,8,["model-value","class","options"]),X(i(Bn),{size:"small",onClick:g},{default:ne(()=>[wt(Ce(i(r)("el.datepicker.today")),1)]),_:1})],64))}}),LV=AV;const xy="ElCalendar";var DV=se({name:xy,__name:"calendar",props:mB,emits:gB,setup(e,{expose:t,emit:n}){const a=ge("calendar"),{calculateValidatedDateRange:o,date:r,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c,handleDateChange:d}=NV(e,n,xy),{t:f}=xt(),p=C(()=>{const g=`el.datepicker.month${r.value.format("M")}`;return`${r.value.year()} ${f("el.datepicker.year")} ${f(g)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:o}),(g,h)=>(E(),L("div",{class:R(i(a).b())},[z("div",{class:R(i(a).e("header"))},[oe(g.$slots,"header",{date:p.value},()=>[z("div",{class:R(i(a).e("title"))},Ce(p.value),3),i(c).length===0&&e.controllerType==="button"?(E(),L("div",{key:0,class:R(i(a).e("button-group"))},[X(i(tk),null,{default:ne(()=>[X(i(Bn),{size:"small",onClick:h[0]||(h[0]=v=>i(u)("prev-month"))},{default:ne(()=>[wt(Ce(i(f)("el.datepicker.prevMonth")),1)]),_:1}),X(i(Bn),{size:"small",onClick:h[1]||(h[1]=v=>i(u)("today"))},{default:ne(()=>[wt(Ce(i(f)("el.datepicker.today")),1)]),_:1}),X(i(Bn),{size:"small",onClick:h[2]||(h[2]=v=>i(u)("next-month"))},{default:ne(()=>[wt(Ce(i(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):i(c).length===0&&e.controllerType==="select"?(E(),L("div",{key:1,class:R(i(a).e("select-controller"))},[X(LV,{date:i(r),formatter:e.formatter,onDateChange:i(d)},null,8,["date","formatter","onDateChange"])],2)):re("v-if",!0)])],2),i(c).length===0?(E(),L("div",{key:0,class:R(i(a).e("body"))},[X(Ey,{date:i(r),"selected-day":i(l),onPick:i(s)},ga({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ne(v=>[oe(g.$slots,"date-cell",sr(ir(v)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(E(),L("div",{key:1,class:R(i(a).e("body"))},[(E(!0),L(Ve,null,kt(i(c),(v,m)=>(E(),le(Ey,{key:m,date:v[0],"selected-day":i(l),range:v,"hide-header":m!==0,onPick:i(s)},ga({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ne(b=>[oe(g.$slots,"date-cell",pt({ref_for:!0},b))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}}),BV=DV;const VV=st(BV),FV=Ee({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:G([String,Object,Array,Boolean]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var zV=se({name:"ElCard",__name:"card",props:FV,setup(e){const t=xr("card"),n=ge("card");return(a,o)=>(E(),L("div",{class:R([i(n).b(),i(n).is(`${e.shadow||i(t)?.shadow||"always"}-shadow`)])},[a.$slots.header||e.header?(E(),L("div",{key:0,class:R([i(n).e("header"),e.headerClass])},[oe(a.$slots,"header",{},()=>[wt(Ce(e.header),1)])],2)):re("v-if",!0),z("div",{class:R([i(n).e("body"),e.bodyClass]),style:ze(e.bodyStyle)},[oe(a.$slots,"default")],6),a.$slots.footer||e.footer?(E(),L("div",{key:1,class:R([i(n).e("footer"),e.footerClass])},[oe(a.$slots,"footer",{},()=>[wt(Ce(e.footer),1)])],2)):re("v-if",!0)],2))}}),HV=zV;const KV=st(HV),WV=Ee({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}),jV={change:(e,t)=>[e,t].every(Be)},Ok=Symbol("carouselContextKey"),dd="ElCarouselItem",UV=Ee({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Ty=300,qV=(e,t,n)=>{const{children:a,addChild:o,removeChild:r,ChildrenSorter:s}=pf(dt(),dd),l=wn(),u=M(-1),c=M(null),d=M(!1),f=M(),p=M(0),g=M(!0),h=C(()=>e.arrow!=="never"&&!i(b)),v=C(()=>a.value.some(ae=>ae.props.label.toString().length>0)),m=C(()=>e.type==="card"),b=C(()=>e.direction==="vertical"),w=C(()=>e.height!=="auto"?{height:e.height}:{height:`${p.value}px`,overflow:"hidden"}),y=Fr(ae=>{I(ae)},Ty,{trailing:!0}),S=Fr(ae=>{A(ae)},Ty),k=ae=>g.value?u.value<=1?ae<=1:ae>1:!0;function x(){c.value&&(clearInterval(c.value),c.value=null)}function O(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>T(),e.interval))}const T=()=>{u.valueue.props.name===ae);de.length>0&&(ae=a.value.indexOf(de[0]))}if(ae=Number(ae),Number.isNaN(ae)||ae!==Math.floor(ae)){jt(n,"index must be integer.");return}const ce=a.value.length,Z=u.value;ae<0?u.value=e.loop?ce-1:0:ae>=ce?u.value=e.loop?0:ce-1:u.value=ae,Z===u.value&&_(Z),F()}function _(ae){a.value.forEach((ce,Z)=>{ce.translateItem(Z,u.value,ae)})}function N(ae,ce){const Z=i(a),de=Z.length;if(de===0||!ae.states.inStage)return!1;const ue=ce+1,Y=ce-1,Q=de-1,D=Z[Q].states.active,q=Z[0].states.active,te=Z[ue]?.states?.active,fe=Z[Y]?.states?.active;return ce===Q&&q||te?"left":ce===0&&D||fe?"right":!1}function $(){d.value=!0,e.pauseOnHover&&x()}function B(){d.value=!1,O()}function K(ae){i(b)||a.value.forEach((ce,Z)=>{ae===N(ce,Z)&&(ce.states.hover=!0)})}function j(){i(b)||a.value.forEach(ae=>{ae.states.hover=!1})}function W(ae){u.value=ae}function A(ae){e.trigger==="hover"&&ae!==u.value&&(u.value=ae)}function P(){I(u.value-1)}function V(){I(u.value+1)}function F(){x(),(!e.pauseOnHover||!d.value)&&O()}function H(ae){e.height==="auto"&&(p.value=ae)}function U(){const ae=l.default?.();if(!ae)return null;const ce=La(ae).filter(Z=>Zt(Z)&&Z.type.name==="ElCarouselItem");return ce?.length===2&&e.loop&&!m.value?(g.value=!0,ce):(g.value=!1,null)}pe(()=>u.value,(ae,ce)=>{_(ce),g.value&&(ae=ae%2,ce=ce%2),ce>-1&&t(yt,ae,ce)});const J=C({get:()=>g.value?u.value%2:u.value,set:ae=>u.value=ae});pe(()=>e.autoplay,ae=>{ae?O():x()}),pe(()=>e.loop,()=>{I(u.value)}),pe(()=>e.interval,()=>{F()});const ee=Tt();return ht(()=>{pe(()=>a.value,()=>{a.value.length>0&&I(e.initialIndex)},{immediate:!0}),ee.value=nn(f.value,()=>{_()}),O()}),Vt(()=>{x(),f.value&&ee.value&&ee.value.stop()}),St(Ok,{root:f,isCardType:m,isVertical:b,items:a,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:r,setActiveItem:I,setContainerHeight:H}),{root:f,activeIndex:u,exposeActiveIndex:J,arrowDisplay:h,hasLabel:v,hover:d,isCardType:m,items:a,isVertical:b,containerStyle:w,isItemsTwoLength:g,handleButtonEnter:K,handleButtonLeave:j,handleIndicatorClick:W,handleMouseEnter:$,handleMouseLeave:B,setActiveItem:I,prev:P,next:V,PlaceholderItem:U,isTwoLengthShow:k,ItemsSorter:s,throttledArrowClick:y,throttledIndicatorHover:S}},YV=["aria-label"],GV=["aria-label"],XV=["onMouseenter","onClick"],JV=["aria-label"],ZV={key:0},QV={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},Oy="ElCarousel";var eF=se({name:Oy,__name:"carousel",props:WV,emits:jV,setup(e,{expose:t,emit:n}){const a=e,{root:o,activeIndex:r,exposeActiveIndex:s,arrowDisplay:l,hasLabel:u,hover:c,isCardType:d,items:f,isVertical:p,containerStyle:g,handleButtonEnter:h,handleButtonLeave:v,handleIndicatorClick:m,handleMouseEnter:b,handleMouseLeave:w,setActiveItem:y,prev:S,next:k,PlaceholderItem:x,isTwoLengthShow:O,ItemsSorter:T,throttledArrowClick:I,throttledIndicatorHover:_}=qV(a,n,Oy),N=ge("carousel"),{t:$}=xt(),B=C(()=>{const A=[N.b(),N.m(a.direction)];return i(d)&&A.push(N.m("card")),A.push(N.is("vertical-outside",i(p)&&a.indicatorPosition==="outside")),A}),K=C(()=>{const A=[N.e("indicators"),N.em("indicators",a.direction)];return i(u)&&A.push(N.em("indicators","labels")),a.indicatorPosition==="outside"&&A.push(N.em("indicators","outside")),i(p)&&A.push(N.em("indicators","right")),A});function j(A){if(!a.motionBlur)return;const P=i(p)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;A.currentTarget.classList.add(P)}function W(A){if(!a.motionBlur)return;const P=i(p)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;A.currentTarget.classList.remove(P)}return t({activeIndex:s,setActiveItem:y,prev:S,next:k}),(A,P)=>(E(),L("div",{ref_key:"root",ref:o,class:R(B.value),onMouseenter:P[6]||(P[6]=Xe((...V)=>i(b)&&i(b)(...V),["stop"])),onMouseleave:P[7]||(P[7]=Xe((...V)=>i(w)&&i(w)(...V),["stop"]))},[i(l)?(E(),le(Yn,{key:0,name:"carousel-arrow-left",persisted:""},{default:ne(()=>[ct(z("button",{type:"button",class:R([i(N).e("arrow"),i(N).em("arrow","left")]),"aria-label":i($)("el.carousel.leftArrow"),onMouseenter:P[0]||(P[0]=V=>i(h)("left")),onMouseleave:P[1]||(P[1]=(...V)=>i(v)&&i(v)(...V)),onClick:P[2]||(P[2]=Xe(V=>i(I)(i(r)-1),["stop"]))},[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1})],42,YV),[[$t,(e.arrow==="always"||i(c))&&(e.loop||i(r)>0)]])]),_:1})):re("v-if",!0),i(l)?(E(),le(Yn,{key:1,name:"carousel-arrow-right",persisted:""},{default:ne(()=>[ct(z("button",{type:"button",class:R([i(N).e("arrow"),i(N).em("arrow","right")]),"aria-label":i($)("el.carousel.rightArrow"),onMouseenter:P[3]||(P[3]=V=>i(h)("right")),onMouseleave:P[4]||(P[4]=(...V)=>i(v)&&i(v)(...V)),onClick:P[5]||(P[5]=Xe(V=>i(I)(i(r)+1),["stop"]))},[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})],42,GV),[[$t,(e.arrow==="always"||i(c))&&(e.loop||i(r)[e.indicatorPosition!=="none"?(E(),L("ul",{key:0,class:R(K.value)},[(E(!0),L(Ve,null,kt(i(f),(V,F)=>ct((E(),L("li",{key:F,class:R([i(N).e("indicator"),i(N).em("indicator",e.direction),i(N).is("active",F===i(r))]),onMouseenter:H=>i(_)(F),onClick:Xe(H=>i(m)(F),["stop"])},[z("button",{class:R(i(N).e("button")),"aria-label":i($)("el.carousel.indicator",{index:F+1})},[i(u)?(E(),L("span",ZV,Ce(V.props.label),1)):re("v-if",!0)],10,JV)],42,XV)),[[$t,i(O)(F)]])),128))],2)):re("v-if",!0)]),_:1}),e.motionBlur?(E(),L("svg",QV,[...P[8]||(P[8]=[z("defs",null,[z("filter",{id:"elCarouselHorizontal"},[z("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),z("filter",{id:"elCarouselVertical"},[z("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):re("v-if",!0)],34))}}),tF=eF;const nF=e=>{const t=$e(Ok),n=dt();t||jt(dd,"usage: "),n||jt(dd,"compositional hook can only be invoked inside setups");const a=M(),o=M(!1),r=M(0),s=M(1),l=M(!1),u=M(!1),c=M(!1),d=M(!1),{isCardType:f,isVertical:p,cardScale:g}=t;function h(S,k,x){const O=x-1,T=k-1,I=k+1,_=x/2;return k===0&&S===O?-1:k===O&&S===0?x:S=_?x+1:S>I&&S-k>=_?-2:S}function v(S,k){const x=i(p)?t.root.value?.offsetHeight||0:t.root.value?.offsetWidth||0;return c.value?x*((2-g)*(S-k)+1)/4:S{const O=i(f),T=t.items.value.length??NaN,I=S===k;!O&&!Rt(x)&&(d.value=I||S===x),!I&&T>2&&t.loop&&(S=h(S,k,T));const _=i(p);l.value=I,O?(c.value=Math.round(Math.abs(S-k))<=1,r.value=v(S,k),s.value=i(l)?1:g):r.value=m(S,k,_),u.value=!0,I&&a.value&&t.setContainerHeight(a.value.offsetHeight)};function w(){if(t&&i(f)){const S=t.items.value.findIndex(({uid:k})=>k===n.uid);t.setActiveItem(S)}}const y={props:e,states:Dt({hover:o,translate:r,scale:s,active:l,ready:u,inStage:c,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:b};return t.addItem(y),Vt(()=>{t.removeItem(y)}),{carouselItemRef:a,active:l,animating:d,hover:o,inStage:c,isVertical:p,translate:r,isCardType:f,scale:s,ready:u,handleItemClick:w}};var aF=se({name:dd,__name:"carousel-item",props:UV,setup(e){const t=e,n=ge("carousel"),{carouselItemRef:a,active:o,animating:r,hover:s,inStage:l,isVertical:u,translate:c,isCardType:d,scale:f,ready:p,handleItemClick:g}=nF(t),h=C(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",l.value),n.is("hover",s.value),n.is("animating",r.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&u.value}]),v=C(()=>({transform:[`${`translate${i(u)?"Y":"X"}`}(${i(c)}px)`,`scale(${i(f)})`].join(" ")}));return(m,b)=>ct((E(),L("div",{ref_key:"carouselItemRef",ref:a,class:R(h.value),style:ze(v.value),onClick:b[0]||(b[0]=(...w)=>i(g)&&i(g)(...w))},[i(d)?ct((E(),L("div",{key:0,class:R(i(n).e("mask"))},null,2)),[[$t,!i(o)]]):re("v-if",!0),oe(m.$slots,"default")],6)),[[$t,i(p)]])}}),_k=aF;const oF=st(tF,{CarouselItem:_k}),rF=sn(_k),Rk=Ee({modelValue:{type:G([Number,String,Array,Object])},options:{type:G(Array),default:()=>[]},props:{type:G(Object),default:()=>({})},virtualScroll:Boolean,itemSize:{type:Number,default:34},height:{type:Number,default:204}}),sF={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:ut,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},lF=Ee({...Rk,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),_y=e=>!0,iF={[at]:_y,[yt]:_y,close:()=>!0,"expand-change":e=>e},uF=e=>C(()=>({...sF,...e.props})),fd="itemRendered",pd="scroll",bp="end-reached",hd="forward",cF="backward",qa="auto",ru="start",Mo="center",dF="horizontal",Ik="vertical",su="negative",jm="positive-ascending",Um="positive-descending",fF={[dF]:"left",[Ik]:"top"},Fh=Co({type:G([Number,Function]),required:!0}),zh=Co({type:Number}),Hh=Co({type:Number,default:2}),pF=Co({type:String,values:["ltr","rtl"],default:"ltr"}),Kh=Co({type:Number,default:0}),vd=Co({type:Number,required:!0}),$k=Co({type:String,values:["horizontal","vertical"],default:Ik}),Nk=Ee({className:{type:String,default:""},containerElement:{type:G([String,Object]),default:"div"},data:{type:G(Array),default:()=>fn([])},direction:pF,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:G(Object),default:()=>({})},style:{type:G([Object,String,Array,Boolean]),default:void 0},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},innerWidth:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),Mk=Ee({cache:Hh,estimatedItemSize:zh,layout:$k,initScrollOffset:Kh,total:vd,itemSize:Fh,...Nk}),Wh={type:Number,default:6},Pk={type:Number,default:0},Ak={type:Number,default:2},Es=Ee({columnCache:Hh,columnWidth:Fh,estimatedColumnWidth:zh,estimatedRowHeight:zh,initScrollLeft:Kh,initScrollTop:Kh,itemKey:{type:G(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:Hh,rowHeight:Fh,totalColumn:vd,totalRow:vd,hScrollbarSize:Wh,vScrollbarSize:Wh,scrollbarStartGap:Pk,scrollbarEndGap:Ak,role:String,...Nk}),Lk=Ee({alwaysOn:Boolean,class:String,layout:$k,total:vd,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Wh,startGap:Pk,endGap:Ak,visible:Boolean}),mi=(e,t)=>ee==="ltr"||e==="rtl"||e==="horizontal",Ry=e=>e==="rtl";let Gs=null;function md(e=!1){if(Gs===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const a=document.createElement("div"),o=a.style;return o.width="100px",o.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?Gs=Um:(t.scrollLeft=1,t.scrollLeft===0?Gs=su:Gs=jm),document.body.removeChild(t),Gs}return Gs}function hF({move:e,size:t,bar:n},a){const o={},r=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=r,a==="horizontal"?o.height="100%":o.width="100%",o}var Iy=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function vF(e,t){return!!(e===t||Iy(e)&&Iy(t))}function mF(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const e=dt().proxy.$props;return C(()=>{const t=(n,a,o)=>({});return e.perfMode?Zd(t):gF(t)})},Bk=({atEndEdge:e,atStartEdge:t,layout:n},a)=>{let o,r=0;const s=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:s,onWheel:u=>{fo(o);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value==="horizontal"?c:d;s(f)||(r+=f,!rf()&&f!==0&&u.preventDefault(),o=Ra(()=>{a(r),r=0}))}}},jh=se({name:"ElVirtualScrollBar",props:Lk,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=C(()=>e.startGap+e.endGap),a=ge("virtual-scrollbar"),o=ge("scrollbar"),r=M(),s=M();let l=null,u=null;const c=Dt({isDragging:!1,traveled:0}),d=C(()=>WC[e.layout]),f=C(()=>e.clientSize-i(n)),p=C(()=>({position:"absolute",width:`${e.layout==="horizontal"?f.value:e.scrollbarSize}px`,height:`${e.layout==="horizontal"?e.scrollbarSize:f.value}px`,[fF[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),g=C(()=>{const x=e.ratio;if(x>=100)return Number.POSITIVE_INFINITY;if(x>=50)return x*f.value/100;const O=f.value/3;return Math.floor(Math.min(Math.max(x*f.value/100,20),O))}),h=C(()=>{if(!Number.isFinite(g.value))return{display:"none"};const x=`${g.value}px`;return hF({bar:d.value,size:x,move:c.traveled},e.layout)}),v=C(()=>Math.ceil(e.clientSize-g.value-i(n))),m=()=>{window.addEventListener("mousemove",S),window.addEventListener("mouseup",y);const x=i(s);x&&(u=document.onselectstart,document.onselectstart=()=>!1,x.addEventListener("touchmove",S,{passive:!0}),x.addEventListener("touchend",y))},b=()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",y),document.onselectstart=u,u=null;const x=i(s);x&&(x.removeEventListener("touchmove",S),x.removeEventListener("touchend",y))},w=x=>{x.stopImmediatePropagation(),!(x.ctrlKey||[1,2].includes(x.button))&&(c.isDragging=!0,c[d.value.axis]=x.currentTarget[d.value.offset]-(x[d.value.client]-x.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),m())},y=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),b()},S=x=>{const{isDragging:O}=c;if(!O||!s.value||!r.value)return;const T=c[d.value.axis];if(!T)return;fo(l);const I=(r.value.getBoundingClientRect()[d.value.direction]-x[d.value.client])*-1-(s.value[d.value.offset]-T);l=Ra(()=>{c.traveled=Math.max(0,Math.min(I,v.value)),t("scroll",I,v.value)})},k=x=>{const O=Math.abs(x.target.getBoundingClientRect()[d.value.direction]-x[d.value.client])-s.value[d.value.offset]/2;c.traveled=Math.max(0,Math.min(O,v.value)),t("scroll",O,v.value)};return pe(()=>e.scrollFrom,x=>{c.isDragging||(c.traveled=Math.ceil(x*v.value))}),Vt(()=>{b()}),()=>qe("div",{role:"presentation",ref:r,class:[a.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:p.value,onMousedown:Xe(k,["stop","prevent"]),onTouchstartPrevent:w},qe("div",{ref:s,class:o.e("thumb"),style:h.value,onMousedown:w},[]))}}),Vk=({name:e,getOffset:t,getItemSize:n,getItemOffset:a,getEstimatedTotalSize:o,getStartIndexForOffset:r,getStopIndexForStartIndex:s,initCache:l,clearCache:u,validateProps:c})=>se({name:e??"ElVirtualList",props:Mk,emits:[fd,pd,bp],setup(d,{emit:f,expose:p}){c(d);const g=dt(),h=ge("vl"),v=M(l(d,g)),m=Dk(),b=M(),w=M(),y=M(),S=M({isScrolling:!1,scrollDir:hd,scrollOffset:Be(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1}),k=C(()=>{const{total:D,cache:q}=d,{isScrolling:te,scrollDir:fe,scrollOffset:he}=i(S);if(D===0)return[0,0,0,0];const ve=r(d,he,i(v)),Ie=s(d,ve,he,i(v)),Le=!te||fe==="backward"?Math.max(1,q):1,_e=!te||fe==="forward"?Math.max(1,q):1;return[Math.max(0,ve-Le),Math.max(0,Math.min(D-1,Ie+_e)),ve,Ie]}),x=C(()=>o(d,i(v))),O=C(()=>lu(d.layout)),T=C(()=>[{position:"relative",[`overflow-${O.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:Be(d.height)?`${d.height}px`:d.height,width:Be(d.width)?`${d.width}px`:d.width},d.style]),I=C(()=>{const D=i(x),q=i(O),te=d.innerWidth;return{height:q?"100%":`${D}px`,pointerEvents:i(S).isScrolling?"none":void 0,width:q?`${D}px`:te!==void 0?Be(te)?`${te}px`:te:"100%",margin:0,boxSizing:"border-box"}}),_=C(()=>O.value?d.width:d.height),N=C(()=>Math.max(0,x.value-_.value)),$=D=>af(D,0,N.value),B=1,K=D=>({start:!Vo(D,0,B),end:!Vo(N.value,D,B)}),j=C(()=>$(S.value.scrollOffset)),W=C(()=>K(j.value));let A=W.value;const{onWheel:P}=Bk({atStartEdge:C(()=>W.value.start),atEndEdge:C(()=>W.value.end),layout:C(()=>d.layout)},D=>{y.value.onMouseUp?.(),ce(Math.min(S.value.scrollOffset+D,N.value))});Bt(b,"wheel",P,{passive:!1});const V=()=>{const{total:D}=d;if(D>0){const[he,ve,Ie,Le]=i(k);f(fd,he,ve,Ie,Le)}const{scrollDir:q,scrollOffset:te,updateRequested:fe}=i(S);f(pd,q,te,fe)},F=(D,q)=>{const te=K(q),fe=d.direction==="rtl"?"left":"right",he=d.direction==="rtl"?"right":"left";D==="forward"&&te.end&&!A.end&&f(bp,O.value?fe:"bottom"),D==="backward"&&te.start&&!A.start&&f(bp,O.value?he:"top"),A=te},H=(D,{isScrolling:q,updateRequested:te})=>{const fe=i(S),he=Math.max(D,0);if(he===fe.scrollOffset)return;const ve=mi(fe.scrollOffset,he);S.value={...fe,isScrolling:q,scrollDir:ve,scrollOffset:he,updateRequested:te},F(ve,$(he)),Ne(ue)},U=D=>{const{clientHeight:q,scrollHeight:te,scrollTop:fe}=D.currentTarget;i(S).scrollOffset!==fe&&H(Math.min(fe,te-q),{isScrolling:!0,updateRequested:!1})},J=D=>{const{clientWidth:q,scrollLeft:te,scrollWidth:fe}=D.currentTarget;if(i(S).scrollOffset===te)return;const{direction:he}=d;let ve=te;if(he==="rtl")switch(md()){case su:ve=-te;break;case Um:ve=fe-q-te;break}H(Math.min(ve,fe-q),{isScrolling:!0,updateRequested:!1})},ee=D=>{i(O)?J(D):U(D),V()},ae=(D,q)=>{const te=N.value/q*D;ce(Math.min(N.value,te))},ce=D=>{H(D,{isScrolling:i(S).isScrolling,updateRequested:!0})},Z=(D,q=qa)=>{const{scrollOffset:te}=i(S);D=Math.max(0,Math.min(D,d.total-1)),ce(t(d,D,q,te,i(v)))},de=D=>{const{direction:q,itemSize:te,layout:fe}=d,he=m.value(u&&te,u&&fe,u&&q);let ve;if(Nt(he,String(D)))ve=he[D];else{const Ie=a(d,D,i(v)),Le=n(d,D,i(v)),_e=i(O),ye=q==="rtl",Te=_e?Ie:0;he[D]=ve={position:"absolute",left:ye?void 0:`${Te}px`,right:ye?`${Te}px`:void 0,top:_e?0:`${Ie}px`,height:_e?"100%":`${Le}px`,width:_e?`${Le}px`:"100%"}}return ve},ue=()=>{S.value.isScrolling=!1,Ne(()=>{m.value(-1,null,null)})},Y=()=>{const D=b.value;D&&(D.scrollTop=0)};ht(()=>{if(!Pt)return;const{initScrollOffset:D}=d,q=i(b);Be(D)&&q&&(i(O)?q.scrollLeft=D:q.scrollTop=D),V()}),yo(()=>{const{direction:D,layout:q}=d,{scrollOffset:te,updateRequested:fe}=i(S),he=i(b);if(fe&&he)if(q==="horizontal")if(D==="rtl")switch(md()){case su:he.scrollLeft=-te;break;case jm:he.scrollLeft=te;break;default:{const{clientWidth:ve,scrollWidth:Ie}=he;he.scrollLeft=Ie-ve-te;break}}else he.scrollLeft=te;else he.scrollTop=te}),gu(()=>{i(b).scrollTop=i(S).scrollOffset}),pe(N,()=>{A=W.value});const Q={ns:h,clientSize:_,estimatedTotalSize:x,windowStyle:T,windowRef:b,innerRef:w,innerStyle:I,itemsToRender:k,scrollbarRef:y,states:S,getItemStyle:de,onScroll:ee,onScrollbarScroll:ae,onWheel:P,scrollTo:ce,scrollToItem:Z,resetScrollTop:Y};return p({windowRef:b,innerRef:w,getItemStyleCache:m,scrollTo:ce,scrollToItem:Z,resetScrollTop:Y,states:S}),Q},render(d){const{$slots:f,className:p,clientSize:g,containerElement:h,data:v,getItemStyle:m,innerElement:b,itemsToRender:w,innerStyle:y,layout:S,scrollbarAlwaysOn:k,total:x,onScroll:O,onScrollbarScroll:T,states:I,useIsScrolling:_,windowStyle:N,ns:$}=d,[B,K]=w,j=it(h),W=it(b),A=[];if(x>0)for(let H=B;H<=K;H++)A.push(qe(Ve,{key:H},f.default?.({data:v,index:H,isScrolling:_?I.isScrolling:void 0,style:m(H)})));const P=[qe(W,pt(d.innerProps,{style:y,ref:"innerRef"}),Ae(W)?A:{default:()=>A})],V=qe(jh,{ref:"scrollbarRef",clientSize:g,layout:S,onScroll:T,ratio:g*100/this.estimatedTotalSize,scrollFrom:I.scrollOffset/(this.estimatedTotalSize-g),total:x,alwaysOn:k}),F=qe(j,{class:[$.e("window"),p],style:N,onScroll:O,ref:"windowRef",key:0},Ae(j)?[P]:{default:()=>[P]});return qe("div",{key:0,class:[$.e("wrapper"),k?"always-on":""]},[F,V])}}),yf=Vk({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:a,width:o},r,s,l)=>{const u=lu(a)?o:e;Ae(u)&&rn("[ElVirtualList]",` + You should set + width/height + to number when your layout is + horizontal/vertical + `);const c=Math.max(0,t*n-u),d=Math.min(c,r*n),f=Math.max(0,(r+1)*n-u);switch(s==="smart"&&(l>=f-u&&l<=d+u?s=qa:s=Mo),s){case ru:return d;case"end":return f;case Mo:{const p=Math.round(f+(d-f)/2);return pc+Math.floor(u/2)?c:p}case qa:default:return l>=f&&l<=d?l:lMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:o},r,s)=>{const l=r*n,u=lu(a)?o:e,c=Math.ceil((u+s-l)/n);return Math.max(0,Math.min(t-1,r+c-1))},initCache(){},clearCache:!0,validateProps(){}}),bF="ElDynamicSizeList",rl=(e,t,n)=>{const{itemSize:a}=e,{items:o,lastVisitedIndex:r}=n;if(t>r){let s=0;if(r>=0){const l=o[r];s=l.offset+l.size}for(let l=r+1;l<=t;l++){const u=a(l);o[l]={offset:s,size:u},s+=u}n.lastVisitedIndex=t}return o[t]},yF=(e,t,n)=>{const{items:a,lastVisitedIndex:o}=t;return(o>0?a[o].offset:0)>=n?Fk(e,t,0,o,n):wF(e,t,Math.max(0,o),n)},Fk=(e,t,n,a,o)=>{for(;n<=a;){const r=n+Math.floor((a-n)/2),s=rl(e,r,t).offset;if(s===o)return r;so&&(a=r-1)}return Math.max(0,n-1)},wF=(e,t,n,a)=>{const{total:o}=e;let r=1;for(;n{let o=0;if(a>=e&&(a=e-1),a>=0){const s=t[a];o=s.offset+s.size}const r=(e-a-1)*n;return o+r},SF=Vk({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>rl(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:$y,getOffset:(e,t,n,a,o)=>{const{height:r,layout:s,width:l}=e,u=lu(s)?l:r,c=rl(e,t,o),d=$y(e,o),f=Math.max(0,Math.min(d-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n==="smart"&&(a>=p-u&&a<=f+u?n=qa:n=Mo),n){case ru:return f;case"end":return p;case Mo:return Math.round(p+(f-p)/2);case qa:default:return a>=p&&a<=f?a:ayF(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:o,total:r,layout:s,width:l}=e,u=lu(s)?l:o,c=rl(e,t,a),d=n+u;let f=c.offset+c.size,p=t;for(;p{n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),t.exposed?.getItemStyleCache(-1),o&&t.proxy?.$forceUpdate()},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&rn(bF,` + itemSize is required as function, but the given value was ${typeof e} + `)}}),CF=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let r=null,s=0,l=0;const u=(d,f)=>{const p=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return p||g};return{hasReachedEdge:u,onWheel:d=>{fo(r);let f=d.deltaX,p=d.deltaY;if(Math.abs(f)>Math.abs(p)?p=0:f=0,d.shiftKey&&p!==0&&(f=p,p=0),u(f,p)){d.deltaX!==0&&f===0&&d.preventDefault();return}s+=f,l+=p,d.preventDefault(),r=Ra(()=>{o(s,l),s=0,l=0})}}},kF=(e,t,n,a,o,r,s)=>{const l=M(0),u=M(0);let c,d=0,f=0;const p=h=>{fo(c),l.value=h.touches[0].clientX,u.value=h.touches[0].clientY,d=0,f=0},g=h=>{h.preventDefault(),fo(c),d+=l.value-h.touches[0].clientX,f+=u.value-h.touches[0].clientY,l.value=h.touches[0].clientX,u.value=h.touches[0].clientY,c=Ra(()=>{const v=a.value-i(r),m=o.value-i(s);n({scrollLeft:Math.min(t.value.scrollLeft+d,v),scrollTop:Math.min(t.value.scrollTop+f,m)}),d=0,f=0})};return Bt(e,"touchstart",p,{passive:!0}),Bt(e,"touchmove",g,{passive:!1}),{touchStartX:l,touchStartY:u,handleTouchStart:p,handleTouchMove:g}},zk=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:r,getEstimatedTotalWidth:s,getColumnOffset:l,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:p,injectToInstance:g,validateProps:h})=>se({name:e??"ElVirtualList",props:Es,emits:[fd,pd],setup(v,{emit:m,expose:b,slots:w}){const y=ge("vl");h(v);const S=dt(),k=M(p(v,S));g?.(S,k);const x=M(),O=M(),T=M(),I=M(),_=M({isScrolling:!1,scrollLeft:Be(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:Be(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:hd,yAxisScrollDir:hd}),N=Dk(),$=C(()=>Number.parseInt(`${v.height}`,10)),B=C(()=>Number.parseInt(`${v.width}`,10)),K=C(()=>{const{totalColumn:ye,totalRow:Te,columnCache:be}=v,{isScrolling:Pe,xAxisScrollDir:He,scrollLeft:Je}=i(_);if(ye===0||Te===0)return[0,0,0,0];const Qe=a(v,Je,i(k)),lt=o(v,Qe,Je,i(k)),Ze=!Pe||He==="backward"?Math.max(1,be):1,gt=!Pe||He==="forward"?Math.max(1,be):1;return[Math.max(0,Qe-Ze),Math.max(0,Math.min(ye-1,lt+gt)),Qe,lt]}),j=C(()=>{const{totalColumn:ye,totalRow:Te,rowCache:be}=v,{isScrolling:Pe,yAxisScrollDir:He,scrollTop:Je}=i(_);if(ye===0||Te===0)return[0,0,0,0];const Qe=d(v,Je,i(k)),lt=f(v,Qe,Je,i(k)),Ze=!Pe||He==="backward"?Math.max(1,be):1,gt=!Pe||He==="forward"?Math.max(1,be):1;return[Math.max(0,Qe-Ze),Math.max(0,Math.min(Te-1,lt+gt)),Qe,lt]}),W=C(()=>r(v,i(k))),A=C(()=>s(v,i(k))),P=C(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:Be(v.height)?`${v.height}px`:v.height,width:Be(v.width)?`${v.width}px`:v.width},v.style??{}]),V=C(()=>{const ye=`${i(A)}px`;return{height:`${i(W)}px`,pointerEvents:i(_).isScrolling?"none":void 0,width:ye,margin:0,boxSizing:"border-box"}}),F=()=>{const{totalColumn:ye,totalRow:Te}=v;if(ye>0&&Te>0){const[lt,Ze,gt,At]=i(K),[zt,nt,ft,me]=i(j);m(fd,{columnCacheStart:lt,columnCacheEnd:Ze,rowCacheStart:zt,rowCacheEnd:nt,columnVisibleStart:gt,columnVisibleEnd:At,rowVisibleStart:ft,rowVisibleEnd:me})}const{scrollLeft:be,scrollTop:Pe,updateRequested:He,xAxisScrollDir:Je,yAxisScrollDir:Qe}=i(_);m(pd,{xAxisScrollDir:Je,scrollLeft:be,yAxisScrollDir:Qe,scrollTop:Pe,updateRequested:He})},H=ye=>{const{clientHeight:Te,clientWidth:be,scrollHeight:Pe,scrollLeft:He,scrollTop:Je,scrollWidth:Qe}=ye.currentTarget,lt=i(_);if(lt.scrollTop===Je&<.scrollLeft===He)return;let Ze=He;if(Ry(v.direction))switch(md()){case su:Ze=-He;break;case Um:Ze=Qe-be-He;break}_.value={...lt,isScrolling:!0,scrollLeft:Ze,scrollTop:Math.max(0,Math.min(Je,Pe-Te)),updateRequested:!0,xAxisScrollDir:mi(lt.scrollLeft,Ze),yAxisScrollDir:mi(lt.scrollTop,Je)},Ne(()=>D()),q(),F()},U=(ye,Te)=>{const be=i($),Pe=(W.value-be)/Te*ye;ae({scrollTop:Math.min(W.value-be,Pe)})},J=(ye,Te)=>{const be=i(B),Pe=(A.value-be)/Te*ye;ae({scrollLeft:Math.min(A.value-be,Pe)})},{onWheel:ee}=CF({atXStartEdge:C(()=>_.value.scrollLeft<=0),atXEndEdge:C(()=>_.value.scrollLeft>=A.value-i(B)),atYStartEdge:C(()=>_.value.scrollTop<=0),atYEndEdge:C(()=>_.value.scrollTop>=W.value-i($))},(ye,Te)=>{O.value?.onMouseUp?.(),T.value?.onMouseUp?.();const be=i(B),Pe=i($);ae({scrollLeft:Math.min(_.value.scrollLeft+ye,A.value-be),scrollTop:Math.min(_.value.scrollTop+Te,W.value-Pe)})});Bt(x,"wheel",ee,{passive:!1});const ae=({scrollLeft:ye=_.value.scrollLeft,scrollTop:Te=_.value.scrollTop})=>{ye=Math.max(ye,0),Te=Math.max(Te,0);const be=i(_);Te===be.scrollTop&&ye===be.scrollLeft||(_.value={...be,xAxisScrollDir:mi(be.scrollLeft,ye),yAxisScrollDir:mi(be.scrollTop,Te),scrollLeft:ye,scrollTop:Te,updateRequested:!0},Ne(()=>D()),q(),F())},{touchStartX:ce,touchStartY:Z,handleTouchStart:de,handleTouchMove:ue}=kF(x,_,ae,A,W,B,$),Y=(ye=0,Te=0,be=qa)=>{const Pe=i(_);Te=Math.max(0,Math.min(Te,v.totalColumn-1)),ye=Math.max(0,Math.min(ye,v.totalRow-1));const He=WS(y.namespace.value),Je=i(k),Qe=r(v,Je),lt=s(v,Je);ae({scrollLeft:l(v,Te,be,Pe.scrollLeft,Je,lt>v.width?He:0),scrollTop:u(v,ye,be,Pe.scrollTop,Je,Qe>v.height?He:0)})},Q=(ye,Te)=>{const{columnWidth:be,direction:Pe,rowHeight:He}=v,Je=N.value(t&&be,t&&He,t&&Pe),Qe=`${ye},${Te}`;if(Nt(Je,Qe))return Je[Qe];{const[,lt]=n(v,Te,i(k)),Ze=i(k),gt=Ry(Pe),[At,zt]=c(v,ye,Ze),[nt]=n(v,Te,Ze);return Je[Qe]={position:"absolute",left:gt?void 0:`${lt}px`,right:gt?`${lt}px`:void 0,top:`${zt}px`,height:`${At}px`,width:`${nt}px`},Je[Qe]}},D=()=>{_.value.isScrolling=!1,Ne(()=>{N.value(-1,null,null)})};ht(()=>{if(!Pt)return;const{initScrollLeft:ye,initScrollTop:Te}=v,be=i(x);be&&(Be(ye)&&(be.scrollLeft=ye),Be(Te)&&(be.scrollTop=Te)),F()});const q=()=>{const{direction:ye}=v,{scrollLeft:Te,scrollTop:be,updateRequested:Pe}=i(_),He=i(x);if(Pe&&He){if(ye==="rtl")switch(md()){case su:He.scrollLeft=-Te;break;case jm:He.scrollLeft=Te;break;default:{const{clientWidth:Je,scrollWidth:Qe}=He;He.scrollLeft=Qe-Je-Te;break}}else He.scrollLeft=Math.max(0,Te);He.scrollTop=Math.max(0,be)}},{resetAfterColumnIndex:te,resetAfterRowIndex:fe,resetAfter:he}=S.proxy;b({windowRef:x,innerRef:I,getItemStyleCache:N,touchStartX:ce,touchStartY:Z,handleTouchStart:de,handleTouchMove:ue,scrollTo:ae,scrollToItem:Y,states:_,resetAfterColumnIndex:te,resetAfterRowIndex:fe,resetAfter:he});const ve=()=>{const{scrollbarAlwaysOn:ye,scrollbarStartGap:Te,scrollbarEndGap:be,totalColumn:Pe,totalRow:He}=v,Je=i(B),Qe=i($),lt=i(A),Ze=i(W),{scrollLeft:gt,scrollTop:At}=i(_);return{horizontalScrollbar:qe(jh,{ref:O,alwaysOn:ye,startGap:Te,endGap:be,class:y.e("horizontal"),clientSize:Je,layout:"horizontal",onScroll:J,ratio:Je*100/lt,scrollFrom:gt/(lt-Je),total:He,visible:!0}),verticalScrollbar:qe(jh,{ref:T,alwaysOn:ye,startGap:Te,endGap:be,class:y.e("vertical"),clientSize:Qe,layout:"vertical",onScroll:U,ratio:Qe*100/Ze,scrollFrom:At/(Ze-Qe),total:Pe,visible:!0})}},Ie=()=>{const[ye,Te]=i(K),[be,Pe]=i(j),{data:He,totalColumn:Je,totalRow:Qe,useIsScrolling:lt,itemKey:Ze}=v,gt=[];if(Qe>0&&Je>0)for(let At=be;At<=Pe;At++)for(let zt=ye;zt<=Te;zt++){const nt=Ze({columnIndex:zt,data:He,rowIndex:At});gt.push(qe(Ve,{key:nt},w.default?.({columnIndex:zt,data:He,isScrolling:lt?i(_).isScrolling:void 0,style:Q(At,zt),rowIndex:At})))}return gt},Le=()=>{const ye=it(v.innerElement),Te=Ie();return[qe(ye,pt(v.innerProps,{style:i(V),ref:I}),Ae(ye)?Te:{default:()=>Te})]};return()=>{const ye=it(v.containerElement),{horizontalScrollbar:Te,verticalScrollbar:be}=ve(),Pe=Le();return qe("div",{key:0,class:y.e("wrapper"),role:v.role},[qe(ye,{class:v.className,style:i(P),onScroll:H,ref:x},Ae(ye)?Pe:{default:()=>Pe}),Te,be])}}}),Ny="ElFixedSizeGrid",EF=zk({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,o,r,s,l)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,a*t),d=Math.max(0,a*t-n+l+t);switch(o==="smart"&&(r>=d-n&&r<=c+n?o=qa:o=Mo),o){case ru:return c;case"end":return d;case Mo:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(n/2)?u:f}case qa:default:return r>=d&&r<=c?r:d>c||r{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,a*e),d=Math.max(0,a*e-t+l+e);switch(o==="smart"&&(r>=d-t&&r<=c+t?o=qa:o=Mo),o){case ru:return c;case"end":return d;case Mo:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(t/2)?u:f}case qa:default:return r>=d&&r<=c?r:d>c||rMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,o)=>{const r=a*e,s=Math.ceil((n+o-r)/e);return Math.max(0,Math.min(t-1,a+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,o)=>{const r=a*e,s=Math.ceil((n+o-r)/e);return Math.max(0,Math.min(t-1,a+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{Be(e)||rn(Ny,` + "columnWidth" must be passed as number, + instead ${typeof e} was given. + `),Be(t)||rn(Ny,` + "columnWidth" must be passed as number, + instead ${typeof t} was given. + `)}}),{max:gd,min:Hk,floor:Kk}=Math,My="ElDynamicSizeGrid",xF={column:"columnWidth",row:"rowHeight"},Uh={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},tr=(e,t,n,a)=>{const[o,r,s]=[n[a],e[xF[a]],n[Uh[a]]];if(t>s){let l=0;if(s>=0){const u=o[s];l=u.offset+u.size}for(let u=s+1;u<=t;u++){const c=r(u);o[u]={offset:l,size:c},l+=c}n[Uh[a]]=t}return o[t]},Wk=(e,t,n,a,o,r)=>{for(;n<=a;){const s=n+Kk((a-n)/2),l=tr(e,s,t,r).offset;if(l===o)return s;l{const r=o==="column"?e.totalColumn:e.totalRow;let s=1;for(;n{const[o,r]=[t[a],t[Uh[a]]];return(r>0?o[r].offset:0)>=n?Wk(e,t,0,r,n,a):TF(e,t,gd(0,r),n,a)},jk=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const s=a[n];o=s.offset+s.size}const r=(e-n-1)*t;return o+r},Uk=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const s=t[a];o=s.offset+s.size}const r=(e-a-1)*n;return o+r},OF={column:Uk,row:jk},Ay=(e,t,n,a,o,r,s)=>{const[l,u]=[r==="row"?e.height:e.width,OF[r]],c=tr(e,t,o,r),d=gd(0,Hk(u(e,o)-l,c.offset)),f=gd(0,c.offset-l+s+c.size);switch(n==="smart"&&(a>=f-l&&a<=d+l?n=qa:n=Mo),n){case ru:return d;case"end":return f;case Mo:return Math.round(f+(d-f)/2);case qa:default:return a>=f&&a<=d?a:f>d||a{const a=tr(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=tr(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,r)=>Ay(e,t,n,a,o,"column",r),getRowOffset:(e,t,n,a,o,r)=>Ay(e,t,n,a,o,"row",r),getColumnStartIndexForOffset:(e,t,n)=>Py(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=tr(e,t,a,"column"),r=n+e.width;let s=o.offset+o.size,l=t;for(;lPy(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:r}=e,s=tr(e,t,a,"row"),l=n+r;let u=s.size+s.offset,c=t;for(;c{const n=({columnIndex:r,rowIndex:s},l)=>{l=Rt(l)?!0:l,Be(r)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,r-1)),Be(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),e.exposed?.getItemStyleCache.value(-1,null,null),l&&e.proxy?.$forceUpdate()},a=(r,s)=>{n({columnIndex:r},s)},o=(r,s)=>{n({rowIndex:r},s)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{Fe(e)||rn(My,` + "columnWidth" must be passed as function, + instead ${typeof e} was given. + `),Fe(t)||rn(My,` + "rowHeight" must be passed as function, + instead ${typeof t} was given. + `)}}),qk={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:{type:Boolean,default:void 0},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:Nn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ia(["ariaControls"])},Yk={[at]:e=>Ae(e)||Be(e)||Wt(e),change:e=>Ae(e)||Be(e)||Wt(e)},Yl=Symbol("checkboxGroupContextKey"),RF=Ee({modelValue:{type:G(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:Nn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:G(Array)},props:{type:G(Object),default:()=>Gk},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ia(["ariaLabel"])}),IF={[at]:e=>we(e),change:e=>we(e)},Gk={label:"label",value:"value",disabled:"disabled"},$F=({model:e,isChecked:t})=>{const n=$e(Yl,void 0),a=$e(Hs,void 0),o=C(()=>{const r=n?.max?.value,s=n?.min?.value;return!Rt(r)&&e.value.length>=r&&!t.value||!Rt(s)&&e.value.length<=s&&t.value});return{isDisabled:ln(C(()=>n===void 0?a?.disabled??o.value:n.disabled?.value||o.value)),isLimitDisabled:o}},NF=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:o,isLabeledByFormItem:r})=>{const s=$e(Yl,void 0),{formItem:l}=Fn(),{emit:u}=dt();function c(h){return[!0,e.trueValue,e.trueLabel].includes(h)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(h,v){u(yt,c(h),v)}function f(h){if(n.value)return;const v=h.target;u(yt,c(v.checked),h)}async function p(h){n.value||!a.value&&!o.value&&r.value&&(h.composedPath().some(v=>v.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Ne(),d(t.value,h)))}const g=C(()=>s?.validateEvent||e.validateEvent);return pe(()=>e.modelValue,()=>{g.value&&l?.validate("change").catch(ut)}),{handleChange:f,onClickRoot:p}},MF=e=>{const t=M(!1),{emit:n,vnode:a}=dt(),o=$e(Yl,void 0),r=C(()=>Rt(o)===!1),s=M(!1),l=C(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=C({get(){return r.value?o?.modelValue?.value:l.value?e.modelValue:t.value},set(c){r.value&&we(c)?(s.value=o?.max?.value!==void 0&&c.length>o?.max.value&&c.length>u.value.length,s.value===!1&&o?.changeEvent?.(c)):(n(at,c),t.value=c)}});return{model:u,isGroup:r,isLimitExceeded:s}},PF=(e,t,{model:n})=>{const a=$e(Yl,void 0),o=M(!1),r=C(()=>Aa(e.value)?e.label:e.value),s=C(()=>{const l=n.value;return Wt(l)?l:we(l)?ot(r.value)?l.map(Jt).some(u=>dn(u,r.value)):l.map(Jt).includes(r.value):l!=null?l===e.trueValue||l===e.trueLabel:!!l});return{checkboxButtonSize:In(C(()=>a?.size?.value),{prop:!0}),isChecked:s,isFocused:o,checkboxSize:In(C(()=>a?.size?.value)),hasOwnLabel:C(()=>!!t.default||!Aa(r.value)),actualValue:r}},Xk=(e,t)=>{const{formItem:n}=Fn(),{model:a,isGroup:o,isLimitExceeded:r}=MF(e),{isFocused:s,isChecked:l,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=PF(e,t,{model:a}),{isDisabled:p}=$F({model:a,isChecked:l}),{inputId:g,isLabeledByFormItem:h}=Ia(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=NF(e,{model:a,isLimitExceeded:r,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:h});return(()=>{function w(){we(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&w()})(),Po({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>o.value&&Aa(e.value))),Po({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>!!e.trueLabel)),Po({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:h,isChecked:l,isDisabled:p,isFocused:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:v,onClickRoot:m}},AF=["id","indeterminate","name","tabindex","disabled"];var LF=se({name:"ElCheckbox",__name:"checkbox",props:qk,emits:Yk,setup(e){const t=e,{inputId:n,isLabeledByFormItem:a,isChecked:o,isDisabled:r,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:p}=Xk(t,wn()),g=C(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:d.value}),h=ge("checkbox"),v=C(()=>[h.b(),h.m(l.value),h.is("disabled",r.value),h.is("bordered",t.border),h.is("checked",o.value)]),m=C(()=>[h.e("input"),h.is("disabled",r.value),h.is("checked",o.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(b,w)=>(E(),le(it(!i(u)&&i(a)?"span":"label"),{for:!i(u)&&i(a)?null:i(n),class:R(v.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:i(p)},{default:ne(()=>[z("span",{class:R(m.value)},[ct(z("input",pt({id:i(n),"onUpdate:modelValue":w[0]||(w[0]=y=>Gt(c)?c.value=y:null),class:i(h).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:i(r)},g.value,{onChange:w[1]||(w[1]=(...y)=>i(f)&&i(f)(...y)),onFocus:w[2]||(w[2]=y=>s.value=!0),onBlur:w[3]||(w[3]=y=>s.value=!1),onClick:w[4]||(w[4]=Xe(()=>{},["stop"]))}),null,16,AF),[[Nw,i(c)]]),z("span",{class:R(i(h).e("inner"))},null,2)],2),i(u)?(E(),L("span",{key:0,class:R(i(h).e("label"))},[oe(b.$slots,"default"),b.$slots.default?re("v-if",!0):(E(),L(Ve,{key:0},[wt(Ce(e.label),1)],64))],2)):re("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}}),Jk=LF;const DF=["name","tabindex","disabled"];var BF=se({name:"ElCheckboxButton",__name:"checkbox-button",props:qk,emits:Yk,setup(e){const t=e,{isFocused:n,isChecked:a,isDisabled:o,checkboxButtonSize:r,model:s,actualValue:l,handleChange:u}=Xk(t,wn()),c=C(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:l.value}),d=$e(Yl,void 0),f=ge("checkbox"),p=C(()=>{const h=d?.fill?.value??"";return{backgroundColor:h,borderColor:h,color:d?.textColor?.value??"",boxShadow:h?`-1px 0 0 0 ${h}`:void 0}}),g=C(()=>[f.b("button"),f.bm("button",r.value),f.is("disabled",o.value),f.is("checked",a.value),f.is("focus",n.value)]);return(h,v)=>(E(),L("label",{class:R(g.value)},[ct(z("input",pt({"onUpdate:modelValue":v[0]||(v[0]=m=>Gt(s)?s.value=m:null),class:i(f).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:i(o)},c.value,{onChange:v[1]||(v[1]=(...m)=>i(u)&&i(u)(...m)),onFocus:v[2]||(v[2]=m=>n.value=!0),onBlur:v[3]||(v[3]=m=>n.value=!1),onClick:v[4]||(v[4]=Xe(()=>{},["stop"]))}),null,16,DF),[[Nw,i(s)]]),h.$slots.default||e.label?(E(),L("span",{key:0,class:R(i(f).be("button","inner")),style:ze(i(a)?p.value:void 0)},[oe(h.$slots,"default",{},()=>[wt(Ce(e.label),1)])],6)):re("v-if",!0)],2))}}),qm=BF,VF=se({name:"ElCheckboxGroup",__name:"checkbox-group",props:RF,emits:IF,setup(e,{emit:t}){const n=e,a=t,o=ge("checkbox"),r=ln(),{formItem:s}=Fn(),{inputId:l,isLabeledByFormItem:u}=Ia(n,{formItemContext:s}),c=async h=>{a(at,h),await Ne(),a(yt,h)},d=C({get(){return n.modelValue},set(h){c(h)}}),f=C(()=>({...Gk,...n.props})),p=h=>{const{label:v,value:m,disabled:b}=f.value,w={label:h[v],value:h[m],disabled:h[b]};return{...ku(h,[v,m,b]),...w}},g=C(()=>n.type==="button"?qm:Jk);return St(Yl,{...hr(Pn(n),["size","min","max","validateEvent","fill","textColor"]),disabled:r,modelValue:d,changeEvent:c}),pe(()=>n.modelValue,(h,v)=>{n.validateEvent&&!dn(h,v)&&s?.validate("change").catch(ut)}),(h,v)=>(E(),le(it(e.tag),{id:i(l),class:R(i(o).b("group")),role:"group","aria-label":i(u)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":i(u)?i(s)?.labelId:void 0},{default:ne(()=>[oe(h.$slots,"default",{},()=>[(E(!0),L(Ve,null,kt(e.options,(m,b)=>(E(),le(it(g.value),pt({key:b},{ref_for:!0},p(m)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"]))}}),Zk=VF;const go=st(Jk,{CheckboxButton:qm,CheckboxGroup:Zk}),FF=sn(qm),Ym=sn(Zk),Qk=Ee({modelValue:{type:[String,Number,Boolean],default:void 0},size:Nn,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),zF=Ee({...Qk,border:Boolean}),eE={[at]:e=>Ae(e)||Be(e)||Wt(e),[yt]:e=>Ae(e)||Be(e)||Wt(e)},tE=Symbol("radioGroupKey"),HF=Ee({...Qk}),nE={label:"label",value:"value",disabled:"disabled"},KF=Ee({id:{type:String,default:void 0},size:Nn,disabled:{type:Boolean,default:void 0},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},options:{type:G(Array)},props:{type:G(Object),default:()=>nE},type:{type:String,values:["radio","button"],default:"radio"},...ia(["ariaLabel"])}),WF=eE,aE=(e,t)=>{const n=M(),a=$e(tE,void 0),o=C(()=>!!a),r=C(()=>Aa(e.value)?e.label:e.value),s=C({get(){return o.value?a.modelValue:e.modelValue},set(f){o.value?a.changeEvent(f):t&&t("update:modelValue",f),n.value.checked=e.modelValue===r.value}}),l=In(C(()=>a?.size)),u=ln(C(()=>a?.disabled)),c=M(!1),d=C(()=>u.value||o.value&&s.value!==r.value?-1:0);return Po({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},C(()=>o.value&&Aa(e.value))),{radioRef:n,isGroup:o,radioGroup:a,focus:c,size:l,disabled:u,tabIndex:d,modelValue:s,actualValue:r}},jF=["value","name","disabled","checked"];var UF=se({name:"ElRadio",__name:"radio",props:zF,emits:eE,setup(e,{emit:t}){const n=e,a=t,o=ge("radio"),{radioRef:r,radioGroup:s,focus:l,size:u,disabled:c,modelValue:d,actualValue:f}=aE(n,a);function p(){Ne(()=>a(yt,d.value))}return(g,h)=>(E(),L("label",{class:R([i(o).b(),i(o).is("disabled",i(c)),i(o).is("focus",i(l)),i(o).is("bordered",e.border),i(o).is("checked",i(d)===i(f)),i(o).m(i(u))])},[z("span",{class:R([i(o).e("input"),i(o).is("disabled",i(c)),i(o).is("checked",i(d)===i(f))])},[ct(z("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":h[0]||(h[0]=v=>Gt(d)?d.value=v:null),class:R(i(o).e("original")),value:i(f),name:e.name||i(s)?.name,disabled:i(c),checked:i(d)===i(f),type:"radio",onFocus:h[1]||(h[1]=v=>l.value=!0),onBlur:h[2]||(h[2]=v=>l.value=!1),onChange:p,onClick:h[3]||(h[3]=Xe(()=>{},["stop"]))},null,42,jF),[[Mw,i(d)]]),z("span",{class:R(i(o).e("inner"))},null,2)],2),z("span",{class:R(i(o).e("label")),onKeydown:h[4]||(h[4]=Xe(()=>{},["stop"]))},[oe(g.$slots,"default",{},()=>[wt(Ce(e.label),1)])],34)],2))}}),oE=UF;const qF=["value","name","disabled"];var YF=se({name:"ElRadioButton",__name:"radio-button",props:HF,setup(e){const t=e,n=ge("radio"),{radioRef:a,focus:o,size:r,disabled:s,modelValue:l,radioGroup:u,actualValue:c}=aE(t),d=C(()=>({backgroundColor:u?.fill||"",borderColor:u?.fill||"",boxShadow:u?.fill?`-1px 0 0 0 ${u.fill}`:"",color:u?.textColor||""}));return(f,p)=>(E(),L("label",{class:R([i(n).b("button"),i(n).is("active",i(l)===i(c)),i(n).is("disabled",i(s)),i(n).is("focus",i(o)),i(n).bm("button",i(r))])},[ct(z("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":p[0]||(p[0]=g=>Gt(l)?l.value=g:null),class:R(i(n).be("button","original-radio")),value:i(c),type:"radio",name:e.name||i(u)?.name,disabled:i(s),onFocus:p[1]||(p[1]=g=>o.value=!0),onBlur:p[2]||(p[2]=g=>o.value=!1),onClick:p[3]||(p[3]=Xe(()=>{},["stop"]))},null,42,qF),[[Mw,i(l)]]),z("span",{class:R(i(n).be("button","inner")),style:ze(i(l)===i(c)?d.value:{}),onKeydown:p[4]||(p[4]=Xe(()=>{},["stop"]))},[oe(f.$slots,"default",{},()=>[wt(Ce(e.label),1)])],38)],2))}}),Gm=YF;const GF=["id","aria-label","aria-labelledby"];var XF=se({name:"ElRadioGroup",__name:"radio-group",props:KF,emits:WF,setup(e,{emit:t}){const n=e,a=t,o=ge("radio"),r=Gn(),s=M(),{formItem:l}=Fn(),{inputId:u,isLabeledByFormItem:c}=Ia(n,{formItemContext:l}),d=v=>{a(at,v),Ne(()=>a(yt,v))};ht(()=>{const v=s.value.querySelectorAll("[type=radio]"),m=v[0];!Array.from(v).some(b=>b.checked)&&m&&(m.tabIndex=0)});const f=C(()=>n.name||r.value),p=C(()=>({...nE,...n.props})),g=v=>{const{label:m,value:b,disabled:w}=p.value,y={label:v[m],value:v[b],disabled:v[w]};return{...ku(v,[m,b,w]),...y}},h=C(()=>n.type==="button"?Gm:oE);return St(tE,Dt({...Pn(n),changeEvent:d,name:f})),pe(()=>n.modelValue,(v,m)=>{n.validateEvent&&!dn(v,m)&&l?.validate("change").catch(ut)}),(v,m)=>(E(),L("div",{id:i(u),ref_key:"radioGroupRef",ref:s,class:R(i(o).b("group")),role:"radiogroup","aria-label":i(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":i(c)?i(l).labelId:void 0},[oe(v.$slots,"default",{},()=>[(E(!0),L(Ve,null,kt(e.options,(b,w)=>(E(),le(it(h.value),pt({key:w},{ref_for:!0},g(b)),null,16))),128))])],10,GF))}}),rE=XF;const sE=st(oE,{RadioButton:Gm,RadioGroup:rE}),JF=sn(rE),ZF=sn(Gm),wf=Symbol();function QF(e){return!!(we(e)?e.every(({type:t})=>t===kn):e?.type===kn)}var ez=se({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=ge("cascader-node"),{renderLabelFn:n}=$e(wf),{node:a}=e,{data:o,label:r}=a,s=()=>{const l=n?.({node:a,data:o});return QF(l)?r:l??r};return()=>X("span",{class:t.e("label")},[s()])}});const tz=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var nz=se({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:{type:String,required:!1}},emits:["expand"],setup(e,{emit:t}){const n=e,a=t,o=$e(wf),r=ge("cascader-node"),s=C(()=>o.isHoverMenu),l=C(()=>o.config.multiple),u=C(()=>o.config.checkStrictly),c=C(()=>o.config.showPrefix),d=C(()=>o.checkedNodes[0]?.uid),f=C(()=>n.node.isDisabled),p=C(()=>n.node.isLeaf),g=C(()=>u.value&&!p.value||!f.value),h=C(()=>m(o.expandingNode)),v=C(()=>u.value&&o.checkedNodes.some(m)),m=I=>{const{level:_,uid:N}=n.node;return I?.pathNodes[_-1]?.uid===N},b=()=>{h.value||o.expandNode(n.node)},w=I=>{const{node:_}=n;I!==_.checked&&o.handleCheckChange(_,I)},y=()=>{o.lazyLoad(n.node,()=>{p.value||b()})},S=I=>{s.value&&(k(),!p.value&&a("expand",I))},k=()=>{const{node:I}=n;!g.value||I.loading||(I.loaded?b():y())},x=()=>{p.value&&!f.value&&!u.value&&!l.value?T(!0):(o.config.checkOnClickNode&&(l.value||u.value)||p.value&&o.config.checkOnClickLeaf)&&!f.value?O(!n.node.checked):s.value||k()},O=I=>{u.value?(w(I),n.node.loaded&&b()):T(I)},T=I=>{n.node.loaded?(w(I),!u.value&&b()):y()};return(I,_)=>(E(),L("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!p.value,"aria-owns":p.value?void 0:e.menuId,"aria-expanded":h.value,tabindex:g.value?-1:void 0,class:R([i(r).b(),i(r).is("selectable",u.value),i(r).is("active",e.node.checked),i(r).is("disabled",!g.value),h.value&&"in-active-path",v.value&&"in-checked-path"]),onMouseenter:S,onFocus:S,onClick:x},[re(" prefix "),l.value&&c.value?(E(),le(i(go),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:f.value,onClick:_[0]||(_[0]=Xe(()=>{},["stop"])),"onUpdate:modelValue":O},null,8,["model-value","indeterminate","disabled"])):u.value&&c.value?(E(),le(i(sE),{key:1,"model-value":d.value,label:e.node.uid,disabled:f.value,"onUpdate:modelValue":O,onClick:_[1]||(_[1]=Xe(()=>{},["stop"]))},{default:ne(()=>[re(` + Add an empty element to avoid render label, + do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 + `),_[2]||(_[2]=z("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):p.value&&e.node.checked?(E(),le(i(De),{key:2,class:R(i(r).e("prefix"))},{default:ne(()=>[X(i($l))]),_:1},8,["class"])):re("v-if",!0),re(" content "),X(i(ez),{node:e.node},null,8,["node"]),re(" postfix "),p.value?re("v-if",!0):(E(),L(Ve,{key:3},[e.node.loading?(E(),le(i(De),{key:0,class:R([i(r).is("loading"),i(r).e("postfix")])},{default:ne(()=>[X(i(vo))]),_:1},8,["class"])):(E(),le(i(De),{key:1,class:R(["arrow-right",i(r).e("postfix")])},{default:ne(()=>[X(i(sa))]),_:1},8,["class"]))],64))],42,tz))}}),Ly=nz,az=se({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},setup(e,{expose:t}){const n=e,a=dt(),o=ge("cascader-menu"),{t:r}=xt(),s=Gn();let l,u;const c=$e(wf),d=M(),f=M(),p=C(()=>!n.nodes.length),g=C(()=>!c.initialLoaded),h=C(()=>`${s.value}-${n.index}`),v=()=>{let O;if(c.expandingNode){const{level:T,pathNodes:I}=c.expandingNode;n.index0&&(O=c.checkedNodes[0]?.pathNodes[n.index]?.uid)}else c.checkedNodes.length>0&&n.indexT.uid===O):-1},m=O=>O?n.nodes.findIndex(T=>`${h.value}-${T.uid}`===O):-1,b=O=>{const T=Pa(O,0,n.nodes.length-1);f.value?.scrollToItem(T)},w=O=>{if(!n.nodes.length)return;const T=Pa(O,0,n.nodes.length-1);b(T),Ne(()=>{const I=a.vnode.el?.querySelector(`#${h.value}-${n.nodes[T].uid}`);I&&pl(I)})},y=O=>{l=O.target},S=O=>{if(!(!c.isHoverMenu||!l||!d.value))if(l.contains(O.target)){k();const T=a.vnode.el,{left:I}=T.getBoundingClientRect(),{offsetWidth:_,offsetHeight:N}=T,$=O.clientX-I,B=l.offsetTop,K=B+l.offsetHeight,j=n.virtualScroll?f.value?.states?.scrollOffset||0:T.querySelector(`.${o.e("wrap")}`)?.scrollTop||0;d.value.innerHTML=` + + + `}else u||(u=window.setTimeout(x,c.config.hoverThreshold))},k=()=>{u&&(clearTimeout(u),u=void 0)},x=()=>{d.value&&(d.value.innerHTML="",k())};return t({getActiveNodeIndex:v,getNodeIndexById:m,scrollToItem:b,focusNodeAt:w,virtualListRef:f,get $el(){return a.vnode.el}}),(O,T)=>e.virtualScroll?(E(),L("div",{key:h.value,class:R(i(o).b()),onMousemove:S,onMouseleave:x},[X(i(yf),{ref_key:"virtualListRef",ref:f,height:e.height,"item-size":e.itemSize,data:e.nodes,total:e.nodes.length,"class-name":i(o).e("list"),"inner-element":"ul","inner-props":{role:"menu",class:i(o).is("empty",p.value)}},{default:ne(({data:I,index:_,style:N})=>[(E(),le(Ly,{key:I[_].uid,node:I[_],"menu-id":h.value,style:ze(N),onExpand:y},null,8,["node","menu-id","style"]))]),_:1},8,["height","item-size","data","total","class-name","inner-props"]),g.value?(E(),L("div",{key:0,class:R(i(o).e("empty-text"))},[X(i(De),{size:14,class:R(i(o).is("loading"))},{default:ne(()=>[X(i(vo))]),_:1},8,["class"]),wt(" "+Ce(i(r)("el.cascader.loading")),1)],2)):p.value?(E(),L("div",{key:1,class:R(i(o).e("empty-text"))},[oe(O.$slots,"empty",{},()=>[wt(Ce(i(r)("el.cascader.noData")),1)])],2)):i(c)?.isHoverMenu?(E(),L(Ve,{key:2},[re(" eslint-disable vue/html-self-closing "),(E(),L("svg",{ref_key:"hoverZone",ref:d,class:R(i(o).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")],34)):(E(),le(i(mo),{key:h.value,tag:"ul",role:"menu",class:R(i(o).b()),"wrap-class":i(o).e("wrap"),"view-class":[i(o).e("list"),i(o).is("empty",p.value)],onMousemove:S,onMouseleave:x},{default:ne(()=>[(E(!0),L(Ve,null,kt(e.nodes,I=>(E(),le(Ly,{key:I.uid,node:I,"menu-id":h.value,onExpand:y},null,8,["node","menu-id"]))),128)),g.value?(E(),L("div",{key:0,class:R(i(o).e("empty-text"))},[X(i(De),{size:14,class:R(i(o).is("loading"))},{default:ne(()=>[X(i(vo))]),_:1},8,["class"]),wt(" "+Ce(i(r)("el.cascader.loading")),1)],2)):p.value?(E(),L("div",{key:1,class:R(i(o).e("empty-text"))},[oe(O.$slots,"empty",{},()=>[wt(Ce(i(r)("el.cascader.noData")),1)])],2)):i(c)?.isHoverMenu?(E(),L(Ve,{key:2},[re(" eslint-disable vue/html-self-closing "),(E(),L("svg",{ref_key:"hoverZone",ref:d,class:R(i(o).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]),_:3},8,["class","wrap-class","view-class"]))}}),oz=az;let rz=0;const sz=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var qh=class Yh{constructor(t,n,a,o=!1){this.data=t,this.config=n,this.parent=a,this.root=o,this.uid=rz++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:r,label:s,children:l}=n,u=t[l],c=sz(this);this.level=o?0:a?a.level+1:1,this.value=t[r],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new Yh(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!ha(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:o,checkStrictly:r}=a;return(Fe(o)?o(t,this):!!t[o])||!r&&!!n?.isDisabled}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:o}=this,{lazy:r,leaf:s}=n,l=Fe(s)?s(t,this):t[s];return Rt(l)?r&&!o?!1:!(we(a)&&a.length):!!l}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,o=new Yh(t,this.config,this);return we(n)?n.push(t):this.childrenData=[t],a.push(o),o}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{n&&(n.broadcast(t),n.onParentCheck?.(t))})}emit(){const{parent:t}=this;t&&(t.onChildCheck?.(),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),a=n.length?n.every(o=>o.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((o,r)=>o+(r.checked?1:r.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const Gh=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(Gh(a.children,t))),n),[]);var Dy=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new qh(a,this.config));this.nodes=n,this.allNodes=Gh(n,!1),this.leafNodes=Gh(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new qh(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach(t=>{this.appendAllNodesAndLeafNodes(t)})}getNodeByValue(e,t=!1){return Aa(e)?null:this.getFlattedNodes(t).find(n=>dn(n.value,e)||dn(n.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:t,level:n})=>dn(e.value,t)&&e.level===n)||null}};const yp=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},lz=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():LS(e)&&e.click()},iz=(e,t)=>{const n=t.slice(0),a=n.map(r=>r.uid),o=e.reduce((r,s)=>{const l=a.indexOf(s.uid);return l>-1&&(r.push(s),n.splice(l,1),a.splice(l,1)),r},[]);return o.push(...n),o};var uz=se({name:"ElCascaderPanel",__name:"index",props:lF,emits:iF,setup(e,{expose:t,emit:n}){const a=e,o=n;let r=!1;const s=ge("cascader"),l=uF(a),u=wn();let c;const d=M(!0),f=M(!1),p=M([]),g=M(),h=M([]),v=M(),m=M([]),b=C(()=>l.value.expandTrigger==="hover"),w=C(()=>a.renderLabel||u.default),y=C(()=>a.virtualScroll),S=C(()=>a.itemSize),k=C(()=>a.height),x=()=>{const{options:F}=a,H=l.value;r=!1,c=new Dy(F,H),h.value=[c.getNodes()],H.lazy&&ha(a.options)?(d.value=!1,O(void 0,U=>{U&&(c=new Dy(U,H),h.value=[c.getNodes()]),d.value=!0,j(!1,!0)})):j(!1,!0)},O=(F,H)=>{const U=l.value;F=F||new qh({},U,void 0,!0),F.loading=!0;const J=ae=>{const ce=F,Z=ce.root?null:ce;ce.loading=!1,ce.loaded=!0,ce.childrenData=ce.childrenData||[],ae&&c?.appendNodes(ae,Z),ae&&H?.(ae),F.level===0&&(f.value=!0)},ee=()=>{F.loading=!1,F.loaded=!1,F.level===0&&(d.value=!0)};U.lazyLoad(F,J,ee)},T=(F,H)=>{const{level:U}=F,J=h.value.slice(0,U);let ee;F.isLeaf?ee=F.pathNodes[U-2]:(ee=F,J.push(F.children)),v.value?.uid!==ee?.uid&&(v.value=F,h.value=J,!H&&o("expand-change",F?.pathValues||[]))},I=(F,H,U=!0)=>{const{checkStrictly:J,multiple:ee}=l.value,ae=m.value[0];r=!0,!ee&&ae?.doCheck(!1),F.doCheck(H),K(),U&&!ee&&!J&&o("close"),!U&&!ee&&_(F)},_=F=>{F&&(F=F.parent,_(F),F&&T(F))},N=F=>c?.getFlattedNodes(F),$=F=>N(F)?.filter(({checked:H})=>H!==!1),B=()=>{m.value.forEach(F=>F.doCheck(!1)),K(),h.value=h.value.slice(0,1),v.value=void 0,o("expand-change",[])},K=()=>{const{checkStrictly:F,multiple:H}=l.value,U=m.value,J=iz(U,$(!F)),ee=J.map(ae=>ae.valueByOption);m.value=J,g.value=H?ee:ee[0]??null},j=(F=!1,H=!1)=>{const{modelValue:U}=a,{lazy:J,multiple:ee,checkStrictly:ae}=l.value,ce=!ae;if(!(!d.value||r||!H&&dn(U,g.value)))if(J&&!F){const Z=F0(LI(aa(U))).map(de=>c?.getNodeByValue(de)).filter(de=>!!de&&!de.loaded&&!de.loading);Z.length?Z.forEach(de=>{O(de,()=>j(!1,H))}):j(!0,H)}else W(F0((ee?aa(U):[U]).map(Z=>c?.getNodeByValue(Z,ce))),H),g.value=No(U??void 0)},W=(F,H=!0)=>{const{checkStrictly:U}=l.value,J=m.value,ee=F.filter(Z=>!!Z&&(U||Z.isLeaf)),ae=c?.getSameNode(v.value),ce=H&&ae||ee[0];ce?ce.pathNodes.forEach(Z=>T(Z,!0)):v.value=void 0,J.forEach(Z=>Z.doCheck(!1)),Dt(ee).forEach(Z=>Z.doCheck(!0)),m.value=ee,Ne(A)},A=()=>{Pt&&p.value.forEach(F=>{const H=F?.$el;if(H)if(y.value){const U=F?.getActiveNodeIndex?.();U!==void 0&&U>=0&&F?.scrollToItem?.(U)}else{const U=H.querySelector(`.${s.namespace.value}-scrollbar__wrap`);let J=H.querySelector(`.${s.b("node")}.in-active-path`);if(!J){const ee=H.querySelectorAll(`.${s.b("node")}.${s.is("active")}`);J=ee[ee.length-1]}pm(U,J)}})},P=F=>{const H=F.target,U=qt(F);switch(U){case Se.up:case Se.down:{F.preventDefault();const J=U===Se.up?-1:1;if(y.value){const ee=yp(H),ae=p.value[ee];if(ae){const ce=ae.getNodeIndexById(H.id);if(ce>=0){const Z=h.value[ee]??[],de=Z.length;let ue=ce+J;for(;ue>=0&&ue{dn(F,H)||x()},{immediate:!0}),pe(()=>a.options,x,{deep:!0}),pe(()=>a.modelValue,()=>{r=!1,j()},{deep:!0}),pe(()=>g.value,F=>{dn(F,a.modelValue)||(o(at,F),o(yt,F))});const V=()=>{f.value||x()};return Dv(()=>p.value=[]),ht(()=>!ha(a.modelValue)&&j()),t({menuList:p,menus:h,checkedNodes:m,handleKeyDown:P,handleCheckChange:I,getFlattedNodes:N,getCheckedNodes:$,clearCheckedNodes:B,calculateCheckedValue:K,scrollToExpandingNode:A,loadLazyRootNodes:V}),(F,H)=>(E(),L("div",{class:R([i(s).b("panel"),i(s).is("bordered",e.border)]),onKeydown:P},[(E(!0),L(Ve,null,kt(h.value,(U,J)=>(E(),le(oz,{key:J,ref_for:!0,ref:ee=>p.value[J]=ee,index:J,nodes:[...U],"virtual-scroll":y.value,"item-size":S.value,height:k.value},{empty:ne(()=>[oe(F.$slots,"empty")]),_:3},8,["index","nodes","virtual-scroll","item-size","height"]))),128))],34))}}),cz=uz;const lE=st(cz),dz=Ee({...Rk,size:Nn,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:Ut,default:Yo},filterable:Boolean,filterMethod:{type:G(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:G(Function),default:()=>!0},placement:{type:G(String),values:jo,default:"bottom-start"},fallbackPlacements:{type:G(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,teleported:Kt.teleported,effect:{type:G(String),default:"light"},tagType:{...gr.type,default:"info"},tagEffect:{...gr.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},fitInputWidth:{type:[Boolean,Number],default:!1},...zs}),By=e=>!0,fz={[at]:By,[yt]:By,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Wt(e),expandChange:e=>!!e,removeTag:e=>!!e},pz=["placeholder"],hz=["onClick"],vz=["id","data-suggestion-index","onClick"],mz=34;var gz=se({name:"ElCascader",__name:"cascader",props:dz,emits:fz,setup(e,{expose:t,emit:n}){const a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Oe})=>{const{modifiersData:Ke,placement:We}=Oe;["right","left","bottom","top"].includes(We)||Ke.arrow&&(Ke.arrow.x=35)},requires:["arrow"]}]},o=e,r=n,s=wr(),l=wn();let u=0,c=0;const d=ge("cascader"),f=ge("input"),p={small:7,default:11,large:15},{t:g}=xt(),{formItem:h}=Fn(),v=ln(),{valueOnClear:m}=Au(o),{isComposing:b,handleComposition:w}=Pu({afterComposition(Oe){const Ke=Oe.target?.value;en(Ke)}}),y=M(),S=M(),k=M(),x=M(),O=M(),T=M(),I=M(),_=M(!1),N=M(!1),$=M(!1),B=M(""),K=M(""),j=M([]),W=M([]),A=M("100%"),P=C(()=>!!l["suggestion-item"]),V=C(()=>Pa(W.value.length*o.itemSize,o.itemSize,o.height)),F=C(()=>o.props.multiple?o.collapseTags?j.value.slice(0,o.maxCollapseTags):j.value:[]),H=C(()=>o.props.multiple?o.collapseTags?j.value.slice(o.maxCollapseTags):[]:[]),U=C(()=>s.style),J=C(()=>o.placeholder??g("el.cascader.placeholder")),ee=C(()=>K.value||j.value.length>0||b.value?"":J.value),ae=In(),ce=C(()=>ae.value==="small"?"small":"default"),Z=C(()=>!!o.props.multiple),de=C(()=>!o.filterable||Z.value),ue=C(()=>Z.value?K.value:B.value),Y=C(()=>O.value?.checkedNodes||[]),{wrapperRef:Q,isFocused:D,handleBlur:q}=Er(k,{disabled:v,beforeBlur(Oe){return y.value?.isFocusInsideContent(Oe)||S.value?.isFocusInsideContent(Oe)},afterBlur(){o.validateEvent&&h?.validate?.("blur").catch(ut)}}),te=C(()=>!o.clearable||v.value||$.value||!N.value&&!D.value?!1:!!Y.value.length),fe=C(()=>{const{showAllLevels:Oe,separator:Ke}=o,We=Y.value;return We.length?Z.value?"":We[0].calcText(Oe,Ke):""}),he=C(()=>h?.validateState||""),ve=C({get(){return No(o.modelValue)},set(Oe){const Ke=Oe??m.value;r(at,Ke),r(yt,Ke),o.validateEvent&&h?.validate("change").catch(ut)}}),Ie=C(()=>[d.b(),d.m(ae.value),d.is("disabled",v.value),s.class]),Le=C(()=>[f.e("icon"),"icon-arrow-down",d.is("reverse",_.value)]),_e=C(()=>d.is("focus",D.value)),ye=C(()=>y.value?.popperRef?.contentRef),Te=Oe=>{D.value&&q(new FocusEvent("blur",Oe)),be(!1)},be=Oe=>{v.value||(Oe=Oe??!_.value,Oe!==_.value&&(_.value=Oe,k.value?.input?.setAttribute("aria-expanded",`${Oe}`),Oe?(Pe(),O.value&&Ne(O.value.scrollToExpandingNode)):o.filterable&&bt(),r("visibleChange",Oe)))},Pe=()=>{Ne(()=>{y.value?.updatePopper()})},He=()=>{$.value=!1},Je=Oe=>{const{showAllLevels:Ke,separator:We}=o;return{node:Oe,key:Oe.uid,text:Oe.calcText(Ke,We),hitState:!1,closable:!v.value&&!Oe.isDisabled}},Qe=Oe=>{const Ke=Oe.node;Ke.doCheck(!1),O.value?.calculateCheckedValue(),r("removeTag",Ke.valueByOption)},lt=()=>{switch(o.showCheckedStrategy){case"child":return Y.value;case"parent":{const Oe=ie(!1),Ke=Oe.map(We=>We.value);return Oe.filter(We=>!We.parent||!Ke.includes(We.parent.value))}default:return[]}},Ze=()=>{if(!Z.value)return;const Oe=lt(),Ke=[];Oe.forEach(We=>Ke.push(Je(We))),j.value=Ke},gt=()=>{const{filterMethod:Oe,showAllLevels:Ke,separator:We}=o,Xt=O.value?.getFlattedNodes(!o.props.checkStrictly)?.filter(un=>un.isDisabled?!1:(un.calcText(Ke,We),Oe(un,ue.value)));Z.value&&j.value.forEach(un=>{un.hitState=!1}),$.value=!0,W.value=Xt,Ne(()=>{o.virtualScroll&&W.value.length>0&&I.value?.scrollToItem(0),me()}),Pe()},At=Oe=>{const Ke=T.value;return Oe?Ke?.querySelector(Oe)??void 0:Ke},zt=()=>{let Oe;$.value&&T.value?Oe=At(`.${d.e("suggestion-item")}`):Oe=O.value?.$el.querySelector(`.${d.b("node")}[tabindex="-1"]`),Oe&&(Oe.focus(),!$.value&&Oe.getAttribute("aria-haspopup")==="true"&&Oe.click())},nt=Oe=>{const Ke=At();if(!Ke)return;const We=Be(o.fitInputWidth)?`${o.fitInputWidth}px`:`${Oe}px`,Xt=On=>{o.fitInputWidth!==!1?(On.style.width=We,On.style.minWidth=""):(On.style.width="",On.style.minWidth=We)};if(Xt(Ke),o.virtualScroll){A.value=o.fitInputWidth!==!1?We:P.value?`${Oe}px`:`${Math.max(Oe,je())}px`;return}const un=At(`.${d.e("suggestion-list")}`);un&&Xt(un)},ft=()=>{if(!l.prefix)return 0;const Oe=k.value?.$el.querySelector(`.${f.e("prefix")}`);if(!Oe)return 0;const Ke=Oe.getBoundingClientRect().width;return Ke<=0?0:Ke+p[ae.value||"default"]},me=()=>{const Oe=k.value?.input,Ke=k.value?.$el;if(!Pt||!Oe||!Ke)return;T.value&&nt(Ke.getBoundingClientRect().width);const We=x.value;if(We){const Xt=j.value.length>0?`${Math.max(We.offsetHeight,u)-2}px`:`${u}px`;Oe.style.height=Xt,We.style.left=`${ft()}px`,Pe()}},je=()=>{if(P.value||!W.value.length)return 0;const Oe=document.createElement("canvas").getContext("2d");if(!Oe)return 0;const Ke=At(`.${d.e("suggestion-item")}`);if(!Ke||!Pt)return 0;const We=getComputedStyle(Ke),Xt=Number.parseFloat(We.paddingLeft)+Number.parseFloat(We.paddingRight);Oe.font=`bold ${We.fontSize} ${We.fontFamily}`;let un=0,On=!1;for(const Xn of W.value){const wa=Xn.text||"",to=Oe.measureText(wa);un=Math.max(un,to.width),Xn.checked&&!On&&(On=!0)}return un+Xt+(On?mz:0)},ie=Oe=>O.value?.getCheckedNodes(Oe),xe=Oe=>{Pe(),r("expandChange",Oe)},Ue=Oe=>{if(!b.value)switch(qt(Oe)){case Se.enter:case Se.numpadEnter:be();break;case Se.down:be(!0),Ne(zt),Oe.preventDefault();break;case Se.esc:_.value===!0&&(Oe.preventDefault(),Oe.stopPropagation(),be(!1));break;case Se.tab:be(!1);break}},et=()=>{O.value?.clearCheckedNodes(),!_.value&&o.filterable&&bt(),be(!1),r("clear")},bt=()=>{const{value:Oe}=fe;B.value=Oe,K.value=Oe},vt=Oe=>{const{checked:Ke}=Oe;Z.value?O.value?.handleCheckChange(Oe,!Ke,!1):(!Ke&&O.value?.handleCheckChange(Oe,!0,!1),be(!1))},Et=Oe=>{const Ke=Oe.closest("[data-suggestion-index]")?.dataset.suggestionIndex;if(!Ke)return-1;const We=Number.parseInt(Ke,10);return Number.isNaN(We)||We<0||We>=W.value.length?-1:We},Yt=Oe=>{const Ke=Oe.target,We=qt(Oe);switch(We){case Se.up:case Se.down:{Oe.preventDefault();const Xt=We===Se.up?-1:1;if(o.virtualScroll&&I.value){const un=Et(Ke);if(un>=0){const On=W.value.length,Xn=(un+Xt+On)%On;I.value.scrollToItem(Xn),Ne(()=>{const wa=At(`#suggestion-${W.value[Xn].uid}`);wa&&pl(wa)});return}}pl(DS(Ke,Xt,`.${d.e("suggestion-item")}[tabindex="-1"]`));break}case Se.enter:case Se.numpadEnter:Ke.click();break}},an=()=>{const Oe=j.value[j.value.length-1];c=K.value?0:c+1,!(!Oe||!c||o.collapseTags&&j.value.length>1)&&(Oe.hitState?Qe(Oe):Oe.hitState=!0)},Lt=xu(()=>{const{value:Oe}=ue;if(!Oe)return;const Ke=o.beforeFilter(Oe);qr(Ke)?Ke.then(gt).catch(()=>{}):Ke!==!1?gt():He()},C(()=>o.debounce)),en=(Oe,Ke)=>{if(!_.value&&be(!0),!Ke?.isComposing)if(Oe)Lt();else{const We=o.beforeFilter("");qr(We)&&We.catch(()=>{}),He()}},Ye=Oe=>Number.parseFloat(O$(f.cssVarName("input-height"),Oe).value)-2,Ge=()=>{k.value?.focus()},tt=()=>{k.value?.blur()};return pe($,Pe),pe([Y,v,()=>o.collapseTags,()=>o.maxCollapseTags],Ze),pe(j,()=>{Ne(()=>me())}),pe(ae,async()=>{await Ne();const Oe=k.value.input;u=Ye(Oe)||u,me()}),pe(fe,bt,{immediate:!0}),pe(()=>_.value,Oe=>{Oe&&o.props.lazy&&o.props.lazyLoad&&O.value?.loadLazyRootNodes()}),ht(()=>{const Oe=k.value.input,Ke=k.value.$el,We=Ye(Oe);u=Oe.offsetHeight||We,nn(Ke,me)}),t({getCheckedNodes:ie,cascaderPanelRef:O,togglePopperVisible:be,contentRef:ye,presentText:fe,focus:Ge,blur:tt}),(Oe,Ke)=>(E(),le(i(Wn),{ref_key:"tooltipRef",ref:y,visible:_.value,teleported:e.teleported,"popper-class":[i(d).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":a,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${i(d).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:He},{default:ne(()=>[ct((E(),L("div",{ref_key:"wrapperRef",ref:Q,class:R(Ie.value),style:ze(U.value),onClick:Ke[8]||(Ke[8]=()=>be(de.value?void 0:!0)),onKeydown:Ue,onMouseenter:Ke[9]||(Ke[9]=We=>N.value=!0),onMouseleave:Ke[10]||(Ke[10]=We=>N.value=!1)},[X(i(Un),{ref_key:"inputRef",ref:k,modelValue:B.value,"onUpdate:modelValue":Ke[1]||(Ke[1]=We=>B.value=We),placeholder:ee.value,readonly:de.value,disabled:i(v),"validate-event":!1,size:i(ae),class:R(_e.value),tabindex:Z.value&&e.filterable&&!i(v)?-1:void 0,onCompositionstart:i(w),onCompositionupdate:i(w),onCompositionend:i(w),onInput:en},ga({suffix:ne(()=>[te.value?(E(),le(i(De),{key:"clear",class:R([i(f).e("icon"),"icon-circle-close"]),onClick:Xe(et,["stop"])},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class"])):(E(),le(i(De),{key:"arrow-down",class:R(Le.value),onClick:Ke[0]||(Ke[0]=Xe(We=>be(),["stop"]))},{default:ne(()=>[X(i(qo))]),_:1},8,["class"]))]),_:2},[Oe.$slots.prefix?{name:"prefix",fn:ne(()=>[oe(Oe.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),Z.value?(E(),L("div",{key:0,ref_key:"tagWrapper",ref:x,class:R([i(d).e("tags"),i(d).is("validate",!!he.value)])},[oe(Oe.$slots,"tag",{data:j.value,deleteTag:Qe},()=>[(E(!0),L(Ve,null,kt(F.value,We=>(E(),le(i(cr),{key:We.key,type:e.tagType,size:ce.value,effect:e.tagEffect,hit:We.hitState,closable:We.closable,"disable-transitions":"",onClose:Xt=>Qe(We)},{default:ne(()=>[z("span",null,Ce(We.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&j.value.length>e.maxCollapseTags?(E(),le(i(Wn),{key:0,ref_key:"tagTooltipRef",ref:S,disabled:_.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:ne(()=>[X(i(cr),{closable:!1,size:ce.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ne(()=>[z("span",{class:R(i(d).e("tags-text"))}," + "+Ce(j.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:ne(()=>[X(i(mo),{"max-height":e.maxCollapseTagsTooltipHeight},{default:ne(()=>[z("div",{class:R(i(d).e("collapse-tags"))},[(E(!0),L(Ve,null,kt(H.value,(We,Xt)=>(E(),L("div",{key:Xt,class:R(i(d).e("collapse-tag"))},[(E(),le(i(cr),{key:We.key,class:"in-tooltip",type:e.tagType,size:ce.value,effect:e.tagEffect,hit:We.hitState,closable:We.closable,"disable-transitions":"",onClose:un=>Qe(We)},{default:ne(()=>[z("span",null,Ce(We.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):re("v-if",!0),e.filterable&&!i(v)?ct((E(),L("input",{key:1,"onUpdate:modelValue":Ke[2]||(Ke[2]=We=>K.value=We),type:"text",class:R(i(d).e("search-input")),placeholder:fe.value?"":J.value,onInput:Ke[3]||(Ke[3]=We=>en(K.value,We)),onClick:Ke[4]||(Ke[4]=Xe(We=>be(!0),["stop"])),onKeydown:cn(an,["delete"]),onCompositionstart:Ke[5]||(Ke[5]=(...We)=>i(w)&&i(w)(...We)),onCompositionupdate:Ke[6]||(Ke[6]=(...We)=>i(w)&&i(w)(...We)),onCompositionend:Ke[7]||(Ke[7]=(...We)=>i(w)&&i(w)(...We))},null,42,pz)),[[$w,K.value]]):re("v-if",!0)],2)):re("v-if",!0)],38)),[[i(Qr),Te,ye.value]])]),content:ne(()=>[Oe.$slots.header?(E(),L("div",{key:0,class:R(i(d).e("header")),onClick:Ke[11]||(Ke[11]=Xe(()=>{},["stop"]))},[oe(Oe.$slots,"header")],2)):re("v-if",!0),ct(X(i(lE),{ref_key:"cascaderPanelRef",ref:O,modelValue:ve.value,"onUpdate:modelValue":Ke[12]||(Ke[12]=We=>ve.value=We),options:e.options,props:o.props,border:!1,"render-label":Oe.$slots.default,"virtual-scroll":e.virtualScroll,"item-size":e.itemSize,height:e.height,onExpandChange:xe,onClose:Ke[13]||(Ke[13]=We=>Oe.$nextTick(()=>be(!1)))},{empty:ne(()=>[oe(Oe.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label","virtual-scroll","item-size","height"]),[[$t,!$.value]]),e.filterable?(E(),L(Ve,{key:1},[e.virtualScroll?ct((E(),L("div",{key:1,ref_key:"suggestionPanel",ref:T,class:R(i(d).e("suggestion-panel")),onKeydown:Yt},[ct(X(i(yf),{ref_key:"suggestionVirtualListRef",ref:I,height:V.value,"item-size":e.itemSize,data:W.value,total:W.value.length,"class-name":i(d).e("suggestion-list"),"inner-element":"ul","inner-width":A.value},{default:ne(({data:We,index:Xt,style:un})=>[(E(),L("li",{id:`suggestion-${We[Xt].uid}`,key:We[Xt].uid,"data-suggestion-index":Xt,class:R([i(d).e("suggestion-item"),i(d).is("checked",We[Xt].checked)]),tabindex:-1,style:ze(un),onClick:On=>vt(We[Xt])},[oe(Oe.$slots,"suggestion-item",{item:We[Xt]},()=>[z("span",null,Ce(We[Xt].text),1),We[Xt].checked?(E(),le(i(De),{key:0},{default:ne(()=>[X(i($l))]),_:1})):re("v-if",!0)])],14,vz))]),_:3},8,["height","item-size","data","total","class-name","inner-width"]),[[$t,W.value.length]]),W.value.length?re("v-if",!0):oe(Oe.$slots,"empty",{key:0},()=>[z("ul",{class:R(i(d).e("suggestion-list"))},[z("li",{class:R(i(d).e("empty-text"))},Ce(i(g)("el.cascader.noMatch")),3)],2)])],34)),[[$t,$.value]]):ct((E(),le(i(mo),{key:0,ref:We=>T.value=We?.$el,tag:"ul",class:R(i(d).e("suggestion-panel")),"wrap-class":i(d).e("suggestion-wrap"),"view-class":i(d).e("suggestion-list"),onKeydown:Yt},{default:ne(()=>[W.value.length?(E(!0),L(Ve,{key:0},kt(W.value,We=>(E(),L("li",{key:We.uid,class:R([i(d).e("suggestion-item"),i(d).is("checked",We.checked)]),tabindex:-1,onClick:Xt=>vt(We)},[oe(Oe.$slots,"suggestion-item",{item:We},()=>[z("span",null,Ce(We.text),1),We.checked?(E(),le(i(De),{key:0},{default:ne(()=>[X(i($l))]),_:1})):re("v-if",!0)])],10,hz))),128)):oe(Oe.$slots,"empty",{key:1},()=>[z("li",{class:R(i(d).e("empty-text"))},Ce(i(g)("el.cascader.noMatch")),3)])]),_:3},8,["class","wrap-class","view-class"])),[[$t,$.value]])],64)):re("v-if",!0),Oe.$slots.footer?(E(),L("div",{key:2,class:R(i(d).e("footer")),onClick:Ke[14]||(Ke[14]=Xe(()=>{},["stop"]))},[oe(Oe.$slots,"footer")],2)):re("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}}),bz=gz;const yz=st(bz),wz=Ee({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),Sz={"update:checked":e=>Wt(e),[yt]:e=>Wt(e)};var Cz=se({name:"ElCheckTag",__name:"check-tag",props:wz,emits:Sz,setup(e,{emit:t}){const n=e,a=t,o=ge("check-tag"),r=C(()=>[o.b(),o.is("checked",n.checked),o.is("disabled",n.disabled),o.m(n.type||"primary")]),s=()=>{if(n.disabled)return;const l=!n.checked;a(yt,l),a("update:checked",l)};return(l,u)=>(E(),L("span",{class:R(r.value),onClick:s},[oe(l.$slots,"default")],2))}}),kz=Cz;const Ez=st(kz),xz=Ee({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:G([Number,Object]),default:()=>fn({})},sm:{type:G([Number,Object]),default:()=>fn({})},md:{type:G([Number,Object]),default:()=>fn({})},lg:{type:G([Number,Object]),default:()=>fn({})},xl:{type:G([Number,Object]),default:()=>fn({})}}),Tz=["start","center","end","space-around","space-between","space-evenly"],Oz=["top","middle","bottom"],_z=Ee({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Tz,default:"start"},align:{type:String,values:Oz}}),iE=Symbol("rowContextKey");var Rz=se({name:"ElRow",__name:"row",props:_z,setup(e){const t=e,n=ge("row");St(iE,{gutter:C(()=>t.gutter)});const a=C(()=>{const r={};return t.gutter&&(r.marginRight=r.marginLeft=`-${t.gutter/2}px`),r}),o=C(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(r,s)=>(E(),le(it(e.tag),{class:R(o.value),style:ze(a.value)},{default:ne(()=>[oe(r.$slots,"default")]),_:3},8,["class","style"]))}}),Iz=Rz;const $z=st(Iz);var Nz=se({name:"ElCol",__name:"col",props:xz,setup(e){const t=e,{gutter:n}=$e(iE,{gutter:C(()=>0)}),a=ge("col"),o=C(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),r=C(()=>{const s=[];return["span","offset","pull","push"].forEach(l=>{const u=t[l];Be(u)&&(l==="span"?s.push(a.b(`${t[l]}`)):u>0&&s.push(a.b(`${l}-${t[l]}`)))}),["xs","sm","md","lg","xl"].forEach(l=>{Be(t[l])?s.push(a.b(`${l}-${t[l]}`)):ot(t[l])&&Object.entries(t[l]).forEach(([u,c])=>{s.push(u!=="span"?a.b(`${l}-${u}-${c}`):a.b(`${l}-${c}`))})}),n.value&&s.push(a.is("guttered")),[a.b(),s]});return(s,l)=>(E(),le(it(e.tag),{class:R(r.value),style:ze(o.value)},{default:ne(()=>[oe(s.$slots,"default")]),_:3},8,["class","style"]))}}),Mz=Nz;const Pz=st(Mz),Vy=e=>Be(e)||Ae(e)||we(e),Az=Ee({accordion:Boolean,modelValue:{type:G([Array,String,Number]),default:()=>fn([])},expandIconPosition:{type:G([String]),default:"right"},beforeCollapse:{type:G(Function)}}),Lz={[at]:Vy,[yt]:Vy},uE=Symbol("collapseContextKey"),Dz=Ee({title:{type:String,default:""},name:{type:G([String,Number]),default:void 0},icon:{type:Ut,default:sa},disabled:Boolean});var Bz=se({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=ge("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},a={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,r)=>(E(),le(Yn,pt({name:i(t).b()},aT(a)),{default:ne(()=>[oe(o.$slots,"default")]),_:3},16,["name"]))}}),Vz=Bz;const Sf=st(Vz),Fy="ElCollapse",Fz=(e,t)=>{const n=M(Dn(e.modelValue)),a=s=>{n.value=s;const l=e.accordion?n.value[0]:n.value;t(at,l),t(yt,l)},o=s=>{if(e.accordion)a([n.value[0]===s?"":s]);else{const l=[...n.value],u=l.indexOf(s);u>-1?l.splice(u,1):l.push(s),a(l)}},r=async s=>{const{beforeCollapse:l}=e;if(!l){o(s);return}const u=l(s);[qr(u),Wt(u)].includes(!0)||rn(Fy,"beforeCollapse must return type `Promise` or `boolean`"),qr(u)?u.then(c=>{c!==!1&&o(s)}).catch(c=>{jt(Fy,`some error occurred: ${c}`)}):u&&o(s)};return pe(()=>e.modelValue,()=>n.value=Dn(e.modelValue),{deep:!0}),St(uE,{activeNames:n,handleItemClick:r}),{activeNames:n,setActiveNames:a}},zz=e=>{const t=ge("collapse");return{rootKls:C(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var Hz=se({name:"ElCollapse",__name:"collapse",props:Az,emits:Lz,setup(e,{expose:t,emit:n}){const a=e,{activeNames:o,setActiveNames:r}=Fz(a,n),{rootKls:s}=zz(a);return t({activeNames:o,setActiveNames:r}),(l,u)=>(E(),L("div",{class:R(i(s))},[oe(l.$slots,"default")],2))}}),Kz=Hz;const Wz=e=>{const t=$e(uE),{namespace:n}=ge("collapse"),a=M(!1),o=M(!1),r=km(),s=C(()=>r.current++),l=C(()=>e.name??`${n.value}-id-${r.prefix}-${i(s)}`),u=C(()=>t?.activeNames.value.includes(i(l)));return{focusing:a,id:s,isActive:u,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:a.value=!0},50)},handleHeaderClick:p=>{e.disabled||p.target?.closest("input, textarea, select")||(t?.handleItemClick(i(l)),a.value=!1,o.value=!0)},handleEnterClick:p=>{p.target?.closest("input, textarea, select")||(p.preventDefault(),t?.handleItemClick(i(l)))}}},jz=(e,{focusing:t,isActive:n,id:a})=>{const o=ge("collapse"),r=C(()=>[o.b("item"),o.is("active",i(n)),o.is("disabled",e.disabled)]),s=C(()=>[o.be("item","header"),o.is("active",i(n)),{focusing:i(t)&&!e.disabled}]),l=C(()=>[o.be("item","arrow"),o.is("active",i(n))]);return{itemTitleKls:C(()=>[o.be("item","title")]),arrowKls:l,headKls:s,rootKls:r,itemWrapperKls:C(()=>o.be("item","wrap")),itemContentKls:C(()=>o.be("item","content")),scopedContentId:C(()=>o.b(`content-${i(a)}`)),scopedHeadId:C(()=>o.b(`head-${i(a)}`))}},Uz=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],qz=["id","aria-hidden","aria-labelledby"];var Yz=se({name:"ElCollapseItem",__name:"collapse-item",props:Dz,setup(e,{expose:t}){const n=e,{focusing:a,id:o,isActive:r,handleFocus:s,handleHeaderClick:l,handleEnterClick:u}=Wz(n),{arrowKls:c,headKls:d,rootKls:f,itemTitleKls:p,itemWrapperKls:g,itemContentKls:h,scopedContentId:v,scopedHeadId:m}=jz(n,{focusing:a,isActive:r,id:o});return t({isActive:r}),(b,w)=>(E(),L("div",{class:R(i(f))},[z("div",{id:i(m),class:R(i(d)),"aria-expanded":i(r),"aria-controls":i(v),"aria-describedby":i(v),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:w[0]||(w[0]=(...y)=>i(l)&&i(l)(...y)),onKeydown:w[1]||(w[1]=cn(Xe((...y)=>i(u)&&i(u)(...y),["stop"]),["space","enter"])),onFocus:w[2]||(w[2]=(...y)=>i(s)&&i(s)(...y)),onBlur:w[3]||(w[3]=y=>a.value=!1)},[z("span",{class:R(i(p))},[oe(b.$slots,"title",{isActive:i(r)},()=>[wt(Ce(e.title),1)])],2),oe(b.$slots,"icon",{isActive:i(r)},()=>[X(i(De),{class:R(i(c))},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1},8,["class"])])],42,Uz),X(i(Sf),null,{default:ne(()=>[ct(z("div",{id:i(v),role:"region",class:R(i(g)),"aria-hidden":!i(r),"aria-labelledby":i(m)},[z("div",{class:R(i(h))},[oe(b.$slots,"default")],2)],10,qz),[[$t,i(r)]])]),_:3})],2))}}),cE=Yz;const Gz=st(Kz,{CollapseItem:cE}),Xz=sn(cE),dE=Ee({modelValue:{type:G(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:{type:G(String)},disabled:Boolean,predefine:{type:G(Array)},validateEvent:{type:Boolean,default:!0},hueSliderClass:{type:G([String,Array,Object])},hueSliderStyle:{type:G([String,Array,Object,Boolean]),default:void 0}}),Jz={[at]:e=>Ae(e)||En(e)},fE=Symbol("colorCommonPickerKey"),pE=Symbol("colorPickerPanelContextKey"),hE=Ee({color:{type:G(Object),required:!0},vertical:Boolean,disabled:Boolean}),Zz=hE,zy=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Xh=(e,t)=>Math.abs(zy(e)-zy(t)),vE=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};let wp=!1;function Jh(e,t){if(!Pt)return;const n=function(r){t.drag?.(r)},a=function(r){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,wp=!1,t.end?.(r)},o=function(r){wp||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",a),document.addEventListener("touchmove",n),document.addEventListener("touchend",a),wp=!0,t.start?.(r))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const mE=(e,{key:t,minValue:n,maxValue:a})=>{const o=dt(),r=Tt(),s=Tt(),l=C(()=>e.color.get(t));function u(p){e.disabled||(p.target!==r.value&&c(p),r.value?.focus())}function c(p){if(!s.value||!r.value||e.disabled)return;const g=o.vnode.el.getBoundingClientRect(),{clientX:h,clientY:v}=vE(p);let m;if(e.vertical){let b=v-g.top;b=Math.max(r.value.offsetHeight/2,b),b=Math.min(b,g.height-r.value.offsetHeight/2),m=Math.round((b-r.value.offsetHeight/2)/(g.height-r.value.offsetHeight)*a)}else{let b=h-g.left;b=Math.max(r.value.offsetWidth/2,b),b=Math.min(b,g.width-r.value.offsetWidth/2),m=Math.round((b-r.value.offsetWidth/2)/(g.width-r.value.offsetWidth)*a)}e.color.set(t,m)}function d(p){if(e.disabled)return;const{shiftKey:g}=p,h=qt(p),v=g?10:1,m=t==="hue"?-1:1;let b=!0;switch(h){case Se.left:case Se.down:f(-v*m);break;case Se.right:case Se.up:f(v*m);break;case Se.home:e.color.set(t,t==="hue"?a:n);break;case Se.end:e.color.set(t,t==="hue"?n:a);break;case Se.pageDown:f(-4*m);break;case Se.pageUp:f(4*m);break;default:b=!1;break}b&&p.preventDefault()}function f(p){let g=l.value+p;g=ga?a:g,e.color.set(t,g)}return{thumb:r,bar:s,currentValue:l,handleDrag:c,handleClick:u,handleKeydown:d}},gE=(e,{namespace:t,maxValue:n,bar:a,thumb:o,currentValue:r,handleDrag:s,getBackground:l})=>{const u=dt(),c=ge(t),d=M(0),f=M(0),p=M();function g(){if(!o.value||e.vertical)return 0;const y=u.vnode.el,S=r.value;return y?Math.round(S*(y.offsetWidth-o.value.offsetWidth/2)/n):0}function h(){if(!o.value)return 0;const y=u.vnode.el;if(!e.vertical)return 0;const S=r.value;return y?Math.round(S*(y.offsetHeight-o.value.offsetHeight/2)/n):0}function v(){d.value=g(),f.value=h(),p.value=l?.()}ht(()=>{if(!a.value||!o.value)return;const y={drag:S=>{s(S)},end:S=>{s(S)}};Jh(a.value,y),Jh(o.value,y),v()}),pe(r,()=>v()),pe(()=>e.color.value,()=>v());const m=C(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),b=C(()=>c.e("bar")),w=C(()=>c.e("thumb"));return{rootKls:m,barKls:b,barStyle:C(()=>({background:p.value})),thumbKls:w,thumbStyle:C(()=>({left:pn(d.value),top:pn(f.value)})),thumbLeft:d,thumbTop:f,update:v}},Qz=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],Hy=0,Sp=100;var e9=se({name:"ElColorAlphaSlider",__name:"alpha-slider",props:hE,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:r,handleDrag:s,handleClick:l,handleKeydown:u}=mE(n,{key:"alpha",minValue:Hy,maxValue:Sp}),{rootKls:c,barKls:d,barStyle:f,thumbKls:p,thumbStyle:g,update:h}=gE(n,{namespace:"color-alpha-slider",maxValue:Sp,currentValue:a,bar:o,thumb:r,handleDrag:s,getBackground:w}),{t:v}=xt(),m=C(()=>v("el.colorpicker.alphaLabel")),b=C(()=>v("el.colorpicker.alphaDescription",{alpha:a.value,color:n.color.value}));function w(){if(n.color&&n.color.value){const{r:y,g:S,b:k}=n.color.toRgb();return`linear-gradient(to right, rgba(${y}, ${S}, ${k}, 0) 0%, rgba(${y}, ${S}, ${k}, 1) 100%)`}return""}return t({update:h,bar:o,thumb:r}),(y,S)=>(E(),L("div",{class:R(i(c))},[z("div",{ref_key:"bar",ref:o,class:R(i(d)),style:ze(i(f)),onClick:S[0]||(S[0]=(...k)=>i(l)&&i(l)(...k))},null,6),z("div",{ref_key:"thumb",ref:r,class:R(i(p)),style:ze(i(g)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":Hy,"aria-valuemax":Sp,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:S[1]||(S[1]=(...k)=>i(u)&&i(u)(...k))},null,46,Qz)],2))}}),t9=e9;const n9=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],Ky=0,Cp=360;var a9=se({name:"ElColorHueSlider",__name:"hue-slider",props:Zz,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:r,handleDrag:s,handleClick:l,handleKeydown:u}=mE(n,{key:"hue",minValue:Ky,maxValue:Cp}),{rootKls:c,barKls:d,thumbKls:f,thumbStyle:p,thumbTop:g,update:h}=gE(n,{namespace:"color-hue-slider",maxValue:Cp,currentValue:a,bar:o,thumb:r,handleDrag:s}),{t:v}=xt(),m=C(()=>v("el.colorpicker.hueLabel")),b=C(()=>v("el.colorpicker.hueDescription",{hue:a.value,color:n.color.value}));return t({bar:o,thumb:r,thumbTop:g,update:h}),(w,y)=>(E(),L("div",{class:R(i(c))},[z("div",{ref_key:"bar",ref:o,class:R(i(d)),onClick:y[0]||(y[0]=(...S)=>i(l)&&i(l)(...S))},null,2),z("div",{ref_key:"thumb",ref:r,class:R(i(f)),style:ze(i(p)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":Ky,"aria-valuemax":Cp,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:y[1]||(y[1]=(...S)=>i(u)&&i(u)(...S))},null,46,n9)],2))}}),o9=a9;const r9=Ee({colors:{type:G(Array),required:!0},color:{type:G(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var bd=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new gn,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const t in e)Nt(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(arguments.length===1&&typeof e=="object"){for(const n in e)Nt(e,n)&&this.set(n,e[n]);return}this[`_${e}`]=t,this._isValid=!0,this.doOnChange()}get(e){return["hue","saturation","value","alpha"].includes(e)?Math.round(this[`_${e}`]):this[`_${e}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(e){const t=new gn(e);if(this._isValid=t.isValid,t.isValid){const{h:n,s:a,v:o,a:r}=t.toHsv();this._hue=n,this._saturation=a*100,this._value=o*100,this._alpha=r*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(e){const t=new gn({h:e._hue,s:e._saturation/100,v:e._value/100,a:e._alpha/100});return this._tiny.equals(t)}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:a,format:o,enableAlpha:r}=this;let s=o||(r?"rgb":"hex");o==="hex"&&r&&(s="hex8"),this._tiny=new gn({h:e,s:t/100,v:n/100,a:a/100}),this.value=this._isValid?this._tiny.toString(s):""}};const s9=e=>{const{currentColor:t}=$e(pE),n=M(o(e.colors,e.color));pe(()=>t.value,r=>{const s=new bd({value:r,enableAlpha:e.enableAlpha});n.value.forEach(l=>{l.selected=s.compare(l)})}),la(()=>{n.value=o(e.colors,e.color)});function a(r){e.color.fromString(e.colors[r])}function o(r,s){return r.map(l=>{const u=new bd({value:l,enableAlpha:e.enableAlpha});return u.selected=u.compare(s),u})}return{rgbaColors:n,handleSelect:a}},l9=e=>{const t=ge("color-predefine"),n=C(()=>[t.b(),t.is("disabled",e.disabled)]),a=C(()=>t.e("colors"));function o(r){return[t.e("color-selector"),t.is("alpha",r.get("alpha")<100),{selected:r.selected}]}return{rootKls:n,colorsKls:a,colorSelectorKls:o}},i9=["disabled","aria-label","onClick"];var u9=se({name:"ElColorPredefine",__name:"predefine",props:r9,setup(e){const t=e,{rgbaColors:n,handleSelect:a}=s9(t),{rootKls:o,colorsKls:r,colorSelectorKls:s}=l9(t),{t:l}=xt(),u=c=>l("el.colorpicker.predefineDescription",{value:c});return(c,d)=>(E(),L("div",{class:R(i(o))},[z("div",{class:R(i(r))},[(E(!0),L(Ve,null,kt(i(n),(f,p)=>(E(),L("button",{key:e.colors[p],type:"button",disabled:e.disabled,"aria-label":u(f.value),class:R(i(s)(f)),onClick:g=>i(a)(p)},[z("div",{style:ze({backgroundColor:f.value})},null,4)],10,i9))),128))],2)],2))}}),c9=u9;const d9=Ee({color:{type:G(Object),required:!0},disabled:Boolean}),f9=e=>{const t=dt(),n=M(),a=M(0),o=M(0),r=M("hsl(0, 100%, 50%)"),s=C(()=>e.color.get("saturation")),l=C(()=>e.color.get("value")),u=C(()=>e.color.get("hue"));function c(h){e.disabled||(h.target!==n.value&&d(h),n.value?.focus({preventScroll:!0}))}function d(h){if(e.disabled)return;const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:b}=vE(h);let w=m-v.left,y=b-v.top;w=Math.max(0,w),w=Math.min(w,v.width),y=Math.max(0,y),y=Math.min(y,v.height),o.value=w,a.value=y,e.color.set({saturation:w/v.width*100,value:100-y/v.height*100})}function f(h){if(e.disabled)return;const{shiftKey:v}=h,m=qt(h),b=v?10:1;let w=!0;switch(m){case Se.left:p(-b);break;case Se.right:p(b);break;case Se.up:g(b);break;case Se.down:g(-b);break;default:w=!1;break}w&&h.preventDefault()}function p(h){let v=s.value+h;v=v<0?0:v>100?100:v,e.color.set("saturation",v)}function g(h){let v=l.value+h;v=v<0?0:v>100?100:v,e.color.set("value",v)}return{cursorRef:n,cursorTop:a,cursorLeft:o,background:r,saturation:s,brightness:l,hue:u,handleClick:c,handleDrag:d,handleKeydown:f}},p9=(e,{cursorTop:t,cursorLeft:n,background:a,handleDrag:o})=>{const r=dt(),s=ge("color-svpanel");function l(){const u=e.color.get("saturation"),c=e.color.get("value"),{clientWidth:d,clientHeight:f}=r.vnode.el;n.value=u*d/100,t.value=(100-c)*f/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}return ht(()=>{Jh(r.vnode.el,{drag:u=>{o(u)},end:u=>{o(u)}}),l()}),pe([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>l()),{rootKls:C(()=>s.b()),cursorKls:C(()=>s.e("cursor")),rootStyle:C(()=>({backgroundColor:a.value})),cursorStyle:C(()=>({top:pn(t.value),left:pn(n.value)})),update:l}},h9=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var v9=se({name:"ElSvPanel",__name:"sv-panel",props:d9,setup(e,{expose:t}){const n=e,{cursorRef:a,cursorTop:o,cursorLeft:r,background:s,saturation:l,brightness:u,handleClick:c,handleDrag:d,handleKeydown:f}=f9(n),{rootKls:p,cursorKls:g,rootStyle:h,cursorStyle:v,update:m}=p9(n,{cursorTop:o,cursorLeft:r,background:s,handleDrag:d}),{t:b}=xt(),w=C(()=>b("el.colorpicker.svLabel")),y=C(()=>b("el.colorpicker.svDescription",{saturation:l.value,brightness:u.value,color:n.color.value}));return t({update:m}),(S,k)=>(E(),L("div",{class:R(i(p)),style:ze(i(h)),onClick:k[1]||(k[1]=(...x)=>i(c)&&i(c)(...x))},[z("div",{ref_key:"cursorRef",ref:a,class:R(i(g)),style:ze(i(v)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":w.value,"aria-valuenow":`${i(l)},${i(u)}`,"aria-valuetext":y.value,onKeydown:k[0]||(k[0]=(...x)=>i(f)&&i(f)(...x))},null,46,h9)],6))}}),m9=v9;const bE=(e,t)=>{const n=Dt(new bd({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return pe(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(at,n.value)}),{color:n}};var g9=se({name:"ElColorPickerPanel",__name:"color-picker-panel",props:dE,emits:Jz,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("color-picker-panel"),{formItem:s}=Fn(),l=ln(),u=M(),c=M(),d=M(),f=M(),p=M(""),{color:g}=$e(fE,()=>bE(a,o),!0);function h(){g.fromString(p.value),g.value!==p.value&&(p.value=g.value)}function v(){a.validateEvent&&s?.validate?.("blur").catch(ut)}function m(){u.value?.update(),c.value?.update(),d.value?.update()}return ht(()=>{a.modelValue&&(p.value=g.value),Ne(m)}),pe(()=>a.modelValue,b=>{b!==g.value&&(b?g.fromString(b):g.clear())}),pe(()=>g.value,b=>{o(at,b),p.value=b,a.validateEvent&&s?.validate("change").catch(ut)}),St(pE,{currentColor:C(()=>g.value)}),t({color:g,inputRef:f,update:m}),(b,w)=>(E(),L("div",{class:R([i(r).b(),i(r).is("disabled",i(l)),i(r).is("border",e.border)]),onFocusout:v},[z("div",{class:R(i(r).e("wrapper"))},[X(o9,{ref_key:"hueRef",ref:u,color:i(g),vertical:"",disabled:i(l),class:R(["hue-slider",e.hueSliderClass]),style:ze(e.hueSliderStyle)},null,8,["color","disabled","class","style"]),X(m9,{ref_key:"svRef",ref:c,color:i(g),disabled:i(l)},null,8,["color","disabled"])],2),e.showAlpha?(E(),le(t9,{key:0,ref_key:"alphaRef",ref:d,color:i(g),disabled:i(l)},null,8,["color","disabled"])):re("v-if",!0),e.predefine?(E(),le(c9,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:i(g),colors:e.predefine,disabled:i(l)},null,8,["enable-alpha","color","colors","disabled"])):re("v-if",!0),z("div",{class:R(i(r).e("footer"))},[X(i(Un),{ref_key:"inputRef",ref:f,modelValue:p.value,"onUpdate:modelValue":w[0]||(w[0]=y=>p.value=y),"validate-event":!1,size:"small",disabled:i(l),onChange:h},null,8,["modelValue","disabled"]),oe(b.$slots,"footer")],2)],34))}}),b9=g9;const yE=st(b9),y9=Ee({persistent:{type:Boolean,default:!0},modelValue:{type:G(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:{type:G(String)},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:Nn,popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,tabindex:{type:[String,Number],default:0},teleported:Kt.teleported,appendTo:Kt.appendTo,predefine:{type:G(Array)},validateEvent:{type:Boolean,default:!0},...zs,...ia(["ariaLabel"])}),w9={[at]:e=>Ae(e)||En(e),[yt]:e=>Ae(e)||En(e),activeChange:e=>Ae(e)||En(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},S9=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var C9=se({name:"ElColorPicker",__name:"color-picker",props:y9,emits:w9,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:r}=xt(),s=ge("color"),{formItem:l}=Fn(),u=In(),c=ln(),{valueOnClear:d,isEmptyValue:f}=Au(a,null),p=bE(a,o),{inputId:g,isLabeledByFormItem:h}=Ia(a,{formItemContext:l}),v=M(),m=M(),b=M(),w=M(!1),y=M(!1);let S=!0;const{isFocused:k,handleFocus:x,handleBlur:O}=Er(m,{disabled:c,beforeBlur(Y){return v.value?.isFocusInsideContent(Y)},afterBlur(){W(!1),F(),a.validateEvent&&l?.validate?.("blur").catch(ut)}}),T=m$(()=>b.value?.color??p.color),I=C(()=>hr(a,Object.keys(dE))),_=C(()=>!a.modelValue&&!y.value?"transparent":j(T,a.showAlpha)),N=C(()=>!a.modelValue&&!y.value?"":T.value),$=C(()=>h.value?void 0:a.ariaLabel||r("el.colorpicker.defaultLabel")),B=C(()=>h.value?l?.labelId:void 0),K=C(()=>[s.b("picker"),s.is("disabled",c.value),s.bm("picker",u.value),s.is("focused",k.value)]);function j(Y,Q){const{r:D,g:q,b:te,a:fe}=Y.toRgb();return Q?`rgba(${D}, ${q}, ${te}, ${fe})`:`rgb(${D}, ${q}, ${te})`}function W(Y){w.value=Y}const A=Ho(W,100,{leading:!0});function P(){c.value||W(!0)}function V(){A(!1),F()}function F(){Ne(()=>{a.modelValue?T.fromString(a.modelValue):(T.value="",Ne(()=>{y.value=!1}))})}function H(){c.value||(w.value&&F(),A(!w.value))}function U(){const Y=f(T.value)?d.value:T.value;o(at,Y),o(yt,Y),a.validateEvent&&l?.validate("change").catch(ut),A(!1),Ne(()=>{const Q=new bd({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});T.compare(Q)||F()})}function J(){A(!1),o(at,d.value),o(yt,d.value),a.modelValue!==d.value&&a.validateEvent&&l?.validate("change").catch(ut),F(),o("clear")}function ee(){b?.value?.inputRef?.focus()}function ae(){w.value&&(V(),k.value&&de())}function ce(Y){Y.preventDefault(),Y.stopPropagation(),W(!1),F()}function Z(Y){switch(qt(Y)){case Se.enter:case Se.numpadEnter:case Se.space:Y.preventDefault(),Y.stopPropagation(),P();break;case Se.esc:ce(Y);break}}function de(){m.value.focus()}function ue(){m.value.blur()}return pe(()=>N.value,Y=>{S&&o("activeChange",Y),S=!0}),pe(()=>T.value,()=>{!a.modelValue&&!y.value&&(y.value=!0)}),pe(()=>a.modelValue,Y=>{Y?Y&&Y!==T.value&&(S=!1,T.fromString(Y)):y.value=!1}),pe(()=>w.value,()=>{b.value&&Ne(b.value.update)}),St(fE,p),t({color:T,show:P,hide:V,focus:de,blur:ue}),(Y,Q)=>(E(),le(i(Wn),{ref_key:"popper",ref:v,visible:w.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[i(s).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${i(s).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:Q[2]||(Q[2]=D=>W(!1))},{content:ne(()=>[ct((E(),le(i(yE),pt({ref_key:"pickerPanelRef",ref:b},I.value,{border:!1,"validate-event":!1,onKeydown:cn(ce,["esc"])}),{footer:ne(()=>[z("div",null,[e.clearable?(E(),le(i(Bn),{key:0,class:R(i(s).be("footer","link-btn")),text:"",size:"small",onClick:J},{default:ne(()=>[wt(Ce(i(r)("el.colorpicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),X(i(Bn),{plain:"",size:"small",class:R(i(s).be("footer","btn")),onClick:U},{default:ne(()=>[wt(Ce(i(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[i(Qr),ae,m.value]])]),default:ne(()=>[z("div",pt({id:i(g),ref_key:"triggerRef",ref:m},Y.$attrs,{class:K.value,role:"button","aria-label":$.value,"aria-labelledby":B.value,"aria-description":i(r)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":i(c),tabindex:i(c)?void 0:e.tabindex,onKeydown:Z,onFocus:Q[0]||(Q[0]=(...D)=>i(x)&&i(x)(...D)),onBlur:Q[1]||(Q[1]=(...D)=>i(O)&&i(O)(...D))}),[z("div",{class:R(i(s).be("picker","trigger")),onClick:H},[z("span",{class:R([i(s).be("picker","color"),i(s).is("alpha",e.showAlpha)])},[z("span",{class:R(i(s).be("picker","color-inner")),style:ze({backgroundColor:_.value})},[ct(X(i(De),{class:R([i(s).be("picker","icon"),i(s).is("icon-arrow-down")])},{default:ne(()=>[X(i(qo))]),_:1},8,["class"]),[[$t,e.modelValue||y.value]]),ct(X(i(De),{class:R([i(s).be("picker","empty"),i(s).is("icon-close")])},{default:ne(()=>[X(i(Qa))]),_:1},8,["class"]),[[$t,!e.modelValue&&!y.value]])],6)],2)],2)],16,S9)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}}),k9=C9;const E9=st(k9);var x9=se({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=wn(),a=ge("container"),o=C(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(r=>{const s=r.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(r,s)=>(E(),L("section",{class:R([i(a).b(),i(a).is("vertical",o.value)])},[oe(r.$slots,"default")],2))}}),T9=x9,O9=se({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ge("aside"),a=C(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,r)=>(E(),L("aside",{class:R(i(n).b()),style:ze(a.value)},[oe(o.$slots,"default")],6))}}),wE=O9,_9=se({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ge("footer"),a=C(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,r)=>(E(),L("footer",{class:R(i(n).b()),style:ze(a.value)},[oe(o.$slots,"default")],6))}}),SE=_9,R9=se({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ge("header"),a=C(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,r)=>(E(),L("header",{class:R(i(n).b()),style:ze(a.value)},[oe(o.$slots,"default")],6))}}),CE=R9,I9=se({name:"ElMain",__name:"main",setup(e){const t=ge("main");return(n,a)=>(E(),L("main",{class:R(i(t).b())},[oe(n.$slots,"default")],2))}}),kE=I9;const $9=st(T9,{Aside:wE,Footer:SE,Header:CE,Main:kE}),N9=sn(wE),M9=sn(SE),P9=sn(CE),A9=sn(kE),L9=Ee({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:G([Number,Object]),default:0},valueStyle:{type:G([String,Object,Array,Boolean]),default:void 0}}),D9={finish:()=>!0,[yt]:e=>Be(e)},B9=Ee({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:G([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:G([String,Object,Array,Boolean]),default:void 0}});var V9=se({name:"ElStatistic",__name:"statistic",props:B9,setup(e,{expose:t}){const n=e,a=ge("statistic"),o=C(()=>{const{value:r,formatter:s,precision:l,decimalSeparator:u,groupSeparator:c}=n;if(Fe(s))return s(r);if(!Be(r)||Number.isNaN(r))return r;let[d,f=""]=String(r).split(".");return f=f.padEnd(l,"0").slice(0,l>0?l:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:o}),(r,s)=>(E(),L("div",{class:R(i(a).b())},[r.$slots.title||e.title?(E(),L("div",{key:0,class:R(i(a).e("head"))},[oe(r.$slots,"title",{},()=>[wt(Ce(e.title),1)])],2)):re("v-if",!0),z("div",{class:R(i(a).e("content"))},[r.$slots.prefix||e.prefix?(E(),L("div",{key:0,class:R(i(a).e("prefix"))},[oe(r.$slots,"prefix",{},()=>[z("span",null,Ce(e.prefix),1)])],2)):re("v-if",!0),z("span",{class:R(i(a).e("number")),style:ze(e.valueStyle)},Ce(o.value),7),r.$slots.suffix||e.suffix?(E(),L("div",{key:1,class:R(i(a).e("suffix"))},[oe(r.$slots,"suffix",{},()=>[z("span",null,Ce(e.suffix),1)])],2)):re("v-if",!0)],2)],2))}}),F9=V9;const EE=st(F9),z9=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],Wy=e=>Be(e)?new Date(e).getTime():e.valueOf(),jy=(e,t)=>{let n=e;return z9.reduce((a,[o,r])=>{const s=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(s.test(a)){const l=Math.floor(n/r);return n-=l*r,a.replace(s,u=>String(l).padStart(u.length,"0"))}return a},t).replace(/\[([^\]]*)]/g,"$1")};var H9=se({name:"ElCountdown",__name:"countdown",props:L9,emits:D9,setup(e,{expose:t,emit:n}){const a=e,o=n;let r;const s=M(0),l=C(()=>jy(s.value,a.format)),u=f=>jy(f,a.format),c=()=>{r&&(fo(r),r=void 0)},d=()=>{const f=Wy(a.value),p=()=>{let g=f-Date.now();o(yt,g),g<=0?(g=0,c(),o("finish")):r=Ra(p),s.value=g};r=Ra(p)};return ht(()=>{s.value=Wy(a.value)-Date.now(),pe(()=>[a.value,a.format],()=>{c(),d()},{immediate:!0})}),Vt(()=>{c()}),t({displayValue:l}),(f,p)=>(E(),le(i(EE),{value:s.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:u},ga({_:2},[kt(f.$slots,(g,h)=>({name:h,fn:ne(()=>[oe(f.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}}),K9=H9;const W9=st(K9),j9=Ee({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:G([Date,Array,String,Number]),default:""},defaultValue:{type:G([Date,Array])},defaultTime:{type:G([Date,Array])},isRange:Boolean,...Fm,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:G(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),Xm=Symbol("rootPickerContextKey"),Vu="ElIsDefaultFormat",U9=["date","dates","year","years","month","months","week","range"],Jm=Ee({cellClassName:{type:G(Function)},disabledDate:{type:G(Function)},date:{type:G(Object),required:!0},minDate:{type:G(Object)},maxDate:{type:G(Object)},parsedValue:{type:G([Object,Array])},rangeState:{type:G(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),xE=Ee({type:{type:G(String),required:!0,values:RO},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),Zm=Ee({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:G(Array)},singlePanel:Boolean}),Qm=e=>({type:String,values:U9,default:e}),q9=Ee({...xE,parsedValue:{type:G([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),iu=e=>{if(!we(e))return!1;const[t,n]=e;return rt.isDayjs(t)&&rt.isDayjs(n)&&rt(t).isValid()&&rt(n).isValid()&&t.isSameOrBefore(n)},Cf=(e,{lang:t,step:n=1,unit:a,unlinkPanels:o})=>{let r;if(we(e)){let[s,l]=e.map(u=>rt(u).locale(t));return o||(l=s.add(n,a)),[s,l]}else e?r=rt(e):r=rt();return r=r.locale(t),[r,r.add(n,a)]},Y9=(e,t,{columnIndexOffset:n,startDate:a,nextEndDate:o,now:r,unit:s,relativeDateGetter:l,setCellMetadata:u,setRowMetadata:c})=>{for(let d=0;d{const o=rt().locale(a).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second());return jr(o.daysInMonth()).map(r=>o.add(r,"day").toDate())},Nl=(e,t,n,a,o)=>{const r=rt().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),s=yd(e,t,n,a).find(l=>!o?.(l));return s?rt(s).locale(a):r.locale(a)},wd=(e,t,n)=>{const a=e.year();if(!n?.(e.toDate()))return e.locale(t);const o=e.month();if(!yd(e,a,o,t).every(n))return Nl(e,a,o,t,n);for(let r=0;r<12;r++)if(!yd(e,a,r,t).every(n))return Nl(e,a,r,t,n);return e},Ml=(e,t,n,a)=>{if(we(e))return e.map(o=>Ml(o,t,n,a));if(Ae(e)){const o=a?.value?rt(e):rt(e,t);if(!o.isValid())return o}return rt(e,t).locale(n)},G9=Ee({...Jm,showWeekNumber:Boolean,selectionMode:Qm("date")}),X9=["changerange","pick","select"],Sd=(e="")=>["normal","today"].includes(e),J9=(e,t)=>{const{lang:n}=xt(),a=M(),o=M(),r=M(),s=M(),l=M([[],[],[],[],[],[]]);let u=!1;const c=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(V=>V.toLowerCase()),f=C(()=>c>3?7-c:-c),p=C(()=>{const V=e.date.startOf("month");return V.subtract(V.day()||7,"day")}),g=C(()=>d.concat(d).slice(c,c+7)),h=C(()=>Qc(i(S)).some(V=>V.isCurrent)),v=C(()=>{const V=e.date.startOf("month");return{startOfMonthDay:V.day()||7,dateCountOfMonth:V.daysInMonth(),dateCountOfLastMonth:V.subtract(1,"month").daysInMonth()}}),m=C(()=>e.selectionMode==="dates"?aa(e.parsedValue):[]),b=(V,{count:F,rowIndex:H,columnIndex:U})=>{const{startOfMonthDay:J,dateCountOfMonth:ee,dateCountOfLastMonth:ae}=i(v),ce=i(f);if(H>=0&&H<=1){const Z=J+ce<0?7+J+ce:J+ce;if(U+H*7>=Z)return V.text=F,!0;V.text=ae-(Z-U%7)+1+H*7,V.type="prev-month"}else return F<=ee?V.text=F:(V.text=F-ee,V.type="next-month"),!0;return!1},w=(V,{columnIndex:F,rowIndex:H},U)=>{const{disabledDate:J,cellClassName:ee}=e,ae=i(m),ce=b(V,{count:U,rowIndex:H,columnIndex:F}),Z=V.dayjs.toDate();return V.selected=ae.find(de=>de.isSame(V.dayjs,"day")),V.isSelected=!!V.selected,V.isCurrent=x(V),V.disabled=J?.(Z),V.customClass=ee?.(Z),ce},y=V=>{if(e.selectionMode==="week"){const[F,H]=e.showWeekNumber?[1,7]:[0,6],U=P(V[F+1]);V[F].inRange=U,V[F].start=U,V[H].inRange=U,V[H].end=U}},S=C(()=>{const{minDate:V,maxDate:F,rangeState:H,showWeekNumber:U}=e,J=i(f),ee=i(l),ae="day";let ce=1;if(Y9({row:6,column:7},ee,{startDate:V,columnIndexOffset:U?1:0,nextEndDate:H.endDate||F||H.selecting&&V||null,now:rt().locale(i(n)).startOf(ae),unit:ae,relativeDateGetter:Z=>i(p).add(Z-J,ae),setCellMetadata:(...Z)=>{w(...Z,ce)&&(ce+=1)},setRowMetadata:y}),U)for(let Z=0;Z<6;Z++)ee[Z][1].dayjs&&(ee[Z][0]={type:"week",text:ee[Z][1].dayjs.week()});return ee});pe(()=>e.date,async()=>{i(a)?.contains(document.activeElement)&&(await Ne(),await k())});const k=async()=>i(o)?.focus(),x=V=>e.selectionMode==="date"&&Sd(V.type)&&O(V,e.parsedValue),O=(V,F)=>F?rt(F).locale(i(n)).isSame(e.date.date(Number(V.text)),"day"):!1,T=(V,F)=>{const H=i(v).startOfMonthDay,U=i(f),J=H+U<0?7+H+U:H+U,ee=V*7+(F-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(J,"day").add(ee,"day")},I=V=>{if(!e.rangeState.selecting)return;let F=V.target;if(F.tagName==="SPAN"&&(F=F.parentNode?.parentNode),F.tagName==="DIV"&&(F=F.parentNode),F.tagName!=="TD")return;const H=F.parentNode.rowIndex-1,U=F.cellIndex;i(S)[H][U].disabled||(H!==i(r)||U!==i(s))&&(r.value=H,s.value=U,t("changerange",{selecting:!0,endDate:T(H,U)}))},_=V=>!i(h)&&V?.text===1&&Sd(V.type)||V.isCurrent,N=V=>{u||i(h)||e.selectionMode!=="date"||A(V,!0)},$=V=>{V.target.closest("td")&&(u=!0)},B=V=>{V.target.closest("td")&&(u=!1)},K=V=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:V,maxDate:null}),t("select",!0)):(V>=e.minDate?t("pick",{minDate:e.minDate,maxDate:V}):t("pick",{minDate:V,maxDate:e.minDate}),t("select",!1))},j=V=>{const F=V.week(),H=`${V.year()}w${F}`;t("pick",{year:V.year(),week:F,value:H,date:V.startOf("week")})},W=(V,F)=>{t("pick",F?aa(e.parsedValue).filter(H=>H?.valueOf()!==V.valueOf()):aa(e.parsedValue).concat([V]))},A=(V,F=!1)=>{if(e.disabled)return;const H=V.target.closest("td");if(!H)return;const U=H.parentNode.rowIndex-1,J=H.cellIndex,ee=i(S)[U][J];if(ee.disabled||ee.type==="week")return;const ae=T(U,J);switch(e.selectionMode){case"range":K(ae);break;case"date":t("pick",ae,F);break;case"week":j(ae);break;case"dates":W(ae,!!ee.selected);break}},P=V=>{if(e.selectionMode!=="week")return!1;let F=e.date.startOf("day");if(V.type==="prev-month"&&(F=F.subtract(1,"month")),V.type==="next-month"&&(F=F.add(1,"month")),F=F.date(Number.parseInt(V.text,10)),e.parsedValue&&!we(e.parsedValue)){const H=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(H,"day").isSame(F,"day")}return!1};return{WEEKS:g,rows:S,tbodyRef:a,currentCellRef:o,focus:k,isCurrent:x,isWeekActive:P,isSelectedCell:_,handlePickDate:A,handleMouseUp:B,handleMouseDown:$,handleMouseMove:I,handleFocus:N}},Z9=(e,{isCurrent:t,isWeekActive:n})=>{const a=ge("date-table"),{t:o}=xt(),r=C(()=>[a.b(),a.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),s=C(()=>o("el.datepicker.dateTablePrompt")),l=c=>{const d=[];return Sd(c.type)&&!c.disabled?(d.push("available"),c.type==="today"&&d.push("today")):d.push(c.type),t(c)&&d.push("current"),c.inRange&&(Sd(c.type)||e.selectionMode==="week")&&(d.push("in-range"),c.start&&d.push("start-date"),c.end&&d.push("end-date")),(c.disabled||e.disabled)&&d.push("disabled"),c.selected&&d.push("selected"),c.customClass&&d.push(c.customClass),d.join(" ")},u=c=>[a.e("row"),{current:n(c)}];return{tableKls:r,tableLabel:s,weekHeaderClass:a.e("week-header"),getCellClasses:l,getRowKls:u,t:o}},Q9=Ee({cell:{type:G(Object)}});var eg=se({name:"ElDatePickerCell",props:Q9,setup(e){const t=ge("date-table-cell"),{slots:n}=$e(Xm);return()=>{const{cell:a}=e;return oe(n,"default",{...a},()=>[X("div",{class:t.b()},[X("span",{class:t.e("text")},[a?.renderText??a?.text])])])}}});const eH=["aria-label"],tH=["aria-label"],nH=["aria-current","aria-selected","tabindex","aria-disabled"];var aH=se({__name:"basic-date-table",props:G9,emits:X9,setup(e,{expose:t,emit:n}){const a=e,{WEEKS:o,rows:r,tbodyRef:s,currentCellRef:l,focus:u,isCurrent:c,isWeekActive:d,isSelectedCell:f,handlePickDate:p,handleMouseUp:g,handleMouseDown:h,handleMouseMove:v,handleFocus:m}=J9(a,n),{tableLabel:b,tableKls:w,getCellClasses:y,getRowKls:S,weekHeaderClass:k,t:x}=Z9(a,{isCurrent:c,isWeekActive:d});let O=!1;return Vt(()=>{O=!0}),t({focus:u}),(T,I)=>(E(),L("table",{"aria-label":i(b),class:R(i(w)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:I[1]||(I[1]=(..._)=>i(p)&&i(p)(..._)),onMousemove:I[2]||(I[2]=(..._)=>i(v)&&i(v)(..._)),onMousedown:I[3]||(I[3]=(..._)=>i(h)&&i(h)(..._)),onMouseup:I[4]||(I[4]=(..._)=>i(g)&&i(g)(..._))},[z("tbody",{ref_key:"tbodyRef",ref:s},[z("tr",null,[T.showWeekNumber?(E(),L("th",{key:0,scope:"col",class:R(i(k))},null,2)):re("v-if",!0),(E(!0),L(Ve,null,kt(i(o),(_,N)=>(E(),L("th",{key:N,"aria-label":i(x)("el.datepicker.weeksFull."+_),scope:"col"},Ce(i(x)("el.datepicker.weeks."+_)),9,tH))),128))]),(E(!0),L(Ve,null,kt(i(r),(_,N)=>(E(),L("tr",{key:N,class:R(i(S)(T.showWeekNumber?_[2]:_[1]))},[(E(!0),L(Ve,null,kt(_,($,B)=>(E(),L("td",{key:`${N}.${B}`,ref_for:!0,ref:K=>!i(O)&&i(f)($)&&(l.value=K),class:R(i(y)($)),"aria-current":$.isCurrent?"date":void 0,"aria-selected":$.isCurrent,tabindex:T.disabled?void 0:i(f)($)?0:-1,"aria-disabled":T.disabled,onFocus:I[0]||(I[0]=(...K)=>i(m)&&i(m)(...K))},[X(i(eg),{cell:$},null,8,["cell"])],42,nH))),128))],2))),128))],512)],42,eH))}}),Zh=aH;const oH=Ee({...Jm,selectionMode:Qm("month")}),rH=["aria-label"],sH=["aria-selected","aria-label","tabindex","onKeydown"];var lH=se({__name:"basic-month-table",props:oH,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("month-table"),{t:s,lang:l}=xt(),u=M(),c=M(),d=M(a.date.locale("en").localeData().monthsShort().map(S=>S.toLowerCase())),f=M([[],[],[]]),p=M(),g=M(),h=C(()=>{const S=f.value,k=rt().locale(l.value).startOf("month");for(let x=0;x<3;x++){const O=S[x];for(let T=0;T<4;T++){const I=O[T]||(O[T]={row:x,column:T,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});I.type="normal";const _=x*4+T,N=a.date.startOf("year").month(_),$=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;I.inRange=!!(a.minDate&&N.isSameOrAfter(a.minDate,"month")&&$&&N.isSameOrBefore($,"month"))||!!(a.minDate&&N.isSameOrBefore(a.minDate,"month")&&$&&N.isSameOrAfter($,"month")),a.minDate?.isSameOrAfter($)?(I.start=!!($&&N.isSame($,"month")),I.end=a.minDate&&N.isSame(a.minDate,"month")):(I.start=!!(a.minDate&&N.isSame(a.minDate,"month")),I.end=!!($&&N.isSame($,"month"))),k.isSame(N)&&(I.type="today");const B=N.toDate();I.text=_,I.disabled=a.disabledDate?.(B)||!1,I.date=B,I.customClass=a.cellClassName?.(B),I.dayjs=N,I.timestamp=N.valueOf(),I.isSelected=b(I)}}return S}),v=()=>{c.value?.focus()},m=S=>{const k={},x=a.date.year(),O=new Date,T=S.text;return k.disabled=a.disabled||(a.disabledDate?yd(a.date,x,T,l.value).every(a.disabledDate):!1),k.current=aa(a.parsedValue).some(I=>rt.isDayjs(I)&&I.year()===x&&I.month()===T),k.today=O.getFullYear()===x&&O.getMonth()===T,S.customClass&&(k[S.customClass]=!0),S.inRange&&(k["in-range"]=!0,S.start&&(k["start-date"]=!0),S.end&&(k["end-date"]=!0)),k},b=S=>{const k=a.date.year(),x=S.text;return aa(a.date).some(O=>O.year()===k&&O.month()===x)},w=S=>{if(!a.rangeState.selecting)return;let k=S.target;if(k.tagName==="SPAN"&&(k=k.parentNode?.parentNode),k.tagName==="DIV"&&(k=k.parentNode),k.tagName!=="TD")return;const x=k.parentNode.rowIndex,O=k.cellIndex;h.value[x][O].disabled||(x!==p.value||O!==g.value)&&(p.value=x,g.value=O,o("changerange",{selecting:!0,endDate:a.date.startOf("year").month(x*4+O)}))},y=S=>{if(a.disabled)return;const k=S.target?.closest("td");if(k?.tagName!=="TD"||Ao(k,"disabled"))return;const x=k.cellIndex,O=k.parentNode.rowIndex*4+x,T=a.date.startOf("year").month(O);if(a.selectionMode==="months"){if(S.type==="keydown"){o("pick",aa(a.parsedValue),!1);return}const I=Nl(a.date,a.date.year(),O,l.value,a.disabledDate);o("pick",Ao(k,"current")?aa(a.parsedValue).filter(_=>_?.year()!==I.year()||_?.month()!==I.month()):aa(a.parsedValue).concat([rt(I)]))}else a.selectionMode==="range"?a.rangeState.selecting?(a.minDate&&T>=a.minDate?o("pick",{minDate:a.minDate,maxDate:T}):o("pick",{minDate:T,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:T,maxDate:null}),o("select",!0)):o("pick",O)};return pe(()=>a.date,async()=>{u.value?.contains(document.activeElement)&&(await Ne(),c.value?.focus())}),t({focus:v}),(S,k)=>(E(),L("table",{role:"grid","aria-label":i(s)("el.datepicker.monthTablePrompt"),class:R(i(r).b()),onClick:y,onMousemove:w},[z("tbody",{ref_key:"tbodyRef",ref:u},[(E(!0),L(Ve,null,kt(h.value,(x,O)=>(E(),L("tr",{key:O},[(E(!0),L(Ve,null,kt(x,(T,I)=>(E(),L("td",{key:I,ref_for:!0,ref:_=>T.isSelected&&(c.value=_),class:R(m(T)),"aria-selected":!!T.isSelected,"aria-label":i(s)(`el.datepicker.month${+T.text+1}`),tabindex:T.isSelected?0:-1,onKeydown:[cn(Xe(y,["prevent","stop"]),["space"]),cn(Xe(y,["prevent","stop"]),["enter"])]},[X(i(eg),{cell:{...T,renderText:i(s)("el.datepicker.months."+d.value[T.text])}},null,8,["cell"])],42,sH))),128))]))),128))],512)],42,rH))}}),uu=lH;const iH=Ee({...Jm,selectionMode:Qm("year")}),uH=["aria-label"],cH=["aria-selected","aria-label","tabindex","onKeydown"];var dH=se({__name:"basic-year-table",props:iH,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=(k,x)=>{const O=rt(String(k)).locale(x).startOf("year");return jr(O.endOf("year").dayOfYear()).map(T=>O.add(T,"day").toDate())},o=e,r=n,s=ge("year-table"),{t:l,lang:u}=xt(),c=M(),d=M(),f=C(()=>Math.floor(o.date.year()/10)*10),p=M([[],[],[]]),g=M(),h=M(),v=C(()=>{const k=p.value,x=rt().locale(u.value).startOf("year");for(let O=0;O<3;O++){const T=k[O];for(let I=0;I<4&&!(O*4+I>=10);I++){let _=T[I];_||(_={row:O,column:I,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),_.type="normal";const N=O*4+I+f.value,$=rt().year(N),B=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;_.inRange=!!(o.minDate&&$.isSameOrAfter(o.minDate,"year")&&B&&$.isSameOrBefore(B,"year"))||!!(o.minDate&&$.isSameOrBefore(o.minDate,"year")&&B&&$.isSameOrAfter(B,"year")),o.minDate?.isSameOrAfter(B)?(_.start=!!(B&&$.isSame(B,"year")),_.end=!!(o.minDate&&$.isSame(o.minDate,"year"))):(_.start=!!(o.minDate&&$.isSame(o.minDate,"year")),_.end=!!(B&&$.isSame(B,"year"))),x.isSame($)&&(_.type="today"),_.text=N;const K=$.toDate();_.disabled=o.disabledDate?.(K)||!1,_.date=K,_.customClass=o.cellClassName?.(K),_.dayjs=$,_.timestamp=$.valueOf(),_.isSelected=w(_),T[I]=_}}return k}),m=()=>{d.value?.focus()},b=k=>{const x={},O=rt().locale(u.value),T=k.text;return x.disabled=o.disabled||(o.disabledDate?a(T,u.value).every(o.disabledDate):!1),x.today=O.year()===T,x.current=aa(o.parsedValue).some(I=>I.year()===T),k.customClass&&(x[k.customClass]=!0),k.inRange&&(x["in-range"]=!0,k.start&&(x["start-date"]=!0),k.end&&(x["end-date"]=!0)),x},w=k=>{const x=k.text;return aa(o.date).some(O=>O.year()===x)},y=k=>{if(o.disabled)return;const x=k.target?.closest("td");if(!x||!x.textContent||Ao(x,"disabled"))return;const O=x.cellIndex,T=x.parentNode.rowIndex*4+O+f.value,I=rt().year(T);if(o.selectionMode==="range")o.rangeState.selecting?(o.minDate&&I>=o.minDate?r("pick",{minDate:o.minDate,maxDate:I}):r("pick",{minDate:I,maxDate:o.minDate}),r("select",!1)):(r("pick",{minDate:I,maxDate:null}),r("select",!0));else if(o.selectionMode==="years"){if(k.type==="keydown"){r("pick",aa(o.parsedValue),!1);return}const _=wd(I.startOf("year"),u.value,o.disabledDate);r("pick",Ao(x,"current")?aa(o.parsedValue).filter(N=>N?.year()!==T):aa(o.parsedValue).concat([_]))}else r("pick",T)},S=k=>{if(!o.rangeState.selecting)return;const x=k.target?.closest("td");if(!x)return;const O=x.parentNode.rowIndex,T=x.cellIndex;v.value[O][T].disabled||(O!==g.value||T!==h.value)&&(g.value=O,h.value=T,r("changerange",{selecting:!0,endDate:rt().year(f.value).add(O*4+T,"year")}))};return pe(()=>o.date,async()=>{c.value?.contains(document.activeElement)&&(await Ne(),d.value?.focus())}),t({focus:m}),(k,x)=>(E(),L("table",{role:"grid","aria-label":i(l)("el.datepicker.yearTablePrompt"),class:R(i(s).b()),onClick:y,onMousemove:S},[z("tbody",{ref_key:"tbodyRef",ref:c},[(E(!0),L(Ve,null,kt(v.value,(O,T)=>(E(),L("tr",{key:T},[(E(!0),L(Ve,null,kt(O,(I,_)=>(E(),L("td",{key:`${T}_${_}`,ref_for:!0,ref:N=>I.isSelected&&(d.value=N),class:R(["available",b(I)]),"aria-selected":I.isSelected,"aria-label":String(I.text),tabindex:I.isSelected?0:-1,onKeydown:[cn(Xe(y,["prevent","stop"]),["space"]),cn(Xe(y,["prevent","stop"]),["enter"])]},[X(i(eg),{cell:I},null,8,["cell"])],42,cH))),128))]))),128))],512)],42,uH))}}),cu=dH;const fH=["disabled","onClick"],pH=["aria-label","disabled"],hH=["aria-label","disabled"],vH=["tabindex","aria-disabled"],mH=["tabindex","aria-disabled"],gH=["aria-label","disabled"],bH=["aria-label","disabled"];var yH=se({__name:"panel-date-pick",props:q9,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(me,je,ie)=>!0,a=e,o=t,r=ge("picker-panel"),s=ge("date-picker"),l=wr(),u=wn(),{t:c,lang:d}=xt(),f=$e(Go),p=$e(Vu,void 0),{shortcuts:g,disabledDate:h,cellClassName:v,defaultTime:m}=f.props,b=Ht(f.props,"defaultValue"),w=M(),y=M(rt().locale(d.value)),S=M(!1);let k=!1;const x=C(()=>rt(m).locale(d.value)),O=C(()=>y.value.month()),T=C(()=>y.value.year()),I=M([]),_=M(null),N=M(null),$=me=>I.value.length>0?n(me,I.value,a.format||"HH:mm:ss"):!0,B=me=>m&&!Ie.value&&!S.value&&!k?x.value.year(me.year()).month(me.month()).date(me.date()):ue.value?me.millisecond(0):me.startOf("day"),K=(me,...je)=>{me?we(me)?o("pick",me.map(B),...je):o("pick",B(me),...je):o("pick",me,...je),_.value=null,N.value=null,S.value=!1,k=!1},j=async(me,je)=>{if(H.value==="date"&&rt.isDayjs(me)){const ie=oi(a.parsedValue);let xe=ie?ie.year(me.year()).month(me.month()).date(me.date()):me;$(xe),y.value=xe,K(xe,ue.value||je)}else H.value==="week"?K(me.date):H.value==="dates"&&K(me,!0)},W=me=>{const je=me?"add":"subtract";y.value=y.value[je](1,"month"),ft("month")},A=me=>{const je=y.value,ie=me?"add":"subtract";y.value=P.value==="year"?je[ie](10,"year"):je[ie](1,"year"),ft("year")},P=M("date"),V=C(()=>{const me=c("el.datepicker.year");if(P.value==="year"){const je=Math.floor(T.value/10)*10;return me?`${je} ${me} - ${je+9} ${me}`:`${je} - ${je+9}`}return`${T.value} ${me}`}),F=me=>{const je=Fe(me.value)?me.value():me.value;if(je){k=!0,K(rt(je).locale(d.value));return}me.onClick&&me.onClick({attrs:l,slots:u,emit:o})},H=C(()=>{const{type:me}=a;return["week","month","months","year","years","dates"].includes(me)?me:"date"}),U=C(()=>H.value==="dates"||H.value==="months"||H.value==="years"),J=C(()=>H.value==="date"?P.value:H.value),ee=C(()=>!!g.length),ae=async(me,je)=>{H.value==="month"?(y.value=Nl(y.value,y.value.year(),me,d.value,h),K(y.value,!1)):H.value==="months"?K(me,je??!0):(y.value=Nl(y.value,y.value.year(),me,d.value,h),P.value="date",["month","year","date","week"].includes(H.value)&&(K(y.value,!0),await Ne(),gt())),ft("month")},ce=async(me,je)=>{H.value==="year"?(y.value=wd(y.value.startOf("year").year(me),d.value,h),K(y.value,!1)):H.value==="years"?K(me,je??!0):(y.value=wd(y.value.year(me),d.value,h),P.value="month",["month","year","date","week"].includes(H.value)&&(K(y.value,!0),await Ne(),gt())),ft("year")},Z=ln(),de=async me=>{Z.value||(P.value=me,await Ne(),gt())},ue=C(()=>a.type==="datetime"||a.type==="datetimerange"),Y=C(()=>{const me=ue.value||H.value==="dates",je=H.value==="years",ie=H.value==="months",xe=P.value==="date",Ue=P.value==="year",et=P.value==="month";return me&&xe||je&&Ue||ie&&et}),Q=C(()=>!U.value&&a.showNow||a.showConfirm),D=C(()=>h?a.parsedValue?we(a.parsedValue)?h(a.parsedValue[0].toDate()):h(a.parsedValue.toDate()):!0:!1),q=()=>{if(U.value)K(a.parsedValue);else{let me=oi(a.parsedValue);if(!me){const je=rt(m).locale(d.value),ie=Ze();me=je.year(ie.year()).month(ie.month()).date(ie.date())}y.value=me,K(me)}},te=C(()=>h?h(rt().locale(d.value).toDate()):!1),fe=()=>{const me=rt().locale(d.value).toDate();S.value=!0,(!h||!h(me))&&$(me)&&(y.value=rt().locale(d.value),K(y.value))},he=C(()=>a.timeFormat||rk(a.format)||"HH:mm:ss"),ve=C(()=>a.dateFormat||ok(a.format)||"YYYY-MM-DD"),Ie=C(()=>{if(N.value)return N.value;if(!(!a.parsedValue&&!b.value))return(oi(a.parsedValue)||y.value).format(he.value)}),Le=C(()=>{if(_.value)return _.value;if(!(!a.parsedValue&&!b.value))return(oi(a.parsedValue)||y.value).format(ve.value)}),_e=M(!1),ye=()=>{_e.value=!0},Te=()=>{_e.value=!1},be=me=>({hour:me.hour(),minute:me.minute(),second:me.second(),year:me.year(),month:me.month(),date:me.date()}),Pe=(me,je,ie)=>{const{hour:xe,minute:Ue,second:et}=be(me),bt=oi(a.parsedValue);y.value=bt?bt.hour(xe).minute(Ue).second(et):me,K(y.value,!0),ie||(_e.value=je)},He=me=>{const je=rt(me,he.value).locale(d.value);if(je.isValid()&&$(je)){const{year:ie,month:xe,date:Ue}=be(y.value);y.value=je.year(ie).month(xe).date(Ue),N.value=null,_e.value=!1,K(y.value,!0)}},Je=me=>{const je=Ml(me,ve.value,d.value,p);if(je.isValid()){if(h&&h(je.toDate()))return;const{hour:ie,minute:xe,second:Ue}=be(y.value);y.value=je.hour(ie).minute(xe).second(Ue),_.value=null,K(y.value,!0)}},Qe=me=>rt.isDayjs(me)&&me.isValid()&&(h?!h(me.toDate()):!0),lt=me=>Ml(me,a.format,d.value,p),Ze=()=>{const me=rt(b.value).locale(d.value);if(!b.value){const je=x.value;return rt().hour(je.hour()).minute(je.minute()).second(je.second()).locale(d.value)}return me},gt=()=>{["week","month","year","date"].includes(H.value)&&w.value?.focus()},At=()=>{gt(),H.value==="week"&&nt(Se.down)},zt=me=>{const je=qt(me);[Se.up,Se.down,Se.left,Se.right,Se.home,Se.end,Se.pageUp,Se.pageDown].includes(je)&&(nt(je),me.stopPropagation(),me.preventDefault()),[Se.enter,Se.space,Se.numpadEnter].includes(je)&&_.value===null&&N.value===null&&(me.preventDefault(),K(y.value,!1))},nt=me=>{const{up:je,down:ie,left:xe,right:Ue,home:et,end:bt,pageUp:vt,pageDown:Et}=Se,Yt={year:{[je]:-4,[ie]:4,[xe]:-1,[Ue]:1,offset:(Lt,en)=>Lt.setFullYear(Lt.getFullYear()+en)},month:{[je]:-4,[ie]:4,[xe]:-1,[Ue]:1,offset:(Lt,en)=>Lt.setMonth(Lt.getMonth()+en)},week:{[je]:-1,[ie]:1,[xe]:-1,[Ue]:1,offset:(Lt,en)=>Lt.setDate(Lt.getDate()+en*7)},date:{[je]:-7,[ie]:7,[xe]:-1,[Ue]:1,[et]:Lt=>-Lt.getDay(),[bt]:Lt=>-Lt.getDay()+6,[vt]:Lt=>-new Date(Lt.getFullYear(),Lt.getMonth(),0).getDate(),[Et]:Lt=>new Date(Lt.getFullYear(),Lt.getMonth()+1,0).getDate(),offset:(Lt,en)=>Lt.setDate(Lt.getDate()+en)}},an=y.value.toDate();for(;Math.abs(y.value.diff(an,"year",!0))<1;){const Lt=Yt[J.value];if(!Lt)return;if(Lt.offset(an,Fe(Lt[me])?Lt[me](an):Lt[me]??0),h&&h(an))break;const en=rt(an).locale(d.value);y.value=en,o("pick",en,!0);break}},ft=me=>{o("panel-change",y.value.toDate(),me,P.value)};return pe(()=>H.value,me=>{if(["month","year"].includes(me)){P.value=me;return}else if(me==="years"){P.value="year";return}else if(me==="months"){P.value="month";return}P.value="date"},{immediate:!0}),pe(()=>b.value,me=>{me&&(y.value=Ze())},{immediate:!0}),pe(()=>a.parsedValue,me=>{if(me){if(U.value||we(me))return;y.value=me}else y.value=Ze()},{immediate:!0}),o("set-picker-option",["isValidValue",Qe]),o("set-picker-option",["parseUserInput",lt]),o("set-picker-option",["handleFocusPicker",At]),(me,je)=>(E(),L("div",{class:R([i(r).b(),i(s).b(),i(r).is("border",me.border),i(r).is("disabled",i(Z)),{"has-sidebar":me.$slots.sidebar||ee.value,"has-time":ue.value}])},[z("div",{class:R(i(r).e("body-wrapper"))},[oe(me.$slots,"sidebar",{class:R(i(r).e("sidebar"))}),ee.value?(E(),L("div",{key:0,class:R(i(r).e("sidebar"))},[(E(!0),L(Ve,null,kt(i(g),(ie,xe)=>(E(),L("button",{key:xe,type:"button",disabled:i(Z),class:R(i(r).e("shortcut")),onClick:Ue=>F(ie)},Ce(ie.text),11,fH))),128))],2)):re("v-if",!0),z("div",{class:R(i(r).e("body"))},[ue.value?(E(),L("div",{key:0,class:R(i(s).e("time-header"))},[z("span",{class:R(i(s).e("editor-wrap"))},[X(i(Un),{placeholder:i(c)("el.datepicker.selectDate"),"model-value":Le.value,size:"small","validate-event":!1,disabled:i(Z),readonly:!me.editable,onInput:je[0]||(je[0]=ie=>_.value=ie),onChange:Je},null,8,["placeholder","model-value","disabled","readonly"])],2),ct((E(),L("span",{class:R(i(s).e("editor-wrap"))},[X(i(Un),{placeholder:i(c)("el.datepicker.selectTime"),"model-value":Ie.value,size:"small","validate-event":!1,disabled:i(Z),readonly:!me.editable,onFocus:ye,onInput:je[1]||(je[1]=ie=>N.value=ie),onChange:He},null,8,["placeholder","model-value","disabled","readonly"]),X(i(id),{visible:_e.value,format:he.value,"parsed-value":y.value,onPick:Pe},null,8,["visible","format","parsed-value"])],2)),[[i(Qr),Te]])],2)):re("v-if",!0),ct(z("div",{class:R([i(s).e("header"),(P.value==="year"||P.value==="month")&&i(s).em("header","bordered")])},[z("span",{class:R(i(s).e("prev-btn"))},[z("button",{type:"button","aria-label":i(c)("el.datepicker.prevYear"),class:R(["d-arrow-left",i(r).e("icon-btn")]),disabled:i(Z),onClick:je[2]||(je[2]=ie=>A(!1))},[oe(me.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,pH),ct(z("button",{type:"button","aria-label":i(c)("el.datepicker.prevMonth"),class:R([i(r).e("icon-btn"),"arrow-left"]),disabled:i(Z),onClick:je[3]||(je[3]=ie=>W(!1))},[oe(me.$slots,"prev-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1})])],10,hH),[[$t,P.value==="date"]])],2),z("span",{role:"button",class:R(i(s).e("header-label")),"aria-live":"polite",tabindex:me.disabled?void 0:0,"aria-disabled":me.disabled,onKeydown:je[4]||(je[4]=cn(ie=>de("year"),["enter"])),onClick:je[5]||(je[5]=ie=>de("year"))},Ce(V.value),43,vH),ct(z("span",{role:"button","aria-live":"polite",tabindex:me.disabled?void 0:0,"aria-disabled":me.disabled,class:R([i(s).e("header-label"),{active:P.value==="month"}]),onKeydown:je[6]||(je[6]=cn(ie=>de("month"),["enter"])),onClick:je[7]||(je[7]=ie=>de("month"))},Ce(i(c)(`el.datepicker.month${O.value+1}`)),43,mH),[[$t,P.value==="date"]]),z("span",{class:R(i(s).e("next-btn"))},[ct(z("button",{type:"button","aria-label":i(c)("el.datepicker.nextMonth"),class:R([i(r).e("icon-btn"),"arrow-right"]),disabled:i(Z),onClick:je[8]||(je[8]=ie=>W(!0))},[oe(me.$slots,"next-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})])],10,gH),[[$t,P.value==="date"]]),z("button",{type:"button","aria-label":i(c)("el.datepicker.nextYear"),class:R([i(r).e("icon-btn"),"d-arrow-right"]),disabled:i(Z),onClick:je[9]||(je[9]=ie=>A(!0))},[oe(me.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,bH)],2)],2),[[$t,P.value!=="time"]]),z("div",{class:R(i(r).e("content")),onKeydown:zt},[P.value==="date"?(E(),le(Zh,{key:0,ref_key:"currentViewRef",ref:w,"selection-mode":H.value,date:y.value,"parsed-value":me.parsedValue,"disabled-date":i(h),disabled:i(Z),"cell-class-name":i(v),"show-week-number":me.showWeekNumber,onPick:j},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):re("v-if",!0),P.value==="year"?(E(),le(cu,{key:1,ref_key:"currentViewRef",ref:w,"selection-mode":H.value,date:y.value,"disabled-date":i(h),disabled:i(Z),"parsed-value":me.parsedValue,"cell-class-name":i(v),onPick:ce},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):re("v-if",!0),P.value==="month"?(E(),le(uu,{key:2,ref_key:"currentViewRef",ref:w,"selection-mode":H.value,date:y.value,"parsed-value":me.parsedValue,"disabled-date":i(h),disabled:i(Z),"cell-class-name":i(v),onPick:ae},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):re("v-if",!0)],34)],2)],2),me.showFooter&&Y.value&&Q.value?(E(),L("div",{key:0,class:R(i(r).e("footer"))},[ct(X(i(Bn),{text:"",size:"small",class:R(i(r).e("link-btn")),disabled:te.value,onClick:fe},{default:ne(()=>[wt(Ce(i(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[$t,!U.value&&me.showNow]]),me.showConfirm?(E(),le(i(Bn),{key:0,plain:"",size:"small",class:R(i(r).e("link-btn")),disabled:D.value,onClick:q},{default:ne(()=>[wt(Ce(i(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),wH=yH;const SH=Ee({...xE,...Zm}),CH=e=>{const{emit:t}=dt(),n=wr(),a=wn();return r=>{const s=Fe(r.value)?r.value():r.value;if(s){t("pick",[rt(s[0]).locale(e.value),rt(s[1]).locale(e.value)]);return}r.onClick&&r.onClick({attrs:n,slots:a,emit:t})}},tg=(e,{defaultValue:t,defaultTime:n,leftDate:a,rightDate:o,step:r,unit:s,sortDates:l})=>{const{emit:u}=dt(),{pickerNs:c}=$e(Xm),d=ge("date-range-picker"),{t:f,lang:p}=xt(),g=CH(p),h=M(),v=M(),m=M({endDate:null,selecting:!1}),b=x=>{m.value=x},w=(x=!1)=>{const O=i(h),T=i(v);iu([O,T])&&u("pick",[O,T],x)},y=x=>{m.value.selecting=x,x||(m.value.endDate=null)},S=x=>{if(we(x)&&x.length===2){const[O,T]=x;h.value=O,a.value=O,v.value=T,l(i(h),i(v))}else k()},k=()=>{let[x,O]=Cf(i(t),{lang:i(p),step:r,unit:s,unlinkPanels:e.unlinkPanels});const T=_=>_.diff(_.startOf("d"),"ms"),I=i(n);if(I){let _=0,N=0;if(we(I)){const[$,B]=I.map(rt);_=T($),N=T(B)}else{const $=T(rt(I));_=$,N=$}x=x.startOf("d").add(_,"ms"),O=O.startOf("d").add(N,"ms")}h.value=void 0,v.value=void 0,a.value=x,o.value=O};return pe(t,x=>{x&&k()},{immediate:!0}),pe(()=>e.parsedValue,x=>{(!x?.length||!dn(x,[h.value,v.value]))&&S(x)},{immediate:!0}),pe(()=>e.visible,()=>{e.visible&&S(e.parsedValue)},{immediate:!0}),{minDate:h,maxDate:v,rangeState:m,lang:p,ppNs:c,drpNs:d,handleChangeRange:b,handleRangeConfirm:w,handleShortcutClick:g,onSelect:y,parseValue:S,t:f}},kH=(e,t,n,a)=>{const o=M("date"),r=M(),s=M("date"),l=M(),{disabledDate:u}=$e(Go).props,{t:c,lang:d}=xt(),f=C(()=>n.value.year()),p=C(()=>n.value.month()),g=C(()=>a.value.year()),h=C(()=>a.value.month());function v(k,x){const O=c("el.datepicker.year");if(k.value==="year"){const T=Math.floor(x.value/10)*10;return O?`${T} ${O} - ${T+9} ${O}`:`${T} - ${T+9}`}return`${x.value} ${O}`}function m(k){k?.focus()}async function b(k,x){if(e.disabled)return;const O=k==="left"?o:s,T=k==="left"?r:l;O.value=x,await Ne(),m(T.value)}async function w(k,x,O){if(e.disabled)return;const T=x==="left",I=T?n:a,_=T?a:n,N=T?o:s,$=T?r:l;k==="year"&&(I.value=wd(I.value.year(O),d.value,u)),k==="month"&&(I.value=Nl(I.value,I.value.year(),O,d.value,u)),e.unlinkPanels||(_.value=x==="left"?I.value.add(1,"month"):I.value.subtract(1,"month")),N.value=k==="year"?"month":"date",await Ne(),m($.value),y(k)}function y(k){t("panel-change",[n.value.toDate(),a.value.toDate()],k)}function S(k,x,O){const T=O?"add":"subtract";return k==="year"?x[T](10,"year"):x[T](1,"year")}return{leftCurrentView:o,rightCurrentView:s,leftCurrentViewRef:r,rightCurrentViewRef:l,leftYear:f,rightYear:g,leftMonth:p,rightMonth:h,leftYearLabel:C(()=>v(o,f)),rightYearLabel:C(()=>v(s,g)),showLeftPicker:k=>b("left",k),showRightPicker:k=>b("right",k),handleLeftYearPick:k=>w("year","left",k),handleRightYearPick:k=>w("year","right",k),handleLeftMonthPick:k=>w("month","left",k),handleRightMonthPick:k=>w("month","right",k),handlePanelChange:y,adjustDateByView:S}},EH=["disabled","onClick"],xH=["aria-label","disabled"],TH=["aria-label","disabled"],OH=["disabled","aria-label"],_H=["disabled","aria-label"],RH=["tabindex","aria-disabled"],IH=["tabindex","aria-disabled"],$H=["disabled","aria-label"],NH=["disabled","aria-label"],MH=["aria-label","disabled"],PH=["disabled","aria-label"],AH=["tabindex","aria-disabled"],LH=["tabindex","aria-disabled"],pc="month";var DH=se({__name:"panel-date-range",props:SH,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,a=t,o=$e(Go),r=$e(Vu,void 0),{disabledDate:s,cellClassName:l,defaultTime:u,clearable:c}=o.props,d=Ht(o.props,"format"),f=Ht(o.props,"shortcuts"),p=Ht(o.props,"defaultValue"),{lang:g}=xt(),h=M(rt().locale(g.value)),v=M(rt().locale(g.value).add(1,pc)),{minDate:m,maxDate:b,rangeState:w,ppNs:y,drpNs:S,handleChangeRange:k,handleRangeConfirm:x,handleShortcutClick:O,onSelect:T,parseValue:I,t:_}=tg(n,{defaultValue:p,defaultTime:u,leftDate:h,rightDate:v,unit:pc,sortDates:en});pe(()=>n.visible,Ye=>{!Ye&&w.value.selecting&&(I(n.parsedValue),T(!1))});const N=M({min:null,max:null}),$=M({min:null,max:null}),{leftCurrentView:B,rightCurrentView:K,leftCurrentViewRef:j,rightCurrentViewRef:W,leftYear:A,rightYear:P,leftMonth:V,rightMonth:F,leftYearLabel:H,rightYearLabel:U,showLeftPicker:J,showRightPicker:ee,handleLeftYearPick:ae,handleRightYearPick:ce,handleLeftMonthPick:Z,handleRightMonthPick:de,handlePanelChange:ue,adjustDateByView:Y}=kH(n,a,h,v),Q=C(()=>!!f.value.length),D=C(()=>N.value.min!==null?N.value.min:m.value?m.value.format(ve.value):""),q=C(()=>N.value.max!==null?N.value.max:b.value||m.value?(b.value||m.value).format(ve.value):""),te=C(()=>$.value.min!==null?$.value.min:m.value?m.value.format(he.value):""),fe=C(()=>$.value.max!==null?$.value.max:b.value||m.value?(b.value||m.value).format(he.value):""),he=C(()=>n.timeFormat||rk(d.value||"")||"HH:mm:ss"),ve=C(()=>n.dateFormat||ok(d.value||"")||"YYYY-MM-DD"),Ie=Ye=>iu(Ye)&&(s?!s(Ye[0].toDate())&&!s(Ye[1].toDate()):!0),Le=()=>{h.value=Y(B.value,h.value,!1),n.unlinkPanels||(v.value=h.value.add(1,"month")),ue("year")},_e=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(v.value=h.value.add(1,"month")),ue("month")},ye=()=>{n.unlinkPanels?v.value=Y(K.value,v.value,!0):(h.value=Y(K.value,h.value,!0),v.value=h.value.add(1,"month")),ue("year")},Te=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(h.value=h.value.add(1,"month"),v.value=h.value.add(1,"month")),ue("month")},be=()=>{h.value=Y(B.value,h.value,!0),ue("year")},Pe=()=>{h.value=h.value.add(1,"month"),ue("month")},He=()=>{v.value=Y(K.value,v.value,!1),ue("year")},Je=()=>{v.value=v.value.subtract(1,"month"),ue("month")},Qe=C(()=>{const Ye=(V.value+1)%12,Ge=V.value+1>=12?1:0;return n.singlePanel||n.unlinkPanels&&new Date(A.value+Ge,Ye)n.singlePanel||n.unlinkPanels&&P.value*12+F.value-(A.value*12+V.value+1)>=12),Ze=ln(),gt=C(()=>!(m.value&&b.value&&!w.value.selecting&&iu([m.value,b.value])&&!Ze.value)),At=C(()=>n.type==="datetime"||n.type==="datetimerange"),zt=(Ye,Ge)=>{if(Ye)return u?rt(u[Ge]||u).locale(g.value).year(Ye.year()).month(Ye.month()).date(Ye.date()):Ye},nt=(Ye,Ge=!0)=>{const tt=Ye.minDate,Oe=Ye.maxDate,Ke=zt(tt,0),We=zt(Oe,1);b.value===We&&m.value===Ke||(a("calendar-change",[tt.toDate(),Oe&&Oe.toDate()]),b.value=We,m.value=Ke,!At.value&&Ge&&(Ge=!Ke||!We),x(Ge))},ft=M(!1),me=M(!1),je=()=>{ft.value=!1},ie=()=>{me.value=!1},xe=(Ye,Ge)=>{N.value[Ge]=Ye;const tt=rt(Ye,ve.value).locale(g.value);if(tt.isValid()){if(s&&s(tt.toDate()))return;Ge==="min"?(h.value=tt,m.value=(m.value||h.value).year(tt.year()).month(tt.month()).date(tt.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(m.value))&&(v.value=tt.add(1,"month"),b.value=m.value.add(1,"month"))):(v.value=tt,b.value=(b.value||v.value).year(tt.year()).month(tt.month()).date(tt.date()),!n.unlinkPanels&&(!m.value||m.value.isAfter(b.value))&&(h.value=tt.subtract(1,"month"),m.value=b.value.subtract(1,"month"))),en(m.value,b.value),x(!0)}},Ue=(Ye,Ge)=>{N.value[Ge]=null},et=(Ye,Ge)=>{$.value[Ge]=Ye;const tt=rt(Ye,he.value).locale(g.value);tt.isValid()&&(Ge==="min"?(ft.value=!0,m.value=(m.value||h.value).hour(tt.hour()).minute(tt.minute()).second(tt.second()),h.value=m.value):(me.value=!0,b.value=(b.value||v.value).hour(tt.hour()).minute(tt.minute()).second(tt.second()),v.value=b.value))},bt=(Ye,Ge)=>{$.value[Ge]=null,Ge==="min"?(h.value=m.value,ft.value=!1,(!b.value||b.value.isBefore(m.value))&&(b.value=m.value)):(v.value=b.value,me.value=!1,b.value&&b.value.isBefore(m.value)&&(m.value=b.value)),x(!0)},vt=(Ye,Ge,tt)=>{$.value.min||(Ye&&(m.value=(m.value||h.value).hour(Ye.hour()).minute(Ye.minute()).second(Ye.second())),tt||(ft.value=Ge),(!b.value||b.value.isBefore(m.value))&&(b.value=m.value,v.value=Ye,Ne(()=>{I(n.parsedValue)})),x(!0))},Et=(Ye,Ge,tt)=>{$.value.max||(Ye&&(b.value=(b.value||v.value).hour(Ye.hour()).minute(Ye.minute()).second(Ye.second())),tt||(me.value=Ge),b.value&&b.value.isBefore(m.value)&&(m.value=b.value),x(!0))},Yt=()=>{an(),a("clear")},an=()=>{let Ye=null;o?.emptyValues&&(Ye=o.emptyValues.valueOnClear.value),h.value=Cf(i(p),{lang:i(g),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=h.value.add(1,"month"),b.value=void 0,m.value=void 0,x(!0),a("pick",Ye)},Lt=Ye=>Ml(Ye,d.value||"",g.value,r);function en(Ye,Ge){if(n.unlinkPanels&&Ge){const tt=Ye?.year()||0,Oe=Ye?.month()||0,Ke=Ge.year(),We=Ge.month();v.value=tt===Ke&&Oe===We?Ge.add(1,pc):Ge}else v.value=h.value.add(1,pc),Ge&&(v.value=v.value.hour(Ge.hour()).minute(Ge.minute()).second(Ge.second()))}return a("set-picker-option",["isValidValue",Ie]),a("set-picker-option",["parseUserInput",Lt]),a("set-picker-option",["handleClear",an]),(Ye,Ge)=>(E(),L("div",{class:R([i(y).b(),i(S).b(),i(y).is("border",Ye.border),i(y).is("disabled",i(Ze)),{"has-sidebar":Ye.$slots.sidebar||Q.value,"has-time":At.value,"single-panel":Ye.singlePanel}])},[z("div",{class:R(i(y).e("body-wrapper"))},[oe(Ye.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),Q.value?(E(),L("div",{key:0,class:R(i(y).e("sidebar"))},[(E(!0),L(Ve,null,kt(f.value,(tt,Oe)=>(E(),L("button",{key:Oe,type:"button",disabled:i(Ze),class:R(i(y).e("shortcut")),onClick:Ke=>i(O)(tt)},Ce(tt.text),11,EH))),128))],2)):re("v-if",!0),z("div",{class:R(i(y).e("body"))},[At.value?(E(),L("div",{key:0,class:R(i(S).e("time-header"))},[z("span",{class:R(i(S).e("editors-wrap"))},[z("span",{class:R(i(S).e("time-picker-wrap"))},[X(i(Un),{size:"small",disabled:i(w).selecting||i(Ze),placeholder:i(_)("el.datepicker.startDate"),class:R(i(S).e("editor")),"model-value":D.value,"validate-event":!1,readonly:!Ye.editable,onInput:Ge[0]||(Ge[0]=tt=>xe(tt,"min")),onChange:Ge[1]||(Ge[1]=tt=>Ue(tt,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),ct((E(),L("span",{class:R(i(S).e("time-picker-wrap"))},[X(i(Un),{size:"small",class:R(i(S).e("editor")),disabled:i(w).selecting||i(Ze),placeholder:i(_)("el.datepicker.startTime"),"model-value":te.value,"validate-event":!1,readonly:!Ye.editable,onFocus:Ge[2]||(Ge[2]=tt=>ft.value=!0),onInput:Ge[3]||(Ge[3]=tt=>et(tt,"min")),onChange:Ge[4]||(Ge[4]=tt=>bt(tt,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),X(i(id),{visible:ft.value,format:he.value,"datetime-role":"start","parsed-value":i(m)||h.value,onPick:vt},null,8,["visible","format","parsed-value"])],2)),[[i(Qr),je]])],2),z("span",null,[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})]),z("span",{class:R([i(S).e("editors-wrap"),"is-right"])},[z("span",{class:R(i(S).e("time-picker-wrap"))},[X(i(Un),{size:"small",class:R(i(S).e("editor")),disabled:i(w).selecting||i(Ze),placeholder:i(_)("el.datepicker.endDate"),"model-value":q.value,readonly:!i(m)||!Ye.editable,"validate-event":!1,onInput:Ge[5]||(Ge[5]=tt=>xe(tt,"max")),onChange:Ge[6]||(Ge[6]=tt=>Ue(tt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),ct((E(),L("span",{class:R(i(S).e("time-picker-wrap"))},[X(i(Un),{size:"small",class:R(i(S).e("editor")),disabled:i(w).selecting||i(Ze),placeholder:i(_)("el.datepicker.endTime"),"model-value":fe.value,readonly:!i(m)||!Ye.editable,"validate-event":!1,onFocus:Ge[7]||(Ge[7]=tt=>i(m)&&(me.value=!0)),onInput:Ge[8]||(Ge[8]=tt=>et(tt,"max")),onChange:Ge[9]||(Ge[9]=tt=>bt(tt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),X(i(id),{"datetime-role":"end",visible:me.value,format:he.value,"parsed-value":i(b)||v.value,onPick:Et},null,8,["visible","format","parsed-value"])],2)),[[i(Qr),ie]])],2)],2)):re("v-if",!0),z("div",{class:R([i(y).e("content"),i(S).e("content"),i(S).is("left",!Ye.singlePanel)])},[z("div",{class:R(i(S).e("header"))},[z("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-left"]),"aria-label":i(_)("el.datepicker.prevYear"),disabled:i(Ze),onClick:Le},[oe(Ye.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,xH),ct(z("button",{type:"button",class:R([i(y).e("icon-btn"),"arrow-left"]),"aria-label":i(_)("el.datepicker.prevMonth"),disabled:i(Ze),onClick:_e},[oe(Ye.$slots,"prev-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1})])],10,TH),[[$t,i(B)==="date"]]),Ye.unlinkPanels||Ye.singlePanel?(E(),L("button",{key:0,type:"button",disabled:!lt.value||i(Ze),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!lt.value||i(Ze))],"d-arrow-right"]),"aria-label":i(_)("el.datepicker.nextYear"),onClick:be},[oe(Ye.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,OH)):re("v-if",!0),Ye.unlinkPanels&&i(B)==="date"||Ye.singlePanel?(E(),L("button",{key:1,type:"button",disabled:!Qe.value||i(Ze),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!Qe.value||i(Ze))],"arrow-right"]),"aria-label":i(_)("el.datepicker.nextMonth"),onClick:Pe},[oe(Ye.$slots,"next-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})])],10,_H)):re("v-if",!0),z("div",null,[z("span",{role:"button",class:R(i(S).e("header-label")),"aria-live":"polite",tabindex:Ye.disabled?void 0:0,"aria-disabled":Ye.disabled,onKeydown:Ge[10]||(Ge[10]=cn(tt=>i(J)("year"),["enter"])),onClick:Ge[11]||(Ge[11]=tt=>i(J)("year"))},Ce(i(H)),43,RH),ct(z("span",{role:"button","aria-live":"polite",tabindex:Ye.disabled?void 0:0,"aria-disabled":Ye.disabled,class:R([i(S).e("header-label"),{active:i(B)==="month"}]),onKeydown:Ge[12]||(Ge[12]=cn(tt=>i(J)("month"),["enter"])),onClick:Ge[13]||(Ge[13]=tt=>i(J)("month"))},Ce(i(_)(`el.datepicker.month${h.value.month()+1}`)),43,IH),[[$t,i(B)==="date"]])])],2),i(B)==="date"?(E(),le(Zh,{key:0,ref_key:"leftCurrentViewRef",ref:j,"selection-mode":"range",date:h.value,"min-date":i(m),"max-date":i(b),"range-state":i(w),"disabled-date":i(s),"cell-class-name":i(l),"show-week-number":Ye.showWeekNumber,disabled:i(Ze),onChangerange:i(k),onPick:nt,onSelect:i(T)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(B)==="year"?(E(),le(cu,{key:1,ref_key:"leftCurrentViewRef",ref:j,"selection-mode":"year",date:h.value,"disabled-date":i(s),"parsed-value":Ye.parsedValue,disabled:i(Ze),onPick:i(ae)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(B)==="month"?(E(),le(uu,{key:2,ref_key:"leftCurrentViewRef",ref:j,"selection-mode":"month",date:h.value,"parsed-value":Ye.parsedValue,"disabled-date":i(s),disabled:i(Ze),onPick:i(Z)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2),Ye.singlePanel?re("v-if",!0):(E(),L("div",{key:1,class:R([[i(y).e("content"),i(S).e("content")],"is-right"])},[z("div",{class:R(i(S).e("header"))},[Ye.unlinkPanels?(E(),L("button",{key:0,type:"button",disabled:!lt.value||i(Ze),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!lt.value||i(Ze))],"d-arrow-left"]),"aria-label":i(_)("el.datepicker.prevYear"),onClick:He},[oe(Ye.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,$H)):re("v-if",!0),Ye.unlinkPanels&&i(K)==="date"?(E(),L("button",{key:1,type:"button",disabled:!Qe.value||i(Ze),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!Qe.value||i(Ze))],"arrow-left"]),"aria-label":i(_)("el.datepicker.prevMonth"),onClick:Je},[oe(Ye.$slots,"prev-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1})])],10,NH)):re("v-if",!0),z("button",{type:"button","aria-label":i(_)("el.datepicker.nextYear"),class:R([i(y).e("icon-btn"),"d-arrow-right"]),disabled:i(Ze),onClick:ye},[oe(Ye.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,MH),ct(z("button",{type:"button",class:R([i(y).e("icon-btn"),"arrow-right"]),disabled:i(Ze),"aria-label":i(_)("el.datepicker.nextMonth"),onClick:Te},[oe(Ye.$slots,"next-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})])],10,PH),[[$t,i(K)==="date"]]),z("div",null,[z("span",{role:"button",class:R(i(S).e("header-label")),"aria-live":"polite",tabindex:Ye.disabled?void 0:0,"aria-disabled":Ye.disabled,onKeydown:Ge[14]||(Ge[14]=cn(tt=>i(ee)("year"),["enter"])),onClick:Ge[15]||(Ge[15]=tt=>i(ee)("year"))},Ce(i(U)),43,AH),ct(z("span",{role:"button","aria-live":"polite",tabindex:Ye.disabled?void 0:0,"aria-disabled":Ye.disabled,class:R([i(S).e("header-label"),{active:i(K)==="month"}]),onKeydown:Ge[16]||(Ge[16]=cn(tt=>i(ee)("month"),["enter"])),onClick:Ge[17]||(Ge[17]=tt=>i(ee)("month"))},Ce(i(_)(`el.datepicker.month${v.value.month()+1}`)),43,LH),[[$t,i(K)==="date"]])])],2),i(K)==="date"?(E(),le(Zh,{key:0,ref_key:"rightCurrentViewRef",ref:W,"selection-mode":"range",date:v.value,"min-date":i(m),"max-date":i(b),"range-state":i(w),"disabled-date":i(s),"cell-class-name":i(l),"show-week-number":Ye.showWeekNumber,disabled:i(Ze),onChangerange:i(k),onPick:nt,onSelect:i(T)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(K)==="year"?(E(),le(cu,{key:1,ref_key:"rightCurrentViewRef",ref:W,"selection-mode":"year",date:v.value,"disabled-date":i(s),"parsed-value":Ye.parsedValue,disabled:i(Ze),onPick:i(ce)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(K)==="month"?(E(),le(uu,{key:2,ref_key:"rightCurrentViewRef",ref:W,"selection-mode":"month",date:v.value,"parsed-value":Ye.parsedValue,"disabled-date":i(s),disabled:i(Ze),onPick:i(de)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2))],2)],2),Ye.showFooter&&At.value&&(Ye.showConfirm||i(c))?(E(),L("div",{key:0,class:R(i(y).e("footer"))},[i(c)?(E(),le(i(Bn),{key:0,text:"",size:"small",class:R(i(y).e("link-btn")),onClick:Yt},{default:ne(()=>[wt(Ce(i(_)("el.datepicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),Ye.showConfirm?(E(),le(i(Bn),{key:1,plain:"",size:"small",class:R(i(y).e("link-btn")),disabled:gt.value,onClick:Ge[18]||(Ge[18]=tt=>i(x)(!1))},{default:ne(()=>[wt(Ce(i(_)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),BH=DH;const VH=Ee({...Zm}),FH=["pick","set-picker-option","calendar-change"],zH=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:a}=xt();return{leftPrevYear:()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},leftNextYear:()=>{t.value=t.value.add(1,"year")},rightPrevYear:()=>{n.value=n.value.subtract(1,"year")},leftLabel:C(()=>`${t.value.year()} ${a("el.datepicker.year")}`),rightLabel:C(()=>`${n.value.year()} ${a("el.datepicker.year")}`),leftYear:C(()=>t.value.year()),rightYear:C(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year())}},HH=["disabled","onClick"],KH=["disabled"],WH=["disabled"],jH=["disabled"],UH=["disabled"],hc="year";var qH=se({name:"DatePickerMonthRange",__name:"panel-month-range",props:VH,emits:FH,setup(e,{emit:t}){const n=e,a=t,{lang:o}=xt(),r=$e(Go),s=$e(Vu,void 0),{shortcuts:l,disabledDate:u,cellClassName:c}=r.props,d=Ht(r.props,"format"),f=Ht(r.props,"defaultValue"),p=M(rt().locale(o.value)),g=M(rt().locale(o.value).add(1,hc)),{minDate:h,maxDate:v,rangeState:m,ppNs:b,drpNs:w,handleChangeRange:y,handleRangeConfirm:S,handleShortcutClick:k,onSelect:x,parseValue:O}=tg(n,{defaultValue:f,leftDate:p,rightDate:g,unit:hc,sortDates:H}),T=C(()=>!!l.length),{leftPrevYear:I,rightNextYear:_,leftNextYear:N,rightPrevYear:$,leftLabel:B,rightLabel:K,leftYear:j,rightYear:W}=zH({unlinkPanels:Ht(n,"unlinkPanels"),leftDate:p,rightDate:g}),A=C(()=>n.singlePanel||n.unlinkPanels&&W.value>j.value+1),P=(J,ee=!0)=>{const ae=J.minDate,ce=J.maxDate;v.value===ce&&h.value===ae||(a("calendar-change",[ae.toDate(),ce&&ce.toDate()]),v.value=ce,h.value=ae,ee&&S())},V=()=>{let J=null;r?.emptyValues&&(J=r.emptyValues.valueOnClear.value),p.value=Cf(i(f),{lang:i(o),unit:"year",unlinkPanels:n.unlinkPanels})[0],g.value=p.value.add(1,"year"),a("pick",J)},F=J=>Ml(J,d.value,o.value,s);function H(J,ee){n.unlinkPanels&&ee?g.value=(J?.year()||0)===ee.year()?ee.add(1,hc):ee:g.value=p.value.add(1,hc)}const U=ln();return pe(()=>n.visible,J=>{!J&&m.value.selecting&&(O(n.parsedValue),x(!1))}),a("set-picker-option",["isValidValue",iu]),a("set-picker-option",["parseUserInput",F]),a("set-picker-option",["handleClear",V]),(J,ee)=>(E(),L("div",{class:R([i(b).b(),i(w).b(),i(b).is("border",J.border),i(b).is("disabled",i(U)),{"has-sidebar":!!J.$slots.sidebar||T.value,"single-panel":J.singlePanel}])},[z("div",{class:R(i(b).e("body-wrapper"))},[oe(J.$slots,"sidebar",{class:R(i(b).e("sidebar"))}),T.value?(E(),L("div",{key:0,class:R(i(b).e("sidebar"))},[(E(!0),L(Ve,null,kt(i(l),(ae,ce)=>(E(),L("button",{key:ce,type:"button",class:R(i(b).e("shortcut")),disabled:i(U),onClick:Z=>i(k)(ae)},Ce(ae.text),11,HH))),128))],2)):re("v-if",!0),z("div",{class:R(i(b).e("body"))},[z("div",{class:R([i(b).e("content"),i(w).e("content"),i(w).is("left",!J.singlePanel)])},[z("div",{class:R(i(w).e("header"))},[z("button",{type:"button",class:R([i(b).e("icon-btn"),"d-arrow-left"]),disabled:i(U),onClick:ee[0]||(ee[0]=(...ae)=>i(I)&&i(I)(...ae))},[oe(J.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,KH),J.unlinkPanels||J.singlePanel?(E(),L("button",{key:0,type:"button",disabled:!A.value||i(U),class:R([[i(b).e("icon-btn"),i(b).is("disabled",!A.value||i(U))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...ae)=>i(N)&&i(N)(...ae))},[oe(J.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,WH)):re("v-if",!0),z("div",null,Ce(i(B)),1)],2),X(uu,{"selection-mode":"range",date:p.value,"min-date":i(h),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(U),"cell-class-name":i(c),onChangerange:i(y),onPick:P,onSelect:i(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),J.singlePanel?re("v-if",!0):(E(),L("div",{key:0,class:R([[i(b).e("content"),i(w).e("content")],"is-right"])},[z("div",{class:R(i(w).e("header"))},[J.unlinkPanels?(E(),L("button",{key:0,type:"button",disabled:!A.value||i(U),class:R([[i(b).e("icon-btn"),i(b).is("disabled",!A.value||i(U))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...ae)=>i($)&&i($)(...ae))},[oe(J.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,jH)):re("v-if",!0),z("button",{type:"button",class:R([i(b).e("icon-btn"),"d-arrow-right"]),disabled:i(U),onClick:ee[3]||(ee[3]=(...ae)=>i(_)&&i(_)(...ae))},[oe(J.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,UH),z("div",null,Ce(i(K)),1)],2),X(uu,{"selection-mode":"range",date:g.value,"min-date":i(h),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(U),"cell-class-name":i(c),onChangerange:i(y),onPick:P,onSelect:i(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2))],2)],2)],2))}}),YH=qH;const GH=Ee({...Zm}),XH=["pick","set-picker-option","calendar-change"],JH=({unlinkPanels:e,leftDate:t,rightDate:n})=>({leftPrevYear:()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},leftNextYear:()=>{t.value=t.value.add(10,"year")},rightPrevYear:()=>{n.value=n.value.subtract(10,"year")},leftLabel:C(()=>{const l=Math.floor(t.value.year()/10)*10;return`${l}-${l+9}`}),rightLabel:C(()=>{const l=Math.floor(n.value.year()/10)*10;return`${l}-${l+9}`}),leftYear:C(()=>Math.floor(t.value.year()/10)*10+9),rightYear:C(()=>Math.floor(n.value.year()/10)*10)}),ZH=["disabled","onClick"],QH=["disabled"],e7=["disabled"],t7=["disabled"],n7=["disabled"],Xs=10,ri="year";var a7=se({name:"DatePickerYearRange",__name:"panel-year-range",props:GH,emits:XH,setup(e,{emit:t}){const n=e,a=t,{lang:o}=xt(),r=M(rt().locale(o.value)),s=M(rt().locale(o.value).add(Xs,ri)),l=$e(Vu,void 0),u=$e(Go),{shortcuts:c,disabledDate:d,cellClassName:f}=u.props,p=Ht(u.props,"format"),g=Ht(u.props,"defaultValue"),{minDate:h,maxDate:v,rangeState:m,ppNs:b,drpNs:w,handleChangeRange:y,handleRangeConfirm:S,handleShortcutClick:k,onSelect:x,parseValue:O}=tg(n,{defaultValue:g,leftDate:r,rightDate:s,step:Xs,unit:ri,sortDates:ce}),{leftPrevYear:T,rightNextYear:I,leftNextYear:_,rightPrevYear:N,leftLabel:$,rightLabel:B,leftYear:K,rightYear:j}=JH({unlinkPanels:Ht(n,"unlinkPanels"),leftDate:r,rightDate:s}),W=ln(),A=C(()=>!!c.length),P=C(()=>[b.b(),w.b(),b.is("border",n.border),b.is("disabled",W.value),{"has-sidebar":!!wn().sidebar||A.value,"single-panel":n.singlePanel}]),V=C(()=>({content:[b.e("content"),w.e("content"),w.is("left",!n.singlePanel)],arrowLeftBtn:[b.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[b.e("icon-btn"),b.is("disabled",!H.value||W.value),"d-arrow-right"]})),F=C(()=>({content:[b.e("content"),w.e("content"),"is-right"],arrowLeftBtn:[b.e("icon-btn"),b.is("disabled",!H.value||W.value),"d-arrow-left"],arrowRightBtn:[b.e("icon-btn"),"d-arrow-right"]})),H=C(()=>n.singlePanel||n.unlinkPanels&&j.value>K.value+1),U=(Z,de=!0)=>{const ue=Z.minDate,Y=Z.maxDate;v.value===Y&&h.value===ue||(a("calendar-change",[ue.toDate(),Y&&Y.toDate()]),v.value=Y,h.value=ue,de&&S())},J=Z=>Ml(Z,p.value,o.value,l),ee=Z=>iu(Z)&&(d?!d(Z[0].toDate())&&!d(Z[1].toDate()):!0),ae=()=>{let Z=null;u?.emptyValues&&(Z=u.emptyValues.valueOnClear.value);const de=Cf(i(g),{lang:i(o),step:Xs,unit:ri,unlinkPanels:n.unlinkPanels});r.value=de[0],s.value=de[1],a("pick",Z)};function ce(Z,de){if(n.unlinkPanels&&de){const ue=Z?.year()||0,Y=de.year();s.value=ue+Xs>Y?de.add(Xs,ri):de}else s.value=r.value.add(Xs,ri)}return pe(()=>n.visible,Z=>{!Z&&m.value.selecting&&(O(n.parsedValue),x(!1))}),a("set-picker-option",["isValidValue",ee]),a("set-picker-option",["parseUserInput",J]),a("set-picker-option",["handleClear",ae]),(Z,de)=>(E(),L("div",{class:R(P.value)},[z("div",{class:R(i(b).e("body-wrapper"))},[oe(Z.$slots,"sidebar",{class:R(i(b).e("sidebar"))}),A.value?(E(),L("div",{key:0,class:R(i(b).e("sidebar"))},[(E(!0),L(Ve,null,kt(i(c),(ue,Y)=>(E(),L("button",{key:Y,type:"button",class:R(i(b).e("shortcut")),disabled:i(W),onClick:Q=>i(k)(ue)},Ce(ue.text),11,ZH))),128))],2)):re("v-if",!0),z("div",{class:R(i(b).e("body"))},[z("div",{class:R(V.value.content)},[z("div",{class:R(i(w).e("header"))},[z("button",{type:"button",class:R(V.value.arrowLeftBtn),disabled:i(W),onClick:de[0]||(de[0]=(...ue)=>i(T)&&i(T)(...ue))},[oe(Z.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,QH),Z.unlinkPanels||Z.singlePanel?(E(),L("button",{key:0,type:"button",disabled:!H.value||i(W),class:R(V.value.arrowRightBtn),onClick:de[1]||(de[1]=(...ue)=>i(_)&&i(_)(...ue))},[oe(Z.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,e7)):re("v-if",!0),z("div",null,Ce(i($)),1)],2),X(cu,{"selection-mode":"range",date:r.value,"min-date":i(h),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(W),"cell-class-name":i(f),onChangerange:i(y),onPick:U,onSelect:i(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),Z.singlePanel?re("v-if",!0):(E(),L("div",{key:0,class:R(F.value.content)},[z("div",{class:R(i(w).e("header"))},[Z.unlinkPanels?(E(),L("button",{key:0,type:"button",disabled:!H.value||i(W),class:R(F.value.arrowLeftBtn),onClick:de[2]||(de[2]=(...ue)=>i(N)&&i(N)(...ue))},[oe(Z.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,t7)):re("v-if",!0),z("button",{type:"button",class:R(F.value.arrowRightBtn),disabled:i(W),onClick:de[3]||(de[3]=(...ue)=>i(I)&&i(I)(...ue))},[oe(Z.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,n7),z("div",null,Ce(i(B)),1)],2),X(cu,{"selection-mode":"range",date:s.value,"min-date":i(h),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(W),"cell-class-name":i(f),onChangerange:i(y),onPick:U,onSelect:i(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2))],2)],2)],2))}}),o7=a7;const r7=function(e){switch(e){case"daterange":case"datetimerange":return BH;case"monthrange":return YH;case"yearrange":return o7;default:return wH}};var TE={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a){var o=a.prototype,r=o.format;o.format=function(s){var l=this,u=this.$locale();if(!this.isValid())return r.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return r.bind(this)(d)}}})})(TE);var s7=TE.exports;const l7=Or(s7);var OE={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){var n="week",a="year";return function(o,r,s){var l=r.prototype;l.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(a).add(1,a).date(c),f=s(this).endOf(n);if(d.isBefore(f))return 1}var p=s(this).startOf(a).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(p,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},l.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(OE);var i7=OE.exports;const u7=Or(i7);var _E={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a){a.prototype.weekYear=function(){var o=this.month(),r=this.week(),s=this.year();return r===1&&o===11?s+1:o===0&&r>=52?s-1:s}}})})(_E);var c7=_E.exports;const d7=Or(c7);var RE={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a,o){a.prototype.dayOfYear=function(r){var s=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(RE);var f7=RE.exports;const p7=Or(f7);var IE={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a){a.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}})})(IE);var h7=IE.exports;const v7=Or(h7);var $E={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a){a.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}})})($E);var m7=$E.exports;const g7=Or(m7);function b7(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}rt.extend(Tk);rt.extend(l7);rt.extend(Hm);rt.extend(u7);rt.extend(d7);rt.extend(p7);rt.extend(v7);rt.extend(g7);var y7=se({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:j9,emits:[at,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:a}){const o=ge("picker-panel");Rt($e("EP_PICKER_BASE",void 0))&&St(Go,{props:Dt({...Pn(e)})}),St(Xm,{slots:t,pickerNs:o});const{parsedValue:r,onCalendarChange:s,onPanelChange:l,onSetPickerOption:u,onPick:c}=$e(nk,()=>ik(e,n),!0);return()=>X(r7(e.type),pt(ku(a,"onPick"),e,{parsedValue:r.value,"onSet-picker-option":u,"onCalendar-change":s,"onPanel-change":l,onClear:()=>n("clear"),onPick:c}),b7(t)?t:{default:()=>[t]})}});const NE=st(y7),w7=Ee({...zm,type:{type:G(String),default:"date"}});function S7(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}var C7=se({name:"ElDatePicker",install:null,props:w7,emits:[at],setup(e,{expose:t,emit:n,slots:a}){St(Vu,C(()=>!e.format)),St(Vm,Dt(Ht(e,"popperOptions")));const o=M();t({focus:()=>{o.value?.focus()},blur:()=>{o.value?.blur()},handleOpen:()=>{o.value?.handleOpen()},handleClose:()=>{o.value?.handleClose()}});const r=s=>{n(at,s)};return()=>X(uk,pt(e,{format:e.format??(bB[e.type]||"YYYY-MM-DD"),type:e.type,ref:o,"onUpdate:modelValue":r}),{default:s=>X(NE,pt({disabled:e.disabled,editable:e.editable,border:!1},s),S7(a)?a:{default:()=>[a]}),"range-separator":a["range-separator"]})}});const k7=st(C7),E7=Ee({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Nn,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),ME="ElDescriptionsItem",x7=Ee({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:Nb,default:"left"},labelAlign:{type:String,values:Nb},className:{type:String,default:""},labelClassName:{type:String,default:""}}),PE=se({name:ME,props:x7}),ng=Symbol("elDescriptions"),T7=Ee({row:{type:G(Array),default:()=>[]}});var si=se({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:$e(ng,{})}},render(){const e=XM(this.cell),t=(this.cell?.dirs||[]).map(v=>{const{dir:m,arg:b,modifiers:w,value:y}=v;return[m,y,b,w]}),{border:n,direction:a}=this.descriptions,o=a==="vertical",r=()=>this.cell?.children?.label?.()||e.label,s=()=>this.cell?.children?.default?.(),l=e.span,u=e.rowspan,c=e.align?`is-${e.align}`:"",d=e.labelAlign?`is-${e.labelAlign}`:c,f=e.className,p=e.labelClassName,g={width:pn(this.type==="label"?e.labelWidth??this.descriptions.labelWidth??e.width:e.width),minWidth:pn(e.minWidth)},h=ge("descriptions");switch(this.type){case"label":return ct(qe(this.tag,{style:g,class:[h.e("cell"),h.e("label"),h.is("bordered-label",n),h.is("vertical-label",o),d,p],colSpan:o?l:1,rowspan:o?1:u},r()),t);case"content":return ct(qe(this.tag,{style:g,class:[h.e("cell"),h.e("content"),h.is("bordered-content",n),h.is("vertical-content",o),c,f],colSpan:o?l:l*2-1,rowspan:o?u*2-1:u},s()),t);default:{const v=r(),m={},b=pn(e.labelWidth??this.descriptions.labelWidth);return b&&(m.width=b,m.display="inline-block"),ct(qe("td",{style:g,class:[h.e("cell"),c],colSpan:l,rowspan:u},[En(v)?void 0:qe("span",{style:m,class:[h.e("label"),p]},v),qe("span",{class:[h.e("content"),f]},s())]),t)}}}});const O7={key:1};var _7=se({name:"ElDescriptionsRow",__name:"descriptions-row",props:T7,setup(e){const t=$e(ng,{});return(n,a)=>i(t).direction==="vertical"?(E(),L(Ve,{key:0},[z("tr",null,[(E(!0),L(Ve,null,kt(e.row,(o,r)=>(E(),le(i(si),{key:`tr1-${r}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),z("tr",null,[(E(!0),L(Ve,null,kt(e.row,(o,r)=>(E(),le(i(si),{key:`tr2-${r}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(E(),L("tr",O7,[(E(!0),L(Ve,null,kt(e.row,(o,r)=>(E(),L(Ve,{key:`tr3-${r}`},[i(t).border?(E(),L(Ve,{key:0},[X(i(si),{cell:o,tag:"td",type:"label"},null,8,["cell"]),X(i(si),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(E(),le(i(si),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}}),R7=_7,I7=se({name:"ElDescriptions",__name:"description",props:E7,setup(e){const t=e,n=ge("descriptions"),a=In(),o=wn();St(ng,t);const r=C(()=>[n.b(),n.m(a.value)]),s=(u,c,d,f=!1)=>(u.props||(u.props={}),c>d&&(u.props.span=d),f&&(u.props.span=c),u),l=()=>{if(!o.default)return[];const u=La(o.default()).filter(h=>h?.type?.name===ME),c=[];let d=[],f=t.column,p=0;const g=[];return u.forEach((h,v)=>{var y;const m=h.props?.span||1,b=h.props?.rowspan||1,w=c.length;if(g[w]||(g[w]=0),b>1)for(let S=1;S0&&(f-=g[w],g[w]=0),vf?f:m),v===u.length-1){const S=t.column-p%t.column;d.push(s(h,S,f,!0)),c.push(d);return}m(E(),L("div",{class:R(r.value)},[e.title||e.extra||u.$slots.title||u.$slots.extra?(E(),L("div",{key:0,class:R(i(n).e("header"))},[z("div",{class:R(i(n).e("title"))},[oe(u.$slots,"title",{},()=>[wt(Ce(e.title),1)])],2),z("div",{class:R(i(n).e("extra"))},[oe(u.$slots,"extra",{},()=>[wt(Ce(e.extra),1)])],2)],2)):re("v-if",!0),z("div",{class:R(i(n).e("body"))},[z("table",{class:R([i(n).e("table"),i(n).is("bordered",e.border)])},[z("tbody",null,[(E(!0),L(Ve,null,kt(l(),(d,f)=>(E(),le(R7,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}}),$7=I7;const N7=st($7,{DescriptionsItem:PE}),M7=sn(PE),AE=Ee({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:Ut},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),P7={close:()=>!0},LE=Ee({...AE,appendToBody:Boolean,appendTo:{type:G([String,Object]),default:"body"},beforeClose:{type:G(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:G([String,Object]),default:void 0}}),DE={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[at]:e=>Wt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},A7=Ee({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:G([String,Array,Object])},zIndex:{type:G([String,Number])}}),L7={click:e=>e instanceof MouseEvent},D7="overlay";var B7=se({name:"ElOverlay",props:A7,emits:L7,setup(e,{slots:t,emit:n}){const a=ge(D7),o=u=>{n("click",u)},{onClick:r,onMousedown:s,onMouseup:l}=Cm(e.customMaskEvent?void 0:o);return()=>e.mask?X("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:l},[oe(t,"default")],14,["onClick","onMouseup","onMousedown"]):qe("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[oe(t,"default")])}});const ag=B7,BE=Symbol("dialogInjectionKey"),Uy="dialog-fade",V7="ElDialog",VE=(e,t)=>{const n=dt().emit,{nextZIndex:a}=Iu();let o="";const r=Gn(),s=Gn(),l=M(!1),u=M(!1),c=M(!1),d=M(e.zIndex??a()),f=M(!1);let p,g;const h=xr(),v=C(()=>h.value?.namespace??"el"),m=C(()=>h.value?.dialog),b=C(()=>{const U={},J=`--${v.value}-dialog`;if(!e.fullscreen){e.top&&(U[`${J}-margin-top`]=e.top);const ee=pn(e.width);ee&&(U[`${J}-width`]=ee)}return U}),w=C(()=>(e.draggable??m.value?.draggable??!1)&&!e.fullscreen),y=C(()=>e.alignCenter??m.value?.alignCenter??!1),S=C(()=>e.overflow??m.value?.overflow??!1),k=C(()=>e.modalPenetrable&&!e.modal&&!e.fullscreen),x=C(()=>y.value?{display:"flex"}:{}),O=C(()=>{const U=e.transition??m.value?.transition??"dialog-fade",J={name:U,onAfterEnter:T,onBeforeLeave:_,onAfterLeave:I};if(ot(U)){const ee={...U},ae=(ce,Z)=>de=>{we(ce)?ce.forEach(ue=>{Fe(ue)&&ue(de)}):Fe(ce)&&ce(de),Z()};return ee.onAfterEnter=ae(ee.onAfterEnter,T),ee.onBeforeLeave=ae(ee.onBeforeLeave,_),ee.onAfterLeave=ae(ee.onAfterLeave,I),ee.name||(ee.name=Uy,jt(V7,`transition.name is missing when using object syntax, fallback to '${Uy}'`)),ee}return J});function T(){n("opened")}function I(){n("closed"),n(at,!1),e.destroyOnClose&&(c.value=!1),f.value=!1}function _(){f.value=!0,n("close")}function N(){g?.(),p?.(),e.openDelay&&e.openDelay>0?{stop:p}=El(()=>j(),e.openDelay):j()}function $(){p?.(),g?.(),e.closeDelay&&e.closeDelay>0?{stop:g}=El(()=>W(),e.closeDelay):W()}function B(){function U(J){J||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(U):$()}function K(){e.closeOnClickModal&&B()}function j(){Pt&&(l.value=!0)}function W(){l.value=!1}function A(){n("openAutoFocus")}function P(){n("closeAutoFocus")}function V(U){U.detail?.focusReason==="pointer"&&U.preventDefault()}e.lockScroll&&sf(l);function F(){e.closeOnPressEscape&&B()}function H(){!l.value||!k.value||e.zIndex!==void 0||(d.value=a())}return pe(()=>e.zIndex,()=>{d.value=e.zIndex??a()}),pe(()=>e.modelValue,U=>{U?(u.value=!1,f.value=!1,N(),c.value=!0,d.value=e.zIndex??a(),Ne(()=>{n("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):l.value&&$()}),pe(()=>e.fullscreen,U=>{t.value&&(U?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),ht(()=>{e.modelValue&&(l.value=!0,c.value=!0,N())}),{afterEnter:T,afterLeave:I,beforeLeave:_,handleClose:B,onModalClick:K,close:$,doClose:W,onOpenAutoFocus:A,onCloseAutoFocus:P,onCloseRequested:F,onFocusoutPrevented:V,bringToFront:H,titleId:r,bodyId:s,closed:u,style:b,overlayDialogStyle:x,rendered:c,visible:l,zIndex:d,transitionConfig:O,_draggable:w,_alignCenter:y,_overflow:S,closing:f,penetrable:k}},og=(...e)=>t=>{e.forEach(n=>{n.value=t})},F7=["aria-level"],z7=["aria-label"],H7=["id"];var K7=se({name:"ElDialogContent",__name:"dialog-content",props:AE,emits:P7,setup(e,{expose:t}){const{t:n}=xt(),{Close:a}=IC,o=e,{dialogRef:r,headerRef:s,bodyId:l,ns:u,style:c}=$e(BE),{focusTrapRef:d}=$e(zC),f=og(d,r),p=C(()=>!!o.draggable),{resetPosition:g,updatePosition:h,isDragging:v}=zS(r,s,p,C(()=>!!o.overflow)),m=C(()=>[u.b(),u.is("fullscreen",o.fullscreen),u.is("draggable",p.value),u.is("dragging",v.value),u.is("align-center",!!o.alignCenter),{[u.m("center")]:o.center}]);return t({resetPosition:g,updatePosition:h}),(b,w)=>(E(),L("div",{ref:i(f),class:R(m.value),style:ze(i(c)),tabindex:"-1"},[z("header",{ref_key:"headerRef",ref:s,class:R([i(u).e("header"),e.headerClass,{"show-close":e.showClose}])},[oe(b.$slots,"header",{},()=>[z("span",{role:"heading","aria-level":e.ariaLevel,class:R(i(u).e("title"))},Ce(e.title),11,F7)]),e.showClose?(E(),L("button",{key:0,"aria-label":i(n)("el.dialog.close"),class:R(i(u).e("headerbtn")),type:"button",onClick:w[0]||(w[0]=y=>b.$emit("close"))},[X(i(De),{class:R(i(u).e("close"))},{default:ne(()=>[(E(),le(it(e.closeIcon||i(a))))]),_:1},8,["class"])],10,z7)):re("v-if",!0)],2),z("div",{id:i(l),class:R([i(u).e("body"),e.bodyClass])},[oe(b.$slots,"default")],10,H7),b.$slots.footer?(E(),L("footer",{key:0,class:R([i(u).e("footer"),e.footerClass])},[oe(b.$slots,"footer")],2)):re("v-if",!0)],6))}}),W7=K7;const j7=["aria-label","aria-labelledby","aria-describedby"];var U7=se({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:LE,emits:DE,setup(e,{expose:t}){const n=e,a=wn();Po({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},C(()=>!!a.title));const o=ge("dialog"),r=M(),s=M(),l=M(),{visible:u,titleId:c,bodyId:d,style:f,overlayDialogStyle:p,rendered:g,transitionConfig:h,zIndex:v,_draggable:m,_alignCenter:b,_overflow:w,penetrable:y,handleClose:S,onModalClick:k,onOpenAutoFocus:x,onCloseAutoFocus:O,onCloseRequested:T,onFocusoutPrevented:I,bringToFront:_,closing:N}=VE(n,r);St(BE,{dialogRef:r,headerRef:s,bodyId:d,ns:o,rendered:g,style:f});const $=Cm(k);return t({visible:u,dialogContentRef:l,resetPosition:()=>{l.value?.resetPosition()},handleClose:S}),(K,j)=>(E(),le(Vl,{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},[X(Yn,pt(i(h),{persisted:""}),{default:ne(()=>[ct(X(i(ag),{"custom-mask-event":"",mask:e.modal,"overlay-class":[e.modalClass??"",`${i(o).namespace.value}-modal-dialog`,i(o).is("penetrable",i(y))],"z-index":i(v)},{default:ne(()=>[z("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(c),"aria-describedby":i(d),class:R([`${i(o).namespace.value}-overlay-dialog`,i(o).is("closing",i(N))]),style:ze(i(p)),onClick:j[0]||(j[0]=(...W)=>i($).onClick&&i($).onClick(...W)),onMousedown:j[1]||(j[1]=(...W)=>i($).onMousedown&&i($).onMousedown(...W)),onMouseup:j[2]||(j[2]=(...W)=>i($).onMouseup&&i($).onMouseup(...W))},[X(i(ql),{loop:"",trapped:i(u),"focus-start-el":"container",onFocusAfterTrapped:i(x),onFocusAfterReleased:i(O),onFocusoutPrevented:i(I),onReleaseRequested:i(T)},{default:ne(()=>[i(g)?(E(),le(W7,pt({key:0,ref_key:"dialogContentRef",ref:l},K.$attrs,{center:e.center,"align-center":i(b),"close-icon":e.closeIcon,draggable:i(m),overflow:i(w),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:i(S),onMousedown:i(_)}),ga({header:ne(()=>[K.$slots.title?oe(K.$slots,"title",{key:1}):oe(K.$slots,"header",{key:0,close:i(S),titleId:i(c),titleClass:i(o).e("title")})]),default:ne(()=>[oe(K.$slots,"default")]),_:2},[K.$slots.footer?{name:"footer",fn:ne(()=>[oe(K.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose","onMousedown"])):re("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,j7)]),_:3},8,["mask","overlay-class","z-index"]),[[$t,i(u)]])]),_:3},16)],8,["to","disabled"]))}}),q7=U7;const Y7=st(q7),G7=Ee({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:G(String),default:"solid"}});var X7=se({name:"ElDivider",__name:"divider",props:G7,setup(e){const t=e,n=ge("divider"),a=C(()=>n.cssVar({"border-style":t.borderStyle}));return(o,r)=>(E(),L("div",{class:R([i(n).b(),i(n).m(e.direction)]),style:ze(a.value),role:"separator"},[o.$slots.default&&e.direction!=="vertical"?(E(),L("div",{key:0,class:R([i(n).e("text"),i(n).is(e.contentPosition)])},[oe(o.$slots,"default")],2)):re("v-if",!0)],6))}}),J7=X7;const FE=st(J7),Z7=Ee({...LE,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),Q7={...DE,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function eK(e,t,n){const{width:a,height:o}=im(),r=C(()=>["ltr","rtl"].includes(e.direction)),s=C(()=>["ltr","ttb"].includes(e.direction)?1:-1),l=C(()=>r.value?a.value:o.value),u=C(()=>af(c.value+s.value*d.value,4,l.value)),c=M(0),d=M(0),f=M(!1),p=M(!1);let g=[],h=[];const v=()=>{const S=t.value?.closest('[aria-modal="true"]');return S?r.value?S.offsetWidth:S.offsetHeight:100};pe(()=>[e.size,e.resizable],()=>{p.value=!1,c.value=0,d.value=0,w()});const m=S=>{e.resizable&&(p.value||(c.value=v(),p.value=!0),g=[S.pageX,S.pageY],f.value=!0,n("resize-start",S,c.value),h.push(Bt(window,"mouseup",w),Bt(window,"mousemove",b)))},b=S=>{const{pageX:k,pageY:x}=S,O=k-g[0],T=x-g[1];d.value=r.value?O:T,n("resize",S,u.value)},w=S=>{f.value&&(g=[],c.value=u.value,d.value=0,f.value=!1,h.forEach(k=>k?.()),h=[],S&&n("resize-end",S,c.value))},y=Bt(t,"mousedown",m);return Vt(()=>{y(),w()}),{size:C(()=>p.value?`${u.value}px`:pn(e.size)),isResizing:f,isHorizontal:r}}const tK=["aria-label","aria-labelledby","aria-describedby"],nK=["id","aria-level"],aK=["aria-label"],oK=["id"];var rK=se({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:Z7,emits:Q7,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wn();Po({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},C(()=>!!r.title));const s=M(),l=M(),u=M(),c=ge("drawer"),{t:d}=xt(),{afterEnter:f,afterLeave:p,beforeLeave:g,visible:h,rendered:v,titleId:m,bodyId:b,zIndex:w,onModalClick:y,onOpenAutoFocus:S,onCloseAutoFocus:k,onFocusoutPrevented:x,onCloseRequested:O,handleClose:T}=VE(a,s),{isHorizontal:I,size:_,isResizing:N}=eK(a,u,o),$=C(()=>a.modalPenetrable&&!a.modal);return t({handleClose:T,afterEnter:f,afterLeave:p}),(B,K)=>(E(),le(Vl,{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},[X(Yn,{name:i(c).b("fade"),onAfterEnter:i(f),onAfterLeave:i(p),onBeforeLeave:i(g),persisted:""},{default:ne(()=>[ct(X(i(ag),{mask:e.modal,"overlay-class":[i(c).is("drawer"),e.modalClass??"",`${i(c).namespace.value}-modal-drawer`,i(c).is("penetrable",$.value)],"z-index":i(w),onClick:i(y)},{default:ne(()=>[X(i(ql),{loop:"",trapped:i(h),"focus-trap-el":s.value,"focus-start-el":l.value,onFocusAfterTrapped:i(S),onFocusAfterReleased:i(k),onFocusoutPrevented:i(x),onReleaseRequested:i(O)},{default:ne(()=>[z("div",pt({ref_key:"drawerRef",ref:s,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(m),"aria-describedby":i(b)},B.$attrs,{class:[i(c).b(),e.direction,i(h)&&"open",i(c).is("dragging",i(N))],style:{[i(I)?"width":"height"]:i(_)},role:"dialog",onClick:K[1]||(K[1]=Xe(()=>{},["stop"]))}),[z("span",{ref_key:"focusStartRef",ref:l,class:R(i(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(E(),L("header",{key:0,class:R([i(c).e("header"),e.headerClass])},[B.$slots.title?oe(B.$slots,"title",{key:1},()=>[re(" DEPRECATED SLOT ")]):oe(B.$slots,"header",{key:0,close:i(T),titleId:i(m),titleClass:i(c).e("title")},()=>[z("span",{id:i(m),role:"heading","aria-level":e.headerAriaLevel,class:R(i(c).e("title"))},Ce(e.title),11,nK)]),e.showClose?(E(),L("button",{key:2,"aria-label":i(d)("el.drawer.close"),class:R(i(c).e("close-btn")),type:"button",onClick:K[0]||(K[0]=(...j)=>i(T)&&i(T)(...j))},[X(i(De),{class:R(i(c).e("close"))},{default:ne(()=>[X(i(Qa))]),_:1},8,["class"])],10,aK)):re("v-if",!0)],2)):re("v-if",!0),i(v)?(E(),L("div",{key:1,id:i(b),class:R([i(c).e("body"),e.bodyClass])},[oe(B.$slots,"default")],10,oK)):re("v-if",!0),B.$slots.footer?(E(),L("div",{key:2,class:R([i(c).e("footer"),e.footerClass])},[oe(B.$slots,"footer")],2)):re("v-if",!0),e.resizable?(E(),L("div",{key:3,ref_key:"draggerRef",ref:u,style:ze({zIndex:i(w)}),class:R(i(c).e("dragger"))},null,6)):re("v-if",!0)],16,tK)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[$t,i(h)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}}),sK=rK;const lK=st(sK),$c=Ee({trigger:{...Bo.trigger,type:G([String,Array])},triggerKeys:{type:G(Array),default:()=>[Se.enter,Se.numpadEnter,Se.space,Se.down]},virtualTriggering:Bo.virtualTriggering,virtualRef:Bo.virtualRef,effect:{...Kt.effect,default:"light"},type:{type:G(String)},placement:{type:G(String),default:"bottom"},popperOptions:{type:G(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:G([Number,String]),default:0},maxHeight:{type:G([Number,String]),default:""},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,disabled:Boolean,role:{type:String,values:$C,default:"menu"},buttonProps:{type:G(Object)},teleported:Kt.teleported,appendTo:Kt.appendTo,persistent:{type:Boolean,default:!0}}),zE=Ee({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ut}}),iK=Ee({onKeydown:{type:G(Function)}}),kf=Symbol("elDropdown"),HE="elDropdown";var uK=se({inheritAttrs:!1});function cK(e,t,n,a,o,r){return oe(e.$slots,"default")}var dK=Mn(uK,[["render",cK]]),fK=se({name:"ElCollectionItem",inheritAttrs:!1});function pK(e,t,n,a,o,r){return oe(e.$slots,"default")}var hK=Mn(fK,[["render",pK]]);const KE="data-el-collection-item",vK=e=>{const t=`El${e}Collection`,n=`${t}Item`,a=Symbol(t),o=Symbol(n);return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:Object.assign({},dK,{name:t,setup(){const r=M(),s=new Map;St(a,{itemMap:s,getItems:()=>{const u=i(r);if(!u)return[];const c=Array.from(u.querySelectorAll(`[${KE}]`));return[...s.values()].sort((d,f)=>c.indexOf(d.ref)-c.indexOf(f.ref))},collectionRef:r})}}),ElCollectionItem:Object.assign({},hK,{name:n,setup(r,{attrs:s}){const l=M(),u=$e(a,void 0);St(o,{collectionItemRef:l}),ht(()=>{const c=i(l);c&&u.itemMap.set(c,{ref:c,...s})}),Vt(()=>{const c=i(l);u.itemMap.delete(c)})}})}},mK=Ee({style:{type:G([String,Array,Object,Boolean]),default:void 0},currentTabId:{type:G(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:G(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:gK,ElCollectionItem:bK,COLLECTION_INJECTION_KEY:WE,COLLECTION_ITEM_INJECTION_KEY:yK}=vK("RovingFocusGroup"),rg=Symbol("elRovingFocusGroup"),jE=Symbol("elRovingFocusGroupItem"),wK={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},SK=(e,t)=>e,CK=(e,t,n)=>{const a=SK(qt(e));return wK[a]},kK=(e,t)=>e.map((n,a)=>e[(a+t)%e.length]),qy=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Yy="currentTabIdChange",Gy="rovingFocusGroup.entryFocus",EK={bubbles:!1,cancelable:!0};var xK=se({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:mK,emits:[Yy,"entryFocus"],setup(e,{emit:t}){const n=M((e.currentTabId||e.defaultCurrentTabId)??null),a=M(!1),o=M(!1),r=M(),{getItems:s}=$e(WE,void 0),l=C(()=>[{outline:"none"},e.style]),u=v=>{t(Yy,v)},c=()=>{a.value=!0},d=Ln(v=>{e.onMousedown?.(v)},()=>{o.value=!0}),f=Ln(v=>{e.onFocus?.(v)},v=>{const m=!i(o),{target:b,currentTarget:w}=v;if(b===w&&m&&!i(a)){const y=new Event(Gy,EK);if(w?.dispatchEvent(y),!y.defaultPrevented){const S=s().filter(k=>k.focusable);qy([S.find(k=>k.active),S.find(k=>k.id===i(n)),...S].filter(Boolean).map(k=>k.ref))}}o.value=!1}),p=Ln(v=>{e.onBlur?.(v)},()=>{a.value=!1}),g=(...v)=>{t("entryFocus",...v)},h=v=>{const m=CK(v);if(m){v.preventDefault();let b=s().filter(w=>w.focusable).map(w=>w.ref);switch(m){case"last":b.reverse();break;case"prev":case"next":{m==="prev"&&b.reverse();const w=b.indexOf(v.currentTarget);b=e.loop?kK(b,w+1):b.slice(w+1);break}}Ne(()=>{qy(b)})}};St(rg,{currentTabbedId:gl(n),loop:Ht(e,"loop"),tabIndex:C(()=>i(a)?-1:0),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:l,orientation:Ht(e,"orientation"),dir:Ht(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:p,onFocus:f,onMousedown:d,onKeydown:h}),pe(()=>e.currentTabId,v=>{n.value=v??null}),Bt(r,Gy,g)}});function TK(e,t,n,a,o,r){return oe(e.$slots,"default")}var OK=Mn(xK,[["render",TK]]),_K=se({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:gK,ElRovingFocusGroupImpl:OK}});function RK(e,t,n,a,o,r){const s=Mt("el-roving-focus-group-impl"),l=Mt("el-focus-group-collection");return E(),le(l,null,{default:ne(()=>[X(s,sr(ir(e.$attrs)),{default:ne(()=>[oe(e.$slots,"default")]),_:3},16)]),_:3})}var IK=Mn(_K,[["render",RK]]),$K=se({components:{ElRovingFocusCollectionItem:bK},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:a,onItemShiftTab:o,onKeydown:r}=$e(rg,void 0),s=Gn(),l=M(),u=Ln(p=>{t("mousedown",p)},p=>{e.focusable?a(i(s)):p.preventDefault()}),c=Ln(p=>{t("focus",p)},()=>{a(i(s))}),d=Ln(p=>{t("keydown",p)},p=>{const{shiftKey:g,target:h,currentTarget:v}=p;if(qt(p)===Se.tab&&g){o();return}h===v&&r(p)}),f=C(()=>n.value===i(s));return St(jE,{rovingFocusGroupItemRef:l,tabIndex:C(()=>i(f)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:s,handleKeydown:d,handleFocus:c,handleMousedown:u}}});function NK(e,t,n,a,o,r){const s=Mt("el-roving-focus-collection-item");return E(),le(s,{id:e.id,focusable:e.focusable,active:e.active},{default:ne(()=>[oe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var MK=Mn($K,[["render",NK]]),PK=IK;const{ButtonGroup:AK}=Bn;var LK=se({name:"ElDropdown",components:{ElButton:Bn,ElButtonGroup:AK,ElScrollbar:mo,ElTooltip:Wn,ElRovingFocusGroup:PK,ElOnlyChild:AC,ElIcon:De,ArrowDown:qo},props:$c,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=dt(),a=ge("dropdown"),{t:o}=xt(),r=M(),s=M(),l=M(),u=M(),c=M(null),d=M(null),f=M(!1),p=C(()=>({maxHeight:pn(e.maxHeight)})),g=C(()=>[a.m(S.value)]),h=C(()=>Dn(e.trigger)),v=Gn().value,m=C(()=>e.id||v);function b(){l.value?.onClose(void 0,0)}function w(){l.value?.onClose()}function y(){l.value?.onOpen()}const S=In();function k(...B){t("command",...B)}function x(){}function O(){const B=i(u);h.value.includes("hover")&&B?.focus({preventScroll:!0}),d.value=null}function T(B){d.value=B}function I(){t("visible-change",!0)}function _(B){f.value=B?.type==="keydown",u.value?.focus()}function N(){t("visible-change",!1)}return St(kf,{contentRef:u,role:C(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:x,onItemLeave:O,handleClose:w}),St(HE,{instance:n,dropdownSize:S,handleClick:b,commandHandler:k,trigger:Ht(e,"trigger"),hideOnClick:Ht(e,"hideOnClick")}),{t:o,ns:a,scrollbar:c,wrapStyle:p,dropdownTriggerKls:g,dropdownSize:S,triggerId:m,currentTabId:d,handleCurrentTabIdChange:T,handlerMainButtonClick:B=>{t("click",B)},handleClose:w,handleOpen:y,handleBeforeShowTooltip:I,handleShowTooltip:_,handleBeforeHideTooltip:N,popperRef:l,contentRef:u,triggeringElementRef:r,referenceElementRef:s}}});function DK(e,t,n,a,o,r){const s=Mt("el-roving-focus-group"),l=Mt("el-scrollbar"),u=Mt("el-only-child"),c=Mt("el-tooltip"),d=Mt("el-button"),f=Mt("arrow-down"),p=Mt("el-icon"),g=Mt("el-button-group");return E(),L("div",{class:R([e.ns.b(),e.ns.is("disabled",e.disabled)])},[X(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":e.virtualRef??e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},ga({content:ne(()=>[X(l,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ne(()=>[X(s,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:ne(()=>[oe(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ne(()=>[X(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ne(()=>[oe(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(E(),le(g,{key:0},{default:ne(()=>[X(d,pt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ne(()=>[oe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),X(d,pt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ne(()=>[X(p,{class:R(e.ns.e("icon"))},{default:ne(()=>[X(f)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):re("v-if",!0)],2)}var BK=Mn(LK,[["render",DK]]),VK=se({name:"DropdownItemImpl",components:{ElIcon:De},props:zE,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ge("dropdown"),{role:a}=$e(kf,void 0),{collectionItemRef:o}=$e(yK,void 0),{rovingFocusGroupItemRef:r,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=$e(jE,void 0),d=og(o,r),f=C(()=>a.value==="menu"?"menuitem":a.value==="navigation"?"link":"button"),p=Ln(g=>{const h=qt(g);if([Se.enter,Se.numpadEnter,Se.space].includes(h))return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:d,dataset:{[KE]:""},role:f,tabIndex:s,handleFocus:l,handleKeydown:p,handleMousedown:c}}});const FK=["aria-disabled","tabindex","role"];function zK(e,t,n,a,o,r){const s=Mt("el-icon");return E(),L(Ve,null,[e.divided?(E(),L("li",{key:0,role:"separator",class:R(e.ns.bem("menu","item","divided"))},null,2)):re("v-if",!0),z("li",pt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=l=>e.$emit("clickimpl",l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onKeydown:t[2]||(t[2]=Xe((...l)=>e.handleKeydown&&e.handleKeydown(...l),["self"])),onMousedown:t[3]||(t[3]=(...l)=>e.handleMousedown&&e.handleMousedown(...l)),onPointermove:t[4]||(t[4]=l=>e.$emit("pointermove",l)),onPointerleave:t[5]||(t[5]=l=>e.$emit("pointerleave",l))}),[e.icon||e.$slots.icon?(E(),le(s,{key:0},{default:ne(()=>[oe(e.$slots,"icon",{},()=>[(E(),le(it(e.icon)))])]),_:3})):re("v-if",!0),oe(e.$slots,"default")],16,FK)],64)}var HK=Mn(VK,[["render",zK]]);const UE=()=>{const e=$e(HE,{});return{elDropdown:e,_elDropdownSize:C(()=>e?.dropdownSize)}};var KK=se({name:"ElDropdownItem",components:{ElRovingFocusItem:MK,ElDropdownItemImpl:HK},inheritAttrs:!1,props:zE,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:a}=UE(),o=dt(),{onItemEnter:r,onItemLeave:s}=$e(kf,void 0),l=Ln(c=>(t("pointermove",c),c.defaultPrevented),v0(c=>{if(e.disabled){s(c);return}const d=c.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(r(c),c.defaultPrevented||d?.focus({preventScroll:!0}))})),u=Ln(c=>(t("pointerleave",c),c.defaultPrevented),v0(s));return{handleClick:Ln(c=>{if(!e.disabled)return t("click",c),c.type!=="keydown"&&c.defaultPrevented},c=>{if(e.disabled){c.stopImmediatePropagation();return}a?.hideOnClick?.value&&a.handleClick?.(),a.commandHandler?.(e.command,o,c)}),handlePointerMove:l,handlePointerLeave:u,propsAndAttrs:C(()=>({...e,...n}))}}});function WK(e,t,n,a,o,r){const s=Mt("el-dropdown-item-impl"),l=Mt("el-roving-focus-item");return E(),le(l,{focusable:!e.disabled},{default:ne(()=>[X(s,pt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),ga({default:ne(()=>[oe(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:ne(()=>[oe(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var qE=Mn(KK,[["render",WK]]),jK=se({name:"ElDropdownMenu",props:iK,setup(e){const t=ge("dropdown"),{_elDropdownSize:n}=UE(),a=n.value,{contentRef:o,role:r,triggerId:s,isUsingKeyboard:l,handleClose:u}=$e(kf,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:d,onBlur:f,onFocus:p,onKeydown:g,onMousedown:h}=$e(rg,void 0),{collectionRef:v}=$e(WE,void 0),m=C(()=>[t.b("menu"),t.bm("menu",a?.value)]),b=og(o,c,v),w=Ln(S=>{e.onKeydown?.(S)},S=>{const{currentTarget:k,target:x}=S,O=qt(S);if(k.contains(x),Se.tab===O)return u();g(S)});function y(S){l.value&&p(S)}return{size:a,rovingFocusGroupRootStyle:d,dropdownKls:m,role:r,triggerId:s,dropdownListWrapperRef:b,handleKeydown:w,onBlur:f,handleFocus:y,onMousedown:h}}});const UK=["role","aria-labelledby"];function qK(e,t,n,a,o,r){return E(),L("ul",{ref:e.dropdownListWrapperRef,class:R(e.dropdownKls),style:ze(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onFocusout:t[1]||(t[1]=(...s)=>e.onBlur&&e.onBlur(...s)),onKeydown:t[2]||(t[2]=Xe((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=Xe((...s)=>e.onMousedown&&e.onMousedown(...s),["self"]))},[oe(e.$slots,"default")],46,UK)}var YE=Mn(jK,[["render",qK]]);const YK=st(BK,{DropdownItem:qE,DropdownMenu:YE}),GK=sn(qE),XK=sn(YE),JK=Ee({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),ZK={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},QK=["id"],eW=["stop-color"],tW=["stop-color"],nW=["id"],aW=["stop-color"],oW=["stop-color"],rW=["id"],sW={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},lW={transform:"translate(-1268.000000, -535.000000)"},iW={transform:"translate(1268.000000, 535.000000)"},uW=["fill"],cW=["fill"],dW={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},fW=["fill"],pW=["fill"],hW=["fill"],vW=["fill"],mW=["fill"],gW={transform:"translate(53.000000, 45.000000)"},bW=["fill","xlink:href"],yW=["fill","mask"],wW=["fill"];var SW=se({name:"ImgEmpty",__name:"img-empty",setup(e){const t=ge("empty"),n=Gn();return(a,o)=>(E(),L("svg",ZK,[z("defs",null,[z("linearGradient",{id:`linearGradient-1-${i(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[z("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,eW),z("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,tW)],8,QK),z("linearGradient",{id:`linearGradient-2-${i(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[z("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,aW),z("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,oW)],8,nW),z("rect",{id:`path-3-${i(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,rW)]),z("g",sW,[z("g",lW,[z("g",iW,[z("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${i(t).cssVarBlockName("fill-color-3")})`},null,8,uW),z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,cW),z("g",dW,[z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,fW),z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,pW),z("rect",{fill:`url(#linearGradient-1-${i(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,hW),z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,vW)]),z("rect",{fill:`url(#linearGradient-2-${i(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,mW),z("g",gW,[z("use",{fill:`var(${i(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${i(n)}`},null,8,bW),z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${i(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,yW)]),z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,wW)])])])]))}}),CW=SW;const kW=["src"],EW={key:1};var xW=se({name:"ElEmpty",__name:"empty",props:JK,setup(e){const t=e,{t:n}=xt(),a=ge("empty"),o=C(()=>t.description||n("el.table.emptyText")),r=C(()=>({width:pn(t.imageSize)}));return(s,l)=>(E(),L("div",{class:R(i(a).b())},[z("div",{class:R(i(a).e("image")),style:ze(r.value)},[e.image?(E(),L("img",{key:0,src:e.image,ondragstart:"return false"},null,8,kW)):oe(s.$slots,"image",{key:1},()=>[X(CW)])],6),z("div",{class:R(i(a).e("description"))},[s.$slots.description?oe(s.$slots,"description",{key:0}):(E(),L("p",EW,Ce(o.value),1))],2),s.$slots.default?(E(),L("div",{key:0,class:R(i(a).e("bottom"))},[oe(s.$slots,"default")],2)):re("v-if",!0)],2))}}),TW=xW;const GE=st(TW),OW=Ee({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:G([String,Object])},previewSrcList:{type:G(Array),default:()=>fn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:G(String)}}),_W={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Be(e),close:()=>!0,show:()=>!0},RW=Ee({urlList:{type:G(Array),default:()=>fn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:G(String)}}),IW={close:()=>!0,error:e=>e instanceof Event,switch:e=>Be(e),rotate:e=>Be(e)},$W=["src","crossorigin"];var NW=se({name:"ElImageViewer",__name:"image-viewer",props:RW,emits:IW,setup(e,{expose:t,emit:n}){const a={CONTAIN:{name:"contain",icon:Ya(JP)},ORIGINAL:{name:"original",icon:Ya(IA)}},o=e,r=n;let s;const{t:l}=xt(),u=ge("image-viewer"),{nextZIndex:c}=Iu(),d=M(),f=M(),p=Ov(),g=C(()=>{const{scale:ue,minScale:Y,maxScale:Q}=o;return af(ue,Y,Q)}),h=M(!0),v=M(!1),m=M(!1),b=M(o.initialIndex),w=Tt(a.CONTAIN),y=M({scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),S=M(o.zIndex??c());sf(m,{ns:u});const k=C(()=>{const{urlList:ue}=o;return ue.length<=1}),x=C(()=>b.value===0),O=C(()=>b.value===o.urlList.length-1),T=C(()=>o.urlList[b.value]),I=C(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&x.value)]),_=C(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&O.value)]),N=C(()=>{const{scale:ue,deg:Y,offsetX:Q,offsetY:D,enableTransition:q}=y.value;let te=Q/ue,fe=D/ue;const he=Y*Math.PI/180,ve=Math.cos(he),Ie=Math.sin(he);te=te*ve+fe*Ie,fe=fe*ve-Q/ue*Ie;const Le={transform:`scale(${ue}) rotate(${Y}deg) translate(${te}px, ${fe}px)`,transition:q?"transform .3s":""};return w.value.name===a.CONTAIN.name&&(Le.maxWidth=Le.maxHeight="100%"),Le}),$=C(()=>`${b.value+1} / ${o.urlList.length}`);function B(){j(),s?.(),m.value=!1,r("close")}function K(){const ue=Fr(Q=>{switch(qt(Q)){case Se.esc:o.closeOnPressEscape&&B();break;case Se.space:H();break;case Se.left:J();break;case Se.up:ae("zoomIn");break;case Se.right:ee();break;case Se.down:ae("zoomOut");break}}),Y=Fr(Q=>{ae((Q.deltaY||Q.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{Bt(document,"keydown",ue),Bt(d,"wheel",Y)})}function j(){p.stop()}function W(){h.value=!1}function A(ue){v.value=!0,h.value=!1,r("error",ue),ue.target.alt=l("el.image.error")}function P(ue){if(h.value||ue.button!==0||!d.value)return;y.value.enableTransition=!1;const{offsetX:Y,offsetY:Q}=y.value,D=ue.pageX,q=ue.pageY,te=Fr(ve=>{y.value={...y.value,offsetX:Y+ve.pageX-D,offsetY:Q+ve.pageY-q}}),fe=Bt(document,"mousemove",te),he=Bt(document,"mouseup",()=>{fe(),he()});ue.preventDefault()}function V(ue){if(h.value||!d.value||ue.touches.length!==1)return;y.value.enableTransition=!1;const{offsetX:Y,offsetY:Q}=y.value,{pageX:D,pageY:q}=ue.touches[0],te=Fr(ve=>{const Ie=ve.touches[0];y.value={...y.value,offsetX:Y+Ie.pageX-D,offsetY:Q+Ie.pageY-q}}),fe=Bt(document,"touchmove",te),he=Bt(document,"touchend",()=>{fe(),he()});ue.preventDefault()}function F(){y.value={scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function H(){if(h.value||v.value)return;const ue=Ji(a),Y=Object.values(a),Q=w.value.name;w.value=a[ue[(Y.findIndex(D=>D.name===Q)+1)%ue.length]],F()}function U(ue){v.value=!1;const Y=o.urlList.length;b.value=(ue+Y)%Y}function J(){x.value&&!o.infinite||U(b.value-1)}function ee(){O.value&&!o.infinite||U(b.value+1)}function ae(ue,Y={}){if(h.value||v.value)return;const{minScale:Q,maxScale:D}=o,{zoomRate:q,rotateDeg:te,enableTransition:fe}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Y};switch(ue){case"zoomOut":y.value.scale>Q&&(y.value.scale=Number.parseFloat((y.value.scale/q).toFixed(3)));break;case"zoomIn":y.value.scale0)return ue.preventDefault(),!1}}return pe(()=>g.value,ue=>{y.value.scale=ue}),pe(T,()=>{Ne(()=>{f.value?.complete||(h.value=!0)})}),pe(b,ue=>{F(),r("switch",ue)}),ht(()=>{m.value=!0,K(),s=Bt("wheel",de,{passive:!1})}),t({setActiveItem:U}),(ue,Y)=>(E(),le(Vl,{to:"body",disabled:!e.teleported},[X(Yn,{name:"viewer-fade",appear:""},{default:ne(()=>[z("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:R(i(u).e("wrapper")),style:ze({zIndex:S.value})},[X(i(ql),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:ce,onReleaseRequested:Z},{default:ne(()=>[z("div",{class:R(i(u).e("mask")),onClick:Y[0]||(Y[0]=Xe(Q=>e.hideOnClickModal&&B(),["self"]))},null,2),re(" CLOSE "),z("span",{class:R([i(u).e("btn"),i(u).e("close")]),onClick:B},[X(i(De),null,{default:ne(()=>[X(i(Qa))]),_:1})],2),re(" ARROW "),k.value?re("v-if",!0):(E(),L(Ve,{key:0},[z("span",{class:R(I.value),onClick:J},[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1})],2),z("span",{class:R(_.value),onClick:ee},[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})],2)],64)),ue.$slots.progress||e.showProgress?(E(),L("div",{key:1,class:R([i(u).e("btn"),i(u).e("progress")])},[oe(ue.$slots,"progress",{activeIndex:b.value,total:e.urlList.length},()=>[wt(Ce($.value),1)])],2)):re("v-if",!0),re(" ACTIONS "),z("div",{class:R([i(u).e("btn"),i(u).e("actions")])},[z("div",{class:R(i(u).e("actions__inner"))},[oe(ue.$slots,"toolbar",{actions:ae,prev:J,next:ee,reset:H,activeIndex:b.value,setActiveItem:U},()=>[X(i(De),{onClick:Y[1]||(Y[1]=Q=>ae("zoomOut"))},{default:ne(()=>[X(i(nL))]),_:1}),X(i(De),{onClick:Y[2]||(Y[2]=Q=>ae("zoomIn"))},{default:ne(()=>[X(i(RC))]),_:1}),z("i",{class:R(i(u).e("actions__divider"))},null,2),X(i(De),{onClick:H},{default:ne(()=>[(E(),le(it(w.value.icon)))]),_:1}),z("i",{class:R(i(u).e("actions__divider"))},null,2),X(i(De),{onClick:Y[3]||(Y[3]=Q=>ae("anticlockwise"))},{default:ne(()=>[X(i(xA))]),_:1}),X(i(De),{onClick:Y[4]||(Y[4]=Q=>ae("clockwise"))},{default:ne(()=>[X(i(OA))]),_:1})])],2)],2),re(" CANVAS "),z("div",{class:R(i(u).e("canvas"))},[v.value&&ue.$slots["viewer-error"]?oe(ue.$slots,"viewer-error",{key:0,activeIndex:b.value,src:T.value}):(E(),L("img",{ref_key:"imgRef",ref:f,key:T.value,src:T.value,style:ze(N.value),class:R(i(u).e("img")),crossorigin:e.crossorigin,onLoad:W,onError:A,onMousedown:P,onTouchstart:V},null,46,$W))],2),oe(ue.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})],8,["disabled"]))}}),MW=NW;const XE=st(MW),PW=["src","loading","crossorigin"],AW={key:0};var LW=se({name:"ElImage",inheritAttrs:!1,__name:"image",props:OW,emits:_W,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:r}=xt(),s=ge("image"),l=wr(),u=C(()=>kl(Object.entries(l).filter(([A])=>/^(data-|on[A-Z])/i.test(A)||["id","style"].includes(A)))),c=nf({excludeListeners:!0,excludeKeys:C(()=>Object.keys(u.value))}),d=M(),f=M(!1),p=M(!0),g=M(!1),h=M(),v=M(),m=Pt&&"loading"in HTMLImageElement.prototype;let b;const w=C(()=>[s.e("inner"),S.value&&s.e("preview"),p.value&&s.is("loading")]),y=C(()=>{const{fit:A}=a;return Pt&&A?{objectFit:A}:{}}),S=C(()=>{const{previewSrcList:A}=a;return we(A)&&A.length>0}),k=C(()=>{const{previewSrcList:A,initialIndex:P}=a;let V=P;return P>A.length-1&&(V=0),V}),x=C(()=>a.loading==="eager"?!1:!m&&a.loading==="lazy"||a.lazy),O=()=>{Pt&&(p.value=!0,f.value=!1,d.value=a.src)};function T(A){p.value=!1,f.value=!1,o("load",A)}function I(A){p.value=!1,f.value=!0,o("error",A)}function _(A){A&&(O(),B())}const N=MS(_,200,!0);async function $(){if(!Pt)return;await Ne();const{scrollContainer:A}=a;if(xa(A))v.value=A;else if(Ae(A)&&A!=="")v.value=document.querySelector(A)??void 0;else if(h.value){const V=fm(h.value);v.value=Eu(V)?void 0:V}const{stop:P}=R$(h,([V])=>{N(V.isIntersecting)},{root:v});b=P}function B(){!Pt||!N||(b?.(),v.value=void 0,b=void 0)}function K(){S.value&&(g.value=!0,o("show"))}function j(){g.value=!1,o("close")}function W(A){o("switch",A)}return pe(()=>a.src,()=>{x.value?(p.value=!0,f.value=!1,B(),$()):O()}),ht(()=>{x.value?$():O()}),t({showPreview:K}),(A,P)=>(E(),L("div",pt({ref_key:"container",ref:h},u.value,{class:[i(s).b(),A.$attrs.class]}),[f.value?oe(A.$slots,"error",{key:0},()=>[z("div",{class:R(i(s).e("error"))},Ce(i(r)("el.image.error")),3)]):(E(),L(Ve,{key:1},[d.value!==void 0?(E(),L("img",pt({key:0},i(c),{src:d.value,loading:e.loading,style:y.value,class:w.value,crossorigin:e.crossorigin,onClick:K,onLoad:T,onError:I}),null,16,PW)):re("v-if",!0),p.value?(E(),L("div",{key:1,class:R(i(s).e("wrapper"))},[oe(A.$slots,"placeholder",{},()=>[z("div",{class:R(i(s).e("placeholder"))},null,2)])],2)):re("v-if",!0)],64)),S.value?(E(),L(Ve,{key:2},[g.value?(E(),le(i(XE),{key:0,"z-index":e.zIndex,"initial-index":k.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:j,onSwitch:W},ga({toolbar:ne(V=>[oe(A.$slots,"toolbar",sr(ir(V)))]),default:ne(()=>[A.$slots.viewer?(E(),L("div",AW,[oe(A.$slots,"viewer")])):re("v-if",!0)]),_:2},[A.$slots.progress?{name:"progress",fn:ne(V=>[oe(A.$slots,"progress",sr(ir(V)))]),key:"0"}:void 0,A.$slots["viewer-error"]?{name:"viewer-error",fn:ne(V=>[oe(A.$slots,"viewer-error",sr(ir(V)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):re("v-if",!0)],64)):re("v-if",!0)],16))}}),DW=LW;const BW=st(DW),VW=Ee({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:Nn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:G([String,Number,null]),validator:e=>e===null||Be(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...ia(["ariaLabel"]),inputmode:{type:G(String),default:void 0},align:{type:G(String),default:"center"},disabledScientific:Boolean,formatter:{type:Function},parser:{type:Function},tabindex:{type:[String,Number],default:0}}),FW={[yt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Tn]:e=>Be(e)||En(e),[at]:e=>Be(e)||En(e)},zW=["aria-label"],HW=["aria-label"];var KW=se({name:"ElInputNumber",__name:"input-number",props:VW,emits:FW,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:r}=xt(),s=ge("input-number"),l=M(),u=Dt({currentValue:a.modelValue,userInput:null}),{formItem:c}=Fn(),d=C(()=>Be(a.modelValue)&&a.modelValue<=a.min),f=C(()=>Be(a.modelValue)&&a.modelValue>=a.max),p=C(()=>{const A=w(a.step);return Rt(a.precision)?Math.max(w(a.modelValue),A):(A>a.precision&&jt("InputNumber","precision should not be less than the decimal places of step"),a.precision)}),g=C(()=>a.controls&&a.controlsPosition==="right"),h=In(),v=ln(),m=C(()=>{if(u.userInput!==null)return u.userInput;let A=u.currentValue;if(En(A))return"";if(Be(A)){if(Number.isNaN(A))return"";Rt(a.precision)||(A=A.toFixed(a.precision))}return A}),b=(A,P)=>{if(Rt(P)&&(P=p.value),P===0)return Math.round(A);let V=String(A);const F=V.indexOf(".");if(F===-1||!V.replace(".","").split("")[F+P])return A;const H=V.length;return V.charAt(H-1)==="5"&&(V=`${V.slice(0,Math.max(0,H-1))}6`),Number.parseFloat(Number(V).toFixed(P))},w=A=>{if(En(A))return 0;const P=A.toString(),V=P.indexOf(".");let F=0;return V!==-1&&(F=P.length-V-1),F},y=(A,P=1)=>Be(A)?A>=Number.MAX_SAFE_INTEGER&&P===1?(jt("InputNumber","The value has reached the maximum safe integer limit."),A):A<=Number.MIN_SAFE_INTEGER&&P===-1?(jt("InputNumber","The value has reached the minimum safe integer limit."),A):b(A+a.step*P):u.currentValue,S=A=>{const P=qt(A),V=jS(A);if(a.disabledScientific&&["e","E"].includes(V)){A.preventDefault();return}switch(P){case Se.up:A.preventDefault(),k();break;case Se.down:A.preventDefault(),x();break}},k=()=>{a.readonly||v.value||f.value||(T(y(Number(m.value)||0)),o(Tn,u.currentValue),j())},x=()=>{a.readonly||v.value||d.value||(T(y(Number(m.value)||0,-1)),o(Tn,u.currentValue),j())},O=(A,P)=>{const{max:V,min:F,step:H,precision:U,stepStrictly:J,valueOnClear:ee}=a;VV||aeV?V:F,P&&o("update:modelValue",ae)),ae},T=(A,P=!0)=>{const V=u.currentValue,F=O(A);if(!P){o(at,F);return}u.userInput=null,!(V===F&&A)&&(o(at,F),V!==F&&o(yt,F,V),a.validateEvent&&c?.validate?.("change").catch(ut),u.currentValue=F)},I=A=>{u.userInput=A;let P=A===""?null:Number.parseFloat(A);Number.isNaN(P)&&(P=null),o(Tn,P),T(P,!1)},_=A=>{const P=A!==""?Number.parseFloat(A):"";(Be(P)&&!Number.isNaN(P)||a.formatter&&Number.isNaN(P)||P==="")&&T(P),j(),u.userInput=null},N=()=>{l.value?.focus?.()},$=()=>{l.value?.blur?.()},B=A=>{o("focus",A)},K=A=>{u.userInput=null,u.currentValue===null&&l.value?.input&&(l.value.input.value=a.formatter?.("")??""),o("blur",A),a.validateEvent&&c?.validate?.("blur").catch(ut)},j=()=>{u.currentValue!==a.modelValue&&(u.currentValue=a.modelValue)},W=A=>{document.activeElement===A.target&&A.preventDefault()};return pe(()=>a.modelValue,(A,P)=>{const V=O(A,!0);u.userInput===null&&V!==P&&(u.currentValue=V)},{immediate:!0}),pe(()=>a.precision,()=>{u.currentValue=O(a.modelValue)}),ht(()=>{const{min:A,max:P,modelValue:V}=a,F=l.value?.input;if(F.setAttribute("role","spinbutton"),Number.isFinite(P)?F.setAttribute("aria-valuemax",String(P)):F.removeAttribute("aria-valuemax"),Number.isFinite(A)?F.setAttribute("aria-valuemin",String(A)):F.removeAttribute("aria-valuemin"),F.setAttribute("aria-valuenow",u.currentValue||u.currentValue===0?String(u.currentValue):""),F.setAttribute("aria-disabled",String(v.value)),!Be(V)&&V!=null){let H=Number(V);Number.isNaN(H)&&(H=null),o(at,H)}F.addEventListener("wheel",W,{passive:!1})}),yo(()=>{l.value?.input?.setAttribute("aria-valuenow",`${u.currentValue??""}`)}),t({focus:N,blur:$}),(A,P)=>(E(),L("div",{class:R([i(s).b(),i(s).m(i(h)),i(s).is("disabled",i(v)),i(s).is("without-controls",!e.controls),i(s).is("controls-right",g.value),i(s).is(e.align,!!e.align)]),onDragstart:P[0]||(P[0]=Xe(()=>{},["prevent"]))},[e.controls?ct((E(),L("span",{key:0,role:"button","aria-label":i(r)("el.inputNumber.decrease"),class:R([i(s).e("decrease"),i(s).is("disabled",d.value)]),onKeydown:cn(x,["enter"])},[oe(A.$slots,"decrease-icon",{},()=>[X(i(De),null,{default:ne(()=>[g.value?(E(),le(i(qo),{key:0})):(E(),le(i(uA),{key:1}))]),_:1})])],42,zW)),[[i(ld),x]]):re("v-if",!0),e.controls?ct((E(),L("span",{key:1,role:"button","aria-label":i(r)("el.inputNumber.increase"),class:R([i(s).e("increase"),i(s).is("disabled",f.value)]),onKeydown:cn(k,["enter"])},[oe(A.$slots,"increase-icon",{},()=>[X(i(De),null,{default:ne(()=>[g.value?(E(),le(i(hf),{key:0})):(E(),le(i(OC),{key:1}))]),_:1})])],42,HW)),[[i(ld),k]]):re("v-if",!0),X(i(Un),{id:e.id,ref_key:"input",ref:l,type:e.formatter?"text":"number",step:e.step,"model-value":m.value,placeholder:e.placeholder,readonly:e.readonly,disabled:i(v),size:i(h),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,formatter:e.formatter,parser:e.parser,tabindex:e.tabindex,onKeydown:S,onBlur:K,onFocus:B,onInput:I,onChange:_},ga({_:2},[A.$slots.prefix?{name:"prefix",fn:ne(()=>[oe(A.$slots,"prefix")]),key:"0"}:void 0,A.$slots.suffix?{name:"suffix",fn:ne(()=>[oe(A.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","type","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode","formatter","parser","tabindex"])],34))}}),WW=KW;const JE=st(WW),jW=Ee({modelValue:{type:G(Array)},max:Number,tagType:{...gr.type,default:"info"},tagEffect:gr.effect,effect:{type:G(String),default:"light"},trigger:{type:G(String),default:Se.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:Nn,clearable:Boolean,clearIcon:{type:Ut,default:Yo},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:G(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),UW={[at]:e=>we(e)||Rt(e),[yt]:e=>we(e)||Rt(e),[Tn]:e=>Ae(e),"add-tag":e=>Ae(e)||we(e),"remove-tag":(e,t)=>Ae(e)&&Be(t),"drag-tag":(e,t,n)=>Be(e)&&Be(t)&&Ae(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function qW({wrapperRef:e,handleDragged:t,afterDragged:n}){const a=ge("input-tag"),o=Tt(),r=M(!1);let s,l,u,c;function d(h){return`.${a.e("inner")} .${a.namespace.value}-tag:nth-child(${h+1})`}function f(h,v){s=v,l=e.value.querySelector(d(v)),l&&(l.style.opacity="0.5"),h.dataTransfer.effectAllowed="move"}function p(h,v){if(u=v,h.preventDefault(),h.dataTransfer.dropEffect="move",Rt(s)||s===v){r.value=!1;return}const m=e.value.querySelector(d(v)).getBoundingClientRect(),b=s+1!==v,w=s-1!==v,y=h.clientX-m.left,S=b?w?.5:1:-1,k=w?b?.5:0:1;y<=m.width*S?c="before":y>m.width*k?c="after":c=void 0;const x=e.value.querySelector(`.${a.e("inner")}`),O=x.getBoundingClientRect(),T=Number.parseFloat(or(x,"gap"))/2,I=m.top-O.top;let _=-9999;if(c==="before")_=Math.max(m.left-O.left-T,Math.floor(-T/2));else if(c==="after"){const N=m.right-O.left;_=N+(O.width===N?Math.floor(T/2):T)}FS(o.value,{top:`${I}px`,left:`${_}px`}),r.value=!!c}function g(h){h.preventDefault(),l&&(l.style.opacity=""),c&&!Rt(s)&&!Rt(u)&&s!==u&&t(s,u,c),r.value=!1,s=void 0,l=null,u=void 0,c=void 0,n?.()}return{dropIndicatorRef:o,showDropIndicator:r,handleDragStart:f,handleDragOver:p,handleDragEnd:g}}function YW(){const e=M(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function GW({props:e,emit:t,formItem:n}){const a=ln(),o=In(),r=Tt(),s=M(),l=M(),u=C(()=>["small"].includes(o.value)?"small":"default"),c=C(()=>e.modelValue?.length?void 0:e.placeholder),d=C(()=>!(e.readonly||a.value)),f=C(()=>Rt(e.max)?!1:(e.modelValue?.length??0)>=e.max),p=C(()=>e.collapseTags?e.modelValue?.slice(0,e.maxCollapseTags):e.modelValue),g=C(()=>e.collapseTags?e.modelValue?.slice(e.maxCollapseTags):[]),h=W=>{const A=[...e.modelValue??[],...Dn(W)];t(at,A),t(yt,A),t("add-tag",W),s.value=void 0},v=W=>{const A=W.split(e.delimiter),P=A.length>1?A.map(V=>V.trim()).filter(Boolean):[];if(e.max){const V=e.max-(e.modelValue?.length??0);P.splice(V)}return P.length===1?P[0]:P},m=W=>{const A=W.clipboardData?.getData("text");if(e.readonly||f.value||!e.delimiter||!A)return;const{selectionStart:P=0,selectionEnd:V=0,value:F}=W.target,H=F.slice(0,P)+A+F.slice(V),U=v(H);U.length&&(h(U),t(Tn,H),W.preventDefault())},b=W=>{if(f.value){s.value=void 0;return}if(!$.value){if(e.delimiter&&s.value){const A=v(s.value);A.length&&h(A)}t(Tn,W.target.value)}},w=W=>{if(!$.value)switch(qt(W)){case e.trigger:W.preventDefault(),W.stopPropagation(),S();break;case Se.numpadEnter:e.trigger===Se.enter&&(W.preventDefault(),W.stopPropagation(),S());break;case Se.backspace:!s.value&&e.modelValue?.length&&(W.preventDefault(),W.stopPropagation(),k(e.modelValue.length-1));break}},y=W=>{if(!($.value||!BS()))switch(qt(W)){case Se.space:e.trigger===Se.space&&(W.preventDefault(),W.stopPropagation(),S());break}},S=()=>{const W=s.value?.trim();!W||f.value||h(W)},k=W=>{const A=(e.modelValue??[]).slice(),[P]=A.splice(W,1);t(at,A),t(yt,A),t("remove-tag",P,W)},x=()=>{s.value=void 0,t(at,void 0),t(yt,void 0),t("clear")},O=(W,A,P)=>{const V=(e.modelValue??[]).slice(),[F]=V.splice(W,1),H=A>W&&P==="before"?-1:A{r.value?.focus()},I=()=>{r.value?.blur()},{wrapperRef:_,isFocused:N}=Er(r,{disabled:a,beforeBlur(W){return l.value?.isFocusInsideContent(W)},afterBlur(){e.saveOnBlur?S():s.value=void 0,e.validateEvent&&n?.validate?.("blur").catch(ut)}}),{isComposing:$,handleCompositionStart:B,handleCompositionUpdate:K,handleCompositionEnd:j}=Pu({afterComposition:b});return pe(()=>e.modelValue,()=>{e.validateEvent&&n?.validate?.(yt).catch(ut)}),{inputRef:r,wrapperRef:_,tagTooltipRef:l,isFocused:N,isComposing:$,inputValue:s,size:o,tagSize:u,placeholder:c,closable:d,disabled:a,inputLimit:f,showTagList:p,collapseTagList:g,handleDragged:O,handlePaste:m,handleInput:b,handleKeydown:w,handleKeyup:y,handleAddTag:S,handleRemoveTag:k,handleClear:x,handleCompositionStart:B,handleCompositionUpdate:K,handleCompositionEnd:j,focus:T,blur:I}}function XW({props:e,isFocused:t,hovering:n,disabled:a,inputValue:o,size:r,validateState:s,validateIcon:l,needStatusIcon:u}){const c=wr(),d=wn(),f=ge("input-tag"),p=ge("input"),g=M(),h=M(),v=C(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",a.value),f.m(r.value),f.e("wrapper"),c.class]),m=C(()=>[c.style]),b=C(()=>[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!e.modelValue?.length&&!d.prefix),f.is("right-space",!e.modelValue?.length&&!y.value)]),w=C(()=>e.clearable&&!a.value&&!e.readonly&&(e.modelValue?.length||o.value)&&(t.value||n.value)),y=C(()=>d.suffix||w.value||s.value&&l.value&&u.value),S=Dt({innerWidth:0,collapseItemWidth:0}),k=()=>{if(!h.value)return 0;const I=window.getComputedStyle(h.value);return Number.parseFloat(I.gap||"6px")},x=()=>{S.innerWidth=Number.parseFloat(window.getComputedStyle(h.value).width)},O=()=>{S.collapseItemWidth=g.value.getBoundingClientRect().width},T=C(()=>{if(!e.collapseTags)return{};const I=k(),_=I+11,N=g.value&&e.maxCollapseTags===1?S.innerWidth-S.collapseItemWidth-I-_:S.innerWidth-_;return{maxWidth:`${Math.max(N,0)}px`}});return nn(h,x),nn(g,O),{ns:f,nsInput:p,containerKls:v,containerStyle:m,innerKls:b,showClear:w,showSuffix:y,tagStyle:T,collapseItemRef:g,innerRef:h}}const JW=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],ZW=["textContent"];var QW=se({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:jW,emits:UW,setup(e,{expose:t,emit:n}){const a=e,o=n,r=nf(),s=wn(),{form:l,formItem:u}=Fn(),{inputId:c}=Ia(a,{formItemContext:u}),d=C(()=>l?.statusIcon??!1),f=C(()=>u?.validateState||""),p=C(()=>f.value&&mf[f.value]),{inputRef:g,wrapperRef:h,tagTooltipRef:v,isFocused:m,inputValue:b,size:w,tagSize:y,placeholder:S,closable:k,disabled:x,showTagList:O,collapseTagList:T,handleDragged:I,handlePaste:_,handleInput:N,handleKeydown:$,handleKeyup:B,handleRemoveTag:K,handleClear:j,handleCompositionStart:W,handleCompositionUpdate:A,handleCompositionEnd:P,focus:V,blur:F}=GW({props:a,emit:o,formItem:u}),{hovering:H,handleMouseEnter:U,handleMouseLeave:J}=YW(),{calculatorRef:ee,inputStyle:ae}=um(),{dropIndicatorRef:ce,showDropIndicator:Z,handleDragStart:de,handleDragOver:ue,handleDragEnd:Y}=qW({wrapperRef:h,handleDragged:I,afterDragged:V}),{ns:Q,nsInput:D,containerKls:q,containerStyle:te,innerKls:fe,showClear:he,showSuffix:ve,tagStyle:Ie,collapseItemRef:Le,innerRef:_e}=XW({props:a,hovering:H,isFocused:m,inputValue:b,disabled:x,size:w,validateState:f,validateIcon:p,needStatusIcon:d});return t({focus:V,blur:F}),(ye,Te)=>(E(),L("div",{ref_key:"wrapperRef",ref:h,class:R(i(q)),style:ze(i(te)),onMouseenter:Te[9]||(Te[9]=(...be)=>i(U)&&i(U)(...be)),onMouseleave:Te[10]||(Te[10]=(...be)=>i(J)&&i(J)(...be))},[i(s).prefix?(E(),L("div",{key:0,class:R(i(Q).e("prefix"))},[oe(ye.$slots,"prefix")],2)):re("v-if",!0),z("div",{ref_key:"innerRef",ref:_e,class:R(i(fe))},[(E(!0),L(Ve,null,kt(i(O),(be,Pe)=>(E(),le(i(cr),{key:Pe,size:i(y),closable:i(k),type:e.tagType,effect:e.tagEffect,draggable:i(k)&&e.draggable,style:ze(i(Ie)),"disable-transitions":"",onClose:He=>i(K)(Pe),onDragstart:He=>i(de)(He,Pe),onDragover:He=>i(ue)(He,Pe),onDragend:i(Y),onDrop:Te[0]||(Te[0]=Xe(()=>{},["stop"]))},{default:ne(()=>[oe(ye.$slots,"tag",{value:be,index:Pe},()=>[wt(Ce(be),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(E(),le(i(Wn),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:ne(()=>[z("div",{ref_key:"collapseItemRef",ref:Le,class:R(i(Q).e("collapse-tag"))},[X(i(cr),{closable:!1,size:i(y),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ne(()=>[wt(" + "+Ce(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:ne(()=>[z("div",{class:R(i(Q).e("input-tag-list"))},[(E(!0),L(Ve,null,kt(i(T),(be,Pe)=>(E(),le(i(cr),{key:Pe,size:i(y),closable:i(k),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:He=>i(K)(Pe+e.maxCollapseTags)},{default:ne(()=>[oe(ye.$slots,"tag",{value:be,index:Pe+e.maxCollapseTags},()=>[wt(Ce(be),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):re("v-if",!0),z("div",{class:R(i(Q).e("input-wrapper"))},[ct(z("input",pt({id:i(c),ref_key:"inputRef",ref:g,"onUpdate:modelValue":Te[1]||(Te[1]=be=>Gt(b)?b.value=be:null)},i(r),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:i(x),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:i(S),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:i(Q).e("input"),style:i(ae),onCompositionstart:Te[2]||(Te[2]=(...be)=>i(W)&&i(W)(...be)),onCompositionupdate:Te[3]||(Te[3]=(...be)=>i(A)&&i(A)(...be)),onCompositionend:Te[4]||(Te[4]=(...be)=>i(P)&&i(P)(...be)),onPaste:Te[5]||(Te[5]=(...be)=>i(_)&&i(_)(...be)),onInput:Te[6]||(Te[6]=(...be)=>i(N)&&i(N)(...be)),onKeydown:Te[7]||(Te[7]=(...be)=>i($)&&i($)(...be)),onKeyup:Te[8]||(Te[8]=(...be)=>i(B)&&i(B)(...be))}),null,16,JW),[[$w,i(b)]]),z("span",{ref_key:"calculatorRef",ref:ee,"aria-hidden":"true",class:R(i(Q).e("input-calculator")),textContent:Ce(i(b))},null,10,ZW)],2),ct(z("div",{ref_key:"dropIndicatorRef",ref:ce,class:R(i(Q).e("drop-indicator"))},null,2),[[$t,i(Z)]])],2),i(ve)?(E(),L("div",{key:1,class:R(i(Q).e("suffix"))},[oe(ye.$slots,"suffix"),i(he)?(E(),le(i(De),{key:0,class:R([i(Q).e("icon"),i(Q).e("clear")]),onMousedown:Xe(i(ut),["prevent"]),onClick:i(j)},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):re("v-if",!0),f.value&&p.value&&d.value?(E(),le(i(De),{key:1,class:R([i(D).e("icon"),i(D).e("validateIcon"),i(D).is("loading",f.value==="validating")])},{default:ne(()=>[(E(),le(it(p.value)))]),_:1},8,["class"])):re("v-if",!0)],2)):re("v-if",!0)],38))}}),ej=QW;const tj=st(ej),nj={[at]:e=>Ae(e),[yt]:e=>Ae(e),finish:e=>Ae(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},aj=["id","aria-label","aria-labelledby"],oj=["value","type","disabled","readonly","inputmode","aria-label","onClick","onKeydown","onInput"];var rj=se({name:"ElInputOtp",__name:"input-otp",props:{modelValue:{type:[String,Number],required:!1},length:{type:Number,required:!1,default:6},validator:{type:Function,required:!1,default:()=>!0},inputmode:{type:null,required:!1},type:{type:String,required:!1,default:"outlined"},size:{type:null,required:!1,default:"default"},mask:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1,default:void 0},readonly:{type:Boolean,required:!1},id:{type:String,required:!1},validateEvent:{type:Boolean,required:!1,default:!0},separator:{type:[String,Object,Function],required:!1},ariaLabel:{type:String,required:!1}},emits:nj,setup(e,{expose:t,emit:n}){const a=e,o=n,r=C(()=>{const _=String(a.modelValue??"");return Array.from({length:a.length},(N,$)=>_.charAt($))}),s=C(()=>{const{separator:_}=a,N=Fe(_)?_:()=>_;return Array.from({length:a.length-1},($,B)=>N(B))}),l=M(r.value),u=M(!1),c=M([]),d=ge("input-otp"),{t:f}=xt(),{formItem:p}=Fn(),{inputId:g,isLabeledByFormItem:h}=Ia(a,{formItemContext:p}),v=ln();let m=a.modelValue;const b=_=>{const N=l.value.findIndex(($,B)=>!$&&B<=_);return N===-1?_:N},w=_=>{c.value?.includes(_.relatedTarget)||(u.value=!0,o("focus",_))},y=_=>{c.value?.includes(_.relatedTarget)||(u.value=!1,o("blur",_),a.validateEvent&&p?.validate?.("blur").catch(ut))},S=(_=!0)=>{const N=l.value.join("").slice(0,a.length);N!==a.modelValue&&(o(at,N),_&&N.length===a.length&&o("finish",N))},k=(_,N)=>{const $=qt(_);let B=!0;switch($){case Se.backspace:if(a.readonly)break;l.value[N]="",T(N-1),S();break;case Se.delete:if(a.readonly)break;l.value[N]="",T(N),S();break;case Se.up:case Se.left:T(N-1);break;case Se.down:case Se.right:T(N+1);break;default:B=!1}B&&_.preventDefault()},x=(_,N)=>{const $=_.target,B=b(N);let K=B+1,j=$.value;if(j.length>1){const W=O(j,B);$.value=l.value[N]??"",W.forEach((A,P)=>l.value[B+P]=A),T(B+W.length),S();return}a.validator(j,B)||($.value=l.value[N]??"",j=$.value,K=B),l.value[B]=j,B!==N&&($.value=l.value[N]??""),T(K),S()},O=(_,N=0)=>{const $=`${_??""}`.split(""),B=[];for(const K of $){if(B.length+N>=a.length)break;a.validator(K,B.length+N)&&B.push(K)}return B},T=(_=0)=>{const N=af(_,0,a.length-1),$=c.value?.[N];document.activeElement!==$&&$?.focus(),Ra(()=>{!a.readonly&&document.activeElement===$&&$?.select()})},I=()=>{c.value?.find(_=>document.activeElement===_)?.blur()};return pe(()=>a.modelValue,()=>{l.value=r.value,a.validateEvent&&p?.validate?.("change").catch(ut)}),pe(()=>a.length,()=>{l.value=r.value,S(!1)}),pe(u,_=>{if(_){m=a.modelValue;return}m!==a.modelValue&&o(yt,a.modelValue)}),t({inputRefs:c,focus:T,blur:I}),(_,N)=>(E(),L("div",{id:i(g),class:R([i(d).b(),i(d).m(e.size),i(d).m(e.type),i(d).is("disabled",i(v))]),role:"group","aria-label":i(h)?void 0:e.ariaLabel||i(f)("el.inputOTP.groupLabel"),"aria-labelledby":i(h)?i(p)?.labelId:void 0},[(E(!0),L(Ve,null,kt(e.length,($,B)=>(E(),L(Ve,{key:B},[z("label",{class:R(i(d).e("input-field"))},[z("input",{ref_for:!0,ref_key:"inputRefs",ref:c,value:l.value[B],class:R(i(d).e("input")),type:e.mask?"password":"text",disabled:i(v),readonly:e.readonly,inputmode:e.inputmode,autocomplete:"one-time-code","aria-label":i(f)("el.inputOTP.defaultLabel",{index:B+1}),onFocus:w,onBlur:y,onClick:K=>T(B),onKeydown:K=>k(K,B),onInput:K=>x(K,B)},null,42,oj)],2),(_.$slots.separator||s.value[B])&&B[(E(),le(it(()=>s.value[B])))]):re("v-if",!0)],64))),128))],10,aj))}}),sj=rj;const lj=st(sj),ij=Ee({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ut}}),uj={click:e=>e instanceof MouseEvent},cj=["href","target"];var dj=se({name:"ElLink",__name:"link",props:ij,emits:uj,setup(e,{emit:t}){const n=e,a=t,o=xr("link");Po({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},C(()=>Wt(n.underline)));const r=ge("link"),s=C(()=>[r.b(),r.m(n.type??o.value?.type??"default"),r.is("disabled",n.disabled),r.is("underline",l.value==="always"),r.is("hover-underline",l.value==="hover"&&!n.disabled)]),l=C(()=>Wt(n.underline)?n.underline?"hover":"never":n.underline??o.value?.underline??"hover");function u(c){n.disabled||a("click",c)}return(c,d)=>(E(),L("a",{class:R(s.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:u},[e.icon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1})):re("v-if",!0),c.$slots.default?(E(),L("span",{key:1,class:R(i(r).e("inner"))},[oe(c.$slots,"default")],2)):re("v-if",!0),c.$slots.icon?oe(c.$slots,"icon",{key:2}):re("v-if",!0)],10,cj))}}),fj=dj;const pj=st(fj),sg="rootMenu",Cd="subMenu:";function ZE(e,t){const n=C(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:C(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function hj(e){return C(()=>{const t=e.backgroundColor;return t?new gn(t).shade(20).toString():""})}const QE=(e,t)=>{const n=ge("menu");return C(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":hj(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},vj=Ee({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:G([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ut},expandOpenIcon:{type:Ut},collapseCloseIcon:{type:Ut},collapseOpenIcon:{type:Ut}}),kp="ElSubMenu";var lg=se({name:kp,props:vj,setup(e,{slots:t,expose:n}){const a=dt(),{indexPath:o,parentMenu:r}=ZE(a,C(()=>e.index)),s=ge("menu"),l=ge("sub-menu"),u=$e(sg);u||rn(kp,"can not inject root menu");const c=$e(`${Cd}${r.value.uid}`);c||rn(kp,"can not inject sub menu");const d=M({}),f=M({});let p;const g=M(!1),h=M(),v=M(),m=C(()=>c.level===0),b=C(()=>T.value==="horizontal"&&m.value?"bottom-start":"right-start"),w=C(()=>T.value==="horizontal"&&m.value||T.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?x.value?e.expandOpenIcon:e.expandCloseIcon:qo:e.collapseCloseIcon&&e.collapseOpenIcon?x.value?e.collapseOpenIcon:e.collapseCloseIcon:sa),y=C(()=>{const U=e.teleported;return Rt(U)?m.value:U}),S=C(()=>u.props.collapse?`${s.namespace.value}-zoom-in-left`:`${s.namespace.value}-zoom-in-top`),k=C(()=>T.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),x=C(()=>u.openedMenus.includes(e.index)),O=C(()=>[...Object.values(d.value),...Object.values(f.value)].some(({active:U})=>U)),T=C(()=>u.props.mode),I=C(()=>u.props.persistent),_=Dt({index:e.index,indexPath:o,active:O}),N=QE(u.props,c.level+1),$=C(()=>e.popperOffset??u.props.popperOffset),B=C(()=>e.popperClass??u.props.popperClass),K=C(()=>e.popperStyle??u.props.popperStyle),j=C(()=>e.showTimeout??u.props.showTimeout),W=C(()=>e.hideTimeout??u.props.hideTimeout),A=()=>v.value?.popperRef?.popperInstanceRef?.destroy(),P=U=>{U||A()},V=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:o.value,active:O.value})},F=(U,J=j.value)=>{if(U.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,p?.(),{stop:p}=El(()=>{u.openMenu(e.index,o.value)},J),y.value&&r.value.vnode.el?.dispatchEvent(new MouseEvent("mouseenter")),U.type==="mouseenter"&&U.target&&Ne(()=>{Ou(U.target,{preventScroll:!0})})}},H=(U=!1)=>{if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}p?.(),c.mouseInChild.value=!1,{stop:p}=El(()=>!g.value&&u.closeMenu(e.index,o.value),W.value),y.value&&U&&c.handleMouseleave?.(!0)};pe(()=>u.props.collapse,U=>P(!!U));{const U=ee=>{f.value[ee.index]=ee},J=ee=>{delete f.value[ee.index]};St(`${Cd}${a.uid}`,{addSubMenu:U,removeSubMenu:J,handleMouseleave:H,mouseInChild:g,level:c.level+1})}return n({opened:x}),ht(()=>{u.addSubMenu(_),c.addSubMenu(_)}),Vt(()=>{c.removeSubMenu(_),u.removeSubMenu(_)}),()=>{const U=[t.title?.(),qe(De,{class:l.e("icon-arrow"),style:{transform:x.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ae(w.value)?qe(a.appContext.components[w.value]):qe(w.value)})],J=u.isMenuPopup?qe(Wn,{ref:v,visible:x.value,effect:"light",pure:!0,offset:$.value,showArrow:!1,persistent:I.value,popperClass:B.value,popperStyle:K.value,placement:b.value,teleported:y.value,fallbackPlacements:k.value,transition:S.value,gpuAcceleration:!1},{content:()=>qe("div",{class:[s.m(T.value),s.m("popup-container"),B.value],onMouseenter:ee=>F(ee,100),onMouseleave:()=>H(!0),onFocus:ee=>F(ee,100)},[qe("ul",{class:[s.b(),s.m("popup"),s.m(`popup-${b.value}`)],style:N.value},[t.default?.()])]),default:()=>qe("div",{class:l.e("title"),onClick:V},U)}):qe(Ve,{},[qe("div",{class:l.e("title"),ref:h,onClick:V},U),qe(Sf,{},{default:()=>ct(qe("ul",{role:"menu",class:[s.b(),s.m("inline")],style:N.value},[t.default?.()]),[[$t,x.value]])})]);return qe("li",{class:[l.b(),l.is("active",O.value),l.is("opened",x.value),l.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:x.value,onMouseenter:F,onMouseleave:()=>H(),onFocus:F},[J])}}}),mj=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;this.subMenuItems.forEach(t=>{t.addEventListener("keydown",n=>{const a=qt(n);let o=!1;switch(a){case Se.down:this.gotoSubIndex(this.subIndex+1),o=!0;break;case Se.up:this.gotoSubIndex(this.subIndex-1),o=!0;break;case Se.tab:Ec(e,"mouseleave");break;case Se.enter:case Se.numpadEnter:case Se.space:o=!0,n.currentTarget.click();break}return o&&(n.preventDefault(),n.stopPropagation()),!1})})}},gj=class{constructor(e,t){this.domNode=e,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new mj(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const t=qt(e);let n=!1;switch(t){case Se.down:Ec(e.currentTarget,"mouseenter"),this.submenu?.gotoSubIndex(0),n=!0;break;case Se.up:Ec(e.currentTarget,"mouseenter"),this.submenu?.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break;case Se.tab:Ec(e.currentTarget,"mouseleave");break;case Se.enter:case Se.numpadEnter:case Se.space:n=!0,e.currentTarget.click();break}n&&e.preventDefault()})}},bj=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach(n=>{n.nodeType===1&&new gj(n,e)})}},yj=se({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=ge("menu"),n={onBeforeEnter:a=>a.style.opacity="0.2",onEnter(a,o){Ua(a,`${t.namespace.value}-opacity-transition`),a.style.opacity="1",o()},onAfterEnter(a){ra(a,`${t.namespace.value}-opacity-transition`),a.style.opacity=""},onBeforeLeave(a){a.dataset||(a.dataset={}),Ao(a,t.m("collapse"))?(ra(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),Ua(a,t.m("collapse"))):(Ua(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),ra(a,t.m("collapse"))),a.style.width=`${a.scrollWidth}px`,a.style.overflow="hidden"},onLeave(a){Ua(a,"horizontal-collapse-transition"),a.style.width=`${a.dataset.scrollWidth}px`}};return(a,o)=>(E(),le(Yn,pt({mode:"out-in"},n),{default:ne(()=>[oe(a.$slots,"default")]),_:3},16))}}),wj=yj;const Sj=Ee({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:G(Array),default:()=>fn([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ut,default:()=>pA},popperEffect:{type:G(String),default:"dark"},popperClass:String,popperStyle:{type:G([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Ep=e=>we(e)&&e.every(t=>Ae(t)),Cj={close:(e,t)=>Ae(e)&&Ep(t),open:(e,t)=>Ae(e)&&Ep(t),select:(e,t,n,a)=>Ae(e)&&Ep(t)&&ot(n)&&(Rt(a)||a instanceof Promise)},Xy=64;var kj=se({name:"ElMenu",props:Sj,emits:Cj,setup(e,{emit:t,slots:n,expose:a}){const o=dt(),r=o.appContext.config.globalProperties.$router,s=M(),l=M(),u=ge("menu"),c=ge("sub-menu");let d=Xy;const f=M(-1),p=M(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),g=M(e.defaultActive),h=M({}),v=M({}),m=C(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),b=()=>{const A=g.value&&h.value[g.value];!A||e.mode==="horizontal"||e.collapse||A.indexPath.forEach(P=>{const V=v.value[P];V&&w(P,V.indexPath)})},w=(A,P)=>{p.value.includes(A)||(e.uniqueOpened&&(p.value=p.value.filter(V=>P.includes(V))),p.value.push(A),t("open",A,P))},y=A=>{const P=p.value.indexOf(A);P!==-1&&p.value.splice(P,1)},S=(A,P)=>{y(A),t("close",A,P)},k=({index:A,indexPath:P})=>{p.value.includes(A)?S(A,P):w(A,P)},x=A=>{(e.mode==="horizontal"||e.collapse)&&(p.value=[]);const{index:P,indexPath:V}=A;if(!(En(P)||En(V)))if(e.router&&r){const F=A.route||P,H=r.push(F).then(U=>(U||(g.value=P),U));t("select",P,V,{index:P,indexPath:V,route:F},H)}else g.value=P,t("select",P,V,{index:P,indexPath:V})},O=A=>{const P=h.value;g.value=(P[A]||g.value&&P[g.value]||P[e.defaultActive])?.index??A},T=A=>{const P=getComputedStyle(A),V=Number.parseInt(P.marginLeft,10),F=Number.parseInt(P.marginRight,10);return A.offsetWidth+V+F||0},I=()=>{if(!s.value)return-1;const A=Array.from(s.value.childNodes).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),P=getComputedStyle(s.value),V=Number.parseInt(P.paddingLeft,10),F=Number.parseInt(P.paddingRight,10),H=s.value.clientWidth-V-F;let U=0,J=0;return A.forEach((ee,ae)=>{U+=T(ee),U<=H-d&&(J=ae+1)}),J===A.length?-1:J},_=A=>v.value[A].indexPath,N=(A,P=33.34)=>{let V;return()=>{V&&clearTimeout(V),V=setTimeout(()=>{A()},P)}};let $=!0;const B=()=>{const A=Rn(l);if(A&&(d=T(A)||Xy),f.value===I())return;const P=()=>{f.value=-1,Ne(()=>{f.value=I()})};$?P():N(P)(),$=!1};pe(()=>e.defaultActive,A=>{h.value[A]||(g.value=""),O(A)}),pe(()=>e.collapse,A=>{A&&(p.value=[])}),pe(h.value,b);let K;la(()=>{e.mode==="horizontal"&&e.ellipsis?K=nn(s,B).stop:K?.()});const j=M(!1);{const A=H=>{v.value[H.index]=H},P=H=>{delete v.value[H.index]};St(sg,Dt({props:e,openedMenus:p,items:h,subMenus:v,activeIndex:g,isMenuPopup:m,addMenuItem:H=>{h.value[H.index]=H},removeMenuItem:H=>{delete h.value[H.index]},addSubMenu:A,removeSubMenu:P,openMenu:w,closeMenu:S,handleMenuItemClick:x,handleSubMenuClick:k})),St(`${Cd}${o.uid}`,{addSubMenu:A,removeSubMenu:P,mouseInChild:j,level:0})}ht(()=>{e.mode==="horizontal"&&new bj(o.vnode.el,u.namespace.value)}),a({open:P=>{const{indexPath:V}=v.value[P];V.forEach(F=>w(F,V))},close:y,updateActiveIndex:O,handleResize:B});const W=QE(e,0);return()=>{let A=n.default?.()??[];const P=[];if(e.mode==="horizontal"&&s.value){const H=La(A).filter(ee=>ee?.shapeFlag!==8),U=f.value===-1?H:H.slice(0,f.value),J=f.value===-1?[]:H.slice(f.value);J?.length&&e.ellipsis&&(A=U,P.push(qe(lg,{ref:l,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>qe(De,{class:c.e("icon-more")},{default:()=>qe(e.ellipsisIcon)}),default:()=>J})))}const V=e.closeOnClickOutside?[[Qr,()=>{p.value.length&&(j.value||(p.value.forEach(H=>t("close",H,_(H))),p.value=[]))}]]:[],F=ct(qe("ul",{key:String(e.collapse),role:"menubar",ref:s,style:W.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m("collapse")]:e.collapse}},[...A,...P]),V);return e.collapseTransition&&e.mode==="vertical"?qe(wj,()=>F):F}}});const Ej=Ee({index:{type:String,required:!0},route:{type:G([String,Object])},disabled:Boolean}),xj={click:e=>Ae(e.index)&&we(e.indexPath)},Tj={title:String},xp="ElMenuItem";var Oj=se({name:xp,__name:"menu-item",props:Ej,emits:xj,setup(e,{expose:t,emit:n}){const a=e,o=n,r=dt(),s=$e(sg),l=ge("menu"),u=ge("menu-item");s||rn(xp,"can not inject root menu");const{parentMenu:c,indexPath:d}=ZE(r,Ht(a,"index")),f=$e(`${Cd}${c.value.uid}`);f||rn(xp,"can not inject sub menu");const p=C(()=>a.index===s.activeIndex),g=Dt({index:a.index,indexPath:d,active:p}),h=()=>{a.disabled||(s.handleMenuItemClick({index:a.index,indexPath:d.value,route:a.route}),o("click",g))};return ht(()=>{f.addSubMenu(g),s.addMenuItem(g)}),Vt(()=>{f.removeSubMenu(g),s.removeMenuItem(g)}),t({parentMenu:c,rootMenu:s,active:p,nsMenu:l,nsMenuItem:u,handleClick:h}),(v,m)=>(E(),L("li",{class:R([i(u).b(),i(u).is("active",p.value),i(u).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:h},[i(c).type.name==="ElMenu"&&i(s).props.collapse&&v.$slots.title?(E(),le(i(Wn),{key:0,effect:i(s).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":i(s).props.popperClass,"popper-style":i(s).props.popperStyle,persistent:i(s).props.persistent,"focus-on-target":""},{content:ne(()=>[oe(v.$slots,"title")]),default:ne(()=>[z("div",{class:R(i(l).be("tooltip","trigger"))},[oe(v.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(E(),L(Ve,{key:1},[oe(v.$slots,"default"),oe(v.$slots,"title")],64))],2))}}),ex=Oj,_j=se({name:"ElMenuItemGroup",__name:"menu-item-group",props:Tj,setup(e){const t=ge("menu-item-group");return(n,a)=>(E(),L("li",{class:R(i(t).b())},[z("div",{class:R(i(t).e("title"))},[n.$slots.title?oe(n.$slots,"title",{key:1}):(E(),L(Ve,{key:0},[wt(Ce(e.title),1)],64))],2),z("ul",null,[oe(n.$slots,"default")])],2))}}),tx=_j;const Rj=st(kj,{MenuItem:ex,MenuItemGroup:tx,SubMenu:lg}),Ij=sn(ex),$j=sn(tx),Nj=sn(lg),Mj=Ee({icon:{type:Ut,default:()=>fP},title:String,content:{type:String,default:""}}),Pj={back:()=>!0},Aj=["aria-label"];var Lj=se({name:"ElPageHeader",__name:"page-header",props:Mj,emits:Pj,setup(e,{emit:t}){const n=t,{t:a}=xt(),o=ge("page-header");function r(){n("back")}return(s,l)=>(E(),L("div",{class:R([i(o).b(),i(o).is("contentful",!!s.$slots.default),{[i(o).m("has-breadcrumb")]:!!s.$slots.breadcrumb,[i(o).m("has-extra")]:!!s.$slots.extra}])},[s.$slots.breadcrumb?(E(),L("div",{key:0,class:R(i(o).e("breadcrumb"))},[oe(s.$slots,"breadcrumb")],2)):re("v-if",!0),z("div",{class:R(i(o).e("header"))},[z("div",{class:R(i(o).e("left"))},[z("div",{class:R(i(o).e("back")),role:"button",tabindex:"0",onClick:r},[e.icon||s.$slots.icon?(E(),L("div",{key:0,"aria-label":e.title||i(a)("el.pageHeader.title"),class:R(i(o).e("icon"))},[oe(s.$slots,"icon",{},()=>[e.icon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1})):re("v-if",!0)])],10,Aj)):re("v-if",!0),z("div",{class:R(i(o).e("title"))},[oe(s.$slots,"title",{},()=>[wt(Ce(e.title||i(a)("el.pageHeader.title")),1)])],2)],2),X(i(FE),{direction:"vertical"}),z("div",{class:R(i(o).e("content"))},[oe(s.$slots,"content",{},()=>[wt(Ce(e.content),1)])],2)],2),s.$slots.extra?(E(),L("div",{key:0,class:R(i(o).e("extra"))},[oe(s.$slots,"extra")],2)):re("v-if",!0)],2),s.$slots.default?(E(),L("div",{key:1,class:R(i(o).e("main"))},[oe(s.$slots,"default")],2)):re("v-if",!0)],2))}}),Dj=Lj;const Bj=st(Dj),nx=Symbol("elPaginationKey"),Vj=Ee({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Ut}}),Fj={click:e=>e instanceof MouseEvent},zj=["disabled","aria-label","aria-disabled"],Hj={key:0};var Kj=se({name:"ElPaginationPrev",__name:"prev",props:Vj,emits:Fj,setup(e){const t=e,{t:n}=xt(),a=C(()=>t.disabled||t.currentPage<=1);return(o,r)=>(E(),L("button",{type:"button",class:"btn-prev",disabled:a.value,"aria-label":o.prevText||i(n)("el.pagination.prev"),"aria-disabled":a.value,onClick:r[0]||(r[0]=s=>o.$emit("click",s))},[o.prevText?(E(),L("span",Hj,Ce(o.prevText),1)):(E(),le(i(De),{key:1},{default:ne(()=>[(E(),le(it(o.prevIcon)))]),_:1}))],8,zj))}}),Wj=Kj;const jj=Ee({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Ut}}),Uj=["disabled","aria-label","aria-disabled"],qj={key:0};var Yj=se({name:"ElPaginationNext",__name:"next",props:jj,emits:["click"],setup(e){const t=e,{t:n}=xt(),a=C(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,r)=>(E(),L("button",{type:"button",class:"btn-next",disabled:a.value,"aria-label":o.nextText||i(n)("el.pagination.next"),"aria-disabled":a.value,onClick:r[0]||(r[0]=s=>o.$emit("click",s))},[o.nextText?(E(),L("span",qj,Ce(o.nextText),1)):(E(),le(i(De),{key:1},{default:ne(()=>[(E(),le(it(o.nextIcon)))]),_:1}))],8,Uj))}}),Gj=Yj;const ig=()=>$e(nx,{}),Xj=Ee({pageSize:{type:Number,required:!0},pageSizes:{type:G(Array),default:()=>fn([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:G([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:wo},appendSizeTo:String});var Jj=se({name:"ElPaginationSizes",__name:"sizes",props:Xj,emits:["page-size-change"],setup(e,{emit:t}){const n=e,a=t,{t:o}=xt(),r=ge("pagination"),s=ig(),l=M(n.pageSize);pe(()=>n.pageSizes,(d,f)=>{dn(d,f)||we(d)&&a("page-size-change",d.includes(n.pageSize)?n.pageSize:n.pageSizes[0])}),pe(()=>n.pageSize,d=>{l.value=d});const u=C(()=>n.pageSizes);function c(d){d!==l.value&&(l.value=d,s.handleSizeChange?.(Number(d)))}return(d,f)=>(E(),L("span",{class:R(i(r).e("sizes"))},[X(i(es),{"model-value":l.value,disabled:d.disabled,"popper-class":d.popperClass,"popper-style":d.popperStyle,size:d.size,teleported:d.teleported,"validate-event":!1,"append-to":d.appendSizeTo,onChange:c},{default:ne(()=>[(E(!0),L(Ve,null,kt(u.value,p=>(E(),le(i(cd),{key:p,value:p,label:p+i(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}}),Zj=Jj;const Qj=Ee({size:{type:String,values:wo}}),eU=["disabled"];var tU=se({name:"ElPaginationJumper",__name:"jumper",props:Qj,setup(e){const{t}=xt(),n=ge("pagination"),{pageCount:a,disabled:o,currentPage:r,changeEvent:s}=ig(),l=M(),u=C(()=>l.value??r?.value);function c(f){l.value=f?+f:""}function d(f){f=Math.trunc(+f),s?.(f),l.value=void 0}return(f,p)=>(E(),L("span",{class:R(i(n).e("jump")),disabled:i(o)},[z("span",{class:R([i(n).e("goto")])},Ce(i(t)("el.pagination.goto")),3),X(i(Un),{size:f.size,class:R([i(n).e("editor"),i(n).is("in-pagination")]),min:1,max:i(a),disabled:i(o),"model-value":u.value,"validate-event":!1,"aria-label":i(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),z("span",{class:R([i(n).e("classifier")])},Ce(i(t)("el.pagination.pageClassifier")),3)],10,eU))}}),nU=tU;const aU=Ee({total:{type:Number,default:1e3}}),oU=["disabled"];var rU=se({name:"ElPaginationTotal",__name:"total",props:aU,setup(e){const{t}=xt(),n=ge("pagination"),{disabled:a}=ig();return(o,r)=>(E(),L("span",{class:R(i(n).e("total")),disabled:i(a)},Ce(i(t)("el.pagination.total",{total:o.total})),11,oU))}}),sU=rU;const lU=Ee({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),iU=["aria-current","aria-label","tabindex"],uU=["tabindex","aria-label"],cU=["aria-current","aria-label","tabindex"],dU=["tabindex","aria-label"],fU=["aria-current","aria-label","tabindex"];var pU=se({name:"ElPaginationPager",__name:"pager",props:lU,emits:[yt],setup(e,{emit:t}){const n=e,a=t,o=ge("pager"),r=ge("icon"),{t:s}=xt(),l=M(!1),u=M(!1),c=M(!1),d=M(!1),f=M(!1),p=M(!1),g=C(()=>{const k=n.pagerCount,x=(k-1)/2,O=Number(n.currentPage),T=Number(n.pageCount);let I=!1,_=!1;T>k&&(O>k-x&&(I=!0),O["more","btn-quickprev",r.b(),o.is("disabled",n.disabled)]),v=C(()=>["more","btn-quicknext",r.b(),o.is("disabled",n.disabled)]),m=C(()=>n.disabled?-1:0);pe(()=>[n.pageCount,n.pagerCount,n.currentPage],([k,x,O])=>{const T=(x-1)/2;let I=!1,_=!1;k>x&&(I=O>x-T,_=OT&&(O=T)),O!==I&&a(yt,O)}return(k,x)=>(E(),L("ul",{class:R(i(o).b()),onClick:S,onKeyup:cn(y,["enter"])},[k.pageCount>0?(E(),L("li",{key:0,class:R([[i(o).is("active",k.currentPage===1),i(o).is("disabled",k.disabled)],"number"]),"aria-current":k.currentPage===1,"aria-label":i(s)("el.pagination.currentPage",{pager:1}),tabindex:m.value}," 1 ",10,iU)):re("v-if",!0),l.value?(E(),L("li",{key:1,class:R(h.value),tabindex:m.value,"aria-label":i(s)("el.pagination.prevPages",{pager:k.pagerCount-2}),onMouseenter:x[0]||(x[0]=O=>b(!0)),onMouseleave:x[1]||(x[1]=O=>c.value=!1),onFocus:x[2]||(x[2]=O=>w(!0)),onBlur:x[3]||(x[3]=O=>f.value=!1)},[(c.value||f.value)&&!k.disabled?(E(),le(i(Xr),{key:0})):(E(),le(i(B0),{key:1}))],42,uU)):re("v-if",!0),(E(!0),L(Ve,null,kt(g.value,O=>(E(),L("li",{key:O,class:R([[i(o).is("active",k.currentPage===O),i(o).is("disabled",k.disabled)],"number"]),"aria-current":k.currentPage===O,"aria-label":i(s)("el.pagination.currentPage",{pager:O}),tabindex:m.value},Ce(O),11,cU))),128)),u.value?(E(),L("li",{key:2,class:R(v.value),tabindex:m.value,"aria-label":i(s)("el.pagination.nextPages",{pager:k.pagerCount-2}),onMouseenter:x[4]||(x[4]=O=>b()),onMouseleave:x[5]||(x[5]=O=>d.value=!1),onFocus:x[6]||(x[6]=O=>w()),onBlur:x[7]||(x[7]=O=>p.value=!1)},[(d.value||p.value)&&!k.disabled?(E(),le(i(Jr),{key:0})):(E(),le(i(B0),{key:1}))],42,dU)):re("v-if",!0),k.pageCount>1?(E(),L("li",{key:3,class:R([[i(o).is("active",k.currentPage===k.pageCount),i(o).is("disabled",k.disabled)],"number"]),"aria-current":k.currentPage===k.pageCount,"aria-label":i(s)("el.pagination.currentPage",{pager:k.pageCount}),tabindex:m.value},Ce(k.pageCount),11,fU)):re("v-if",!0)],34))}}),hU=pU;const ua=e=>typeof e!="number",vU=Ee({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Be(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:G(Array),default:()=>fn([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:G([String,Object])},prevText:{type:String,default:""},prevIcon:{type:Ut,default:()=>mr},nextText:{type:String,default:""},nextIcon:{type:Ut,default:()=>sa},teleported:{type:Boolean,default:!0},small:Boolean,size:Nn,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),mU={"update:current-page":e=>Be(e),"update:page-size":e=>Be(e),"size-change":e=>Be(e),change:(e,t)=>Be(e)&&Be(t),"current-change":e=>Be(e),"prev-click":e=>Be(e),"next-click":e=>Be(e)},Jy="ElPagination";var gU=se({name:Jy,props:vU,emits:mU,setup(e,{emit:t,slots:n}){const{t:a}=xt(),o=ge("pagination"),r=dt().vnode.props||{},s=SC(),l=C(()=>e.small?"small":e.size??s.value);Po({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},C(()=>!!e.small));const u="onUpdate:currentPage"in r||"onUpdate:current-page"in r||"onCurrentChange"in r,c="onUpdate:pageSize"in r||"onUpdate:page-size"in r||"onSizeChange"in r,d=C(()=>{if(ua(e.total)&&ua(e.pageCount)||!ua(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes")){if(ua(e.pageCount)){if(!ua(e.total)&&!ua(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=M(ua(e.defaultPageSize)?10:e.defaultPageSize),p=M(ua(e.defaultCurrentPage)?1:e.defaultCurrentPage),g=C({get(){return ua(e.pageSize)?f.value:e.pageSize},set(k){ua(e.pageSize)&&(f.value=k),c&&(t("update:page-size",k),t("size-change",k))}}),h=C(()=>{let k=0;return ua(e.pageCount)?ua(e.total)||(k=Math.max(1,Math.ceil(e.total/g.value))):k=e.pageCount,k}),v=C({get(){return ua(e.currentPage)?p.value:e.currentPage},set(k){let x=k;k<1?x=1:k>h.value&&(x=h.value),ua(e.currentPage)&&(p.value=x),u&&(t("update:current-page",x),t("current-change",x))}});pe(h,k=>{v.value>k&&(v.value=k)}),pe([v,g],k=>{t(yt,...k)},{flush:"post"});function m(k){v.value=k}function b(k){g.value=k;const x=h.value;v.value>x&&(v.value=x)}function w(){e.disabled||(v.value-=1,t("prev-click",v.value))}function y(){e.disabled||(v.value+=1,t("next-click",v.value))}function S(k,x){k&&(k.props||(k.props={}),k.props.class=[k.props.class,x].join(" "))}return St(nx,{pageCount:h,disabled:C(()=>e.disabled),currentPage:v,changeEvent:m,handleSizeChange:b}),()=>{if(!d.value)return jt(Jy,a("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&h.value<=1)return null;const k=[],x=[],O=qe("div",{class:o.e("rightwrapper")},x),T={prev:qe(Wj,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:w}),jumper:qe(nU,{size:l.value}),pager:qe(hU,{currentPage:v.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:qe(Gj,{disabled:e.disabled,currentPage:v.value,pageCount:h.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:y}),sizes:qe(Zj,{pageSize:g.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:l.value,appendSizeTo:e.appendSizeTo}),slot:n?.default?.()??null,total:qe(sU,{total:ua(e.total)?0:e.total})},I=e.layout.split(",").map(N=>N.trim());let _=!1;return I.forEach(N=>{if(N==="->"){_=!0;return}_?x.push(T[N]):k.push(T[N])}),S(k[0],o.is("first")),S(k[k.length-1],o.is("last")),_&&x.length>0&&(S(x[0],o.is("first")),S(x[x.length-1],o.is("last")),k.push(O)),qe("div",{class:[o.b(),o.is("background",e.background),o.m(l.value)]},k)}}});const bU=st(gU),yU=Ee({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:xh,default:"primary"},cancelButtonType:{type:String,values:xh,default:"text"},icon:{type:Ut,default:()=>kA},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...Kt.effect,default:"light"},teleported:Kt.teleported,persistent:Kt.persistent,width:{type:[String,Number],default:150},virtualTriggering:Bo.virtualTriggering,virtualRef:Bo.virtualRef}),wU={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent};var SU=se({name:"ElPopconfirm",__name:"popconfirm",props:yU,emits:wU,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:r}=xt(),s=ge("popconfirm"),l=M(),u=M(),c=C(()=>i(l)?.popperRef),d=()=>{u.value?.focus?.()},f=()=>{l.value?.onClose?.()},p=C(()=>({width:pn(a.width)})),g=b=>{o("confirm",b),f()},h=b=>{o("cancel",b),f()},v=C(()=>a.confirmButtonText||r("el.popconfirm.confirmButtonText")),m=C(()=>a.cancelButtonText||r("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:f}),(b,w)=>(E(),le(i(Wn),pt({ref_key:"tooltipRef",ref:l,trigger:"click",effect:e.effect},b.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${i(s).namespace.value}-popover`,"popper-style":p.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:d}),{content:ne(()=>[z("div",{ref_key:"rootRef",ref:u,tabindex:"-1",class:R(i(s).b())},[z("div",{class:R(i(s).e("main"))},[!e.hideIcon&&e.icon?(E(),le(i(De),{key:0,class:R(i(s).e("icon")),style:ze({color:e.iconColor})},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1},8,["class","style"])):re("v-if",!0),wt(" "+Ce(e.title),1)],2),z("div",{class:R(i(s).e("action"))},[oe(b.$slots,"actions",{confirm:g,cancel:h},()=>[X(i(Bn),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:h},{default:ne(()=>[wt(Ce(m.value),1)]),_:1},8,["type","text"]),X(i(Bn),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:g},{default:ne(()=>[wt(Ce(v.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:ne(()=>[b.$slots.reference?oe(b.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}}),CU=SU;const kU=st(CU),EU=Ee({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:G(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:G([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:G(Function),default:e=>`${e}%`}}),xU=["aria-valuenow"],TU={viewBox:"0 0 100 100"},OU=["d","stroke","stroke-linecap","stroke-width"],_U=["d","stroke","opacity","stroke-linecap","stroke-width"],RU={key:0};var IU=se({name:"ElProgress",__name:"progress",props:EU,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,a=ge("progress"),o=C(()=>{const y={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},S=w(n.percentage);return S.includes("gradient")?y.background=S:y.backgroundColor=S,y}),r=C(()=>(n.strokeWidth/n.width*100).toFixed(1)),s=C(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(r.value)/2}`,10):0),l=C(()=>{const y=s.value,S=n.type==="dashboard";return` + M 50 50 + m 0 ${S?"":"-"}${y} + a ${y} ${y} 0 1 1 0 ${S?"-":""}${y*2} + a ${y} ${y} 0 1 1 0 ${S?"":"-"}${y*2} + `}),u=C(()=>2*Math.PI*s.value),c=C(()=>n.type==="dashboard"?.75:1),d=C(()=>`${-1*u.value*(1-c.value)/2}px`),f=C(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),p=C(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=C(()=>{let y;return n.color?y=w(n.percentage):y=t[n.status]||t.default,y}),h=C(()=>n.status==="warning"?vf:n.type==="line"?n.status==="success"?Rm:Yo:n.status==="success"?$l:Qa),v=C(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),m=C(()=>n.format(n.percentage));function b(y){const S=100/y.length;return y.map((k,x)=>Ae(k)?{color:k,percentage:(x+1)*S}:k).sort((k,x)=>k.percentage-x.percentage)}const w=y=>{const{color:S}=n;if(Fe(S))return S(y);if(Ae(S))return S;{const k=b(S);for(const x of k)if(x.percentage>y)return x.color;return k[k.length-1]?.color}};return(y,S)=>(E(),L("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(E(),L("div",{key:0,class:R(i(a).b("bar"))},[z("div",{class:R(i(a).be("bar","outer")),style:ze({height:`${e.strokeWidth}px`})},[z("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:ze(o.value)},[(e.showText||y.$slots.default)&&e.textInside?(E(),L("div",{key:0,class:R(i(a).be("bar","innerText"))},[oe(y.$slots,"default",{percentage:e.percentage},()=>[z("span",null,Ce(m.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(E(),L("div",{key:1,class:R(i(a).b("circle")),style:ze({height:`${e.width}px`,width:`${e.width}px`})},[(E(),L("svg",TU,[z("path",{class:R(i(a).be("circle","track")),d:l.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":r.value,fill:"none",style:ze(f.value)},null,14,OU),z("path",{class:R(i(a).be("circle","path")),d:l.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":r.value,style:ze(p.value)},null,14,_U)]))],6)),(e.showText||y.$slots.default)&&!e.textInside?(E(),L("div",{key:2,class:R(i(a).e("text")),style:ze({fontSize:`${v.value}px`})},[oe(y.$slots,"default",{percentage:e.percentage},()=>[e.status?(E(),le(i(De),{key:1},{default:ne(()=>[(E(),le(it(h.value)))]),_:1})):(E(),L("span",RU,Ce(m.value),1))])],6)):re("v-if",!0)],10,xU))}}),$U=IU;const ax=st($U),NU=Ee({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:G([Array,Object]),default:()=>fn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:G([Array,Object]),default:()=>[ac,ac,ac]},voidIcon:{type:Ut,default:()=>FA},disabledVoidIcon:{type:Ut,default:()=>ac},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:G(Array),default:()=>fn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Nn,clearable:Boolean,...ia(["ariaLabel"])}),MU={[yt]:e=>Be(e),[at]:e=>Be(e)},PU=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],AU=["onMousemove","onClick"];var LU=se({name:"ElRate",__name:"rate",props:NU,emits:MU,setup(e,{expose:t,emit:n}){function a(P,V){const F=U=>ot(U),H=V[Object.keys(V).map(U=>+U).filter(U=>{const J=V[U];return F(J)&&J.excluded?PU-J)[0]];return F(H)&&H.value||H}const o=e,r=n,s=$e(Wo,void 0),l=In(),u=ge("rate"),{inputId:c,isLabeledByFormItem:d}=Ia(o,{formItemContext:s}),f=M(Pa(o.modelValue,0,o.max)),p=M(-1),g=M(!0),h=M([]),v=C(()=>h.value.map(P=>P.$el.clientWidth)),m=C(()=>[u.b(),u.m(l.value)]),b=ln(),w=C(()=>u.cssVarBlock({"void-color":o.voidColor,"disabled-void-color":o.disabledVoidColor,"fill-color":x.value})),y=C(()=>{let P="";return o.showScore?P=o.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${o.modelValue}`:`${f.value}`):o.showText&&(P=o.texts[Math.ceil(f.value)-1]),P}),S=C(()=>o.modelValue*100-Math.floor(o.modelValue)*100),k=C(()=>we(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),x=C(()=>{const P=a(f.value,k.value);return ot(P)?"":P}),O=C(()=>{let P="";return b.value?P=`${S.value}%`:o.allowHalf&&(P="50%"),{color:x.value,width:P}}),T=C(()=>{let P=we(o.icons)?[...o.icons]:{...o.icons};return P=Ya(P),we(P)?{[o.lowThreshold]:P[0],[o.highThreshold]:{value:P[1],excluded:!0},[o.max]:P[2]}:P}),I=C(()=>a(o.modelValue,T.value)),_=C(()=>b.value?Ae(o.disabledVoidIcon)?o.disabledVoidIcon:Ya(o.disabledVoidIcon):Ae(o.voidIcon)?o.voidIcon:Ya(o.voidIcon)),N=C(()=>a(f.value,T.value));function $(P){const V=b.value&&S.value>0&&P-1o.modelValue,F=o.allowHalf&&g.value&&P-.5<=f.value&&P>f.value;return V||F}function B(P){o.clearable&&P===o.modelValue&&(P=0),r(at,P),o.modelValue!==P&&r(yt,P)}function K(P){b.value||(o.allowHalf&&g.value?B(f.value):B(P))}function j(P){if(b.value)return;const V=qt(P),F=o.allowHalf?.5:1;let H=f.value;switch(V){case Se.up:case Se.right:H+=F;break;case Se.left:case Se.down:H-=F;break}if(H=Pa(H,0,o.max),H!==f.value)return P.stopPropagation(),P.preventDefault(),r(at,H),r(yt,H),H}function W(P,V){b.value||(o.allowHalf&&V?(g.value=V.offsetX*2<=v.value[P-1],f.value=g.value?P-.5:P):f.value=P,p.value=P)}function A(){b.value||(o.allowHalf&&(g.value=o.modelValue!==Math.floor(o.modelValue)),f.value=Pa(o.modelValue,0,o.max),p.value=-1)}return pe(()=>o.modelValue,P=>{f.value=Pa(P,0,o.max),g.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||r(at,0),t({setCurrentValue:W,resetCurrentValue:A}),(P,V)=>(E(),L("div",{id:i(c),class:R([m.value,i(u).is("disabled",i(b))]),role:"slider","aria-label":i(d)?void 0:e.ariaLabel||"rating","aria-labelledby":i(d)?i(s)?.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":y.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,style:ze(w.value),tabindex:i(b)?void 0:0,"aria-disabled":i(b),onKeydown:j},[(E(!0),L(Ve,null,kt(e.max,(F,H)=>(E(),L("span",{key:H,class:R(i(u).e("item")),onMousemove:U=>W(F,U),onMouseleave:A,onClick:U=>K(F)},[X(i(De),{ref_for:!0,ref_key:"iconRefs",ref:h,class:R([i(u).e("icon"),{hover:p.value===F},i(u).is("active",F<=f.value),i(u).is("focus-visible",F===Math.ceil(f.value||1))])},{default:ne(()=>[ct((E(),le(it(N.value),null,null,512)),[[$t,!$(F)&&F<=f.value]]),ct((E(),le(it(_.value),null,null,512)),[[$t,!$(F)&&F>f.value]]),ct((E(),le(it(_.value),{class:R([i(u).em("decimal","box")])},null,8,["class"])),[[$t,$(F)]]),ct(X(i(De),{style:ze(O.value),class:R([i(u).e("icon"),i(u).e("decimal")])},{default:ne(()=>[(E(),le(it(I.value)))]),_:1},8,["style","class"]),[[$t,$(F)]])]),_:2},1032,["class"])],42,AU))),128)),e.showText||e.showScore?(E(),L("span",{key:0,class:R(i(u).e("text")),style:ze({color:e.textColor})},Ce(y.value),7)):re("v-if",!0)],46,PU))}}),DU=LU;const BU=st(DU),fs={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Zy={[fs.primary]:tu,[fs.success]:kP,[fs.warning]:vf,[fs.error]:Im,[fs.info]:tu},VU=Ee({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var FU=se({name:"ElResult",__name:"result",props:VU,setup(e){const t=e,n=ge("result"),a=C(()=>{const o=t.icon,r=o&&fs[o]?fs[o]:"icon-info";return{class:r,component:Zy[r]||Zy["icon-info"]}});return(o,r)=>(E(),L("div",{class:R(i(n).b())},[z("div",{class:R(i(n).e("icon"))},[oe(o.$slots,"icon",{},()=>[a.value.component?(E(),le(it(a.value.component),{key:0,class:R(a.value.class)},null,8,["class"])):re("v-if",!0)])],2),e.title||o.$slots.title?(E(),L("div",{key:0,class:R(i(n).e("title"))},[oe(o.$slots,"title",{},()=>[z("p",null,Ce(e.title),1)])],2)):re("v-if",!0),e.subTitle||o.$slots["sub-title"]?(E(),L("div",{key:1,class:R(i(n).e("subtitle"))},[oe(o.$slots,"sub-title",{},()=>[z("p",null,Ce(e.subTitle),1)])],2)):re("v-if",!0),o.$slots.extra?(E(),L("div",{key:2,class:R(i(n).e("extra"))},[oe(o.$slots,"extra")],2)):re("v-if",!0)],2))}}),zU=FU;const HU=st(zU),ug=Symbol("ElSelectV2Injection"),KU=Ee({allowCreate:Boolean,autocomplete:{type:G(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Ut,default:Yo},effect:{type:G(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:G(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:G(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:G([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:G(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:G(Array),required:!0},placeholder:{type:String},teleported:Kt.teleported,persistent:{type:Boolean,default:!0},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:{type:G(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:Nn,props:{type:G(Object),default:()=>ud},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:G(String),values:jo,default:"bottom-start"},fallbackPlacements:{type:G(Array),default:["bottom-start","top-start","right","left"]},tagType:{...gr.type,default:"info"},tagEffect:{...gr.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Kt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Wt(e)||Be(e)}},suffixIcon:{type:Ut,default:qo},...zs,...ia(["ariaLabel"])}),WU=Ee({data:Array,disabled:Boolean,hovering:Boolean,item:{type:G(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),jU={[at]:e=>!0,[yt]:e=>!0,"end-reached":au["end-reached"],"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},UU={hover:e=>Be(e),select:(e,t)=>!0};var qU=se({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:ge("select")}}});function YU(e,t,n,a,o,r){return E(),L("div",{class:R(e.ns.be("group","title")),style:ze({...e.style,lineHeight:`${e.height}px`})},Ce(e.item.label),7)}var GU=Mn(qU,[["render",YU]]);function XU(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}var JU=se({props:WU,emits:UU,setup(e,{emit:t}){const n=$e(ug),a=ge("select"),{hoverItem:o,selectOptionClick:r}=XU(e,{emit:t}),{getLabel:s}=Bu(n.props),l=n.contentId;return{ns:a,contentId:l,hoverItem:o,handleMousedown:c=>{let d=c.target;const f=c.currentTarget;for(;d&&d!==f;){if(Is(d))return;d=d.parentElement}c.preventDefault()},selectOptionClick:r,getLabel:s}}});const ZU=["id","aria-selected","aria-disabled"];function QU(e,t,n,a,o,r){return E(),L("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:ze(e.style),class:R([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onMousedown:t[1]||(t[1]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onClick:t[2]||(t[2]=Xe((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[oe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[z("span",null,Ce(e.getLabel(e.item)),1)])],46,ZU)}var eq=Mn(JU,[["render",QU]]),tq=se({name:"ElSelectDropdown",props:{loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String},emits:{"end-reached":au["end-reached"]},setup(e,{slots:t,expose:n,emit:a}){const o=$e(ug),r=ge("select"),{getLabel:s,getValue:l,getDisabled:u}=Bu(o.props),c=M([]),d=M(),f=C(()=>e.data.length);pe(()=>f.value,()=>{o.tooltipRef.value?.updatePopper?.()});const p=C(()=>Rt(o.props.estimatedOptionHeight)),g=C(()=>p.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:$=>c.value[$]}),h=($=[],B)=>{const{props:{valueKey:K}}=o;return ot(B)?$&&$.some(j=>Jt(yn(j,K))===yn(B,K)):$.includes(B)},v=($,B)=>{if(ot(B)){const{valueKey:K}=o.props;return yn($,K)===yn(B,K)}else return $===B},m=($,B)=>o.props.multiple?h($,l(B)):v($,l(B)),b=($,B)=>{const{disabled:K,multiple:j,multipleLimit:W}=o.props;return K||!B&&(j?W>0&&$.length>=W:!1)},w=$=>e.hoveringIndex===$;n({listRef:d,isSized:p,isItemDisabled:b,isItemHovering:w,isItemSelected:m,scrollToItem:$=>{const B=d.value;B&&B.scrollToItem($)},resetScrollTop:()=>{const $=d.value;$&&$.resetScrollTop()}});const k=$=>{const{index:B,data:K,style:j}=$,W=i(p),{itemSize:A,estimatedSize:P}=i(g),{modelValue:V}=o.props,{onSelect:F,onHover:H}=o,U=K[B];if(U.type==="Group")return X(GU,{item:U,style:j,height:W?A:P},null);const J=m(V,U),ee=b(V,J),ae=w(B);return X(eq,pt($,{selected:J,disabled:u(U)||ee,created:!!U.created,hovering:ae,item:U,onSelect:F,onHover:H}),{default:ce=>t.default?.(ce)||X("span",null,[s(U)])})},{onKeyboardNavigate:x,onKeyboardSelect:O}=o,T=()=>{x("forward")},I=()=>{x("backward")},_=$=>{const B=qt($),{tab:K,esc:j,down:W,up:A,enter:P,numpadEnter:V}=Se;switch([j,W,A,P,V].includes(B)&&($.preventDefault(),$.stopPropagation()),B){case K:case j:break;case W:T();break;case A:I();break;case P:case V:O();break}},N=$=>{a("end-reached",$)};return()=>{const{data:$,width:B}=e,{height:K,multiple:j,scrollbarAlwaysOn:W}=o.props,A=td?!0:W,P=i(p)?yf:SF;return X("div",{class:[r.b("dropdown"),r.is("multiple",j)],style:{width:`${B}px`}},[t.header?.(),t.loading?.()||t.empty?.()||X(P,pt({ref:d},i(g),{className:r.be("dropdown","list"),scrollbarAlwaysOn:A,data:$,height:K,width:B,total:$.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onEndReached:N,onKeydown:_}),{default:V=>X(k,V,null)}),t.footer?.()])}}});function nq(e,t){const{aliasProps:n,getLabel:a,getValue:o}=Bu(e),r=M(0),s=M(),l=C(()=>e.allowCreate&&e.filterable);pe(()=>e.options,g=>{const h=new Set(g.map(v=>a(v)));t.createdOptions=t.createdOptions.filter(v=>!h.has(a(v)))});function u(g){const h=v=>a(v)===g;return e.options&&e.options.some(h)||t.createdOptions.some(h)}function c(g){l.value&&(e.multiple&&g.created?r.value++:s.value=g)}function d(g){if(l.value)if(g&&g.length>0){if(u(g)){t.createdOptions=t.createdOptions.filter(v=>a(v)!==t.previousQuery);return}const h={[n.value.value]:g,[n.value.label]:g,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=r.value?t.createdOptions[r.value]=h:t.createdOptions.push(h)}else if(e.multiple)t.createdOptions.length=r.value;else{const h=s.value;t.createdOptions.length=0,h&&h.created&&t.createdOptions.push(h)}}function f(g){if(!l.value||!g||!g.created||g.created&&e.reserveKeyword&&t.inputValue===a(g))return;const h=t.createdOptions.findIndex(v=>o(v)===o(g));~h&&(t.createdOptions.splice(h,1),r.value--)}function p(){l.value&&(t.createdOptions.length=0,r.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:p}}const aq=(e,t)=>{const{t:n}=xt(),a=wn(),o=ge("select"),r=ge("input"),{form:s,formItem:l}=Fn(),{inputId:u}=Ia(e,{formItemContext:l}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:p,getOptions:g}=Bu(e),{valueOnClear:h,isEmptyValue:v}=Au(e),m=Dt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=M(-1),w=M(!1),y=M(),S=M(),k=M(),x=M(),O=M(),T=M(),I=M(),_=M(),N=M(),$=M(),{isComposing:B,handleCompositionStart:K,handleCompositionEnd:j,handleCompositionUpdate:W}=Pu({afterComposition:Me=>tn(Me)}),A=ln(),{wrapperRef:P,isFocused:V,handleBlur:F}=Er(O,{disabled:A,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,m.menuVisibleOnFocus=!0)},beforeBlur(Me){return k.value?.isFocusInsideContent(Me)||x.value?.isFocusInsideContent(Me)},afterBlur(){ee.value=!1,m.menuVisibleOnFocus=!1,e.validateEvent&&l?.validate?.("blur").catch(ut)}}),H=C(()=>Ie("")),U=C(()=>e.loading?!1:e.options.length>0||m.createdOptions.length>0),J=M([]),ee=M(!1),ae=C(()=>s?.statusIcon??!1),ce=C(()=>{const Me=J.value.length*e.itemHeight;return Me>e.height?e.height:Me}),Z=C(()=>e.multiple?we(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),de=C(()=>e.clearable&&!A.value&&Z.value&&(V.value||m.inputHovering)),ue=C(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Y=C(()=>ue.value&&o.is("reverse",ee.value)),Q=C(()=>l?.validateState||""),D=C(()=>{if(Q.value)return mf[Q.value]}),q=C(()=>e.remote?e.debounce:0),te=C(()=>e.remote&&!m.inputValue&&!U.value),fe=C(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&m.inputValue&&U.value&&J.value.length===0?e.noMatchText||n("el.select.noMatch"):U.value?null:e.noDataText||n("el.select.noData")),he=C(()=>e.filterable&&Fe(e.filterMethod)),ve=C(()=>e.filterable&&e.remote&&Fe(e.remoteMethod)),Ie=Me=>{const It=new RegExp(cm(Me),"i"),_t=Ot=>he.value||ve.value?!0:Me?It.test(d(Ot)||""):!0;return e.loading?[]:[...m.createdOptions,...e.options].reduce((Ot,jn)=>{const $a=g(jn);if(we($a)){const Yu=$a.filter(_t);Yu.length>0&&Ot.push({label:d(jn),type:"Group"},...Yu)}else(e.remote||_t(jn))&&Ot.push(jn);return Ot},[])},Le=()=>{J.value=Ie(m.inputValue)},_e=C(()=>{const Me=new Map;return H.value.forEach((It,_t)=>{Me.set(Ge(f(It)),{option:It,index:_t})}),Me}),ye=C(()=>{const Me=new Map;return J.value.forEach((It,_t)=>{Me.set(Ge(f(It)),{option:It,index:_t})}),Me}),Te=C(()=>J.value.every(Me=>p(Me))),be=In(),Pe=C(()=>be.value==="small"?"small":"default"),He=()=>{if(Be(e.fitInputWidth)){b.value=e.fitInputWidth;return}const Me=y.value?.offsetWidth||200;!e.fitInputWidth&&U.value?Ne(()=>{b.value=Math.max(Me,Je())}):b.value=Me},Je=()=>{const Me=document.createElement("canvas").getContext("2d"),It=o.be("dropdown","item"),_t=(_.value?.listRef?.innerRef||document).querySelector(`.${It}`);if(_t===null||Me===null)return 0;const Ot=getComputedStyle(_t),jn=Number.parseFloat(Ot.paddingLeft)+Number.parseFloat(Ot.paddingRight);return Me.font=`bold ${Ot.font.replace(new RegExp(`\\b${Ot.fontWeight}\\b`),"")}`,J.value.reduce(($a,Yu)=>{const Q4=Me.measureText(d(Yu));return Math.max(Q4.width,$a)},0)+jn},Qe=()=>{if(!S.value)return 0;const Me=window.getComputedStyle(S.value);return Number.parseFloat(Me.gap||"6px")},lt=C(()=>{const Me=Qe(),It=e.filterable?Me+11:0;return{maxWidth:`${$.value&&e.maxCollapseTags===1?m.selectionWidth-m.collapseItemWidth-Me-It:m.selectionWidth-It}px`}}),Ze=C(()=>({maxWidth:`${m.selectionWidth}px`})),gt=C(()=>we(e.modelValue)?e.modelValue.length===0&&!m.inputValue:e.filterable?!m.inputValue:!0),At=C(()=>{const Me=e.placeholder??n("el.select.placeholder");return e.multiple||!Z.value?Me:m.selectedLabel}),zt=C(()=>k.value?.popperRef?.contentRef),nt=C(()=>{if(e.multiple){const Me=e.modelValue.length;if(Me>0&&ye.value.has(e.modelValue[Me-1])){const{index:It}=ye.value.get(e.modelValue[Me-1]);return It}}else if(!v(e.modelValue)&&ye.value.has(e.modelValue)){const{index:Me}=ye.value.get(e.modelValue);return Me}return-1}),ft=C({get(){return ee.value&&(e.loading||!te.value||e.remote&&!!a.empty)&&(!w.value||!ha(m.previousQuery)||U.value)},set(Me){ee.value=Me}}),me=C(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(0,e.maxCollapseTags):m.cachedOptions:[]),je=C(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:ie,removeNewOption:xe,selectNewOption:Ue,clearAllNewOption:et}=nq(e,m),bt=Me=>{A.value||e.filterable&&ee.value&&Me&&!I.value?.contains(Me.target)||(m.menuVisibleOnFocus?m.menuVisibleOnFocus=!1:ee.value=!ee.value)},vt=()=>{m.inputValue.length>0&&!ee.value&&(ee.value=!0),ie(m.inputValue),Ne(()=>{Yt(m.inputValue)})},Et=xu(()=>{vt(),w.value=!1},q),Yt=Me=>{m.previousQuery===Me||B.value||(m.previousQuery=Me,e.filterable&&Fe(e.filterMethod)?e.filterMethod(Me):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(Me),e.defaultFirstOption&&(e.filterable||e.remote)&&J.value.length?Ne(an):Ne(Ft))},an=()=>{const Me=J.value.filter(Ot=>!Ot.disabled&&Ot.type!=="Group"),It=Me.find(Ot=>Ot.created),_t=Me[0];m.hoveringIndex=Ye(J.value,It||_t)},Lt=Me=>{dn(e.modelValue,Me)||t(yt,Me)},en=Me=>{t(at,Me),Lt(Me),m.previousValue=e.multiple?String(Me):Me,Ne(()=>{if(e.multiple&&we(e.modelValue)){const It=m.cachedOptions.slice(),_t=e.modelValue.map(Ot=>Hg(Ot,It));dn(m.cachedOptions,_t)||(m.cachedOptions=_t)}else qu(!0)})},Ye=(Me=[],It)=>{if(!ot(It))return Me.indexOf(It);const _t=e.valueKey;let Ot=-1;return Me.some((jn,$a)=>yn(jn,_t)===yn(It,_t)?(Ot=$a,!0):!1),Ot},Ge=Me=>ot(Me)?yn(Me,e.valueKey):Me,tt=()=>{He()},Oe=Me=>{t("end-reached",Me)},Ke=()=>{m.selectionWidth=Number.parseFloat(window.getComputedStyle(S.value).width)},We=()=>{m.collapseItemWidth=$.value.getBoundingClientRect().width},Xt=()=>{k.value?.updatePopper?.()},un=()=>{x.value?.updatePopper?.()},On=Me=>{const It=f(Me);if(e.multiple){let _t=e.modelValue.slice();const Ot=Ye(_t,It);Ot>-1?(_t=[..._t.slice(0,Ot),..._t.slice(Ot+1)],m.cachedOptions.splice(Ot,1),xe(Me)):(e.multipleLimit<=0||_t.length{let _t=e.modelValue.slice();const Ot=Ye(_t,f(It));Ot>-1&&!A.value&&(_t=[...e.modelValue.slice(0,Ot),...e.modelValue.slice(Ot+1)],m.cachedOptions.splice(Ot,1),en(_t),t("remove-tag",f(It)),xe(It)),Me.stopPropagation(),wa()},wa=()=>{O.value?.focus()},to=()=>{if(ee.value){ee.value=!1,Ne(()=>O.value?.blur());return}O.value?.blur()},Lf=()=>{m.inputValue.length>0?m.inputValue="":ee.value=!1},Df=Me=>ES(Me,It=>!m.cachedOptions.some(_t=>f(_t)===It&&p(_t))),Bf=Me=>{const It=qt(Me);if(e.multiple&&It!==Se.delete&&m.inputValue.length===0){Me.preventDefault();const _t=e.modelValue.slice(),Ot=Df(_t);if(Ot<0)return;const jn=_t[Ot];_t.splice(Ot,1);const $a=m.cachedOptions[Ot];m.cachedOptions.splice(Ot,1),xe($a),en(_t),t("remove-tag",jn)}},Vf=()=>{let Me;we(e.modelValue)?Me=[]:Me=h.value,m.selectedLabel="",ee.value=!1,en(Me),t("clear"),et(),wa()},Ks=(Me,It=void 0)=>{const _t=J.value;if(!["forward","backward"].includes(Me)||A.value||_t.length<=0||Te.value||B.value)return;if(!ee.value)return bt();Rt(It)&&(It=m.hoveringIndex);let Ot=-1;Me==="forward"?(Ot=It+1,Ot>=_t.length&&(Ot=0)):Me==="backward"&&(Ot=It-1,(Ot<0||Ot>=_t.length)&&(Ot=_t.length-1));const jn=_t[Ot];if(p(jn)||jn.type==="Group")return Ks(Me,Ot);m.hoveringIndex=Ot,_r(Ot)},Re=()=>{if(ee.value)~m.hoveringIndex&&J.value[m.hoveringIndex]&&On(J.value[m.hoveringIndex]);else return bt()},mt=Me=>{m.hoveringIndex=Me??-1},Ft=()=>{if(!e.multiple)m.hoveringIndex=J.value.findIndex(Me=>Ge(f(Me))===Ge(e.modelValue));else{const Me=e.modelValue.length;if(Me>0){const It=e.modelValue[Me-1];m.hoveringIndex=J.value.findIndex(_t=>Ge(It)===Ge(f(_t)))}else m.hoveringIndex=-1}},tn=Me=>{if(m.inputValue=Me.target.value,e.remote)w.value=!0,Et();else return vt()},_n=Me=>{ee.value=!1,V.value&&F(new FocusEvent("blur",Me))},Sa=()=>(m.isBeforeHide=!1,Ne(()=>{~nt.value&&_r(nt.value)})),_r=Me=>{_.value.scrollToItem(Me)},Hg=(Me,It)=>{const _t=Ge(Me);if(_e.value.has(_t)){const{option:Ot}=_e.value.get(_t);return Ot}if(It&&It.length){const Ot=It.find(jn=>Ge(f(jn))===_t);if(Ot)return Ot}return{[c.value.value]:Me,[c.value.label]:Me}},Z4=Me=>_e.value.get(f(Me))?.index??-1,qu=(Me=!1)=>{if(e.multiple)if(e.modelValue.length>0){const It=m.cachedOptions.slice();m.cachedOptions.length=0,m.previousValue=e.modelValue.toString();for(const _t of e.modelValue){const Ot=Hg(_t,It);m.cachedOptions.push(Ot)}}else m.cachedOptions=[],m.previousValue=void 0;else if(Z.value){m.previousValue=e.modelValue;const It=J.value,_t=It.findIndex(Ot=>Ge(f(Ot))===Ge(e.modelValue));~_t?m.selectedLabel=d(It[_t]):(!m.selectedLabel||Me)&&(m.selectedLabel=Ge(e.modelValue))}else m.selectedLabel="",m.previousValue=void 0;et(),He()};pe(()=>e.fitInputWidth,()=>{He()}),pe(ee,Me=>{Me?(e.persistent||He(),Yt("")):(m.inputValue="",m.previousQuery=null,m.isBeforeHide=!0,m.menuVisibleOnFocus=!1,ie(""))}),pe(()=>e.modelValue,(Me,It)=>{(!Me||we(Me)&&Me.length===0||e.multiple&&!dn(Me.toString(),m.previousValue)||!e.multiple&&Ge(Me)!==Ge(m.previousValue))&&qu(!0),!dn(Me,It)&&e.validateEvent&&l?.validate?.("change").catch(ut)},{deep:!0}),pe(()=>e.options,()=>{const Me=O.value;(!Me||Me&&document.activeElement!==Me)&&qu()},{deep:!0,flush:"post"}),pe(()=>J.value,()=>(He(),_.value&&Ne(_.value.resetScrollTop))),la(()=>{m.isBeforeHide||Le()}),la(()=>{const{valueKey:Me,options:It}=e,_t=new Map;for(const Ot of It){const jn=f(Ot);let $a=jn;if(ot($a)&&($a=yn(jn,Me)),_t.get($a)){jt("ElSelectV2","The option values you provided seem to be duplicated, which may cause some problems, please check.");break}else _t.set($a,!0)}}),ht(()=>{qu()}),nn(y,tt),nn(S,Ke),nn(P,Xt),nn(N,un),nn($,We);let Ff;return pe(()=>ft.value,Me=>{Me?Ff=nn(_,Xt).stop:(Ff?.(),Ff=void 0),t("visible-change",Me)}),{inputId:u,collapseTagSize:Pe,currentPlaceholder:At,expanded:ee,emptyText:fe,popupHeight:ce,debounce:q,allOptions:H,allOptionsValueMap:_e,filteredOptions:J,iconComponent:ue,iconReverse:Y,tagStyle:lt,collapseTagStyle:Ze,popperSize:b,dropdownMenuVisible:ft,hasModelValue:Z,shouldShowPlaceholder:gt,selectDisabled:A,selectSize:be,needStatusIcon:ae,showClearBtn:de,states:m,isFocused:V,nsSelect:o,nsInput:r,inputRef:O,menuRef:_,tagMenuRef:N,tooltipRef:k,tagTooltipRef:x,selectRef:y,wrapperRef:P,selectionRef:S,prefixRef:T,suffixRef:I,collapseItemRef:$,popperRef:zt,validateState:Q,validateIcon:D,showTagList:me,collapseTagList:je,debouncedOnInputChange:Et,deleteTag:Xn,getLabel:d,getValue:f,getDisabled:p,getValueKey:Ge,getIndex:Z4,handleClear:Vf,handleClickOutside:_n,handleDel:Bf,handleEsc:Lf,focus:wa,blur:to,handleMenuEnter:Sa,handleResize:tt,resetSelectionWidth:Ke,updateTooltip:Xt,updateTagTooltip:un,updateOptions:Le,toggleMenu:bt,scrollTo:_r,onInput:tn,onKeyboardNavigate:Ks,onKeyboardSelect:Re,onEndReached:Oe,onSelect:On,onHover:mt,handleCompositionStart:K,handleCompositionEnd:j,handleCompositionUpdate:W}};var oq=se({name:"ElSelectV2",components:{ElSelectMenu:tq,ElTag:cr,ElTooltip:Wn,ElIcon:De},directives:{ClickOutside:Qr},props:KU,emits:jU,setup(e,{emit:t}){const n=C(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return we(u)?c?u:d:c?d:u}),a=aq(Dt({...Pn(e),modelValue:n}),t),{calculatorRef:o,inputStyle:r}=um(),s=Gn();St(ug,{props:Dt({...Pn(e),height:a.popupHeight,modelValue:n}),expanded:a.expanded,tooltipRef:a.tooltipRef,contentId:s,onSelect:a.onSelect,onHover:a.onHover,onKeyboardNavigate:a.onKeyboardNavigate,onKeyboardSelect:a.onKeyboardSelect});const l=C(()=>e.multiple?a.states.cachedOptions.map(u=>a.getLabel(u)):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:l,calculatorRef:o,inputStyle:r,contentId:s,BORDER_HORIZONTAL_WIDTH:2}}});const rq=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],sq=["textContent"],lq={key:1};function iq(e,t,n,a,o,r){const s=Mt("el-tag"),l=Mt("el-tooltip"),u=Mt("el-icon"),c=Mt("el-select-menu"),d=Vv("click-outside");return ct((E(),L("div",{ref:"selectRef",class:R([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[X(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:ne(()=>[z("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=Xe((...f)=>e.toggleMenu&&e.toggleMenu(...f),["prevent"]))},[e.$slots.prefix?(E(),L("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),z("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(E(!0),L(Ve,null,kt(e.showTagList,f=>(E(),L("div",{key:e.getValueKey(e.getValue(f)),class:R(e.nsSelect.e("selected-item"))},[X(s,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ze(e.tagStyle),onClose:p=>e.deleteTag(p,f)},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(f),label:e.getLabel(f),value:e.getValue(f)},()=>[wt(Ce(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.cachedOptions.length>e.maxCollapseTags?(E(),le(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":e.tagTooltip?.fallbackPlacements??["bottom","top","right","left"],effect:e.tagTooltip?.effect??e.effect,placement:e.tagTooltip?.placement??"bottom","popper-class":e.tagTooltip?.popperClass??e.popperClass,"popper-style":e.tagTooltip?.popperStyle??e.popperStyle,teleported:e.tagTooltip?.teleported??e.teleported,"append-to":e.tagTooltip?.appendTo??e.appendTo,"popper-options":e.tagTooltip?.popperOptions??e.popperOptions,transition:e.tagTooltip?.transition,"show-after":e.tagTooltip?.showAfter,"hide-after":e.tagTooltip?.hideAfter,"auto-close":e.tagTooltip?.autoClose,offset:e.tagTooltip?.offset},{default:ne(()=>[z("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[X(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:ze(e.collapseTagStyle),"disable-transitions":""},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))}," + "+Ce(e.states.cachedOptions.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ne(()=>[z("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(E(!0),L(Ve,null,kt(e.collapseTagList,f=>(E(),L("div",{key:e.getValueKey(e.getValue(f)),class:R(e.nsSelect.e("selected-item"))},[X(s,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:p=>e.deleteTag(p,f)},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(f),label:e.getLabel(f),value:e.getValue(f)},()=>[wt(Ce(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]):re("v-if",!0),z("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[z("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:ze(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...f)=>e.onInput&&e.onInput(...f)),onChange:t[1]||(t[1]=Xe(()=>{},["stop"])),onCompositionstart:t[2]||(t[2]=(...f)=>e.handleCompositionStart&&e.handleCompositionStart(...f)),onCompositionupdate:t[3]||(t[3]=(...f)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...f)),onCompositionend:t[4]||(t[4]=(...f)=>e.handleCompositionEnd&&e.handleCompositionEnd(...f)),onKeydown:[t[5]||(t[5]=cn(Xe(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=cn(Xe(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=cn(Xe((...f)=>e.onKeyboardSelect&&e.onKeyboardSelect(...f),["stop","prevent"]),["enter"])),t[8]||(t[8]=cn(Xe((...f)=>e.handleEsc&&e.handleEsc(...f),["stop","prevent"]),["esc"])),t[9]||(t[9]=cn(Xe((...f)=>e.handleDel&&e.handleDel(...f),["stop"]),["delete"]))],onClick:t[10]||(t[10]=Xe((...f)=>e.toggleMenu&&e.toggleMenu(...f),["stop"]))},null,46,rq),e.filterable?(E(),L("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:Ce(e.states.inputValue)},null,10,sq)):re("v-if",!0)],2),e.shouldShowPlaceholder?(E(),L("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:e.allOptionsValueMap.get(e.modelValue)?.index??-1,label:e.currentPlaceholder,value:e.modelValue},()=>[z("span",null,Ce(e.currentPlaceholder),1)]):(E(),L("span",lq,Ce(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),z("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent?ct((E(),le(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ne(()=>[(E(),le(it(e.iconComponent)))]),_:1},8,["class"])),[[$t,!e.showClearBtn]]):re("v-if",!0),e.showClearBtn&&e.clearIcon?(E(),le(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Xe(e.handleClear,["prevent","stop"])},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(E(),le(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ne(()=>[(E(),le(it(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]),content:ne(()=>[X(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel,onEndReached:e.onEndReached},ga({default:ne(f=>[oe(e.$slots,"default",sr(ir(f)))]),_:2},[e.$slots.header?{name:"header",fn:ne(()=>[z("div",{class:R(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=Xe(()=>{},["stop"]))},[oe(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:ne(()=>[z("div",{class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:ne(()=>[z("div",{class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[z("span",null,Ce(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:ne(()=>[z("div",{class:R(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=Xe(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label","onEndReached"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var uq=Mn(oq,[["render",iq]]);const cq=st(uq),dq=Ee({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:G([Number,Object])}}),fq=Ee({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var pq=se({name:"ElSkeletonItem",__name:"skeleton-item",props:fq,setup(e){const t=ge("skeleton");return(n,a)=>(E(),L("div",{class:R([i(t).e("item"),i(t).e(e.variant)])},[e.variant==="image"?(E(),le(i(gA),{key:0})):re("v-if",!0)],2))}}),kd=pq,hq=se({name:"ElSkeleton",__name:"skeleton",props:dq,setup(e,{expose:t}){const n=e,a=ge("skeleton"),o=GN(Ht(n,"loading"),n.throttle);return t({uiLoading:o}),(r,s)=>i(o)?(E(),L("div",pt({key:0,class:[i(a).b(),i(a).is("animated",e.animated)]},r.$attrs),[(E(!0),L(Ve,null,kt(e.count,l=>(E(),L(Ve,{key:l},[i(o)?oe(r.$slots,"template",{key:l},()=>[X(kd,{class:R(i(a).is("first")),variant:"p"},null,8,["class"]),(E(!0),L(Ve,null,kt(e.rows,u=>(E(),le(kd,{key:u,class:R([i(a).e("paragraph"),i(a).is("last",u===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):re("v-if",!0)],64))),128))],16)):oe(r.$slots,"default",sr(pt({key:1},r.$attrs)))}}),vq=hq;const mq=st(vq,{SkeletonItem:kd}),gq=sn(kd),ox=Symbol("sliderContextKey"),bq=Ee({modelValue:{type:G([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:G([Number,String]),default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Nn,inputSize:Nn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:G(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:G(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:jo,default:"top"},marks:{type:G(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...ia(["ariaLabel"])}),Tp=e=>Be(e)||we(e)&&e.every(Be),yq={[at]:Tp,[Tn]:Tp,[yt]:Tp},wq=(e,t,n)=>{const a=M();return ht(async()=>{e.range?(we(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!Be(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Bt(window,"resize",n),await Ne(),n()}),{sliderWrapper:a}},Sq=e=>{const t=C(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,a)=>n-a).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]);return la(()=>{if(e.step==="mark"&&!e.marks&&jt("ElSlider","marks prop must be provided when step is mark"),e.marks){const n=Object.keys(e.marks),a=t.value.map(r=>r.point),o=n.filter(r=>{const s=Number.parseFloat(r);return Number.isNaN(s)||!a.includes(s)});o.length>0&&jt("ElSlider",`Some marks keys are invalid (not a number or out of [min, max]): [${o.map(r=>`'${r}'`).join(", ")}] and will be ignored.`)}}),t},Cq=(e,t,n)=>{const{formItem:a}=Fn(),o=Tt(),r=M(),s=M(),l={firstButton:r,secondButton:s},u=ln(),c=C(()=>Math.min(t.firstValue,t.secondValue)),d=C(()=>Math.max(t.firstValue,t.secondValue)),f=C(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),p=C(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),g=C(()=>e.vertical?{height:e.height}:{}),h=C(()=>e.vertical?{height:f.value,bottom:p.value}:{width:f.value,left:p.value}),v=()=>{o.value&&(t.sliderSize=o.value.getBoundingClientRect()[e.vertical?"height":"width"])},m=N=>{const $=e.min+N*(e.max-e.min)/100;if(!e.range)return r;let B;return Math.abs(c.value-$)t.secondValue?"firstButton":"secondButton",l[B]},b=N=>{const $=m(N);return $.value.setPosition(N),$},w=N=>{t.firstValue=N??e.min,S(e.range?[c.value,d.value]:N??e.min)},y=N=>{t.secondValue=N,e.range&&S([c.value,d.value])},S=N=>{n(at,N),n(Tn,N)},k=async()=>{await Ne(),n(yt,e.range?[c.value,d.value]:e.modelValue)},x=N=>{if(u.value||t.dragging)return;v();let $=0;if(e.vertical){const B=N.touches?.item(0)?.clientY??N.clientY;$=(o.value.getBoundingClientRect().bottom-B)/t.sliderSize*100}else $=((N.touches?.item(0)?.clientX??N.clientX)-o.value.getBoundingClientRect().left)/t.sliderSize*100;if(!($<0||$>100))return b($)};return{elFormItem:a,slider:o,firstButton:r,secondButton:s,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:g,barStyle:h,resetSize:v,setPosition:b,emitChange:k,onSliderWrapperPrevent:N=>{(l.firstButton.value?.dragging||l.secondButton.value?.dragging)&&N.preventDefault()},onSliderClick:N=>{x(N)&&k()},onSliderDown:async N=>{const $=x(N);$&&(await Ne(),$.value.onButtonDown(N))},onSliderMarkerDown:N=>{u.value||t.dragging||b(N)&&k()},setFirstValue:w,setSecondValue:y}},kq=(e,t,n,a)=>({stops:C(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step==="mark"||e.step===0)return e.step===0&&jt("ElSlider","step should not be 0."),[];const s=Math.ceil((e.max-e.min)/e.step),l=100*e.step/(e.max-e.min),u=Array.from({length:s-1}).map((c,d)=>(d+1)*l);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(a.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:s=>e.vertical?{bottom:`${s}%`}:{left:`${s}%`}}),Eq=(e,t,n,a,o,r)=>{const s=c=>{o(at,c),o(Tn,c)},l=()=>e.range?![n.value,a.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{e.min>e.max&&rn("Slider","min should not be greater than max.");const c=e.modelValue;e.range&&we(c)?c[1]e.max?s([e.max,e.max]):c[0]e.max?s([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],l()&&(e.validateEvent&&r?.validate?.("change").catch(ut),t.oldValue=c.slice())):!e.range&&Be(c)&&!Number.isNaN(c)&&(ce.max?s(e.max):(t.firstValue=c,l()&&(e.validateEvent&&r?.validate?.("change").catch(ut),t.oldValue=c)))};u(),pe(()=>t.dragging,c=>{c||u()}),pe(()=>e.modelValue,(c,d)=>{t.dragging||we(c)&&we(d)&&c.every((f,p)=>f===d[p])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),pe(()=>[e.min,e.max],()=>{u()})},xq=(e,t,n)=>{const a=M(),o=M(!1),r=C(()=>t.value instanceof Function);return{tooltip:a,tooltipVisible:o,formatValue:C(()=>r.value&&t.value(e.modelValue)||e.modelValue),displayTooltip:Ho(()=>{n.value&&(o.value=!0)},50),hideTooltip:Ho(()=>{n.value&&(o.value=!1)},50)}},Tq=(e,t,n)=>{const{disabled:a,min:o,max:r,step:s,showTooltip:l,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:p,resetSize:g,updateDragging:h,markList:v}=$e(ox),{tooltip:m,tooltipVisible:b,formatValue:w,displayTooltip:y,hideTooltip:S}=xq(e,f,l),k=M(),x=C(()=>`${(e.modelValue-o.value)/(r.value-o.value)*100}%`),O=C(()=>e.vertical?{bottom:x.value}:{left:x.value}),T=C(()=>s.value==="mark"&&v.value.length>0),I=()=>{t.hovering=!0,y()},_=()=>{t.hovering=!1,t.dragging||S()},N=ce=>{a.value||(ce.preventDefault(),U(ce),window.addEventListener("mousemove",J),window.addEventListener("touchmove",J),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),window.addEventListener("contextmenu",ee),k.value.focus())},$=ce=>{a.value||(t.newPosition=Number.parseFloat(x.value)+ce/(r.value-o.value)*100,ae(t.newPosition),p())},B=ce=>{if(a.value||!v.value.length)return;const Z=e.modelValue,de=Number.EPSILON,ue=Math.abs(ce);let Y;if(ce>0){const Q=v.value.findIndex(D=>D.point>Z+de);if(Q!==-1){const D=Math.min(Q+ue-1,v.value.length-1);Y=v.value[D].point}}else{let Q=-1;for(let D=v.value.length-1;D>=0;D--)if(v.value[D].point{T.value?B(-1):Be(s.value)&&$(-s.value)},j=()=>{T.value?B(1):Be(s.value)&&$(s.value)},W=()=>{T.value?B(-4):Be(s.value)&&$(-s.value*4)},A=()=>{T.value?B(4):Be(s.value)&&$(s.value*4)},P=()=>{a.value||(ae(0),p())},V=()=>{a.value||(ae(100),p())},F=ce=>{const Z=qt(ce);let de=!0;switch(Z){case Se.left:case Se.down:K();break;case Se.right:case Se.up:j();break;case Se.home:P();break;case Se.end:V();break;case Se.pageDown:W();break;case Se.pageUp:A();break;default:de=!1;break}de&&ce.preventDefault()},H=ce=>{let Z,de;return ce.type.startsWith("touch")?(de=ce.touches[0].clientY,Z=ce.touches[0].clientX):(de=ce.clientY,Z=ce.clientX),{clientX:Z,clientY:de}},U=ce=>{t.dragging=!0,t.isClick=!0;const{clientX:Z,clientY:de}=H(ce);e.vertical?t.startY=de:t.startX=Z,t.startPosition=Number.parseFloat(x.value),t.newPosition=t.startPosition},J=ce=>{if(t.dragging){t.isClick=!1,y(),g();let Z;const{clientX:de,clientY:ue}=H(ce);e.vertical?(t.currentY=ue,Z=(t.startY-t.currentY)/d.value*100):(t.currentX=de,Z=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+Z,ae(t.newPosition)}},ee=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||S(),t.isClick||ae(t.newPosition),p()},0),window.removeEventListener("mousemove",J),window.removeEventListener("touchmove",J),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),window.removeEventListener("contextmenu",ee))},ae=async ce=>{if(ce===null||Number.isNaN(+ce))return;ce=Pa(ce,0,100);let Z;if(s.value==="mark")v.value.length===0?Z=ce<=50?o.value:r.value:Z=v.value.reduce((de,ue)=>Math.abs(ue.position-ce)t.dragging,ce=>{h(ce)}),Bt(k,"touchstart",N,{passive:!1}),{disabled:a,button:k,tooltip:m,tooltipVisible:b,showTooltip:l,persistent:u,wrapperStyle:O,formatValue:w,handleMouseEnter:I,handleMouseLeave:_,onButtonDown:N,onKeyDown:F,setPosition:ae}},Oq=Ee({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:jo,default:"top"}}),_q={[at]:e=>Be(e)},Rq=["tabindex"];var Iq=se({name:"ElSliderButton",__name:"button",props:Oq,emits:_q,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("slider"),s=Dt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),l=C(()=>f.value?p.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:p,tooltipVisible:g,wrapperStyle:h,formatValue:v,handleMouseEnter:m,handleMouseLeave:b,onButtonDown:w,onKeyDown:y,setPosition:S}=Tq(a,s,o),{hovering:k,dragging:x}=Pn(s);return t({onButtonDown:w,onKeyDown:y,setPosition:S,hovering:k,dragging:x}),(O,T)=>(E(),L("div",{ref_key:"button",ref:c,class:R([i(r).e("button-wrapper"),{hover:i(k),dragging:i(x)}]),style:ze(i(h)),tabindex:i(u)?void 0:0,onMouseenter:T[0]||(T[0]=(...I)=>i(m)&&i(m)(...I)),onMouseleave:T[1]||(T[1]=(...I)=>i(b)&&i(b)(...I)),onMousedown:T[2]||(T[2]=(...I)=>i(w)&&i(w)(...I)),onFocus:T[3]||(T[3]=(...I)=>i(m)&&i(m)(...I)),onBlur:T[4]||(T[4]=(...I)=>i(b)&&i(b)(...I)),onKeydown:T[5]||(T[5]=(...I)=>i(y)&&i(y)(...I))},[X(i(Wn),{ref_key:"tooltip",ref:d,visible:i(g),placement:O.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":O.tooltipClass,disabled:!i(f),persistent:l.value},{content:ne(()=>[z("span",null,Ce(i(v)),1)]),default:ne(()=>[z("div",{class:R([i(r).e("button"),{hover:i(k),dragging:i(x)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,Rq))}}),Qy=Iq;const $q=Ee({mark:{type:G([String,Object]),default:void 0}});var Nq=se({name:"ElSliderMarker",props:$q,setup(e){const t=ge("slider"),n=C(()=>Ae(e.mark)?e.mark:e.mark.label),a=C(()=>Ae(e.mark)?void 0:e.mark.style);return()=>qe("div",{class:t.e("marks-text"),style:a.value},n.value)}});const Mq=["id","role","aria-label","aria-labelledby"],Pq={key:1};var Aq=se({name:"ElSlider",__name:"slider",props:bq,emits:yq,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("slider"),{t:s}=xt(),l=Dt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:p,minValue:g,maxValue:h,runwayStyle:v,barStyle:m,resetSize:b,emitChange:w,onSliderWrapperPrevent:y,onSliderClick:S,onSliderDown:k,onSliderMarkerDown:x,setFirstValue:O,setSecondValue:T}=Cq(a,l,o),{stops:I,getStopStyle:_}=kq(a,l,g,h),{inputId:N,isLabeledByFormItem:$}=Ia(a,{formItemContext:u}),B=In(),K=C(()=>a.inputSize||B.value),j=C(()=>a.showInput&&!a.range&&a.step!=="mark"),W=C(()=>a.ariaLabel||s("el.slider.defaultLabel",{min:a.min,max:a.max})),A=C(()=>a.range?a.rangeStartLabel||s("el.slider.defaultRangeStartLabel"):W.value),P=C(()=>a.formatValueText?a.formatValueText(ce.value):`${ce.value}`),V=C(()=>a.rangeEndLabel||s("el.slider.defaultRangeEndLabel")),F=C(()=>a.formatValueText?a.formatValueText(Z.value):`${Z.value}`),H=C(()=>[r.b(),r.m(B.value),r.is("vertical",a.vertical),{[r.m("with-input")]:j.value}]),U=Sq(a);Eq(a,l,g,h,o,u);const J=C(()=>Be(a.step)?a.step:1),ee=C(()=>{const Y=Be(a.step)?a.step:1,Q=[a.min,a.max,Y].map(D=>{const q=`${D}`.split(".")[1];return q?q.length:0});return Math.max.apply(null,Q)}),{sliderWrapper:ae}=wq(a,l,b),{firstValue:ce,secondValue:Z,sliderSize:de}=Pn(l),ue=Y=>{l.dragging=Y};return Bt(ae,"touchstart",y,{passive:!1}),Bt(ae,"touchmove",y,{passive:!1}),St(ox,{...Pn(a),sliderSize:de,disabled:p,precision:ee,markList:U,emitChange:w,resetSize:b,updateDragging:ue}),t({onSliderClick:S}),(Y,Q)=>(E(),L("div",{id:Y.range?i(N):void 0,ref_key:"sliderWrapper",ref:ae,class:R(H.value),role:Y.range?"group":void 0,"aria-label":Y.range&&!i($)?W.value:void 0,"aria-labelledby":Y.range&&i($)?i(u)?.labelId:void 0},[z("div",{ref_key:"slider",ref:c,class:R([i(r).e("runway"),{"show-input":j.value},i(r).is("disabled",i(p))]),style:ze(i(v)),onMousedown:Q[0]||(Q[0]=(...D)=>i(k)&&i(k)(...D)),onTouchstartPassive:Q[1]||(Q[1]=(...D)=>i(k)&&i(k)(...D))},[z("div",{class:R(i(r).e("bar")),style:ze(i(m))},null,6),X(Qy,{id:Y.range?void 0:i(N),ref_key:"firstButton",ref:d,"model-value":i(ce),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":Y.range||!i($)?A.value:void 0,"aria-labelledby":!Y.range&&i($)?i(u)?.labelId:void 0,"aria-valuemin":Y.min,"aria-valuemax":Y.range?i(Z):Y.max,"aria-valuenow":i(ce),"aria-valuetext":P.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(p),"onUpdate:modelValue":i(O)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Y.range?(E(),le(Qy,{key:0,ref_key:"secondButton",ref:f,"model-value":i(Z),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":V.value,"aria-valuemin":i(ce),"aria-valuemax":Y.max,"aria-valuenow":i(Z),"aria-valuetext":F.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(p),"onUpdate:modelValue":i(T)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):re("v-if",!0),Y.showStops?(E(),L("div",Pq,[(E(!0),L(Ve,null,kt(i(I),(D,q)=>(E(),L("div",{key:q,class:R(i(r).e("stop")),style:ze(i(_)(D))},null,6))),128))])):re("v-if",!0),i(U).length>0?(E(),L(Ve,{key:2},[z("div",null,[(E(!0),L(Ve,null,kt(i(U),(D,q)=>(E(),L("div",{key:q,style:ze(i(_)(D.position)),class:R([i(r).e("stop"),i(r).e("marks-stop")])},null,6))),128))]),z("div",{class:R(i(r).e("marks"))},[(E(!0),L(Ve,null,kt(i(U),(D,q)=>(E(),le(i(Nq),{key:q,mark:D.mark,style:ze(i(_)(D.position)),onMousedown:Xe(te=>i(x)(D.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):re("v-if",!0)],38),j.value?(E(),le(i(JE),{key:0,ref:"input","model-value":i(ce),class:R(i(r).e("input")),step:J.value,disabled:i(p),controls:Y.showInputControls,min:Y.min,max:Y.max,precision:ee.value,size:K.value,"onUpdate:modelValue":i(O),onChange:i(w)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):re("v-if",!0)],10,Mq))}}),Lq=Aq;const Dq=st(Lq),Bq=Ee({prefixCls:{type:String}}),e1=se({name:"ElSpaceItem",props:Bq,setup(e,{slots:t}){const n=ge("space"),a=C(()=>`${e.prefixCls||n.b()}__item`);return()=>qe("div",{class:a.value},oe(t,"default"))}}),t1={small:8,default:12,large:16};function Vq(e){const t=ge("space"),n=C(()=>[t.b(),t.m(e.direction),e.class]),a=M(0),o=M(0),r=C(()=>[e.wrap||e.fill?{flexWrap:"wrap"}:{},{alignItems:e.alignment},{rowGap:`${o.value}px`,columnGap:`${a.value}px`},e.style]),s=C(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return la(()=>{const{size:l="small",wrap:u,direction:c,fill:d}=e;if(we(l)){const[f=0,p=0]=l;a.value=f,o.value=p}else{let f;Be(l)?f=l:f=t1[l||"small"]||t1.small,(u||d)&&c==="horizontal"?a.value=o.value=f:c==="horizontal"?(a.value=f,o.value=0):(o.value=f,a.value=0)}}),{classes:n,containerStyle:r,itemStyle:s}}const Fq=Ee({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:G([String,Object,Array]),default:""},style:{type:G([String,Array,Object,Boolean]),default:""},alignment:{type:G(String),default:"center"},prefixCls:{type:String},spacer:{type:G([Object,String,Number,Array]),default:null,validator:e=>Zt(e)||Be(e)||Ae(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:wo,validator:e=>Be(e)||we(e)&&e.length===2&&e.every(Be)}}),zq=se({name:"ElSpace",props:Fq,setup(e,{slots:t}){const{classes:n,containerStyle:a,itemStyle:o}=Vq(e);function r(s,l="",u=[]){const{prefixCls:c}=e;return s.forEach((d,f)=>{bh(d)?we(d.children)&&d.children.forEach((p,g)=>{bh(p)&&we(p.children)?r(p.children,`${l+g}-`,u):Zt(p)&&p?.type===kn?u.push(p):u.push(X(e1,{style:o.value,prefixCls:c,key:`nested-${l+g}`},{default:()=>[p]},12,["style","prefixCls"]))}):GM(d)&&u.push(X(e1,{style:o.value,prefixCls:c,key:`LoopKey${l+f}`},{default:()=>[d]},12,["style","prefixCls"]))}),u}return()=>{const{spacer:s,direction:l}=e,u=oe(t,"default",{key:0},()=>[]);if((u.children??[]).length===0)return null;if(we(u.children)){let c=r(u.children);if(s){const d=c.length-1;c=c.reduce((f,p,g)=>{const h=[...f,p];return g!==d&&h.push(X("span",{style:[o.value,l==="vertical"?"width: 100%":null],key:g},[Zt(s)?s:wt(s,1)],4)),h},[])}return X("div",{class:n.value,style:a.value},c,6)}return u.children}}}),Hq=st(zq),Kq=Ee({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Wq={[yt]:(e,t)=>[e,t].every(Be)},rx="ElSteps",jq=Ee({title:{type:String,default:""},icon:{type:Ut},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var Uq=se({name:"ElSteps",__name:"steps",props:Kq,emits:Wq,setup(e,{emit:t}){const n=e,a=t,o=ge("steps"),{children:r,addChild:s,removeChild:l,ChildrenSorter:u}=pf(dt(),"ElStep");return pe(r,()=>{r.value.forEach((c,d)=>{c.setIndex(d)})}),St(rx,{props:n,steps:r,addStep:s,removeStep:l}),pe(()=>n.active,(c,d)=>{a(yt,c,d)}),(c,d)=>(E(),L("div",{class:R([i(o).b(),i(o).m(e.simple?"simple":e.direction)])},[oe(c.$slots,"default"),X(i(u))],2))}}),qq=Uq,Yq=se({name:"ElStep",__name:"item",props:jq,setup(e){const t=e,n=ge("step"),a=M(-1),o=M({}),r=M(""),s=$e(rx),l=dt();let u=0,c=0;ht(()=>{pe([()=>s.props.active,()=>s.props.processStatus,()=>s.props.finishStatus],([T],[I])=>{c=I||0,u=T-c,x(T)},{immediate:!0})});const d=C(()=>t.status||r.value),f=C(()=>{const T=s.steps.value[a.value-1];return T?T.internalStatus.value:"wait"}),p=C(()=>s.props.alignCenter),g=C(()=>s.props.direction==="vertical"),h=C(()=>s.props.simple),v=C(()=>s.steps.value.length),m=C(()=>s.steps.value[v.value-1]?.uid===l.uid),b=C(()=>h.value?"":s.props.space),w=C(()=>[n.b(),n.is(h.value?"simple":s.props.direction),n.is("flex",m.value&&!b.value&&!p.value),n.is("center",p.value&&!g.value&&!h.value)]),y=C(()=>{const T={flexBasis:Be(b.value)?`${b.value}px`:b.value?b.value:`${100/(v.value-(p.value?0:1))}%`};return g.value||m.value&&(T.maxWidth=`${100/v.value}%`),T}),S=T=>{a.value=T},k=T=>{const I=T==="wait",_={transitionDelay:`${Math.abs(u)===1?0:u>0?(a.value+1-c)*150:-(a.value+1-s.props.active)*150}ms`},N=T===s.props.processStatus||I?0:100;_.borderWidth=N&&!h.value?"1px":0,_[s.props.direction==="vertical"?"height":"width"]=`${N}%`,o.value=_},x=T=>{T>a.value?r.value=s.props.finishStatus:T===a.value&&f.value!=="error"?r.value=s.props.processStatus:r.value="wait";const I=s.steps.value[a.value-1];I&&I.calcProgress(r.value)},O={uid:l.uid,getVnode:()=>l.vnode,currentStatus:d,internalStatus:r,setIndex:S,calcProgress:k};return s.addStep(O),Vt(()=>{s.removeStep(O)}),(T,I)=>(E(),L("div",{style:ze(y.value),class:R(w.value)},[re(" icon & line "),z("div",{class:R([i(n).e("head"),i(n).is(d.value)])},[h.value?re("v-if",!0):(E(),L("div",{key:0,class:R(i(n).e("line"))},[z("i",{class:R(i(n).e("line-inner")),style:ze(o.value)},null,6)],2)),z("div",{class:R([i(n).e("icon"),i(n).is(e.icon||T.$slots.icon?"icon":"text")])},[oe(T.$slots,"icon",{},()=>[e.icon?(E(),le(i(De),{key:0,class:R(i(n).e("icon-inner"))},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1},8,["class"])):d.value==="success"?(E(),le(i(De),{key:1,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ne(()=>[X(i($l))]),_:1},8,["class"])):d.value==="error"?(E(),le(i(De),{key:2,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ne(()=>[X(i(Qa))]),_:1},8,["class"])):h.value?re("v-if",!0):(E(),L("div",{key:3,class:R(i(n).e("icon-inner"))},Ce(a.value+1),3))])],2)],2),re(" title & description "),z("div",{class:R(i(n).e("main"))},[z("div",{class:R([i(n).e("title"),i(n).is(d.value)])},[oe(T.$slots,"title",{},()=>[wt(Ce(e.title),1)])],2),h.value?(E(),L("div",{key:0,class:R(i(n).e("arrow"))},null,2)):(E(),L("div",{key:1,class:R([i(n).e("description"),i(n).is(d.value)])},[oe(T.$slots,"description",{},()=>[wt(Ce(e.description),1)])],2))],2)],6))}}),sx=Yq;const Gq=st(qq,{Step:sx}),Xq=sn(sx),lx=e=>["",...wo].includes(e),Jq=Ee({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:lx},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Ut},activeActionIcon:{type:Ut},activeIcon:{type:Ut},inactiveIcon:{type:Ut},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:G(Function)},id:String,tabindex:{type:[String,Number]},...ia(["ariaLabel"])}),Zq={[at]:e=>Wt(e)||Ae(e)||Be(e),[yt]:e=>Wt(e)||Ae(e)||Be(e),[Tn]:e=>Wt(e)||Ae(e)||Be(e)},Qq=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],eY=["aria-hidden"],tY={key:1},nY={key:1},aY=["aria-hidden"],Op="ElSwitch";var oY=se({name:Op,__name:"switch",props:Jq,emits:Zq,setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:r}=Fn(),s=In(),l=ge("switch"),{inputId:u}=Ia(a,{formItemContext:r}),c=ln(C(()=>{if(a.loading)return!0})),d=M(a.modelValue!==!1),f=Tt(),p=C(()=>[l.b(),l.m(s.value),l.is("disabled",c.value),l.is("checked",b.value)]),g=C(()=>[l.e("label"),l.em("label","left"),l.is("active",!b.value)]),h=C(()=>[l.e("label"),l.em("label","right"),l.is("active",b.value)]),v=C(()=>({width:pn(a.width)}));pe(()=>a.modelValue,()=>{d.value=!0});const m=C(()=>d.value?a.modelValue:!1),b=C(()=>m.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(m.value)||(o(at,a.inactiveValue),o(yt,a.inactiveValue),o(Tn,a.inactiveValue)),pe(b,k=>{f.value.checked=k,a.validateEvent&&r?.validate?.("change").catch(ut)});const w=()=>{const k=b.value?a.inactiveValue:a.activeValue;o(at,k),o(yt,k),o(Tn,k),Ne(()=>{f.value.checked=b.value})},y=()=>{if(c.value)return;const{beforeChange:k}=a;if(!k){w();return}const x=k();[qr(x),Wt(x)].includes(!0)||rn(Op,"beforeChange must return type `Promise` or `boolean`"),qr(x)?x.then(O=>{O&&w()}).catch(O=>{jt(Op,`some error occurred: ${O}`)}):x&&w()},S=()=>{f.value?.focus?.()};return ht(()=>{f.value.checked=b.value}),t({focus:S,checked:b}),(k,x)=>(E(),L("div",{class:R(p.value),onClick:Xe(y,["prevent"])},[z("input",{id:i(u),ref_key:"input",ref:f,class:R(i(l).e("input")),type:"checkbox",role:"switch","aria-checked":b.value,"aria-disabled":i(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:i(c),tabindex:e.tabindex,onChange:w,onKeydown:cn(y,["enter"])},null,42,Qq),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||k.$slots.inactive)?(E(),L("span",{key:0,class:R(g.value)},[oe(k.$slots,"inactive",{},()=>[e.inactiveIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(E(),L("span",{key:1,"aria-hidden":b.value},Ce(e.inactiveText),9,eY)):re("v-if",!0)])],2)):re("v-if",!0),z("span",{class:R(i(l).e("core")),style:ze(v.value)},[e.inlinePrompt?(E(),L("div",{key:0,class:R(i(l).e("inner"))},[b.value?(E(),L("div",{key:1,class:R(i(l).e("inner-wrapper"))},[oe(k.$slots,"active",{},()=>[e.activeIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(E(),L("span",nY,Ce(e.activeText),1)):re("v-if",!0)])],2)):(E(),L("div",{key:0,class:R(i(l).e("inner-wrapper"))},[oe(k.$slots,"inactive",{},()=>[e.inactiveIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(E(),L("span",tY,Ce(e.inactiveText),1)):re("v-if",!0)])],2))],2)):re("v-if",!0),z("div",{class:R(i(l).e("action"))},[e.loading?(E(),le(i(De),{key:0,class:R(i(l).is("loading"))},{default:ne(()=>[X(i(vo))]),_:1},8,["class"])):b.value?oe(k.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.activeActionIcon)))]),_:1})):re("v-if",!0)]):b.value?re("v-if",!0):oe(k.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.inactiveActionIcon)))]),_:1})):re("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||k.$slots.active)?(E(),L("span",{key:1,class:R(h.value)},[oe(k.$slots,"active",{},()=>[e.activeIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(E(),L("span",{key:1,"aria-hidden":!b.value},Ce(e.activeText),9,aY)):re("v-if",!0)])],2)):re("v-if",!0)],2))}}),rY=oY;const sY=st(rY),_p=function(e){return e.target?.closest("td")},lY=function(e,t,n,a,o){if(!t&&!a&&(!o||we(o)&&!o.length))return e;Ae(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const r=a?null:function(l,u){return o?xS(Dn(o),c=>Ae(c)?yn(l,c):c(l,u,e)):(t!=="$key"&&ot(l)&&"$value"in l&&(l=l.$value),[ot(l)?t?yn(l,t):null:l])},s=function(l,u){if(a)return a(l.value,u.value);for(let c=0,d=l.key?.length??0;cu.key?.[c])return 1}return 0};return e.map((l,u)=>({value:l,index:u,key:r?r(l,u):null})).sort((l,u)=>{let c=s(l,u);return c||(c=l.index-u.index),c*+n}).map(l=>l.value)},ix=function(e,t){let n=null;return e.columns.forEach(a=>{a.id===t&&(n=a)}),n},iY=function(e,t){let n=null;for(let a=0;a{if(!e)throw new Error("Row is required when get row identity");if(Ae(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let a=e;for(const o of n)a=a[o];return`${a}`}else if(Fe(t))return t.call(null,e);return""},vl=function(e,t,n=!1,a="children"){const o=e||[],r={};return o.forEach((s,l)=>{if(r[Cn(s,t)]={row:s,index:l},n){const u=s[a];we(u)&&Object.assign(r,vl(u,t,!0,a))}}),r};function uY(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(Nt(t,a)){const o=t[a];Rt(o)||(n[a]=o)}return n}function cg(e){return e===""||Rt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function ux(e){return e===""||Rt(e)||(e=cg(e),Number.isNaN(e)&&(e=80)),e}function cY(e){return Be(e)?e:Ae(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function dY(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function sl(e,t,n,a,o,r,s){let l=r??0,u=!1;const d=(()=>{if(!s)return e.indexOf(t);const v=Cn(t,s);return e.findIndex(m=>Cn(m,s)===v)})(),f=d!==-1,p=o?.call(null,t,l),g=v=>{v==="add"?e.push(t):e.splice(d,1),u=!0},h=v=>{let m=0;const b=a?.children&&v[a.children];return b&&we(b)&&(m+=b.length,b.forEach(w=>{m+=h(w)})),m};return(!o||p)&&(Wt(n)?n&&!f?g("add"):!n&&f&&g("remove"):g(f?"remove":"add")),!a?.checkStrictly&&a?.children&&we(t[a.children])&&t[a.children].forEach(v=>{const m=sl(e,v,n??!f,a,o,l+1,s);l+=h(v)+1,m&&(u=m)}),u}function fY(e,t,n="children",a="hasChildren",o=!1){const r=l=>!(we(l)&&l.length);function s(l,u,c){t(l,u,c),u.forEach(d=>{if(d[a]&&o){t(d,null,c+1);return}const f=d[n];r(f)||s(d,f,c+1)})}e.forEach(l=>{if(l[a]&&o){t(l,null,0);return}const u=l[n];r(u)||s(l,u,0)})}const pY=(e,t,n,a)=>{const o={strategy:"fixed",...e.popperOptions},r=Fe(a?.tooltipFormatter)?a.tooltipFormatter({row:n,column:a,cellValue:Wr(n,a.property).value}):void 0;return Zt(r)?{slotContent:r,content:null,...e,popperOptions:o}:{slotContent:null,content:r??t,...e,popperOptions:o}};let ka=null;function hY(e,t,n,a,o,r){const s=pY(e,t,n,a),l={...s,slotContent:void 0};if(ka?.trigger===o){const g=ka.vm?.component;TS(g?.props,l),g&&s.slotContent&&(g.slots.content=()=>[s.slotContent]);return}ka?.();const u=r?.refs.tableWrapper,c=u?.dataset.prefix,d=X(Wn,{virtualTriggering:!0,virtualRef:o,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...l},s.slotContent?{content:()=>s.slotContent}:void 0);d.appContext={...r.appContext,...r};const f=document.createElement("div");Yr(d,f),d.component.exposed.onOpen();const p=u?.querySelector(`.${c}-scrollbar__wrap`);ka=()=>{d.component?.exposed?.onClose&&d.component.exposed.onClose(),Yr(null,f);const g=ka;p?.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,ka=null},ka.trigger=o??void 0,ka.vm=d,p?.addEventListener("scroll",ka)}function cx(e){return e.children?xS(e.children,cx):[e]}function a1(e,t){return e+t.colSpan}const dx=(e,t,n,a)=>{let o=0,r=e;const s=n.states.columns.value;if(a){const u=cx(a[e]);o=s.slice(0,s.indexOf(u[0])).reduce(a1,0),r=o+u.reduce(a1,0)-1}else o=e;let l;switch(t){case"left":r=s.length-n.states.rightFixedLeafColumnsLength.value&&(l="right");break;default:r=s.length-n.states.rightFixedLeafColumnsLength.value&&(l="right")}return l?{direction:l,start:o,after:r}:{}},dg=(e,t,n,a,o,r=0)=>{const s=[],{direction:l,start:u,after:c}=dx(t,n,a,o);if(l){const d=l==="left";s.push(`${e}-fixed-column--${l}`),d&&c+r===a.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!d&&u-r===a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function o1(e,t){return e+(tf(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const fg=(e,t,n,a)=>{const{direction:o,start:r=0,after:s=0}=dx(e,t,n,a);if(!o)return;const l={},u=o==="left",c=n.states.columns.value;return u?l.left=c.slice(0,r).reduce(o1,0):l.right=c.slice(s+1).reverse().reduce(o1,0),l},Pl=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function fx(e){return e.some(t=>Zt(t)?!(t.type===kn||t.type===Ve&&!fx(t.children)):!0)?e:null}function vY(e){const t=dt(),n=M(!1),a=M([]),o=(c,d)=>{const f=t.store.states.rowExpandable.value;return f?.(c,d)??!0};return{updateExpandRows:()=>{const c=e.data.value||[],d=e.rowKey.value;if(n.value)a.value=t.store.states.rowExpandable.value?c.filter(o):c.slice();else if(d){const f=vl(a.value,d);a.value=c.filter((p,g)=>!!f[Cn(p,d)]&&o(p,g))}else a.value=[]},toggleRowExpansion:(c,d)=>{const f=(e.data.value||[]).indexOf(c);f>-1&&!o(c,f)||sl(a.value,c,d,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,a.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const d=e.data.value||[],f=e.rowKey.value,p=vl(d,f);a.value=c.reduce((g,h)=>{const v=p[h];return v&&o(v.row,v.index)&&g.push(v.row),g},[])},isRowExpanded:c=>{const d=e.rowKey.value;return d?!!vl(a.value,d)[Cn(c,d)]:a.value.includes(c)},states:{expandRows:a,defaultExpandAll:n}}}function mY(e){const t=dt(),n=M(null),a=M(null),o=c=>{t.store.assertRowKey(),n.value=c,s(c)},r=()=>{n.value=null},s=c=>{const{data:d,rowKey:f}=e,p=a.value;let g=null;f.value&&(g=(i(d)||[]).find(h=>Cn(h,f.value)===c)??null),a.value=g??null,t.emit("current-change",a.value,p)};return{setCurrentRowKey:o,restoreCurrentRowKey:r,setCurrentRowByKey:s,updateCurrentRow:c=>{const d=a.value;if(c&&c!==d){a.value=c,t.emit("current-change",a.value,d);return}!c&&d&&(a.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=a.value;f&&!d.includes(f)?c?s(Cn(f,c)):(a.value=null,t.emit("current-change",null,f)):n.value&&(s(n.value),r())},states:{_currentRowKey:n,currentRow:a}}}function gY(e){const t=M([]),n=M({}),a=M(16),o=M(!1),r=M({}),s=M("hasChildren"),l=M("children"),u=M(!1),c=dt(),d=C(()=>e.rowKey.value?p(e.data.value||[]):{}),f=C(()=>{const S=e.rowKey.value,k=Object.keys(r.value),x={};return k.length&&k.forEach(O=>{if(r.value[O].length){const T={children:[]};r.value[O].forEach(I=>{const _=Cn(I,S);T.children.push(_),I[s.value]&&!x[_]&&(x[_]={children:[]})}),x[O]=T}}),x}),p=S=>{const k=e.rowKey.value,x={};return fY(S,(O,T,I)=>{const _=Cn(O,k);we(T)?x[_]={children:T.map(N=>Cn(N,k)),level:I}:o.value&&(x[_]={children:[],lazy:!0,level:I})},l.value,s.value,o.value),x},g=(S=!1,k)=>{k||(k=c.store?.states.defaultExpandAll.value);const x=d.value,O=f.value,T=Object.keys(x),I={};if(T.length){const _=i(n),N=[],$=(K,j)=>{if(S)return t.value?k||t.value.includes(j):!!(k||K?.expanded);{const W=k||t.value&&t.value.includes(j);return!!(K?.expanded||W)}};T.forEach(K=>{const j=_[K],W={...x[K]};if(W.expanded=$(j,K),W.lazy){const{loaded:A=!1,loading:P=!1}=j||{};W.loaded=!!A,W.loading=!!P,N.push(K)}I[K]=W});const B=Object.keys(O);o.value&&B.length&&N.length&&B.forEach(K=>{const j=_[K],W=O[K].children;if(N.includes(K)){if(I[K].children?.length!==0)throw new Error("[ElTable]children must be an empty array.");I[K].children=W}else{const{loaded:A=!1,loading:P=!1}=j||{};I[K]={lazy:!0,loaded:!!A,loading:!!P,expanded:$(j,K),children:W,level:void 0}}})}n.value=I,c.store?.updateTableScrollY()};pe(()=>t.value,()=>{g(!0)},{deep:!0}),pe(()=>d.value,()=>{g()}),pe(()=>f.value,()=>{g()});const h=S=>{t.value=S,g()},v=S=>o.value&&S&&"loaded"in S&&!S.loaded,m=(S,k)=>{c.store.assertRowKey();const x=e.rowKey.value,O=Cn(S,x),T=O&&n.value[O];if(O&&T&&"expanded"in T){const I=T.expanded;k=Rt(k)?!T.expanded:k,n.value[O].expanded=k,I!==k&&c.emit("expand-change",S,k),k&&v(T)&&w(S,O,T),c.store.updateTableScrollY()}},b=S=>{c.store.assertRowKey();const k=e.rowKey.value,x=Cn(S,k),O=n.value[x];v(O)?w(S,x,O):m(S,void 0)},w=(S,k,x)=>{const{load:O}=c.props;O&&!n.value[k].loaded&&(n.value[k].loading=!0,O(S,x,T=>{if(!we(T))throw new TypeError("[ElTable] data must be an array");n.value[k].loading=!1,n.value[k].loaded=!0,n.value[k].expanded=!0,T.length&&(r.value={...r.value,[k]:T}),c.emit("expand-change",S,!0)}))};return{loadData:w,loadOrToggle:b,toggleTreeExpansion:m,updateTreeExpandKeys:h,updateTreeData:g,updateKeyChildren:(S,k)=>{const{lazy:x,rowKey:O}=c.props;if(x){if(!O)throw new Error("[Table] rowKey is required in updateKeyChild");r.value[S]&&(r.value={...r.value,[S]:k})}},normalize:p,states:{expandRowKeys:t,treeData:n,indent:a,lazy:o,lazyTreeNodeMap:r,lazyColumnIdentifier:s,childrenColumnName:l,checkStrictly:u}}}const bY=(e,t)=>{const n=t.sortingColumn;return!n||Ae(n.sortable)?e:lY(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Nc=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Nc(n.children)):t.push(n)}),t};function yY(){const e=dt(),{size:t}=Pn(e.proxy?.$props),n=M(null),a=M([]),o=M([]),r=M(!1),s=M([]),l=M([]),u=M([]),c=M([]),d=M([]),f=M([]),p=M([]),g=M([]),h=[],v=M(0),m=M(0),b=M(0),w=M(!1),y=M([]),S=M({}),k=M(!1),x=M(!1),O=M(null),T=M(null),I=M({}),_=M(null),N=M(null),$=M(null),B=M(null),K=M(null),j=C(()=>n.value?vl(y.value,n.value):void 0),W=ie=>{const{childrenColumnName:xe,lazyTreeNodeMap:Ue}=e.store.states,et=ie[xe.value]??[];if(!n.value)return et;const bt=Cn(ie,n.value);return[...Ue.value?.[bt]??[],...et]};pe(a,()=>{e.state&&(F(!1),e.props.tableLayout==="auto"&&e.refs.tableHeaderRef?.updateFixedColumnStyle())},{deep:!0});const A=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},P=ie=>{ie.children?.forEach(xe=>{xe.fixed=ie.fixed,P(xe)})},V=()=>{s.value.forEach(Et=>{P(Et)}),c.value=s.value.filter(Et=>[!0,"left"].includes(Et.fixed));const ie=s.value.find(Et=>Et.type==="selection");let xe;ie&&ie.fixed!=="right"&&!c.value.includes(ie)&&s.value.indexOf(ie)===0&&c.value.length&&(c.value.unshift(ie),xe=!0),d.value=s.value.filter(Et=>Et.fixed==="right");const Ue=s.value.filter(Et=>(xe?Et.type!=="selection":!0)&&!Et.fixed);l.value=Array.from(c.value).concat(Ue).concat(d.value);const et=Nc(Ue),bt=Nc(c.value),vt=Nc(d.value);v.value=et.length,m.value=bt.length,b.value=vt.length,u.value=Array.from(bt).concat(et).concat(vt),r.value=c.value.length>0||d.value.length>0},F=(ie,xe=!1)=>{ie&&V(),xe?e.state.doLayout():e.state.debouncedUpdateLayout()},H=ie=>j.value?!!j.value[Cn(ie,n.value)]:y.value.includes(ie),U=C(()=>{const ie=new Map;if(!n.value||!O.value)return ie;let xe=0;const Ue=et=>{we(et)&&et.forEach(bt=>{const vt=Cn(bt,n.value);ie.set(vt,xe),xe+=1;const Et=W(bt);Et.length&&Ue(Et)})};return Ue(a.value||[]),ie}),J=(ie={})=>{const{emitChange:xe=!0}=ie;if(gt.checkStrictly.value||!n.value){S.value={};return}const Ue=n.value,et=ie.rowIndexMap??U.value,bt=O.value,vt=new WeakMap,Et=tt=>{const Oe=vt.get(tt);if(Oe)return Oe;const Ke=Cn(tt,Ue);return vt.set(tt,Ke),Ke},Yt={},an=new Set(y.value.map(tt=>Et(tt))),Lt=[];let en=!1;const Ye=(tt,Oe,Ke)=>{const We=an.has(Oe);Ke&&!We?(Lt.push(tt),an.add(Oe),en=!0):!Ke&&We&&(an.delete(Oe),en=!0)},Ge=tt=>{let Oe=0,Ke=0;return we(tt)?(tt.forEach(We=>{const Xt=Et(We),un=W(We);let On=0,Xn=0;if(un.length){const to=Ge(un);On=to.selectedCount,Xn=to.selectableCount}const wa=bt?bt.call(null,We,et.get(Xt)??0):!0;if(wa&&Xn>0){const to=On===Xn;!to&&On!==0&&(Yt[Xt]=!0),Ye(We,Xt,to)}wa&&(Ke+=1,an.has(Xt)&&(Oe+=1)),Oe+=On,Ke+=Xn}),{selectedCount:Oe,selectableCount:Ke}):{selectedCount:Oe,selectableCount:Ke}};if(Ge(a.value||[]),en){const tt=y.value.filter(Oe=>an.has(Et(Oe)));Lt.forEach(Oe=>{an.has(Et(Oe))&&tt.push(Oe)}),y.value=tt}S.value=Yt,en&&xe&&e.emit("selection-change",y.value?y.value.slice():[])},ee=()=>{w.value=!1;const ie=y.value;y.value=[],S.value={},ie.length&&e.emit("selection-change",[])},ae=()=>{let ie;if(n.value){ie=[];const xe=e?.store?.states?.childrenColumnName.value,Ue=vl(a.value,n.value,!0,xe),{lazyTreeNodeMap:et}=e.store.states;et.value&&Object.entries(et.value).forEach(([bt,vt])=>{Ue[bt]&&vt.forEach(Et=>{const Yt=Cn(Et,n.value);Ue[Yt]||(Ue[Yt]={row:Et,index:-1})})});for(const bt in j.value)Nt(j.value,bt)&&!Ue[bt]&&ie.push(j.value[bt].row)}else ie=y.value.filter(xe=>!a.value.includes(xe));if(ie.length){const xe=y.value.filter(Ue=>!ie.includes(Ue));y.value=xe,J({emitChange:!1}),e.emit("selection-change",[...xe])}},ce=()=>(y.value||[]).slice(),Z=(ie,xe,Ue)=>{if(!n.value||gt.checkStrictly.value||!gt.lazy.value)return;const{lazyTreeNodeMap:et,childrenColumnName:bt}=e.store.states,vt=Cn(ie,n.value),Et=et.value?.[vt]??[],Yt=ie[bt.value]??[],an={children:bt.value,checkStrictly:!1};for(const Lt of Et){const en=Ue.get(Cn(Lt,n.value))??0;sl(y.value,Lt,xe,an,O.value,en,n.value),Z(Lt,xe,Ue)}for(const Lt of Yt)Z(Lt,xe,Ue)},de=(ie,xe,Ue=!0,et=!1)=>{const bt={children:e?.store?.states?.childrenColumnName.value,checkStrictly:e?.store?.states?.checkStrictly.value};if(sl(y.value,ie,xe,bt,et?void 0:O.value,a.value.indexOf(ie),n.value)){gt.lazy.value&&!gt.checkStrictly.value?(Z(ie,xe??H(ie),U.value),J({emitChange:!1,rowIndexMap:U.value})):J({emitChange:!1});const vt=(y.value||[]).slice();Ue&&e.emit("select",vt,ie),e.emit("selection-change",vt)}},ue=()=>{const ie=x.value?!w.value:!(w.value||y.value.length);w.value=ie;let xe=!1,Ue=0;const et=e?.store?.states?.rowKey.value,{childrenColumnName:bt}=e.store.states,vt={children:bt.value,checkStrictly:!1};a.value.forEach((Yt,an)=>{const Lt=an+Ue;sl(y.value,Yt,ie,vt,O.value,Lt,et)&&(xe=!0),Ue+=D(Cn(Yt,et))});const Et=U.value;if(gt.lazy.value&&!gt.checkStrictly.value&&et)for(const Yt of Object.values(gt.lazyTreeNodeMap.value))for(const an of Yt){const Lt=Et.get(Cn(an,et))??0;sl(y.value,an,ie,vt,O.value,Lt,et)&&(xe=!0),Z(an,ie,Et)}J({emitChange:!1,rowIndexMap:Et}),xe&&e.emit("selection-change",y.value?[...y.value]:[]),e.emit("select-all",(y.value||[]).slice())},Y=()=>{if(a.value?.length===0){w.value=!1;return}let ie=0,xe=0;const Ue=bt=>{for(const vt of bt){const Et=O.value&&O.value.call(null,vt,ie);if(H(vt))xe++;else if(!O.value||Et)return!1;ie++;const Yt=W(vt);if(Yt.length&&!Ue(Yt))return!1}return!0},et=Ue(a.value||[]);w.value=xe===0?!1:et},Q=ie=>{if(!n.value)return!1;const xe=Cn(ie,n.value);return!!S.value[xe]},D=ie=>{if(!e||!e.store)return 0;const{treeData:xe}=e.store.states;let Ue=0;const et=xe.value[ie]?.children;return et&&(Ue+=et.length,et.forEach(bt=>{Ue+=D(bt)})),Ue},q=(ie,xe)=>{const Ue={};return Dn(ie).forEach(et=>{I.value[et.id]=xe,Ue[et.columnKey||et.id]=xe}),Ue},te=(ie,xe,Ue)=>{N.value&&N.value!==ie&&(N.value.order=null),N.value=ie,$.value=xe,B.value=Ue},fe=()=>{let ie=i(o);Object.keys(I.value).forEach(xe=>{const Ue=I.value[xe];if(!Ue||Ue.length===0)return;const et=ix({columns:u.value},xe);et&&et.filterMethod&&(ie=ie.filter(bt=>Ue.some(vt=>et.filterMethod.call(null,vt,bt,et))))}),_.value=ie},he=()=>{a.value=bY(_.value??[],{sortingColumn:N.value,sortProp:$.value,sortOrder:B.value})},ve=(ie=void 0)=>{ie?.filter||fe(),he()},Ie=ie=>{const{tableHeaderRef:xe}=e.refs;if(!xe)return;const Ue=Object.assign({},xe.filterPanels),et=Object.keys(Ue);if(et.length)if(Ae(ie)&&(ie=[ie]),we(ie)){const bt=ie.map(vt=>iY({columns:u.value},vt));et.forEach(vt=>{const Et=bt.find(Yt=>Yt.id===vt);Et&&(Et.filteredValue=[])}),e.store.commit("filterChange",{column:bt,values:[],silent:!0,multi:!0})}else et.forEach(bt=>{const vt=u.value.find(Et=>Et.id===bt);vt&&(vt.filteredValue=[])}),I.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},Le=()=>{N.value&&(te(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:_e,toggleRowExpansion:ye,updateExpandRows:Te,states:be,isRowExpanded:Pe}=vY({data:a,rowKey:n}),{updateTreeExpandKeys:He,toggleTreeExpansion:Je,updateTreeData:Qe,updateKeyChildren:lt,loadOrToggle:Ze,states:gt}=gY({data:a,rowKey:n}),{updateCurrentRowData:At,updateCurrentRow:zt,setCurrentRowKey:nt,states:ft}=mY({data:a,rowKey:n}),me=ie=>{_e(ie),He(ie)},je=(ie,xe)=>{u.value.some(({type:Ue})=>Ue==="expand")?ye(ie,xe):Je(ie,xe)};return pe(()=>gt.checkStrictly.value,ie=>{ie?S.value={}:J({emitChange:!1}),Y()}),pe(()=>gt.lazyTreeNodeMap.value,()=>{if(!gt.lazy.value||gt.checkStrictly.value||!n.value)return;const ie=U.value,xe=y.value.length;for(const et of Object.keys(gt.lazyTreeNodeMap.value))j.value?.[et]&&Z(j.value[et].row,!0,ie);const Ue=y.value.length!==xe;J({emitChange:!Ue,rowIndexMap:ie}),Y(),Ue&&e.emit("selection-change",[...y.value])}),{assertRowKey:A,updateColumns:V,scheduleLayout:F,isSelected:H,clearSelection:ee,cleanSelection:ae,getSelectionRows:ce,toggleRowSelection:de,_toggleAllSelection:ue,toggleAllSelection:null,updateAllSelected:Y,updateSelectionByChildren:J,getRowIndeterminate:Q,updateFilters:q,updateCurrentRow:zt,updateSort:te,execFilter:fe,execSort:he,execQuery:ve,clearFilter:Ie,clearSort:Le,toggleRowExpansion:ye,setExpandRowKeysAdapter:me,setCurrentRowKey:nt,toggleRowExpansionAdapter:je,isRowExpanded:Pe,updateExpandRows:Te,updateCurrentRowData:At,loadOrToggle:Ze,updateTreeData:Qe,updateKeyChildren:lt,states:{tableSize:t,rowKey:n,data:a,_data:o,isComplex:r,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:p,rightFixedLeafColumns:g,updateOrderFns:h,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:b,isAllSelected:w,selection:y,selectionIndeterminate:S,reserveSelection:k,selectOnIndeterminate:x,selectable:O,rowExpandable:T,filters:I,filteredData:_,sortingColumn:N,sortProp:$,sortOrder:B,hoverRow:K,...be,...gt,...ft}}}function Qh(e,t){return e.map(n=>n.id===t.id?t:(n.children?.length&&(n.children=Qh(n.children,t)),n))}function ev(e){e.forEach(t=>{t.no=t.getColumnIndex?.(),t.children?.length&&ev(t.children)}),e.sort((t,n)=>t.no-n.no)}function wY(){const e=dt(),t=yY(),n=ge("table"),{t:a}=xt();return{ns:n,t:a,...t,mutations:{setData(l,u){const c=i(l._data)!==u;l.data.value=u,l._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),i(l.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateSelectionByChildren({emitChange:!1}),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(l,u,c,d){const f=i(l._columns);let p=[];c?(c&&!c.children&&(c.children=[]),c.children?.push(u),p=Qh(f,c)):(f.push(u),p=f),ev(p),l._columns.value=p,l.updateOrderFns.push(d),u.type==="selection"&&(l.selectable.value=u.selectable,l.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(l,u){u.getColumnIndex?.()!==u.no&&(ev(l._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(l,u,c,d){const f=i(l._columns)||[];if(c)c.children?.splice(c.children.findIndex(g=>g.id===u.id),1),Ne(()=>{c.children?.length===0&&delete c.children}),l._columns.value=Qh(f,c);else{const g=f.indexOf(u);g>-1&&(f.splice(g,1),l._columns.value=f)}const p=l.updateOrderFns.indexOf(d);p>-1&&l.updateOrderFns.splice(p,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(l,u){const{prop:c,order:d,init:f}=u;if(c){const p=i(l.columns).find(g=>g.property===c);p&&(p.order=d,e.store.updateSort(p,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(l,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=l,p=i(c),g=i(d),h=i(f);tf(h)&&(l.sortingColumn.value=null,l.sortProp.value=null),e.store.execQuery({filter:!0}),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:p,prop:g,order:h}),e.store.updateTableScrollY()},filterChange(l,u){const{column:c,values:d,silent:f}=u,p=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",p),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection?.()},rowSelectedChanged(l,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(l,u){l.hoverRow.value=u},setCurrentRow(l,u){e.store.updateCurrentRow(u)}},commit:function(l,...u){const c=e.store.mutations;if(c[l])c[l].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${l}`)},updateTableScrollY:function(){Ne(()=>e.layout.updateScrollY.apply(e.layout))}}}const pg={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function SY(e,t){if(!e)throw new Error("Table is required.");const n=wY();return n.toggleAllSelection=Ho(n._toggleAllSelection,10),Object.keys(pg).forEach(a=>{px(hx(t,a),a,n)}),CY(n,t),n}function CY(e,t){Object.keys(pg).forEach(n=>{pe(()=>hx(t,n),a=>{px(a,n,e)})})}function px(e,t,n){let a=e,o=pg[t];ot(o)&&(a=a||o.default,o=o.key),n.states[o].value=a}function hx(e,t){if(t.includes(".")){const n=t.split(".");let a=e;return n.forEach(o=>{a=a[o]}),a}else return e[t]}var kY=class{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.heightMap={},this.height=M(null),this.scrollX=M(!1),this.scrollY=M(!1),this.bodyWidth=M(null),this.fixedWidth=M(null),this.rightFixedWidth=M(null),this.gutterWidth=0;for(const t in e)Nt(e,t)&&(Gt(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(tf(e))return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&t?.wrapRef){let n=!0;const a=this.scrollY.value;return n=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=n,a!==n}return!1}setHeight(e,t="height"){if(!Pt)return;const n=this.table.vnode.el;if(e=cY(e),this.height.value=Number(e),this.heightMap[t]=e,!n&&(e||e===0)){Ne(()=>{this.heightMap[t]===e&&this.setHeight(e,t)});return}n&&Be(e)?(n.style[t]=`${e}px`,this.updateElsHeight()):n&&Ae(e)&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;t.tagName!=="DIV";){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}updateColumnsWidth(){if(!Pt)return;const e=this.fit,t=this.table.vnode.el?.clientWidth;let n=0;const a=this.getFlattenColumns(),o=a.filter(l=>!Be(l.width));if(a.forEach(l=>{Be(l.width)&&l.realWidth&&(l.realWidth=null)}),o.length>0&&e){if(a.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=t){this.scrollX.value=!1;const l=t-n;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+l;else{const u=l/o.reduce((d,f)=>d+Number(f.minWidth||80),0);let c=0;o.forEach((d,f)=>{if(f===0)return;const p=Math.floor(Number(d.minWidth||80)*u);c+=p,d.realWidth=Number(d.minWidth||80)+p}),o[0].realWidth=Number(o[0].minWidth||80)+l-c}}else this.scrollX.value=!0,o.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>t,this.bodyWidth.value=n;const r=this.store.states.fixedColumns.value;if(r.length>0){let l=0;r.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach(t=>{switch(e){case"columns":t.state?.onColumnsChange(this);break;case"scrollable":t.state?.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}};const ko=Symbol("ElTable"),vx=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,vx(n.children))):t.push(n)}),t},mx=e=>{let t=1;const n=(o,r)=>{if(r&&(o.level=r.level+1,t{n(l,o),s+=l.colSpan}),o.colSpan=s}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const a=[];for(let o=0;o{o.children?(o.rowSpan=1,o.children.forEach(r=>r.isSubColumn=!0)):o.rowSpan=t-o.level+1,a[o.level-1].push(o)}),a};function EY(e){const t=$e(ko),n=C(()=>mx(e.store.states.originColumns.value));return{isGroup:C(()=>{const r=n.value.length>1;return r&&t&&(t.state.isGroup.value=!0),r}),toggleAllSelection:r=>{r.stopPropagation(),t?.store.commit("toggleAllSelection")},columnRows:n}}var xY=se({name:"ElTableFilterPanel",components:{ElCheckbox:go,ElCheckboxGroup:Ym,ElScrollbar:mo,ElTooltip:Wn,ElIcon:De,ArrowDown:qo,ArrowUp:hf},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Kt.appendTo},setup(e){const t=dt(),{t:n}=xt(),a=ge("table-filter"),o=t?.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const r=M(null),s=M(null),l=M(0),u=C(()=>e.column&&e.column.filters),c=C(()=>e.column&&e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),d=C({get:()=>(e.column?.filteredValue||[])[0],set:O=>{f.value&&(Aa(O)?f.value.splice(0,1):f.value.splice(0,1,O))}}),f=C({get(){return e.column?e.column.filteredValue||[]:[]},set(O){e.column&&e.upDataColumn?.("filteredValue",O)}}),p=C(()=>e.column?e.column.filterMultiple:!0),g=O=>O.value===d.value,h=()=>{r.value?.onClose()},v=()=>{w(f.value),h()},m=()=>{f.value=[],w(f.value),h()},b=(O,T)=>{d.value=O,l.value=T,Aa(O)?w([]):w(f.value),h()},w=O=>{e.store?.commit("filterChange",{column:e.column,values:O}),e.store?.updateAllSelected()},y=()=>{s.value?.focus(),!p.value&&k(),e.column&&e.upDataColumn?.("filterOpened",!0)},S=()=>{e.column&&e.upDataColumn?.("filterOpened",!1)},k=()=>{if(Aa(d)){l.value=0;return}const O=(u.value||[]).findIndex(T=>T.value===d.value);l.value=O>=0?O+1:0};return{multiple:p,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:v,handleReset:m,handleSelect:b,isPropAbsent:Aa,isActive:g,t:n,ns:a,tooltipRef:r,rootRef:s,checkedIndex:l,handleShowTooltip:y,handleHideTooltip:S,handleKeydown:O=>{const T=qt(O),I=(u.value?u.value.length:0)+1;let _=l.value,N=!0;switch(T){case Se.down:case Se.right:_=(_+1)%I;break;case Se.up:case Se.left:_=(_-1+I)%I;break;case Se.tab:h(),N=!1;break;case Se.enter:case Se.space:if(_===0)b(null,0);else{const $=(u.value||[])[_-1];$.value&&b($.value,_)}break;default:N=!1;break}N&&O.preventDefault(),l.value=_,s.value?.querySelector(`.${a.e("list-item")}:nth-child(${_+1})`)?.focus()}}}});const TY=["disabled"],OY=["tabindex","aria-checked"],_Y=["tabindex","aria-checked","onClick"],RY=["aria-label"];function IY(e,t,n,a,o,r){const s=Mt("el-checkbox"),l=Mt("el-checkbox-group"),u=Mt("el-scrollbar"),c=Mt("arrow-up"),d=Mt("arrow-down"),f=Mt("el-icon"),p=Mt("el-tooltip");return E(),le(p,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:ne(()=>[e.multiple?(E(),L("div",{key:0,ref:"rootRef",tabindex:"-1",class:R(e.ns.e("multiple"))},[z("div",{class:R(e.ns.e("content"))},[X(u,{"wrap-class":e.ns.e("wrap")},{default:ne(()=>[X(l,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:R(e.ns.e("checkbox-group"))},{default:ne(()=>[(E(!0),L(Ve,null,kt(e.filters,g=>(E(),le(s,{key:g.value,value:g.value},{default:ne(()=>[wt(Ce(g.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),z("div",{class:R(e.ns.e("bottom"))},[z("button",{class:R(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},Ce(e.t("el.table.confirmFilter")),11,TY),z("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},Ce(e.t("el.table.resetFilter")),1)],2)],2)):(E(),L("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:R(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...g)=>e.handleKeydown&&e.handleKeydown(...g))},[z("li",{role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=g=>e.handleSelect(null,0))},Ce(e.t("el.table.clearFilter")),11,OY),(E(!0),L(Ve,null,kt(e.filters,(g,h)=>(E(),L("li",{key:g.value,role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),tabindex:e.checkedIndex===h+1?0:-1,"aria-checked":e.isActive(g),onClick:v=>e.handleSelect(g.value,h+1)},Ce(g.text),11,_Y))),128))],34))]),default:ne(()=>[z("button",{type:"button",class:R(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:e.column?.label||""})},[X(f,null,{default:ne(()=>[oe(e.$slots,"filter-icon",{},()=>[e.column?.filterOpened?(E(),le(c,{key:0})):(E(),le(d,{key:1}))])]),_:3})],10,RY)]),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var $Y=Mn(xY,[["render",IY]]);function hg(e){const t=dt();Kd(()=>{n.value.addObserver(t)}),ht(()=>{a(n.value),o(n.value)}),yo(()=>{a(n.value),o(n.value)}),Fl(()=>{n.value.removeObserver(t)});const n=C(()=>{const r=e.layout;if(!r)throw new Error("Can not find table layout.");return r}),a=r=>{const s=e.vnode.el?.querySelectorAll("colgroup > col")||[];if(!s.length)return;const l=r.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,d=s.length;c{const s=e.vnode.el?.querySelectorAll("colgroup > col[name=gutter]")||[];for(let u=0,c=s.length;u{v.stopPropagation()},r=(v,m)=>{!m.filters&&m.sortable?h(v,m,!1):m.filterable&&!m.sortable&&o(v),a?.emit("header-click",m,v)},s=(v,m)=>{a?.emit("header-contextmenu",m,v)},l=M(null),u=M(!1),c=M(),d=(v,m)=>{if(Pt&&!(m.children&&m.children.length>0)&&l.value&&e.border&&l.value.id===m.id){u.value=!0;const b=a;t("set-drag-visible",!0);const w=b?.vnode.el?.getBoundingClientRect().left,y=n?.vnode?.el?.querySelector(`th.${m.id}`),S=y.getBoundingClientRect(),k=S.left-w+30;Ua(y,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:S.right-w,startColumnLeft:S.left-w,tableLeft:w};const x=b?.refs.resizeProxy;x.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=I=>{const _=I.clientX-c.value.startMouseLeft,N=c.value.startLeft+_;x.style.left=`${Math.max(k,N)}px`},T=()=>{if(u.value){const{startColumnLeft:I,startLeft:_}=c.value;m.width=m.realWidth=Number.parseInt(x.style.left,10)-I,b?.emit("header-dragend",m.width,_-I,m,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,l.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",T),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ra(y,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",T)}},f=(v,m)=>{if(!e.border||m.children&&m.children.length>0)return;const b=v.target,w=xa(b)?b.closest("th"):null;if(!w)return;const y=Ao(w,"is-sortable");if(y){const I=u.value?"col-resize":"";w.style.cursor=I;const _=w.querySelector(".caret-wrapper");_&&(_.style.cursor=I)}if(!m.resizable||u.value){l.value=null;return}const S=w.getBoundingClientRect(),k=w.parentNode?.lastElementChild===w,x=e.allowDragLastColumn||!k,O=S.width>12&&S.right-v.clientX<8&&x,T=O?"col-resize":"";document.body.style.cursor=T,l.value=O?m:null,y&&(w.style.cursor=T)},p=()=>{!Pt||u.value||(document.body.style.cursor="")},g=({order:v,sortOrders:m})=>{if(v==="")return m[0];const b=m.indexOf(v||null);return m[b>m.length-2?0:b+1]},h=(v,m,b)=>{v.stopPropagation();const w=m.order===b?null:b||g(m),y=v.target?.closest("th");if(y&&Ao(y,"noclick")){ra(y,"noclick");return}if(!m.sortable)return;const S=v.currentTarget;if(["ascending","descending"].some(I=>Ao(S,I)&&!m.sortOrders.includes(I)))return;const k=e.store.states;let x=k.sortProp.value,O;const T=k.sortingColumn.value;(T!==m||T===m&&tf(T.order))&&(T&&(T.order=null),k.sortingColumn.value=m,x=m.property),w?O=m.order=w:O=m.order=null,k.sortProp.value=x,k.sortOrder.value=O,a?.store.commit("changeSortCondition")};return{handleHeaderClick:r,handleHeaderContextMenu:s,handleMouseDown:d,handleMouseMove:f,handleMouseOut:p,handleSortClick:h,handleFilterClick:o}}function MY(e){const t=$e(ko),n=ge("table");return{getHeaderRowStyle:l=>{const u=t?.props.headerRowStyle;return Fe(u)?u.call(null,{rowIndex:l}):u},getHeaderRowClass:l=>{const u=[],c=t?.props.headerRowClassName;return Ae(c)?u.push(c):Fe(c)&&u.push(c.call(null,{rowIndex:l})),u.join(" ")},getHeaderCellStyle:(l,u,c,d)=>{let f=t?.props.headerCellStyle??{};Fe(f)&&(f=f.call(null,{rowIndex:l,columnIndex:u,row:c,column:d}));const p=fg(u,d.fixed,e.store,c);return Pl(p,"left"),Pl(p,"right"),Object.assign({},f,p)},getHeaderCellClass:(l,u,c,d)=>{const f=dg(n.b(),u,d.fixed,e.store,c),p=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||p.push("is-leaf"),d.sortable&&p.push("is-sortable");const g=t?.props.headerCellClassName;return Ae(g)?p.push(g):Fe(g)&&p.push(g.call(null,{rowIndex:l,columnIndex:u,row:c,column:d})),p.push(n.e("cell")),p.filter(h=>!!h).join(" ")}}}var PY=se({name:"ElTableHeader",components:{ElCheckbox:go},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=dt(),a=$e(ko),o=ge("table"),r=M({}),{onColumnsChange:s,onScrollableChange:l}=hg(a),u=a?.props.tableLayout==="auto",c=Dt(new Map),d=M();let f;const p=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach(($,B)=>{const K=d.value.querySelector(`.${B.replace(/\s/g,".")}`);K&&($.width=K.getBoundingClientRect().width||$.width)}),c.clear())})};pe(c,p),Vt(()=>{f&&(clearTimeout(f),f=void 0)}),ht(async()=>{await Ne(),await Ne();const{prop:$,order:B}=e.defaultSort;a?.store.commit("sort",{prop:$,order:B,init:!0}),p()});const{handleHeaderClick:g,handleHeaderContextMenu:h,handleMouseDown:v,handleMouseMove:m,handleMouseOut:b,handleSortClick:w,handleFilterClick:y}=NY(e,t),{getHeaderRowStyle:S,getHeaderRowClass:k,getHeaderCellStyle:x,getHeaderCellClass:O}=MY(e),{isGroup:T,toggleAllSelection:I,columnRows:_}=EY(e),{t:N}=xt();return n.state={onColumnsChange:s,onScrollableChange:l},n.filterPanels=r,{ns:o,t:N,filterPanels:r,onColumnsChange:s,onScrollableChange:l,columnRows:_,getHeaderRowClass:k,getHeaderRowStyle:S,getHeaderCellClass:O,getHeaderCellStyle:x,handleHeaderClick:g,handleHeaderContextMenu:h,handleMouseDown:v,handleMouseMove:m,handleMouseOut:b,handleSortClick:w,handleFilterClick:y,isGroup:T,toggleAllSelection:I,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:p}},render(){const{ns:e,t,isGroup:n,columnRows:a,getHeaderCellStyle:o,getHeaderCellClass:r,getHeaderRowClass:s,getHeaderRowStyle:l,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:p,handleMouseOut:g,store:h,$parent:v,saveIndexSelection:m,isTableLayoutAuto:b}=this;let w=1;return qe("thead",{ref:"theadRef",class:e.is("group",n)},a.map((y,S)=>qe("tr",{class:s(S),key:S,style:l(S)},y.map((k,x)=>{k.rowSpan>w&&(w=k.rowSpan);const O=r(S,x,y,k);return b&&k.fixed&&m.set(O,k),qe("th",{class:O,colspan:k.colSpan,key:`${k.id}-thead`,rowspan:k.rowSpan,scope:k.colSpan>1?"colgroup":"col",ariaSort:k.sortable?k.order:void 0,style:o(S,x,y,k),onClick:T=>{T.currentTarget?.classList.contains("noclick")||u(T,k)},onContextmenu:T=>c(T,k),onMousedown:T=>d(T,k),onMousemove:T=>f(T,k),onMouseout:g},[qe("div",{class:["cell",k.filteredValue&&k.filteredValue.length>0?"highlight":""]},[k.renderHeader?k.renderHeader({column:k,$index:x,store:h,_self:v}):k.label,k.sortable&&qe("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:k.label||""}),onClick:T=>p(T,k)},[qe("i",{onClick:T=>p(T,k,"ascending"),class:"sort-caret ascending"}),qe("i",{onClick:T=>p(T,k,"descending"),class:"sort-caret descending"})]),k.filterable&&qe($Y,{store:h,placement:k.filterPlacement||"bottom-start",appendTo:v?.appendFilterPanelTo,column:k,upDataColumn:(T,I)=>{k[T]=I}},{"filter-icon":()=>k.renderFilterIcon?k.renderFilterIcon({filterOpened:k.filterOpened}):null})])])}))))}});function AY(e){const t=$e(ko),n=M(""),a=M(qe("div")),o=(h,v,m)=>{const b=t,w=_p(h);let y=null;const S=b?.vnode.el?.dataset.prefix;w&&(y=n1({columns:e.store?.states.columns.value??[]},w,S),y&&b?.emit(`cell-${m}`,v,y,w,h)),b?.emit(`row-${m}`,v,y,h)},r=(h,v)=>{o(h,v,"dblclick")},s=(h,v)=>{e.store?.commit("setCurrentRow",v),o(h,v,"click")},l=(h,v)=>{o(h,v,"contextmenu")},u=Ho(h=>{e.store?.commit("setHoverRow",h)},30),c=Ho(()=>{e.store?.commit("setHoverRow",null)},30),d=h=>{const v=window.getComputedStyle(h,null);return{left:Number.parseInt(v.paddingLeft,10)||0,right:Number.parseInt(v.paddingRight,10)||0,top:Number.parseInt(v.paddingTop,10)||0,bottom:Number.parseInt(v.paddingBottom,10)||0}},f=(h,v,m)=>{let b=v?.target?.parentNode;for(;h>1&&(b=b?.nextSibling,!(!b||b.nodeName!=="TR"));)m(b,"hover-row hover-fixed-row"),h--};return{handleDoubleClick:r,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(h,v,m)=>{if(!t)return;const b=t,w=_p(h),y=b?.vnode.el?.dataset.prefix;let S=null;if(w){if(S=n1({columns:e.store?.states.columns.value??[]},w,y),!S)return;w.rowSpan>1&&f(w.rowSpan,h,Ua);const A=b.hoverState={cell:w,column:S,row:v};b?.emit("cell-mouse-enter",A.row,A.column,A.cell,h)}if(!m){ka?.trigger===w&&ka?.();return}const k=h.target.querySelector(".cell");if(!(Ao(k,`${y}-tooltip`)&&k.childNodes.length&&k.textContent?.trim()))return;const x=document.createRange();x.setStart(k,0),x.setEnd(k,k.childNodes.length);const{width:O,height:T}=x.getBoundingClientRect(),{width:I,height:_}=k.getBoundingClientRect(),{top:N,left:$,right:B,bottom:K}=d(k),j=$+B,W=N+K;Vo(O+j,I)||Vo(T+W,_)||Vo(k.scrollWidth,I)?hY(m,(w?.innerText||w?.textContent)??"",v,S,w,b):ka?.trigger===w&&ka?.()},handleCellMouseLeave:h=>{const v=_p(h);if(!v)return;v.rowSpan>1&&f(v.rowSpan,h,ra);const m=t?.hoverState;t?.emit("cell-mouse-leave",m?.row,m?.column,m?.cell,h)},tooltipContent:n,tooltipTrigger:a}}function LY(e){const t=$e(ko),n=ge("table");return{getRowStyle:(c,d)=>{const f=t?.props.rowStyle;return Fe(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{const p=[n.e("row")];t?.props.highlightCurrentRow&&c===e.store?.states.currentRow.value&&p.push("current-row"),e.stripe&&f%2===1&&p.push(n.em("row","striped"));const g=t?.props.rowClassName;return Ae(g)?p.push(g):Fe(g)&&p.push(g.call(null,{row:c,rowIndex:d})),p},getCellStyle:(c,d,f,p)=>{const g=t?.props.cellStyle;let h=g??{};Fe(g)&&(h=g.call(null,{rowIndex:c,columnIndex:d,row:f,column:p}));const v=fg(d,e?.fixed,e.store);return Pl(v,"left"),Pl(v,"right"),Object.assign({},h,v)},getCellClass:(c,d,f,p,g)=>{const h=dg(n.b(),d,e?.fixed,e.store,void 0,g),v=[p.id,p.align,p.className,...h],m=t?.props.cellClassName;return Ae(m)?v.push(m):Fe(m)&&v.push(m.call(null,{rowIndex:c,columnIndex:d,row:f,column:p})),v.push(n.e("cell")),v.filter(b=>!!b).join(" ")},getSpan:(c,d,f,p)=>{let g=1,h=1;const v=t?.props.spanMethod;if(Fe(v)){const m=v({row:c,column:d,rowIndex:f,columnIndex:p});we(m)?(g=m[0],h=m[1]):ot(m)&&(g=m.rowspan,h=m.colspan)}return{rowspan:g,colspan:h}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const p=c.map(({realWidth:g,width:h})=>g||h).slice(f,f+d);return Number(p.reduce((g,h)=>Number(g)+Number(h),-1))}}}const DY=["colspan","rowspan"];var BY=se({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(E(),L("td",{colspan:e.colspan,rowspan:e.rowspan},[oe(t.$slots,"default")],8,DY))}}),VY=BY;function FY(e){const t=$e(ko),n=ge("table"),{handleDoubleClick:a,handleClick:o,handleContextMenu:r,handleMouseEnter:s,handleMouseLeave:l,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=AY(e),{getRowStyle:p,getRowClass:g,getCellStyle:h,getCellClass:v,getSpan:m,getColspanRealWidth:b}=LY(e);let w=-1;const y=C(()=>e.store?.states.columns.value.findIndex(({type:T})=>T==="default")),S=(T,I)=>{const _=t?.props?.rowKey;return _?Cn(T,_):I},k=(T,I,_,N=!1)=>{const{tooltipEffect:$,tooltipOptions:B,store:K}=e,{indent:j,columns:W}=K.states,A=[];let P=!0;return _&&(A.push(n.em("row",`level-${_.level}`)),P=!!_.display),I===0&&(w=-1),e.stripe&&P&&w++,A.push(...g(T,I,w)),qe("tr",{style:[P?null:{display:"none"},p(T,I)],class:A,key:S(T,I),onDblclick:V=>a(V,T),onClick:V=>o(V,T),onContextmenu:V=>r(V,T),onMouseenter:()=>s(I),onMouseleave:l},W.value.map((V,F)=>{const{rowspan:H,colspan:U}=m(T,V,I,F);if(!H||!U)return null;const J=Object.assign({},V);J.realWidth=b(W.value,U,F);const ee={store:K,_self:e.context||t,column:J,row:T,$index:I,cellIndex:F,expanded:N};F===y.value&&_&&(ee.treeNode={indent:_.level&&_.level*j.value,level:_.level},Wt(_.expanded)&&(ee.treeNode.expanded=_.expanded,"loading"in _&&(ee.treeNode.loading=_.loading),"noLazyChildren"in _&&(ee.treeNode.noLazyChildren=_.noLazyChildren)));const ae=`${S(T,I)},${F}`,ce=J.columnKey||J.rawColumnKey||"",Z=V.showOverflowTooltip&&TS({effect:$},B,V.showOverflowTooltip);return qe(VY,{style:h(I,F,T,V),class:v(I,F,T,V,U-1),key:`${ce}${ae}`,rowspan:H,colspan:U,onMouseenter:de=>u(de,T,Z),onMouseleave:c},{default:()=>x(F,V,ee)})}))},x=(T,I,_)=>I.renderCell(_);return{wrappedRowRender:(T,I)=>{const _=e.store,{isRowExpanded:N,assertRowKey:$}=_,{treeData:B,lazyTreeNodeMap:K,childrenColumnName:j,rowKey:W}=_.states,A=_.states.columns.value;if(A.some(({type:P})=>P==="expand")){const P=N(T),V=k(T,I,void 0,P),F=t?.renderExpanded;if(!F)return console.error("[Element Error]renderExpanded is required."),V;const H=[[V]];return(t.props.preserveExpandedContent||P)&&H[0].push(qe("tr",{key:`expanded-row__${V.key}`,style:{display:P?"":"none"}},[qe("td",{colspan:A.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[F({row:T,$index:I,store:_,expanded:P})])])),H}else if(Object.keys(B.value).length){$();const P=Cn(T,W.value);let V=B.value[P],F=null;V&&(F={expanded:V.expanded,level:V.level,display:!0,noLazyChildren:void 0,loading:void 0},Wt(V.lazy)&&(F&&Wt(V.loaded)&&V.loaded&&(F.noLazyChildren=!(V.children&&V.children.length)),F.loading=V.loading));const H=[k(T,I,F??void 0)];if(V){let U=0;const J=(ee,ae)=>{ee&&ee.length&&ae&&ee.forEach(ce=>{const Z={display:ae.display&&ae.expanded,level:ae.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=Cn(ce,W.value);if(Aa(de))throw new Error("For nested data item, row-key is required.");V={...B.value[de]},V&&(Z.expanded=V.expanded,V.level=V.level||Z.level,V.display=!!(V.expanded&&Z.display),Wt(V.lazy)&&(Wt(V.loaded)&&V.loaded&&(Z.noLazyChildren=!(V.children&&V.children.length)),Z.loading=V.loading)),U++,H.push(k(ce,I+U,Z)),V&&J(K.value[de]||ce[j.value],V)})};V.display=!0,J(K.value[P]||T[j.value],V)}return H}else return k(T,I,void 0)},tooltipContent:d,tooltipTrigger:f}}const zY={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var HY=se({name:"ElTableBody",props:zY,setup(e){const t=dt(),n=$e(ko),a=ge("table"),{wrappedRowRender:o,tooltipContent:r,tooltipTrigger:s}=FY(e),{onColumnsChange:l,onScrollableChange:u}=hg(n),c=[];return pe(e.store?.states.hoverRow,(d,f)=>{const p=t?.vnode.el,g=Array.from(p?.children||[]).filter(m=>m?.classList.contains(`${a.e("row")}`));let h=d;const v=g[h]?.childNodes;if(v?.length){let m=0;Array.from(v).reduce((b,w,y)=>(v[y]?.colSpan>1&&(m=v[y]?.colSpan),w.nodeName!=="TD"&&m===0&&b.push(y),m>0&&m--,b),[]).forEach(b=>{for(h=d;h>0;){const w=g[h-1]?.childNodes;if(w[b]&&w[b].nodeName==="TD"&&w[b].rowSpan>1){Ua(w[b],"hover-cell"),c.push(w[b]);break}h--}})}else c.forEach(m=>ra(m,"hover-cell")),c.length=0;!e.store?.states.isComplex.value||!Pt||Ra(()=>{const m=g[f],b=g[d];m&&!m.classList.contains("hover-fixed-row")&&ra(m,"hover-row"),b&&Ua(b,"hover-row")})}),Fl(()=>{ka?.()}),{ns:a,onColumnsChange:l,onScrollableChange:u,wrappedRowRender:o,tooltipContent:r,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this;return qe("tbody",{tabIndex:-1},[(t?.states.data.value||[]).reduce((n,a)=>n.concat(e(a,n.length)),[])])}});function KY(){const e=$e(ko)?.store;return{leftFixedLeafCount:C(()=>e?.states.fixedLeafColumnsLength.value??0),rightFixedLeafCount:C(()=>e?.states.rightFixedColumns.value.length??0),columnsCount:C(()=>e?.states.columns.value.length??0),leftFixedCount:C(()=>e?.states.fixedColumns.value.length??0),rightFixedCount:C(()=>e?.states.rightFixedColumns.value.length??0),columns:C(()=>e?.states.columns.value??[])}}function WY(e){const{columns:t}=KY(),n=ge("table");return{getCellClasses:(r,s)=>{const l=r[s],u=[n.e("cell"),l.id,l.align,l.labelClassName,...dg(n.b(),s,l.fixed,e.store)];return l.className&&u.push(l.className),l.children||u.push(n.is("leaf")),u},getCellStyles:(r,s)=>{const l=fg(s,r.fixed,e.store);return Pl(l,"left"),Pl(l,"right"),l},columns:t}}var jY=se({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=$e(ko),n=ge("table"),{getCellClasses:a,getCellStyles:o,columns:r}=WY(e),{onScrollableChange:s,onColumnsChange:l}=hg(t);return{ns:n,onScrollableChange:s,onColumnsChange:l,getCellClasses:a,getCellStyles:o,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:a,sumText:o}=this,r=this.store.states.data.value;let s=[];return a?s=a({columns:e,data:r}):e.forEach((l,u)=>{if(u===0){s[u]=o;return}const c=r.map(g=>Number(g[l.property])),d=[];let f=!0;c.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const h=`${g}`.split(".")[1];d.push(h?h.length:0)}});const p=Math.max.apply(null,d);f?s[u]="":s[u]=c.reduce((g,h)=>{const v=Number(h);return Number.isNaN(+v)?g:Number.parseFloat((g+h).toFixed(Math.min(p,20)))},0)}),qe(qe("tfoot",[qe("tr",{},[...e.map((l,u)=>qe("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,u),style:t(l,u)},[qe("div",{class:["cell",l.labelClassName]},[s[u]])]))])]))}});function UY(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,p,g=!0)=>{e.toggleRowSelection(f,p,!1,g),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,p)=>{e.toggleRowExpansionAdapter(f,p)},clearSort:()=>{e.clearSort()},sort:(f,p)=>{e.commit("sort",{prop:f,order:p})},updateKeyChildren:(f,p)=>{e.updateKeyChildren(f,p)}}}function qY(e,t,n,a){const o=M(!1),r=M(null),s=M(!1),l=j=>{s.value=j},u=M({width:null,height:null,headerHeight:null}),c=M(!1),d={display:"inline-block",verticalAlign:"middle"},f=M(),p=M(0),g=M(0),h=M(0),v=M(0),m=M(0);pe(()=>e.height,j=>{t.setHeight(j??null)},{immediate:!0}),pe(()=>e.maxHeight,j=>{t.setMaxHeight(j??null)},{immediate:!0}),pe(()=>[e.currentRowKey,n.states.rowKey],([j,W])=>{!i(W)||!i(j)||n.setCurrentRowKey(`${j}`)},{immediate:!0}),pe(()=>e.data,j=>{a.store.commit("setData",j)},{immediate:!0,deep:!0}),la(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},w=(j,W)=>{const{pixelX:A,pixelY:P}=W;Math.abs(A)>=Math.abs(P)&&(a.refs.bodyWrapper.scrollLeft+=W.pixelX/5)},y=C(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),S=C(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),k=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(I)};ht(async()=>{await Ne(),n.updateColumns(),_(),requestAnimationFrame(k);const j=a.vnode.el,W=a.refs.headerWrapper;e.flexible&&j&&j.parentElement&&(j.parentElement.style.minWidth="0"),u.value={width:f.value=j.offsetWidth,height:j.offsetHeight,headerHeight:e.showHeader&&W?W.offsetHeight:null},n.states.columns.value.forEach(A=>{A.filteredValue&&A.filteredValue.length&&a.store.commit("filterChange",{column:A,values:A.filteredValue,silent:!0})}),a.$ready=!0});const x=(j,W)=>{if(!j)return;const A=Array.from(j.classList).filter(P=>!P.startsWith("is-scrolling-"));A.push(t.scrollX.value?W:"is-scrolling-none"),j.className=A.join(" ")},O=j=>{const{tableWrapper:W}=a.refs;x(W,j)},T=j=>{const{tableWrapper:W}=a.refs;return!!(W&&W.classList.contains(j))},I=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const H="is-scrolling-none";T(H)||O(H);return}const j=a.refs.scrollBarRef.wrapRef;if(!j)return;const{scrollLeft:W,offsetWidth:A,scrollWidth:P}=j,{headerWrapper:V,footerWrapper:F}=a.refs;V&&(V.scrollLeft=W),F&&(F.scrollLeft=W),W>=P-A-1?O("is-scrolling-right"):O(W===0?"is-scrolling-left":"is-scrolling-middle")},_=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&Bt(a.refs.scrollBarRef.wrapRef,"scroll",I,{passive:!0}),e.fit?nn(a.vnode.el,N):Bt(window,"resize",N),nn(a.refs.tableInnerWrapper,()=>{N(),a.refs?.scrollBarRef?.update()}))},N=()=>{const j=a.vnode.el;if(!a.$ready||!j)return;let W=!1;const{width:A,height:P,headerHeight:V}=u.value,F=f.value=j.offsetWidth;A!==F&&(W=!0);const H=j.offsetHeight;(e.height||y.value)&&P!==H&&(W=!0);const U=e.tableLayout==="fixed"?a.refs.headerWrapper:a.refs.tableHeaderRef?.$el;e.showHeader&&U?.offsetHeight!==V&&(W=!0),p.value=a.refs.tableWrapper?.scrollHeight||0,h.value=U?.scrollHeight||0,v.value=a.refs.footerWrapper?.offsetHeight||0,m.value=a.refs.appendWrapper?.offsetHeight||0,g.value=p.value-h.value-v.value-m.value,W&&(u.value={width:F,height:H,headerHeight:e.showHeader&&U?.offsetHeight||0},k())},$=In(),B=C(()=>{const{bodyWidth:j,scrollY:W,gutterWidth:A}=t;return j.value?`${j.value-(W.value?A:0)}px`:""}),K=C(()=>e.maxHeight?"fixed":e.tableLayout);return{isHidden:o,renderExpanded:r,setDragVisible:l,isGroup:c,handleMouseLeave:b,handleHeaderFooterMousewheel:w,tableSize:$,emptyBlockStyle:C(()=>{if(e.data&&e.data.length)return;let j="100%";e.height&&g.value&&(j=`${g.value}px`);const W=f.value;return{width:W?`${W}px`:"",height:j}}),resizeProxyVisible:s,bodyWidth:B,resizeState:u,doLayout:k,tableBodyStyles:S,tableLayout:K,scrollbarViewStyle:d,scrollbarStyle:C(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${h.value+v.value}px)`}:{maxHeight:`${+e.maxHeight-h.value-v.value}px`}:{})}}function YY(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t=new MutationObserver(()=>{r.forEach(s=>s())}),t.observe(a,o)};ht(()=>{n()}),Fl(()=>{t?.disconnect()})}var GY={data:{type:Array,default:()=>[]},size:Nn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,rowExpandable:{type:Function},defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array,Boolean],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function gx(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:o})=>Rt(o))&&(n=[]);const a=o=>{const r={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?r.style={width:`${o.width}px`}:r.name=o.id,r};return qe("colgroup",{},n.map(o=>qe("col",a(o))))}gx.props=["columns","tableLayout"];const XY=()=>{const e=M(),t=(r,s)=>{const l=e.value;l&&l.scrollTo(r,s)},n=(r,s)=>{const l=e.value;l&&Be(s)&&["Top","Left"].includes(r)&&l[`setScroll${r}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:r=>n("Top",r),setScrollLeft:r=>n("Left",r)}};let JY=1;var ZY=se({name:"ElTable",directives:{Mousewheel:MB},components:{TableHeader:PY,TableBody:HY,TableFooter:jY,ElScrollbar:mo,hColgroup:gx},props:GY,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=xt(),n=ge("table"),a=xr("table"),o=dt();St(ko,o);const r=SY(o,e);o.store=r;const s=new kY({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=s;const l=C(()=>(r.states.data.value||[]).length===0),{setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:p,toggleAllSelection:g,toggleRowExpansion:h,clearSort:v,sort:m,updateKeyChildren:b}=UY(r),{isHidden:w,renderExpanded:y,setDragVisible:S,isGroup:k,handleMouseLeave:x,handleHeaderFooterMousewheel:O,tableSize:T,emptyBlockStyle:I,resizeProxyVisible:_,bodyWidth:N,resizeState:$,doLayout:B,tableBodyStyles:K,tableLayout:j,scrollbarViewStyle:W,scrollbarStyle:A}=qY(e,s,r,o),{scrollBarRef:P,scrollTo:V,setScrollLeft:F,setScrollTop:H}=XY(),U=Ho(B,50),J=`${n.namespace.value}-table_${JY++}`;o.tableId=J,o.state={isGroup:k,resizeState:$,doLayout:B,debouncedUpdateLayout:U};const ee=C(()=>e.sumText??t("el.table.sumText")),ae=C(()=>e.emptyText??t("el.table.emptyText")),ce=C(()=>e.tooltipEffect??a.value?.tooltipEffect),Z=C(()=>e.tooltipOptions??a.value?.tooltipOptions),de=C(()=>mx(r.states.originColumns.value)[0]);return YY(o),Vt(()=>{U.cancel()}),{ns:n,layout:s,store:r,columns:de,handleHeaderFooterMousewheel:O,handleMouseLeave:x,tableId:J,tableSize:T,isHidden:w,isEmpty:l,renderExpanded:y,resizeProxyVisible:_,resizeState:$,isGroup:k,bodyWidth:N,tableBodyStyles:K,emptyBlockStyle:I,debouncedUpdateLayout:U,setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:p,toggleAllSelection:g,toggleRowExpansion:h,clearSort:v,doLayout:B,sort:m,updateKeyChildren:b,t,setDragVisible:S,context:o,computedSumText:ee,computedEmptyText:ae,computedTooltipEffect:ce,computedTooltipOptions:Z,tableLayout:j,scrollbarViewStyle:W,scrollbarStyle:A,scrollBarRef:P,scrollTo:V,setScrollLeft:F,setScrollTop:H,allowDragLastColumn:e.allowDragLastColumn}}});const QY=["data-prefix"],eG={ref:"hiddenColumns",class:"hidden-columns"};function tG(e,t,n,a,o,r){const s=Mt("hColgroup"),l=Mt("table-header"),u=Mt("table-body"),c=Mt("table-footer"),d=Mt("el-scrollbar"),f=Vv("mousewheel");return E(),L("div",{ref:"tableWrapper",class:R([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:ze(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p))},[z("div",{ref:"tableInnerWrapper",class:R(e.ns.e("inner-wrapper"))},[z("div",eG,[oe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ct((E(),L("div",{key:0,ref:"headerWrapper",class:R(e.ns.e("header-wrapper"))},[z("table",{ref:"tableHeader",class:R(e.ns.e("header")),style:ze(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[X(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),X(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),z("div",{ref:"bodyWrapper",class:R(e.ns.e("body-wrapper"))},[X(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=p=>e.$emit("scroll",p))},{default:ne(()=>[z("table",{ref:"tableBody",class:R(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:ze({width:e.bodyWidth,tableLayout:e.tableLayout})},[X(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(E(),le(l,{key:0,ref:"tableHeaderRef",class:R(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):re("v-if",!0),X(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.computedTooltipEffect,"tooltip-options":e.computedTooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(E(),le(c,{key:1,class:R(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):re("v-if",!0)],6),e.isEmpty?(E(),L("div",{key:0,ref:"emptyBlock",style:ze(e.emptyBlockStyle),class:R(e.ns.e("empty-block"))},[z("span",{class:R(e.ns.e("empty-text"))},[oe(e.$slots,"empty",{},()=>[wt(Ce(e.computedEmptyText),1)])],2)],6)):re("v-if",!0),e.$slots.append?(E(),L("div",{key:1,ref:"appendWrapper",class:R(e.ns.e("append-wrapper"))},[oe(e.$slots,"append")],2)):re("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?ct((E(),L("div",{key:1,ref:"footerWrapper",class:R(e.ns.e("footer-wrapper"))},[z("table",{class:R(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:ze(e.tableBodyStyles)},[X(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),X(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[$t,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),e.border||e.isGroup?(E(),L("div",{key:2,class:R(e.ns.e("border-left-patch"))},null,2)):re("v-if",!0)],2),ct(z("div",{ref:"resizeProxy",class:R(e.ns.e("column-resize-proxy"))},null,2),[[$t,e.resizeProxyVisible]])],46,QY)}var nG=Mn(ZY,[["render",tG]]);const aG={selection:"table-column--selection",expand:"table__expand-column"},oG={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},rG=e=>aG[e]||"",sG={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return qe(go,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection??void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:a}){return qe(go,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),indeterminate:n.getRowIndeterminate(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return Be(a)?n=t+a:Fe(a)&&(n=a(t)),qe("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:a,$index:o}){const{ns:r}=n,s=[r.e("expand-icon")];!e.renderExpand&&a&&s.push(r.em("expand-icon","expanded"));const l=function(c){c.stopPropagation(),n.toggleRowExpansion(t)},u=n.states.rowExpandable.value?.(t,o)??!0;return u||s.push(r.is("disabled")),qe("button",{type:"button",disabled:!u,"aria-label":n.t(a?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":a,class:s,onClick:l},{default:()=>e.renderExpand?[e.renderExpand({expanded:a,expandable:u})]:[qe(De,null,{default:()=>[qe(sa)]})]})},sortable:!1,resizable:!1}};function lG({row:e,column:t,$index:n}){const a=t.property,o=a&&Wr(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):o?.toString?.()||""}function iG({row:e,treeNode:t,store:n},a=!1){const{ns:o}=n;if(!t)return a?[qe("span",{class:o.e("placeholder")})]:null;const r=[],s=function(l){l.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&r.push(qe("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),Wt(t.expanded)&&!t.noLazyChildren){const l=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let u=sa;t.loading&&(u=vo),r.push(qe("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:l,onClick:s},{default:()=>[qe(De,{class:o.is("loading",t.loading)},{default:()=>[qe(u)]})]}))}else r.push(qe("span",{class:o.e("placeholder")}));return r}function r1(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function uG(e,t){const n=dt();return{registerComplexWatchers:()=>{const r=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},l=r1(r,s);Object.keys(l).forEach(u=>{const c=s[u];Nt(t,c)&&pe(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=cg(d)),c==="minWidth"&&u==="realMinWidth"&&(f=ux(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const p=c==="fixed";e.value.store.scheduleLayout(p)})})},registerNormalWatchers:()=>{const r=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],s=["showOverflowTooltip"],l={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=r1(r,l);Object.keys(u).forEach(d=>{const f=l[d];Nt(t,f)&&pe(()=>t[f],p=>{n.columnConfig.value[d]=p,(d==="filters"||d==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),s.forEach(d=>{Nt(e.value.props,d)&&pe(()=>e.value.props[d],f=>{n.columnConfig.value.type!=="selection"&&Rt(t[d])&&(n.columnConfig.value[d]=f)})});const c=xr("table");c.value&&Nt(c.value,"showOverflowTooltip")&&pe(()=>c.value?.showOverflowTooltip,d=>{n.columnConfig.value.type!=="selection"&&(!Rt(t.showOverflowTooltip)||!Rt(e.value.props.showOverflowTooltip)||(n.columnConfig.value.showOverflowTooltip=d))})}}}function cG(e,t,n){const a=dt(),o=M(""),r=M(!1),s=M(),l=M(),u=ge("table");la(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),la(()=>{l.value=e.headerAlign?`is-${e.headerAlign}`:s.value,l.value});const c=C(()=>{let S=a.vnode.vParent||a.parent;for(;S&&!S.tableId&&!S.columnId;)S=S.vnode.vParent||S.parent;return S}),d=C(()=>{const{store:S}=a.parent;if(!S)return!1;const{treeData:k}=S.states,x=k.value;return x&&Object.keys(x).length>0}),f=M(cg(e.width)),p=M(ux(e.minWidth)),g=S=>(f.value&&(S.width=f.value),p.value&&(S.minWidth=p.value),!f.value&&p.value&&(S.width=void 0),S.minWidth||(S.minWidth=80),S.realWidth=Number(Rt(S.width)?S.minWidth:S.width),S),h=S=>{const k=S.type,x=sG[k]||{};Object.keys(x).forEach(T=>{const I=x[T];T!=="className"&&!Rt(I)&&(S[T]=I)});const O=rG(k);if(O){const T=`${i(u.namespace)}-${O}`;S.className=S.className?`${S.className} ${T}`:T}return S},v=S=>{we(S)?S.forEach(x=>k(x)):k(S);function k(x){x?.type?.name==="ElTableColumn"&&(x.vParent=a)}};return{columnId:o,realAlign:s,isSubColumn:r,realHeaderAlign:l,columnOrTableParent:c,setColumnWidth:g,setColumnForcedProps:h,setColumnRenders:S=>{e.renderHeader?jt("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):S.type!=="selection"&&(S.renderHeader=x=>{if(a.columnConfig.value.label,t.header){const O=t.header(x);if(fx(O))return qe(Ve,O)}return wt(S.label)}),t["filter-icon"]&&(S.renderFilterIcon=x=>oe(t,"filter-icon",x)),t.expand&&(S.renderExpand=x=>oe(t,"expand",x));let k=S.renderCell;return S.type==="expand"?(S.renderCell=x=>qe("div",{class:"cell"},[k(x)]),n.value.renderExpanded=x=>t.default?t.default(x):t.default):(k=k||lG,S.renderCell=x=>{let O=null;if(t.default){const $=t.default(x);O=$.some(B=>B.type!==kn)?$:k(x)}else O=k(x);const{columns:T}=n.value.store.states,I=T.value.findIndex($=>$.type==="default"),_=iG(x,d.value&&x.cellIndex===I),N={class:"cell",style:{}};return S.showOverflowTooltip&&(N.class=`${N.class} ${i(u.namespace)}-tooltip`,N.style={width:`${(x.column.realWidth||Number(x.column.width))-1}px`}),v(O),qe("div",N,[_,O])}),S},getPropsData:(...S)=>S.reduce((k,x)=>(we(x)&&x.forEach(O=>{k[O]=e[O]}),k),{}),getColumnElIndex:(S,k)=>Array.prototype.indexOf.call(S,k),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var dG={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let fG=1;var pG=se({name:"ElTableColumn",components:{ElCheckbox:go},props:dG,setup(e,{slots:t}){const n=dt(),a=xr("table"),o=M({}),r=C(()=>{let S=n.parent;for(;S&&!S.tableId;)S=S.parent;return S}),{registerNormalWatchers:s,registerComplexWatchers:l}=uG(r,e),{columnId:u,isSubColumn:c,realHeaderAlign:d,columnOrTableParent:f,setColumnWidth:p,setColumnForcedProps:g,setColumnRenders:h,getPropsData:v,getColumnElIndex:m,realAlign:b,updateColumnOrder:w}=cG(e,t,r),y=f.value;u.value=`${"tableId"in y&&y.tableId||"columnId"in y&&y.columnId}_column_${fG++}`,Kd(()=>{c.value=r.value!==y;const S=e.type||"default",k=e.sortable===""?!0:e.sortable,x=S==="selection"?!1:Rt(e.showOverflowTooltip)?y.props.showOverflowTooltip??a.value?.showOverflowTooltip:e.showOverflowTooltip,O=Rt(e.tooltipFormatter)?y.props.tooltipFormatter??a.value?.tooltipFormatter:e.tooltipFormatter,T={...oG[S],id:u.value,type:S,property:e.prop||e.property,align:b,headerAlign:d,showOverflowTooltip:x,tooltipFormatter:O,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:k,index:e.index,rawColumnKey:n.vnode.key};let I=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);I=uY(T,I),I=dY(h,p,g)(I),o.value=I,s(),l()}),ht(()=>{const S=f.value,k=c.value?S.vnode.el?.children:S.refs.hiddenColumns?.children,x=()=>m(k||[],n.vnode.el);o.value.getColumnIndex=x,x()>-1&&r.value.store.commit("insertColumn",o.value,c.value?"columnConfig"in S&&S.columnConfig.value:null,w)}),Vt(()=>{const S=o.value.getColumnIndex;(S?S():-1)>-1&&r.value.store.commit("removeColumn",o.value,c.value?"columnConfig"in y&&y.columnConfig.value:null,w)}),n.columnId=u.value,n.columnConfig=o},render(){try{const e=this.$slots.default?.({row:{},column:{},$index:-1}),t=[];if(we(e))for(const n of e)n.type?.name==="ElTableColumn"||n.shapeFlag&2?t.push(n):n.type===Ve&&we(n.children)&&n.children.forEach(a=>{a?.patchFlag!==1024&&!Ae(a?.children)&&t.push(a)});return qe("div",t)}catch{return qe("div",[])}}}),bx=pG;const hG=st(nG,{TableColumn:bx}),vG=sn(bx),tv={asc:"desc",desc:"asc"},du=Symbol("placeholder"),yx=String,Fu={type:G(Array),required:!0},vg={type:G(Array)},wx={...vg,required:!0},mG=String,s1={type:G(Array),default:()=>fn([])},ps={type:Number,required:!0},Sx={type:G([String,Number,Symbol]),default:"id"},l1={type:G(Object)},gs=Ee({class:String,columns:Fu,columnsStyles:{type:G(Object),required:!0},depth:Number,expandColumnKey:mG,estimatedRowHeight:{...Es.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:G(Function)},onRowHover:{type:G(Function)},onRowHeightChange:{type:G(Function)},rowData:{type:G(Object),required:!0},rowEventHandlers:{type:G(Object)},rowIndex:{type:Number,required:!0},rowKey:Sx,style:{type:G(Object)}}),Rp={type:Number,required:!0},mg=Ee({class:String,columns:Fu,fixedHeaderData:{type:G(Array)},headerData:{type:G(Array),required:!0},headerHeight:{type:G([Number,Array]),default:50},rowWidth:Rp,rowHeight:{type:Number,default:50},height:Rp,width:Rp}),Mc=Ee({columns:Fu,data:wx,fixedData:vg,estimatedRowHeight:gs.estimatedRowHeight,width:ps,height:ps,headerWidth:ps,headerHeight:mg.headerHeight,bodyWidth:ps,rowHeight:ps,cache:Mk.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Es.scrollbarAlwaysOn,scrollbarStartGap:Es.scrollbarStartGap,scrollbarEndGap:Es.scrollbarEndGap,class:yx,style:l1,containerStyle:l1,getRowHeight:{type:G(Function),required:!0},rowKey:gs.rowKey,onRowsRendered:{type:G(Function)},onScroll:{type:G(Function)}}),gG=Ee({cache:Mc.cache,estimatedRowHeight:gs.estimatedRowHeight,rowKey:Sx,headerClass:{type:G([String,Function])},headerProps:{type:G([Object,Function])},headerCellProps:{type:G([Object,Function])},headerHeight:mg.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:G([String,Function])},rowProps:{type:G([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:G([Object,Function])},columns:Fu,data:wx,dataGetter:{type:G(Function)},fixedData:vg,expandColumnKey:gs.expandColumnKey,expandedRowKeys:s1,defaultExpandedRowKeys:s1,class:yx,fixed:Boolean,style:{type:G(Object)},width:ps,height:ps,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Es.hScrollbarSize,vScrollbarSize:Es.vScrollbarSize,scrollbarAlwaysOn:Lk.alwaysOn,sortBy:{type:G(Object),default:()=>({})},sortState:{type:G(Object),default:void 0},onColumnSort:{type:G(Function)},onExpandedRowsChange:{type:G(Function)},onEndReached:{type:G(Function)},onRowExpand:gs.onRowExpand,onScroll:Mc.onScroll,onRowsRendered:Mc.onRowsRendered,rowEventHandlers:gs.rowEventHandlers}),bG=(e,t,n)=>{const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow??0,flexShrink:e.flexShrink??1}},o={...e.style??{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function yG(e,t,n){const a=C(()=>i(t).map((m,b)=>({...m,key:m.key??m.dataKey??b}))),o=C(()=>i(a).filter(m=>!m.hidden)),r=C(()=>i(o).filter(m=>m.fixed==="left"||m.fixed===!0)),s=C(()=>i(o).filter(m=>m.fixed==="right")),l=C(()=>i(o).filter(m=>!m.fixed)),u=C(()=>{const m=[];return i(r).forEach(b=>{m.push({...b,placeholderSign:du})}),i(l).forEach(b=>{m.push(b)}),i(s).forEach(b=>{m.push({...b,placeholderSign:du})}),m}),c=C(()=>i(r).length||i(s).length),d=C(()=>i(a).reduce((m,b)=>(m[b.key]=bG(b,i(n),e.fixed),m),{})),f=C(()=>i(o).reduce((m,b)=>m+b.width,0)),p=m=>i(a).find(b=>b.key===m),g=m=>i(d)[m],h=(m,b)=>{m.width=b};function v(m){const{key:b}=m.currentTarget.dataset;if(!b)return;const{sortState:w,sortBy:y}=e;let S="asc";ot(w)?S=tv[w[b]]:S=tv[y.order],e.onColumnSort?.({column:p(b),key:b,order:S})}return{columns:a,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,hasFixedColumns:c,mainColumns:u,normalColumns:l,visibleColumns:o,getColumn:p,getColumnStyle:g,updateColumnWidth:h,onColumnSorted:v}}const wG=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:o})=>{const r=M({scrollLeft:0,scrollTop:0});function s(g){const{scrollTop:h}=g;t.value?.scrollTo(g),n.value?.scrollToTop(h),a.value?.scrollToTop(h)}function l(g){r.value=g,s(g)}function u(g){r.value.scrollTop=g,s(i(r))}function c(g){r.value.scrollLeft=g,t.value?.scrollTo?.(i(r))}function d(g){l(g),e.onScroll?.(g)}function f({scrollTop:g}){const{scrollTop:h}=i(r);g!==h&&u(g)}function p(g,h="auto"){t.value?.scrollToRow(g,h)}return pe(()=>i(r).scrollTop,(g,h)=>{g>h&&o()}),{scrollPos:r,scrollTo:l,scrollToLeft:c,scrollToTop:u,scrollToRow:p,onScroll:d,onVerticalScroll:f}},SG=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:o,ns:r,isScrolling:s})=>{const l=dt(),{emit:u}=l,c=Tt(!1),d=M(e.defaultExpandedRowKeys||[]),f=M(-1),p=Tt(null),g=M({}),h=M({}),v=Tt({}),m=Tt({}),b=Tt({}),w=C(()=>Be(e.estimatedRowHeight));function y(_){e.onRowsRendered?.(_),_.rowCacheEnd>i(f)&&(f.value=_.rowCacheEnd)}function S({hovered:_,rowKey:N}){s.value||o.vnode.el.querySelectorAll(`[rowkey="${String(N)}"]`).forEach($=>{_?$.classList.add(r.is("hovered")):$.classList.remove(r.is("hovered"))})}function k({expanded:_,rowData:N,rowIndex:$,rowKey:B}){const K=[...i(d)],j=K.indexOf(B);_?j===-1&&K.push(B):j>-1&&K.splice(j,1),d.value=K,u("update:expandedRowKeys",K),e.onRowExpand?.({expanded:_,rowData:N,rowIndex:$,rowKey:B}),e.onExpandedRowsChange?.(K),o.vnode.el.querySelector(`.${r.is("hovered")}[rowkey="${String(B)}"]`)&&Ne(()=>S({hovered:!0,rowKey:B}))}const x=Ho(()=>{c.value=!0,g.value={...i(g),...i(h)},O(i(p),!1),h.value={},p.value=null,t.value?.forceUpdate(),n.value?.forceUpdate(),a.value?.forceUpdate(),l.proxy?.$forceUpdate(),c.value=!1},0);function O(_,N=!1){i(w)&&[t,n,a].forEach($=>{const B=i($);B&&B.resetAfterRowIndex(_,N)})}function T(_,N,$){const B=i(p);(B===null||B>$)&&(p.value=$),h.value[_]=N}function I({rowKey:_,height:N,rowIndex:$},B){B?B==="right"?b.value[_]=N:v.value[_]=N:m.value[_]=N;const K=Math.max(...[v,b,m].map(j=>j.value[_]||0));i(g)[_]!==K&&(T(_,K,$),x())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:w,isResetting:c,rowHeights:g,resetAfterIndex:O,onRowExpanded:k,onRowHovered:S,onRowsRendered:y,onRowHeightChange:I}},CG=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const o=M({}),r=C(()=>{const l={},{data:u,rowKey:c}=e,d=i(t);if(!d||!d.length)return u;const f=[],p=new Set;d.forEach(h=>p.add(h));let g=u.slice();for(g.forEach(h=>l[h[c]]=0);g.length>0;){const h=g.shift();f.push(h),p.has(h[c])&&we(h.children)&&h.children.length>0&&(g=[...h.children,...g],h.children.forEach(v=>l[v[c]]=l[h[c]]+1))}return o.value=l,f}),s=C(()=>{const{data:l,expandColumnKey:u}=e;return u?i(r):l});return pe(s,(l,u)=>{l!==u&&(n.value=-1,a(0,!0))}),{data:s,depthMap:o}},kG=(e,t)=>e+t,Pc=e=>we(e)?e.reduce(kG,0):e,Ps=(e,t,n={})=>Fe(e)?e(t):e??n,Kr=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=pn(e[t])}),e),Cx=e=>Zt(e)?t=>qe(e,t):e,EG=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:o})=>{const r=C(()=>{const{fixed:v,width:m,vScrollbarSize:b}=e,w=m-b;return v?Math.max(Math.round(i(t)),w):w}),s=C(()=>{const{height:v=0,maxHeight:m=0,footerHeight:b,hScrollbarSize:w}=e;if(m>0){const y=i(p),S=i(n),k=i(f)+y+S+w;return Math.min(k,m-b)}return v-b}),l=C(()=>{const{maxHeight:v}=e,m=i(s);if(Be(v)&&v>0)return m;const b=i(n)+i(f)+i(p);return Math.min(m,b)}),u=v=>v.width,c=C(()=>Pc(i(a).map(u))),d=C(()=>Pc(i(o).map(u))),f=C(()=>Pc(e.headerHeight)),p=C(()=>(e.fixedData?.length||0)*e.rowHeight),g=C(()=>i(s)-i(f)-i(p)),h=C(()=>{const{style:v={},height:m,width:b}=e;return Kr({...v,height:m,width:b})});return{bodyWidth:r,fixedTableHeight:l,mainTableHeight:s,leftTableWidth:c,rightTableWidth:d,windowHeight:g,footerHeight:C(()=>Kr({height:e.footerHeight})),emptyStyle:C(()=>({top:pn(i(f)),bottom:pn(e.footerHeight),width:pn(e.width)})),rootStyle:h,headerHeight:f}};function xG(e){const t=M(),n=M(),a=M(),{columns:o,columnsStyles:r,columnsTotalWidth:s,fixedColumnsOnLeft:l,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=yG(e,Ht(e,"columns"),Ht(e,"fixed")),{scrollTo:p,scrollToLeft:g,scrollToTop:h,scrollToRow:v,onScroll:m,onVerticalScroll:b,scrollPos:w}=wG(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:q}),y=ge("table-v2"),S=dt(),k=Tt(!1),{expandedRowKeys:x,lastRenderedRowIndex:O,isDynamic:T,isResetting:I,rowHeights:_,resetAfterIndex:N,onRowExpanded:$,onRowHeightChange:B,onRowHovered:K,onRowsRendered:j}=SG(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:S,ns:y,isScrolling:k}),{data:W,depthMap:A}=CG(e,{expandedRowKeys:x,lastRenderedRowIndex:O,resetAfterIndex:N}),P=C(()=>{const{estimatedRowHeight:te,rowHeight:fe}=e,he=i(W);return Be(te)?Object.values(i(_)).reduce((ve,Ie)=>ve+Ie,0):he.length*fe}),{bodyWidth:V,fixedTableHeight:F,mainTableHeight:H,leftTableWidth:U,rightTableWidth:J,windowHeight:ee,footerHeight:ae,emptyStyle:ce,rootStyle:Z,headerHeight:de}=EG(e,{columnsTotalWidth:s,fixedColumnsOnLeft:l,fixedColumnsOnRight:u,rowsHeight:P}),ue=M(),Y=C(()=>{const te=i(W).length===0;return we(e.fixedData)?e.fixedData.length===0&&te:te});function Q(te){const{estimatedRowHeight:fe,rowHeight:he,rowKey:ve}=e;return fe?i(_)[i(W)[te][ve]]||fe:he}const D=M(!1);function q(){const{onEndReached:te}=e;if(!te)return;const{scrollTop:fe}=i(w),he=i(P),ve=he-(fe+i(ee))+e.hScrollbarSize;!D.value&&i(O)>=0&&he<=fe+i(H)-i(de)?(D.value=!0,te(ve)):D.value=!1}return pe(()=>i(P),()=>D.value=!1),pe(()=>e.expandedRowKeys,te=>x.value=te,{deep:!0}),{columns:o,containerRef:ue,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:T,isResetting:I,isScrolling:k,hasFixedColumns:c,columnsStyles:r,columnsTotalWidth:s,data:W,expandedRowKeys:x,depthMap:A,fixedColumnsOnLeft:l,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:V,emptyStyle:ce,rootStyle:Z,footerHeight:ae,mainTableHeight:H,fixedTableHeight:F,leftTableWidth:U,rightTableWidth:J,showEmpty:Y,getRowHeight:Q,onColumnSorted:f,onRowHovered:K,onRowExpanded:$,onRowsRendered:j,onRowHeightChange:B,scrollTo:p,scrollToLeft:g,scrollToTop:h,scrollToRow:v,onScroll:m,onVerticalScroll:b}}const gg=Symbol("tableV2"),kx="tableV2GridScrollLeft",TG=se({name:"ElTableV2Header",props:mg,setup(e,{slots:t,expose:n}){const a=ge("table-v2"),o=$e(kx),r=M(),s=C(()=>Kr({width:e.width,height:e.height})),l=C(()=>Kr({width:e.rowWidth,height:e.height})),u=C(()=>Dn(i(e.headerHeight))),c=p=>{const g=i(r);Ne(()=>{g?.scroll&&g.scroll({left:p})})},d=()=>{const p=a.e("fixed-header-row"),{columns:g,fixedHeaderData:h,rowHeight:v}=e;return h?.map((m,b)=>{const w=Kr({height:v,width:"100%"});return t.fixed?.({class:p,columns:g,rowData:m,rowIndex:-(b+1),style:w})})},f=()=>{const p=a.e("dynamic-header-row"),{columns:g}=e;return i(u).map((h,v)=>{const m=Kr({width:"100%",height:h});return t.dynamic?.({class:p,columns:g,headerIndex:v,style:m})})};return yo(()=>{o?.value&&c(o.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return X("div",{ref:r,class:e.class,style:i(s),role:"rowgroup"},[X("div",{style:i(l),class:a.e("header")},[f(),d()])])}}}),OG="ElTableV2Grid",_G=e=>{const t=M(),n=M(),a=M(0),o=C(()=>{const{data:m,rowHeight:b,estimatedRowHeight:w}=e;if(!w)return m.length*b}),r=C(()=>{const{fixedData:m,rowHeight:b}=e;return(m?.length||0)*b}),s=C(()=>Pc(e.headerHeight)),l=C(()=>{const{height:m}=e;return Math.max(0,m-i(s)-i(r))}),u=C(()=>i(s)+i(r)>0),c=({data:m,rowIndex:b})=>m[b][e.rowKey];function d({rowCacheStart:m,rowCacheEnd:b,rowVisibleStart:w,rowVisibleEnd:y}){e.onRowsRendered?.({rowCacheStart:m,rowCacheEnd:b,rowVisibleStart:w,rowVisibleEnd:y})}function f(m,b){n.value?.resetAfterRowIndex(m,b)}function p(m,b){const w=i(t),y=i(n);ot(m)?(w?.scrollToLeft(m.scrollLeft),a.value=m.scrollLeft,y?.scrollTo(m)):(w?.scrollToLeft(m),a.value=m,y?.scrollTo({scrollLeft:m,scrollTop:b}))}function g(m){i(n)?.scrollTo({scrollTop:m})}function h(m,b){const w=i(n);if(!w)return;const y=a.value;w.scrollToItem(m,0,b),y&&p({scrollLeft:y})}function v(){i(n)?.$forceUpdate(),i(t)?.$forceUpdate()}return pe(()=>e.bodyWidth,()=>{Be(e.estimatedRowHeight)&&n.value?.resetAfter({columnIndex:0},!1)}),{bodyRef:n,forceUpdate:v,fixedRowHeight:r,gridHeight:l,hasHeader:u,headerHeight:s,headerRef:t,totalHeight:o,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:p,scrollToTop:g,scrollToRow:h,scrollLeft:a}},bg=se({name:OG,props:Mc,setup(e,{slots:t,expose:n}){const{ns:a}=$e(gg),{bodyRef:o,fixedRowHeight:r,gridHeight:s,hasHeader:l,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:p,onItemRendered:g,resetAfterRowIndex:h,scrollTo:v,scrollToTop:m,scrollToRow:b,scrollLeft:w}=_G(e);St(kx,w),gu(async()=>{await Ne();const S=o.value?.states.scrollTop;S&&m(Math.round(S)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:v,scrollToTop:m,scrollToRow:b,resetAfterRowIndex:h});const y=()=>e.bodyWidth;return()=>{const{cache:S,columns:k,data:x,fixedData:O,useIsScrolling:T,scrollbarAlwaysOn:I,scrollbarEndGap:_,scrollbarStartGap:N,style:$,rowHeight:B,bodyWidth:K,estimatedRowHeight:j,headerWidth:W,height:A,width:P,getRowHeight:V,onScroll:F}=e,H=Be(j),U=H?_F:EF,J=i(c);return X("div",{role:"table",class:[a.e("table"),e.class],style:$},[X(U,{ref:o,data:x,useIsScrolling:T,itemKey:p,columnCache:0,columnWidth:H?y:K,totalColumn:1,totalRow:x.length,rowCache:S,rowHeight:H?V:B,width:P,height:i(s),class:a.e("body"),role:"rowgroup",scrollbarStartGap:N,scrollbarEndGap:_,scrollbarAlwaysOn:I,onScroll:F,onItemRendered:g,perfMode:!1},{default:ee=>{const ae=x[ee.rowIndex];return t.row?.({...ee,columns:k,rowData:ae})}}),i(l)&&X(TG,{ref:u,class:a.e("header-wrapper"),columns:k,headerData:x,headerHeight:e.headerHeight,fixedHeaderData:O,rowWidth:W,rowHeight:B,width:P,height:Math.min(J+i(r),A)},{dynamic:t.header,fixed:t.row})])}}});function RG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const IG=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return X(bg,pt({ref:n},a),RG(t)?t:{default:()=>[t]})};function $G(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const NG=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return X(bg,pt({ref:n},a),$G(t)?t:{default:()=>[t]})};function MG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const PG=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return X(bg,pt({ref:n},a),MG(t)?t:{default:()=>[t]})},AG=e=>{const{isScrolling:t}=$e(gg),n=M(!1),a=M(),o=C(()=>Be(e.estimatedRowHeight)&&e.rowIndex>=0),r=(u=!1)=>{const c=i(a);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:p,rowIndex:g,style:h}=e,{height:v}=c.getBoundingClientRect();n.value=!0,Ne(()=>{if(u||v!==Number.parseInt(h.height)){const m=d[0],b=m?.placeholderSign===du;f?.({rowKey:p,height:v,rowIndex:g},m&&!b&&m.fixed)}})},s=C(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,p=e.rowEventHandlers||{},g={};return Object.entries(p).forEach(([h,v])=>{Fe(v)&&(g[h]=m=>{v({event:m,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:h,hovered:v})=>{const m=g[h];g[h]=b=>{f({event:b,hovered:v,rowData:u,rowIndex:c,rowKey:d}),m?.(b)}}),g}),l=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:p}=e;c?.({expanded:u,rowData:d,rowIndex:f,rowKey:p})};return ht(()=>{i(o)&&r(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:a,eventHandlers:s,onExpand:l}},LG=se({name:"ElTableV2TableRow",props:gs,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:o,isScrolling:r,measurable:s,measured:l,rowRef:u,onExpand:c}=AG(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:p,depth:g,rowData:h,rowIndex:v,style:m}=e;let b=d.map((w,y)=>{const S=we(h.children)&&h.children.length>0&&w.key===p;return n.cell({column:w,columns:d,columnIndex:y,depth:g,style:f[w.key],rowData:h,rowIndex:v,isScrolling:i(r),expandIconProps:S?{rowData:h,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(b=n.row({cells:b.map(w=>we(w)&&w.length===1?w[0]:w),style:m,columns:d,depth:g,rowData:h,rowIndex:v,isScrolling:i(r)})),i(s)){const{height:w,...y}=m||{},S=i(l);return X("div",pt({ref:u,class:e.class,style:S?m:y,role:"row"},a,i(o)),[b])}return X("div",pt(a,{ref:u,class:e.class,style:m,role:"row"},i(o)),[b])}}});function DG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const BG=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:o,expandColumnKey:r,expandedRowKeys:s,estimatedRowHeight:l,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:p,rowProps:g,rowClass:h,rowKey:v,rowEventHandlers:m,ns:b,onRowHovered:w,onRowExpanded:y}=e,S=Ps(h,{columns:n,rowData:c,rowIndex:d},""),k=Ps(g,{columns:n,rowData:c,rowIndex:d}),x=c[v],O=o[x]||0,T=!!r,I=d<0,_=[b.e("row"),S,b.is("expanded",T&&s.includes(x)),b.is("fixed",!O&&I),b.is("customized",!!t.row),{[b.e(`row-depth-${O}`)]:T&&d>=0}],N=u?w:void 0,$={...k,columns:n,columnsStyles:a,class:_,depth:O,expandColumnKey:r,estimatedRowHeight:I?void 0:l,isScrolling:p,rowIndex:d,rowData:c,rowKey:x,rowEventHandlers:m,style:f};return X(LG,pt($,{onRowExpand:y,onMouseenter:j=>{N?.({hovered:!0,rowKey:x,event:j,rowData:c,rowIndex:d})},onMouseleave:j=>{N?.({hovered:!1,rowKey:x,event:j,rowData:c,rowIndex:d})},rowkey:x}),DG(t)?t:{default:()=>[t]})},yg=(e,{slots:t})=>{const{cellData:n,style:a}=e,o=n?.toString?.()||"",r=oe(t,"default",e,()=>[o]);return X("div",{class:e.class,title:o,style:a},[r])};yg.displayName="ElTableV2Cell";yg.inheritAttrs=!1;const Ex=e=>{const{expanded:t,expandable:n,onExpand:a,style:o,size:r,ariaLabel:s}=e;return X("button",pt({onClick:n?()=>a(!t):void 0,ariaLabel:s,ariaExpanded:t,class:e.class},{type:"button"}),[X(De,{size:r,style:o},{default:()=>[X(sa,null,null)]})])};Ex.inheritAttrs=!1;const nv=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:o,isScrolling:r,rowData:s,rowIndex:l,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:p,expandColumnKey:g,indentSize:h,iconSize:v,rowKey:m},{slots:b})=>{const w=Kr(u);if(t.placeholderSign===du)return X("div",{class:d.em("row-cell","placeholder"),style:w},null);const{cellRenderer:y,dataKey:S,dataGetter:k}=t,x=Fe(k)?k({columns:e,column:t,columnIndex:n,rowData:s,rowIndex:l}):yn(s,S??""),O=Ps(p,{cellData:x,columns:e,column:t,columnIndex:n,rowIndex:l,rowData:s}),T={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:x,isScrolling:r,rowData:s,rowIndex:l},I=Cx(y),_=I?I(T):oe(b,"default",T,()=>[X(yg,T,null)]),N=[d.e("row-cell"),t.class,t.align==="center"&&d.is("align-center"),t.align==="right"&&d.is("align-right")],$=l>=0&&g&&t.key===g,B=l>=0&&c.includes(s[m]);let K;const j=`margin-inline-start: ${a*h}px;`;return $&&(ot(o)?K=X(Ex,pt(o,{class:[d.e("expand-icon"),d.is("expanded",B)],size:v,expanded:B,ariaLabel:f(B?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:j,expandable:!0}),null):K=X("div",{style:[j,`width: ${v}px; height: ${v}px;`].join(" ")},null)),X("div",pt({class:N,style:w},O,{role:"cell"}),[K,_])};nv.inheritAttrs=!1;const VG=Ee({class:String,columns:Fu,columnsStyles:{type:G(Object),required:!0},headerIndex:Number,style:{type:G(Object)}}),FG=se({name:"ElTableV2HeaderRow",props:VG,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:o,style:r}=e;let s=n.map((l,u)=>t.cell({columns:n,column:l,columnIndex:u,headerIndex:o,style:a[l.key]}));return t.header&&(s=t.header({cells:s.map(l=>we(l)&&l.length===1?l[0]:l),columns:n,headerIndex:o})),X("div",{class:e.class,style:r,role:"row"},[s])}}});function zG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const HG=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:o,headerProps:r,ns:s},{slots:l})=>{const u={columns:e,headerIndex:n},c=[s.e("header-row"),Ps(o,u,""),s.is("customized",!!l.header)];return X(FG,{...Ps(r,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:a},zG(l)?l:{default:()=>[l]})},wg=(e,{slots:t})=>oe(t,"default",e,()=>[X("div",{class:e.class,title:e.column?.title},[e.column?.title])]);wg.displayName="ElTableV2HeaderCell";wg.inheritAttrs=!1;const KG=e=>{const{sortOrder:t}=e;return X("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[X(De,{size:14},{default:()=>[X(t==="asc"?DA:AA,null,null)]})])},i1=(e,{slots:t})=>{const{column:n,ns:a,t:o,style:r,onColumnSorted:s}=e,l=Kr(r);if(n.placeholderSign===du)return X("div",{class:a.em("header-row-cell","placeholder"),style:l},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:a.e("header-cell-text")},p=Cx(u),g=p?p(f):oe(t,"default",f,()=>[X(wg,f,null)]),{sortBy:h,sortState:v,headerCellProps:m}=e;let b,w,y;if(v){const k=v[n.key];b=!!tv[k],w=b?k:"asc"}else b=n.key===h.key,w=b?h.order:"asc";w==="asc"?y="ascending":w==="desc"?y="descending":y=void 0;const S=[a.e("header-cell"),Ps(c,e,""),n.align==="center"&&a.is("align-center"),n.align==="right"&&a.is("align-right"),d&&a.is("sortable")];return X("div",pt({...Ps(m,e),onClick:n.sortable?s:void 0,ariaSort:d?y:void 0,class:S,style:l,"data-key":n.key},{role:"columnheader"}),[g,d&&X(KG,{class:[a.e("sort-icon"),b&&a.is("sorting")],sortOrder:w,ariaLabel:o("el.table.sortLabel",{column:n.title||""})},null)])},xx=(e,{slots:t})=>X("div",{class:e.class,style:e.style},[t.default?.()]);xx.displayName="ElTableV2Footer";const Tx=(e,{slots:t})=>{const n=oe(t,"default",{},()=>[X(GE,null,null)]);return X("div",{class:e.class,style:e.style},[n])};Tx.displayName="ElTableV2Empty";const Ox=(e,{slots:t})=>X("div",{class:e.class,style:e.style},[t.default?.()]);Ox.displayName="ElTableV2Overlay";function li(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const WG=se({name:"ElTableV2",props:gG,slots:Object,setup(e,{slots:t,expose:n}){const a=ge("table-v2"),{t:o}=xt(),{columnsStyles:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:p,data:g,depthMap:h,expandedRowKeys:v,hasFixedColumns:m,mainTableRef:b,leftTableRef:w,rightTableRef:y,isDynamic:S,isResetting:k,isScrolling:x,bodyWidth:O,emptyStyle:T,rootStyle:I,footerHeight:_,showEmpty:N,scrollTo:$,scrollToLeft:B,scrollToTop:K,scrollToRow:j,getRowHeight:W,onColumnSorted:A,onRowHeightChange:P,onRowHovered:V,onRowExpanded:F,onRowsRendered:H,onScroll:U,onVerticalScroll:J}=xG(e);return n({scrollTo:$,scrollToLeft:B,scrollToTop:K,scrollToRow:j}),St(gg,{ns:a,isResetting:k,isScrolling:x}),()=>{const{cache:ee,cellProps:ae,estimatedRowHeight:ce,expandColumnKey:Z,fixedData:de,headerHeight:ue,headerClass:Y,headerProps:Q,headerCellProps:D,sortBy:q,sortState:te,rowHeight:fe,rowClass:he,rowEventHandlers:ve,rowKey:Ie,rowProps:Le,scrollbarAlwaysOn:_e,indentSize:ye,iconSize:Te,useIsScrolling:be,vScrollbarSize:Pe,width:He}=e,Je=i(g),Qe={cache:ee,class:a.e("main"),columns:i(u),data:Je,fixedData:de,estimatedRowHeight:ce,bodyWidth:i(O),headerHeight:ue,headerWidth:i(O),height:i(c),mainTableRef:b,rowKey:Ie,rowHeight:fe,scrollbarAlwaysOn:_e,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:be,width:He,getRowHeight:W,onRowsRendered:H,onScroll:U},lt=i(f),Ze=i(d),gt={cache:ee,class:a.e("left"),columns:i(s),data:Je,fixedData:de,estimatedRowHeight:ce,leftTableRef:w,rowHeight:fe,bodyWidth:lt,headerWidth:lt,headerHeight:ue,height:Ze,rowKey:Ie,scrollbarAlwaysOn:_e,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:be,width:lt,getRowHeight:W,onScroll:J},At=i(p),zt={cache:ee,class:a.e("right"),columns:i(l),data:Je,fixedData:de,estimatedRowHeight:ce,rightTableRef:y,rowHeight:fe,bodyWidth:At,headerWidth:At,headerHeight:ue,height:Ze,rowKey:Ie,scrollbarAlwaysOn:_e,scrollbarStartGap:2,scrollbarEndGap:Pe,width:At,style:`${a.cssVarName("table-scrollbar-size")}: ${Pe}px`,useIsScrolling:be,getRowHeight:W,onScroll:J},nt=i(r),ft={ns:a,depthMap:i(h),columnsStyles:nt,expandColumnKey:Z,expandedRowKeys:i(v),estimatedRowHeight:ce,hasFixedColumns:i(m),rowProps:Le,rowClass:he,rowKey:Ie,rowEventHandlers:ve,onRowHovered:V,onRowExpanded:F,onRowHeightChange:P},me={cellProps:ae,expandColumnKey:Z,indentSize:ye,iconSize:Te,rowKey:Ie,expandedRowKeys:i(v),ns:a,t:o},je={ns:a,headerClass:Y,headerProps:Q,columnsStyles:nt},ie={ns:a,t:o,sortBy:q,sortState:te,headerCellProps:D,onColumnSorted:A},xe={row:bt=>X(BG,pt(bt,ft),{row:t.row,cell:vt=>{let Et;return t.cell?X(nv,pt(vt,me,{style:nt[vt.column.key]}),li(Et=t.cell(vt))?Et:{default:()=>[Et]}):X(nv,pt(vt,me,{style:nt[vt.column.key]}),null)}}),header:bt=>X(HG,pt(bt,je),{header:t.header,cell:vt=>{let Et;return t["header-cell"]?X(i1,pt(vt,ie,{style:nt[vt.column.key]}),li(Et=t["header-cell"](vt))?Et:{default:()=>[Et]}):X(i1,pt(vt,ie,{style:nt[vt.column.key]}),null)}})},Ue=[e.class,a.b(),a.e("root"),a.is("dynamic",i(S))],et={class:a.e("footer"),style:i(_)};return X("div",{class:Ue,style:i(I)},[X(IG,Qe,li(xe)?xe:{default:()=>[xe]}),X(NG,gt,li(xe)?xe:{default:()=>[xe]}),X(PG,zt,li(xe)?xe:{default:()=>[xe]}),t.footer&&X(xx,et,{default:t.footer}),i(N)&&X(Tx,{class:a.e("empty"),style:i(T)},{default:t.empty}),t.overlay&&X(Ox,{class:a.e("overlay")},{default:t.overlay})])}}}),jG=Ee({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:G(Function)}}),UG=e=>{const t=M(),n=M(0),a=M(0);let o;return ht(()=>{o=nn(t,([r])=>{const{width:s,height:l}=r.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(r.target),p=Number.parseInt(u)||0,g=Number.parseInt(c)||0,h=Number.parseInt(d)||0,v=Number.parseInt(f)||0;n.value=s-p-g,a.value=l-h-v}).stop}),Vt(()=>{o?.()}),pe([n,a],([r,s])=>{e.onResize?.({width:r,height:s})}),{sizer:t,width:n,height:a}},qG=se({name:"ElAutoResizer",props:jG,setup(e,{slots:t}){const n=ge("auto-resizer"),{height:a,width:o,sizer:r}=UG(e),s={width:"100%",height:"100%"};return()=>X("div",{ref:r,class:n.b(),style:s},[t.default?.({height:a.value,width:o.value})])}}),YG=st(WG),GG=st(qG),Ef=Symbol("tabsRootContextKey"),XG=Ee({tabs:{type:G(Array),default:()=>fn([])},tabRefs:{type:G(Object),default:()=>fn({})}}),u1="ElTabBar";var JG=se({name:u1,__name:"tab-bar",props:XG,setup(e,{expose:t}){const n=e,a=$e(Ef);a||rn(u1,"");const o=ge("tabs"),r=M(),s=M(),l=C(()=>Rt(a.props.defaultValue)||!!s.value?.transform),u=()=>{let g=0,h=0;const v=["top","bottom"].includes(a.props.tabPosition)?"width":"height",m=v==="width"?"x":"y",b=m==="x"?"left":"top";return n.tabs.every(w=>{if(Rt(w.paneName))return!1;const y=n.tabRefs[w.paneName];if(!y)return!1;if(!w.active)return!0;g=y[`offset${rp(b)}`],h=y[`client${rp(v)}`];const S=window.getComputedStyle(y);return v==="width"&&(h-=Number.parseFloat(S.paddingLeft)+Number.parseFloat(S.paddingRight),g+=Number.parseFloat(S.paddingLeft)),!1}),{[v]:`${h}px`,transform:`translate${rp(m)}(${g}px)`}},c=()=>s.value=u(),d=[],f=()=>{d.forEach(g=>g.stop()),d.length=0,Object.values(n.tabRefs).forEach(g=>{d.push(nn(g,c))})};pe(()=>n.tabs,async()=>{await Ne(),c(),f()},{immediate:!0});const p=nn(r,()=>c());return Vt(()=>{d.forEach(g=>g.stop()),d.length=0,p.stop()}),t({ref:r,update:c}),(g,h)=>l.value?(E(),L("div",{key:0,ref_key:"barRef",ref:r,class:R([i(o).e("active-bar"),i(o).is(i(a).props.tabPosition)]),style:ze(s.value)},null,6)):re("v-if",!0)}}),ZG=JG;const QG=Ee({panes:{type:G(Array),default:()=>fn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),eX={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},c1="ElTabNav",tX=se({name:c1,props:QG,emits:eX,setup(e,{expose:t,emit:n}){const a=$e(Ef);a||rn(c1,"");const o=ge("tabs"),r=_$(),s=I$(),l=M(),u=M(),c=M(),d=M({}),f=M(),p=M(!1),g=M(0),h=M(!1),v=M(!0),m=M(!1),b=Tt(),w=C(()=>["top","bottom"].includes(a.props.tabPosition)),y=C(()=>w.value?"width":"height"),S=C(()=>{const U=y.value==="width"?"X":"Y";return{transition:m.value?"none":void 0,transform:`translate${U}(-${g.value}px)`}}),{width:k,height:x}=dh(l),{width:O,height:T}=dh(u,{width:0,height:0},{box:"border-box"}),I=C(()=>w.value?k.value:x.value),_=C(()=>w.value?O.value:T.value),{onWheel:N}=Bk({atStartEdge:C(()=>g.value<=0),atEndEdge:C(()=>_.value-g.value<=I.value),layout:C(()=>w.value?"horizontal":"vertical")},U=>{g.value=Pa(g.value+U,0,_.value-I.value)}),$=U=>{m.value=!0,N(U),Ra(()=>{m.value=!1})},B=()=>{if(!l.value)return;const U=l.value.getBoundingClientRect()[y.value],J=g.value;J&&(g.value=J>U?J-U:0)},K=()=>{if(!l.value||!u.value)return;const U=u.value.getBoundingClientRect()[y.value],J=l.value.getBoundingClientRect()[y.value],ee=g.value;Vo(U-ee,J)&&(g.value=U-ee>J*2?ee+J:U-J)},j=async()=>{const U=u.value;if(!p.value||!c.value||!l.value||!U)return;await Ne();const J=d.value[e.currentName];if(!J)return;const ee=l.value,ae=J.getBoundingClientRect(),ce=ee.getBoundingClientRect(),Z=ce.left+1,de=ce.right-1,ue=U.getBoundingClientRect(),Y=w.value?ue.width-ce.width:ue.height-ce.height,Q=g.value;let D=Q;w.value?(ae.leftde&&(D=Q+ae.right-de)):(ae.topce.bottom&&(D=Q+(ae.bottom-ce.bottom))),D=Math.max(D,0),g.value=Math.min(D,Y)},W=()=>{if(!u.value||!l.value)return;e.stretch&&f.value?.update();const U=u.value.getBoundingClientRect()[y.value],J=l.value.getBoundingClientRect()[y.value],ee=g.value;J0&&(g.value=0))},A=U=>{const J=qt(U);let ee=0;switch(J){case Se.left:case Se.up:ee=-1;break;case Se.right:case Se.down:ee=1;break;default:return}const ae=Array.from(U.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let ce=ae.indexOf(U.target)+ee;ce<0?ce=ae.length-1:ce>=ae.length&&(ce=0),ae[ce].focus({preventScroll:!0}),ae[ce].click(),P()},P=()=>{v.value&&(h.value=!0)},V=()=>h.value=!1,F=(U,J)=>{d.value[J]=U},H=async()=>{await Ne(),d.value[e.currentName]?.focus({preventScroll:!0})};return pe(r,U=>{U==="hidden"?v.value=!1:U==="visible"&&setTimeout(()=>v.value=!0,50)}),pe(s,U=>{U?setTimeout(()=>v.value=!0,50):v.value=!1}),nn(c,()=>{Ra(W)}),ht(()=>setTimeout(()=>j(),0)),yo(()=>W()),t({scrollToActiveTab:j,removeFocus:V,focusActiveTab:H,tabListRef:u,tabBarRef:f,scheduleRender:()=>Sc(b)}),()=>{const U=p.value?[X("span",{class:[o.e("nav-prev"),o.is("disabled",!p.value.prev)],onClick:B},[X(De,null,{default:()=>[X(mr,null,null)]})]),X("span",{class:[o.e("nav-next"),o.is("disabled",!p.value.next)],onClick:K},[X(De,null,{default:()=>[X(sa,null,null)]})])]:null,J=e.panes.map((ee,ae)=>{const ce=ee.uid,Z=ee.props.disabled,de=ee.props.name??ee.index??`${ae}`,ue=!Z&&(ee.isClosable||ee.props.closable!==!1&&e.editable);ee.index=`${ae}`;const Y=ue?X(De,{class:"is-icon-close",onClick:q=>n("tabRemove",ee,q)},{default:()=>[X(Qa,null,null)]}):null,Q=ee.slots.label?.()||ee.props.label,D=!Z&&ee.active?e.tabindex??a.props.tabindex:-1;return X("div",{ref:q=>F(q,de),class:[o.e("item"),o.is(a.props.tabPosition),o.is("active",ee.active),o.is("disabled",Z),o.is("closable",ue),o.is("focus",h.value)],id:`tab-${de}`,key:`tab-${ce}`,"aria-controls":`pane-${de}`,role:"tab","aria-selected":ee.active,tabindex:D,onFocus:()=>P(),onBlur:()=>V(),onClick:q=>{V(),n("tabClick",ee,de,q)},onKeydown:q=>{const te=qt(q);ue&&(te===Se.delete||te===Se.backspace)&&n("tabRemove",ee,q)}},[Q,Y])});return b.value,X("div",{ref:c,class:[o.e("nav-wrap"),o.is("scrollable",!!p.value),o.is(a.props.tabPosition)]},[U,X("div",{class:o.e("nav-scroll"),ref:l},[e.panes.length>0?X("div",{class:[o.e("nav"),o.is(a.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:S.value,role:"tablist",onKeydown:A,onWheel:$},[e.type?null:X(ZG,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),J]):null])])}}}),nX=Ee({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:G(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),Ip=e=>Ae(e)||Be(e),aX={[at]:e=>Ip(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Ip(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Ip(e),tabAdd:()=>!0},oX=se({name:"ElTabs",props:nX,emits:aX,setup(e,{emit:t,slots:n,expose:a}){const o=ge("tabs"),r=C(()=>["left","right"].includes(e.tabPosition)),{children:s,addChild:l,removeChild:u,ChildrenSorter:c}=pf(dt(),"ElTabPane"),d=M(),f=M((Rt(e.modelValue)?e.defaultValue:e.modelValue)??"0"),p=async(w,y=!1)=>{if(!(f.value===w||Rt(w)))try{let S;if(e.beforeLeave){const k=e.beforeLeave(w,f.value);S=k instanceof Promise?await k:k}else S=!0;if(S!==!1){const k=s.value.find(x=>x.paneName===f.value)?.isFocusInsidePane();f.value=w,y&&(t(at,w),t("tabChange",w)),d.value?.removeFocus?.(),k&&d.value?.focusActiveTab()}}catch{}},g=(w,y,S)=>{w.props.disabled||(t("tabClick",w,S),p(y,!0))},h=(w,y)=>{w.props.disabled||Rt(w.props.name)||(y.stopPropagation(),t("edit",w.props.name,"remove"),t("tabRemove",w.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")},m=w=>{const y=qt(w);[Se.enter,Se.numpadEnter].includes(y)&&v()},b=w=>{const y=w.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?w.children[0].el:w.children[1].el;y!==S&&y.before(S)};return pe(()=>e.modelValue,w=>p(w)),pe(f,async()=>{await Ne(),d.value?.scrollToActiveTab()}),St(Ef,{props:e,currentName:f,registerPane:l,unregisterPane:u,nav$:d}),a({currentName:f,get tabNavRef(){return ku(d.value,["scheduleRender"])}}),()=>{const w=n["add-icon"],y=e.editable||e.addable?X("div",{class:[o.e("new-tab"),r.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:v,onKeydown:m},[w?oe(n,"add-icon"):X(De,{class:o.is("icon-plus")},{default:()=>[X(OC,null,null)]})]):null,S=()=>X(tX,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:g,onTabRemove:h},null),k=X("div",{class:[o.e("header"),r.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[X(c,null,{default:S,$stable:!0}),y]),x=X("div",{class:o.e("content")},[oe(n,"default")]);return X("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:b,onVnodeUpdated:b},[x,k])}}}),rX=Ee({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),sX=["id","aria-hidden","aria-labelledby"],d1="ElTabPane";var lX=se({name:d1,__name:"tab-pane",props:rX,setup(e){const t=e,n=dt(),a=wn(),o=$e(Ef);o||rn(d1,"usage: ");const r=ge("tab-pane"),s=M(),l=M(),u=C(()=>t.closable??o.props.closable),c=C(()=>o.currentName.value===(t.name??l.value)),d=M(c.value),f=C(()=>t.name??l.value),p=C(()=>!t.lazy||d.value||c.value),g=()=>s.value?.contains(document.activeElement);pe(c,v=>{v&&(d.value=!0)});const h=Dt({uid:n.uid,getVnode:()=>n.vnode,slots:a,props:t,paneName:f,active:c,index:l,isClosable:u,isFocusInsidePane:g});return o.registerPane(h),Vt(()=>{o.unregisterPane(h)}),Dv(()=>{a.label&&o.nav$.value?.scheduleRender()}),(v,m)=>p.value?ct((E(),L("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:s,class:R(i(r).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[oe(v.$slots,"default")],10,sX)),[[$t,c.value]]):re("v-if",!0)}}),_x=lX;const iX=st(oX,{TabPane:_x}),uX=sn(_x),cX=Ee({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:wo,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var dX=se({name:"ElText",__name:"text",props:cX,setup(e){const t=e,n=M(),a=In(),o=ge("text"),r=C(()=>[o.b(),o.m(t.type),o.m(a.value),o.is("truncated",t.truncated),o.is("line-clamp",!Rt(t.lineClamp))]),s=()=>{if(wr().title)return;let l=!1;const u=n.value?.textContent||"";if(t.truncated){const c=n.value?.offsetWidth,d=n.value?.scrollWidth;c&&d&&d>c&&(l=!0)}else if(!Rt(t.lineClamp)){const c=n.value?.offsetHeight,d=n.value?.scrollHeight;c&&d&&d>c&&(l=!0)}l?n.value?.setAttribute("title",u):n.value?.removeAttribute("title")};return ht(s),yo(s),(l,u)=>(E(),le(it(e.tag),{ref_key:"textRef",ref:n,class:R(r.value),style:ze({"-webkit-line-clamp":e.lineClamp})},{default:ne(()=>[oe(l.$slots,"default")]),_:3},8,["class","style"]))}}),fX=dX;const Sg=st(fX),av="00:30",pX=Ee({format:{type:String,default:"HH:mm"},modelValue:{type:G(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:G(String),default:"light"},clearable:{type:Boolean,default:!0},size:Nn,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:av},minTime:{type:G(String)},maxTime:{type:G(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:G([String,Object]),default:()=>TC},clearIcon:{type:G([String,Object]),default:()=>Yo},popperClass:{type:String,default:""},popperStyle:{type:G([String,Object])},...zs}),rr=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},$p=(e,t)=>{const n=rr(e);if(!n)return-1;const a=rr(t);if(!a)return-1;const o=n.minutes+n.hours*60,r=a.minutes+a.hours*60;return o===r?0:o>r?1:-1},f1=e=>`${e}`.padStart(2,"0"),nl=e=>`${f1(e.hours)}:${f1(e.minutes)}`,hX=(e,t)=>{const n=rr(e);if(!n)return"";const a=rr(t);if(!a)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=a.minutes,o.hours+=a.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,nl(o)};var vX=se({name:"ElTimeSelect",__name:"time-select",props:pX,emits:[yt,"blur","focus","clear",at],setup(e,{expose:t}){rt.extend(Hm);const{Option:n}=es,a=e,o=ge("input"),r=M(),s=ln(),{lang:l}=xt(),u=C(()=>a.modelValue),c=C(()=>{const b=rr(a.start);return b?nl(b):null}),d=C(()=>{const b=rr(a.end);return b?nl(b):null}),f=C(()=>{const b=rr(a.minTime||"");return b?nl(b):null}),p=C(()=>{const b=rr(a.maxTime||"");return b?nl(b):null}),g=C(()=>{const b=rr(a.step),w=!b||b.hours<0||b.minutes<0||Number.isNaN(b.hours)||Number.isNaN(b.minutes)||b.hours===0&&b.minutes===0;return w&&jt("ElTimeSelect",`invalid step, fallback to default step (${av}).`),w?av:nl(b)}),h=C(()=>{const b=[],w=(y,S)=>{b.push({value:y,rawValue:S,disabled:$p(S,f.value||"-1:-1")<=0||$p(S,p.value||"100:100")>=0})};if(a.start&&a.end&&a.step){let y=c.value,S;for(;y&&d.value&&$p(y,d.value)<=0;)S=rt(y,"HH:mm").locale(l.value).format(a.format),w(S,y),y=hX(y,g.value);a.includeEndTime&&d.value&&b[b.length-1]?.rawValue!==d.value&&w(rt(d.value,"HH:mm").locale(l.value).format(a.format),d.value)}return b});return t({blur:()=>{r.value?.blur?.()},focus:()=>{r.value?.focus?.()}}),(b,w)=>(E(),le(i(es),{ref_key:"select",ref:r,name:e.name,"model-value":u.value,disabled:i(s),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":w[0]||(w[0]=y=>b.$emit(i("update:modelValue"),y)),onChange:w[1]||(w[1]=y=>b.$emit(i("change"),y)),onBlur:w[2]||(w[2]=y=>b.$emit("blur",y)),onFocus:w[3]||(w[3]=y=>b.$emit("focus",y)),onClear:w[4]||(w[4]=()=>b.$emit("clear"))},{prefix:ne(()=>[e.prefixIcon?(E(),le(i(De),{key:0,class:R(i(o).e("prefix-icon"))},{default:ne(()=>[(E(),le(it(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)]),default:ne(()=>[(E(!0),L(Ve,null,kt(h.value,y=>(E(),le(i(n),{key:y.value,label:y.value,value:y.value,disabled:y.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["name","model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}}),mX=vX;const gX=st(mX),Rx="timeline",bX=Ee({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),yX=se({name:"ElTimeline",props:bX,setup(e,{slots:t}){const n=ge("timeline");St(Rx,{props:e,slots:t});const a=C(()=>[n.b(),n.is(e.mode)]);return()=>{const o=La(t.default?.()??[]);return qe("ul",{class:a.value},e.reverse?o.reverse():o)}}}),wX=Ee({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:Ut},hollow:Boolean});var SX=se({name:"ElTimelineItem",__name:"timeline-item",props:wX,setup(e){const t=e,{props:n}=$e(Rx),a=ge("timeline-item"),o=C(()=>[a.e("node"),a.em("node",t.size||""),a.em("node",t.type||""),a.is("hollow",t.hollow)]),r=C(()=>[a.b(),{[a.e("center")]:t.center},a.is(n.mode)]);return(s,l)=>(E(),L("li",{class:R(r.value)},[z("div",{class:R(i(a).e("tail"))},null,2),s.$slots.dot?re("v-if",!0):(E(),L("div",{key:0,class:R(o.value),style:ze({backgroundColor:e.color})},[e.icon?(E(),le(i(De),{key:0,class:R(i(a).e("icon"))},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1},8,["class"])):re("v-if",!0)],6)),s.$slots.dot?(E(),L("div",{key:1,class:R(i(a).e("dot"))},[oe(s.$slots,"dot")],2)):re("v-if",!0),z("div",{class:R(i(a).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(E(),L("div",{key:0,class:R([i(a).e("timestamp"),i(a).is("top")])},Ce(e.timestamp),3)):re("v-if",!0),z("div",{class:R(i(a).e("content"))},[oe(s.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(E(),L("div",{key:1,class:R([i(a).e("timestamp"),i(a).is("bottom")])},Ce(e.timestamp),3)):re("v-if",!0)],2)],2))}}),Ix=SX;const CX=st(yX,{TimelineItem:Ix}),kX=sn(Ix),$x="left-check-change",Nx="right-check-change",al=Ee({data:{type:G(Array),default:()=>[]},titles:{type:G(Array),default:()=>[]},buttonTexts:{type:G(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:G(Function)},leftDefaultChecked:{type:G(Array),default:()=>[]},rightDefaultChecked:{type:G(Array),default:()=>[]},renderContent:{type:G(Function)},modelValue:{type:G(Array),default:()=>[]},format:{type:G(Object),default:()=>({})},filterable:Boolean,props:{type:G(Object),default:()=>fn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),ov=(e,t)=>[e,t].every(we)||we(e)&&En(t),EX={[yt]:(e,t,n)=>[e,n].every(we)&&["left","right"].includes(t),[at]:e=>we(e),[$x]:ov,[Nx]:ov},zu=e=>{const t={label:"label",key:"key",disabled:"disabled"};return C(()=>({...t,...e.props}))},xX=(e,t)=>({onSourceCheckedChange:(o,r)=>{e.leftChecked=o,r&&t($x,o,r)},onTargetCheckedChange:(o,r)=>{e.rightChecked=o,r&&t(Nx,o,r)}}),TX=e=>{const t=zu(e),n=C(()=>e.data.reduce((a,o)=>(a[o[t.value.key]]=o,a),{}));return{sourceData:C(()=>e.data.filter(a=>!e.modelValue.includes(a[t.value.key]))),targetData:C(()=>e.targetOrder==="original"?e.data.filter(a=>e.modelValue.includes(a[t.value.key])):e.modelValue.reduce((a,o)=>{const r=n.value[o];return r&&a.push(r),a},[]))}},OX=(e,t,n)=>{const a=zu(e),o=(l,u,c)=>{n(at,l),n(yt,l,u,c)};return{addToLeft:()=>{const l=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=l.indexOf(u);c>-1&&l.splice(c,1)}),o(l,"left",t.rightChecked)},addToRight:()=>{let l=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[a.value.key]);l=e.targetOrder==="unshift"?u.concat(l):l.concat(u),e.targetOrder==="original"&&(l=e.data.filter(c=>l.includes(c[a.value.key])).map(c=>c[a.value.key])),o(l,"right",t.leftChecked)}}},rv="checked-change",_X=Ee({data:al.data,optionRender:{type:G(Function)},placeholder:String,title:String,filterable:Boolean,format:al.format,filterMethod:al.filterMethod,defaultChecked:al.leftDefaultChecked,props:al.props}),RX={[rv]:ov},IX=(e,t,n)=>{const a=zu(e),o=C(()=>e.data.filter(d=>Fe(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),r=C(()=>o.value.filter(d=>!d[a.value.disabled])),s=C(()=>{const d=t.checked.length,f=e.data.length,{noChecked:p,hasChecked:g}=e.format;return p&&g?d>0?g.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):p.replace(/\${total}/g,f.toString()):`${d}/${f}`}),l=C(()=>{const d=t.checked.length;return d>0&&d{const d=r.value.map(f=>f[a.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?r.value.map(f=>f[a.value.key]):[]};return pe(()=>t.checked,(d,f)=>{u(),t.checkChangeByUser?n(rv,d,d.concat(f).filter(p=>!d.includes(p)||!f.includes(p))):(n(rv,d),t.checkChangeByUser=!0)}),pe(r,()=>{u()}),pe(()=>e.data,()=>{const d=[],f=o.value.map(p=>p[a.value.key]);t.checked.forEach(p=>{f.includes(p)&&d.push(p)}),t.checkChangeByUser=!1,t.checked=d}),pe(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(h=>f.includes(h)))return;const p=[],g=r.value.map(h=>h[a.value.key]);d.forEach(h=>{g.includes(h)&&p.push(h)}),t.checkChangeByUser=!1,t.checked=p},{immediate:!0}),{filteredData:o,checkableData:r,checkedSummary:s,isIndeterminate:l,updateAllChecked:u,handleAllCheckedChange:c}};var $X=se({name:"ElTransferPanel",__name:"transfer-panel",props:_X,emits:RX,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wn(),s=({option:S})=>S,{t:l}=xt(),u=ge("transfer"),c=Dt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=zu(a),{filteredData:f,checkedSummary:p,isIndeterminate:g,handleAllCheckedChange:h}=IX(a,c,o),v=C(()=>!ha(c.query)&&ha(f.value)),m=C(()=>!ha(r.default()[0].children)),{checked:b,allChecked:w,query:y}=Pn(c);return t({query:y}),(S,k)=>(E(),L("div",{class:R(i(u).b("panel"))},[z("p",{class:R(i(u).be("panel","header"))},[X(i(go),{modelValue:i(w),"onUpdate:modelValue":k[0]||(k[0]=x=>Gt(w)?w.value=x:null),indeterminate:i(g),"validate-event":!1,onChange:i(h)},{default:ne(()=>[z("span",{class:R(i(u).be("panel","header-title"))},Ce(e.title),3),z("span",{class:R(i(u).be("panel","header-count"))},Ce(i(p)),3)]),_:1},8,["modelValue","indeterminate","onChange"])],2),z("div",{class:R([i(u).be("panel","body"),i(u).is("with-footer",m.value)])},[e.filterable?(E(),le(i(Un),{key:0,modelValue:i(y),"onUpdate:modelValue":k[1]||(k[1]=x=>Gt(y)?y.value=x:null),class:R(i(u).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":i(NA),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):re("v-if",!0),ct(X(i(Ym),{modelValue:i(b),"onUpdate:modelValue":k[2]||(k[2]=x=>Gt(b)?b.value=x:null),"validate-event":!1,class:R([i(u).is("filterable",e.filterable),i(u).be("panel","list")])},{default:ne(()=>[(E(!0),L(Ve,null,kt(i(f),x=>(E(),le(i(go),{key:x[i(d).key],class:R(i(u).be("panel","item")),value:x[i(d).key],disabled:x[i(d).disabled],"validate-event":!1},{default:ne(()=>[X(s,{option:e.optionRender?.(x)},null,8,["option"])]),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[$t,!v.value&&!i(ha)(e.data)]]),ct(z("div",{class:R(i(u).be("panel","empty"))},[oe(S.$slots,"empty",{},()=>[wt(Ce(v.value?i(l)("el.transfer.noMatch"):i(l)("el.transfer.noData")),1)])],2),[[$t,v.value||i(ha)(e.data)]])],2),m.value?(E(),L("p",{key:0,class:R(i(u).be("panel","footer"))},[oe(S.$slots,"default")],2)):re("v-if",!0)],2))}}),p1=$X;const NX={key:0},MX={key:0};var PX=se({name:"ElTransfer",__name:"transfer",props:al,emits:EX,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wn(),{t:s}=xt(),l=ge("transfer"),{formItem:u}=Fn(),c=Dt({leftChecked:[],rightChecked:[]}),d=zu(a),{sourceData:f,targetData:p}=TX(a),{onSourceCheckedChange:g,onTargetCheckedChange:h}=xX(c,o),{addToLeft:v,addToRight:m}=OX(a,c,o),b=M(),w=M(),y=I=>{switch(I){case"left":b.value.query="";break;case"right":w.value.query="";break}},S=C(()=>a.buttonTexts.length===2),k=C(()=>a.titles[0]||s("el.transfer.titles.0")),x=C(()=>a.titles[1]||s("el.transfer.titles.1")),O=C(()=>a.filterPlaceholder||s("el.transfer.filterPlaceholder"));pe(()=>a.modelValue,()=>{a.validateEvent&&u?.validate?.("change").catch(ut)});const T=C(()=>I=>{if(a.renderContent)return a.renderContent(qe,I);const _=(r.default?.({option:I})||[]).filter(N=>N.type!==kn);return _.length?_:qe("span",I[d.value.label]||I[d.value.key])});return t({clearQuery:y,leftPanel:b,rightPanel:w}),(I,_)=>(E(),L("div",{class:R(i(l).b())},[X(p1,{ref_key:"leftPanel",ref:b,data:i(f),"option-render":T.value,placeholder:O.value,title:k.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:a.props,onCheckedChange:i(g)},{empty:ne(()=>[oe(I.$slots,"left-empty")]),default:ne(()=>[oe(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),z("div",{class:R(i(l).e("buttons"))},[X(i(Bn),{type:"primary",class:R([i(l).e("button"),i(l).is("with-texts",S.value)]),disabled:i(ha)(c.rightChecked),onClick:i(v)},{default:ne(()=>[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1}),i(Rt)(e.buttonTexts[0])?re("v-if",!0):(E(),L("span",NX,Ce(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),X(i(Bn),{type:"primary",class:R([i(l).e("button"),i(l).is("with-texts",S.value)]),disabled:i(ha)(c.leftChecked),onClick:i(m)},{default:ne(()=>[i(Rt)(e.buttonTexts[1])?re("v-if",!0):(E(),L("span",MX,Ce(e.buttonTexts[1]),1)),X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),X(p1,{ref_key:"rightPanel",ref:w,data:i(p),"option-render":T.value,placeholder:O.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:x.value,"default-checked":e.rightDefaultChecked,props:a.props,onCheckedChange:i(h)},{empty:ne(()=>[oe(I.$slots,"right-empty")]),default:ne(()=>[oe(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}}),AX=PX;const LX=st(AX),Cg="RootTree",Mx="NodeInstance",h1="TreeNodeMap",Px=Ee({data:{type:G(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:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:G(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:G(Function)},allowDrop:{type:G(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ut}}),DX={"check-change":(e,t,n)=>e&&Wt(t)&&Wt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,a)=>e&&t&&a instanceof Event,"node-contextmenu":(e,t,n,a)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,a)=>e&&a,"node-drop":(e,t,n,a)=>e&&t&&a,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},Ax="$treeNodeId",v1=function(e,t){!t||t.$treeNodeId||Object.defineProperty(t,Ax,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},kg=(e,t)=>t?.[e||"$treeNodeId"],sv=(e,t,n)=>{const a=e.value.currentNode;n();const o=e.value.currentNode;a!==o&&t("current-change",o?o.data:null,o)},Lx=e=>{let t=!0,n=!0,a=!0,o=!0;for(let r=0,s=e.length;r{n.canFocus=t,lv(n.childNodes,t)})};let BX=0;var iv=class Ac{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=BX++,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 n in t)Nt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const r=vc(this,"isLeaf");Wt(r)&&(this.isLeafByUser=r)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),we(this.data)||v1(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,o=t.key;o&&!En(this.key)&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),o&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode&&(t.currentNode.isCurrent=!1),t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||this.parent?.expanded===!0)&&(this.canFocus=!0)}setData(t){we(t)||v1(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&we(this.data)?n=this.data:n=vc(this,"children")||[];for(let a=0,o=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Ac)){if(!a){const o=this.getChildren(!0);o?.includes(t.data)||(Rt(n)||n<0?o?.push(t.data):o?.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Dt(new Ac(t)),t instanceof Ac&&t.initialize()}t.level=this.level+1,Rt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(a=>a.data===t);n&&this.removeChild(n)}expand(t,n){const a=()=>{if(n){let o=this.parent;for(;o&&o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),lv(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{we(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||gi(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,lv(this.childNodes,!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,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,a,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly&&!n)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const s=()=>{if(n){const l=this.childNodes;for(let f=0,p=l.length;f{s(),gi(this)},{checked:t!==!1});return}else s()}const r=this.parent;!r||r.level===0||!a&&!this.store.checkStrictly&&gi(r)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let o="children";return a&&(o=a.children||"children"),Rt(n[o])&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(r=>r.data),a={},o=[];t.forEach((r,s)=>{const l=r[Ax];l&&n.some(u=>u?.$treeNodeId===l)?a[l]={index:s,data:r}:o.push({index:s,data:r})}),this.store.lazy||n.forEach(r=>{a[r?.$treeNodeId]||this.removeChildByData(r)}),o.forEach(({index:r,data:s})=>{this.insertChild({data:s},r)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=r=>{this.childNodes=[],this.doCreateChildren(r,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,r)},o=()=>{this.loading=!1};this.store.load(this,a,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||gi(this)}},VX=class{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)Nt(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new iv({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,t=>{this.root.doCreateChildren(t),this._initDefaultCheckedNodes()},ut)}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,a=async function(o){const r=o.root?o.root.childNodes:o.childNodes;for(const[s,l]of r.entries())l.visible=!!t?.call(l,e,l.data,l),s%80===0&&s>0&&await Ne(),await a(l);if(!o.visible&&r.length){let s=!0;s=!r.some(l=>l.visible),o.root?o.root.visible=s===!1:o.visible=s===!1}e&&o.visible&&!o.isLeaf&&(!n||o.loaded)&&o.expand()};a(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof iv)return e;const t=ot(e)?kg(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){const n=this.getNode(t);n.parent?.insertBefore({data:e},n)}insertAfter(e,t){const n=this.getNode(t);n.parent?.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=Aa(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(n=>{const a=t[n];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!En(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(!(!e||!e.data))if(!t)this.nodesMap[e.id]=e;else{const n=e.key;En(n)||(this.nodesMap[n]=e)}}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(t=>{this.deregisterNode(t)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(r=>{(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&n.push(r.data),a(r)})};return a(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(t=>(t||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(a=>{a.indeterminate&&e.push(a.data),t(a)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)Nt(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const a=n.childNodes;for(let o=a.length-1;o>=0;o--){const r=a[o];this.remove(r.data)}for(let o=0,r=t.length;ol.level-u.level),o=Object.create(null),r=Object.keys(n);a.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{o[u.data[e]]=!0,u.childNodes?.length&&s(u)})};for(let l=0,u=a.length;l{g.isLeaf||g.setChecked(!1,!1,!0),f(g)}),p.reInitChecked()};f(c)}}}setCheckedNodes(e,t=!1){const n=this.key,a={};e.forEach(o=>{a[(o||{})[n]]=!0}),this._setCheckedKeys(n,t,a)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,a={};e.forEach(o=>{a[o]=!0}),this._setCheckedKeys(n,t,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(t=>{const n=this.getNode(t);n&&n.expand(null,this.autoExpandParent)})}setChecked(e,t,n){const a=this.getNode(e);a&&a.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){const n=e[this.key],a=this.nodesMap[n];this.setCurrentNode(a),t&&this.currentNode&&this.currentNode.level>1&&this.currentNode.parent?.expand(null,!0)}setCurrentNodeKey(e,t=!0){if(this.currentNodeKey=e,Aa(e)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&this.currentNode.parent?.expand(null,!0))}};function Dx(e){const t=$e(h1,null);let n={treeNodeExpand:a=>{e.node!==a&&e.node?.collapse()},children:new Set};return t&&t.children.add(n),Vt(()=>{t&&t.children.delete(n),n=null}),St(h1,n),{broadcastExpanded:a=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(a)}}}const Bx=Symbol("dragEvents");function FX({props:e,ctx:t,el$:n,dropIndicator$:a,store:o}){const r=ge("tree"),s=M({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return St(Bx,{treeNodeDragStart:({event:d,treeNode:f})=>{if(d.dataTransfer){if(Fe(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const p=f,g=s.value.dropNode;g&&g.node.id!==p.node.id&&ra(g.$el,r.is("drop-inner"));const h=s.value.draggingNode;if(!h||!p)return;let v=!0,m=!0,b=!0,w=!0;Fe(e.allowDrop)&&(v=e.allowDrop(h.node,p.node,"prev"),w=m=e.allowDrop(h.node,p.node,"inner"),b=e.allowDrop(h.node,p.node,"next")),d.dataTransfer.dropEffect=m||v||b?"move":"none",(v||m||b)&&g?.node.id!==p.node.id&&(g&&t.emit("node-drag-leave",h.node,g.node,d),t.emit("node-drag-enter",h.node,p.node,d)),v||m||b?s.value.dropNode=p:s.value.dropNode=null,p.node.nextSibling===h.node&&(b=!1),p.node.previousSibling===h.node&&(v=!1),p.node.contains(h.node,!1)&&(m=!1),(h.node===p.node||h.node.contains(p.node))&&(v=!1,m=!1,b=!1);const y=p.$el,S=y.querySelector(`.${r.be("node","content")}`).getBoundingClientRect(),k=n.value.getBoundingClientRect(),x=n.value.scrollTop;let O;const T=v?m?.25:b?.45:1:Number.NEGATIVE_INFINITY,I=b?m?.75:v?.55:0:Number.POSITIVE_INFINITY;let _=-9999;const N=d.clientY-S.top;NS.height*I?O="after":m?O="inner":O="none";const $=y.querySelector(`.${r.be("node","expand-icon")}`).getBoundingClientRect(),B=a.value;O==="before"?_=$.top-k.top+x:O==="after"&&(_=$.bottom-k.top+x),B.style.top=`${_}px`,B.style.left=`${$.right-k.left}px`,O==="inner"?Ua(y,r.is("drop-inner")):ra(y,r.is("drop-inner")),s.value.showDropIndicator=O==="before"||O==="after",s.value.allowDrop=s.value.showDropIndicator||w,s.value.dropType=O,t.emit("node-drag-over",h.node,p.node,d)},treeNodeDragEnd:d=>{const{draggingNode:f,dropType:p,dropNode:g}=s.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f?.node.data&&g){const h={data:f.node.data};p!=="none"&&f.node.remove(),p==="before"?g.node.parent?.insertBefore(h,g.node):p==="after"?g.node.parent?.insertAfter(h,g.node):p==="inner"&&g.node.insertChild(h),p!=="none"&&(o.value.registerNode(h),o.value.key&&f.node.eachNode(v=>{o.value.nodesMap[v.data[o.value.key]]?.setChecked(v.checked,!o.value.checkStrictly)})),ra(g.$el,r.is("drop-inner")),t.emit("node-drag-end",f.node,g.node,p,d),p!=="none"&&t.emit("node-drop",f.node,g.node,p,d)}f&&!g&&t.emit("node-drag-end",f.node,null,p,d),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0}}),{dragState:s}}var zX=se({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ge("tree"),n=$e(Mx),a=$e(Cg);return()=>{const o=e.node,{data:r,store:s}=o;return e.renderContent?e.renderContent(qe,{_self:n,node:o,data:r,store:s}):oe(a.ctx.slots,"default",{node:o,data:r},()=>[qe(Sg,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}}),HX=zX,KX=se({name:"ElTreeNode",components:{ElCollapseTransition:Sf,ElCheckbox:go,NodeContent:HX,ElIcon:De,Loading:vo},props:{node:{type:iv,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=ge("tree"),{broadcastExpanded:a}=Dx(e),o=$e(Cg),r=M(!1),s=M(!1),l=M(),u=M(),c=M(),d=$e(Bx),f=dt();St(Mx,f),o||jt("Tree","Can not find node's tree."),e.node.expanded&&(r.value=!0,s.value=!0);const p=o.props.props.children||"children";pe(()=>{const I=e.node.data?.[p];return I&&[...I]},()=>{e.node.updateChildren()}),pe(()=>e.node.indeterminate,I=>{v(e.node.checked,I)}),pe(()=>e.node.checked,I=>{v(I,e.node.indeterminate)}),pe(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),pe(()=>e.node.expanded,I=>{Ne(()=>r.value=I),I&&(s.value=!0)});const g=I=>o.props.nodeKey?kg(o.props.nodeKey,I.data):I.id,h=I=>{const _=e.props.class;if(!_)return{};let N;if(Fe(_)){const{data:$}=I;N=_($,I)}else N=_;return Ae(N)?{[N]:!0}:N},v=(I,_)=>{(l.value!==I||u.value!==_)&&o.ctx.emit("check-change",e.node.data,I,_),l.value=I,u.value=_},m=I=>{sv(o.store,o.ctx.emit,()=>{if(o?.props?.nodeKey){const _=g(e.node);o.store.value.setCurrentNodeKey(_)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&w(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&y(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,f,I)},b=I=>{o.instance.vnode.props?.onNodeContextmenu&&(I.stopPropagation(),I.preventDefault()),o.ctx.emit("node-contextmenu",I,e.node.data,e.node,f)},w=()=>{e.node.isLeaf||(r.value?(o.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},y=I=>{const _=o?.props.checkStrictly,N=e.node.childNodes;!_&&N.length&&(I=N.some($=>!$.isEffectivelyChecked)),e.node.setChecked(I,!_),Ne(()=>{const $=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:$.getCheckedNodes(),checkedKeys:$.getCheckedKeys(),halfCheckedNodes:$.getHalfCheckedNodes(),halfCheckedKeys:$.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:o,expanded:r,childNodeRendered:s,oldChecked:l,oldIndeterminate:u,getNodeKey:g,getNodeClass:h,handleSelectChange:v,handleClick:m,handleContextMenu:b,handleExpandIconClick:w,handleCheckChange:y,handleChildNodeExpand:(I,_,N)=>{a(_),o.ctx.emit("node-expand",I,_,N)},handleDragStart:I=>{o.props.draggable&&d.treeNodeDragStart({event:I,treeNode:e})},handleDragOver:I=>{I.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:I,treeNode:{$el:c.value,node:e.node}})},handleDrop:I=>{I.preventDefault()},handleDragEnd:I=>{o.props.draggable&&d.treeNodeDragEnd(I)},CaretRight:xC}}});const WX=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],jX=["aria-expanded"];function UX(e,t,n,a,o,r){const s=Mt("el-icon"),l=Mt("el-checkbox"),u=Mt("loading"),c=Mt("node-content"),d=Mt("el-tree-node"),f=Mt("el-collapse-transition");return ct((E(),L("div",{ref:"node$",class:R([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Xe((...p)=>e.handleClick&&e.handleClick(...p),["stop"])),onContextmenu:t[3]||(t[3]=(...p)=>e.handleContextMenu&&e.handleContextMenu(...p)),onDragstart:t[4]||(t[4]=Xe((...p)=>e.handleDragStart&&e.handleDragStart(...p),["stop"])),onDragover:t[5]||(t[5]=Xe((...p)=>e.handleDragOver&&e.handleDragOver(...p),["stop"])),onDragend:t[6]||(t[6]=Xe((...p)=>e.handleDragEnd&&e.handleDragEnd(...p),["stop"])),onDrop:t[7]||(t[7]=Xe((...p)=>e.handleDrop&&e.handleDrop(...p),["stop"]))},[z("div",{class:R(e.ns.be("node","content")),style:ze({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(E(),le(s,{key:0,class:R([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Xe(e.handleExpandIconClick,["stop"])},{default:ne(()=>[(E(),le(it(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.showCheckbox?(E(),le(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Xe(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):re("v-if",!0),e.node.loading?(E(),le(s,{key:2,class:R([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ne(()=>[X(u)]),_:1},8,["class"])):re("v-if",!0),X(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),X(f,null,{default:ne(()=>[!e.renderAfterExpand||e.childNodeRendered?ct((E(),L("div",{key:0,class:R(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Xe(()=>{},["stop"]))},[(E(!0),L(Ve,null,kt(e.node.childNodes,p=>(E(),le(d,{key:e.getNodeKey(p),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:p,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,jX)),[[$t,e.expanded]]):re("v-if",!0)]),_:1})],42,WX)),[[$t,e.node.visible]])}var qX=Mn(KX,[["render",UX]]);function YX({el$:e},t){const n=ge("tree");ht(()=>{r()}),yo(()=>{e.value?.querySelectorAll("input[type=checkbox]").forEach(s=>{s.setAttribute("tabindex","-1")})});function a(s,l){const u=t.value.getNode(s[l].dataset.key);return u.canFocus&&u.visible&&(u.parent?.expanded||u.parent?.level===0)}Bt(e,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=qt(s),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(l);let f;if([Se.up,Se.down].includes(u)){if(s.preventDefault(),u===Se.up){f=d===-1?0:d!==0?d-1:c.length-1;const g=f;for(;!a(c,f);){if(f--,f===g){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d=c.length&&(f=0)}}f!==-1&&c[f].focus()}[Se.left,Se.right].includes(u)&&(s.preventDefault(),l.click());const p=l.querySelector('[type="checkbox"]');[Se.enter,Se.numpadEnter,Se.space].includes(u)&&p&&(s.preventDefault(),p.click())});const r=()=>{if(!e.value)return;const s=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(u=>{u.setAttribute("tabindex","-1")});const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}s[0]?.setAttribute("tabindex","0")}}var GX=se({name:"ElTree",components:{ElTreeNode:qX},props:Px,emits:DX,setup(e,t){const{t:n}=xt(),a=ge("tree"),o=M(new VX({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const r=M(o.value.root),s=M(null),l=M(null),u=M(null),{broadcastExpanded:c}=Dx(e),{dragState:d}=FX({props:e,ctx:t,el$:l,dropIndicator$:u,store:o});YX({el$:l},o);const f=dt(),p=C(()=>{let F=f?.parent;for(;F;){if(F.type.name==="ElTreeSelect")return!0;F=F.parent}return!1}),g=C(()=>{const{childNodes:F}=r.value;return(!F||F.length===0||F.every(({visible:H})=>!H))&&!p.value});pe(()=>e.currentNodeKey,F=>{o.value.setCurrentNodeKey(F??null)}),pe(()=>e.defaultCheckedKeys,(F,H)=>{dn(F,H)||o.value.setDefaultCheckedKey(F??[])}),pe(()=>e.defaultExpandedKeys,F=>{o.value.setDefaultExpandedKeys(F??[])}),pe(()=>e.data,F=>{o.value.setData(F)},{deep:!0}),pe(()=>e.checkStrictly,F=>{o.value.checkStrictly=F});const h=F=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(F)},v=F=>e.nodeKey?kg(e.nodeKey,F.data):F.id,m=F=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${F}`)},b=F=>{m("getNodePath");const H=o.value.getNode(F);if(!H)return[];const U=[H.data];let J=H.parent;for(;J&&J!==r.value;)U.push(J.data),J=J.parent;return U.reverse()},w=(F,H)=>o.value.getCheckedNodes(F,H),y=F=>o.value.getCheckedKeys(F),S=()=>{const F=o.value.getCurrentNode();return F?F.data:null},k=()=>{m("getCurrentKey");const F=S();return F?F[e.nodeKey]:null},x=(F,H)=>{m("setCheckedNodes"),o.value.setCheckedNodes(F,H)},O=(F,H)=>{m("setCheckedKeys"),o.value.setCheckedKeys(F,H)},T=(F,H,U=!1)=>{o.value.setChecked(F,H,U)},I=()=>o.value.getHalfCheckedNodes(),_=()=>o.value.getHalfCheckedKeys(),N=(F,H=!0)=>{m("setCurrentNode"),sv(o,t.emit,()=>{c(F),o.value.setUserCurrentNode(F,H)})},$=(F=null,H=!0)=>{m("setCurrentKey"),sv(o,t.emit,()=>{c(),o.value.setCurrentNodeKey(F,H)})},B=F=>o.value.getNode(F),K=F=>{o.value.remove(F)},j=(F,H)=>{o.value.append(F,H)},W=(F,H)=>{o.value.insertBefore(F,H)},A=(F,H)=>{o.value.insertAfter(F,H)},P=(F,H,U)=>{c(H),t.emit("node-expand",F,H,U)},V=(F,H)=>{m("updateKeyChildren"),o.value.updateChildren(F,H)};return St(Cg,{ctx:t,props:e,store:o,root:r,currentNode:s,instance:f}),St(Wo,void 0),{ns:a,store:o,root:r,currentNode:s,dragState:d,el$:l,dropIndicator$:u,isEmpty:g,filter:h,getNodeKey:v,getNodePath:b,getCheckedNodes:w,getCheckedKeys:y,getCurrentNode:S,getCurrentKey:k,setCheckedNodes:x,setCheckedKeys:O,setChecked:T,getHalfCheckedNodes:I,getHalfCheckedKeys:_,setCurrentNode:N,setCurrentKey:$,t:n,getNode:B,remove:K,append:j,insertBefore:W,insertAfter:A,handleNodeExpand:P,updateKeyChildren:V}}});function XX(e,t,n,a,o,r){const s=Mt("el-tree-node");return E(),L("div",{ref:"el$",class:R([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(E(!0),L(Ve,null,kt(e.root.childNodes,l=>(E(),le(s,{key:e.getNodeKey(l),node:l,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(E(),L("div",{key:0,class:R(e.ns.e("empty-block"))},[oe(e.$slots,"empty",{},()=>[z("span",{class:R(e.ns.e("empty-text"))},Ce(e.emptyText??e.t("el.tree.emptyText")),3)])],2)):re("v-if",!0),ct(z("div",{ref:"dropIndicator$",class:R(e.ns.e("drop-indicator"))},null,2),[[$t,e.dragState.showDropIndicator]])],2)}var JX=Mn(GX,[["render",XX]]);const Eg=st(JX),ZX=(e,{attrs:t,emit:n},{select:a,tree:o,key:r})=>{const s=ge("tree-select");pe(()=>e.data,()=>{e.filterable&&Ne(()=>{o.value?.filter(a.value?.states.inputValue)})},{flush:"post"});const l=u=>{const c=u.at(-1);if(c.expanded&&c.childNodes.at(-1))l([c.childNodes.at(-1)]);else{o.value.el$?.querySelector(`[data-key="${u.at(-1).key}"]`)?.focus({preventScroll:!0});return}};return ht(()=>{Bt(()=>a.value?.$el,"keydown",async u=>{const c=qt(u),{dropdownMenuVisible:d}=a.value;[Se.down,Se.up].includes(c)&&d&&(await Ne(),setTimeout(()=>{if(Se.up===c){const f=o.value.store.root.childNodes;l(f);return}a.value.optionsArray[a.value.states.hoveringIndex].$el?.parentNode?.parentNode?.focus({preventScroll:!0})}))},{capture:!0})}),{...hr(Pn(e),Object.keys(es.props)),...t,class:C(()=>t.class),style:C(()=>t.style),"onUpdate:modelValue":u=>n(at,u),valueKey:r,popperClass:C(()=>{const u=[s.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):o.value?.filter(u)}}},QX=se({extends:cd,setup(e,t){const n=cd.setup(e,t);delete n.selectOptionClick;const a=dt().proxy;return Ne(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),pe(()=>t.attrs.visible,o=>{Ne(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function uv(e){return e||e===0}function xg(e){return we(e)&&e.length}function Js(e){return we(e)?e:uv(e)?[e]:[]}function Lc(e,t,n,a,o){for(let r=0;r{pe([()=>e.modelValue,r],()=>{e.showCheckbox&&Ne(()=>{const h=r.value;h&&!dn(h.getCheckedKeys(),Js(e.modelValue))&&h.setCheckedKeys(Js(e.modelValue))})},{immediate:!0,deep:!0});const l=C(()=>({value:s.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(h,v)=>{const m=l.value[h];return Fe(m)?m(v,r.value?.getNode(u("value",v))):v[m]},c=Js(e.modelValue).map(h=>Lc(e.data||[],v=>u("value",v)===h,v=>u("children",v),(v,m,b,w)=>w&&u("value",w))).filter(h=>uv(h)),d=C(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return Dc(e.data.concat(e.cacheData),v=>{const m=u("value",v);h.push({value:m,currentLabel:u("label",v),isDisabled:u("disabled",v)})},v=>u("children",v)),h}),f=()=>r.value?.getCheckedKeys().filter(h=>{const v=r.value?.getNode(h);return!En(v)&&ha(v.childNodes)}),p=h=>{dn(e.modelValue,h)||a(yt,h)};function g(h){a(at,h),p(h)}return{...hr(Pn(e),Object.keys(Eg.props)),...t,nodeKey:s,expandOnClickNode:C(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:C(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:v,data:m,store:b})=>h(QX,{value:u("value",m),label:u("label",m),disabled:u("disabled",m),visible:v.visible},e.renderContent?()=>e.renderContent(h,{node:v,data:m,store:b}):n.default?()=>n.default({node:v,data:m,store:b}):void 0),filterNodeMethod:(h,v,m)=>e.filterNodeMethod?e.filterNodeMethod(h,v,m):h?new RegExp(cm(h),"i").test(u("label",v)||""):!0,onNodeClick:(h,v,m)=>{if(t.onNodeClick?.(h,v,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!u("disabled",h)){const b=o.value?.states.options.get(u("value",h));o.value?.handleOptionSelect(b)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(h,v)=>{if(!e.showCheckbox)return;const m=u("value",h),b={};Dc([r.value.store.root],k=>b[k.key]=k,k=>k.childNodes);const w=v.checkedKeys,y=e.multiple?Js(e.modelValue).filter(k=>!(k in b)&&!w.includes(k)):[],S=y.concat(w);if(e.checkStrictly)g(e.multiple?S:S.includes(m)?m:void 0);else if(e.multiple){const k=f();g(y.concat(k))}else{const k=Lc([h],T=>!xg(u("children",T))&&!u("disabled",T),T=>u("children",T)),x=k?u("value",k):void 0,O=uv(e.modelValue)&&!!Lc([h],T=>u("value",T)===e.modelValue,T=>u("children",T));g(x===e.modelValue||O?void 0:x)}Ne(()=>{const k=Js(e.modelValue);r.value.setCheckedKeys(k),t.onCheck?.(h,{checkedKeys:r.value.getCheckedKeys(),checkedNodes:r.value.getCheckedNodes(),halfCheckedKeys:r.value.getHalfCheckedKeys(),halfCheckedNodes:r.value.getHalfCheckedNodes()})}),o.value?.focus()},onNodeExpand:(h,v,m)=>{t.onNodeExpand?.(h,v,m),Ne(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const b={},w=r.value.getCheckedKeys();Dc([r.value.store.root],k=>b[k.key]=k,k=>k.childNodes);const y=Js(e.modelValue).filter(k=>!(k in b)&&!w.includes(k)),S=f();g(y.concat(S))}})},cacheOptions:d}};var tJ=se({props:{data:{type:Array,default:()=>[]}},setup(e){const t=$e(Du);return pe(()=>e.data,()=>{e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const n=t.selectRef?.querySelectorAll("input")||[];Pt&&!Array.from(n).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),nJ=se({name:"ElTreeSelect",inheritAttrs:!1,props:{...Ek,...Px,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a,emit:o,attrs:r}=t,s={...r,onChange:void 0},l=M(),u=M(),c=C(()=>e.nodeKey||e.valueKey||"value"),d=ZX(e,{attrs:r,emit:o},{select:l,tree:u,key:c}),{cacheOptions:f,...p}=eJ(e,{attrs:s,slots:n,emit:o},{select:l,tree:u,key:c}),g=Dt({});return a(g),ht(()=>{Object.assign(g,{...hr(u.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...hr(l.value,["focus","blur","selectedLabel"]),treeRef:u.value,selectRef:l.value})}),()=>qe(es,Dt({...d,ref:h=>l.value=h}),{...n,default:()=>[qe(tJ,{data:f.value}),qe(Eg,Dt({...p,ref:h=>u.value=h}))]})}}),aJ=nJ;const oJ=st(aJ),Tg=Symbol(),rJ={key:-1,level:-1,data:{}},Vx={type:Number,default:26},sJ=Ee({data:{type:G(Array),default:()=>fn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:G(Object),default:()=>fn({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:G(Array),default:()=>fn([])},checkStrictly:Boolean,defaultExpandedKeys:{type:G(Array),default:()=>fn([])},indent:{type:Number,default:16},itemSize:Vx,icon:{type:Ut},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:G([String,Number])},accordion:Boolean,filterMethod:{type:G(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),lJ=Ee({node:{type:G(Object),default:()=>fn(rJ)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:Vx}),iJ=Ee({node:{type:G(Object),required:!0}}),Fx="node-click",zx="node-drop",Hx="node-expand",Kx="node-collapse",Wx="current-change",jx="check",Ux="check-change",qx="node-contextmenu",uJ={[Fx]:(e,t,n)=>e&&t&&n,[zx]:(e,t,n)=>e&&t&&n,[Hx]:(e,t)=>e&&t,[Kx]:(e,t)=>e&&t,[Wx]:(e,t)=>e&&t,[jx]:(e,t)=>e&&t,[Ux]:(e,t)=>e&&Wt(t),[qx]:(e,t,n)=>e&&t&&n},cJ={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Wt(t)};function dJ(e,t){const n=M(new Set),a=M(new Set),{emit:o}=dt();pe([()=>t.value,()=>e.defaultCheckedKeys],()=>Ne(()=>{w(e.defaultCheckedKeys)}),{immediate:!0});const r=(y=!1)=>{if(!t.value||!e.showCheckbox||e.checkStrictly&&!y)return;const{levelTreeNodeMap:S,maxLevel:k}=t.value,x=n.value,O=new Set;for(let T=k;T>=1;--T){const I=S.get(T);I&&I.forEach(_=>{const N=_.children;let $=!_.isLeaf||_.disabled||x.has(_.key);if(N){let B=!0,K=!1;for(const j of N){const W=j.key;if(j.isEffectivelyChecked||($=!1),x.has(W))K=!0;else if(O.has(W)){B=!1,K=!0;break}else B=!1}B?x.add(_.key):K?(O.add(_.key),x.delete(_.key)):(x.delete(_.key),O.delete(_.key))}_.isEffectivelyChecked=$})}a.value=O},s=y=>n.value.has(y.key),l=y=>a.value.has(y.key),u=(y,S,k=!0,x=!0,O=!1)=>{const T=n.value,I=y.children;(!e.checkStrictly||O)&&k&&I?.length&&(S=I.some(N=>!N.isEffectivelyChecked));const _=(N,$)=>{T[$?"add":"delete"](N.key);const B=N.children;(!e.checkStrictly||O)&&B&&B.forEach(K=>{(!K.disabled||K.children)&&_(K,$)})};_(y,S),x&&r(),k&&c(y,S)},c=(y,S)=>{const{checkedNodes:k,checkedKeys:x}=h(),{halfCheckedNodes:O,halfCheckedKeys:T}=v();o(jx,y.data,{checkedKeys:x,checkedNodes:k,halfCheckedKeys:T,halfCheckedNodes:O}),o(Ux,y.data,S)};function d(y=!1){return h(y).checkedKeys}function f(y=!1){return h(y).checkedNodes}function p(){return v().halfCheckedKeys}function g(){return v().halfCheckedNodes}function h(y=!1){const S=[],k=[];if(t?.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;n.value.forEach(O=>{const T=x.get(O);T&&(!y||y&&T.isLeaf)&&(k.push(O),S.push(T.data))})}return{checkedKeys:k,checkedNodes:S}}function v(){const y=[],S=[];if(t?.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;a.value.forEach(x=>{const O=k.get(x);O&&(S.push(x),y.push(O.data))})}return{halfCheckedNodes:y,halfCheckedKeys:S}}function m(y){n.value.clear(),a.value.clear(),Ne(()=>{w(y)})}function b(y,S,k){if(t?.value&&e.showCheckbox){const x=t.value.treeNodeMap.get(y);x&&u(x,S,!1,void 0,k)}}function w(y){if(t?.value){const{treeNodeMap:S}=t.value;if(e.showCheckbox&&S&&y?.length>0){for(const k of y){const x=S.get(k);x&&!s(x)&&u(x,!0,!1,!1)}r()}}}return{updateCheckedKeys:r,toggleCheckbox:u,isChecked:s,isIndeterminate:l,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:p,getHalfCheckedNodes:g,setChecked:b,setCheckedKeys:m}}function fJ(e,t){const n=M(new Set([])),a=M(new Set([])),o=C(()=>Fe(e.filterMethod));function r(l){if(!o.value)return;const u=new Set,c=a.value,d=n.value,f=[],p=t.value?.treeNodes||[],g=e.filterMethod;d.clear();function h(v){v.forEach(m=>{f.push(m),g?.(l,m.data,m)?f.forEach(w=>{u.add(w.key),w.expanded=!0}):(m.expanded=!1,m.isLeaf&&d.add(m.key));const b=m.children;if(b&&h(b),!m.isLeaf){if(!u.has(m.key))d.add(m.key);else if(b){let w=!0;for(const y of b)if(!d.has(y.key)){w=!1;break}w?c.add(m.key):c.delete(m.key)}}f.pop()})}return h(p),u}function s(l){return a.value.has(l.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:r,isForceHiddenExpandIcon:s}}function pJ(e,t){const n=M(new Set),a=M(),o=Tt(),r=M(),{isIndeterminate:s,isChecked:l,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:p,setChecked:g,setCheckedKeys:h}=dJ(e,o),{doFilter:v,hiddenNodeKeySet:m,isForceHiddenExpandIcon:b}=fJ(e,o),w=C(()=>e.props?.value||"id"),y=C(()=>e.props?.children||"children"),S=C(()=>e.props?.disabled||"disabled"),k=C(()=>e.props?.label||"label"),x=C(()=>{const Q=n.value,D=m.value,q=[],te=o.value?.treeNodes||[],fe=[];for(let he=te.length-1;he>=0;--he)fe.push(te[he]);for(;fe.length;){const he=fe.pop();if(!D.has(he.key)&&(q.push(he),he.children&&Q.has(he.key)))for(let ve=he.children.length-1;ve>=0;--ve)fe.push(he.children[ve])}return q}),O=C(()=>x.value.length>0);function T(Q){const D=new Map,q=new Map;let te=1;function fe(ve,Ie=1,Le=void 0){const _e=[];for(const ye of ve){const Te=N(ye),be={level:Ie,key:Te,data:ye};be.label=B(ye),be.parent=Le;const Pe=_(ye);be.disabled=$(ye),be.isLeaf=!Pe||Pe.length===0,be.expanded=n.value.has(Te),Pe&&Pe.length&&(be.children=fe(Pe,Ie+1,be)),_e.push(be),D.set(Te,be),q.has(Ie)||q.set(Ie,[]),q.get(Ie)?.push(be)}return Ie>te&&(te=Ie),_e}const he=fe(Q);return{treeNodeMap:D,levelTreeNodeMap:q,maxLevel:te,treeNodes:he}}function I(Q){const D=v(Q);D&&(n.value=D)}function _(Q){return Q[y.value]}function N(Q){return Q?Q[w.value]:""}function $(Q){return Q[S.value]}function B(Q){return Q[k.value]}function K(Q){n.value.has(Q.key)?H(Q):F(Q)}function j(Q){const D=new Set,q=o.value.treeNodeMap;n.value.forEach(te=>{const fe=q.get(te);fe&&(fe.expanded=!1)}),Q.forEach(te=>{let fe=q.get(te);for(;fe&&!D.has(fe.key);)D.add(fe.key),fe.expanded=!0,fe=fe.parent}),n.value=D}function W(Q,D){t(Fx,Q.data,Q,D),P(Q),e.expandOnClickNode&&K(Q),e.showCheckbox&&(e.checkOnClickNode||Q.isLeaf&&e.checkOnClickLeaf)&&!Q.disabled&&u(Q,!l(Q),!0)}function A(Q,D){t(zx,Q.data,Q,D)}function P(Q){J(Q)||(a.value=Q.key,t(Wx,Q.data,Q))}function V(Q,D){u(Q,D)}function F(Q){const D=n.value;if(o.value&&e.accordion){const{treeNodeMap:te}=o.value;D.forEach(fe=>{const he=te.get(fe);Q&&Q.level===he?.level&&(D.delete(fe),he.expanded=!1)})}D.add(Q.key);const q=de(Q.key);q&&(q.expanded=!0,t(Hx,q.data,q))}function H(Q){n.value.delete(Q.key);const D=de(Q.key);D&&(D.expanded=!1,t(Kx,D.data,D))}function U(Q){return!!Q.disabled}function J(Q){const D=a.value;return D!==void 0&&D===Q.key}function ee(){if(a.value)return o.value?.treeNodeMap.get(a.value)?.data}function ae(){return a.value}function ce(Q){a.value=Q}function Z(Q){o.value=T(Q)}function de(Q){const D=ot(Q)?N(Q):Q;return o.value?.treeNodeMap.get(D)}function ue(Q,D="auto"){const q=de(Q);q&&r.value&&r.value.scrollToItem(x.value.indexOf(q),D)}function Y(Q){r.value?.scrollTo(Q)}return pe(()=>e.currentNodeKey,Q=>{a.value=Q},{immediate:!0}),pe(()=>e.defaultExpandedKeys,Q=>{j(Q||[])}),pe(()=>e.data,Q=>{Z(Q),j(e.defaultExpandedKeys||[])},{immediate:!0}),{tree:o,flattenTree:x,isNotEmpty:O,listRef:r,getKey:N,getChildren:_,toggleExpand:K,toggleCheckbox:u,isChecked:l,isIndeterminate:s,isDisabled:U,isCurrent:J,isForceHiddenExpandIcon:b,handleNodeClick:W,handleNodeDrop:A,handleNodeCheck:V,getCurrentNode:ee,getCurrentKey:ae,setCurrentKey:ce,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:p,setChecked:g,setCheckedKeys:h,filter:I,setData:Z,getNode:de,expandNode:F,collapseNode:H,setExpandedKeys:j,scrollToNode:ue,scrollTo:Y}}var hJ=se({name:"ElTreeNodeContent",props:iJ,setup(e){const t=$e(Tg),n=ge("tree");return()=>{const a=e.node,{data:o}=a;return t?.ctx.slots.default?t.ctx.slots.default({node:a,data:o}):qe(Sg,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[a?.label])}}});const vJ=["aria-expanded","aria-disabled","aria-checked","data-key"];var mJ=se({name:"ElTreeNode",__name:"tree-node",props:lJ,emits:cJ,setup(e,{emit:t}){const n=e,a=t,o=$e(Tg),r=ge("tree"),s=C(()=>o?.props.indent??16),l=C(()=>o?.props.icon??xC),u=h=>{const v=o?.props.props?.class;if(!v)return{};let m;if(Fe(v)){const{data:b}=h;m=v(b,h)}else m=v;return Ae(m)?{[m]:!0}:m},c=h=>{a("click",n.node,h)},d=h=>{a("drop",n.node,h)},f=()=>{a("toggle",n.node)},p=h=>{a("check",n.node,h)},g=h=>{o?.instance?.vnode?.props?.onNodeContextmenu&&(h.stopPropagation(),h.preventDefault()),o?.ctx.emit(qx,h,n.node?.data,n.node)};return(h,v)=>(E(),L("div",{ref:"node$",class:R([i(r).b("node"),i(r).is("expanded",e.expanded),i(r).is("current",e.current),i(r).is("focusable",!e.disabled),i(r).is("checked",!e.disabled&&e.checked),u(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":e.node?.key,onClick:Xe(c,["stop"]),onContextmenu:g,onDragover:v[1]||(v[1]=Xe(()=>{},["prevent"])),onDragenter:v[2]||(v[2]=Xe(()=>{},["prevent"])),onDrop:Xe(d,["stop"])},[z("div",{class:R(i(r).be("node","content")),style:ze({paddingLeft:`${(e.node.level-1)*s.value}px`,height:e.itemSize+"px"})},[l.value?(E(),le(i(De),{key:0,class:R([i(r).is("leaf",!!e.node?.isLeaf),i(r).is("hidden",e.hiddenExpandIcon),{expanded:!e.node?.isLeaf&&e.expanded},i(r).be("node","expand-icon")]),onClick:Xe(f,["stop"])},{default:ne(()=>[(E(),le(it(l.value)))]),_:1},8,["class"])):re("v-if",!0),e.showCheckbox?(E(),le(i(go),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:p,onClick:v[0]||(v[0]=Xe(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):re("v-if",!0),X(i(hJ),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,vJ))}}),gJ=mJ,bJ=se({name:"ElTreeV2",__name:"tree",props:sJ,emits:uJ,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wn(),s=C(()=>a.itemSize);St(Tg,{ctx:{emit:o,slots:r},props:a,instance:dt()}),St(Wo,void 0);const{t:l}=xt(),u=ge("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:p,isIndeterminate:g,isChecked:h,isDisabled:v,isCurrent:m,isForceHiddenExpandIcon:b,handleNodeClick:w,handleNodeDrop:y,handleNodeCheck:S,toggleCheckbox:k,getCurrentNode:x,getCurrentKey:O,setCurrentKey:T,getCheckedKeys:I,getCheckedNodes:_,getHalfCheckedKeys:N,getHalfCheckedNodes:$,setChecked:B,setCheckedKeys:K,filter:j,setData:W,getNode:A,expandNode:P,collapseNode:V,setExpandedKeys:F,scrollToNode:H,scrollTo:U}=pJ(a,o);return t({toggleCheckbox:k,getCurrentNode:x,getCurrentKey:O,setCurrentKey:T,getCheckedKeys:I,getCheckedNodes:_,getHalfCheckedKeys:N,getHalfCheckedNodes:$,setChecked:B,setCheckedKeys:K,filter:j,setData:W,getNode:A,expandNode:P,collapseNode:V,setExpandedKeys:F,scrollToNode:H,scrollTo:U}),(J,ee)=>(E(),L("div",{class:R([i(u).b(),{[i(u).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[i(d)?(E(),le(i(yf),{key:0,ref_key:"listRef",ref:f,"class-name":i(u).b("virtual-list"),data:i(c),total:i(c).length,height:e.height,"item-size":s.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ne(({data:ae,index:ce,style:Z})=>[(E(),le(gJ,{key:ae[ce].key,style:ze(Z),node:ae[ce],expanded:ae[ce].expanded,"show-checkbox":e.showCheckbox,checked:i(h)(ae[ce]),indeterminate:i(g)(ae[ce]),"item-size":s.value,disabled:i(v)(ae[ce]),current:i(m)(ae[ce]),"hidden-expand-icon":i(b)(ae[ce]),onClick:i(w),onToggle:i(p),onCheck:i(S),onDrop:i(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","scrollbar-always-on"])):(E(),L("div",{key:1,class:R(i(u).e("empty-block"))},[oe(J.$slots,"empty",{},()=>[z("span",{class:R(i(u).e("empty-text"))},Ce(e.emptyText??i(l)("el.tree.emptyText")),3)])],2))],2))}}),yJ=bJ;const wJ=st(yJ),SJ="ElUpload";var CJ=class extends Error{constructor(e,t,n,a){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}};function m1(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new CJ(a,n.status,t.method,e)}function kJ(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const EJ=e=>{typeof XMLHttpRequest>"u"&&rn(SJ,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",r=>{const s=r;s.percent=r.total>0?r.loaded/r.total*100:0,e.onProgress(s)});const a=new FormData;if(e.data)for(const[r,s]of Object.entries(e.data))we(s)?s.length===2&&s[0]instanceof Blob&&Ae(s[1])?a.append(r,s[0],s[1]):s.forEach(l=>{a.append(r,l)}):a.append(r,s);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(m1(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(m1(n,e,t));e.onSuccess(kJ(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((r,s)=>t.setRequestHeader(s,r));else for(const[r,s]of Object.entries(o))En(s)||t.setRequestHeader(r,String(s));return t.send(a),t},Yx=["text","picture","picture-card"];let xJ=1;const cv=()=>Date.now()+xJ++,Gx=Ee({action:{type:String,default:"#"},headers:{type:G(Object)},method:{type:String,default:"post"},data:{type:G([Object,Function,Promise]),default:()=>fn({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:G(Array),default:()=>fn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Yx,default:"text"},httpRequest:{type:G(Function),default:EJ},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),TJ=Ee({...Gx,beforeUpload:{type:G(Function),default:ut},beforeRemove:{type:G(Function)},onRemove:{type:G(Function),default:ut},onChange:{type:G(Function),default:ut},onPreview:{type:G(Function),default:ut},onSuccess:{type:G(Function),default:ut},onProgress:{type:G(Function),default:ut},onError:{type:G(Function),default:ut},onExceed:{type:G(Function),default:ut},crossorigin:{type:G(String)}}),Xx=Symbol("uploadContextKey"),OJ=Ee({files:{type:G(Array),default:()=>fn([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:G(Function),default:ut},listType:{type:String,values:Yx,default:"text"},crossorigin:{type:G(String)}}),_J={remove:e=>!!e},RJ=Ee({...Gx,beforeUpload:{type:G(Function),default:ut},onRemove:{type:G(Function),default:ut},onStart:{type:G(Function),default:ut},onSuccess:{type:G(Function),default:ut},onProgress:{type:G(Function),default:ut},onError:{type:G(Function),default:ut},onExceed:{type:G(Function),default:ut}}),IJ=Ee({disabled:{type:Boolean,default:void 0},directory:Boolean}),$J={file:e=>we(e)},NJ=["tabindex","aria-disabled","onKeydown"],MJ=["src","crossorigin"],PJ=["onClick"],AJ=["title"],LJ=["onClick"],DJ=["onClick"];var BJ=se({name:"ElUploadList",__name:"upload-list",props:OJ,emits:_J,setup(e,{emit:t}){const n=e,a=t,{t:o}=xt(),r=ge("upload"),s=ge("icon"),l=ge("list"),u=ln(),c=M(!1),d=C(()=>[r.b("list"),r.bm("list",n.listType),r.is("disabled",u.value)]),f=p=>{a("remove",p)};return(p,g)=>(E(),le(Rw,{tag:"ul",class:R(d.value),name:i(l).b()},{default:ne(()=>[(E(!0),L(Ve,null,kt(e.files,(h,v)=>(E(),L("li",{key:h.uid||h.name,class:R([i(r).be("list","item"),i(r).is(h.status),{focusing:c.value}]),tabindex:i(u)?void 0:0,"aria-disabled":i(u),role:"button",onKeydown:cn(m=>!i(u)&&f(h),["delete"]),onFocus:g[0]||(g[0]=m=>c.value=!0),onBlur:g[1]||(g[1]=m=>c.value=!1),onClick:g[2]||(g[2]=m=>c.value=!1)},[oe(p.$slots,"default",{file:h,index:v},()=>[e.listType==="picture"||h.status!=="uploading"&&e.listType==="picture-card"?(E(),L("img",{key:0,class:R(i(r).be("list","item-thumbnail")),src:h.url,crossorigin:e.crossorigin,alt:""},null,10,MJ)):re("v-if",!0),h.status==="uploading"||e.listType!=="picture-card"?(E(),L("div",{key:1,class:R(i(r).be("list","item-info"))},[z("a",{class:R(i(r).be("list","item-name")),onClick:Xe(m=>e.handlePreview(h),["prevent"])},[X(i(De),{class:R(i(s).m("document"))},{default:ne(()=>[X(i(zP))]),_:1},8,["class"]),z("span",{class:R(i(r).be("list","item-file-name")),title:h.name},Ce(h.name),11,AJ)],10,PJ),h.status==="uploading"?(E(),le(i(ax),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:ze(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):re("v-if",!0)],2)):re("v-if",!0),z("label",{class:R(i(r).be("list","item-status-label"))},[e.listType==="text"?(E(),le(i(De),{key:0,class:R([i(s).m("upload-success"),i(s).m("circle-check")])},{default:ne(()=>[X(i(Rm))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(E(),le(i(De),{key:1,class:R([i(s).m("upload-success"),i(s).m("check")])},{default:ne(()=>[X(i($l))]),_:1},8,["class"])):re("v-if",!0)],2),i(u)?re("v-if",!0):(E(),le(i(De),{key:2,class:R(i(s).m("close")),"aria-label":i(o)("el.upload.delete"),role:"button",tabindex:"0",onClick:m=>f(h),onKeydown:cn(Xe(m=>f(h),["prevent"]),["enter","space"])},{default:ne(()=>[X(i(Qa))]),_:1},8,["class","aria-label","onClick","onKeydown"])),i(u)?re("v-if",!0):(E(),L("i",{key:3,class:R(i(s).m("close-tip"))},Ce(i(o)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(E(),L("span",{key:4,class:R(i(r).be("list","item-actions"))},[z("span",{class:R(i(r).be("list","item-preview")),onClick:m=>e.handlePreview(h)},[X(i(De),{class:R(i(s).m("zoom-in"))},{default:ne(()=>[X(i(RC))]),_:1},8,["class"])],10,LJ),i(u)?re("v-if",!0):(E(),L("span",{key:0,class:R(i(r).be("list","item-delete")),onClick:m=>f(h)},[X(i(De),{class:R(i(s).m("delete"))},{default:ne(()=>[X(i(VP))]),_:1},8,["class"])],10,DJ))],2)):re("v-if",!0)])],42,NJ))),128)),oe(p.$slots,"append")]),_:3},8,["class","name"]))}}),g1=BJ;const b1="ElUploadDrag";var VJ=se({name:b1,__name:"upload-dragger",props:IJ,emits:$J,setup(e,{emit:t}){const n=e,a=t;$e(Xx)||rn(b1,"usage: ");const o=ge("upload"),r=M(!1),s=ln(),l=p=>new Promise((g,h)=>p.file(g,h)),u=async p=>{try{if(p.isFile){const g=await l(p);return g.isDirectory=!1,[g]}if(p.isDirectory){const g=p.createReader(),h=()=>new Promise((w,y)=>g.readEntries(w,y)),v=[];let m=await h();for(;m.length>0;)v.push(...m),m=await h();const b=v.map(w=>u(w).catch(()=>[]));return Qc(await Promise.all(b))}}catch{return[]}return[]},c=async p=>{if(s.value)return;r.value=!1,p.stopPropagation();const g=Array.from(p.dataTransfer.files),h=p.dataTransfer.items||[];if(n.directory){const v=Array.from(h).map(m=>m?.webkitGetAsEntry?.()).filter(m=>m);a("file",Qc(await Promise.all(v.map(u))));return}g.forEach((v,m)=>{const b=h[m]?.webkitGetAsEntry?.();b&&(v.isDirectory=b.isDirectory)}),a("file",g)},d=()=>{s.value||(r.value=!0)},f=p=>{p.currentTarget.contains(p.relatedTarget)||(r.value=!1)};return(p,g)=>(E(),L("div",{class:R([i(o).b("dragger"),i(o).is("dragover",r.value)]),onDrop:Xe(c,["prevent"]),onDragover:Xe(d,["prevent"]),onDragleave:Xe(f,["prevent"])},[oe(p.$slots,"default")],34))}}),FJ=VJ;const zJ=["tabindex","aria-disabled","onKeydown"],HJ=["name","disabled","multiple","accept","webkitdirectory"];var KJ=se({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:RJ,setup(e,{expose:t}){const n=e,a=ge("upload"),o=ln(),r=Tt({}),s=Tt(),l=v=>{if(v.length===0)return;const{autoUpload:m,limit:b,fileList:w,multiple:y,onStart:S,onExceed:k}=n;if(b&&w.length+v.length>b){k(v,w);return}y||(v=v.slice(0,1));for(const x of v){const O=x;O.uid=cv(),S(O),m&&u(O)}},u=async v=>{if(s.value.value="",!n.beforeUpload)return d(v);let m,b={};try{const y=n.data,S=n.beforeUpload(v);b=Fi(n.data)?No(n.data):n.data,m=await S,Fi(n.data)&&dn(y,b)&&(b=No(n.data))}catch{m=!1}if(m===!1){n.onRemove(v);return}let w=v;m instanceof Blob&&(m instanceof File?w=m:w=new File([m],v.name,{type:v.type})),d(Object.assign(w,{uid:v.uid}),b)},c=async(v,m)=>Fe(v)?v(m):v,d=async(v,m)=>{const{headers:b,data:w,method:y,withCredentials:S,name:k,action:x,onProgress:O,onSuccess:T,onError:I,httpRequest:_}=n;try{m=await c(m??w,v)}catch{n.onRemove(v);return}const{uid:N}=v,$={headers:b||{},withCredentials:S,file:v,data:m,method:y,filename:k,action:x,onProgress:K=>{O(K,v)},onSuccess:K=>{T(K,v),delete r.value[N]},onError:K=>{I(K,v),delete r.value[N]}},B=_($);r.value[N]=B,B instanceof Promise&&B.then($.onSuccess,$.onError)},f=v=>{const m=v.target.files;m&&l(Array.from(m))},p=()=>{o.value||(s.value.value="",s.value.click())},g=()=>{p()};return t({abort:v=>{_S(r.value).filter(v?([m])=>String(v.uid)===m:()=>!0).forEach(([m,b])=>{b instanceof XMLHttpRequest&&b.abort(),delete r.value[m]})},upload:u}),(v,m)=>(E(),L("div",{class:R([i(a).b(),i(a).m(e.listType),i(a).is("drag",e.drag),i(a).is("disabled",i(o))]),tabindex:i(o)?void 0:0,"aria-disabled":i(o),role:"button",onClick:p,onKeydown:cn(Xe(g,["self"]),["enter","space"])},[e.drag?(E(),le(FJ,{key:0,disabled:i(o),directory:e.directory,onFile:l},{default:ne(()=>[oe(v.$slots,"default")]),_:3},8,["disabled","directory"])):oe(v.$slots,"default",{key:1}),z("input",{ref_key:"inputRef",ref:s,class:R(i(a).e("input")),name:e.name,disabled:i(o),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:f,onClick:m[0]||(m[0]=Xe(()=>{},["stop"]))},null,42,HJ)],42,zJ))}}),y1=KJ;const w1="ElUpload",S1=e=>{e.url?.startsWith("blob:")&&URL.revokeObjectURL(e.url)},WJ=(e,t)=>{const n=PS(e,"fileList",void 0,{passive:!0}),a=h=>n.value.find(v=>v.uid===h.uid);function o(h){t.value?.abort(h)}function r(h=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!h.includes(v.status))}function s(h){n.value=n.value.filter(v=>v.uid!==h.uid)}const l=h=>{Ne(()=>e.onChange(h,n.value))},u=(h,v)=>{const m=a(v);m&&(console.error(h),m.status="fail",s(m),e.onError(h,m,n.value),l(m))},c=(h,v)=>{const m=a(v);m&&(e.onProgress(h,m,n.value),m.status="uploading",m.percentage=Math.round(h.percent))},d=(h,v)=>{const m=a(v);m&&(m.status="success",m.response=h,e.onSuccess(h,m,n.value),l(m))},f=h=>{En(h.uid)&&(h.uid=cv());const v={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(h)}catch(m){jt(w1,m.message),e.onError(m,v,n.value)}n.value=[...n.value,v],l(v)},p=async h=>{const v=h instanceof File?a(h):h;v||rn(w1,"file to be removed not found");const m=b=>{o(b),s(b),e.onRemove(b,n.value),S1(b)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&m(v):m(v)};function g(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>h&&t.value?.upload(h))}return pe(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(v=>{const{raw:m,url:b}=v;if(!b&&m)try{v.url=URL.createObjectURL(m)}catch(w){e.onError(w,v,n.value)}return v}))}),pe(n,h=>{for(const v of h)v.uid||(v.uid=cv()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:r,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:p,submit:g,revokeFileObjectURL:S1}};var jJ=se({name:"ElUpload",__name:"upload",props:TJ,setup(e,{expose:t}){const n=e,a=ln(),o=Tt(),{abort:r,submit:s,clearFiles:l,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:p,handleProgress:g,revokeFileObjectURL:h}=WJ(n,o),v=C(()=>n.listType==="picture-card"),m=C(()=>({...n,fileList:u.value,onStart:c,onProgress:g,onSuccess:p,onError:d,onRemove:f}));return Vt(()=>{u.value.forEach(h)}),St(Xx,{accept:Ht(n,"accept")}),t({abort:r,submit:s,clearFiles:l,handleStart:c,handleRemove:f}),(b,w)=>(E(),L("div",null,[v.value&&e.showFileList?(E(),le(g1,{key:0,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},ga({append:ne(()=>[X(y1,pt({ref_key:"uploadRef",ref:o},m.value),{default:ne(()=>[b.$slots.trigger?oe(b.$slots,"trigger",{key:0}):re("v-if",!0),!b.$slots.trigger&&b.$slots.default?oe(b.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)]),_:2},[b.$slots.file?{name:"default",fn:ne(({file:y,index:S})=>[oe(b.$slots,"file",{file:y,index:S})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0),!v.value||v.value&&!e.showFileList?(E(),le(y1,pt({key:1,ref_key:"uploadRef",ref:o},m.value),{default:ne(()=>[b.$slots.trigger?oe(b.$slots,"trigger",{key:0}):re("v-if",!0),!b.$slots.trigger&&b.$slots.default?oe(b.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)):re("v-if",!0),b.$slots.trigger?oe(b.$slots,"default",{key:2}):re("v-if",!0),oe(b.$slots,"tip"),!v.value&&e.showFileList?(E(),le(g1,{key:3,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},ga({_:2},[b.$slots.file?{name:"default",fn:ne(({file:y,index:S})=>[oe(b.$slots,"file",{file:y,index:S})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0)]))}}),UJ=jJ;const qJ=st(UJ),YJ=Ee({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:G([String,Array]),default:"Element Plus"},font:{type:G(Object)},gap:{type:G(Array),default:()=>[100,100]},offset:{type:G(Array)}});function GJ(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function XJ(e){return Object.keys(e).map(t=>`${GJ(t)}: ${e[t]};`).join(" ")}function JJ(){return window.devicePixelRatio||1}const ZJ=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},QJ={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function Np(e,t,n=1){const a=document.createElement("canvas"),o=a.getContext("2d"),r=e*n,s=t*n;return a.setAttribute("width",`${r}px`),a.setAttribute("height",`${s}px`),o.save(),[o,a,r,s]}function eZ(){function e(t,n,a,o,r,s,l,u,c){const[d,f,p,g]=Np(o,r,a);let h=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,p,g);else{const{color:U,fontSize:J,fontStyle:ee,fontWeight:ae,fontFamily:ce,textAlign:Z,textBaseline:de}=s,ue=Number(J)*a;d.font=`${ee} normal ${ae} ${ue}px/${r}px ${ce}`,d.fillStyle=U,d.textAlign=Z,d.textBaseline=de;const Y=we(t)?t:[t];if(de!=="top"&&Y[0]){const Q=d.measureText(Y[0]);d.textBaseline="top";const D=d.measureText(Y[0]);h=Q.actualBoundingBoxAscent-D.actualBoundingBoxAscent}Y?.forEach((Q,D)=>{const[q,te]=QJ[Z];d.fillText(Q??"",p*q+c*te,D*(ue+s.fontGap*a))})}const v=Math.PI/180*Number(n),m=Math.max(o,r),[b,w,y]=Np(m,m,a);b.translate(y/2,y/2),b.rotate(v),p>0&&g>0&&b.drawImage(f,-p/2,-g/2);function S(U,J){return[U*Math.cos(v)-J*Math.sin(v),U*Math.sin(v)+J*Math.cos(v)]}let k=0,x=0,O=0,T=0;const I=p/2,_=g/2;[[0-I,0-_],[0+I,0-_],[0+I,0+_],[0-I,0+_]].forEach(([U,J])=>{const[ee,ae]=S(U,J);k=Math.min(k,ee),x=Math.max(x,ee),O=Math.min(O,ae),T=Math.max(T,ae)});const N=k+y/2,$=O+y/2,B=x-k,K=T-O,j=l*a,W=u*a,A=(B+j)*2,P=K+W,[V,F]=Np(A,P);function H(U=0,J=0){V.drawImage(w,N,$,B,K,U,J+h,B,K)}return H(),H(B+j,-K/2-W/2),H(B+j,+K/2+W/2),[F.toDataURL(),A/a,P/a]}return e}var tZ=se({name:"ElWatermark",__name:"watermark",props:YJ,setup(e){const t={position:"relative"},n=e,a=C(()=>n.font?.fontGap??3),o=C(()=>n.font?.color??"rgba(0,0,0,.15)"),r=C(()=>n.font?.fontSize??16),s=C(()=>n.font?.fontWeight??"normal"),l=C(()=>n.font?.fontStyle??"normal"),u=C(()=>n.font?.fontFamily??"sans-serif"),c=C(()=>n.font?.textAlign??"center"),d=C(()=>n.font?.textBaseline??"hanging"),f=C(()=>n.gap[0]),p=C(()=>n.gap[1]),g=C(()=>f.value/2),h=C(()=>p.value/2),v=C(()=>n.offset?.[0]??g.value),m=C(()=>n.offset?.[1]??h.value),b=()=>{const N={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let $=v.value-g.value,B=m.value-h.value;return $>0&&(N.left=`${$}px`,N.width=`calc(100% - ${$}px)`,$=0),B>0&&(N.top=`${B}px`,N.height=`calc(100% - ${B}px)`,B=0),N.backgroundPosition=`${$}px ${B}px`,N},w=Tt(null),y=Tt(),S=M(!1),k=()=>{y.value&&(y.value.remove(),y.value=void 0)},x=(N,$)=>{w.value&&y.value&&(S.value=!0,y.value.setAttribute("style",XJ({...b(),backgroundImage:`url('${N}')`,backgroundSize:`${Math.floor($)}px`})),w.value?.append(y.value),setTimeout(()=>{S.value=!1}))},O=N=>{let $=120,B=64,K=0;const{image:j,content:W,width:A,height:P,rotate:V}=n;if(!j&&N.measureText){N.font=`${Number(r.value)}px ${u.value}`;const F=we(W)?W:[W];let H=0,U=0;F.forEach(ee=>{const{width:ae,fontBoundingBoxAscent:ce,fontBoundingBoxDescent:Z,actualBoundingBoxAscent:de,actualBoundingBoxDescent:ue}=N.measureText(ee),Y=Rt(ce)?de+ue:ce+Z;ae>H&&(H=Math.ceil(ae)),Y>U&&(U=Math.ceil(Y))}),$=H,B=U*F.length+(F.length-1)*a.value;const J=Math.PI/180*Number(V);K=Math.ceil(Math.abs(Math.sin(J)*B)/2),$+=K}return[A??$,P??B,K]},T=eZ(),I=()=>{const N=document.createElement("canvas").getContext("2d"),$=n.image,B=n.content,K=n.rotate;if(N){y.value||(y.value=document.createElement("div"));const j=JJ(),[W,A,P]=O(N),V=F=>{const[H,U]=T(F||"",K,j,W,A,{color:o.value,fontSize:r.value,fontStyle:l.value,fontWeight:s.value,fontFamily:u.value,fontGap:a.value,textAlign:c.value,textBaseline:d.value},f.value,p.value,P);x(H,U)};if($){const F=new Image;F.onload=()=>{V(F)},F.onerror=()=>{V(B)},F.crossOrigin="anonymous",F.referrerPolicy="no-referrer",F.src=$}else V(B)}};return ht(()=>{I()}),pe(()=>n,()=>{I()},{deep:!0,flush:"post"}),Vt(()=>{k()}),Tu(w,N=>{S.value||N.forEach($=>{ZJ($,y.value)&&(k(),I())})},{attributes:!0,subtree:!0,childList:!0}),(N,$)=>(E(),L("div",{ref_key:"containerRef",ref:w,style:ze([t])},[oe(N.$slots,"default")],4))}}),nZ=tZ;const aZ=st(nZ),oZ=["absolute","fixed"],rZ=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Og=Ee({placement:{type:G(String),values:rZ,default:"bottom"},reference:{type:G(Object),default:null},strategy:{type:G(String),values:oZ,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),sZ={close:()=>!0},lZ=Ee({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Ut},placement:Og.placement,contentStyle:{type:G([Object])},mask:{type:G([Boolean,Object]),default:!0},gap:{type:G(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:G([Boolean,Object]),default:()=>({block:"center"})},type:{type:G(String)},appendTo:{type:G([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),iZ={[at]:e=>Wt(e),"update:current":e=>Be(e),close:e=>Be(e),finish:()=>!0,change:e=>Be(e)},uZ=Ee({target:{type:G([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Ut},showArrow:{type:Boolean,default:void 0},placement:Og.placement,mask:{type:G([Boolean,Object]),default:void 0},contentStyle:{type:G([Object])},prevButtonProps:{type:G(Object)},nextButtonProps:{type:G(Object)},scrollIntoViewOptions:{type:G([Boolean,Object]),default:void 0},type:{type:G(String)}}),cZ={close:()=>!0},dZ=(e,t,n,a,o)=>{const r=M(null),s=()=>{let d;return Ae(e.value)?d=document.querySelector(e.value):Fe(e.value)?d=e.value():d=e.value,d},l=()=>{const d=s();if(!d||!t.value){r.value=null;return}fZ(d)||d.scrollIntoView(o.value);const{left:f,top:p,width:g,height:h}=d.getBoundingClientRect();r.value={left:f,top:p,width:g,height:h,radius:0}};ht(()=>{pe([t,e],()=>{l()},{immediate:!0}),window.addEventListener("resize",l)}),Vt(()=>{window.removeEventListener("resize",l)});const u=d=>(we(n.value.offset)?n.value.offset[d]:n.value.offset)??6,c=C(()=>{if(!r.value)return r.value;const d=u(0),f=u(1),p=n.value?.radius||2;return{left:r.value.left-d,top:r.value.top-f,width:r.value.width+d*2,height:r.value.height+f*2,radius:p}});return{mergedPosInfo:c,triggerTarget:C(()=>{const d=s();return!a.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){return window.DOMRect.fromRect({width:c.value?.width||0,height:c.value?.height||0,x:c.value?.left||0,y:c.value?.top||0})}}})}},xf=Symbol("ElTour");function fZ(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:o,bottom:r,left:s}=e.getBoundingClientRect();return a>=0&&s>=0&&o<=t&&r<=n}const pZ=(e,t,n,a,o,r,s,l)=>{const u=M(),c=M(),d=M({}),f={x:u,y:c,placement:a,strategy:o,middlewareData:d},p=C(()=>{const b=[HM(i(r)),WM(),KM(),hZ()];return i(l)&&i(n)&&b.push(jM({element:i(n)})),b}),g=async()=>{if(!Pt)return;const b=i(e),w=i(t);if(!b||!w)return;const y=await UM(b,w,{placement:i(a),strategy:i(o),middleware:i(p)});Ji(f).forEach(S=>{f[S].value=y[S]})},h=C(()=>{if(!i(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:i(s)};const{overflow:b}=i(d);return{position:i(o),zIndex:i(s),top:i(c)!=null?`${i(c)}px`:"",left:i(u)!=null?`${i(u)}px`:"",maxWidth:b?.maxWidth?`${b?.maxWidth}px`:""}}),v=C(()=>{if(!i(l))return{};const{arrow:b}=i(d);return{left:b?.x!=null?`${b?.x}px`:"",top:b?.y!=null?`${b?.y}px`:""}});let m;return ht(()=>{const b=i(e),w=i(t);b&&w&&(m=FM(b,w,g)),la(()=>{g()})}),Vt(()=>{m&&m()}),{update:g,contentStyle:h,arrowStyle:v}},hZ=()=>({name:"overflow",async fn(e){const t=await zM(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),vZ=Ee({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:G(Object)},targetAreaClickable:{type:Boolean,default:!0}}),mZ={style:{width:"100%",height:"100%"}},gZ=["d"];var bZ=se({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:vZ,setup(e){const t=e,{ns:n}=$e(xf),a=C(()=>t.pos?.radius??2),o=C(()=>{const d=a.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:r,height:s}=im(),l=C(()=>{const d=r.value,f=s.value,p=o.value,g=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,h=a.value;return t.pos?`${g} M${t.pos.left+h},${t.pos.top} h${t.pos.width-h*2} ${p.topRight} v${t.pos.height-h*2} ${p.bottomRight} h${-t.pos.width+h*2} ${p.bottomLeft} v${-t.pos.height+h*2} ${p.topLeft} z`:g}),u=C(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=C(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return sf(Ht(t,"visible"),{ns:n}),(d,f)=>e.visible?(E(),L("div",pt({key:0,class:i(n).e("mask"),style:u.value},d.$attrs),[(E(),L("svg",mZ,[z("path",{class:R(i(n).e("hollow")),style:ze(c.value),d:l.value},null,14,gZ)]))],16)):re("v-if",!0)}}),yZ=bZ;const wZ=["data-side"];var SZ=se({name:"ElTourContent",__name:"content",props:Og,emits:sZ,setup(e,{emit:t}){const n=e,a=t,o=M(n.placement),r=M(n.strategy),s=M(null),l=M(null);pe(()=>n.placement,()=>{o.value=n.placement});const{contentStyle:u,arrowStyle:c}=pZ(Ht(n,"reference"),s,l,o,r,Ht(n,"offset"),Ht(n,"zIndex"),Ht(n,"showArrow")),d=C(()=>o.value.split("-")[0]),{ns:f}=$e(xf),p=()=>{a("close")},g=h=>{h.detail.focusReason==="pointer"&&h.preventDefault()};return(h,v)=>(E(),L("div",{ref_key:"contentRef",ref:s,style:ze(i(u)),class:R(i(f).e("content")),"data-side":d.value,tabindex:"-1"},[X(i(ql),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":s.value||void 0,onReleaseRequested:p,onFocusoutPrevented:g},{default:ne(()=>[oe(h.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(E(),L("span",{key:0,ref_key:"arrowRef",ref:l,style:ze(i(c)),class:R(i(f).e("arrow"))},null,6)):re("v-if",!0)],14,wZ))}}),CZ=SZ,kZ=se({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{const o=t.default?.(),r=[];let s=0;function l(u){we(u)&&u.forEach(c=>{(c?.type||{})?.name==="ElTourStep"&&(r.push(c),s+=1)})}return o.length&&l(La(o[0]?.children)),a!==s&&(a=s,n("update-total",s)),r.length?r[e.current]:null}}}),EZ=se({name:"ElTour",inheritAttrs:!1,__name:"tour",props:lZ,emits:iZ,setup(e,{emit:t}){const n=e,a=t,o=ge("tour"),r=M(0),s=M(),l=PS(n,"current",a,{passive:!0}),u=C(()=>s.value?.target),c=C(()=>[o.b(),b.value==="primary"?o.m("primary"):""]),d=C(()=>s.value?.placement||n.placement),f=C(()=>s.value?.contentStyle??n.contentStyle),p=C(()=>s.value?.mask??n.mask),g=C(()=>!!p.value&&n.modelValue),h=C(()=>Wt(p.value)?void 0:p.value),v=C(()=>!!u.value&&(s.value?.showArrow??n.showArrow)),m=C(()=>s.value?.scrollIntoViewOptions??n.scrollIntoViewOptions),b=C(()=>s.value?.type??n.type),{nextZIndex:w}=Iu(),y=w(),S=C(()=>n.zIndex??y),{mergedPosInfo:k,triggerTarget:x}=dZ(u,Ht(n,"modelValue"),Ht(n,"gap"),p,m);pe(()=>n.modelValue,_=>{_||(l.value=0)});const O=()=>{n.closeOnPressEscape&&(a(at,!1),a("close",l.value))},T=_=>{r.value=_},I=wn();return St(xf,{currentStep:s,current:l,total:r,showClose:Ht(n,"showClose"),closeIcon:Ht(n,"closeIcon"),mergedType:b,ns:o,slots:I,updateModelValue(_){a(at,_)},onClose(){a("close",l.value)},onFinish(){a("finish")},onChange(){a(yt,l.value)}}),(_,N)=>(E(),L(Ve,null,[(E(),le(Vl,{to:e.appendTo},[z("div",pt({class:c.value},_.$attrs),[X(yZ,{visible:g.value,fill:h.value?.color,style:ze(h.value?.style),pos:i(k),"z-index":S.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(E(),le(CZ,{key:i(l),reference:i(x),placement:d.value,"show-arrow":v.value,"z-index":S.value,style:ze(f.value),onClose:O},{default:ne(()=>[X(i(kZ),{current:i(l),onUpdateTotal:T},{default:ne(()=>[oe(_.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):re("v-if",!0)],16)],8,["to"])),re(" just for IDE "),re("v-if",!0)],64))}}),xZ=EZ;const TZ=["aria-label"];var OZ=se({name:"ElTourStep",__name:"step",props:uZ,emits:cZ,setup(e,{emit:t}){const n=e,a=t,{Close:o}=IC,{t:r}=xt(),{currentStep:s,current:l,total:u,showClose:c,closeIcon:d,mergedType:f,ns:p,slots:g,updateModelValue:h,onClose:v,onFinish:m,onChange:b}=$e(xf);pe(n,_=>{s.value=_},{immediate:!0});const w=C(()=>n.showClose??c.value),y=C(()=>n.closeIcon??d.value??o),S=_=>{if(_)return ku(_,["children","onClick"])},k=()=>{l.value-=1,n.prevButtonProps?.onClick&&n.prevButtonProps?.onClick(),b()},x=()=>{l.value>=u.value-1?O():l.value+=1,n.nextButtonProps?.onClick&&n.nextButtonProps.onClick(),b()},O=()=>{T(),m()},T=()=>{h(!1),v(),a("close")},I=_=>{if(!_.target?.isContentEditable)switch(qt(_)){case Se.left:_.preventDefault(),l.value>0&&k();break;case Se.right:_.preventDefault(),x();break}};return ht(()=>{window.addEventListener("keydown",I)}),Vt(()=>{window.removeEventListener("keydown",I)}),(_,N)=>(E(),L(Ve,null,[w.value?(E(),L("button",{key:0,"aria-label":i(r)("el.tour.close"),class:R(i(p).e("closebtn")),type:"button",onClick:T},[X(i(De),{class:R(i(p).e("close"))},{default:ne(()=>[(E(),le(it(y.value)))]),_:1},8,["class"])],10,TZ)):re("v-if",!0),z("header",{class:R([i(p).e("header"),{"show-close":i(c)}])},[oe(_.$slots,"header",{},()=>[z("span",{role:"heading",class:R(i(p).e("title"))},Ce(e.title),3)])],2),z("div",{class:R(i(p).e("body"))},[oe(_.$slots,"default",{},()=>[z("span",null,Ce(e.description),1)])],2),z("footer",{class:R(i(p).e("footer"))},[z("div",{class:R(i(p).b("indicators"))},[i(g).indicators?(E(),le(it(i(g).indicators),{key:0,current:i(l),total:i(u)},null,8,["current","total"])):(E(!0),L(Ve,{key:1},kt(i(u),($,B)=>(E(),L("span",{key:$,class:R([i(p).b("indicator"),i(p).is("active",B===i(l))])},null,2))),128))],2),z("div",{class:R(i(p).b("buttons"))},[i(l)>0?(E(),le(i(Bn),pt({key:0,size:"small",type:i(f)},S(e.prevButtonProps),{onClick:k}),{default:ne(()=>[wt(Ce(e.prevButtonProps?.children??i(r)("el.tour.previous")),1)]),_:1},16,["type"])):re("v-if",!0),i(l)<=i(u)-1?(E(),le(i(Bn),pt({key:1,size:"small",type:i(f)==="primary"?"default":"primary"},S(e.nextButtonProps),{onClick:x}),{default:ne(()=>[wt(Ce(e.nextButtonProps?.children??(i(l)===i(u)-1?i(r)("el.tour.finish"):i(r)("el.tour.next"))),1)]),_:1},16,["type"])):re("v-if",!0)],2)],2)],64))}}),Jx=OZ;const _Z=st(xZ,{TourStep:Jx}),RZ=sn(Jx),IZ=Ee({container:{type:G([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:G(String),default:"default"},direction:{type:G(String),default:"vertical"},selectScrollTop:Boolean}),$Z={change:e=>Ae(e),click:(e,t)=>e instanceof MouseEvent&&(Ae(t)||Rt(t))},mc=e=>{if(!Pt||e==="")return null;if(Ae(e))try{return document.querySelector(e)}catch{return null}return e};function NZ(e){let t=0;const n=(...a)=>{t&&fo(t),t=Ra(()=>{e(...a),t=0})};return n.cancel=()=>{fo(t),t=0},n}const Zx=Symbol("anchor");var MZ=se({name:"ElAnchor",__name:"anchor",props:IZ,emits:$Z,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wn(),s=M(""),l=M({}),u=M(null),c=M(null),d=M(),f={};let p=!1,g=0;const h=ge("anchor"),v=C(()=>[h.b(),a.type==="underline"?h.m("underline"):"",h.m(a.direction)]),m=$=>{f[$.href]=$.el},b=$=>{delete f[$]},w=$=>{s.value!==$&&(s.value=$,o(yt,$))};let y=null,S="";const k=$=>{if(!d.value)return;const B=mc($);if(!B)return;if(y){if(S===$)return;y()}S=$,p=!0;const K=p0(B,d.value),j=Xh(B,K),W=K.scrollHeight-K.clientHeight,A=Math.min(j-a.offset,W);y=z$(d.value,g,A,a.duration,()=>{setTimeout(()=>{p=!1,S=""},20)})},x=$=>{$&&(w($),k($))},O=($,B)=>{o("click",$,B),x(B)},T=NZ(()=>{d.value&&(g=h0(d.value));const $=I();p||Rt($)||w($)}),I=()=>{if(!d.value)return;const $=h0(d.value),B=[];for(const K of Object.keys(f)){const j=mc(K);if(!j)continue;const W=Xh(j,p0(j,d.value));B.push({top:W-a.offset-a.bound,href:K})}B.sort((K,j)=>K.top-j.top);for(let K=0;K$))return j.href}},_=()=>{const $=mc(a.container);!$||Eu($)?d.value=window:d.value=$};Bt(d,"scroll",T);const N=()=>{Ne(()=>{if(!u.value||!c.value||!s.value){l.value={};return}const $=f[s.value];if(!$){l.value={};return}const B=u.value.getBoundingClientRect(),K=c.value.getBoundingClientRect(),j=$.getBoundingClientRect();a.direction==="horizontal"?l.value={left:`${j.left-B.left}px`,width:`${j.width}px`,opacity:1}:l.value={top:`${j.top-B.top+(j.height-K.height)/2}px`,opacity:1}})};return pe(s,N),pe(()=>r.default?.(),N),ht(()=>{_();const $=decodeURIComponent(window.location.hash);mc($)?x($):T()}),pe(()=>a.container,()=>{_()}),St(Zx,{ns:h,direction:a.direction,currentAnchor:s,addLink:m,removeLink:b,handleClick:O}),t({scrollTo:x}),($,B)=>(E(),L("div",{ref_key:"anchorRef",ref:u,class:R(v.value)},[e.marker?(E(),L("div",{key:0,ref_key:"markerRef",ref:c,class:R(i(h).e("marker")),style:ze(l.value)},null,6)):re("v-if",!0),z("div",{class:R(i(h).e("list"))},[oe($.$slots,"default")],2)],2))}}),PZ=MZ;const AZ=Ee({title:String,href:String}),LZ=["href"];var DZ=se({name:"ElAnchorLink",__name:"anchor-link",props:AZ,setup(e){const t=e,n=M(null),{ns:a,direction:o,currentAnchor:r,addLink:s,removeLink:l,handleClick:u}=$e(Zx),c=C(()=>[a.e("link"),a.is("active",r.value===t.href)]),d=f=>{u(f,t.href)};return pe(()=>t.href,(f,p)=>{Ne(()=>{p&&l(p),f&&s({href:f,el:n.value})})}),ht(()=>{const{href:f}=t;f&&s({href:f,el:n.value})}),Vt(()=>{const{href:f}=t;f&&l(f)}),(f,p)=>(E(),L("div",{class:R(i(a).e("item"))},[z("a",{ref_key:"linkRef",ref:n,class:R(c.value),href:e.href,onClick:d},[oe(f.$slots,"default",{},()=>[wt(Ce(e.title),1)])],10,LZ),f.$slots["sub-link"]&&i(o)==="vertical"?(E(),L("div",{key:0,class:R(i(a).e("list"))},[oe(f.$slots,"sub-link")],2)):re("v-if",!0)],2))}}),Qx=DZ;const BZ=st(PZ,{AnchorLink:Qx}),VZ=sn(Qx),e4={label:"label",value:"value",disabled:"disabled"},FZ=Ee({direction:{type:G(String),default:"horizontal"},options:{type:G(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:G(Object),default:()=>e4},block:Boolean,size:Nn,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...ia(["ariaLabel"])}),zZ={[at]:e=>Ae(e)||Be(e)||Wt(e),[yt]:e=>Ae(e)||Be(e)||Wt(e)},HZ=["id","aria-label","aria-labelledby"],KZ=["name","disabled","checked","onChange"];var WZ=se({name:"ElSegmented",__name:"segmented",props:FZ,emits:zZ,setup(e,{emit:t}){const n=e,a=t,o=ge("segmented"),r=Gn(),s=In(),l=ln(),{formItem:u}=Fn(),{inputId:c,isLabeledByFormItem:d}=Ia(n,{formItemContext:u}),f=M(null),p=C$(),g=Dt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),h=(N,$)=>{const B=m($);a(at,B),a(yt,B),N.target.checked=B===n.modelValue},v=C(()=>({...e4,...n.props})),m=N=>ot(N)?N[v.value.value]:N,b=N=>ot(N)?N[v.value.label]:N,w=N=>!!(l.value||ot(N)&&N[v.value.disabled]),y=N=>n.modelValue===m(N),S=N=>n.options.find($=>m($)===N),k=N=>[o.e("item"),o.is("selected",y(N)),o.is("disabled",w(N))],x=()=>{if(!f.value)return;const N=f.value.querySelector(".is-selected"),$=f.value.querySelector(".is-selected input");if(!N||!$){g.width=0,g.height=0,g.translateX=0,g.translateY=0,g.focusVisible=!1;return}g.isInit=!0,n.direction==="vertical"?(g.height=N.offsetHeight,g.translateY=N.offsetTop):(g.width=N.offsetWidth,g.translateX=N.offsetLeft);try{g.focusVisible=$.matches(":focus-visible")}catch{}},O=C(()=>[o.b(),o.m(s.value),o.is("block",n.block)]),T=C(()=>({width:n.direction==="vertical"?"100%":`${g.width}px`,height:n.direction==="vertical"?`${g.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${g.translateY}px)`:`translateX(${g.translateX}px)`,display:g.isInit?"block":"none"})),I=C(()=>[o.e("item-selected"),o.is("disabled",w(S(n.modelValue))),o.is("focus-visible",g.focusVisible)]),_=C(()=>n.name||r.value);return nn(f,x),pe(p,x),pe(()=>n.options,x,{deep:!0,flush:"post"}),pe(()=>n.modelValue,()=>{x(),n.validateEvent&&u?.validate?.("change").catch(ut)},{flush:"post"}),(N,$)=>e.options.length?(E(),L("div",{key:0,id:i(c),ref_key:"segmentedRef",ref:f,class:R(O.value),role:"radiogroup","aria-label":i(d)?void 0:e.ariaLabel||"segmented","aria-labelledby":i(d)?i(u).labelId:void 0},[z("div",{class:R([i(o).e("group"),i(o).m(e.direction)])},[z("div",{style:ze(T.value),class:R(I.value)},null,6),(E(!0),L(Ve,null,kt(e.options,(B,K)=>(E(),L("label",{key:K,class:R(k(B))},[z("input",{class:R(i(o).e("item-input")),type:"radio",name:_.value,disabled:w(B),checked:y(B),onChange:j=>h(j,B)},null,42,KZ),z("div",{class:R(i(o).e("item-label"))},[oe(N.$slots,"default",{item:B},()=>[wt(Ce(b(B)),1)])],2)],2))),128))],2)],10,HZ)):re("v-if",!0)}}),jZ=WZ;const UZ=st(jZ),qZ=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},YZ=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const o=e.value,r=Dn(t);let s=-1,l;for(let u=a-1;u>=0;--u){const c=o[u];if(s===-1&&(c===n||c===` +`||c==="\r")){s=u;continue}if(r.includes(c)){const d=s===-1?a:s;l={pattern:o.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:s,selectionEnd:a};break}}return l},GZ=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?a:n,r=["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(t.debug){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p?.parentNode&&p.parentNode.removeChild(p)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const l=s.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";l.whiteSpace=c?"nowrap":"pre-wrap",c||(l.wordWrap="break-word"),l.position="absolute",t.debug||(l.visibility="hidden"),r.forEach(p=>{if(c&&p==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),h=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=h+Number.parseInt(u.lineHeight);g>v?l.lineHeight=`${g-h}px`:g===v?l.lineHeight=u.lineHeight:l.lineHeight="0"}else l.lineHeight=u.height;else l[p]=u[p]}),rf()?e.scrollHeight>Number.parseInt(u.height)&&(l.overflowY="scroll"):l.overflow="hidden",s.textContent=e.value.slice(0,Math.max(0,o)),c&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,s.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(s),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},XZ=Ee({...Lm,options:{type:G(Array),default:()=>[]},prefix:{type:G([String,Array]),default:"@",validator:e=>Ae(e)?e.length===1:e.every(t=>Ae(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:G([Boolean,Function]),default:()=>qZ,validator:e=>e===!1?!0:Fe(e)},placement:{type:G(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:G(Function)},modelValue:String,loading:Boolean,popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:{type:G(Object),default:()=>({})},props:{type:G(Object),default:()=>t4}}),JZ={[at]:e=>Ae(e),"whole-remove":(e,t)=>Ae(e)&&Ae(t),input:e=>Ae(e),search:(e,t)=>Ae(e)&&Ae(t),select:(e,t)=>ot(e)&&Ae(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},t4={value:"value",label:"label",disabled:"disabled"},ZZ=Ee({options:{type:G(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),QZ={select:e=>Ae(e.value)},eQ=["id","aria-disabled","aria-selected","onMousemove","onClick"];var tQ=se({name:"ElMentionDropdown",__name:"mention-dropdown",props:ZZ,emits:QZ,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("mention"),{t:s}=xt(),l=M(-1),u=M(),c=M(),d=M(),f=(S,k)=>[r.be("dropdown","item"),r.is("hovering",l.value===k),r.is("disabled",S.disabled||a.disabled)],p=S=>{S.disabled||a.disabled||o("select",S)},g=S=>{l.value=S},h=C(()=>a.disabled||a.options.every(S=>S.disabled)),v=C(()=>a.options[l.value]),m=()=>{!v.value||v.value.disabled||a.disabled||o("select",v.value)},b=S=>{const{options:k}=a;if(k.length===0||h.value)return;S==="next"?(l.value++,l.value===k.length&&(l.value=0)):S==="prev"&&(l.value--,l.value<0&&(l.value=k.length-1));const x=k[l.value];if(x.disabled){b(S);return}Ne(()=>w(x))},w=S=>{const{options:k}=a,x=k.findIndex(T=>T.value===S.value),O=c.value?.[x];if(O){const T=d.value?.querySelector?.(`.${r.be("dropdown","wrap")}`);T&&pm(T,O)}u.value?.handleScroll()};return pe(()=>a.options,()=>{h.value||a.options.length===0?l.value=-1:l.value=a.options.findIndex(S=>!S.disabled)},{immediate:!0}),t({hoveringIndex:l,navigateOptions:b,selectHoverOption:m,hoverOption:v}),(S,k)=>(E(),L("div",{ref_key:"dropdownRef",ref:d,class:R(i(r).b("dropdown"))},[S.$slots.header?(E(),L("div",{key:0,class:R(i(r).be("dropdown","header"))},[oe(S.$slots,"header")],2)):re("v-if",!0),ct(X(i(mo),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":i(r).be("dropdown","wrap"),"view-class":i(r).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ne(()=>[(E(!0),L(Ve,null,kt(e.options,(x,O)=>(E(),L("li",{id:`${e.contentId}-${O}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:O,class:R(f(x,O)),role:"option","aria-disabled":x.disabled||e.disabled||void 0,"aria-selected":l.value===O,onMousemove:T=>g(O),onClick:Xe(T=>p(x),["stop"])},[oe(S.$slots,"label",{item:x,index:O},()=>[z("span",null,Ce(x.label??x.value),1)])],42,eQ))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[$t,e.options.length>0&&!e.loading]]),e.loading?(E(),L("div",{key:1,class:R(i(r).be("dropdown","loading"))},[oe(S.$slots,"loading",{},()=>[wt(Ce(i(s)("el.mention.loading")),1)])],2)):re("v-if",!0),S.$slots.footer?(E(),L("div",{key:2,class:R(i(r).be("dropdown","footer"))},[oe(S.$slots,"footer")],2)):re("v-if",!0)],2))}}),nQ=tQ,aQ=se({name:"ElMention",inheritAttrs:!1,__name:"mention",props:XZ,emits:JZ,setup(e,{expose:t,emit:n}){const a=e,o=n,r=C(()=>{const A=Un.props??[];return hr(a,we(A)?A:Object.keys(A))}),s=ge("mention"),l=ln(),u=Gn(),c=M(),d=M(),f=M(),p=M(!1),g=M(),h=M(),v=C(()=>a.showArrow?a.placement:`${a.placement}-start`),m=C(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),b=C(()=>({...t4,...a.props})),w=A=>{const P={label:A[b.value.label],value:A[b.value.value],disabled:A[b.value.disabled]};return{...A,...P}},y=C(()=>a.options.map(w)),S=C(()=>{const{filterOption:A}=a;return!h.value||!A?y.value:y.value.filter(P=>A(h.value.pattern,P))}),k=C(()=>p.value&&(!!S.value.length||a.loading)),x=C(()=>`${u.value}-${f.value?.hoveringIndex}`),O=A=>{o(at,A),o(Tn,A),K()},T=A=>{if(c.value?.isComposing)return;const P=qt(A);switch(P){case Se.left:case Se.right:K();break;case Se.up:case Se.down:if(!p.value)return;A.preventDefault(),f.value?.navigateOptions(P===Se.up?"prev":"next");break;case Se.enter:case Se.numpadEnter:if(!p.value){a.type!=="textarea"&&K();return}A.preventDefault(),f.value?.hoverOption?f.value?.selectHoverOption():p.value=!1;break;case Se.esc:if(!p.value)return;A.preventDefault(),p.value=!1;break;case Se.backspace:if(a.whole&&h.value){const{splitIndex:V,selectionEnd:F,pattern:H,prefixIndex:U,prefix:J}=h.value,ee=B();if(!ee)return;const ae=ee.value,ce=y.value.find(Z=>Z.value===H);if((Fe(a.checkIsWhole)?a.checkIsWhole(H,J):ce)&&V!==-1&&V+1===F){A.preventDefault();const Z=ae.slice(0,U)+ae.slice(V+1);o(at,Z),o(Tn,Z),o("whole-remove",H,J);const de=U;Ne(()=>{ee.selectionStart=de,ee.selectionEnd=de,W()})}}}},{wrapperRef:I}=Er(c,{disabled:l,afterFocus(){K()},beforeBlur(A){return d.value?.isFocusInsideContent(A)},afterBlur(){p.value=!1}}),_=()=>{K()},N=A=>a.options.find(P=>A.value===P[b.value.value]),$=A=>{if(!h.value)return;const P=B();if(!P)return;const V=P.value,{split:F}=a,H=V.slice(h.value.end),U=H.startsWith(F),J=`${A.value}${U?"":F}`,ee=V.slice(0,h.value.start)+J+H;o(at,ee),o(Tn,ee),o("select",N(A),h.value.prefix);const ae=h.value.start+J.length+(U?1:0);Ne(()=>{P.selectionStart=ae,P.selectionEnd=ae,P.focus(),W()})},B=()=>a.type==="textarea"?c.value?.textarea:c.value?.input,K=()=>{setTimeout(()=>{j(),W(),Ne(()=>d.value?.updatePopper())},0)},j=()=>{const A=B();if(!A)return;const P=GZ(A),V=A.getBoundingClientRect(),F=I.value.getBoundingClientRect();g.value={position:"absolute",width:0,height:`${P.height}px`,left:`${P.left+V.left-F.left}px`,top:`${P.top+V.top-F.top}px`}},W=()=>{const A=B();if(document.activeElement!==A){p.value=!1;return}const{prefix:P,split:V}=a;if(h.value=YZ(A,P,V),h.value&&h.value.splitIndex===-1){p.value=!0,o("search",h.value.pattern,h.value.prefix);return}p.value=!1};return t({input:c,tooltip:d,dropdownVisible:k}),(A,P)=>(E(),L("div",{ref_key:"wrapperRef",ref:I,class:R(i(s).b())},[X(i(Un),pt(pt(r.value,A.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:i(l),role:k.value?"combobox":void 0,"aria-activedescendant":k.value?x.value||"":void 0,"aria-controls":k.value?i(u):void 0,"aria-expanded":k.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":k.value?"none":void 0,"aria-haspopup":k.value?"listbox":void 0,onInput:O,onKeydown:T,onMousedown:_}),ga({_:2},[kt(A.$slots,(V,F)=>({name:F,fn:ne(H=>[oe(A.$slots,F,sr(ir(H)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),X(i(Wn),{ref_key:"tooltipRef",ref:d,visible:k.value,"popper-class":[i(s).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:v.value,"fallback-placements":m.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:ne(()=>[z("div",{style:ze(g.value)},null,4)]),content:ne(()=>[X(nQ,{ref_key:"dropdownRef",ref:f,options:S.value,disabled:i(l),loading:e.loading,"content-id":i(u),"aria-label":e.ariaLabel,onSelect:$,onClick:P[0]||(P[0]=Xe(V=>c.value?.focus(),["stop"]))},ga({_:2},[kt(A.$slots,(V,F)=>({name:F,fn:ne(H=>[oe(A.$slots,F,sr(ir(H)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}}),oQ=aQ;const rQ=st(oQ),sQ=Ee({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),lQ={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},iQ=Ee({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),uQ={"update:size":e=>typeof e=="number"||typeof e=="string"};function cQ(e){const t=M(),{width:n,height:a}=dh(t);return{containerEl:t,containerSize:C(()=>e.value==="horizontal"?n.value:a.value)}}function _g(e){return Number(e.slice(0,-1))/100}function Rg(e){return Number(e.slice(0,-2))}function Ig(e){return Ae(e)&&e.endsWith("%")}function $g(e){return Ae(e)&&e.endsWith("px")}function dQ(e,t){const n=C(()=>e.value.map(s=>s.size)),a=C(()=>e.value.length),o=M([]);pe([n,a,t],()=>{let s=[],l=0;for(let c=0;cc+(d||0),0);if(u>1||!l){const c=1/u;s=s.map(d=>d===void 0?0:d*c)}else{const c=(1-u)/l;s=s.map(d=>d===void 0?c:d)}o.value=s});const r=s=>s*t.value;return{percentSizes:o,pxSizes:C(()=>o.value.map(r))}}function fQ(e,t,n,a){const o=m=>m*t.value||0;function r(m,b){return Ig(m)?o(_g(m)):$g(m)?Rg(m):m??b}const s=M(0),l=M(null);let u=[],c=ut;const d=C(()=>e.value.map(m=>[m.min,m.max]));pe(a,()=>{if(s.value){const m=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(m)}});const f=m=>{s.value=0,l.value={index:m,confirmed:!1},u=n.value},p=(m,b)=>{let w=null;if((!l.value||!l.value.confirmed)&&b!==0){if(b>0)w=m,l.value={index:m,confirmed:!0};else for(let N=m;N>=0;N-=1)if(u[N]>0){w=N,l.value={index:N,confirmed:!0};break}}const y=w??l.value?.index??m,S=[...u],k=y+1,x=r(d.value[y][0],0),O=r(d.value[k][0],0),T=r(d.value[y][1],t.value||0),I=r(d.value[k][1],t.value||0);let _=b;S[y]+_T&&(_=T-S[y]),S[k]-_>I&&(_=S[k]-I),S[y]+=_,S[k]-=_,s.value=_,c=()=>{e.value.forEach((N,$)=>{N.size=S[$]}),c=ut},a.value||c()},g=()=>{a.value&&c(),s.value=0,l.value=null,u=[]},h=[];return{lazyOffset:s,onMoveStart:f,onMoving:p,onMoveEnd:g,movingIndex:l,onCollapse:(m,b)=>{h.length||h.push(...n.value.map((O,T)=>O<=0?r(d.value[T]?.[0],0):O));const w=n.value,y=b==="start"?m:m+1,S=b==="start"?m+1:m,k=w[y],x=w[S];if(k!==0&&x!==0)w[y]=0,w[S]+=k,h[m]=k;else{const O=k+x,T=Pa(h[m],0,O),I=O-T;w[S]=T,w[y]=I}e.value.forEach((O,T)=>{O.size=w[T]})}}}const n4=Symbol("splitterRootContextKey");var pQ=se({name:"ElSplitter",__name:"splitter",props:sQ,emits:lQ,setup(e,{emit:t}){const n=ge("splitter"),a=t,o=e,r=Ht(o,"layout"),s=Ht(o,"lazy"),{containerEl:l,containerSize:u}=cQ(r),{removeChild:c,children:d,addChild:f,ChildrenSorter:p}=pf(dt(),"ElSplitterPanel");pe(d,()=>{m.value=null,d.value.forEach((_,N)=>{_.setIndex(N)})});const{percentSizes:g,pxSizes:h}=dQ(d,u),{lazyOffset:v,movingIndex:m,onMoveStart:b,onMoving:w,onMoveEnd:y,onCollapse:S}=fQ(d,u,h,s),k=C(()=>({[n.cssVarBlockName("bar-offset")]:s.value?`${v.value}px`:void 0}));return St(n4,Dt({panels:d,percentSizes:g,pxSizes:h,layout:r,lazy:s,movingIndex:m,containerSize:u,onMoveStart:_=>{b(_),a("resizeStart",_,h.value)},onMoving:(_,N)=>{w(_,N),s.value||a("resize",_,h.value)},onMoveEnd:async _=>{y(),await Ne(),a("resizeEnd",_,h.value)},onCollapse:(_,N)=>{S(_,N),a("collapse",_,N,h.value)},registerPanel:f,unregisterPanel:c})),(_,N)=>(E(),L("div",{ref_key:"containerEl",ref:l,class:R([i(n).b(),i(n).e(r.value)]),style:ze(k.value)},[oe(_.$slots,"default"),X(i(p)),re(" Prevent iframe touch events from breaking "),i(m)?(E(),L("div",{key:0,class:R([i(n).e("mask"),i(n).e(`mask-${r.value}`)])},null,2)):re("v-if",!0)],6))}}),hQ=pQ;function vQ(e){return e&&ot(e)?e:{start:!!e,end:!!e}}function C1(e,t,n,a){return!!(e?.collapsible.end&&t>0||n?.collapsible.start&&a===0&&t>0)}var mQ=se({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=ge("splitter-bar"),a=e,o=t,r=C(()=>a.layout==="horizontal"),s=C(()=>r.value?{width:0}:{height:0}),l=C(()=>({width:r.value?"16px":"100%",height:r.value?"100%":"16px",cursor:a.resizable?r.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),u=C(()=>{const w=n.e("dragger");return{[`${w}-horizontal`]:r.value,[`${w}-vertical`]:!r.value,[`${w}-active`]:!!c.value}}),c=M(null),d=w=>{a.resizable&&(c.value=[w.pageX,w.pageY],o("moveStart",a.index),window.addEventListener("mouseup",h),window.addEventListener("mousemove",p))},f=w=>{if(a.resizable&&w.touches.length===1){w.preventDefault();const y=w.touches[0];c.value=[y.pageX,y.pageY],o("moveStart",a.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",g)}},p=w=>{const{pageX:y,pageY:S}=w,k=y-c.value[0],x=S-c.value[1],O=r.value?k:x;o("moving",a.index,O)},g=w=>{if(w.touches.length===1){w.preventDefault();const y=w.touches[0],S=y.pageX-c.value[0],k=y.pageY-c.value[1],x=r.value?S:k;o("moving",a.index,x)}},h=()=>{c.value=null,window.removeEventListener("mouseup",h),window.removeEventListener("mousemove",p),o("moveEnd",a.index)},v=()=>{c.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",g),o("moveEnd",a.index)},m=C(()=>r.value?mr:hf),b=C(()=>r.value?sa:qo);return(w,y)=>(E(),L("div",{class:R([i(n).b()]),style:ze(s.value)},[e.startCollapsible?(E(),L("div",{key:0,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-start`)]),onClick:y[0]||(y[0]=S=>o("collapse",e.index,"start"))},[oe(w.$slots,"start-collapsible",{},()=>[(E(),le(it(m.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0),z("div",{class:R([i(n).e("dragger"),u.value,i(n).is("disabled",!e.resizable),i(n).is("lazy",e.resizable&&e.lazy)]),style:ze(l.value),onMousedown:d,onTouchstart:f},null,38),e.endCollapsible?(E(),L("div",{key:1,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-end`)]),onClick:y[1]||(y[1]=S=>o("collapse",e.index,"end"))},[oe(w.$slots,"end-collapsible",{},()=>[(E(),le(it(b.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0)],6))}}),gQ=mQ;const k1="ElSplitterPanel";var bQ=se({name:k1,__name:"split-panel",props:iQ,emits:uQ,setup(e,{expose:t,emit:n}){const a=ge("splitter-panel"),o=e,r=n,s=$e(n4);s||rn(k1,"usage: ");const{panels:l,layout:u,lazy:c,containerSize:d,pxSizes:f}=Pn(s),{registerPanel:p,unregisterPanel:g,onCollapse:h,onMoveEnd:v,onMoveStart:m,onMoving:b}=s,w=M(),y=dt(),S=y.uid,k=M(0),x=C(()=>l.value[k.value]),O=P=>{k.value=P},T=C(()=>x.value?f.value[k.value]??0:0),I=C(()=>x.value?f.value[k.value+1]??0:0),_=C(()=>x.value?l.value[k.value+1]:null),N=C(()=>_.value?o.resizable&&_.value?.resizable&&(T.value!==0||!o.min)&&(I.value!==0||!_.value.min):!1),$=C(()=>x.value?k.value!==l.value.length-1:!1),B=C(()=>C1(x.value,T.value,_.value,I.value)),K=C(()=>C1(_.value,I.value,x.value,T.value));function j(P){return Ig(P)?_g(P)*d.value||0:$g(P)?Rg(P):P??0}let W=!1;pe(()=>o.size,()=>{if(!W&&x.value){if(!d.value){x.value.size=o.size;return}const P=j(o.size),V=j(o.max),F=j(o.min),H=Math.min(Math.max(P,F||0),V||P);H!==P&&r("update:size",H),x.value.size=H}}),pe(()=>x.value?.size,P=>{P!==o.size&&(W=!0,r("update:size",P),Ne(()=>W=!1))}),pe(()=>o.resizable,P=>{x.value&&(x.value.resizable=P)});const A=Dt({uid:S,getVnode:()=>y.vnode,setIndex:O,...o,collapsible:C(()=>vQ(o.collapsible))});return p(A),Vt(()=>g(A)),t({splitterPanelRef:w}),(P,V)=>(E(),L(Ve,null,[z("div",pt({ref_key:"panelEl",ref:w,class:[i(a).b()],style:{flexBasis:`${T.value}px`}},P.$attrs),[oe(P.$slots,"default")],16),$.value?(E(),le(gQ,{key:0,index:k.value,layout:i(u),lazy:i(c),resizable:N.value,"start-collapsible":B.value,"end-collapsible":K.value,onMoveStart:i(m),onMoving:i(b),onMoveEnd:i(v),onCollapse:i(h)},{"start-collapsible":ne(()=>[oe(P.$slots,"start-collapsible")]),"end-collapsible":ne(()=>[oe(P.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):re("v-if",!0)],64))}}),a4=bQ;const yQ=st(hQ,{SplitPanel:a4}),wQ=sn(a4),oo="ElInfiniteScroll",SQ={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Ng=(e,t)=>Object.entries(SQ).reduce((n,[a,o])=>{const{type:r,default:s}=o,l=e.getAttribute(`infinite-scroll-${a}`);let u=t[l]??l??s;return u=u==="false"?!1:u,u=r(u),n[a]=Number.isNaN(u)?s:u,n},{}),o4=e=>{const{observer:t}=e[oo];t&&(t.disconnect(),delete e[oo].observer)},CQ=(e,t)=>{const{container:n,containerEl:a,instance:o,observer:r,lastScrollTop:s}=e[oo],{disabled:l,distance:u}=Ng(e,o),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,p=f-s;if(e[oo].lastScrollTop=f,r||l||p<0)return;let g=!1;if(n===e)g=d-(c+f)<=u;else{const{clientTop:h,scrollHeight:v}=e,m=Xh(e,a);g=f+c>=m+h+v-u}g&&t.call(o)};function Mp(e,t){const{containerEl:n,instance:a}=e[oo],{disabled:o}=Ng(e,a);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):o4(e))}const kQ={async mounted(e,t){const{instance:n,value:a}=t;Po({scope:oo,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),Fe(a)||rn(oo,"'v-infinite-scroll' binding value must be a function"),await Ne();const{delay:o,immediate:r}=Ng(e,n),s=fm(e,!0),l=s===window?document.documentElement:s,u=Fr(CQ.bind(null,e,a),o);if(s){if(e[oo]={instance:n,container:s,containerEl:l,delay:o,cb:a,onScroll:u,lastScrollTop:l.scrollTop},r){const c=new MutationObserver(Fr(Mp.bind(null,e,a),50));e[oo].observer=c,c.observe(e,{childList:!0,subtree:!0}),Mp(e,a)}s.addEventListener("scroll",u)}},unmounted(e){if(!e.ElInfiniteScroll)return;const{container:t,onScroll:n}=e[oo];t?.removeEventListener("scroll",n),o4(e)},async updated(e){if(!e.ElInfiniteScroll)await Ne();else{const{containerEl:t,cb:n,observer:a}=e[oo];t.clientHeight&&a&&Mp(e,n)}}},dv=kQ;dv.install=e=>{e.directive("InfiniteScroll",dv)};const EQ=dv;function xQ(e,t){let n;const a=M(!1),o=Dt({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(p){o.text=p}function s(){const p=o.parent,g=f.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(ra(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),ra(p,g.bm("parent","hidden"))}l(),d.unmount()}function l(){f.$el?.parentNode?.removeChild(f.$el)}function u(){e.beforeClose&&!e.beforeClose()||(a.value=!0,clearTimeout(n),n=setTimeout(c,400),o.visible=!1,e.closed?.())}function c(){if(!a.value)return;const p=o.parent;a.value=!1,p.vLoadingAddClassList=void 0,s()}const d=Dw(se({name:"ElLoading",setup(p,{expose:g}){const{ns:h,zIndex:v}=bf("loading");return g({ns:h,zIndex:v}),()=>{const m=o.spinner||o.svg,b=qe("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[qe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=o.text?qe("p",{class:h.b("text")},[o.text]):void 0;return qe(Yn,{name:h.b("fade"),onAfterLeave:c},{default:ne(()=>[ct(X("div",{style:{backgroundColor:o.background||""},class:[h.b("mask"),o.customClass,h.is("fullscreen",o.fullscreen)]},[qe("div",{class:h.b("spinner")},[b,w])]),[[$t,o.visible]])])})}}}));Object.assign(d._context,t??{});const f=d.mount(document.createElement("div"));return{...Pn(o),setText:r,removeElLoadingChild:l,close:u,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let gc;const ml=function(e={},t){if(!Pt)return;const n=TQ(e);if(n.fullscreen&&gc)return gc;const a=xQ({...n,closed:()=>{n.closed?.(),n.fullscreen&&(gc=void 0)}},t??ml._context);OQ(n,n.parent,a),E1(n,n.parent,a),n.parent.vLoadingAddClassList=()=>E1(n,n.parent,a);let o=n.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",n.parent.setAttribute("loading-number",o),n.parent.appendChild(a.$el),Ne(()=>a.visible.value=n.visible),n.fullscreen&&(gc=a),a},TQ=e=>{let t;return Ae(e.target)?t=document.querySelector(e.target)??document.body:t=e.target||document.body,{parent:t===document.body||e.body?document.body:t,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:t===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||"",visible:e.visible??!0,beforeClose:e.beforeClose,closed:e.closed,target:t}},OQ=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=or(document.body,"position"),n.originalOverflow.value=or(document.body,"overflow"),o.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=or(document.body,"position"),await Ne();for(const r of["top","left"]){const s=r==="top"?"scrollTop":"scrollLeft";o[r]=`${e.target.getBoundingClientRect()[r]+document.body[s]+document.documentElement[s]-Number.parseInt(or(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])o[r]=`${e.target.getBoundingClientRect()[r]}px`}else n.originalPosition.value=or(t,"position");for(const[r,s]of Object.entries(o))n.$el.style[r]=s},E1=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ra(t,a.bm("parent","relative")):Ua(t,a.bm("parent","relative")),e.fullscreen&&e.lock?Ua(t,a.bm("parent","hidden")):ra(t,a.bm("parent","hidden"))};ml._context=null;const bi=Symbol("ElLoading"),is=e=>`element-loading-${br(e)}`,x1=(e,t)=>{const n=t.instance,a=c=>ot(t.value)?t.value[c]:void 0,o=c=>M(Ae(c)&&n?.[c]||c),r=c=>o(a(c)||e.getAttribute(is(c))),s=a("fullscreen")??t.modifiers.fullscreen,l={text:r("text"),svg:r("svg"),svgViewBox:r("svgViewBox"),spinner:r("spinner"),background:r("background"),customClass:r("customClass"),fullscreen:s,target:a("target")??(s?void 0:e),body:a("body")??t.modifiers.body,lock:a("lock")??t.modifiers.lock},u=ml(l);u._context=Mi._context,e[bi]={options:l,instance:u}},_Q=(e,t)=>{for(const n of Object.keys(e))Gt(e[n])&&(e[n].value=t[n])},Mi={mounted(e,t){t.value&&x1(e,t)},updated(e,t){const n=e[bi];if(!t.value){n?.instance.close(),e[bi]=null;return}n?_Q(n.options,ot(t.value)?t.value:{text:e.getAttribute(is("text")),svg:e.getAttribute(is("svg")),svgViewBox:e.getAttribute(is("svgViewBox")),spinner:e.getAttribute(is("spinner")),background:e.getAttribute(is("background")),customClass:e.getAttribute(is("customClass"))}):x1(e,t)},unmounted(e){e[bi]?.instance.close(),e[bi]=null}};Mi._context=null;const RQ={install(e){ml._context=e._context,Mi._context=e._context,e.directive("loading",Mi),e.config.globalProperties.$loading=ml},directive:Mi,service:ml},r4=["primary","success","info","warning","error"],s4=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Qn=fn({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Pt?document.body:void 0}),IQ=Ee({customClass:{type:String,default:Qn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Qn.dangerouslyUseHTMLString},duration:{type:Number,default:Qn.duration},icon:{type:Ut,default:Qn.icon},id:{type:String,default:Qn.id},message:{type:G([String,Object,Function]),default:Qn.message},onClose:{type:G(Function),default:Qn.onClose},showClose:{type:Boolean,default:Qn.showClose},type:{type:String,values:r4,default:Qn.type},plain:{type:Boolean,default:Qn.plain},offset:{type:Number,default:Qn.offset},placement:{type:String,values:s4,default:Qn.placement},zIndex:{type:Number,default:Qn.zIndex},grouping:{type:Boolean,default:Qn.grouping},repeatNum:{type:Number,default:Qn.repeatNum}}),$Q={destroy:()=>!0},io=Dd({}),NQ=e=>(io[e]||(io[e]=Dd([])),io[e]),MQ=(e,t)=>{const n=io[t]||[],a=n.findIndex(s=>s.id===e),o=n[a];let r;return a>0&&(r=n[a-1]),{current:o,prev:r}},PQ=(e,t)=>{const{prev:n}=MQ(e,t);return n?n.vm.exposed.bottom.value:0},AQ=(e,t,n)=>(io[n]||[]).findIndex(a=>a.id===e)>0?16:t,LQ=["id"],DQ=["innerHTML"];var BQ=se({name:"ElMessage",__name:"message",props:IQ,emits:$Q,setup(e,{expose:t,emit:n}){const{Close:a}=$m,o=e,r=n,s=M(!1),{ns:l,zIndex:u}=bf("message"),{currentZIndex:c,nextZIndex:d}=u,f=M(),p=M(!1),g=M(0);let h;const v=C(()=>o.type?o.type==="error"?"danger":o.type:"info"),m=C(()=>{const B=o.type;return{[l.bm("icon",B)]:B&&Zr[B]}}),b=C(()=>o.icon||Zr[o.type]||""),w=C(()=>o.placement||"top"),y=C(()=>PQ(o.id,w.value)),S=C(()=>Math.max(AQ(o.id,o.offset,w.value)+y.value,o.offset)),k=C(()=>g.value+S.value),x=C(()=>w.value.includes("left")?l.is("left"):w.value.includes("right")?l.is("right"):l.is("center")),O=C(()=>w.value.startsWith("top")?"top":"bottom"),T=C(()=>({[O.value]:`${S.value}px`,zIndex:c.value}));function I(){o.duration!==0&&({stop:h}=El(()=>{N()},o.duration))}function _(){h?.()}function N(){p.value=!1,Ne(()=>{s.value||(o.onClose?.(),r("destroy"))})}function $(B){qt(B)===Se.esc&&N()}return ht(()=>{I(),d(),p.value=!0}),pe(()=>o.repeatNum,()=>{_(),I()}),Bt(document,"keydown",$),nn(f,()=>{g.value=f.value.getBoundingClientRect().height}),t({visible:p,bottom:k,close:N}),(B,K)=>(E(),le(Yn,{name:i(l).b("fade"),onBeforeEnter:K[0]||(K[0]=j=>s.value=!0),onBeforeLeave:e.onClose,onAfterLeave:K[1]||(K[1]=j=>B.$emit("destroy")),persisted:""},{default:ne(()=>[ct(z("div",{id:e.id,ref_key:"messageRef",ref:f,class:R([i(l).b(),{[i(l).m(e.type)]:e.type},i(l).is("closable",e.showClose),i(l).is("plain",e.plain),i(l).is("bottom",O.value==="bottom"),x.value,e.customClass]),style:ze(T.value),role:"alert",onMouseenter:_,onMouseleave:I},[e.repeatNum>1?(E(),le(i(YC),{key:0,value:e.repeatNum,type:v.value,class:R(i(l).e("badge"))},null,8,["value","type","class"])):re("v-if",!0),b.value?(E(),le(i(De),{key:1,class:R([i(l).e("icon"),m.value])},{default:ne(()=>[(E(),le(it(b.value)))]),_:1},8,["class"])):re("v-if",!0),!e.dangerouslyUseHTMLString||B.$slots.default?(E(),L("p",{key:2,class:R(i(l).e("content"))},[oe(B.$slots,"default",{},()=>[wt(Ce(e.message),1)])],2)):(E(),L(Ve,{key:3},[re(" Caution here, message could've been compromised, never use user's input as message "),z("p",{class:R(i(l).e("content")),innerHTML:e.message},null,10,DQ)],2112)),e.showClose?(E(),le(i(De),{key:4,class:R(i(l).e("closeBtn")),onClick:Xe(N,["stop"])},{default:ne(()=>[X(i(a))]),_:1},8,["class"])):re("v-if",!0)],46,LQ),[[$t,p.value]])]),_:3},8,["name","onBeforeLeave"]))}}),VQ=BQ;let FQ=1;const zQ=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Ae(e.appendTo)){let t=document.querySelector(e.appendTo);xa(t)||(jt("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},HQ=e=>{!e.placement&&Ae(ea.placement)&&ea.placement&&(e.placement=ea.placement),e.placement||(e.placement="top"),s4.includes(e.placement)||(jt("ElMessage",`Invalid placement: ${e.placement}. Falling back to 'top'.`),e.placement="top")},l4=e=>{const t=!e||Ae(e)||Zt(e)||Fe(e)?{message:e}:e,n={...Qn,...t};return zQ(n),HQ(n),Wt(ea.grouping)&&!n.grouping&&(n.grouping=ea.grouping),Be(ea.duration)&&n.duration===3e3&&(n.duration=ea.duration),Be(ea.offset)&&n.offset===16&&(n.offset=ea.offset),Wt(ea.showClose)&&!n.showClose&&(n.showClose=ea.showClose),Wt(ea.plain)&&!n.plain&&(n.plain=ea.plain),n},KQ=e=>{const t=io[e.props.placement||"top"],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:a}=e;a.close()},WQ=({appendTo:e,...t},n)=>{const a=`message_${FQ++}`,o=t.onClose,r=document.createElement("div"),s={...t,id:a,onClose:()=>{o?.(),KQ(c)},onDestroy:()=>{Yr(null,r)}},l=X(VQ,s,Fe(s.message)||Zt(s.message)?{default:Fe(s.message)?s.message:()=>s.message}:null);l.appContext=n||As._context,Yr(l,r),e.appendChild(r.firstElementChild);const u=l.component,c={id:a,vnode:l,vm:u,handler:{close:()=>{u.exposed.close()}},props:l.component.props};return c},As=(e={},t)=>{if(!Pt)return{close:()=>{}};const n=l4(e),a=NQ(n.placement||"top");if(n.grouping&&a.length){const r=a.find(({vnode:s})=>s.props?.message===n.message);if(r)return r.props.repeatNum+=1,r.props.type=n.type,r.handler}if(Be(ea.max)&&a.length>=ea.max)return{close:()=>{}};const o=WQ(n,t);return a.push(o),o.handler};r4.forEach(e=>{As[e]=(t={},n)=>As({...l4(t),type:e},n)});function jQ(e){for(const t in io)if(Nt(io,t)){const n=[...io[t]];for(const a of n)(!e||e===a.props.type)&&a.handler.close()}}function UQ(e){io[e]&&[...io[e]].forEach(t=>t.handler.close())}As.closeAll=jQ;As.closeAllByPlacement=UQ;As._context=null;const fv=EC(As,"$message");var qQ=se({name:"ElMessageBox",directives:{TrapFocus:TB},components:{ElButton:Bn,ElFocusTrap:ql,ElInput:Un,ElOverlay:ag,ElIcon:De,...$m},inheritAttrs:!1,props:{buttonSize:{type:String,validator:lx},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:o,size:r}=bf("message-box",C(()=>e.buttonSize)),{t:s}=n,{nextZIndex:l}=a,u=M(!1),c=Dt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Ya(vo),cancelButtonLoadingIcon:Ya(vo),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),d=C(()=>{const j=c.type;return{[o.bm("icon",j)]:j&&Zr[j]}}),f=Gn(),p=Gn(),g=C(()=>{const j=c.type;return c.icon||j&&Zr[j]||""}),h=C(()=>!!c.message),v=M(),m=M(),b=M(),w=M(),y=M(),S=C(()=>c.confirmButtonClass);pe(()=>c.inputValue,async j=>{await Ne(),e.boxType==="prompt"&&j&&N()},{immediate:!0}),pe(()=>u.value,j=>{j&&(e.boxType!=="prompt"&&(c.autofocus?b.value=y.value?.$el??v.value:b.value=v.value),c.zIndex=l()),e.boxType==="prompt"&&(j?Ne().then(()=>{w.value&&w.value.$el&&(c.autofocus?b.value=$()??v.value:b.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const{isDragging:k}=zS(v,m,C(()=>e.draggable),C(()=>e.overflow));ht(async()=>{await Ne(),e.closeOnHashChange&&window.addEventListener("hashchange",x)}),Vt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",x)});function x(){u.value&&(u.value=!1,Ne(()=>{c.action&&t("action",c.action)}))}const O=()=>{e.closeOnClickModal&&_(c.distinguishCancelAndClose?"close":"cancel")},T=Cm(O),I=j=>{if(c.inputType!=="textarea"&&!w.value?.isComposing)return j.preventDefault(),_("confirm")},_=j=>{e.boxType==="prompt"&&j==="confirm"&&!N()||(c.action=j,c.beforeClose?c.beforeClose?.(j,c,x):x())},N=()=>{if(e.boxType==="prompt"){const j=c.inputPattern;if(j&&!j.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;const W=c.inputValidator;if(Fe(W)){const A=W(c.inputValue);if(A===!1)return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;if(Ae(A))return c.editorErrorMessage=A,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},$=()=>{const j=w.value?.$refs;return j?.input??j?.textarea},B=()=>{_("close")},K=()=>{e.closeOnPressEscape&&B()};return e.lockScroll&&sf(u,{ns:o}),{...Pn(c),ns:o,overlayEvent:T,visible:u,hasMessage:h,typeClass:d,contentId:f,inputId:p,btnSize:r,iconComponent:g,confirmButtonClasses:S,rootRef:v,focusStartRef:b,headerRef:m,inputRef:w,isDragging:k,confirmRef:y,doClose:x,handleClose:B,onCloseRequested:K,handleWrapperClick:O,handleInputEnter:I,handleAction:_,t:s}}});const YQ=["aria-label","aria-describedby"],GQ=["aria-label"],XQ=["id"];function JQ(e,t,n,a,o,r){const s=Mt("el-icon"),l=Mt("el-input"),u=Mt("el-button"),c=Mt("el-focus-trap"),d=Mt("el-overlay");return E(),le(Yn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ne(()=>[ct(X(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ne(()=>[z("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:R(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[X(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ne(()=>[z("div",{ref:"rootRef",class:R([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:ze(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Xe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(E(),L("div",{key:0,ref:"headerRef",class:R([e.ns.e("header"),{"show-close":e.showClose}])},[z("div",{class:R(e.ns.e("title"))},[e.iconComponent&&e.center?(E(),le(s,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ne(()=>[(E(),le(it(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),z("span",null,Ce(e.title),1)],2),e.showClose?(E(),L("button",{key:0,type:"button",class:R(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=cn(Xe(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[X(s,{class:R(e.ns.e("close"))},{default:ne(()=>[(E(),le(it(e.closeIcon||"close")))]),_:1},8,["class"])],42,GQ)):re("v-if",!0)],2)):re("v-if",!0),z("div",{id:e.contentId,class:R(e.ns.e("content"))},[z("div",{class:R(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(E(),le(s,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ne(()=>[(E(),le(it(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.hasMessage?(E(),L("div",{key:1,class:R(e.ns.e("message"))},[oe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(E(),le(it(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(E(),le(it(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:Ce(e.message)},null,8,["for","textContent"]))])],2)):re("v-if",!0)],2),ct(z("div",{class:R(e.ns.e("input"))},[X(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:R({invalid:e.validateError}),onKeydown:cn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),z("div",{class:R(e.ns.e("errormsg")),style:ze({visibility:e.editorErrorMessage?"visible":"hidden"})},Ce(e.editorErrorMessage),7)],2),[[$t,e.showInput]])],10,XQ),z("div",{class:R(e.ns.e("btns"))},[e.showCancelButton?(E(),le(u,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:R([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=cn(Xe(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ne(()=>[wt(Ce(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):re("v-if",!0),ct(X(u,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:R([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=cn(Xe(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ne(()=>[wt(Ce(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[$t,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,YQ)]),_:3},8,["z-index","overlay-class","mask"]),[[$t,e.visible]])]),_:3})}var ZQ=Mn(qQ,[["render",JQ]]);const fu=new Map,QQ=e=>{let t=document.body;return e.appendTo&&(Ae(e.appendTo)&&(t=document.querySelector(e.appendTo)),xa(e.appendTo)&&(t=e.appendTo),xa(t)||(jt("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},Pp=(e,t)=>{const n=e.component?.proxy;return()=>n.handleAction(t)},eee=(e,t,n=null)=>{const a=X(ZQ,e,Fe(e.message)||Zt(e.message)?{default:Fe(e.message)?()=>e.message({confirm:Pp(a,"confirm"),cancel:Pp(a,"cancel"),close:Pp(a,"close")}):()=>e.message}:null);return a.appContext=n,Yr(a,t),QQ(e).appendChild(t.firstElementChild),a.component},tee=()=>document.createElement("div"),nee=(e,t)=>{const n=tee();e.onVanish=()=>{Yr(null,n),fu.delete(o)},e.onAction=r=>{const s=fu.get(o);let l;e.showInput?l={value:o.inputValue,action:r}:l=r,e.callback?e.callback(l,a.proxy):r==="cancel"||r==="close"?e.distinguishCancelAndClose&&r!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(l)};const a=eee(e,n,t),o=a.proxy;for(const r in e)Nt(e,r)&&!Nt(o.$props,r)&&(r==="closeIcon"&&ot(e[r])?o[r]=Ya(e[r]):o[r]=e[r]);return o.visible=!0,o};function Gl(e,t=null){if(!Pt)return Promise.reject();let n;return Ae(e)||Zt(e)?e={message:e}:n=e.callback,new Promise((a,o)=>{const r=nee(e,t??Gl._context);fu.set(r,{options:e,callback:n,resolve:a,reject:o})})}const aee=["alert","confirm","prompt"],oee={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};aee.forEach(e=>{Gl[e]=ree(e)});function ree(e){return(t,n,a,o)=>{let r="";return ot(n)?(a=n,r=""):Rt(n)?r="":r=n,Gl(Object.assign({title:r,message:t,type:"",...oee[e]},a,{boxType:e}),o)}}Gl.close=()=>{fu.forEach((e,t)=>{t.doClose()}),fu.clear()};Gl._context=null;const Lr=Gl;Lr.install=e=>{Lr._context=e._context,e.config.globalProperties.$msgbox=Lr,e.config.globalProperties.$messageBox=Lr,e.config.globalProperties.$alert=Lr.alert,e.config.globalProperties.$confirm=Lr.confirm,e.config.globalProperties.$prompt=Lr.prompt};const see=Lr,i4=["primary","success","info","warning","error"],lee=Ee({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ut},id:{type:String,default:""},message:{type:G([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:G(Function),default:()=>{}},onClose:{type:G(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:[...i4,""],default:""},zIndex:Number,closeIcon:{type:Ut,default:Qa}}),iee={destroy:()=>!0},uee=["id"],cee=["textContent"],dee={key:0},fee=["innerHTML"];var pee=se({name:"ElNotification",__name:"notification",props:lee,emits:iee,setup(e,{expose:t}){const n=e,{ns:a,zIndex:o}=bf("notification"),{nextZIndex:r,currentZIndex:s}=o,l=M(!1);let u;const c=C(()=>{const w=n.type;return w&&Zr[n.type]?a.m(w):""}),d=C(()=>n.type&&Zr[n.type]||n.icon),f=C(()=>n.position.endsWith("right")?"right":"left"),p=C(()=>n.position.startsWith("top")?"top":"bottom"),g=C(()=>({[p.value]:`${n.offset}px`,zIndex:n.zIndex??s.value}));function h(){n.duration>0&&({stop:u}=El(()=>{l.value&&m()},n.duration))}function v(){u?.()}function m(){l.value=!1}function b(w){switch(qt(w)){case Se.delete:case Se.backspace:v();break;case Se.esc:l.value&&m();break;default:h();break}}return ht(()=>{h(),r(),l.value=!0}),Bt(document,"keydown",b),t({visible:l,close:m}),(w,y)=>(E(),le(Yn,{name:i(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:y[1]||(y[1]=S=>w.$emit("destroy")),persisted:""},{default:ne(()=>[ct(z("div",{id:e.id,class:R([i(a).b(),e.customClass,f.value]),style:ze(g.value),role:"alert",onMouseenter:v,onMouseleave:h,onClick:y[0]||(y[0]=(...S)=>e.onClick&&e.onClick(...S))},[d.value?(E(),le(i(De),{key:0,class:R([i(a).e("icon"),c.value])},{default:ne(()=>[(E(),le(it(d.value)))]),_:1},8,["class"])):re("v-if",!0),z("div",{class:R(i(a).e("group"))},[z("h2",{class:R(i(a).e("title")),textContent:Ce(e.title)},null,10,cee),ct(z("div",{class:R(i(a).e("content")),style:ze(e.title?void 0:{margin:0})},[oe(w.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(E(),L(Ve,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),z("p",{innerHTML:e.message},null,8,fee)],2112)):(E(),L("p",dee,Ce(e.message),1))])],6),[[$t,e.message]]),e.showClose?(E(),le(i(De),{key:0,class:R(i(a).e("closeBtn")),onClick:Xe(m,["stop"])},{default:ne(()=>[(E(),le(it(e.closeIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],46,uee),[[$t,l.value]])]),_:3},8,["name","onBeforeLeave"]))}}),hee=pee;const Al={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Ed=16;let vee=1;const Ls=function(e={},t){if(!Pt)return{close:()=>{}};(Ae(e)||Zt(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;Al[n].forEach(({vm:d})=>{a+=(d.el?.offsetHeight||0)+Ed}),a+=Ed;const o=`notification_${vee++}`,r=e.onClose,s={...e,offset:a,id:o,onClose:()=>{mee(o,n,r)}};let l=document.body;xa(e.appendTo)?l=e.appendTo:Ae(e.appendTo)&&(l=document.querySelector(e.appendTo)),xa(l)||(jt("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const u=document.createElement("div"),c=X(hee,s,Fe(s.message)?s.message:Zt(s.message)?()=>s.message:null);return c.appContext=Rt(t)?Ls._context:t,c.props.onDestroy=()=>{Yr(null,u)},Yr(c,u),Al[n].push({vm:c}),l.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};i4.forEach(e=>{Ls[e]=(t={},n)=>((Ae(t)||Zt(t))&&(t={message:t}),Ls({...t,type:e},n))});function mee(e,t,n){const a=Al[t],o=a.findIndex(({vm:c})=>c.component?.props.id===e);if(o===-1)return;const{vm:r}=a[o];if(!r)return;n?.(r);const s=r.el.offsetHeight,l=t.split("-")[0];a.splice(o,1);const u=a.length;if(!(u<1))for(let c=o;c{t.component.exposed.visible.value=!1})}function bee(e="top-right"){let t=Al[e][0]?.vm.component?.props?.offset||0;for(const{vm:n}of Al[e])n.component.props.offset=t,t+=(n.el?.offsetHeight||0)+Ed}Ls.closeAll=gee;Ls.updateOffsets=bee;Ls._context=null;const yee=EC(Ls,"$notify"),wee=Ee({trigger:Bo.trigger,triggerKeys:Bo.triggerKeys,placement:$c.placement,disabled:Bo.disabled,visible:Kt.visible,transition:Kt.transition,popperOptions:$c.popperOptions,tabindex:$c.tabindex,content:Kt.content,popperStyle:Kt.popperStyle,popperClass:Kt.popperClass,enterable:{...Kt.enterable,default:!0},effect:{...Kt.effect,default:"light"},teleported:Kt.teleported,appendTo:Kt.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),See={"update:visible":e=>Wt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Cee="onUpdate:visible";var kee=se({name:"ElPopover",__name:"popover",props:wee,emits:See,setup(e,{expose:t,emit:n}){const a=e,o=n,r=C(()=>a[Cee]),s=ge("popover"),l=M(),u=C(()=>i(l)?.popperRef),c=C(()=>[{width:pn(a.width)},a.popperStyle]),d=C(()=>[s.b(),a.popperClass,{[s.m("plain")]:!!a.content}]),f=C(()=>a.transition===`${s.namespace.value}-fade-in-linear`),p=()=>{l.value?.hide()},g=()=>{o("before-enter")},h=()=>{o("before-leave")},v=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:u,hide:p}),(b,w)=>(E(),le(i(Wn),pt({ref_key:"tooltipRef",ref:l},b.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":d.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":r.value,onBeforeShow:g,onBeforeHide:h,onShow:v,onHide:m}),{content:ne(()=>[e.title?(E(),L("div",{key:0,class:R(i(s).e("title")),role:"title"},Ce(e.title),3)):re("v-if",!0),oe(b.$slots,"default",{hide:p},()=>[wt(Ce(e.content),1)])]),default:ne(()=>[b.$slots.reference?oe(b.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),Eee=kee;const T1=(e,t)=>{const n=(t.arg||t.value)?.popperRef;n&&(n.triggerRef=e)};var xee={mounted(e,t){T1(e,t)},updated(e,t){T1(e,t)}};const Tee="popover",u4=tP(xee,Tee),Oee=st(Eee,{directive:u4}),_ee="2.14.0",Ree=(e=[])=>({version:_ee,install:(n,a)=>{n[$b]||(n[$b]=!0,e.forEach(o=>n.use(o)),a&&Bm(a,n,!0))}});var Iee=[oP,dL,y5,GG,x5,T5,N5,YC,H5,K5,Bn,tk,VV,KV,oF,rF,yz,lE,Ez,go,FF,Ym,Pz,Gz,Xz,Sf,yE,E9,G5,$9,N9,M9,P9,A9,k7,NE,N7,M7,Y7,FE,lK,YK,GK,XK,GE,iD,uD,De,BW,XE,Un,JE,tj,lj,pj,Rj,Ij,$j,Nj,Bj,bU,kU,Oee,KC,ax,sE,ZF,JF,BU,HU,$z,mo,es,cd,yV,cq,mq,gq,Dq,Hq,EE,W9,Gq,Xq,sY,hG,vG,YG,iX,uX,cr,Sg,UB,gX,CX,kX,Wn,LX,Eg,oJ,wJ,qJ,aZ,_Z,RZ,BZ,VZ,UZ,rQ,yQ,wQ],$ee=[EQ,RQ,fv,see,yee,u4],Mg=Ree([...Iee,...$ee]);Mg.install;Mg.version;var Nee=Mg,Mee={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"},inputOTP:{groupLabel:"一次性密码输入框",defaultLabel:"请输入第 {index} 位 OTP 字符"}}};const Pee=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n},Aee={};function Lee(e,t){const n=Mt("router-view");return E(),le(n,null,{default:ne(({Component:a})=>[(E(),le(it(a)))]),_:1})}const Dee=Pee(Aee,[["render",Lee]]),Bee="modulepreload",Vee=function(e){return"/"+e},O1={},vn=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");o=Promise.allSettled(n.map(u=>{if(u=Vee(u),u in O1)return;O1[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Bee,c||(f.as="script"),f.crossOrigin="",f.href=u,l&&f.setAttribute("nonce",l),document.head.appendChild(f),c)return new Promise((p,g)=>{f.addEventListener("load",p),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function r(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&r(l.reason);return t().catch(r)})};/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const ol=typeof document<"u";function c4(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Fee(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&c4(e.default)}const on=Object.assign;function Ap(e,t){const n={};for(const a in t){const o=t[a];n[a]=bo(o)?o.map(e):e(o)}return n}const Pi=()=>{},bo=Array.isArray;function _1(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const d4=/#/g,zee=/&/g,Hee=/\//g,Kee=/=/g,Wee=/\?/g,f4=/\+/g,jee=/%5B/g,Uee=/%5D/g,p4=/%5E/g,qee=/%60/g,h4=/%7B/g,Yee=/%7C/g,v4=/%7D/g,Gee=/%20/g;function Pg(e){return e==null?"":encodeURI(""+e).replace(Yee,"|").replace(jee,"[").replace(Uee,"]")}function Xee(e){return Pg(e).replace(h4,"{").replace(v4,"}").replace(p4,"^")}function pv(e){return Pg(e).replace(f4,"%2B").replace(Gee,"+").replace(d4,"%23").replace(zee,"%26").replace(qee,"`").replace(h4,"{").replace(v4,"}").replace(p4,"^")}function Jee(e){return pv(e).replace(Kee,"%3D")}function Zee(e){return Pg(e).replace(d4,"%23").replace(Wee,"%3F")}function Qee(e){return Zee(e).replace(Hee,"%2F")}function pu(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const ete=/\/$/,tte=e=>e.replace(ete,"");function Lp(e,t,n="/"){let a,o={},r="",s="";const l=t.indexOf("#");let u=t.indexOf("?");return u=l>=0&&u>l?-1:u,u>=0&&(a=t.slice(0,u),r=t.slice(u,l>0?l:t.length),o=e(r.slice(1))),l>=0&&(a=a||t.slice(0,l),s=t.slice(l,t.length)),a=rte(a??t,n),{fullPath:a+r+s,path:a,query:o,hash:pu(s)}}function nte(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function R1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ate(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&Ll(t.matched[a],n.matched[o])&&m4(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ll(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function m4(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ote(e[n],t[n]))return!1;return!0}function ote(e,t){return bo(e)?I1(e,t):bo(t)?I1(t,e):e?.valueOf()===t?.valueOf()}function I1(e,t){return bo(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function rte(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let r=n.length-1,s,l;for(s=0;s1&&r--;else break;return n.slice(0,r).join("/")+"/"+a.slice(s).join("/")}const Ir={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let hv=function(e){return e.pop="pop",e.push="push",e}({}),Dp=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function ste(e){if(!e)if(ol){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),tte(e)}const lte=/^[^#]+#/;function ite(e,t){return e.replace(lte,"#")+t}function ute(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Tf=()=>({left:window.scrollX,top:window.scrollY});function cte(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ute(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $1(e,t){return(history.state?history.state.position-t:-1)+e}const vv=new Map;function dte(e,t){vv.set(e,t)}function fte(e){const t=vv.get(e);return vv.delete(e),t}function pte(e){return typeof e=="string"||e&&typeof e=="object"}function g4(e){return typeof e=="string"||typeof e=="symbol"}let $n=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const b4=Symbol("");$n.MATCHER_NOT_FOUND+"",$n.NAVIGATION_GUARD_REDIRECT+"",$n.NAVIGATION_ABORTED+"",$n.NAVIGATION_CANCELLED+"",$n.NAVIGATION_DUPLICATED+"";function Dl(e,t){return on(new Error,{type:e,[b4]:!0},t)}function Jo(e,t){return e instanceof Error&&b4 in e&&(t==null||!!(e.type&t))}const hte=["params","query","hash"];function vte(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of hte)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function mte(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&pv(o)):[a&&pv(a)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function gte(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=bo(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const bte=Symbol(""),M1=Symbol(""),Of=Symbol(""),Ag=Symbol(""),mv=Symbol("");function ii(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Br(e,t,n,a,o,r=s=>s()){const s=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((l,u)=>{const c=p=>{p===!1?u(Dl($n.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?u(p):pte(p)?u(Dl($n.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(s&&a.enterCallbacks[o]===s&&typeof p=="function"&&s.push(p),l())},d=r(()=>e.call(a&&a.instances[o],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(p=>u(p))})}function Bp(e,t,n,a,o=r=>r()){const r=[];for(const s of e)for(const l in s.components){let u=s.components[l];if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(c4(u)){const c=(u.__vccOpts||u)[t];c&&r.push(Br(c,n,a,s,l,o))}else{let c=u();r.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const f=Fee(d)?d.default:d;s.mods[l]=d,s.components[l]=f;const p=(f.__vccOpts||f)[t];return p&&Br(p,n,a,s,l,o)()}))}}return r}function yte(e,t){const n=[],a=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sLl(c,l))?a.push(l):n.push(l));const u=e.matched[s];u&&(t.matched.find(c=>Ll(c,u))||o.push(u))}return[n,a,o]}/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let wte=()=>location.protocol+"//"+location.host;function y4(e,t){const{pathname:n,search:a,hash:o}=t,r=e.indexOf("#");if(r>-1){let s=o.includes(e.slice(r))?e.slice(r).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),R1(l,"")}return R1(n,e)+a+o}function Ste(e,t,n,a){let o=[],r=[],s=null;const l=({state:p})=>{const g=y4(e,location),h=n.value,v=t.value;let m=0;if(p){if(n.value=g,t.value=p,s&&s===h){s=null;return}m=v?p.position-v.position:0}else a(g);o.forEach(b=>{b(n.value,h,{delta:m,type:hv.pop,direction:m?m>0?Dp.forward:Dp.back:Dp.unknown})})};function u(){s=n.value}function c(p){o.push(p);const g=()=>{const h=o.indexOf(p);h>-1&&o.splice(h,1)};return r.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(on({},p.state,{scroll:Tf()}),"")}}function f(){for(const p of r)p();r=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function P1(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?Tf():null}}function Cte(e){const{history:t,location:n}=window,a={value:y4(e,n)},o={value:t.state};o.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(u,c,d){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:wte()+e+u;try{t[d?"replaceState":"pushState"](c,"",p),o.value=c}catch(g){console.error(g),n[d?"replace":"assign"](p)}}function s(u,c){r(u,on({},t.state,P1(o.value.back,u,o.value.forward,!0),c,{position:o.value.position}),!0),a.value=u}function l(u,c){const d=on({},o.value,t.state,{forward:u,scroll:Tf()});r(d.current,d,!0),r(u,on({},P1(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:o,push:l,replace:s}}function kte(e){e=ste(e);const t=Cte(e),n=Ste(e,t.state,t.location,t.replace);function a(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=on({location:"",base:e,go:a,createHref:ite.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let bs=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var zn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(zn||{});const Ete={type:bs.Static,value:""},xte=/[a-zA-Z0-9_]/;function Tte(e){if(!e)return[[]];if(e==="/")return[[Ete]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=zn.Static,a=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let l=0,u,c="",d="";function f(){c&&(n===zn.Static?r.push({type:bs.Static,value:c}):n===zn.Param||n===zn.ParamRegExp||n===zn.ParamRegExpEnd?(r.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:bs.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;lt.length?t.length===1&&t[0]===fa.Static+fa.Segment?1:-1:0}function w4(e,t){let n=0;const a=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const $te={strict:!1,end:!0,sensitive:!1};function Nte(e,t,n){const a=Rte(Tte(e.path),n),o=on(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Mte(e,t){const n=[],a=new Map;t=_1($te,t);function o(f){return a.get(f)}function r(f,p,g){const h=!g,v=B1(f);v.aliasOf=g&&g.record;const m=_1(t,f),b=[v];if("alias"in f){const S=typeof f.alias=="string"?[f.alias]:f.alias;for(const k of S)b.push(B1(on({},v,{components:g?g.record.components:v.components,path:k,aliasOf:g?g.record:v})))}let w,y;for(const S of b){const{path:k}=S;if(p&&k[0]!=="/"){const x=p.record.path,O=x[x.length-1]==="/"?"":"/";S.path=p.record.path+(k&&O+k)}if(w=Nte(S,p,m),g?g.alias.push(w):(y=y||w,y!==w&&y.alias.push(w),h&&f.name&&!V1(w)&&s(f.name)),S4(w)&&u(w),v.children){const x=v.children;for(let O=0;O{s(y)}:Pi}function s(f){if(g4(f)){const p=a.get(f);p&&(a.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&a.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function l(){return n}function u(f){const p=Lte(f,n);n.splice(p,0,f),f.record.name&&!V1(f)&&a.set(f.record.name,f)}function c(f,p){let g,h={},v,m;if("name"in f&&f.name){if(g=a.get(f.name),!g)throw Dl($n.MATCHER_NOT_FOUND,{location:f});m=g.record.name,h=on(D1(p.params,g.keys.filter(y=>!y.optional).concat(g.parent?g.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),f.params&&D1(f.params,g.keys.map(y=>y.name))),v=g.stringify(h)}else if(f.path!=null)v=f.path,g=n.find(y=>y.re.test(v)),g&&(h=g.parse(v),m=g.record.name);else{if(g=p.name?a.get(p.name):n.find(y=>y.re.test(p.path)),!g)throw Dl($n.MATCHER_NOT_FOUND,{location:f,currentLocation:p});m=g.record.name,h=on({},p.params,f.params),v=g.stringify(h)}const b=[];let w=g;for(;w;)b.unshift(w.record),w=w.parent;return{name:m,path:v,params:h,matched:b,meta:Ate(b)}}e.forEach(f=>r(f));function d(){n.length=0,a.clear()}return{addRoute:r,resolve:c,removeRoute:s,clearRoutes:d,getRoutes:l,getRecordMatcher:o}}function D1(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function B1(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Pte(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Pte(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function V1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ate(e){return e.reduce((t,n)=>on(t,n.meta),{})}function Lte(e,t){let n=0,a=t.length;for(;n!==a;){const r=n+a>>1;w4(e,t[r])<0?a=r:n=r+1}const o=Dte(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function Dte(e){let t=e;for(;t=t.parent;)if(S4(t)&&w4(e,t)===0)return t}function S4({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function F1(e){const t=$e(Of),n=$e(Ag),a=C(()=>{const u=i(e.to);return t.resolve(u)}),o=C(()=>{const{matched:u}=a.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const p=f.findIndex(Ll.bind(null,d));if(p>-1)return p;const g=z1(u[c-2]);return c>1&&z1(d)===g&&f[f.length-1].path!==g?f.findIndex(Ll.bind(null,u[c-2])):p}),r=C(()=>o.value>-1&&Hte(n.params,a.value.params)),s=C(()=>o.value>-1&&o.value===n.matched.length-1&&m4(n.params,a.value.params));function l(u={}){if(zte(u)){const c=t[i(e.replace)?"replace":"push"](i(e.to)).catch(Pi);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:a,href:C(()=>a.value.href),isActive:r,isExactActive:s,navigate:l}}function Bte(e){return e.length===1?e[0]:e}const Vte=se({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:F1,setup(e,{slots:t}){const n=Dt(F1(e)),{options:a}=$e(Of),o=C(()=>({[H1(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[H1(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&Bte(t.default(n));return e.custom?r:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Fte=Vte;function zte(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Hte(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!bo(o)||o.length!==a.length||a.some((r,s)=>r.valueOf()!==o[s].valueOf()))return!1}return!0}function z1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const H1=(e,t,n)=>e??t??n,Kte=se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=$e(mv),o=C(()=>e.route||a.value),r=$e(M1,0),s=C(()=>{let c=i(r);const{matched:d}=o.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),l=C(()=>o.value.matched[s.value]);St(M1,C(()=>s.value+1)),St(bte,l),St(mv,o);const u=M();return pe(()=>[u.value,l.value,e.name],([c,d,f],[p,g,h])=>{d&&(d.instances[f]=c,g&&g!==d&&c&&c===p&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),c&&d&&(!g||!Ll(d,g)||!p)&&(d.enterCallbacks[f]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,f=l.value,p=f&&f.components[d];if(!p)return K1(n.default,{Component:p,route:c});const g=f.props[d],h=g?g===!0?c.params:typeof g=="function"?g(c):g:null,m=qe(p,on({},h,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return K1(n.default,{Component:m,route:c})||m}}});function K1(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Wte=Kte;function jte(e){const t=Mte(e.routes,e),n=e.parseQuery||mte,a=e.stringifyQuery||N1,o=e.history,r=ii(),s=ii(),l=ii(),u=Tt(Ir);let c=Ir;ol&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Ap.bind(null,Z=>""+Z),f=Ap.bind(null,Qee),p=Ap.bind(null,pu);function g(Z,de){let ue,Y;return g4(Z)?(ue=t.getRecordMatcher(Z),Y=de):Y=Z,t.addRoute(Y,ue)}function h(Z){const de=t.getRecordMatcher(Z);de&&t.removeRoute(de)}function v(){return t.getRoutes().map(Z=>Z.record)}function m(Z){return!!t.getRecordMatcher(Z)}function b(Z,de){if(de=on({},de||u.value),typeof Z=="string"){const te=Lp(n,Z,de.path),fe=t.resolve({path:te.path},de),he=o.createHref(te.fullPath);return on(te,fe,{params:p(fe.params),hash:pu(te.hash),redirectedFrom:void 0,href:he})}let ue;if(Z.path!=null)ue=on({},Z,{path:Lp(n,Z.path,de.path).path});else{const te=on({},Z.params);for(const fe in te)te[fe]==null&&delete te[fe];ue=on({},Z,{params:f(te)}),de.params=f(de.params)}const Y=t.resolve(ue,de),Q=Z.hash||"";Y.params=d(p(Y.params));const D=nte(a,on({},Z,{hash:Xee(Q),path:Y.path})),q=o.createHref(D);return on({fullPath:D,hash:Q,query:a===N1?gte(Z.query):Z.query||{}},Y,{redirectedFrom:void 0,href:q})}function w(Z){return typeof Z=="string"?Lp(n,Z,u.value.path):on({},Z)}function y(Z,de){if(c!==Z)return Dl($n.NAVIGATION_CANCELLED,{from:de,to:Z})}function S(Z){return O(Z)}function k(Z){return S(on(w(Z),{replace:!0}))}function x(Z,de){const ue=Z.matched[Z.matched.length-1];if(ue&&ue.redirect){const{redirect:Y}=ue;let Q=typeof Y=="function"?Y(Z,de):Y;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=w(Q):{path:Q},Q.params={}),on({query:Z.query,hash:Z.hash,params:Q.path!=null?{}:Z.params},Q)}}function O(Z,de){const ue=c=b(Z),Y=u.value,Q=Z.state,D=Z.force,q=Z.replace===!0,te=x(ue,Y);if(te)return O(on(w(te),{state:typeof te=="object"?on({},Q,te.state):Q,force:D,replace:q}),de||ue);const fe=ue;fe.redirectedFrom=de;let he;return!D&&ate(a,Y,ue)&&(he=Dl($n.NAVIGATION_DUPLICATED,{to:fe,from:Y}),H(Y,Y,!0,!1)),(he?Promise.resolve(he):_(fe,Y)).catch(ve=>Jo(ve)?Jo(ve,$n.NAVIGATION_GUARD_REDIRECT)?ve:F(ve):P(ve,fe,Y)).then(ve=>{if(ve){if(Jo(ve,$n.NAVIGATION_GUARD_REDIRECT))return O(on({replace:q},w(ve.to),{state:typeof ve.to=="object"?on({},Q,ve.to.state):Q,force:D}),de||fe)}else ve=$(fe,Y,!0,q,Q);return N(fe,Y,ve),ve})}function T(Z,de){const ue=y(Z,de);return ue?Promise.reject(ue):Promise.resolve()}function I(Z){const de=ee.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(Z):Z()}function _(Z,de){let ue;const[Y,Q,D]=yte(Z,de);ue=Bp(Y.reverse(),"beforeRouteLeave",Z,de);for(const te of Y)te.leaveGuards.forEach(fe=>{ue.push(Br(fe,Z,de))});const q=T.bind(null,Z,de);return ue.push(q),ce(ue).then(()=>{ue=[];for(const te of r.list())ue.push(Br(te,Z,de));return ue.push(q),ce(ue)}).then(()=>{ue=Bp(Q,"beforeRouteUpdate",Z,de);for(const te of Q)te.updateGuards.forEach(fe=>{ue.push(Br(fe,Z,de))});return ue.push(q),ce(ue)}).then(()=>{ue=[];for(const te of D)if(te.beforeEnter)if(bo(te.beforeEnter))for(const fe of te.beforeEnter)ue.push(Br(fe,Z,de));else ue.push(Br(te.beforeEnter,Z,de));return ue.push(q),ce(ue)}).then(()=>(Z.matched.forEach(te=>te.enterCallbacks={}),ue=Bp(D,"beforeRouteEnter",Z,de,I),ue.push(q),ce(ue))).then(()=>{ue=[];for(const te of s.list())ue.push(Br(te,Z,de));return ue.push(q),ce(ue)}).catch(te=>Jo(te,$n.NAVIGATION_CANCELLED)?te:Promise.reject(te))}function N(Z,de,ue){l.list().forEach(Y=>I(()=>Y(Z,de,ue)))}function $(Z,de,ue,Y,Q){const D=y(Z,de);if(D)return D;const q=de===Ir,te=ol?history.state:{};ue&&(Y||q?o.replace(Z.fullPath,on({scroll:q&&te&&te.scroll},Q)):o.push(Z.fullPath,Q)),u.value=Z,H(Z,de,ue,q),F()}let B;function K(){B||(B=o.listen((Z,de,ue)=>{if(!ae.listening)return;const Y=b(Z),Q=x(Y,ae.currentRoute.value);if(Q){O(on(Q,{replace:!0,force:!0}),Y).catch(Pi);return}c=Y;const D=u.value;ol&&dte($1(D.fullPath,ue.delta),Tf()),_(Y,D).catch(q=>Jo(q,$n.NAVIGATION_ABORTED|$n.NAVIGATION_CANCELLED)?q:Jo(q,$n.NAVIGATION_GUARD_REDIRECT)?(O(on(w(q.to),{force:!0}),Y).then(te=>{Jo(te,$n.NAVIGATION_ABORTED|$n.NAVIGATION_DUPLICATED)&&!ue.delta&&ue.type===hv.pop&&o.go(-1,!1)}).catch(Pi),Promise.reject()):(ue.delta&&o.go(-ue.delta,!1),P(q,Y,D))).then(q=>{q=q||$(Y,D,!1),q&&(ue.delta&&!Jo(q,$n.NAVIGATION_CANCELLED)?o.go(-ue.delta,!1):ue.type===hv.pop&&Jo(q,$n.NAVIGATION_ABORTED|$n.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),N(Y,D,q)}).catch(Pi)}))}let j=ii(),W=ii(),A;function P(Z,de,ue){F(Z);const Y=W.list();return Y.length?Y.forEach(Q=>Q(Z,de,ue)):console.error(Z),Promise.reject(Z)}function V(){return A&&u.value!==Ir?Promise.resolve():new Promise((Z,de)=>{j.add([Z,de])})}function F(Z){return A||(A=!Z,K(),j.list().forEach(([de,ue])=>Z?ue(Z):de()),j.reset()),Z}function H(Z,de,ue,Y){const{scrollBehavior:Q}=e;if(!ol||!Q)return Promise.resolve();const D=!ue&&fte($1(Z.fullPath,0))||(Y||!ue)&&history.state&&history.state.scroll||null;return Ne().then(()=>Q(Z,de,D)).then(q=>q&&cte(q)).catch(q=>P(q,Z,de))}const U=Z=>o.go(Z);let J;const ee=new Set,ae={currentRoute:u,listening:!0,addRoute:g,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:v,resolve:b,options:e,push:S,replace:k,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:r.add,beforeResolve:s.add,afterEach:l.add,onError:W.add,isReady:V,install(Z){Z.component("RouterLink",Fte),Z.component("RouterView",Wte),Z.config.globalProperties.$router=ae,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>i(u)}),ol&&!J&&u.value===Ir&&(J=!0,S(o.location).catch(Y=>{}));const de={};for(const Y in Ir)Object.defineProperty(de,Y,{get:()=>u.value[Y],enumerable:!0});Z.provide(Of,ae),Z.provide(Ag,Dd(de)),Z.provide(mv,u);const ue=Z.unmount;ee.add(Z),Z.unmount=function(){ee.delete(Z),ee.size<1&&(c=Ir,B&&B(),B=null,u.value=Ir,J=!1,A=!1),ue()}}};function ce(Z){return Z.reduce((de,ue)=>de.then(()=>I(ue)),Promise.resolve())}return ae}function ire(){return $e(Of)}function ure(e){return $e(Ag)}function C4(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ute}=Object.prototype,{getPrototypeOf:_f}=Object,{iterator:Rf,toStringTag:k4}=Symbol,If=(e=>t=>{const n=Ute.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Eo=e=>(e=e.toLowerCase(),t=>If(t)===e),$f=e=>t=>typeof t===e,{isArray:Xl}=Array,Bl=$f("undefined");function Hu(e){return e!==null&&!Bl(e)&&e.constructor!==null&&!Bl(e.constructor)&&_a(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const E4=Eo("ArrayBuffer");function qte(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&E4(e.buffer),t}const Yte=$f("string"),_a=$f("function"),x4=$f("number"),Ku=e=>e!==null&&typeof e=="object",Gte=e=>e===!0||e===!1,Bc=e=>{if(If(e)!=="object")return!1;const t=_f(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(k4 in e)&&!(Rf in e)},Xte=e=>{if(!Ku(e)||Hu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Jte=Eo("Date"),Zte=Eo("File"),Qte=e=>!!(e&&typeof e.uri<"u"),ene=e=>e&&typeof e.getParts<"u",tne=Eo("Blob"),nne=Eo("FileList"),ane=e=>Ku(e)&&_a(e.pipe);function one(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const W1=one(),j1=typeof W1.FormData<"u"?W1.FormData:void 0,rne=e=>{if(!e)return!1;if(j1&&e instanceof j1)return!0;const t=_f(e);if(!t||t===Object.prototype||!_a(e.append))return!1;const n=If(e);return n==="formdata"||n==="object"&&_a(e.toString)&&e.toString()==="[object FormData]"},sne=Eo("URLSearchParams"),[lne,ine,une,cne]=["ReadableStream","Request","Response","Headers"].map(Eo),dne=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),Xl(e))for(a=0,o=e.length;a0;)if(o=n[a],t===o.toLowerCase())return o;return null}const ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,O4=e=>!Bl(e)&&e!==ys;function gv(...e){const{caseless:t,skipUndefined:n}=O4(this)&&this||{},a={},o=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const l=t&&T4(a,s)||s,u=bv(a,l)?a[l]:void 0;Bc(u)&&Bc(r)?a[l]=gv(u,r):Bc(r)?a[l]=gv({},r):Xl(r)?a[l]=r.slice():(!n||!Bl(r))&&(a[l]=r)};for(let r=0,s=e.length;r(Wu(t,(o,r)=>{n&&_a(o)?Object.defineProperty(e,r,{__proto__:null,value:C4(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),pne=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hne=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},vne=(e,t,n,a)=>{let o,r,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),r=o.length;r-- >0;)s=o[r],(!a||a(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&_f(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},mne=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},gne=e=>{if(!e)return null;if(Xl(e))return e;let t=e.length;if(!x4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bne=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_f(Uint8Array)),yne=(e,t)=>{const a=(e&&e[Rf]).call(e);let o;for(;(o=a.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},wne=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},Sne=Eo("HTMLFormElement"),Cne=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,o){return a.toUpperCase()+o}),bv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kne=Eo("RegExp"),_4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};Wu(n,(o,r)=>{let s;(s=t(o,r,e))!==!1&&(a[r]=s||o)}),Object.defineProperties(e,a)},Ene=e=>{_4(e,(t,n)=>{if(_a(e)&&["arguments","caller","callee"].includes(n))return!1;const a=e[n];if(_a(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xne=(e,t)=>{const n={},a=o=>{o.forEach(r=>{n[r]=!0})};return Xl(e)?a(e):a(String(e).split(t)),n},Tne=()=>{},One=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function _ne(e){return!!(e&&_a(e.append)&&e[k4]==="FormData"&&e[Rf])}const Rne=e=>{const t=new WeakSet,n=a=>{if(Ku(a)){if(t.has(a))return;if(Hu(a))return a;if(!("toJSON"in a)){t.add(a);const o=Xl(a)?[]:{};return Wu(a,(r,s)=>{const l=n(r);!Bl(l)&&(o[s]=l)}),t.delete(a),o}}return a};return n(e)},Ine=Eo("AsyncFunction"),$ne=e=>e&&(Ku(e)||_a(e))&&_a(e.then)&&_a(e.catch),R4=((e,t)=>e?setImmediate:t?((n,a)=>(ys.addEventListener("message",({source:o,data:r})=>{o===ys&&r===n&&a.length&&a.shift()()},!1),o=>{a.push(o),ys.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_a(ys.postMessage)),Nne=typeof queueMicrotask<"u"?queueMicrotask.bind(ys):typeof process<"u"&&process.nextTick||R4,Mne=e=>e!=null&&_a(e[Rf]),ke={isArray:Xl,isArrayBuffer:E4,isBuffer:Hu,isFormData:rne,isArrayBufferView:qte,isString:Yte,isNumber:x4,isBoolean:Gte,isObject:Ku,isPlainObject:Bc,isEmptyObject:Xte,isReadableStream:lne,isRequest:ine,isResponse:une,isHeaders:cne,isUndefined:Bl,isDate:Jte,isFile:Zte,isReactNativeBlob:Qte,isReactNative:ene,isBlob:tne,isRegExp:kne,isFunction:_a,isStream:ane,isURLSearchParams:sne,isTypedArray:bne,isFileList:nne,forEach:Wu,merge:gv,extend:fne,trim:dne,stripBOM:pne,inherits:hne,toFlatObject:vne,kindOf:If,kindOfTest:Eo,endsWith:mne,toArray:gne,forEachEntry:yne,matchAll:wne,isHTMLForm:Sne,hasOwnProperty:bv,hasOwnProp:bv,reduceDescriptors:_4,freezeMethods:Ene,toObjectSet:xne,toCamelCase:Cne,noop:Tne,toFiniteNumber:One,findKey:T4,global:ys,isContextDefined:O4,isSpecCompliantForm:_ne,toJSONObject:Rne,isAsyncFn:Ine,isThenable:$ne,setImmediate:R4,asap:Nne,isIterable:Mne},Pne=ke.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ane=e=>{const t={};let n,a,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),a=s.substring(o+1).trim(),!(!n||t[n]&&Pne[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t};function Lne(e){let t=0,n=e.length;for(;tt;){const a=e.charCodeAt(n-1);if(a!==9&&a!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Dne=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Bne=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Lg(e,t){return ke.isArray(e)?e.map(n=>Lg(n,t)):Lne(String(e).replace(t,""))}const Vne=e=>Lg(e,Dne),Fne=e=>Lg(e,Bne);function I4(e){const t=Object.create(null);return ke.forEach(e.toJSON(),(n,a)=>{t[a]=Fne(n)}),t}const U1=Symbol("internals");function ui(e){return e&&String(e).trim().toLowerCase()}function Vc(e){return e===!1||e==null?e:ke.isArray(e)?e.map(Vc):Vne(String(e))}function zne(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const Hne=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vp(e,t,n,a,o){if(ke.isFunction(a))return a.call(this,t,n);if(o&&(t=n),!!ke.isString(t)){if(ke.isString(a))return t.indexOf(a)!==-1;if(ke.isRegExp(a))return a.test(t)}}function Kne(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function Wne(e,t){const n=ke.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{__proto__:null,value:function(o,r,s){return this[a].call(this,t,o,r,s)},configurable:!0})})}let ma=class{constructor(t){t&&this.set(t)}set(t,n,a){const o=this;function r(l,u,c){const d=ui(u);if(!d)throw new Error("header name must be a non-empty string");const f=ke.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||u]=Vc(l))}const s=(l,u)=>ke.forEach(l,(c,d)=>r(c,d,u));if(ke.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(ke.isString(t)&&(t=t.trim())&&!Hne(t))s(Ane(t),n);else if(ke.isObject(t)&&ke.isIterable(t)){let l={},u,c;for(const d of t){if(!ke.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[c=d[0]]=(u=l[c])?ke.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}s(l,n)}else t!=null&&r(n,t,a);return this}get(t,n){if(t=ui(t),t){const a=ke.findKey(this,t);if(a){const o=this[a];if(!n)return o;if(n===!0)return zne(o);if(ke.isFunction(n))return n.call(this,o,a);if(ke.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ui(t),t){const a=ke.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||Vp(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let o=!1;function r(s){if(s=ui(s),s){const l=ke.findKey(a,s);l&&(!n||Vp(a,a[l],l,n))&&(delete a[l],o=!0)}}return ke.isArray(t)?t.forEach(r):r(t),o}clear(t){const n=Object.keys(this);let a=n.length,o=!1;for(;a--;){const r=n[a];(!t||Vp(this,this[r],r,t,!0))&&(delete this[r],o=!0)}return o}normalize(t){const n=this,a={};return ke.forEach(this,(o,r)=>{const s=ke.findKey(a,r);if(s){n[s]=Vc(o),delete n[r];return}const l=t?Kne(r):String(r).trim();l!==r&&delete n[r],n[l]=Vc(o),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ke.forEach(this,(a,o)=>{a!=null&&a!==!1&&(n[o]=t&&ke.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[U1]=this[U1]={accessors:{}}).accessors,o=this.prototype;function r(s){const l=ui(s);a[l]||(Wne(o,s),a[l]=!0)}return ke.isArray(t)?t.forEach(r):r(t),this}};ma.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ke.reduceDescriptors(ma.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});ke.freezeMethods(ma);const jne="[REDACTED ****]";function Une(e){if(ke.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ke.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function qne(e,t){const n=new Set(t.map(r=>String(r).toLowerCase())),a=[],o=r=>{if(r===null||typeof r!="object"||ke.isBuffer(r))return r;if(a.indexOf(r)!==-1)return;r instanceof ma&&(r=r.toJSON()),a.push(r);let s;if(ke.isArray(r))s=[],r.forEach((l,u)=>{const c=o(l);ke.isUndefined(c)||(s[u]=c)});else{if(!ke.isPlainObject(r)&&Une(r))return a.pop(),r;s=Object.create(null);for(const[l,u]of Object.entries(r)){const c=n.has(l.toLowerCase())?jne:o(u);ke.isUndefined(c)||(s[l]=c)}}return a.pop(),s};return o(e)}let Ct=class $4 extends Error{static from(t,n,a,o,r,s){const l=new $4(t.message,n||t.code,a,o,r);return l.cause=t,l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),s&&Object.assign(l,s),l}constructor(t,n,a,o,r){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){const t=this.config,n=t&&ke.hasOwnProp(t,"redact")?t.redact:void 0,a=ke.isArray(n)&&n.length>0?qne(t,n):ke.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a,code:this.code,status:this.status}}};Ct.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ct.ERR_BAD_OPTION="ERR_BAD_OPTION";Ct.ECONNABORTED="ECONNABORTED";Ct.ETIMEDOUT="ETIMEDOUT";Ct.ECONNREFUSED="ECONNREFUSED";Ct.ERR_NETWORK="ERR_NETWORK";Ct.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ct.ERR_DEPRECATED="ERR_DEPRECATED";Ct.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ct.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ct.ERR_CANCELED="ERR_CANCELED";Ct.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ct.ERR_INVALID_URL="ERR_INVALID_URL";Ct.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Yne=null;function yv(e){return ke.isPlainObject(e)||ke.isArray(e)}function N4(e){return ke.endsWith(e,"[]")?e.slice(0,-2):e}function Fp(e,t,n){return e?e.concat(t).map(function(o,r){return o=N4(o),!n&&r?"["+o+"]":o}).join(n?".":""):t}function Gne(e){return ke.isArray(e)&&!e.some(yv)}const Xne=ke.toFlatObject(ke,{},null,function(t){return/^is[A-Z]/.test(t)});function Nf(e,t,n){if(!ke.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ke.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,b){return!ke.isUndefined(b[m])});const a=n.metaTokens,o=n.visitor||f,r=n.dots,s=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?100:n.maxDepth,c=l&&ke.isSpecCompliantForm(t);if(!ke.isFunction(o))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(ke.isDate(v))return v.toISOString();if(ke.isBoolean(v))return v.toString();if(!c&&ke.isBlob(v))throw new Ct("Blob is not supported. Use a Buffer instead.");return ke.isArrayBuffer(v)||ke.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,m,b){let w=v;if(ke.isReactNative(t)&&ke.isReactNativeBlob(v))return t.append(Fp(b,m,r),d(v)),!1;if(v&&!b&&typeof v=="object"){if(ke.endsWith(m,"{}"))m=a?m:m.slice(0,-2),v=JSON.stringify(v);else if(ke.isArray(v)&&Gne(v)||(ke.isFileList(v)||ke.endsWith(m,"[]"))&&(w=ke.toArray(v)))return m=N4(m),w.forEach(function(S,k){!(ke.isUndefined(S)||S===null)&&t.append(s===!0?Fp([m],k,r):s===null?m:m+"[]",d(S))}),!1}return yv(v)?!0:(t.append(Fp(b,m,r),d(v)),!1)}const p=[],g=Object.assign(Xne,{defaultVisitor:f,convertValue:d,isVisitable:yv});function h(v,m,b=0){if(!ke.isUndefined(v)){if(b>u)throw new Ct("Object is too deeply nested ("+b+" levels). Max depth: "+u,Ct.ERR_FORM_DATA_DEPTH_EXCEEDED);if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(v),ke.forEach(v,function(y,S){(!(ke.isUndefined(y)||y===null)&&o.call(t,y,ke.isString(S)?S.trim():S,m,g))===!0&&h(y,m?m.concat(S):[S],b+1)}),p.pop()}}if(!ke.isObject(e))throw new TypeError("data must be an object");return h(e),t}function q1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(a){return t[a]})}function Dg(e,t){this._pairs=[],e&&Nf(e,this,t)}const M4=Dg.prototype;M4.append=function(t,n){this._pairs.push([t,n])};M4.toString=function(t){const n=t?function(a){return t.call(this,a,q1)}:q1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Jne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function P4(e,t,n){if(!t)return e;const a=n&&n.encode||Jne,o=ke.isFunction(n)?{serialize:n}:n,r=o&&o.serialize;let s;if(r?s=r(t,o):s=ke.isURLSearchParams(t)?t.toString():new Dg(t,o).toString(a),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Y1{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ke.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Bg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Zne=typeof URLSearchParams<"u"?URLSearchParams:Dg,Qne=typeof FormData<"u"?FormData:null,eae=typeof Blob<"u"?Blob:null,tae={isBrowser:!0,classes:{URLSearchParams:Zne,FormData:Qne,Blob:eae},protocols:["http","https","file","blob","url","data"]},Vg=typeof window<"u"&&typeof document<"u",wv=typeof navigator=="object"&&navigator||void 0,nae=Vg&&(!wv||["ReactNative","NativeScript","NS"].indexOf(wv.product)<0),aae=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oae=Vg&&window.location.href||"http://localhost",rae=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vg,hasStandardBrowserEnv:nae,hasStandardBrowserWebWorkerEnv:aae,navigator:wv,origin:oae},Symbol.toStringTag,{value:"Module"})),oa={...rae,...tae};function sae(e,t){return Nf(e,new oa.classes.URLSearchParams,{visitor:function(n,a,o,r){return oa.isNode&&ke.isBuffer(n)?(this.append(a,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function lae(e){return ke.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function iae(e){const t={},n=Object.keys(e);let a;const o=n.length;let r;for(a=0;a=n.length;return s=!s&&ke.isArray(o)?o.length:s,u?(ke.hasOwnProp(o,s)?o[s]=ke.isArray(o[s])?o[s].concat(a):[o[s],a]:o[s]=a,!l):((!ke.hasOwnProp(o,s)||!ke.isObject(o[s]))&&(o[s]=[]),t(n,a,o[s],r)&&ke.isArray(o[s])&&(o[s]=iae(o[s])),!l)}if(ke.isFormData(e)&&ke.isFunction(e.entries)){const n={};return ke.forEachEntry(e,(a,o)=>{t(lae(a),o,n,0)}),n}return null}const Zs=(e,t)=>e!=null&&ke.hasOwnProp(e,t)?e[t]:void 0;function uae(e,t,n){if(ke.isString(e))try{return(t||JSON.parse)(e),ke.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const ju={transitional:Bg,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",o=a.indexOf("application/json")>-1,r=ke.isObject(t);if(r&&ke.isHTMLForm(t)&&(t=new FormData(t)),ke.isFormData(t))return o?JSON.stringify(A4(t)):t;if(ke.isArrayBuffer(t)||ke.isBuffer(t)||ke.isStream(t)||ke.isFile(t)||ke.isBlob(t)||ke.isReadableStream(t))return t;if(ke.isArrayBufferView(t))return t.buffer;if(ke.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(r){const u=Zs(this,"formSerializer");if(a.indexOf("application/x-www-form-urlencoded")>-1)return sae(t,u).toString();if((l=ke.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=Zs(this,"env"),d=c&&c.FormData;return Nf(l?{"files[]":t}:t,d&&new d,u)}}return r||o?(n.setContentType("application/json",!1),uae(t)):t}],transformResponse:[function(t){const n=Zs(this,"transitional")||ju.transitional,a=n&&n.forcedJSONParsing,o=Zs(this,"responseType"),r=o==="json";if(ke.isResponse(t)||ke.isReadableStream(t))return t;if(t&&ke.isString(t)&&(a&&!o||r)){const l=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,Zs(this,"parseReviver"))}catch(u){if(l)throw u.name==="SyntaxError"?Ct.from(u,Ct.ERR_BAD_RESPONSE,this,null,Zs(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oa.classes.FormData,Blob:oa.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ke.forEach(["delete","get","head","post","put","patch","query"],e=>{ju.headers[e]={}});function zp(e,t){const n=this||ju,a=t||n,o=ma.from(a.headers);let r=a.data;return ke.forEach(e,function(l){r=l.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function L4(e){return!!(e&&e.__CANCEL__)}let Uu=class extends Ct{constructor(t,n,a){super(t??"canceled",Ct.ERR_CANCELED,n,a),this.name="CanceledError",this.__CANCEL__=!0}};function D4(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Ct("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ct.ERR_BAD_REQUEST:Ct.ERR_BAD_RESPONSE,n.config,n.request,n))}function cae(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function dae(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o=0,r=0,s;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=a[r];s||(s=c),n[o]=u,a[o]=c;let f=r,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),c-s{n=d,o=null,r&&(clearTimeout(r),r=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=a?s(c,d):(o=c,r||(r=setTimeout(()=>{r=null,s(o)},a-f)))},()=>o&&s(o)]}const xd=(e,t,n=3)=>{let a=0;const o=dae(50,250);return fae(r=>{if(!r||typeof r.loaded!="number")return;const s=r.loaded,l=r.lengthComputable?r.total:void 0,u=l!=null?Math.min(s,l):s,c=Math.max(0,u-a),d=o(c);a=Math.max(a,u);const f={loaded:u,total:l,progress:l?u/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l?(l-u)/d:void 0,event:r,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},G1=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},X1=e=>(...t)=>ke.asap(()=>e(...t)),pae=oa.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,oa.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(oa.origin),oa.navigator&&/(msie|trident)/i.test(oa.navigator.userAgent)):()=>!0,hae=oa.hasStandardBrowserEnv?{write(e,t,n,a,o,r,s){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];ke.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),ke.isString(a)&&l.push(`path=${a}`),ke.isString(o)&&l.push(`domain=${o}`),r===!0&&l.push("secure"),ke.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;ne instanceof ma?{...e}:e;function Ds(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function a(c,d,f,p){return ke.isPlainObject(c)&&ke.isPlainObject(d)?ke.merge.call({caseless:p},c,d):ke.isPlainObject(d)?ke.merge({},d):ke.isArray(d)?d.slice():d}function o(c,d,f,p){if(ke.isUndefined(d)){if(!ke.isUndefined(c))return a(void 0,c,f,p)}else return a(c,d,f,p)}function r(c,d){if(!ke.isUndefined(d))return a(void 0,d)}function s(c,d){if(ke.isUndefined(d)){if(!ke.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function l(c,d,f){if(ke.hasOwnProp(t,f))return a(c,d);if(ke.hasOwnProp(e,f))return a(void 0,c)}const u={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(c,d,f)=>o(J1(c),J1(d),f,!0)};return ke.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=ke.hasOwnProp(u,d)?u[d]:o,p=ke.hasOwnProp(e,d)?e[d]:void 0,g=ke.hasOwnProp(t,d)?t[d]:void 0,h=f(p,g,d);ke.isUndefined(h)&&f!==l||(n[d]=h)}),n}const gae=["content-type","content-length"];function bae(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([a,o])=>{gae.includes(a.toLowerCase())&&e.set(a,o)})}const yae=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),V4=e=>{const t=Ds({},e),n=p=>ke.hasOwnProp(t,p)?t[p]:void 0,a=n("data");let o=n("withXSRFToken");const r=n("xsrfHeaderName"),s=n("xsrfCookieName");let l=n("headers");const u=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=ma.from(l),t.url=P4(B4(c,f,d),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?yae(u.password):""))),ke.isFormData(a)&&(oa.hasStandardBrowserEnv||oa.hasStandardBrowserWebWorkerEnv?l.setContentType(void 0):ke.isFunction(a.getHeaders)&&bae(l,a.getHeaders(),n("formDataHeaderPolicy"))),oa.hasStandardBrowserEnv&&(ke.isFunction(o)&&(o=o(t)),o===!0||o==null&&pae(t.url))){const g=r&&s&&hae.read(s);g&&l.set(r,g)}return t},wae=typeof XMLHttpRequest<"u",Sae=wae&&function(e){return new Promise(function(n,a){const o=V4(e);let r=o.data;const s=ma.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=o,d,f,p,g,h;function v(){g&&g(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function b(){if(!m)return;const y=ma.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};D4(function(O){n(O),v()},function(O){a(O),v()},k),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(b)},m.onabort=function(){m&&(a(new Ct("Request aborted",Ct.ECONNABORTED,e,m)),v(),m=null)},m.onerror=function(S){const k=S&&S.message?S.message:"Network Error",x=new Ct(k,Ct.ERR_NETWORK,e,m);x.event=S||null,a(x),v(),m=null},m.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Bg;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),a(new Ct(S,k.clarifyTimeoutError?Ct.ETIMEDOUT:Ct.ECONNABORTED,e,m)),v(),m=null},r===void 0&&s.setContentType(null),"setRequestHeader"in m&&ke.forEach(I4(s),function(S,k){m.setRequestHeader(k,S)}),ke.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),l&&l!=="json"&&(m.responseType=o.responseType),c&&([p,h]=xd(c,!0),m.addEventListener("progress",p)),u&&m.upload&&([f,g]=xd(u),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=y=>{m&&(a(!y||y.type?new Uu(null,e,m):y),m.abort(),v(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const w=cae(o.url);if(w&&!oa.protocols.includes(w)){a(new Ct("Unsupported protocol "+w+":",Ct.ERR_BAD_REQUEST,e));return}m.send(r||null)})},Cae=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let a=!1;const o=function(u){if(!a){a=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof Ct?c:new Uu(c instanceof Error?c.message:c))}};let r=t&&setTimeout(()=>{r=null,o(new Ct(`timeout of ${t}ms exceeded`,Ct.ETIMEDOUT))},t);const s=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>ke.asap(s),l},kae=function*(e,t){let n=e.byteLength;if(n{const o=Eae(e,t);let r=0,s,l=u=>{s||(s=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){l(),u.close();return}let f=d.byteLength;if(n){let p=r+=f;n(p)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),o.return()}},{highWaterMark:2})};function Tae(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),a=e.slice(t+1);if(/;base64/i.test(n)){let s=a.length;const l=a.length;for(let g=0;g=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(s-=2,g+=2)}let u=0,c=l-1;const d=g=>g>=2&&a.charCodeAt(g-2)===37&&a.charCodeAt(g-1)===51&&(a.charCodeAt(g)===68||a.charCodeAt(g)===100);c>=0&&(a.charCodeAt(c)===61?(u++,c--):d(c)&&(u++,c-=3)),u===1&&c>=0&&(a.charCodeAt(c)===61||d(c))&&u++;const p=Math.floor(s/4)*3-(u||0);return p>0?p:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(a,"utf8");let r=0;for(let s=0,l=a.length;s=55296&&u<=56319&&s+1=56320&&c<=57343?(r+=4,s++):r+=3}else r+=3}return r}const Fg="1.16.1",Q1=64*1024,{isFunction:bc}=ke,e2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Oae=e=>{const t=ke.global!==void 0&&ke.global!==null?ke.global:globalThis,{ReadableStream:n,TextEncoder:a}=t;e=ke.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:r,Response:s}=e,l=o?bc(o):typeof fetch=="function",u=bc(r),c=bc(s);if(!l)return!1;const d=l&&bc(n),f=l&&(typeof a=="function"?(b=>w=>b.encode(w))(new a):async b=>new Uint8Array(await new r(b).arrayBuffer())),p=u&&d&&e2(()=>{let b=!1;const w=new r(oa.origin,{body:new n,method:"POST",get duplex(){return b=!0,"half"}}),y=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),b&&!y}),g=c&&d&&e2(()=>ke.isReadableStream(new s("").body)),h={stream:g&&(b=>b.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!h[b]&&(h[b]=(w,y)=>{let S=w&&w[b];if(S)return S.call(w);throw new Ct(`Response type '${b}' is not supported`,Ct.ERR_NOT_SUPPORT,y)})});const v=async b=>{if(b==null)return 0;if(ke.isBlob(b))return b.size;if(ke.isSpecCompliantForm(b))return(await new r(oa.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(ke.isArrayBufferView(b)||ke.isArrayBuffer(b))return b.byteLength;if(ke.isURLSearchParams(b)&&(b=b+""),ke.isString(b))return(await f(b)).byteLength},m=async(b,w)=>{const y=ke.toFiniteNumber(b.getContentLength());return y??v(w)};return async b=>{let{url:w,method:y,data:S,signal:k,cancelToken:x,timeout:O,onDownloadProgress:T,onUploadProgress:I,responseType:_,headers:N,withCredentials:$="same-origin",fetchOptions:B,maxContentLength:K,maxBodyLength:j}=V4(b);const W=ke.isNumber(K)&&K>-1,A=ke.isNumber(j)&&j>-1;let P=o||fetch;_=_?(_+"").toLowerCase():"text";let V=Cae([k,x&&x.toAbortSignal()],O),F=null;const H=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let U;try{if(W&&typeof w=="string"&&w.startsWith("data:")&&Tae(w)>K)throw new Ct("maxContentLength size of "+K+" exceeded",Ct.ERR_BAD_RESPONSE,b,F);if(A&&y!=="get"&&y!=="head"){const de=await m(N,S);if(typeof de=="number"&&isFinite(de)&&de>j)throw new Ct("Request body larger than maxBodyLength limit",Ct.ERR_BAD_REQUEST,b,F)}if(I&&p&&y!=="get"&&y!=="head"&&(U=await m(N,S))!==0){let de=new r(w,{method:"POST",body:S,duplex:"half"}),ue;if(ke.isFormData(S)&&(ue=de.headers.get("content-type"))&&N.setContentType(ue),de.body){const[Y,Q]=G1(U,xd(X1(I)));S=Z1(de.body,Q1,Y,Q)}}ke.isString($)||($=$?"include":"omit");const J=u&&"credentials"in r.prototype;if(ke.isFormData(S)){const de=N.getContentType();de&&/^multipart\/form-data/i.test(de)&&!/boundary=/i.test(de)&&N.delete("content-type")}N.set("User-Agent","axios/"+Fg,!1);const ee={...B,signal:V,method:y.toUpperCase(),headers:I4(N.normalize()),body:S,duplex:"half",credentials:J?$:void 0};F=u&&new r(w,ee);let ae=await(u?P(F,B):P(w,ee));if(W){const de=ke.toFiniteNumber(ae.headers.get("content-length"));if(de!=null&&de>K)throw new Ct("maxContentLength size of "+K+" exceeded",Ct.ERR_BAD_RESPONSE,b,F)}const ce=g&&(_==="stream"||_==="response");if(g&&ae.body&&(T||W||ce&&H)){const de={};["status","statusText","headers"].forEach(te=>{de[te]=ae[te]});const ue=ke.toFiniteNumber(ae.headers.get("content-length")),[Y,Q]=T&&G1(ue,xd(X1(T),!0))||[];let D=0;const q=te=>{if(W&&(D=te,D>K))throw new Ct("maxContentLength size of "+K+" exceeded",Ct.ERR_BAD_RESPONSE,b,F);Y&&Y(te)};ae=new s(Z1(ae.body,Q1,q,()=>{Q&&Q(),H&&H()}),de)}_=_||"text";let Z=await h[ke.findKey(h,_)||"text"](ae,b);if(W&&!g&&!ce){let de;if(Z!=null&&(typeof Z.byteLength=="number"?de=Z.byteLength:typeof Z.size=="number"?de=Z.size:typeof Z=="string"&&(de=typeof a=="function"?new a().encode(Z).byteLength:Z.length)),typeof de=="number"&&de>K)throw new Ct("maxContentLength size of "+K+" exceeded",Ct.ERR_BAD_RESPONSE,b,F)}return!ce&&H&&H(),await new Promise((de,ue)=>{D4(de,ue,{data:Z,headers:ma.from(ae.headers),status:ae.status,statusText:ae.statusText,config:b,request:F})})}catch(J){if(H&&H(),V&&V.aborted&&V.reason instanceof Ct){const ee=V.reason;throw ee.config=b,F&&(ee.request=F),J!==ee&&(ee.cause=J),ee}throw J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)?Object.assign(new Ct("Network Error",Ct.ERR_NETWORK,b,F,J&&J.response),{cause:J.cause||J}):Ct.from(J,J&&J.code,b,F,J&&J.response)}}},_ae=new Map,F4=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:o}=t,r=[a,o,n];let s=r.length,l=s,u,c,d=_ae;for(;l--;)u=r[l],c=d.get(u),c===void 0&&d.set(u,c=l?new Map:Oae(t)),d=c;return c};F4();const zg={http:Yne,xhr:Sae,fetch:{get:F4}};ke.forEach(zg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const t2=e=>`- ${e}`,Rae=e=>ke.isFunction(e)||e===null||e===!1;function Iae(e,t){e=ke.isArray(e)?e:[e];const{length:n}=e;let a,o;const r={};for(let s=0;s`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since : +`+s.map(t2).join(` +`):" "+t2(s[0]):"as no adapter specified";throw new Ct("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const z4={getAdapter:Iae,adapters:zg};function Hp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Uu(null,e)}function n2(e){return Hp(e),e.headers=ma.from(e.headers),e.data=zp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),z4.getAdapter(e.adapter||ju.adapter,e)(e).then(function(a){Hp(e),e.response=a;try{a.data=zp.call(e,e.transformResponse,a)}finally{delete e.response}return a.headers=ma.from(a.headers),a},function(a){if(!L4(a)&&(Hp(e),a&&a.response)){e.response=a.response;try{a.response.data=zp.call(e,e.transformResponse,a.response)}finally{delete e.response}a.response.headers=ma.from(a.response.headers)}return Promise.reject(a)})}const Mf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mf[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const a2={};Mf.transitional=function(t,n,a){function o(r,s){return"[Axios v"+Fg+"] Transitional option '"+r+"'"+s+(a?". "+a:"")}return(r,s,l)=>{if(t===!1)throw new Ct(o(s," has been removed"+(n?" in "+n:"")),Ct.ERR_DEPRECATED);return n&&!a2[s]&&(a2[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,s,l):!0}};Mf.spelling=function(t){return(n,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function $ae(e,t,n){if(typeof e!="object")throw new Ct("options must be an object",Ct.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const r=a[o],s=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(s){const l=e[r],u=l===void 0||s(l,r,e);if(u!==!0)throw new Ct("option "+r+" must be "+u,Ct.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ct("Unknown option "+r,Ct.ERR_BAD_OPTION)}}const Fc={assertOptions:$ae,validators:Mf},Wa=Fc.validators;let xs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Y1,response:new Y1}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const r=(()=>{if(!o.stack)return"";const s=o.stack.indexOf(` +`);return s===-1?"":o.stack.slice(s+1)})();try{if(!a.stack)a.stack=r;else if(r){const s=r.indexOf(` +`),l=s===-1?-1:r.indexOf(` +`,s+1),u=l===-1?"":r.slice(l+1);String(a.stack).endsWith(u)||(a.stack+=` +`+r)}}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ds(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:r}=n;a!==void 0&&Fc.assertOptions(a,{silentJSONParsing:Wa.transitional(Wa.boolean),forcedJSONParsing:Wa.transitional(Wa.boolean),clarifyTimeoutError:Wa.transitional(Wa.boolean),legacyInterceptorReqResOrdering:Wa.transitional(Wa.boolean)},!1),o!=null&&(ke.isFunction(o)?n.paramsSerializer={serialize:o}:Fc.assertOptions(o,{encode:Wa.function,serialize:Wa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fc.assertOptions(n,{baseUrl:Wa.spelling("baseURL"),withXsrfToken:Wa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=r&&ke.merge(r.common,r[n.method]);r&&ke.forEach(["delete","get","head","post","put","patch","query","common"],h=>{delete r[h]}),n.headers=ma.concat(s,r);const l=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;u=u&&v.synchronous;const m=n.transitional||Bg;m&&m.legacyInterceptorReqResOrdering?l.unshift(v.fulfilled,v.rejected):l.push(v.fulfilled,v.rejected)});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,p;if(!u){const h=[n2.bind(this),void 0];for(h.unshift(...l),h.push(...c),p=h.length,d=Promise.resolve(n);f{if(!a._listeners)return;let r=a._listeners.length;for(;r-- >0;)a._listeners[r](o);a._listeners=null}),this.promise.then=o=>{let r;const s=new Promise(l=>{a.subscribe(l),r=l}).then(o);return s.cancel=function(){a.unsubscribe(r)},s},t(function(r,s,l){a.reason||(a.reason=new Uu(r,s,l),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new H4(function(o){t=o}),cancel:t}}};function Mae(e){return function(n){return e.apply(null,n)}}function Pae(e){return ke.isObject(e)&&e.isAxiosError===!0}const Sv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Sv).forEach(([e,t])=>{Sv[t]=e});function K4(e){const t=new xs(e),n=C4(xs.prototype.request,t);return ke.extend(n,xs.prototype,t,{allOwnKeys:!0}),ke.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return K4(Ds(e,o))},n}const An=K4(ju);An.Axios=xs;An.CanceledError=Uu;An.CancelToken=Nae;An.isCancel=L4;An.VERSION=Fg;An.toFormData=Nf;An.AxiosError=Ct;An.Cancel=An.CanceledError;An.all=function(t){return Promise.all(t)};An.spread=Mae;An.isAxiosError=Pae;An.mergeConfig=Ds;An.AxiosHeaders=ma;An.formToJSON=e=>A4(ke.isHTMLForm(e)?new FormData(e):e);An.getAdapter=z4.getAdapter;An.HttpStatusCode=Sv;An.default=An;const{Axios:pre,AxiosError:hre,CanceledError:vre,isCancel:mre,CancelToken:gre,VERSION:bre,all:yre,Cancel:wre,isAxiosError:Sre,spread:Cre,toFormData:kre,AxiosHeaders:Ere,HttpStatusCode:xre,formToJSON:Tre,getAdapter:Ore,mergeConfig:_re,create:Rre}=An,Aae="/api",Jl=An.create({baseURL:Aae,timeout:15e3,headers:{"Content-Type":"application/json"},withCredentials:!0});Jl.interceptors.request.use(e=>{const t=localStorage.getItem("simple.auth.token");t&&e.headers.set("Authorization",`Bearer ${t}`);const n=localStorage.getItem("simple.auth.scope");return n&&e.headers.set("X-Scope",n),e});function Lae(e){const t=e.response?.status,n=e.config?.url??"",a=n.startsWith("/sl/")||n.startsWith("sl/");if(t===502||t===504||e.code==="ECONNABORTED"||e.code==="ERR_NETWORK")return a?"SimpleLite 未连接:请先启动 SimpleLite 后端(监听端口 8222)后重试。":`网关无法连接到下游服务(${t??e.code??"network"})。`;const o=e.response?.data;return o?.message?o.message:e.message}Jl.interceptors.response.use(e=>e,e=>{if(e.response?.status===401){try{localStorage.removeItem("simple.auth.token"),localStorage.removeItem("simple.auth.user"),localStorage.removeItem("simple.auth.scope"),localStorage.removeItem("simple.auth.runMode"),localStorage.removeItem("simple.auth.perm")}catch{}location.pathname!=="/login"&&location.assign("/login")}const t=Lae(e);try{Object.defineProperty(e,"message",{value:t,configurable:!0})}catch{}return Promise.reject(e)});new Date().toISOString();new Date().toISOString();const Dae={dispatchLoopHz:50,log:{level:"info",rollDays:7,maxSizeMB:256},security:{jwtExpireMin:1440,enableSwagger:!1,corsWhitelist:["http://localhost:5173","https://*.intra"]}},Bae={mes:[{id:"mes-1",name:"MES 主线",url:"http://mes.lan/api",enabled:!0}],wms:[{id:"wms-1",name:"WMS 仓储",url:"http://wms.lan/api",enabled:!0}],rcs:[],ptl:[{id:"ptl-1",name:"PTL 拣选",url:"http://ptl.lan/api",enabled:!0}]},Vae={algorithm:"astar",weights:{distance:1,congestion:.5,turnPenalty:.2},avoidance:[{id:"AV1",zoneId:"Z-NORTH",rule:"no-entry-while-loading"}],zoneSpeedLimits:[{zoneId:"Z-NARROW",maxSpeedMps:.5}]},Fae={lowBatteryThreshold:.3,criticalBatteryThreshold:.15,faultReport:{enabled:!0,emailTo:["ops@example.com"]},autoRepair:{enabled:!1,cooldownSec:600}},zae={allowMidTaskCharge:!1,idleChargeAfterSec:300,priority:[{id:"CP1",condition:"soc<0.2",weight:100},{id:"CP2",condition:"idle>5min",weight:30}]},Hae={mode:"leastLoad",loadBalance:!0,maxQueuePerCar:3},Kae={intersections:[{id:"IX1",siteIds:["S006","S007"],mode:"mutex"}],mutex:[{id:"MZ1",zoneIds:["Z-CROSS"]}],yields:[{id:"YD1",from:"A 区",to:"B 区",condition:"priority30s"},{level:"error",condition:"driverException"}]}},Uae={groups:[{id:"G-A",name:"A 区车队",floor:"F1",region:"A",carIds:["C01","C02","C03"]},{id:"G-B",name:"B 区车队",floor:"F1",region:"B",carIds:["C04","C05"]}],ota:{enabled:!0,batchSize:2,rollbackOnFail:!0},batchOps:{confirmationRequired:!0,maxBatch:10},networkDiag:{rttThresholdMs:80,packetLossThreshold:.02}},qae={templates:[{id:"tpl-sps",name:"SPS 物料配送",category:"SPS",version:"1.0.0",baselineJson:"{}"},{id:"tpl-pack",name:"电池 Pack 自动化产线",category:"BatteryPack",version:"1.0.0",baselineJson:"{}"},{id:"tpl-loop",name:"环线运行",category:"Loop",version:"1.0.0",baselineJson:"{}"},{id:"tpl-p2p",name:"点对点柔性搬运",category:"P2P",version:"1.0.0",baselineJson:"{}"}],dslPolicy:{enabled:!0,schemaVersion:"1"},lowCode:{enabled:!1,editor:"json"},versionPolicy:{keepVersions:10,allowRollback:!0}},Yae={locations:[{id:"L01",code:"A-01",name:"A 区货架 1",siteId:"S001",capacity:20,occupied:12},{id:"L02",code:"A-02",name:"A 区货架 2",siteId:"S002",capacity:20,occupied:7},{id:"L03",code:"B-01",name:"B 区缓存",siteId:"S003",capacity:30,occupied:25}],inventoryRules:[{id:"IR1",itemType:"PalletA",minQty:5,maxQty:30}]},Gae={playback:{retentionDays:30,samplingHz:5},logRetention:{hotDays:7,coldDays:180},version:{keepReleases:5},monitor:{car:{propertyKeys:[],statusKeys:[],actionKeys:[]},site:{propertyKeys:[],statusKeys:[],actionKeys:[]},track:{propertyKeys:[],statusKeys:[],actionKeys:[]},carActionByType:{}}},Xae={items:[{id:"widget-call-button",name:"呼叫按钮",schemaJson:'{"fields":[{"name":"siteId"}]}',layoutJson:'{"x":0,"y":0,"w":2,"h":1}',bindToScopes:["RCSMonitor"]}]},W4={system:Dae,integrations:Bae,routing:Vae,vehicle:Fae,charge:zae,task:Hae,traffic:Kae,auth:Wae,device:jae,fleet:Uae,scenario:qae,location:Yae,ops:Gae,widget:Xae},j4="simple-platform-mock-rbac";function Jae(){return{roles:[{id:"role-admin",name:"超级管理员",description:"拥有全部页面与操作权限的内置角色",scope:"*",pages:["*"],ops:["*"],widgetGrants:[],system:!0},{id:"role-ops",name:"运营人员",description:"运营监控端默认角色:可执行运维操作、查看监控",scope:"RCSMonitor",pages:["monitor-dashboard","monitor-map","monitor-ops","monitor-notes","monitor-vehicle-hub"],ops:["ops.car.pause","ops.car.resume","ops.car.gohome","ops.car.resetSession","ops.car.manualCharge","ops.task.pause","ops.task.cancel","ops.task.reassign","ops.task.boostPriority","monitor.note.write"],widgetGrants:[{widgetId:"MapEditor",visibility:"readonly"},{widgetId:"CadToolbar",visibility:"hidden"},{widgetId:"CarPanel",visibility:"readonly"},{widgetId:"MissionEditor",visibility:"readonly"},{widgetId:"OpsActionPanel",visibility:"interactive"},{widgetId:"ConfigCenter",visibility:"hidden"}],system:!0}],users:[{id:"u-admin",username:"admin",displayName:"系统管理员",enabled:!0,roleIds:["role-admin"],scopes:[]},{id:"u-ops",username:"ops",displayName:"运营人员",enabled:!0,roleIds:["role-ops"],scopes:[]}]}}function Zae(){try{const t=localStorage.getItem(j4);if(t)return JSON.parse(t)}catch{}const e=Jae();return eoe(e),e}let Qae=Zae();function eoe(e=Qae){try{localStorage.setItem(j4,JSON.stringify(e))}catch{}}function Cv(){return new Date().toISOString()}const toe="simple-platform-mock-config",o2=new Map;function noe(){try{const e=localStorage.getItem(toe);if(e)return JSON.parse(e)}catch{}return{}}function aoe(e){let t=o2.get(e);return t||(t=noe()[e]??{section:e,version:1,updatedAt:Cv(),payload:W4[e]},o2.set(e,t)),t}for(const e of Object.keys(W4))aoe(e);Cv(),Cv();async function ooe(e){const{data:t}=await Jl.post("/auth/login",e);return t}async function roe(){await Jl.post("/auth/logout")}async function soe(e){const{data:t}=await Jl.post("/auth/switch-scope",{scope:e});return t}async function loe(){const{data:e}=await Jl.get("/auth/me");return e}const Td="simple.auth.token",Ai="simple.auth.user",Li="simple.auth.scope",Di="simple.auth.runMode",Bi="simple.auth.perm";function r2(e){try{const t=localStorage.getItem(e);return t==null?null:JSON.parse(t)}catch{return null}}function Kp(e){try{return localStorage.getItem(e)}catch{return null}}function ioe(){return{token:Kp(Td),user:r2(Ai),scope:Kp(Li),runMode:Kp(Di),effectivePermissions:r2(Bi),validated:!1,needsWizard:!1}}function Wp(e){e.token=null,e.user=null,e.scope=null,e.runMode=null,e.effectivePermissions=null,e.validated=!1,e.needsWizard=!1;try{localStorage.removeItem(Td),localStorage.removeItem(Ai),localStorage.removeItem(Li),localStorage.removeItem(Di),localStorage.removeItem(Bi)}catch{}}const uoe=Hw("auth",{state:()=>ioe(),getters:{isAuthed:e=>!!e.token,hasOp:e=>t=>{const n=e.effectivePermissions?.allowedOps??[];return n.includes("*")||n.includes(t)},widgetOf:e=>t=>{const n=e.effectivePermissions?.visibleWidgets.find(o=>o.widgetId===t);return n?n.visibility:(e.effectivePermissions?.allowedOps??[]).includes("*")?"interactive":"readonly"},hasPage:e=>t=>{const n=e.effectivePermissions?.allowedPages??[];return n.includes("*")||n.includes(t)}},actions:{async login(e){const t=await ooe(e);return this.token=t.token,this.user=t.user,this.scope=t.scope,this.runMode=t.runMode,this.effectivePermissions=t.effectivePermissions,this.needsWizard=t.needsWizard??!1,this.validated=!0,localStorage.setItem(Td,t.token),localStorage.setItem(Ai,JSON.stringify(t.user)),localStorage.setItem(Li,t.scope),localStorage.setItem(Di,t.runMode),localStorage.setItem(Bi,JSON.stringify(t.effectivePermissions)),t},async logout(){try{await roe()}catch{}Wp(this)},async validate(){if(!this.token)throw Wp(this),new Error("no-token");try{const e=await loe();this.user=e.user,this.scope=e.scope,this.runMode=e.runMode,this.effectivePermissions=e.effectivePermissions,this.needsWizard=e.needsWizard??!1,this.validated=!0,localStorage.setItem(Ai,JSON.stringify(e.user)),localStorage.setItem(Li,e.scope),localStorage.setItem(Di,e.runMode),localStorage.setItem(Bi,JSON.stringify(e.effectivePermissions))}catch(e){if(e instanceof Error&&e.message==="mock-mode-skip-me-validation"){this.validated=!0;return}throw Wp(this),e}},async switchScope(e){const t=await soe(e);return this.token=t.token,this.user=t.user,this.scope=t.scope,this.runMode=t.runMode,this.effectivePermissions=t.effectivePermissions,this.needsWizard=t.needsWizard??!1,this.validated=!0,localStorage.setItem(Td,t.token),localStorage.setItem(Ai,JSON.stringify(t.user)),localStorage.setItem(Li,t.scope),localStorage.setItem(Di,t.runMode),localStorage.setItem(Bi,JSON.stringify(t.effectivePermissions)),t},markWizardDone(){this.needsWizard=!1}}}),U4=[{path:"/login",name:"login",component:()=>vn(()=>import("./LoginView-DR-JtkF-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),meta:{layout:"blank",public:!0,title:"登录"}},{path:"/status",name:"status",component:()=>vn(()=>import("./ServiceStatusView-nxCKHggR.js"),__vite__mapDeps([13,14,4,15,6,16,17])),meta:{layout:"blank",public:!0,title:"服务状态"}},{path:"/wizard",name:"wizard",component:()=>vn(()=>import("./WizardView-B-JxMvwI.js"),__vite__mapDeps([18,2,19,4,6,17])),meta:{layout:"blank",title:"配置向导"}},{path:"/admin",component:()=>vn(()=>import("./AppShell-CsAf-EtY.js"),__vite__mapDeps([20,1,2,21,4,22,12,6,23,24,25,26])),meta:{scope:"Platform"},redirect:"/admin/dashboard",children:[{path:"dashboard",name:"admin-dashboard",component:()=>vn(()=>import("./DashboardView-Rj8saK5Q.js"),__vite__mapDeps([27,28,29,30,31,4,32,10,15])),meta:{title:"总览"}},{path:"map-monitor",name:"admin-map-monitor",component:()=>vn(()=>import("./MapMonitorView-CdBlKooR.js"),__vite__mapDeps([33,34,35,4,6,17,1,30,36,37,38,39,40,29,41,42,15,32,43,44,45,22,12,46,8,11,47,48,49,24,23])),meta:{title:"地图监控"}},{path:"maps",name:"admin-maps",component:()=>vn(()=>import("./MapManagementView-BfnAn-Bv.js"),__vite__mapDeps([50,1,36,51,4,52,32,49,15,22,12,11,47,17,53,6,48,5,8,9,46])),meta:{title:"地图管理"}},{path:"map-editor",name:"admin-map-editor",component:()=>vn(()=>import("./MapEditorView-BeHcrkSz.js"),__vite__mapDeps([54,1,34,35,4,6,17,30,36,55,41,56,48,22,12,11,47,8,57,58,23,24,32,5,53,9,46,7,26,45,10])),meta:{title:"地图编辑"}},{path:"tracks",name:"admin-tracks",component:()=>vn(()=>import("./TrackTableView-B6xSRo4y.js"),__vite__mapDeps([59,60,1,30,55,41,36,61,4,52,48,5,26,16,8,9,6,57,58,32,17,15,49,22,12,11,47,23,24,62])),meta:{title:"场景管理"}},{path:"cars",name:"admin-cars",component:()=>vn(()=>import("./CarPanelView-BiDARL2O.js"),__vite__mapDeps([63,60,1,30,55,41,36,61,4,52,48,5,26,16,8,9,6,57,58,32,17,15,49,22,12,11,47,23,24,64,7,43])),meta:{title:"车辆管理"}},{path:"processes",name:"admin-processes",component:()=>vn(()=>import("./ProcessPanelView-Dh8TMlBL.js"),__vite__mapDeps([65,60,1,30,55,41,36,61,4,52,48,5,26,16,8,9,6,57,58,32,17,15,49,22,12,11,47,23,24,66])),meta:{title:"进程管理"}},{path:"scripts",name:"admin-scripts",component:()=>vn(()=>import("./ScriptPanelView-D8niLWli.js"),__vite__mapDeps([67,60,1,30,55,41,36,61,4,52,48,5,26,16,8,9,6,57,58,32,17,15,49,22,12,11,47,23,24,68])),meta:{title:"脚本管理"}},{path:"task-templates",name:"admin-task-templates",component:()=>vn(()=>import("./TaskTemplateView-BOoJh-Fl.js"),__vite__mapDeps([69,70,4,6,17,8,5,49,22,12,46,58,9,23,24])),meta:{title:"任务编排"}},{path:"project-properties",name:"admin-project-properties",component:()=>vn(()=>import("./ProjectPropertiesView-wJsYQ6C1.js"),__vite__mapDeps([71,1,30,72,4,32,52,15,49,22,12,11,47,17,8,9,58,6,16])),meta:{title:"项目属性"}},{path:"config/strategy",name:"admin-config-strategy",component:()=>vn(()=>import("./StrategyConfigView-DqIoZFxi.js"),__vite__mapDeps([73,1,74,75,76,4,49,30,39,77,43,15,6,17,78,32,5,22,12,11,47,8,9,46,58,26])),meta:{title:"调度策略"}},{path:"config/vehicle-hub",name:"admin-vehicle-hub",component:()=>vn(()=>import("./VehicleHubView-BC4ONtdY.js"),__vite__mapDeps([79,30,74,75,76,4,49,39,77,43,15,6,17,1,29,41,80,52,32,22,12,23,24,46,8,58,45,5,9,81,16,53])),meta:{title:"车辆运维"}},{path:"config/facility",name:"admin-config-facility",component:()=>vn(()=>import("./FacilityConfigView-BdZ62AIz.js"),__vite__mapDeps([82,1,74,75,76,4,49,30,39,77,43,15,6,17,83,32,16,58,22,12,11,47,45])),meta:{title:"设备与库位"}},{path:"config/business",name:"admin-config-business",component:()=>vn(()=>import("./BusinessConfigView-BfBO4uM6.js"),__vite__mapDeps([84,1,74,75,76,4,49,30,39,77,43,15,6,17,85,32,22,12,11,47,58,8,16,81])),meta:{title:"业务与集成"}},{path:"config/ops-center",name:"admin-config-ops-center",component:()=>vn(()=>import("./OpsCenterView-DSZVXypR.js"),__vite__mapDeps([86,1,40,74,75,76,4,49,30,39,77,43,15,6,17,28,87,32,52,22,12,11,47,8,5,7,88,53,9,81,48,26,16,25,46,58,23])),meta:{title:"运维与回放"}},{path:"config/system-center",name:"admin-config-system-center",component:()=>vn(()=>import("./SystemCenterView-DTMANlHu.js"),__vite__mapDeps([89,74,75,76,4,49,30,39,77,43,15,6,17,36,1,90,32,5,8,58,22,12,46,81,9,7,57,52,11,88,48,47])),meta:{title:"系统与权限"}},{path:"playback",redirect:{path:"/admin/config/ops-center",query:{tab:"playback"}}},{path:"vehicle-hub",redirect:"/admin/config/vehicle-hub"},{path:"config/vehicle",redirect:{path:"/admin/config/vehicle-hub",query:{tab:"maintenance"}}},{path:"config/fleet",redirect:{path:"/admin/config/vehicle-hub",query:{tab:"fleet"}}},{path:"config/routing",redirect:{path:"/admin/config/strategy",query:{tab:"routing"}}},{path:"config/task",redirect:{path:"/admin/config/strategy",query:{tab:"task"}}},{path:"config/traffic",redirect:{path:"/admin/config/strategy",query:{tab:"traffic"}}},{path:"config/charge",redirect:{path:"/admin/config/strategy",query:{tab:"charge"}}},{path:"config/device",redirect:{path:"/admin/config/facility",query:{tab:"device"}}},{path:"config/location",redirect:{path:"/admin/config/facility",query:{tab:"location"}}},{path:"config/integrations",redirect:{path:"/admin/config/business",query:{tab:"integrations"}}},{path:"config/scenario",redirect:{path:"/admin/config/business",query:{tab:"scenario"}}},{path:"config/widget",redirect:{path:"/admin/config/business",query:{tab:"widget"}}},{path:"config/ops",redirect:{path:"/admin/config/ops-center",query:{tab:"ops"}}},{path:"config/logs",redirect:{path:"/admin/config/ops-center",query:{tab:"logs"}}},{path:"config/map-monitor",redirect:{path:"/admin/config/ops-center",query:{tab:"map-monitor"}}},{path:"config/system",redirect:{path:"/admin/config/system-center",query:{tab:"system"}}},{path:"config/auth",redirect:{path:"/admin/config/system-center",query:{tab:"auth"}}}]},{path:"/monitor",component:()=>vn(()=>import("./AppShell-CsAf-EtY.js"),__vite__mapDeps([20,1,2,21,4,22,12,6,23,24,25,26])),meta:{scope:"RCSMonitor"},redirect:"/monitor/map",children:[{path:"dashboard",name:"monitor-dashboard",component:()=>vn(()=>import("./MonitorDashboardView-BhyuAhkj.js"),__vite__mapDeps([91,1,29,30,38,92,4,15,22,12,11,47,45,17,43,44])),meta:{title:"运营总览"}},{path:"vehicle-hub",name:"monitor-vehicle-hub",component:()=>vn(()=>import("./VehicleHubView-BC4ONtdY.js"),__vite__mapDeps([79,30,74,75,76,4,49,39,77,43,15,6,17,1,29,41,80,52,32,22,12,23,24,46,8,58,45,5,9,81,16,53])),meta:{title:"车辆运维"}},{path:"map",name:"monitor-map",component:()=>vn(()=>import("./MonitorMapView-D59BIz8C.js"),__vite__mapDeps([93,33,34,35,4,6,17,1,30,36,37,38,39,40,29,41,42,15,32,43,44,45,22,12,46,8,11,47,48,49,24,23])),meta:{title:"地图监控"}},{path:"ops",name:"monitor-ops",component:()=>vn(()=>import("./OpsActionPanelView-CYj4_682.js"),__vite__mapDeps([94,1,75,76,4,49,37,38,95,15,22,12,11,47,6,8,17])),meta:{title:"运维操作"}},{path:"notes",name:"monitor-notes",component:()=>vn(()=>import("./AnnotationView-BCpnjaJW.js"),__vite__mapDeps([96,1,4,15,22,12,11,47,17,81,5,6,46,8])),meta:{title:"运营备注"}}]},{path:"/",redirect:"/login"},{path:"/:pathMatch(.*)*",redirect:"/login"}];function q4(e){return(U4.find(n=>n.path===e)?.children??[]).filter(n=>typeof n.name=="string").map(n=>({name:String(n.name),path:`${e}/${n.path}`}))}const Y4=q4("/admin"),G4=q4("/monitor"),coe=new Set([...Y4,...G4].map(e=>e.name)),Pf=jte({history:kte(),routes:U4});Pf.beforeEach(async e=>{const t=uoe();if(e.meta.public)return!0;if(!t.isAuthed)return{path:"/login",query:{redirect:e.fullPath}};if(!t.validated)try{await t.validate()}catch{return{path:"/login",query:{redirect:e.fullPath}}}if(t.needsWizard&&e.name!=="wizard")return{name:"wizard"};const n=e.path.startsWith("/admin")?"Platform":e.path.startsWith("/monitor")?"RCSMonitor":null;if(n&&t.scope!==n)try{await t.switchScope(n)}catch{try{await t.switchScope(n)}catch{}}const a=typeof e.name=="string"?e.name:"";if(a&&coe.has(a)&&!t.hasPage(a)){const r=(t.scope==="RCSMonitor"?G4:Y4).find(s=>t.hasPage(s.name))?.path;if(r&&r!==e.path)return fv.warning("无权访问该页面,已跳转到可访问页面"),r;if(!r)return fv.error("当前账号在该区域没有任何可访问页面,请联系管理员分配权限"),{path:"/status"}}return!0});Pf.afterEach(e=>{const t="迷毂";document.title=e.meta.title?`${e.meta.title} · ${t}`:t});Pf.onError((e,t)=>{const n=e?.message??"";/dynamically imported module|Loading (chunk|CSS chunk)|module script failed|Failed to fetch/i.test(n)&&(t?.fullPath?window.location.assign(t.fullPath):window.location.reload())});const doe="fame-lavender",zc=[{id:"fame-lavender",name:"迷毂浅紫",description:"参考 FAME 系统:深紫侧栏 + 浅紫白主区,柔和耐看,长时间使用不刺眼",preview:"#7c3aed",previewAccent:"#a855f7",vars:{"--mg-primary":"#7c3aed","--mg-primary-rgb":"124, 58, 237","--mg-primary-hover":"#8b5cf6","--mg-primary-hover-rgb":"139, 92, 246","--mg-primary-active":"#5b21b6","--mg-accent":"#a855f7","--mg-accent-rgb":"168, 85, 247","--mg-primary-light-3":"#a78bfa","--mg-primary-light-5":"#c4b5fd","--mg-primary-light-7":"#ddd6fe","--mg-primary-light-8":"#ede9fe","--mg-primary-light-9":"#f5f3ff","--mg-primary-dark-2":"#6d28d9","--mg-bg-app-1":"#edeaf5","--mg-bg-app-2":"#e7e4f1","--mg-bg-app-3":"#f1eef8","--mg-bg-app-deep-rgb":"231, 228, 241","--mg-bg-aside-1":"#2d1b69","--mg-bg-aside-2":"#1a1040","--mg-bg-aside-rgb":"45, 27, 105","--mg-bg-card-rgb":"255, 255, 255","--mg-bg-card-hi-rgb":"249, 246, 255","--mg-bg-card-darker-rgb":"245, 240, 251","--mg-shadow-rgb":"124, 58, 237","--mg-text-tint-rgb":"45, 27, 105","--mg-text-hi-rgb":"96, 98, 102","--mg-orb-a-opacity":"0","--mg-orb-b-opacity":"0","--mg-orb-c-opacity":"0"}},{id:"industrial-purple",name:"星云紫",description:"科幻紫主色,辅以蓝紫渐变,磨砂玻璃 · 霓虹辉光",preview:"#7c3aed",previewAccent:"#c4b5fd",vars:{"--mg-primary":"#7c3aed","--mg-primary-rgb":"124, 58, 237","--mg-primary-hover":"#8b5cf6","--mg-primary-hover-rgb":"139, 92, 246","--mg-primary-active":"#5b21b6","--mg-accent":"#c4b5fd","--mg-accent-rgb":"196, 181, 253","--mg-primary-light-3":"#9d6cf2","--mg-primary-light-5":"#b594f7","--mg-primary-light-7":"#6f4eab","--mg-primary-light-8":"#4c357a","--mg-primary-light-9":"#2d1f55","--mg-primary-dark-2":"#4c1d95","--mg-bg-app-1":"#0e0a24","--mg-bg-app-2":"#1f1147","--mg-bg-app-3":"#06031a","--mg-bg-app-deep-rgb":"6, 3, 26","--mg-bg-aside-1":"#0c0820","--mg-bg-aside-2":"#03020e","--mg-bg-aside-rgb":"10, 6, 30","--mg-bg-card-rgb":"38, 24, 78","--mg-bg-card-hi-rgb":"58, 38, 110","--mg-bg-card-darker-rgb":"20, 12, 48","--mg-shadow-rgb":"8, 2, 24","--mg-text-tint-rgb":"242, 232, 255","--mg-text-hi-rgb":"220, 200, 252","--mg-orb-a-opacity":"0.55","--mg-orb-b-opacity":"0.50","--mg-orb-c-opacity":"0.40"}},{id:"deep-azure",name:"深邃蓝",description:"科技感深蓝,沉静稳重",preview:"#1565c0",previewAccent:"#82b1ff",vars:{"--mg-primary":"#1565c0","--mg-primary-rgb":"21, 101, 192","--mg-primary-hover":"#1976d2","--mg-primary-hover-rgb":"25, 118, 210","--mg-primary-active":"#0d47a1","--mg-accent":"#82b1ff","--mg-accent-rgb":"130, 177, 255","--mg-primary-light-3":"#5a8fce","--mg-primary-light-5":"#83aedb","--mg-primary-light-7":"#adcde7","--mg-primary-light-8":"#c4dbed","--mg-primary-light-9":"#e3eef8","--mg-primary-dark-2":"#0d47a1","--mg-bg-app-1":"#051a3a","--mg-bg-app-2":"#0a2f6b","--mg-bg-app-3":"#020a1f","--mg-bg-app-deep-rgb":"2, 8, 26","--mg-bg-aside-1":"#06122a","--mg-bg-aside-2":"#02060f","--mg-bg-aside-rgb":"8, 18, 42","--mg-bg-card-rgb":"12, 36, 80","--mg-bg-card-hi-rgb":"18, 50, 110","--mg-bg-card-darker-rgb":"6, 18, 44","--mg-shadow-rgb":"2, 4, 14","--mg-text-tint-rgb":"218, 234, 252","--mg-text-hi-rgb":"170, 200, 240"}},{id:"emerald-forge",name:"翡翠绿",description:"机械翡翠绿,沉稳活力",preview:"#00796b",previewAccent:"#80cbc4",vars:{"--mg-primary":"#00796b","--mg-primary-rgb":"0, 121, 107","--mg-primary-hover":"#00897b","--mg-primary-hover-rgb":"0, 137, 123","--mg-primary-active":"#004d40","--mg-accent":"#80cbc4","--mg-accent-rgb":"128, 203, 196","--mg-primary-light-3":"#4ca094","--mg-primary-light-5":"#79b9b0","--mg-primary-light-7":"#a6d2cc","--mg-primary-light-8":"#bfdfdb","--mg-primary-light-9":"#e1f0ee","--mg-primary-dark-2":"#004d40","--mg-bg-app-1":"#06241f","--mg-bg-app-2":"#0a4538","--mg-bg-app-3":"#020f0c","--mg-bg-app-deep-rgb":"2, 12, 10","--mg-bg-aside-1":"#061a16","--mg-bg-aside-2":"#020a08","--mg-bg-aside-rgb":"8, 26, 22","--mg-bg-card-rgb":"10, 50, 42","--mg-bg-card-hi-rgb":"14, 66, 56","--mg-bg-card-darker-rgb":"6, 28, 24","--mg-shadow-rgb":"2, 10, 8","--mg-text-tint-rgb":"220, 244, 240","--mg-text-hi-rgb":"170, 220, 210"}},{id:"crimson-iron",name:"熔铁赤",description:"熔铁炉火般的暗红工业风",preview:"#b71c1c",previewAccent:"#ff8a80",vars:{"--mg-primary":"#b71c1c","--mg-primary-rgb":"183, 28, 28","--mg-primary-hover":"#d32f2f","--mg-primary-hover-rgb":"211, 47, 47","--mg-primary-active":"#8a0c0c","--mg-accent":"#ff8a80","--mg-accent-rgb":"255, 138, 128","--mg-primary-light-3":"#c95a5a","--mg-primary-light-5":"#d68585","--mg-primary-light-7":"#e4afaf","--mg-primary-light-8":"#edc8c8","--mg-primary-light-9":"#f7e6e6","--mg-primary-dark-2":"#8a0c0c","--mg-bg-app-1":"#2a0606","--mg-bg-app-2":"#4a0c0c","--mg-bg-app-3":"#150303","--mg-bg-app-deep-rgb":"20, 4, 4","--mg-bg-aside-1":"#200505","--mg-bg-aside-2":"#0c0202","--mg-bg-aside-rgb":"36, 6, 6","--mg-bg-card-rgb":"60, 10, 10","--mg-bg-card-hi-rgb":"80, 14, 14","--mg-bg-card-darker-rgb":"34, 5, 5","--mg-shadow-rgb":"10, 1, 1","--mg-text-tint-rgb":"252, 220, 220","--mg-text-hi-rgb":"240, 175, 175"}},{id:"graphite-steel",name:"石墨钢",description:"中性冷灰,纯粹工业",preview:"#455a64",previewAccent:"#b0bec5",vars:{"--mg-primary":"#455a64","--mg-primary-rgb":"69, 90, 100","--mg-primary-hover":"#607d8b","--mg-primary-hover-rgb":"96, 125, 139","--mg-primary-active":"#263238","--mg-accent":"#b0bec5","--mg-accent-rgb":"176, 190, 197","--mg-primary-light-3":"#7a8a92","--mg-primary-light-5":"#9aa6ac","--mg-primary-light-7":"#bac2c7","--mg-primary-light-8":"#ccd2d6","--mg-primary-light-9":"#e8ebed","--mg-primary-dark-2":"#263238","--mg-bg-app-1":"#161e24","--mg-bg-app-2":"#243038","--mg-bg-app-3":"#0a0e12","--mg-bg-app-deep-rgb":"10, 14, 18","--mg-bg-aside-1":"#11181d","--mg-bg-aside-2":"#060a0d","--mg-bg-aside-rgb":"18, 26, 32","--mg-bg-card-rgb":"30, 42, 50","--mg-bg-card-hi-rgb":"42, 56, 66","--mg-bg-card-darker-rgb":"16, 22, 28","--mg-shadow-rgb":"4, 6, 10","--mg-text-tint-rgb":"226, 232, 238","--mg-text-hi-rgb":"186, 198, 210"}},{id:"amber-forge",name:"琥珀金",description:"高对比的橙金调,警示与活力并存",preview:"#e65100",previewAccent:"#ffb74d",vars:{"--mg-primary":"#e65100","--mg-primary-rgb":"230, 81, 0","--mg-primary-hover":"#f57c00","--mg-primary-hover-rgb":"245, 124, 0","--mg-primary-active":"#bf360c","--mg-accent":"#ffb74d","--mg-accent-rgb":"255, 183, 77","--mg-primary-light-3":"#ec8344","--mg-primary-light-5":"#f2a474","--mg-primary-light-7":"#f7c4a3","--mg-primary-light-8":"#fad6bc","--mg-primary-light-9":"#fdeadd","--mg-primary-dark-2":"#bf360c","--mg-bg-app-1":"#2a1404","--mg-bg-app-2":"#4a2a0c","--mg-bg-app-3":"#150a02","--mg-bg-app-deep-rgb":"20, 10, 4","--mg-bg-aside-1":"#200f04","--mg-bg-aside-2":"#0c0602","--mg-bg-aside-rgb":"34, 16, 6","--mg-bg-card-rgb":"62, 32, 8","--mg-bg-card-hi-rgb":"82, 44, 12","--mg-bg-card-darker-rgb":"34, 16, 4","--mg-shadow-rgb":"10, 4, 1","--mg-text-tint-rgb":"252, 232, 210","--mg-text-hi-rgb":"240, 196, 140"}}];function ci(e){return e?zc.find(t=>t.id===e)??zc[0]:zc[0]}function di(e){const t=document.documentElement;for(const[n,a]of Object.entries(e.vars))t.style.setProperty(n,a);t.setAttribute("data-theme",e.id)}const Ire=[{key:"--mg-primary",label:"主色(背景基色)",hint:"全页背景、左侧导航、卡片底色、按钮"},{key:"--mg-primary-hover",label:"悬停/辉光",hint:"背景光晕、菜单高亮、悬停态"},{key:"--mg-accent",label:"强调/高光",hint:"点缀、边框高光、Logo 光晕"}];function kv(e){const t=e.trim().replace(/^#/,"");return/^[0-9a-f]{6}$/i.test(t)?[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]:null}function Zo(e){const t=kv(e);return t?`${t[0]}, ${t[1]}, ${t[2]}`:"0, 0, 0"}function Vi(e,t,n){const a=kv(e),o=kv(t);if(!a||!o)return e;const r=l=>Math.round(a[l]+(o[l]-a[l])*n),s=l=>l.toString(16).padStart(2,"0");return`#${s(r(0))}${s(r(1))}${s(r(2))}`}function s2(e,t){return Vi(e,"#ffffff",t)}function no(e,t){return Vi(e,"#000000",t)}function foe(e,t){const n={...e.vars},a=t["--mg-primary"]??n["--mg-primary"],o=t["--mg-primary-hover"]??n["--mg-primary-hover"],r=t["--mg-accent"]??n["--mg-accent"];if(t["--mg-primary"]){const s=no(a,.72),l=no(a,.48),u=no(a,.58),c=no(a,.54),d=no(a,.7),f=no(a,.38),p=no(a,.28),g=no(a,.62);n["--mg-primary"]=a,n["--mg-primary-rgb"]=Zo(a),n["--mg-primary-active"]=no(a,.35),n["--mg-primary-dark-2"]=no(a,.35),n["--mg-primary-light-3"]=s2(a,.22),n["--mg-primary-light-5"]=s2(a,.35),n["--mg-primary-light-7"]=Vi(a,"#888888",.45),n["--mg-primary-light-8"]=Vi(a,"#666666",.55),n["--mg-primary-light-9"]=Vi(a,"#444444",.65),n["--mg-bg-app-1"]=u,n["--mg-bg-app-2"]=l,n["--mg-bg-app-3"]=s,n["--mg-bg-app-deep-rgb"]=Zo(s),n["--mg-bg-aside-1"]=c,n["--mg-bg-aside-2"]=d,n["--mg-bg-aside-rgb"]=Zo(c),n["--mg-bg-card-rgb"]=Zo(f),n["--mg-bg-card-hi-rgb"]=Zo(p),n["--mg-bg-card-darker-rgb"]=Zo(g),n["--mg-shadow-rgb"]=Zo(no(a,.78))}return t["--mg-primary-hover"]&&(n["--mg-primary-hover"]=o,n["--mg-primary-hover-rgb"]=Zo(o)),t["--mg-accent"]&&(n["--mg-accent"]=r,n["--mg-accent-rgb"]=Zo(r)),n}function l2(e,t){if(!t||Object.keys(t).length===0)return e;const n=foe(e,t);return{...e,preview:t["--mg-primary"]??e.preview,previewAccent:t["--mg-accent"]??e.previewAccent,vars:n}}const X4="simple.ui.state",yc={sidebarCollapsed:!1,theme:"light",themeId:doe,themeOverrides:{}};function poe(){try{const e=localStorage.getItem(X4);if(!e)return{...yc};const t=JSON.parse(e);return{sidebarCollapsed:t.sidebarCollapsed??yc.sidebarCollapsed,theme:t.theme==="dark"?"dark":"light",themeId:t.themeId??yc.themeId,themeOverrides:t.themeOverrides??{}}}catch(e){return console.warn("[ui.store] localStorage 中的 UI 状态解析失败,已回退默认:",e),{...yc}}}const hoe=Hw("ui",{state:()=>poe(),getters:{activeTheme(e){return l2(ci(e.themeId),e.themeOverrides[e.themeId])},availableThemes(){return zc}},actions:{toggleSidebar(){this.sidebarCollapsed=!this.sidebarCollapsed,this.persist()},setTheme(e){this.theme=e,document.documentElement.classList.toggle("dark",e==="dark"),this.persist()},getMergedTheme(e){return l2(e,this.themeOverrides[e.id])},getThemeColor(e,t){const n=ci(e);return this.themeOverrides[e]?.[t]??n.vars[t]},setThemeColor(e,t,n){this.themeOverrides[e]||(this.themeOverrides[e]={}),this.themeOverrides[e][t]=n,this.themeId===e&&di(this.getMergedTheme(ci(e))),this.persist()},clearThemeOverrides(e){delete this.themeOverrides[e],this.themeId===e&&di(ci(e)),this.persist()},clearAllThemeOverrides(){this.themeOverrides={},di(this.activeTheme),this.persist()},setThemeId(e){const t=ci(e);this.themeId=t.id,di(this.getMergedTheme(t)),this.persist()},applyCurrentTheme(){di(this.activeTheme)},persist(){const e={sidebarCollapsed:this.sidebarCollapsed,theme:this.theme,themeId:this.themeId,themeOverrides:this.themeOverrides};try{localStorage.setItem(X4,JSON.stringify(e))}catch(t){console.warn("[ui.store] 持久化 UI 状态失败:",t)}}}}),Af=Dw(Dee),J4=kO();Af.use(J4);hoe(J4).applyCurrentTheme();Af.use(Pf);Af.use(Nee,{locale:Mee});Af.mount("#app");export{ax as $,$9 as A,N7 as B,M7 as C,zae as D,dL as E,Y7 as F,FE as G,lK as H,YK as I,GK as J,XK as K,GE as L,M9 as M,iD as N,uD as O,P9 as P,De as Q,Un as R,JE as S,pj as T,A9 as U,Rj as V,Ij as W,fv as X,see as Y,cd as Z,bU as _,jae as a,JP as a$,ZF as a0,JF as a1,$z as a2,mo as a3,es as a4,Dq as a5,EE as a6,Nj as a7,sY as a8,uX as a9,Ooe as aA,_oe as aB,Roe as aC,z as aD,le as aE,re as aF,L as aG,moe as aH,goe as aI,wt as aJ,X as aK,voe as aL,Ioe as aM,se as aN,Hw as aO,VP as aP,zP as aQ,$oe as aR,Noe as aS,Ov as aT,Moe as aU,Poe as aV,ci as aW,Aoe as aX,Loe as aY,Boe as aZ,Doe as a_,hG as aa,vG as ab,iX as ac,cr as ad,CX as ae,kX as af,Wn as ag,qJ as ah,Ve as ai,Ire as aj,Pee as ak,yoe as al,qo as am,hf as an,woe as ao,fP as ap,Soe as aq,Coe as ar,koe as as,$l as at,Yo as au,Qa as av,Eoe as aw,xoe as ax,C as ay,Toe as az,Uae as b,Mi as b$,dt as b0,Md as b1,qe as b2,Voe as b3,Jl as b4,tu as b5,$e as b6,boe as b7,Gt as b8,Foe as b9,Dt as bA,gl as bB,M as bC,Joe as bD,kt as bE,oe as bF,Mt as bG,it as bH,NA as bI,Zoe as bJ,Tt as bK,Ce as bL,Jt as bM,Ht as bN,Pn as bO,xn as bP,Qoe as bQ,ere as bR,i as bS,tre as bT,wr as bU,uoe as bV,ure as bW,ire as bX,wn as bY,hoe as bZ,nre as b_,zoe as ba,Hoe as bb,vo as bc,Koe as bd,Woe as be,Ya as bf,pt as bg,joe as bh,B0 as bi,Ne as bj,R as bk,ze as bl,Uoe as bm,Kd as bn,Vt as bo,ht as bp,_v as bq,Fl as br,E as bs,qoe as bt,Yoe as bu,OC as bv,Goe as bw,Xoe as bx,St as by,kA as bz,Bae as c,$t as c0,are as c1,ore as c2,rre as c3,sre as c4,JA as c5,lre as c6,pe as c7,ne as c8,ct as c9,cn as ca,Xe as cb,Yae as d,Gae as e,Vae as f,qae as g,Dae as h,Hae as i,Kae as j,Fae as k,Xae as l,N9 as m,x5 as n,YC as o,H5 as p,K5 as q,Bn as r,tk as s,KV as t,go as u,Ym as v,Pz as w,Gz as x,Xz as y,E9 as z}; diff --git a/MiGu.Server/wwwroot/assets/index-Dg4NaXsE.js b/MiGu.Server/wwwroot/assets/index-Dg4NaXsE.js deleted file mode 100644 index a05ebf9..0000000 --- a/MiGu.Server/wwwroot/assets/index-Dg4NaXsE.js +++ /dev/null @@ -1,100 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-0TaDlGzh.js","assets/el-tooltip-l0sNRNKZ.js","assets/FRLD-logo-white-no_title-BE78iS6n.js","assets/LoginView-DKfiSb8w.css","assets/base-BhyKBIh7.css","assets/el-form-item-D_relxjU.css","assets/el-button-ZSOkJyjJ.css","assets/el-collapse-item-BvmEG8Qn.css","assets/el-input-BddTPWVI.css","assets/el-input-number-DExoAqKP.css","assets/el-link-CPQZ-olG.css","assets/el-checkbox-CzNtyWdF.css","assets/el-popper-Wf_ds9r7.css","assets/ServiceStatusView-CiTg6q_Q.js","assets/ServiceStatusView-IGba4H4q.css","assets/el-card-BAyktVMS.css","assets/el-descriptions-BpDzfuC8.css","assets/el-tag-1VV9QMa7.css","assets/WizardView-C7EOtEcB.js","assets/WizardView-D_EJbvb2.css","assets/AppShell-CAX-HJ2b.js","assets/AppShell-D28lCBtn.css","assets/el-scrollbar-GF-yQkxY.css","assets/el-button-group-B09mLjuS.css","assets/el-dropdown-item-CtcKg9JC.css","assets/el-radio-button-TYBaCPcE.css","assets/DashboardView-C5o_Ttf4.js","assets/projection-BMms551H.js","assets/reflection-B_glb6eT.js","assets/DashboardView-C22mCfRB.css","assets/el-tab-pane-C5lGmld3.css","assets/MapMonitorView-Bc6X9WQO.js","assets/Workspace3D-DpUfTJl7.js","assets/Workspace3D-mhI80n5T.css","assets/mapEdit-TNAQr3Be.js","assets/ops-BCeFEEjY.js","assets/ops-CsVl7GhE.js","assets/monitorConfigCache-BigdkiFw.js","assets/useProjectionStream-BBHmpNXC.js","assets/MapMonitorView-Du9_ePeE.css","assets/el-col-BWEC13sA.css","assets/el-statistic-D5_dVssE.css","assets/el-progress-B7X4OvaL.css","assets/el-select-CK58rX4v.css","assets/el-table-column-Dp73S2HR.css","assets/el-dialog-TSZfE1b8.css","assets/el-empty-S7fQQ3B8.css","assets/MapManagementView-CccyKhbv.js","assets/MapManagementView-DJMxI8po.css","assets/el-loading-Dq8WDDkr.css","assets/el-alert-B6UgayC7.css","assets/MapEditorView-Bf_sv8Aw.js","assets/useMapEditStream-BgR6WvRg.js","assets/MapEditorView-DTrk0FFM.css","assets/el-color-picker-DRNdOQmm.css","assets/el-switch-DpR9-s4E.css","assets/TrackTableView-CKv4G01-.js","assets/ReflectionManagerPanel-BZQZIz4T.js","assets/ReflectionManagerPanel-Btm77NGt.css","assets/TrackTableView-C-Cp6740.css","assets/CarPanelView-DfcvV1b9.js","assets/CarPanelView-CYaApbj9.css","assets/ProcessPanelView-DoD_u6oD.js","assets/ProcessPanelView-DLKKlZA4.css","assets/ScriptPanelView-DMd6Dq7p.js","assets/ScriptPanelView-zM2-1jjH.css","assets/MissionEditorView-BNUdM9Ij.js","assets/MissionEditorView-DOR5c4wb.css","assets/ProjectPropertiesView-DxQyu0yl.js","assets/ProjectPropertiesView-CvKuii5E.css","assets/PlaybackView-DVrgp4e4.js","assets/PlaybackView-BsrAVvYx.css","assets/el-divider-B0pQhKGi.css","assets/SystemConfigView-Cy7YXbTA.js","assets/ConfigPageBase-MHa7yfOO.js","assets/PermissionGuard-BlMEkqrL.js","assets/PermissionGuard-B-YLUKV0.css","assets/ConfigPageBase-DOgE48Ff.css","assets/SystemConfigView-zK_tPjiF.css","assets/ExternalIntegrationView-CVrzHPs8.js","assets/RoutingPolicyView-vyV201zY.js","assets/VehicleHubView-1cdDkq5N.js","assets/VehicleHubView-BySAdLFB.css","assets/ChargePolicyView-fgYXxU-T.js","assets/TaskAllocationView-BoGL3AmK.js","assets/TrafficRuleView-CZpyEJOL.js","assets/AuthRoleView-BW7bVuKX.js","assets/AuthRoleView-CTEbfTF-.css","assets/el-checkbox-group-D_6SYB2i.css","assets/DeviceHubView-D6W4gbr_.js","assets/ScenarioTemplateView-CmTU4kEH.js","assets/ScenarioTemplateView-rv7Jf-RX.css","assets/LocationView-r0d4EkyN.js","assets/OpsConfigView-Ch6itZUF.js","assets/OpsConfigView-Dn7upUIu.css","assets/CustomWidgetView-Ch7DIGUj.js","assets/CustomWidgetView-Ch0BQYzJ.css","assets/MapMonitorConfigView-CYlZhPX2.js","assets/MapMonitorConfigView-BC-sAP6v.css","assets/MonitorDashboardView-Dl0hq3jL.js","assets/MonitorDashboardView-CzA4Ot5V.css","assets/MonitorMapView-OvNLwhYc.js","assets/OpsActionPanelView-CgLT81Kn.js","assets/OpsActionPanelView-C3hWMI-V.css","assets/AnnotationView-DixiuHnc.js"])))=>i.map(i=>d[i]); -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/** -* @vue/shared v3.5.34 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Cv(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const vn={},ll=[],ut=()=>{},sw=()=>!1,Td=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Od=e=>e.startsWith("onUpdate:"),Vn=Object.assign,kv=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Z4=Object.prototype.hasOwnProperty,Nt=(e,t)=>Z4.call(e,t),we=Array.isArray,il=e=>hu(e)==="[object Map]",_d=e=>hu(e)==="[object Set]",Ur=e=>hu(e)==="[object Date]",Fe=e=>typeof e=="function",Ae=e=>typeof e=="string",Va=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",qr=e=>(ot(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),lw=Object.prototype.toString,hu=e=>lw.call(e),Q4=e=>hu(e).slice(8,-1),Vi=e=>hu(e)==="[object Object]",Rd=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bi=Cv(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Id=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},eT=/-\w/g,qn=Id(e=>e.replace(eT,t=>t.slice(1).toUpperCase())),tT=/\B([A-Z])/g,br=Id(e=>e.replace(tT,"-$1").toLowerCase()),vu=Id(e=>e.charAt(0).toUpperCase()+e.slice(1)),yi=Id(e=>e?`on${vu(e)}`:""),$o=(e,t)=>!Object.is(e,t),wc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},Ev=e=>{const t=parseFloat(e);return isNaN(t)?e:t},nT=e=>{const t=Ae(e)?Number(e):NaN;return isNaN(t)?e:t};let Hg;const $d=()=>Hg||(Hg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ze(e){if(we(e)){const t={};for(let n=0;n{if(n){const a=n.split(oT);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(Ae(e))t=e;else if(we(e))for(let n=0;nTs(n,t))}const dw=e=>!!(e&&e.__v_isRef===!0),Ce=e=>Ae(e)?e:e==null?"":we(e)||ot(e)&&(e.toString===lw||!Fe(e.toString))?dw(e)?Ce(e.value):JSON.stringify(e,fw,2):String(e),fw=(e,t)=>dw(t)?fw(e,t.value):il(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,o],r)=>(n[Vf(a,r)+" =>"]=o,n),{})}:_d(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Vf(n))}:Va(t)?Vf(t):ot(t)&&!we(t)&&!Vi(t)?String(t):t,Vf=(e,t="")=>{var n;return Va(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.34 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Hn;class pw{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Hn&&(Hn.active?(this.parent=Hn,this.index=(Hn.scopes||(Hn.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(Hn===this)Hn=this.prevScope;else{let t=Hn;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(Si){let t=Si;for(Si=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;wi;){let t=wi;for(wi=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function gw(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function bw(e){let t,n=e.depsTail,a=n;for(;a;){const o=a.prevDep;a.version===-1?(a===n&&(n=o),Rv(a),cT(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=o}e.deps=t,e.depsTail=n}function Kp(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yw(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yw(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Fi)||(e.globalVersion=Fi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Kp(e))))return;e.flags|=2;const t=e.dep,n=bn,a=ro;bn=e,ro=!0;try{gw(e);const o=e.fn(e._value);(t.version===0||$o(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{bn=n,ro=a,bw(e),e.flags&=-3}}function Rv(e,t=!1){const{dep:n,prevSub:a,nextSub:o}=e;if(a&&(a.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Rv(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function cT(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ro=!0;const ww=[];function dr(){ww.push(ro),ro=!1}function fr(){const e=ww.pop();ro=e===void 0?!0:e}function Kg(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=bn;bn=void 0;try{t()}finally{bn=n}}}let Fi=0;class dT{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Iv{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!bn||!ro||bn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==bn)n=this.activeLink=new dT(bn,this),bn.deps?(n.prevDep=bn.depsTail,bn.depsTail.nextDep=n,bn.depsTail=n):bn.deps=bn.depsTail=n,Sw(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=bn.depsTail,n.nextDep=void 0,bn.depsTail.nextDep=n,bn.depsTail=n,bn.deps===n&&(bn.deps=a)}return n}trigger(t){this.version++,Fi++,this.notify(t)}notify(t){Ov();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{_v()}}}function Sw(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)Sw(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Hc=new WeakMap,ws=Symbol(""),Wp=Symbol(""),zi=Symbol("");function ta(e,t,n){if(ro&&bn){let a=Hc.get(e);a||Hc.set(e,a=new Map);let o=a.get(n);o||(a.set(n,o=new Iv),o.map=a,o.key=n),o.track()}}function nr(e,t,n,a,o,r){const s=Hc.get(e);if(!s){Fi++;return}const l=u=>{u&&u.trigger()};if(Ov(),t==="clear")s.forEach(l);else{const u=we(e),c=u&&Rd(n);if(u&&n==="length"){const d=Number(a);s.forEach((f,p)=>{(p==="length"||p===zi||!Va(p)&&p>=d)&&l(f)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),c&&l(s.get(zi)),t){case"add":u?c&&l(s.get("length")):(l(s.get(ws)),il(e)&&l(s.get(Wp)));break;case"delete":u||(l(s.get(ws)),il(e)&&l(s.get(Wp)));break;case"set":il(e)&&l(s.get(ws));break}}_v()}function fT(e,t){const n=Hc.get(e);return n&&n.get(t)}function Ws(e){const t=Jt(e);return t===e?t:(ta(t,"iterate",zi),Da(e)?t:t.map(io))}function Md(e){return ta(e=Jt(e),"iterate",zi),e}function Ro(e,t){return pr(e)?bl(lr(e)?io(t):t):io(t)}const pT={__proto__:null,[Symbol.iterator](){return zf(this,Symbol.iterator,e=>Ro(this,e))},concat(...e){return Ws(this).concat(...e.map(t=>we(t)?Ws(t):t))},entries(){return zf(this,"entries",e=>(e[1]=Ro(this,e[1]),e))},every(e,t){return Xo(this,"every",e,t,void 0,arguments)},filter(e,t){return Xo(this,"filter",e,t,n=>n.map(a=>Ro(this,a)),arguments)},find(e,t){return Xo(this,"find",e,t,n=>Ro(this,n),arguments)},findIndex(e,t){return Xo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xo(this,"findLast",e,t,n=>Ro(this,n),arguments)},findLastIndex(e,t){return Xo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hf(this,"includes",e)},indexOf(...e){return Hf(this,"indexOf",e)},join(e){return Ws(this).join(e)},lastIndexOf(...e){return Hf(this,"lastIndexOf",e)},map(e,t){return Xo(this,"map",e,t,void 0,arguments)},pop(){return Jl(this,"pop")},push(...e){return Jl(this,"push",e)},reduce(e,...t){return Wg(this,"reduce",e,t)},reduceRight(e,...t){return Wg(this,"reduceRight",e,t)},shift(){return Jl(this,"shift")},some(e,t){return Xo(this,"some",e,t,void 0,arguments)},splice(...e){return Jl(this,"splice",e)},toReversed(){return Ws(this).toReversed()},toSorted(e){return Ws(this).toSorted(e)},toSpliced(...e){return Ws(this).toSpliced(...e)},unshift(...e){return Jl(this,"unshift",e)},values(){return zf(this,"values",e=>Ro(this,e))}};function zf(e,t,n){const a=Md(e),o=a[t]();return a!==e&&!Da(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const hT=Array.prototype;function Xo(e,t,n,a,o,r){const s=Md(e),l=s!==e&&!Da(e),u=s[t];if(u!==hT[t]){const f=u.apply(e,r);return l?io(f):f}let c=n;s!==e&&(l?c=function(f,p){return n.call(this,Ro(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const d=u.call(s,c,a);return l&&o?o(d):d}function Wg(e,t,n,a){const o=Md(e),r=o!==e&&!Da(e);let s=n,l=!1;o!==e&&(r?(l=a.length===0,s=function(c,d,f){return l&&(l=!1,c=Ro(e,c)),n.call(this,c,Ro(e,d),f,e)}):n.length>3&&(s=function(c,d,f){return n.call(this,c,d,f,e)}));const u=o[t](s,...a);return l?Ro(e,u):u}function Hf(e,t,n){const a=Jt(e);ta(a,"iterate",zi);const o=a[t](...n);return(o===-1||o===!1)&&Dd(n[0])?(n[0]=Jt(n[0]),a[t](...n)):o}function Jl(e,t,n=[]){dr(),Ov();const a=Jt(e)[t].apply(e,n);return _v(),fr(),a}const vT=Cv("__proto__,__v_isRef,__isVue"),Cw=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Va));function mT(e){Va(e)||(e=String(e));const t=Jt(this);return ta(t,"has",e),t.hasOwnProperty(e)}class kw{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return a===(o?r?Rw:_w:r?Ow:Tw).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const s=we(t);if(!o){let u;if(s&&(u=pT[n]))return u;if(n==="hasOwnProperty")return mT}const l=Reflect.get(t,n,Gt(t)?t:a);if((Va(n)?Cw.has(n):vT(n))||(o||ta(t,"get",n),r))return l;if(Gt(l)){const u=s&&Rd(n)?l:l.value;return o&&ot(u)?gl(u):u}return ot(l)?o?gl(l):Dt(l):l}}class Ew extends kw{constructor(t=!1){super(!1,t)}set(t,n,a,o){let r=t[n];const s=we(t)&&Rd(n);if(!this._isShallow){const c=pr(r);if(!Da(a)&&!pr(a)&&(r=Jt(r),a=Jt(a)),!s&&Gt(r)&&!Gt(a))return c||(r.value=a),!0}const l=s?Number(n)e,Gu=e=>Reflect.getPrototypeOf(e);function ST(e,t,n){return function(...a){const o=this.__v_raw,r=Jt(o),s=il(r),l=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,c=o[e](...a),d=n?jp:t?bl:io;return!t&&ta(r,"iterate",u?Wp:ws),Vn(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:l?[d(f[0]),d(f[1])]:d(f),done:p}}})}}function Xu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function CT(e,t){const n={get(o){const r=this.__v_raw,s=Jt(r),l=Jt(o);e||($o(o,l)&&ta(s,"get",o),ta(s,"get",l));const{has:u}=Gu(s),c=t?jp:e?bl:io;if(u.call(s,o))return c(r.get(o));if(u.call(s,l))return c(r.get(l));r!==s&&r.get(o)},get size(){const o=this.__v_raw;return!e&&ta(Jt(o),"iterate",ws),o.size},has(o){const r=this.__v_raw,s=Jt(r),l=Jt(o);return e||($o(o,l)&&ta(s,"has",o),ta(s,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const s=this,l=s.__v_raw,u=Jt(l),c=t?jp:e?bl:io;return!e&&ta(u,"iterate",ws),l.forEach((d,f)=>o.call(r,c(d),c(f),s))}};return Vn(n,e?{add:Xu("add"),set:Xu("set"),delete:Xu("delete"),clear:Xu("clear")}:{add(o){const r=Jt(this),s=Gu(r),l=Jt(o),u=!t&&!Da(o)&&!pr(o)?l:o;return s.has.call(r,u)||$o(o,u)&&s.has.call(r,o)||$o(l,u)&&s.has.call(r,l)||(r.add(u),nr(r,"add",u,u)),this},set(o,r){!t&&!Da(r)&&!pr(r)&&(r=Jt(r));const s=Jt(this),{has:l,get:u}=Gu(s);let c=l.call(s,o);c||(o=Jt(o),c=l.call(s,o));const d=u.call(s,o);return s.set(o,r),c?$o(r,d)&&nr(s,"set",o,r):nr(s,"add",o,r),this},delete(o){const r=Jt(this),{has:s,get:l}=Gu(r);let u=s.call(r,o);u||(o=Jt(o),u=s.call(r,o)),l&&l.call(r,o);const c=r.delete(o);return u&&nr(r,"delete",o,void 0),c},clear(){const o=Jt(this),r=o.size!==0,s=o.clear();return r&&nr(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=ST(o,e,t)}),n}function Pd(e,t){const n=CT(e,t);return(a,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?a:Reflect.get(Nt(n,o)&&o in a?n:a,o,r)}const kT={get:Pd(!1,!1)},ET={get:Pd(!1,!0)},xT={get:Pd(!0,!1)},TT={get:Pd(!0,!0)},Tw=new WeakMap,Ow=new WeakMap,_w=new WeakMap,Rw=new WeakMap;function OT(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _T(e){return e.__v_skip||!Object.isExtensible(e)?0:OT(Q4(e))}function Dt(e){return pr(e)?e:Ld(e,!1,gT,kT,Tw)}function Ad(e){return Ld(e,!1,yT,ET,Ow)}function gl(e){return Ld(e,!0,bT,xT,_w)}function Iw(e){return Ld(e,!0,wT,TT,Rw)}function Ld(e,t,n,a,o){if(!ot(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=_T(e);if(r===0)return e;const s=o.get(e);if(s)return s;const l=new Proxy(e,r===2?a:n);return o.set(e,l),l}function lr(e){return pr(e)?lr(e.__v_raw):!!(e&&e.__v_isReactive)}function pr(e){return!!(e&&e.__v_isReadonly)}function Da(e){return!!(e&&e.__v_isShallow)}function Dd(e){return e?!!e.__v_raw:!1}function Jt(e){const t=e&&e.__v_raw;return t?Jt(t):e}function Ya(e){return!Nt(e,"__v_skip")&&Object.isExtensible(e)&&iw(e,"__v_skip",!0),e}const io=e=>ot(e)?Dt(e):e,bl=e=>ot(e)?gl(e):e;function Gt(e){return e?e.__v_isRef===!0:!1}function M(e){return $w(e,!1)}function Tt(e){return $w(e,!0)}function $w(e,t){return Gt(e)?e:new RT(e,t)}class RT{constructor(t,n){this.dep=new Iv,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Jt(t),this._value=n?t:io(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||Da(t)||pr(t);t=a?t:Jt(t),$o(t,n)&&(this._rawValue=t,this._value=a?t:io(t),this.dep.trigger())}}function Sc(e){e.dep&&e.dep.trigger()}function i(e){return Gt(e)?e.value:e}function xn(e){return Fe(e)?e():i(e)}const IT={get:(e,t,n)=>t==="__v_raw"?e:i(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const o=e[t];return Gt(o)&&!Gt(n)?(o.value=n,!0):Reflect.set(e,t,n,a)}};function Nw(e){return lr(e)?e:new Proxy(e,IT)}function Pn(e){const t=we(e)?new Array(e.length):{};for(const n in e)t[n]=Mw(e,n);return t}class $T{constructor(t,n,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=Va(n)?n:String(n),this._raw=Jt(t);let o=!0,r=t;if(!we(t)||Va(this._key)||!Rd(this._key))do o=!Dd(r)||Da(r);while(o&&(r=r.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=i(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Gt(this._raw[this._key])){const n=this._object[this._key];if(Gt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return fT(this._raw,this._key)}}class NT{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ht(e,t,n){return Gt(e)?e:Fe(e)?new NT(e):ot(e)&&arguments.length>1?Mw(e,t,n):M(e)}function Mw(e,t,n){return new $T(e,t,n)}class MT{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Iv(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Fi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&bn!==this)return mw(this,!0),!0}get value(){const t=this.dep.track();return yw(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function PT(e,t,n=!1){let a,o;return Fe(e)?a=e:(a=e.get,o=e.set),new MT(a,o,n)}const Ju={},Kc=new WeakMap;let ls;function AT(e,t=!1,n=ls){if(n){let a=Kc.get(n);a||Kc.set(n,a=[]),a.push(e)}}function LT(e,t,n=vn){const{immediate:a,deep:o,once:r,scheduler:s,augmentJob:l,call:u}=n,c=S=>o?S:Da(S)||o===!1||o===0?ar(S,1):ar(S);let d,f,p,g,h=!1,v=!1;if(Gt(e)?(f=()=>e.value,h=Da(e)):lr(e)?(f=()=>c(e),h=!0):we(e)?(v=!0,h=e.some(S=>lr(S)||Da(S)),f=()=>e.map(S=>{if(Gt(S))return S.value;if(lr(S))return c(S);if(Fe(S))return u?u(S,2):S()})):Fe(e)?t?f=u?()=>u(e,2):e:f=()=>{if(p){dr();try{p()}finally{fr()}}const S=ls;ls=d;try{return u?u(e,3,[g]):e(g)}finally{ls=S}}:f=ut,t&&o){const S=f,k=o===!0?1/0:o;f=()=>ar(S(),k)}const m=Nd(),b=()=>{d.stop(),m&&m.active&&kv(m.effects,d)};if(r&&t){const S=t;t=(...k)=>{S(...k),b()}}let w=v?new Array(e.length).fill(Ju):Ju;const y=S=>{if(!(!(d.flags&1)||!d.dirty&&!S))if(t){const k=d.run();if(o||h||(v?k.some((x,O)=>$o(x,w[O])):$o(k,w))){p&&p();const x=ls;ls=d;try{const O=[k,w===Ju?void 0:v&&w[0]===Ju?[]:w,g];w=k,u?u(t,3,O):t(...O)}finally{ls=x}}}else d.run()};return l&&l(y),d=new hw(f),d.scheduler=s?()=>s(y,!1):y,g=S=>AT(S,!1,d),p=d.onStop=()=>{const S=Kc.get(d);if(S){if(u)u(S,4);else for(const k of S)k();Kc.delete(d)}},t?a?y(!0):w=d.run():s?s(y.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function ar(e,t=1/0,n){if(t<=0||!ot(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Gt(e))ar(e.value,t,n);else if(we(e))for(let a=0;a{ar(a,t,n)});else if(Vi(e)){for(const a in e)ar(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&ar(e[a],t,n)}return e}/** -* @vue/runtime-core v3.5.34 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function mu(e,t,n,a){try{return a?e(...a):e()}catch(o){Bd(o,t,n)}}function uo(e,t,n,a){if(Fe(e)){const o=mu(e,t,n,a);return o&&qr(o)&&o.catch(r=>{Bd(r,t,n)}),o}if(we(e)){const o=[];for(let r=0;r>>1,o=pa[a],r=Hi(o);r=Hi(n)?pa.push(e):pa.splice(BT(t),0,e),e.flags|=1,Aw()}}function Aw(){Wc||(Wc=Pw.then(Dw))}function VT(e){we(e)?ul.push(...e):Dr&&e.id===-1?Dr.splice(Qs+1,0,e):e.flags&1||(ul.push(e),e.flags|=1),Aw()}function jg(e,t,n=Oo+1){for(;nHi(n)-Hi(a));if(ul.length=0,Dr){Dr.push(...t);return}for(Dr=t,Qs=0;Qse.id==null?e.flags&2?-1:1/0:e.id;function Dw(e){try{for(Oo=0;Oo{a._d&&Yc(-1);const r=jc(t);let s;try{s=e(...o)}finally{jc(r),a._d&&Yc(1)}return s};return a._n=!0,a._c=!0,a._d=!0,a}function ct(e,t){if(Jn===null)return e;const n=Kd(Jn),a=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&Fe(t)?t.call(a&&a.proxy):t}}function Nv(){return!!(dt()||Ss)}const FT=Symbol.for("v-scx"),zT=()=>$e(FT);function la(e,t){return Mv(e,null,t)}function pe(e,t,n){return Mv(e,t,n)}function Mv(e,t,n=vn){const{immediate:a,deep:o,flush:r,once:s}=n,l=Vn({},n),u=t&&a||!t&&r!=="post";let c;if(ji){if(r==="sync"){const g=zT();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=ut,g.resume=ut,g.pause=ut,g}}const d=na;l.call=(g,h,v)=>uo(g,d,h,v);let f=!1;r==="post"?l.scheduler=g=>{da(g,d&&d.suspense)}:r!=="sync"&&(f=!0,l.scheduler=(g,h)=>{h?g():$v(g)}),l.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const p=LT(e,t,l);return ji&&(c?c.push(p):u&&p()),p}function HT(e,t,n){const a=this.proxy,o=Ae(e)?e.includes(".")?Vw(a,e):()=>a[e]:e.bind(a,a);let r;Fe(t)?r=t:(r=t.handler,n=t);const s=bu(this),l=Mv(o,r.bind(a),n);return s(),l}function Vw(e,t){const n=t.split(".");return()=>{let a=e;for(let o=0;oe.__isTeleport,us=e=>e&&(e.disabled||e.disabled===""),KT=e=>e&&(e.defer||e.defer===""),Ug=e=>typeof SVGElement<"u"&&e instanceof SVGElement,qg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Up=(e,t)=>{const n=e&&e.to;return Ae(n)?t?t(n):null:n},WT={name:"Teleport",__isTeleport:!0,process(e,t,n,a,o,r,s,l,u,c){const{mc:d,pc:f,pbc:p,o:{insert:g,querySelector:h,createText:v,createComment:m,parentNode:b}}=c,w=us(t.props);let{dynamicChildren:y}=t;const S=(O,T,I)=>{O.shapeFlag&16&&d(O.children,T,I,o,r,s,l,u)},k=(O=t)=>{const T=us(O.props),I=O.target=Up(O.props,h),_=qp(I,O,v,g);I&&(s!=="svg"&&Ug(I)?s="svg":s!=="mathml"&&qg(I)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(I),T||(S(O,I,_),di(O,!1)))},x=O=>{const T=()=>{if($r.get(O)===T){if($r.delete(O),us(O.props)){const I=b(O.el)||n;S(O,I,O.anchor),di(O,!0)}k(O)}};$r.set(O,T),da(T,r)};if(e==null){const O=t.el=v(""),T=t.anchor=v("");if(g(O,n,a),g(T,n,a),KT(t.props)||r&&r.pendingBranch){x(t);return}w&&(S(t,n,T),di(t,!0)),k()}else{t.el=e.el;const O=t.anchor=e.anchor,T=$r.get(e);if(T){T.flags|=8,$r.delete(e),x(t);return}t.targetStart=e.targetStart;const I=t.target=e.target,_=t.targetAnchor=e.targetAnchor,N=us(e.props),$=N?n:I,B=N?O:_;if(s==="svg"||Ug(I)?s="svg":(s==="mathml"||qg(I))&&(s="mathml"),y?(p(e.dynamicChildren,y,$,o,r,s,l),Hv(e,t,!0)):u||f(e,t,$,B,o,r,s,l,!1),w)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zu(t,n,O,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=t.target=Up(t.props,h);K&&Zu(t,K,null,c,0)}else N&&Zu(t,I,_,c,1);di(t,w)}},remove(e,t,n,{um:a,o:{remove:o}},r){const{shapeFlag:s,children:l,anchor:u,targetStart:c,targetAnchor:d,target:f,props:p}=e;let g=r||!us(p);const h=$r.get(e);if(h&&(h.flags|=8,$r.delete(e),g=!1),f&&(o(c),o(d)),r&&o(u),s&16)for(let v=0;v{e.isMounted=!0}),Vt(()=>{e.isUnmounting=!0}),e}const za=[Function,Array],Kw={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:za,onEnter:za,onAfterEnter:za,onEnterCancelled:za,onBeforeLeave:za,onLeave:za,onAfterLeave:za,onLeaveCancelled:za,onBeforeAppear:za,onAppear:za,onAfterAppear:za,onAppearCancelled:za},Ww=e=>{const t=e.subTree;return t.component?Ww(t.component):t},UT={name:"BaseTransition",props:Kw,setup(e,{slots:t}){const n=dt(),a=Hw();return()=>{const o=t.default&&Pv(t.default(),!0),r=o&&o.length?jw(o):n.subTree?re():void 0;if(!r)return;const s=Jt(e),{mode:l}=s;if(a.isLeaving)return Kf(r);const u=Yg(r);if(!u)return Kf(r);let c=Ki(u,s,a,n,f=>c=f);u.type!==kn&&Os(u,c);let d=n.subTree&&Yg(n.subTree);if(d&&d.type!==kn&&!cs(d,u)&&Ww(n).type!==kn){let f=Ki(d,s,a,n);if(Os(d,f),l==="out-in"&&u.type!==kn)return a.isLeaving=!0,f.afterLeave=()=>{a.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,d=void 0},Kf(r);l==="in-out"&&u.type!==kn?f.delayLeave=(p,g,h)=>{const v=Uw(a,d);v[String(d.key)]=d,p[_o]=()=>{g(),p[_o]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{h(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return r}}};function jw(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==kn){t=n;break}}return t}const qT=UT;function Uw(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function Ki(e,t,n,a,o){const{appear:r,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:g,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:m,onAppear:b,onAfterAppear:w,onAppearCancelled:y}=t,S=String(e.key),k=Uw(n,e),x=(I,_)=>{I&&uo(I,a,9,_)},O=(I,_)=>{const N=_[1];x(I,_),we(I)?I.every($=>$.length<=1)&&N():I.length<=1&&N()},T={mode:s,persisted:l,beforeEnter(I){let _=u;if(!n.isMounted)if(r)_=m||u;else return;I[_o]&&I[_o](!0);const N=k[S];N&&cs(e,N)&&N.el[_o]&&N.el[_o](),x(_,[I])},enter(I){if(k[S]===e)return;let _=c,N=d,$=f;if(!n.isMounted)if(r)_=b||c,N=w||d,$=y||f;else return;let B=!1;I[Zl]=j=>{B||(B=!0,j?x($,[I]):x(N,[I]),T.delayedLeave&&T.delayedLeave(),I[Zl]=void 0)};const K=I[Zl].bind(null,!1);_?O(_,[I,K]):K()},leave(I,_){const N=String(e.key);if(I[Zl]&&I[Zl](!0),n.isUnmounting)return _();x(p,[I]);let $=!1;I[_o]=K=>{$||($=!0,_(),K?x(v,[I]):x(h,[I]),I[_o]=void 0,k[N]===e&&delete k[N])};const B=I[_o].bind(null,!1);k[N]=e,g?O(g,[I,B]):B()},clone(I){const _=Ki(I,t,n,a,o);return o&&o(_),_}};return T}function Kf(e){if(Vd(e))return e=Fo(e),e.children=null,e}function Yg(e){if(!Vd(e))return zw(e.type)&&e.children?jw(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Fe(n.default))return n.default()}}function Os(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Os(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pv(e,t=!1,n){let a=[],o=0;for(let r=0;r1)for(let r=0;rCi(v,t&&(we(t)?t[m]:t),n,a,o));return}if(cl(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Ci(e,t,n,a.component.subTree);return}const r=a.shapeFlag&4?Kd(a.component):a.el,s=o?null:r,{i:l,r:u}=e,c=t&&t.r,d=l.refs===vn?l.refs={}:l.refs,f=l.setupState,p=Jt(f),g=f===vn?sw:v=>Gg(d,v)?!1:Nt(p,v),h=(v,m)=>!(m&&Gg(d,m));if(c!=null&&c!==u){if(Xg(t),Ae(c))d[c]=null,g(c)&&(f[c]=null);else if(Gt(c)){const v=t;h(c,v.k)&&(c.value=null),v.k&&(d[v.k]=null)}}if(Fe(u))mu(u,l,12,[s,d]);else{const v=Ae(u),m=Gt(u);if(v||m){const b=()=>{if(e.f){const w=v?g(u)?f[u]:d[u]:h()||!e.k?u.value:d[e.k];if(o)we(w)&&kv(w,r);else if(we(w))w.includes(r)||w.push(r);else if(v)d[u]=[r],g(u)&&(f[u]=d[u]);else{const y=[r];h(u,e.k)&&(u.value=y),e.k&&(d[e.k]=y)}}else v?(d[u]=s,g(u)&&(f[u]=s)):m&&(h(u,e.k)&&(u.value=s),e.k&&(d[e.k]=s))};if(s){const w=()=>{b(),Uc.delete(e)};w.id=-1,Uc.set(e,w),da(w,n)}else Xg(e),b()}}}function Xg(e){const t=Uc.get(e);t&&(t.flags|=8,Uc.delete(e))}$d().requestIdleCallback;$d().cancelIdleCallback;const cl=e=>!!e.type.__asyncLoader,Vd=e=>e.type.__isKeepAlive;function gu(e,t){Yw(e,"a",t)}function Av(e,t){Yw(e,"da",t)}function Yw(e,t,n=na){const a=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Fd(t,a,n),n){let o=n.parent;for(;o&&o.parent;)Vd(o.parent.vnode)&&YT(a,t,n,o),o=o.parent}}function YT(e,t,n,a){const o=Fd(t,e,a,!0);Vl(()=>{kv(a[t],o)},n)}function Fd(e,t,n=na,a=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{dr();const l=bu(n),u=uo(t,n,e,s);return l(),fr(),u});return a?o.unshift(r):o.push(r),r}}const yr=e=>(t,n=na)=>{(!ji||e==="sp")&&Fd(e,(...a)=>t(...a),n)},zd=yr("bm"),ht=yr("m"),Lv=yr("bu"),bo=yr("u"),Vt=yr("bum"),Vl=yr("um"),GT=yr("sp"),XT=yr("rtg"),JT=yr("rtc");function ZT(e,t=na){Fd("ec",e,t)}const Dv="components",QT="directives";function Mt(e,t){return Vv(Dv,e,!0,t)||e}const Gw=Symbol.for("v-ndc");function it(e){return Ae(e)?Vv(Dv,e,!1)||e:e||Gw}function Bv(e){return Vv(QT,e)}function Vv(e,t,n=!0,a=!1){const o=Jn||na;if(o){const r=o.type;if(e===Dv){const l=A3(r,!1);if(l&&(l===t||l===qn(t)||l===vu(qn(t))))return r}const s=Jg(o[e]||r[e],t)||Jg(o.appContext[e],t);return!s&&a?r:s}}function Jg(e,t){return e&&(e[t]||e[qn(t)]||e[vu(qn(t))])}function kt(e,t,n,a){let o;const r=n,s=we(e);if(s||Ae(e)){const l=s&&lr(e);let u=!1,c=!1;l&&(u=!Da(e),c=pr(e),e=Md(e)),o=new Array(e.length);for(let d=0,f=e.length;dt(l,u,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let u=0,c=l.length;u{const r=a.fn(...o);return r&&(r.key=a.key),r}:a.fn)}return e}function oe(e,t,n={},a,o){if(Jn.ce||Jn.parent&&cl(Jn.parent)&&Jn.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),E(),le(Ve,null,[X("slot",n,a&&a())],c?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),E();const s=r&&Xw(r(n)),l=n.key||s&&s.key,u=le(Ve,{key:(l&&!Va(l)?l:`_${t}`)+(!s&&a?"_fb":"")},s||(a?a():[]),s&&e._===1?64:-2);return!o&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function Xw(e){return e.some(t=>Zt(t)?!(t.type===kn||t.type===Ve&&!Xw(t.children)):!0)?e:null}function e3(e,t){const n={};for(const a in e)n[yi(a)]=e[a];return n}const Yp=e=>e?m2(e)?Kd(e):Yp(e.parent):null,ki=Vn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yp(e.parent),$root:e=>Yp(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Qw(e),$forceUpdate:e=>e.f||(e.f=()=>{$v(e.update)}),$nextTick:e=>e.n||(e.n=Ne.bind(e.proxy)),$watch:e=>HT.bind(e)}),Wf=(e,t)=>e!==vn&&!e.__isScriptSetup&&Nt(e,t),t3={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:o,props:r,accessCache:s,type:l,appContext:u}=e;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return a[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Wf(a,t))return s[t]=1,a[t];if(o!==vn&&Nt(o,t))return s[t]=2,o[t];if(Nt(r,t))return s[t]=3,r[t];if(n!==vn&&Nt(n,t))return s[t]=4,n[t];Gp&&(s[t]=0)}}const c=ki[t];let d,f;if(c)return t==="$attrs"&&ta(e.attrs,"get",""),c(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==vn&&Nt(n,t))return s[t]=4,n[t];if(f=u.config.globalProperties,Nt(f,t))return f[t]},set({_:e},t,n){const{data:a,setupState:o,ctx:r}=e;return Wf(o,t)?(o[t]=n,!0):a!==vn&&Nt(a,t)?(a[t]=n,!0):Nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:o,props:r,type:s}},l){let u;return!!(n[l]||e!==vn&&l[0]!=="$"&&Nt(e,l)||Wf(t,l)||Nt(r,l)||Nt(a,l)||Nt(ki,l)||Nt(o.config.globalProperties,l)||(u=s.__cssModules)&&u[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Nt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wn(){return Jw().slots}function wr(){return Jw().attrs}function Jw(e){const t=dt();return t.setupContext||(t.setupContext=b2(t))}function Zg(e){return we(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Gp=!0;function n3(e){const t=Qw(e),n=e.proxy,a=e.ctx;Gp=!1,t.beforeCreate&&Qg(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:l,provide:u,inject:c,created:d,beforeMount:f,mounted:p,beforeUpdate:g,updated:h,activated:v,deactivated:m,beforeDestroy:b,beforeUnmount:w,destroyed:y,unmounted:S,render:k,renderTracked:x,renderTriggered:O,errorCaptured:T,serverPrefetch:I,expose:_,inheritAttrs:N,components:$,directives:B,filters:K}=t;if(c&&a3(c,a,null),s)for(const A in s){const P=s[A];Fe(P)&&(a[A]=P.bind(n))}if(o){const A=o.call(n,n);ot(A)&&(e.data=Dt(A))}if(Gp=!0,r)for(const A in r){const P=r[A],V=Fe(P)?P.bind(n,n):Fe(P.get)?P.get.bind(n,n):ut,F=!Fe(P)&&Fe(P.set)?P.set.bind(n):ut,H=C({get:V,set:F});Object.defineProperty(a,A,{enumerable:!0,configurable:!0,get:()=>H.value,set:U=>H.value=U})}if(l)for(const A in l)Zw(l[A],a,n,A);if(u){const A=Fe(u)?u.call(n):u;Reflect.ownKeys(A).forEach(P=>{St(P,A[P])})}d&&Qg(d,e,"c");function W(A,P){we(P)?P.forEach(V=>A(V.bind(n))):P&&A(P.bind(n))}if(W(zd,f),W(ht,p),W(Lv,g),W(bo,h),W(gu,v),W(Av,m),W(ZT,T),W(JT,x),W(XT,O),W(Vt,w),W(Vl,S),W(GT,I),we(_))if(_.length){const A=e.exposed||(e.exposed={});_.forEach(P=>{Object.defineProperty(A,P,{get:()=>n[P],set:V=>n[P]=V,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===ut&&(e.render=k),N!=null&&(e.inheritAttrs=N),$&&(e.components=$),B&&(e.directives=B),I&&qw(e)}function a3(e,t,n=ut){we(e)&&(e=Xp(e));for(const a in e){const o=e[a];let r;ot(o)?"default"in o?r=$e(o.from||a,o.default,!0):r=$e(o.from||a):r=$e(o),Gt(r)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[a]=r}}function Qg(e,t,n){uo(we(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function Zw(e,t,n,a){let o=a.includes(".")?Vw(n,a):()=>n[a];if(Ae(e)){const r=t[e];Fe(r)&&pe(o,r)}else if(Fe(e))pe(o,e.bind(n));else if(ot(e))if(we(e))e.forEach(r=>Zw(r,t,n,a));else{const r=Fe(e.handler)?e.handler.bind(n):t[e.handler];Fe(r)&&pe(o,r,e)}}function Qw(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let u;return l?u=l:!o.length&&!n&&!a?u=t:(u={},o.length&&o.forEach(c=>qc(u,c,s,!0)),qc(u,t,s)),ot(t)&&r.set(t,u),u}function qc(e,t,n,a=!1){const{mixins:o,extends:r}=t;r&&qc(e,r,n,!0),o&&o.forEach(s=>qc(e,s,n,!0));for(const s in t)if(!(a&&s==="expose")){const l=o3[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const o3={data:eb,props:tb,emits:tb,methods:fi,computed:fi,beforeCreate:ca,created:ca,beforeMount:ca,mounted:ca,beforeUpdate:ca,updated:ca,beforeDestroy:ca,beforeUnmount:ca,destroyed:ca,unmounted:ca,activated:ca,deactivated:ca,errorCaptured:ca,serverPrefetch:ca,components:fi,directives:fi,watch:s3,provide:eb,inject:r3};function eb(e,t){return t?e?function(){return Vn(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function r3(e,t){return fi(Xp(e),Xp(t))}function Xp(e){if(we(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${qn(t)}Modifiers`]||e[`${br(t)}Modifiers`];function c3(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||vn;let o=n;const r=t.startsWith("update:"),s=r&&u3(a,t.slice(7));s&&(s.trim&&(o=n.map(d=>Ae(d)?d.trim():d)),s.number&&(o=n.map(Ev)));let l,u=a[l=yi(t)]||a[l=yi(qn(t))];!u&&r&&(u=a[l=yi(br(t))]),u&&uo(u,e,6,o);const c=a[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,uo(c,e,6,o)}}const d3=new WeakMap;function t2(e,t,n=!1){const a=n?d3:t.emitsCache,o=a.get(e);if(o!==void 0)return o;const r=e.emits;let s={},l=!1;if(!Fe(e)){const u=c=>{const d=t2(c,t,!0);d&&(l=!0,Vn(s,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!l?(ot(e)&&a.set(e,null),null):(we(r)?r.forEach(u=>s[u]=null):Vn(s,r),ot(e)&&a.set(e,s),s)}function Hd(e,t){return!e||!Td(t)?!1:(t=t.slice(2).replace(/Once$/,""),Nt(e,t[0].toLowerCase()+t.slice(1))||Nt(e,br(t))||Nt(e,t))}function nb(e){const{type:t,vnode:n,proxy:a,withProxy:o,propsOptions:[r],slots:s,attrs:l,emit:u,render:c,renderCache:d,props:f,data:p,setupState:g,ctx:h,inheritAttrs:v}=e,m=jc(e);let b,w;try{if(n.shapeFlag&4){const S=o||a,k=S;b=Io(c.call(k,S,d,f,g,p,h)),w=l}else{const S=t;b=Io(S.length>1?S(f,{attrs:l,slots:s,emit:u}):S(f,null)),w=t.props?l:f3(l)}}catch(S){Ei.length=0,Bd(S,e,1),b=X(kn)}let y=b;if(w&&v!==!1){const S=Object.keys(w),{shapeFlag:k}=y;S.length&&k&7&&(r&&S.some(Od)&&(w=p3(w,r)),y=Fo(y,w,!1,!0))}return n.dirs&&(y=Fo(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Os(y,n.transition),b=y,jc(m),b}const f3=e=>{let t;for(const n in e)(n==="class"||n==="style"||Td(n))&&((t||(t={}))[n]=e[n]);return t},p3=(e,t)=>{const n={};for(const a in e)(!Od(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function h3(e,t,n){const{props:a,children:o,component:r}=e,{props:s,children:l,patchFlag:u}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return a?ab(a,s,c):!!s;if(u&8){const d=t.dynamicProps;for(let f=0;fObject.create(a2),r2=e=>Object.getPrototypeOf(e)===a2;function m3(e,t,n,a=!1){const o={},r=o2();e.propsDefaults=Object.create(null),s2(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=a?o:Ad(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function g3(e,t,n,a){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,l=Jt(o),[u]=e.propsOptions;let c=!1;if((a||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[p,g]=l2(f,t,!0);Vn(s,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!u)return ot(e)&&a.set(e,ll),ll;if(we(r))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",zv=e=>we(e)?e.map(Io):[Io(e)],y3=(e,t,n)=>{if(t._n)return t;const a=ne((...o)=>zv(t(...o)),n);return a._c=!1,a},i2=(e,t,n)=>{const a=e._ctx;for(const o in e){if(Fv(o))continue;const r=e[o];if(Fe(r))t[o]=y3(o,r,a);else if(r!=null){const s=zv(r);t[o]=()=>s}}},u2=(e,t)=>{const n=zv(t);e.slots.default=()=>n},c2=(e,t,n)=>{for(const a in t)(n||!Fv(a))&&(e[a]=t[a])},w3=(e,t,n)=>{const a=e.slots=o2();if(e.vnode.shapeFlag&32){const o=t._;o?(c2(a,t,n),n&&iw(a,"_",o,!0)):i2(t,a)}else t&&u2(e,t)},S3=(e,t,n)=>{const{vnode:a,slots:o}=e;let r=!0,s=vn;if(a.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:c2(o,t,n):(r=!t.$stable,i2(t,o)),s=t}else t&&(u2(e,t),s={default:1});if(r)for(const l in o)!Fv(l)&&s[l]==null&&delete o[l]},da=T3;function C3(e){return k3(e)}function k3(e,t){const n=$d();n.__VUE__=!0;const{insert:a,remove:o,patchProp:r,createElement:s,createText:l,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:p,setScopeId:g=ut,insertStaticContent:h}=e,v=(L,q,te,fe=null,he=null,ve=null,Ie=void 0,Le=null,_e=!!q.dynamicChildren)=>{if(L===q)return;L&&!cs(L,q)&&(fe=Z(L),U(L,he,ve,!0),L=null),q.patchFlag===-2&&(_e=!1,q.dynamicChildren=null);const{type:ye,ref:Te,shapeFlag:be}=q;switch(ye){case Fl:m(L,q,te,fe);break;case kn:b(L,q,te,fe);break;case Cc:L==null&&w(q,te,fe,Ie);break;case Ve:$(L,q,te,fe,he,ve,Ie,Le,_e);break;default:be&1?k(L,q,te,fe,he,ve,Ie,Le,_e):be&6?B(L,q,te,fe,he,ve,Ie,Le,_e):(be&64||be&128)&&ye.process(L,q,te,fe,he,ve,Ie,Le,_e,Y)}Te!=null&&he?Ci(Te,L&&L.ref,ve,q||L,!q):Te==null&&L&&L.ref!=null&&Ci(L.ref,null,ve,L,!0)},m=(L,q,te,fe)=>{if(L==null)a(q.el=l(q.children),te,fe);else{const he=q.el=L.el;q.children!==L.children&&c(he,q.children)}},b=(L,q,te,fe)=>{L==null?a(q.el=u(q.children||""),te,fe):q.el=L.el},w=(L,q,te,fe)=>{[L.el,L.anchor]=h(L.children,q,te,fe,L.el,L.anchor)},y=({el:L,anchor:q},te,fe)=>{let he;for(;L&&L!==q;)he=p(L),a(L,te,fe),L=he;a(q,te,fe)},S=({el:L,anchor:q})=>{let te;for(;L&&L!==q;)te=p(L),o(L),L=te;o(q)},k=(L,q,te,fe,he,ve,Ie,Le,_e)=>{if(q.type==="svg"?Ie="svg":q.type==="math"&&(Ie="mathml"),L==null)x(q,te,fe,he,ve,Ie,Le,_e);else{const ye=L.el&&L.el._isVueCE?L.el:null;try{ye&&ye._beginPatch(),I(L,q,he,ve,Ie,Le,_e)}finally{ye&&ye._endPatch()}}},x=(L,q,te,fe,he,ve,Ie,Le)=>{let _e,ye;const{props:Te,shapeFlag:be,transition:Pe,dirs:He}=L;if(_e=L.el=s(L.type,ve,Te&&Te.is,Te),be&8?d(_e,L.children):be&16&&T(L.children,_e,null,fe,he,jf(L,ve),Ie,Le),He&&ns(L,null,fe,"created"),O(_e,L,L.scopeId,Ie,fe),Te){for(const Qe in Te)Qe!=="value"&&!bi(Qe)&&r(_e,Qe,null,Te[Qe],ve,fe);"value"in Te&&r(_e,"value",null,Te.value,ve),(ye=Te.onVnodeBeforeMount)&&Eo(ye,fe,L)}He&&ns(L,null,fe,"beforeMount");const Je=E3(he,Pe);Je&&Pe.beforeEnter(_e),a(_e,q,te),((ye=Te&&Te.onVnodeMounted)||Je||He)&&da(()=>{try{ye&&Eo(ye,fe,L),Je&&Pe.enter(_e),He&&ns(L,null,fe,"mounted")}finally{}},he)},O=(L,q,te,fe,he)=>{if(te&&g(L,te),fe)for(let ve=0;ve{for(let ye=_e;ye{const Le=q.el=L.el;let{patchFlag:_e,dynamicChildren:ye,dirs:Te}=q;_e|=L.patchFlag&16;const be=L.props||vn,Pe=q.props||vn;let He;if(te&&as(te,!1),(He=Pe.onVnodeBeforeUpdate)&&Eo(He,te,q,L),Te&&ns(q,L,te,"beforeUpdate"),te&&as(te,!0),(be.innerHTML&&Pe.innerHTML==null||be.textContent&&Pe.textContent==null)&&d(Le,""),ye?_(L.dynamicChildren,ye,Le,te,fe,jf(q,he),ve):Ie||P(L,q,Le,null,te,fe,jf(q,he),ve,!1),_e>0){if(_e&16)N(Le,be,Pe,te,he);else if(_e&2&&be.class!==Pe.class&&r(Le,"class",null,Pe.class,he),_e&4&&r(Le,"style",be.style,Pe.style,he),_e&8){const Je=q.dynamicProps;for(let Qe=0;Qe{He&&Eo(He,te,q,L),Te&&ns(q,L,te,"updated")},fe)},_=(L,q,te,fe,he,ve,Ie)=>{for(let Le=0;Le{if(q!==te){if(q!==vn)for(const ve in q)!bi(ve)&&!(ve in te)&&r(L,ve,q[ve],null,he,fe);for(const ve in te){if(bi(ve))continue;const Ie=te[ve],Le=q[ve];Ie!==Le&&ve!=="value"&&r(L,ve,Le,Ie,he,fe)}"value"in te&&r(L,"value",q.value,te.value,he)}},$=(L,q,te,fe,he,ve,Ie,Le,_e)=>{const ye=q.el=L?L.el:l(""),Te=q.anchor=L?L.anchor:l("");let{patchFlag:be,dynamicChildren:Pe,slotScopeIds:He}=q;He&&(Le=Le?Le.concat(He):He),L==null?(a(ye,te,fe),a(Te,te,fe),T(q.children||[],te,Te,he,ve,Ie,Le,_e)):be>0&&be&64&&Pe&&L.dynamicChildren&&L.dynamicChildren.length===Pe.length?(_(L.dynamicChildren,Pe,te,he,ve,Ie,Le),(q.key!=null||he&&q===he.subTree)&&Hv(L,q,!0)):P(L,q,te,Te,he,ve,Ie,Le,_e)},B=(L,q,te,fe,he,ve,Ie,Le,_e)=>{q.slotScopeIds=Le,L==null?q.shapeFlag&512?he.ctx.activate(q,te,fe,Ie,_e):K(q,te,fe,he,ve,Ie,_e):j(L,q,_e)},K=(L,q,te,fe,he,ve,Ie)=>{const Le=L.component=$3(L,fe,he);if(Vd(L)&&(Le.ctx.renderer=Y),N3(Le,!1,Ie),Le.asyncDep){if(he&&he.registerDep(Le,W,Ie),!L.el){const _e=Le.subTree=X(kn);b(null,_e,q,te),L.placeholder=_e.el}}else W(Le,L,q,te,he,ve,Ie)},j=(L,q,te)=>{const fe=q.component=L.component;if(h3(L,q,te))if(fe.asyncDep&&!fe.asyncResolved){A(fe,q,te);return}else fe.next=q,fe.update();else q.el=L.el,fe.vnode=q},W=(L,q,te,fe,he,ve,Ie)=>{const Le=()=>{if(L.isMounted){let{next:be,bu:Pe,u:He,parent:Je,vnode:Qe}=L;{const zt=d2(L);if(zt){be&&(be.el=Qe.el,A(L,be,Ie)),zt.asyncDep.then(()=>{da(()=>{L.isUnmounted||ye()},he)});return}}let lt=be,Ze;as(L,!1),be?(be.el=Qe.el,A(L,be,Ie)):be=Qe,Pe&&wc(Pe),(Ze=be.props&&be.props.onVnodeBeforeUpdate)&&Eo(Ze,Je,be,Qe),as(L,!0);const gt=nb(L),Pt=L.subTree;L.subTree=gt,v(Pt,gt,f(Pt.el),Z(Pt),L,he,ve),be.el=gt.el,lt===null&&v3(L,gt.el),He&&da(He,he),(Ze=be.props&&be.props.onVnodeUpdated)&&da(()=>Eo(Ze,Je,be,Qe),he)}else{let be;const{el:Pe,props:He}=q,{bm:Je,m:Qe,parent:lt,root:Ze,type:gt}=L,Pt=cl(q);as(L,!1),Je&&wc(Je),!Pt&&(be=He&&He.onVnodeBeforeMount)&&Eo(be,lt,q),as(L,!0);{Ze.ce&&Ze.ce._hasShadowRoot()&&Ze.ce._injectChildStyle(gt,L.parent?L.parent.type:void 0);const zt=L.subTree=nb(L);v(null,zt,te,fe,L,he,ve),q.el=zt.el}if(Qe&&da(Qe,he),!Pt&&(be=He&&He.onVnodeMounted)){const zt=q;da(()=>Eo(be,lt,zt),he)}(q.shapeFlag&256||lt&&cl(lt.vnode)&<.vnode.shapeFlag&256)&&L.a&&da(L.a,he),L.isMounted=!0,q=te=fe=null}};L.scope.on();const _e=L.effect=new hw(Le);L.scope.off();const ye=L.update=_e.run.bind(_e),Te=L.job=_e.runIfDirty.bind(_e);Te.i=L,Te.id=L.uid,_e.scheduler=()=>$v(Te),as(L,!0),ye()},A=(L,q,te)=>{q.component=L;const fe=L.vnode.props;L.vnode=q,L.next=null,g3(L,q.props,fe,te),S3(L,q.children,te),dr(),jg(L),fr()},P=(L,q,te,fe,he,ve,Ie,Le,_e=!1)=>{const ye=L&&L.children,Te=L?L.shapeFlag:0,be=q.children,{patchFlag:Pe,shapeFlag:He}=q;if(Pe>0){if(Pe&128){F(ye,be,te,fe,he,ve,Ie,Le,_e);return}else if(Pe&256){V(ye,be,te,fe,he,ve,Ie,Le,_e);return}}He&8?(Te&16&&ce(ye,he,ve),be!==ye&&d(te,be)):Te&16?He&16?F(ye,be,te,fe,he,ve,Ie,Le,_e):ce(ye,he,ve,!0):(Te&8&&d(te,""),He&16&&T(be,te,fe,he,ve,Ie,Le,_e))},V=(L,q,te,fe,he,ve,Ie,Le,_e)=>{L=L||ll,q=q||ll;const ye=L.length,Te=q.length,be=Math.min(ye,Te);let Pe;for(Pe=0;PeTe?ce(L,he,ve,!0,!1,be):T(q,te,fe,he,ve,Ie,Le,_e,be)},F=(L,q,te,fe,he,ve,Ie,Le,_e)=>{let ye=0;const Te=q.length;let be=L.length-1,Pe=Te-1;for(;ye<=be&&ye<=Pe;){const He=L[ye],Je=q[ye]=_e?er(q[ye]):Io(q[ye]);if(cs(He,Je))v(He,Je,te,null,he,ve,Ie,Le,_e);else break;ye++}for(;ye<=be&&ye<=Pe;){const He=L[be],Je=q[Pe]=_e?er(q[Pe]):Io(q[Pe]);if(cs(He,Je))v(He,Je,te,null,he,ve,Ie,Le,_e);else break;be--,Pe--}if(ye>be){if(ye<=Pe){const He=Pe+1,Je=HePe)for(;ye<=be;)U(L[ye],he,ve,!0),ye++;else{const He=ye,Je=ye,Qe=new Map;for(ye=Je;ye<=Pe;ye++){const me=q[ye]=_e?er(q[ye]):Io(q[ye]);me.key!=null&&Qe.set(me.key,ye)}let lt,Ze=0;const gt=Pe-Je+1;let Pt=!1,zt=0;const nt=new Array(gt);for(ye=0;ye=gt){U(me,he,ve,!0);continue}let je;if(me.key!=null)je=Qe.get(me.key);else for(lt=Je;lt<=Pe;lt++)if(nt[lt-Je]===0&&cs(me,q[lt])){je=lt;break}je===void 0?U(me,he,ve,!0):(nt[je-Je]=ye+1,je>=zt?zt=je:Pt=!0,v(me,q[je],te,null,he,ve,Ie,Le,_e),Ze++)}const ft=Pt?x3(nt):ll;for(lt=ft.length-1,ye=gt-1;ye>=0;ye--){const me=Je+ye,je=q[me],ie=q[me+1],xe=me+1{const{el:ve,type:Ie,transition:Le,children:_e,shapeFlag:ye}=L;if(ye&6){H(L.component.subTree,q,te,fe);return}if(ye&128){L.suspense.move(q,te,fe);return}if(ye&64){Ie.move(L,q,te,Y);return}if(Ie===Ve){a(ve,q,te);for(let be=0;be<_e.length;be++)H(_e[be],q,te,fe);a(L.anchor,q,te);return}if(Ie===Cc){y(L,q,te);return}if(fe!==2&&ye&1&&Le)if(fe===0)Le.beforeEnter(ve),a(ve,q,te),da(()=>Le.enter(ve),he);else{const{leave:be,delayLeave:Pe,afterLeave:He}=Le,Je=()=>{L.ctx.isUnmounted?o(ve):a(ve,q,te)},Qe=()=>{ve._isLeaving&&ve[_o](!0),be(ve,()=>{Je(),He&&He()})};Pe?Pe(ve,Je,Qe):Qe()}else a(ve,q,te)},U=(L,q,te,fe=!1,he=!1)=>{const{type:ve,props:Ie,ref:Le,children:_e,dynamicChildren:ye,shapeFlag:Te,patchFlag:be,dirs:Pe,cacheIndex:He,memo:Je}=L;if(be===-2&&(he=!1),Le!=null&&(dr(),Ci(Le,null,te,L,!0),fr()),He!=null&&(q.renderCache[He]=void 0),Te&256){q.ctx.deactivate(L);return}const Qe=Te&1&&Pe,lt=!cl(L);let Ze;if(lt&&(Ze=Ie&&Ie.onVnodeBeforeUnmount)&&Eo(Ze,q,L),Te&6)ae(L.component,te,fe);else{if(Te&128){L.suspense.unmount(te,fe);return}Qe&&ns(L,null,q,"beforeUnmount"),Te&64?L.type.remove(L,q,te,Y,fe):ye&&!ye.hasOnce&&(ve!==Ve||be>0&&be&64)?ce(ye,q,te,!1,!0):(ve===Ve&&be&384||!he&&Te&16)&&ce(_e,q,te),fe&&J(L)}const gt=Je!=null&&He==null;(lt&&(Ze=Ie&&Ie.onVnodeUnmounted)||Qe||gt)&&da(()=>{Ze&&Eo(Ze,q,L),Qe&&ns(L,null,q,"unmounted"),gt&&(L.el=null)},te)},J=L=>{const{type:q,el:te,anchor:fe,transition:he}=L;if(q===Ve){ee(te,fe);return}if(q===Cc){S(L);return}const ve=()=>{o(te),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(L.shapeFlag&1&&he&&!he.persisted){const{leave:Ie,delayLeave:Le}=he,_e=()=>Ie(te,ve);Le?Le(L.el,ve,_e):_e()}else ve()},ee=(L,q)=>{let te;for(;L!==q;)te=p(L),o(L),L=te;o(q)},ae=(L,q,te)=>{const{bum:fe,scope:he,job:ve,subTree:Ie,um:Le,m:_e,a:ye}=L;rb(_e),rb(ye),fe&&wc(fe),he.stop(),ve&&(ve.flags|=8,U(Ie,L,q,te)),Le&&da(Le,q),da(()=>{L.isUnmounted=!0},q)},ce=(L,q,te,fe=!1,he=!1,ve=0)=>{for(let Ie=ve;Ie{if(L.shapeFlag&6)return Z(L.component.subTree);if(L.shapeFlag&128)return L.suspense.next();const q=p(L.anchor||L.el),te=q&&q[Fw];return te?p(te):q};let de=!1;const ue=(L,q,te)=>{let fe;L==null?q._vnode&&(U(q._vnode,null,null,!0),fe=q._vnode.component):v(q._vnode||null,L,q,null,null,null,te),q._vnode=L,de||(de=!0,jg(fe),Lw(),de=!1)},Y={p:v,um:U,m:H,r:J,mt:K,mc:T,pc:P,pbc:_,n:Z,o:e};return{render:ue,hydrate:void 0,createApp:i3(ue)}}function jf({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function as({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function E3(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hv(e,t,n=!1){const a=e.children,o=t.children;if(we(a)&&we(o))for(let r=0;r>1,e[n[l]]0&&(t[a]=n[r-1]),n[r]=a)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function d2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:d2(t)}function rb(e){if(e)for(let t=0;te.__isSuspense;function T3(e,t){t&&t.pendingBranch?we(e)?t.effects.push(...e):t.effects.push(e):VT(e)}const Ve=Symbol.for("v-fgt"),Fl=Symbol.for("v-txt"),kn=Symbol.for("v-cmt"),Cc=Symbol.for("v-stc"),Ei=[];let Na=null;function E(e=!1){Ei.push(Na=e?null:[])}function O3(){Ei.pop(),Na=Ei[Ei.length-1]||null}let Wi=1;function Yc(e,t=!1){Wi+=e,e<0&&Na&&t&&(Na.hasOnce=!0)}function h2(e){return e.dynamicChildren=Wi>0?Na||ll:null,O3(),Wi>0&&Na&&Na.push(e),e}function D(e,t,n,a,o,r){return h2(z(e,t,n,a,o,r,!0))}function le(e,t,n,a,o){return h2(X(e,t,n,a,o,!0))}function Zt(e){return e?e.__v_isVNode===!0:!1}function cs(e,t){return e.type===t.type&&e.key===t.key}const v2=({key:e})=>e??null,kc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||Gt(e)||Fe(e)?{i:Jn,r:e,k:t,f:!!n}:e:null);function z(e,t=null,n=null,a=0,o=null,r=e===Ve?0:1,s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&v2(t),ref:t&&kc(t),scopeId:Bw,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:a,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Jn};return l?(Kv(u,n),r&128&&e.normalize(u)):n&&(u.shapeFlag|=Ae(n)?8:16),Wi>0&&!s&&Na&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Na.push(u),u}const X=_3;function _3(e,t=null,n=null,a=0,o=null,r=!1){if((!e||e===Gw)&&(e=kn),Zt(e)){const l=Fo(e,t,!0);return n&&Kv(l,n),Wi>0&&!r&&Na&&(l.shapeFlag&6?Na[Na.indexOf(e)]=l:Na.push(l)),l.patchFlag=-2,l}if(L3(e)&&(e=e.__vccOpts),t){t=ir(t);let{class:l,style:u}=t;l&&!Ae(l)&&(t.class=R(l)),ot(u)&&(Dd(u)&&!we(u)&&(u=Vn({},u)),t.style=ze(u))}const s=Ae(e)?1:p2(e)?128:zw(e)?64:ot(e)?4:Fe(e)?2:0;return z(e,t,n,a,o,s,r,!0)}function ir(e){return e?Dd(e)||r2(e)?Vn({},e):e:null}function Fo(e,t,n=!1,a=!1){const{props:o,ref:r,patchFlag:s,children:l,transition:u}=e,c=t?pt(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&v2(c),ref:t&&t.ref?n&&r?we(r)?r.concat(kc(t)):[r,kc(t)]:kc(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fo(e.ssContent),ssFallback:e.ssFallback&&Fo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&a&&Os(d,u.clone(d)),d}function wt(e=" ",t=0){return X(Fl,null,e,t)}function soe(e,t){const n=X(Cc,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(E(),le(kn,null,e)):X(kn,null,e)}function Io(e){return e==null||typeof e=="boolean"?X(kn):we(e)?X(Ve,null,e.slice()):Zt(e)?er(e):X(Fl,null,String(e))}function er(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fo(e)}function Kv(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(we(t))n=16;else if(typeof t=="object")if(a&65){const o=t.default;o&&(o._c&&(o._d=!1),Kv(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!r2(t)?t._ctx=Jn:o===3&&Jn&&(Jn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Fe(t)?(t={default:t,_ctx:Jn},n=32):(t=String(t),a&64?(n=16,t=[wt(t)]):n=8);e.children=t,e.shapeFlag|=n}function pt(...e){const t={};for(let n=0;nna||Jn;let Gc,Zp;{const e=$d(),t=(n,a)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(a),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};Gc=t("__VUE_INSTANCE_SETTERS__",n=>na=n),Zp=t("__VUE_SSR_SETTERS__",n=>ji=n)}const bu=e=>{const t=na;return Gc(e),e.scope.on(),()=>{e.scope.off(),Gc(t)}},sb=()=>{na&&na.scope.off(),Gc(null)};function m2(e){return e.vnode.shapeFlag&4}let ji=!1;function N3(e,t=!1,n=!1){t&&Zp(t);const{props:a,children:o}=e.vnode,r=m2(e);m3(e,a,r,t),w3(e,o,n||t);const s=r?M3(e,t):void 0;return t&&Zp(!1),s}function M3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,t3);const{setup:a}=n;if(a){dr();const o=e.setupContext=a.length>1?b2(e):null,r=bu(e),s=mu(a,e,0,[e.props,o]),l=qr(s);if(fr(),r(),(l||e.sp)&&!cl(e)&&qw(e),l){if(s.then(sb,sb),t)return s.then(u=>{lb(e,u)}).catch(u=>{Bd(u,e,0)});e.asyncDep=s}else lb(e,s)}else g2(e)}function lb(e,t,n){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ot(t)&&(e.setupState=Nw(t)),g2(e)}function g2(e,t,n){const a=e.type;e.render||(e.render=a.render||ut);{const o=bu(e);dr();try{n3(e)}finally{fr(),o()}}}const P3={get(e,t){return ta(e,"get",""),e[t]}};function b2(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,P3),slots:e.slots,emit:e.emit,expose:t}}function Kd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Nw(Ya(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ki)return ki[n](e)},has(t,n){return n in t||n in ki}})):e.proxy}function A3(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function L3(e){return Fe(e)&&"__vccOpts"in e}const C=(e,t)=>PT(e,t,ji);function qe(e,t,n){try{Yc(-1);const a=arguments.length;return a===2?ot(t)&&!we(t)?Zt(t)?X(e,null,[t]):X(e,t):X(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&Zt(n)&&(n=[n]),X(e,t,n))}finally{Yc(1)}}const D3="3.5.34",B3=ut;/** -* @vue/runtime-dom v3.5.34 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Qp;const ib=typeof window<"u"&&window.trustedTypes;if(ib)try{Qp=ib.createPolicy("vue",{createHTML:e=>e})}catch{}const y2=Qp?e=>Qp.createHTML(e):e=>e,V3="http://www.w3.org/2000/svg",F3="http://www.w3.org/1998/Math/MathML",Qo=typeof document<"u"?document:null,ub=Qo&&Qo.createElement("template"),z3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const o=t==="svg"?Qo.createElementNS(V3,e):t==="mathml"?Qo.createElementNS(F3,e):n?Qo.createElement(e,{is:n}):Qo.createElement(e);return e==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:e=>Qo.createTextNode(e),createComment:e=>Qo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{ub.innerHTML=y2(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const l=ub.content;if(a==="svg"||a==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Rr="transition",Ql="animation",yl=Symbol("_vtc"),w2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},S2=Vn({},Kw,w2),H3=e=>(e.displayName="Transition",e.props=S2,e),Yn=H3((e,{slots:t})=>qe(qT,C2(e),t)),os=(e,t=[])=>{we(e)?e.forEach(n=>n(...t)):e&&e(...t)},cb=e=>e?we(e)?e.some(t=>t.length>1):e.length>1:!1;function C2(e){const t={};for(const $ in e)$ in w2||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:a,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=r,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,h=K3(o),v=h&&h[0],m=h&&h[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:y,onLeave:S,onLeaveCancelled:k,onBeforeAppear:x=b,onAppear:O=w,onAppearCancelled:T=y}=t,I=($,B,K,j)=>{$._enterCancelled=j,Nr($,B?d:l),Nr($,B?c:s),K&&K()},_=($,B)=>{$._isLeaving=!1,Nr($,f),Nr($,g),Nr($,p),B&&B()},N=$=>(B,K)=>{const j=$?O:w,W=()=>I(B,$,K);os(j,[B,W]),db(()=>{Nr(B,$?u:r),To(B,$?d:l),cb(j)||fb(B,a,v,W)})};return Vn(t,{onBeforeEnter($){os(b,[$]),To($,r),To($,s)},onBeforeAppear($){os(x,[$]),To($,u),To($,c)},onEnter:N(!1),onAppear:N(!0),onLeave($,B){$._isLeaving=!0;const K=()=>_($,B);To($,f),$._enterCancelled?(To($,p),eh($)):(eh($),To($,p)),db(()=>{$._isLeaving&&(Nr($,f),To($,g),cb(S)||fb($,a,m,K))}),os(S,[$,K])},onEnterCancelled($){I($,!1,void 0,!0),os(y,[$])},onAppearCancelled($){I($,!0,void 0,!0),os(T,[$])},onLeaveCancelled($){_($),os(k,[$])}})}function K3(e){if(e==null)return null;if(ot(e))return[Uf(e.enter),Uf(e.leave)];{const t=Uf(e);return[t,t]}}function Uf(e){return nT(e)}function To(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[yl]||(e[yl]=new Set)).add(t)}function Nr(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[yl];n&&(n.delete(t),n.size||(e[yl]=void 0))}function db(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let W3=0;function fb(e,t,n,a){const o=e._endId=++W3,r=()=>{o===e._endId&&a()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:l,propCount:u}=k2(e,t);if(!s)return a();const c=s+"end";let d=0;const f=()=>{e.removeEventListener(c,p),r()},p=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d(n[h]||"").split(", "),o=a(`${Rr}Delay`),r=a(`${Rr}Duration`),s=pb(o,r),l=a(`${Ql}Delay`),u=a(`${Ql}Duration`),c=pb(l,u);let d=null,f=0,p=0;t===Rr?s>0&&(d=Rr,f=s,p=r.length):t===Ql?c>0&&(d=Ql,f=c,p=u.length):(f=Math.max(s,c),d=f>0?s>c?Rr:Ql:null,p=d?d===Rr?r.length:u.length:0);const g=d===Rr&&/\b(?:transform|all)(?:,|$)/.test(a(`${Rr}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:g}}function pb(e,t){for(;e.lengthhb(n)+hb(e[a])))}function hb(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function eh(e){return(e?e.ownerDocument:document).body.offsetHeight}function j3(e,t,n){const a=e[yl];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Xc=Symbol("_vod"),E2=Symbol("_vsh"),$t={name:"show",beforeMount(e,{value:t},{transition:n}){e[Xc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ei(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),ei(e,!0),a.enter(e)):a.leave(e,()=>{ei(e,!1)}):ei(e,t))},beforeUnmount(e,{value:t}){ei(e,t)}};function ei(e,t){e.style.display=t?e[Xc]:"none",e[E2]=!t}const U3=Symbol(""),q3=/(?:^|;)\s*display\s*:/;function Y3(e,t,n){const a=e.style,o=Ae(n);let r=!1;if(n&&!o){if(t)if(Ae(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&pi(a,l,"")}else for(const s in t)n[s]==null&&pi(a,s,"");for(const s in n){s==="display"&&(r=!0);const l=n[s];l!=null?X3(e,s,!Ae(t)&&t?t[s]:void 0,l)||pi(a,s,l):pi(a,s,"")}}else if(o){if(t!==n){const s=a[U3];s&&(n+=";"+s),a.cssText=n,r=q3.test(n)}}else t&&e.removeAttribute("style");Xc in e&&(e[Xc]=r?a.display:"",e[E2]&&(a.display="none"))}const vb=/\s*!important$/;function pi(e,t,n){if(we(n))n.forEach(a=>pi(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=G3(e,t);vb.test(n)?e.setProperty(br(a),n.replace(vb,""),"important"):e[a]=n}}const mb=["Webkit","Moz","ms"],qf={};function G3(e,t){const n=qf[t];if(n)return n;let a=qn(t);if(a!=="filter"&&a in e)return qf[t]=a;a=vu(a);for(let o=0;oYf||(eO.then(()=>Yf=0),Yf=Date.now());function nO(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;uo(aO(a,n.value),t,5,[a])};return n.value=e,n.attached=tO(),n}function aO(e,t){if(we(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>o=>!o._stopped&&a&&a(o))}else return t}const Cb=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,oO=(e,t,n,a,o,r)=>{const s=o==="svg";t==="class"?j3(e,a,s):t==="style"?Y3(e,n,a):Td(t)?Od(t)||Z3(e,t,n,a,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):rO(e,t,a,s))?(yb(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&bb(e,t,a,s,r,t!=="value")):e._isVueCE&&(sO(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ae(a)))?yb(e,qn(t),a,r,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),bb(e,t,a,s))};function rO(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&Cb(t)&&Fe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Cb(t)&&Ae(n)?!1:t in e}function sO(e,t){const n=e._def.props;if(!n)return!1;const a=qn(t);return Array.isArray(n)?n.some(o=>qn(o)===a):Object.keys(n).some(o=>qn(o)===a)}const x2=new WeakMap,T2=new WeakMap,Jc=Symbol("_moveCb"),kb=Symbol("_enterCb"),lO=e=>(delete e.props.mode,e),iO=lO({name:"TransitionGroup",props:Vn({},S2,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=dt(),a=Hw();let o,r;return bo(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!fO(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(uO),o.forEach(cO);const l=o.filter(dO);eh(n.vnode.el),l.forEach(u=>{const c=u.el,d=c.style;To(c,s),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[Jc]=p=>{p&&p.target!==c||(!p||p.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[Jc]=null,Nr(c,s))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const s=Jt(e),l=C2(s);let u=s.tag||Ve;if(o=[],r)for(let c=0;c{l.split(/\s+/).forEach(u=>u&&a.classList.remove(u))}),n.split(/\s+/).forEach(l=>l&&a.classList.add(l)),a.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(a);const{hasTransform:s}=k2(a);return r.removeChild(a),s}const wl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return we(t)?n=>wc(t,n):t};function pO(e){e.target.composing=!0}function Eb(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ur=Symbol("_assign");function xb(e,t,n){return t&&(e=e.trim()),n&&(e=Ev(e)),e}const R2={created(e,{modifiers:{lazy:t,trim:n,number:a}},o){e[ur]=wl(o);const r=a||o.props&&o.props.type==="number";Vr(e,t?"change":"input",s=>{s.target.composing||e[ur](xb(e.value,n,r))}),(n||r)&&Vr(e,"change",()=>{e.value=xb(e.value,n,r)}),t||(Vr(e,"compositionstart",pO),Vr(e,"compositionend",Eb),Vr(e,"change",Eb))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:o,number:r}},s){if(e[ur]=wl(s),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ev(e.value):e.value,u=t??"";if(l===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(a&&t===n||o&&e.value.trim()===u)||(e.value=u)}},I2={deep:!0,created(e,t,n){e[ur]=wl(n),Vr(e,"change",()=>{const a=e._modelValue,o=N2(e),r=e.checked,s=e[ur];if(we(a)){const l=cw(a,o),u=l!==-1;if(r&&!u)s(a.concat(o));else if(!r&&u){const c=[...a];c.splice(l,1),s(c)}}else if(_d(a)){const l=new Set(a);r?l.add(o):l.delete(o),s(l)}else s(M2(e,r))})},mounted:Tb,beforeUpdate(e,t,n){e[ur]=wl(n),Tb(e,t,n)}};function Tb(e,{value:t,oldValue:n},a){e._modelValue=t;let o;if(we(t))o=cw(t,a.props.value)>-1;else if(_d(t))o=t.has(a.props.value);else{if(t===n)return;o=Ts(t,M2(e,!0))}e.checked!==o&&(e.checked=o)}const $2={created(e,{value:t},n){e.checked=Ts(t,n.props.value),e[ur]=wl(n),Vr(e,"change",()=>{e[ur](N2(e))})},beforeUpdate(e,{value:t,oldValue:n},a){e[ur]=wl(a),t!==n&&(e.checked=Ts(t,a.props.value))}};function N2(e){return"_value"in e?e._value:e.value}function M2(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const hO=["ctrl","shift","alt","meta"],vO={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>hO.some(n=>e[`${n}Key`]&&!t.includes(n))},Xe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=(o,...r)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=o=>{if(!("key"in o))return;const r=br(o.key);if(t.some(s=>s===r||mO[s]===r))return e(o)})},gO=Vn({patchProp:oO},z3);let Ob;function P2(){return Ob||(Ob=C3(gO))}const Yr=(...e)=>{P2().render(...e)},A2=(...e)=>{const t=P2().createApp(...e),{mount:n}=t;return t.mount=a=>{const o=yO(a);if(!o)return;const r=t._component;!Fe(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,bO(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function bO(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yO(e){return Ae(e)?document.querySelector(e):e}/*! - * pinia v2.3.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let L2;const Wd=e=>L2=e,D2=Symbol();function th(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var xi;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(xi||(xi={}));function wO(){const e=xv(!0),t=e.run(()=>M({}));let n=[],a=[];const o=Ya({install(r){Wd(o),o._a=r,r.provide(D2,o),r.config.globalProperties.$pinia=o,a.forEach(s=>n.push(s)),a=[]},use(r){return this._a?n.push(r):a.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const B2=()=>{};function _b(e,t,n,a=B2){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),a())};return!n&&Nd()&&Tv(o),o}function js(e,...t){e.slice().forEach(n=>{n(...t)})}const SO=e=>e(),Rb=Symbol(),Gf=Symbol();function nh(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,a)=>e.set(a,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],o=e[n];th(o)&&th(a)&&e.hasOwnProperty(n)&&!Gt(a)&&!lr(a)?e[n]=nh(o,a):e[n]=a}return e}const CO=Symbol();function kO(e){return!th(e)||!e.hasOwnProperty(CO)}const{assign:Mr}=Object;function EO(e){return!!(Gt(e)&&e.effect)}function xO(e,t,n,a){const{state:o,actions:r,getters:s}=t,l=n.state.value[e];let u;function c(){l||(n.state.value[e]=o?o():{});const d=Pn(n.state.value[e]);return Mr(d,r,Object.keys(s||{}).reduce((f,p)=>(f[p]=Ya(C(()=>{Wd(n);const g=n._s.get(e);return s[p].call(g,g)})),f),{}))}return u=V2(e,c,t,n,a,!0),u}function V2(e,t,n={},a,o,r){let s;const l=Mr({actions:{}},n),u={deep:!0};let c,d,f=[],p=[],g;const h=a.state.value[e];!r&&!h&&(a.state.value[e]={});let v;function m(T){let I;c=d=!1,typeof T=="function"?(T(a.state.value[e]),I={type:xi.patchFunction,storeId:e,events:g}):(nh(a.state.value[e],T),I={type:xi.patchObject,payload:T,storeId:e,events:g});const _=v=Symbol();Ne().then(()=>{v===_&&(c=!0)}),d=!0,js(f,I,a.state.value[e])}const b=r?function(){const{state:I}=n,_=I?I():{};this.$patch(N=>{Mr(N,_)})}:B2;function w(){s.stop(),f=[],p=[],a._s.delete(e)}const y=(T,I="")=>{if(Rb in T)return T[Gf]=I,T;const _=function(){Wd(a);const N=Array.from(arguments),$=[],B=[];function K(A){$.push(A)}function j(A){B.push(A)}js(p,{args:N,name:_[Gf],store:k,after:K,onError:j});let W;try{W=T.apply(this&&this.$id===e?this:k,N)}catch(A){throw js(B,A),A}return W instanceof Promise?W.then(A=>(js($,A),A)).catch(A=>(js(B,A),Promise.reject(A))):(js($,W),W)};return _[Rb]=!0,_[Gf]=I,_},S={_p:a,$id:e,$onAction:_b.bind(null,p),$patch:m,$reset:b,$subscribe(T,I={}){const _=_b(f,T,I.detached,()=>N()),N=s.run(()=>pe(()=>a.state.value[e],$=>{(I.flush==="sync"?d:c)&&T({storeId:e,type:xi.direct,events:g},$)},Mr({},u,I)));return _},$dispose:w},k=Dt(S);a._s.set(e,k);const O=(a._a&&a._a.runWithContext||SO)(()=>a._e.run(()=>(s=xv()).run(()=>t({action:y}))));for(const T in O){const I=O[T];if(Gt(I)&&!EO(I)||lr(I))r||(h&&kO(I)&&(Gt(I)?I.value=h[T]:nh(I,h[T])),a.state.value[e][T]=I);else if(typeof I=="function"){const _=y(I,T);O[T]=_,l.actions[T]=I}}return Mr(k,O),Mr(Jt(k),O),Object.defineProperty(k,"$state",{get:()=>a.state.value[e],set:T=>{m(I=>{Mr(I,T)})}}),a._p.forEach(T=>{Mr(k,s.run(()=>T({store:k,app:a._a,pinia:a,options:l})))}),h&&r&&n.hydrate&&n.hydrate(k.$state,h),c=!0,d=!0,k}/*! #__NO_SIDE_EFFECTS__ */function F2(e,t,n){let a,o;const r=typeof t=="function";typeof e=="string"?(a=e,o=r?n:t):(o=e,a=e.id);function s(l,u){const c=Nv();return l=l||(c?$e(D2,null):null),l&&Wd(l),l=L2,l._s.has(a)||(r?V2(a,t,o,l):xO(a,o,l)),l._s.get(a)}return s.$id=a,s}const Se={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},TO=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],Xf=["sun","mon","tue","wed","thu","fri","sat"],at="update:modelValue",yt="change",Tn="input",Ib=Symbol("INSTALLED_KEY"),yo=["","default","small","large"],$b=["left","center","right"];var z2=typeof global=="object"&&global&&global.Object===Object&&global,OO=typeof self=="object"&&self&&self.Object===Object&&self,wo=z2||OO||Function("return this")(),Xa=wo.Symbol,H2=Object.prototype,_O=H2.hasOwnProperty,RO=H2.toString,ti=Xa?Xa.toStringTag:void 0;function IO(e){var t=_O.call(e,ti),n=e[ti];try{e[ti]=void 0;var a=!0}catch{}var o=RO.call(e);return a&&(t?e[ti]=n:delete e[ti]),o}var $O=Object.prototype,NO=$O.toString;function MO(e){return NO.call(e)}var PO="[object Null]",AO="[object Undefined]",Nb=Xa?Xa.toStringTag:void 0;function Bs(e){return e==null?e===void 0?AO:PO:Nb&&Nb in Object(e)?IO(e):MO(e)}function zo(e){return e!=null&&typeof e=="object"}var LO="[object Symbol]";function jd(e){return typeof e=="symbol"||zo(e)&&Bs(e)==LO}function Wv(e,t){for(var n=-1,a=e==null?0:e.length,o=Array(a);++n0){if(++t>=c_)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function h_(e){return function(){return e}}var Zc=function(){try{var e=Fs(Object,"defineProperty");return e({},"",{}),e}catch{}}(),v_=Zc?function(e,t){return Zc(e,"toString",{configurable:!0,enumerable:!1,value:h_(t),writable:!0})}:jv,j2=p_(v_);function m_(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var S_=9007199254740991,C_=/^(?:0|[1-9]\d*)$/;function Ud(e,t){var n=typeof e;return t=t??S_,!!t&&(n=="number"||n!="symbol"&&C_.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=x_}function Hl(e){return e!=null&&Yv(e.length)&&!Uv(e)}function T_(e,t,n){if(!ba(n))return!1;var a=typeof t;return(a=="number"?Hl(n)&&Ud(t,n.length):a=="string"&&t in n)?yu(n[t],e):!1}function O_(e){return Y2(function(t,n){var a=-1,o=n.length,r=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(r=e.length>3&&typeof r=="function"?(o--,r):void 0,s&&T_(n[0],n[1],s)&&(r=o<3?void 0:r,o=1),t=Object(t);++a-1}function D8(e,t){var n=this.__data__,a=Yd(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function Sr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(l)?t>1?Cu(l,t-1,n,a,o):Qv(o,l):a||(o[o.length]=l)}return o}function Qc(e){var t=e==null?0:e.length;return t?Cu(e,1):[]}function eS(e){return j2(q2(e,void 0,Qc),e+"")}var em=Q2(Object.getPrototypeOf,Object),Z8="[object Object]",Q8=Function.prototype,e6=Object.prototype,tS=Q8.toString,t6=e6.hasOwnProperty,n6=tS.call(Object);function tm(e){if(!zo(e)||Bs(e)!=Z8)return!1;var t=em(e);if(t===null)return!0;var n=t6.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&tS.call(n)==n6}function a6(e,t,n){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(o);++a=t?e:t)),e}function Ma(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Ti(n),n=n===n?n:0),t!==void 0&&(t=Ti(t),t=t===t?t:0),o6(Ti(e),t,n)}function r6(){this.__data__=new Sr,this.size=0}function s6(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function l6(e){return this.__data__.get(e)}function i6(e){return this.__data__.has(e)}var u6=200;function c6(e,t){var n=this.__data__;if(n instanceof Sr){var a=n.__data__;if(!Gi||a.lengthl))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,g=n&BR?new Xi:void 0;for(r.set(e,t),r.set(t,e);++f=t||O<0||f&&T>=r}function b(){var x=ep();if(m(x))return w(x);l=setTimeout(b,v(x))}function w(x){return l=void 0,p&&a?g(x):(a=o=void 0,s)}function y(){l!==void 0&&clearTimeout(l),c=0,a=u=o=l=void 0}function S(){return l===void 0?s:w(ep())}function k(){var x=ep(),O=m(x);if(a=arguments,o=this,u=x,O){if(l===void 0)return h(u);if(f)return clearTimeout(l),l=setTimeout(b,t),g(u)}return l===void 0&&(l=setTimeout(b,t)),s}return k.cancel=y,k.flush=S,k}function lh(e,t,n){(n!==void 0&&!yu(e[t],n)||n===void 0&&!(t in e))&&qd(e,t,n)}function wS(e){return zo(e)&&Hl(e)}function ih(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function OI(e){return zl(e,Su(e))}function _I(e,t,n,a,o,r,s){var l=ih(e,n),u=ih(t,n),c=s.get(u);if(c){lh(e,n,c);return}var d=r?r(l,u,n+"",e,t,s):void 0,f=d===void 0;if(f){var p=ga(u),g=!p&&qi(u),h=!p&&!g&&Jv(u);d=u,p||g||h?ga(l)?d=l:wS(l)?d=W2(l):g?(f=!1,d=aS(u,!0)):h?(f=!1,d=iS(u,!0)):d=[]:tm(u)||Ui(u)?(d=l,Ui(l)?d=OI(l):(!ba(l)||Uv(l))&&(d=uS(u))):f=!1}f&&(s.set(u,d),o(d,u,a,r,s),s.delete(u)),lh(e,n,d)}function SS(e,t,n,a,o){e!==t&&yS(t,function(r,s){if(o||(o=new so),ba(r))_I(e,t,s,n,SS,a,o);else{var l=a?a(ih(e,s),r,s+"",e,t,o):void 0;l===void 0&&(l=r),lh(e,s,l)}},Su)}function RI(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function CS(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a-1;return U2(e,bS(t),o,!0)}function II(e,t){var n=-1,a=Hl(e)?Array(e.length):[];return kI(e,function(o,r,s){a[++n]=t(o,r,s)}),a}function $I(e,t){var n=ga(e)?Wv:II;return n(e,bS(t))}function kS(e,t){return Cu($I(e,t),1)}var NI=1/0;function MI(e){var t=e==null?0:e.length;return t?Cu(e,NI):[]}function Cl(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),r}),zl(e,lS(e),n),a&&(n=_i(n,FI|zI|HI,VI));for(var o=t.length;o--;)BI(n,t[o]);return n});function xS(e,t,n,a){if(!ba(e))return e;t=Kl(t,e);for(var o=-1,r=t.length,s=r-1,l=e;l!=null&&++o=GI){var c=YI(e);if(c)return om(c);s=!1,o=pS,u=new Xi}else u=l;e:for(;++ae===void 0,Wt=e=>typeof e=="boolean",Be=e=>typeof e=="number",ha=e=>!e&&e!==0||we(e)&&e.length===0||ot(e)&&!Object.keys(e).length,ka=e=>typeof Element>"u"?!1:e instanceof Element,Pa=e=>En(e),JI=e=>Ae(e)?!Number.isNaN(Number(e)):!1,Eu=e=>e===window,Ji=e=>Object.keys(e),TS=e=>Object.entries(e),Wr=(e,t,n)=>({get value(){return yn(e,t,n)},set value(a){jI(e,t,a)}}),ZI="__epPropKey",G=e=>e,QI=e=>ot(e)&&!!e.__epPropKey,So=(e,t)=>{if(!ot(e)||QI(e))return e;const{values:n,required:a,default:o,type:r,validator:s}=e,l={type:r,required:!!a,validator:n||s?u=>{let c=!1,d=[];if(n&&(d=Array.from(n),Nt(e,"default")&&d.push(o),c||(c=d.includes(u))),s&&(c||(c=s(u))),!c&&d.length>0){const f=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");B3(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[ZI]:!0};return Nt(e,"default")&&(l.default=o),l},Ee=e=>Cl(Object.entries(e).map(([t,n])=>[t,So(n,t)])),e$=Ee({zIndex:{type:G([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:G([String,Object]),default:"body"}}),t$={scroll:({scrollTop:e,fixed:t})=>Be(e)&&Wt(t),[yt]:e=>Wt(e)};var OS=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function sn(e,t){throw new OS(`[${e}] ${t}`)}function jt(e,t){{const n=Ae(e)?new OS(`[${e}] ${t}`):e;console.warn(n)}}const n$=["class","style"],a$=/^on[A-Z]/,ef=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=C(()=>(n?.value||[]).concat(n$)),o=dt();return o?C(()=>Cl(Object.entries(o.proxy?.$attrs).filter(([r])=>!a.value.includes(r)&&!(t&&a$.test(r))))):(jt("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),C(()=>({})))};function _S(e,t){var n;const a=Tt();return la(()=>{a.value=e()},{...t,flush:(n=t?.flush)!==null&&n!==void 0?n:"sync"}),gl(a)}function Wl(e,t){return Nd()?(Tv(e,t),!0):!1}const np=new WeakMap,o$=(...e)=>{var t;const n=e[0],a=(t=dt())===null||t===void 0?void 0:t.proxy,o=a??Nd();if(o==null&&!Nv())throw new Error("injectLocal must be called in setup");return o&&np.has(o)&&n in np.get(o)?np.get(o)[n]:$e(...e)},Lt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const r$=e=>typeof e<"u",RS=e=>e!=null,s$=Object.prototype.toString,l$=e=>s$.call(e)==="[object Object]",tf=(e,t,n)=>Math.min(n,Math.max(t,e)),ja=()=>{};function IS(e,t){function n(...a){return new Promise((o,r)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(o).catch(r)})}return n}function i$(e,t={}){let n,a,o=ja;const r=u=>{clearTimeout(u),o(),o=ja};let s;return u=>{const c=xn(e),d=xn(t.maxWait);return n&&r(n),c<=0||d!==void 0&&d<=0?(a&&(r(a),a=void 0),Promise.resolve(u())):new Promise((f,p)=>{o=t.rejectOnCancel?p:f,s=u,d&&!a&&(a=setTimeout(()=>{n&&r(n),a=void 0,f(s())},d)),n=setTimeout(()=>{a&&r(a),a=void 0,f(u())},c)})}}function u$(...e){let t=0,n,a=!0,o=ja,r,s,l,u,c;!Gt(e[0])&&typeof e[0]=="object"?{delay:s,trailing:l=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[s,l=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,o(),o=ja)};return p=>{const g=xn(s),h=Date.now()-t,v=()=>r=p();return d(),g<=0?(t=Date.now(),v()):(h>g?(t=Date.now(),(u||!a)&&v()):l&&(r=new Promise((m,b)=>{o=c?b:m,n=setTimeout(()=>{t=Date.now(),a=!0,m(v()),d()},Math.max(0,g-h))})),!u&&!n&&(n=setTimeout(()=>a=!0,g)),a=!1,r)}}function l0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function fl(e){return Array.isArray(e)?e:[e]}function c$(e){return dt()}function d$(e){return Dt(Gt(e)?new Proxy({},{get(t,n,a){return i(Reflect.get(e.value,n,a))},set(t,n,a){return Gt(e.value[n])&&!Gt(a)?e.value[n].value=a:e.value[n]=a,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function f$(e){return d$(C(e))}function xu(e,t=200,n={}){return IS(i$(t,n),e)}function p$(e,t=200,n={}){const a=M(xn(e)),o=xu(()=>{a.value=e.value},t,n);return pe(e,()=>o()),Iw(a)}function $S(e,t=200,n=!1,a=!0,o=!1){return IS(u$(t,n,a,o),e)}function rm(e,t=!0,n){c$()?ht(e,n):t?e():Ne(e)}function kl(e,t,n={}){const{immediate:a=!0,immediateCallback:o=!1}=n,r=Tt(!1);let s;function l(){s&&(clearTimeout(s),s=void 0)}function u(){r.value=!1,l()}function c(...d){o&&e(),l(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=void 0,e(...d)},xn(t))}return a&&(r.value=!0,Lt&&c()),Wl(u),{isPending:Iw(r),start:c,stop:u}}function h$(e,t,n){return pe(e,t,{...n,immediate:!0})}const eo=Lt?window:void 0,v$=Lt?window.document:void 0;function Rn(e){var t;const n=xn(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Bt(...e){const t=(a,o,r,s)=>(a.addEventListener(o,r,s),()=>a.removeEventListener(o,r,s)),n=C(()=>{const a=fl(xn(e[0])).filter(o=>o!=null);return a.every(o=>typeof o!="string")?a:void 0});return h$(()=>{var a,o;return[(a=(o=n.value)===null||o===void 0?void 0:o.map(r=>Rn(r)))!==null&&a!==void 0?a:[eo].filter(r=>r!=null),fl(xn(n.value?e[1]:e[0])),fl(i(n.value?e[2]:e[1])),xn(n.value?e[3]:e[2])]},([a,o,r,s],l,u)=>{if(!a?.length||!o?.length||!r?.length)return;const c=l$(s)?{...s}:s,d=a.flatMap(f=>o.flatMap(p=>r.map(g=>t(f,p,g,c))));u(()=>{d.forEach(f=>f())})},{flush:"post"})}function sm(e,t,n={}){const{window:a=eo,ignore:o=[],capture:r=!0,detectIframe:s=!1,controls:l=!1}=n;if(!a)return l?{stop:ja,cancel:ja,trigger:ja}:ja;let u=!0;const c=m=>xn(o).some(b=>{if(typeof b=="string")return Array.from(a.document.querySelectorAll(b)).some(w=>w===m.target||m.composedPath().includes(w));{const w=Rn(b);return w&&(m.target===w||m.composedPath().includes(w))}});function d(m){const b=xn(m);return b&&b.$.subTree.shapeFlag===16}function f(m,b){const w=xn(m),y=w.$.subTree&&w.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(S=>S.el===b.target||b.composedPath().includes(S.el))}const p=m=>{const b=Rn(e);if(m.target!=null&&!(!(b instanceof Element)&&d(e)&&f(e,m))&&!(!b||b===m.target||m.composedPath().includes(b))){if("detail"in m&&m.detail===0&&(u=!c(m)),!u){u=!0;return}t(m)}};let g=!1;const h=[Bt(a,"click",m=>{g||(g=!0,setTimeout(()=>{g=!1},0),p(m))},{passive:!0,capture:r}),Bt(a,"pointerdown",m=>{const b=Rn(e);u=!c(m)&&!!(b&&!m.composedPath().includes(b))},{passive:!0}),s&&Bt(a,"blur",m=>{setTimeout(()=>{const b=Rn(e);let w=a.document.activeElement;for(;w?.shadowRoot;)w=w.shadowRoot.activeElement;w?.tagName==="IFRAME"&&!b?.contains(a.document.activeElement)&&t(m)},0)},{passive:!0})].filter(Boolean),v=()=>h.forEach(m=>m());return l?{stop:v,cancel:()=>{u=!1},trigger:m=>{u=!0,p(m),u=!1}}:v}function m$(){const e=Tt(!1),t=dt();return t&&ht(()=>{e.value=!0},t),e}function nf(e){const t=m$();return C(()=>(t.value,!!e()))}function Tu(e,t,n={}){const{window:a=eo,...o}=n;let r;const s=nf(()=>a&&"MutationObserver"in a),l=()=>{r&&(r.disconnect(),r=void 0)},u=pe(C(()=>{const f=fl(xn(e)).map(Rn).filter(RS);return new Set(f)}),f=>{l(),s.value&&f.size&&(r=new MutationObserver(t),f.forEach(p=>r.observe(p,o)))},{immediate:!0,flush:"post"}),c=()=>r?.takeRecords(),d=()=>{u(),l()};return Wl(d),{isSupported:s,stop:d,takeRecords:c}}function g$(e,t,n={}){const{window:a=eo,document:o=a?.document,flush:r="sync"}=n;if(!a||!o)return ja;let s;const l=d=>{s?.(),s=d},u=la(()=>{const d=Rn(e);if(d){const{stop:f}=Tu(o,p=>{p.map(g=>[...g.removedNodes]).flat().some(g=>g===d||g.contains(d))&&t(p)},{window:a,childList:!0,subtree:!0});l(f)}},{flush:r}),c=()=>{u(),l()};return Wl(c),c}function b$(e={}){var t;const{window:n=eo,deep:a=!0,triggerOnRemoval:o=!1}=e,r=(t=e.document)!==null&&t!==void 0?t:n?.document,s=()=>{let c=r?.activeElement;if(a)for(var d;c?.shadowRoot;)c=c==null||(d=c.shadowRoot)===null||d===void 0?void 0:d.activeElement;return c},l=Tt(),u=()=>{l.value=s()};if(n){const c={capture:!0,passive:!0};Bt(n,"blur",d=>{d.relatedTarget===null&&u()},c),Bt(n,"focus",u,c)}return o&&g$(l,u,{document:r}),u(),l}const y$=Symbol("vueuse-ssr-width");function w$(){const e=Nv()?o$(y$,null):null;return typeof e=="number"?e:void 0}function S$(e,t={}){const{window:n=eo,ssrWidth:a=w$()}=t,o=nf(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),r=Tt(typeof a=="number"),s=Tt(),l=Tt(!1),u=c=>{l.value=c.matches};return la(()=>{if(r.value){r.value=!o.value,l.value=xn(e).split(",").some(c=>{const d=c.includes("not all"),f=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),p=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let g=!!(f||p);return f&&g&&(g=a>=l0(f[1])),p&&g&&(g=a<=l0(p[1])),d?!g:g});return}o.value&&(s.value=n.matchMedia(xn(e)),l.value=s.value.matches)}),Bt(s,"change",u,{passive:!0}),C(()=>l.value)}function C$(e){return JSON.parse(JSON.stringify(e))}function k$(e,t,n={}){const{window:a=eo,initialValue:o,observe:r=!1}=n,s=Tt(o),l=C(()=>{var c;return Rn(t)||(a==null||(c=a.document)===null||c===void 0?void 0:c.documentElement)});function u(){const c=xn(e),d=xn(l);if(d&&a&&c){var f;s.value=((f=a.getComputedStyle(d).getPropertyValue(c))===null||f===void 0?void 0:f.trim())||s.value||o}}return r&&Tu(l,u,{attributeFilter:["style","class"],window:a}),pe([l,()=>xn(e)],(c,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),u()},{immediate:!0}),pe([s,l],([c,d])=>{const f=xn(e);d?.style&&f&&(c==null?d.style.removeProperty(f):d.style.setProperty(f,c))},{immediate:!0}),s}function E$(e={}){const{document:t=v$}=e;if(!t)return Tt("visible");const n=Tt(t.visibilityState);return Bt(t,"visibilitychange",()=>{n.value=t.visibilityState},{passive:!0}),n}function an(e,t,n={}){const{window:a=eo,...o}=n;let r;const s=nf(()=>a&&"ResizeObserver"in a),l=()=>{r&&(r.disconnect(),r=void 0)},u=pe(C(()=>{const d=xn(e);return Array.isArray(d)?d.map(f=>Rn(f)):[Rn(d)]}),d=>{if(l(),s.value&&a){r=new ResizeObserver(t);for(const f of d)f&&r.observe(f,o)}},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Wl(c),{isSupported:s,stop:c}}function i0(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:o=!0,immediate:r=!0,updateTiming:s="sync"}=t,l=Tt(0),u=Tt(0),c=Tt(0),d=Tt(0),f=Tt(0),p=Tt(0),g=Tt(0),h=Tt(0);function v(){const b=Rn(e);if(!b){n&&(l.value=0,u.value=0,c.value=0,d.value=0,f.value=0,p.value=0,g.value=0,h.value=0);return}const w=b.getBoundingClientRect();l.value=w.height,u.value=w.bottom,c.value=w.left,d.value=w.right,f.value=w.top,p.value=w.width,g.value=w.x,h.value=w.y}function m(){s==="sync"?v():s==="next-frame"&&requestAnimationFrame(()=>v())}return an(e,m),pe(()=>Rn(e),b=>!b&&m()),Tu(e,m,{attributeFilter:["style","class"]}),o&&Bt("scroll",m,{capture:!0,passive:!0}),a&&Bt("resize",m,{passive:!0}),rm(()=>{r&&m()}),{height:l,bottom:u,left:c,right:d,top:f,width:p,x:g,y:h,update:m}}function uh(e,t={width:0,height:0},n={}){const{window:a=eo,box:o="content-box"}=n,r=C(()=>{var f;return(f=Rn(e))===null||f===void 0||(f=f.namespaceURI)===null||f===void 0?void 0:f.includes("svg")}),s=Tt(t.width),l=Tt(t.height),{stop:u}=an(e,([f])=>{const p=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(a&&r.value){const g=Rn(e);if(g){const h=g.getBoundingClientRect();s.value=h.width,l.value=h.height}}else if(p){const g=fl(p);s.value=g.reduce((h,{inlineSize:v})=>h+v,0),l.value=g.reduce((h,{blockSize:v})=>h+v,0)}else s.value=f.contentRect.width,l.value=f.contentRect.height},n);rm(()=>{const f=Rn(e);f&&(s.value="offsetWidth"in f?f.offsetWidth:t.width,l.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=pe(()=>Rn(e),f=>{s.value=f?t.width:0,l.value=f?t.height:0});function d(){u(),c()}return{width:s,height:l,stop:d}}function x$(e,t,n={}){const{root:a,rootMargin:o,threshold:r=0,window:s=eo,immediate:l=!0}=n,u=nf(()=>s&&"IntersectionObserver"in s),c=C(()=>fl(xn(e)).map(Rn).filter(RS));let d=ja;const f=Tt(l),p=u.value?pe(()=>[c.value,Rn(a),xn(o),f.value],([h,v,m])=>{if(d(),!f.value||!h.length)return;const b=new IntersectionObserver(t,{root:Rn(v),rootMargin:m,threshold:r});h.forEach(w=>w&&b.observe(w)),d=()=>{b.disconnect(),d=ja}},{immediate:l,flush:"post"}):ja,g=()=>{d(),p(),f.value=!1};return Wl(g),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:g}}function NS(e,t,n,a={}){var o,r;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=a,p=dt(),g=n||p?.emit||(p==null||(o=p.$emit)===null||o===void 0?void 0:o.bind(p))||(p==null||(r=p.proxy)===null||r===void 0||(r=r.$emit)===null||r===void 0?void 0:r.bind(p?.proxy));let h=u;t||(t="modelValue"),h=h||`update:${t.toString()}`;const v=w=>s?typeof s=="function"?s(w):C$(w):w,m=()=>r$(e[t])?v(e[t]):d,b=w=>{f?f(w)&&g(h,w):g(h,w)};if(l){const w=M(m());let y=!1;return pe(()=>e[t],S=>{y||(y=!0,w.value=v(S),Ne(()=>y=!1))}),pe(w,S=>{!y&&(S!==e[t]||c)&&b(S)},{deep:c}),w}else return C({get(){return m()},set(w){b(w)}})}function T$(e={}){const{window:t=eo}=e;if(!t)return Tt(!1);const n=Tt(t.document.hasFocus()),a={passive:!0};return Bt(t,"blur",()=>{n.value=!1},a),Bt(t,"focus",()=>{n.value=!0},a),n}function lm(e={}){const{window:t=eo,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:r=!0,type:s="inner"}=e,l=Tt(n),u=Tt(a),c=()=>{if(t)if(s==="outer")l.value=t.outerWidth,u.value=t.outerHeight;else if(s==="visual"&&t.visualViewport){const{width:f,height:p,scale:g}=t.visualViewport;l.value=Math.round(f*g),u.value=Math.round(p*g)}else r?(l.value=t.innerWidth,u.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight)};c(),rm(c);const d={passive:!0};return Bt("resize",c,d),t&&s==="visual"&&t.visualViewport&&Bt(t.visualViewport,"resize",c,d),o&&pe(S$("(orientation: portrait)"),()=>c()),{width:l,height:u}}function im(){const e=Tt(),t=M(0),n=C(()=>({minWidth:`${Math.max(t.value,11)}px`}));return an(e,()=>{t.value=e.value?.getBoundingClientRect().width??0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const Po=({from:e,replacement:t,scope:n,version:a,ref:o,type:r="API"},s)=>{pe(()=>i(s),l=>{l&&jt(n,`[${r}] ${e} is about to be deprecated in version ${a}, please use ${t} instead. -For more detail, please visit: ${o} -`)},{immediate:!0})},O$='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',MS=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,u0=e=>typeof Element>"u"?!1:e instanceof Element,_$=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,c0=e=>Array.from(e.querySelectorAll(O$)).filter(t=>Is(t)&&_$(t)),Is=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Ec=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const o=document.createEvent(a);return o.initEvent(t,...n),e.dispatchEvent(o),e},PS=e=>!e.getAttribute("aria-owns"),AS=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const o=a.querySelectorAll(n);return o[Array.prototype.indexOf.call(o,e)+t]||null},Ou=(e,t)=>{if(!e||!e.focus)return;let n=!1;u0(e)&&!Is(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),u0(e)&&n&&e.removeAttribute("tabindex")},pl=e=>{e&&(Ou(e),!PS(e)&&e.click())},af=()=>Lt&&/firefox/i.test(window.navigator.userAgent),LS=()=>Lt&&/android/i.test(window.navigator.userAgent),um=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),ap=e=>vu(e),R$="utils/dom/style",DS=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ao=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ua=(e,t)=>{!e||!t.trim()||e.classList.add(...DS(t))},ra=(e,t)=>{!e||!t.trim()||e.classList.remove(...DS(t))},or=(e,t)=>{if(!Lt||!e||!t||MS(e))return"";let n=qn(t);n==="float"&&(n="cssFloat");try{const a=e.style[n];if(a)return a;const o=document.defaultView?.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}},BS=(e,t,n)=>{if(!(!e||!t))if(ot(t))TS(t).forEach(([a,o])=>BS(e,a,o));else{const a=qn(t);e.style[a]=n}};function hn(e,t="px"){if(!e&&e!==0)return"";if(Be(e)||JI(e))return`${e}${t}`;if(Ae(e))return e;jt(R$,"binding value must be a string or number")}const VS=(e,t,n,a)=>{const o={offsetX:0,offsetY:0},r=M(!1),s=(p,g)=>{if(e.value){const{offsetX:h,offsetY:v}=o,m=e.value.getBoundingClientRect(),b=Math.max(m.left,0),w=Math.max(m.top,0),y=m.width,S=m.height,k=document.documentElement.clientWidth,x=document.documentElement.clientHeight,O=-b+h,T=-w+v,I=k-b-y+h,_=x-w-(S{const g=p.clientX,h=p.clientY,{offsetX:v,offsetY:m}=o,b=y=>{r.value||(r.value=!0),s(v+y.clientX-g,m+y.clientY-h)},w=()=>{r.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",w)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",w)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",l),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",l),window.removeEventListener("resize",f))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:p,offsetY:g}=o;s(p,g)};return ht(()=>{la(()=>{n.value?u():c()})}),Vt(()=>{c()}),{isDragging:r,resetPosition:d,updatePosition:f}};var I$={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"},inputOTP:{groupLabel:"OTP Input",defaultLabel:"Please enter OTP character {index}"}}};const $$=e=>(t,n)=>N$(t,n,i(e)),N$=(e,t,n)=>yn(n,e,e).replace(/\{(\w+)\}/g,(a,o)=>`${t?.[o]??`{${o}}`}`),M$=e=>({lang:C(()=>i(e).name),locale:Gt(e)?e:M(e),t:$$(e)}),FS=Symbol("localeContextKey"),xt=e=>{const t=e||$e(FS,M());return M$(C(()=>t.value||I$))},P$="is-",rs=(e,t,n,a,o)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),a&&(r+=`__${a}`),o&&(r+=`--${o}`),r},zS=Symbol("namespaceContextKey"),cm=e=>{const t=e||(dt()?$e(zS,M("el")):M("el"));return C(()=>i(t)||"el")},ge=(e,t)=>{const n=cm(t);return{namespace:n,b:(v="")=>rs(n.value,e,v,"",""),e:v=>v?rs(n.value,e,"",v,""):"",m:v=>v?rs(n.value,e,"","",v):"",be:(v,m)=>v&&m?rs(n.value,e,v,m,""):"",em:(v,m)=>v&&m?rs(n.value,e,"",v,m):"",bm:(v,m)=>v&&m?rs(n.value,e,v,"",m):"",bem:(v,m,b)=>v&&m&&b?rs(n.value,e,v,m,b):"",is:(v,...m)=>{const b=m.length>=1?m[0]:!0;return v&&b?`${P$}${v}`:""},cssVar:v=>{const m={};for(const b in v)v[b]&&(m[`--${n.value}-${b}`]=v[b]);return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const b in v)v[b]&&(m[`--${n.value}-${e}-${b}`]=v[b]);return m},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}};function A$(e,t,n,a){const o=n-t;return e/=a/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const Oa=e=>Lt?window.requestAnimationFrame(e):setTimeout(e,16),co=e=>Lt?window.cancelAnimationFrame(e):clearTimeout(e),L$=(e,t)=>{if(!Lt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=or(e,n);return["scroll","auto","overlay"].some(o=>a.includes(o))},dm=(e,t)=>{if(!Lt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(L$(n,t))return n;MS(n)?n=n.host:n=n.parentNode}return n};let ec;const HS=e=>{if(!Lt)return 0;if(ec!==void 0)return ec;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",t.appendChild(a);const o=a.offsetWidth;return t.parentNode?.removeChild(t),ec=n-o,ec};function fm(e,t){if(!Lt)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const o=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),r=o+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;ol&&(e.scrollTop=r-e.clientHeight)}function D$(e,t,n,a,o){const r=Date.now();let s;const l=()=>{const u=Date.now()-r,c=A$(u>a?a:u,t,n,a);Eu(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u{s&&co(s)}}const d0=(e,t)=>Eu(t)?e.ownerDocument.documentElement:t,f0=e=>Eu(e)?window.scrollY:e.scrollTop,of=(e,t={})=>{Gt(e)||sn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ge("popup"),a=C(()=>n.bm("parent","hidden"));let o=0,r=!1,s="0",l=!1;const u=()=>{l||(l=!0,setTimeout(()=>{typeof document>"u"||r&&document&&(document.body.style.width=s,ra(document.body,a.value))},200))};pe(e,c=>{if(!c){u();return}l=!1,r=!Ao(document.body,a.value),r&&(s=document.body.style.width,Ua(document.body,a.value)),o=HS(n.namespace.value);const d=document.documentElement.clientHeight0&&(d||f==="scroll")&&r&&(document.body.style.width=`calc(100% - ${o}px)`)}),Tv(()=>u())},Ln=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const r=e?.(o);if(n===!1||!r)return t?.(o)},p0=e=>t=>t.pointerType==="mouse"?e(t):void 0,qt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=KS(e);if(t){if(Object.values(Se).includes(t))return t;switch(t){case" ":return Se.space;default:return""}}return""},KS=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&LS()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},B$=So({type:G(Boolean),default:null}),V$=So({type:G(Function)}),F$=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,a=[t],o={[e]:B$,[n]:V$};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const p=dt(),{emit:g}=p,h=p.props,v=C(()=>Fe(h[n])),m=C(()=>h[e]===null),b=O=>{s.value!==!0&&(s.value=!0,l&&(l.value=O),Fe(d)&&d(O))},w=O=>{s.value!==!1&&(s.value=!1,l&&(l.value=O),Fe(f)&&f(O))},y=O=>{if(h.disabled===!0||Fe(c)&&!c())return;const T=v.value&≪T&&g(t,!0),(m.value||!T)&&b(O)},S=O=>{if(h.disabled===!0||!Lt)return;const T=v.value&≪T&&g(t,!1),(m.value||!T)&&w(O)},k=O=>{Wt(O)&&(h.disabled&&O?v.value&&g(t,!1):s.value!==O&&(O?b():w()))},x=()=>{s.value?S():y()};return pe(()=>h[e],k),u&&p.appContext.config.globalProperties.$route!==void 0&&pe(()=>({...p.proxy.$route}),()=>{u.value&&s.value&&S()}),ht(()=>{k(h[e])}),{hide:S,show:y,toggle:x,hasUpdateHandler:v}},useModelToggleProps:o,useModelToggleEmits:a}},WS=e=>{const t=dt();return C(()=>t?.proxy?.$props?.[e])};var Ea="top",Ja="bottom",Za="right",xa="left",pm="auto",_u=[Ea,Ja,Za,xa],El="start",Zi="end",z$="clippingParents",jS="viewport",ni="popper",H$="reference",h0=_u.reduce(function(e,t){return e.concat([t+"-"+El,t+"-"+Zi])},[]),jo=[].concat(_u,[pm]).reduce(function(e,t){return e.concat([t,t+"-"+El,t+"-"+Zi])},[]),K$="beforeRead",W$="read",j$="afterRead",U$="beforeMain",q$="main",Y$="afterMain",G$="beforeWrite",X$="write",J$="afterWrite",Z$=[K$,W$,j$,U$,q$,Y$,G$,X$,J$];function Ko(e){return e?(e.nodeName||"").toLowerCase():null}function Fa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $s(e){var t=Fa(e).Element;return e instanceof t||e instanceof Element}function Ga(e){var t=Fa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hm(e){if(typeof ShadowRoot>"u")return!1;var t=Fa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Q$(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},r=t.elements[n];!Ga(r)||!Ko(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(s){var l=o[s];l===!1?r.removeAttribute(s):r.setAttribute(s,l===!0?"":l)}))})}function eN(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var o=t.elements[a],r=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),l=s.reduce(function(u,c){return u[c]="",u},{});!Ga(o)||!Ko(o)||(Object.assign(o.style,l),Object.keys(r).forEach(function(u){o.removeAttribute(u)}))})}}var US={name:"applyStyles",enabled:!0,phase:"write",fn:Q$,effect:eN,requires:["computeStyles"]};function Lo(e){return e.split("-")[0]}var Cs=Math.max,td=Math.min,xl=Math.round;function ch(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function qS(){return!/^((?!chrome|android).)*safari/i.test(ch())}function Tl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,r=1;t&&Ga(e)&&(o=e.offsetWidth>0&&xl(a.width)/e.offsetWidth||1,r=e.offsetHeight>0&&xl(a.height)/e.offsetHeight||1);var s=$s(e)?Fa(e):window,l=s.visualViewport,u=!qS()&&n,c=(a.left+(u&&l?l.offsetLeft:0))/o,d=(a.top+(u&&l?l.offsetTop:0))/r,f=a.width/o,p=a.height/r;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function vm(e){var t=Tl(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function YS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hm(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function vr(e){return Fa(e).getComputedStyle(e)}function tN(e){return["table","td","th"].indexOf(Ko(e))>=0}function ts(e){return(($s(e)?e.ownerDocument:e.document)||window.document).documentElement}function rf(e){return Ko(e)==="html"?e:e.assignedSlot||e.parentNode||(hm(e)?e.host:null)||ts(e)}function v0(e){return!Ga(e)||vr(e).position==="fixed"?null:e.offsetParent}function nN(e){var t=/firefox/i.test(ch()),n=/Trident/i.test(ch());if(n&&Ga(e)){var a=vr(e);if(a.position==="fixed")return null}var o=rf(e);for(hm(o)&&(o=o.host);Ga(o)&&["html","body"].indexOf(Ko(o))<0;){var r=vr(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function Ru(e){for(var t=Fa(e),n=v0(e);n&&tN(n)&&vr(n).position==="static";)n=v0(n);return n&&(Ko(n)==="html"||Ko(n)==="body"&&vr(n).position==="static")?t:n||nN(e)||t}function mm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ri(e,t,n){return Cs(e,td(t,n))}function aN(e,t,n){var a=Ri(e,t,n);return a>n?n:a}function GS(){return{top:0,right:0,bottom:0,left:0}}function XS(e){return Object.assign({},GS(),e)}function JS(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var oN=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,XS(typeof e!="number"?e:JS(e,_u))};function rN(e){var t,n=e.state,a=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Lo(n.placement),u=mm(l),c=[xa,Za].indexOf(l)>=0,d=c?"height":"width";if(!(!r||!s)){var f=oN(o.padding,n),p=vm(r),g=u==="y"?Ea:xa,h=u==="y"?Ja:Za,v=n.rects.reference[d]+n.rects.reference[u]-s[u]-n.rects.popper[d],m=s[u]-n.rects.reference[u],b=Ru(r),w=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,y=v/2-m/2,S=f[g],k=w-p[d]-f[h],x=w/2-p[d]/2+y,O=Ri(S,x,k),T=u;n.modifiersData[a]=(t={},t[T]=O,t.centerOffset=O-x,t)}}function sN(e){var t=e.state,n=e.options,a=n.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||YS(t.elements.popper,o)&&(t.elements.arrow=o))}var lN={name:"arrow",enabled:!0,phase:"main",fn:rN,effect:sN,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ol(e){return e.split("-")[1]}var iN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uN(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:xl(n*o)/o||0,y:xl(a*o)/o||0}}function m0(e){var t,n=e.popper,a=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,g=p===void 0?0:p,h=s.y,v=h===void 0?0:h,m=typeof d=="function"?d({x:g,y:v}):{x:g,y:v};g=m.x,v=m.y;var b=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),y=xa,S=Ea,k=window;if(c){var x=Ru(n),O="clientHeight",T="clientWidth";if(x===Fa(n)&&(x=ts(n),vr(x).position!=="static"&&l==="absolute"&&(O="scrollHeight",T="scrollWidth")),x=x,o===Ea||(o===xa||o===Za)&&r===Zi){S=Ja;var I=f&&x===k&&k.visualViewport?k.visualViewport.height:x[O];v-=I-a.height,v*=u?1:-1}if(o===xa||(o===Ea||o===Ja)&&r===Zi){y=Za;var _=f&&x===k&&k.visualViewport?k.visualViewport.width:x[T];g-=_-a.width,g*=u?1:-1}}var N=Object.assign({position:l},c&&iN),$=d===!0?uN({x:g,y:v},Fa(n)):{x:g,y:v};if(g=$.x,v=$.y,u){var B;return Object.assign({},N,(B={},B[S]=w?"0":"",B[y]=b?"0":"",B.transform=(k.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",B))}return Object.assign({},N,(t={},t[S]=w?v+"px":"",t[y]=b?g+"px":"",t.transform="",t))}function cN(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,r=n.adaptive,s=r===void 0?!0:r,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:Lo(t.placement),variation:Ol(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,m0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,m0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ZS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cN,data:{}},tc={passive:!0};function dN(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,r=o===void 0?!0:o,s=a.resize,l=s===void 0?!0:s,u=Fa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",n.update,tc)}),l&&u.addEventListener("resize",n.update,tc),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",n.update,tc)}),l&&u.removeEventListener("resize",n.update,tc)}}var QS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dN,data:{}},fN={left:"right",right:"left",bottom:"top",top:"bottom"};function xc(e){return e.replace(/left|right|bottom|top/g,function(t){return fN[t]})}var pN={start:"end",end:"start"};function g0(e){return e.replace(/start|end/g,function(t){return pN[t]})}function gm(e){var t=Fa(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function bm(e){return Tl(ts(e)).left+gm(e).scrollLeft}function hN(e,t){var n=Fa(e),a=ts(e),o=n.visualViewport,r=a.clientWidth,s=a.clientHeight,l=0,u=0;if(o){r=o.width,s=o.height;var c=qS();(c||!c&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:r,height:s,x:l+bm(e),y:u}}function vN(e){var t,n=ts(e),a=gm(e),o=(t=e.ownerDocument)==null?void 0:t.body,r=Cs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Cs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-a.scrollLeft+bm(e),u=-a.scrollTop;return vr(o||n).direction==="rtl"&&(l+=Cs(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:l,y:u}}function ym(e){var t=vr(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function eC(e){return["html","body","#document"].indexOf(Ko(e))>=0?e.ownerDocument.body:Ga(e)&&ym(e)?e:eC(rf(e))}function Ii(e,t){var n;t===void 0&&(t=[]);var a=eC(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),r=Fa(a),s=o?[r].concat(r.visualViewport||[],ym(a)?a:[]):a,l=t.concat(s);return o?l:l.concat(Ii(rf(s)))}function dh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mN(e,t){var n=Tl(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function b0(e,t,n){return t===jS?dh(hN(e,n)):$s(t)?mN(t,n):dh(vN(ts(e)))}function gN(e){var t=Ii(rf(e)),n=["absolute","fixed"].indexOf(vr(e).position)>=0,a=n&&Ga(e)?Ru(e):e;return $s(a)?t.filter(function(o){return $s(o)&&YS(o,a)&&Ko(o)!=="body"}):[]}function bN(e,t,n,a){var o=t==="clippingParents"?gN(e):[].concat(t),r=[].concat(o,[n]),s=r[0],l=r.reduce(function(u,c){var d=b0(e,c,a);return u.top=Cs(d.top,u.top),u.right=td(d.right,u.right),u.bottom=td(d.bottom,u.bottom),u.left=Cs(d.left,u.left),u},b0(e,s,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function tC(e){var t=e.reference,n=e.element,a=e.placement,o=a?Lo(a):null,r=a?Ol(a):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case Ea:u={x:s,y:t.y-n.height};break;case Ja:u={x:s,y:t.y+t.height};break;case Za:u={x:t.x+t.width,y:l};break;case xa:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=o?mm(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case El:u[c]=u[c]-(t[d]/2-n[d]/2);break;case Zi:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function Qi(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,r=n.strategy,s=r===void 0?e.strategy:r,l=n.boundary,u=l===void 0?z$:l,c=n.rootBoundary,d=c===void 0?jS:c,f=n.elementContext,p=f===void 0?ni:f,g=n.altBoundary,h=g===void 0?!1:g,v=n.padding,m=v===void 0?0:v,b=XS(typeof m!="number"?m:JS(m,_u)),w=p===ni?H$:ni,y=e.rects.popper,S=e.elements[h?w:p],k=bN($s(S)?S:S.contextElement||ts(e.elements.popper),u,d,s),x=Tl(e.elements.reference),O=tC({reference:x,element:y,placement:o}),T=dh(Object.assign({},y,O)),I=p===ni?T:x,_={top:k.top-I.top+b.top,bottom:I.bottom-k.bottom+b.bottom,left:k.left-I.left+b.left,right:I.right-k.right+b.right},N=e.modifiersData.offset;if(p===ni&&N){var $=N[o];Object.keys(_).forEach(function(B){var K=[Za,Ja].indexOf(B)>=0?1:-1,j=[Ea,Ja].indexOf(B)>=0?"y":"x";_[B]+=$[j]*K})}return _}function yN(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?jo:u,d=Ol(a),f=d?l?h0:h0.filter(function(h){return Ol(h)===d}):_u,p=f.filter(function(h){return c.indexOf(h)>=0});p.length===0&&(p=f);var g=p.reduce(function(h,v){return h[v]=Qi(e,{placement:v,boundary:o,rootBoundary:r,padding:s})[Lo(v)],h},{});return Object.keys(g).sort(function(h,v){return g[h]-g[v]})}function wN(e){if(Lo(e)===pm)return[];var t=xc(e);return[g0(e),t,g0(t)]}function SN(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,r=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,h=g===void 0?!0:g,v=n.allowedAutoPlacements,m=t.options.placement,b=Lo(m),w=b===m,y=u||(w||!h?[xc(m)]:wN(m)),S=[m].concat(y).reduce(function(ee,ae){return ee.concat(Lo(ae)===pm?yN(t,{placement:ae,boundary:d,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):ae)},[]),k=t.rects.reference,x=t.rects.popper,O=new Map,T=!0,I=S[0],_=0;_=0,j=K?"width":"height",W=Qi(t,{placement:N,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),A=K?B?Za:xa:B?Ja:Ea;k[j]>x[j]&&(A=xc(A));var P=xc(A),V=[];if(r&&V.push(W[$]<=0),l&&V.push(W[A]<=0,W[P]<=0),V.every(function(ee){return ee})){I=N,T=!1;break}O.set(N,V)}if(T)for(var F=h?3:1,H=function(ee){var ae=S.find(function(ce){var Z=O.get(ce);if(Z)return Z.slice(0,ee).every(function(de){return de})});if(ae)return I=ae,"break"},U=F;U>0;U--){var J=H(U);if(J==="break")break}t.placement!==I&&(t.modifiersData[a]._skip=!0,t.placement=I,t.reset=!0)}}var CN={name:"flip",enabled:!0,phase:"main",fn:SN,requiresIfExists:["offset"],data:{_skip:!1}};function y0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function w0(e){return[Ea,Za,Ja,xa].some(function(t){return e[t]>=0})}function kN(e){var t=e.state,n=e.name,a=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=Qi(t,{elementContext:"reference"}),l=Qi(t,{altBoundary:!0}),u=y0(s,a),c=y0(l,o,r),d=w0(u),f=w0(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var EN={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kN};function xN(e,t,n){var a=Lo(e),o=[xa,Ea].indexOf(a)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=r[0],l=r[1];return s=s||0,l=(l||0)*o,[xa,Za].indexOf(a)>=0?{x:l,y:s}:{x:s,y:l}}function TN(e){var t=e.state,n=e.options,a=e.name,o=n.offset,r=o===void 0?[0,0]:o,s=jo.reduce(function(d,f){return d[f]=xN(f,t.rects,r),d},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=s}var ON={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:TN};function _N(e){var t=e.state,n=e.name;t.modifiersData[n]=tC({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var nC={name:"popperOffsets",enabled:!0,phase:"read",fn:_N,data:{}};function RN(e){return e==="x"?"y":"x"}function IN(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,r=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,h=n.tetherOffset,v=h===void 0?0:h,m=Qi(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=Lo(t.placement),w=Ol(t.placement),y=!w,S=mm(b),k=RN(S),x=t.modifiersData.popperOffsets,O=t.rects.reference,T=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,_=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(x){if(r){var B,K=S==="y"?Ea:xa,j=S==="y"?Ja:Za,W=S==="y"?"height":"width",A=x[S],P=A+m[K],V=A-m[j],F=g?-T[W]/2:0,H=w===El?O[W]:T[W],U=w===El?-T[W]:-O[W],J=t.elements.arrow,ee=g&&J?vm(J):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:GS(),ce=ae[K],Z=ae[j],de=Ri(0,O[W],ee[W]),ue=y?O[W]/2-F-de-ce-_.mainAxis:H-de-ce-_.mainAxis,Y=y?-O[W]/2+F+de+Z+_.mainAxis:U+de+Z+_.mainAxis,Q=t.elements.arrow&&Ru(t.elements.arrow),L=Q?S==="y"?Q.clientTop||0:Q.clientLeft||0:0,q=(B=N?.[S])!=null?B:0,te=A+ue-q-L,fe=A+Y-q,he=Ri(g?td(P,te):P,A,g?Cs(V,fe):V);x[S]=he,$[S]=he-A}if(l){var ve,Ie=S==="x"?Ea:xa,Le=S==="x"?Ja:Za,_e=x[k],ye=k==="y"?"height":"width",Te=_e+m[Ie],be=_e-m[Le],Pe=[Ea,xa].indexOf(b)!==-1,He=(ve=N?.[k])!=null?ve:0,Je=Pe?Te:_e-O[ye]-T[ye]-He+_.altAxis,Qe=Pe?_e+O[ye]+T[ye]-He-_.altAxis:be,lt=g&&Pe?aN(Je,_e,Qe):Ri(g?Je:Te,_e,g?Qe:be);x[k]=lt,$[k]=lt-_e}t.modifiersData[a]=$}}var $N={name:"preventOverflow",enabled:!0,phase:"main",fn:IN,requiresIfExists:["offset"]};function NN(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function MN(e){return e===Fa(e)||!Ga(e)?gm(e):NN(e)}function PN(e){var t=e.getBoundingClientRect(),n=xl(t.width)/e.offsetWidth||1,a=xl(t.height)/e.offsetHeight||1;return n!==1||a!==1}function AN(e,t,n){n===void 0&&(n=!1);var a=Ga(t),o=Ga(t)&&PN(t),r=ts(t),s=Tl(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&((Ko(t)!=="body"||ym(r))&&(l=MN(t)),Ga(t)?(u=Tl(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=bm(r))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function LN(e){var t=new Map,n=new Set,a=[];e.forEach(function(r){t.set(r.name,r)});function o(r){n.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),a.push(r)}return e.forEach(function(r){n.has(r.name)||o(r)}),a}function DN(e){var t=LN(e);return Z$.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function BN(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function VN(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var S0={placement:"bottom",modifiers:[],strategy:"absolute"};function C0(){for(var e=arguments.length,t=new Array(e),n=0;n{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=WN(u);Object.assign(s.value,c)},requires:["computeStyles"]},o=C(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=i(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],a,{name:"applyStyles",enabled:!1}]}}),r=Tt(),s=M({styles:{popper:{position:i(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{r.value&&(r.value.destroy(),r.value=void 0)};return pe(o,u=>{const c=i(r);c&&c.setOptions(u)},{deep:!0}),pe([e,t],([u,c])=>{l(),!(!u||!c)&&(r.value=HN(u,c,i(o)))}),Vt(()=>{l()}),{state:C(()=>({...i(r)?.state||{}})),styles:C(()=>i(s).styles),attributes:C(()=>i(s).attributes),update:()=>i(r)?.update(),forceUpdate:()=>i(r)?.forceUpdate(),instanceRef:C(()=>i(r))}};function WN(e){const t=Object.keys(e.elements);return{styles:Cl(t.map(n=>[n,e.styles[n]||{}])),attributes:Cl(t.map(n=>[n,e.attributes[n]]))}}const Sm=e=>{if(!e)return{onClick:ut,onMousedown:ut,onMouseup:ut};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}},jN=(e,t=0)=>{if(t===0)return e;const n=M(ot(t)&&!!t.initVal);let a=null;const o=s=>{if(Rt(s)){n.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{n.value=e.value},s)},r=s=>{s==="leading"?Be(t)?o(t):o(t.leading):ot(t)?o(t.trailing):n.value=!1};return ht(()=>r("leading")),pe(()=>e.value,s=>{r(s?"leading":"trailing")}),n};function k0(){let e;const t=(a,o)=>{n(),e=globalThis.setTimeout(a,o)},n=()=>{e!==void 0&&(globalThis.clearTimeout(e),e=void 0)};return Wl(()=>n()),{registerTimeout:t,cancelTimeout:n}}const fh={prefix:Math.floor(Math.random()*1e4),current:0},UN=Symbol("elIdInjection"),Cm=()=>dt()?$e(UN,fh):fh,Gn=e=>{const t=Cm();!Lt&&t===fh&&jt("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed -usage: app.provide(ID_INJECTION_KEY, { - prefix: number, - current: number, -})`);const n=cm();return _S(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let el=[];const E0=e=>{qt(e)===Se.esc&&el.forEach(t=>t(e))},qN=e=>{ht(()=>{el.length===0&&document.addEventListener("keydown",E0),Lt&&el.push(e)}),Vt(()=>{el=el.filter(t=>t!==e),el.length===0&&Lt&&document.removeEventListener("keydown",E0)})},aC=()=>{const e=cm(),t=Cm(),n=C(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:C(()=>`#${n.value}`)}},YN=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},GN=()=>{const{id:e,selector:t}=aC();return zd(()=>{Lt&&(document.body.querySelector(t.value)||YN(e.value))}),{id:e,selector:t}},XN=Ee({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),JN=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:o})=>{const{registerTimeout:r}=k0(),{registerTimeout:s,cancelTimeout:l}=k0();return{onOpen:(d,f=i(e))=>{r(()=>{a(d);const p=i(n);Be(p)&&p>0&&s(()=>{o(d)},p)},f)},onClose:(d,f=i(t))=>{l(),r(()=>{o(d)},f)}}},oC=Symbol("elForwardRef"),ZN=e=>{St(oC,{setForwardRef:n=>{e.value=n}})},QN=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),x0={current:0},T0=M(0),eM=2e3,O0=Symbol("elZIndexContextKey"),rC=Symbol("zIndexContextKey"),Iu=e=>{const t=dt()?$e(O0,x0):x0,n=e||(dt()?$e(rC,void 0):void 0),a=C(()=>{const s=i(n);return Be(s)?s:eM}),o=C(()=>a.value+T0.value),r=()=>(t.current++,T0.value=t.current,o.value);return!Lt&&!$e(O0)&&jt("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed -usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:o,nextZIndex:r}},_l=Math.min,ks=Math.max,nd=Math.round,nc=Math.floor,Do=e=>({x:e,y:e}),tM={left:"right",right:"left",bottom:"top",top:"bottom"};function ph(e,t,n){return ks(e,_l(t,n))}function $u(e,t){return typeof e=="function"?e(t):e}function Ns(e){return e.split("-")[0]}function Nu(e){return e.split("-")[1]}function sC(e){return e==="x"?"y":"x"}function km(e){return e==="y"?"height":"width"}function zr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Em(e){return sC(zr(e))}function nM(e,t,n){n===void 0&&(n=!1);const a=Nu(e),o=Em(e),r=km(o);let s=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=ad(s)),[s,ad(s)]}function aM(e){const t=ad(e);return[hh(e),t,hh(t)]}function hh(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const _0=["left","right"],R0=["right","left"],oM=["top","bottom"],rM=["bottom","top"];function sM(e,t,n){switch(e){case"top":case"bottom":return n?t?R0:_0:t?_0:R0;case"left":case"right":return t?oM:rM;default:return[]}}function lM(e,t,n,a){const o=Nu(e);let r=sM(Ns(e),n==="start",a);return o&&(r=r.map(s=>s+"-"+o),t&&(r=r.concat(r.map(hh)))),r}function ad(e){const t=Ns(e);return tM[t]+e.slice(t.length)}function iM(e){return{top:0,right:0,bottom:0,left:0,...e}}function lC(e){return typeof e!="number"?iM(e):{top:e,right:e,bottom:e,left:e}}function od(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function I0(e,t,n){let{reference:a,floating:o}=e;const r=zr(t),s=Em(t),l=km(s),u=Ns(t),c=r==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[l]/2-o[l]/2;let g;switch(u){case"top":g={x:d,y:a.y-o.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-o.width,y:f};break;default:g={x:a.x,y:a.y}}switch(Nu(t)){case"start":g[s]-=p*(n&&c?-1:1);break;case"end":g[s]+=p*(n&&c?-1:1);break}return g}async function iC(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:r,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:g=0}=$u(t,e),h=lC(g),m=l[p?f==="floating"?"reference":"floating":f],b=od(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(m)))==null||n?m:m.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:a,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),S=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},k=od(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:y,strategy:u}):w);return{top:(b.top-k.top+h.top)/S.y,bottom:(k.bottom-b.bottom+h.bottom)/S.y,left:(b.left-k.left+h.left)/S.x,right:(k.right-b.right+h.right)/S.x}}const uM=50,cM=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:iC},u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=I0(c,a,u),p=a,g=0;const h={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:r,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=$u(e,t)||{};if(c==null)return{};const f=lC(d),p={x:n,y:a},g=Em(o),h=km(g),v=await s.getDimensions(c),m=g==="y",b=m?"top":"left",w=m?"bottom":"right",y=m?"clientHeight":"clientWidth",S=r.reference[h]+r.reference[g]-p[g]-r.floating[h],k=p[g]-r.reference[g],x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=x?x[y]:0;(!O||!await(s.isElement==null?void 0:s.isElement(x)))&&(O=l.floating[y]||r.floating[h]);const T=S/2-k/2,I=O/2-v[h]/2-1,_=_l(f[b],I),N=_l(f[w],I),$=_,B=O-v[h]-N,K=O/2-v[h]/2+T,j=ph($,K,B),W=!u.arrow&&Nu(o)!=null&&K!==j&&r.reference[h]/2-(K<$?_:N)-v[h]/2<0,A=W?K<$?K-$:K-B:0;return{[g]:p[g]+A,data:{[g]:j,centerOffset:K-j-A,...W&&{alignmentOffset:A}},reset:W}}}),fM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...m}=$u(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const b=Ns(o),w=zr(l),y=Ns(l)===l,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),k=p||(y||!v?[ad(l)]:aM(l)),x=h!=="none";!p&&x&&k.push(...lM(l,v,h,S));const O=[l,...k],T=await u.detectOverflow(t,m),I=[];let _=((a=r.flip)==null?void 0:a.overflows)||[];if(d&&I.push(T[b]),f){const K=nM(o,s,S);I.push(T[K[0]],T[K[1]])}if(_=[..._,{placement:o,overflows:I}],!I.every(K=>K<=0)){var N,$;const K=(((N=r.flip)==null?void 0:N.index)||0)+1,j=O[K];if(j&&(!(f==="alignment"?w!==zr(j):!1)||_.every(P=>zr(P.placement)===w?P.overflows[0]>0:!0)))return{data:{index:K,overflows:_},reset:{placement:j}};let W=($=_.filter(A=>A.overflows[0]<=0).sort((A,P)=>A.overflows[1]-P.overflows[1])[0])==null?void 0:$.placement;if(!W)switch(g){case"bestFit":{var B;const A=(B=_.filter(P=>{if(x){const V=zr(P.placement);return V===w||V==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(V=>V>0).reduce((V,F)=>V+F,0)]).sort((P,V)=>P[1]-V[1])[0])==null?void 0:B[0];A&&(W=A);break}case"initialPlacement":W=l;break}if(o!==W)return{reset:{placement:W}}}return{}}}},pM=new Set(["left","top"]);async function hM(e,t){const{placement:n,platform:a,elements:o}=e,r=await(a.isRTL==null?void 0:a.isRTL(o.floating)),s=Ns(n),l=Nu(n),u=zr(n)==="y",c=pM.has(s)?-1:1,d=r&&u?-1:1,f=$u(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof h=="number"&&(g=l==="end"?h*-1:h),u?{x:g*d,y:p*c}:{x:p*c,y:g*d}}const vM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:r,placement:s,middlewareData:l}=t,u=await hM(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:o+u.x,y:r+u.y,data:{...u,placement:s}}}}},mM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o,platform:r}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:b=>{let{x:w,y}=b;return{x:w,y}}},...c}=$u(e,t),d={x:n,y:a},f=await r.detectOverflow(t,c),p=zr(Ns(o)),g=sC(p);let h=d[g],v=d[p];if(s){const b=g==="y"?"top":"left",w=g==="y"?"bottom":"right",y=h+f[b],S=h-f[w];h=ph(y,h,S)}if(l){const b=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=v+f[b],S=v-f[w];v=ph(y,v,S)}const m=u.fn({...t,[g]:h,[p]:v});return{...m,data:{x:m.x-n,y:m.y-a,enabled:{[g]:s,[p]:l}}}}}};function sf(){return typeof window<"u"}function jl(e){return uC(e)?(e.nodeName||"").toLowerCase():"#document"}function Ba(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Uo(e){var t;return(t=(uC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function uC(e){return sf()?e instanceof Node||e instanceof Ba(e).Node:!1}function fo(e){return sf()?e instanceof Element||e instanceof Ba(e).Element:!1}function kr(e){return sf()?e instanceof HTMLElement||e instanceof Ba(e).HTMLElement:!1}function $0(e){return!sf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ba(e).ShadowRoot}function Mu(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=po(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function gM(e){return/^(table|td|th)$/.test(jl(e))}function lf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const bM=/transform|translate|scale|rotate|perspective|filter/,yM=/paint|layout|strict|content/,ss=e=>!!e&&e!=="none";let op;function xm(e){const t=fo(e)?po(e):e;return ss(t.transform)||ss(t.translate)||ss(t.scale)||ss(t.rotate)||ss(t.perspective)||!Tm()&&(ss(t.backdropFilter)||ss(t.filter))||bM.test(t.willChange||"")||yM.test(t.contain||"")}function wM(e){let t=Gr(e);for(;kr(t)&&!Rl(t);){if(xm(t))return t;if(lf(t))return null;t=Gr(t)}return null}function Tm(){return op==null&&(op=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),op}function Rl(e){return/^(html|body|#document)$/.test(jl(e))}function po(e){return Ba(e).getComputedStyle(e)}function uf(e){return fo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gr(e){if(jl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$0(e)&&e.host||Uo(e);return $0(t)?t.host:t}function cC(e){const t=Gr(e);return Rl(t)?e.ownerDocument?e.ownerDocument.body:e.body:kr(t)&&Mu(t)?t:cC(t)}function eu(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=cC(e),r=o===((a=e.ownerDocument)==null?void 0:a.body),s=Ba(o);if(r){const l=vh(s);return t.concat(s,s.visualViewport||[],Mu(o)?o:[],l&&n?eu(l):[])}else return t.concat(o,eu(o,[],n))}function vh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dC(e){const t=po(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=kr(e),r=o?e.offsetWidth:n,s=o?e.offsetHeight:a,l=nd(n)!==r||nd(a)!==s;return l&&(n=r,a=s),{width:n,height:a,$:l}}function Om(e){return fo(e)?e:e.contextElement}function hl(e){const t=Om(e);if(!kr(t))return Do(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:r}=dC(t);let s=(r?nd(n.width):n.width)/a,l=(r?nd(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const SM=Do(0);function fC(e){const t=Ba(e);return!Tm()||!t.visualViewport?SM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function CM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ba(e)?!1:t}function Ms(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=Om(e);let s=Do(1);t&&(a?fo(a)&&(s=hl(a)):s=hl(e));const l=CM(r,n,a)?fC(r):Do(0);let u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(r){const p=Ba(r),g=a&&fo(a)?Ba(a):a;let h=p,v=vh(h);for(;v&&a&&g!==h;){const m=hl(v),b=v.getBoundingClientRect(),w=po(v),y=b.left+(v.clientLeft+parseFloat(w.paddingLeft))*m.x,S=b.top+(v.clientTop+parseFloat(w.paddingTop))*m.y;u*=m.x,c*=m.y,d*=m.x,f*=m.y,u+=y,c+=S,h=Ba(v),v=vh(h)}}return od({width:d,height:f,x:u,y:c})}function cf(e,t){const n=uf(e).scrollLeft;return t?t.left+n:Ms(Uo(e)).left+n}function pC(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-cf(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function kM(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const r=o==="fixed",s=Uo(a),l=t?lf(t.floating):!1;if(a===s||l&&r)return n;let u={scrollLeft:0,scrollTop:0},c=Do(1);const d=Do(0),f=kr(a);if((f||!f&&!r)&&((jl(a)!=="body"||Mu(s))&&(u=uf(a)),f)){const g=Ms(a);c=hl(a),d.x=g.x+a.clientLeft,d.y=g.y+a.clientTop}const p=s&&!f&&!r?pC(s,u):Do(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}}function EM(e){return Array.from(e.getClientRects())}function xM(e){const t=Uo(e),n=uf(e),a=e.ownerDocument.body,o=ks(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),r=ks(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+cf(e);const l=-n.scrollTop;return po(a).direction==="rtl"&&(s+=ks(t.clientWidth,a.clientWidth)-o),{width:o,height:r,x:s,y:l}}const N0=25;function TM(e,t){const n=Ba(e),a=Uo(e),o=n.visualViewport;let r=a.clientWidth,s=a.clientHeight,l=0,u=0;if(o){r=o.width,s=o.height;const d=Tm();(!d||d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}const c=cf(a);if(c<=0){const d=a.ownerDocument,f=d.body,p=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(a.clientWidth-f.clientWidth-g);h<=N0&&(r-=h)}else c<=N0&&(r+=c);return{width:r,height:s,x:l,y:u}}function OM(e,t){const n=Ms(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,r=kr(e)?hl(e):Do(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,u=o*r.x,c=a*r.y;return{width:s,height:l,x:u,y:c}}function M0(e,t,n){let a;if(t==="viewport")a=TM(e,n);else if(t==="document")a=xM(Uo(e));else if(fo(t))a=OM(t,n);else{const o=fC(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return od(a)}function hC(e,t){const n=Gr(e);return n===t||!fo(n)||Rl(n)?!1:po(n).position==="fixed"||hC(n,t)}function _M(e,t){const n=t.get(e);if(n)return n;let a=eu(e,[],!1).filter(l=>fo(l)&&jl(l)!=="body"),o=null;const r=po(e).position==="fixed";let s=r?Gr(e):e;for(;fo(s)&&!Rl(s);){const l=po(s),u=xm(s);!u&&l.position==="fixed"&&(o=null),(r?!u&&!o:!u&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Mu(s)&&!u&&hC(e,s))?a=a.filter(d=>d!==s):o=l,s=Gr(s)}return t.set(e,a),a}function RM(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const s=[...n==="clippingAncestors"?lf(t)?[]:_M(t,this._c):[].concat(n),a],l=M0(t,s[0],o);let u=l.top,c=l.right,d=l.bottom,f=l.left;for(let p=1;p{s(!1,1e-7)},1e3)}O===1&&!mC(c,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(k,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,y)}n.observe(e)}return s(!0),r}function LM(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=Om(e),d=o||r?[...c?eu(c):[],...t?eu(t):[]]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),r&&b.addEventListener("resize",n)});const f=c&&l?AM(c,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(b=>{let[w]=b;w&&w.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=g)==null||y.observe(t)})),n()}),c&&!u&&g.observe(c),t&&g.observe(t));let h,v=u?Ms(e):null;u&&m();function m(){const b=Ms(e);v&&!mC(v,b)&&n(),v=b,h=requestAnimationFrame(m)}return n(),()=>{var b;d.forEach(w=>{o&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),f?.(),(b=g)==null||b.disconnect(),g=null,u&&cancelAnimationFrame(h)}}const DM=iC,BM=vM,VM=mM,FM=fM,zM=dM,HM=(e,t,n)=>{const a=new Map,o={platform:PM,...n},r={...o.platform,_c:a};return cM(e,t,{...o,platform:r})};function KM(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:r,value:s}=e.value;o==null||r==null||(t={selectionStart:o,selectionEnd:r,value:s,beforeTxt:s.slice(0,Math.max(0,o)),afterTxt:s.slice(Math.max(0,r))})}function a(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:r,afterTxt:s,selectionStart:l}=t;if(r==null||s==null||l==null)return;let u=o.length;if(o.endsWith(s))u=o.length-s.length;else if(o.startsWith(r))u=r.length;else{const c=r[l-1],d=o.indexOf(c,l-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,a]}const WM="utils/vue/vnode";function mh(e){return Zt(e)&&e.type===Ve}function gC(e){return Zt(e)&&e.type===kn}function jM(e){return Zt(e)&&!mh(e)&&!gC(e)}const UM=e=>{if(!Zt(e))return jt(WM,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=(Zt(e.type)?e.type.props:void 0)||{},a={};return Object.keys(n).forEach(o=>{Nt(n[o],"default")&&(a[o]=n[o].default)}),Object.keys(t).forEach(o=>{a[qn(o)]=t[o]}),a},Aa=e=>{const t=we(e)?e:[e],n=[];return t.forEach(a=>{we(a)?n.push(...Aa(a)):Zt(a)&&a.component?.subTree?n.push(a,...Aa(a.component.subTree)):Zt(a)&&we(a.children)?n.push(...Aa(a.children)):Zt(a)&&a.shapeFlag===2?n.push(...Aa(a.type())):n.push(a)}),n},qM=(e,t,n)=>Aa(e.subTree).filter(a=>Zt(a)&&a.type?.name===t&&!!a.component).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),df=(e,t)=>{const n=Tt({}),a=Tt([]),o=new WeakMap,r=c=>{n.value[c.uid]=c,Sc(n),ht(()=>{const d=c.getVnode().el,f=d.parentNode;if(!o.has(f)){o.set(f,[]);const p=f.insertBefore.bind(f);f.insertBefore=(g,h)=>(o.get(f).some(v=>g===v||h===v)&&Sc(n),p(g,h))}o.get(f).push(d)})},s=c=>{delete n.value[c.uid],Sc(n);const d=c.getVnode().el,f=d.parentNode,p=o.get(f),g=p.indexOf(d);p.splice(g,1)},l=()=>{a.value=qM(e,t,n.value)},u=c=>c.render();return{children:a,addChild:r,removeChild:s,ChildrenSorter:se({setup(c,{slots:d}){return()=>(l(),d.default?qe(u,{render:d.default}):null)}})}},Nn=So({type:String,values:yo,required:!1}),bC=Symbol("size"),yC=()=>{const e=$e(bC,{});return C(()=>i(e.size)||"")};function Er(e,{disabled:t,beforeFocus:n,afterFocus:a,beforeBlur:o,afterBlur:r}={}){const{emit:s}=dt(),l=Tt(),u=M(!1),c=p=>{const g=Fe(n)?n(p):!1;i(t)||u.value||g||(u.value=!0,s("focus",p),a?.())},d=p=>{const g=Fe(o)?o(p):!1;i(t)||p.relatedTarget&&l.value?.contains(p.relatedTarget)||g||(u.value=!1,s("blur",p),r?.())},f=p=>{i(t)||Is(p.target)||l.value?.contains(document.activeElement)&&l.value!==document.activeElement||e.value?.focus()};return pe([l,()=>i(t)],([p,g])=>{p&&(g?p.removeAttribute("tabindex"):p.setAttribute("tabindex","-1"))}),Bt(l,"focus",c,!0),Bt(l,"blur",d,!0),Bt(l,"click",f,!0),{isFocused:u,wrapperRef:l,handleFocus:c,handleBlur:d}}function Pu({afterComposition:e,emit:t}){const n=M(!1),a=l=>{t?.("compositionstart",l),n.value=!0},o=l=>{t?.("compositionupdate",l),n.value=!0},r=l=>{t?.("compositionend",l),n.value&&(n.value=!1,Ne(()=>e(l)))};return{isComposing:n,handleComposition:l=>{l.type==="compositionend"?r(l):o(l)},handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:r}}const wC=Symbol("emptyValuesContextKey"),YM="use-empty-values",GM=["",void 0,null],zs=Ee({emptyValues:Array,valueOnClear:{type:G([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Fe(e)?e():e,we(e)?e.every(t=>!t):!e)}}),Au=(e,t)=>{const n=dt()?$e(wC,M({})):M({}),a=C(()=>e.emptyValues||n.value.emptyValues||GM),o=C(()=>Fe(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Fe(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:void 0),r=s=>{let l=!0;return we(s)?l=a.value.some(u=>fn(s,u)):l=a.value.includes(s),l};return r(o.value)||jt(YM,"value-on-clear should be a value of empty-values"),{emptyValues:a,valueOnClear:o,isEmptyValue:r}},XM=Ee({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ia=e=>hr(XM,e),SC=e=>{const t=e.props,n=we(t)?Cl(t.map(a=>[a,{}])):t;e.setPropsDefaults=a=>{if(n){for(const[o,r]of Object.entries(a)){const s=n[o];if(Nt(n,o)){if(tm(s)){n[o]={...s,default:r};continue}n[o]={type:s,default:r}}}e.props=n}}},st=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return SC(e),e},CC=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),JM=(e,t)=>(e.install=n=>{n.directive(t,e)},e),ln=e=>(e.install=ut,SC(e),e),A0="ElAffix";var ZM=se({name:A0,__name:"affix",props:e$,emits:t$,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("affix"),s=Tt(),l=Tt(),u=Tt(),{height:c}=lm(),{height:d,width:f,top:p,bottom:g,left:h,update:v}=i0(l,{windowScroll:!1}),m=i0(s),b=M(!1),w=M(0),y=M(0),S=C(()=>!a.teleported||!b.value),k=C(()=>({display:"flow-root",height:b.value?`${d.value}px`:"",width:b.value?`${f.value}px`:""})),x=C(()=>{if(!b.value)return{};const _=hn(a.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:a.position==="top"?_:"",bottom:a.position==="bottom"?_:"",left:a.teleported?`${h.value}px`:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:a.zIndex}}),O=()=>{if(!u.value)return;w.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:_,target:N,offset:$}=a,B=$+d.value;if(_==="top")if(N){const K=m.bottom.value-B;b.value=$>p.value&&m.bottom.value>0,y.value=K<0?K:0}else b.value=$>p.value;else if(N){const K=c.value-m.top.value-B;b.value=c.value-$m.top.value,y.value=K<0?-K:0}else b.value=c.value-${if(!b.value){v();return}b.value=!1,await Ne(),v(),b.value=!0},I=async()=>{v(),await Ne(),o("scroll",{scrollTop:w.value,fixed:b.value})};return pe(b,_=>o(yt,_)),ht(()=>{a.target?(s.value=document.querySelector(a.target)??void 0,s.value||sn(A0,`Target does not exist: ${a.target}`)):s.value=document.documentElement,u.value=dm(l.value,!0),v()}),gu(()=>{Ne(T)}),Av(()=>{b.value=!1}),Bt(u,"scroll",I),la(O),t({update:O,updateRoot:T}),(_,N)=>(E(),D("div",{ref_key:"root",ref:l,class:R(i(r).b()),style:ze(k.value)},[(E(),le(Bl,{disabled:S.value,to:e.appendTo},[z("div",{class:R({[i(r).m("fixed")]:b.value}),style:ze(x.value)},[oe(_.$slots,"default")],6)],8,["disabled","to"]))],6))}}),QM=ZM;const eP=st(QM);/*! Element Plus Icons Vue v2.3.2 */var tP=se({name:"Aim",__name:"aim",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),z("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),loe=tP,nP=se({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),qo=nP,aP=se({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),mr=aP,oP=se({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),sa=oP,rP=se({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),ff=rP,sP=se({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),ioe=sP,lP=se({name:"Back",__name:"back",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),z("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),iP=lP,uP=se({name:"Bell",__name:"bell",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),z("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),z("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),uoe=uP,cP=se({name:"Box",__name:"box",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),z("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),z("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),coe=cP,dP=se({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),fP=dP,pP=se({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),doe=pP,hP=se({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),kC=hP,vP=se({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),mP=vP,gP=se({name:"Check",__name:"check",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Il=gP,bP=se({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),yP=bP,wP=se({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),z("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),_m=wP,SP=se({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Rm=SP,CP=se({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Yo=CP,kP=se({name:"Clock",__name:"clock",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),z("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),z("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),EC=kP,EP=se({name:"Close",__name:"close",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Qa=EP,xP=se({name:"Coin",__name:"coin",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),z("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),z("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),foe=xP,TP=se({name:"Compass",__name:"compass",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),z("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),poe=TP,OP=se({name:"Connection",__name:"connection",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),z("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),hoe=OP,_P=se({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),z("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),voe=_P,RP=se({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),z("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),moe=RP,IP=se({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),Xr=IP,$P=se({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),Jr=$P,NP=se({name:"Delete",__name:"delete",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),MP=NP,PP=se({name:"Document",__name:"document",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),AP=PP,LP=se({name:"Edit",__name:"edit",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),z("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),goe=LP,DP=se({name:"Expand",__name:"expand",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),boe=DP,BP=se({name:"Files",__name:"files",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),yoe=BP,VP=se({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),z("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),woe=VP,FP=se({name:"Fold",__name:"fold",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),Soe=FP,zP=se({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),HP=zP,KP=se({name:"Hide",__name:"hide",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),z("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),WP=KP,jP=se({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),Coe=jP,UP=se({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),tu=UP,qP=se({name:"Key",__name:"key",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),koe=qP,YP=se({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),z("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),Eoe=YP,GP=se({name:"List",__name:"list",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),xoe=GP,XP=se({name:"Loading",__name:"loading",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),ho=XP,JP=se({name:"Lock",__name:"lock",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),z("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),Toe=JP,ZP=se({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),z("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),Ooe=ZP,QP=se({name:"Minus",__name:"minus",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),eA=QP,tA=se({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),_oe=tA,nA=se({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),L0=nA,aA=se({name:"More",__name:"more",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),oA=aA,rA=se({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),z("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),Roe=rA,sA=se({name:"Operation",__name:"operation",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),Ioe=sA,lA=se({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),iA=lA,uA=se({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),z("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),$oe=uA,cA=se({name:"Plus",__name:"plus",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),xC=cA,dA=se({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),Noe=dA,fA=se({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),Moe=fA,pA=se({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),hA=pA,vA=se({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),mA=vA,gA=se({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),bA=gA,yA=se({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Poe=yA,wA=se({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),SA=wA,CA=se({name:"Search",__name:"search",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),kA=CA,EA=se({name:"Setting",__name:"setting",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),Aoe=EA,xA=se({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),TA=xA,OA=se({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),_A=OA,RA=se({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),ac=RA,IA=se({name:"Star",__name:"star",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),$A=IA,NA=se({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),TC=NA,MA=se({name:"Tools",__name:"tools",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),Loe=MA,PA=se({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),Doe=PA,AA=se({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),Boe=AA,LA=se({name:"User",__name:"user",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),Voe=LA,DA=se({name:"Van",__name:"van",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),Foe=DA,BA=se({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),zoe=BA,VA=se({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),Hoe=VA,FA=se({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),Koe=FA,zA=se({name:"View",__name:"view",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),HA=zA,KA=se({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),pf=KA,WA=se({name:"Warning",__name:"warning",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),Woe=WA,jA=se({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),OC=jA,UA=se({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(E(),D("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),qA=UA;const Ut=G([String,Object,Function]),_C={Close:Qa},Im={Close:Qa,SuccessFilled:TC,InfoFilled:tu,WarningFilled:pf,CircleCloseFilled:Rm},Zr={primary:tu,success:TC,warning:pf,error:Rm,info:tu},hf={validating:ho,success:_m,error:Yo},YA=["light","dark"],GA=Ee({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Ji(Zr),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:YA,default:"light"}}),XA={close:e=>e instanceof MouseEvent},JA=Ee({size:{type:G([Number,String])},color:{type:String}});var ZA=se({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:JA,setup(e){const t=e,n=ge("icon"),a=C(()=>{const{size:o,color:r}=t,s=hn(o);return!s&&!r?{}:{fontSize:s,"--color":r}});return(o,r)=>(E(),D("i",pt({class:i(n).b(),style:a.value},o.$attrs),[oe(o.$slots,"default")],16))}}),QA=ZA;const De=st(QA);var eL=se({name:"ElAlert",__name:"alert",props:GA,emits:XA,setup(e,{emit:t}){const{Close:n}=Im,a=e,o=t,r=wn(),s=ge("alert"),l=M(!0),u=C(()=>Zr[a.type]),c=C(()=>{if(a.description)return!0;const f=r.default?.();return f?Aa(f).some(p=>!gC(p)):!1}),d=f=>{l.value=!1,o("close",f)};return(f,p)=>(E(),le(Yn,{name:i(s).b("fade"),persisted:""},{default:ne(()=>[ct(z("div",{class:R([i(s).b(),i(s).m(e.type),i(s).is("center",e.center),i(s).is(e.effect)]),role:"alert"},[e.showIcon&&(f.$slots.icon||u.value)?(E(),le(i(De),{key:0,class:R([i(s).e("icon"),i(s).is("big",c.value)])},{default:ne(()=>[oe(f.$slots,"icon",{},()=>[(E(),le(it(u.value)))])]),_:3},8,["class"])):re("v-if",!0),z("div",{class:R(i(s).e("content"))},[e.title||f.$slots.title?(E(),D("span",{key:0,class:R([i(s).e("title"),{"with-description":c.value}])},[oe(f.$slots,"title",{},()=>[wt(Ce(e.title),1)])],2)):re("v-if",!0),c.value?(E(),D("p",{key:1,class:R(i(s).e("description"))},[oe(f.$slots,"default",{},()=>[wt(Ce(e.description),1)])],2)):re("v-if",!0),e.closable?(E(),D(Ve,{key:2},[e.closeText?(E(),D("div",{key:0,class:R([i(s).e("close-btn"),i(s).is("customed")]),onClick:d},Ce(e.closeText),3)):(E(),le(i(De),{key:1,class:R(i(s).e("close-btn")),onClick:d},{default:ne(()=>[X(i(n))]),_:1},8,["class"]))],64)):re("v-if",!0)],2)],2),[[$t,l.value]])]),_:3},8,["name"]))}}),tL=eL;const nL=st(tL),RC=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],IC=Ee({role:{type:String,values:RC,default:"tooltip"}}),$m=Symbol("popper"),$C=Symbol("popperContent");var aL=se({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=ge("popper"),{arrowRef:a,arrowStyle:o}=$e($C,void 0);return Vt(()=>{a.value=void 0}),t({arrowRef:a}),(r,s)=>(E(),D("span",{ref_key:"arrowRef",ref:a,class:R(i(n).e("arrow")),style:ze(i(o)),"data-popper-arrow":""},null,6))}}),oL=aL;const NC=Ee({virtualRef:{type:G(Object)},virtualTriggering:Boolean,onMouseenter:{type:G(Function)},onMouseleave:{type:G(Function)},onClick:{type:G(Function)},onKeydown:{type:G(Function)},onFocus:{type:G(Function)},onBlur:{type:G(Function)},onContextmenu:{type:G(Function)},id:String,open:Boolean}),sp="ElOnlyChild",MC=se({name:sp,setup(e,{slots:t,attrs:n}){const a=QN($e(oC)?.setForwardRef??ut);return()=>{const o=t.default?.(n);if(!o)return null;const[r,s]=PC(o);return r?(s>1&&jt(sp,"requires exact only one valid child."),ct(Fo(r,n),[[a]])):(jt(sp,"no valid child node found"),null)}}});function PC(e){if(!e)return[null,0];const t=e,n=t.filter(a=>a.type!==kn).length;for(const a of t){if(ot(a))switch(a.type){case kn:continue;case Fl:case"svg":return[D0(a),n];case Ve:return PC(a.children);default:return[a,n]}return[D0(a),n]}return[null,0]}function D0(e){return X("span",{class:ge("only-child").e("content")},[e])}var rL=se({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:NC,setup(e,{expose:t}){const n=e,{role:a,triggerRef:o}=$e($m,void 0);ZN(o);const r=C(()=>l.value?n.id:void 0),s=C(()=>{if(a&&a.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=C(()=>{if(a&&a.value!=="tooltip")return a.value}),u=C(()=>l.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return ht(()=>{pe(()=>n.virtualRef,f=>{f&&(o.value=Rn(f))},{immediate:!0}),pe(o,(f,p)=>{c?.(),c=void 0,ka(p)&&d.forEach(g=>{const h=n[g];h&&p.removeEventListener(g.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(g))}),ka(f)&&(d.forEach(g=>{const h=n[g];h&&f.addEventListener(g.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(g))}),Is(f)&&(c=pe([r,s,l,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{En(g[v])?f.removeAttribute(h):f.setAttribute(h,g[v])})},{immediate:!0}))),ka(p)&&Is(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),Vt(()=>{if(c?.(),c=void 0,o.value&&ka(o.value)){const f=o.value;d.forEach(p=>{const g=n[p];g&&f.removeEventListener(p.slice(2).toLowerCase(),g,["onFocus","onBlur"].includes(p))}),o.value=void 0}}),t({triggerRef:o}),(f,p)=>e.virtualTriggering?re("v-if",!0):(E(),le(i(MC),pt({key:0},f.$attrs,{"aria-controls":r.value,"aria-describedby":s.value,"aria-expanded":u.value,"aria-haspopup":l.value}),{default:ne(()=>[oe(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),sL=rL;const AC=Ee({arrowOffset:{type:Number,default:5}}),lL=Ee({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:G(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:jo,default:"bottom"},popperOptions:{type:G(Object),default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),LC=Ee({...lL,...AC,id:String,style:{type:G([String,Array,Object,Boolean]),default:void 0},className:{type:G([String,Array,Object])},effect:{type:G(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:G([String,Array,Object])},popperStyle:{type:G([String,Array,Object,Boolean]),default:void 0},referenceEl:{type:G(Object)},triggerTargetEl:{type:G(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ia(["ariaLabel"]),loop:Boolean}),iL={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},uL=Ee({size:{type:String,values:yo},disabled:Boolean}),cL=Ee({...uL,model:Object,rules:{type:G(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:G([Object,Boolean]),default:!0}}),dL={validate:(e,t,n)=>(we(e)||Ae(e))&&Wt(t)&&Ae(n)},Hs=Symbol("formContextKey"),Wo=Symbol("formItemContextKey"),In=(e,t={})=>{const n=M(void 0),a=t.prop?n:WS("size"),o=t.global?n:yC(),r=t.form?{size:void 0}:$e(Hs,void 0),s=t.formItem?{size:void 0}:$e(Wo,void 0);return C(()=>a.value||i(e)||s?.size||r?.size||o.value||"")},un=e=>{const t=WS("disabled"),n=$e(Hs,void 0);return C(()=>t.value??i(e)??n?.disabled??!1)},Fn=()=>({form:$e(Hs,void 0),formItem:$e(Wo,void 0)}),_a=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=M(!1)),a||(a=M(!1));const o=dt(),r=()=>{let c=o?.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},s=M();let l;const u=C(()=>!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&t.inputIds?.length<=1));return ht(()=>{l=pe([Ht(e,"id"),n],([c,d])=>{const f=c??(d?void 0:Gn().value);f!==s.value&&(t?.removeInputId&&!r()&&(s.value&&t.removeInputId(s.value),!a?.value&&!d&&f&&t.addInputId(f)),s.value=f)},{immediate:!0})}),Vl(()=>{l&&l(),t?.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:u,inputId:s}},fL=["","error","validating","success"],pL=Ee({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:G([String,Array])},required:{type:Boolean,default:void 0},rules:{type:G([Object,Array])},error:String,validateStatus:{type:String,values:fL},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:yo}}),B0=e=>[...new Set(e)],ai=e=>we(e)?e[0]:e,aa=e=>!e&&e!==0?[]:we(e)?e:[e],hL="ElForm";function vL(){const e=M([]),t=C(()=>{if(!e.value.length)return"0";const r=Math.max(...e.value);return r?`${r}px`:""});function n(r){const s=e.value.indexOf(r);return s===-1&&t.value==="0"&&jt(hL,`unexpected width ${r}`),s}function a(r,s){if(r&&s){const l=n(s);e.value.splice(l,1,r)}else r&&e.value.push(r)}function o(r){const s=n(r);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:a,deregisterLabelWidth:o}}const oc=(e,t)=>{const n=Dn(t).map(a=>we(a)?a.join("."):a);return n.length>0?e.filter(a=>a.propString&&n.includes(a.propString)):e},Us="ElForm";var mL=se({name:Us,__name:"form",props:cL,emits:dL,setup(e,{expose:t,emit:n}){const a=e,o=n,r=M(),s=Dt([]),l=new Map,u=In(),c=ge("form"),d=C(()=>{const{labelPosition:O,inline:T}=a;return[c.b(),c.m(u.value||"default"),{[c.m(`label-${O}`)]:O,[c.m("inline")]:T}]}),f=O=>oc(s,[O])[0],p=O=>{s.includes(O)||s.push(O),O.propString&&(l.has(O.propString)?O.setInitialValue(l.get(O.propString)):l.set(O.propString,No(O.fieldValue)))},g=(O,T)=>{if(T){l.delete(T);return}const I=s.indexOf(O);I>-1&&(s.splice(I,1),O.propString&&l.set(O.propString,No(O.getInitialValue())))},h=O=>{if(!a.model){jt(Us,"model is required for setInitialValues to work.");return}if(!O){jt(Us,"initModel is required for setInitialValues to work.");return}for(const T of l.keys())l.set(T,No(Wr(O,T).value));s.forEach(T=>{T.prop&&T.setInitialValue(Wr(O,T.prop).value)})},v=(O=[])=>{if(!a.model){jt(Us,"model is required for resetFields to work.");return}oc(s,O).forEach(_=>_.resetField());const T=new Set(s.map(_=>_.propString).filter(Boolean)),I=O.length>0?Dn(O).map(_=>we(_)?_.join("."):_):[...l.keys()];for(const _ of I)!T.has(_)&&l.has(_)&&(Wr(a.model,_).value=No(l.get(_)))},m=(O=[])=>{oc(s,O).forEach(T=>T.clearValidate())},b=C(()=>{const O=!!a.model;return O||jt(Us,"model is required for validate to work."),O}),w=O=>{if(s.length===0)return[];const T=oc(s,O);return T.length?T:(jt(Us,"please pass correct props!"),[])},y=async O=>k(void 0,O),S=async(O=[])=>{if(!b.value)return!1;const T=w(O);if(T.length===0)return!0;let I={};for(const _ of T)try{await _.validate(""),_.validateState==="error"&&!_.error&&_.resetField()}catch(N){I={...I,...N}}return Object.keys(I).length===0?!0:Promise.reject(I)},k=async(O=[],T)=>{let I=!1;const _=!Fe(T);try{return I=await S(O),I===!0&&await T?.(I),I}catch(N){if(N instanceof Error)throw N;const $=N;return a.scrollToError&&r.value&&r.value.querySelector(`.${c.b()}-item.is-error`)?.scrollIntoView(a.scrollIntoViewOptions),!I&&await T?.(!1,$),_&&Promise.reject($)}},x=O=>{const T=f(O);T&&T.$el?.scrollIntoView(a.scrollIntoViewOptions)};return pe(()=>a.rules,()=>{a.validateOnRuleChange&&y().catch(ut)},{deep:!0,flush:"post"}),St(Hs,Dt({...Pn(a),emit:o,resetFields:v,clearValidate:m,validateField:k,getField:f,addField:p,removeField:g,setInitialValues:h,...vL()})),t({validate:y,validateField:k,resetFields:v,clearValidate:m,scrollToField:x,getField:f,fields:s,setInitialValues:h}),(O,T)=>(E(),D("form",{ref_key:"formRef",ref:r,class:R(d.value)},[oe(O.$slots,"default")],2))}}),gL=mL;const V0="ElLabelWrap";var bL=se({name:V0,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=$e(Hs,void 0),a=$e(Wo);a||sn(V0,"usage: ");const o=ge("form"),r=M(),s=M(0),l=()=>{if(r.value?.firstElementChild){const d=window.getComputedStyle(r.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},u=(d="update")=>{Ne(()=>{t.default&&e.isAutoWidth&&(d==="update"?s.value=l():d==="remove"&&n?.deregisterLabelWidth(s.value))})},c=()=>u("update");return ht(()=>{c()}),Vt(()=>{u("remove")}),bo(()=>c()),pe(s,(d,f)=>{e.updateAll&&n?.registerLabelWidth(d,f)}),an(C(()=>r.value?.firstElementChild??null),c),()=>{if(!t)return null;const{isAutoWidth:d}=e;if(d){const f=n?.autoLabelWidth,p=a?.hasLabel,g={};if(p&&f&&f!=="auto"){const h=Math.max(0,Number.parseInt(f,10)-s.value),v=(a.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";h&&(g[v]=`${h}px`)}return X("div",{ref:r,class:[o.be("item","label-wrap")],style:g},[t.default?.()])}else return X(Ve,{ref:r},[t.default?.()])}}});function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tc(e,t,n){return wL()?Tc=Reflect.construct.bind():Tc=function(o,r,s){var l=[null];l.push.apply(l,r);var u=Function.bind.apply(o,l),c=new u;return s&&nu(c,s.prototype),c},Tc.apply(null,arguments)}function SL(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function bh(e){var t=typeof Map=="function"?new Map:void 0;return bh=function(a){if(a===null||!SL(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,o)}function o(){return Tc(a,arguments,gh(this).constructor)}return o.prototype=Object.create(a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),nu(o,a)},bh(e)}var CL=/%[sdj%]/g,kL=function(){};function yh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function La(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a=r)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return s}return e}function EL(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Kn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||EL(t)&&typeof e=="string"&&!e)}function xL(e,t,n){var a=[],o=0,r=e.length;function s(l){a.push.apply(a,l||[]),o++,o===r&&n(a)}e.forEach(function(l){t(l,s)})}function F0(e,t,n){var a=0,o=e.length;function r(s){if(s&&s.length){n(s);return}var l=a;a=a+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},hi={integer:function(t){return hi.number(t)&&parseInt(t,10)===t},float:function(t){return hi.number(t)&&!hi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!hi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(W0.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($L())},hex:function(t){return typeof t=="string"&&!!t.match(W0.hex)}},NL=function(t,n,a,o,r){if(t.required&&n===void 0){DC(t,n,a,o,r);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;s.indexOf(l)>-1?hi[l](n)||o.push(La(r.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(La(r.messages.types[l],t.fullField,t.type))},ML=function(t,n,a,o,r){var s=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",g=typeof n=="string",h=Array.isArray(n);if(p?f="number":g?f="string":h&&(f="array"),!f)return!1;h&&(d=n.length),g&&(d=n.replace(c,"_").length),s?d!==t.len&&o.push(La(r.messages[f].len,t.fullField,t.len)):l&&!u&&dt.max?o.push(La(r.messages[f].max,t.fullField,t.max)):l&&u&&(dt.max)&&o.push(La(r.messages[f].range,t.fullField,t.min,t.max))},qs="enum",PL=function(t,n,a,o,r){t[qs]=Array.isArray(t[qs])?t[qs]:[],t[qs].indexOf(n)===-1&&o.push(La(r.messages[qs],t.fullField,t[qs].join(", ")))},AL=function(t,n,a,o,r){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(La(r.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||o.push(La(r.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Qt={required:DC,whitespace:IL,type:NL,range:ML,enum:PL,pattern:AL},LL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n,"string")&&!t.required)return a();Qt.required(t,n,o,s,r,"string"),Kn(n,"string")||(Qt.type(t,n,o,s,r),Qt.range(t,n,o,s,r),Qt.pattern(t,n,o,s,r),t.whitespace===!0&&Qt.whitespace(t,n,o,s,r))}a(s)},DL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&Qt.type(t,n,o,s,r)}a(s)},BL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&(Qt.type(t,n,o,s,r),Qt.range(t,n,o,s,r))}a(s)},VL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&Qt.type(t,n,o,s,r)}a(s)},FL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),Kn(n)||Qt.type(t,n,o,s,r)}a(s)},zL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&(Qt.type(t,n,o,s,r),Qt.range(t,n,o,s,r))}a(s)},HL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&(Qt.type(t,n,o,s,r),Qt.range(t,n,o,s,r))}a(s)},KL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return a();Qt.required(t,n,o,s,r,"array"),n!=null&&(Qt.type(t,n,o,s,r),Qt.range(t,n,o,s,r))}a(s)},WL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&Qt.type(t,n,o,s,r)}a(s)},jL="enum",UL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r),n!==void 0&&Qt[jL](t,n,o,s,r)}a(s)},qL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n,"string")&&!t.required)return a();Qt.required(t,n,o,s,r),Kn(n,"string")||Qt.pattern(t,n,o,s,r)}a(s)},YL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n,"date")&&!t.required)return a();if(Qt.required(t,n,o,s,r),!Kn(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Qt.type(t,u,o,s,r),u&&Qt.range(t,u.getTime(),o,s,r)}}a(s)},GL=function(t,n,a,o,r){var s=[],l=Array.isArray(n)?"array":typeof n;Qt.required(t,n,o,s,r,l),a(s)},lp=function(t,n,a,o,r){var s=t.type,l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Kn(n,s)&&!t.required)return a();Qt.required(t,n,o,l,r,s),Kn(n,s)||Qt.type(t,n,o,l,r)}a(l)},XL=function(t,n,a,o,r){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Kn(n)&&!t.required)return a();Qt.required(t,n,o,s,r)}a(s)},$i={string:LL,method:DL,number:BL,boolean:VL,regexp:FL,integer:zL,float:HL,array:KL,object:WL,enum:UL,pattern:qL,date:YL,url:lp,hex:lp,email:lp,required:GL,any:XL};function wh(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Sh=wh(),Lu=function(){function e(n){this.rules=null,this._messages=Sh,this.define(n)}var t=e.prototype;return t.define=function(a){var o=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(typeof a!="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(r){var s=a[r];o.rules[r]=Array.isArray(s)?s:[s]})},t.messages=function(a){return a&&(this._messages=K0(wh(),a)),this._messages},t.validate=function(a,o,r){var s=this;o===void 0&&(o={}),r===void 0&&(r=function(){});var l=a,u=o,c=r;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(v){var m=[],b={};function w(S){if(Array.isArray(S)){var k;m=(k=m).concat.apply(k,S)}else m.push(S)}for(var y=0;yn.labelPosition||o?.labelPosition),b=C(()=>m.value==="top"?{}:{width:hn(n.labelWidth??o?.labelWidth)}),w=C(()=>{if(m.value==="top"||o?.inline)return{};if(!n.label&&!n.labelWidth&&_)return{};const Y=hn(n.labelWidth??o?.labelWidth);return!n.label&&!a.label?{marginLeft:Y}:{}}),y=C(()=>[l.b(),l.m(s.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",j.value||n.required),l.is("no-asterisk",o?.hideRequiredAsterisk),o?.requireAsteriskPosition==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:o?.statusIcon,[l.m(`label-${m.value}`)]:m.value}]),S=C(()=>Wt(n.inlineMessage)?n.inlineMessage:o?.inlineMessage||!1),k=C(()=>[l.e("error"),{[l.em("error","inline")]:S.value}]),x=C(()=>n.prop?we(n.prop)?n.prop.join("."):n.prop:""),O=C(()=>!!(n.label||a.label)),T=C(()=>n.for??(c.value.length===1?c.value[0]:void 0)),I=C(()=>!T.value&&O.value),_=!!r,N=C(()=>{const Y=o?.model;if(!(!Y||!n.prop))return Wr(Y,n.prop).value}),$=C(()=>{const{required:Y}=n,Q=[];n.rules&&Q.push(...Dn(n.rules));const L=o?.rules;if(L&&n.prop){const q=Wr(L,n.prop).value;q&&Q.push(...Dn(q))}if(Y!==void 0){const q=Q.map((te,fe)=>[te,fe]).filter(([te])=>"required"in te);if(q.length>0)for(const[te,fe]of q)te.required!==Y&&(Q[fe]={...te,required:Y});else Q.push({required:Y})}return Q}),B=C(()=>$.value.length>0),K=Y=>$.value.filter(Q=>!Q.trigger||!Y?!0:we(Q.trigger)?Q.trigger.includes(Y):Q.trigger===Y).map(({trigger:Q,...L})=>L),j=C(()=>$.value.some(Y=>Y.required)),W=C(()=>f.value==="error"&&n.showMessage&&(o?.showMessage??!0)),A=C(()=>`${n.label||""}${o?.labelSuffix||""}`),P=Y=>{d.value=Y},V=Y=>{const{errors:Q,fields:L}=Y;(!Q||!L)&&console.error(Y),P("error"),p.value=Q?Q?.[0]?.message??`${n.prop} is required`:"",o?.emit("validate",n.prop,!1,p.value)},F=()=>{P("success"),o?.emit("validate",n.prop,!0,"")},H=async Y=>{const Q=x.value;return new Lu({[Q]:Y}).validate({[Q]:N.value},{firstFields:!0}).then(()=>(F(),!0)).catch(L=>(V(L),Promise.reject(L)))},U=async(Y,Q)=>{if(v||!n.prop)return!1;const L=Fe(Q);if(!B.value)return Q?.(!1),!1;const q=K(Y);return q.length===0?(Q?.(!0),!0):(P("validating"),H(q).then(()=>(Q?.(!0),!0)).catch(te=>{const{fields:fe}=te;return Q?.(!1,fe),L?!1:Promise.reject(fe)}))},J=()=>{P(""),p.value="",v=!1},ee=async()=>{const Y=o?.model;if(!Y||!n.prop)return;const Q=Wr(Y,n.prop);v=!0,Q.value=No(h),await Ne(),J(),v=!1},ae=Y=>{c.value.includes(Y)||c.value.push(Y)},ce=Y=>{c.value=c.value.filter(Q=>Q!==Y)},Z=Y=>{h=No(Y)},de=()=>h;pe(()=>n.error,Y=>{p.value=Y||"",P(Y?"error":"")},{immediate:!0}),pe(()=>n.validateStatus,Y=>P(Y||""));const ue=Dt({...Pn(n),$el:g,size:s,validateMessage:p,validateState:d,labelId:u,inputIds:c,isGroup:I,hasLabel:O,fieldValue:N,addInputId:ae,removeInputId:ce,resetField:ee,clearValidate:J,validate:U,propString:x,setInitialValue:Z,getInitialValue:de});return St(Wo,ue),pe(x,(Y,Q)=>{!o||!Q||(o.removeField(ue,Q),Y&&(Z(N.value),o.addField(ue)))}),ht(()=>{n.prop&&(Z(N.value),o?.addField(ue))}),Vt(()=>{o?.removeField(ue)}),t({size:s,validateMessage:p,validateState:d,validate:U,clearValidate:J,resetField:ee,setInitialValue:Z}),(Y,Q)=>(E(),D("div",{ref_key:"formItemRef",ref:g,class:R(y.value),role:I.value?"group":void 0,"aria-labelledby":I.value?i(u):void 0},[X(i(bL),{"is-auto-width":b.value.width==="auto","update-all":i(o)?.labelWidth==="auto"},{default:ne(()=>[e.label||Y.$slots.label?(E(),le(it(T.value?"label":"div"),{key:0,id:i(u),for:T.value,class:R(i(l).e("label")),style:ze(b.value)},{default:ne(()=>[oe(Y.$slots,"label",{label:A.value},()=>[wt(Ce(A.value),1)])]),_:3},8,["id","for","class","style"])):re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),z("div",{class:R(i(l).e("content")),style:ze(w.value)},[oe(Y.$slots,"default"),X(O2,{name:`${i(l).namespace.value}-zoom-in-top`},{default:ne(()=>[W.value?oe(Y.$slots,"error",{key:0,error:p.value},()=>[z("div",{class:R(k.value)},Ce(p.value),3)]):re("v-if",!0)]),_:3},8,["name"])],6)],10,JL))}}),BC=ZL;const QL=st(gL,{FormItem:BC}),eD=ln(BC),ip="focus-trap.focus-after-trapped",up="focus-trap.focus-after-released",tD="focus-trap.focusout-prevented",j0={cancelable:!0,bubbles:!1},nD={cancelable:!0,bubbles:!1},U0="focusAfterTrapped",q0="focusAfterReleased",VC=Symbol("elFocusTrap"),Nm=M(),vf=M(0),Mm=M(0);let sc=0;const FC=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Y0=(e,t)=>{for(const n of e)if(!aD(n,t))return n},aD=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},oD=e=>{const t=FC(e);return[Y0(t,e),Y0(t.reverse(),e)]},rD=e=>e instanceof HTMLInputElement&&"select"in e,Pr=(e,t)=>{if(e){const n=document.activeElement;Ou(e,{preventScroll:!0}),Mm.value=window.performance.now(),e!==n&&rD(e)&&t&&e.select()}};function G0(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const sD=()=>{let e=[];return{push:a=>{const o=e[0];o&&a!==o&&o.pause(),e=G0(e,a),e.unshift(a)},remove:a=>{e=G0(e,a),e[0]?.resume?.()}}},lD=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if(Pr(a,t),document.activeElement!==n)return},X0=sD(),iD=()=>vf.value>Mm.value,lc=()=>{Nm.value="pointer",vf.value=window.performance.now()},J0=()=>{Nm.value="keyboard",vf.value=window.performance.now()},uD=()=>(ht(()=>{sc===0&&(document.addEventListener("mousedown",lc),document.addEventListener("touchstart",lc),document.addEventListener("keydown",J0)),sc++}),Vt(()=>{sc--,sc<=0&&(document.removeEventListener("mousedown",lc),document.removeEventListener("touchstart",lc),document.removeEventListener("keydown",J0))}),{focusReason:Nm,lastUserFocusTimestamp:vf,lastAutomatedFocusTimestamp:Mm}),ic=e=>new CustomEvent(tD,{...nD,detail:e});var cD=se({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[U0,q0,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=M();let a,o;const{focusReason:r}=uD();qN(h=>{e.trapped&&!s.paused&&t("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{altKey:v,ctrlKey:m,metaKey:b,currentTarget:w,shiftKey:y}=h,{loop:S}=e,k=qt(h)===Se.tab&&!v&&!m&&!b,x=document.activeElement;if(k&&x){const O=w,[T,I]=oD(O);if(T&&I){if(!y&&x===I){const _=ic({focusReason:r.value});t("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),S&&Pr(T,!0))}else if(y&&[T,O].includes(x)){const _=ic({focusReason:r.value});t("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),S&&Pr(I,!0))}}else if(x===O){const _=ic({focusReason:r.value});t("focusout-prevented",_),_.defaultPrevented||h.preventDefault()}}};St(VC,{focusTrapRef:n,onKeydown:l}),pe(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),pe([n],([h],[v])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",d),h.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",l),v.removeEventListener("focusin",d),v.removeEventListener("focusout",f))});const u=h=>{t(U0,h)},c=h=>t(q0,h),d=h=>{const v=i(n);if(!v)return;const m=h.target,b=h.relatedTarget,w=m&&v.contains(m);e.trapped||b&&v.contains(b)||(a=b),w&&t("focusin",h),!s.paused&&e.trapped&&(w?o=m:Pr(o,!0))},f=h=>{const v=i(n);if(!(s.paused||!v))if(e.trapped){const m=h.relatedTarget;!En(m)&&!v.contains(m)&&setTimeout(()=>{if(!s.paused&&e.trapped){const b=ic({focusReason:r.value});t("focusout-prevented",b),b.defaultPrevented||Pr(o,!0)}},0)}else{const m=h.target;m&&v.contains(m)||t("focusout",h)}};async function p(){await Ne();const h=i(n);if(h){X0.push(s);const v=h.contains(document.activeElement)?a:document.activeElement;if(a=v,!h.contains(v)){const m=new Event(ip,j0);h.addEventListener(ip,u),h.dispatchEvent(m),m.defaultPrevented||Ne(()=>{let b=e.focusStartEl;Ae(b)||(Pr(b),document.activeElement!==b&&(b="first")),b==="first"&&lD(FC(h),!0),(document.activeElement===v||b==="container")&&Pr(h)})}}}function g(){const h=i(n);if(h){h.removeEventListener(ip,u);const v=new CustomEvent(up,{...j0,detail:{focusReason:r.value}});h.addEventListener(up,c),h.dispatchEvent(v),!v.defaultPrevented&&(r.value=="keyboard"||!iD()||h.contains(document.activeElement))&&Pr(a??document.body),h.removeEventListener(up,c),X0.remove(s),a=null,o=null}}return ht(()=>{e.trapped&&p(),pe(()=>e.trapped,h=>{h?p():g()})}),Vt(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",l),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0),a=null,o=null}),{onKeydown:l}}}),Mn=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};function dD(e,t,n,a,o,r){return oe(e.$slots,"default",{handleKeydown:e.onKeydown})}var fD=Mn(cD,[["render",dD]]),Ul=fD;const pD=(e,t=[])=>{const{placement:n,strategy:a,popperOptions:o}=e,r={placement:n,strategy:a,...o,modifiers:[...vD(e),...t]};return mD(r,o?.modifiers),r},hD=e=>{if(Lt)return Rn(e)};function vD(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:a}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:a}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function mD(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const gD=0,bD=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:a,role:o}=$e($m,void 0),r=M(),s=C(()=>e.arrowOffset),l=C(()=>({name:"eventListeners",enabled:!!e.visible})),u=C(()=>{const w=i(r),y=i(s)??gD;return{name:"arrow",enabled:!AI(w),options:{element:w,padding:y}}}),c=C(()=>({onFirstUpdate:()=>{h()},...pD(e,[i(u),i(l)])})),d=C(()=>hD(e.referenceEl)||i(a)),{attributes:f,state:p,styles:g,update:h,forceUpdate:v,instanceRef:m}=KN(d,n,c);pe(m,w=>t.value=w,{flush:"sync"}),ht(()=>{pe(()=>i(d)?.getBoundingClientRect?.(),()=>{h()})});let b;return pe(()=>e.visible,w=>{b?.(),b=void 0,w&&(b=an(n,h).stop)}),Vt(()=>{t.value=void 0,b?.(),b=void 0}),{attributes:f,arrowRef:r,contentRef:n,instanceRef:m,state:p,styles:g,role:o,forceUpdate:v,update:h}},yD=(e,{attributes:t,styles:n,role:a})=>{const{nextZIndex:o}=Iu(),r=ge("popper"),s=C(()=>i(t).popper),l=M(Be(e.zIndex)?e.zIndex:o()),u=C(()=>[r.b(),r.is("pure",e.pure),r.is(e.effect),e.popperClass]),c=C(()=>[{zIndex:i(l)},i(n).popper,e.popperStyle||{}]),d=C(()=>a.value==="dialog"?"false":void 0),f=C(()=>i(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:s,contentClass:u,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=Be(e.zIndex)?e.zIndex:o()}}},wD=(e,t)=>{const n=M(!1),a=M(),o=()=>{t("focus")},r=c=>{c.detail?.focusReason!=="pointer"&&(a.value="first",t("blur"))},s=c=>{e.visible&&!n.value&&(c.target&&(a.value=c.target),n.value=!0)},l=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},u=()=>{n.value=!1,t("close")};return Vt(()=>{a.value=void 0}),{focusStartRef:a,trapped:n,onFocusAfterReleased:r,onFocusAfterTrapped:o,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:u}};var SD=se({name:"ElPopperContent",__name:"content",props:LC,emits:iL,setup(e,{expose:t,emit:n}){const a=n,o=e,{focusStartRef:r,trapped:s,onFocusAfterReleased:l,onFocusAfterTrapped:u,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=wD(o,a),{attributes:p,arrowRef:g,contentRef:h,styles:v,instanceRef:m,role:b,update:w}=bD(o),{ariaModal:y,arrowStyle:S,contentAttrs:k,contentClass:x,contentStyle:O,updateZIndex:T}=yD(o,{styles:v,attributes:p,role:b}),I=$e(Wo,void 0);St($C,{arrowStyle:S,arrowRef:g}),I&&St(Wo,{...I,addInputId:ut,removeInputId:ut});let _;const N=(B=!0)=>{w(),B&&T()},$=()=>{N(!1),o.visible&&o.focusOnShow?s.value=!0:o.visible===!1&&(s.value=!1)};return ht(()=>{pe(()=>o.triggerTargetEl,(B,K)=>{_?.(),_=void 0;const j=i(B||h.value),W=i(K||h.value);ka(j)&&(_=pe([b,()=>o.ariaLabel,y,()=>o.id],A=>{["role","aria-label","aria-modal","id"].forEach((P,V)=>{En(A[V])?j.removeAttribute(P):j.setAttribute(P,A[V])})},{immediate:!0})),W!==j&&ka(W)&&["role","aria-label","aria-modal","id"].forEach(A=>{W.removeAttribute(A)})},{immediate:!0}),pe(()=>o.visible,$,{immediate:!0})}),Vt(()=>{_?.(),_=void 0,h.value=void 0}),t({popperContentRef:h,popperInstanceRef:m,updatePopper:N,contentStyle:O}),(B,K)=>(E(),D("div",pt({ref_key:"contentRef",ref:h},i(k),{style:i(O),class:i(x),tabindex:"-1",onMouseenter:K[0]||(K[0]=j=>B.$emit("mouseenter",j)),onMouseleave:K[1]||(K[1]=j=>B.$emit("mouseleave",j))}),[X(i(Ul),{loop:e.loop,trapped:i(s),"trap-on-focus-in":!0,"focus-trap-el":i(h),"focus-start-el":i(r),onFocusAfterTrapped:i(u),onFocusAfterReleased:i(l),onFocusin:i(c),onFocusoutPrevented:i(d),onReleaseRequested:i(f)},{default:ne(()=>[oe(B.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),CD=SD,kD=se({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:IC,setup(e,{expose:t}){const n=e,a={triggerRef:M(),popperInstanceRef:M(),contentRef:M(),referenceRef:M(),role:C(()=>n.role)};return t(a),St($m,a),(o,r)=>oe(o.$slots,"default")}}),ED=kD;const zC=st(ED),Kt=Ee({...XN,...LC,appendTo:{type:G([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:G(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ia(["ariaLabel"])}),Bo=Ee({...NC,disabled:Boolean,trigger:{type:G([String,Array]),default:"hover"},triggerKeys:{type:G(Array),default:()=>[Se.enter,Se.numpadEnter,Se.space]},focusOnTarget:Boolean}),{useModelToggleProps:xD,useModelToggleEmits:TD,useModelToggle:OD}=F$("visible"),_D=Ee({...IC,...xD,...Kt,...Bo,...AC,showArrow:{type:Boolean,default:!0}}),RD=[...TD,"before-show","before-hide","show","hide","open","close"],Pm=Symbol("elTooltip"),Ch=(e,t)=>we(e)?e.includes(t):e===t,Ys=(e,t,n)=>a=>{Ch(i(e),t)&&n(a)};var ID=se({name:"ElTooltipTrigger",__name:"trigger",props:Bo,setup(e,{expose:t}){const n=e,a=ge("tooltip"),{controlled:o,id:r,open:s,onOpen:l,onClose:u,onToggle:c}=$e(Pm,void 0),d=M(null),f=()=>{if(i(o)||n.disabled)return!0},p=Ht(n,"trigger"),g=Ln(f,Ys(p,"hover",S=>{l(S),n.focusOnTarget&&S.target&&Ne(()=>{Ou(S.target,{preventScroll:!0})})})),h=Ln(f,Ys(p,"hover",u)),v=Ln(f,Ys(p,"click",S=>{S.button===0&&c(S)})),m=Ln(f,Ys(p,"focus",l)),b=Ln(f,Ys(p,"focus",u)),w=Ln(f,Ys(p,"contextmenu",S=>{S.preventDefault(),c(S)})),y=Ln(f,S=>{const k=qt(S);n.triggerKeys.includes(k)&&(S.preventDefault(),c(S))});return t({triggerRef:d}),(S,k)=>(E(),le(i(sL),{id:i(r),"virtual-ref":e.virtualRef,open:i(s),"virtual-triggering":e.virtualTriggering,class:R(i(a).e("trigger")),onBlur:i(b),onClick:i(v),onContextmenu:i(w),onFocus:i(m),onMouseenter:i(g),onMouseleave:i(h),onKeydown:i(y)},{default:ne(()=>[oe(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),$D=ID,ND=se({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Kt,setup(e,{expose:t}){const n=e,{selector:a}=aC(),o=ge("tooltip"),r=M(),s=_S(()=>r.value?.popperContentRef);let l;const{controlled:u,id:c,open:d,trigger:f,onClose:p,onOpen:g,onShow:h,onHide:v,onBeforeShow:m,onBeforeHide:b}=$e(Pm,void 0),w=C(()=>n.transition||`${o.namespace.value}-fade-in-linear`),y=C(()=>n.persistent);Vt(()=>{l?.()});const S=C(()=>i(y)?!0:i(d)),k=C(()=>n.disabled?!1:i(d)),x=C(()=>n.appendTo||a.value),O=C(()=>n.style??{}),T=M(!0),I=()=>{v(),A()&&Ou(document.body,{preventScroll:!0}),T.value=!0},_=()=>{if(i(u))return!0},N=Ln(_,()=>{n.enterable&&Ch(i(f),"hover")&&g()}),$=Ln(_,()=>{Ch(i(f),"hover")&&p()}),B=()=>{r.value?.updatePopper?.(),m?.()},K=()=>{b?.()},j=()=>{h()},W=()=>{n.virtualTriggering||p()},A=P=>{const V=r.value?.popperContentRef,F=P?.relatedTarget||document.activeElement;return V?.contains(F)};return pe(()=>i(d),P=>{P?(T.value=!1,l=sm(s,()=>{i(u)||aa(i(f)).every(V=>V!=="hover"&&V!=="focus")&&p()},{detectIframe:!0})):l?.()},{flush:"post"}),t({contentRef:r,isFocusInsideContent:A}),(P,V)=>(E(),le(Bl,{disabled:!e.teleported,to:x.value},[S.value||!T.value?(E(),le(Yn,{key:0,name:w.value,appear:!y.value,onAfterLeave:I,onBeforeEnter:B,onAfterEnter:j,onBeforeLeave:K,persisted:""},{default:ne(()=>[ct(X(i(CD),pt({id:i(c),ref_key:"contentRef",ref:r},P.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":T.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,O.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:k.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:i(N),onMouseleave:i($),onBlur:W,onClose:i(p)}),{default:ne(()=>[oe(P.$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","loop","onMouseenter","onMouseleave","onClose"]),[[$t,k.value]])]),_:3},8,["name","appear"])):re("v-if",!0)],8,["disabled","to"]))}}),MD=ND;const PD=["innerHTML"],AD={key:1};var LD=se({name:"ElTooltip",__name:"tooltip",props:_D,emits:RD,setup(e,{expose:t,emit:n}){const a=e,o=n;GN();const r=ge("tooltip"),s=Gn(),l=M(),u=M(),c=()=>{const S=i(l);S&&S.popperInstanceRef?.update()},d=M(!1),f=M(),{show:p,hide:g,hasUpdateHandler:h}=OD({indicator:d,toggleReason:f}),{onOpen:v,onClose:m}=JN({showAfter:Ht(a,"showAfter"),hideAfter:Ht(a,"hideAfter"),autoClose:Ht(a,"autoClose"),open:p,close:g}),b=C(()=>Wt(a.visible)&&!h.value),w=C(()=>[r.b(),a.popperClass]);St(Pm,{controlled:b,id:s,open:gl(d),trigger:Ht(a,"trigger"),onOpen:v,onClose:m,onToggle:S=>{i(d)?m(S):v(S)},onShow:()=>{o("show",f.value)},onHide:()=>{o("hide",f.value)},onBeforeShow:()=>{o("before-show",f.value)},onBeforeHide:()=>{o("before-hide",f.value)},updatePopper:c}),pe(()=>a.disabled,S=>{S&&d.value&&(d.value=!1),!S&&Wt(a.visible)&&(d.value=a.visible)});const y=S=>u.value?.isFocusInsideContent(S);return Av(()=>d.value&&g()),Vt(()=>{f.value=void 0}),t({popperRef:l,contentRef:u,isFocusInsideContent:y,updatePopper:c,onOpen:v,onClose:m,hide:g}),(S,k)=>(E(),le(i(zC),{ref_key:"popperRef",ref:l,role:e.role},{default:ne(()=>[X($D,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:ne(()=>[S.$slots.default?oe(S.$slots,"default",{key:0}):re("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),X(MD,{ref_key:"contentRef",ref:u,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":w.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:ne(()=>[oe(S.$slots,"content",{},()=>[e.rawContent?(E(),D("span",{key:0,innerHTML:e.content},null,8,PD)):(E(),D("span",AD,Ce(e.content),1))]),e.showArrow?(E(),le(i(oL),{key:0})):re("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","loop"])]),_:3},8,["role"]))}}),DD=LD;const Wn=st(DD),pn=e=>e,Am=Ee({id:{type:String,default:void 0},size:Nn,disabled:{type:Boolean,default:void 0},modelValue:{type:G([String,Number,Object]),default:""},modelModifiers:{type:G(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:G(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:G([Boolean,Object]),default:!1},autocomplete:{type:G(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:Ut,default:Yo},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:Ut},prefixIcon:{type:Ut},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:G([Object,Array,String,Boolean]),default:()=>pn({})},countGraphemes:{type:G(Function)},autofocus:Boolean,rows:{type:Number,default:2},...ia(["ariaLabel"]),inputmode:{type:G(String),default:void 0},name:String}),BD={[at]:e=>Ae(e),input:e=>Ae(e),change:(e,t)=>Ae(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:e=>e===void 0||e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};Ya(Yo);let Ha;const VD={height:"0",visibility:"hidden",overflow:af()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},FD=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Z0=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function zD(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:FD.map(r=>[r,t.getPropertyValue(r)]),paddingSize:a,borderSize:o,boxSizing:n}}function Q0(e,t=1,n){if(!Ha){Ha=document.createElement("textarea");let d=document.body;!af()&&e.parentNode&&(d=e.parentNode),d.appendChild(Ha)}const{paddingSize:a,borderSize:o,boxSizing:r,contextStyle:s}=zD(e);s.forEach(([d,f])=>Ha?.style.setProperty(d,f)),Object.entries(VD).forEach(([d,f])=>Ha?.style.setProperty(d,f,"important")),Ha.value=e.value||e.placeholder||"";let l=Ha.scrollHeight;const u={};r==="border-box"?l=l+o:r==="content-box"&&(l=l-a),Ha.value="";const c=Ha.scrollHeight-a;if(Be(t)){let d=c*t;r==="border-box"&&(d=d+a+o),l=Math.max(d,l),u.minHeight=`${d}px`}if(Be(n)){let d=c*n;r==="border-box"&&(d=d+a+o),l=Math.min(d,l)}return u.height=`${l}px`,Ha.parentNode?.removeChild(Ha),Ha=void 0,u}const HD=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],KD=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","inputmode"],ey="ElInput";var WD=se({name:ey,inheritAttrs:!1,__name:"input",props:Am,emits:BD,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wr(),s=wn(),l=C(()=>[a.type==="textarea"?b.b():m.b(),m.m(h.value),m.is("disabled",v.value),m.is("exceed",de.value),{[m.b("group")]:s.prepend||s.append,[m.m("prefix")]:s.prefix||a.prefixIcon,[m.m("suffix")]:s.suffix||a.suffixIcon||a.clearable||a.showPassword,[m.bm("suffix","password-clear")]:ee.value&&ae.value,[m.b("hidden")]:a.type==="hidden"},r.class]),u=C(()=>[m.e("wrapper"),m.is("focus",B.value)]),c=ef(),d=C(()=>a.maxlength?.toString()),{form:f,formItem:p}=Fn(),{inputId:g}=_a(a,{formItemContext:p}),h=In(),v=un(),m=ge("input"),b=ge("textarea"),w=Tt(),y=Tt(),S=M(!1),k=M(!1),x=M(),O=M(),T=Tt(a.inputStyle),I=M(""),_=M(),N=C(()=>w.value||y.value),{wrapperRef:$,isFocused:B,handleFocus:K,handleBlur:j}=Er(N,{disabled:v,afterBlur(){a.validateEvent&&p?.validate?.("blur").catch(ut)}}),W=C(()=>f?.statusIcon??!1),A=C(()=>p?.validateState||""),P=C(()=>A.value&&hf[A.value]),V=C(()=>k.value?HA:WP),F=C(()=>[r.style]),H=C(()=>[a.inputStyle,T.value,{resize:a.resize},_.value?{height:_.value}:void 0]),U=C(()=>En(a.modelValue)?"":String(a.modelValue)),J=C(()=>a.clearable&&!v.value&&!a.readonly),ee=C(()=>J.value&&!!U.value&&(B.value||S.value)),ae=C(()=>a.showPassword&&!v.value&&!!U.value),ce=C(()=>a.showWordLimit&&!!d.value&&(a.type==="text"||a.type==="textarea")&&!v.value&&!a.readonly&&!a.showPassword),Z=C(()=>a.countGraphemes&&a.showWordLimit?a.countGraphemes(U.value):U.value.length),de=C(()=>!!ce.value&&Z.value>Number(d.value)),ue=C(()=>!!s.suffix||!!a.suffixIcon||a.clearable||a.showPassword||ce.value||!!A.value&&W.value),Y=C(()=>!!Object.keys(a.modelModifiers).length),[Q,L]=KM(w);let q;an(y,nt=>{if(he(),!ce.value&&!J.value||a.resize!=="both"&&a.resize!=="horizontal")return;const{width:ft}=nt[0].target.getBoundingClientRect(),me=()=>{q=void 0,x.value={right:`calc(100% - ${ft-10}px)`},O.value={right:`calc(100% - ${ft-11}px)`}};q&&co(q),q=Oa(me)});const te=()=>{const{type:nt,autosize:ft}=a;if(!(!Lt||nt!=="textarea"||!y.value))if(ft){const me=ot(ft)?ft.minRows:void 0,je=ot(ft)?ft.maxRows:void 0,ie=Q0(y.value,me,je);T.value={overflowY:"hidden",...ie},Ne(()=>{y.value.offsetHeight,T.value=ie})}else T.value={minHeight:Q0(y.value).minHeight}},he=(nt=>{let ft=!1;return()=>{if(ft||!a.autosize){a.resize!=="none"&&setTimeout(()=>{_.value=y.value?.style.height});return}y.value?.offsetParent!==null&&(setTimeout(nt),ft=!0)}})(te),ve=()=>{const nt=N.value,ft=a.formatter?a.formatter(U.value):U.value;!nt||nt.value===ft||a.type==="file"||(nt.value=ft)},Ie=nt=>{const{trim:ft,number:me}=a.modelModifiers;return ft&&(nt=nt.trim()),me&&(nt=`${Z0(nt)}`),a.formatter&&a.parser&&(nt=a.parser(nt)),nt},Le=async nt=>{if(ye.value)return;const{lazy:ft}=a.modelModifiers;let{value:me}=nt.target,je=!1;if(ft){o(Tn,me);return}if(me=Ie(me),a.countGraphemes&&d.value!=null){const ie=Number(d.value),xe=a.countGraphemes(me),Ue=a.countGraphemes(I.value);if(xe>ie&&xe>Ue)if(Ue>ie)me=I.value,je=!0;else{const et=I.value,bt=me;let vt=0;for(;vtvt&&Yt>vt&&et[Et-1]===bt[Yt-1];)Et--,Yt--;const on=bt.slice(0,vt),At=et.slice(vt,Et),en=bt.slice(vt,Yt),Ye=bt.slice(Yt),Ge=Ue-a.countGraphemes(At),tt=Math.max(0,ie-Ge);let Oe="";if(tt>0)if(typeof Intl<"u"&&"Segmenter"in Intl){const Ke=new Intl.Segmenter(void 0,{granularity:"grapheme"});for(const{segment:We}of Ke.segment(en)){const Xt=Oe+We;if(a.countGraphemes(Xt)>tt)break;Oe=Xt}}else for(const Ke of Array.from(en)){const We=Oe+Ke;if(a.countGraphemes(We)>tt)break;Oe=We}me=on+Oe+Ye,je=!0}}if(String(me)===U.value){if(a.formatter||je){const ie=nt.target,xe=ie.value,Ue=ie.selectionStart,et=ie.selectionEnd;if(ve(),je&&N.value&&Ue!=null&&et!=null){const bt=N.value.value,vt=xe.slice(Math.max(0,et));let Et=Math.min(Ue,bt.length);vt&&bt.endsWith(vt)&&(Et=bt.length-vt.length),N.value.setSelectionRange(Et,Et)}}return}I.value=me,Q(),o(at,me),o(Tn,me),await Ne(),(a.formatter&&a.parser||!Y.value)&&ve(),L()},_e=async nt=>{let{value:ft}=nt.target;ft=Ie(ft),a.modelModifiers.lazy&&o(at,ft),o(yt,ft,nt),await Ne(),ve()},{isComposing:ye,handleCompositionStart:Te,handleCompositionUpdate:be,handleCompositionEnd:Pe}=Pu({emit:o,afterComposition:Le}),He=()=>{k.value=!k.value},Je=()=>N.value?.focus(),Qe=()=>N.value?.blur(),lt=nt=>{S.value=!1,o("mouseleave",nt)},Ze=nt=>{S.value=!0,o("mouseenter",nt)},gt=nt=>{o("keydown",nt)},Pt=()=>{N.value?.select()},zt=nt=>{o(at,""),o(yt,""),o("clear",nt),o(Tn,"")};return pe(()=>a.modelValue,()=>{Ne(()=>{te(),a.autosize&&(_.value=void 0)}),a.validateEvent&&p?.validate?.("change").catch(ut)}),pe(()=>U.value,nt=>{I.value=nt},{immediate:!0}),pe(U,nt=>{if(!N.value)return;const{trim:ft,number:me}=a.modelModifiers,je=N.value.value,ie=(me||a.type==="number")&&!/^0\d/.test(je)?`${Z0(je)}`:je;ie!==nt&&(document.activeElement===N.value&&N.value.type!=="range"&&ft&&ie.trim()===nt||ve())}),pe(()=>a.type,async()=>{await Ne(),ve(),te()}),ht(()=>{!a.formatter&&a.parser&&jt(ey,"If you set the parser, you also need to set the formatter."),ve(),Ne(te)}),Vt(()=>{q&&co(q)}),t({input:w,textarea:y,ref:N,textareaStyle:H,autosize:Ht(a,"autosize"),isComposing:ye,passwordVisible:k,focus:Je,blur:Qe,select:Pt,clear:zt,resizeTextarea:te}),(nt,ft)=>(E(),D("div",{class:R([l.value,{[i(m).bm("group","append")]:nt.$slots.append,[i(m).bm("group","prepend")]:nt.$slots.prepend}]),style:ze(F.value),onMouseenter:Ze,onMouseleave:lt},[re(" input "),e.type!=="textarea"?(E(),D(Ve,{key:0},[re(" prepend slot "),nt.$slots.prepend?(E(),D("div",{key:0,class:R(i(m).be("group","prepend"))},[oe(nt.$slots,"prepend")],2)):re("v-if",!0),z("div",{ref_key:"wrapperRef",ref:$,class:R(u.value)},[re(" prefix slot "),nt.$slots.prefix||e.prefixIcon?(E(),D("span",{key:0,class:R(i(m).e("prefix"))},[z("span",{class:R(i(m).e("prefix-inner"))},[oe(nt.$slots,"prefix"),e.prefixIcon?(E(),le(i(De),{key:0,class:R(i(m).e("icon"))},{default:ne(()=>[(E(),le(it(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),z("input",pt({id:i(g),ref_key:"input",ref:w,class:i(m).e("inner")},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,type:e.showPassword?k.value?"text":"password":e.type,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:ft[0]||(ft[0]=(...me)=>i(Te)&&i(Te)(...me)),onCompositionupdate:ft[1]||(ft[1]=(...me)=>i(be)&&i(be)(...me)),onCompositionend:ft[2]||(ft[2]=(...me)=>i(Pe)&&i(Pe)(...me)),onInput:Le,onChange:_e,onKeydown:gt}),null,16,HD),re(" suffix slot "),ue.value?(E(),D("span",{key:1,class:R(i(m).e("suffix"))},[z("span",{class:R(i(m).e("suffix-inner"))},[J.value?(E(),le(i(De),{key:0,class:R([i(m).e("icon"),i(m).e("clear")]),style:ze({visibility:ee.value?"visible":"hidden"}),onMousedown:Xe(i(ut),["prevent"]),onClick:zt},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class","style","onMousedown"])):re("v-if",!0),!ee.value||!ae.value||!ce.value?(E(),D(Ve,{key:1},[oe(nt.$slots,"suffix"),e.suffixIcon?(E(),le(i(De),{key:0,class:R(i(m).e("icon"))},{default:ne(()=>[(E(),le(it(e.suffixIcon)))]),_:1},8,["class"])):re("v-if",!0)],64)):re("v-if",!0),ae.value?(E(),le(i(De),{key:2,class:R([i(m).e("icon"),i(m).e("password")]),onClick:He,onMousedown:Xe(i(ut),["prevent"]),onMouseup:Xe(i(ut),["prevent"])},{default:ne(()=>[oe(nt.$slots,"password-icon",{visible:k.value},()=>[(E(),le(it(V.value)))])]),_:3},8,["class","onMousedown","onMouseup"])):re("v-if",!0),ce.value?(E(),D("span",{key:3,class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},[z("span",{class:R(i(m).e("count-inner"))},Ce(Z.value)+" / "+Ce(d.value),3)],2)):re("v-if",!0),A.value&&P.value&&W.value?(E(),le(i(De),{key:4,class:R([i(m).e("icon"),i(m).e("validateIcon"),i(m).is("loading",A.value==="validating")])},{default:ne(()=>[(E(),le(it(P.value)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),nt.$slots.append?(E(),D("div",{key:1,class:R(i(m).be("group","append"))},[oe(nt.$slots,"append")],2)):re("v-if",!0)],64)):(E(),D(Ve,{key:1},[re(" textarea "),z("textarea",pt({id:i(g),ref_key:"textarea",ref:y,class:[i(b).e("inner"),i(m).is("focus",i(B)),i(b).is("clearable",e.clearable)]},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,tabindex:e.tabindex,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,style:H.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:ft[3]||(ft[3]=(...me)=>i(Te)&&i(Te)(...me)),onCompositionupdate:ft[4]||(ft[4]=(...me)=>i(be)&&i(be)(...me)),onCompositionend:ft[5]||(ft[5]=(...me)=>i(Pe)&&i(Pe)(...me)),onInput:Le,onFocus:ft[6]||(ft[6]=(...me)=>i(K)&&i(K)(...me)),onBlur:ft[7]||(ft[7]=(...me)=>i(j)&&i(j)(...me)),onChange:_e,onKeydown:gt}),null,16,KD),ee.value?(E(),le(i(De),{key:0,class:R([i(b).e("icon"),i(b).e("clear")]),style:ze(O.value),onMousedown:Xe(i(ut),["prevent"]),onClick:zt},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class","style","onMousedown"])):re("v-if",!0),ce.value?(E(),D("span",{key:1,style:ze(x.value),class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},Ce(Z.value)+" / "+Ce(d.value),7)):re("v-if",!0)],64))],38))}}),jD=WD;const Un=st(jD),UD=Ee({...Am,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:G(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:G([Function,Array]),default:ut},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:Kt.popperOptions,showArrow:{type:Boolean,default:!0},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:Kt.teleported,appendTo:Kt.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),qD={[at]:e=>Ae(e)||Be(e),[Tn]:e=>Ae(e)||Be(e),[yt]:e=>Ae(e)||Be(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>ot(e)},YD=Ee({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:G([String,Object,Array,Boolean]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:G([String,Object,Array,Boolean]),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,...ia(["ariaLabel","ariaOrientation"])}),au={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Be)},HC={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"}},GD=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),XD=Ee({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Lm=Symbol("scrollbarContextKey");function Vo(e,t,n=.03){return e-t>n}const JD=Ee({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),ZD="Thumb";var QD=se({__name:"thumb",props:XD,setup(e){const t=e,n=$e(Lm),a=ge("scrollbar");n||sn(ZD,"can not inject scrollbar context");const o=M(),r=M(),s=M({}),l=M(!1);let u=!1,c=!1,d=0,f=0,p=Lt?document.onselectstart:null;const g=C(()=>HC[t.vertical?"vertical":"horizontal"]),h=C(()=>GD({size:t.size,move:t.move,bar:g.value})),v=C(()=>o.value[g.value.offset]**2/n.wrapElement[g.value.scrollSize]/t.ratio/r.value[g.value.offset]),m=T=>{if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;window.getSelection()?.removeAllRanges(),w(T);const I=T.currentTarget;I&&(s.value[g.value.axis]=I[g.value.offset]-(T[g.value.client]-I.getBoundingClientRect()[g.value.direction]))},b=T=>{if(!r.value||!o.value||!n.wrapElement)return;const I=(Math.abs(T.target.getBoundingClientRect()[g.value.direction]-T[g.value.client])-r.value[g.value.offset]/2)*100*v.value/o.value[g.value.offset];n.wrapElement[g.value.scroll]=I*n.wrapElement[g.value.scrollSize]/100},w=T=>{T.stopImmediatePropagation(),u=!0,d=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),p=document.onselectstart,document.onselectstart=()=>!1},y=T=>{if(!o.value||!r.value||u===!1)return;const I=s.value[g.value.axis];if(!I)return;const _=((o.value.getBoundingClientRect()[g.value.direction]-T[g.value.client])*-1-(r.value[g.value.offset]-I))*100*v.value/o.value[g.value.offset];g.value.scroll==="scrollLeft"?n.wrapElement[g.value.scroll]=_*f/100:n.wrapElement[g.value.scroll]=_*d/100},S=()=>{u=!1,s.value[g.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",S),O(),c&&(l.value=!1)},k=()=>{c=!1,l.value=!!t.size},x=()=>{c=!0,l.value=u};Vt(()=>{O(),document.removeEventListener("mouseup",S)});const O=()=>{document.onselectstart!==p&&(document.onselectstart=p)};return Bt(Ht(n,"scrollbarElement"),"mousemove",k),Bt(Ht(n,"scrollbarElement"),"mouseleave",x),(T,I)=>(E(),le(Yn,{name:i(a).b("fade"),persisted:""},{default:ne(()=>[ct(z("div",{ref_key:"instance",ref:o,class:R([i(a).e("bar"),i(a).is(g.value.key)]),onMousedown:b,onClick:I[0]||(I[0]=Xe(()=>{},["stop"]))},[z("div",{ref_key:"thumb",ref:r,class:R(i(a).e("thumb")),style:ze(h.value),onMousedown:m},null,38)],34),[[$t,e.always||l.value]])]),_:1},8,["name"]))}}),ty=QD,e5=se({__name:"bar",props:JD,setup(e,{expose:t}){const n=e,a=$e(Lm),o=M(0),r=M(0),s=M(""),l=M(""),u=M(1),c=M(1);return t({handleScroll:p=>{if(p){const g=p.offsetHeight-4,h=p.offsetWidth-4;r.value=p.scrollTop*100/g*u.value,o.value=p.scrollLeft*100/h*c.value}},update:()=>{const p=a?.wrapElement;if(!p)return;const g=p.offsetHeight-4,h=p.offsetWidth-4,v=g**2/p.scrollHeight,m=h**2/p.scrollWidth,b=Math.max(v,n.minSize),w=Math.max(m,n.minSize);u.value=v/(g-v)/(b/(g-b)),c.value=m/(h-m)/(w/(h-w)),l.value=b+4(E(),D(Ve,null,[X(ty,{move:o.value,ratio:c.value,size:s.value,always:e.always},null,8,["move","ratio","size","always"]),X(ty,{move:r.value,ratio:u.value,size:l.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),t5=e5;const n5=["tabindex"],cp="ElScrollbar";var a5=se({name:cp,__name:"scrollbar",props:YD,emits:au,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("scrollbar");let s,l,u,c=0,d=0,f="";const p={bottom:!1,top:!1,right:!1,left:!1},g=M(),h=M(),v=M(),m=M(),b=C(()=>{const $={},B=hn(a.height),K=hn(a.maxHeight);return B&&($.height=B),K&&($.maxHeight=K),[a.wrapStyle,$]}),w=C(()=>[a.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!a.native}]),y=C(()=>[r.e("view"),a.viewClass]),S=$=>p[$]??!1,k={top:"bottom",bottom:"top",left:"right",right:"left"},x=$=>{const B=k[f];if(!B)return;const K=$[f],j=$[B];K&&!p[f]&&(p[f]=!0),!j&&p[B]&&(p[B]=!1)},O=()=>{if(h.value){m.value?.handleScroll(h.value);const $=c,B=d;c=h.value.scrollTop,d=h.value.scrollLeft;const K={bottom:!Vo(h.value.scrollHeight-a.distance,h.value.clientHeight+c),top:c<=a.distance&&$!==0,right:!Vo(h.value.scrollWidth-a.distance,h.value.clientWidth+d)&&B!==d,left:d<=a.distance&&B!==0};if(o("scroll",{scrollTop:c,scrollLeft:d}),$!==c&&(f=c>$?"bottom":"top"),B!==d&&(f=d>B?"right":"left"),a.distance>0){if(S(f))return;x(K)}K[f]&&o("end-reached",f)}};function T($,B){ot($)?h.value.scrollTo($):Be($)&&Be(B)&&h.value.scrollTo($,B)}const I=$=>{if(!Be($)){jt(cp,"value must be a number");return}h.value.scrollTop=$},_=$=>{if(!Be($)){jt(cp,"value must be a number");return}h.value.scrollLeft=$},N=()=>{m.value?.update(),p[f]=!1,h.value&&m.value?.handleScroll(h.value)};return pe(()=>a.noresize,$=>{$?(s?.(),l?.(),u?.()):({stop:s}=an(v,N),{stop:l}=an(h,N),u=Bt("resize",N))},{immediate:!0}),pe(()=>[a.maxHeight,a.height],()=>{a.native||Ne(()=>{N()})}),St(Lm,Dt({scrollbarElement:g,wrapElement:h})),gu(()=>{h.value&&(h.value.scrollTop=c,h.value.scrollLeft=d)}),ht(()=>{a.native||Ne(()=>{N()})}),bo(()=>N()),t({wrapRef:h,update:N,scrollTo:T,setScrollTop:I,setScrollLeft:_,handleScroll:O}),($,B)=>(E(),D("div",{ref_key:"scrollbarRef",ref:g,class:R(i(r).b())},[z("div",{ref_key:"wrapRef",ref:h,class:R(w.value),style:ze(b.value),tabindex:e.tabindex,onScroll:O},[(E(),le(it(e.tag),{id:e.id,ref_key:"resizeRef",ref:v,class:R(y.value),style:ze(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:ne(()=>[oe($.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,n5),e.native?re("v-if",!0):(E(),le(t5,{key:0,ref_key:"barRef",ref:m,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),o5=a5;const vo=st(o5),r5=["aria-expanded","aria-owns"],s5={key:0},l5=["id","aria-selected","onClick"],ny="ElAutocomplete";var i5=se({name:ny,inheritAttrs:!1,__name:"autocomplete",props:UD,emits:qD,setup(e,{expose:t,emit:n}){const a=e,o=n,r=C(()=>{const Y=Un.props??[];return hr(a,we(Y)?Y:Object.keys(Y))}),s=wr(),l=un(),u=ge("autocomplete"),c=M(),d=M(),f=M(),p=M();let g=!1,h=!1;const v=M([]),m=M(-1),b=M(""),w=M(!1),y=M(!1),S=M(!1),k=Gn(),x=C(()=>s.style),O=C(()=>(v.value.length>0||S.value)&&w.value),T=C(()=>!a.hideLoading&&S.value),I=C(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),_=()=>{O.value&&(b.value=`${c.value.$el.offsetWidth}px`)},N=()=>{m.value=-1},$=async Y=>{if(y.value)return;const Q=L=>{S.value=!1,!y.value&&(we(L)?(v.value=L,m.value=a.highlightFirstItem?0:-1):sn(ny,"autocomplete suggestions must be an array"))};if(S.value=!0,we(a.fetchSuggestions))Q(a.fetchSuggestions);else{const L=await a.fetchSuggestions(Y,Q);we(L)&&Q(L)}},B=xu($,C(()=>a.debounce)),K=Y=>{const Q=!!Y;if(o(Tn,Y),o(at,Y),y.value=!1,w.value||(w.value=Q),!a.triggerOnFocus&&!Y){y.value=!0,v.value=[];return}B(Y)},j=Y=>{l.value||(Y.target?.tagName!=="INPUT"||I.value.includes(document.activeElement))&&(w.value=!0)},W=Y=>{o(yt,Y)},A=Y=>{if(h)h=!1;else{w.value=!0,o("focus",Y);const Q=a.modelValue??"";a.triggerOnFocus&&!g&&B(String(Q))}},P=Y=>{setTimeout(()=>{if(f.value?.isFocusInsideContent()){h=!0;return}w.value&&U(),o("blur",Y)})},V=()=>{w.value=!1,o(at,""),o("clear")},F=async()=>{c.value?.isComposing||(O.value&&m.value>=0&&m.value{O.value&&(Y.preventDefault(),Y.stopPropagation(),U())},U=()=>{w.value=!1},J=()=>{c.value?.focus()},ee=()=>{c.value?.blur()},ae=async Y=>{o(Tn,Y[a.valueKey]),o(at,Y[a.valueKey]),o("select",Y),v.value=[],m.value=-1},ce=Y=>{if(!O.value||S.value)return;if(Y<0){if(!a.loopNavigation){m.value=-1;return}Y=v.value.length-1}Y>=v.value.length&&(Y=a.loopNavigation?0:v.value.length-1);const[Q,L]=Z(),q=L[Y],te=Q.scrollTop,{offsetTop:fe,scrollHeight:he}=q;fe+he>te+Q.clientHeight&&(Q.scrollTop=fe+he-Q.clientHeight),fe{const Y=d.value.querySelector(`.${u.be("suggestion","wrap")}`);return[Y,Y.querySelectorAll(`.${u.be("suggestion","list")} li`)]},de=sm(p,Y=>{if(f.value?.isFocusInsideContent())return;const Q=h;h=!1,O.value&&(Q?P(new FocusEvent("blur",Y)):U())}),ue=Y=>{switch(qt(Y)){case Se.up:Y.preventDefault(),ce(m.value-1);break;case Se.down:Y.preventDefault(),ce(m.value+1);break;case Se.enter:case Se.numpadEnter:Y.preventDefault(),F();break;case Se.tab:U();break;case Se.esc:H(Y);break;case Se.home:Y.preventDefault(),ce(0);break;case Se.end:Y.preventDefault(),ce(v.value.length-1);break;case Se.pageUp:Y.preventDefault(),ce(Math.max(0,m.value-10));break;case Se.pageDown:Y.preventDefault(),ce(Math.min(v.value.length-1,m.value+10));break}};return Vt(()=>{de?.()}),ht(()=>{const Y=c.value?.ref;Y&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:k.value},{key:"aria-activedescendant",value:`${k.value}-item-${m.value}`}].forEach(({key:Q,value:L})=>Y.setAttribute(Q,L)),g=Y.hasAttribute("readonly"))}),t({highlightedIndex:m,activated:w,loading:S,inputRef:c,popperRef:f,suggestions:v,handleSelect:ae,handleKeyEnter:F,focus:J,blur:ee,close:U,highlight:ce,getData:$}),(Y,Q)=>(E(),le(i(Wn),{ref_key:"popperRef",ref:f,visible:O.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[i(u).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"show-arrow":e.showArrow,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${i(u).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:_,onHide:N},{content:ne(()=>[z("div",{ref_key:"regionRef",ref:d,class:R([i(u).b("suggestion"),i(u).is("loading",T.value)]),style:ze({[e.fitInputWidth?"width":"minWidth"]:b.value,outline:"none"}),role:"region"},[Y.$slots.header?(E(),D("div",{key:0,class:R(i(u).be("suggestion","header")),onClick:Q[0]||(Q[0]=Xe(()=>{},["stop"]))},[oe(Y.$slots,"header")],2)):re("v-if",!0),X(i(vo),{id:i(k),tag:"ul","wrap-class":i(u).be("suggestion","wrap"),"view-class":i(u).be("suggestion","list"),role:"listbox"},{default:ne(()=>[T.value?(E(),D("li",s5,[oe(Y.$slots,"loading",{},()=>[X(i(De),{class:R(i(u).is("loading"))},{default:ne(()=>[X(i(ho))]),_:1},8,["class"])])])):(E(!0),D(Ve,{key:1},kt(v.value,(L,q)=>(E(),D("li",{id:`${i(k)}-item-${q}`,key:q,class:R({highlighted:m.value===q}),role:"option","aria-selected":m.value===q,onClick:te=>ae(L)},[oe(Y.$slots,"default",{item:L},()=>[wt(Ce(L[e.valueKey]),1)])],10,l5))),128))]),_:3},8,["id","wrap-class","view-class"]),Y.$slots.footer?(E(),D("div",{key:1,class:R(i(u).be("suggestion","footer")),onClick:Q[1]||(Q[1]=Xe(()=>{},["stop"]))},[oe(Y.$slots,"footer")],2)):re("v-if",!0)],6)]),default:ne(()=>[z("div",{ref_key:"listboxRef",ref:p,class:R([i(u).b(),Y.$attrs.class]),style:ze(x.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":O.value,"aria-owns":i(k)},[X(i(Un),pt({ref_key:"inputRef",ref:c},pt(r.value,Y.$attrs),{"model-value":e.modelValue,disabled:i(l),onInput:K,onChange:W,onFocus:A,onBlur:P,onClear:V,onKeydown:ue,onMousedown:j}),ma({_:2},[Y.$slots.prepend?{name:"prepend",fn:ne(()=>[oe(Y.$slots,"prepend")]),key:"0"}:void 0,Y.$slots.append?{name:"append",fn:ne(()=>[oe(Y.$slots,"append")]),key:"1"}:void 0,Y.$slots.prefix?{name:"prefix",fn:ne(()=>[oe(Y.$slots,"prefix")]),key:"2"}:void 0,Y.$slots.suffix?{name:"suffix",fn:ne(()=>[oe(Y.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,r5)]),_:3},8,["visible","placement","popper-class","popper-style","popper-options","show-arrow","teleported","append-to","transition"]))}}),u5=i5;const c5=st(u5),d5=Ee({size:{type:[Number,String],values:yo,validator:e=>Be(e)},shape:{type:String,values:["circle","square"]},icon:{type:Ut},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:G(String),default:"cover"}}),f5={error:e=>e instanceof Event},KC=Symbol("avatarGroupContextKey"),p5={size:{type:G([Number,String]),values:yo,validator:e=>Be(e)},shape:{type:G(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:G(String),default:"light"},placement:{type:G(String),values:jo,default:"top"},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,collapseClass:String,collapseStyle:{type:G([String,Array,Object,Boolean]),default:void 0}},h5=["src","alt","srcset"];var v5=se({name:"ElAvatar",__name:"avatar",props:d5,emits:f5,setup(e,{emit:t}){const n=e,a=t,o=$e(KC,void 0),r=ge("avatar"),s=M(!1),l=C(()=>n.size??o?.size),u=C(()=>n.shape??o?.shape??"circle"),c=C(()=>{const{icon:g}=n,h=[r.b()];return Ae(l.value)&&h.push(r.m(l.value)),g&&h.push(r.m("icon")),u.value&&h.push(r.m(u.value)),h}),d=C(()=>Be(l.value)?r.cssVarBlock({size:hn(l.value)}):void 0),f=C(()=>({objectFit:n.fit}));pe(()=>[n.src,n.srcSet],()=>s.value=!1);function p(g){s.value=!0,a("error",g)}return(g,h)=>(E(),D("span",{class:R(c.value),style:ze(d.value)},[(e.src||e.srcSet)&&!s.value?(E(),D("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:ze(f.value),onError:p},null,44,h5)):e.icon?(E(),le(i(De),{key:1},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1})):oe(g.$slots,"default",{key:2})],6))}}),WC=v5,jC=se({name:"ElAvatarGroup",props:p5,setup(e,{slots:t}){const n=ge("avatar-group");return St(KC,Dt({size:Ht(e,"size"),shape:Ht(e,"shape")})),()=>{const a=Aa(t.default?.()??[]);let o=a;if(e.collapseAvatars&&a.length>e.maxCollapseAvatars){o=a.slice(0,e.maxCollapseAvatars);const r=a.slice(e.maxCollapseAvatars);o.push(X(Wn,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>X(WC,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[wt("+ "),r.length]}),content:()=>X("div",{class:n.e("collapse-avatars")},[r.map((s,l)=>Zt(s)?Fo(s,{key:s.key??l}):s)])}))}return X("div",{class:n.b()},[o])}}});const m5=st(WC,{AvatarGroup:jC}),g5=ln(jC),b5={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},y5={click:e=>e instanceof MouseEvent},w5=(e,t,n)=>{const a=Tt(),o=Tt(),r=M(!1),s=()=>{a.value&&(r.value=a.value.scrollTop>=e.visibilityHeight)},l=u=>{a.value?.scrollTo({top:0,behavior:"smooth"}),t("click",u)};return Bt(o,"scroll",$S(s,300,!0)),ht(()=>{o.value=document,a.value=document.documentElement,e.target&&(a.value=document.querySelector(e.target)??void 0,a.value||sn(n,`target does not exist: ${e.target}`),o.value=a.value),s()}),{visible:r,handleClick:l}},ay="ElBacktop";var S5=se({name:ay,__name:"backtop",props:b5,emits:y5,setup(e,{emit:t}){const n=e,a=t,o=ge("backtop"),{handleClick:r,visible:s}=w5(n,a,ay),l=C(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(u,c)=>(E(),le(Yn,{name:`${i(o).namespace.value}-fade-in`},{default:ne(()=>[i(s)?(E(),D("div",{key:0,style:ze(l.value),class:R(i(o).b()),onClick:c[0]||(c[0]=Xe((...d)=>i(r)&&i(r)(...d),["stop"]))},[oe(u.$slots,"default",{},()=>[X(i(De),{class:R(i(o).e("icon"))},{default:ne(()=>[X(i(mP))]),_:1},8,["class"])])],6)):re("v-if",!0)]),_:3},8,["name"]))}}),C5=S5;const k5=st(C5),E5=Ee({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:G([String,Object,Array,Boolean]),default:void 0},offset:{type:G(Array),default:()=>[0,0]},badgeClass:{type:String}});var x5=se({name:"ElBadge",__name:"badge",props:E5,setup(e,{expose:t}){const n=e,a=ge("badge"),o=C(()=>n.isDot?"":Be(n.value)&&Be(n.max)?n.max[{backgroundColor:n.color,marginRight:hn(-n.offset[0]),marginTop:hn(n.offset[1])},n.badgeStyle??{}]);return t({content:o}),(s,l)=>(E(),D("div",{class:R(i(a).b())},[oe(s.$slots,"default"),X(Yn,{name:`${i(a).namespace.value}-zoom-in-center`},{default:ne(()=>[!e.hidden&&(o.value||e.isDot||s.$slots.content)?(E(),D("sup",{key:0,class:R([i(a).e("content"),i(a).em("content",e.type),i(a).is("fixed",!!s.$slots.default),i(a).is("dot",e.isDot),i(a).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:ze(r.value)},[oe(s.$slots,"content",{value:o.value},()=>[wt(Ce(o.value),1)])],6)):re("v-if",!0)]),_:3},8,["name"])],2))}}),T5=x5;const UC=st(T5),O5=Ee({separator:{type:String,default:"/"},separatorIcon:{type:Ut}}),qC=Symbol("breadcrumbKey"),_5=Ee({to:{type:G([String,Object]),default:""},replace:Boolean}),R5=["aria-label"];var I5=se({name:"ElBreadcrumb",__name:"breadcrumb",props:O5,setup(e){const{t}=xt(),n=e,a=ge("breadcrumb"),o=M();return St(qC,n),ht(()=>{const r=o.value.querySelectorAll(`.${a.e("item")}`);r.length&&r[r.length-1].setAttribute("aria-current","page")}),(r,s)=>(E(),D("div",{ref_key:"breadcrumb",ref:o,class:R(i(a).b()),"aria-label":i(t)("el.breadcrumb.label"),role:"navigation"},[oe(r.$slots,"default")],10,R5))}}),$5=I5,N5=se({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:_5,setup(e){const t=e,n=dt(),a=$e(qC,void 0),o=ge("breadcrumb"),r=n.appContext.config.globalProperties.$router,s=()=>{!t.to||!r||(t.replace?r.replace(t.to):r.push(t.to))};return(l,u)=>(E(),D("span",{class:R(i(o).e("item"))},[z("span",{class:R([i(o).e("inner"),i(o).is("link",!!e.to)]),role:"link",onClick:s},[oe(l.$slots,"default")],2),i(a)?.separatorIcon?(E(),le(i(De),{key:0,class:R(i(o).e("separator"))},{default:ne(()=>[(E(),le(it(i(a).separatorIcon)))]),_:1},8,["class"])):(E(),D("span",{key:1,class:R(i(o).e("separator")),role:"presentation"},Ce(i(a)?.separator),3))],2))}}),YC=N5;const M5=st($5,{BreadcrumbItem:YC}),P5=ln(YC),kh=["default","primary","success","warning","info","danger","text",""],A5=["button","submit","reset"],Eh=Ee({size:Nn,disabled:{type:Boolean,default:void 0},type:{type:String,values:kh,default:""},icon:{type:Ut},nativeType:{type:String,values:A5,default:"button"},loading:Boolean,loadingIcon:{type:Ut,default:()=>ho},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:G([String,Object]),default:"button"}}),L5={click:e=>e instanceof MouseEvent},GC=Symbol(),rd=M();function xr(e,t=void 0){const n=dt()?$e(GC,rd):rd;return e?C(()=>n.value?.[e]??t):n}function mf(e,t){const n=xr(),a=ge(e,C(()=>n.value?.namespace||"el")),o=xt(C(()=>n.value?.locale)),r=Iu(C(()=>n.value?.zIndex||2e3)),s=C(()=>i(t)||n.value?.size||"");return Dm(C(()=>i(n)||{})),{ns:a,locale:o,zIndex:r,size:s}}const Dm=(e,t,n=!1)=>{const a=!!dt(),o=a?xr():void 0,r=t?.provide??(a?St:void 0);if(!r){jt("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const s=C(()=>{const l=i(e);return o?.value?D5(o.value,l):l});return r(GC,s),r(FS,C(()=>s.value.locale)),r(zS,C(()=>s.value.namespace)),r(rC,C(()=>s.value.zIndex)),r(bC,{size:C(()=>s.value.size||"")}),r(wC,C(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!rd.value)&&(rd.value=s.value),s},D5=(e,t)=>{const n=[...new Set([...Ji(e),...Ji(t)])],a={};for(const o of n)a[o]=t[o]!==void 0?t[o]:e[o];return a},B5=Ee({a11y:{type:Boolean,default:!0},locale:{type:G(Object)},size:Nn,button:{type:G(Object)},card:{type:G(Object)},dialog:{type:G(Object)},link:{type:G(Object)},experimentalFeatures:{type:G(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:G(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:G(Object)},...zs}),ea={placement:"top"},V5=se({name:"ElConfigProvider",props:B5,setup(e,{slots:t}){const n=Dm(e);return pe(()=>e.message,a=>{Object.assign(ea,n?.value?.message??{},a??{})},{immediate:!0,deep:!0}),()=>oe(t,"default",{config:n?.value})}}),F5=st(V5),XC=Symbol("buttonGroupContextKey"),z5=(e,t)=>{Po({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},C(()=>e.type==="text"));const n=$e(XC,void 0),a=xr("button"),{form:o}=Fn(),r=In(C(()=>n?.size)),s=un(),l=M(),u=wn(),c=C(()=>e.type||n?.type||a.value?.type||""),d=C(()=>e.autoInsertSpace??a.value?.autoInsertSpace??!1),f=C(()=>e.plain??a.value?.plain??!1),p=C(()=>e.round??a.value?.round??!1),g=C(()=>e.text??a.value?.text??!1),h=C(()=>e.dashed??a.value?.dashed??!1),v=C(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=C(()=>{const w=u.default?.();if(d.value&&w?.length===1){const y=w[0];if(y?.type===Fl){const S=y.children;return/^\p{Unified_Ideograph}{2}$/u.test(S.trim())}}return!1});return{_disabled:s,_size:r,_type:c,_ref:l,_props:v,_plain:f,_round:p,_text:g,_dashed:h,shouldAddSpace:m,handleClick:w=>{if(s.value||e.loading){w.stopPropagation();return}e.nativeType==="reset"&&o?.resetFields(),t("click",w)}}};function Zn(e,t){H5(e)&&(e="100%");const n=K5(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function uc(e){return Math.min(1,Math.max(0,e))}function H5(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function K5(e){return typeof e=="string"&&e.indexOf("%")!==-1}function JC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function cc(e){return Number(e)<=1?`${Number(e)*100}%`:e}function vs(e){return e.length===1?"0"+e:String(e)}function W5(e,t,n){return{r:Zn(e,255)*255,g:Zn(t,255)*255,b:Zn(n,255)*255}}function oy(e,t,n){e=Zn(e,255),t=Zn(t,255),n=Zn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let r=0,s=0;const l=(a+o)/2;if(a===o)s=0,r=0;else{const u=a-o;switch(s=l>.5?u/(2-a-o):u/(a+o),a){case e:r=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function j5(e,t,n){let a,o,r;if(e=Zn(e,360),t=Zn(t,100),n=Zn(n,100),t===0)o=n,r=n,a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;a=dp(l,s,e+1/3),o=dp(l,s,e),r=dp(l,s,e-1/3)}return{r:a*255,g:o*255,b:r*255}}function ry(e,t,n){e=Zn(e,255),t=Zn(t,255),n=Zn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let r=0;const s=a,l=a-o,u=a===0?0:l/a;if(a===o)r=0;else{switch(a){case e:r=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}const xh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function J5(e){let t={r:0,g:0,b:0},n=1,a=null,o=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=eB(e)),typeof e=="object"&&(Ia(e.r)&&Ia(e.g)&&Ia(e.b)?(t=W5(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ia(e.h)&&Ia(e.s)&&Ia(e.v)?(a=cc(e.s),o=cc(e.v),t=U5(e.h,a,o),s=!0,l="hsv"):Ia(e.h)&&Ia(e.s)&&Ia(e.l)?(a=cc(e.s),r=cc(e.l),t=j5(e.h,a,r),s=!0,l="hsl"):Ia(e.c)&&Ia(e.m)&&Ia(e.y)&&Ia(e.k)&&(t=Y5(e.c,e.m,e.y,e.k),s=!0,l="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=JC(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const Z5="[-\\+]?\\d+%?",Q5="[-\\+]?\\d*\\.\\d+%?",Hr="(?:"+Q5+")|(?:"+Z5+")",fp="[\\s|\\(]+("+Hr+")[,|\\s]+("+Hr+")[,|\\s]+("+Hr+")\\s*\\)?",dc="[\\s|\\(]+("+Hr+")[,|\\s]+("+Hr+")[,|\\s]+("+Hr+")[,|\\s]+("+Hr+")\\s*\\)?",Wa={CSS_UNIT:new RegExp(Hr),rgb:new RegExp("rgb"+fp),rgba:new RegExp("rgba"+dc),hsl:new RegExp("hsl"+fp),hsla:new RegExp("hsla"+dc),hsv:new RegExp("hsv"+fp),hsva:new RegExp("hsva"+dc),cmyk:new RegExp("cmyk"+dc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function eB(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(xh[e])e=xh[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=Wa.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Wa.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Wa.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Wa.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Wa.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Wa.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Wa.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=Wa.hex8.exec(e),n?{r:$a(n[1]),g:$a(n[2]),b:$a(n[3]),a:iy(n[4]),format:t?"name":"hex8"}:(n=Wa.hex6.exec(e),n?{r:$a(n[1]),g:$a(n[2]),b:$a(n[3]),format:t?"name":"hex"}:(n=Wa.hex4.exec(e),n?{r:$a(n[1]+n[1]),g:$a(n[2]+n[2]),b:$a(n[3]+n[3]),a:iy(n[4]+n[4]),format:t?"name":"hex8"}:(n=Wa.hex3.exec(e),n?{r:$a(n[1]+n[1]),g:$a(n[2]+n[2]),b:$a(n[3]+n[3]),format:t?"name":"hex"}:!1))))))))))}function Ia(e){return typeof e=="number"?!Number.isNaN(e):Wa.CSS_UNIT.test(e)}class gn{constructor(t="",n={}){if(t instanceof gn)return t;typeof t=="number"&&(t=X5(t)),this.originalInput=t;const a=J5(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,a,o;const r=t.r/255,s=t.g/255,l=t.b/255;return r<=.03928?n=r/12.92:n=Math.pow((r+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*a+.0722*o}getAlpha(){return this.a}setAlpha(t){return this.a=JC(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=ry(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=ry(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${a}%, ${o}%)`:`hsva(${n}, ${a}%, ${o}%, ${this.roundA})`}toHsl(){const t=oy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=oy(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${a}%, ${o}%)`:`hsla(${n}, ${a}%, ${o}%, ${this.roundA})`}toHex(t=!1){return sy(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return q5(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),a=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${a})`:`rgba(${t}, ${n}, ${a}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(Zn(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(Zn(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return{...ly(this.r,this.g,this.b)}}toCmykString(){const{c:t,m:n,y:a,k:o}=ly(this.r,this.g,this.b);return`cmyk(${t}, ${n}, ${a}, ${o})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+sy(this.r,this.g,this.b,!1);for(const[n,a]of Object.entries(xh))if(t===a)return n;return!1}toString(t){const n=!!t;t=t??this.format;let a=!1;const o=this.a<1&&this.a>=0;return!n&&o&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),t==="cmyk"&&(a=this.toCmykString()),a||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new gn(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=uc(n.l),new gn(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new gn(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=uc(n.l),new gn(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=uc(n.s),new gn(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=uc(n.s),new gn(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new gn(n)}mix(t,n=50){const a=this.toRgb(),o=new gn(t).toRgb(),r=n/100,s={r:(o.r-a.r)*r+a.r,g:(o.g-a.g)*r+a.g,b:(o.b-a.b)*r+a.b,a:(o.a-a.a)*r+a.a};return new gn(s)}analogous(t=6,n=30){const a=this.toHsl(),o=360/n,r=[this];for(a.h=(a.h-(o*t>>1)+720)%360;--t;)a.h=(a.h+o)%360,r.push(new gn(a));return r}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new gn(t)}monochromatic(t=6){const n=this.toHsv(),{h:a}=n,{s:o}=n;let{v:r}=n;const s=[],l=1/t;for(;t--;)s.push(new gn({h:a,s:o,v:r})),r=(r+l)%1;return s}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new gn({h:(n+72)%360,s:t.s,l:t.l}),new gn({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),a=new gn(t).toRgb(),o=n.a+a.a*(1-n.a);return new gn({r:(n.r*n.a+a.r*a.a*(1-n.a))/o,g:(n.g*n.a+a.g*a.a*(1-n.a))/o,b:(n.b*n.a+a.b*a.a*(1-n.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:a}=n,o=[this],r=360/t;for(let s=1;s{let a={},o=e.color;if(o){const r=o.match(/var\((.*?)\)/);r&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(r[1]));const s=new gn(o),l=e.dark?s.tint(20).toString():xo(s,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?xo(s,90):s.tint(90).toString(),"text-color":o,"border-color":e.dark?xo(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":l,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?xo(s,90):s.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?xo(s,50):s.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?xo(s,80):s.tint(80).toString());else if(e.link||e.text){const u=e.dark?xo(s,30):s.tint(30).toString();if(a=n.cssVarBlock({"text-color":o,"hover-text-color":u,"active-text-color":l}),e.link&&(a[n.cssVarBlockName("hover-link-text-color")]=u,a[n.cssVarBlockName("active-color")]=l),t.value){const c=e.dark?xo(s,50):s.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]="transparent",a[n.cssVarBlockName("disabled-text-color")]=c,a[n.cssVarBlockName("disabled-border-color")]="transparent"}}else{const u=e.dark?xo(s,30):s.tint(30).toString(),c=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":u,"hover-text-color":c,"hover-border-color":u,"active-bg-color":l,"active-border-color":l}),t.value){const d=e.dark?xo(s,50):s.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=d,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=d}}}return a})}var nB=se({name:"ElButton",__name:"button",props:Eh,emits:L5,setup(e,{expose:t,emit:n}){const a=e,o=n,r=tB(a),s=ge("button"),{_ref:l,_size:u,_type:c,_disabled:d,_props:f,_plain:p,_round:g,_text:h,_dashed:v,shouldAddSpace:m,handleClick:b}=z5(a,o),w=C(()=>[s.b(),s.m(c.value),s.m(u.value),s.is("disabled",d.value),s.is("loading",a.loading),s.is("plain",p.value),s.is("round",g.value),s.is("circle",a.circle),s.is("text",h.value),s.is("dashed",v.value),s.is("link",a.link),s.is("has-bg",a.bg)]);return t({ref:l,size:u,type:c,disabled:d,shouldAddSpace:m}),(y,S)=>(E(),le(it(e.tag),pt({ref_key:"_ref",ref:l},i(f),{class:w.value,style:i(r),onClick:i(b)}),{default:ne(()=>[e.loading?(E(),D(Ve,{key:0},[y.$slots.loading?oe(y.$slots,"loading",{key:0}):(E(),le(i(De),{key:1,class:R(i(s).is("loading"))},{default:ne(()=>[(E(),le(it(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||y.$slots.icon?(E(),le(i(De),{key:1},{default:ne(()=>[e.icon?(E(),le(it(e.icon),{key:0})):oe(y.$slots,"icon",{key:1})]),_:3})):re("v-if",!0),y.$slots.default?(E(),D("span",{key:2,class:R({[i(s).em("text","expand")]:i(m)})},[oe(y.$slots,"default")],2)):re("v-if",!0)]),_:3},16,["class","style","onClick"]))}}),aB=nB;const oB={size:Eh.size,type:Eh.type,direction:{type:G(String),values:["horizontal","vertical"],default:"horizontal"}};var rB=se({name:"ElButtonGroup",__name:"button-group",props:oB,setup(e){const t=e;St(XC,Dt({size:Ht(t,"size"),type:Ht(t,"type")}));const n=ge("button");return(a,o)=>(E(),D("div",{class:R([i(n).b("group"),i(n).bm("group",t.direction)])},[oe(a.$slots,"default")],2))}}),ZC=rB;const Bn=st(aB,{ButtonGroup:ZC}),QC=ln(ZC),sB=e=>we(e)&&e.length===2&&e.every(t=>Ur(t)),lB=Ee({modelValue:{type:Date},range:{type:G(Array),validator:sB},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:G(Function)}}),iB={[at]:e=>Ur(e),[Tn]:e=>Ur(e)},uy=["hours","minutes","seconds"],Go="EP_PICKER_BASE",Bm="ElPopperOptions",ek=Symbol("commonPickerContextKey"),cy="HH:mm:ss",tl="YYYY-MM-DD",uB={date:tl,dates:tl,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${tl} ${cy}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:tl,datetimerange:`${tl} ${cy}`};var Tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tk={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){var n=1e3,a=6e4,o=36e5,r="millisecond",s="second",l="minute",u="hour",c="day",d="week",f="month",p="quarter",g="year",h="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var j=["th","st","nd","rd"],W=K%100;return"["+K+(j[(W-20)%10]||j[W]||j[0])+"]"}},y=function(K,j,W){var A=String(K);return!A||A.length>=j?K:""+Array(j+1-A.length).join(W)+K},S={s:y,z:function(K){var j=-K.utcOffset(),W=Math.abs(j),A=Math.floor(W/60),P=W%60;return(j<=0?"+":"-")+y(A,2,"0")+":"+y(P,2,"0")},m:function K(j,W){if(j.date()1)return K(F[0])}else{var H=j.name;x[H]=j,P=H}return!A&&P&&(k=P),P||!A&&k},_=function(K,j){if(T(K))return K.clone();var W=typeof j=="object"?j:{};return W.date=K,W.args=arguments,new $(W)},N=S;N.l=I,N.i=T,N.w=function(K,j){return _(K,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var $=function(){function K(W){this.$L=I(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[O]=!0}var j=K.prototype;return j.parse=function(W){this.$d=function(A){var P=A.date,V=A.utc;if(P===null)return new Date(NaN);if(N.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var F=P.match(m);if(F){var H=F[2]-1||0,U=(F[7]||"0").substring(0,3);return V?new Date(Date.UTC(F[1],H,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)):new Date(F[1],H,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)}}return new Date(P)}(W),this.init()},j.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},j.$utils=function(){return N},j.isValid=function(){return this.$d.toString()!==v},j.isSame=function(W,A){var P=_(W);return this.startOf(A)<=P&&P<=this.endOf(A)},j.isAfter=function(W,A){return _(W)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),nk=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),ak=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dy=function(e,t){const n=Ur(e),a=Ur(t);return n&&a?e.getTime()===t.getTime():!n&&!a?e===t:!1},ok=function(e,t){const n=we(e),a=we(t);return n&&a?e.length!==t.length?!1:e.every((o,r)=>dy(o,t[r])):!n&&!a?dy(e,t):!1},fy=function(e,t,n){const a=ha(t)||t==="x"?rt(e).locale(n):rt(e,t).locale(n);return a.isValid()?a:void 0},py=function(e,t,n){return ha(t)?e:t==="x"?+e:rt(e).locale(n).format(t)},hp=(e,t)=>{const n=[],a=t?.();for(let o=0;owe(e)?e.map(t=>t.toDate()):e.toDate(),Vm=Ee({disabledHours:{type:G(Function)},disabledMinutes:{type:G(Function)},disabledSeconds:{type:G(Function)}}),rk=Ee({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Fm=Ee({automaticDropdown:{type:Boolean,default:!0},id:{type:G([Array,String])},name:{type:G([Array,String])},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:G([String,Object]),default:Yo},editable:{type:Boolean,default:!0},saveOnBlur:{type:Boolean,default:!0},prefixIcon:{type:G([String,Object]),default:""},size:Nn,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:G(Object),default:()=>({})},modelValue:{type:G([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:G([Date,Array])},defaultTime:{type:G([Date,Array])},isRange:Boolean,...Vm,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:G([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,singlePanel:Boolean,placement:{type:G(String),values:jo,default:"bottom"},fallbackPlacements:{type:G(Array),default:["bottom","top","right","left"]},...zs,...ia(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),dB=Ee({id:{type:G(Array)},name:{type:G(Array)},modelValue:{type:G([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),sk=(e,t)=>{const{lang:n}=xt(),a=M(!1),o=M(!1),r=M(null),s=C(()=>{const{modelValue:h}=e;return!h||we(h)&&!h.filter(Boolean).length}),l=h=>{if(!ok(e.modelValue,h)){let v;we(h)?v=h.map(m=>py(m,e.valueFormat,n.value)):h&&(v=py(h,e.valueFormat,n.value)),t(at,h&&v,n.value)}},u=C(()=>{let h;if(s.value?c.value.getDefaultValue&&(h=c.value.getDefaultValue()):we(e.modelValue)?h=e.modelValue.map(v=>fy(v,e.valueFormat,n.value)):h=fy(e.modelValue??"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const v=c.value.getRangeAvailableTime(h);fn(v,h)||(h=v,s.value||l(Oc(h)))}return we(h)&&h.some(v=>!v)&&(h=[]),h}),c=M({});return{parsedValue:u,pickerActualVisible:o,pickerOptions:c,pickerVisible:a,userInput:r,valueIsEmpty:s,emitInput:l,onCalendarChange:h=>{t("calendar-change",h)},onPanelChange:(h,v,m)=>{t("panel-change",h,v,m)},onPick:(h="",v=!1)=>{a.value=v;let m;we(h)?m=h.map(b=>b.toDate()):m=h&&h.toDate(),r.value=null,l(m)},onSetPickerOption:h=>{c.value[h[0]]=h[1],c.value.panelReady=!0}}},fB=["id","name","placeholder","value","disabled"],pB=["id","name","placeholder","value","disabled"];var hB=se({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:dB,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:r}=Fn(),{inputId:s}=_a(Dt({id:C(()=>a.id?.[0])}),{formItemContext:r}),l=ef(),u=ge("date"),c=ge("range"),d=M(),f=M(),{wrapperRef:p,isFocused:g}=Er(d,{disabled:C(()=>a.disabled)}),h=T=>{o("click",T)},v=T=>{o("mouseenter",T)},m=T=>{o("mouseleave",T)},b=T=>{o("touchstart",T)},w=T=>{o("startInput",T)},y=T=>{o("endInput",T)},S=T=>{o("startChange",T)},k=T=>{o("endChange",T)};return t({focus:()=>{d.value?.focus()},blur:()=>{d.value?.blur(),f.value?.blur()}}),(T,I)=>(E(),D("div",{ref_key:"wrapperRef",ref:p,class:R([i(u).is("active",i(g)),T.$attrs.class]),style:ze(T.$attrs.style),onClick:h,onMouseenter:v,onMouseleave:m,onTouchstartPassive:b},[oe(T.$slots,"prefix"),z("input",pt(i(l),{id:i(s),ref_key:"inputRef",ref:d,name:T.name&&T.name[0],placeholder:T.startPlaceholder,value:T.modelValue&&T.modelValue[0],class:i(c).b("input"),disabled:T.disabled,onInput:w,onChange:S}),null,16,fB),oe(T.$slots,"range-separator"),z("input",pt(i(l),{id:T.id&&T.id[1],ref_key:"endInputRef",ref:f,name:T.name&&T.name[1],placeholder:T.endPlaceholder,value:T.modelValue&&T.modelValue[1],class:i(c).b("input"),disabled:T.disabled,onInput:y,onChange:k}),null,16,pB),oe(T.$slots,"suffix")],38))}}),vB=hB,mB=se({name:"Picker",__name:"picker",props:Fm,emits:[at,yt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const a=e,o=n,r=wr(),s=ge("date"),l=ge("input"),u=ge("range"),{formItem:c}=Fn(),d=$e(Bm,{}),f=Au(a,null),p=M(),g=M(),h=M(null);let v=!1;const m=un(),b=sk(a,o),{parsedValue:w,pickerActualVisible:y,userInput:S,pickerVisible:k,pickerOptions:x,valueIsEmpty:O,emitInput:T,onPick:I,onSetPickerOption:_,onCalendarChange:N,onPanelChange:$}=b,{isFocused:B,handleFocus:K,handleBlur:j}=Er(g,{disabled:m,beforeFocus(){return a.readonly},afterFocus(){a.automaticDropdown&&(k.value=!0)},beforeBlur(ie){return!v&&p.value?.isFocusInsideContent(ie)},afterBlur(){Y.value&&!a.saveOnBlur?O.value||x.value.handleCancel?.():He(),k.value=!1,v=!1,a.validateEvent&&c?.validate("blur").catch(ut)}}),W=M(!1),A=C(()=>[s.b("editor"),s.bm("editor",a.type),l.e("wrapper"),s.is("disabled",m.value),s.is("active",k.value),u.b("editor"),Te?u.bm("editor",Te.value):"",r.class]),P=C(()=>[l.e("icon"),u.e("close-icon"),fe.value?"":u.em("close-icon","hidden")]);pe(k,ie=>{ie?Ne(()=>{ie&&(h.value=a.modelValue)}):(S.value=null,Ne(()=>{V(a.modelValue)}))});const V=(ie,xe)=>{(xe||!ok(ie,h.value))&&(o(yt,ie),xe&&(h.value=ie),a.validateEvent&&c?.validate("change").catch(ut))},F=ie=>{o("keydown",ie)},H=C(()=>g.value?Array.from(g.value.$el.querySelectorAll("input")):[]),U=(ie,xe,Ue)=>{const et=H.value;et.length&&(!Ue||Ue==="min"?(et[0].setSelectionRange(ie,xe),et[0].focus()):Ue==="max"&&(et[1].setSelectionRange(ie,xe),et[1].focus()))},J=()=>{y.value=!0},ee=()=>{o("visible-change",!0)},ae=()=>{y.value=!1,k.value=!1,o("visible-change",!1)},ce=()=>{k.value=!0},Z=()=>{k.value=!1},de=C(()=>{const ie=Qe(w.value);return we(S.value)?[S.value[0]??(ie&&ie[0])??"",S.value[1]??(ie&&ie[1])??""]:S.value!==null?S.value:Y.value&&O.value&&!a.saveOnBlur||!Y.value&&O.value||!k.value&&O.value?"":ie?Q.value||L.value||q.value?ie.join(", "):ie:""}),ue=C(()=>a.type.includes("time")),Y=C(()=>a.type.startsWith("time")),Q=C(()=>a.type==="dates"),L=C(()=>a.type==="months"),q=C(()=>a.type==="years"),te=C(()=>a.prefixIcon||(ue.value?EC:fP)),fe=C(()=>a.clearable&&!m.value&&!a.readonly&&!O.value&&(W.value||B.value)),he=ie=>{a.readonly||m.value||(fe.value&&(ie?.stopPropagation(),x.value.handleClear?x.value.handleClear():T(f.valueOnClear.value),V(f.valueOnClear.value,!0),ae()),o("clear"))},ve=async ie=>{a.readonly||m.value||(ie.target?.tagName!=="INPUT"||B.value||!a.automaticDropdown)&&(k.value=!0)},Ie=()=>{a.readonly||m.value||!O.value&&a.clearable&&(W.value=!0)},Le=()=>{W.value=!1},_e=ie=>{a.readonly||m.value||(ie.touches[0].target?.tagName!=="INPUT"||B.value||!a.automaticDropdown)&&(k.value=!0)},ye=C(()=>a.type.includes("range")),Te=In(),be=C(()=>i(p)?.popperRef?.contentRef),Pe=sm(g,ie=>{const xe=i(be),Ue=Rn(g);xe&&(ie.target===xe||ie.composedPath().includes(xe))||ie.target===Ue||Ue&&ie.composedPath().includes(Ue)||(k.value=!1)});Vt(()=>{Pe?.()});const He=()=>{if(Y.value&&!a.saveOnBlur)return;const ie=we(S.value)&&S.value.every(xe=>xe==="");if(S.value&&!ie){const xe=Je(de.value);xe&&(lt(xe)&&T(Oc(xe)),S.value=null)}(S.value===""||ie)&&(T(f.valueOnClear.value),V(f.valueOnClear.value,!0),S.value=null)},Je=ie=>ie?x.value.parseUserInput(ie):null,Qe=ie=>ie?we(ie)?ie.map(xe=>xe.format(a.format)):ie.format(a.format):null,lt=ie=>x.value.isValidValue(ie),Ze=async ie=>{if(a.readonly||m.value)return;const xe=qt(ie);if(F(ie),xe===Se.esc){k.value===!0&&(k.value=!1,ie.preventDefault(),ie.stopPropagation());return}if(xe===Se.down&&(x.value.handleFocusPicker&&(ie.preventDefault(),ie.stopPropagation()),k.value===!1&&(k.value=!0,await Ne()),x.value.handleFocusPicker)){x.value.handleFocusPicker();return}if(xe===Se.tab){v=!0;return}if(xe===Se.enter||xe===Se.numpadEnter){k.value?(S.value===null||S.value===""||lt(Je(de.value)))&&(He(),k.value=!1):k.value=!0,ie.preventDefault(),ie.stopPropagation();return}if(S.value){ie.stopPropagation();return}x.value.handleKeydownInput&&x.value.handleKeydownInput(ie)},gt=ie=>{S.value=ie,k.value||(k.value=!0)},Pt=ie=>{const xe=ie.target;S.value?S.value=[xe.value,S.value[1]]:S.value=[xe.value,null]},zt=ie=>{const xe=ie.target;S.value?S.value=[S.value[0],xe.value]:S.value=[null,xe.value]},nt=()=>{const ie=S.value,xe=Je(ie&&ie[0]),Ue=i(w);if(xe&&xe.isValid()){S.value=[Qe(xe),de.value?.[1]||null];const et=[xe,Ue&&(Ue[1]||null)];lt(et)&&(T(Oc(et)),S.value=null)}},ft=()=>{const ie=i(S),xe=Je(ie&&ie[1]),Ue=i(w);if(xe&&xe.isValid()){S.value=[i(de)?.[0]||null,Qe(xe)];const et=[Ue&&Ue[0],xe];lt(et)&&(T(Oc(et)),S.value=null)}},me=()=>{g.value?.focus()},je=()=>{g.value?.blur()};return St(Go,{props:a,emptyValues:f}),St(ek,b),t({focus:me,blur:je,handleOpen:ce,handleClose:Z,onPick:I}),(ie,xe)=>(E(),le(i(Wn),pt({ref_key:"refPopper",ref:p,visible:i(k),effect:"light",pure:"",trigger:"click"},ie.$attrs,{role:"dialog",teleported:"",transition:`${i(s).namespace.value}-zoom-in-top`,"popper-class":[`${i(s).namespace.value}-picker__popper`,ie.popperClass],"popper-style":ie.popperStyle,"popper-options":i(d),"fallback-placements":ie.fallbackPlacements,"gpu-acceleration":!1,placement:ie.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:J,onShow:ee,onHide:ae}),{default:ne(()=>[ye.value?(E(),le(vB,{key:1,id:ie.id,ref_key:"inputRef",ref:g,"model-value":de.value,name:ie.name,disabled:i(m),readonly:!ie.editable||ie.readonly,"start-placeholder":ie.startPlaceholder,"end-placeholder":ie.endPlaceholder,class:R(A.value),style:ze(ie.$attrs.style),"aria-label":ie.ariaLabel,tabindex:ie.tabindex,autocomplete:"off",role:"combobox",onClick:ve,onFocus:i(K),onBlur:i(j),onStartInput:Pt,onStartChange:nt,onEndInput:zt,onEndChange:ft,onMousedown:ve,onMouseenter:Ie,onMouseleave:Le,onTouchstartPassive:_e,onKeydown:Ze},{prefix:ne(()=>[te.value?(E(),le(i(De),{key:0,class:R([i(l).e("icon"),i(u).e("icon")])},{default:ne(()=>[(E(),le(it(te.value)))]),_:1},8,["class"])):re("v-if",!0)]),"range-separator":ne(()=>[oe(ie.$slots,"range-separator",{},()=>[z("span",{class:R(i(u).b("separator"))},Ce(ie.rangeSeparator),3)])]),suffix:ne(()=>[ie.clearIcon?(E(),le(i(De),{key:0,class:R(P.value),onMousedown:Xe(i(ut),["prevent"]),onClick:he},{default:ne(()=>[(E(),le(it(ie.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(E(),le(i(Un),{key:0,id:ie.id,ref_key:"inputRef",ref:g,"container-role":"combobox","model-value":de.value,name:ie.name,size:i(Te),disabled:i(m),placeholder:ie.placeholder,class:R([i(s).b("editor"),i(s).bm("editor",ie.type),i(s).is("focus",i(k)),ie.$attrs.class]),style:ze(ie.$attrs.style),readonly:!ie.editable||ie.readonly||Q.value||L.value||q.value||ie.type==="week","aria-label":ie.ariaLabel,tabindex:ie.tabindex,"validate-event":!1,onInput:gt,onFocus:i(K),onBlur:i(j),onKeydown:Ze,onChange:He,onMousedown:ve,onMouseenter:Ie,onMouseleave:Le,onTouchstartPassive:_e,onClick:xe[0]||(xe[0]=Xe(()=>{},["stop"]))},{prefix:ne(()=>[te.value?(E(),le(i(De),{key:0,class:R(i(l).e("icon")),onMousedown:Xe(ve,["prevent"]),onTouchstartPassive:_e},{default:ne(()=>[(E(),le(it(te.value)))]),_:1},8,["class"])):re("v-if",!0)]),suffix:ne(()=>[fe.value&&ie.clearIcon?(E(),le(i(De),{key:0,class:R(`${i(l).e("icon")} clear-icon`),onMousedown:Xe(i(ut),["prevent"]),onClick:he},{default:ne(()=>[(E(),le(it(ie.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:ne(()=>[oe(ie.$slots,"default",{visible:i(k),actualVisible:i(y),parsedValue:i(w),format:ie.format,dateFormat:ie.dateFormat,timeFormat:ie.timeFormat,unlinkPanels:ie.unlinkPanels,type:ie.type,defaultValue:ie.defaultValue,showNow:ie.showNow,showConfirm:ie.showConfirm,showFooter:ie.showFooter,showWeekNumber:ie.showWeekNumber,singlePanel:ie.singlePanel,onPick:xe[1]||(xe[1]=(...Ue)=>i(I)&&i(I)(...Ue)),onSelectRange:U,onSetPickerOption:xe[2]||(xe[2]=(...Ue)=>i(_)&&i(_)(...Ue)),onCalendarChange:xe[3]||(xe[3]=(...Ue)=>i(N)&&i(N)(...Ue)),onClear:he,onPanelChange:xe[4]||(xe[4]=(...Ue)=>i($)&&i($)(...Ue)),onMousedown:xe[5]||(xe[5]=Xe(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}}),lk=mB;const Ar=new Map;if(Lt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Ar.values())for(const{documentHandler:a}of n)a(t,e);e=void 0}})}function hy(e,t){let n=[];return we(t.arg)?n=t.arg:ka(t.arg)&&n.push(t.arg),function(a,o){const r=t.instance.popperRef,s=a.target,l=o?.target,u=!t||!t.instance,c=!s||!l,d=e.contains(s)||e.contains(l),f=e===s,p=n.length&&n.some(h=>h?.contains(s))||n.length&&n.includes(l),g=r&&(r.contains(s)||r.contains(l));u||c||d||f||p||g||t.value(a,o)}}const Qr={beforeMount(e,t){Ar.has(e)||Ar.set(e,[]),Ar.get(e).push({documentHandler:hy(e,t),bindingFn:t.value})},updated(e,t){Ar.has(e)||Ar.set(e,[]);const n=Ar.get(e),a=n.findIndex(r=>r.bindingFn===t.oldValue),o={documentHandler:hy(e,t),bindingFn:t.value};a>=0?n.splice(a,1,o):n.push(o)},unmounted(e){Ar.delete(e)}},fc="_RepeatClick",sd={beforeMount(e,t){const n=t.value,{interval:a=100,delay:o=600}=Fe(n)?{}:n;let r,s;const l=()=>Fe(n)?n():n.handler(),u=()=>{s&&(clearTimeout(s),s=void 0),r&&(clearInterval(r),r=void 0)},c=d=>{d.button===0&&(u(),l(),document.addEventListener("mouseup",u,{once:!0}),s=setTimeout(()=>{r=setInterval(()=>{l()},a)},o))};e[fc]={start:c,clear:u},e.addEventListener("mousedown",c)},unmounted(e){if(!e[fc])return;const{start:t,clear:n}=e[fc];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[fc]=null}},Th="_trap-focus-children",ms=[],vy=e=>{if(ms.length===0)return;const t=qt(e),n=ms[ms.length-1][Th];if(n.length>0&&t===Se.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const a=e.shiftKey,o=e.target===n[0],r=e.target===n[n.length-1];o&&a&&(e.preventDefault(),n[n.length-1].focus()),r&&!a&&(e.preventDefault(),n[0].focus())}},gB={beforeMount(e){e[Th]=c0(e),ms.push(e),ms.length<=1&&document.addEventListener("keydown",vy)},updated(e){Ne(()=>{e[Th]=c0(e)})},unmounted(){ms.shift(),ms.length===0&&document.removeEventListener("keydown",vy)}};var my=!1,ds,Oh,_h,_c,Rc,ik,Ic,Rh,Ih,$h,uk,Nh,Mh,ck,dk;function Sa(){if(!my){my=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Nh=/\b(iPhone|iP[ao]d)/.exec(e),Mh=/\b(iP[ao]d)/.exec(e),$h=/Android/i.exec(e),ck=/FBAN\/\w+;/i.exec(e),dk=/Mobile/i.exec(e),uk=!!/Win64/.exec(e),t){ds=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ds&&document&&document.documentMode&&(ds=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);ik=a?parseFloat(a[1])+4:ds,Oh=t[2]?parseFloat(t[2]):NaN,_h=t[3]?parseFloat(t[3]):NaN,_c=t[4]?parseFloat(t[4]):NaN,_c?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Rc=t&&t[1]?parseFloat(t[1]):NaN):Rc=NaN}else ds=Oh=_h=Rc=_c=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ic=o?parseFloat(o[1].replace("_",".")):!0}else Ic=!1;Rh=!!n[2],Ih=!!n[3]}else Ic=Rh=Ih=!1}}var Ph={ie:function(){return Sa()||ds},ieCompatibilityMode:function(){return Sa()||ik>ds},ie64:function(){return Ph.ie()&&uk},firefox:function(){return Sa()||Oh},opera:function(){return Sa()||_h},webkit:function(){return Sa()||_c},safari:function(){return Ph.webkit()},chrome:function(){return Sa()||Rc},windows:function(){return Sa()||Rh},osx:function(){return Sa()||Ic},linux:function(){return Sa()||Ih},iphone:function(){return Sa()||Nh},mobile:function(){return Sa()||Nh||Mh||$h||dk},nativeApp:function(){return Sa()||ck},android:function(){return Sa()||$h},ipad:function(){return Sa()||Mh}},bB=Ph,yB=!!(typeof window<"u"&&window.document&&window.document.createElement),wB={canUseDOM:yB},fk=wB,pk;fk.canUseDOM&&(pk=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function SB(e,t){if(!fk.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a=typeof o[n]=="function"}return!a&&pk&&e==="wheel"&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}var CB=SB,gy=10,by=40,yy=800;function hk(e){var t=0,n=0,a=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=t*gy,o=n*gy,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||o)&&e.deltaMode&&(e.deltaMode==1?(a*=by,o*=by):(a*=yy,o*=yy)),a&&!t&&(t=a<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:o}}hk.getEventType=function(){return bB.firefox()?"DOMMouseScroll":CB("wheel")?"wheel":"mousewheel"};var kB=hk;/** -* Checks if an event is supported in the current execution environment. -* -* NOTE: This will not work correctly for non-generic events such as `change`, -* `reset`, `load`, `error`, and `select`. -* -* Borrows from Modernizr. -* -* @param {string} eventNameSuffix Event name, e.g. "click". -* @param {?boolean} capture Check if the capture phase is supported. -* @return {boolean} True if the event is supported. -* @internal -* @license Modernizr 3.0.0pre (Custom Build) | MIT -*/const Ah="_Mousewheel",wy=function(e,t){if(e&&e.addEventListener){vk(e);const n=function(a){const o=kB(a);t&&Reflect.apply(t,this,[a,o])};e[Ah]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},vk=e=>{e._Mousewheel?.wheelHandler&&(e.removeEventListener("wheel",e[Ah].wheelHandler),e[Ah]=null)},EB={beforeMount(e,t){wy(e,t.value)},unmounted(e){vk(e)},updated(e,t){t.value!==t.oldValue&&wy(e,t.value)}},xB=Ee({...rk,datetimeRole:String,parsedValue:{type:G(Object)}}),mk=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(s,l,u,c)=>{const d={hour:e,minute:t,second:n};let f=s;return["hour","minute","second"].forEach(p=>{if(d[p]){let g;const h=d[p];switch(p){case"minute":g=h(f.hour(),l,c);break;case"second":g=h(f.hour(),f.minute(),l,c);break;default:g=h(l,c);break}if(g?.length&&!g.includes(f[p]())){const v=u?0:g.length-1;f=f[p](g[v])}}}),f},o={};return{timePickerOptions:o,getAvailableTime:a,onSetOption:([s,l])=>{o[s]=l}}},vp=e=>{const t=(a,o)=>a||o,n=a=>a!==!0;return e.map(t).filter(n)},gk=(e,t,n)=>({getHoursList:(s,l)=>hp(24,e&&(()=>e?.(s,l))),getMinutesList:(s,l,u)=>hp(60,t&&(()=>t?.(s,l,u))),getSecondsList:(s,l,u,c)=>hp(60,n&&(()=>n?.(s,l,u,c)))}),bk=(e,t,n)=>{const{getHoursList:a,getMinutesList:o,getSecondsList:r}=gk(e,t,n);return{getAvailableHours:(c,d)=>vp(a(c,d)),getAvailableMinutes:(c,d,f)=>vp(o(c,d,f)),getAvailableSeconds:(c,d,f,p)=>vp(r(c,d,f,p))}},yk=(e,t)=>{const n=M(e.parsedValue);return pe(()=>e.visible,a=>{const o=xn(t.modelValue),r=xn(t.valueOnClear);if(a&&o===r){n.value=r;return}a||(n.value=e.parsedValue)}),n},TB=Ee({role:{type:String,required:!0},spinnerDate:{type:G(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:G(String),default:""},...Vm}),OB=["onClick"],_B=["onMouseenter"];var RB=se({__name:"basic-time-spinner",props:TB,emits:[yt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:o,saveOnBlur:r}=$e(Go).props,s=t,l=ge("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=gk(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const p={hours:!1,minutes:!1,seconds:!1},g=M(),h={hours:M(),minutes:M(),seconds:M()},v=C(()=>n.showSeconds?uy:uy.slice(0,2)),m=C(()=>{const{spinnerDate:H}=n;return{hours:H.hour(),minutes:H.minute(),seconds:H.second()}}),b=C(()=>{const{hours:H,minutes:U}=i(m),{role:J,spinnerDate:ee}=n,ae=a?void 0:ee;return{hours:u(J,ae),minutes:c(H,J,ae),seconds:d(H,U,J,ae)}}),w=C(()=>{const{hours:H,minutes:U,seconds:J}=i(m);return{hours:pp(H,23),minutes:pp(U,59),seconds:pp(J,59)}}),y=Ho(H=>{f=!1,x(H)},200),S=H=>{if(!n.amPmMode)return"";const U=n.amPmMode==="A";let J=H<12?" am":" pm";return U&&(J=J.toUpperCase()),J},k=H=>{let U=[0,0];const J=o||"HH:mm:ss",ee=J.indexOf("HH"),ae=J.indexOf("mm"),ce=J.indexOf("ss");switch(H){case"hours":ee!==-1&&(U=[ee,ee+2]);break;case"minutes":ae!==-1&&(U=[ae,ae+2]);break;case"seconds":ce!==-1&&(U=[ce,ce+2]);break}const[Z,de]=U;s("select-range",Z,de),g.value=H},x=H=>{I(H,i(m)[H])},O=()=>{x("hours"),x("minutes"),x("seconds")},T=H=>H.querySelector(`.${l.namespace.value}-scrollbar__wrap`),I=(H,U)=>{if(n.arrowControl)return;const J=i(h[H]);J&&J.$el&&(r||(p[H]=!0,Oa(()=>{p[H]=!1})),T(J.$el).scrollTop=Math.max(0,U*_(H)))},_=H=>{const U=i(h[H])?.$el.querySelector("li");return U&&Number.parseFloat(or(U,"height"))||0},N=()=>{B(1)},$=()=>{B(-1)},B=H=>{g.value||k("hours");const U=g.value,J=i(m)[U],ee=K(U,J,H,g.value==="hours"?24:60);j(U,ee),I(U,ee),Ne(()=>k(U))},K=(H,U,J,ee)=>{let ae=(U+J+ee)%ee;const ce=i(b)[H];for(;ce[ae]&&ae!==U;)ae=(ae+J+ee)%ee;return ae},j=(H,U)=>{if(i(b)[H][U])return;const{hours:J,minutes:ee,seconds:ae}=i(m);let ce;switch(H){case"hours":ce=n.spinnerDate.hour(U).minute(ee).second(ae);break;case"minutes":ce=n.spinnerDate.hour(J).minute(U).second(ae);break;case"seconds":ce=n.spinnerDate.hour(J).minute(ee).second(U);break}s(yt,ce)},W=(H,{value:U,disabled:J})=>{J||(j(H,U),k(H),I(H,U))},A=H=>{if(!r&&p[H])return;const U=i(h[H]);U&&(f=!0,y(H),j(H,Math.min(Math.round((T(U.$el).scrollTop-(P(H)*.5-10)/_(H)+3)/_(H)),H==="hours"?23:59)))},P=H=>i(h[H]).$el.offsetHeight,V=()=>{const H=U=>{const J=i(h[U]);J&&J.$el&&(T(J.$el).onscroll=()=>{A(U)})};H("hours"),H("minutes"),H("seconds")};ht(()=>{Ne(()=>{!n.arrowControl&&V(),O(),n.role==="start"&&k("hours")})});const F=(H,U)=>{h[U].value=H??void 0};return s("set-option",[`${n.role}_scrollDown`,B]),s("set-option",[`${n.role}_emitSelectRange`,k]),pe(()=>n.spinnerDate,()=>{f||O()}),(H,U)=>(E(),D("div",{class:R([i(l).b("spinner"),{"has-seconds":H.showSeconds}])},[H.arrowControl?re("v-if",!0):(E(!0),D(Ve,{key:0},kt(v.value,J=>(E(),le(i(vo),{key:J,ref_for:!0,ref:ee=>F(ee,J),class:R(i(l).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(l).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ee=>k(J),onMousemove:ee=>x(J)},{default:ne(()=>[(E(!0),D(Ve,null,kt(b.value[J],(ee,ae)=>(E(),D("li",{key:ae,class:R([i(l).be("spinner","item"),i(l).is("active",ae===m.value[J]),i(l).is("disabled",ee)]),onClick:ce=>W(J,{value:ae,disabled:ee})},[J==="hours"?(E(),D(Ve,{key:0},[wt(Ce(("0"+(H.amPmMode?ae%12||12:ae)).slice(-2))+Ce(S(ae)),1)],64)):(E(),D(Ve,{key:1},[wt(Ce(("0"+ae).slice(-2)),1)],64))],10,OB))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),H.arrowControl?(E(!0),D(Ve,{key:1},kt(v.value,J=>(E(),D("div",{key:J,class:R([i(l).be("spinner","wrapper"),i(l).is("arrow")]),onMouseenter:ee=>k(J)},[ct((E(),le(i(De),{class:R(["arrow-up",i(l).be("spinner","arrow")])},{default:ne(()=>[X(i(ff))]),_:1},8,["class"])),[[i(sd),$]]),ct((E(),le(i(De),{class:R(["arrow-down",i(l).be("spinner","arrow")])},{default:ne(()=>[X(i(qo))]),_:1},8,["class"])),[[i(sd),N]]),z("ul",{class:R(i(l).be("spinner","list"))},[(E(!0),D(Ve,null,kt(w.value[J],(ee,ae)=>(E(),D("li",{key:ae,class:R([i(l).be("spinner","item"),i(l).is("active",ee===m.value[J]),i(l).is("disabled",b.value[J][ee])])},[i(Be)(ee)?(E(),D(Ve,{key:0},[J==="hours"?(E(),D(Ve,{key:0},[wt(Ce(("0"+(H.amPmMode?ee%12||12:ee)).slice(-2))+Ce(S(ee)),1)],64)):(E(),D(Ve,{key:1},[wt(Ce(("0"+ee).slice(-2)),1)],64))],64)):re("v-if",!0)],2))),128))],2)],42,_B))),128)):re("v-if",!0)],2))}}),Lh=RB,IB=se({__name:"panel-time-pick",props:xB,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=$e(Go),{arrowControl:r,disabledHours:s,disabledMinutes:l,disabledSeconds:u,defaultValue:c}=o.props,{getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:p}=bk(s,l,u),g=ge("time"),{t:h,lang:v}=xt(),m=M([0,2]),b=yk(n,{modelValue:C(()=>o.props.modelValue),valueOnClear:C(()=>o?.emptyValues?o.emptyValues.valueOnClear.value:null)}),w=C(()=>Rt(n.actualVisible)?`${g.namespace.value}-zoom-in-top`:""),y=C(()=>n.format.includes("ss")),S=C(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),k=P=>{const V=rt(P).locale(v.value),F=j(V);return V.isSame(F)},x=()=>{const P=b.value;a("pick",P,!1),Ne(()=>{b.value=P})},O=(P=!1,V=!1)=>{V||a("pick",n.parsedValue,P)},T=P=>{n.visible&&a("pick",j(P).millisecond(0),!0)},I=(P,V)=>{a("select-range",P,V),m.value=[P,V]},_=P=>{const V=n.format,F=V.indexOf("HH"),H=V.indexOf("mm"),U=V.indexOf("ss"),J=[],ee=[];F!==-1&&(J.push(F),ee.push("hours")),H!==-1&&(J.push(H),ee.push("minutes")),U!==-1&&y.value&&(J.push(U),ee.push("seconds"));const ae=(J.indexOf(m.value[0])+P+J.length)%J.length;$.start_emitSelectRange(ee[ae])},N=P=>{const V=qt(P),{left:F,right:H,up:U,down:J}=Se;if([F,H].includes(V)){_(V===F?-1:1),P.preventDefault();return}if([U,J].includes(V)){const ee=V===U?-1:1;$.start_scrollDown(ee),P.preventDefault();return}},{timePickerOptions:$,onSetOption:B,getAvailableTime:K}=mk({getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:p}),j=P=>K(P,n.datetimeRole||"",!0),W=P=>P?rt(P,n.format).locale(v.value):null,A=()=>rt(c).locale(v.value);return a("set-picker-option",["isValidValue",k]),a("set-picker-option",["parseUserInput",W]),a("set-picker-option",["handleKeydownInput",N]),a("set-picker-option",["getRangeAvailableTime",j]),a("set-picker-option",["getDefaultValue",A]),a("set-picker-option",["handleCancel",x]),(P,V)=>(E(),le(Yn,{name:w.value},{default:ne(()=>[P.actualVisible||P.visible?(E(),D("div",{key:0,class:R(i(g).b("panel"))},[z("div",{class:R([i(g).be("panel","content"),{"has-seconds":y.value}])},[X(Lh,{ref:"spinner",role:P.datetimeRole||"start","arrow-control":i(r),"show-seconds":y.value,"am-pm-mode":S.value,"spinner-date":P.parsedValue,"disabled-hours":i(s),"disabled-minutes":i(l),"disabled-seconds":i(u),onChange:T,onSetOption:i(B),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),z("div",{class:R(i(g).be("panel","footer"))},[z("button",{type:"button",class:R([i(g).be("panel","btn"),"cancel"]),onClick:x},Ce(i(h)("el.datepicker.cancel")),3),z("button",{type:"button",class:R([i(g).be("panel","btn"),"confirm"]),onClick:V[0]||(V[0]=F=>O())},Ce(i(h)("el.datepicker.confirm")),3)],2)],2)):re("v-if",!0)]),_:1},8,["name"]))}}),ld=IB;const $B=Ee({...rk,parsedValue:{type:G(Array)}}),NB=["disabled"];var MB=se({__name:"panel-time-range",props:$B,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=(Q,L)=>{const q=[];for(let te=Q;te<=L;te++)q.push(te);return q},{t:r,lang:s}=xt(),l=ge("time"),u=ge("picker"),c=$e(Go),{arrowControl:d,disabledHours:f,disabledMinutes:p,disabledSeconds:g,defaultValue:h}=c.props,v=C(()=>[l.be("range-picker","body"),l.be("panel","content"),l.is("arrow",d),k.value?"has-seconds":""]),m=C(()=>[l.be("range-picker","body"),l.be("panel","content"),l.is("arrow",d),k.value?"has-seconds":""]),b=C(()=>n.parsedValue[0]),w=C(()=>n.parsedValue[1]),y=yk(n,{modelValue:C(()=>c.props.modelValue),valueOnClear:C(()=>c?.emptyValues?c.emptyValues.valueOnClear.value:null)}),S=()=>{const Q=y.value;a("pick",Q,!1),Ne(()=>{y.value=Q})},k=C(()=>n.format.includes("ss")),x=C(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),O=(Q=!1)=>{a("pick",[b.value,w.value],Q)},T=Q=>{N(Q.millisecond(0),w.value)},I=Q=>{N(b.value,Q.millisecond(0))},_=Q=>{const L=Q.map(te=>rt(te).locale(s.value)),q=U(L);return L[0].isSame(q[0])&&L[1].isSame(q[1])},N=(Q,L)=>{n.visible&&a("pick",[Q,L],!0)},$=C(()=>b.value>w.value),B=M([0,2]),K=(Q,L)=>{a("select-range",Q,L,"min"),B.value=[Q,L]},j=C(()=>k.value?11:8),W=(Q,L)=>{a("select-range",Q,L,"max");const q=i(j);B.value=[Q+q,L+q]},A=Q=>{const L=k.value?[0,3,6,11,14,17]:[0,3,8,11],q=["hours","minutes"].concat(k.value?["seconds"]:[]),te=(L.indexOf(B.value[0])+Q+L.length)%L.length,fe=L.length/2;te{const L=qt(Q),{left:q,right:te,up:fe,down:he}=Se;if([q,te].includes(L)){A(L===q?-1:1),Q.preventDefault();return}if([fe,he].includes(L)){const ve=L===fe?-1:1;ce[`${B.value[0]{const q=f?f(Q):[],te=Q==="start",fe=(L||(te?w.value:b.value)).hour();return tp(q,te?o(fe+1,23):o(0,fe-1))},F=(Q,L,q)=>{const te=p?p(Q,L):[],fe=L==="start",he=q||(fe?w.value:b.value);if(Q!==he.hour())return te;const ve=he.minute();return tp(te,fe?o(ve+1,59):o(0,ve-1))},H=(Q,L,q,te)=>{const fe=g?g(Q,L,q):[],he=q==="start",ve=te||(he?w.value:b.value),Ie=ve.hour(),Le=ve.minute();if(Q!==Ie||L!==Le)return fe;const _e=ve.second();return tp(fe,he?o(_e+1,59):o(0,_e-1))},U=([Q,L])=>[Z(Q,"start",!0,L),Z(L,"end",!1,Q)],{getAvailableHours:J,getAvailableMinutes:ee,getAvailableSeconds:ae}=bk(V,F,H),{timePickerOptions:ce,getAvailableTime:Z,onSetOption:de}=mk({getAvailableHours:J,getAvailableMinutes:ee,getAvailableSeconds:ae}),ue=Q=>Q?we(Q)?Q.map(L=>rt(L,n.format).locale(s.value)):rt(Q,n.format).locale(s.value):null,Y=()=>{if(we(h))return h.map(L=>rt(L).locale(s.value));const Q=rt(h).locale(s.value);return[Q,Q.add(60,"m")]};return a("set-picker-option",["parseUserInput",ue]),a("set-picker-option",["isValidValue",_]),a("set-picker-option",["handleKeydownInput",P]),a("set-picker-option",["getDefaultValue",Y]),a("set-picker-option",["getRangeAvailableTime",U]),a("set-picker-option",["handleCancel",S]),(Q,L)=>Q.actualVisible?(E(),D("div",{key:0,class:R([i(l).b("range-picker"),i(u).b("panel")])},[z("div",{class:R(i(l).be("range-picker","content"))},[z("div",{class:R(i(l).be("range-picker","cell"))},[z("div",{class:R(i(l).be("range-picker","header"))},Ce(i(r)("el.datepicker.startTime")),3),z("div",{class:R(v.value)},[X(Lh,{ref:"minSpinner",role:"start","show-seconds":k.value,"am-pm-mode":x.value,"arrow-control":i(d),"spinner-date":b.value,"disabled-hours":V,"disabled-minutes":F,"disabled-seconds":H,onChange:T,onSetOption:i(de),onSelectRange:K},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),z("div",{class:R(i(l).be("range-picker","cell"))},[z("div",{class:R(i(l).be("range-picker","header"))},Ce(i(r)("el.datepicker.endTime")),3),z("div",{class:R(m.value)},[X(Lh,{ref:"maxSpinner",role:"end","show-seconds":k.value,"am-pm-mode":x.value,"arrow-control":i(d),"spinner-date":w.value,"disabled-hours":V,"disabled-minutes":F,"disabled-seconds":H,onChange:I,onSetOption:i(de),onSelectRange:W},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),z("div",{class:R(i(l).be("panel","footer"))},[z("button",{type:"button",class:R([i(l).be("panel","btn"),"cancel"]),onClick:L[0]||(L[0]=q=>S())},Ce(i(r)("el.datepicker.cancel")),3),z("button",{type:"button",class:R([i(l).be("panel","btn"),"confirm"]),disabled:$.value,onClick:L[1]||(L[1]=q=>O())},Ce(i(r)("el.datepicker.confirm")),11,NB)],2)],2)):re("v-if",!0)}}),PB=MB,wk={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,r=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,u={},c=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(b){this[m]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var w=b.match(/([+-]|\d\d)/g),y=60*w[1]+(+w[2]||0);return y===0?0:w[0]==="+"?-y:y}(m)}],p=function(m){var b=u[m];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(m,b){var w,y=u.meridiem;if(y){for(var S=1;S<=24;S+=1)if(m.indexOf(y(S,0,b))>-1){w=S>12;break}}else w=m===(b?"pm":"PM");return w},h={A:[l,function(m){this.afternoon=g(m,!1)}],a:[l,function(m){this.afternoon=g(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[r,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[r,d("day")],Do:[l,function(m){var b=u.ordinal,w=m.match(/\d+/);if(this.day=w[0],b)for(var y=1;y<=31;y+=1)b(y).replace(/\[|\]/g,"")===m&&(this.day=y)}],w:[s,d("week")],ww:[r,d("week")],M:[s,d("month")],MM:[r,d("month")],MMM:[l,function(m){var b=p("months"),w=(p("monthsShort")||b.map(function(y){return y.slice(0,3)})).indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[l,function(m){var b=p("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(m){this.year=c(m)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(m){var b,w;b=m,w=u&&u.formats;for(var y=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,N,$){var B=$&&$.toUpperCase();return N||w[$]||n[$]||w[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,j,W){return j||W.slice(1)})})).match(a),S=y.length,k=0;k-1)return new Date((P==="X"?1e3:1)*A);var H=v(P)(A),U=H.year,J=H.month,ee=H.day,ae=H.hours,ce=H.minutes,Z=H.seconds,de=H.milliseconds,ue=H.zone,Y=H.week,Q=new Date,L=ee||(U||J?1:Q.getDate()),q=U||Q.getFullYear(),te=0;U&&!J||(te=J>0?J-1:Q.getMonth());var fe,he=ae||0,ve=ce||0,Ie=Z||0,Le=de||0;return ue?new Date(Date.UTC(q,te,L,he,ve,Ie,Le+60*ue.offset*1e3)):V?new Date(Date.UTC(q,te,L,he,ve,Ie,Le)):(fe=new Date(q,te,L,he,ve,Ie,Le),Y&&(fe=F(fe).week(Y).toDate()),fe)}catch{return new Date("")}}(x,I,O,w),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),$&&x!=this.format(I)&&(this.$d=new Date("")),u={}}else if(I instanceof Array)for(var K=I.length,j=1;j<=K;j+=1){T[1]=I[j-1];var W=w.apply(this,T);if(W.isValid()){this.$d=W.$d,this.$L=W.$L,this.init();break}j===K&&(this.$d=new Date(""))}else S.call(this,k)}}})})(wk);var AB=wk.exports;const zm=Or(AB);rt.extend(zm);var LB=se({name:"ElTimePicker",install:null,props:{...Fm,isRange:Boolean},emits:[at],setup(e,t){const n=M(),[a,o]=e.isRange?["timerange",PB]:["time",ld],r=s=>t.emit(at,s);return St(Bm,e.popperOptions),t.expose({focus:()=>{n.value?.focus()},blur:()=>{n.value?.blur()},handleOpen:()=>{n.value?.handleOpen()},handleClose:()=>{n.value?.handleClose()}}),()=>X(lk,pt(e,{ref:n,type:a,format:e.format??"HH:mm:ss","onUpdate:modelValue":r}),{default:s=>X(o,s,null)})}});const DB=st(LB),gr=Ee({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:yo},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),BB={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},VB=["aria-label"],FB=["aria-label"];var zB=se({name:"ElTag",__name:"tag",props:gr,emits:BB,setup(e,{emit:t}){const n=e,a=t,o=In(),{t:r}=xt(),s=ge("tag"),l=C(()=>{const{type:f,hit:p,effect:g,closable:h,round:v}=n;return[s.b(),s.is("closable",h),s.m(f||"primary"),s.m(o.value),s.m(g),s.is("hit",p),s.is("round",v)]}),u=f=>{a("close",f)},c=f=>{a("click",f)},d=f=>{f?.component?.subTree?.component?.bum&&(f.component.subTree.component.bum=null)};return(f,p)=>e.disableTransitions?(E(),D("span",{key:0,class:R(l.value),style:ze({backgroundColor:e.color}),onClick:c},[z("span",{class:R(i(s).e("content"))},[oe(f.$slots,"default")],2),e.closable?(E(),D("button",{key:0,"aria-label":i(r)("el.tag.close"),class:R(i(s).e("close")),type:"button",onClick:Xe(u,["stop"])},[X(i(De),null,{default:ne(()=>[X(i(Qa))]),_:1})],10,VB)):re("v-if",!0)],6)):(E(),le(Yn,{key:1,name:`${i(s).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:ne(()=>[z("span",{class:R(l.value),style:ze({backgroundColor:e.color}),onClick:c},[z("span",{class:R(i(s).e("content"))},[oe(f.$slots,"default")],2),e.closable?(E(),D("button",{key:0,"aria-label":i(r)("el.tag.close"),class:R(i(s).e("close")),type:"button",onClick:Xe(u,["stop"])},[X(i(De),null,{default:ne(()=>[X(i(Qa))]),_:1})],10,FB)):re("v-if",!0)],6)]),_:3},8,["name"]))}}),HB=zB;const cr=st(HB),Sk=Symbol("ElSelectGroup"),Du=Symbol("ElSelect"),id={label:"label",value:"value",disabled:"disabled",options:"options"};function Bu(e){const t=M({...id,...e.props});let n={...e.props};return pe(()=>e.props,l=>{fn(l,n)||(t.value={...id,...l},n={...l})},{deep:!0}),{aliasProps:t,getLabel:l=>yn(l,t.value.label),getValue:l=>yn(l,t.value.value),getDisabled:l=>yn(l,t.value.disabled),getOptions:l=>yn(l,t.value.options)}}const Ck=Ee({name:String,id:String,modelValue:{type:G([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Nn,effect:{type:G(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:G([String,Object])},popperOptions:{type:G(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:G(Function)},filterMethod:{type:G(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:G(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},teleported:Kt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ut,default:Yo},fitInputWidth:Boolean,suffixIcon:{type:Ut,default:qo},tagType:{...gr.type,default:"info"},tagEffect:{...gr.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:G(String),values:jo,default:"bottom-start"},fallbackPlacements:{type:G(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Kt.appendTo,options:{type:G(Array)},props:{type:G(Object),default:()=>id},...zs,...ia(["ariaLabel"])}),KB={[at]:e=>!0,[yt]:e=>!0,"popup-scroll":au.scroll,"end-reached":au["end-reached"],"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},Dh="ElOption",WB=Ee({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function jB(e,t){const n=$e(Du);n||sn(Dh,"usage: ");const a=$e(Sk,{disabled:!1}),o=C(()=>d(Dn(n.props.modelValue),e.value)),r=C(()=>{if(n.props.multiple){const g=Dn(n.props.modelValue??[]);return!o.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=C(()=>e.label??(ot(e.value)?"":e.value)),l=C(()=>e.value||e.label||""),u=C(()=>e.disabled||t.groupDisabled||r.value),c=dt(),d=(g=[],h)=>{if(ot(e.value)){const v=n.props.valueKey;return g&&g.some(m=>Jt(yn(m,v))===yn(h,v))}else return g&&g.includes(h)},f=()=>{u.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},p=g=>{t.visible=new RegExp(um(g),"i").test(String(s.value))||e.created};return pe(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),pe(()=>e.value,(g,h)=>{const{remote:v,valueKey:m}=n.props;if((v?g!==h:!fn(g,h))&&(n.onOptionDestroy(h,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!v){if(m&&ot(g)&&ot(h)&&g[m]===h[m])return;n.setSelected()}}),pe(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:o,isDisabled:u,hoverItem:f,updateOption:p}}var UB=se({name:Dh,componentName:Dh,props:WB,setup(e){const t=ge("select"),n=Gn(),a=C(()=>[t.be("dropdown","item"),t.is("disabled",i(l)),t.is("selected",i(s)),t.is("hovering",i(p))]),o=Dt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:r,itemSelected:s,isDisabled:l,select:u,hoverItem:c,updateOption:d}=jB(e,o),{visible:f,hover:p}=Pn(o),g=dt().proxy;u.onOptionCreate(g),Vt(()=>{const m=g.value;Ne(()=>{const{selected:b}=u.states,w=b.some(y=>y.value===g.value);u.states.cachedOptions.get(m)===g&&!w&&u.states.cachedOptions.delete(m)}),u.onOptionDestroy(m,g)});function h(){l.value||u.handleOptionSelect(g)}return{ns:t,id:n,containerKls:a,currentLabel:r,itemSelected:s,isDisabled:l,select:u,visible:f,hover:p,states:o,hoverItem:c,handleMousedown:m=>{let b=m.target;const w=m.currentTarget;for(;b&&b!==w;){if(Is(b))return;b=b.parentElement}m.preventDefault()},updateOption:d,selectOptionClick:h}}});const qB=["id","aria-disabled","aria-selected"];function YB(e,t,n,a,o,r){return ct((E(),D("li",{id:e.id,class:R(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onMousedown:t[1]||(t[1]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onClick:t[2]||(t[2]=Xe((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[oe(e.$slots,"default",{},()=>[z("span",null,Ce(e.currentLabel),1)])],42,qB)),[[$t,e.visible]])}var Hm=Mn(UB,[["render",YB]]),GB=se({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ge("select"),n=M(),a=dt(),o=M([]);St(Sk,Dt({...Pn(e)}));const r=C(()=>o.value.some(c=>c.visible===!0)),s=c=>c.type.name==="ElOption"&&!!c.component?.proxy,l=c=>{const d=Dn(c),f=[];return d.forEach(p=>{Zt(p)&&(s(p)?f.push(p.component.proxy):we(p.children)&&p.children.length?f.push(...l(p.children)):p.component?.subTree&&f.push(...l(p.component.subTree)))}),f},u=()=>{o.value=l(a.subTree)};return ht(()=>{u()}),Tu(n,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:r,ns:t}}});function XB(e,t,n,a,o,r){return ct((E(),D("ul",{ref:"groupRef",class:R(e.ns.be("group","wrap"))},[z("li",{class:R(e.ns.be("group","title"))},Ce(e.label),3),z("li",null,[z("ul",{class:R(e.ns.b("group"))},[oe(e.$slots,"default")],2)])],2)),[[$t,e.visible]])}var Km=Mn(GB,[["render",XB]]),JB=se({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=$e(Du),t=ge("select"),n=C(()=>e.props.popperClass),a=C(()=>e.props.multiple),o=C(()=>e.props.fitInputWidth),r=M("");function s(){const l=e.selectRef?.offsetWidth;l?r.value=`${l-2}px`:r.value=""}return ht(()=>{s(),an(e.selectRef,s)}),{ns:t,minWidth:r,popperClass:n,isMultiple:a,isFitInputWidth:o}}});function ZB(e,t,n,a,o,r){return E(),D("div",{class:R([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:ze({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(E(),D("div",{key:0,class:R(e.ns.be("dropdown","header"))},[oe(e.$slots,"header")],2)):re("v-if",!0),oe(e.$slots,"default"),e.$slots.footer?(E(),D("div",{key:1,class:R(e.ns.be("dropdown","footer"))},[oe(e.$slots,"footer")],2)):re("v-if",!0)],6)}var QB=Mn(JB,[["render",ZB]]);const eV=(e,t)=>{const{t:n}=xt(),a=wn(),o=Gn(),r=ge("select"),s=ge("input"),l=Dt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),u=M(),c=M(),d=M(),f=M(),p=M(),g=M(),h=M(),v=M(),m=M(),b=M(),w=M(),y=M(!1),S=M(),k=M(!1),{form:x,formItem:O}=Fn(),{inputId:T}=_a(e,{formItemContext:O}),{valueOnClear:I,isEmptyValue:_}=Au(e),{isComposing:N,handleCompositionStart:$,handleCompositionUpdate:B,handleCompositionEnd:K}=Pu({afterComposition:Re=>gt(Re)}),j=un(),{wrapperRef:W,isFocused:A,handleBlur:P}=Er(p,{disabled:j,afterFocus(){e.automaticDropdown&&!y.value&&(y.value=!0,l.menuVisibleOnFocus=!0)},beforeBlur(Re){return d.value?.isFocusInsideContent(Re)||f.value?.isFocusInsideContent(Re)},afterBlur(){y.value=!1,l.menuVisibleOnFocus=!1,e.validateEvent&&O?.validate?.("blur").catch(ut)}}),V=C(()=>we(e.modelValue)?e.modelValue.length>0:!_(e.modelValue)),F=C(()=>x?.statusIcon??!1),H=C(()=>e.clearable&&!j.value&&V.value&&(A.value||l.inputHovering)),U=C(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),J=C(()=>r.is("reverse",!!(U.value&&y.value))),ee=C(()=>O?.validateState||""),ae=C(()=>ee.value&&hf[ee.value]),ce=C(()=>e.remote?e.debounce:0),Z=C(()=>e.remote&&!l.inputValue&&l.options.size===0),de=C(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&l.inputValue&&l.options.size>0&&ue.value===0?e.noMatchText||n("el.select.noMatch"):l.options.size===0?e.noDataText||n("el.select.noData"):null),ue=C(()=>Y.value.filter(Re=>Re.visible).length),Y=C(()=>{const Re=Array.from(l.options.values()),mt=[];return l.optionValues.forEach(Ft=>{const tn=Re.findIndex(_n=>_n.value===Ft);tn>-1&&mt.push(Re[tn])}),mt.length>=Re.length?mt:Re}),Q=C(()=>Array.from(l.cachedOptions.values())),L=C(()=>{const Re=Y.value.filter(mt=>!mt.created).some(mt=>mt.currentLabel===l.inputValue);return e.filterable&&e.allowCreate&&l.inputValue!==""&&!Re}),q=()=>{e.filterable&&Fe(e.filterMethod)||e.filterable&&e.remote&&Fe(e.remoteMethod)||Y.value.forEach(Re=>{Re.updateOption?.(l.inputValue)})},te=In(),fe=C(()=>["small"].includes(te.value)?"small":"default"),he=C({get(){return y.value&&(e.loading||!Z.value||e.remote&&!!a.empty)&&(!k.value||!ha(l.previousQuery)||l.options.size>0)},set(Re){y.value=Re}}),ve=C(()=>{if(e.multiple&&!Rt(e.modelValue))return Dn(e.modelValue).length===0&&!l.inputValue;const Re=we(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Rt(Re)?!l.inputValue:!0}),Ie=C(()=>{const Re=e.placeholder??n("el.select.placeholder");return e.multiple||!V.value?Re:l.selectedLabel}),Le="mouseenter";pe(()=>e.modelValue,(Re,mt)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(l.inputValue="",_e("")),Te(),!fn(Re,mt)&&e.validateEvent&&O?.validate("change").catch(ut)},{flush:"post",deep:!0}),pe(()=>y.value,Re=>{Re?_e(l.inputValue):(l.inputValue="",l.previousQuery=null,l.isBeforeHide=!0,l.menuVisibleOnFocus=!1)}),pe(()=>l.options.entries(),()=>{Lt&&(Te(),e.defaultFirstOption&&(e.filterable||e.remote)&&ue.value&&ye())},{flush:"post"}),pe([()=>l.hoveringIndex,Y],([Re])=>{Be(Re)&&Re>-1?S.value=Y.value[Re]||{}:S.value={},Y.value.forEach(mt=>{mt.hover=S.value===mt})}),la(()=>{l.isBeforeHide||q()});const _e=Re=>{l.previousQuery===Re||N.value||(l.previousQuery=Re,e.filterable&&Fe(e.filterMethod)?e.filterMethod(Re):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(Re),e.defaultFirstOption&&(e.filterable||e.remote)&&ue.value?Ne(ye):Ne(Pe))},ye=()=>{const Re=Y.value.filter(tn=>tn.visible&&!tn.disabled&&!tn.states.groupDisabled),mt=Re.find(tn=>tn.created),Ft=Re[0];l.hoveringIndex=xe(Y.value.map(tn=>tn.value),mt||Ft)},Te=()=>{if(e.multiple)l.selectedLabel="";else{const mt=be(we(e.modelValue)?e.modelValue[0]:e.modelValue);l.selectedLabel=mt.currentLabel,l.selected=[mt];return}const Re=[];Rt(e.modelValue)||Dn(e.modelValue).forEach(mt=>{Re.push(be(mt))}),l.selected=Re},be=Re=>{let mt;const Ft=Vi(Re);for(let _n=l.cachedOptions.size-1;_n>=0;_n--){const wa=Q.value[_n];if(Ft?yn(wa.value,e.valueKey)===yn(Re,e.valueKey):wa.value===Re){mt={index:Y.value.filter(_r=>!_r.created).indexOf(wa),value:Re,currentLabel:wa.currentLabel,get isDisabled(){return wa.isDisabled}};break}}if(mt)return mt;const tn=l.selected.find(_n=>Ft?yn(_n.value,e.valueKey)===yn(Re,e.valueKey):_n.value===Re);return{index:-1,value:Re,currentLabel:Ft?Re.label:tn?tn.currentLabel:Re??""}},Pe=()=>{const Re=l.selected.length;if(Re>0){const mt=l.selected[Re-1];l.hoveringIndex=Y.value.findIndex(Ft=>Oe(mt)===Oe(Ft))}else l.hoveringIndex=-1},He=()=>{l.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},Je=()=>{l.collapseItemWidth=b.value.getBoundingClientRect().width},Qe=()=>{d.value?.updatePopper?.()},lt=()=>{f.value?.updatePopper?.()},Ze=()=>{l.inputValue.length>0&&!y.value&&(y.value=!0),_e(l.inputValue)},gt=Re=>{if(l.inputValue=Re.target.value,e.remote)k.value=!0,Pt();else return Ze()},Pt=xu(()=>{Ze(),k.value=!1},ce),zt=Re=>{fn(e.modelValue,Re)||t(yt,Re)},nt=Re=>CS(Re,mt=>{const Ft=l.cachedOptions.get(mt);return!Ft?.disabled&&!Ft?.states.groupDisabled}),ft=Re=>{const mt=qt(Re);if(e.multiple&&mt!==Se.delete&&Re.target.value.length<=0){const Ft=Dn(e.modelValue).slice(),tn=nt(Ft);if(tn<0)return;const _n=Ft[tn];Ft.splice(tn,1),t(at,Ft),zt(Ft),t("remove-tag",_n)}},me=(Re,mt)=>{const Ft=l.selected.indexOf(mt);if(Ft>-1&&!j.value){const tn=Dn(e.modelValue).slice();tn.splice(Ft,1),t(at,tn),zt(tn),t("remove-tag",mt.value)}Re.stopPropagation(),Yt()},je=Re=>{Re.stopPropagation();const mt=e.multiple?[]:I.value;if(e.multiple)for(const Ft of l.selected)Ft.isDisabled&&mt.push(Ft.value);t(at,mt),zt(mt),l.hoveringIndex=-1,y.value=!1,t("clear"),Yt()},ie=Re=>{if(e.multiple){const mt=Dn(e.modelValue??[]).slice(),Ft=xe(mt,Re);Ft>-1?mt.splice(Ft,1):(e.multipleLimit<=0||mt.length{Ue(Re)})},xe=(Re,mt)=>Rt(mt)?-1:ot(mt.value)?Re.findIndex(Ft=>fn(yn(Ft,e.valueKey),Oe(mt))):Re.indexOf(mt.value),Ue=Re=>{const mt=we(Re)?Re[Re.length-1]:Re;let Ft=null;if(!En(mt?.value)){const tn=Y.value.filter(_n=>_n.value===mt.value);tn.length>0&&(Ft=tn[0].$el)}if(d.value&&Ft){const tn=d.value?.popperRef?.contentRef?.querySelector?.(`.${r.be("dropdown","wrap")}`);tn&&fm(tn,Ft)}w.value?.handleScroll()},et=Re=>{l.options.set(Re.value,Re),l.cachedOptions.set(Re.value,Re)},bt=(Re,mt)=>{l.options.get(Re)===mt&&l.options.delete(Re)},vt=C(()=>d.value?.popperRef?.contentRef),Et=()=>{l.isBeforeHide=!1,Ne(()=>{w.value?.update(),Ue(l.selected)})},Yt=()=>{p.value?.focus()},on=()=>{if(y.value){y.value=!1,Ne(()=>p.value?.blur());return}p.value?.blur()},At=Re=>{je(Re)},en=Re=>{if(y.value=!1,A.value){const mt=new FocusEvent("blur",Re);Ne(()=>P(mt))}},Ye=()=>{l.inputValue.length>0?l.inputValue="":y.value=!1},Ge=Re=>{j.value||e.filterable&&y.value&&Re&&!h.value?.contains(Re.target)||(l.menuVisibleOnFocus?l.menuVisibleOnFocus=!1:y.value=!y.value)},tt=()=>{if(!y.value)Ge();else{const Re=Y.value[l.hoveringIndex];Re&&!Re.isDisabled&&ie(Re)}},Oe=Re=>ot(Re.value)?yn(Re.value,e.valueKey):Re.value,Ke=C(()=>Y.value.filter(Re=>Re.visible).every(Re=>Re.isDisabled)),We=C(()=>e.multiple?e.collapseTags?l.selected.slice(0,e.maxCollapseTags):l.selected:[]),Xt=C(()=>e.multiple?e.collapseTags?l.selected.slice(e.maxCollapseTags):[]:[]),cn=Re=>{if(!y.value){y.value=!0;return}if(!(l.options.size===0||ue.value===0||N.value)&&!Ke.value){Re==="next"?(l.hoveringIndex++,l.hoveringIndex===l.options.size&&(l.hoveringIndex=0)):Re==="prev"&&(l.hoveringIndex--,l.hoveringIndex<0&&(l.hoveringIndex=l.options.size-1));const mt=Y.value[l.hoveringIndex];(mt.isDisabled||!mt.visible)&&cn(Re),Ne(()=>Ue(S.value))}},On=(Re,mt,Ft,tn)=>{for(let _n=mt;_n>=0&&_n{const Ft=l.options.size;if(Ft===0)return;const tn=Ma(Re,0,Ft-1),_n=Y.value,wa=mt==="up"?-1:1,_r=On(_n,tn,wa,Ft)??On(_n,tn-wa,-wa,Ft);_r!=null&&(l.hoveringIndex=_r,Ne(()=>Ue(S.value)))},ya=Re=>{const mt=qt(Re);let Ft=!0;switch(mt){case Se.up:cn("prev");break;case Se.down:cn("next");break;case Se.enter:case Se.numpadEnter:N.value||tt();break;case Se.esc:Ye();break;case Se.backspace:Ft=!1,ft(Re);return;case Se.home:if(!y.value)return;Xn(0,"down");break;case Se.end:if(!y.value)return;Xn(l.options.size-1,"up");break;case Se.pageUp:if(!y.value)return;Xn(l.hoveringIndex-10,"up");break;case Se.pageDown:if(!y.value)return;Xn(l.hoveringIndex+10,"down");break;default:Ft=!1;break}Ft&&(Re.preventDefault(),Re.stopPropagation())},to=()=>{if(!c.value)return 0;const Re=window.getComputedStyle(c.value);return Number.parseFloat(Re.gap||"6px")},Pf=C(()=>{const Re=to(),mt=e.filterable?Re+11:0;return{maxWidth:`${b.value&&e.maxCollapseTags===1?l.selectionWidth-l.collapseItemWidth-Re-mt:l.selectionWidth-mt}px`}}),Af=C(()=>({maxWidth:`${l.selectionWidth}px`})),Lf=Re=>{t("popup-scroll",Re)},Df=Re=>{t("end-reached",Re)};an(c,He),an(W,Qe),an(m,lt),an(b,Je);let Ks;return pe(()=>he.value,Re=>{Re?Ks=an(v,Qe).stop:(Ks?.(),Ks=void 0),t("visible-change",Re)}),ht(()=>{Te()}),{inputId:T,contentId:o,nsSelect:r,nsInput:s,states:l,isFocused:A,expanded:y,optionsArray:Y,hoverOption:S,selectSize:te,filteredOptionsCount:ue,updateTooltip:Qe,updateTagTooltip:lt,debouncedOnInputChange:Pt,onInput:gt,deletePrevTag:ft,deleteTag:me,deleteSelected:je,handleOptionSelect:ie,scrollToOption:Ue,hasModelValue:V,shouldShowPlaceholder:ve,currentPlaceholder:Ie,mouseEnterEventName:Le,needStatusIcon:F,showClearBtn:H,iconComponent:U,iconReverse:J,validateState:ee,validateIcon:ae,showNewOption:L,updateOptions:q,collapseTagSize:fe,setSelected:Te,selectDisabled:j,emptyText:de,handleCompositionStart:$,handleCompositionUpdate:B,handleCompositionEnd:K,handleKeydown:ya,onOptionCreate:et,onOptionDestroy:bt,handleMenuEnter:Et,focus:Yt,blur:on,handleClearClick:At,handleClickOutside:en,handleEsc:Ye,toggleMenu:Ge,selectOption:tt,getValueKey:Oe,navigateOptions:cn,dropdownMenuVisible:he,showTagList:We,collapseTagList:Xt,popupScroll:Lf,getOption:be,endReached:Df,tagStyle:Pf,collapseTagStyle:Af,popperRef:vt,inputRef:p,tooltipRef:d,tagTooltipRef:f,prefixRef:g,suffixRef:h,selectRef:u,wrapperRef:W,selectionRef:c,scrollbarRef:w,menuRef:v,tagMenuRef:m,collapseItemRef:b}};var tV=se({name:"ElOptions",setup(e,{slots:t}){const n=$e(Du);let a=[];return()=>{const o=t.default?.(),r=[];function s(l){we(l)&&l.forEach(u=>{const c=(u?.type||{})?.name;c==="ElOptionGroup"?s(!Ae(u.children)&&!we(u.children)&&Fe(u.children?.default)?u.children?.default():u.children):c==="ElOption"?r.push(u.props?.value):we(u.children)&&s(u.children)})}return o.length&&s(o[0]?.children),fn(r,a)||(a=r,n&&(n.states.optionValues=r)),o}}});const Sy="ElSelect",ou=new WeakMap,nV=e=>(...t)=>{const n=t[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&t[2]?.includes("ElTreeSelect"))return;const a=ou.get(e)?.originalWarnHandler;if(a){a(...t);return}console.warn(...t)},aV=e=>{let t=ou.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:nV(e),count:0},ou.set(e,t)),t};var oV=se({name:Sy,componentName:Sy,components:{ElSelectMenu:QB,ElOption:Hm,ElOptions:tV,ElOptionGroup:Km,ElTag:cr,ElScrollbar:vo,ElTooltip:Wn,ElIcon:De},directives:{ClickOutside:Qr},props:Ck,emits:KB,setup(e,{emit:t,slots:n}){const a=dt(),o=aV(a.appContext);o.count+=1,a.appContext.config.warnHandler=o.handler;const r=C(()=>{const{modelValue:w,multiple:y}=e,S=y?[]:void 0;return we(w)?y?w:S:y?S:w}),s=Dt({...Pn(e),modelValue:r}),l=eV(s,t),{calculatorRef:u,inputStyle:c}=im(),{getLabel:d,getValue:f,getOptions:p,getDisabled:g}=Bu(e),h=w=>({label:d(w),value:f(w),disabled:g(w)}),v=w=>w.reduce((y,S)=>(y.push(S),S.children&&S.children.length>0&&y.push(...v(S.children)),y),[]),m=w=>{Aa(w||[]).forEach(y=>{if(ot(y)&&(y.type.name==="ElOption"||y.type.name==="ElTree")){const S=y.type.name;if(S==="ElTree")v(y.props?.data||[]).forEach(k=>{k.currentLabel=k.label??(ot(k.value)?"":k.value),l.onOptionCreate(k)});else if(S==="ElOption"){const k={...y.props};k.currentLabel=k.label??(ot(k.value)?"":k.value),l.onOptionCreate(k)}}})};pe(()=>[e.persistent||l.expanded.value||!n.default?void 0:n.default?.(),r.value],()=>{e.persistent||l.expanded.value||n.default&&(l.states.options.clear(),m(n.default?.()))},{immediate:!0}),St(Du,Dt({props:s,states:l.states,selectRef:l.selectRef,optionsArray:l.optionsArray,setSelected:l.setSelected,handleOptionSelect:l.handleOptionSelect,onOptionCreate:l.onOptionCreate,onOptionDestroy:l.onOptionDestroy}));const b=C(()=>e.multiple?l.states.selected.map(w=>w.currentLabel):l.states.selectedLabel);return Vt(()=>{const w=ou.get(a.appContext);w&&(w.count-=1,w.count<=0&&(a.appContext.config.warnHandler=w.originalWarnHandler,ou.delete(a.appContext)))}),{...l,modelValue:r,selectedLabel:b,calculatorRef:u,inputStyle:c,getLabel:d,getValue:f,getOptions:p,getDisabled:g,getOptionProps:h}}});const rV=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],sV=["textContent"],lV={key:1};function iV(e,t,n,a,o,r){const s=Mt("el-tag"),l=Mt("el-tooltip"),u=Mt("el-icon"),c=Mt("el-option"),d=Mt("el-option-group"),f=Mt("el-options"),p=Mt("el-scrollbar"),g=Mt("el-select-menu"),h=Bv("click-outside");return ct((E(),D("div",pt({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[yi(e.mouseEnterEventName)]:t[11]||(t[11]=v=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=v=>e.states.inputHovering=!1)}),[X(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=v=>e.states.isBeforeHide=!1)},{default:ne(()=>[z("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=Xe((...v)=>e.toggleMenu&&e.toggleMenu(...v),["prevent"]))},[e.$slots.prefix?(E(),D("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),z("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(E(!0),D(Ve,null,kt(e.showTagList,v=>(E(),D("div",{key:e.getValueKey(v),class:R(e.nsSelect.e("selected-item"))},[X(s,{closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ze(e.tagStyle),onClose:m=>e.deleteTag(m,v)},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:v.index,label:v.currentLabel,value:v.value},()=>[wt(Ce(v.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(E(),le(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":e.tagTooltip?.fallbackPlacements??["bottom","top","right","left"],effect:e.tagTooltip?.effect??e.effect,placement:e.tagTooltip?.placement??"bottom","popper-class":e.tagTooltip?.popperClass??e.popperClass,"popper-style":e.tagTooltip?.popperStyle??e.popperStyle,teleported:e.tagTooltip?.teleported??e.teleported,"append-to":e.tagTooltip?.appendTo??e.appendTo,"popper-options":e.tagTooltip?.popperOptions??e.popperOptions,transition:e.tagTooltip?.transition,"show-after":e.tagTooltip?.showAfter,"hide-after":e.tagTooltip?.hideAfter,"auto-close":e.tagTooltip?.autoClose,offset:e.tagTooltip?.offset},{default:ne(()=>[z("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[X(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ze(e.collapseTagStyle)},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))}," + "+Ce(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ne(()=>[z("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(E(!0),D(Ve,null,kt(e.collapseTagList,v=>(E(),D("div",{key:e.getValueKey(v),class:R(e.nsSelect.e("selected-item"))},[X(s,{class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:m=>e.deleteTag(m,v)},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:v.index,label:v.currentLabel,value:v.value},()=>[wt(Ce(v.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]):re("v-if",!0),z("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[z("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:ze(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":e.hoverOption?.id||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...v)=>e.handleKeydown&&e.handleKeydown(...v)),onCompositionstart:t[1]||(t[1]=(...v)=>e.handleCompositionStart&&e.handleCompositionStart(...v)),onCompositionupdate:t[2]||(t[2]=(...v)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...v)),onCompositionend:t[3]||(t[3]=(...v)=>e.handleCompositionEnd&&e.handleCompositionEnd(...v)),onInput:t[4]||(t[4]=(...v)=>e.onInput&&e.onInput(...v)),onChange:t[5]||(t[5]=Xe(()=>{},["stop"])),onClick:t[6]||(t[6]=Xe((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},null,46,rV),e.filterable?(E(),D("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:Ce(e.states.inputValue)},null,10,sV)):re("v-if",!0)],2),e.shouldShowPlaceholder?(E(),D("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[z("span",null,Ce(e.currentPlaceholder),1)]):(E(),D("span",lV,Ce(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),z("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(E(),le(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ne(()=>[(E(),le(it(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.showClearBtn&&e.clearIcon?(E(),le(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(E(),le(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ne(()=>[(E(),le(it(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]),content:ne(()=>[X(g,{ref:"menuRef"},{default:ne(()=>[e.$slots.header?(E(),D("div",{key:0,class:R(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=Xe(()=>{},["stop"]))},[oe(e.$slots,"header")],2)):re("v-if",!0),ct(X(p,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:R([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll,onEndReached:e.endReached},{default:ne(()=>[e.showNewOption?(E(),le(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):re("v-if",!0),X(f,null,{default:ne(()=>[oe(e.$slots,"default",{},()=>[(E(!0),D(Ve,null,kt(e.options,(v,m)=>(E(),D(Ve,{key:m},[e.getOptions(v)?.length?(E(),le(d,{key:0,label:e.getLabel(v),disabled:e.getDisabled(v)},{default:ne(()=>[(E(!0),D(Ve,null,kt(e.getOptions(v),b=>(E(),le(c,pt({key:e.getValue(b)},{ref_for:!0},e.getOptionProps(b)),null,16))),128))]),_:2},1032,["label","disabled"])):(E(),le(c,pt({key:1,ref_for:!0},e.getOptionProps(v)),null,16))],64))),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll","onEndReached"]),[[$t,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(E(),D("div",{key:1,class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(E(),D("div",{key:2,class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[z("span",null,Ce(e.emptyText),1)])],2)):re("v-if",!0),e.$slots.footer?(E(),D("div",{key:3,class:R(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=Xe(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)):re("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[h,e.handleClickOutside,e.popperRef]])}var uV=Mn(oV,[["render",iV]]);const es=st(uV,{Option:Hm,OptionGroup:Km}),ud=ln(Hm),cV=ln(Km),dV=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return jr(t).map((a,o)=>n-(t-o-1))},fV=e=>jr(e.daysInMonth()).map((t,n)=>n+1),pV=e=>jr(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),hV=Ee({selectedDay:{type:G(Object)},range:{type:G(Array)},date:{type:G(Object),required:!0},hideHeader:{type:Boolean}}),vV={pick:e=>ot(e)};var kk={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a,o){var r=a.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,p,g,h,v){var m=f.name?f:f.$locale(),b=s(m[p]),w=s(m[g]),y=b||w.map(function(k){return k.slice(0,h)});if(!v)return y;var S=m.weekStart;return y.map(function(k,x){return y[(x+(S||0))%7]})},u=function(){return o.Ls[o.locale()]},c=function(f,p){return f.formats[p]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,v,m){return v||m.slice(1)})}(f.formats[p.toUpperCase()])},d=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):l(f,"months")},monthsShort:function(p){return p?p.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):l(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return c(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return l(u(),"months")},o.monthsShort=function(){return l(u(),"monthsShort","months",3)},o.weekdays=function(f){return l(u(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return l(u(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return l(u(),"weekdaysMin","weekdays",2,f)}}})})(kk);var mV=kk.exports;const Ek=Or(mV),gV=(e,t)=>{rt.extend(Ek);const n=rt.localeData().firstDayOfWeek(),{t:a,lang:o}=xt(),r=rt().locale(o.value),s=C(()=>!!e.range&&!!e.range.length),l=C(()=>{let p=[];if(s.value){const[g,h]=e.range,v=jr(h.date()-g.date()+1).map(w=>({text:g.date()+w,type:"current"}));let m=v.length%7;m=m===0?0:7-m;const b=jr(m).map((w,y)=>({text:y+1,type:"next"}));p=v.concat(b)}else{const g=e.date.startOf("month").day(),h=dV(e.date,(g-n+7)%7).map(b=>({text:b,type:"prev"})),v=fV(e.date).map(b=>({text:b,type:"current"}));p=[...h,...v];const m=jr(7-(p.length%7||7)).map((b,w)=>({text:w+1,type:"next"}));p=p.concat(m)}return pV(p)}),u=C(()=>{const p=n;return p===0?Xf.map(g=>a(`el.datepicker.weeks.${g}`)):Xf.slice(p).concat(Xf.slice(0,p)).map(g=>a(`el.datepicker.weeks.${g}`))}),c=(p,g)=>{switch(g){case"prev":return e.date.startOf("month").subtract(1,"month").date(p);case"next":return e.date.startOf("month").add(1,"month").date(p);case"current":return e.date.date(p)}};return{now:r,isInRange:s,rows:l,weekDays:u,getFormattedDate:c,handlePickDay:({text:p,type:g})=>{t("pick",c(p,g))},getSlotData:({text:p,type:g})=>{const h=c(p,g);return{isSelected:h.isSame(e.selectedDay),type:`${g}-month`,day:h.format(tl),date:h.toDate()}}}},bV={key:0},yV=["onClick"];var wV=se({name:"DateTable",__name:"date-table",props:hV,emits:vV,setup(e,{expose:t,emit:n}){const a=e,{isInRange:o,now:r,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:c,getSlotData:d}=gV(a,n),f=ge("calendar-table"),p=ge("calendar-day"),g=({text:h,type:v})=>{const m=[v];if(v==="current"){const b=u(h,v);b.isSame(a.selectedDay,"day")&&m.push(p.is("selected")),b.isSame(r,"day")&&m.push(p.is("today"))}return m};return t({getFormattedDate:u}),(h,v)=>(E(),D("table",{class:R([i(f).b(),i(f).is("range",i(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?re("v-if",!0):(E(),D("thead",bV,[z("tr",null,[(E(!0),D(Ve,null,kt(i(l),m=>(E(),D("th",{key:m,scope:"col"},Ce(m),1))),128))])])),z("tbody",null,[(E(!0),D(Ve,null,kt(i(s),(m,b)=>(E(),D("tr",{key:b,class:R({[i(f).e("row")]:!0,[i(f).em("row","hide-border")]:b===0&&e.hideHeader})},[(E(!0),D(Ve,null,kt(m,(w,y)=>(E(),D("td",{key:y,class:R(g(w)),onClick:S=>i(c)(w)},[z("div",{class:R(i(p).b())},[oe(h.$slots,"date-cell",{data:i(d)(w)},()=>[z("span",null,Ce(w.text),1)])],2)],10,yV))),128))],2))),128))])],2))}}),Cy=wV;const SV=(e,t)=>{const n=e.endOf("month"),a=t.startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),t]]},CV=(e,t)=>{const n=e.endOf("month"),a=e.add(1,"month").startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a,r=o.endOf("month"),s=t.startOf("month"),l=r.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[o.startOf("week"),r],[l.startOf("week"),t]]},kV=(e,t,n)=>{const{lang:a}=xt(),o=M(),r=rt().locale(a.value),s=C({get(){return e.modelValue?u.value:o.value},set(b){if(!b)return;o.value=b;const w=b.toDate();t(Tn,w),t(at,w)}}),l=C(()=>{if(!e.range||!we(e.range)||e.range.length!==2||e.range.some(y=>!Ur(y)))return[];const[b,w]=e.range.map(y=>rt(y).locale(a.value));return b.isAfter(w)?(jt(n,"end time should be greater than start time"),[]):b.isSame(w,"month")?g(b,w):b.add(1,"month").month()!==w.month()?(jt(n,"start time and end time interval must not exceed two months"),[]):g(b,w)}),u=C(()=>e.modelValue?rt(e.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:r)),c=C(()=>u.value.subtract(1,"month").date(1)),d=C(()=>u.value.add(1,"month").date(1)),f=C(()=>u.value.subtract(1,"year").date(1)),p=C(()=>u.value.add(1,"year").date(1)),g=(b,w)=>{const y=b.startOf("week"),S=w.endOf("week"),k=y.get("month"),x=S.get("month");return k===x?[[y,S]]:(k+1)%12===x?SV(y,S):k+2===x||(k+1)%11===x?CV(y,S):(jt(n,"start time and end time interval must not exceed two months"),[])},h=b=>{s.value=b},v=b=>{const w={"prev-month":c.value,"next-month":d.value,"prev-year":f.value,"next-year":p.value,today:r}[b];w.isSame(u.value,"day")||h(w)};return{calculateValidatedDateRange:g,date:u,realSelectedDay:s,pickDay:h,selectDate:v,validatedRange:l,handleDateChange:b=>{b==="today"?v("today"):h(b)}}},EV=Ee({date:{type:G(Object),required:!0},formatter:{type:G(Function)}}),xV={"date-change":e=>ot(e)||Ae(e)};var TV=se({name:"SelectController",__name:"select-controller",props:EV,emits:xV,setup(e,{emit:t}){const n=e,a=t,o=ge("calendar-select"),{t:r,lang:s}=xt(),l=Array.from({length:12},(h,v)=>{const m=v+1;return{value:m,label:Fe(n.formatter)?n.formatter(m,"month"):m}}),u=C(()=>n.date.year()),c=C(()=>n.date.month()+1),d=C(()=>{const h=[];for(let v=-10;v<10;v++){const m=u.value+v;if(m>0){const b=Fe(n.formatter)?n.formatter(m,"year"):m;h.push({value:m,label:b})}}return h}),f=h=>{a("date-change",rt(new Date(h,c.value-1,1)).locale(s.value))},p=h=>{a("date-change",rt(new Date(u.value,h-1,1)).locale(s.value))},g=()=>{a("date-change","today")};return(h,v)=>(E(),D(Ve,null,[X(i(es),{"model-value":u.value,size:"small",class:R(i(o).e("year")),"validate-event":!1,options:d.value,onChange:f},null,8,["model-value","class","options"]),X(i(es),{"model-value":c.value,size:"small",class:R(i(o).e("month")),"validate-event":!1,options:i(l),onChange:p},null,8,["model-value","class","options"]),X(i(Bn),{size:"small",onClick:g},{default:ne(()=>[wt(Ce(i(r)("el.datepicker.today")),1)]),_:1})],64))}}),OV=TV;const ky="ElCalendar";var _V=se({name:ky,__name:"calendar",props:lB,emits:iB,setup(e,{expose:t,emit:n}){const a=ge("calendar"),{calculateValidatedDateRange:o,date:r,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c,handleDateChange:d}=kV(e,n,ky),{t:f}=xt(),p=C(()=>{const g=`el.datepicker.month${r.value.format("M")}`;return`${r.value.year()} ${f("el.datepicker.year")} ${f(g)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:o}),(g,h)=>(E(),D("div",{class:R(i(a).b())},[z("div",{class:R(i(a).e("header"))},[oe(g.$slots,"header",{date:p.value},()=>[z("div",{class:R(i(a).e("title"))},Ce(p.value),3),i(c).length===0&&e.controllerType==="button"?(E(),D("div",{key:0,class:R(i(a).e("button-group"))},[X(i(QC),null,{default:ne(()=>[X(i(Bn),{size:"small",onClick:h[0]||(h[0]=v=>i(u)("prev-month"))},{default:ne(()=>[wt(Ce(i(f)("el.datepicker.prevMonth")),1)]),_:1}),X(i(Bn),{size:"small",onClick:h[1]||(h[1]=v=>i(u)("today"))},{default:ne(()=>[wt(Ce(i(f)("el.datepicker.today")),1)]),_:1}),X(i(Bn),{size:"small",onClick:h[2]||(h[2]=v=>i(u)("next-month"))},{default:ne(()=>[wt(Ce(i(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):i(c).length===0&&e.controllerType==="select"?(E(),D("div",{key:1,class:R(i(a).e("select-controller"))},[X(OV,{date:i(r),formatter:e.formatter,onDateChange:i(d)},null,8,["date","formatter","onDateChange"])],2)):re("v-if",!0)])],2),i(c).length===0?(E(),D("div",{key:0,class:R(i(a).e("body"))},[X(Cy,{date:i(r),"selected-day":i(l),onPick:i(s)},ma({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ne(v=>[oe(g.$slots,"date-cell",sr(ir(v)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(E(),D("div",{key:1,class:R(i(a).e("body"))},[(E(!0),D(Ve,null,kt(i(c),(v,m)=>(E(),le(Cy,{key:m,date:v[0],"selected-day":i(l),range:v,"hide-header":m!==0,onPick:i(s)},ma({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ne(b=>[oe(g.$slots,"date-cell",pt({ref_for:!0},b))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}}),RV=_V;const IV=st(RV),$V=Ee({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:G([String,Object,Array,Boolean]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var NV=se({name:"ElCard",__name:"card",props:$V,setup(e){const t=xr("card"),n=ge("card");return(a,o)=>(E(),D("div",{class:R([i(n).b(),i(n).is(`${e.shadow||i(t)?.shadow||"always"}-shadow`)])},[a.$slots.header||e.header?(E(),D("div",{key:0,class:R([i(n).e("header"),e.headerClass])},[oe(a.$slots,"header",{},()=>[wt(Ce(e.header),1)])],2)):re("v-if",!0),z("div",{class:R([i(n).e("body"),e.bodyClass]),style:ze(e.bodyStyle)},[oe(a.$slots,"default")],6),a.$slots.footer||e.footer?(E(),D("div",{key:1,class:R([i(n).e("footer"),e.footerClass])},[oe(a.$slots,"footer",{},()=>[wt(Ce(e.footer),1)])],2)):re("v-if",!0)],2))}}),MV=NV;const PV=st(MV),AV=Ee({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}),LV={change:(e,t)=>[e,t].every(Be)},xk=Symbol("carouselContextKey"),cd="ElCarouselItem",DV=Ee({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Ey=300,BV=(e,t,n)=>{const{children:a,addChild:o,removeChild:r,ChildrenSorter:s}=df(dt(),cd),l=wn(),u=M(-1),c=M(null),d=M(!1),f=M(),p=M(0),g=M(!0),h=C(()=>e.arrow!=="never"&&!i(b)),v=C(()=>a.value.some(ae=>ae.props.label.toString().length>0)),m=C(()=>e.type==="card"),b=C(()=>e.direction==="vertical"),w=C(()=>e.height!=="auto"?{height:e.height}:{height:`${p.value}px`,overflow:"hidden"}),y=Fr(ae=>{I(ae)},Ey,{trailing:!0}),S=Fr(ae=>{A(ae)},Ey),k=ae=>g.value?u.value<=1?ae<=1:ae>1:!0;function x(){c.value&&(clearInterval(c.value),c.value=null)}function O(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>T(),e.interval))}const T=()=>{u.valueue.props.name===ae);de.length>0&&(ae=a.value.indexOf(de[0]))}if(ae=Number(ae),Number.isNaN(ae)||ae!==Math.floor(ae)){jt(n,"index must be integer.");return}const ce=a.value.length,Z=u.value;ae<0?u.value=e.loop?ce-1:0:ae>=ce?u.value=e.loop?0:ce-1:u.value=ae,Z===u.value&&_(Z),F()}function _(ae){a.value.forEach((ce,Z)=>{ce.translateItem(Z,u.value,ae)})}function N(ae,ce){const Z=i(a),de=Z.length;if(de===0||!ae.states.inStage)return!1;const ue=ce+1,Y=ce-1,Q=de-1,L=Z[Q].states.active,q=Z[0].states.active,te=Z[ue]?.states?.active,fe=Z[Y]?.states?.active;return ce===Q&&q||te?"left":ce===0&&L||fe?"right":!1}function $(){d.value=!0,e.pauseOnHover&&x()}function B(){d.value=!1,O()}function K(ae){i(b)||a.value.forEach((ce,Z)=>{ae===N(ce,Z)&&(ce.states.hover=!0)})}function j(){i(b)||a.value.forEach(ae=>{ae.states.hover=!1})}function W(ae){u.value=ae}function A(ae){e.trigger==="hover"&&ae!==u.value&&(u.value=ae)}function P(){I(u.value-1)}function V(){I(u.value+1)}function F(){x(),(!e.pauseOnHover||!d.value)&&O()}function H(ae){e.height==="auto"&&(p.value=ae)}function U(){const ae=l.default?.();if(!ae)return null;const ce=Aa(ae).filter(Z=>Zt(Z)&&Z.type.name==="ElCarouselItem");return ce?.length===2&&e.loop&&!m.value?(g.value=!0,ce):(g.value=!1,null)}pe(()=>u.value,(ae,ce)=>{_(ce),g.value&&(ae=ae%2,ce=ce%2),ce>-1&&t(yt,ae,ce)});const J=C({get:()=>g.value?u.value%2:u.value,set:ae=>u.value=ae});pe(()=>e.autoplay,ae=>{ae?O():x()}),pe(()=>e.loop,()=>{I(u.value)}),pe(()=>e.interval,()=>{F()});const ee=Tt();return ht(()=>{pe(()=>a.value,()=>{a.value.length>0&&I(e.initialIndex)},{immediate:!0}),ee.value=an(f.value,()=>{_()}),O()}),Vt(()=>{x(),f.value&&ee.value&&ee.value.stop()}),St(xk,{root:f,isCardType:m,isVertical:b,items:a,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:r,setActiveItem:I,setContainerHeight:H}),{root:f,activeIndex:u,exposeActiveIndex:J,arrowDisplay:h,hasLabel:v,hover:d,isCardType:m,items:a,isVertical:b,containerStyle:w,isItemsTwoLength:g,handleButtonEnter:K,handleButtonLeave:j,handleIndicatorClick:W,handleMouseEnter:$,handleMouseLeave:B,setActiveItem:I,prev:P,next:V,PlaceholderItem:U,isTwoLengthShow:k,ItemsSorter:s,throttledArrowClick:y,throttledIndicatorHover:S}},VV=["aria-label"],FV=["aria-label"],zV=["onMouseenter","onClick"],HV=["aria-label"],KV={key:0},WV={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},xy="ElCarousel";var jV=se({name:xy,__name:"carousel",props:AV,emits:LV,setup(e,{expose:t,emit:n}){const a=e,{root:o,activeIndex:r,exposeActiveIndex:s,arrowDisplay:l,hasLabel:u,hover:c,isCardType:d,items:f,isVertical:p,containerStyle:g,handleButtonEnter:h,handleButtonLeave:v,handleIndicatorClick:m,handleMouseEnter:b,handleMouseLeave:w,setActiveItem:y,prev:S,next:k,PlaceholderItem:x,isTwoLengthShow:O,ItemsSorter:T,throttledArrowClick:I,throttledIndicatorHover:_}=BV(a,n,xy),N=ge("carousel"),{t:$}=xt(),B=C(()=>{const A=[N.b(),N.m(a.direction)];return i(d)&&A.push(N.m("card")),A.push(N.is("vertical-outside",i(p)&&a.indicatorPosition==="outside")),A}),K=C(()=>{const A=[N.e("indicators"),N.em("indicators",a.direction)];return i(u)&&A.push(N.em("indicators","labels")),a.indicatorPosition==="outside"&&A.push(N.em("indicators","outside")),i(p)&&A.push(N.em("indicators","right")),A});function j(A){if(!a.motionBlur)return;const P=i(p)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;A.currentTarget.classList.add(P)}function W(A){if(!a.motionBlur)return;const P=i(p)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;A.currentTarget.classList.remove(P)}return t({activeIndex:s,setActiveItem:y,prev:S,next:k}),(A,P)=>(E(),D("div",{ref_key:"root",ref:o,class:R(B.value),onMouseenter:P[6]||(P[6]=Xe((...V)=>i(b)&&i(b)(...V),["stop"])),onMouseleave:P[7]||(P[7]=Xe((...V)=>i(w)&&i(w)(...V),["stop"]))},[i(l)?(E(),le(Yn,{key:0,name:"carousel-arrow-left",persisted:""},{default:ne(()=>[ct(z("button",{type:"button",class:R([i(N).e("arrow"),i(N).em("arrow","left")]),"aria-label":i($)("el.carousel.leftArrow"),onMouseenter:P[0]||(P[0]=V=>i(h)("left")),onMouseleave:P[1]||(P[1]=(...V)=>i(v)&&i(v)(...V)),onClick:P[2]||(P[2]=Xe(V=>i(I)(i(r)-1),["stop"]))},[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1})],42,VV),[[$t,(e.arrow==="always"||i(c))&&(e.loop||i(r)>0)]])]),_:1})):re("v-if",!0),i(l)?(E(),le(Yn,{key:1,name:"carousel-arrow-right",persisted:""},{default:ne(()=>[ct(z("button",{type:"button",class:R([i(N).e("arrow"),i(N).em("arrow","right")]),"aria-label":i($)("el.carousel.rightArrow"),onMouseenter:P[3]||(P[3]=V=>i(h)("right")),onMouseleave:P[4]||(P[4]=(...V)=>i(v)&&i(v)(...V)),onClick:P[5]||(P[5]=Xe(V=>i(I)(i(r)+1),["stop"]))},[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})],42,FV),[[$t,(e.arrow==="always"||i(c))&&(e.loop||i(r)[e.indicatorPosition!=="none"?(E(),D("ul",{key:0,class:R(K.value)},[(E(!0),D(Ve,null,kt(i(f),(V,F)=>ct((E(),D("li",{key:F,class:R([i(N).e("indicator"),i(N).em("indicator",e.direction),i(N).is("active",F===i(r))]),onMouseenter:H=>i(_)(F),onClick:Xe(H=>i(m)(F),["stop"])},[z("button",{class:R(i(N).e("button")),"aria-label":i($)("el.carousel.indicator",{index:F+1})},[i(u)?(E(),D("span",KV,Ce(V.props.label),1)):re("v-if",!0)],10,HV)],42,zV)),[[$t,i(O)(F)]])),128))],2)):re("v-if",!0)]),_:1}),e.motionBlur?(E(),D("svg",WV,[...P[8]||(P[8]=[z("defs",null,[z("filter",{id:"elCarouselHorizontal"},[z("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),z("filter",{id:"elCarouselVertical"},[z("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):re("v-if",!0)],34))}}),UV=jV;const qV=e=>{const t=$e(xk),n=dt();t||jt(cd,"usage: "),n||jt(cd,"compositional hook can only be invoked inside setups");const a=M(),o=M(!1),r=M(0),s=M(1),l=M(!1),u=M(!1),c=M(!1),d=M(!1),{isCardType:f,isVertical:p,cardScale:g}=t;function h(S,k,x){const O=x-1,T=k-1,I=k+1,_=x/2;return k===0&&S===O?-1:k===O&&S===0?x:S=_?x+1:S>I&&S-k>=_?-2:S}function v(S,k){const x=i(p)?t.root.value?.offsetHeight||0:t.root.value?.offsetWidth||0;return c.value?x*((2-g)*(S-k)+1)/4:S{const O=i(f),T=t.items.value.length??NaN,I=S===k;!O&&!Rt(x)&&(d.value=I||S===x),!I&&T>2&&t.loop&&(S=h(S,k,T));const _=i(p);l.value=I,O?(c.value=Math.round(Math.abs(S-k))<=1,r.value=v(S,k),s.value=i(l)?1:g):r.value=m(S,k,_),u.value=!0,I&&a.value&&t.setContainerHeight(a.value.offsetHeight)};function w(){if(t&&i(f)){const S=t.items.value.findIndex(({uid:k})=>k===n.uid);t.setActiveItem(S)}}const y={props:e,states:Dt({hover:o,translate:r,scale:s,active:l,ready:u,inStage:c,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:b};return t.addItem(y),Vt(()=>{t.removeItem(y)}),{carouselItemRef:a,active:l,animating:d,hover:o,inStage:c,isVertical:p,translate:r,isCardType:f,scale:s,ready:u,handleItemClick:w}};var YV=se({name:cd,__name:"carousel-item",props:DV,setup(e){const t=e,n=ge("carousel"),{carouselItemRef:a,active:o,animating:r,hover:s,inStage:l,isVertical:u,translate:c,isCardType:d,scale:f,ready:p,handleItemClick:g}=qV(t),h=C(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",l.value),n.is("hover",s.value),n.is("animating",r.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&u.value}]),v=C(()=>({transform:[`${`translate${i(u)?"Y":"X"}`}(${i(c)}px)`,`scale(${i(f)})`].join(" ")}));return(m,b)=>ct((E(),D("div",{ref_key:"carouselItemRef",ref:a,class:R(h.value),style:ze(v.value),onClick:b[0]||(b[0]=(...w)=>i(g)&&i(g)(...w))},[i(d)?ct((E(),D("div",{key:0,class:R(i(n).e("mask"))},null,2)),[[$t,!i(o)]]):re("v-if",!0),oe(m.$slots,"default")],6)),[[$t,i(p)]])}}),Tk=YV;const GV=st(UV,{CarouselItem:Tk}),XV=ln(Tk),Ok=Ee({modelValue:{type:G([Number,String,Array,Object])},options:{type:G(Array),default:()=>[]},props:{type:G(Object),default:()=>({})},virtualScroll:Boolean,itemSize:{type:Number,default:34},height:{type:Number,default:204}}),JV={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:ut,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},ZV=Ee({...Ok,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),Ty=e=>!0,QV={[at]:Ty,[yt]:Ty,close:()=>!0,"expand-change":e=>e},eF=e=>C(()=>({...JV,...e.props})),dd="itemRendered",fd="scroll",mp="end-reached",pd="forward",tF="backward",qa="auto",ru="start",Mo="center",nF="horizontal",_k="vertical",su="negative",Wm="positive-ascending",jm="positive-descending",aF={[nF]:"left",[_k]:"top"},Bh=So({type:G([Number,Function]),required:!0}),Vh=So({type:Number}),Fh=So({type:Number,default:2}),oF=So({type:String,values:["ltr","rtl"],default:"ltr"}),zh=So({type:Number,default:0}),hd=So({type:Number,required:!0}),Rk=So({type:String,values:["horizontal","vertical"],default:_k}),Ik=Ee({className:{type:String,default:""},containerElement:{type:G([String,Object]),default:"div"},data:{type:G(Array),default:()=>pn([])},direction:oF,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:G(Object),default:()=>({})},style:{type:G([Object,String,Array,Boolean]),default:void 0},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},innerWidth:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),$k=Ee({cache:Fh,estimatedItemSize:Vh,layout:Rk,initScrollOffset:zh,total:hd,itemSize:Bh,...Ik}),Hh={type:Number,default:6},Nk={type:Number,default:0},Mk={type:Number,default:2},Es=Ee({columnCache:Fh,columnWidth:Bh,estimatedColumnWidth:Vh,estimatedRowHeight:Vh,initScrollLeft:zh,initScrollTop:zh,itemKey:{type:G(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:Fh,rowHeight:Bh,totalColumn:hd,totalRow:hd,hScrollbarSize:Hh,vScrollbarSize:Hh,scrollbarStartGap:Nk,scrollbarEndGap:Mk,role:String,...Ik}),Pk=Ee({alwaysOn:Boolean,class:String,layout:Rk,total:hd,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Hh,startGap:Nk,endGap:Mk,visible:Boolean}),vi=(e,t)=>ee==="ltr"||e==="rtl"||e==="horizontal",Oy=e=>e==="rtl";let Gs=null;function vd(e=!1){if(Gs===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const a=document.createElement("div"),o=a.style;return o.width="100px",o.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?Gs=jm:(t.scrollLeft=1,t.scrollLeft===0?Gs=su:Gs=Wm),document.body.removeChild(t),Gs}return Gs}function rF({move:e,size:t,bar:n},a){const o={},r=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=r,a==="horizontal"?o.height="100%":o.width="100%",o}var _y=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function sF(e,t){return!!(e===t||_y(e)&&_y(t))}function lF(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const e=dt().proxy.$props;return C(()=>{const t=(n,a,o)=>({});return e.perfMode?Xd(t):iF(t)})},Lk=({atEndEdge:e,atStartEdge:t,layout:n},a)=>{let o,r=0;const s=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:s,onWheel:u=>{co(o);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value==="horizontal"?c:d;s(f)||(r+=f,!af()&&f!==0&&u.preventDefault(),o=Oa(()=>{a(r),r=0}))}}},Kh=se({name:"ElVirtualScrollBar",props:Pk,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=C(()=>e.startGap+e.endGap),a=ge("virtual-scrollbar"),o=ge("scrollbar"),r=M(),s=M();let l=null,u=null;const c=Dt({isDragging:!1,traveled:0}),d=C(()=>HC[e.layout]),f=C(()=>e.clientSize-i(n)),p=C(()=>({position:"absolute",width:`${e.layout==="horizontal"?f.value:e.scrollbarSize}px`,height:`${e.layout==="horizontal"?e.scrollbarSize:f.value}px`,[aF[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),g=C(()=>{const x=e.ratio;if(x>=100)return Number.POSITIVE_INFINITY;if(x>=50)return x*f.value/100;const O=f.value/3;return Math.floor(Math.min(Math.max(x*f.value/100,20),O))}),h=C(()=>{if(!Number.isFinite(g.value))return{display:"none"};const x=`${g.value}px`;return rF({bar:d.value,size:x,move:c.traveled},e.layout)}),v=C(()=>Math.ceil(e.clientSize-g.value-i(n))),m=()=>{window.addEventListener("mousemove",S),window.addEventListener("mouseup",y);const x=i(s);x&&(u=document.onselectstart,document.onselectstart=()=>!1,x.addEventListener("touchmove",S,{passive:!0}),x.addEventListener("touchend",y))},b=()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",y),document.onselectstart=u,u=null;const x=i(s);x&&(x.removeEventListener("touchmove",S),x.removeEventListener("touchend",y))},w=x=>{x.stopImmediatePropagation(),!(x.ctrlKey||[1,2].includes(x.button))&&(c.isDragging=!0,c[d.value.axis]=x.currentTarget[d.value.offset]-(x[d.value.client]-x.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),m())},y=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),b()},S=x=>{const{isDragging:O}=c;if(!O||!s.value||!r.value)return;const T=c[d.value.axis];if(!T)return;co(l);const I=(r.value.getBoundingClientRect()[d.value.direction]-x[d.value.client])*-1-(s.value[d.value.offset]-T);l=Oa(()=>{c.traveled=Math.max(0,Math.min(I,v.value)),t("scroll",I,v.value)})},k=x=>{const O=Math.abs(x.target.getBoundingClientRect()[d.value.direction]-x[d.value.client])-s.value[d.value.offset]/2;c.traveled=Math.max(0,Math.min(O,v.value)),t("scroll",O,v.value)};return pe(()=>e.scrollFrom,x=>{c.isDragging||(c.traveled=Math.ceil(x*v.value))}),Vt(()=>{b()}),()=>qe("div",{role:"presentation",ref:r,class:[a.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:p.value,onMousedown:Xe(k,["stop","prevent"]),onTouchstartPrevent:w},qe("div",{ref:s,class:o.e("thumb"),style:h.value,onMousedown:w},[]))}}),Dk=({name:e,getOffset:t,getItemSize:n,getItemOffset:a,getEstimatedTotalSize:o,getStartIndexForOffset:r,getStopIndexForStartIndex:s,initCache:l,clearCache:u,validateProps:c})=>se({name:e??"ElVirtualList",props:$k,emits:[dd,fd,mp],setup(d,{emit:f,expose:p}){c(d);const g=dt(),h=ge("vl"),v=M(l(d,g)),m=Ak(),b=M(),w=M(),y=M(),S=M({isScrolling:!1,scrollDir:pd,scrollOffset:Be(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1}),k=C(()=>{const{total:L,cache:q}=d,{isScrolling:te,scrollDir:fe,scrollOffset:he}=i(S);if(L===0)return[0,0,0,0];const ve=r(d,he,i(v)),Ie=s(d,ve,he,i(v)),Le=!te||fe==="backward"?Math.max(1,q):1,_e=!te||fe==="forward"?Math.max(1,q):1;return[Math.max(0,ve-Le),Math.max(0,Math.min(L-1,Ie+_e)),ve,Ie]}),x=C(()=>o(d,i(v))),O=C(()=>lu(d.layout)),T=C(()=>[{position:"relative",[`overflow-${O.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:Be(d.height)?`${d.height}px`:d.height,width:Be(d.width)?`${d.width}px`:d.width},d.style]),I=C(()=>{const L=i(x),q=i(O),te=d.innerWidth;return{height:q?"100%":`${L}px`,pointerEvents:i(S).isScrolling?"none":void 0,width:q?`${L}px`:te!==void 0?Be(te)?`${te}px`:te:"100%",margin:0,boxSizing:"border-box"}}),_=C(()=>O.value?d.width:d.height),N=C(()=>Math.max(0,x.value-_.value)),$=L=>tf(L,0,N.value),B=1,K=L=>({start:!Vo(L,0,B),end:!Vo(N.value,L,B)}),j=C(()=>$(S.value.scrollOffset)),W=C(()=>K(j.value));let A=W.value;const{onWheel:P}=Lk({atStartEdge:C(()=>W.value.start),atEndEdge:C(()=>W.value.end),layout:C(()=>d.layout)},L=>{y.value.onMouseUp?.(),ce(Math.min(S.value.scrollOffset+L,N.value))});Bt(b,"wheel",P,{passive:!1});const V=()=>{const{total:L}=d;if(L>0){const[he,ve,Ie,Le]=i(k);f(dd,he,ve,Ie,Le)}const{scrollDir:q,scrollOffset:te,updateRequested:fe}=i(S);f(fd,q,te,fe)},F=(L,q)=>{const te=K(q),fe=d.direction==="rtl"?"left":"right",he=d.direction==="rtl"?"right":"left";L==="forward"&&te.end&&!A.end&&f(mp,O.value?fe:"bottom"),L==="backward"&&te.start&&!A.start&&f(mp,O.value?he:"top"),A=te},H=(L,{isScrolling:q,updateRequested:te})=>{const fe=i(S),he=Math.max(L,0);if(he===fe.scrollOffset)return;const ve=vi(fe.scrollOffset,he);S.value={...fe,isScrolling:q,scrollDir:ve,scrollOffset:he,updateRequested:te},F(ve,$(he)),Ne(ue)},U=L=>{const{clientHeight:q,scrollHeight:te,scrollTop:fe}=L.currentTarget;i(S).scrollOffset!==fe&&H(Math.min(fe,te-q),{isScrolling:!0,updateRequested:!1})},J=L=>{const{clientWidth:q,scrollLeft:te,scrollWidth:fe}=L.currentTarget;if(i(S).scrollOffset===te)return;const{direction:he}=d;let ve=te;if(he==="rtl")switch(vd()){case su:ve=-te;break;case jm:ve=fe-q-te;break}H(Math.min(ve,fe-q),{isScrolling:!0,updateRequested:!1})},ee=L=>{i(O)?J(L):U(L),V()},ae=(L,q)=>{const te=N.value/q*L;ce(Math.min(N.value,te))},ce=L=>{H(L,{isScrolling:i(S).isScrolling,updateRequested:!0})},Z=(L,q=qa)=>{const{scrollOffset:te}=i(S);L=Math.max(0,Math.min(L,d.total-1)),ce(t(d,L,q,te,i(v)))},de=L=>{const{direction:q,itemSize:te,layout:fe}=d,he=m.value(u&&te,u&&fe,u&&q);let ve;if(Nt(he,String(L)))ve=he[L];else{const Ie=a(d,L,i(v)),Le=n(d,L,i(v)),_e=i(O),ye=q==="rtl",Te=_e?Ie:0;he[L]=ve={position:"absolute",left:ye?void 0:`${Te}px`,right:ye?`${Te}px`:void 0,top:_e?0:`${Ie}px`,height:_e?"100%":`${Le}px`,width:_e?`${Le}px`:"100%"}}return ve},ue=()=>{S.value.isScrolling=!1,Ne(()=>{m.value(-1,null,null)})},Y=()=>{const L=b.value;L&&(L.scrollTop=0)};ht(()=>{if(!Lt)return;const{initScrollOffset:L}=d,q=i(b);Be(L)&&q&&(i(O)?q.scrollLeft=L:q.scrollTop=L),V()}),bo(()=>{const{direction:L,layout:q}=d,{scrollOffset:te,updateRequested:fe}=i(S),he=i(b);if(fe&&he)if(q==="horizontal")if(L==="rtl")switch(vd()){case su:he.scrollLeft=-te;break;case Wm:he.scrollLeft=te;break;default:{const{clientWidth:ve,scrollWidth:Ie}=he;he.scrollLeft=Ie-ve-te;break}}else he.scrollLeft=te;else he.scrollTop=te}),gu(()=>{i(b).scrollTop=i(S).scrollOffset}),pe(N,()=>{A=W.value});const Q={ns:h,clientSize:_,estimatedTotalSize:x,windowStyle:T,windowRef:b,innerRef:w,innerStyle:I,itemsToRender:k,scrollbarRef:y,states:S,getItemStyle:de,onScroll:ee,onScrollbarScroll:ae,onWheel:P,scrollTo:ce,scrollToItem:Z,resetScrollTop:Y};return p({windowRef:b,innerRef:w,getItemStyleCache:m,scrollTo:ce,scrollToItem:Z,resetScrollTop:Y,states:S}),Q},render(d){const{$slots:f,className:p,clientSize:g,containerElement:h,data:v,getItemStyle:m,innerElement:b,itemsToRender:w,innerStyle:y,layout:S,scrollbarAlwaysOn:k,total:x,onScroll:O,onScrollbarScroll:T,states:I,useIsScrolling:_,windowStyle:N,ns:$}=d,[B,K]=w,j=it(h),W=it(b),A=[];if(x>0)for(let H=B;H<=K;H++)A.push(qe(Ve,{key:H},f.default?.({data:v,index:H,isScrolling:_?I.isScrolling:void 0,style:m(H)})));const P=[qe(W,pt(d.innerProps,{style:y,ref:"innerRef"}),Ae(W)?A:{default:()=>A})],V=qe(Kh,{ref:"scrollbarRef",clientSize:g,layout:S,onScroll:T,ratio:g*100/this.estimatedTotalSize,scrollFrom:I.scrollOffset/(this.estimatedTotalSize-g),total:x,alwaysOn:k}),F=qe(j,{class:[$.e("window"),p],style:N,onScroll:O,ref:"windowRef",key:0},Ae(j)?[P]:{default:()=>[P]});return qe("div",{key:0,class:[$.e("wrapper"),k?"always-on":""]},[F,V])}}),gf=Dk({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:a,width:o},r,s,l)=>{const u=lu(a)?o:e;Ae(u)&&sn("[ElVirtualList]",` - You should set - width/height - to number when your layout is - horizontal/vertical - `);const c=Math.max(0,t*n-u),d=Math.min(c,r*n),f=Math.max(0,(r+1)*n-u);switch(s==="smart"&&(l>=f-u&&l<=d+u?s=qa:s=Mo),s){case ru:return d;case"end":return f;case Mo:{const p=Math.round(f+(d-f)/2);return pc+Math.floor(u/2)?c:p}case qa:default:return l>=f&&l<=d?l:lMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:o},r,s)=>{const l=r*n,u=lu(a)?o:e,c=Math.ceil((u+s-l)/n);return Math.max(0,Math.min(t-1,r+c-1))},initCache(){},clearCache:!0,validateProps(){}}),uF="ElDynamicSizeList",rl=(e,t,n)=>{const{itemSize:a}=e,{items:o,lastVisitedIndex:r}=n;if(t>r){let s=0;if(r>=0){const l=o[r];s=l.offset+l.size}for(let l=r+1;l<=t;l++){const u=a(l);o[l]={offset:s,size:u},s+=u}n.lastVisitedIndex=t}return o[t]},cF=(e,t,n)=>{const{items:a,lastVisitedIndex:o}=t;return(o>0?a[o].offset:0)>=n?Bk(e,t,0,o,n):dF(e,t,Math.max(0,o),n)},Bk=(e,t,n,a,o)=>{for(;n<=a;){const r=n+Math.floor((a-n)/2),s=rl(e,r,t).offset;if(s===o)return r;so&&(a=r-1)}return Math.max(0,n-1)},dF=(e,t,n,a)=>{const{total:o}=e;let r=1;for(;n{let o=0;if(a>=e&&(a=e-1),a>=0){const s=t[a];o=s.offset+s.size}const r=(e-a-1)*n;return o+r},fF=Dk({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>rl(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:Ry,getOffset:(e,t,n,a,o)=>{const{height:r,layout:s,width:l}=e,u=lu(s)?l:r,c=rl(e,t,o),d=Ry(e,o),f=Math.max(0,Math.min(d-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n==="smart"&&(a>=p-u&&a<=f+u?n=qa:n=Mo),n){case ru:return f;case"end":return p;case Mo:return Math.round(p+(f-p)/2);case qa:default:return a>=p&&a<=f?a:acF(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:o,total:r,layout:s,width:l}=e,u=lu(s)?l:o,c=rl(e,t,a),d=n+u;let f=c.offset+c.size,p=t;for(;p{n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),t.exposed?.getItemStyleCache(-1),o&&t.proxy?.$forceUpdate()},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&sn(uF,` - itemSize is required as function, but the given value was ${typeof e} - `)}}),pF=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let r=null,s=0,l=0;const u=(d,f)=>{const p=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return p||g};return{hasReachedEdge:u,onWheel:d=>{co(r);let f=d.deltaX,p=d.deltaY;if(Math.abs(f)>Math.abs(p)?p=0:f=0,d.shiftKey&&p!==0&&(f=p,p=0),u(f,p)){d.deltaX!==0&&f===0&&d.preventDefault();return}s+=f,l+=p,d.preventDefault(),r=Oa(()=>{o(s,l),s=0,l=0})}}},hF=(e,t,n,a,o,r,s)=>{const l=M(0),u=M(0);let c,d=0,f=0;const p=h=>{co(c),l.value=h.touches[0].clientX,u.value=h.touches[0].clientY,d=0,f=0},g=h=>{h.preventDefault(),co(c),d+=l.value-h.touches[0].clientX,f+=u.value-h.touches[0].clientY,l.value=h.touches[0].clientX,u.value=h.touches[0].clientY,c=Oa(()=>{const v=a.value-i(r),m=o.value-i(s);n({scrollLeft:Math.min(t.value.scrollLeft+d,v),scrollTop:Math.min(t.value.scrollTop+f,m)}),d=0,f=0})};return Bt(e,"touchstart",p,{passive:!0}),Bt(e,"touchmove",g,{passive:!1}),{touchStartX:l,touchStartY:u,handleTouchStart:p,handleTouchMove:g}},Vk=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:r,getEstimatedTotalWidth:s,getColumnOffset:l,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:p,injectToInstance:g,validateProps:h})=>se({name:e??"ElVirtualList",props:Es,emits:[dd,fd],setup(v,{emit:m,expose:b,slots:w}){const y=ge("vl");h(v);const S=dt(),k=M(p(v,S));g?.(S,k);const x=M(),O=M(),T=M(),I=M(),_=M({isScrolling:!1,scrollLeft:Be(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:Be(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:pd,yAxisScrollDir:pd}),N=Ak(),$=C(()=>Number.parseInt(`${v.height}`,10)),B=C(()=>Number.parseInt(`${v.width}`,10)),K=C(()=>{const{totalColumn:ye,totalRow:Te,columnCache:be}=v,{isScrolling:Pe,xAxisScrollDir:He,scrollLeft:Je}=i(_);if(ye===0||Te===0)return[0,0,0,0];const Qe=a(v,Je,i(k)),lt=o(v,Qe,Je,i(k)),Ze=!Pe||He==="backward"?Math.max(1,be):1,gt=!Pe||He==="forward"?Math.max(1,be):1;return[Math.max(0,Qe-Ze),Math.max(0,Math.min(ye-1,lt+gt)),Qe,lt]}),j=C(()=>{const{totalColumn:ye,totalRow:Te,rowCache:be}=v,{isScrolling:Pe,yAxisScrollDir:He,scrollTop:Je}=i(_);if(ye===0||Te===0)return[0,0,0,0];const Qe=d(v,Je,i(k)),lt=f(v,Qe,Je,i(k)),Ze=!Pe||He==="backward"?Math.max(1,be):1,gt=!Pe||He==="forward"?Math.max(1,be):1;return[Math.max(0,Qe-Ze),Math.max(0,Math.min(Te-1,lt+gt)),Qe,lt]}),W=C(()=>r(v,i(k))),A=C(()=>s(v,i(k))),P=C(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:Be(v.height)?`${v.height}px`:v.height,width:Be(v.width)?`${v.width}px`:v.width},v.style??{}]),V=C(()=>{const ye=`${i(A)}px`;return{height:`${i(W)}px`,pointerEvents:i(_).isScrolling?"none":void 0,width:ye,margin:0,boxSizing:"border-box"}}),F=()=>{const{totalColumn:ye,totalRow:Te}=v;if(ye>0&&Te>0){const[lt,Ze,gt,Pt]=i(K),[zt,nt,ft,me]=i(j);m(dd,{columnCacheStart:lt,columnCacheEnd:Ze,rowCacheStart:zt,rowCacheEnd:nt,columnVisibleStart:gt,columnVisibleEnd:Pt,rowVisibleStart:ft,rowVisibleEnd:me})}const{scrollLeft:be,scrollTop:Pe,updateRequested:He,xAxisScrollDir:Je,yAxisScrollDir:Qe}=i(_);m(fd,{xAxisScrollDir:Je,scrollLeft:be,yAxisScrollDir:Qe,scrollTop:Pe,updateRequested:He})},H=ye=>{const{clientHeight:Te,clientWidth:be,scrollHeight:Pe,scrollLeft:He,scrollTop:Je,scrollWidth:Qe}=ye.currentTarget,lt=i(_);if(lt.scrollTop===Je&<.scrollLeft===He)return;let Ze=He;if(Oy(v.direction))switch(vd()){case su:Ze=-He;break;case jm:Ze=Qe-be-He;break}_.value={...lt,isScrolling:!0,scrollLeft:Ze,scrollTop:Math.max(0,Math.min(Je,Pe-Te)),updateRequested:!0,xAxisScrollDir:vi(lt.scrollLeft,Ze),yAxisScrollDir:vi(lt.scrollTop,Je)},Ne(()=>L()),q(),F()},U=(ye,Te)=>{const be=i($),Pe=(W.value-be)/Te*ye;ae({scrollTop:Math.min(W.value-be,Pe)})},J=(ye,Te)=>{const be=i(B),Pe=(A.value-be)/Te*ye;ae({scrollLeft:Math.min(A.value-be,Pe)})},{onWheel:ee}=pF({atXStartEdge:C(()=>_.value.scrollLeft<=0),atXEndEdge:C(()=>_.value.scrollLeft>=A.value-i(B)),atYStartEdge:C(()=>_.value.scrollTop<=0),atYEndEdge:C(()=>_.value.scrollTop>=W.value-i($))},(ye,Te)=>{O.value?.onMouseUp?.(),T.value?.onMouseUp?.();const be=i(B),Pe=i($);ae({scrollLeft:Math.min(_.value.scrollLeft+ye,A.value-be),scrollTop:Math.min(_.value.scrollTop+Te,W.value-Pe)})});Bt(x,"wheel",ee,{passive:!1});const ae=({scrollLeft:ye=_.value.scrollLeft,scrollTop:Te=_.value.scrollTop})=>{ye=Math.max(ye,0),Te=Math.max(Te,0);const be=i(_);Te===be.scrollTop&&ye===be.scrollLeft||(_.value={...be,xAxisScrollDir:vi(be.scrollLeft,ye),yAxisScrollDir:vi(be.scrollTop,Te),scrollLeft:ye,scrollTop:Te,updateRequested:!0},Ne(()=>L()),q(),F())},{touchStartX:ce,touchStartY:Z,handleTouchStart:de,handleTouchMove:ue}=hF(x,_,ae,A,W,B,$),Y=(ye=0,Te=0,be=qa)=>{const Pe=i(_);Te=Math.max(0,Math.min(Te,v.totalColumn-1)),ye=Math.max(0,Math.min(ye,v.totalRow-1));const He=HS(y.namespace.value),Je=i(k),Qe=r(v,Je),lt=s(v,Je);ae({scrollLeft:l(v,Te,be,Pe.scrollLeft,Je,lt>v.width?He:0),scrollTop:u(v,ye,be,Pe.scrollTop,Je,Qe>v.height?He:0)})},Q=(ye,Te)=>{const{columnWidth:be,direction:Pe,rowHeight:He}=v,Je=N.value(t&&be,t&&He,t&&Pe),Qe=`${ye},${Te}`;if(Nt(Je,Qe))return Je[Qe];{const[,lt]=n(v,Te,i(k)),Ze=i(k),gt=Oy(Pe),[Pt,zt]=c(v,ye,Ze),[nt]=n(v,Te,Ze);return Je[Qe]={position:"absolute",left:gt?void 0:`${lt}px`,right:gt?`${lt}px`:void 0,top:`${zt}px`,height:`${Pt}px`,width:`${nt}px`},Je[Qe]}},L=()=>{_.value.isScrolling=!1,Ne(()=>{N.value(-1,null,null)})};ht(()=>{if(!Lt)return;const{initScrollLeft:ye,initScrollTop:Te}=v,be=i(x);be&&(Be(ye)&&(be.scrollLeft=ye),Be(Te)&&(be.scrollTop=Te)),F()});const q=()=>{const{direction:ye}=v,{scrollLeft:Te,scrollTop:be,updateRequested:Pe}=i(_),He=i(x);if(Pe&&He){if(ye==="rtl")switch(vd()){case su:He.scrollLeft=-Te;break;case Wm:He.scrollLeft=Te;break;default:{const{clientWidth:Je,scrollWidth:Qe}=He;He.scrollLeft=Qe-Je-Te;break}}else He.scrollLeft=Math.max(0,Te);He.scrollTop=Math.max(0,be)}},{resetAfterColumnIndex:te,resetAfterRowIndex:fe,resetAfter:he}=S.proxy;b({windowRef:x,innerRef:I,getItemStyleCache:N,touchStartX:ce,touchStartY:Z,handleTouchStart:de,handleTouchMove:ue,scrollTo:ae,scrollToItem:Y,states:_,resetAfterColumnIndex:te,resetAfterRowIndex:fe,resetAfter:he});const ve=()=>{const{scrollbarAlwaysOn:ye,scrollbarStartGap:Te,scrollbarEndGap:be,totalColumn:Pe,totalRow:He}=v,Je=i(B),Qe=i($),lt=i(A),Ze=i(W),{scrollLeft:gt,scrollTop:Pt}=i(_);return{horizontalScrollbar:qe(Kh,{ref:O,alwaysOn:ye,startGap:Te,endGap:be,class:y.e("horizontal"),clientSize:Je,layout:"horizontal",onScroll:J,ratio:Je*100/lt,scrollFrom:gt/(lt-Je),total:He,visible:!0}),verticalScrollbar:qe(Kh,{ref:T,alwaysOn:ye,startGap:Te,endGap:be,class:y.e("vertical"),clientSize:Qe,layout:"vertical",onScroll:U,ratio:Qe*100/Ze,scrollFrom:Pt/(Ze-Qe),total:Pe,visible:!0})}},Ie=()=>{const[ye,Te]=i(K),[be,Pe]=i(j),{data:He,totalColumn:Je,totalRow:Qe,useIsScrolling:lt,itemKey:Ze}=v,gt=[];if(Qe>0&&Je>0)for(let Pt=be;Pt<=Pe;Pt++)for(let zt=ye;zt<=Te;zt++){const nt=Ze({columnIndex:zt,data:He,rowIndex:Pt});gt.push(qe(Ve,{key:nt},w.default?.({columnIndex:zt,data:He,isScrolling:lt?i(_).isScrolling:void 0,style:Q(Pt,zt),rowIndex:Pt})))}return gt},Le=()=>{const ye=it(v.innerElement),Te=Ie();return[qe(ye,pt(v.innerProps,{style:i(V),ref:I}),Ae(ye)?Te:{default:()=>Te})]};return()=>{const ye=it(v.containerElement),{horizontalScrollbar:Te,verticalScrollbar:be}=ve(),Pe=Le();return qe("div",{key:0,class:y.e("wrapper"),role:v.role},[qe(ye,{class:v.className,style:i(P),onScroll:H,ref:x},Ae(ye)?Pe:{default:()=>Pe}),Te,be])}}}),Iy="ElFixedSizeGrid",vF=Vk({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,o,r,s,l)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,a*t),d=Math.max(0,a*t-n+l+t);switch(o==="smart"&&(r>=d-n&&r<=c+n?o=qa:o=Mo),o){case ru:return c;case"end":return d;case Mo:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(n/2)?u:f}case qa:default:return r>=d&&r<=c?r:d>c||r{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,a*e),d=Math.max(0,a*e-t+l+e);switch(o==="smart"&&(r>=d-t&&r<=c+t?o=qa:o=Mo),o){case ru:return c;case"end":return d;case Mo:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(t/2)?u:f}case qa:default:return r>=d&&r<=c?r:d>c||rMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,o)=>{const r=a*e,s=Math.ceil((n+o-r)/e);return Math.max(0,Math.min(t-1,a+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,o)=>{const r=a*e,s=Math.ceil((n+o-r)/e);return Math.max(0,Math.min(t-1,a+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{Be(e)||sn(Iy,` - "columnWidth" must be passed as number, - instead ${typeof e} was given. - `),Be(t)||sn(Iy,` - "columnWidth" must be passed as number, - instead ${typeof t} was given. - `)}}),{max:md,min:Fk,floor:zk}=Math,$y="ElDynamicSizeGrid",mF={column:"columnWidth",row:"rowHeight"},Wh={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},tr=(e,t,n,a)=>{const[o,r,s]=[n[a],e[mF[a]],n[Wh[a]]];if(t>s){let l=0;if(s>=0){const u=o[s];l=u.offset+u.size}for(let u=s+1;u<=t;u++){const c=r(u);o[u]={offset:l,size:c},l+=c}n[Wh[a]]=t}return o[t]},Hk=(e,t,n,a,o,r)=>{for(;n<=a;){const s=n+zk((a-n)/2),l=tr(e,s,t,r).offset;if(l===o)return s;l{const r=o==="column"?e.totalColumn:e.totalRow;let s=1;for(;n{const[o,r]=[t[a],t[Wh[a]]];return(r>0?o[r].offset:0)>=n?Hk(e,t,0,r,n,a):gF(e,t,md(0,r),n,a)},Kk=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const s=a[n];o=s.offset+s.size}const r=(e-n-1)*t;return o+r},Wk=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const s=t[a];o=s.offset+s.size}const r=(e-a-1)*n;return o+r},bF={column:Wk,row:Kk},My=(e,t,n,a,o,r,s)=>{const[l,u]=[r==="row"?e.height:e.width,bF[r]],c=tr(e,t,o,r),d=md(0,Fk(u(e,o)-l,c.offset)),f=md(0,c.offset-l+s+c.size);switch(n==="smart"&&(a>=f-l&&a<=d+l?n=qa:n=Mo),n){case ru:return d;case"end":return f;case Mo:return Math.round(f+(d-f)/2);case qa:default:return a>=f&&a<=d?a:f>d||a{const a=tr(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=tr(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,r)=>My(e,t,n,a,o,"column",r),getRowOffset:(e,t,n,a,o,r)=>My(e,t,n,a,o,"row",r),getColumnStartIndexForOffset:(e,t,n)=>Ny(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=tr(e,t,a,"column"),r=n+e.width;let s=o.offset+o.size,l=t;for(;lNy(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:r}=e,s=tr(e,t,a,"row"),l=n+r;let u=s.size+s.offset,c=t;for(;c{const n=({columnIndex:r,rowIndex:s},l)=>{l=Rt(l)?!0:l,Be(r)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,r-1)),Be(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),e.exposed?.getItemStyleCache.value(-1,null,null),l&&e.proxy?.$forceUpdate()},a=(r,s)=>{n({columnIndex:r},s)},o=(r,s)=>{n({rowIndex:r},s)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{Fe(e)||sn($y,` - "columnWidth" must be passed as function, - instead ${typeof e} was given. - `),Fe(t)||sn($y,` - "rowHeight" must be passed as function, - instead ${typeof t} was given. - `)}}),jk={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:{type:Boolean,default:void 0},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:Nn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ia(["ariaControls"])},Uk={[at]:e=>Ae(e)||Be(e)||Wt(e),change:e=>Ae(e)||Be(e)||Wt(e)},ql=Symbol("checkboxGroupContextKey"),wF=Ee({modelValue:{type:G(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:Nn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:G(Array)},props:{type:G(Object),default:()=>qk},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ia(["ariaLabel"])}),SF={[at]:e=>we(e),change:e=>we(e)},qk={label:"label",value:"value",disabled:"disabled"},CF=({model:e,isChecked:t})=>{const n=$e(ql,void 0),a=$e(Hs,void 0),o=C(()=>{const r=n?.max?.value,s=n?.min?.value;return!Rt(r)&&e.value.length>=r&&!t.value||!Rt(s)&&e.value.length<=s&&t.value});return{isDisabled:un(C(()=>n===void 0?a?.disabled??o.value:n.disabled?.value||o.value)),isLimitDisabled:o}},kF=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:o,isLabeledByFormItem:r})=>{const s=$e(ql,void 0),{formItem:l}=Fn(),{emit:u}=dt();function c(h){return[!0,e.trueValue,e.trueLabel].includes(h)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(h,v){u(yt,c(h),v)}function f(h){if(n.value)return;const v=h.target;u(yt,c(v.checked),h)}async function p(h){n.value||!a.value&&!o.value&&r.value&&(h.composedPath().some(v=>v.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Ne(),d(t.value,h)))}const g=C(()=>s?.validateEvent||e.validateEvent);return pe(()=>e.modelValue,()=>{g.value&&l?.validate("change").catch(ut)}),{handleChange:f,onClickRoot:p}},EF=e=>{const t=M(!1),{emit:n,vnode:a}=dt(),o=$e(ql,void 0),r=C(()=>Rt(o)===!1),s=M(!1),l=C(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=C({get(){return r.value?o?.modelValue?.value:l.value?e.modelValue:t.value},set(c){r.value&&we(c)?(s.value=o?.max?.value!==void 0&&c.length>o?.max.value&&c.length>u.value.length,s.value===!1&&o?.changeEvent?.(c)):(n(at,c),t.value=c)}});return{model:u,isGroup:r,isLimitExceeded:s}},xF=(e,t,{model:n})=>{const a=$e(ql,void 0),o=M(!1),r=C(()=>Pa(e.value)?e.label:e.value),s=C(()=>{const l=n.value;return Wt(l)?l:we(l)?ot(r.value)?l.map(Jt).some(u=>fn(u,r.value)):l.map(Jt).includes(r.value):l!=null?l===e.trueValue||l===e.trueLabel:!!l});return{checkboxButtonSize:In(C(()=>a?.size?.value),{prop:!0}),isChecked:s,isFocused:o,checkboxSize:In(C(()=>a?.size?.value)),hasOwnLabel:C(()=>!!t.default||!Pa(r.value)),actualValue:r}},Yk=(e,t)=>{const{formItem:n}=Fn(),{model:a,isGroup:o,isLimitExceeded:r}=EF(e),{isFocused:s,isChecked:l,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=xF(e,t,{model:a}),{isDisabled:p}=CF({model:a,isChecked:l}),{inputId:g,isLabeledByFormItem:h}=_a(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=kF(e,{model:a,isLimitExceeded:r,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:h});return(()=>{function w(){we(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&w()})(),Po({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>o.value&&Pa(e.value))),Po({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>!!e.trueLabel)),Po({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:h,isChecked:l,isDisabled:p,isFocused:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:v,onClickRoot:m}},TF=["id","indeterminate","name","tabindex","disabled"];var OF=se({name:"ElCheckbox",__name:"checkbox",props:jk,emits:Uk,setup(e){const t=e,{inputId:n,isLabeledByFormItem:a,isChecked:o,isDisabled:r,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:p}=Yk(t,wn()),g=C(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:d.value}),h=ge("checkbox"),v=C(()=>[h.b(),h.m(l.value),h.is("disabled",r.value),h.is("bordered",t.border),h.is("checked",o.value)]),m=C(()=>[h.e("input"),h.is("disabled",r.value),h.is("checked",o.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(b,w)=>(E(),le(it(!i(u)&&i(a)?"span":"label"),{for:!i(u)&&i(a)?null:i(n),class:R(v.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:i(p)},{default:ne(()=>[z("span",{class:R(m.value)},[ct(z("input",pt({id:i(n),"onUpdate:modelValue":w[0]||(w[0]=y=>Gt(c)?c.value=y:null),class:i(h).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:i(r)},g.value,{onChange:w[1]||(w[1]=(...y)=>i(f)&&i(f)(...y)),onFocus:w[2]||(w[2]=y=>s.value=!0),onBlur:w[3]||(w[3]=y=>s.value=!1),onClick:w[4]||(w[4]=Xe(()=>{},["stop"]))}),null,16,TF),[[I2,i(c)]]),z("span",{class:R(i(h).e("inner"))},null,2)],2),i(u)?(E(),D("span",{key:0,class:R(i(h).e("label"))},[oe(b.$slots,"default"),b.$slots.default?re("v-if",!0):(E(),D(Ve,{key:0},[wt(Ce(e.label),1)],64))],2)):re("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}}),Gk=OF;const _F=["name","tabindex","disabled"];var RF=se({name:"ElCheckboxButton",__name:"checkbox-button",props:jk,emits:Uk,setup(e){const t=e,{isFocused:n,isChecked:a,isDisabled:o,checkboxButtonSize:r,model:s,actualValue:l,handleChange:u}=Yk(t,wn()),c=C(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:l.value}),d=$e(ql,void 0),f=ge("checkbox"),p=C(()=>{const h=d?.fill?.value??"";return{backgroundColor:h,borderColor:h,color:d?.textColor?.value??"",boxShadow:h?`-1px 0 0 0 ${h}`:void 0}}),g=C(()=>[f.b("button"),f.bm("button",r.value),f.is("disabled",o.value),f.is("checked",a.value),f.is("focus",n.value)]);return(h,v)=>(E(),D("label",{class:R(g.value)},[ct(z("input",pt({"onUpdate:modelValue":v[0]||(v[0]=m=>Gt(s)?s.value=m:null),class:i(f).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:i(o)},c.value,{onChange:v[1]||(v[1]=(...m)=>i(u)&&i(u)(...m)),onFocus:v[2]||(v[2]=m=>n.value=!0),onBlur:v[3]||(v[3]=m=>n.value=!1),onClick:v[4]||(v[4]=Xe(()=>{},["stop"]))}),null,16,_F),[[I2,i(s)]]),h.$slots.default||e.label?(E(),D("span",{key:0,class:R(i(f).be("button","inner")),style:ze(i(a)?p.value:void 0)},[oe(h.$slots,"default",{},()=>[wt(Ce(e.label),1)])],6)):re("v-if",!0)],2))}}),Um=RF,IF=se({name:"ElCheckboxGroup",__name:"checkbox-group",props:wF,emits:SF,setup(e,{emit:t}){const n=e,a=t,o=ge("checkbox"),r=un(),{formItem:s}=Fn(),{inputId:l,isLabeledByFormItem:u}=_a(n,{formItemContext:s}),c=async h=>{a(at,h),await Ne(),a(yt,h)},d=C({get(){return n.modelValue},set(h){c(h)}}),f=C(()=>({...qk,...n.props})),p=h=>{const{label:v,value:m,disabled:b}=f.value,w={label:h[v],value:h[m],disabled:h[b]};return{...ku(h,[v,m,b]),...w}},g=C(()=>n.type==="button"?Um:Gk);return St(ql,{...hr(Pn(n),["size","min","max","validateEvent","fill","textColor"]),disabled:r,modelValue:d,changeEvent:c}),pe(()=>n.modelValue,(h,v)=>{n.validateEvent&&!fn(h,v)&&s?.validate("change").catch(ut)}),(h,v)=>(E(),le(it(e.tag),{id:i(l),class:R(i(o).b("group")),role:"group","aria-label":i(u)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":i(u)?i(s)?.labelId:void 0},{default:ne(()=>[oe(h.$slots,"default",{},()=>[(E(!0),D(Ve,null,kt(e.options,(m,b)=>(E(),le(it(g.value),pt({key:b},{ref_for:!0},p(m)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"]))}}),Xk=IF;const mo=st(Gk,{CheckboxButton:Um,CheckboxGroup:Xk}),$F=ln(Um),qm=ln(Xk),Jk=Ee({modelValue:{type:[String,Number,Boolean],default:void 0},size:Nn,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),NF=Ee({...Jk,border:Boolean}),Zk={[at]:e=>Ae(e)||Be(e)||Wt(e),[yt]:e=>Ae(e)||Be(e)||Wt(e)},Qk=Symbol("radioGroupKey"),MF=Ee({...Jk}),eE={label:"label",value:"value",disabled:"disabled"},PF=Ee({id:{type:String,default:void 0},size:Nn,disabled:{type:Boolean,default:void 0},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},options:{type:G(Array)},props:{type:G(Object),default:()=>eE},type:{type:String,values:["radio","button"],default:"radio"},...ia(["ariaLabel"])}),AF=Zk,tE=(e,t)=>{const n=M(),a=$e(Qk,void 0),o=C(()=>!!a),r=C(()=>Pa(e.value)?e.label:e.value),s=C({get(){return o.value?a.modelValue:e.modelValue},set(f){o.value?a.changeEvent(f):t&&t("update:modelValue",f),n.value.checked=e.modelValue===r.value}}),l=In(C(()=>a?.size)),u=un(C(()=>a?.disabled)),c=M(!1),d=C(()=>u.value||o.value&&s.value!==r.value?-1:0);return Po({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},C(()=>o.value&&Pa(e.value))),{radioRef:n,isGroup:o,radioGroup:a,focus:c,size:l,disabled:u,tabIndex:d,modelValue:s,actualValue:r}},LF=["value","name","disabled","checked"];var DF=se({name:"ElRadio",__name:"radio",props:NF,emits:Zk,setup(e,{emit:t}){const n=e,a=t,o=ge("radio"),{radioRef:r,radioGroup:s,focus:l,size:u,disabled:c,modelValue:d,actualValue:f}=tE(n,a);function p(){Ne(()=>a(yt,d.value))}return(g,h)=>(E(),D("label",{class:R([i(o).b(),i(o).is("disabled",i(c)),i(o).is("focus",i(l)),i(o).is("bordered",e.border),i(o).is("checked",i(d)===i(f)),i(o).m(i(u))])},[z("span",{class:R([i(o).e("input"),i(o).is("disabled",i(c)),i(o).is("checked",i(d)===i(f))])},[ct(z("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":h[0]||(h[0]=v=>Gt(d)?d.value=v:null),class:R(i(o).e("original")),value:i(f),name:e.name||i(s)?.name,disabled:i(c),checked:i(d)===i(f),type:"radio",onFocus:h[1]||(h[1]=v=>l.value=!0),onBlur:h[2]||(h[2]=v=>l.value=!1),onChange:p,onClick:h[3]||(h[3]=Xe(()=>{},["stop"]))},null,42,LF),[[$2,i(d)]]),z("span",{class:R(i(o).e("inner"))},null,2)],2),z("span",{class:R(i(o).e("label")),onKeydown:h[4]||(h[4]=Xe(()=>{},["stop"]))},[oe(g.$slots,"default",{},()=>[wt(Ce(e.label),1)])],34)],2))}}),nE=DF;const BF=["value","name","disabled"];var VF=se({name:"ElRadioButton",__name:"radio-button",props:MF,setup(e){const t=e,n=ge("radio"),{radioRef:a,focus:o,size:r,disabled:s,modelValue:l,radioGroup:u,actualValue:c}=tE(t),d=C(()=>({backgroundColor:u?.fill||"",borderColor:u?.fill||"",boxShadow:u?.fill?`-1px 0 0 0 ${u.fill}`:"",color:u?.textColor||""}));return(f,p)=>(E(),D("label",{class:R([i(n).b("button"),i(n).is("active",i(l)===i(c)),i(n).is("disabled",i(s)),i(n).is("focus",i(o)),i(n).bm("button",i(r))])},[ct(z("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":p[0]||(p[0]=g=>Gt(l)?l.value=g:null),class:R(i(n).be("button","original-radio")),value:i(c),type:"radio",name:e.name||i(u)?.name,disabled:i(s),onFocus:p[1]||(p[1]=g=>o.value=!0),onBlur:p[2]||(p[2]=g=>o.value=!1),onClick:p[3]||(p[3]=Xe(()=>{},["stop"]))},null,42,BF),[[$2,i(l)]]),z("span",{class:R(i(n).be("button","inner")),style:ze(i(l)===i(c)?d.value:{}),onKeydown:p[4]||(p[4]=Xe(()=>{},["stop"]))},[oe(f.$slots,"default",{},()=>[wt(Ce(e.label),1)])],38)],2))}}),Ym=VF;const FF=["id","aria-label","aria-labelledby"];var zF=se({name:"ElRadioGroup",__name:"radio-group",props:PF,emits:AF,setup(e,{emit:t}){const n=e,a=t,o=ge("radio"),r=Gn(),s=M(),{formItem:l}=Fn(),{inputId:u,isLabeledByFormItem:c}=_a(n,{formItemContext:l}),d=v=>{a(at,v),Ne(()=>a(yt,v))};ht(()=>{const v=s.value.querySelectorAll("[type=radio]"),m=v[0];!Array.from(v).some(b=>b.checked)&&m&&(m.tabIndex=0)});const f=C(()=>n.name||r.value),p=C(()=>({...eE,...n.props})),g=v=>{const{label:m,value:b,disabled:w}=p.value,y={label:v[m],value:v[b],disabled:v[w]};return{...ku(v,[m,b,w]),...y}},h=C(()=>n.type==="button"?Ym:nE);return St(Qk,Dt({...Pn(n),changeEvent:d,name:f})),pe(()=>n.modelValue,(v,m)=>{n.validateEvent&&!fn(v,m)&&l?.validate("change").catch(ut)}),(v,m)=>(E(),D("div",{id:i(u),ref_key:"radioGroupRef",ref:s,class:R(i(o).b("group")),role:"radiogroup","aria-label":i(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":i(c)?i(l).labelId:void 0},[oe(v.$slots,"default",{},()=>[(E(!0),D(Ve,null,kt(e.options,(b,w)=>(E(),le(it(h.value),pt({key:w},{ref_for:!0},g(b)),null,16))),128))])],10,FF))}}),aE=zF;const oE=st(nE,{RadioButton:Ym,RadioGroup:aE}),HF=ln(aE),KF=ln(Ym),bf=Symbol();function WF(e){return!!(we(e)?e.every(({type:t})=>t===kn):e?.type===kn)}var jF=se({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=ge("cascader-node"),{renderLabelFn:n}=$e(bf),{node:a}=e,{data:o,label:r}=a,s=()=>{const l=n?.({node:a,data:o});return WF(l)?r:l??r};return()=>X("span",{class:t.e("label")},[s()])}});const UF=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var qF=se({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:{type:String,required:!1}},emits:["expand"],setup(e,{emit:t}){const n=e,a=t,o=$e(bf),r=ge("cascader-node"),s=C(()=>o.isHoverMenu),l=C(()=>o.config.multiple),u=C(()=>o.config.checkStrictly),c=C(()=>o.config.showPrefix),d=C(()=>o.checkedNodes[0]?.uid),f=C(()=>n.node.isDisabled),p=C(()=>n.node.isLeaf),g=C(()=>u.value&&!p.value||!f.value),h=C(()=>m(o.expandingNode)),v=C(()=>u.value&&o.checkedNodes.some(m)),m=I=>{const{level:_,uid:N}=n.node;return I?.pathNodes[_-1]?.uid===N},b=()=>{h.value||o.expandNode(n.node)},w=I=>{const{node:_}=n;I!==_.checked&&o.handleCheckChange(_,I)},y=()=>{o.lazyLoad(n.node,()=>{p.value||b()})},S=I=>{s.value&&(k(),!p.value&&a("expand",I))},k=()=>{const{node:I}=n;!g.value||I.loading||(I.loaded?b():y())},x=()=>{p.value&&!f.value&&!u.value&&!l.value?T(!0):(o.config.checkOnClickNode&&(l.value||u.value)||p.value&&o.config.checkOnClickLeaf)&&!f.value?O(!n.node.checked):s.value||k()},O=I=>{u.value?(w(I),n.node.loaded&&b()):T(I)},T=I=>{n.node.loaded?(w(I),!u.value&&b()):y()};return(I,_)=>(E(),D("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!p.value,"aria-owns":p.value?void 0:e.menuId,"aria-expanded":h.value,tabindex:g.value?-1:void 0,class:R([i(r).b(),i(r).is("selectable",u.value),i(r).is("active",e.node.checked),i(r).is("disabled",!g.value),h.value&&"in-active-path",v.value&&"in-checked-path"]),onMouseenter:S,onFocus:S,onClick:x},[re(" prefix "),l.value&&c.value?(E(),le(i(mo),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:f.value,onClick:_[0]||(_[0]=Xe(()=>{},["stop"])),"onUpdate:modelValue":O},null,8,["model-value","indeterminate","disabled"])):u.value&&c.value?(E(),le(i(oE),{key:1,"model-value":d.value,label:e.node.uid,disabled:f.value,"onUpdate:modelValue":O,onClick:_[1]||(_[1]=Xe(()=>{},["stop"]))},{default:ne(()=>[re(` - Add an empty element to avoid render label, - do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 - `),_[2]||(_[2]=z("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):p.value&&e.node.checked?(E(),le(i(De),{key:2,class:R(i(r).e("prefix"))},{default:ne(()=>[X(i(Il))]),_:1},8,["class"])):re("v-if",!0),re(" content "),X(i(jF),{node:e.node},null,8,["node"]),re(" postfix "),p.value?re("v-if",!0):(E(),D(Ve,{key:3},[e.node.loading?(E(),le(i(De),{key:0,class:R([i(r).is("loading"),i(r).e("postfix")])},{default:ne(()=>[X(i(ho))]),_:1},8,["class"])):(E(),le(i(De),{key:1,class:R(["arrow-right",i(r).e("postfix")])},{default:ne(()=>[X(i(sa))]),_:1},8,["class"]))],64))],42,UF))}}),Py=qF,YF=se({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},setup(e,{expose:t}){const n=e,a=dt(),o=ge("cascader-menu"),{t:r}=xt(),s=Gn();let l,u;const c=$e(bf),d=M(),f=M(),p=C(()=>!n.nodes.length),g=C(()=>!c.initialLoaded),h=C(()=>`${s.value}-${n.index}`),v=()=>{let O;if(c.expandingNode){const{level:T,pathNodes:I}=c.expandingNode;n.index0&&(O=c.checkedNodes[0]?.pathNodes[n.index]?.uid)}else c.checkedNodes.length>0&&n.indexT.uid===O):-1},m=O=>O?n.nodes.findIndex(T=>`${h.value}-${T.uid}`===O):-1,b=O=>{const T=Ma(O,0,n.nodes.length-1);f.value?.scrollToItem(T)},w=O=>{if(!n.nodes.length)return;const T=Ma(O,0,n.nodes.length-1);b(T),Ne(()=>{const I=a.vnode.el?.querySelector(`#${h.value}-${n.nodes[T].uid}`);I&&pl(I)})},y=O=>{l=O.target},S=O=>{if(!(!c.isHoverMenu||!l||!d.value))if(l.contains(O.target)){k();const T=a.vnode.el,{left:I}=T.getBoundingClientRect(),{offsetWidth:_,offsetHeight:N}=T,$=O.clientX-I,B=l.offsetTop,K=B+l.offsetHeight,j=n.virtualScroll?f.value?.states?.scrollOffset||0:T.querySelector(`.${o.e("wrap")}`)?.scrollTop||0;d.value.innerHTML=` - - - `}else u||(u=window.setTimeout(x,c.config.hoverThreshold))},k=()=>{u&&(clearTimeout(u),u=void 0)},x=()=>{d.value&&(d.value.innerHTML="",k())};return t({getActiveNodeIndex:v,getNodeIndexById:m,scrollToItem:b,focusNodeAt:w,virtualListRef:f,get $el(){return a.vnode.el}}),(O,T)=>e.virtualScroll?(E(),D("div",{key:h.value,class:R(i(o).b()),onMousemove:S,onMouseleave:x},[X(i(gf),{ref_key:"virtualListRef",ref:f,height:e.height,"item-size":e.itemSize,data:e.nodes,total:e.nodes.length,"class-name":i(o).e("list"),"inner-element":"ul","inner-props":{role:"menu",class:i(o).is("empty",p.value)}},{default:ne(({data:I,index:_,style:N})=>[(E(),le(Py,{key:I[_].uid,node:I[_],"menu-id":h.value,style:ze(N),onExpand:y},null,8,["node","menu-id","style"]))]),_:1},8,["height","item-size","data","total","class-name","inner-props"]),g.value?(E(),D("div",{key:0,class:R(i(o).e("empty-text"))},[X(i(De),{size:14,class:R(i(o).is("loading"))},{default:ne(()=>[X(i(ho))]),_:1},8,["class"]),wt(" "+Ce(i(r)("el.cascader.loading")),1)],2)):p.value?(E(),D("div",{key:1,class:R(i(o).e("empty-text"))},[oe(O.$slots,"empty",{},()=>[wt(Ce(i(r)("el.cascader.noData")),1)])],2)):i(c)?.isHoverMenu?(E(),D(Ve,{key:2},[re(" eslint-disable vue/html-self-closing "),(E(),D("svg",{ref_key:"hoverZone",ref:d,class:R(i(o).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")],34)):(E(),le(i(vo),{key:h.value,tag:"ul",role:"menu",class:R(i(o).b()),"wrap-class":i(o).e("wrap"),"view-class":[i(o).e("list"),i(o).is("empty",p.value)],onMousemove:S,onMouseleave:x},{default:ne(()=>[(E(!0),D(Ve,null,kt(e.nodes,I=>(E(),le(Py,{key:I.uid,node:I,"menu-id":h.value,onExpand:y},null,8,["node","menu-id"]))),128)),g.value?(E(),D("div",{key:0,class:R(i(o).e("empty-text"))},[X(i(De),{size:14,class:R(i(o).is("loading"))},{default:ne(()=>[X(i(ho))]),_:1},8,["class"]),wt(" "+Ce(i(r)("el.cascader.loading")),1)],2)):p.value?(E(),D("div",{key:1,class:R(i(o).e("empty-text"))},[oe(O.$slots,"empty",{},()=>[wt(Ce(i(r)("el.cascader.noData")),1)])],2)):i(c)?.isHoverMenu?(E(),D(Ve,{key:2},[re(" eslint-disable vue/html-self-closing "),(E(),D("svg",{ref_key:"hoverZone",ref:d,class:R(i(o).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]),_:3},8,["class","wrap-class","view-class"]))}}),GF=YF;let XF=0;const JF=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var jh=class Uh{constructor(t,n,a,o=!1){this.data=t,this.config=n,this.parent=a,this.root=o,this.uid=XF++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:r,label:s,children:l}=n,u=t[l],c=JF(this);this.level=o?0:a?a.level+1:1,this.value=t[r],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new Uh(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!ha(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:o,checkStrictly:r}=a;return(Fe(o)?o(t,this):!!t[o])||!r&&!!n?.isDisabled}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:o}=this,{lazy:r,leaf:s}=n,l=Fe(s)?s(t,this):t[s];return Rt(l)?r&&!o?!1:!(we(a)&&a.length):!!l}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,o=new Uh(t,this.config,this);return we(n)?n.push(t):this.childrenData=[t],a.push(o),o}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{n&&(n.broadcast(t),n.onParentCheck?.(t))})}emit(){const{parent:t}=this;t&&(t.onChildCheck?.(),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),a=n.length?n.every(o=>o.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((o,r)=>o+(r.checked?1:r.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const qh=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(qh(a.children,t))),n),[]);var Ay=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new jh(a,this.config));this.nodes=n,this.allNodes=qh(n,!1),this.leafNodes=qh(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new jh(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach(t=>{this.appendAllNodesAndLeafNodes(t)})}getNodeByValue(e,t=!1){return Pa(e)?null:this.getFlattedNodes(t).find(n=>fn(n.value,e)||fn(n.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:t,level:n})=>fn(e.value,t)&&e.level===n)||null}};const gp=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},ZF=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():PS(e)&&e.click()},QF=(e,t)=>{const n=t.slice(0),a=n.map(r=>r.uid),o=e.reduce((r,s)=>{const l=a.indexOf(s.uid);return l>-1&&(r.push(s),n.splice(l,1),a.splice(l,1)),r},[]);return o.push(...n),o};var ez=se({name:"ElCascaderPanel",__name:"index",props:ZV,emits:QV,setup(e,{expose:t,emit:n}){const a=e,o=n;let r=!1;const s=ge("cascader"),l=eF(a),u=wn();let c;const d=M(!0),f=M(!1),p=M([]),g=M(),h=M([]),v=M(),m=M([]),b=C(()=>l.value.expandTrigger==="hover"),w=C(()=>a.renderLabel||u.default),y=C(()=>a.virtualScroll),S=C(()=>a.itemSize),k=C(()=>a.height),x=()=>{const{options:F}=a,H=l.value;r=!1,c=new Ay(F,H),h.value=[c.getNodes()],H.lazy&&ha(a.options)?(d.value=!1,O(void 0,U=>{U&&(c=new Ay(U,H),h.value=[c.getNodes()]),d.value=!0,j(!1,!0)})):j(!1,!0)},O=(F,H)=>{const U=l.value;F=F||new jh({},U,void 0,!0),F.loading=!0;const J=ae=>{const ce=F,Z=ce.root?null:ce;ce.loading=!1,ce.loaded=!0,ce.childrenData=ce.childrenData||[],ae&&c?.appendNodes(ae,Z),ae&&H?.(ae),F.level===0&&(f.value=!0)},ee=()=>{F.loading=!1,F.loaded=!1,F.level===0&&(d.value=!0)};U.lazyLoad(F,J,ee)},T=(F,H)=>{const{level:U}=F,J=h.value.slice(0,U);let ee;F.isLeaf?ee=F.pathNodes[U-2]:(ee=F,J.push(F.children)),v.value?.uid!==ee?.uid&&(v.value=F,h.value=J,!H&&o("expand-change",F?.pathValues||[]))},I=(F,H,U=!0)=>{const{checkStrictly:J,multiple:ee}=l.value,ae=m.value[0];r=!0,!ee&&ae?.doCheck(!1),F.doCheck(H),K(),U&&!ee&&!J&&o("close"),!U&&!ee&&_(F)},_=F=>{F&&(F=F.parent,_(F),F&&T(F))},N=F=>c?.getFlattedNodes(F),$=F=>N(F)?.filter(({checked:H})=>H!==!1),B=()=>{m.value.forEach(F=>F.doCheck(!1)),K(),h.value=h.value.slice(0,1),v.value=void 0,o("expand-change",[])},K=()=>{const{checkStrictly:F,multiple:H}=l.value,U=m.value,J=QF(U,$(!F)),ee=J.map(ae=>ae.valueByOption);m.value=J,g.value=H?ee:ee[0]??null},j=(F=!1,H=!1)=>{const{modelValue:U}=a,{lazy:J,multiple:ee,checkStrictly:ae}=l.value,ce=!ae;if(!(!d.value||r||!H&&fn(U,g.value)))if(J&&!F){const Z=B0(MI(aa(U))).map(de=>c?.getNodeByValue(de)).filter(de=>!!de&&!de.loaded&&!de.loading);Z.length?Z.forEach(de=>{O(de,()=>j(!1,H))}):j(!0,H)}else W(B0((ee?aa(U):[U]).map(Z=>c?.getNodeByValue(Z,ce))),H),g.value=No(U??void 0)},W=(F,H=!0)=>{const{checkStrictly:U}=l.value,J=m.value,ee=F.filter(Z=>!!Z&&(U||Z.isLeaf)),ae=c?.getSameNode(v.value),ce=H&&ae||ee[0];ce?ce.pathNodes.forEach(Z=>T(Z,!0)):v.value=void 0,J.forEach(Z=>Z.doCheck(!1)),Dt(ee).forEach(Z=>Z.doCheck(!0)),m.value=ee,Ne(A)},A=()=>{Lt&&p.value.forEach(F=>{const H=F?.$el;if(H)if(y.value){const U=F?.getActiveNodeIndex?.();U!==void 0&&U>=0&&F?.scrollToItem?.(U)}else{const U=H.querySelector(`.${s.namespace.value}-scrollbar__wrap`);let J=H.querySelector(`.${s.b("node")}.in-active-path`);if(!J){const ee=H.querySelectorAll(`.${s.b("node")}.${s.is("active")}`);J=ee[ee.length-1]}fm(U,J)}})},P=F=>{const H=F.target,U=qt(F);switch(U){case Se.up:case Se.down:{F.preventDefault();const J=U===Se.up?-1:1;if(y.value){const ee=gp(H),ae=p.value[ee];if(ae){const ce=ae.getNodeIndexById(H.id);if(ce>=0){const Z=h.value[ee]??[],de=Z.length;let ue=ce+J;for(;ue>=0&&ue{fn(F,H)||x()},{immediate:!0}),pe(()=>a.options,x,{deep:!0}),pe(()=>a.modelValue,()=>{r=!1,j()},{deep:!0}),pe(()=>g.value,F=>{fn(F,a.modelValue)||(o(at,F),o(yt,F))});const V=()=>{f.value||x()};return Lv(()=>p.value=[]),ht(()=>!ha(a.modelValue)&&j()),t({menuList:p,menus:h,checkedNodes:m,handleKeyDown:P,handleCheckChange:I,getFlattedNodes:N,getCheckedNodes:$,clearCheckedNodes:B,calculateCheckedValue:K,scrollToExpandingNode:A,loadLazyRootNodes:V}),(F,H)=>(E(),D("div",{class:R([i(s).b("panel"),i(s).is("bordered",e.border)]),onKeydown:P},[(E(!0),D(Ve,null,kt(h.value,(U,J)=>(E(),le(GF,{key:J,ref_for:!0,ref:ee=>p.value[J]=ee,index:J,nodes:[...U],"virtual-scroll":y.value,"item-size":S.value,height:k.value},{empty:ne(()=>[oe(F.$slots,"empty")]),_:3},8,["index","nodes","virtual-scroll","item-size","height"]))),128))],34))}}),tz=ez;const rE=st(tz),nz=Ee({...Ok,size:Nn,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:Ut,default:Yo},filterable:Boolean,filterMethod:{type:G(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:G(Function),default:()=>!0},placement:{type:G(String),values:jo,default:"bottom-start"},fallbackPlacements:{type:G(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,teleported:Kt.teleported,effect:{type:G(String),default:"light"},tagType:{...gr.type,default:"info"},tagEffect:{...gr.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},fitInputWidth:{type:[Boolean,Number],default:!1},...zs}),Ly=e=>!0,az={[at]:Ly,[yt]:Ly,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Wt(e),expandChange:e=>!!e,removeTag:e=>!!e},oz=["placeholder"],rz=["onClick"],sz=["id","data-suggestion-index","onClick"],lz=34;var iz=se({name:"ElCascader",__name:"cascader",props:nz,emits:az,setup(e,{expose:t,emit:n}){const a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Oe})=>{const{modifiersData:Ke,placement:We}=Oe;["right","left","bottom","top"].includes(We)||Ke.arrow&&(Ke.arrow.x=35)},requires:["arrow"]}]},o=e,r=n,s=wr(),l=wn();let u=0,c=0;const d=ge("cascader"),f=ge("input"),p={small:7,default:11,large:15},{t:g}=xt(),{formItem:h}=Fn(),v=un(),{valueOnClear:m}=Au(o),{isComposing:b,handleComposition:w}=Pu({afterComposition(Oe){const Ke=Oe.target?.value;en(Ke)}}),y=M(),S=M(),k=M(),x=M(),O=M(),T=M(),I=M(),_=M(!1),N=M(!1),$=M(!1),B=M(""),K=M(""),j=M([]),W=M([]),A=M("100%"),P=C(()=>!!l["suggestion-item"]),V=C(()=>Ma(W.value.length*o.itemSize,o.itemSize,o.height)),F=C(()=>o.props.multiple?o.collapseTags?j.value.slice(0,o.maxCollapseTags):j.value:[]),H=C(()=>o.props.multiple?o.collapseTags?j.value.slice(o.maxCollapseTags):[]:[]),U=C(()=>s.style),J=C(()=>o.placeholder??g("el.cascader.placeholder")),ee=C(()=>K.value||j.value.length>0||b.value?"":J.value),ae=In(),ce=C(()=>ae.value==="small"?"small":"default"),Z=C(()=>!!o.props.multiple),de=C(()=>!o.filterable||Z.value),ue=C(()=>Z.value?K.value:B.value),Y=C(()=>O.value?.checkedNodes||[]),{wrapperRef:Q,isFocused:L,handleBlur:q}=Er(k,{disabled:v,beforeBlur(Oe){return y.value?.isFocusInsideContent(Oe)||S.value?.isFocusInsideContent(Oe)},afterBlur(){o.validateEvent&&h?.validate?.("blur").catch(ut)}}),te=C(()=>!o.clearable||v.value||$.value||!N.value&&!L.value?!1:!!Y.value.length),fe=C(()=>{const{showAllLevels:Oe,separator:Ke}=o,We=Y.value;return We.length?Z.value?"":We[0].calcText(Oe,Ke):""}),he=C(()=>h?.validateState||""),ve=C({get(){return No(o.modelValue)},set(Oe){const Ke=Oe??m.value;r(at,Ke),r(yt,Ke),o.validateEvent&&h?.validate("change").catch(ut)}}),Ie=C(()=>[d.b(),d.m(ae.value),d.is("disabled",v.value),s.class]),Le=C(()=>[f.e("icon"),"icon-arrow-down",d.is("reverse",_.value)]),_e=C(()=>d.is("focus",L.value)),ye=C(()=>y.value?.popperRef?.contentRef),Te=Oe=>{L.value&&q(new FocusEvent("blur",Oe)),be(!1)},be=Oe=>{v.value||(Oe=Oe??!_.value,Oe!==_.value&&(_.value=Oe,k.value?.input?.setAttribute("aria-expanded",`${Oe}`),Oe?(Pe(),O.value&&Ne(O.value.scrollToExpandingNode)):o.filterable&&bt(),r("visibleChange",Oe)))},Pe=()=>{Ne(()=>{y.value?.updatePopper()})},He=()=>{$.value=!1},Je=Oe=>{const{showAllLevels:Ke,separator:We}=o;return{node:Oe,key:Oe.uid,text:Oe.calcText(Ke,We),hitState:!1,closable:!v.value&&!Oe.isDisabled}},Qe=Oe=>{const Ke=Oe.node;Ke.doCheck(!1),O.value?.calculateCheckedValue(),r("removeTag",Ke.valueByOption)},lt=()=>{switch(o.showCheckedStrategy){case"child":return Y.value;case"parent":{const Oe=ie(!1),Ke=Oe.map(We=>We.value);return Oe.filter(We=>!We.parent||!Ke.includes(We.parent.value))}default:return[]}},Ze=()=>{if(!Z.value)return;const Oe=lt(),Ke=[];Oe.forEach(We=>Ke.push(Je(We))),j.value=Ke},gt=()=>{const{filterMethod:Oe,showAllLevels:Ke,separator:We}=o,Xt=O.value?.getFlattedNodes(!o.props.checkStrictly)?.filter(cn=>cn.isDisabled?!1:(cn.calcText(Ke,We),Oe(cn,ue.value)));Z.value&&j.value.forEach(cn=>{cn.hitState=!1}),$.value=!0,W.value=Xt,Ne(()=>{o.virtualScroll&&W.value.length>0&&I.value?.scrollToItem(0),me()}),Pe()},Pt=Oe=>{const Ke=T.value;return Oe?Ke?.querySelector(Oe)??void 0:Ke},zt=()=>{let Oe;$.value&&T.value?Oe=Pt(`.${d.e("suggestion-item")}`):Oe=O.value?.$el.querySelector(`.${d.b("node")}[tabindex="-1"]`),Oe&&(Oe.focus(),!$.value&&Oe.getAttribute("aria-haspopup")==="true"&&Oe.click())},nt=Oe=>{const Ke=Pt();if(!Ke)return;const We=Be(o.fitInputWidth)?`${o.fitInputWidth}px`:`${Oe}px`,Xt=On=>{o.fitInputWidth!==!1?(On.style.width=We,On.style.minWidth=""):(On.style.width="",On.style.minWidth=We)};if(Xt(Ke),o.virtualScroll){A.value=o.fitInputWidth!==!1?We:P.value?`${Oe}px`:`${Math.max(Oe,je())}px`;return}const cn=Pt(`.${d.e("suggestion-list")}`);cn&&Xt(cn)},ft=()=>{if(!l.prefix)return 0;const Oe=k.value?.$el.querySelector(`.${f.e("prefix")}`);if(!Oe)return 0;const Ke=Oe.getBoundingClientRect().width;return Ke<=0?0:Ke+p[ae.value||"default"]},me=()=>{const Oe=k.value?.input,Ke=k.value?.$el;if(!Lt||!Oe||!Ke)return;T.value&&nt(Ke.getBoundingClientRect().width);const We=x.value;if(We){const Xt=j.value.length>0?`${Math.max(We.offsetHeight,u)-2}px`:`${u}px`;Oe.style.height=Xt,We.style.left=`${ft()}px`,Pe()}},je=()=>{if(P.value||!W.value.length)return 0;const Oe=document.createElement("canvas").getContext("2d");if(!Oe)return 0;const Ke=Pt(`.${d.e("suggestion-item")}`);if(!Ke||!Lt)return 0;const We=getComputedStyle(Ke),Xt=Number.parseFloat(We.paddingLeft)+Number.parseFloat(We.paddingRight);Oe.font=`bold ${We.fontSize} ${We.fontFamily}`;let cn=0,On=!1;for(const Xn of W.value){const ya=Xn.text||"",to=Oe.measureText(ya);cn=Math.max(cn,to.width),Xn.checked&&!On&&(On=!0)}return cn+Xt+(On?lz:0)},ie=Oe=>O.value?.getCheckedNodes(Oe),xe=Oe=>{Pe(),r("expandChange",Oe)},Ue=Oe=>{if(!b.value)switch(qt(Oe)){case Se.enter:case Se.numpadEnter:be();break;case Se.down:be(!0),Ne(zt),Oe.preventDefault();break;case Se.esc:_.value===!0&&(Oe.preventDefault(),Oe.stopPropagation(),be(!1));break;case Se.tab:be(!1);break}},et=()=>{O.value?.clearCheckedNodes(),!_.value&&o.filterable&&bt(),be(!1),r("clear")},bt=()=>{const{value:Oe}=fe;B.value=Oe,K.value=Oe},vt=Oe=>{const{checked:Ke}=Oe;Z.value?O.value?.handleCheckChange(Oe,!Ke,!1):(!Ke&&O.value?.handleCheckChange(Oe,!0,!1),be(!1))},Et=Oe=>{const Ke=Oe.closest("[data-suggestion-index]")?.dataset.suggestionIndex;if(!Ke)return-1;const We=Number.parseInt(Ke,10);return Number.isNaN(We)||We<0||We>=W.value.length?-1:We},Yt=Oe=>{const Ke=Oe.target,We=qt(Oe);switch(We){case Se.up:case Se.down:{Oe.preventDefault();const Xt=We===Se.up?-1:1;if(o.virtualScroll&&I.value){const cn=Et(Ke);if(cn>=0){const On=W.value.length,Xn=(cn+Xt+On)%On;I.value.scrollToItem(Xn),Ne(()=>{const ya=Pt(`#suggestion-${W.value[Xn].uid}`);ya&&pl(ya)});return}}pl(AS(Ke,Xt,`.${d.e("suggestion-item")}[tabindex="-1"]`));break}case Se.enter:case Se.numpadEnter:Ke.click();break}},on=()=>{const Oe=j.value[j.value.length-1];c=K.value?0:c+1,!(!Oe||!c||o.collapseTags&&j.value.length>1)&&(Oe.hitState?Qe(Oe):Oe.hitState=!0)},At=xu(()=>{const{value:Oe}=ue;if(!Oe)return;const Ke=o.beforeFilter(Oe);qr(Ke)?Ke.then(gt).catch(()=>{}):Ke!==!1?gt():He()},C(()=>o.debounce)),en=(Oe,Ke)=>{if(!_.value&&be(!0),!Ke?.isComposing)if(Oe)At();else{const We=o.beforeFilter("");qr(We)&&We.catch(()=>{}),He()}},Ye=Oe=>Number.parseFloat(k$(f.cssVarName("input-height"),Oe).value)-2,Ge=()=>{k.value?.focus()},tt=()=>{k.value?.blur()};return pe($,Pe),pe([Y,v,()=>o.collapseTags,()=>o.maxCollapseTags],Ze),pe(j,()=>{Ne(()=>me())}),pe(ae,async()=>{await Ne();const Oe=k.value.input;u=Ye(Oe)||u,me()}),pe(fe,bt,{immediate:!0}),pe(()=>_.value,Oe=>{Oe&&o.props.lazy&&o.props.lazyLoad&&O.value?.loadLazyRootNodes()}),ht(()=>{const Oe=k.value.input,Ke=k.value.$el,We=Ye(Oe);u=Oe.offsetHeight||We,an(Ke,me)}),t({getCheckedNodes:ie,cascaderPanelRef:O,togglePopperVisible:be,contentRef:ye,presentText:fe,focus:Ge,blur:tt}),(Oe,Ke)=>(E(),le(i(Wn),{ref_key:"tooltipRef",ref:y,visible:_.value,teleported:e.teleported,"popper-class":[i(d).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":a,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${i(d).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:He},{default:ne(()=>[ct((E(),D("div",{ref_key:"wrapperRef",ref:Q,class:R(Ie.value),style:ze(U.value),onClick:Ke[8]||(Ke[8]=()=>be(de.value?void 0:!0)),onKeydown:Ue,onMouseenter:Ke[9]||(Ke[9]=We=>N.value=!0),onMouseleave:Ke[10]||(Ke[10]=We=>N.value=!1)},[X(i(Un),{ref_key:"inputRef",ref:k,modelValue:B.value,"onUpdate:modelValue":Ke[1]||(Ke[1]=We=>B.value=We),placeholder:ee.value,readonly:de.value,disabled:i(v),"validate-event":!1,size:i(ae),class:R(_e.value),tabindex:Z.value&&e.filterable&&!i(v)?-1:void 0,onCompositionstart:i(w),onCompositionupdate:i(w),onCompositionend:i(w),onInput:en},ma({suffix:ne(()=>[te.value?(E(),le(i(De),{key:"clear",class:R([i(f).e("icon"),"icon-circle-close"]),onClick:Xe(et,["stop"])},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class"])):(E(),le(i(De),{key:"arrow-down",class:R(Le.value),onClick:Ke[0]||(Ke[0]=Xe(We=>be(),["stop"]))},{default:ne(()=>[X(i(qo))]),_:1},8,["class"]))]),_:2},[Oe.$slots.prefix?{name:"prefix",fn:ne(()=>[oe(Oe.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),Z.value?(E(),D("div",{key:0,ref_key:"tagWrapper",ref:x,class:R([i(d).e("tags"),i(d).is("validate",!!he.value)])},[oe(Oe.$slots,"tag",{data:j.value,deleteTag:Qe},()=>[(E(!0),D(Ve,null,kt(F.value,We=>(E(),le(i(cr),{key:We.key,type:e.tagType,size:ce.value,effect:e.tagEffect,hit:We.hitState,closable:We.closable,"disable-transitions":"",onClose:Xt=>Qe(We)},{default:ne(()=>[z("span",null,Ce(We.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&j.value.length>e.maxCollapseTags?(E(),le(i(Wn),{key:0,ref_key:"tagTooltipRef",ref:S,disabled:_.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:ne(()=>[X(i(cr),{closable:!1,size:ce.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ne(()=>[z("span",{class:R(i(d).e("tags-text"))}," + "+Ce(j.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:ne(()=>[X(i(vo),{"max-height":e.maxCollapseTagsTooltipHeight},{default:ne(()=>[z("div",{class:R(i(d).e("collapse-tags"))},[(E(!0),D(Ve,null,kt(H.value,(We,Xt)=>(E(),D("div",{key:Xt,class:R(i(d).e("collapse-tag"))},[(E(),le(i(cr),{key:We.key,class:"in-tooltip",type:e.tagType,size:ce.value,effect:e.tagEffect,hit:We.hitState,closable:We.closable,"disable-transitions":"",onClose:cn=>Qe(We)},{default:ne(()=>[z("span",null,Ce(We.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):re("v-if",!0),e.filterable&&!i(v)?ct((E(),D("input",{key:1,"onUpdate:modelValue":Ke[2]||(Ke[2]=We=>K.value=We),type:"text",class:R(i(d).e("search-input")),placeholder:fe.value?"":J.value,onInput:Ke[3]||(Ke[3]=We=>en(K.value,We)),onClick:Ke[4]||(Ke[4]=Xe(We=>be(!0),["stop"])),onKeydown:dn(on,["delete"]),onCompositionstart:Ke[5]||(Ke[5]=(...We)=>i(w)&&i(w)(...We)),onCompositionupdate:Ke[6]||(Ke[6]=(...We)=>i(w)&&i(w)(...We)),onCompositionend:Ke[7]||(Ke[7]=(...We)=>i(w)&&i(w)(...We))},null,42,oz)),[[R2,K.value]]):re("v-if",!0)],2)):re("v-if",!0)],38)),[[i(Qr),Te,ye.value]])]),content:ne(()=>[Oe.$slots.header?(E(),D("div",{key:0,class:R(i(d).e("header")),onClick:Ke[11]||(Ke[11]=Xe(()=>{},["stop"]))},[oe(Oe.$slots,"header")],2)):re("v-if",!0),ct(X(i(rE),{ref_key:"cascaderPanelRef",ref:O,modelValue:ve.value,"onUpdate:modelValue":Ke[12]||(Ke[12]=We=>ve.value=We),options:e.options,props:o.props,border:!1,"render-label":Oe.$slots.default,"virtual-scroll":e.virtualScroll,"item-size":e.itemSize,height:e.height,onExpandChange:xe,onClose:Ke[13]||(Ke[13]=We=>Oe.$nextTick(()=>be(!1)))},{empty:ne(()=>[oe(Oe.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label","virtual-scroll","item-size","height"]),[[$t,!$.value]]),e.filterable?(E(),D(Ve,{key:1},[e.virtualScroll?ct((E(),D("div",{key:1,ref_key:"suggestionPanel",ref:T,class:R(i(d).e("suggestion-panel")),onKeydown:Yt},[ct(X(i(gf),{ref_key:"suggestionVirtualListRef",ref:I,height:V.value,"item-size":e.itemSize,data:W.value,total:W.value.length,"class-name":i(d).e("suggestion-list"),"inner-element":"ul","inner-width":A.value},{default:ne(({data:We,index:Xt,style:cn})=>[(E(),D("li",{id:`suggestion-${We[Xt].uid}`,key:We[Xt].uid,"data-suggestion-index":Xt,class:R([i(d).e("suggestion-item"),i(d).is("checked",We[Xt].checked)]),tabindex:-1,style:ze(cn),onClick:On=>vt(We[Xt])},[oe(Oe.$slots,"suggestion-item",{item:We[Xt]},()=>[z("span",null,Ce(We[Xt].text),1),We[Xt].checked?(E(),le(i(De),{key:0},{default:ne(()=>[X(i(Il))]),_:1})):re("v-if",!0)])],14,sz))]),_:3},8,["height","item-size","data","total","class-name","inner-width"]),[[$t,W.value.length]]),W.value.length?re("v-if",!0):oe(Oe.$slots,"empty",{key:0},()=>[z("ul",{class:R(i(d).e("suggestion-list"))},[z("li",{class:R(i(d).e("empty-text"))},Ce(i(g)("el.cascader.noMatch")),3)],2)])],34)),[[$t,$.value]]):ct((E(),le(i(vo),{key:0,ref:We=>T.value=We?.$el,tag:"ul",class:R(i(d).e("suggestion-panel")),"wrap-class":i(d).e("suggestion-wrap"),"view-class":i(d).e("suggestion-list"),onKeydown:Yt},{default:ne(()=>[W.value.length?(E(!0),D(Ve,{key:0},kt(W.value,We=>(E(),D("li",{key:We.uid,class:R([i(d).e("suggestion-item"),i(d).is("checked",We.checked)]),tabindex:-1,onClick:Xt=>vt(We)},[oe(Oe.$slots,"suggestion-item",{item:We},()=>[z("span",null,Ce(We.text),1),We.checked?(E(),le(i(De),{key:0},{default:ne(()=>[X(i(Il))]),_:1})):re("v-if",!0)])],10,rz))),128)):oe(Oe.$slots,"empty",{key:1},()=>[z("li",{class:R(i(d).e("empty-text"))},Ce(i(g)("el.cascader.noMatch")),3)])]),_:3},8,["class","wrap-class","view-class"])),[[$t,$.value]])],64)):re("v-if",!0),Oe.$slots.footer?(E(),D("div",{key:2,class:R(i(d).e("footer")),onClick:Ke[14]||(Ke[14]=Xe(()=>{},["stop"]))},[oe(Oe.$slots,"footer")],2)):re("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}}),uz=iz;const cz=st(uz),dz=Ee({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),fz={"update:checked":e=>Wt(e),[yt]:e=>Wt(e)};var pz=se({name:"ElCheckTag",__name:"check-tag",props:dz,emits:fz,setup(e,{emit:t}){const n=e,a=t,o=ge("check-tag"),r=C(()=>[o.b(),o.is("checked",n.checked),o.is("disabled",n.disabled),o.m(n.type||"primary")]),s=()=>{if(n.disabled)return;const l=!n.checked;a(yt,l),a("update:checked",l)};return(l,u)=>(E(),D("span",{class:R(r.value),onClick:s},[oe(l.$slots,"default")],2))}}),hz=pz;const vz=st(hz),mz=Ee({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:G([Number,Object]),default:()=>pn({})},sm:{type:G([Number,Object]),default:()=>pn({})},md:{type:G([Number,Object]),default:()=>pn({})},lg:{type:G([Number,Object]),default:()=>pn({})},xl:{type:G([Number,Object]),default:()=>pn({})}}),gz=["start","center","end","space-around","space-between","space-evenly"],bz=["top","middle","bottom"],yz=Ee({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:gz,default:"start"},align:{type:String,values:bz}}),sE=Symbol("rowContextKey");var wz=se({name:"ElRow",__name:"row",props:yz,setup(e){const t=e,n=ge("row");St(sE,{gutter:C(()=>t.gutter)});const a=C(()=>{const r={};return t.gutter&&(r.marginRight=r.marginLeft=`-${t.gutter/2}px`),r}),o=C(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(r,s)=>(E(),le(it(e.tag),{class:R(o.value),style:ze(a.value)},{default:ne(()=>[oe(r.$slots,"default")]),_:3},8,["class","style"]))}}),Sz=wz;const Cz=st(Sz);var kz=se({name:"ElCol",__name:"col",props:mz,setup(e){const t=e,{gutter:n}=$e(sE,{gutter:C(()=>0)}),a=ge("col"),o=C(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),r=C(()=>{const s=[];return["span","offset","pull","push"].forEach(l=>{const u=t[l];Be(u)&&(l==="span"?s.push(a.b(`${t[l]}`)):u>0&&s.push(a.b(`${l}-${t[l]}`)))}),["xs","sm","md","lg","xl"].forEach(l=>{Be(t[l])?s.push(a.b(`${l}-${t[l]}`)):ot(t[l])&&Object.entries(t[l]).forEach(([u,c])=>{s.push(u!=="span"?a.b(`${l}-${u}-${c}`):a.b(`${l}-${c}`))})}),n.value&&s.push(a.is("guttered")),[a.b(),s]});return(s,l)=>(E(),le(it(e.tag),{class:R(r.value),style:ze(o.value)},{default:ne(()=>[oe(s.$slots,"default")]),_:3},8,["class","style"]))}}),Ez=kz;const xz=st(Ez),Dy=e=>Be(e)||Ae(e)||we(e),Tz=Ee({accordion:Boolean,modelValue:{type:G([Array,String,Number]),default:()=>pn([])},expandIconPosition:{type:G([String]),default:"right"},beforeCollapse:{type:G(Function)}}),Oz={[at]:Dy,[yt]:Dy},lE=Symbol("collapseContextKey"),_z=Ee({title:{type:String,default:""},name:{type:G([String,Number]),default:void 0},icon:{type:Ut,default:sa},disabled:Boolean});var Rz=se({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=ge("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},a={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,r)=>(E(),le(Yn,pt({name:i(t).b()},e3(a)),{default:ne(()=>[oe(o.$slots,"default")]),_:3},16,["name"]))}}),Iz=Rz;const yf=st(Iz),By="ElCollapse",$z=(e,t)=>{const n=M(Dn(e.modelValue)),a=s=>{n.value=s;const l=e.accordion?n.value[0]:n.value;t(at,l),t(yt,l)},o=s=>{if(e.accordion)a([n.value[0]===s?"":s]);else{const l=[...n.value],u=l.indexOf(s);u>-1?l.splice(u,1):l.push(s),a(l)}},r=async s=>{const{beforeCollapse:l}=e;if(!l){o(s);return}const u=l(s);[qr(u),Wt(u)].includes(!0)||sn(By,"beforeCollapse must return type `Promise` or `boolean`"),qr(u)?u.then(c=>{c!==!1&&o(s)}).catch(c=>{jt(By,`some error occurred: ${c}`)}):u&&o(s)};return pe(()=>e.modelValue,()=>n.value=Dn(e.modelValue),{deep:!0}),St(lE,{activeNames:n,handleItemClick:r}),{activeNames:n,setActiveNames:a}},Nz=e=>{const t=ge("collapse");return{rootKls:C(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var Mz=se({name:"ElCollapse",__name:"collapse",props:Tz,emits:Oz,setup(e,{expose:t,emit:n}){const a=e,{activeNames:o,setActiveNames:r}=$z(a,n),{rootKls:s}=Nz(a);return t({activeNames:o,setActiveNames:r}),(l,u)=>(E(),D("div",{class:R(i(s))},[oe(l.$slots,"default")],2))}}),Pz=Mz;const Az=e=>{const t=$e(lE),{namespace:n}=ge("collapse"),a=M(!1),o=M(!1),r=Cm(),s=C(()=>r.current++),l=C(()=>e.name??`${n.value}-id-${r.prefix}-${i(s)}`),u=C(()=>t?.activeNames.value.includes(i(l)));return{focusing:a,id:s,isActive:u,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:a.value=!0},50)},handleHeaderClick:p=>{e.disabled||p.target?.closest("input, textarea, select")||(t?.handleItemClick(i(l)),a.value=!1,o.value=!0)},handleEnterClick:p=>{p.target?.closest("input, textarea, select")||(p.preventDefault(),t?.handleItemClick(i(l)))}}},Lz=(e,{focusing:t,isActive:n,id:a})=>{const o=ge("collapse"),r=C(()=>[o.b("item"),o.is("active",i(n)),o.is("disabled",e.disabled)]),s=C(()=>[o.be("item","header"),o.is("active",i(n)),{focusing:i(t)&&!e.disabled}]),l=C(()=>[o.be("item","arrow"),o.is("active",i(n))]);return{itemTitleKls:C(()=>[o.be("item","title")]),arrowKls:l,headKls:s,rootKls:r,itemWrapperKls:C(()=>o.be("item","wrap")),itemContentKls:C(()=>o.be("item","content")),scopedContentId:C(()=>o.b(`content-${i(a)}`)),scopedHeadId:C(()=>o.b(`head-${i(a)}`))}},Dz=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],Bz=["id","aria-hidden","aria-labelledby"];var Vz=se({name:"ElCollapseItem",__name:"collapse-item",props:_z,setup(e,{expose:t}){const n=e,{focusing:a,id:o,isActive:r,handleFocus:s,handleHeaderClick:l,handleEnterClick:u}=Az(n),{arrowKls:c,headKls:d,rootKls:f,itemTitleKls:p,itemWrapperKls:g,itemContentKls:h,scopedContentId:v,scopedHeadId:m}=Lz(n,{focusing:a,isActive:r,id:o});return t({isActive:r}),(b,w)=>(E(),D("div",{class:R(i(f))},[z("div",{id:i(m),class:R(i(d)),"aria-expanded":i(r),"aria-controls":i(v),"aria-describedby":i(v),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:w[0]||(w[0]=(...y)=>i(l)&&i(l)(...y)),onKeydown:w[1]||(w[1]=dn(Xe((...y)=>i(u)&&i(u)(...y),["stop"]),["space","enter"])),onFocus:w[2]||(w[2]=(...y)=>i(s)&&i(s)(...y)),onBlur:w[3]||(w[3]=y=>a.value=!1)},[z("span",{class:R(i(p))},[oe(b.$slots,"title",{isActive:i(r)},()=>[wt(Ce(e.title),1)])],2),oe(b.$slots,"icon",{isActive:i(r)},()=>[X(i(De),{class:R(i(c))},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1},8,["class"])])],42,Dz),X(i(yf),null,{default:ne(()=>[ct(z("div",{id:i(v),role:"region",class:R(i(g)),"aria-hidden":!i(r),"aria-labelledby":i(m)},[z("div",{class:R(i(h))},[oe(b.$slots,"default")],2)],10,Bz),[[$t,i(r)]])]),_:3})],2))}}),iE=Vz;const Fz=st(Pz,{CollapseItem:iE}),zz=ln(iE),uE=Ee({modelValue:{type:G(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:{type:G(String)},disabled:Boolean,predefine:{type:G(Array)},validateEvent:{type:Boolean,default:!0},hueSliderClass:{type:G([String,Array,Object])},hueSliderStyle:{type:G([String,Array,Object,Boolean]),default:void 0}}),Hz={[at]:e=>Ae(e)||En(e)},cE=Symbol("colorCommonPickerKey"),dE=Symbol("colorPickerPanelContextKey"),fE=Ee({color:{type:G(Object),required:!0},vertical:Boolean,disabled:Boolean}),Kz=fE,Vy=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Yh=(e,t)=>Math.abs(Vy(e)-Vy(t)),pE=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};let bp=!1;function Gh(e,t){if(!Lt)return;const n=function(r){t.drag?.(r)},a=function(r){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,bp=!1,t.end?.(r)},o=function(r){bp||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",a),document.addEventListener("touchmove",n),document.addEventListener("touchend",a),bp=!0,t.start?.(r))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const hE=(e,{key:t,minValue:n,maxValue:a})=>{const o=dt(),r=Tt(),s=Tt(),l=C(()=>e.color.get(t));function u(p){e.disabled||(p.target!==r.value&&c(p),r.value?.focus())}function c(p){if(!s.value||!r.value||e.disabled)return;const g=o.vnode.el.getBoundingClientRect(),{clientX:h,clientY:v}=pE(p);let m;if(e.vertical){let b=v-g.top;b=Math.max(r.value.offsetHeight/2,b),b=Math.min(b,g.height-r.value.offsetHeight/2),m=Math.round((b-r.value.offsetHeight/2)/(g.height-r.value.offsetHeight)*a)}else{let b=h-g.left;b=Math.max(r.value.offsetWidth/2,b),b=Math.min(b,g.width-r.value.offsetWidth/2),m=Math.round((b-r.value.offsetWidth/2)/(g.width-r.value.offsetWidth)*a)}e.color.set(t,m)}function d(p){if(e.disabled)return;const{shiftKey:g}=p,h=qt(p),v=g?10:1,m=t==="hue"?-1:1;let b=!0;switch(h){case Se.left:case Se.down:f(-v*m);break;case Se.right:case Se.up:f(v*m);break;case Se.home:e.color.set(t,t==="hue"?a:n);break;case Se.end:e.color.set(t,t==="hue"?n:a);break;case Se.pageDown:f(-4*m);break;case Se.pageUp:f(4*m);break;default:b=!1;break}b&&p.preventDefault()}function f(p){let g=l.value+p;g=ga?a:g,e.color.set(t,g)}return{thumb:r,bar:s,currentValue:l,handleDrag:c,handleClick:u,handleKeydown:d}},vE=(e,{namespace:t,maxValue:n,bar:a,thumb:o,currentValue:r,handleDrag:s,getBackground:l})=>{const u=dt(),c=ge(t),d=M(0),f=M(0),p=M();function g(){if(!o.value||e.vertical)return 0;const y=u.vnode.el,S=r.value;return y?Math.round(S*(y.offsetWidth-o.value.offsetWidth/2)/n):0}function h(){if(!o.value)return 0;const y=u.vnode.el;if(!e.vertical)return 0;const S=r.value;return y?Math.round(S*(y.offsetHeight-o.value.offsetHeight/2)/n):0}function v(){d.value=g(),f.value=h(),p.value=l?.()}ht(()=>{if(!a.value||!o.value)return;const y={drag:S=>{s(S)},end:S=>{s(S)}};Gh(a.value,y),Gh(o.value,y),v()}),pe(r,()=>v()),pe(()=>e.color.value,()=>v());const m=C(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),b=C(()=>c.e("bar")),w=C(()=>c.e("thumb"));return{rootKls:m,barKls:b,barStyle:C(()=>({background:p.value})),thumbKls:w,thumbStyle:C(()=>({left:hn(d.value),top:hn(f.value)})),thumbLeft:d,thumbTop:f,update:v}},Wz=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],Fy=0,yp=100;var jz=se({name:"ElColorAlphaSlider",__name:"alpha-slider",props:fE,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:r,handleDrag:s,handleClick:l,handleKeydown:u}=hE(n,{key:"alpha",minValue:Fy,maxValue:yp}),{rootKls:c,barKls:d,barStyle:f,thumbKls:p,thumbStyle:g,update:h}=vE(n,{namespace:"color-alpha-slider",maxValue:yp,currentValue:a,bar:o,thumb:r,handleDrag:s,getBackground:w}),{t:v}=xt(),m=C(()=>v("el.colorpicker.alphaLabel")),b=C(()=>v("el.colorpicker.alphaDescription",{alpha:a.value,color:n.color.value}));function w(){if(n.color&&n.color.value){const{r:y,g:S,b:k}=n.color.toRgb();return`linear-gradient(to right, rgba(${y}, ${S}, ${k}, 0) 0%, rgba(${y}, ${S}, ${k}, 1) 100%)`}return""}return t({update:h,bar:o,thumb:r}),(y,S)=>(E(),D("div",{class:R(i(c))},[z("div",{ref_key:"bar",ref:o,class:R(i(d)),style:ze(i(f)),onClick:S[0]||(S[0]=(...k)=>i(l)&&i(l)(...k))},null,6),z("div",{ref_key:"thumb",ref:r,class:R(i(p)),style:ze(i(g)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":Fy,"aria-valuemax":yp,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:S[1]||(S[1]=(...k)=>i(u)&&i(u)(...k))},null,46,Wz)],2))}}),Uz=jz;const qz=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],zy=0,wp=360;var Yz=se({name:"ElColorHueSlider",__name:"hue-slider",props:Kz,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:r,handleDrag:s,handleClick:l,handleKeydown:u}=hE(n,{key:"hue",minValue:zy,maxValue:wp}),{rootKls:c,barKls:d,thumbKls:f,thumbStyle:p,thumbTop:g,update:h}=vE(n,{namespace:"color-hue-slider",maxValue:wp,currentValue:a,bar:o,thumb:r,handleDrag:s}),{t:v}=xt(),m=C(()=>v("el.colorpicker.hueLabel")),b=C(()=>v("el.colorpicker.hueDescription",{hue:a.value,color:n.color.value}));return t({bar:o,thumb:r,thumbTop:g,update:h}),(w,y)=>(E(),D("div",{class:R(i(c))},[z("div",{ref_key:"bar",ref:o,class:R(i(d)),onClick:y[0]||(y[0]=(...S)=>i(l)&&i(l)(...S))},null,2),z("div",{ref_key:"thumb",ref:r,class:R(i(f)),style:ze(i(p)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":zy,"aria-valuemax":wp,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:y[1]||(y[1]=(...S)=>i(u)&&i(u)(...S))},null,46,qz)],2))}}),Gz=Yz;const Xz=Ee({colors:{type:G(Array),required:!0},color:{type:G(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var gd=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new gn,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const t in e)Nt(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(arguments.length===1&&typeof e=="object"){for(const n in e)Nt(e,n)&&this.set(n,e[n]);return}this[`_${e}`]=t,this._isValid=!0,this.doOnChange()}get(e){return["hue","saturation","value","alpha"].includes(e)?Math.round(this[`_${e}`]):this[`_${e}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(e){const t=new gn(e);if(this._isValid=t.isValid,t.isValid){const{h:n,s:a,v:o,a:r}=t.toHsv();this._hue=n,this._saturation=a*100,this._value=o*100,this._alpha=r*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(e){const t=new gn({h:e._hue,s:e._saturation/100,v:e._value/100,a:e._alpha/100});return this._tiny.equals(t)}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:a,format:o,enableAlpha:r}=this;let s=o||(r?"rgb":"hex");o==="hex"&&r&&(s="hex8"),this._tiny=new gn({h:e,s:t/100,v:n/100,a:a/100}),this.value=this._isValid?this._tiny.toString(s):""}};const Jz=e=>{const{currentColor:t}=$e(dE),n=M(o(e.colors,e.color));pe(()=>t.value,r=>{const s=new gd({value:r,enableAlpha:e.enableAlpha});n.value.forEach(l=>{l.selected=s.compare(l)})}),la(()=>{n.value=o(e.colors,e.color)});function a(r){e.color.fromString(e.colors[r])}function o(r,s){return r.map(l=>{const u=new gd({value:l,enableAlpha:e.enableAlpha});return u.selected=u.compare(s),u})}return{rgbaColors:n,handleSelect:a}},Zz=e=>{const t=ge("color-predefine"),n=C(()=>[t.b(),t.is("disabled",e.disabled)]),a=C(()=>t.e("colors"));function o(r){return[t.e("color-selector"),t.is("alpha",r.get("alpha")<100),{selected:r.selected}]}return{rootKls:n,colorsKls:a,colorSelectorKls:o}},Qz=["disabled","aria-label","onClick"];var e9=se({name:"ElColorPredefine",__name:"predefine",props:Xz,setup(e){const t=e,{rgbaColors:n,handleSelect:a}=Jz(t),{rootKls:o,colorsKls:r,colorSelectorKls:s}=Zz(t),{t:l}=xt(),u=c=>l("el.colorpicker.predefineDescription",{value:c});return(c,d)=>(E(),D("div",{class:R(i(o))},[z("div",{class:R(i(r))},[(E(!0),D(Ve,null,kt(i(n),(f,p)=>(E(),D("button",{key:e.colors[p],type:"button",disabled:e.disabled,"aria-label":u(f.value),class:R(i(s)(f)),onClick:g=>i(a)(p)},[z("div",{style:ze({backgroundColor:f.value})},null,4)],10,Qz))),128))],2)],2))}}),t9=e9;const n9=Ee({color:{type:G(Object),required:!0},disabled:Boolean}),a9=e=>{const t=dt(),n=M(),a=M(0),o=M(0),r=M("hsl(0, 100%, 50%)"),s=C(()=>e.color.get("saturation")),l=C(()=>e.color.get("value")),u=C(()=>e.color.get("hue"));function c(h){e.disabled||(h.target!==n.value&&d(h),n.value?.focus({preventScroll:!0}))}function d(h){if(e.disabled)return;const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:b}=pE(h);let w=m-v.left,y=b-v.top;w=Math.max(0,w),w=Math.min(w,v.width),y=Math.max(0,y),y=Math.min(y,v.height),o.value=w,a.value=y,e.color.set({saturation:w/v.width*100,value:100-y/v.height*100})}function f(h){if(e.disabled)return;const{shiftKey:v}=h,m=qt(h),b=v?10:1;let w=!0;switch(m){case Se.left:p(-b);break;case Se.right:p(b);break;case Se.up:g(b);break;case Se.down:g(-b);break;default:w=!1;break}w&&h.preventDefault()}function p(h){let v=s.value+h;v=v<0?0:v>100?100:v,e.color.set("saturation",v)}function g(h){let v=l.value+h;v=v<0?0:v>100?100:v,e.color.set("value",v)}return{cursorRef:n,cursorTop:a,cursorLeft:o,background:r,saturation:s,brightness:l,hue:u,handleClick:c,handleDrag:d,handleKeydown:f}},o9=(e,{cursorTop:t,cursorLeft:n,background:a,handleDrag:o})=>{const r=dt(),s=ge("color-svpanel");function l(){const u=e.color.get("saturation"),c=e.color.get("value"),{clientWidth:d,clientHeight:f}=r.vnode.el;n.value=u*d/100,t.value=(100-c)*f/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}return ht(()=>{Gh(r.vnode.el,{drag:u=>{o(u)},end:u=>{o(u)}}),l()}),pe([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>l()),{rootKls:C(()=>s.b()),cursorKls:C(()=>s.e("cursor")),rootStyle:C(()=>({backgroundColor:a.value})),cursorStyle:C(()=>({top:hn(t.value),left:hn(n.value)})),update:l}},r9=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var s9=se({name:"ElSvPanel",__name:"sv-panel",props:n9,setup(e,{expose:t}){const n=e,{cursorRef:a,cursorTop:o,cursorLeft:r,background:s,saturation:l,brightness:u,handleClick:c,handleDrag:d,handleKeydown:f}=a9(n),{rootKls:p,cursorKls:g,rootStyle:h,cursorStyle:v,update:m}=o9(n,{cursorTop:o,cursorLeft:r,background:s,handleDrag:d}),{t:b}=xt(),w=C(()=>b("el.colorpicker.svLabel")),y=C(()=>b("el.colorpicker.svDescription",{saturation:l.value,brightness:u.value,color:n.color.value}));return t({update:m}),(S,k)=>(E(),D("div",{class:R(i(p)),style:ze(i(h)),onClick:k[1]||(k[1]=(...x)=>i(c)&&i(c)(...x))},[z("div",{ref_key:"cursorRef",ref:a,class:R(i(g)),style:ze(i(v)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":w.value,"aria-valuenow":`${i(l)},${i(u)}`,"aria-valuetext":y.value,onKeydown:k[0]||(k[0]=(...x)=>i(f)&&i(f)(...x))},null,46,r9)],6))}}),l9=s9;const mE=(e,t)=>{const n=Dt(new gd({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return pe(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(at,n.value)}),{color:n}};var i9=se({name:"ElColorPickerPanel",__name:"color-picker-panel",props:uE,emits:Hz,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("color-picker-panel"),{formItem:s}=Fn(),l=un(),u=M(),c=M(),d=M(),f=M(),p=M(""),{color:g}=$e(cE,()=>mE(a,o),!0);function h(){g.fromString(p.value),g.value!==p.value&&(p.value=g.value)}function v(){a.validateEvent&&s?.validate?.("blur").catch(ut)}function m(){u.value?.update(),c.value?.update(),d.value?.update()}return ht(()=>{a.modelValue&&(p.value=g.value),Ne(m)}),pe(()=>a.modelValue,b=>{b!==g.value&&(b?g.fromString(b):g.clear())}),pe(()=>g.value,b=>{o(at,b),p.value=b,a.validateEvent&&s?.validate("change").catch(ut)}),St(dE,{currentColor:C(()=>g.value)}),t({color:g,inputRef:f,update:m}),(b,w)=>(E(),D("div",{class:R([i(r).b(),i(r).is("disabled",i(l)),i(r).is("border",e.border)]),onFocusout:v},[z("div",{class:R(i(r).e("wrapper"))},[X(Gz,{ref_key:"hueRef",ref:u,color:i(g),vertical:"",disabled:i(l),class:R(["hue-slider",e.hueSliderClass]),style:ze(e.hueSliderStyle)},null,8,["color","disabled","class","style"]),X(l9,{ref_key:"svRef",ref:c,color:i(g),disabled:i(l)},null,8,["color","disabled"])],2),e.showAlpha?(E(),le(Uz,{key:0,ref_key:"alphaRef",ref:d,color:i(g),disabled:i(l)},null,8,["color","disabled"])):re("v-if",!0),e.predefine?(E(),le(t9,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:i(g),colors:e.predefine,disabled:i(l)},null,8,["enable-alpha","color","colors","disabled"])):re("v-if",!0),z("div",{class:R(i(r).e("footer"))},[X(i(Un),{ref_key:"inputRef",ref:f,modelValue:p.value,"onUpdate:modelValue":w[0]||(w[0]=y=>p.value=y),"validate-event":!1,size:"small",disabled:i(l),onChange:h},null,8,["modelValue","disabled"]),oe(b.$slots,"footer")],2)],34))}}),u9=i9;const gE=st(u9),c9=Ee({persistent:{type:Boolean,default:!0},modelValue:{type:G(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:{type:G(String)},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:Nn,popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,tabindex:{type:[String,Number],default:0},teleported:Kt.teleported,appendTo:Kt.appendTo,predefine:{type:G(Array)},validateEvent:{type:Boolean,default:!0},...zs,...ia(["ariaLabel"])}),d9={[at]:e=>Ae(e)||En(e),[yt]:e=>Ae(e)||En(e),activeChange:e=>Ae(e)||En(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},f9=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var p9=se({name:"ElColorPicker",__name:"color-picker",props:c9,emits:d9,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:r}=xt(),s=ge("color"),{formItem:l}=Fn(),u=In(),c=un(),{valueOnClear:d,isEmptyValue:f}=Au(a,null),p=mE(a,o),{inputId:g,isLabeledByFormItem:h}=_a(a,{formItemContext:l}),v=M(),m=M(),b=M(),w=M(!1),y=M(!1);let S=!0;const{isFocused:k,handleFocus:x,handleBlur:O}=Er(m,{disabled:c,beforeBlur(Y){return v.value?.isFocusInsideContent(Y)},afterBlur(){W(!1),F(),a.validateEvent&&l?.validate?.("blur").catch(ut)}}),T=f$(()=>b.value?.color??p.color),I=C(()=>hr(a,Object.keys(uE))),_=C(()=>!a.modelValue&&!y.value?"transparent":j(T,a.showAlpha)),N=C(()=>!a.modelValue&&!y.value?"":T.value),$=C(()=>h.value?void 0:a.ariaLabel||r("el.colorpicker.defaultLabel")),B=C(()=>h.value?l?.labelId:void 0),K=C(()=>[s.b("picker"),s.is("disabled",c.value),s.bm("picker",u.value),s.is("focused",k.value)]);function j(Y,Q){const{r:L,g:q,b:te,a:fe}=Y.toRgb();return Q?`rgba(${L}, ${q}, ${te}, ${fe})`:`rgb(${L}, ${q}, ${te})`}function W(Y){w.value=Y}const A=Ho(W,100,{leading:!0});function P(){c.value||W(!0)}function V(){A(!1),F()}function F(){Ne(()=>{a.modelValue?T.fromString(a.modelValue):(T.value="",Ne(()=>{y.value=!1}))})}function H(){c.value||(w.value&&F(),A(!w.value))}function U(){const Y=f(T.value)?d.value:T.value;o(at,Y),o(yt,Y),a.validateEvent&&l?.validate("change").catch(ut),A(!1),Ne(()=>{const Q=new gd({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});T.compare(Q)||F()})}function J(){A(!1),o(at,d.value),o(yt,d.value),a.modelValue!==d.value&&a.validateEvent&&l?.validate("change").catch(ut),F(),o("clear")}function ee(){b?.value?.inputRef?.focus()}function ae(){w.value&&(V(),k.value&&de())}function ce(Y){Y.preventDefault(),Y.stopPropagation(),W(!1),F()}function Z(Y){switch(qt(Y)){case Se.enter:case Se.numpadEnter:case Se.space:Y.preventDefault(),Y.stopPropagation(),P();break;case Se.esc:ce(Y);break}}function de(){m.value.focus()}function ue(){m.value.blur()}return pe(()=>N.value,Y=>{S&&o("activeChange",Y),S=!0}),pe(()=>T.value,()=>{!a.modelValue&&!y.value&&(y.value=!0)}),pe(()=>a.modelValue,Y=>{Y?Y&&Y!==T.value&&(S=!1,T.fromString(Y)):y.value=!1}),pe(()=>w.value,()=>{b.value&&Ne(b.value.update)}),St(cE,p),t({color:T,show:P,hide:V,focus:de,blur:ue}),(Y,Q)=>(E(),le(i(Wn),{ref_key:"popper",ref:v,visible:w.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[i(s).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${i(s).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:Q[2]||(Q[2]=L=>W(!1))},{content:ne(()=>[ct((E(),le(i(gE),pt({ref_key:"pickerPanelRef",ref:b},I.value,{border:!1,"validate-event":!1,onKeydown:dn(ce,["esc"])}),{footer:ne(()=>[z("div",null,[e.clearable?(E(),le(i(Bn),{key:0,class:R(i(s).be("footer","link-btn")),text:"",size:"small",onClick:J},{default:ne(()=>[wt(Ce(i(r)("el.colorpicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),X(i(Bn),{plain:"",size:"small",class:R(i(s).be("footer","btn")),onClick:U},{default:ne(()=>[wt(Ce(i(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[i(Qr),ae,m.value]])]),default:ne(()=>[z("div",pt({id:i(g),ref_key:"triggerRef",ref:m},Y.$attrs,{class:K.value,role:"button","aria-label":$.value,"aria-labelledby":B.value,"aria-description":i(r)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":i(c),tabindex:i(c)?void 0:e.tabindex,onKeydown:Z,onFocus:Q[0]||(Q[0]=(...L)=>i(x)&&i(x)(...L)),onBlur:Q[1]||(Q[1]=(...L)=>i(O)&&i(O)(...L))}),[z("div",{class:R(i(s).be("picker","trigger")),onClick:H},[z("span",{class:R([i(s).be("picker","color"),i(s).is("alpha",e.showAlpha)])},[z("span",{class:R(i(s).be("picker","color-inner")),style:ze({backgroundColor:_.value})},[ct(X(i(De),{class:R([i(s).be("picker","icon"),i(s).is("icon-arrow-down")])},{default:ne(()=>[X(i(qo))]),_:1},8,["class"]),[[$t,e.modelValue||y.value]]),ct(X(i(De),{class:R([i(s).be("picker","empty"),i(s).is("icon-close")])},{default:ne(()=>[X(i(Qa))]),_:1},8,["class"]),[[$t,!e.modelValue&&!y.value]])],6)],2)],2)],16,f9)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}}),h9=p9;const v9=st(h9);var m9=se({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=wn(),a=ge("container"),o=C(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(r=>{const s=r.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(r,s)=>(E(),D("section",{class:R([i(a).b(),i(a).is("vertical",o.value)])},[oe(r.$slots,"default")],2))}}),g9=m9,b9=se({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ge("aside"),a=C(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,r)=>(E(),D("aside",{class:R(i(n).b()),style:ze(a.value)},[oe(o.$slots,"default")],6))}}),bE=b9,y9=se({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ge("footer"),a=C(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,r)=>(E(),D("footer",{class:R(i(n).b()),style:ze(a.value)},[oe(o.$slots,"default")],6))}}),yE=y9,w9=se({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ge("header"),a=C(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,r)=>(E(),D("header",{class:R(i(n).b()),style:ze(a.value)},[oe(o.$slots,"default")],6))}}),wE=w9,S9=se({name:"ElMain",__name:"main",setup(e){const t=ge("main");return(n,a)=>(E(),D("main",{class:R(i(t).b())},[oe(n.$slots,"default")],2))}}),SE=S9;const C9=st(g9,{Aside:bE,Footer:yE,Header:wE,Main:SE}),k9=ln(bE),E9=ln(yE),x9=ln(wE),T9=ln(SE),O9=Ee({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:G([Number,Object]),default:0},valueStyle:{type:G([String,Object,Array,Boolean]),default:void 0}}),_9={finish:()=>!0,[yt]:e=>Be(e)},R9=Ee({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:G([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:G([String,Object,Array,Boolean]),default:void 0}});var I9=se({name:"ElStatistic",__name:"statistic",props:R9,setup(e,{expose:t}){const n=e,a=ge("statistic"),o=C(()=>{const{value:r,formatter:s,precision:l,decimalSeparator:u,groupSeparator:c}=n;if(Fe(s))return s(r);if(!Be(r)||Number.isNaN(r))return r;let[d,f=""]=String(r).split(".");return f=f.padEnd(l,"0").slice(0,l>0?l:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:o}),(r,s)=>(E(),D("div",{class:R(i(a).b())},[r.$slots.title||e.title?(E(),D("div",{key:0,class:R(i(a).e("head"))},[oe(r.$slots,"title",{},()=>[wt(Ce(e.title),1)])],2)):re("v-if",!0),z("div",{class:R(i(a).e("content"))},[r.$slots.prefix||e.prefix?(E(),D("div",{key:0,class:R(i(a).e("prefix"))},[oe(r.$slots,"prefix",{},()=>[z("span",null,Ce(e.prefix),1)])],2)):re("v-if",!0),z("span",{class:R(i(a).e("number")),style:ze(e.valueStyle)},Ce(o.value),7),r.$slots.suffix||e.suffix?(E(),D("div",{key:1,class:R(i(a).e("suffix"))},[oe(r.$slots,"suffix",{},()=>[z("span",null,Ce(e.suffix),1)])],2)):re("v-if",!0)],2)],2))}}),$9=I9;const CE=st($9),N9=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],Hy=e=>Be(e)?new Date(e).getTime():e.valueOf(),Ky=(e,t)=>{let n=e;return N9.reduce((a,[o,r])=>{const s=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(s.test(a)){const l=Math.floor(n/r);return n-=l*r,a.replace(s,u=>String(l).padStart(u.length,"0"))}return a},t).replace(/\[([^\]]*)]/g,"$1")};var M9=se({name:"ElCountdown",__name:"countdown",props:O9,emits:_9,setup(e,{expose:t,emit:n}){const a=e,o=n;let r;const s=M(0),l=C(()=>Ky(s.value,a.format)),u=f=>Ky(f,a.format),c=()=>{r&&(co(r),r=void 0)},d=()=>{const f=Hy(a.value),p=()=>{let g=f-Date.now();o(yt,g),g<=0?(g=0,c(),o("finish")):r=Oa(p),s.value=g};r=Oa(p)};return ht(()=>{s.value=Hy(a.value)-Date.now(),pe(()=>[a.value,a.format],()=>{c(),d()},{immediate:!0})}),Vt(()=>{c()}),t({displayValue:l}),(f,p)=>(E(),le(i(CE),{value:s.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:u},ma({_:2},[kt(f.$slots,(g,h)=>({name:h,fn:ne(()=>[oe(f.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}}),P9=M9;const A9=st(P9),L9=Ee({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:G([Date,Array,String,Number]),default:""},defaultValue:{type:G([Date,Array])},defaultTime:{type:G([Date,Array])},isRange:Boolean,...Vm,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:G(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),Gm=Symbol("rootPickerContextKey"),Vu="ElIsDefaultFormat",D9=["date","dates","year","years","month","months","week","range"],Xm=Ee({cellClassName:{type:G(Function)},disabledDate:{type:G(Function)},date:{type:G(Object),required:!0},minDate:{type:G(Object)},maxDate:{type:G(Object)},parsedValue:{type:G([Object,Array])},rangeState:{type:G(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),kE=Ee({type:{type:G(String),required:!0,values:TO},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),Jm=Ee({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:G(Array)},singlePanel:Boolean}),Zm=e=>({type:String,values:D9,default:e}),B9=Ee({...kE,parsedValue:{type:G([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),iu=e=>{if(!we(e))return!1;const[t,n]=e;return rt.isDayjs(t)&&rt.isDayjs(n)&&rt(t).isValid()&&rt(n).isValid()&&t.isSameOrBefore(n)},wf=(e,{lang:t,step:n=1,unit:a,unlinkPanels:o})=>{let r;if(we(e)){let[s,l]=e.map(u=>rt(u).locale(t));return o||(l=s.add(n,a)),[s,l]}else e?r=rt(e):r=rt();return r=r.locale(t),[r,r.add(n,a)]},V9=(e,t,{columnIndexOffset:n,startDate:a,nextEndDate:o,now:r,unit:s,relativeDateGetter:l,setCellMetadata:u,setRowMetadata:c})=>{for(let d=0;d{const o=rt().locale(a).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second());return jr(o.daysInMonth()).map(r=>o.add(r,"day").toDate())},$l=(e,t,n,a,o)=>{const r=rt().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),s=bd(e,t,n,a).find(l=>!o?.(l));return s?rt(s).locale(a):r.locale(a)},yd=(e,t,n)=>{const a=e.year();if(!n?.(e.toDate()))return e.locale(t);const o=e.month();if(!bd(e,a,o,t).every(n))return $l(e,a,o,t,n);for(let r=0;r<12;r++)if(!bd(e,a,r,t).every(n))return $l(e,a,r,t,n);return e},Nl=(e,t,n,a)=>{if(we(e))return e.map(o=>Nl(o,t,n,a));if(Ae(e)){const o=a?.value?rt(e):rt(e,t);if(!o.isValid())return o}return rt(e,t).locale(n)},F9=Ee({...Xm,showWeekNumber:Boolean,selectionMode:Zm("date")}),z9=["changerange","pick","select"],wd=(e="")=>["normal","today"].includes(e),H9=(e,t)=>{const{lang:n}=xt(),a=M(),o=M(),r=M(),s=M(),l=M([[],[],[],[],[],[]]);let u=!1;const c=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(V=>V.toLowerCase()),f=C(()=>c>3?7-c:-c),p=C(()=>{const V=e.date.startOf("month");return V.subtract(V.day()||7,"day")}),g=C(()=>d.concat(d).slice(c,c+7)),h=C(()=>Qc(i(S)).some(V=>V.isCurrent)),v=C(()=>{const V=e.date.startOf("month");return{startOfMonthDay:V.day()||7,dateCountOfMonth:V.daysInMonth(),dateCountOfLastMonth:V.subtract(1,"month").daysInMonth()}}),m=C(()=>e.selectionMode==="dates"?aa(e.parsedValue):[]),b=(V,{count:F,rowIndex:H,columnIndex:U})=>{const{startOfMonthDay:J,dateCountOfMonth:ee,dateCountOfLastMonth:ae}=i(v),ce=i(f);if(H>=0&&H<=1){const Z=J+ce<0?7+J+ce:J+ce;if(U+H*7>=Z)return V.text=F,!0;V.text=ae-(Z-U%7)+1+H*7,V.type="prev-month"}else return F<=ee?V.text=F:(V.text=F-ee,V.type="next-month"),!0;return!1},w=(V,{columnIndex:F,rowIndex:H},U)=>{const{disabledDate:J,cellClassName:ee}=e,ae=i(m),ce=b(V,{count:U,rowIndex:H,columnIndex:F}),Z=V.dayjs.toDate();return V.selected=ae.find(de=>de.isSame(V.dayjs,"day")),V.isSelected=!!V.selected,V.isCurrent=x(V),V.disabled=J?.(Z),V.customClass=ee?.(Z),ce},y=V=>{if(e.selectionMode==="week"){const[F,H]=e.showWeekNumber?[1,7]:[0,6],U=P(V[F+1]);V[F].inRange=U,V[F].start=U,V[H].inRange=U,V[H].end=U}},S=C(()=>{const{minDate:V,maxDate:F,rangeState:H,showWeekNumber:U}=e,J=i(f),ee=i(l),ae="day";let ce=1;if(V9({row:6,column:7},ee,{startDate:V,columnIndexOffset:U?1:0,nextEndDate:H.endDate||F||H.selecting&&V||null,now:rt().locale(i(n)).startOf(ae),unit:ae,relativeDateGetter:Z=>i(p).add(Z-J,ae),setCellMetadata:(...Z)=>{w(...Z,ce)&&(ce+=1)},setRowMetadata:y}),U)for(let Z=0;Z<6;Z++)ee[Z][1].dayjs&&(ee[Z][0]={type:"week",text:ee[Z][1].dayjs.week()});return ee});pe(()=>e.date,async()=>{i(a)?.contains(document.activeElement)&&(await Ne(),await k())});const k=async()=>i(o)?.focus(),x=V=>e.selectionMode==="date"&&wd(V.type)&&O(V,e.parsedValue),O=(V,F)=>F?rt(F).locale(i(n)).isSame(e.date.date(Number(V.text)),"day"):!1,T=(V,F)=>{const H=i(v).startOfMonthDay,U=i(f),J=H+U<0?7+H+U:H+U,ee=V*7+(F-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(J,"day").add(ee,"day")},I=V=>{if(!e.rangeState.selecting)return;let F=V.target;if(F.tagName==="SPAN"&&(F=F.parentNode?.parentNode),F.tagName==="DIV"&&(F=F.parentNode),F.tagName!=="TD")return;const H=F.parentNode.rowIndex-1,U=F.cellIndex;i(S)[H][U].disabled||(H!==i(r)||U!==i(s))&&(r.value=H,s.value=U,t("changerange",{selecting:!0,endDate:T(H,U)}))},_=V=>!i(h)&&V?.text===1&&wd(V.type)||V.isCurrent,N=V=>{u||i(h)||e.selectionMode!=="date"||A(V,!0)},$=V=>{V.target.closest("td")&&(u=!0)},B=V=>{V.target.closest("td")&&(u=!1)},K=V=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:V,maxDate:null}),t("select",!0)):(V>=e.minDate?t("pick",{minDate:e.minDate,maxDate:V}):t("pick",{minDate:V,maxDate:e.minDate}),t("select",!1))},j=V=>{const F=V.week(),H=`${V.year()}w${F}`;t("pick",{year:V.year(),week:F,value:H,date:V.startOf("week")})},W=(V,F)=>{t("pick",F?aa(e.parsedValue).filter(H=>H?.valueOf()!==V.valueOf()):aa(e.parsedValue).concat([V]))},A=(V,F=!1)=>{if(e.disabled)return;const H=V.target.closest("td");if(!H)return;const U=H.parentNode.rowIndex-1,J=H.cellIndex,ee=i(S)[U][J];if(ee.disabled||ee.type==="week")return;const ae=T(U,J);switch(e.selectionMode){case"range":K(ae);break;case"date":t("pick",ae,F);break;case"week":j(ae);break;case"dates":W(ae,!!ee.selected);break}},P=V=>{if(e.selectionMode!=="week")return!1;let F=e.date.startOf("day");if(V.type==="prev-month"&&(F=F.subtract(1,"month")),V.type==="next-month"&&(F=F.add(1,"month")),F=F.date(Number.parseInt(V.text,10)),e.parsedValue&&!we(e.parsedValue)){const H=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(H,"day").isSame(F,"day")}return!1};return{WEEKS:g,rows:S,tbodyRef:a,currentCellRef:o,focus:k,isCurrent:x,isWeekActive:P,isSelectedCell:_,handlePickDate:A,handleMouseUp:B,handleMouseDown:$,handleMouseMove:I,handleFocus:N}},K9=(e,{isCurrent:t,isWeekActive:n})=>{const a=ge("date-table"),{t:o}=xt(),r=C(()=>[a.b(),a.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),s=C(()=>o("el.datepicker.dateTablePrompt")),l=c=>{const d=[];return wd(c.type)&&!c.disabled?(d.push("available"),c.type==="today"&&d.push("today")):d.push(c.type),t(c)&&d.push("current"),c.inRange&&(wd(c.type)||e.selectionMode==="week")&&(d.push("in-range"),c.start&&d.push("start-date"),c.end&&d.push("end-date")),(c.disabled||e.disabled)&&d.push("disabled"),c.selected&&d.push("selected"),c.customClass&&d.push(c.customClass),d.join(" ")},u=c=>[a.e("row"),{current:n(c)}];return{tableKls:r,tableLabel:s,weekHeaderClass:a.e("week-header"),getCellClasses:l,getRowKls:u,t:o}},W9=Ee({cell:{type:G(Object)}});var Qm=se({name:"ElDatePickerCell",props:W9,setup(e){const t=ge("date-table-cell"),{slots:n}=$e(Gm);return()=>{const{cell:a}=e;return oe(n,"default",{...a},()=>[X("div",{class:t.b()},[X("span",{class:t.e("text")},[a?.renderText??a?.text])])])}}});const j9=["aria-label"],U9=["aria-label"],q9=["aria-current","aria-selected","tabindex","aria-disabled"];var Y9=se({__name:"basic-date-table",props:F9,emits:z9,setup(e,{expose:t,emit:n}){const a=e,{WEEKS:o,rows:r,tbodyRef:s,currentCellRef:l,focus:u,isCurrent:c,isWeekActive:d,isSelectedCell:f,handlePickDate:p,handleMouseUp:g,handleMouseDown:h,handleMouseMove:v,handleFocus:m}=H9(a,n),{tableLabel:b,tableKls:w,getCellClasses:y,getRowKls:S,weekHeaderClass:k,t:x}=K9(a,{isCurrent:c,isWeekActive:d});let O=!1;return Vt(()=>{O=!0}),t({focus:u}),(T,I)=>(E(),D("table",{"aria-label":i(b),class:R(i(w)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:I[1]||(I[1]=(..._)=>i(p)&&i(p)(..._)),onMousemove:I[2]||(I[2]=(..._)=>i(v)&&i(v)(..._)),onMousedown:I[3]||(I[3]=(..._)=>i(h)&&i(h)(..._)),onMouseup:I[4]||(I[4]=(..._)=>i(g)&&i(g)(..._))},[z("tbody",{ref_key:"tbodyRef",ref:s},[z("tr",null,[T.showWeekNumber?(E(),D("th",{key:0,scope:"col",class:R(i(k))},null,2)):re("v-if",!0),(E(!0),D(Ve,null,kt(i(o),(_,N)=>(E(),D("th",{key:N,"aria-label":i(x)("el.datepicker.weeksFull."+_),scope:"col"},Ce(i(x)("el.datepicker.weeks."+_)),9,U9))),128))]),(E(!0),D(Ve,null,kt(i(r),(_,N)=>(E(),D("tr",{key:N,class:R(i(S)(T.showWeekNumber?_[2]:_[1]))},[(E(!0),D(Ve,null,kt(_,($,B)=>(E(),D("td",{key:`${N}.${B}`,ref_for:!0,ref:K=>!i(O)&&i(f)($)&&(l.value=K),class:R(i(y)($)),"aria-current":$.isCurrent?"date":void 0,"aria-selected":$.isCurrent,tabindex:T.disabled?void 0:i(f)($)?0:-1,"aria-disabled":T.disabled,onFocus:I[0]||(I[0]=(...K)=>i(m)&&i(m)(...K))},[X(i(Qm),{cell:$},null,8,["cell"])],42,q9))),128))],2))),128))],512)],42,j9))}}),Xh=Y9;const G9=Ee({...Xm,selectionMode:Zm("month")}),X9=["aria-label"],J9=["aria-selected","aria-label","tabindex","onKeydown"];var Z9=se({__name:"basic-month-table",props:G9,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("month-table"),{t:s,lang:l}=xt(),u=M(),c=M(),d=M(a.date.locale("en").localeData().monthsShort().map(S=>S.toLowerCase())),f=M([[],[],[]]),p=M(),g=M(),h=C(()=>{const S=f.value,k=rt().locale(l.value).startOf("month");for(let x=0;x<3;x++){const O=S[x];for(let T=0;T<4;T++){const I=O[T]||(O[T]={row:x,column:T,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});I.type="normal";const _=x*4+T,N=a.date.startOf("year").month(_),$=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;I.inRange=!!(a.minDate&&N.isSameOrAfter(a.minDate,"month")&&$&&N.isSameOrBefore($,"month"))||!!(a.minDate&&N.isSameOrBefore(a.minDate,"month")&&$&&N.isSameOrAfter($,"month")),a.minDate?.isSameOrAfter($)?(I.start=!!($&&N.isSame($,"month")),I.end=a.minDate&&N.isSame(a.minDate,"month")):(I.start=!!(a.minDate&&N.isSame(a.minDate,"month")),I.end=!!($&&N.isSame($,"month"))),k.isSame(N)&&(I.type="today");const B=N.toDate();I.text=_,I.disabled=a.disabledDate?.(B)||!1,I.date=B,I.customClass=a.cellClassName?.(B),I.dayjs=N,I.timestamp=N.valueOf(),I.isSelected=b(I)}}return S}),v=()=>{c.value?.focus()},m=S=>{const k={},x=a.date.year(),O=new Date,T=S.text;return k.disabled=a.disabled||(a.disabledDate?bd(a.date,x,T,l.value).every(a.disabledDate):!1),k.current=aa(a.parsedValue).some(I=>rt.isDayjs(I)&&I.year()===x&&I.month()===T),k.today=O.getFullYear()===x&&O.getMonth()===T,S.customClass&&(k[S.customClass]=!0),S.inRange&&(k["in-range"]=!0,S.start&&(k["start-date"]=!0),S.end&&(k["end-date"]=!0)),k},b=S=>{const k=a.date.year(),x=S.text;return aa(a.date).some(O=>O.year()===k&&O.month()===x)},w=S=>{if(!a.rangeState.selecting)return;let k=S.target;if(k.tagName==="SPAN"&&(k=k.parentNode?.parentNode),k.tagName==="DIV"&&(k=k.parentNode),k.tagName!=="TD")return;const x=k.parentNode.rowIndex,O=k.cellIndex;h.value[x][O].disabled||(x!==p.value||O!==g.value)&&(p.value=x,g.value=O,o("changerange",{selecting:!0,endDate:a.date.startOf("year").month(x*4+O)}))},y=S=>{if(a.disabled)return;const k=S.target?.closest("td");if(k?.tagName!=="TD"||Ao(k,"disabled"))return;const x=k.cellIndex,O=k.parentNode.rowIndex*4+x,T=a.date.startOf("year").month(O);if(a.selectionMode==="months"){if(S.type==="keydown"){o("pick",aa(a.parsedValue),!1);return}const I=$l(a.date,a.date.year(),O,l.value,a.disabledDate);o("pick",Ao(k,"current")?aa(a.parsedValue).filter(_=>_?.year()!==I.year()||_?.month()!==I.month()):aa(a.parsedValue).concat([rt(I)]))}else a.selectionMode==="range"?a.rangeState.selecting?(a.minDate&&T>=a.minDate?o("pick",{minDate:a.minDate,maxDate:T}):o("pick",{minDate:T,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:T,maxDate:null}),o("select",!0)):o("pick",O)};return pe(()=>a.date,async()=>{u.value?.contains(document.activeElement)&&(await Ne(),c.value?.focus())}),t({focus:v}),(S,k)=>(E(),D("table",{role:"grid","aria-label":i(s)("el.datepicker.monthTablePrompt"),class:R(i(r).b()),onClick:y,onMousemove:w},[z("tbody",{ref_key:"tbodyRef",ref:u},[(E(!0),D(Ve,null,kt(h.value,(x,O)=>(E(),D("tr",{key:O},[(E(!0),D(Ve,null,kt(x,(T,I)=>(E(),D("td",{key:I,ref_for:!0,ref:_=>T.isSelected&&(c.value=_),class:R(m(T)),"aria-selected":!!T.isSelected,"aria-label":i(s)(`el.datepicker.month${+T.text+1}`),tabindex:T.isSelected?0:-1,onKeydown:[dn(Xe(y,["prevent","stop"]),["space"]),dn(Xe(y,["prevent","stop"]),["enter"])]},[X(i(Qm),{cell:{...T,renderText:i(s)("el.datepicker.months."+d.value[T.text])}},null,8,["cell"])],42,J9))),128))]))),128))],512)],42,X9))}}),uu=Z9;const Q9=Ee({...Xm,selectionMode:Zm("year")}),eH=["aria-label"],tH=["aria-selected","aria-label","tabindex","onKeydown"];var nH=se({__name:"basic-year-table",props:Q9,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=(k,x)=>{const O=rt(String(k)).locale(x).startOf("year");return jr(O.endOf("year").dayOfYear()).map(T=>O.add(T,"day").toDate())},o=e,r=n,s=ge("year-table"),{t:l,lang:u}=xt(),c=M(),d=M(),f=C(()=>Math.floor(o.date.year()/10)*10),p=M([[],[],[]]),g=M(),h=M(),v=C(()=>{const k=p.value,x=rt().locale(u.value).startOf("year");for(let O=0;O<3;O++){const T=k[O];for(let I=0;I<4&&!(O*4+I>=10);I++){let _=T[I];_||(_={row:O,column:I,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),_.type="normal";const N=O*4+I+f.value,$=rt().year(N),B=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;_.inRange=!!(o.minDate&&$.isSameOrAfter(o.minDate,"year")&&B&&$.isSameOrBefore(B,"year"))||!!(o.minDate&&$.isSameOrBefore(o.minDate,"year")&&B&&$.isSameOrAfter(B,"year")),o.minDate?.isSameOrAfter(B)?(_.start=!!(B&&$.isSame(B,"year")),_.end=!!(o.minDate&&$.isSame(o.minDate,"year"))):(_.start=!!(o.minDate&&$.isSame(o.minDate,"year")),_.end=!!(B&&$.isSame(B,"year"))),x.isSame($)&&(_.type="today"),_.text=N;const K=$.toDate();_.disabled=o.disabledDate?.(K)||!1,_.date=K,_.customClass=o.cellClassName?.(K),_.dayjs=$,_.timestamp=$.valueOf(),_.isSelected=w(_),T[I]=_}}return k}),m=()=>{d.value?.focus()},b=k=>{const x={},O=rt().locale(u.value),T=k.text;return x.disabled=o.disabled||(o.disabledDate?a(T,u.value).every(o.disabledDate):!1),x.today=O.year()===T,x.current=aa(o.parsedValue).some(I=>I.year()===T),k.customClass&&(x[k.customClass]=!0),k.inRange&&(x["in-range"]=!0,k.start&&(x["start-date"]=!0),k.end&&(x["end-date"]=!0)),x},w=k=>{const x=k.text;return aa(o.date).some(O=>O.year()===x)},y=k=>{if(o.disabled)return;const x=k.target?.closest("td");if(!x||!x.textContent||Ao(x,"disabled"))return;const O=x.cellIndex,T=x.parentNode.rowIndex*4+O+f.value,I=rt().year(T);if(o.selectionMode==="range")o.rangeState.selecting?(o.minDate&&I>=o.minDate?r("pick",{minDate:o.minDate,maxDate:I}):r("pick",{minDate:I,maxDate:o.minDate}),r("select",!1)):(r("pick",{minDate:I,maxDate:null}),r("select",!0));else if(o.selectionMode==="years"){if(k.type==="keydown"){r("pick",aa(o.parsedValue),!1);return}const _=yd(I.startOf("year"),u.value,o.disabledDate);r("pick",Ao(x,"current")?aa(o.parsedValue).filter(N=>N?.year()!==T):aa(o.parsedValue).concat([_]))}else r("pick",T)},S=k=>{if(!o.rangeState.selecting)return;const x=k.target?.closest("td");if(!x)return;const O=x.parentNode.rowIndex,T=x.cellIndex;v.value[O][T].disabled||(O!==g.value||T!==h.value)&&(g.value=O,h.value=T,r("changerange",{selecting:!0,endDate:rt().year(f.value).add(O*4+T,"year")}))};return pe(()=>o.date,async()=>{c.value?.contains(document.activeElement)&&(await Ne(),d.value?.focus())}),t({focus:m}),(k,x)=>(E(),D("table",{role:"grid","aria-label":i(l)("el.datepicker.yearTablePrompt"),class:R(i(s).b()),onClick:y,onMousemove:S},[z("tbody",{ref_key:"tbodyRef",ref:c},[(E(!0),D(Ve,null,kt(v.value,(O,T)=>(E(),D("tr",{key:T},[(E(!0),D(Ve,null,kt(O,(I,_)=>(E(),D("td",{key:`${T}_${_}`,ref_for:!0,ref:N=>I.isSelected&&(d.value=N),class:R(["available",b(I)]),"aria-selected":I.isSelected,"aria-label":String(I.text),tabindex:I.isSelected?0:-1,onKeydown:[dn(Xe(y,["prevent","stop"]),["space"]),dn(Xe(y,["prevent","stop"]),["enter"])]},[X(i(Qm),{cell:I},null,8,["cell"])],42,tH))),128))]))),128))],512)],42,eH))}}),cu=nH;const aH=["disabled","onClick"],oH=["aria-label","disabled"],rH=["aria-label","disabled"],sH=["tabindex","aria-disabled"],lH=["tabindex","aria-disabled"],iH=["aria-label","disabled"],uH=["aria-label","disabled"];var cH=se({__name:"panel-date-pick",props:B9,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(me,je,ie)=>!0,a=e,o=t,r=ge("picker-panel"),s=ge("date-picker"),l=wr(),u=wn(),{t:c,lang:d}=xt(),f=$e(Go),p=$e(Vu,void 0),{shortcuts:g,disabledDate:h,cellClassName:v,defaultTime:m}=f.props,b=Ht(f.props,"defaultValue"),w=M(),y=M(rt().locale(d.value)),S=M(!1);let k=!1;const x=C(()=>rt(m).locale(d.value)),O=C(()=>y.value.month()),T=C(()=>y.value.year()),I=M([]),_=M(null),N=M(null),$=me=>I.value.length>0?n(me,I.value,a.format||"HH:mm:ss"):!0,B=me=>m&&!Ie.value&&!S.value&&!k?x.value.year(me.year()).month(me.month()).date(me.date()):ue.value?me.millisecond(0):me.startOf("day"),K=(me,...je)=>{me?we(me)?o("pick",me.map(B),...je):o("pick",B(me),...je):o("pick",me,...je),_.value=null,N.value=null,S.value=!1,k=!1},j=async(me,je)=>{if(H.value==="date"&&rt.isDayjs(me)){const ie=ai(a.parsedValue);let xe=ie?ie.year(me.year()).month(me.month()).date(me.date()):me;$(xe),y.value=xe,K(xe,ue.value||je)}else H.value==="week"?K(me.date):H.value==="dates"&&K(me,!0)},W=me=>{const je=me?"add":"subtract";y.value=y.value[je](1,"month"),ft("month")},A=me=>{const je=y.value,ie=me?"add":"subtract";y.value=P.value==="year"?je[ie](10,"year"):je[ie](1,"year"),ft("year")},P=M("date"),V=C(()=>{const me=c("el.datepicker.year");if(P.value==="year"){const je=Math.floor(T.value/10)*10;return me?`${je} ${me} - ${je+9} ${me}`:`${je} - ${je+9}`}return`${T.value} ${me}`}),F=me=>{const je=Fe(me.value)?me.value():me.value;if(je){k=!0,K(rt(je).locale(d.value));return}me.onClick&&me.onClick({attrs:l,slots:u,emit:o})},H=C(()=>{const{type:me}=a;return["week","month","months","year","years","dates"].includes(me)?me:"date"}),U=C(()=>H.value==="dates"||H.value==="months"||H.value==="years"),J=C(()=>H.value==="date"?P.value:H.value),ee=C(()=>!!g.length),ae=async(me,je)=>{H.value==="month"?(y.value=$l(y.value,y.value.year(),me,d.value,h),K(y.value,!1)):H.value==="months"?K(me,je??!0):(y.value=$l(y.value,y.value.year(),me,d.value,h),P.value="date",["month","year","date","week"].includes(H.value)&&(K(y.value,!0),await Ne(),gt())),ft("month")},ce=async(me,je)=>{H.value==="year"?(y.value=yd(y.value.startOf("year").year(me),d.value,h),K(y.value,!1)):H.value==="years"?K(me,je??!0):(y.value=yd(y.value.year(me),d.value,h),P.value="month",["month","year","date","week"].includes(H.value)&&(K(y.value,!0),await Ne(),gt())),ft("year")},Z=un(),de=async me=>{Z.value||(P.value=me,await Ne(),gt())},ue=C(()=>a.type==="datetime"||a.type==="datetimerange"),Y=C(()=>{const me=ue.value||H.value==="dates",je=H.value==="years",ie=H.value==="months",xe=P.value==="date",Ue=P.value==="year",et=P.value==="month";return me&&xe||je&&Ue||ie&&et}),Q=C(()=>!U.value&&a.showNow||a.showConfirm),L=C(()=>h?a.parsedValue?we(a.parsedValue)?h(a.parsedValue[0].toDate()):h(a.parsedValue.toDate()):!0:!1),q=()=>{if(U.value)K(a.parsedValue);else{let me=ai(a.parsedValue);if(!me){const je=rt(m).locale(d.value),ie=Ze();me=je.year(ie.year()).month(ie.month()).date(ie.date())}y.value=me,K(me)}},te=C(()=>h?h(rt().locale(d.value).toDate()):!1),fe=()=>{const me=rt().locale(d.value).toDate();S.value=!0,(!h||!h(me))&&$(me)&&(y.value=rt().locale(d.value),K(y.value))},he=C(()=>a.timeFormat||ak(a.format)||"HH:mm:ss"),ve=C(()=>a.dateFormat||nk(a.format)||"YYYY-MM-DD"),Ie=C(()=>{if(N.value)return N.value;if(!(!a.parsedValue&&!b.value))return(ai(a.parsedValue)||y.value).format(he.value)}),Le=C(()=>{if(_.value)return _.value;if(!(!a.parsedValue&&!b.value))return(ai(a.parsedValue)||y.value).format(ve.value)}),_e=M(!1),ye=()=>{_e.value=!0},Te=()=>{_e.value=!1},be=me=>({hour:me.hour(),minute:me.minute(),second:me.second(),year:me.year(),month:me.month(),date:me.date()}),Pe=(me,je,ie)=>{const{hour:xe,minute:Ue,second:et}=be(me),bt=ai(a.parsedValue);y.value=bt?bt.hour(xe).minute(Ue).second(et):me,K(y.value,!0),ie||(_e.value=je)},He=me=>{const je=rt(me,he.value).locale(d.value);if(je.isValid()&&$(je)){const{year:ie,month:xe,date:Ue}=be(y.value);y.value=je.year(ie).month(xe).date(Ue),N.value=null,_e.value=!1,K(y.value,!0)}},Je=me=>{const je=Nl(me,ve.value,d.value,p);if(je.isValid()){if(h&&h(je.toDate()))return;const{hour:ie,minute:xe,second:Ue}=be(y.value);y.value=je.hour(ie).minute(xe).second(Ue),_.value=null,K(y.value,!0)}},Qe=me=>rt.isDayjs(me)&&me.isValid()&&(h?!h(me.toDate()):!0),lt=me=>Nl(me,a.format,d.value,p),Ze=()=>{const me=rt(b.value).locale(d.value);if(!b.value){const je=x.value;return rt().hour(je.hour()).minute(je.minute()).second(je.second()).locale(d.value)}return me},gt=()=>{["week","month","year","date"].includes(H.value)&&w.value?.focus()},Pt=()=>{gt(),H.value==="week"&&nt(Se.down)},zt=me=>{const je=qt(me);[Se.up,Se.down,Se.left,Se.right,Se.home,Se.end,Se.pageUp,Se.pageDown].includes(je)&&(nt(je),me.stopPropagation(),me.preventDefault()),[Se.enter,Se.space,Se.numpadEnter].includes(je)&&_.value===null&&N.value===null&&(me.preventDefault(),K(y.value,!1))},nt=me=>{const{up:je,down:ie,left:xe,right:Ue,home:et,end:bt,pageUp:vt,pageDown:Et}=Se,Yt={year:{[je]:-4,[ie]:4,[xe]:-1,[Ue]:1,offset:(At,en)=>At.setFullYear(At.getFullYear()+en)},month:{[je]:-4,[ie]:4,[xe]:-1,[Ue]:1,offset:(At,en)=>At.setMonth(At.getMonth()+en)},week:{[je]:-1,[ie]:1,[xe]:-1,[Ue]:1,offset:(At,en)=>At.setDate(At.getDate()+en*7)},date:{[je]:-7,[ie]:7,[xe]:-1,[Ue]:1,[et]:At=>-At.getDay(),[bt]:At=>-At.getDay()+6,[vt]:At=>-new Date(At.getFullYear(),At.getMonth(),0).getDate(),[Et]:At=>new Date(At.getFullYear(),At.getMonth()+1,0).getDate(),offset:(At,en)=>At.setDate(At.getDate()+en)}},on=y.value.toDate();for(;Math.abs(y.value.diff(on,"year",!0))<1;){const At=Yt[J.value];if(!At)return;if(At.offset(on,Fe(At[me])?At[me](on):At[me]??0),h&&h(on))break;const en=rt(on).locale(d.value);y.value=en,o("pick",en,!0);break}},ft=me=>{o("panel-change",y.value.toDate(),me,P.value)};return pe(()=>H.value,me=>{if(["month","year"].includes(me)){P.value=me;return}else if(me==="years"){P.value="year";return}else if(me==="months"){P.value="month";return}P.value="date"},{immediate:!0}),pe(()=>b.value,me=>{me&&(y.value=Ze())},{immediate:!0}),pe(()=>a.parsedValue,me=>{if(me){if(U.value||we(me))return;y.value=me}else y.value=Ze()},{immediate:!0}),o("set-picker-option",["isValidValue",Qe]),o("set-picker-option",["parseUserInput",lt]),o("set-picker-option",["handleFocusPicker",Pt]),(me,je)=>(E(),D("div",{class:R([i(r).b(),i(s).b(),i(r).is("border",me.border),i(r).is("disabled",i(Z)),{"has-sidebar":me.$slots.sidebar||ee.value,"has-time":ue.value}])},[z("div",{class:R(i(r).e("body-wrapper"))},[oe(me.$slots,"sidebar",{class:R(i(r).e("sidebar"))}),ee.value?(E(),D("div",{key:0,class:R(i(r).e("sidebar"))},[(E(!0),D(Ve,null,kt(i(g),(ie,xe)=>(E(),D("button",{key:xe,type:"button",disabled:i(Z),class:R(i(r).e("shortcut")),onClick:Ue=>F(ie)},Ce(ie.text),11,aH))),128))],2)):re("v-if",!0),z("div",{class:R(i(r).e("body"))},[ue.value?(E(),D("div",{key:0,class:R(i(s).e("time-header"))},[z("span",{class:R(i(s).e("editor-wrap"))},[X(i(Un),{placeholder:i(c)("el.datepicker.selectDate"),"model-value":Le.value,size:"small","validate-event":!1,disabled:i(Z),readonly:!me.editable,onInput:je[0]||(je[0]=ie=>_.value=ie),onChange:Je},null,8,["placeholder","model-value","disabled","readonly"])],2),ct((E(),D("span",{class:R(i(s).e("editor-wrap"))},[X(i(Un),{placeholder:i(c)("el.datepicker.selectTime"),"model-value":Ie.value,size:"small","validate-event":!1,disabled:i(Z),readonly:!me.editable,onFocus:ye,onInput:je[1]||(je[1]=ie=>N.value=ie),onChange:He},null,8,["placeholder","model-value","disabled","readonly"]),X(i(ld),{visible:_e.value,format:he.value,"parsed-value":y.value,onPick:Pe},null,8,["visible","format","parsed-value"])],2)),[[i(Qr),Te]])],2)):re("v-if",!0),ct(z("div",{class:R([i(s).e("header"),(P.value==="year"||P.value==="month")&&i(s).em("header","bordered")])},[z("span",{class:R(i(s).e("prev-btn"))},[z("button",{type:"button","aria-label":i(c)("el.datepicker.prevYear"),class:R(["d-arrow-left",i(r).e("icon-btn")]),disabled:i(Z),onClick:je[2]||(je[2]=ie=>A(!1))},[oe(me.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,oH),ct(z("button",{type:"button","aria-label":i(c)("el.datepicker.prevMonth"),class:R([i(r).e("icon-btn"),"arrow-left"]),disabled:i(Z),onClick:je[3]||(je[3]=ie=>W(!1))},[oe(me.$slots,"prev-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1})])],10,rH),[[$t,P.value==="date"]])],2),z("span",{role:"button",class:R(i(s).e("header-label")),"aria-live":"polite",tabindex:me.disabled?void 0:0,"aria-disabled":me.disabled,onKeydown:je[4]||(je[4]=dn(ie=>de("year"),["enter"])),onClick:je[5]||(je[5]=ie=>de("year"))},Ce(V.value),43,sH),ct(z("span",{role:"button","aria-live":"polite",tabindex:me.disabled?void 0:0,"aria-disabled":me.disabled,class:R([i(s).e("header-label"),{active:P.value==="month"}]),onKeydown:je[6]||(je[6]=dn(ie=>de("month"),["enter"])),onClick:je[7]||(je[7]=ie=>de("month"))},Ce(i(c)(`el.datepicker.month${O.value+1}`)),43,lH),[[$t,P.value==="date"]]),z("span",{class:R(i(s).e("next-btn"))},[ct(z("button",{type:"button","aria-label":i(c)("el.datepicker.nextMonth"),class:R([i(r).e("icon-btn"),"arrow-right"]),disabled:i(Z),onClick:je[8]||(je[8]=ie=>W(!0))},[oe(me.$slots,"next-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})])],10,iH),[[$t,P.value==="date"]]),z("button",{type:"button","aria-label":i(c)("el.datepicker.nextYear"),class:R([i(r).e("icon-btn"),"d-arrow-right"]),disabled:i(Z),onClick:je[9]||(je[9]=ie=>A(!0))},[oe(me.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,uH)],2)],2),[[$t,P.value!=="time"]]),z("div",{class:R(i(r).e("content")),onKeydown:zt},[P.value==="date"?(E(),le(Xh,{key:0,ref_key:"currentViewRef",ref:w,"selection-mode":H.value,date:y.value,"parsed-value":me.parsedValue,"disabled-date":i(h),disabled:i(Z),"cell-class-name":i(v),"show-week-number":me.showWeekNumber,onPick:j},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):re("v-if",!0),P.value==="year"?(E(),le(cu,{key:1,ref_key:"currentViewRef",ref:w,"selection-mode":H.value,date:y.value,"disabled-date":i(h),disabled:i(Z),"parsed-value":me.parsedValue,"cell-class-name":i(v),onPick:ce},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):re("v-if",!0),P.value==="month"?(E(),le(uu,{key:2,ref_key:"currentViewRef",ref:w,"selection-mode":H.value,date:y.value,"parsed-value":me.parsedValue,"disabled-date":i(h),disabled:i(Z),"cell-class-name":i(v),onPick:ae},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):re("v-if",!0)],34)],2)],2),me.showFooter&&Y.value&&Q.value?(E(),D("div",{key:0,class:R(i(r).e("footer"))},[ct(X(i(Bn),{text:"",size:"small",class:R(i(r).e("link-btn")),disabled:te.value,onClick:fe},{default:ne(()=>[wt(Ce(i(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[$t,!U.value&&me.showNow]]),me.showConfirm?(E(),le(i(Bn),{key:0,plain:"",size:"small",class:R(i(r).e("link-btn")),disabled:L.value,onClick:q},{default:ne(()=>[wt(Ce(i(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),dH=cH;const fH=Ee({...kE,...Jm}),pH=e=>{const{emit:t}=dt(),n=wr(),a=wn();return r=>{const s=Fe(r.value)?r.value():r.value;if(s){t("pick",[rt(s[0]).locale(e.value),rt(s[1]).locale(e.value)]);return}r.onClick&&r.onClick({attrs:n,slots:a,emit:t})}},eg=(e,{defaultValue:t,defaultTime:n,leftDate:a,rightDate:o,step:r,unit:s,sortDates:l})=>{const{emit:u}=dt(),{pickerNs:c}=$e(Gm),d=ge("date-range-picker"),{t:f,lang:p}=xt(),g=pH(p),h=M(),v=M(),m=M({endDate:null,selecting:!1}),b=x=>{m.value=x},w=(x=!1)=>{const O=i(h),T=i(v);iu([O,T])&&u("pick",[O,T],x)},y=x=>{m.value.selecting=x,x||(m.value.endDate=null)},S=x=>{if(we(x)&&x.length===2){const[O,T]=x;h.value=O,a.value=O,v.value=T,l(i(h),i(v))}else k()},k=()=>{let[x,O]=wf(i(t),{lang:i(p),step:r,unit:s,unlinkPanels:e.unlinkPanels});const T=_=>_.diff(_.startOf("d"),"ms"),I=i(n);if(I){let _=0,N=0;if(we(I)){const[$,B]=I.map(rt);_=T($),N=T(B)}else{const $=T(rt(I));_=$,N=$}x=x.startOf("d").add(_,"ms"),O=O.startOf("d").add(N,"ms")}h.value=void 0,v.value=void 0,a.value=x,o.value=O};return pe(t,x=>{x&&k()},{immediate:!0}),pe(()=>e.parsedValue,x=>{(!x?.length||!fn(x,[h.value,v.value]))&&S(x)},{immediate:!0}),pe(()=>e.visible,()=>{e.visible&&S(e.parsedValue)},{immediate:!0}),{minDate:h,maxDate:v,rangeState:m,lang:p,ppNs:c,drpNs:d,handleChangeRange:b,handleRangeConfirm:w,handleShortcutClick:g,onSelect:y,parseValue:S,t:f}},hH=(e,t,n,a)=>{const o=M("date"),r=M(),s=M("date"),l=M(),{disabledDate:u}=$e(Go).props,{t:c,lang:d}=xt(),f=C(()=>n.value.year()),p=C(()=>n.value.month()),g=C(()=>a.value.year()),h=C(()=>a.value.month());function v(k,x){const O=c("el.datepicker.year");if(k.value==="year"){const T=Math.floor(x.value/10)*10;return O?`${T} ${O} - ${T+9} ${O}`:`${T} - ${T+9}`}return`${x.value} ${O}`}function m(k){k?.focus()}async function b(k,x){if(e.disabled)return;const O=k==="left"?o:s,T=k==="left"?r:l;O.value=x,await Ne(),m(T.value)}async function w(k,x,O){if(e.disabled)return;const T=x==="left",I=T?n:a,_=T?a:n,N=T?o:s,$=T?r:l;k==="year"&&(I.value=yd(I.value.year(O),d.value,u)),k==="month"&&(I.value=$l(I.value,I.value.year(),O,d.value,u)),e.unlinkPanels||(_.value=x==="left"?I.value.add(1,"month"):I.value.subtract(1,"month")),N.value=k==="year"?"month":"date",await Ne(),m($.value),y(k)}function y(k){t("panel-change",[n.value.toDate(),a.value.toDate()],k)}function S(k,x,O){const T=O?"add":"subtract";return k==="year"?x[T](10,"year"):x[T](1,"year")}return{leftCurrentView:o,rightCurrentView:s,leftCurrentViewRef:r,rightCurrentViewRef:l,leftYear:f,rightYear:g,leftMonth:p,rightMonth:h,leftYearLabel:C(()=>v(o,f)),rightYearLabel:C(()=>v(s,g)),showLeftPicker:k=>b("left",k),showRightPicker:k=>b("right",k),handleLeftYearPick:k=>w("year","left",k),handleRightYearPick:k=>w("year","right",k),handleLeftMonthPick:k=>w("month","left",k),handleRightMonthPick:k=>w("month","right",k),handlePanelChange:y,adjustDateByView:S}},vH=["disabled","onClick"],mH=["aria-label","disabled"],gH=["aria-label","disabled"],bH=["disabled","aria-label"],yH=["disabled","aria-label"],wH=["tabindex","aria-disabled"],SH=["tabindex","aria-disabled"],CH=["disabled","aria-label"],kH=["disabled","aria-label"],EH=["aria-label","disabled"],xH=["disabled","aria-label"],TH=["tabindex","aria-disabled"],OH=["tabindex","aria-disabled"],pc="month";var _H=se({__name:"panel-date-range",props:fH,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,a=t,o=$e(Go),r=$e(Vu,void 0),{disabledDate:s,cellClassName:l,defaultTime:u,clearable:c}=o.props,d=Ht(o.props,"format"),f=Ht(o.props,"shortcuts"),p=Ht(o.props,"defaultValue"),{lang:g}=xt(),h=M(rt().locale(g.value)),v=M(rt().locale(g.value).add(1,pc)),{minDate:m,maxDate:b,rangeState:w,ppNs:y,drpNs:S,handleChangeRange:k,handleRangeConfirm:x,handleShortcutClick:O,onSelect:T,parseValue:I,t:_}=eg(n,{defaultValue:p,defaultTime:u,leftDate:h,rightDate:v,unit:pc,sortDates:en});pe(()=>n.visible,Ye=>{!Ye&&w.value.selecting&&(I(n.parsedValue),T(!1))});const N=M({min:null,max:null}),$=M({min:null,max:null}),{leftCurrentView:B,rightCurrentView:K,leftCurrentViewRef:j,rightCurrentViewRef:W,leftYear:A,rightYear:P,leftMonth:V,rightMonth:F,leftYearLabel:H,rightYearLabel:U,showLeftPicker:J,showRightPicker:ee,handleLeftYearPick:ae,handleRightYearPick:ce,handleLeftMonthPick:Z,handleRightMonthPick:de,handlePanelChange:ue,adjustDateByView:Y}=hH(n,a,h,v),Q=C(()=>!!f.value.length),L=C(()=>N.value.min!==null?N.value.min:m.value?m.value.format(ve.value):""),q=C(()=>N.value.max!==null?N.value.max:b.value||m.value?(b.value||m.value).format(ve.value):""),te=C(()=>$.value.min!==null?$.value.min:m.value?m.value.format(he.value):""),fe=C(()=>$.value.max!==null?$.value.max:b.value||m.value?(b.value||m.value).format(he.value):""),he=C(()=>n.timeFormat||ak(d.value||"")||"HH:mm:ss"),ve=C(()=>n.dateFormat||nk(d.value||"")||"YYYY-MM-DD"),Ie=Ye=>iu(Ye)&&(s?!s(Ye[0].toDate())&&!s(Ye[1].toDate()):!0),Le=()=>{h.value=Y(B.value,h.value,!1),n.unlinkPanels||(v.value=h.value.add(1,"month")),ue("year")},_e=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(v.value=h.value.add(1,"month")),ue("month")},ye=()=>{n.unlinkPanels?v.value=Y(K.value,v.value,!0):(h.value=Y(K.value,h.value,!0),v.value=h.value.add(1,"month")),ue("year")},Te=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(h.value=h.value.add(1,"month"),v.value=h.value.add(1,"month")),ue("month")},be=()=>{h.value=Y(B.value,h.value,!0),ue("year")},Pe=()=>{h.value=h.value.add(1,"month"),ue("month")},He=()=>{v.value=Y(K.value,v.value,!1),ue("year")},Je=()=>{v.value=v.value.subtract(1,"month"),ue("month")},Qe=C(()=>{const Ye=(V.value+1)%12,Ge=V.value+1>=12?1:0;return n.singlePanel||n.unlinkPanels&&new Date(A.value+Ge,Ye)n.singlePanel||n.unlinkPanels&&P.value*12+F.value-(A.value*12+V.value+1)>=12),Ze=un(),gt=C(()=>!(m.value&&b.value&&!w.value.selecting&&iu([m.value,b.value])&&!Ze.value)),Pt=C(()=>n.type==="datetime"||n.type==="datetimerange"),zt=(Ye,Ge)=>{if(Ye)return u?rt(u[Ge]||u).locale(g.value).year(Ye.year()).month(Ye.month()).date(Ye.date()):Ye},nt=(Ye,Ge=!0)=>{const tt=Ye.minDate,Oe=Ye.maxDate,Ke=zt(tt,0),We=zt(Oe,1);b.value===We&&m.value===Ke||(a("calendar-change",[tt.toDate(),Oe&&Oe.toDate()]),b.value=We,m.value=Ke,!Pt.value&&Ge&&(Ge=!Ke||!We),x(Ge))},ft=M(!1),me=M(!1),je=()=>{ft.value=!1},ie=()=>{me.value=!1},xe=(Ye,Ge)=>{N.value[Ge]=Ye;const tt=rt(Ye,ve.value).locale(g.value);if(tt.isValid()){if(s&&s(tt.toDate()))return;Ge==="min"?(h.value=tt,m.value=(m.value||h.value).year(tt.year()).month(tt.month()).date(tt.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(m.value))&&(v.value=tt.add(1,"month"),b.value=m.value.add(1,"month"))):(v.value=tt,b.value=(b.value||v.value).year(tt.year()).month(tt.month()).date(tt.date()),!n.unlinkPanels&&(!m.value||m.value.isAfter(b.value))&&(h.value=tt.subtract(1,"month"),m.value=b.value.subtract(1,"month"))),en(m.value,b.value),x(!0)}},Ue=(Ye,Ge)=>{N.value[Ge]=null},et=(Ye,Ge)=>{$.value[Ge]=Ye;const tt=rt(Ye,he.value).locale(g.value);tt.isValid()&&(Ge==="min"?(ft.value=!0,m.value=(m.value||h.value).hour(tt.hour()).minute(tt.minute()).second(tt.second()),h.value=m.value):(me.value=!0,b.value=(b.value||v.value).hour(tt.hour()).minute(tt.minute()).second(tt.second()),v.value=b.value))},bt=(Ye,Ge)=>{$.value[Ge]=null,Ge==="min"?(h.value=m.value,ft.value=!1,(!b.value||b.value.isBefore(m.value))&&(b.value=m.value)):(v.value=b.value,me.value=!1,b.value&&b.value.isBefore(m.value)&&(m.value=b.value)),x(!0)},vt=(Ye,Ge,tt)=>{$.value.min||(Ye&&(m.value=(m.value||h.value).hour(Ye.hour()).minute(Ye.minute()).second(Ye.second())),tt||(ft.value=Ge),(!b.value||b.value.isBefore(m.value))&&(b.value=m.value,v.value=Ye,Ne(()=>{I(n.parsedValue)})),x(!0))},Et=(Ye,Ge,tt)=>{$.value.max||(Ye&&(b.value=(b.value||v.value).hour(Ye.hour()).minute(Ye.minute()).second(Ye.second())),tt||(me.value=Ge),b.value&&b.value.isBefore(m.value)&&(m.value=b.value),x(!0))},Yt=()=>{on(),a("clear")},on=()=>{let Ye=null;o?.emptyValues&&(Ye=o.emptyValues.valueOnClear.value),h.value=wf(i(p),{lang:i(g),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=h.value.add(1,"month"),b.value=void 0,m.value=void 0,x(!0),a("pick",Ye)},At=Ye=>Nl(Ye,d.value||"",g.value,r);function en(Ye,Ge){if(n.unlinkPanels&&Ge){const tt=Ye?.year()||0,Oe=Ye?.month()||0,Ke=Ge.year(),We=Ge.month();v.value=tt===Ke&&Oe===We?Ge.add(1,pc):Ge}else v.value=h.value.add(1,pc),Ge&&(v.value=v.value.hour(Ge.hour()).minute(Ge.minute()).second(Ge.second()))}return a("set-picker-option",["isValidValue",Ie]),a("set-picker-option",["parseUserInput",At]),a("set-picker-option",["handleClear",on]),(Ye,Ge)=>(E(),D("div",{class:R([i(y).b(),i(S).b(),i(y).is("border",Ye.border),i(y).is("disabled",i(Ze)),{"has-sidebar":Ye.$slots.sidebar||Q.value,"has-time":Pt.value,"single-panel":Ye.singlePanel}])},[z("div",{class:R(i(y).e("body-wrapper"))},[oe(Ye.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),Q.value?(E(),D("div",{key:0,class:R(i(y).e("sidebar"))},[(E(!0),D(Ve,null,kt(f.value,(tt,Oe)=>(E(),D("button",{key:Oe,type:"button",disabled:i(Ze),class:R(i(y).e("shortcut")),onClick:Ke=>i(O)(tt)},Ce(tt.text),11,vH))),128))],2)):re("v-if",!0),z("div",{class:R(i(y).e("body"))},[Pt.value?(E(),D("div",{key:0,class:R(i(S).e("time-header"))},[z("span",{class:R(i(S).e("editors-wrap"))},[z("span",{class:R(i(S).e("time-picker-wrap"))},[X(i(Un),{size:"small",disabled:i(w).selecting||i(Ze),placeholder:i(_)("el.datepicker.startDate"),class:R(i(S).e("editor")),"model-value":L.value,"validate-event":!1,readonly:!Ye.editable,onInput:Ge[0]||(Ge[0]=tt=>xe(tt,"min")),onChange:Ge[1]||(Ge[1]=tt=>Ue(tt,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),ct((E(),D("span",{class:R(i(S).e("time-picker-wrap"))},[X(i(Un),{size:"small",class:R(i(S).e("editor")),disabled:i(w).selecting||i(Ze),placeholder:i(_)("el.datepicker.startTime"),"model-value":te.value,"validate-event":!1,readonly:!Ye.editable,onFocus:Ge[2]||(Ge[2]=tt=>ft.value=!0),onInput:Ge[3]||(Ge[3]=tt=>et(tt,"min")),onChange:Ge[4]||(Ge[4]=tt=>bt(tt,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),X(i(ld),{visible:ft.value,format:he.value,"datetime-role":"start","parsed-value":i(m)||h.value,onPick:vt},null,8,["visible","format","parsed-value"])],2)),[[i(Qr),je]])],2),z("span",null,[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})]),z("span",{class:R([i(S).e("editors-wrap"),"is-right"])},[z("span",{class:R(i(S).e("time-picker-wrap"))},[X(i(Un),{size:"small",class:R(i(S).e("editor")),disabled:i(w).selecting||i(Ze),placeholder:i(_)("el.datepicker.endDate"),"model-value":q.value,readonly:!i(m)||!Ye.editable,"validate-event":!1,onInput:Ge[5]||(Ge[5]=tt=>xe(tt,"max")),onChange:Ge[6]||(Ge[6]=tt=>Ue(tt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),ct((E(),D("span",{class:R(i(S).e("time-picker-wrap"))},[X(i(Un),{size:"small",class:R(i(S).e("editor")),disabled:i(w).selecting||i(Ze),placeholder:i(_)("el.datepicker.endTime"),"model-value":fe.value,readonly:!i(m)||!Ye.editable,"validate-event":!1,onFocus:Ge[7]||(Ge[7]=tt=>i(m)&&(me.value=!0)),onInput:Ge[8]||(Ge[8]=tt=>et(tt,"max")),onChange:Ge[9]||(Ge[9]=tt=>bt(tt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),X(i(ld),{"datetime-role":"end",visible:me.value,format:he.value,"parsed-value":i(b)||v.value,onPick:Et},null,8,["visible","format","parsed-value"])],2)),[[i(Qr),ie]])],2)],2)):re("v-if",!0),z("div",{class:R([i(y).e("content"),i(S).e("content"),i(S).is("left",!Ye.singlePanel)])},[z("div",{class:R(i(S).e("header"))},[z("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-left"]),"aria-label":i(_)("el.datepicker.prevYear"),disabled:i(Ze),onClick:Le},[oe(Ye.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,mH),ct(z("button",{type:"button",class:R([i(y).e("icon-btn"),"arrow-left"]),"aria-label":i(_)("el.datepicker.prevMonth"),disabled:i(Ze),onClick:_e},[oe(Ye.$slots,"prev-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1})])],10,gH),[[$t,i(B)==="date"]]),Ye.unlinkPanels||Ye.singlePanel?(E(),D("button",{key:0,type:"button",disabled:!lt.value||i(Ze),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!lt.value||i(Ze))],"d-arrow-right"]),"aria-label":i(_)("el.datepicker.nextYear"),onClick:be},[oe(Ye.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,bH)):re("v-if",!0),Ye.unlinkPanels&&i(B)==="date"||Ye.singlePanel?(E(),D("button",{key:1,type:"button",disabled:!Qe.value||i(Ze),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!Qe.value||i(Ze))],"arrow-right"]),"aria-label":i(_)("el.datepicker.nextMonth"),onClick:Pe},[oe(Ye.$slots,"next-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})])],10,yH)):re("v-if",!0),z("div",null,[z("span",{role:"button",class:R(i(S).e("header-label")),"aria-live":"polite",tabindex:Ye.disabled?void 0:0,"aria-disabled":Ye.disabled,onKeydown:Ge[10]||(Ge[10]=dn(tt=>i(J)("year"),["enter"])),onClick:Ge[11]||(Ge[11]=tt=>i(J)("year"))},Ce(i(H)),43,wH),ct(z("span",{role:"button","aria-live":"polite",tabindex:Ye.disabled?void 0:0,"aria-disabled":Ye.disabled,class:R([i(S).e("header-label"),{active:i(B)==="month"}]),onKeydown:Ge[12]||(Ge[12]=dn(tt=>i(J)("month"),["enter"])),onClick:Ge[13]||(Ge[13]=tt=>i(J)("month"))},Ce(i(_)(`el.datepicker.month${h.value.month()+1}`)),43,SH),[[$t,i(B)==="date"]])])],2),i(B)==="date"?(E(),le(Xh,{key:0,ref_key:"leftCurrentViewRef",ref:j,"selection-mode":"range",date:h.value,"min-date":i(m),"max-date":i(b),"range-state":i(w),"disabled-date":i(s),"cell-class-name":i(l),"show-week-number":Ye.showWeekNumber,disabled:i(Ze),onChangerange:i(k),onPick:nt,onSelect:i(T)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(B)==="year"?(E(),le(cu,{key:1,ref_key:"leftCurrentViewRef",ref:j,"selection-mode":"year",date:h.value,"disabled-date":i(s),"parsed-value":Ye.parsedValue,disabled:i(Ze),onPick:i(ae)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(B)==="month"?(E(),le(uu,{key:2,ref_key:"leftCurrentViewRef",ref:j,"selection-mode":"month",date:h.value,"parsed-value":Ye.parsedValue,"disabled-date":i(s),disabled:i(Ze),onPick:i(Z)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2),Ye.singlePanel?re("v-if",!0):(E(),D("div",{key:1,class:R([[i(y).e("content"),i(S).e("content")],"is-right"])},[z("div",{class:R(i(S).e("header"))},[Ye.unlinkPanels?(E(),D("button",{key:0,type:"button",disabled:!lt.value||i(Ze),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!lt.value||i(Ze))],"d-arrow-left"]),"aria-label":i(_)("el.datepicker.prevYear"),onClick:He},[oe(Ye.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,CH)):re("v-if",!0),Ye.unlinkPanels&&i(K)==="date"?(E(),D("button",{key:1,type:"button",disabled:!Qe.value||i(Ze),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!Qe.value||i(Ze))],"arrow-left"]),"aria-label":i(_)("el.datepicker.prevMonth"),onClick:Je},[oe(Ye.$slots,"prev-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1})])],10,kH)):re("v-if",!0),z("button",{type:"button","aria-label":i(_)("el.datepicker.nextYear"),class:R([i(y).e("icon-btn"),"d-arrow-right"]),disabled:i(Ze),onClick:ye},[oe(Ye.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,EH),ct(z("button",{type:"button",class:R([i(y).e("icon-btn"),"arrow-right"]),disabled:i(Ze),"aria-label":i(_)("el.datepicker.nextMonth"),onClick:Te},[oe(Ye.$slots,"next-month",{},()=>[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})])],10,xH),[[$t,i(K)==="date"]]),z("div",null,[z("span",{role:"button",class:R(i(S).e("header-label")),"aria-live":"polite",tabindex:Ye.disabled?void 0:0,"aria-disabled":Ye.disabled,onKeydown:Ge[14]||(Ge[14]=dn(tt=>i(ee)("year"),["enter"])),onClick:Ge[15]||(Ge[15]=tt=>i(ee)("year"))},Ce(i(U)),43,TH),ct(z("span",{role:"button","aria-live":"polite",tabindex:Ye.disabled?void 0:0,"aria-disabled":Ye.disabled,class:R([i(S).e("header-label"),{active:i(K)==="month"}]),onKeydown:Ge[16]||(Ge[16]=dn(tt=>i(ee)("month"),["enter"])),onClick:Ge[17]||(Ge[17]=tt=>i(ee)("month"))},Ce(i(_)(`el.datepicker.month${v.value.month()+1}`)),43,OH),[[$t,i(K)==="date"]])])],2),i(K)==="date"?(E(),le(Xh,{key:0,ref_key:"rightCurrentViewRef",ref:W,"selection-mode":"range",date:v.value,"min-date":i(m),"max-date":i(b),"range-state":i(w),"disabled-date":i(s),"cell-class-name":i(l),"show-week-number":Ye.showWeekNumber,disabled:i(Ze),onChangerange:i(k),onPick:nt,onSelect:i(T)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(K)==="year"?(E(),le(cu,{key:1,ref_key:"rightCurrentViewRef",ref:W,"selection-mode":"year",date:v.value,"disabled-date":i(s),"parsed-value":Ye.parsedValue,disabled:i(Ze),onPick:i(ce)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(K)==="month"?(E(),le(uu,{key:2,ref_key:"rightCurrentViewRef",ref:W,"selection-mode":"month",date:v.value,"parsed-value":Ye.parsedValue,"disabled-date":i(s),disabled:i(Ze),onPick:i(de)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2))],2)],2),Ye.showFooter&&Pt.value&&(Ye.showConfirm||i(c))?(E(),D("div",{key:0,class:R(i(y).e("footer"))},[i(c)?(E(),le(i(Bn),{key:0,text:"",size:"small",class:R(i(y).e("link-btn")),onClick:Yt},{default:ne(()=>[wt(Ce(i(_)("el.datepicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),Ye.showConfirm?(E(),le(i(Bn),{key:1,plain:"",size:"small",class:R(i(y).e("link-btn")),disabled:gt.value,onClick:Ge[18]||(Ge[18]=tt=>i(x)(!1))},{default:ne(()=>[wt(Ce(i(_)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),RH=_H;const IH=Ee({...Jm}),$H=["pick","set-picker-option","calendar-change"],NH=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:a}=xt();return{leftPrevYear:()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},leftNextYear:()=>{t.value=t.value.add(1,"year")},rightPrevYear:()=>{n.value=n.value.subtract(1,"year")},leftLabel:C(()=>`${t.value.year()} ${a("el.datepicker.year")}`),rightLabel:C(()=>`${n.value.year()} ${a("el.datepicker.year")}`),leftYear:C(()=>t.value.year()),rightYear:C(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year())}},MH=["disabled","onClick"],PH=["disabled"],AH=["disabled"],LH=["disabled"],DH=["disabled"],hc="year";var BH=se({name:"DatePickerMonthRange",__name:"panel-month-range",props:IH,emits:$H,setup(e,{emit:t}){const n=e,a=t,{lang:o}=xt(),r=$e(Go),s=$e(Vu,void 0),{shortcuts:l,disabledDate:u,cellClassName:c}=r.props,d=Ht(r.props,"format"),f=Ht(r.props,"defaultValue"),p=M(rt().locale(o.value)),g=M(rt().locale(o.value).add(1,hc)),{minDate:h,maxDate:v,rangeState:m,ppNs:b,drpNs:w,handleChangeRange:y,handleRangeConfirm:S,handleShortcutClick:k,onSelect:x,parseValue:O}=eg(n,{defaultValue:f,leftDate:p,rightDate:g,unit:hc,sortDates:H}),T=C(()=>!!l.length),{leftPrevYear:I,rightNextYear:_,leftNextYear:N,rightPrevYear:$,leftLabel:B,rightLabel:K,leftYear:j,rightYear:W}=NH({unlinkPanels:Ht(n,"unlinkPanels"),leftDate:p,rightDate:g}),A=C(()=>n.singlePanel||n.unlinkPanels&&W.value>j.value+1),P=(J,ee=!0)=>{const ae=J.minDate,ce=J.maxDate;v.value===ce&&h.value===ae||(a("calendar-change",[ae.toDate(),ce&&ce.toDate()]),v.value=ce,h.value=ae,ee&&S())},V=()=>{let J=null;r?.emptyValues&&(J=r.emptyValues.valueOnClear.value),p.value=wf(i(f),{lang:i(o),unit:"year",unlinkPanels:n.unlinkPanels})[0],g.value=p.value.add(1,"year"),a("pick",J)},F=J=>Nl(J,d.value,o.value,s);function H(J,ee){n.unlinkPanels&&ee?g.value=(J?.year()||0)===ee.year()?ee.add(1,hc):ee:g.value=p.value.add(1,hc)}const U=un();return pe(()=>n.visible,J=>{!J&&m.value.selecting&&(O(n.parsedValue),x(!1))}),a("set-picker-option",["isValidValue",iu]),a("set-picker-option",["parseUserInput",F]),a("set-picker-option",["handleClear",V]),(J,ee)=>(E(),D("div",{class:R([i(b).b(),i(w).b(),i(b).is("border",J.border),i(b).is("disabled",i(U)),{"has-sidebar":!!J.$slots.sidebar||T.value,"single-panel":J.singlePanel}])},[z("div",{class:R(i(b).e("body-wrapper"))},[oe(J.$slots,"sidebar",{class:R(i(b).e("sidebar"))}),T.value?(E(),D("div",{key:0,class:R(i(b).e("sidebar"))},[(E(!0),D(Ve,null,kt(i(l),(ae,ce)=>(E(),D("button",{key:ce,type:"button",class:R(i(b).e("shortcut")),disabled:i(U),onClick:Z=>i(k)(ae)},Ce(ae.text),11,MH))),128))],2)):re("v-if",!0),z("div",{class:R(i(b).e("body"))},[z("div",{class:R([i(b).e("content"),i(w).e("content"),i(w).is("left",!J.singlePanel)])},[z("div",{class:R(i(w).e("header"))},[z("button",{type:"button",class:R([i(b).e("icon-btn"),"d-arrow-left"]),disabled:i(U),onClick:ee[0]||(ee[0]=(...ae)=>i(I)&&i(I)(...ae))},[oe(J.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,PH),J.unlinkPanels||J.singlePanel?(E(),D("button",{key:0,type:"button",disabled:!A.value||i(U),class:R([[i(b).e("icon-btn"),i(b).is("disabled",!A.value||i(U))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...ae)=>i(N)&&i(N)(...ae))},[oe(J.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,AH)):re("v-if",!0),z("div",null,Ce(i(B)),1)],2),X(uu,{"selection-mode":"range",date:p.value,"min-date":i(h),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(U),"cell-class-name":i(c),onChangerange:i(y),onPick:P,onSelect:i(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),J.singlePanel?re("v-if",!0):(E(),D("div",{key:0,class:R([[i(b).e("content"),i(w).e("content")],"is-right"])},[z("div",{class:R(i(w).e("header"))},[J.unlinkPanels?(E(),D("button",{key:0,type:"button",disabled:!A.value||i(U),class:R([[i(b).e("icon-btn"),i(b).is("disabled",!A.value||i(U))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...ae)=>i($)&&i($)(...ae))},[oe(J.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,LH)):re("v-if",!0),z("button",{type:"button",class:R([i(b).e("icon-btn"),"d-arrow-right"]),disabled:i(U),onClick:ee[3]||(ee[3]=(...ae)=>i(_)&&i(_)(...ae))},[oe(J.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,DH),z("div",null,Ce(i(K)),1)],2),X(uu,{"selection-mode":"range",date:g.value,"min-date":i(h),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(U),"cell-class-name":i(c),onChangerange:i(y),onPick:P,onSelect:i(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2))],2)],2)],2))}}),VH=BH;const FH=Ee({...Jm}),zH=["pick","set-picker-option","calendar-change"],HH=({unlinkPanels:e,leftDate:t,rightDate:n})=>({leftPrevYear:()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},leftNextYear:()=>{t.value=t.value.add(10,"year")},rightPrevYear:()=>{n.value=n.value.subtract(10,"year")},leftLabel:C(()=>{const l=Math.floor(t.value.year()/10)*10;return`${l}-${l+9}`}),rightLabel:C(()=>{const l=Math.floor(n.value.year()/10)*10;return`${l}-${l+9}`}),leftYear:C(()=>Math.floor(t.value.year()/10)*10+9),rightYear:C(()=>Math.floor(n.value.year()/10)*10)}),KH=["disabled","onClick"],WH=["disabled"],jH=["disabled"],UH=["disabled"],qH=["disabled"],Xs=10,oi="year";var YH=se({name:"DatePickerYearRange",__name:"panel-year-range",props:FH,emits:zH,setup(e,{emit:t}){const n=e,a=t,{lang:o}=xt(),r=M(rt().locale(o.value)),s=M(rt().locale(o.value).add(Xs,oi)),l=$e(Vu,void 0),u=$e(Go),{shortcuts:c,disabledDate:d,cellClassName:f}=u.props,p=Ht(u.props,"format"),g=Ht(u.props,"defaultValue"),{minDate:h,maxDate:v,rangeState:m,ppNs:b,drpNs:w,handleChangeRange:y,handleRangeConfirm:S,handleShortcutClick:k,onSelect:x,parseValue:O}=eg(n,{defaultValue:g,leftDate:r,rightDate:s,step:Xs,unit:oi,sortDates:ce}),{leftPrevYear:T,rightNextYear:I,leftNextYear:_,rightPrevYear:N,leftLabel:$,rightLabel:B,leftYear:K,rightYear:j}=HH({unlinkPanels:Ht(n,"unlinkPanels"),leftDate:r,rightDate:s}),W=un(),A=C(()=>!!c.length),P=C(()=>[b.b(),w.b(),b.is("border",n.border),b.is("disabled",W.value),{"has-sidebar":!!wn().sidebar||A.value,"single-panel":n.singlePanel}]),V=C(()=>({content:[b.e("content"),w.e("content"),w.is("left",!n.singlePanel)],arrowLeftBtn:[b.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[b.e("icon-btn"),b.is("disabled",!H.value||W.value),"d-arrow-right"]})),F=C(()=>({content:[b.e("content"),w.e("content"),"is-right"],arrowLeftBtn:[b.e("icon-btn"),b.is("disabled",!H.value||W.value),"d-arrow-left"],arrowRightBtn:[b.e("icon-btn"),"d-arrow-right"]})),H=C(()=>n.singlePanel||n.unlinkPanels&&j.value>K.value+1),U=(Z,de=!0)=>{const ue=Z.minDate,Y=Z.maxDate;v.value===Y&&h.value===ue||(a("calendar-change",[ue.toDate(),Y&&Y.toDate()]),v.value=Y,h.value=ue,de&&S())},J=Z=>Nl(Z,p.value,o.value,l),ee=Z=>iu(Z)&&(d?!d(Z[0].toDate())&&!d(Z[1].toDate()):!0),ae=()=>{let Z=null;u?.emptyValues&&(Z=u.emptyValues.valueOnClear.value);const de=wf(i(g),{lang:i(o),step:Xs,unit:oi,unlinkPanels:n.unlinkPanels});r.value=de[0],s.value=de[1],a("pick",Z)};function ce(Z,de){if(n.unlinkPanels&&de){const ue=Z?.year()||0,Y=de.year();s.value=ue+Xs>Y?de.add(Xs,oi):de}else s.value=r.value.add(Xs,oi)}return pe(()=>n.visible,Z=>{!Z&&m.value.selecting&&(O(n.parsedValue),x(!1))}),a("set-picker-option",["isValidValue",ee]),a("set-picker-option",["parseUserInput",J]),a("set-picker-option",["handleClear",ae]),(Z,de)=>(E(),D("div",{class:R(P.value)},[z("div",{class:R(i(b).e("body-wrapper"))},[oe(Z.$slots,"sidebar",{class:R(i(b).e("sidebar"))}),A.value?(E(),D("div",{key:0,class:R(i(b).e("sidebar"))},[(E(!0),D(Ve,null,kt(i(c),(ue,Y)=>(E(),D("button",{key:Y,type:"button",class:R(i(b).e("shortcut")),disabled:i(W),onClick:Q=>i(k)(ue)},Ce(ue.text),11,KH))),128))],2)):re("v-if",!0),z("div",{class:R(i(b).e("body"))},[z("div",{class:R(V.value.content)},[z("div",{class:R(i(w).e("header"))},[z("button",{type:"button",class:R(V.value.arrowLeftBtn),disabled:i(W),onClick:de[0]||(de[0]=(...ue)=>i(T)&&i(T)(...ue))},[oe(Z.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,WH),Z.unlinkPanels||Z.singlePanel?(E(),D("button",{key:0,type:"button",disabled:!H.value||i(W),class:R(V.value.arrowRightBtn),onClick:de[1]||(de[1]=(...ue)=>i(_)&&i(_)(...ue))},[oe(Z.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,jH)):re("v-if",!0),z("div",null,Ce(i($)),1)],2),X(cu,{"selection-mode":"range",date:r.value,"min-date":i(h),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(W),"cell-class-name":i(f),onChangerange:i(y),onPick:U,onSelect:i(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),Z.singlePanel?re("v-if",!0):(E(),D("div",{key:0,class:R(F.value.content)},[z("div",{class:R(i(w).e("header"))},[Z.unlinkPanels?(E(),D("button",{key:0,type:"button",disabled:!H.value||i(W),class:R(F.value.arrowLeftBtn),onClick:de[2]||(de[2]=(...ue)=>i(N)&&i(N)(...ue))},[oe(Z.$slots,"prev-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Xr))]),_:1})])],10,UH)):re("v-if",!0),z("button",{type:"button",class:R(F.value.arrowRightBtn),disabled:i(W),onClick:de[3]||(de[3]=(...ue)=>i(I)&&i(I)(...ue))},[oe(Z.$slots,"next-year",{},()=>[X(i(De),null,{default:ne(()=>[X(i(Jr))]),_:1})])],10,qH),z("div",null,Ce(i(B)),1)],2),X(cu,{"selection-mode":"range",date:s.value,"min-date":i(h),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(W),"cell-class-name":i(f),onChangerange:i(y),onPick:U,onSelect:i(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2))],2)],2)],2))}}),GH=YH;const XH=function(e){switch(e){case"daterange":case"datetimerange":return RH;case"monthrange":return VH;case"yearrange":return GH;default:return dH}};var EE={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a){var o=a.prototype,r=o.format;o.format=function(s){var l=this,u=this.$locale();if(!this.isValid())return r.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return r.bind(this)(d)}}})})(EE);var JH=EE.exports;const ZH=Or(JH);var xE={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){var n="week",a="year";return function(o,r,s){var l=r.prototype;l.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(a).add(1,a).date(c),f=s(this).endOf(n);if(d.isBefore(f))return 1}var p=s(this).startOf(a).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(p,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},l.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(xE);var QH=xE.exports;const e7=Or(QH);var TE={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a){a.prototype.weekYear=function(){var o=this.month(),r=this.week(),s=this.year();return r===1&&o===11?s+1:o===0&&r>=52?s-1:s}}})})(TE);var t7=TE.exports;const n7=Or(t7);var OE={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a,o){a.prototype.dayOfYear=function(r){var s=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(OE);var a7=OE.exports;const o7=Or(a7);var _E={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a){a.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}})})(_E);var r7=_E.exports;const s7=Or(r7);var RE={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Tr,function(){return function(n,a){a.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}})})(RE);var l7=RE.exports;const i7=Or(l7);function u7(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}rt.extend(Ek);rt.extend(ZH);rt.extend(zm);rt.extend(e7);rt.extend(n7);rt.extend(o7);rt.extend(s7);rt.extend(i7);var c7=se({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:L9,emits:[at,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:a}){const o=ge("picker-panel");Rt($e("EP_PICKER_BASE",void 0))&&St(Go,{props:Dt({...Pn(e)})}),St(Gm,{slots:t,pickerNs:o});const{parsedValue:r,onCalendarChange:s,onPanelChange:l,onSetPickerOption:u,onPick:c}=$e(ek,()=>sk(e,n),!0);return()=>X(XH(e.type),pt(ku(a,"onPick"),e,{parsedValue:r.value,"onSet-picker-option":u,"onCalendar-change":s,"onPanel-change":l,onClear:()=>n("clear"),onPick:c}),u7(t)?t:{default:()=>[t]})}});const IE=st(c7),d7=Ee({...Fm,type:{type:G(String),default:"date"}});function f7(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}var p7=se({name:"ElDatePicker",install:null,props:d7,emits:[at],setup(e,{expose:t,emit:n,slots:a}){St(Vu,C(()=>!e.format)),St(Bm,Dt(Ht(e,"popperOptions")));const o=M();t({focus:()=>{o.value?.focus()},blur:()=>{o.value?.blur()},handleOpen:()=>{o.value?.handleOpen()},handleClose:()=>{o.value?.handleClose()}});const r=s=>{n(at,s)};return()=>X(lk,pt(e,{format:e.format??(uB[e.type]||"YYYY-MM-DD"),type:e.type,ref:o,"onUpdate:modelValue":r}),{default:s=>X(IE,pt({disabled:e.disabled,editable:e.editable,border:!1},s),f7(a)?a:{default:()=>[a]}),"range-separator":a["range-separator"]})}});const h7=st(p7),v7=Ee({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Nn,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),$E="ElDescriptionsItem",m7=Ee({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:$b,default:"left"},labelAlign:{type:String,values:$b},className:{type:String,default:""},labelClassName:{type:String,default:""}}),NE=se({name:$E,props:m7}),tg=Symbol("elDescriptions"),g7=Ee({row:{type:G(Array),default:()=>[]}});var ri=se({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:$e(tg,{})}},render(){const e=UM(this.cell),t=(this.cell?.dirs||[]).map(v=>{const{dir:m,arg:b,modifiers:w,value:y}=v;return[m,y,b,w]}),{border:n,direction:a}=this.descriptions,o=a==="vertical",r=()=>this.cell?.children?.label?.()||e.label,s=()=>this.cell?.children?.default?.(),l=e.span,u=e.rowspan,c=e.align?`is-${e.align}`:"",d=e.labelAlign?`is-${e.labelAlign}`:c,f=e.className,p=e.labelClassName,g={width:hn(this.type==="label"?e.labelWidth??this.descriptions.labelWidth??e.width:e.width),minWidth:hn(e.minWidth)},h=ge("descriptions");switch(this.type){case"label":return ct(qe(this.tag,{style:g,class:[h.e("cell"),h.e("label"),h.is("bordered-label",n),h.is("vertical-label",o),d,p],colSpan:o?l:1,rowspan:o?1:u},r()),t);case"content":return ct(qe(this.tag,{style:g,class:[h.e("cell"),h.e("content"),h.is("bordered-content",n),h.is("vertical-content",o),c,f],colSpan:o?l:l*2-1,rowspan:o?u*2-1:u},s()),t);default:{const v=r(),m={},b=hn(e.labelWidth??this.descriptions.labelWidth);return b&&(m.width=b,m.display="inline-block"),ct(qe("td",{style:g,class:[h.e("cell"),c],colSpan:l,rowspan:u},[En(v)?void 0:qe("span",{style:m,class:[h.e("label"),p]},v),qe("span",{class:[h.e("content"),f]},s())]),t)}}}});const b7={key:1};var y7=se({name:"ElDescriptionsRow",__name:"descriptions-row",props:g7,setup(e){const t=$e(tg,{});return(n,a)=>i(t).direction==="vertical"?(E(),D(Ve,{key:0},[z("tr",null,[(E(!0),D(Ve,null,kt(e.row,(o,r)=>(E(),le(i(ri),{key:`tr1-${r}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),z("tr",null,[(E(!0),D(Ve,null,kt(e.row,(o,r)=>(E(),le(i(ri),{key:`tr2-${r}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(E(),D("tr",b7,[(E(!0),D(Ve,null,kt(e.row,(o,r)=>(E(),D(Ve,{key:`tr3-${r}`},[i(t).border?(E(),D(Ve,{key:0},[X(i(ri),{cell:o,tag:"td",type:"label"},null,8,["cell"]),X(i(ri),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(E(),le(i(ri),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}}),w7=y7,S7=se({name:"ElDescriptions",__name:"description",props:v7,setup(e){const t=e,n=ge("descriptions"),a=In(),o=wn();St(tg,t);const r=C(()=>[n.b(),n.m(a.value)]),s=(u,c,d,f=!1)=>(u.props||(u.props={}),c>d&&(u.props.span=d),f&&(u.props.span=c),u),l=()=>{if(!o.default)return[];const u=Aa(o.default()).filter(h=>h?.type?.name===$E),c=[];let d=[],f=t.column,p=0;const g=[];return u.forEach((h,v)=>{var y;const m=h.props?.span||1,b=h.props?.rowspan||1,w=c.length;if(g[w]||(g[w]=0),b>1)for(let S=1;S0&&(f-=g[w],g[w]=0),vf?f:m),v===u.length-1){const S=t.column-p%t.column;d.push(s(h,S,f,!0)),c.push(d);return}m(E(),D("div",{class:R(r.value)},[e.title||e.extra||u.$slots.title||u.$slots.extra?(E(),D("div",{key:0,class:R(i(n).e("header"))},[z("div",{class:R(i(n).e("title"))},[oe(u.$slots,"title",{},()=>[wt(Ce(e.title),1)])],2),z("div",{class:R(i(n).e("extra"))},[oe(u.$slots,"extra",{},()=>[wt(Ce(e.extra),1)])],2)],2)):re("v-if",!0),z("div",{class:R(i(n).e("body"))},[z("table",{class:R([i(n).e("table"),i(n).is("bordered",e.border)])},[z("tbody",null,[(E(!0),D(Ve,null,kt(l(),(d,f)=>(E(),le(w7,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}}),C7=S7;const k7=st(C7,{DescriptionsItem:NE}),E7=ln(NE),ME=Ee({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:Ut},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),x7={close:()=>!0},PE=Ee({...ME,appendToBody:Boolean,appendTo:{type:G([String,Object]),default:"body"},beforeClose:{type:G(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:G([String,Object]),default:void 0}}),AE={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[at]:e=>Wt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},T7=Ee({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:G([String,Array,Object])},zIndex:{type:G([String,Number])}}),O7={click:e=>e instanceof MouseEvent},_7="overlay";var R7=se({name:"ElOverlay",props:T7,emits:O7,setup(e,{slots:t,emit:n}){const a=ge(_7),o=u=>{n("click",u)},{onClick:r,onMousedown:s,onMouseup:l}=Sm(e.customMaskEvent?void 0:o);return()=>e.mask?X("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:l},[oe(t,"default")],14,["onClick","onMouseup","onMousedown"]):qe("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[oe(t,"default")])}});const ng=R7,LE=Symbol("dialogInjectionKey"),Wy="dialog-fade",I7="ElDialog",DE=(e,t)=>{const n=dt().emit,{nextZIndex:a}=Iu();let o="";const r=Gn(),s=Gn(),l=M(!1),u=M(!1),c=M(!1),d=M(e.zIndex??a()),f=M(!1);let p,g;const h=xr(),v=C(()=>h.value?.namespace??"el"),m=C(()=>h.value?.dialog),b=C(()=>{const U={},J=`--${v.value}-dialog`;if(!e.fullscreen){e.top&&(U[`${J}-margin-top`]=e.top);const ee=hn(e.width);ee&&(U[`${J}-width`]=ee)}return U}),w=C(()=>(e.draggable??m.value?.draggable??!1)&&!e.fullscreen),y=C(()=>e.alignCenter??m.value?.alignCenter??!1),S=C(()=>e.overflow??m.value?.overflow??!1),k=C(()=>e.modalPenetrable&&!e.modal&&!e.fullscreen),x=C(()=>y.value?{display:"flex"}:{}),O=C(()=>{const U=e.transition??m.value?.transition??"dialog-fade",J={name:U,onAfterEnter:T,onBeforeLeave:_,onAfterLeave:I};if(ot(U)){const ee={...U},ae=(ce,Z)=>de=>{we(ce)?ce.forEach(ue=>{Fe(ue)&&ue(de)}):Fe(ce)&&ce(de),Z()};return ee.onAfterEnter=ae(ee.onAfterEnter,T),ee.onBeforeLeave=ae(ee.onBeforeLeave,_),ee.onAfterLeave=ae(ee.onAfterLeave,I),ee.name||(ee.name=Wy,jt(I7,`transition.name is missing when using object syntax, fallback to '${Wy}'`)),ee}return J});function T(){n("opened")}function I(){n("closed"),n(at,!1),e.destroyOnClose&&(c.value=!1),f.value=!1}function _(){f.value=!0,n("close")}function N(){g?.(),p?.(),e.openDelay&&e.openDelay>0?{stop:p}=kl(()=>j(),e.openDelay):j()}function $(){p?.(),g?.(),e.closeDelay&&e.closeDelay>0?{stop:g}=kl(()=>W(),e.closeDelay):W()}function B(){function U(J){J||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(U):$()}function K(){e.closeOnClickModal&&B()}function j(){Lt&&(l.value=!0)}function W(){l.value=!1}function A(){n("openAutoFocus")}function P(){n("closeAutoFocus")}function V(U){U.detail?.focusReason==="pointer"&&U.preventDefault()}e.lockScroll&&of(l);function F(){e.closeOnPressEscape&&B()}function H(){!l.value||!k.value||e.zIndex!==void 0||(d.value=a())}return pe(()=>e.zIndex,()=>{d.value=e.zIndex??a()}),pe(()=>e.modelValue,U=>{U?(u.value=!1,f.value=!1,N(),c.value=!0,d.value=e.zIndex??a(),Ne(()=>{n("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):l.value&&$()}),pe(()=>e.fullscreen,U=>{t.value&&(U?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),ht(()=>{e.modelValue&&(l.value=!0,c.value=!0,N())}),{afterEnter:T,afterLeave:I,beforeLeave:_,handleClose:B,onModalClick:K,close:$,doClose:W,onOpenAutoFocus:A,onCloseAutoFocus:P,onCloseRequested:F,onFocusoutPrevented:V,bringToFront:H,titleId:r,bodyId:s,closed:u,style:b,overlayDialogStyle:x,rendered:c,visible:l,zIndex:d,transitionConfig:O,_draggable:w,_alignCenter:y,_overflow:S,closing:f,penetrable:k}},ag=(...e)=>t=>{e.forEach(n=>{n.value=t})},$7=["aria-level"],N7=["aria-label"],M7=["id"];var P7=se({name:"ElDialogContent",__name:"dialog-content",props:ME,emits:x7,setup(e,{expose:t}){const{t:n}=xt(),{Close:a}=_C,o=e,{dialogRef:r,headerRef:s,bodyId:l,ns:u,style:c}=$e(LE),{focusTrapRef:d}=$e(VC),f=ag(d,r),p=C(()=>!!o.draggable),{resetPosition:g,updatePosition:h,isDragging:v}=VS(r,s,p,C(()=>!!o.overflow)),m=C(()=>[u.b(),u.is("fullscreen",o.fullscreen),u.is("draggable",p.value),u.is("dragging",v.value),u.is("align-center",!!o.alignCenter),{[u.m("center")]:o.center}]);return t({resetPosition:g,updatePosition:h}),(b,w)=>(E(),D("div",{ref:i(f),class:R(m.value),style:ze(i(c)),tabindex:"-1"},[z("header",{ref_key:"headerRef",ref:s,class:R([i(u).e("header"),e.headerClass,{"show-close":e.showClose}])},[oe(b.$slots,"header",{},()=>[z("span",{role:"heading","aria-level":e.ariaLevel,class:R(i(u).e("title"))},Ce(e.title),11,$7)]),e.showClose?(E(),D("button",{key:0,"aria-label":i(n)("el.dialog.close"),class:R(i(u).e("headerbtn")),type:"button",onClick:w[0]||(w[0]=y=>b.$emit("close"))},[X(i(De),{class:R(i(u).e("close"))},{default:ne(()=>[(E(),le(it(e.closeIcon||i(a))))]),_:1},8,["class"])],10,N7)):re("v-if",!0)],2),z("div",{id:i(l),class:R([i(u).e("body"),e.bodyClass])},[oe(b.$slots,"default")],10,M7),b.$slots.footer?(E(),D("footer",{key:0,class:R([i(u).e("footer"),e.footerClass])},[oe(b.$slots,"footer")],2)):re("v-if",!0)],6))}}),A7=P7;const L7=["aria-label","aria-labelledby","aria-describedby"];var D7=se({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:PE,emits:AE,setup(e,{expose:t}){const n=e,a=wn();Po({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},C(()=>!!a.title));const o=ge("dialog"),r=M(),s=M(),l=M(),{visible:u,titleId:c,bodyId:d,style:f,overlayDialogStyle:p,rendered:g,transitionConfig:h,zIndex:v,_draggable:m,_alignCenter:b,_overflow:w,penetrable:y,handleClose:S,onModalClick:k,onOpenAutoFocus:x,onCloseAutoFocus:O,onCloseRequested:T,onFocusoutPrevented:I,bringToFront:_,closing:N}=DE(n,r);St(LE,{dialogRef:r,headerRef:s,bodyId:d,ns:o,rendered:g,style:f});const $=Sm(k);return t({visible:u,dialogContentRef:l,resetPosition:()=>{l.value?.resetPosition()},handleClose:S}),(K,j)=>(E(),le(Bl,{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},[X(Yn,pt(i(h),{persisted:""}),{default:ne(()=>[ct(X(i(ng),{"custom-mask-event":"",mask:e.modal,"overlay-class":[e.modalClass??"",`${i(o).namespace.value}-modal-dialog`,i(o).is("penetrable",i(y))],"z-index":i(v)},{default:ne(()=>[z("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(c),"aria-describedby":i(d),class:R([`${i(o).namespace.value}-overlay-dialog`,i(o).is("closing",i(N))]),style:ze(i(p)),onClick:j[0]||(j[0]=(...W)=>i($).onClick&&i($).onClick(...W)),onMousedown:j[1]||(j[1]=(...W)=>i($).onMousedown&&i($).onMousedown(...W)),onMouseup:j[2]||(j[2]=(...W)=>i($).onMouseup&&i($).onMouseup(...W))},[X(i(Ul),{loop:"",trapped:i(u),"focus-start-el":"container",onFocusAfterTrapped:i(x),onFocusAfterReleased:i(O),onFocusoutPrevented:i(I),onReleaseRequested:i(T)},{default:ne(()=>[i(g)?(E(),le(A7,pt({key:0,ref_key:"dialogContentRef",ref:l},K.$attrs,{center:e.center,"align-center":i(b),"close-icon":e.closeIcon,draggable:i(m),overflow:i(w),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:i(S),onMousedown:i(_)}),ma({header:ne(()=>[K.$slots.title?oe(K.$slots,"title",{key:1}):oe(K.$slots,"header",{key:0,close:i(S),titleId:i(c),titleClass:i(o).e("title")})]),default:ne(()=>[oe(K.$slots,"default")]),_:2},[K.$slots.footer?{name:"footer",fn:ne(()=>[oe(K.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose","onMousedown"])):re("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,L7)]),_:3},8,["mask","overlay-class","z-index"]),[[$t,i(u)]])]),_:3},16)],8,["to","disabled"]))}}),B7=D7;const V7=st(B7),F7=Ee({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:G(String),default:"solid"}});var z7=se({name:"ElDivider",__name:"divider",props:F7,setup(e){const t=e,n=ge("divider"),a=C(()=>n.cssVar({"border-style":t.borderStyle}));return(o,r)=>(E(),D("div",{class:R([i(n).b(),i(n).m(e.direction)]),style:ze(a.value),role:"separator"},[o.$slots.default&&e.direction!=="vertical"?(E(),D("div",{key:0,class:R([i(n).e("text"),i(n).is(e.contentPosition)])},[oe(o.$slots,"default")],2)):re("v-if",!0)],6))}}),H7=z7;const BE=st(H7),K7=Ee({...PE,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),W7={...AE,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function j7(e,t,n){const{width:a,height:o}=lm(),r=C(()=>["ltr","rtl"].includes(e.direction)),s=C(()=>["ltr","ttb"].includes(e.direction)?1:-1),l=C(()=>r.value?a.value:o.value),u=C(()=>tf(c.value+s.value*d.value,4,l.value)),c=M(0),d=M(0),f=M(!1),p=M(!1);let g=[],h=[];const v=()=>{const S=t.value?.closest('[aria-modal="true"]');return S?r.value?S.offsetWidth:S.offsetHeight:100};pe(()=>[e.size,e.resizable],()=>{p.value=!1,c.value=0,d.value=0,w()});const m=S=>{e.resizable&&(p.value||(c.value=v(),p.value=!0),g=[S.pageX,S.pageY],f.value=!0,n("resize-start",S,c.value),h.push(Bt(window,"mouseup",w),Bt(window,"mousemove",b)))},b=S=>{const{pageX:k,pageY:x}=S,O=k-g[0],T=x-g[1];d.value=r.value?O:T,n("resize",S,u.value)},w=S=>{f.value&&(g=[],c.value=u.value,d.value=0,f.value=!1,h.forEach(k=>k?.()),h=[],S&&n("resize-end",S,c.value))},y=Bt(t,"mousedown",m);return Vt(()=>{y(),w()}),{size:C(()=>p.value?`${u.value}px`:hn(e.size)),isResizing:f,isHorizontal:r}}const U7=["aria-label","aria-labelledby","aria-describedby"],q7=["id","aria-level"],Y7=["aria-label"],G7=["id"];var X7=se({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:K7,emits:W7,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wn();Po({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},C(()=>!!r.title));const s=M(),l=M(),u=M(),c=ge("drawer"),{t:d}=xt(),{afterEnter:f,afterLeave:p,beforeLeave:g,visible:h,rendered:v,titleId:m,bodyId:b,zIndex:w,onModalClick:y,onOpenAutoFocus:S,onCloseAutoFocus:k,onFocusoutPrevented:x,onCloseRequested:O,handleClose:T}=DE(a,s),{isHorizontal:I,size:_,isResizing:N}=j7(a,u,o),$=C(()=>a.modalPenetrable&&!a.modal);return t({handleClose:T,afterEnter:f,afterLeave:p}),(B,K)=>(E(),le(Bl,{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},[X(Yn,{name:i(c).b("fade"),onAfterEnter:i(f),onAfterLeave:i(p),onBeforeLeave:i(g),persisted:""},{default:ne(()=>[ct(X(i(ng),{mask:e.modal,"overlay-class":[i(c).is("drawer"),e.modalClass??"",`${i(c).namespace.value}-modal-drawer`,i(c).is("penetrable",$.value)],"z-index":i(w),onClick:i(y)},{default:ne(()=>[X(i(Ul),{loop:"",trapped:i(h),"focus-trap-el":s.value,"focus-start-el":l.value,onFocusAfterTrapped:i(S),onFocusAfterReleased:i(k),onFocusoutPrevented:i(x),onReleaseRequested:i(O)},{default:ne(()=>[z("div",pt({ref_key:"drawerRef",ref:s,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(m),"aria-describedby":i(b)},B.$attrs,{class:[i(c).b(),e.direction,i(h)&&"open",i(c).is("dragging",i(N))],style:{[i(I)?"width":"height"]:i(_)},role:"dialog",onClick:K[1]||(K[1]=Xe(()=>{},["stop"]))}),[z("span",{ref_key:"focusStartRef",ref:l,class:R(i(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(E(),D("header",{key:0,class:R([i(c).e("header"),e.headerClass])},[B.$slots.title?oe(B.$slots,"title",{key:1},()=>[re(" DEPRECATED SLOT ")]):oe(B.$slots,"header",{key:0,close:i(T),titleId:i(m),titleClass:i(c).e("title")},()=>[z("span",{id:i(m),role:"heading","aria-level":e.headerAriaLevel,class:R(i(c).e("title"))},Ce(e.title),11,q7)]),e.showClose?(E(),D("button",{key:2,"aria-label":i(d)("el.drawer.close"),class:R(i(c).e("close-btn")),type:"button",onClick:K[0]||(K[0]=(...j)=>i(T)&&i(T)(...j))},[X(i(De),{class:R(i(c).e("close"))},{default:ne(()=>[X(i(Qa))]),_:1},8,["class"])],10,Y7)):re("v-if",!0)],2)):re("v-if",!0),i(v)?(E(),D("div",{key:1,id:i(b),class:R([i(c).e("body"),e.bodyClass])},[oe(B.$slots,"default")],10,G7)):re("v-if",!0),B.$slots.footer?(E(),D("div",{key:2,class:R([i(c).e("footer"),e.footerClass])},[oe(B.$slots,"footer")],2)):re("v-if",!0),e.resizable?(E(),D("div",{key:3,ref_key:"draggerRef",ref:u,style:ze({zIndex:i(w)}),class:R(i(c).e("dragger"))},null,6)):re("v-if",!0)],16,U7)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[$t,i(h)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}}),J7=X7;const Z7=st(J7),$c=Ee({trigger:{...Bo.trigger,type:G([String,Array])},triggerKeys:{type:G(Array),default:()=>[Se.enter,Se.numpadEnter,Se.space,Se.down]},virtualTriggering:Bo.virtualTriggering,virtualRef:Bo.virtualRef,effect:{...Kt.effect,default:"light"},type:{type:G(String)},placement:{type:G(String),default:"bottom"},popperOptions:{type:G(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:G([Number,String]),default:0},maxHeight:{type:G([Number,String]),default:""},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,disabled:Boolean,role:{type:String,values:RC,default:"menu"},buttonProps:{type:G(Object)},teleported:Kt.teleported,appendTo:Kt.appendTo,persistent:{type:Boolean,default:!0}}),VE=Ee({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ut}}),Q7=Ee({onKeydown:{type:G(Function)}}),Sf=Symbol("elDropdown"),FE="elDropdown";var eK=se({inheritAttrs:!1});function tK(e,t,n,a,o,r){return oe(e.$slots,"default")}var nK=Mn(eK,[["render",tK]]),aK=se({name:"ElCollectionItem",inheritAttrs:!1});function oK(e,t,n,a,o,r){return oe(e.$slots,"default")}var rK=Mn(aK,[["render",oK]]);const zE="data-el-collection-item",sK=e=>{const t=`El${e}Collection`,n=`${t}Item`,a=Symbol(t),o=Symbol(n);return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:Object.assign({},nK,{name:t,setup(){const r=M(),s=new Map;St(a,{itemMap:s,getItems:()=>{const u=i(r);if(!u)return[];const c=Array.from(u.querySelectorAll(`[${zE}]`));return[...s.values()].sort((d,f)=>c.indexOf(d.ref)-c.indexOf(f.ref))},collectionRef:r})}}),ElCollectionItem:Object.assign({},rK,{name:n,setup(r,{attrs:s}){const l=M(),u=$e(a,void 0);St(o,{collectionItemRef:l}),ht(()=>{const c=i(l);c&&u.itemMap.set(c,{ref:c,...s})}),Vt(()=>{const c=i(l);u.itemMap.delete(c)})}})}},lK=Ee({style:{type:G([String,Array,Object,Boolean]),default:void 0},currentTabId:{type:G(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:G(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:iK,ElCollectionItem:uK,COLLECTION_INJECTION_KEY:HE,COLLECTION_ITEM_INJECTION_KEY:cK}=sK("RovingFocusGroup"),og=Symbol("elRovingFocusGroup"),KE=Symbol("elRovingFocusGroupItem"),dK={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},fK=(e,t)=>e,pK=(e,t,n)=>{const a=fK(qt(e));return dK[a]},hK=(e,t)=>e.map((n,a)=>e[(a+t)%e.length]),jy=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Uy="currentTabIdChange",qy="rovingFocusGroup.entryFocus",vK={bubbles:!1,cancelable:!0};var mK=se({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:lK,emits:[Uy,"entryFocus"],setup(e,{emit:t}){const n=M((e.currentTabId||e.defaultCurrentTabId)??null),a=M(!1),o=M(!1),r=M(),{getItems:s}=$e(HE,void 0),l=C(()=>[{outline:"none"},e.style]),u=v=>{t(Uy,v)},c=()=>{a.value=!0},d=Ln(v=>{e.onMousedown?.(v)},()=>{o.value=!0}),f=Ln(v=>{e.onFocus?.(v)},v=>{const m=!i(o),{target:b,currentTarget:w}=v;if(b===w&&m&&!i(a)){const y=new Event(qy,vK);if(w?.dispatchEvent(y),!y.defaultPrevented){const S=s().filter(k=>k.focusable);jy([S.find(k=>k.active),S.find(k=>k.id===i(n)),...S].filter(Boolean).map(k=>k.ref))}}o.value=!1}),p=Ln(v=>{e.onBlur?.(v)},()=>{a.value=!1}),g=(...v)=>{t("entryFocus",...v)},h=v=>{const m=pK(v);if(m){v.preventDefault();let b=s().filter(w=>w.focusable).map(w=>w.ref);switch(m){case"last":b.reverse();break;case"prev":case"next":{m==="prev"&&b.reverse();const w=b.indexOf(v.currentTarget);b=e.loop?hK(b,w+1):b.slice(w+1);break}}Ne(()=>{jy(b)})}};St(og,{currentTabbedId:gl(n),loop:Ht(e,"loop"),tabIndex:C(()=>i(a)?-1:0),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:l,orientation:Ht(e,"orientation"),dir:Ht(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:p,onFocus:f,onMousedown:d,onKeydown:h}),pe(()=>e.currentTabId,v=>{n.value=v??null}),Bt(r,qy,g)}});function gK(e,t,n,a,o,r){return oe(e.$slots,"default")}var bK=Mn(mK,[["render",gK]]),yK=se({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:iK,ElRovingFocusGroupImpl:bK}});function wK(e,t,n,a,o,r){const s=Mt("el-roving-focus-group-impl"),l=Mt("el-focus-group-collection");return E(),le(l,null,{default:ne(()=>[X(s,sr(ir(e.$attrs)),{default:ne(()=>[oe(e.$slots,"default")]),_:3},16)]),_:3})}var SK=Mn(yK,[["render",wK]]),CK=se({components:{ElRovingFocusCollectionItem:uK},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:a,onItemShiftTab:o,onKeydown:r}=$e(og,void 0),s=Gn(),l=M(),u=Ln(p=>{t("mousedown",p)},p=>{e.focusable?a(i(s)):p.preventDefault()}),c=Ln(p=>{t("focus",p)},()=>{a(i(s))}),d=Ln(p=>{t("keydown",p)},p=>{const{shiftKey:g,target:h,currentTarget:v}=p;if(qt(p)===Se.tab&&g){o();return}h===v&&r(p)}),f=C(()=>n.value===i(s));return St(KE,{rovingFocusGroupItemRef:l,tabIndex:C(()=>i(f)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:s,handleKeydown:d,handleFocus:c,handleMousedown:u}}});function kK(e,t,n,a,o,r){const s=Mt("el-roving-focus-collection-item");return E(),le(s,{id:e.id,focusable:e.focusable,active:e.active},{default:ne(()=>[oe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var EK=Mn(CK,[["render",kK]]),xK=SK;const{ButtonGroup:TK}=Bn;var OK=se({name:"ElDropdown",components:{ElButton:Bn,ElButtonGroup:TK,ElScrollbar:vo,ElTooltip:Wn,ElRovingFocusGroup:xK,ElOnlyChild:MC,ElIcon:De,ArrowDown:qo},props:$c,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=dt(),a=ge("dropdown"),{t:o}=xt(),r=M(),s=M(),l=M(),u=M(),c=M(null),d=M(null),f=M(!1),p=C(()=>({maxHeight:hn(e.maxHeight)})),g=C(()=>[a.m(S.value)]),h=C(()=>Dn(e.trigger)),v=Gn().value,m=C(()=>e.id||v);function b(){l.value?.onClose(void 0,0)}function w(){l.value?.onClose()}function y(){l.value?.onOpen()}const S=In();function k(...B){t("command",...B)}function x(){}function O(){const B=i(u);h.value.includes("hover")&&B?.focus({preventScroll:!0}),d.value=null}function T(B){d.value=B}function I(){t("visible-change",!0)}function _(B){f.value=B?.type==="keydown",u.value?.focus()}function N(){t("visible-change",!1)}return St(Sf,{contentRef:u,role:C(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:x,onItemLeave:O,handleClose:w}),St(FE,{instance:n,dropdownSize:S,handleClick:b,commandHandler:k,trigger:Ht(e,"trigger"),hideOnClick:Ht(e,"hideOnClick")}),{t:o,ns:a,scrollbar:c,wrapStyle:p,dropdownTriggerKls:g,dropdownSize:S,triggerId:m,currentTabId:d,handleCurrentTabIdChange:T,handlerMainButtonClick:B=>{t("click",B)},handleClose:w,handleOpen:y,handleBeforeShowTooltip:I,handleShowTooltip:_,handleBeforeHideTooltip:N,popperRef:l,contentRef:u,triggeringElementRef:r,referenceElementRef:s}}});function _K(e,t,n,a,o,r){const s=Mt("el-roving-focus-group"),l=Mt("el-scrollbar"),u=Mt("el-only-child"),c=Mt("el-tooltip"),d=Mt("el-button"),f=Mt("arrow-down"),p=Mt("el-icon"),g=Mt("el-button-group");return E(),D("div",{class:R([e.ns.b(),e.ns.is("disabled",e.disabled)])},[X(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":e.virtualRef??e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},ma({content:ne(()=>[X(l,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ne(()=>[X(s,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:ne(()=>[oe(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ne(()=>[X(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ne(()=>[oe(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(E(),le(g,{key:0},{default:ne(()=>[X(d,pt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ne(()=>[oe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),X(d,pt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ne(()=>[X(p,{class:R(e.ns.e("icon"))},{default:ne(()=>[X(f)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):re("v-if",!0)],2)}var RK=Mn(OK,[["render",_K]]),IK=se({name:"DropdownItemImpl",components:{ElIcon:De},props:VE,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ge("dropdown"),{role:a}=$e(Sf,void 0),{collectionItemRef:o}=$e(cK,void 0),{rovingFocusGroupItemRef:r,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=$e(KE,void 0),d=ag(o,r),f=C(()=>a.value==="menu"?"menuitem":a.value==="navigation"?"link":"button"),p=Ln(g=>{const h=qt(g);if([Se.enter,Se.numpadEnter,Se.space].includes(h))return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:d,dataset:{[zE]:""},role:f,tabIndex:s,handleFocus:l,handleKeydown:p,handleMousedown:c}}});const $K=["aria-disabled","tabindex","role"];function NK(e,t,n,a,o,r){const s=Mt("el-icon");return E(),D(Ve,null,[e.divided?(E(),D("li",{key:0,role:"separator",class:R(e.ns.bem("menu","item","divided"))},null,2)):re("v-if",!0),z("li",pt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=l=>e.$emit("clickimpl",l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onKeydown:t[2]||(t[2]=Xe((...l)=>e.handleKeydown&&e.handleKeydown(...l),["self"])),onMousedown:t[3]||(t[3]=(...l)=>e.handleMousedown&&e.handleMousedown(...l)),onPointermove:t[4]||(t[4]=l=>e.$emit("pointermove",l)),onPointerleave:t[5]||(t[5]=l=>e.$emit("pointerleave",l))}),[e.icon||e.$slots.icon?(E(),le(s,{key:0},{default:ne(()=>[oe(e.$slots,"icon",{},()=>[(E(),le(it(e.icon)))])]),_:3})):re("v-if",!0),oe(e.$slots,"default")],16,$K)],64)}var MK=Mn(IK,[["render",NK]]);const WE=()=>{const e=$e(FE,{});return{elDropdown:e,_elDropdownSize:C(()=>e?.dropdownSize)}};var PK=se({name:"ElDropdownItem",components:{ElRovingFocusItem:EK,ElDropdownItemImpl:MK},inheritAttrs:!1,props:VE,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:a}=WE(),o=dt(),{onItemEnter:r,onItemLeave:s}=$e(Sf,void 0),l=Ln(c=>(t("pointermove",c),c.defaultPrevented),p0(c=>{if(e.disabled){s(c);return}const d=c.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(r(c),c.defaultPrevented||d?.focus({preventScroll:!0}))})),u=Ln(c=>(t("pointerleave",c),c.defaultPrevented),p0(s));return{handleClick:Ln(c=>{if(!e.disabled)return t("click",c),c.type!=="keydown"&&c.defaultPrevented},c=>{if(e.disabled){c.stopImmediatePropagation();return}a?.hideOnClick?.value&&a.handleClick?.(),a.commandHandler?.(e.command,o,c)}),handlePointerMove:l,handlePointerLeave:u,propsAndAttrs:C(()=>({...e,...n}))}}});function AK(e,t,n,a,o,r){const s=Mt("el-dropdown-item-impl"),l=Mt("el-roving-focus-item");return E(),le(l,{focusable:!e.disabled},{default:ne(()=>[X(s,pt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),ma({default:ne(()=>[oe(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:ne(()=>[oe(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var jE=Mn(PK,[["render",AK]]),LK=se({name:"ElDropdownMenu",props:Q7,setup(e){const t=ge("dropdown"),{_elDropdownSize:n}=WE(),a=n.value,{contentRef:o,role:r,triggerId:s,isUsingKeyboard:l,handleClose:u}=$e(Sf,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:d,onBlur:f,onFocus:p,onKeydown:g,onMousedown:h}=$e(og,void 0),{collectionRef:v}=$e(HE,void 0),m=C(()=>[t.b("menu"),t.bm("menu",a?.value)]),b=ag(o,c,v),w=Ln(S=>{e.onKeydown?.(S)},S=>{const{currentTarget:k,target:x}=S,O=qt(S);if(k.contains(x),Se.tab===O)return u();g(S)});function y(S){l.value&&p(S)}return{size:a,rovingFocusGroupRootStyle:d,dropdownKls:m,role:r,triggerId:s,dropdownListWrapperRef:b,handleKeydown:w,onBlur:f,handleFocus:y,onMousedown:h}}});const DK=["role","aria-labelledby"];function BK(e,t,n,a,o,r){return E(),D("ul",{ref:e.dropdownListWrapperRef,class:R(e.dropdownKls),style:ze(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onFocusout:t[1]||(t[1]=(...s)=>e.onBlur&&e.onBlur(...s)),onKeydown:t[2]||(t[2]=Xe((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=Xe((...s)=>e.onMousedown&&e.onMousedown(...s),["self"]))},[oe(e.$slots,"default")],46,DK)}var UE=Mn(LK,[["render",BK]]);const VK=st(RK,{DropdownItem:jE,DropdownMenu:UE}),FK=ln(jE),zK=ln(UE),HK=Ee({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),KK={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},WK=["id"],jK=["stop-color"],UK=["stop-color"],qK=["id"],YK=["stop-color"],GK=["stop-color"],XK=["id"],JK={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},ZK={transform:"translate(-1268.000000, -535.000000)"},QK={transform:"translate(1268.000000, 535.000000)"},eW=["fill"],tW=["fill"],nW={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},aW=["fill"],oW=["fill"],rW=["fill"],sW=["fill"],lW=["fill"],iW={transform:"translate(53.000000, 45.000000)"},uW=["fill","xlink:href"],cW=["fill","mask"],dW=["fill"];var fW=se({name:"ImgEmpty",__name:"img-empty",setup(e){const t=ge("empty"),n=Gn();return(a,o)=>(E(),D("svg",KK,[z("defs",null,[z("linearGradient",{id:`linearGradient-1-${i(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[z("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,jK),z("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,UK)],8,WK),z("linearGradient",{id:`linearGradient-2-${i(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[z("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,YK),z("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,GK)],8,qK),z("rect",{id:`path-3-${i(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,XK)]),z("g",JK,[z("g",ZK,[z("g",QK,[z("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${i(t).cssVarBlockName("fill-color-3")})`},null,8,eW),z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,tW),z("g",nW,[z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,aW),z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,oW),z("rect",{fill:`url(#linearGradient-1-${i(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,rW),z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,sW)]),z("rect",{fill:`url(#linearGradient-2-${i(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,lW),z("g",iW,[z("use",{fill:`var(${i(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${i(n)}`},null,8,uW),z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${i(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,cW)]),z("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,dW)])])])]))}}),pW=fW;const hW=["src"],vW={key:1};var mW=se({name:"ElEmpty",__name:"empty",props:HK,setup(e){const t=e,{t:n}=xt(),a=ge("empty"),o=C(()=>t.description||n("el.table.emptyText")),r=C(()=>({width:hn(t.imageSize)}));return(s,l)=>(E(),D("div",{class:R(i(a).b())},[z("div",{class:R(i(a).e("image")),style:ze(r.value)},[e.image?(E(),D("img",{key:0,src:e.image,ondragstart:"return false"},null,8,hW)):oe(s.$slots,"image",{key:1},()=>[X(pW)])],6),z("div",{class:R(i(a).e("description"))},[s.$slots.description?oe(s.$slots,"description",{key:0}):(E(),D("p",vW,Ce(o.value),1))],2),s.$slots.default?(E(),D("div",{key:0,class:R(i(a).e("bottom"))},[oe(s.$slots,"default")],2)):re("v-if",!0)],2))}}),gW=mW;const qE=st(gW),bW=Ee({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:G([String,Object])},previewSrcList:{type:G(Array),default:()=>pn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:G(String)}}),yW={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Be(e),close:()=>!0,show:()=>!0},wW=Ee({urlList:{type:G(Array),default:()=>pn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:G(String)}}),SW={close:()=>!0,error:e=>e instanceof Event,switch:e=>Be(e),rotate:e=>Be(e)},CW=["src","crossorigin"];var kW=se({name:"ElImageViewer",__name:"image-viewer",props:wW,emits:SW,setup(e,{expose:t,emit:n}){const a={CONTAIN:{name:"contain",icon:Ya(HP)},ORIGINAL:{name:"original",icon:Ya(SA)}},o=e,r=n;let s;const{t:l}=xt(),u=ge("image-viewer"),{nextZIndex:c}=Iu(),d=M(),f=M(),p=xv(),g=C(()=>{const{scale:ue,minScale:Y,maxScale:Q}=o;return tf(ue,Y,Q)}),h=M(!0),v=M(!1),m=M(!1),b=M(o.initialIndex),w=Tt(a.CONTAIN),y=M({scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),S=M(o.zIndex??c());of(m,{ns:u});const k=C(()=>{const{urlList:ue}=o;return ue.length<=1}),x=C(()=>b.value===0),O=C(()=>b.value===o.urlList.length-1),T=C(()=>o.urlList[b.value]),I=C(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&x.value)]),_=C(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&O.value)]),N=C(()=>{const{scale:ue,deg:Y,offsetX:Q,offsetY:L,enableTransition:q}=y.value;let te=Q/ue,fe=L/ue;const he=Y*Math.PI/180,ve=Math.cos(he),Ie=Math.sin(he);te=te*ve+fe*Ie,fe=fe*ve-Q/ue*Ie;const Le={transform:`scale(${ue}) rotate(${Y}deg) translate(${te}px, ${fe}px)`,transition:q?"transform .3s":""};return w.value.name===a.CONTAIN.name&&(Le.maxWidth=Le.maxHeight="100%"),Le}),$=C(()=>`${b.value+1} / ${o.urlList.length}`);function B(){j(),s?.(),m.value=!1,r("close")}function K(){const ue=Fr(Q=>{switch(qt(Q)){case Se.esc:o.closeOnPressEscape&&B();break;case Se.space:H();break;case Se.left:J();break;case Se.up:ae("zoomIn");break;case Se.right:ee();break;case Se.down:ae("zoomOut");break}}),Y=Fr(Q=>{ae((Q.deltaY||Q.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{Bt(document,"keydown",ue),Bt(d,"wheel",Y)})}function j(){p.stop()}function W(){h.value=!1}function A(ue){v.value=!0,h.value=!1,r("error",ue),ue.target.alt=l("el.image.error")}function P(ue){if(h.value||ue.button!==0||!d.value)return;y.value.enableTransition=!1;const{offsetX:Y,offsetY:Q}=y.value,L=ue.pageX,q=ue.pageY,te=Fr(ve=>{y.value={...y.value,offsetX:Y+ve.pageX-L,offsetY:Q+ve.pageY-q}}),fe=Bt(document,"mousemove",te),he=Bt(document,"mouseup",()=>{fe(),he()});ue.preventDefault()}function V(ue){if(h.value||!d.value||ue.touches.length!==1)return;y.value.enableTransition=!1;const{offsetX:Y,offsetY:Q}=y.value,{pageX:L,pageY:q}=ue.touches[0],te=Fr(ve=>{const Ie=ve.touches[0];y.value={...y.value,offsetX:Y+Ie.pageX-L,offsetY:Q+Ie.pageY-q}}),fe=Bt(document,"touchmove",te),he=Bt(document,"touchend",()=>{fe(),he()});ue.preventDefault()}function F(){y.value={scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function H(){if(h.value||v.value)return;const ue=Ji(a),Y=Object.values(a),Q=w.value.name;w.value=a[ue[(Y.findIndex(L=>L.name===Q)+1)%ue.length]],F()}function U(ue){v.value=!1;const Y=o.urlList.length;b.value=(ue+Y)%Y}function J(){x.value&&!o.infinite||U(b.value-1)}function ee(){O.value&&!o.infinite||U(b.value+1)}function ae(ue,Y={}){if(h.value||v.value)return;const{minScale:Q,maxScale:L}=o,{zoomRate:q,rotateDeg:te,enableTransition:fe}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Y};switch(ue){case"zoomOut":y.value.scale>Q&&(y.value.scale=Number.parseFloat((y.value.scale/q).toFixed(3)));break;case"zoomIn":y.value.scale0)return ue.preventDefault(),!1}}return pe(()=>g.value,ue=>{y.value.scale=ue}),pe(T,()=>{Ne(()=>{f.value?.complete||(h.value=!0)})}),pe(b,ue=>{F(),r("switch",ue)}),ht(()=>{m.value=!0,K(),s=Bt("wheel",de,{passive:!1})}),t({setActiveItem:U}),(ue,Y)=>(E(),le(Bl,{to:"body",disabled:!e.teleported},[X(Yn,{name:"viewer-fade",appear:""},{default:ne(()=>[z("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:R(i(u).e("wrapper")),style:ze({zIndex:S.value})},[X(i(Ul),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:ce,onReleaseRequested:Z},{default:ne(()=>[z("div",{class:R(i(u).e("mask")),onClick:Y[0]||(Y[0]=Xe(Q=>e.hideOnClickModal&&B(),["self"]))},null,2),re(" CLOSE "),z("span",{class:R([i(u).e("btn"),i(u).e("close")]),onClick:B},[X(i(De),null,{default:ne(()=>[X(i(Qa))]),_:1})],2),re(" ARROW "),k.value?re("v-if",!0):(E(),D(Ve,{key:0},[z("span",{class:R(I.value),onClick:J},[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1})],2),z("span",{class:R(_.value),onClick:ee},[X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})],2)],64)),ue.$slots.progress||e.showProgress?(E(),D("div",{key:1,class:R([i(u).e("btn"),i(u).e("progress")])},[oe(ue.$slots,"progress",{activeIndex:b.value,total:e.urlList.length},()=>[wt(Ce($.value),1)])],2)):re("v-if",!0),re(" ACTIONS "),z("div",{class:R([i(u).e("btn"),i(u).e("actions")])},[z("div",{class:R(i(u).e("actions__inner"))},[oe(ue.$slots,"toolbar",{actions:ae,prev:J,next:ee,reset:H,activeIndex:b.value,setActiveItem:U},()=>[X(i(De),{onClick:Y[1]||(Y[1]=Q=>ae("zoomOut"))},{default:ne(()=>[X(i(qA))]),_:1}),X(i(De),{onClick:Y[2]||(Y[2]=Q=>ae("zoomIn"))},{default:ne(()=>[X(i(OC))]),_:1}),z("i",{class:R(i(u).e("actions__divider"))},null,2),X(i(De),{onClick:H},{default:ne(()=>[(E(),le(it(w.value.icon)))]),_:1}),z("i",{class:R(i(u).e("actions__divider"))},null,2),X(i(De),{onClick:Y[3]||(Y[3]=Q=>ae("anticlockwise"))},{default:ne(()=>[X(i(mA))]),_:1}),X(i(De),{onClick:Y[4]||(Y[4]=Q=>ae("clockwise"))},{default:ne(()=>[X(i(bA))]),_:1})])],2)],2),re(" CANVAS "),z("div",{class:R(i(u).e("canvas"))},[v.value&&ue.$slots["viewer-error"]?oe(ue.$slots,"viewer-error",{key:0,activeIndex:b.value,src:T.value}):(E(),D("img",{ref_key:"imgRef",ref:f,key:T.value,src:T.value,style:ze(N.value),class:R(i(u).e("img")),crossorigin:e.crossorigin,onLoad:W,onError:A,onMousedown:P,onTouchstart:V},null,46,CW))],2),oe(ue.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})],8,["disabled"]))}}),EW=kW;const YE=st(EW),xW=["src","loading","crossorigin"],TW={key:0};var OW=se({name:"ElImage",inheritAttrs:!1,__name:"image",props:bW,emits:yW,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:r}=xt(),s=ge("image"),l=wr(),u=C(()=>Cl(Object.entries(l).filter(([A])=>/^(data-|on[A-Z])/i.test(A)||["id","style"].includes(A)))),c=ef({excludeListeners:!0,excludeKeys:C(()=>Object.keys(u.value))}),d=M(),f=M(!1),p=M(!0),g=M(!1),h=M(),v=M(),m=Lt&&"loading"in HTMLImageElement.prototype;let b;const w=C(()=>[s.e("inner"),S.value&&s.e("preview"),p.value&&s.is("loading")]),y=C(()=>{const{fit:A}=a;return Lt&&A?{objectFit:A}:{}}),S=C(()=>{const{previewSrcList:A}=a;return we(A)&&A.length>0}),k=C(()=>{const{previewSrcList:A,initialIndex:P}=a;let V=P;return P>A.length-1&&(V=0),V}),x=C(()=>a.loading==="eager"?!1:!m&&a.loading==="lazy"||a.lazy),O=()=>{Lt&&(p.value=!0,f.value=!1,d.value=a.src)};function T(A){p.value=!1,f.value=!1,o("load",A)}function I(A){p.value=!1,f.value=!0,o("error",A)}function _(A){A&&(O(),B())}const N=$S(_,200,!0);async function $(){if(!Lt)return;await Ne();const{scrollContainer:A}=a;if(ka(A))v.value=A;else if(Ae(A)&&A!=="")v.value=document.querySelector(A)??void 0;else if(h.value){const V=dm(h.value);v.value=Eu(V)?void 0:V}const{stop:P}=x$(h,([V])=>{N(V.isIntersecting)},{root:v});b=P}function B(){!Lt||!N||(b?.(),v.value=void 0,b=void 0)}function K(){S.value&&(g.value=!0,o("show"))}function j(){g.value=!1,o("close")}function W(A){o("switch",A)}return pe(()=>a.src,()=>{x.value?(p.value=!0,f.value=!1,B(),$()):O()}),ht(()=>{x.value?$():O()}),t({showPreview:K}),(A,P)=>(E(),D("div",pt({ref_key:"container",ref:h},u.value,{class:[i(s).b(),A.$attrs.class]}),[f.value?oe(A.$slots,"error",{key:0},()=>[z("div",{class:R(i(s).e("error"))},Ce(i(r)("el.image.error")),3)]):(E(),D(Ve,{key:1},[d.value!==void 0?(E(),D("img",pt({key:0},i(c),{src:d.value,loading:e.loading,style:y.value,class:w.value,crossorigin:e.crossorigin,onClick:K,onLoad:T,onError:I}),null,16,xW)):re("v-if",!0),p.value?(E(),D("div",{key:1,class:R(i(s).e("wrapper"))},[oe(A.$slots,"placeholder",{},()=>[z("div",{class:R(i(s).e("placeholder"))},null,2)])],2)):re("v-if",!0)],64)),S.value?(E(),D(Ve,{key:2},[g.value?(E(),le(i(YE),{key:0,"z-index":e.zIndex,"initial-index":k.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:j,onSwitch:W},ma({toolbar:ne(V=>[oe(A.$slots,"toolbar",sr(ir(V)))]),default:ne(()=>[A.$slots.viewer?(E(),D("div",TW,[oe(A.$slots,"viewer")])):re("v-if",!0)]),_:2},[A.$slots.progress?{name:"progress",fn:ne(V=>[oe(A.$slots,"progress",sr(ir(V)))]),key:"0"}:void 0,A.$slots["viewer-error"]?{name:"viewer-error",fn:ne(V=>[oe(A.$slots,"viewer-error",sr(ir(V)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):re("v-if",!0)],64)):re("v-if",!0)],16))}}),_W=OW;const RW=st(_W),IW=Ee({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:Nn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:G([String,Number,null]),validator:e=>e===null||Be(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...ia(["ariaLabel"]),inputmode:{type:G(String),default:void 0},align:{type:G(String),default:"center"},disabledScientific:Boolean,formatter:{type:Function},parser:{type:Function},tabindex:{type:[String,Number],default:0}}),$W={[yt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Tn]:e=>Be(e)||En(e),[at]:e=>Be(e)||En(e)},NW=["aria-label"],MW=["aria-label"];var PW=se({name:"ElInputNumber",__name:"input-number",props:IW,emits:$W,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:r}=xt(),s=ge("input-number"),l=M(),u=Dt({currentValue:a.modelValue,userInput:null}),{formItem:c}=Fn(),d=C(()=>Be(a.modelValue)&&a.modelValue<=a.min),f=C(()=>Be(a.modelValue)&&a.modelValue>=a.max),p=C(()=>{const A=w(a.step);return Rt(a.precision)?Math.max(w(a.modelValue),A):(A>a.precision&&jt("InputNumber","precision should not be less than the decimal places of step"),a.precision)}),g=C(()=>a.controls&&a.controlsPosition==="right"),h=In(),v=un(),m=C(()=>{if(u.userInput!==null)return u.userInput;let A=u.currentValue;if(En(A))return"";if(Be(A)){if(Number.isNaN(A))return"";Rt(a.precision)||(A=A.toFixed(a.precision))}return A}),b=(A,P)=>{if(Rt(P)&&(P=p.value),P===0)return Math.round(A);let V=String(A);const F=V.indexOf(".");if(F===-1||!V.replace(".","").split("")[F+P])return A;const H=V.length;return V.charAt(H-1)==="5"&&(V=`${V.slice(0,Math.max(0,H-1))}6`),Number.parseFloat(Number(V).toFixed(P))},w=A=>{if(En(A))return 0;const P=A.toString(),V=P.indexOf(".");let F=0;return V!==-1&&(F=P.length-V-1),F},y=(A,P=1)=>Be(A)?A>=Number.MAX_SAFE_INTEGER&&P===1?(jt("InputNumber","The value has reached the maximum safe integer limit."),A):A<=Number.MIN_SAFE_INTEGER&&P===-1?(jt("InputNumber","The value has reached the minimum safe integer limit."),A):b(A+a.step*P):u.currentValue,S=A=>{const P=qt(A),V=KS(A);if(a.disabledScientific&&["e","E"].includes(V)){A.preventDefault();return}switch(P){case Se.up:A.preventDefault(),k();break;case Se.down:A.preventDefault(),x();break}},k=()=>{a.readonly||v.value||f.value||(T(y(Number(m.value)||0)),o(Tn,u.currentValue),j())},x=()=>{a.readonly||v.value||d.value||(T(y(Number(m.value)||0,-1)),o(Tn,u.currentValue),j())},O=(A,P)=>{const{max:V,min:F,step:H,precision:U,stepStrictly:J,valueOnClear:ee}=a;VV||aeV?V:F,P&&o("update:modelValue",ae)),ae},T=(A,P=!0)=>{const V=u.currentValue,F=O(A);if(!P){o(at,F);return}u.userInput=null,!(V===F&&A)&&(o(at,F),V!==F&&o(yt,F,V),a.validateEvent&&c?.validate?.("change").catch(ut),u.currentValue=F)},I=A=>{u.userInput=A;let P=A===""?null:Number.parseFloat(A);Number.isNaN(P)&&(P=null),o(Tn,P),T(P,!1)},_=A=>{const P=A!==""?Number.parseFloat(A):"";(Be(P)&&!Number.isNaN(P)||a.formatter&&Number.isNaN(P)||P==="")&&T(P),j(),u.userInput=null},N=()=>{l.value?.focus?.()},$=()=>{l.value?.blur?.()},B=A=>{o("focus",A)},K=A=>{u.userInput=null,u.currentValue===null&&l.value?.input&&(l.value.input.value=a.formatter?.("")??""),o("blur",A),a.validateEvent&&c?.validate?.("blur").catch(ut)},j=()=>{u.currentValue!==a.modelValue&&(u.currentValue=a.modelValue)},W=A=>{document.activeElement===A.target&&A.preventDefault()};return pe(()=>a.modelValue,(A,P)=>{const V=O(A,!0);u.userInput===null&&V!==P&&(u.currentValue=V)},{immediate:!0}),pe(()=>a.precision,()=>{u.currentValue=O(a.modelValue)}),ht(()=>{const{min:A,max:P,modelValue:V}=a,F=l.value?.input;if(F.setAttribute("role","spinbutton"),Number.isFinite(P)?F.setAttribute("aria-valuemax",String(P)):F.removeAttribute("aria-valuemax"),Number.isFinite(A)?F.setAttribute("aria-valuemin",String(A)):F.removeAttribute("aria-valuemin"),F.setAttribute("aria-valuenow",u.currentValue||u.currentValue===0?String(u.currentValue):""),F.setAttribute("aria-disabled",String(v.value)),!Be(V)&&V!=null){let H=Number(V);Number.isNaN(H)&&(H=null),o(at,H)}F.addEventListener("wheel",W,{passive:!1})}),bo(()=>{l.value?.input?.setAttribute("aria-valuenow",`${u.currentValue??""}`)}),t({focus:N,blur:$}),(A,P)=>(E(),D("div",{class:R([i(s).b(),i(s).m(i(h)),i(s).is("disabled",i(v)),i(s).is("without-controls",!e.controls),i(s).is("controls-right",g.value),i(s).is(e.align,!!e.align)]),onDragstart:P[0]||(P[0]=Xe(()=>{},["prevent"]))},[e.controls?ct((E(),D("span",{key:0,role:"button","aria-label":i(r)("el.inputNumber.decrease"),class:R([i(s).e("decrease"),i(s).is("disabled",d.value)]),onKeydown:dn(x,["enter"])},[oe(A.$slots,"decrease-icon",{},()=>[X(i(De),null,{default:ne(()=>[g.value?(E(),le(i(qo),{key:0})):(E(),le(i(eA),{key:1}))]),_:1})])],42,NW)),[[i(sd),x]]):re("v-if",!0),e.controls?ct((E(),D("span",{key:1,role:"button","aria-label":i(r)("el.inputNumber.increase"),class:R([i(s).e("increase"),i(s).is("disabled",f.value)]),onKeydown:dn(k,["enter"])},[oe(A.$slots,"increase-icon",{},()=>[X(i(De),null,{default:ne(()=>[g.value?(E(),le(i(ff),{key:0})):(E(),le(i(xC),{key:1}))]),_:1})])],42,MW)),[[i(sd),k]]):re("v-if",!0),X(i(Un),{id:e.id,ref_key:"input",ref:l,type:e.formatter?"text":"number",step:e.step,"model-value":m.value,placeholder:e.placeholder,readonly:e.readonly,disabled:i(v),size:i(h),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,formatter:e.formatter,parser:e.parser,tabindex:e.tabindex,onKeydown:S,onBlur:K,onFocus:B,onInput:I,onChange:_},ma({_:2},[A.$slots.prefix?{name:"prefix",fn:ne(()=>[oe(A.$slots,"prefix")]),key:"0"}:void 0,A.$slots.suffix?{name:"suffix",fn:ne(()=>[oe(A.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","type","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode","formatter","parser","tabindex"])],34))}}),AW=PW;const GE=st(AW),LW=Ee({modelValue:{type:G(Array)},max:Number,tagType:{...gr.type,default:"info"},tagEffect:gr.effect,effect:{type:G(String),default:"light"},trigger:{type:G(String),default:Se.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:Nn,clearable:Boolean,clearIcon:{type:Ut,default:Yo},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:G(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),DW={[at]:e=>we(e)||Rt(e),[yt]:e=>we(e)||Rt(e),[Tn]:e=>Ae(e),"add-tag":e=>Ae(e)||we(e),"remove-tag":(e,t)=>Ae(e)&&Be(t),"drag-tag":(e,t,n)=>Be(e)&&Be(t)&&Ae(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function BW({wrapperRef:e,handleDragged:t,afterDragged:n}){const a=ge("input-tag"),o=Tt(),r=M(!1);let s,l,u,c;function d(h){return`.${a.e("inner")} .${a.namespace.value}-tag:nth-child(${h+1})`}function f(h,v){s=v,l=e.value.querySelector(d(v)),l&&(l.style.opacity="0.5"),h.dataTransfer.effectAllowed="move"}function p(h,v){if(u=v,h.preventDefault(),h.dataTransfer.dropEffect="move",Rt(s)||s===v){r.value=!1;return}const m=e.value.querySelector(d(v)).getBoundingClientRect(),b=s+1!==v,w=s-1!==v,y=h.clientX-m.left,S=b?w?.5:1:-1,k=w?b?.5:0:1;y<=m.width*S?c="before":y>m.width*k?c="after":c=void 0;const x=e.value.querySelector(`.${a.e("inner")}`),O=x.getBoundingClientRect(),T=Number.parseFloat(or(x,"gap"))/2,I=m.top-O.top;let _=-9999;if(c==="before")_=Math.max(m.left-O.left-T,Math.floor(-T/2));else if(c==="after"){const N=m.right-O.left;_=N+(O.width===N?Math.floor(T/2):T)}BS(o.value,{top:`${I}px`,left:`${_}px`}),r.value=!!c}function g(h){h.preventDefault(),l&&(l.style.opacity=""),c&&!Rt(s)&&!Rt(u)&&s!==u&&t(s,u,c),r.value=!1,s=void 0,l=null,u=void 0,c=void 0,n?.()}return{dropIndicatorRef:o,showDropIndicator:r,handleDragStart:f,handleDragOver:p,handleDragEnd:g}}function VW(){const e=M(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function FW({props:e,emit:t,formItem:n}){const a=un(),o=In(),r=Tt(),s=M(),l=M(),u=C(()=>["small"].includes(o.value)?"small":"default"),c=C(()=>e.modelValue?.length?void 0:e.placeholder),d=C(()=>!(e.readonly||a.value)),f=C(()=>Rt(e.max)?!1:(e.modelValue?.length??0)>=e.max),p=C(()=>e.collapseTags?e.modelValue?.slice(0,e.maxCollapseTags):e.modelValue),g=C(()=>e.collapseTags?e.modelValue?.slice(e.maxCollapseTags):[]),h=W=>{const A=[...e.modelValue??[],...Dn(W)];t(at,A),t(yt,A),t("add-tag",W),s.value=void 0},v=W=>{const A=W.split(e.delimiter),P=A.length>1?A.map(V=>V.trim()).filter(Boolean):[];if(e.max){const V=e.max-(e.modelValue?.length??0);P.splice(V)}return P.length===1?P[0]:P},m=W=>{const A=W.clipboardData?.getData("text");if(e.readonly||f.value||!e.delimiter||!A)return;const{selectionStart:P=0,selectionEnd:V=0,value:F}=W.target,H=F.slice(0,P)+A+F.slice(V),U=v(H);U.length&&(h(U),t(Tn,H),W.preventDefault())},b=W=>{if(f.value){s.value=void 0;return}if(!$.value){if(e.delimiter&&s.value){const A=v(s.value);A.length&&h(A)}t(Tn,W.target.value)}},w=W=>{if(!$.value)switch(qt(W)){case e.trigger:W.preventDefault(),W.stopPropagation(),S();break;case Se.numpadEnter:e.trigger===Se.enter&&(W.preventDefault(),W.stopPropagation(),S());break;case Se.backspace:!s.value&&e.modelValue?.length&&(W.preventDefault(),W.stopPropagation(),k(e.modelValue.length-1));break}},y=W=>{if(!($.value||!LS()))switch(qt(W)){case Se.space:e.trigger===Se.space&&(W.preventDefault(),W.stopPropagation(),S());break}},S=()=>{const W=s.value?.trim();!W||f.value||h(W)},k=W=>{const A=(e.modelValue??[]).slice(),[P]=A.splice(W,1);t(at,A),t(yt,A),t("remove-tag",P,W)},x=()=>{s.value=void 0,t(at,void 0),t(yt,void 0),t("clear")},O=(W,A,P)=>{const V=(e.modelValue??[]).slice(),[F]=V.splice(W,1),H=A>W&&P==="before"?-1:A{r.value?.focus()},I=()=>{r.value?.blur()},{wrapperRef:_,isFocused:N}=Er(r,{disabled:a,beforeBlur(W){return l.value?.isFocusInsideContent(W)},afterBlur(){e.saveOnBlur?S():s.value=void 0,e.validateEvent&&n?.validate?.("blur").catch(ut)}}),{isComposing:$,handleCompositionStart:B,handleCompositionUpdate:K,handleCompositionEnd:j}=Pu({afterComposition:b});return pe(()=>e.modelValue,()=>{e.validateEvent&&n?.validate?.(yt).catch(ut)}),{inputRef:r,wrapperRef:_,tagTooltipRef:l,isFocused:N,isComposing:$,inputValue:s,size:o,tagSize:u,placeholder:c,closable:d,disabled:a,inputLimit:f,showTagList:p,collapseTagList:g,handleDragged:O,handlePaste:m,handleInput:b,handleKeydown:w,handleKeyup:y,handleAddTag:S,handleRemoveTag:k,handleClear:x,handleCompositionStart:B,handleCompositionUpdate:K,handleCompositionEnd:j,focus:T,blur:I}}function zW({props:e,isFocused:t,hovering:n,disabled:a,inputValue:o,size:r,validateState:s,validateIcon:l,needStatusIcon:u}){const c=wr(),d=wn(),f=ge("input-tag"),p=ge("input"),g=M(),h=M(),v=C(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",a.value),f.m(r.value),f.e("wrapper"),c.class]),m=C(()=>[c.style]),b=C(()=>[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!e.modelValue?.length&&!d.prefix),f.is("right-space",!e.modelValue?.length&&!y.value)]),w=C(()=>e.clearable&&!a.value&&!e.readonly&&(e.modelValue?.length||o.value)&&(t.value||n.value)),y=C(()=>d.suffix||w.value||s.value&&l.value&&u.value),S=Dt({innerWidth:0,collapseItemWidth:0}),k=()=>{if(!h.value)return 0;const I=window.getComputedStyle(h.value);return Number.parseFloat(I.gap||"6px")},x=()=>{S.innerWidth=Number.parseFloat(window.getComputedStyle(h.value).width)},O=()=>{S.collapseItemWidth=g.value.getBoundingClientRect().width},T=C(()=>{if(!e.collapseTags)return{};const I=k(),_=I+11,N=g.value&&e.maxCollapseTags===1?S.innerWidth-S.collapseItemWidth-I-_:S.innerWidth-_;return{maxWidth:`${Math.max(N,0)}px`}});return an(h,x),an(g,O),{ns:f,nsInput:p,containerKls:v,containerStyle:m,innerKls:b,showClear:w,showSuffix:y,tagStyle:T,collapseItemRef:g,innerRef:h}}const HW=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],KW=["textContent"];var WW=se({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:LW,emits:DW,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ef(),s=wn(),{form:l,formItem:u}=Fn(),{inputId:c}=_a(a,{formItemContext:u}),d=C(()=>l?.statusIcon??!1),f=C(()=>u?.validateState||""),p=C(()=>f.value&&hf[f.value]),{inputRef:g,wrapperRef:h,tagTooltipRef:v,isFocused:m,inputValue:b,size:w,tagSize:y,placeholder:S,closable:k,disabled:x,showTagList:O,collapseTagList:T,handleDragged:I,handlePaste:_,handleInput:N,handleKeydown:$,handleKeyup:B,handleRemoveTag:K,handleClear:j,handleCompositionStart:W,handleCompositionUpdate:A,handleCompositionEnd:P,focus:V,blur:F}=FW({props:a,emit:o,formItem:u}),{hovering:H,handleMouseEnter:U,handleMouseLeave:J}=VW(),{calculatorRef:ee,inputStyle:ae}=im(),{dropIndicatorRef:ce,showDropIndicator:Z,handleDragStart:de,handleDragOver:ue,handleDragEnd:Y}=BW({wrapperRef:h,handleDragged:I,afterDragged:V}),{ns:Q,nsInput:L,containerKls:q,containerStyle:te,innerKls:fe,showClear:he,showSuffix:ve,tagStyle:Ie,collapseItemRef:Le,innerRef:_e}=zW({props:a,hovering:H,isFocused:m,inputValue:b,disabled:x,size:w,validateState:f,validateIcon:p,needStatusIcon:d});return t({focus:V,blur:F}),(ye,Te)=>(E(),D("div",{ref_key:"wrapperRef",ref:h,class:R(i(q)),style:ze(i(te)),onMouseenter:Te[9]||(Te[9]=(...be)=>i(U)&&i(U)(...be)),onMouseleave:Te[10]||(Te[10]=(...be)=>i(J)&&i(J)(...be))},[i(s).prefix?(E(),D("div",{key:0,class:R(i(Q).e("prefix"))},[oe(ye.$slots,"prefix")],2)):re("v-if",!0),z("div",{ref_key:"innerRef",ref:_e,class:R(i(fe))},[(E(!0),D(Ve,null,kt(i(O),(be,Pe)=>(E(),le(i(cr),{key:Pe,size:i(y),closable:i(k),type:e.tagType,effect:e.tagEffect,draggable:i(k)&&e.draggable,style:ze(i(Ie)),"disable-transitions":"",onClose:He=>i(K)(Pe),onDragstart:He=>i(de)(He,Pe),onDragover:He=>i(ue)(He,Pe),onDragend:i(Y),onDrop:Te[0]||(Te[0]=Xe(()=>{},["stop"]))},{default:ne(()=>[oe(ye.$slots,"tag",{value:be,index:Pe},()=>[wt(Ce(be),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(E(),le(i(Wn),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:ne(()=>[z("div",{ref_key:"collapseItemRef",ref:Le,class:R(i(Q).e("collapse-tag"))},[X(i(cr),{closable:!1,size:i(y),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ne(()=>[wt(" + "+Ce(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:ne(()=>[z("div",{class:R(i(Q).e("input-tag-list"))},[(E(!0),D(Ve,null,kt(i(T),(be,Pe)=>(E(),le(i(cr),{key:Pe,size:i(y),closable:i(k),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:He=>i(K)(Pe+e.maxCollapseTags)},{default:ne(()=>[oe(ye.$slots,"tag",{value:be,index:Pe+e.maxCollapseTags},()=>[wt(Ce(be),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):re("v-if",!0),z("div",{class:R(i(Q).e("input-wrapper"))},[ct(z("input",pt({id:i(c),ref_key:"inputRef",ref:g,"onUpdate:modelValue":Te[1]||(Te[1]=be=>Gt(b)?b.value=be:null)},i(r),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:i(x),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:i(S),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:i(Q).e("input"),style:i(ae),onCompositionstart:Te[2]||(Te[2]=(...be)=>i(W)&&i(W)(...be)),onCompositionupdate:Te[3]||(Te[3]=(...be)=>i(A)&&i(A)(...be)),onCompositionend:Te[4]||(Te[4]=(...be)=>i(P)&&i(P)(...be)),onPaste:Te[5]||(Te[5]=(...be)=>i(_)&&i(_)(...be)),onInput:Te[6]||(Te[6]=(...be)=>i(N)&&i(N)(...be)),onKeydown:Te[7]||(Te[7]=(...be)=>i($)&&i($)(...be)),onKeyup:Te[8]||(Te[8]=(...be)=>i(B)&&i(B)(...be))}),null,16,HW),[[R2,i(b)]]),z("span",{ref_key:"calculatorRef",ref:ee,"aria-hidden":"true",class:R(i(Q).e("input-calculator")),textContent:Ce(i(b))},null,10,KW)],2),ct(z("div",{ref_key:"dropIndicatorRef",ref:ce,class:R(i(Q).e("drop-indicator"))},null,2),[[$t,i(Z)]])],2),i(ve)?(E(),D("div",{key:1,class:R(i(Q).e("suffix"))},[oe(ye.$slots,"suffix"),i(he)?(E(),le(i(De),{key:0,class:R([i(Q).e("icon"),i(Q).e("clear")]),onMousedown:Xe(i(ut),["prevent"]),onClick:i(j)},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):re("v-if",!0),f.value&&p.value&&d.value?(E(),le(i(De),{key:1,class:R([i(L).e("icon"),i(L).e("validateIcon"),i(L).is("loading",f.value==="validating")])},{default:ne(()=>[(E(),le(it(p.value)))]),_:1},8,["class"])):re("v-if",!0)],2)):re("v-if",!0)],38))}}),jW=WW;const UW=st(jW),qW={[at]:e=>Ae(e),[yt]:e=>Ae(e),finish:e=>Ae(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},YW=["id","aria-label","aria-labelledby"],GW=["value","type","disabled","readonly","inputmode","aria-label","onClick","onKeydown","onInput"];var XW=se({name:"ElInputOtp",__name:"input-otp",props:{modelValue:{type:[String,Number],required:!1},length:{type:Number,required:!1,default:6},validator:{type:Function,required:!1,default:()=>!0},inputmode:{type:null,required:!1},type:{type:String,required:!1,default:"outlined"},size:{type:null,required:!1,default:"default"},mask:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1,default:void 0},readonly:{type:Boolean,required:!1},id:{type:String,required:!1},validateEvent:{type:Boolean,required:!1,default:!0},separator:{type:[String,Object,Function],required:!1},ariaLabel:{type:String,required:!1}},emits:qW,setup(e,{expose:t,emit:n}){const a=e,o=n,r=C(()=>{const _=String(a.modelValue??"");return Array.from({length:a.length},(N,$)=>_.charAt($))}),s=C(()=>{const{separator:_}=a,N=Fe(_)?_:()=>_;return Array.from({length:a.length-1},($,B)=>N(B))}),l=M(r.value),u=M(!1),c=M([]),d=ge("input-otp"),{t:f}=xt(),{formItem:p}=Fn(),{inputId:g,isLabeledByFormItem:h}=_a(a,{formItemContext:p}),v=un();let m=a.modelValue;const b=_=>{const N=l.value.findIndex(($,B)=>!$&&B<=_);return N===-1?_:N},w=_=>{c.value?.includes(_.relatedTarget)||(u.value=!0,o("focus",_))},y=_=>{c.value?.includes(_.relatedTarget)||(u.value=!1,o("blur",_),a.validateEvent&&p?.validate?.("blur").catch(ut))},S=(_=!0)=>{const N=l.value.join("").slice(0,a.length);N!==a.modelValue&&(o(at,N),_&&N.length===a.length&&o("finish",N))},k=(_,N)=>{const $=qt(_);let B=!0;switch($){case Se.backspace:if(a.readonly)break;l.value[N]="",T(N-1),S();break;case Se.delete:if(a.readonly)break;l.value[N]="",T(N),S();break;case Se.up:case Se.left:T(N-1);break;case Se.down:case Se.right:T(N+1);break;default:B=!1}B&&_.preventDefault()},x=(_,N)=>{const $=_.target,B=b(N);let K=B+1,j=$.value;if(j.length>1){const W=O(j,B);$.value=l.value[N]??"",W.forEach((A,P)=>l.value[B+P]=A),T(B+W.length),S();return}a.validator(j,B)||($.value=l.value[N]??"",j=$.value,K=B),l.value[B]=j,B!==N&&($.value=l.value[N]??""),T(K),S()},O=(_,N=0)=>{const $=`${_??""}`.split(""),B=[];for(const K of $){if(B.length+N>=a.length)break;a.validator(K,B.length+N)&&B.push(K)}return B},T=(_=0)=>{const N=tf(_,0,a.length-1),$=c.value?.[N];document.activeElement!==$&&$?.focus(),Oa(()=>{!a.readonly&&document.activeElement===$&&$?.select()})},I=()=>{c.value?.find(_=>document.activeElement===_)?.blur()};return pe(()=>a.modelValue,()=>{l.value=r.value,a.validateEvent&&p?.validate?.("change").catch(ut)}),pe(()=>a.length,()=>{l.value=r.value,S(!1)}),pe(u,_=>{if(_){m=a.modelValue;return}m!==a.modelValue&&o(yt,a.modelValue)}),t({inputRefs:c,focus:T,blur:I}),(_,N)=>(E(),D("div",{id:i(g),class:R([i(d).b(),i(d).m(e.size),i(d).m(e.type),i(d).is("disabled",i(v))]),role:"group","aria-label":i(h)?void 0:e.ariaLabel||i(f)("el.inputOTP.groupLabel"),"aria-labelledby":i(h)?i(p)?.labelId:void 0},[(E(!0),D(Ve,null,kt(e.length,($,B)=>(E(),D(Ve,{key:B},[z("label",{class:R(i(d).e("input-field"))},[z("input",{ref_for:!0,ref_key:"inputRefs",ref:c,value:l.value[B],class:R(i(d).e("input")),type:e.mask?"password":"text",disabled:i(v),readonly:e.readonly,inputmode:e.inputmode,autocomplete:"one-time-code","aria-label":i(f)("el.inputOTP.defaultLabel",{index:B+1}),onFocus:w,onBlur:y,onClick:K=>T(B),onKeydown:K=>k(K,B),onInput:K=>x(K,B)},null,42,GW)],2),(_.$slots.separator||s.value[B])&&B[(E(),le(it(()=>s.value[B])))]):re("v-if",!0)],64))),128))],10,YW))}}),JW=XW;const ZW=st(JW),QW=Ee({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ut}}),ej={click:e=>e instanceof MouseEvent},tj=["href","target"];var nj=se({name:"ElLink",__name:"link",props:QW,emits:ej,setup(e,{emit:t}){const n=e,a=t,o=xr("link");Po({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},C(()=>Wt(n.underline)));const r=ge("link"),s=C(()=>[r.b(),r.m(n.type??o.value?.type??"default"),r.is("disabled",n.disabled),r.is("underline",l.value==="always"),r.is("hover-underline",l.value==="hover"&&!n.disabled)]),l=C(()=>Wt(n.underline)?n.underline?"hover":"never":n.underline??o.value?.underline??"hover");function u(c){n.disabled||a("click",c)}return(c,d)=>(E(),D("a",{class:R(s.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:u},[e.icon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1})):re("v-if",!0),c.$slots.default?(E(),D("span",{key:1,class:R(i(r).e("inner"))},[oe(c.$slots,"default")],2)):re("v-if",!0),c.$slots.icon?oe(c.$slots,"icon",{key:2}):re("v-if",!0)],10,tj))}}),aj=nj;const oj=st(aj),rg="rootMenu",Sd="subMenu:";function XE(e,t){const n=C(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:C(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function rj(e){return C(()=>{const t=e.backgroundColor;return t?new gn(t).shade(20).toString():""})}const JE=(e,t)=>{const n=ge("menu");return C(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":rj(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},sj=Ee({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:G([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ut},expandOpenIcon:{type:Ut},collapseCloseIcon:{type:Ut},collapseOpenIcon:{type:Ut}}),Sp="ElSubMenu";var sg=se({name:Sp,props:sj,setup(e,{slots:t,expose:n}){const a=dt(),{indexPath:o,parentMenu:r}=XE(a,C(()=>e.index)),s=ge("menu"),l=ge("sub-menu"),u=$e(rg);u||sn(Sp,"can not inject root menu");const c=$e(`${Sd}${r.value.uid}`);c||sn(Sp,"can not inject sub menu");const d=M({}),f=M({});let p;const g=M(!1),h=M(),v=M(),m=C(()=>c.level===0),b=C(()=>T.value==="horizontal"&&m.value?"bottom-start":"right-start"),w=C(()=>T.value==="horizontal"&&m.value||T.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?x.value?e.expandOpenIcon:e.expandCloseIcon:qo:e.collapseCloseIcon&&e.collapseOpenIcon?x.value?e.collapseOpenIcon:e.collapseCloseIcon:sa),y=C(()=>{const U=e.teleported;return Rt(U)?m.value:U}),S=C(()=>u.props.collapse?`${s.namespace.value}-zoom-in-left`:`${s.namespace.value}-zoom-in-top`),k=C(()=>T.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),x=C(()=>u.openedMenus.includes(e.index)),O=C(()=>[...Object.values(d.value),...Object.values(f.value)].some(({active:U})=>U)),T=C(()=>u.props.mode),I=C(()=>u.props.persistent),_=Dt({index:e.index,indexPath:o,active:O}),N=JE(u.props,c.level+1),$=C(()=>e.popperOffset??u.props.popperOffset),B=C(()=>e.popperClass??u.props.popperClass),K=C(()=>e.popperStyle??u.props.popperStyle),j=C(()=>e.showTimeout??u.props.showTimeout),W=C(()=>e.hideTimeout??u.props.hideTimeout),A=()=>v.value?.popperRef?.popperInstanceRef?.destroy(),P=U=>{U||A()},V=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:o.value,active:O.value})},F=(U,J=j.value)=>{if(U.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,p?.(),{stop:p}=kl(()=>{u.openMenu(e.index,o.value)},J),y.value&&r.value.vnode.el?.dispatchEvent(new MouseEvent("mouseenter")),U.type==="mouseenter"&&U.target&&Ne(()=>{Ou(U.target,{preventScroll:!0})})}},H=(U=!1)=>{if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}p?.(),c.mouseInChild.value=!1,{stop:p}=kl(()=>!g.value&&u.closeMenu(e.index,o.value),W.value),y.value&&U&&c.handleMouseleave?.(!0)};pe(()=>u.props.collapse,U=>P(!!U));{const U=ee=>{f.value[ee.index]=ee},J=ee=>{delete f.value[ee.index]};St(`${Sd}${a.uid}`,{addSubMenu:U,removeSubMenu:J,handleMouseleave:H,mouseInChild:g,level:c.level+1})}return n({opened:x}),ht(()=>{u.addSubMenu(_),c.addSubMenu(_)}),Vt(()=>{c.removeSubMenu(_),u.removeSubMenu(_)}),()=>{const U=[t.title?.(),qe(De,{class:l.e("icon-arrow"),style:{transform:x.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ae(w.value)?qe(a.appContext.components[w.value]):qe(w.value)})],J=u.isMenuPopup?qe(Wn,{ref:v,visible:x.value,effect:"light",pure:!0,offset:$.value,showArrow:!1,persistent:I.value,popperClass:B.value,popperStyle:K.value,placement:b.value,teleported:y.value,fallbackPlacements:k.value,transition:S.value,gpuAcceleration:!1},{content:()=>qe("div",{class:[s.m(T.value),s.m("popup-container"),B.value],onMouseenter:ee=>F(ee,100),onMouseleave:()=>H(!0),onFocus:ee=>F(ee,100)},[qe("ul",{class:[s.b(),s.m("popup"),s.m(`popup-${b.value}`)],style:N.value},[t.default?.()])]),default:()=>qe("div",{class:l.e("title"),onClick:V},U)}):qe(Ve,{},[qe("div",{class:l.e("title"),ref:h,onClick:V},U),qe(yf,{},{default:()=>ct(qe("ul",{role:"menu",class:[s.b(),s.m("inline")],style:N.value},[t.default?.()]),[[$t,x.value]])})]);return qe("li",{class:[l.b(),l.is("active",O.value),l.is("opened",x.value),l.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:x.value,onMouseenter:F,onMouseleave:()=>H(),onFocus:F},[J])}}}),lj=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;this.subMenuItems.forEach(t=>{t.addEventListener("keydown",n=>{const a=qt(n);let o=!1;switch(a){case Se.down:this.gotoSubIndex(this.subIndex+1),o=!0;break;case Se.up:this.gotoSubIndex(this.subIndex-1),o=!0;break;case Se.tab:Ec(e,"mouseleave");break;case Se.enter:case Se.numpadEnter:case Se.space:o=!0,n.currentTarget.click();break}return o&&(n.preventDefault(),n.stopPropagation()),!1})})}},ij=class{constructor(e,t){this.domNode=e,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new lj(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const t=qt(e);let n=!1;switch(t){case Se.down:Ec(e.currentTarget,"mouseenter"),this.submenu?.gotoSubIndex(0),n=!0;break;case Se.up:Ec(e.currentTarget,"mouseenter"),this.submenu?.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break;case Se.tab:Ec(e.currentTarget,"mouseleave");break;case Se.enter:case Se.numpadEnter:case Se.space:n=!0,e.currentTarget.click();break}n&&e.preventDefault()})}},uj=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach(n=>{n.nodeType===1&&new ij(n,e)})}},cj=se({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=ge("menu"),n={onBeforeEnter:a=>a.style.opacity="0.2",onEnter(a,o){Ua(a,`${t.namespace.value}-opacity-transition`),a.style.opacity="1",o()},onAfterEnter(a){ra(a,`${t.namespace.value}-opacity-transition`),a.style.opacity=""},onBeforeLeave(a){a.dataset||(a.dataset={}),Ao(a,t.m("collapse"))?(ra(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),Ua(a,t.m("collapse"))):(Ua(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),ra(a,t.m("collapse"))),a.style.width=`${a.scrollWidth}px`,a.style.overflow="hidden"},onLeave(a){Ua(a,"horizontal-collapse-transition"),a.style.width=`${a.dataset.scrollWidth}px`}};return(a,o)=>(E(),le(Yn,pt({mode:"out-in"},n),{default:ne(()=>[oe(a.$slots,"default")]),_:3},16))}}),dj=cj;const fj=Ee({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:G(Array),default:()=>pn([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ut,default:()=>oA},popperEffect:{type:G(String),default:"dark"},popperClass:String,popperStyle:{type:G([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Cp=e=>we(e)&&e.every(t=>Ae(t)),pj={close:(e,t)=>Ae(e)&&Cp(t),open:(e,t)=>Ae(e)&&Cp(t),select:(e,t,n,a)=>Ae(e)&&Cp(t)&&ot(n)&&(Rt(a)||a instanceof Promise)},Yy=64;var hj=se({name:"ElMenu",props:fj,emits:pj,setup(e,{emit:t,slots:n,expose:a}){const o=dt(),r=o.appContext.config.globalProperties.$router,s=M(),l=M(),u=ge("menu"),c=ge("sub-menu");let d=Yy;const f=M(-1),p=M(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),g=M(e.defaultActive),h=M({}),v=M({}),m=C(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),b=()=>{const A=g.value&&h.value[g.value];!A||e.mode==="horizontal"||e.collapse||A.indexPath.forEach(P=>{const V=v.value[P];V&&w(P,V.indexPath)})},w=(A,P)=>{p.value.includes(A)||(e.uniqueOpened&&(p.value=p.value.filter(V=>P.includes(V))),p.value.push(A),t("open",A,P))},y=A=>{const P=p.value.indexOf(A);P!==-1&&p.value.splice(P,1)},S=(A,P)=>{y(A),t("close",A,P)},k=({index:A,indexPath:P})=>{p.value.includes(A)?S(A,P):w(A,P)},x=A=>{(e.mode==="horizontal"||e.collapse)&&(p.value=[]);const{index:P,indexPath:V}=A;if(!(En(P)||En(V)))if(e.router&&r){const F=A.route||P,H=r.push(F).then(U=>(U||(g.value=P),U));t("select",P,V,{index:P,indexPath:V,route:F},H)}else g.value=P,t("select",P,V,{index:P,indexPath:V})},O=A=>{const P=h.value;g.value=(P[A]||g.value&&P[g.value]||P[e.defaultActive])?.index??A},T=A=>{const P=getComputedStyle(A),V=Number.parseInt(P.marginLeft,10),F=Number.parseInt(P.marginRight,10);return A.offsetWidth+V+F||0},I=()=>{if(!s.value)return-1;const A=Array.from(s.value.childNodes).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),P=getComputedStyle(s.value),V=Number.parseInt(P.paddingLeft,10),F=Number.parseInt(P.paddingRight,10),H=s.value.clientWidth-V-F;let U=0,J=0;return A.forEach((ee,ae)=>{U+=T(ee),U<=H-d&&(J=ae+1)}),J===A.length?-1:J},_=A=>v.value[A].indexPath,N=(A,P=33.34)=>{let V;return()=>{V&&clearTimeout(V),V=setTimeout(()=>{A()},P)}};let $=!0;const B=()=>{const A=Rn(l);if(A&&(d=T(A)||Yy),f.value===I())return;const P=()=>{f.value=-1,Ne(()=>{f.value=I()})};$?P():N(P)(),$=!1};pe(()=>e.defaultActive,A=>{h.value[A]||(g.value=""),O(A)}),pe(()=>e.collapse,A=>{A&&(p.value=[])}),pe(h.value,b);let K;la(()=>{e.mode==="horizontal"&&e.ellipsis?K=an(s,B).stop:K?.()});const j=M(!1);{const A=H=>{v.value[H.index]=H},P=H=>{delete v.value[H.index]};St(rg,Dt({props:e,openedMenus:p,items:h,subMenus:v,activeIndex:g,isMenuPopup:m,addMenuItem:H=>{h.value[H.index]=H},removeMenuItem:H=>{delete h.value[H.index]},addSubMenu:A,removeSubMenu:P,openMenu:w,closeMenu:S,handleMenuItemClick:x,handleSubMenuClick:k})),St(`${Sd}${o.uid}`,{addSubMenu:A,removeSubMenu:P,mouseInChild:j,level:0})}ht(()=>{e.mode==="horizontal"&&new uj(o.vnode.el,u.namespace.value)}),a({open:P=>{const{indexPath:V}=v.value[P];V.forEach(F=>w(F,V))},close:y,updateActiveIndex:O,handleResize:B});const W=JE(e,0);return()=>{let A=n.default?.()??[];const P=[];if(e.mode==="horizontal"&&s.value){const H=Aa(A).filter(ee=>ee?.shapeFlag!==8),U=f.value===-1?H:H.slice(0,f.value),J=f.value===-1?[]:H.slice(f.value);J?.length&&e.ellipsis&&(A=U,P.push(qe(sg,{ref:l,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>qe(De,{class:c.e("icon-more")},{default:()=>qe(e.ellipsisIcon)}),default:()=>J})))}const V=e.closeOnClickOutside?[[Qr,()=>{p.value.length&&(j.value||(p.value.forEach(H=>t("close",H,_(H))),p.value=[]))}]]:[],F=ct(qe("ul",{key:String(e.collapse),role:"menubar",ref:s,style:W.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m("collapse")]:e.collapse}},[...A,...P]),V);return e.collapseTransition&&e.mode==="vertical"?qe(dj,()=>F):F}}});const vj=Ee({index:{type:String,required:!0},route:{type:G([String,Object])},disabled:Boolean}),mj={click:e=>Ae(e.index)&&we(e.indexPath)},gj={title:String},kp="ElMenuItem";var bj=se({name:kp,__name:"menu-item",props:vj,emits:mj,setup(e,{expose:t,emit:n}){const a=e,o=n,r=dt(),s=$e(rg),l=ge("menu"),u=ge("menu-item");s||sn(kp,"can not inject root menu");const{parentMenu:c,indexPath:d}=XE(r,Ht(a,"index")),f=$e(`${Sd}${c.value.uid}`);f||sn(kp,"can not inject sub menu");const p=C(()=>a.index===s.activeIndex),g=Dt({index:a.index,indexPath:d,active:p}),h=()=>{a.disabled||(s.handleMenuItemClick({index:a.index,indexPath:d.value,route:a.route}),o("click",g))};return ht(()=>{f.addSubMenu(g),s.addMenuItem(g)}),Vt(()=>{f.removeSubMenu(g),s.removeMenuItem(g)}),t({parentMenu:c,rootMenu:s,active:p,nsMenu:l,nsMenuItem:u,handleClick:h}),(v,m)=>(E(),D("li",{class:R([i(u).b(),i(u).is("active",p.value),i(u).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:h},[i(c).type.name==="ElMenu"&&i(s).props.collapse&&v.$slots.title?(E(),le(i(Wn),{key:0,effect:i(s).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":i(s).props.popperClass,"popper-style":i(s).props.popperStyle,persistent:i(s).props.persistent,"focus-on-target":""},{content:ne(()=>[oe(v.$slots,"title")]),default:ne(()=>[z("div",{class:R(i(l).be("tooltip","trigger"))},[oe(v.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(E(),D(Ve,{key:1},[oe(v.$slots,"default"),oe(v.$slots,"title")],64))],2))}}),ZE=bj,yj=se({name:"ElMenuItemGroup",__name:"menu-item-group",props:gj,setup(e){const t=ge("menu-item-group");return(n,a)=>(E(),D("li",{class:R(i(t).b())},[z("div",{class:R(i(t).e("title"))},[n.$slots.title?oe(n.$slots,"title",{key:1}):(E(),D(Ve,{key:0},[wt(Ce(e.title),1)],64))],2),z("ul",null,[oe(n.$slots,"default")])],2))}}),QE=yj;const wj=st(hj,{MenuItem:ZE,MenuItemGroup:QE,SubMenu:sg}),Sj=ln(ZE),Cj=ln(QE),kj=ln(sg),Ej=Ee({icon:{type:Ut,default:()=>iP},title:String,content:{type:String,default:""}}),xj={back:()=>!0},Tj=["aria-label"];var Oj=se({name:"ElPageHeader",__name:"page-header",props:Ej,emits:xj,setup(e,{emit:t}){const n=t,{t:a}=xt(),o=ge("page-header");function r(){n("back")}return(s,l)=>(E(),D("div",{class:R([i(o).b(),i(o).is("contentful",!!s.$slots.default),{[i(o).m("has-breadcrumb")]:!!s.$slots.breadcrumb,[i(o).m("has-extra")]:!!s.$slots.extra}])},[s.$slots.breadcrumb?(E(),D("div",{key:0,class:R(i(o).e("breadcrumb"))},[oe(s.$slots,"breadcrumb")],2)):re("v-if",!0),z("div",{class:R(i(o).e("header"))},[z("div",{class:R(i(o).e("left"))},[z("div",{class:R(i(o).e("back")),role:"button",tabindex:"0",onClick:r},[e.icon||s.$slots.icon?(E(),D("div",{key:0,"aria-label":e.title||i(a)("el.pageHeader.title"),class:R(i(o).e("icon"))},[oe(s.$slots,"icon",{},()=>[e.icon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1})):re("v-if",!0)])],10,Tj)):re("v-if",!0),z("div",{class:R(i(o).e("title"))},[oe(s.$slots,"title",{},()=>[wt(Ce(e.title||i(a)("el.pageHeader.title")),1)])],2)],2),X(i(BE),{direction:"vertical"}),z("div",{class:R(i(o).e("content"))},[oe(s.$slots,"content",{},()=>[wt(Ce(e.content),1)])],2)],2),s.$slots.extra?(E(),D("div",{key:0,class:R(i(o).e("extra"))},[oe(s.$slots,"extra")],2)):re("v-if",!0)],2),s.$slots.default?(E(),D("div",{key:1,class:R(i(o).e("main"))},[oe(s.$slots,"default")],2)):re("v-if",!0)],2))}}),_j=Oj;const Rj=st(_j),ex=Symbol("elPaginationKey"),Ij=Ee({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Ut}}),$j={click:e=>e instanceof MouseEvent},Nj=["disabled","aria-label","aria-disabled"],Mj={key:0};var Pj=se({name:"ElPaginationPrev",__name:"prev",props:Ij,emits:$j,setup(e){const t=e,{t:n}=xt(),a=C(()=>t.disabled||t.currentPage<=1);return(o,r)=>(E(),D("button",{type:"button",class:"btn-prev",disabled:a.value,"aria-label":o.prevText||i(n)("el.pagination.prev"),"aria-disabled":a.value,onClick:r[0]||(r[0]=s=>o.$emit("click",s))},[o.prevText?(E(),D("span",Mj,Ce(o.prevText),1)):(E(),le(i(De),{key:1},{default:ne(()=>[(E(),le(it(o.prevIcon)))]),_:1}))],8,Nj))}}),Aj=Pj;const Lj=Ee({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Ut}}),Dj=["disabled","aria-label","aria-disabled"],Bj={key:0};var Vj=se({name:"ElPaginationNext",__name:"next",props:Lj,emits:["click"],setup(e){const t=e,{t:n}=xt(),a=C(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,r)=>(E(),D("button",{type:"button",class:"btn-next",disabled:a.value,"aria-label":o.nextText||i(n)("el.pagination.next"),"aria-disabled":a.value,onClick:r[0]||(r[0]=s=>o.$emit("click",s))},[o.nextText?(E(),D("span",Bj,Ce(o.nextText),1)):(E(),le(i(De),{key:1},{default:ne(()=>[(E(),le(it(o.nextIcon)))]),_:1}))],8,Dj))}}),Fj=Vj;const lg=()=>$e(ex,{}),zj=Ee({pageSize:{type:Number,required:!0},pageSizes:{type:G(Array),default:()=>pn([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:G([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:yo},appendSizeTo:String});var Hj=se({name:"ElPaginationSizes",__name:"sizes",props:zj,emits:["page-size-change"],setup(e,{emit:t}){const n=e,a=t,{t:o}=xt(),r=ge("pagination"),s=lg(),l=M(n.pageSize);pe(()=>n.pageSizes,(d,f)=>{fn(d,f)||we(d)&&a("page-size-change",d.includes(n.pageSize)?n.pageSize:n.pageSizes[0])}),pe(()=>n.pageSize,d=>{l.value=d});const u=C(()=>n.pageSizes);function c(d){d!==l.value&&(l.value=d,s.handleSizeChange?.(Number(d)))}return(d,f)=>(E(),D("span",{class:R(i(r).e("sizes"))},[X(i(es),{"model-value":l.value,disabled:d.disabled,"popper-class":d.popperClass,"popper-style":d.popperStyle,size:d.size,teleported:d.teleported,"validate-event":!1,"append-to":d.appendSizeTo,onChange:c},{default:ne(()=>[(E(!0),D(Ve,null,kt(u.value,p=>(E(),le(i(ud),{key:p,value:p,label:p+i(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}}),Kj=Hj;const Wj=Ee({size:{type:String,values:yo}}),jj=["disabled"];var Uj=se({name:"ElPaginationJumper",__name:"jumper",props:Wj,setup(e){const{t}=xt(),n=ge("pagination"),{pageCount:a,disabled:o,currentPage:r,changeEvent:s}=lg(),l=M(),u=C(()=>l.value??r?.value);function c(f){l.value=f?+f:""}function d(f){f=Math.trunc(+f),s?.(f),l.value=void 0}return(f,p)=>(E(),D("span",{class:R(i(n).e("jump")),disabled:i(o)},[z("span",{class:R([i(n).e("goto")])},Ce(i(t)("el.pagination.goto")),3),X(i(Un),{size:f.size,class:R([i(n).e("editor"),i(n).is("in-pagination")]),min:1,max:i(a),disabled:i(o),"model-value":u.value,"validate-event":!1,"aria-label":i(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),z("span",{class:R([i(n).e("classifier")])},Ce(i(t)("el.pagination.pageClassifier")),3)],10,jj))}}),qj=Uj;const Yj=Ee({total:{type:Number,default:1e3}}),Gj=["disabled"];var Xj=se({name:"ElPaginationTotal",__name:"total",props:Yj,setup(e){const{t}=xt(),n=ge("pagination"),{disabled:a}=lg();return(o,r)=>(E(),D("span",{class:R(i(n).e("total")),disabled:i(a)},Ce(i(t)("el.pagination.total",{total:o.total})),11,Gj))}}),Jj=Xj;const Zj=Ee({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Qj=["aria-current","aria-label","tabindex"],eU=["tabindex","aria-label"],tU=["aria-current","aria-label","tabindex"],nU=["tabindex","aria-label"],aU=["aria-current","aria-label","tabindex"];var oU=se({name:"ElPaginationPager",__name:"pager",props:Zj,emits:[yt],setup(e,{emit:t}){const n=e,a=t,o=ge("pager"),r=ge("icon"),{t:s}=xt(),l=M(!1),u=M(!1),c=M(!1),d=M(!1),f=M(!1),p=M(!1),g=C(()=>{const k=n.pagerCount,x=(k-1)/2,O=Number(n.currentPage),T=Number(n.pageCount);let I=!1,_=!1;T>k&&(O>k-x&&(I=!0),O["more","btn-quickprev",r.b(),o.is("disabled",n.disabled)]),v=C(()=>["more","btn-quicknext",r.b(),o.is("disabled",n.disabled)]),m=C(()=>n.disabled?-1:0);pe(()=>[n.pageCount,n.pagerCount,n.currentPage],([k,x,O])=>{const T=(x-1)/2;let I=!1,_=!1;k>x&&(I=O>x-T,_=OT&&(O=T)),O!==I&&a(yt,O)}return(k,x)=>(E(),D("ul",{class:R(i(o).b()),onClick:S,onKeyup:dn(y,["enter"])},[k.pageCount>0?(E(),D("li",{key:0,class:R([[i(o).is("active",k.currentPage===1),i(o).is("disabled",k.disabled)],"number"]),"aria-current":k.currentPage===1,"aria-label":i(s)("el.pagination.currentPage",{pager:1}),tabindex:m.value}," 1 ",10,Qj)):re("v-if",!0),l.value?(E(),D("li",{key:1,class:R(h.value),tabindex:m.value,"aria-label":i(s)("el.pagination.prevPages",{pager:k.pagerCount-2}),onMouseenter:x[0]||(x[0]=O=>b(!0)),onMouseleave:x[1]||(x[1]=O=>c.value=!1),onFocus:x[2]||(x[2]=O=>w(!0)),onBlur:x[3]||(x[3]=O=>f.value=!1)},[(c.value||f.value)&&!k.disabled?(E(),le(i(Xr),{key:0})):(E(),le(i(L0),{key:1}))],42,eU)):re("v-if",!0),(E(!0),D(Ve,null,kt(g.value,O=>(E(),D("li",{key:O,class:R([[i(o).is("active",k.currentPage===O),i(o).is("disabled",k.disabled)],"number"]),"aria-current":k.currentPage===O,"aria-label":i(s)("el.pagination.currentPage",{pager:O}),tabindex:m.value},Ce(O),11,tU))),128)),u.value?(E(),D("li",{key:2,class:R(v.value),tabindex:m.value,"aria-label":i(s)("el.pagination.nextPages",{pager:k.pagerCount-2}),onMouseenter:x[4]||(x[4]=O=>b()),onMouseleave:x[5]||(x[5]=O=>d.value=!1),onFocus:x[6]||(x[6]=O=>w()),onBlur:x[7]||(x[7]=O=>p.value=!1)},[(d.value||p.value)&&!k.disabled?(E(),le(i(Jr),{key:0})):(E(),le(i(L0),{key:1}))],42,nU)):re("v-if",!0),k.pageCount>1?(E(),D("li",{key:3,class:R([[i(o).is("active",k.currentPage===k.pageCount),i(o).is("disabled",k.disabled)],"number"]),"aria-current":k.currentPage===k.pageCount,"aria-label":i(s)("el.pagination.currentPage",{pager:k.pageCount}),tabindex:m.value},Ce(k.pageCount),11,aU)):re("v-if",!0)],34))}}),rU=oU;const ua=e=>typeof e!="number",sU=Ee({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Be(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:G(Array),default:()=>pn([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:G([String,Object])},prevText:{type:String,default:""},prevIcon:{type:Ut,default:()=>mr},nextText:{type:String,default:""},nextIcon:{type:Ut,default:()=>sa},teleported:{type:Boolean,default:!0},small:Boolean,size:Nn,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),lU={"update:current-page":e=>Be(e),"update:page-size":e=>Be(e),"size-change":e=>Be(e),change:(e,t)=>Be(e)&&Be(t),"current-change":e=>Be(e),"prev-click":e=>Be(e),"next-click":e=>Be(e)},Gy="ElPagination";var iU=se({name:Gy,props:sU,emits:lU,setup(e,{emit:t,slots:n}){const{t:a}=xt(),o=ge("pagination"),r=dt().vnode.props||{},s=yC(),l=C(()=>e.small?"small":e.size??s.value);Po({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},C(()=>!!e.small));const u="onUpdate:currentPage"in r||"onUpdate:current-page"in r||"onCurrentChange"in r,c="onUpdate:pageSize"in r||"onUpdate:page-size"in r||"onSizeChange"in r,d=C(()=>{if(ua(e.total)&&ua(e.pageCount)||!ua(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes")){if(ua(e.pageCount)){if(!ua(e.total)&&!ua(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=M(ua(e.defaultPageSize)?10:e.defaultPageSize),p=M(ua(e.defaultCurrentPage)?1:e.defaultCurrentPage),g=C({get(){return ua(e.pageSize)?f.value:e.pageSize},set(k){ua(e.pageSize)&&(f.value=k),c&&(t("update:page-size",k),t("size-change",k))}}),h=C(()=>{let k=0;return ua(e.pageCount)?ua(e.total)||(k=Math.max(1,Math.ceil(e.total/g.value))):k=e.pageCount,k}),v=C({get(){return ua(e.currentPage)?p.value:e.currentPage},set(k){let x=k;k<1?x=1:k>h.value&&(x=h.value),ua(e.currentPage)&&(p.value=x),u&&(t("update:current-page",x),t("current-change",x))}});pe(h,k=>{v.value>k&&(v.value=k)}),pe([v,g],k=>{t(yt,...k)},{flush:"post"});function m(k){v.value=k}function b(k){g.value=k;const x=h.value;v.value>x&&(v.value=x)}function w(){e.disabled||(v.value-=1,t("prev-click",v.value))}function y(){e.disabled||(v.value+=1,t("next-click",v.value))}function S(k,x){k&&(k.props||(k.props={}),k.props.class=[k.props.class,x].join(" "))}return St(ex,{pageCount:h,disabled:C(()=>e.disabled),currentPage:v,changeEvent:m,handleSizeChange:b}),()=>{if(!d.value)return jt(Gy,a("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&h.value<=1)return null;const k=[],x=[],O=qe("div",{class:o.e("rightwrapper")},x),T={prev:qe(Aj,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:w}),jumper:qe(qj,{size:l.value}),pager:qe(rU,{currentPage:v.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:qe(Fj,{disabled:e.disabled,currentPage:v.value,pageCount:h.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:y}),sizes:qe(Kj,{pageSize:g.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:l.value,appendSizeTo:e.appendSizeTo}),slot:n?.default?.()??null,total:qe(Jj,{total:ua(e.total)?0:e.total})},I=e.layout.split(",").map(N=>N.trim());let _=!1;return I.forEach(N=>{if(N==="->"){_=!0;return}_?x.push(T[N]):k.push(T[N])}),S(k[0],o.is("first")),S(k[k.length-1],o.is("last")),_&&x.length>0&&(S(x[0],o.is("first")),S(x[x.length-1],o.is("last")),k.push(O)),qe("div",{class:[o.b(),o.is("background",e.background),o.m(l.value)]},k)}}});const uU=st(iU),cU=Ee({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:kh,default:"primary"},cancelButtonType:{type:String,values:kh,default:"text"},icon:{type:Ut,default:()=>hA},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...Kt.effect,default:"light"},teleported:Kt.teleported,persistent:Kt.persistent,width:{type:[String,Number],default:150},virtualTriggering:Bo.virtualTriggering,virtualRef:Bo.virtualRef}),dU={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent};var fU=se({name:"ElPopconfirm",__name:"popconfirm",props:cU,emits:dU,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:r}=xt(),s=ge("popconfirm"),l=M(),u=M(),c=C(()=>i(l)?.popperRef),d=()=>{u.value?.focus?.()},f=()=>{l.value?.onClose?.()},p=C(()=>({width:hn(a.width)})),g=b=>{o("confirm",b),f()},h=b=>{o("cancel",b),f()},v=C(()=>a.confirmButtonText||r("el.popconfirm.confirmButtonText")),m=C(()=>a.cancelButtonText||r("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:f}),(b,w)=>(E(),le(i(Wn),pt({ref_key:"tooltipRef",ref:l,trigger:"click",effect:e.effect},b.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${i(s).namespace.value}-popover`,"popper-style":p.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:d}),{content:ne(()=>[z("div",{ref_key:"rootRef",ref:u,tabindex:"-1",class:R(i(s).b())},[z("div",{class:R(i(s).e("main"))},[!e.hideIcon&&e.icon?(E(),le(i(De),{key:0,class:R(i(s).e("icon")),style:ze({color:e.iconColor})},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1},8,["class","style"])):re("v-if",!0),wt(" "+Ce(e.title),1)],2),z("div",{class:R(i(s).e("action"))},[oe(b.$slots,"actions",{confirm:g,cancel:h},()=>[X(i(Bn),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:h},{default:ne(()=>[wt(Ce(m.value),1)]),_:1},8,["type","text"]),X(i(Bn),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:g},{default:ne(()=>[wt(Ce(v.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:ne(()=>[b.$slots.reference?oe(b.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}}),pU=fU;const hU=st(pU),vU=Ee({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:G(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:G([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:G(Function),default:e=>`${e}%`}}),mU=["aria-valuenow"],gU={viewBox:"0 0 100 100"},bU=["d","stroke","stroke-linecap","stroke-width"],yU=["d","stroke","opacity","stroke-linecap","stroke-width"],wU={key:0};var SU=se({name:"ElProgress",__name:"progress",props:vU,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,a=ge("progress"),o=C(()=>{const y={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},S=w(n.percentage);return S.includes("gradient")?y.background=S:y.backgroundColor=S,y}),r=C(()=>(n.strokeWidth/n.width*100).toFixed(1)),s=C(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(r.value)/2}`,10):0),l=C(()=>{const y=s.value,S=n.type==="dashboard";return` - M 50 50 - m 0 ${S?"":"-"}${y} - a ${y} ${y} 0 1 1 0 ${S?"-":""}${y*2} - a ${y} ${y} 0 1 1 0 ${S?"":"-"}${y*2} - `}),u=C(()=>2*Math.PI*s.value),c=C(()=>n.type==="dashboard"?.75:1),d=C(()=>`${-1*u.value*(1-c.value)/2}px`),f=C(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),p=C(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=C(()=>{let y;return n.color?y=w(n.percentage):y=t[n.status]||t.default,y}),h=C(()=>n.status==="warning"?pf:n.type==="line"?n.status==="success"?_m:Yo:n.status==="success"?Il:Qa),v=C(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),m=C(()=>n.format(n.percentage));function b(y){const S=100/y.length;return y.map((k,x)=>Ae(k)?{color:k,percentage:(x+1)*S}:k).sort((k,x)=>k.percentage-x.percentage)}const w=y=>{const{color:S}=n;if(Fe(S))return S(y);if(Ae(S))return S;{const k=b(S);for(const x of k)if(x.percentage>y)return x.color;return k[k.length-1]?.color}};return(y,S)=>(E(),D("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(E(),D("div",{key:0,class:R(i(a).b("bar"))},[z("div",{class:R(i(a).be("bar","outer")),style:ze({height:`${e.strokeWidth}px`})},[z("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:ze(o.value)},[(e.showText||y.$slots.default)&&e.textInside?(E(),D("div",{key:0,class:R(i(a).be("bar","innerText"))},[oe(y.$slots,"default",{percentage:e.percentage},()=>[z("span",null,Ce(m.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(E(),D("div",{key:1,class:R(i(a).b("circle")),style:ze({height:`${e.width}px`,width:`${e.width}px`})},[(E(),D("svg",gU,[z("path",{class:R(i(a).be("circle","track")),d:l.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":r.value,fill:"none",style:ze(f.value)},null,14,bU),z("path",{class:R(i(a).be("circle","path")),d:l.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":r.value,style:ze(p.value)},null,14,yU)]))],6)),(e.showText||y.$slots.default)&&!e.textInside?(E(),D("div",{key:2,class:R(i(a).e("text")),style:ze({fontSize:`${v.value}px`})},[oe(y.$slots,"default",{percentage:e.percentage},()=>[e.status?(E(),le(i(De),{key:1},{default:ne(()=>[(E(),le(it(h.value)))]),_:1})):(E(),D("span",wU,Ce(m.value),1))])],6)):re("v-if",!0)],10,mU))}}),CU=SU;const tx=st(CU),kU=Ee({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:G([Array,Object]),default:()=>pn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:G([Array,Object]),default:()=>[ac,ac,ac]},voidIcon:{type:Ut,default:()=>$A},disabledVoidIcon:{type:Ut,default:()=>ac},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:G(Array),default:()=>pn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Nn,clearable:Boolean,...ia(["ariaLabel"])}),EU={[yt]:e=>Be(e),[at]:e=>Be(e)},xU=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],TU=["onMousemove","onClick"];var OU=se({name:"ElRate",__name:"rate",props:kU,emits:EU,setup(e,{expose:t,emit:n}){function a(P,V){const F=U=>ot(U),H=V[Object.keys(V).map(U=>+U).filter(U=>{const J=V[U];return F(J)&&J.excluded?PU-J)[0]];return F(H)&&H.value||H}const o=e,r=n,s=$e(Wo,void 0),l=In(),u=ge("rate"),{inputId:c,isLabeledByFormItem:d}=_a(o,{formItemContext:s}),f=M(Ma(o.modelValue,0,o.max)),p=M(-1),g=M(!0),h=M([]),v=C(()=>h.value.map(P=>P.$el.clientWidth)),m=C(()=>[u.b(),u.m(l.value)]),b=un(),w=C(()=>u.cssVarBlock({"void-color":o.voidColor,"disabled-void-color":o.disabledVoidColor,"fill-color":x.value})),y=C(()=>{let P="";return o.showScore?P=o.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${o.modelValue}`:`${f.value}`):o.showText&&(P=o.texts[Math.ceil(f.value)-1]),P}),S=C(()=>o.modelValue*100-Math.floor(o.modelValue)*100),k=C(()=>we(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),x=C(()=>{const P=a(f.value,k.value);return ot(P)?"":P}),O=C(()=>{let P="";return b.value?P=`${S.value}%`:o.allowHalf&&(P="50%"),{color:x.value,width:P}}),T=C(()=>{let P=we(o.icons)?[...o.icons]:{...o.icons};return P=Ya(P),we(P)?{[o.lowThreshold]:P[0],[o.highThreshold]:{value:P[1],excluded:!0},[o.max]:P[2]}:P}),I=C(()=>a(o.modelValue,T.value)),_=C(()=>b.value?Ae(o.disabledVoidIcon)?o.disabledVoidIcon:Ya(o.disabledVoidIcon):Ae(o.voidIcon)?o.voidIcon:Ya(o.voidIcon)),N=C(()=>a(f.value,T.value));function $(P){const V=b.value&&S.value>0&&P-1o.modelValue,F=o.allowHalf&&g.value&&P-.5<=f.value&&P>f.value;return V||F}function B(P){o.clearable&&P===o.modelValue&&(P=0),r(at,P),o.modelValue!==P&&r(yt,P)}function K(P){b.value||(o.allowHalf&&g.value?B(f.value):B(P))}function j(P){if(b.value)return;const V=qt(P),F=o.allowHalf?.5:1;let H=f.value;switch(V){case Se.up:case Se.right:H+=F;break;case Se.left:case Se.down:H-=F;break}if(H=Ma(H,0,o.max),H!==f.value)return P.stopPropagation(),P.preventDefault(),r(at,H),r(yt,H),H}function W(P,V){b.value||(o.allowHalf&&V?(g.value=V.offsetX*2<=v.value[P-1],f.value=g.value?P-.5:P):f.value=P,p.value=P)}function A(){b.value||(o.allowHalf&&(g.value=o.modelValue!==Math.floor(o.modelValue)),f.value=Ma(o.modelValue,0,o.max),p.value=-1)}return pe(()=>o.modelValue,P=>{f.value=Ma(P,0,o.max),g.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||r(at,0),t({setCurrentValue:W,resetCurrentValue:A}),(P,V)=>(E(),D("div",{id:i(c),class:R([m.value,i(u).is("disabled",i(b))]),role:"slider","aria-label":i(d)?void 0:e.ariaLabel||"rating","aria-labelledby":i(d)?i(s)?.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":y.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,style:ze(w.value),tabindex:i(b)?void 0:0,"aria-disabled":i(b),onKeydown:j},[(E(!0),D(Ve,null,kt(e.max,(F,H)=>(E(),D("span",{key:H,class:R(i(u).e("item")),onMousemove:U=>W(F,U),onMouseleave:A,onClick:U=>K(F)},[X(i(De),{ref_for:!0,ref_key:"iconRefs",ref:h,class:R([i(u).e("icon"),{hover:p.value===F},i(u).is("active",F<=f.value),i(u).is("focus-visible",F===Math.ceil(f.value||1))])},{default:ne(()=>[ct((E(),le(it(N.value),null,null,512)),[[$t,!$(F)&&F<=f.value]]),ct((E(),le(it(_.value),null,null,512)),[[$t,!$(F)&&F>f.value]]),ct((E(),le(it(_.value),{class:R([i(u).em("decimal","box")])},null,8,["class"])),[[$t,$(F)]]),ct(X(i(De),{style:ze(O.value),class:R([i(u).e("icon"),i(u).e("decimal")])},{default:ne(()=>[(E(),le(it(I.value)))]),_:1},8,["style","class"]),[[$t,$(F)]])]),_:2},1032,["class"])],42,TU))),128)),e.showText||e.showScore?(E(),D("span",{key:0,class:R(i(u).e("text")),style:ze({color:e.textColor})},Ce(y.value),7)):re("v-if",!0)],46,xU))}}),_U=OU;const RU=st(_U),fs={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Xy={[fs.primary]:tu,[fs.success]:yP,[fs.warning]:pf,[fs.error]:Rm,[fs.info]:tu},IU=Ee({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var $U=se({name:"ElResult",__name:"result",props:IU,setup(e){const t=e,n=ge("result"),a=C(()=>{const o=t.icon,r=o&&fs[o]?fs[o]:"icon-info";return{class:r,component:Xy[r]||Xy["icon-info"]}});return(o,r)=>(E(),D("div",{class:R(i(n).b())},[z("div",{class:R(i(n).e("icon"))},[oe(o.$slots,"icon",{},()=>[a.value.component?(E(),le(it(a.value.component),{key:0,class:R(a.value.class)},null,8,["class"])):re("v-if",!0)])],2),e.title||o.$slots.title?(E(),D("div",{key:0,class:R(i(n).e("title"))},[oe(o.$slots,"title",{},()=>[z("p",null,Ce(e.title),1)])],2)):re("v-if",!0),e.subTitle||o.$slots["sub-title"]?(E(),D("div",{key:1,class:R(i(n).e("subtitle"))},[oe(o.$slots,"sub-title",{},()=>[z("p",null,Ce(e.subTitle),1)])],2)):re("v-if",!0),o.$slots.extra?(E(),D("div",{key:2,class:R(i(n).e("extra"))},[oe(o.$slots,"extra")],2)):re("v-if",!0)],2))}}),NU=$U;const MU=st(NU),ig=Symbol("ElSelectV2Injection"),PU=Ee({allowCreate:Boolean,autocomplete:{type:G(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Ut,default:Yo},effect:{type:G(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:G(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:G(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:G([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:G(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:G(Array),required:!0},placeholder:{type:String},teleported:Kt.teleported,persistent:{type:Boolean,default:!0},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:{type:G(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:Nn,props:{type:G(Object),default:()=>id},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:G(String),values:jo,default:"bottom-start"},fallbackPlacements:{type:G(Array),default:["bottom-start","top-start","right","left"]},tagType:{...gr.type,default:"info"},tagEffect:{...gr.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Kt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Wt(e)||Be(e)}},suffixIcon:{type:Ut,default:qo},...zs,...ia(["ariaLabel"])}),AU=Ee({data:Array,disabled:Boolean,hovering:Boolean,item:{type:G(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),LU={[at]:e=>!0,[yt]:e=>!0,"end-reached":au["end-reached"],"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},DU={hover:e=>Be(e),select:(e,t)=>!0};var BU=se({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:ge("select")}}});function VU(e,t,n,a,o,r){return E(),D("div",{class:R(e.ns.be("group","title")),style:ze({...e.style,lineHeight:`${e.height}px`})},Ce(e.item.label),7)}var FU=Mn(BU,[["render",VU]]);function zU(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}var HU=se({props:AU,emits:DU,setup(e,{emit:t}){const n=$e(ig),a=ge("select"),{hoverItem:o,selectOptionClick:r}=zU(e,{emit:t}),{getLabel:s}=Bu(n.props),l=n.contentId;return{ns:a,contentId:l,hoverItem:o,handleMousedown:c=>{let d=c.target;const f=c.currentTarget;for(;d&&d!==f;){if(Is(d))return;d=d.parentElement}c.preventDefault()},selectOptionClick:r,getLabel:s}}});const KU=["id","aria-selected","aria-disabled"];function WU(e,t,n,a,o,r){return E(),D("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:ze(e.style),class:R([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onMousedown:t[1]||(t[1]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onClick:t[2]||(t[2]=Xe((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[oe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[z("span",null,Ce(e.getLabel(e.item)),1)])],46,KU)}var jU=Mn(HU,[["render",WU]]),UU=se({name:"ElSelectDropdown",props:{loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String},emits:{"end-reached":au["end-reached"]},setup(e,{slots:t,expose:n,emit:a}){const o=$e(ig),r=ge("select"),{getLabel:s,getValue:l,getDisabled:u}=Bu(o.props),c=M([]),d=M(),f=C(()=>e.data.length);pe(()=>f.value,()=>{o.tooltipRef.value?.updatePopper?.()});const p=C(()=>Rt(o.props.estimatedOptionHeight)),g=C(()=>p.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:$=>c.value[$]}),h=($=[],B)=>{const{props:{valueKey:K}}=o;return ot(B)?$&&$.some(j=>Jt(yn(j,K))===yn(B,K)):$.includes(B)},v=($,B)=>{if(ot(B)){const{valueKey:K}=o.props;return yn($,K)===yn(B,K)}else return $===B},m=($,B)=>o.props.multiple?h($,l(B)):v($,l(B)),b=($,B)=>{const{disabled:K,multiple:j,multipleLimit:W}=o.props;return K||!B&&(j?W>0&&$.length>=W:!1)},w=$=>e.hoveringIndex===$;n({listRef:d,isSized:p,isItemDisabled:b,isItemHovering:w,isItemSelected:m,scrollToItem:$=>{const B=d.value;B&&B.scrollToItem($)},resetScrollTop:()=>{const $=d.value;$&&$.resetScrollTop()}});const k=$=>{const{index:B,data:K,style:j}=$,W=i(p),{itemSize:A,estimatedSize:P}=i(g),{modelValue:V}=o.props,{onSelect:F,onHover:H}=o,U=K[B];if(U.type==="Group")return X(FU,{item:U,style:j,height:W?A:P},null);const J=m(V,U),ee=b(V,J),ae=w(B);return X(jU,pt($,{selected:J,disabled:u(U)||ee,created:!!U.created,hovering:ae,item:U,onSelect:F,onHover:H}),{default:ce=>t.default?.(ce)||X("span",null,[s(U)])})},{onKeyboardNavigate:x,onKeyboardSelect:O}=o,T=()=>{x("forward")},I=()=>{x("backward")},_=$=>{const B=qt($),{tab:K,esc:j,down:W,up:A,enter:P,numpadEnter:V}=Se;switch([j,W,A,P,V].includes(B)&&($.preventDefault(),$.stopPropagation()),B){case K:case j:break;case W:T();break;case A:I();break;case P:case V:O();break}},N=$=>{a("end-reached",$)};return()=>{const{data:$,width:B}=e,{height:K,multiple:j,scrollbarAlwaysOn:W}=o.props,A=W,P=i(p)?gf:fF;return X("div",{class:[r.b("dropdown"),r.is("multiple",j)],style:{width:`${B}px`}},[t.header?.(),t.loading?.()||t.empty?.()||X(P,pt({ref:d},i(g),{className:r.be("dropdown","list"),scrollbarAlwaysOn:A,data:$,height:K,width:B,total:$.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onEndReached:N,onKeydown:_}),{default:V=>X(k,V,null)}),t.footer?.()])}}});function qU(e,t){const{aliasProps:n,getLabel:a,getValue:o}=Bu(e),r=M(0),s=M(),l=C(()=>e.allowCreate&&e.filterable);pe(()=>e.options,g=>{const h=new Set(g.map(v=>a(v)));t.createdOptions=t.createdOptions.filter(v=>!h.has(a(v)))});function u(g){const h=v=>a(v)===g;return e.options&&e.options.some(h)||t.createdOptions.some(h)}function c(g){l.value&&(e.multiple&&g.created?r.value++:s.value=g)}function d(g){if(l.value)if(g&&g.length>0){if(u(g)){t.createdOptions=t.createdOptions.filter(v=>a(v)!==t.previousQuery);return}const h={[n.value.value]:g,[n.value.label]:g,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=r.value?t.createdOptions[r.value]=h:t.createdOptions.push(h)}else if(e.multiple)t.createdOptions.length=r.value;else{const h=s.value;t.createdOptions.length=0,h&&h.created&&t.createdOptions.push(h)}}function f(g){if(!l.value||!g||!g.created||g.created&&e.reserveKeyword&&t.inputValue===a(g))return;const h=t.createdOptions.findIndex(v=>o(v)===o(g));~h&&(t.createdOptions.splice(h,1),r.value--)}function p(){l.value&&(t.createdOptions.length=0,r.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:p}}const YU=(e,t)=>{const{t:n}=xt(),a=wn(),o=ge("select"),r=ge("input"),{form:s,formItem:l}=Fn(),{inputId:u}=_a(e,{formItemContext:l}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:p,getOptions:g}=Bu(e),{valueOnClear:h,isEmptyValue:v}=Au(e),m=Dt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=M(-1),w=M(!1),y=M(),S=M(),k=M(),x=M(),O=M(),T=M(),I=M(),_=M(),N=M(),$=M(),{isComposing:B,handleCompositionStart:K,handleCompositionEnd:j,handleCompositionUpdate:W}=Pu({afterComposition:Me=>tn(Me)}),A=un(),{wrapperRef:P,isFocused:V,handleBlur:F}=Er(O,{disabled:A,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,m.menuVisibleOnFocus=!0)},beforeBlur(Me){return k.value?.isFocusInsideContent(Me)||x.value?.isFocusInsideContent(Me)},afterBlur(){ee.value=!1,m.menuVisibleOnFocus=!1,e.validateEvent&&l?.validate?.("blur").catch(ut)}}),H=C(()=>Ie("")),U=C(()=>e.loading?!1:e.options.length>0||m.createdOptions.length>0),J=M([]),ee=M(!1),ae=C(()=>s?.statusIcon??!1),ce=C(()=>{const Me=J.value.length*e.itemHeight;return Me>e.height?e.height:Me}),Z=C(()=>e.multiple?we(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),de=C(()=>e.clearable&&!A.value&&Z.value&&(V.value||m.inputHovering)),ue=C(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Y=C(()=>ue.value&&o.is("reverse",ee.value)),Q=C(()=>l?.validateState||""),L=C(()=>{if(Q.value)return hf[Q.value]}),q=C(()=>e.remote?e.debounce:0),te=C(()=>e.remote&&!m.inputValue&&!U.value),fe=C(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&m.inputValue&&U.value&&J.value.length===0?e.noMatchText||n("el.select.noMatch"):U.value?null:e.noDataText||n("el.select.noData")),he=C(()=>e.filterable&&Fe(e.filterMethod)),ve=C(()=>e.filterable&&e.remote&&Fe(e.remoteMethod)),Ie=Me=>{const It=new RegExp(um(Me),"i"),_t=Ot=>he.value||ve.value?!0:Me?It.test(d(Ot)||""):!0;return e.loading?[]:[...m.createdOptions,...e.options].reduce((Ot,jn)=>{const Ra=g(jn);if(we(Ra)){const Yu=Ra.filter(_t);Yu.length>0&&Ot.push({label:d(jn),type:"Group"},...Yu)}else(e.remote||_t(jn))&&Ot.push(jn);return Ot},[])},Le=()=>{J.value=Ie(m.inputValue)},_e=C(()=>{const Me=new Map;return H.value.forEach((It,_t)=>{Me.set(Ge(f(It)),{option:It,index:_t})}),Me}),ye=C(()=>{const Me=new Map;return J.value.forEach((It,_t)=>{Me.set(Ge(f(It)),{option:It,index:_t})}),Me}),Te=C(()=>J.value.every(Me=>p(Me))),be=In(),Pe=C(()=>be.value==="small"?"small":"default"),He=()=>{if(Be(e.fitInputWidth)){b.value=e.fitInputWidth;return}const Me=y.value?.offsetWidth||200;!e.fitInputWidth&&U.value?Ne(()=>{b.value=Math.max(Me,Je())}):b.value=Me},Je=()=>{const Me=document.createElement("canvas").getContext("2d"),It=o.be("dropdown","item"),_t=(_.value?.listRef?.innerRef||document).querySelector(`.${It}`);if(_t===null||Me===null)return 0;const Ot=getComputedStyle(_t),jn=Number.parseFloat(Ot.paddingLeft)+Number.parseFloat(Ot.paddingRight);return Me.font=`bold ${Ot.font.replace(new RegExp(`\\b${Ot.fontWeight}\\b`),"")}`,J.value.reduce((Ra,Yu)=>{const J4=Me.measureText(d(Yu));return Math.max(J4.width,Ra)},0)+jn},Qe=()=>{if(!S.value)return 0;const Me=window.getComputedStyle(S.value);return Number.parseFloat(Me.gap||"6px")},lt=C(()=>{const Me=Qe(),It=e.filterable?Me+11:0;return{maxWidth:`${$.value&&e.maxCollapseTags===1?m.selectionWidth-m.collapseItemWidth-Me-It:m.selectionWidth-It}px`}}),Ze=C(()=>({maxWidth:`${m.selectionWidth}px`})),gt=C(()=>we(e.modelValue)?e.modelValue.length===0&&!m.inputValue:e.filterable?!m.inputValue:!0),Pt=C(()=>{const Me=e.placeholder??n("el.select.placeholder");return e.multiple||!Z.value?Me:m.selectedLabel}),zt=C(()=>k.value?.popperRef?.contentRef),nt=C(()=>{if(e.multiple){const Me=e.modelValue.length;if(Me>0&&ye.value.has(e.modelValue[Me-1])){const{index:It}=ye.value.get(e.modelValue[Me-1]);return It}}else if(!v(e.modelValue)&&ye.value.has(e.modelValue)){const{index:Me}=ye.value.get(e.modelValue);return Me}return-1}),ft=C({get(){return ee.value&&(e.loading||!te.value||e.remote&&!!a.empty)&&(!w.value||!ha(m.previousQuery)||U.value)},set(Me){ee.value=Me}}),me=C(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(0,e.maxCollapseTags):m.cachedOptions:[]),je=C(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:ie,removeNewOption:xe,selectNewOption:Ue,clearAllNewOption:et}=qU(e,m),bt=Me=>{A.value||e.filterable&&ee.value&&Me&&!I.value?.contains(Me.target)||(m.menuVisibleOnFocus?m.menuVisibleOnFocus=!1:ee.value=!ee.value)},vt=()=>{m.inputValue.length>0&&!ee.value&&(ee.value=!0),ie(m.inputValue),Ne(()=>{Yt(m.inputValue)})},Et=xu(()=>{vt(),w.value=!1},q),Yt=Me=>{m.previousQuery===Me||B.value||(m.previousQuery=Me,e.filterable&&Fe(e.filterMethod)?e.filterMethod(Me):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(Me),e.defaultFirstOption&&(e.filterable||e.remote)&&J.value.length?Ne(on):Ne(Ft))},on=()=>{const Me=J.value.filter(Ot=>!Ot.disabled&&Ot.type!=="Group"),It=Me.find(Ot=>Ot.created),_t=Me[0];m.hoveringIndex=Ye(J.value,It||_t)},At=Me=>{fn(e.modelValue,Me)||t(yt,Me)},en=Me=>{t(at,Me),At(Me),m.previousValue=e.multiple?String(Me):Me,Ne(()=>{if(e.multiple&&we(e.modelValue)){const It=m.cachedOptions.slice(),_t=e.modelValue.map(Ot=>zg(Ot,It));fn(m.cachedOptions,_t)||(m.cachedOptions=_t)}else qu(!0)})},Ye=(Me=[],It)=>{if(!ot(It))return Me.indexOf(It);const _t=e.valueKey;let Ot=-1;return Me.some((jn,Ra)=>yn(jn,_t)===yn(It,_t)?(Ot=Ra,!0):!1),Ot},Ge=Me=>ot(Me)?yn(Me,e.valueKey):Me,tt=()=>{He()},Oe=Me=>{t("end-reached",Me)},Ke=()=>{m.selectionWidth=Number.parseFloat(window.getComputedStyle(S.value).width)},We=()=>{m.collapseItemWidth=$.value.getBoundingClientRect().width},Xt=()=>{k.value?.updatePopper?.()},cn=()=>{x.value?.updatePopper?.()},On=Me=>{const It=f(Me);if(e.multiple){let _t=e.modelValue.slice();const Ot=Ye(_t,It);Ot>-1?(_t=[..._t.slice(0,Ot),..._t.slice(Ot+1)],m.cachedOptions.splice(Ot,1),xe(Me)):(e.multipleLimit<=0||_t.length{let _t=e.modelValue.slice();const Ot=Ye(_t,f(It));Ot>-1&&!A.value&&(_t=[...e.modelValue.slice(0,Ot),...e.modelValue.slice(Ot+1)],m.cachedOptions.splice(Ot,1),en(_t),t("remove-tag",f(It)),xe(It)),Me.stopPropagation(),ya()},ya=()=>{O.value?.focus()},to=()=>{if(ee.value){ee.value=!1,Ne(()=>O.value?.blur());return}O.value?.blur()},Pf=()=>{m.inputValue.length>0?m.inputValue="":ee.value=!1},Af=Me=>CS(Me,It=>!m.cachedOptions.some(_t=>f(_t)===It&&p(_t))),Lf=Me=>{const It=qt(Me);if(e.multiple&&It!==Se.delete&&m.inputValue.length===0){Me.preventDefault();const _t=e.modelValue.slice(),Ot=Af(_t);if(Ot<0)return;const jn=_t[Ot];_t.splice(Ot,1);const Ra=m.cachedOptions[Ot];m.cachedOptions.splice(Ot,1),xe(Ra),en(_t),t("remove-tag",jn)}},Df=()=>{let Me;we(e.modelValue)?Me=[]:Me=h.value,m.selectedLabel="",ee.value=!1,en(Me),t("clear"),et(),ya()},Ks=(Me,It=void 0)=>{const _t=J.value;if(!["forward","backward"].includes(Me)||A.value||_t.length<=0||Te.value||B.value)return;if(!ee.value)return bt();Rt(It)&&(It=m.hoveringIndex);let Ot=-1;Me==="forward"?(Ot=It+1,Ot>=_t.length&&(Ot=0)):Me==="backward"&&(Ot=It-1,(Ot<0||Ot>=_t.length)&&(Ot=_t.length-1));const jn=_t[Ot];if(p(jn)||jn.type==="Group")return Ks(Me,Ot);m.hoveringIndex=Ot,_r(Ot)},Re=()=>{if(ee.value)~m.hoveringIndex&&J.value[m.hoveringIndex]&&On(J.value[m.hoveringIndex]);else return bt()},mt=Me=>{m.hoveringIndex=Me??-1},Ft=()=>{if(!e.multiple)m.hoveringIndex=J.value.findIndex(Me=>Ge(f(Me))===Ge(e.modelValue));else{const Me=e.modelValue.length;if(Me>0){const It=e.modelValue[Me-1];m.hoveringIndex=J.value.findIndex(_t=>Ge(It)===Ge(f(_t)))}else m.hoveringIndex=-1}},tn=Me=>{if(m.inputValue=Me.target.value,e.remote)w.value=!0,Et();else return vt()},_n=Me=>{ee.value=!1,V.value&&F(new FocusEvent("blur",Me))},wa=()=>(m.isBeforeHide=!1,Ne(()=>{~nt.value&&_r(nt.value)})),_r=Me=>{_.value.scrollToItem(Me)},zg=(Me,It)=>{const _t=Ge(Me);if(_e.value.has(_t)){const{option:Ot}=_e.value.get(_t);return Ot}if(It&&It.length){const Ot=It.find(jn=>Ge(f(jn))===_t);if(Ot)return Ot}return{[c.value.value]:Me,[c.value.label]:Me}},X4=Me=>_e.value.get(f(Me))?.index??-1,qu=(Me=!1)=>{if(e.multiple)if(e.modelValue.length>0){const It=m.cachedOptions.slice();m.cachedOptions.length=0,m.previousValue=e.modelValue.toString();for(const _t of e.modelValue){const Ot=zg(_t,It);m.cachedOptions.push(Ot)}}else m.cachedOptions=[],m.previousValue=void 0;else if(Z.value){m.previousValue=e.modelValue;const It=J.value,_t=It.findIndex(Ot=>Ge(f(Ot))===Ge(e.modelValue));~_t?m.selectedLabel=d(It[_t]):(!m.selectedLabel||Me)&&(m.selectedLabel=Ge(e.modelValue))}else m.selectedLabel="",m.previousValue=void 0;et(),He()};pe(()=>e.fitInputWidth,()=>{He()}),pe(ee,Me=>{Me?(e.persistent||He(),Yt("")):(m.inputValue="",m.previousQuery=null,m.isBeforeHide=!0,m.menuVisibleOnFocus=!1,ie(""))}),pe(()=>e.modelValue,(Me,It)=>{(!Me||we(Me)&&Me.length===0||e.multiple&&!fn(Me.toString(),m.previousValue)||!e.multiple&&Ge(Me)!==Ge(m.previousValue))&&qu(!0),!fn(Me,It)&&e.validateEvent&&l?.validate?.("change").catch(ut)},{deep:!0}),pe(()=>e.options,()=>{const Me=O.value;(!Me||Me&&document.activeElement!==Me)&&qu()},{deep:!0,flush:"post"}),pe(()=>J.value,()=>(He(),_.value&&Ne(_.value.resetScrollTop))),la(()=>{m.isBeforeHide||Le()}),la(()=>{const{valueKey:Me,options:It}=e,_t=new Map;for(const Ot of It){const jn=f(Ot);let Ra=jn;if(ot(Ra)&&(Ra=yn(jn,Me)),_t.get(Ra)){jt("ElSelectV2","The option values you provided seem to be duplicated, which may cause some problems, please check.");break}else _t.set(Ra,!0)}}),ht(()=>{qu()}),an(y,tt),an(S,Ke),an(P,Xt),an(N,cn),an($,We);let Bf;return pe(()=>ft.value,Me=>{Me?Bf=an(_,Xt).stop:(Bf?.(),Bf=void 0),t("visible-change",Me)}),{inputId:u,collapseTagSize:Pe,currentPlaceholder:Pt,expanded:ee,emptyText:fe,popupHeight:ce,debounce:q,allOptions:H,allOptionsValueMap:_e,filteredOptions:J,iconComponent:ue,iconReverse:Y,tagStyle:lt,collapseTagStyle:Ze,popperSize:b,dropdownMenuVisible:ft,hasModelValue:Z,shouldShowPlaceholder:gt,selectDisabled:A,selectSize:be,needStatusIcon:ae,showClearBtn:de,states:m,isFocused:V,nsSelect:o,nsInput:r,inputRef:O,menuRef:_,tagMenuRef:N,tooltipRef:k,tagTooltipRef:x,selectRef:y,wrapperRef:P,selectionRef:S,prefixRef:T,suffixRef:I,collapseItemRef:$,popperRef:zt,validateState:Q,validateIcon:L,showTagList:me,collapseTagList:je,debouncedOnInputChange:Et,deleteTag:Xn,getLabel:d,getValue:f,getDisabled:p,getValueKey:Ge,getIndex:X4,handleClear:Df,handleClickOutside:_n,handleDel:Lf,handleEsc:Pf,focus:ya,blur:to,handleMenuEnter:wa,handleResize:tt,resetSelectionWidth:Ke,updateTooltip:Xt,updateTagTooltip:cn,updateOptions:Le,toggleMenu:bt,scrollTo:_r,onInput:tn,onKeyboardNavigate:Ks,onKeyboardSelect:Re,onEndReached:Oe,onSelect:On,onHover:mt,handleCompositionStart:K,handleCompositionEnd:j,handleCompositionUpdate:W}};var GU=se({name:"ElSelectV2",components:{ElSelectMenu:UU,ElTag:cr,ElTooltip:Wn,ElIcon:De},directives:{ClickOutside:Qr},props:PU,emits:LU,setup(e,{emit:t}){const n=C(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return we(u)?c?u:d:c?d:u}),a=YU(Dt({...Pn(e),modelValue:n}),t),{calculatorRef:o,inputStyle:r}=im(),s=Gn();St(ig,{props:Dt({...Pn(e),height:a.popupHeight,modelValue:n}),expanded:a.expanded,tooltipRef:a.tooltipRef,contentId:s,onSelect:a.onSelect,onHover:a.onHover,onKeyboardNavigate:a.onKeyboardNavigate,onKeyboardSelect:a.onKeyboardSelect});const l=C(()=>e.multiple?a.states.cachedOptions.map(u=>a.getLabel(u)):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:l,calculatorRef:o,inputStyle:r,contentId:s,BORDER_HORIZONTAL_WIDTH:2}}});const XU=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],JU=["textContent"],ZU={key:1};function QU(e,t,n,a,o,r){const s=Mt("el-tag"),l=Mt("el-tooltip"),u=Mt("el-icon"),c=Mt("el-select-menu"),d=Bv("click-outside");return ct((E(),D("div",{ref:"selectRef",class:R([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[X(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:ne(()=>[z("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=Xe((...f)=>e.toggleMenu&&e.toggleMenu(...f),["prevent"]))},[e.$slots.prefix?(E(),D("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),z("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(E(!0),D(Ve,null,kt(e.showTagList,f=>(E(),D("div",{key:e.getValueKey(e.getValue(f)),class:R(e.nsSelect.e("selected-item"))},[X(s,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ze(e.tagStyle),onClose:p=>e.deleteTag(p,f)},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(f),label:e.getLabel(f),value:e.getValue(f)},()=>[wt(Ce(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.cachedOptions.length>e.maxCollapseTags?(E(),le(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":e.tagTooltip?.fallbackPlacements??["bottom","top","right","left"],effect:e.tagTooltip?.effect??e.effect,placement:e.tagTooltip?.placement??"bottom","popper-class":e.tagTooltip?.popperClass??e.popperClass,"popper-style":e.tagTooltip?.popperStyle??e.popperStyle,teleported:e.tagTooltip?.teleported??e.teleported,"append-to":e.tagTooltip?.appendTo??e.appendTo,"popper-options":e.tagTooltip?.popperOptions??e.popperOptions,transition:e.tagTooltip?.transition,"show-after":e.tagTooltip?.showAfter,"hide-after":e.tagTooltip?.hideAfter,"auto-close":e.tagTooltip?.autoClose,offset:e.tagTooltip?.offset},{default:ne(()=>[z("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[X(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:ze(e.collapseTagStyle),"disable-transitions":""},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))}," + "+Ce(e.states.cachedOptions.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ne(()=>[z("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(E(!0),D(Ve,null,kt(e.collapseTagList,f=>(E(),D("div",{key:e.getValueKey(e.getValue(f)),class:R(e.nsSelect.e("selected-item"))},[X(s,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:p=>e.deleteTag(p,f)},{default:ne(()=>[z("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(f),label:e.getLabel(f),value:e.getValue(f)},()=>[wt(Ce(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]):re("v-if",!0),z("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[z("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:ze(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...f)=>e.onInput&&e.onInput(...f)),onChange:t[1]||(t[1]=Xe(()=>{},["stop"])),onCompositionstart:t[2]||(t[2]=(...f)=>e.handleCompositionStart&&e.handleCompositionStart(...f)),onCompositionupdate:t[3]||(t[3]=(...f)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...f)),onCompositionend:t[4]||(t[4]=(...f)=>e.handleCompositionEnd&&e.handleCompositionEnd(...f)),onKeydown:[t[5]||(t[5]=dn(Xe(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=dn(Xe(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=dn(Xe((...f)=>e.onKeyboardSelect&&e.onKeyboardSelect(...f),["stop","prevent"]),["enter"])),t[8]||(t[8]=dn(Xe((...f)=>e.handleEsc&&e.handleEsc(...f),["stop","prevent"]),["esc"])),t[9]||(t[9]=dn(Xe((...f)=>e.handleDel&&e.handleDel(...f),["stop"]),["delete"]))],onClick:t[10]||(t[10]=Xe((...f)=>e.toggleMenu&&e.toggleMenu(...f),["stop"]))},null,46,XU),e.filterable?(E(),D("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:Ce(e.states.inputValue)},null,10,JU)):re("v-if",!0)],2),e.shouldShowPlaceholder?(E(),D("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:e.allOptionsValueMap.get(e.modelValue)?.index??-1,label:e.currentPlaceholder,value:e.modelValue},()=>[z("span",null,Ce(e.currentPlaceholder),1)]):(E(),D("span",ZU,Ce(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),z("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent?ct((E(),le(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ne(()=>[(E(),le(it(e.iconComponent)))]),_:1},8,["class"])),[[$t,!e.showClearBtn]]):re("v-if",!0),e.showClearBtn&&e.clearIcon?(E(),le(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Xe(e.handleClear,["prevent","stop"])},{default:ne(()=>[(E(),le(it(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(E(),le(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ne(()=>[(E(),le(it(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]),content:ne(()=>[X(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel,onEndReached:e.onEndReached},ma({default:ne(f=>[oe(e.$slots,"default",sr(ir(f)))]),_:2},[e.$slots.header?{name:"header",fn:ne(()=>[z("div",{class:R(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=Xe(()=>{},["stop"]))},[oe(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:ne(()=>[z("div",{class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:ne(()=>[z("div",{class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[z("span",null,Ce(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:ne(()=>[z("div",{class:R(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=Xe(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label","onEndReached"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var eq=Mn(GU,[["render",QU]]);const tq=st(eq),nq=Ee({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:G([Number,Object])}}),aq=Ee({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var oq=se({name:"ElSkeletonItem",__name:"skeleton-item",props:aq,setup(e){const t=ge("skeleton");return(n,a)=>(E(),D("div",{class:R([i(t).e("item"),i(t).e(e.variant)])},[e.variant==="image"?(E(),le(i(iA),{key:0})):re("v-if",!0)],2))}}),Cd=oq,rq=se({name:"ElSkeleton",__name:"skeleton",props:nq,setup(e,{expose:t}){const n=e,a=ge("skeleton"),o=jN(Ht(n,"loading"),n.throttle);return t({uiLoading:o}),(r,s)=>i(o)?(E(),D("div",pt({key:0,class:[i(a).b(),i(a).is("animated",e.animated)]},r.$attrs),[(E(!0),D(Ve,null,kt(e.count,l=>(E(),D(Ve,{key:l},[i(o)?oe(r.$slots,"template",{key:l},()=>[X(Cd,{class:R(i(a).is("first")),variant:"p"},null,8,["class"]),(E(!0),D(Ve,null,kt(e.rows,u=>(E(),le(Cd,{key:u,class:R([i(a).e("paragraph"),i(a).is("last",u===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):re("v-if",!0)],64))),128))],16)):oe(r.$slots,"default",sr(pt({key:1},r.$attrs)))}}),sq=rq;const lq=st(sq,{SkeletonItem:Cd}),iq=ln(Cd),nx=Symbol("sliderContextKey"),uq=Ee({modelValue:{type:G([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:G([Number,String]),default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Nn,inputSize:Nn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:G(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:G(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:jo,default:"top"},marks:{type:G(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...ia(["ariaLabel"])}),Ep=e=>Be(e)||we(e)&&e.every(Be),cq={[at]:Ep,[Tn]:Ep,[yt]:Ep},dq=(e,t,n)=>{const a=M();return ht(async()=>{e.range?(we(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!Be(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Bt(window,"resize",n),await Ne(),n()}),{sliderWrapper:a}},fq=e=>{const t=C(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,a)=>n-a).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]);return la(()=>{if(e.step==="mark"&&!e.marks&&jt("ElSlider","marks prop must be provided when step is mark"),e.marks){const n=Object.keys(e.marks),a=t.value.map(r=>r.point),o=n.filter(r=>{const s=Number.parseFloat(r);return Number.isNaN(s)||!a.includes(s)});o.length>0&&jt("ElSlider",`Some marks keys are invalid (not a number or out of [min, max]): [${o.map(r=>`'${r}'`).join(", ")}] and will be ignored.`)}}),t},pq=(e,t,n)=>{const{formItem:a}=Fn(),o=Tt(),r=M(),s=M(),l={firstButton:r,secondButton:s},u=un(),c=C(()=>Math.min(t.firstValue,t.secondValue)),d=C(()=>Math.max(t.firstValue,t.secondValue)),f=C(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),p=C(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),g=C(()=>e.vertical?{height:e.height}:{}),h=C(()=>e.vertical?{height:f.value,bottom:p.value}:{width:f.value,left:p.value}),v=()=>{o.value&&(t.sliderSize=o.value.getBoundingClientRect()[e.vertical?"height":"width"])},m=N=>{const $=e.min+N*(e.max-e.min)/100;if(!e.range)return r;let B;return Math.abs(c.value-$)t.secondValue?"firstButton":"secondButton",l[B]},b=N=>{const $=m(N);return $.value.setPosition(N),$},w=N=>{t.firstValue=N??e.min,S(e.range?[c.value,d.value]:N??e.min)},y=N=>{t.secondValue=N,e.range&&S([c.value,d.value])},S=N=>{n(at,N),n(Tn,N)},k=async()=>{await Ne(),n(yt,e.range?[c.value,d.value]:e.modelValue)},x=N=>{if(u.value||t.dragging)return;v();let $=0;if(e.vertical){const B=N.touches?.item(0)?.clientY??N.clientY;$=(o.value.getBoundingClientRect().bottom-B)/t.sliderSize*100}else $=((N.touches?.item(0)?.clientX??N.clientX)-o.value.getBoundingClientRect().left)/t.sliderSize*100;if(!($<0||$>100))return b($)};return{elFormItem:a,slider:o,firstButton:r,secondButton:s,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:g,barStyle:h,resetSize:v,setPosition:b,emitChange:k,onSliderWrapperPrevent:N=>{(l.firstButton.value?.dragging||l.secondButton.value?.dragging)&&N.preventDefault()},onSliderClick:N=>{x(N)&&k()},onSliderDown:async N=>{const $=x(N);$&&(await Ne(),$.value.onButtonDown(N))},onSliderMarkerDown:N=>{u.value||t.dragging||b(N)&&k()},setFirstValue:w,setSecondValue:y}},hq=(e,t,n,a)=>({stops:C(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step==="mark"||e.step===0)return e.step===0&&jt("ElSlider","step should not be 0."),[];const s=Math.ceil((e.max-e.min)/e.step),l=100*e.step/(e.max-e.min),u=Array.from({length:s-1}).map((c,d)=>(d+1)*l);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(a.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:s=>e.vertical?{bottom:`${s}%`}:{left:`${s}%`}}),vq=(e,t,n,a,o,r)=>{const s=c=>{o(at,c),o(Tn,c)},l=()=>e.range?![n.value,a.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{e.min>e.max&&sn("Slider","min should not be greater than max.");const c=e.modelValue;e.range&&we(c)?c[1]e.max?s([e.max,e.max]):c[0]e.max?s([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],l()&&(e.validateEvent&&r?.validate?.("change").catch(ut),t.oldValue=c.slice())):!e.range&&Be(c)&&!Number.isNaN(c)&&(ce.max?s(e.max):(t.firstValue=c,l()&&(e.validateEvent&&r?.validate?.("change").catch(ut),t.oldValue=c)))};u(),pe(()=>t.dragging,c=>{c||u()}),pe(()=>e.modelValue,(c,d)=>{t.dragging||we(c)&&we(d)&&c.every((f,p)=>f===d[p])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),pe(()=>[e.min,e.max],()=>{u()})},mq=(e,t,n)=>{const a=M(),o=M(!1),r=C(()=>t.value instanceof Function);return{tooltip:a,tooltipVisible:o,formatValue:C(()=>r.value&&t.value(e.modelValue)||e.modelValue),displayTooltip:Ho(()=>{n.value&&(o.value=!0)},50),hideTooltip:Ho(()=>{n.value&&(o.value=!1)},50)}},gq=(e,t,n)=>{const{disabled:a,min:o,max:r,step:s,showTooltip:l,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:p,resetSize:g,updateDragging:h,markList:v}=$e(nx),{tooltip:m,tooltipVisible:b,formatValue:w,displayTooltip:y,hideTooltip:S}=mq(e,f,l),k=M(),x=C(()=>`${(e.modelValue-o.value)/(r.value-o.value)*100}%`),O=C(()=>e.vertical?{bottom:x.value}:{left:x.value}),T=C(()=>s.value==="mark"&&v.value.length>0),I=()=>{t.hovering=!0,y()},_=()=>{t.hovering=!1,t.dragging||S()},N=ce=>{a.value||(ce.preventDefault(),U(ce),window.addEventListener("mousemove",J),window.addEventListener("touchmove",J),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),window.addEventListener("contextmenu",ee),k.value.focus())},$=ce=>{a.value||(t.newPosition=Number.parseFloat(x.value)+ce/(r.value-o.value)*100,ae(t.newPosition),p())},B=ce=>{if(a.value||!v.value.length)return;const Z=e.modelValue,de=Number.EPSILON,ue=Math.abs(ce);let Y;if(ce>0){const Q=v.value.findIndex(L=>L.point>Z+de);if(Q!==-1){const L=Math.min(Q+ue-1,v.value.length-1);Y=v.value[L].point}}else{let Q=-1;for(let L=v.value.length-1;L>=0;L--)if(v.value[L].point{T.value?B(-1):Be(s.value)&&$(-s.value)},j=()=>{T.value?B(1):Be(s.value)&&$(s.value)},W=()=>{T.value?B(-4):Be(s.value)&&$(-s.value*4)},A=()=>{T.value?B(4):Be(s.value)&&$(s.value*4)},P=()=>{a.value||(ae(0),p())},V=()=>{a.value||(ae(100),p())},F=ce=>{const Z=qt(ce);let de=!0;switch(Z){case Se.left:case Se.down:K();break;case Se.right:case Se.up:j();break;case Se.home:P();break;case Se.end:V();break;case Se.pageDown:W();break;case Se.pageUp:A();break;default:de=!1;break}de&&ce.preventDefault()},H=ce=>{let Z,de;return ce.type.startsWith("touch")?(de=ce.touches[0].clientY,Z=ce.touches[0].clientX):(de=ce.clientY,Z=ce.clientX),{clientX:Z,clientY:de}},U=ce=>{t.dragging=!0,t.isClick=!0;const{clientX:Z,clientY:de}=H(ce);e.vertical?t.startY=de:t.startX=Z,t.startPosition=Number.parseFloat(x.value),t.newPosition=t.startPosition},J=ce=>{if(t.dragging){t.isClick=!1,y(),g();let Z;const{clientX:de,clientY:ue}=H(ce);e.vertical?(t.currentY=ue,Z=(t.startY-t.currentY)/d.value*100):(t.currentX=de,Z=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+Z,ae(t.newPosition)}},ee=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||S(),t.isClick||ae(t.newPosition),p()},0),window.removeEventListener("mousemove",J),window.removeEventListener("touchmove",J),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),window.removeEventListener("contextmenu",ee))},ae=async ce=>{if(ce===null||Number.isNaN(+ce))return;ce=Ma(ce,0,100);let Z;if(s.value==="mark")v.value.length===0?Z=ce<=50?o.value:r.value:Z=v.value.reduce((de,ue)=>Math.abs(ue.position-ce)t.dragging,ce=>{h(ce)}),Bt(k,"touchstart",N,{passive:!1}),{disabled:a,button:k,tooltip:m,tooltipVisible:b,showTooltip:l,persistent:u,wrapperStyle:O,formatValue:w,handleMouseEnter:I,handleMouseLeave:_,onButtonDown:N,onKeyDown:F,setPosition:ae}},bq=Ee({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:jo,default:"top"}}),yq={[at]:e=>Be(e)},wq=["tabindex"];var Sq=se({name:"ElSliderButton",__name:"button",props:bq,emits:yq,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("slider"),s=Dt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),l=C(()=>f.value?p.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:p,tooltipVisible:g,wrapperStyle:h,formatValue:v,handleMouseEnter:m,handleMouseLeave:b,onButtonDown:w,onKeyDown:y,setPosition:S}=gq(a,s,o),{hovering:k,dragging:x}=Pn(s);return t({onButtonDown:w,onKeyDown:y,setPosition:S,hovering:k,dragging:x}),(O,T)=>(E(),D("div",{ref_key:"button",ref:c,class:R([i(r).e("button-wrapper"),{hover:i(k),dragging:i(x)}]),style:ze(i(h)),tabindex:i(u)?void 0:0,onMouseenter:T[0]||(T[0]=(...I)=>i(m)&&i(m)(...I)),onMouseleave:T[1]||(T[1]=(...I)=>i(b)&&i(b)(...I)),onMousedown:T[2]||(T[2]=(...I)=>i(w)&&i(w)(...I)),onFocus:T[3]||(T[3]=(...I)=>i(m)&&i(m)(...I)),onBlur:T[4]||(T[4]=(...I)=>i(b)&&i(b)(...I)),onKeydown:T[5]||(T[5]=(...I)=>i(y)&&i(y)(...I))},[X(i(Wn),{ref_key:"tooltip",ref:d,visible:i(g),placement:O.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":O.tooltipClass,disabled:!i(f),persistent:l.value},{content:ne(()=>[z("span",null,Ce(i(v)),1)]),default:ne(()=>[z("div",{class:R([i(r).e("button"),{hover:i(k),dragging:i(x)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,wq))}}),Jy=Sq;const Cq=Ee({mark:{type:G([String,Object]),default:void 0}});var kq=se({name:"ElSliderMarker",props:Cq,setup(e){const t=ge("slider"),n=C(()=>Ae(e.mark)?e.mark:e.mark.label),a=C(()=>Ae(e.mark)?void 0:e.mark.style);return()=>qe("div",{class:t.e("marks-text"),style:a.value},n.value)}});const Eq=["id","role","aria-label","aria-labelledby"],xq={key:1};var Tq=se({name:"ElSlider",__name:"slider",props:uq,emits:cq,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("slider"),{t:s}=xt(),l=Dt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:p,minValue:g,maxValue:h,runwayStyle:v,barStyle:m,resetSize:b,emitChange:w,onSliderWrapperPrevent:y,onSliderClick:S,onSliderDown:k,onSliderMarkerDown:x,setFirstValue:O,setSecondValue:T}=pq(a,l,o),{stops:I,getStopStyle:_}=hq(a,l,g,h),{inputId:N,isLabeledByFormItem:$}=_a(a,{formItemContext:u}),B=In(),K=C(()=>a.inputSize||B.value),j=C(()=>a.showInput&&!a.range&&a.step!=="mark"),W=C(()=>a.ariaLabel||s("el.slider.defaultLabel",{min:a.min,max:a.max})),A=C(()=>a.range?a.rangeStartLabel||s("el.slider.defaultRangeStartLabel"):W.value),P=C(()=>a.formatValueText?a.formatValueText(ce.value):`${ce.value}`),V=C(()=>a.rangeEndLabel||s("el.slider.defaultRangeEndLabel")),F=C(()=>a.formatValueText?a.formatValueText(Z.value):`${Z.value}`),H=C(()=>[r.b(),r.m(B.value),r.is("vertical",a.vertical),{[r.m("with-input")]:j.value}]),U=fq(a);vq(a,l,g,h,o,u);const J=C(()=>Be(a.step)?a.step:1),ee=C(()=>{const Y=Be(a.step)?a.step:1,Q=[a.min,a.max,Y].map(L=>{const q=`${L}`.split(".")[1];return q?q.length:0});return Math.max.apply(null,Q)}),{sliderWrapper:ae}=dq(a,l,b),{firstValue:ce,secondValue:Z,sliderSize:de}=Pn(l),ue=Y=>{l.dragging=Y};return Bt(ae,"touchstart",y,{passive:!1}),Bt(ae,"touchmove",y,{passive:!1}),St(nx,{...Pn(a),sliderSize:de,disabled:p,precision:ee,markList:U,emitChange:w,resetSize:b,updateDragging:ue}),t({onSliderClick:S}),(Y,Q)=>(E(),D("div",{id:Y.range?i(N):void 0,ref_key:"sliderWrapper",ref:ae,class:R(H.value),role:Y.range?"group":void 0,"aria-label":Y.range&&!i($)?W.value:void 0,"aria-labelledby":Y.range&&i($)?i(u)?.labelId:void 0},[z("div",{ref_key:"slider",ref:c,class:R([i(r).e("runway"),{"show-input":j.value},i(r).is("disabled",i(p))]),style:ze(i(v)),onMousedown:Q[0]||(Q[0]=(...L)=>i(k)&&i(k)(...L)),onTouchstartPassive:Q[1]||(Q[1]=(...L)=>i(k)&&i(k)(...L))},[z("div",{class:R(i(r).e("bar")),style:ze(i(m))},null,6),X(Jy,{id:Y.range?void 0:i(N),ref_key:"firstButton",ref:d,"model-value":i(ce),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":Y.range||!i($)?A.value:void 0,"aria-labelledby":!Y.range&&i($)?i(u)?.labelId:void 0,"aria-valuemin":Y.min,"aria-valuemax":Y.range?i(Z):Y.max,"aria-valuenow":i(ce),"aria-valuetext":P.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(p),"onUpdate:modelValue":i(O)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Y.range?(E(),le(Jy,{key:0,ref_key:"secondButton",ref:f,"model-value":i(Z),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":V.value,"aria-valuemin":i(ce),"aria-valuemax":Y.max,"aria-valuenow":i(Z),"aria-valuetext":F.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(p),"onUpdate:modelValue":i(T)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):re("v-if",!0),Y.showStops?(E(),D("div",xq,[(E(!0),D(Ve,null,kt(i(I),(L,q)=>(E(),D("div",{key:q,class:R(i(r).e("stop")),style:ze(i(_)(L))},null,6))),128))])):re("v-if",!0),i(U).length>0?(E(),D(Ve,{key:2},[z("div",null,[(E(!0),D(Ve,null,kt(i(U),(L,q)=>(E(),D("div",{key:q,style:ze(i(_)(L.position)),class:R([i(r).e("stop"),i(r).e("marks-stop")])},null,6))),128))]),z("div",{class:R(i(r).e("marks"))},[(E(!0),D(Ve,null,kt(i(U),(L,q)=>(E(),le(i(kq),{key:q,mark:L.mark,style:ze(i(_)(L.position)),onMousedown:Xe(te=>i(x)(L.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):re("v-if",!0)],38),j.value?(E(),le(i(GE),{key:0,ref:"input","model-value":i(ce),class:R(i(r).e("input")),step:J.value,disabled:i(p),controls:Y.showInputControls,min:Y.min,max:Y.max,precision:ee.value,size:K.value,"onUpdate:modelValue":i(O),onChange:i(w)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):re("v-if",!0)],10,Eq))}}),Oq=Tq;const _q=st(Oq),Rq=Ee({prefixCls:{type:String}}),Zy=se({name:"ElSpaceItem",props:Rq,setup(e,{slots:t}){const n=ge("space"),a=C(()=>`${e.prefixCls||n.b()}__item`);return()=>qe("div",{class:a.value},oe(t,"default"))}}),Qy={small:8,default:12,large:16};function Iq(e){const t=ge("space"),n=C(()=>[t.b(),t.m(e.direction),e.class]),a=M(0),o=M(0),r=C(()=>[e.wrap||e.fill?{flexWrap:"wrap"}:{},{alignItems:e.alignment},{rowGap:`${o.value}px`,columnGap:`${a.value}px`},e.style]),s=C(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return la(()=>{const{size:l="small",wrap:u,direction:c,fill:d}=e;if(we(l)){const[f=0,p=0]=l;a.value=f,o.value=p}else{let f;Be(l)?f=l:f=Qy[l||"small"]||Qy.small,(u||d)&&c==="horizontal"?a.value=o.value=f:c==="horizontal"?(a.value=f,o.value=0):(o.value=f,a.value=0)}}),{classes:n,containerStyle:r,itemStyle:s}}const $q=Ee({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:G([String,Object,Array]),default:""},style:{type:G([String,Array,Object,Boolean]),default:""},alignment:{type:G(String),default:"center"},prefixCls:{type:String},spacer:{type:G([Object,String,Number,Array]),default:null,validator:e=>Zt(e)||Be(e)||Ae(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:yo,validator:e=>Be(e)||we(e)&&e.length===2&&e.every(Be)}}),Nq=se({name:"ElSpace",props:$q,setup(e,{slots:t}){const{classes:n,containerStyle:a,itemStyle:o}=Iq(e);function r(s,l="",u=[]){const{prefixCls:c}=e;return s.forEach((d,f)=>{mh(d)?we(d.children)&&d.children.forEach((p,g)=>{mh(p)&&we(p.children)?r(p.children,`${l+g}-`,u):Zt(p)&&p?.type===kn?u.push(p):u.push(X(Zy,{style:o.value,prefixCls:c,key:`nested-${l+g}`},{default:()=>[p]},12,["style","prefixCls"]))}):jM(d)&&u.push(X(Zy,{style:o.value,prefixCls:c,key:`LoopKey${l+f}`},{default:()=>[d]},12,["style","prefixCls"]))}),u}return()=>{const{spacer:s,direction:l}=e,u=oe(t,"default",{key:0},()=>[]);if((u.children??[]).length===0)return null;if(we(u.children)){let c=r(u.children);if(s){const d=c.length-1;c=c.reduce((f,p,g)=>{const h=[...f,p];return g!==d&&h.push(X("span",{style:[o.value,l==="vertical"?"width: 100%":null],key:g},[Zt(s)?s:wt(s,1)],4)),h},[])}return X("div",{class:n.value,style:a.value},c,6)}return u.children}}}),Mq=st(Nq),Pq=Ee({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Aq={[yt]:(e,t)=>[e,t].every(Be)},ax="ElSteps",Lq=Ee({title:{type:String,default:""},icon:{type:Ut},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var Dq=se({name:"ElSteps",__name:"steps",props:Pq,emits:Aq,setup(e,{emit:t}){const n=e,a=t,o=ge("steps"),{children:r,addChild:s,removeChild:l,ChildrenSorter:u}=df(dt(),"ElStep");return pe(r,()=>{r.value.forEach((c,d)=>{c.setIndex(d)})}),St(ax,{props:n,steps:r,addStep:s,removeStep:l}),pe(()=>n.active,(c,d)=>{a(yt,c,d)}),(c,d)=>(E(),D("div",{class:R([i(o).b(),i(o).m(e.simple?"simple":e.direction)])},[oe(c.$slots,"default"),X(i(u))],2))}}),Bq=Dq,Vq=se({name:"ElStep",__name:"item",props:Lq,setup(e){const t=e,n=ge("step"),a=M(-1),o=M({}),r=M(""),s=$e(ax),l=dt();let u=0,c=0;ht(()=>{pe([()=>s.props.active,()=>s.props.processStatus,()=>s.props.finishStatus],([T],[I])=>{c=I||0,u=T-c,x(T)},{immediate:!0})});const d=C(()=>t.status||r.value),f=C(()=>{const T=s.steps.value[a.value-1];return T?T.internalStatus.value:"wait"}),p=C(()=>s.props.alignCenter),g=C(()=>s.props.direction==="vertical"),h=C(()=>s.props.simple),v=C(()=>s.steps.value.length),m=C(()=>s.steps.value[v.value-1]?.uid===l.uid),b=C(()=>h.value?"":s.props.space),w=C(()=>[n.b(),n.is(h.value?"simple":s.props.direction),n.is("flex",m.value&&!b.value&&!p.value),n.is("center",p.value&&!g.value&&!h.value)]),y=C(()=>{const T={flexBasis:Be(b.value)?`${b.value}px`:b.value?b.value:`${100/(v.value-(p.value?0:1))}%`};return g.value||m.value&&(T.maxWidth=`${100/v.value}%`),T}),S=T=>{a.value=T},k=T=>{const I=T==="wait",_={transitionDelay:`${Math.abs(u)===1?0:u>0?(a.value+1-c)*150:-(a.value+1-s.props.active)*150}ms`},N=T===s.props.processStatus||I?0:100;_.borderWidth=N&&!h.value?"1px":0,_[s.props.direction==="vertical"?"height":"width"]=`${N}%`,o.value=_},x=T=>{T>a.value?r.value=s.props.finishStatus:T===a.value&&f.value!=="error"?r.value=s.props.processStatus:r.value="wait";const I=s.steps.value[a.value-1];I&&I.calcProgress(r.value)},O={uid:l.uid,getVnode:()=>l.vnode,currentStatus:d,internalStatus:r,setIndex:S,calcProgress:k};return s.addStep(O),Vt(()=>{s.removeStep(O)}),(T,I)=>(E(),D("div",{style:ze(y.value),class:R(w.value)},[re(" icon & line "),z("div",{class:R([i(n).e("head"),i(n).is(d.value)])},[h.value?re("v-if",!0):(E(),D("div",{key:0,class:R(i(n).e("line"))},[z("i",{class:R(i(n).e("line-inner")),style:ze(o.value)},null,6)],2)),z("div",{class:R([i(n).e("icon"),i(n).is(e.icon||T.$slots.icon?"icon":"text")])},[oe(T.$slots,"icon",{},()=>[e.icon?(E(),le(i(De),{key:0,class:R(i(n).e("icon-inner"))},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1},8,["class"])):d.value==="success"?(E(),le(i(De),{key:1,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ne(()=>[X(i(Il))]),_:1},8,["class"])):d.value==="error"?(E(),le(i(De),{key:2,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ne(()=>[X(i(Qa))]),_:1},8,["class"])):h.value?re("v-if",!0):(E(),D("div",{key:3,class:R(i(n).e("icon-inner"))},Ce(a.value+1),3))])],2)],2),re(" title & description "),z("div",{class:R(i(n).e("main"))},[z("div",{class:R([i(n).e("title"),i(n).is(d.value)])},[oe(T.$slots,"title",{},()=>[wt(Ce(e.title),1)])],2),h.value?(E(),D("div",{key:0,class:R(i(n).e("arrow"))},null,2)):(E(),D("div",{key:1,class:R([i(n).e("description"),i(n).is(d.value)])},[oe(T.$slots,"description",{},()=>[wt(Ce(e.description),1)])],2))],2)],6))}}),ox=Vq;const Fq=st(Bq,{Step:ox}),zq=ln(ox),rx=e=>["",...yo].includes(e),Hq=Ee({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:rx},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Ut},activeActionIcon:{type:Ut},activeIcon:{type:Ut},inactiveIcon:{type:Ut},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:G(Function)},id:String,tabindex:{type:[String,Number]},...ia(["ariaLabel"])}),Kq={[at]:e=>Wt(e)||Ae(e)||Be(e),[yt]:e=>Wt(e)||Ae(e)||Be(e),[Tn]:e=>Wt(e)||Ae(e)||Be(e)},Wq=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],jq=["aria-hidden"],Uq={key:1},qq={key:1},Yq=["aria-hidden"],xp="ElSwitch";var Gq=se({name:xp,__name:"switch",props:Hq,emits:Kq,setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:r}=Fn(),s=In(),l=ge("switch"),{inputId:u}=_a(a,{formItemContext:r}),c=un(C(()=>{if(a.loading)return!0})),d=M(a.modelValue!==!1),f=Tt(),p=C(()=>[l.b(),l.m(s.value),l.is("disabled",c.value),l.is("checked",b.value)]),g=C(()=>[l.e("label"),l.em("label","left"),l.is("active",!b.value)]),h=C(()=>[l.e("label"),l.em("label","right"),l.is("active",b.value)]),v=C(()=>({width:hn(a.width)}));pe(()=>a.modelValue,()=>{d.value=!0});const m=C(()=>d.value?a.modelValue:!1),b=C(()=>m.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(m.value)||(o(at,a.inactiveValue),o(yt,a.inactiveValue),o(Tn,a.inactiveValue)),pe(b,k=>{f.value.checked=k,a.validateEvent&&r?.validate?.("change").catch(ut)});const w=()=>{const k=b.value?a.inactiveValue:a.activeValue;o(at,k),o(yt,k),o(Tn,k),Ne(()=>{f.value.checked=b.value})},y=()=>{if(c.value)return;const{beforeChange:k}=a;if(!k){w();return}const x=k();[qr(x),Wt(x)].includes(!0)||sn(xp,"beforeChange must return type `Promise` or `boolean`"),qr(x)?x.then(O=>{O&&w()}).catch(O=>{jt(xp,`some error occurred: ${O}`)}):x&&w()},S=()=>{f.value?.focus?.()};return ht(()=>{f.value.checked=b.value}),t({focus:S,checked:b}),(k,x)=>(E(),D("div",{class:R(p.value),onClick:Xe(y,["prevent"])},[z("input",{id:i(u),ref_key:"input",ref:f,class:R(i(l).e("input")),type:"checkbox",role:"switch","aria-checked":b.value,"aria-disabled":i(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:i(c),tabindex:e.tabindex,onChange:w,onKeydown:dn(y,["enter"])},null,42,Wq),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||k.$slots.inactive)?(E(),D("span",{key:0,class:R(g.value)},[oe(k.$slots,"inactive",{},()=>[e.inactiveIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(E(),D("span",{key:1,"aria-hidden":b.value},Ce(e.inactiveText),9,jq)):re("v-if",!0)])],2)):re("v-if",!0),z("span",{class:R(i(l).e("core")),style:ze(v.value)},[e.inlinePrompt?(E(),D("div",{key:0,class:R(i(l).e("inner"))},[b.value?(E(),D("div",{key:1,class:R(i(l).e("inner-wrapper"))},[oe(k.$slots,"active",{},()=>[e.activeIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(E(),D("span",qq,Ce(e.activeText),1)):re("v-if",!0)])],2)):(E(),D("div",{key:0,class:R(i(l).e("inner-wrapper"))},[oe(k.$slots,"inactive",{},()=>[e.inactiveIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(E(),D("span",Uq,Ce(e.inactiveText),1)):re("v-if",!0)])],2))],2)):re("v-if",!0),z("div",{class:R(i(l).e("action"))},[e.loading?(E(),le(i(De),{key:0,class:R(i(l).is("loading"))},{default:ne(()=>[X(i(ho))]),_:1},8,["class"])):b.value?oe(k.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.activeActionIcon)))]),_:1})):re("v-if",!0)]):b.value?re("v-if",!0):oe(k.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.inactiveActionIcon)))]),_:1})):re("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||k.$slots.active)?(E(),D("span",{key:1,class:R(h.value)},[oe(k.$slots,"active",{},()=>[e.activeIcon?(E(),le(i(De),{key:0},{default:ne(()=>[(E(),le(it(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(E(),D("span",{key:1,"aria-hidden":!b.value},Ce(e.activeText),9,Yq)):re("v-if",!0)])],2)):re("v-if",!0)],2))}}),Xq=Gq;const Jq=st(Xq),Tp=function(e){return e.target?.closest("td")},Zq=function(e,t,n,a,o){if(!t&&!a&&(!o||we(o)&&!o.length))return e;Ae(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const r=a?null:function(l,u){return o?kS(Dn(o),c=>Ae(c)?yn(l,c):c(l,u,e)):(t!=="$key"&&ot(l)&&"$value"in l&&(l=l.$value),[ot(l)?t?yn(l,t):null:l])},s=function(l,u){if(a)return a(l.value,u.value);for(let c=0,d=l.key?.length??0;cu.key?.[c])return 1}return 0};return e.map((l,u)=>({value:l,index:u,key:r?r(l,u):null})).sort((l,u)=>{let c=s(l,u);return c||(c=l.index-u.index),c*+n}).map(l=>l.value)},sx=function(e,t){let n=null;return e.columns.forEach(a=>{a.id===t&&(n=a)}),n},Qq=function(e,t){let n=null;for(let a=0;a{if(!e)throw new Error("Row is required when get row identity");if(Ae(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let a=e;for(const o of n)a=a[o];return`${a}`}else if(Fe(t))return t.call(null,e);return""},vl=function(e,t,n=!1,a="children"){const o=e||[],r={};return o.forEach((s,l)=>{if(r[Cn(s,t)]={row:s,index:l},n){const u=s[a];we(u)&&Object.assign(r,vl(u,t,!0,a))}}),r};function eY(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(Nt(t,a)){const o=t[a];Rt(o)||(n[a]=o)}return n}function ug(e){return e===""||Rt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function lx(e){return e===""||Rt(e)||(e=ug(e),Number.isNaN(e)&&(e=80)),e}function tY(e){return Be(e)?e:Ae(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function nY(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function sl(e,t,n,a,o,r,s){let l=r??0,u=!1;const d=(()=>{if(!s)return e.indexOf(t);const v=Cn(t,s);return e.findIndex(m=>Cn(m,s)===v)})(),f=d!==-1,p=o?.call(null,t,l),g=v=>{v==="add"?e.push(t):e.splice(d,1),u=!0},h=v=>{let m=0;const b=a?.children&&v[a.children];return b&&we(b)&&(m+=b.length,b.forEach(w=>{m+=h(w)})),m};return(!o||p)&&(Wt(n)?n&&!f?g("add"):!n&&f&&g("remove"):g(f?"remove":"add")),!a?.checkStrictly&&a?.children&&we(t[a.children])&&t[a.children].forEach(v=>{const m=sl(e,v,n??!f,a,o,l+1,s);l+=h(v)+1,m&&(u=m)}),u}function aY(e,t,n="children",a="hasChildren",o=!1){const r=l=>!(we(l)&&l.length);function s(l,u,c){t(l,u,c),u.forEach(d=>{if(d[a]&&o){t(d,null,c+1);return}const f=d[n];r(f)||s(d,f,c+1)})}e.forEach(l=>{if(l[a]&&o){t(l,null,0);return}const u=l[n];r(u)||s(l,u,0)})}const oY=(e,t,n,a)=>{const o={strategy:"fixed",...e.popperOptions},r=Fe(a?.tooltipFormatter)?a.tooltipFormatter({row:n,column:a,cellValue:Wr(n,a.property).value}):void 0;return Zt(r)?{slotContent:r,content:null,...e,popperOptions:o}:{slotContent:null,content:r??t,...e,popperOptions:o}};let Ca=null;function rY(e,t,n,a,o,r){const s=oY(e,t,n,a),l={...s,slotContent:void 0};if(Ca?.trigger===o){const g=Ca.vm?.component;ES(g?.props,l),g&&s.slotContent&&(g.slots.content=()=>[s.slotContent]);return}Ca?.();const u=r?.refs.tableWrapper,c=u?.dataset.prefix,d=X(Wn,{virtualTriggering:!0,virtualRef:o,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...l},s.slotContent?{content:()=>s.slotContent}:void 0);d.appContext={...r.appContext,...r};const f=document.createElement("div");Yr(d,f),d.component.exposed.onOpen();const p=u?.querySelector(`.${c}-scrollbar__wrap`);Ca=()=>{d.component?.exposed?.onClose&&d.component.exposed.onClose(),Yr(null,f);const g=Ca;p?.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,Ca=null},Ca.trigger=o??void 0,Ca.vm=d,p?.addEventListener("scroll",Ca)}function ix(e){return e.children?kS(e.children,ix):[e]}function t1(e,t){return e+t.colSpan}const ux=(e,t,n,a)=>{let o=0,r=e;const s=n.states.columns.value;if(a){const u=ix(a[e]);o=s.slice(0,s.indexOf(u[0])).reduce(t1,0),r=o+u.reduce(t1,0)-1}else o=e;let l;switch(t){case"left":r=s.length-n.states.rightFixedLeafColumnsLength.value&&(l="right");break;default:r=s.length-n.states.rightFixedLeafColumnsLength.value&&(l="right")}return l?{direction:l,start:o,after:r}:{}},cg=(e,t,n,a,o,r=0)=>{const s=[],{direction:l,start:u,after:c}=ux(t,n,a,o);if(l){const d=l==="left";s.push(`${e}-fixed-column--${l}`),d&&c+r===a.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!d&&u-r===a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function n1(e,t){return e+(Qd(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const dg=(e,t,n,a)=>{const{direction:o,start:r=0,after:s=0}=ux(e,t,n,a);if(!o)return;const l={},u=o==="left",c=n.states.columns.value;return u?l.left=c.slice(0,r).reduce(n1,0):l.right=c.slice(s+1).reverse().reduce(n1,0),l},Ml=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function cx(e){return e.some(t=>Zt(t)?!(t.type===kn||t.type===Ve&&!cx(t.children)):!0)?e:null}function sY(e){const t=dt(),n=M(!1),a=M([]),o=(c,d)=>{const f=t.store.states.rowExpandable.value;return f?.(c,d)??!0};return{updateExpandRows:()=>{const c=e.data.value||[],d=e.rowKey.value;if(n.value)a.value=t.store.states.rowExpandable.value?c.filter(o):c.slice();else if(d){const f=vl(a.value,d);a.value=c.filter((p,g)=>!!f[Cn(p,d)]&&o(p,g))}else a.value=[]},toggleRowExpansion:(c,d)=>{const f=(e.data.value||[]).indexOf(c);f>-1&&!o(c,f)||sl(a.value,c,d,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,a.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const d=e.data.value||[],f=e.rowKey.value,p=vl(d,f);a.value=c.reduce((g,h)=>{const v=p[h];return v&&o(v.row,v.index)&&g.push(v.row),g},[])},isRowExpanded:c=>{const d=e.rowKey.value;return d?!!vl(a.value,d)[Cn(c,d)]:a.value.includes(c)},states:{expandRows:a,defaultExpandAll:n}}}function lY(e){const t=dt(),n=M(null),a=M(null),o=c=>{t.store.assertRowKey(),n.value=c,s(c)},r=()=>{n.value=null},s=c=>{const{data:d,rowKey:f}=e,p=a.value;let g=null;f.value&&(g=(i(d)||[]).find(h=>Cn(h,f.value)===c)??null),a.value=g??null,t.emit("current-change",a.value,p)};return{setCurrentRowKey:o,restoreCurrentRowKey:r,setCurrentRowByKey:s,updateCurrentRow:c=>{const d=a.value;if(c&&c!==d){a.value=c,t.emit("current-change",a.value,d);return}!c&&d&&(a.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=a.value;f&&!d.includes(f)?c?s(Cn(f,c)):(a.value=null,t.emit("current-change",null,f)):n.value&&(s(n.value),r())},states:{_currentRowKey:n,currentRow:a}}}function iY(e){const t=M([]),n=M({}),a=M(16),o=M(!1),r=M({}),s=M("hasChildren"),l=M("children"),u=M(!1),c=dt(),d=C(()=>e.rowKey.value?p(e.data.value||[]):{}),f=C(()=>{const S=e.rowKey.value,k=Object.keys(r.value),x={};return k.length&&k.forEach(O=>{if(r.value[O].length){const T={children:[]};r.value[O].forEach(I=>{const _=Cn(I,S);T.children.push(_),I[s.value]&&!x[_]&&(x[_]={children:[]})}),x[O]=T}}),x}),p=S=>{const k=e.rowKey.value,x={};return aY(S,(O,T,I)=>{const _=Cn(O,k);we(T)?x[_]={children:T.map(N=>Cn(N,k)),level:I}:o.value&&(x[_]={children:[],lazy:!0,level:I})},l.value,s.value,o.value),x},g=(S=!1,k)=>{k||(k=c.store?.states.defaultExpandAll.value);const x=d.value,O=f.value,T=Object.keys(x),I={};if(T.length){const _=i(n),N=[],$=(K,j)=>{if(S)return t.value?k||t.value.includes(j):!!(k||K?.expanded);{const W=k||t.value&&t.value.includes(j);return!!(K?.expanded||W)}};T.forEach(K=>{const j=_[K],W={...x[K]};if(W.expanded=$(j,K),W.lazy){const{loaded:A=!1,loading:P=!1}=j||{};W.loaded=!!A,W.loading=!!P,N.push(K)}I[K]=W});const B=Object.keys(O);o.value&&B.length&&N.length&&B.forEach(K=>{const j=_[K],W=O[K].children;if(N.includes(K)){if(I[K].children?.length!==0)throw new Error("[ElTable]children must be an empty array.");I[K].children=W}else{const{loaded:A=!1,loading:P=!1}=j||{};I[K]={lazy:!0,loaded:!!A,loading:!!P,expanded:$(j,K),children:W,level:void 0}}})}n.value=I,c.store?.updateTableScrollY()};pe(()=>t.value,()=>{g(!0)},{deep:!0}),pe(()=>d.value,()=>{g()}),pe(()=>f.value,()=>{g()});const h=S=>{t.value=S,g()},v=S=>o.value&&S&&"loaded"in S&&!S.loaded,m=(S,k)=>{c.store.assertRowKey();const x=e.rowKey.value,O=Cn(S,x),T=O&&n.value[O];if(O&&T&&"expanded"in T){const I=T.expanded;k=Rt(k)?!T.expanded:k,n.value[O].expanded=k,I!==k&&c.emit("expand-change",S,k),k&&v(T)&&w(S,O,T),c.store.updateTableScrollY()}},b=S=>{c.store.assertRowKey();const k=e.rowKey.value,x=Cn(S,k),O=n.value[x];v(O)?w(S,x,O):m(S,void 0)},w=(S,k,x)=>{const{load:O}=c.props;O&&!n.value[k].loaded&&(n.value[k].loading=!0,O(S,x,T=>{if(!we(T))throw new TypeError("[ElTable] data must be an array");n.value[k].loading=!1,n.value[k].loaded=!0,n.value[k].expanded=!0,T.length&&(r.value={...r.value,[k]:T}),c.emit("expand-change",S,!0)}))};return{loadData:w,loadOrToggle:b,toggleTreeExpansion:m,updateTreeExpandKeys:h,updateTreeData:g,updateKeyChildren:(S,k)=>{const{lazy:x,rowKey:O}=c.props;if(x){if(!O)throw new Error("[Table] rowKey is required in updateKeyChild");r.value[S]&&(r.value={...r.value,[S]:k})}},normalize:p,states:{expandRowKeys:t,treeData:n,indent:a,lazy:o,lazyTreeNodeMap:r,lazyColumnIdentifier:s,childrenColumnName:l,checkStrictly:u}}}const uY=(e,t)=>{const n=t.sortingColumn;return!n||Ae(n.sortable)?e:Zq(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Nc=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Nc(n.children)):t.push(n)}),t};function cY(){const e=dt(),{size:t}=Pn(e.proxy?.$props),n=M(null),a=M([]),o=M([]),r=M(!1),s=M([]),l=M([]),u=M([]),c=M([]),d=M([]),f=M([]),p=M([]),g=M([]),h=[],v=M(0),m=M(0),b=M(0),w=M(!1),y=M([]),S=M({}),k=M(!1),x=M(!1),O=M(null),T=M(null),I=M({}),_=M(null),N=M(null),$=M(null),B=M(null),K=M(null),j=C(()=>n.value?vl(y.value,n.value):void 0),W=ie=>{const{childrenColumnName:xe,lazyTreeNodeMap:Ue}=e.store.states,et=ie[xe.value]??[];if(!n.value)return et;const bt=Cn(ie,n.value);return[...Ue.value?.[bt]??[],...et]};pe(a,()=>{e.state&&(F(!1),e.props.tableLayout==="auto"&&e.refs.tableHeaderRef?.updateFixedColumnStyle())},{deep:!0});const A=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},P=ie=>{ie.children?.forEach(xe=>{xe.fixed=ie.fixed,P(xe)})},V=()=>{s.value.forEach(Et=>{P(Et)}),c.value=s.value.filter(Et=>[!0,"left"].includes(Et.fixed));const ie=s.value.find(Et=>Et.type==="selection");let xe;ie&&ie.fixed!=="right"&&!c.value.includes(ie)&&s.value.indexOf(ie)===0&&c.value.length&&(c.value.unshift(ie),xe=!0),d.value=s.value.filter(Et=>Et.fixed==="right");const Ue=s.value.filter(Et=>(xe?Et.type!=="selection":!0)&&!Et.fixed);l.value=Array.from(c.value).concat(Ue).concat(d.value);const et=Nc(Ue),bt=Nc(c.value),vt=Nc(d.value);v.value=et.length,m.value=bt.length,b.value=vt.length,u.value=Array.from(bt).concat(et).concat(vt),r.value=c.value.length>0||d.value.length>0},F=(ie,xe=!1)=>{ie&&V(),xe?e.state.doLayout():e.state.debouncedUpdateLayout()},H=ie=>j.value?!!j.value[Cn(ie,n.value)]:y.value.includes(ie),U=C(()=>{const ie=new Map;if(!n.value||!O.value)return ie;let xe=0;const Ue=et=>{we(et)&&et.forEach(bt=>{const vt=Cn(bt,n.value);ie.set(vt,xe),xe+=1;const Et=W(bt);Et.length&&Ue(Et)})};return Ue(a.value||[]),ie}),J=(ie={})=>{const{emitChange:xe=!0}=ie;if(gt.checkStrictly.value||!n.value){S.value={};return}const Ue=n.value,et=ie.rowIndexMap??U.value,bt=O.value,vt=new WeakMap,Et=tt=>{const Oe=vt.get(tt);if(Oe)return Oe;const Ke=Cn(tt,Ue);return vt.set(tt,Ke),Ke},Yt={},on=new Set(y.value.map(tt=>Et(tt))),At=[];let en=!1;const Ye=(tt,Oe,Ke)=>{const We=on.has(Oe);Ke&&!We?(At.push(tt),on.add(Oe),en=!0):!Ke&&We&&(on.delete(Oe),en=!0)},Ge=tt=>{let Oe=0,Ke=0;return we(tt)?(tt.forEach(We=>{const Xt=Et(We),cn=W(We);let On=0,Xn=0;if(cn.length){const to=Ge(cn);On=to.selectedCount,Xn=to.selectableCount}const ya=bt?bt.call(null,We,et.get(Xt)??0):!0;if(ya&&Xn>0){const to=On===Xn;!to&&On!==0&&(Yt[Xt]=!0),Ye(We,Xt,to)}ya&&(Ke+=1,on.has(Xt)&&(Oe+=1)),Oe+=On,Ke+=Xn}),{selectedCount:Oe,selectableCount:Ke}):{selectedCount:Oe,selectableCount:Ke}};if(Ge(a.value||[]),en){const tt=y.value.filter(Oe=>on.has(Et(Oe)));At.forEach(Oe=>{on.has(Et(Oe))&&tt.push(Oe)}),y.value=tt}S.value=Yt,en&&xe&&e.emit("selection-change",y.value?y.value.slice():[])},ee=()=>{w.value=!1;const ie=y.value;y.value=[],S.value={},ie.length&&e.emit("selection-change",[])},ae=()=>{let ie;if(n.value){ie=[];const xe=e?.store?.states?.childrenColumnName.value,Ue=vl(a.value,n.value,!0,xe),{lazyTreeNodeMap:et}=e.store.states;et.value&&Object.entries(et.value).forEach(([bt,vt])=>{Ue[bt]&&vt.forEach(Et=>{const Yt=Cn(Et,n.value);Ue[Yt]||(Ue[Yt]={row:Et,index:-1})})});for(const bt in j.value)Nt(j.value,bt)&&!Ue[bt]&&ie.push(j.value[bt].row)}else ie=y.value.filter(xe=>!a.value.includes(xe));if(ie.length){const xe=y.value.filter(Ue=>!ie.includes(Ue));y.value=xe,J({emitChange:!1}),e.emit("selection-change",[...xe])}},ce=()=>(y.value||[]).slice(),Z=(ie,xe,Ue)=>{if(!n.value||gt.checkStrictly.value||!gt.lazy.value)return;const{lazyTreeNodeMap:et,childrenColumnName:bt}=e.store.states,vt=Cn(ie,n.value),Et=et.value?.[vt]??[],Yt=ie[bt.value]??[],on={children:bt.value,checkStrictly:!1};for(const At of Et){const en=Ue.get(Cn(At,n.value))??0;sl(y.value,At,xe,on,O.value,en,n.value),Z(At,xe,Ue)}for(const At of Yt)Z(At,xe,Ue)},de=(ie,xe,Ue=!0,et=!1)=>{const bt={children:e?.store?.states?.childrenColumnName.value,checkStrictly:e?.store?.states?.checkStrictly.value};if(sl(y.value,ie,xe,bt,et?void 0:O.value,a.value.indexOf(ie),n.value)){gt.lazy.value&&!gt.checkStrictly.value?(Z(ie,xe??H(ie),U.value),J({emitChange:!1,rowIndexMap:U.value})):J({emitChange:!1});const vt=(y.value||[]).slice();Ue&&e.emit("select",vt,ie),e.emit("selection-change",vt)}},ue=()=>{const ie=x.value?!w.value:!(w.value||y.value.length);w.value=ie;let xe=!1,Ue=0;const et=e?.store?.states?.rowKey.value,{childrenColumnName:bt}=e.store.states,vt={children:bt.value,checkStrictly:!1};a.value.forEach((Yt,on)=>{const At=on+Ue;sl(y.value,Yt,ie,vt,O.value,At,et)&&(xe=!0),Ue+=L(Cn(Yt,et))});const Et=U.value;if(gt.lazy.value&&!gt.checkStrictly.value&&et)for(const Yt of Object.values(gt.lazyTreeNodeMap.value))for(const on of Yt){const At=Et.get(Cn(on,et))??0;sl(y.value,on,ie,vt,O.value,At,et)&&(xe=!0),Z(on,ie,Et)}J({emitChange:!1,rowIndexMap:Et}),xe&&e.emit("selection-change",y.value?[...y.value]:[]),e.emit("select-all",(y.value||[]).slice())},Y=()=>{if(a.value?.length===0){w.value=!1;return}let ie=0,xe=0;const Ue=bt=>{for(const vt of bt){const Et=O.value&&O.value.call(null,vt,ie);if(H(vt))xe++;else if(!O.value||Et)return!1;ie++;const Yt=W(vt);if(Yt.length&&!Ue(Yt))return!1}return!0},et=Ue(a.value||[]);w.value=xe===0?!1:et},Q=ie=>{if(!n.value)return!1;const xe=Cn(ie,n.value);return!!S.value[xe]},L=ie=>{if(!e||!e.store)return 0;const{treeData:xe}=e.store.states;let Ue=0;const et=xe.value[ie]?.children;return et&&(Ue+=et.length,et.forEach(bt=>{Ue+=L(bt)})),Ue},q=(ie,xe)=>{const Ue={};return Dn(ie).forEach(et=>{I.value[et.id]=xe,Ue[et.columnKey||et.id]=xe}),Ue},te=(ie,xe,Ue)=>{N.value&&N.value!==ie&&(N.value.order=null),N.value=ie,$.value=xe,B.value=Ue},fe=()=>{let ie=i(o);Object.keys(I.value).forEach(xe=>{const Ue=I.value[xe];if(!Ue||Ue.length===0)return;const et=sx({columns:u.value},xe);et&&et.filterMethod&&(ie=ie.filter(bt=>Ue.some(vt=>et.filterMethod.call(null,vt,bt,et))))}),_.value=ie},he=()=>{a.value=uY(_.value??[],{sortingColumn:N.value,sortProp:$.value,sortOrder:B.value})},ve=(ie=void 0)=>{ie?.filter||fe(),he()},Ie=ie=>{const{tableHeaderRef:xe}=e.refs;if(!xe)return;const Ue=Object.assign({},xe.filterPanels),et=Object.keys(Ue);if(et.length)if(Ae(ie)&&(ie=[ie]),we(ie)){const bt=ie.map(vt=>Qq({columns:u.value},vt));et.forEach(vt=>{const Et=bt.find(Yt=>Yt.id===vt);Et&&(Et.filteredValue=[])}),e.store.commit("filterChange",{column:bt,values:[],silent:!0,multi:!0})}else et.forEach(bt=>{const vt=u.value.find(Et=>Et.id===bt);vt&&(vt.filteredValue=[])}),I.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},Le=()=>{N.value&&(te(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:_e,toggleRowExpansion:ye,updateExpandRows:Te,states:be,isRowExpanded:Pe}=sY({data:a,rowKey:n}),{updateTreeExpandKeys:He,toggleTreeExpansion:Je,updateTreeData:Qe,updateKeyChildren:lt,loadOrToggle:Ze,states:gt}=iY({data:a,rowKey:n}),{updateCurrentRowData:Pt,updateCurrentRow:zt,setCurrentRowKey:nt,states:ft}=lY({data:a,rowKey:n}),me=ie=>{_e(ie),He(ie)},je=(ie,xe)=>{u.value.some(({type:Ue})=>Ue==="expand")?ye(ie,xe):Je(ie,xe)};return pe(()=>gt.checkStrictly.value,ie=>{ie?S.value={}:J({emitChange:!1}),Y()}),pe(()=>gt.lazyTreeNodeMap.value,()=>{if(!gt.lazy.value||gt.checkStrictly.value||!n.value)return;const ie=U.value,xe=y.value.length;for(const et of Object.keys(gt.lazyTreeNodeMap.value))j.value?.[et]&&Z(j.value[et].row,!0,ie);const Ue=y.value.length!==xe;J({emitChange:!Ue,rowIndexMap:ie}),Y(),Ue&&e.emit("selection-change",[...y.value])}),{assertRowKey:A,updateColumns:V,scheduleLayout:F,isSelected:H,clearSelection:ee,cleanSelection:ae,getSelectionRows:ce,toggleRowSelection:de,_toggleAllSelection:ue,toggleAllSelection:null,updateAllSelected:Y,updateSelectionByChildren:J,getRowIndeterminate:Q,updateFilters:q,updateCurrentRow:zt,updateSort:te,execFilter:fe,execSort:he,execQuery:ve,clearFilter:Ie,clearSort:Le,toggleRowExpansion:ye,setExpandRowKeysAdapter:me,setCurrentRowKey:nt,toggleRowExpansionAdapter:je,isRowExpanded:Pe,updateExpandRows:Te,updateCurrentRowData:Pt,loadOrToggle:Ze,updateTreeData:Qe,updateKeyChildren:lt,states:{tableSize:t,rowKey:n,data:a,_data:o,isComplex:r,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:p,rightFixedLeafColumns:g,updateOrderFns:h,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:b,isAllSelected:w,selection:y,selectionIndeterminate:S,reserveSelection:k,selectOnIndeterminate:x,selectable:O,rowExpandable:T,filters:I,filteredData:_,sortingColumn:N,sortProp:$,sortOrder:B,hoverRow:K,...be,...gt,...ft}}}function Jh(e,t){return e.map(n=>n.id===t.id?t:(n.children?.length&&(n.children=Jh(n.children,t)),n))}function Zh(e){e.forEach(t=>{t.no=t.getColumnIndex?.(),t.children?.length&&Zh(t.children)}),e.sort((t,n)=>t.no-n.no)}function dY(){const e=dt(),t=cY(),n=ge("table"),{t:a}=xt();return{ns:n,t:a,...t,mutations:{setData(l,u){const c=i(l._data)!==u;l.data.value=u,l._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),i(l.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateSelectionByChildren({emitChange:!1}),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(l,u,c,d){const f=i(l._columns);let p=[];c?(c&&!c.children&&(c.children=[]),c.children?.push(u),p=Jh(f,c)):(f.push(u),p=f),Zh(p),l._columns.value=p,l.updateOrderFns.push(d),u.type==="selection"&&(l.selectable.value=u.selectable,l.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(l,u){u.getColumnIndex?.()!==u.no&&(Zh(l._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(l,u,c,d){const f=i(l._columns)||[];if(c)c.children?.splice(c.children.findIndex(g=>g.id===u.id),1),Ne(()=>{c.children?.length===0&&delete c.children}),l._columns.value=Jh(f,c);else{const g=f.indexOf(u);g>-1&&(f.splice(g,1),l._columns.value=f)}const p=l.updateOrderFns.indexOf(d);p>-1&&l.updateOrderFns.splice(p,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(l,u){const{prop:c,order:d,init:f}=u;if(c){const p=i(l.columns).find(g=>g.property===c);p&&(p.order=d,e.store.updateSort(p,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(l,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=l,p=i(c),g=i(d),h=i(f);Qd(h)&&(l.sortingColumn.value=null,l.sortProp.value=null),e.store.execQuery({filter:!0}),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:p,prop:g,order:h}),e.store.updateTableScrollY()},filterChange(l,u){const{column:c,values:d,silent:f}=u,p=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",p),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection?.()},rowSelectedChanged(l,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(l,u){l.hoverRow.value=u},setCurrentRow(l,u){e.store.updateCurrentRow(u)}},commit:function(l,...u){const c=e.store.mutations;if(c[l])c[l].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${l}`)},updateTableScrollY:function(){Ne(()=>e.layout.updateScrollY.apply(e.layout))}}}const fg={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function fY(e,t){if(!e)throw new Error("Table is required.");const n=dY();return n.toggleAllSelection=Ho(n._toggleAllSelection,10),Object.keys(fg).forEach(a=>{dx(fx(t,a),a,n)}),pY(n,t),n}function pY(e,t){Object.keys(fg).forEach(n=>{pe(()=>fx(t,n),a=>{dx(a,n,e)})})}function dx(e,t,n){let a=e,o=fg[t];ot(o)&&(a=a||o.default,o=o.key),n.states[o].value=a}function fx(e,t){if(t.includes(".")){const n=t.split(".");let a=e;return n.forEach(o=>{a=a[o]}),a}else return e[t]}var hY=class{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.heightMap={},this.height=M(null),this.scrollX=M(!1),this.scrollY=M(!1),this.bodyWidth=M(null),this.fixedWidth=M(null),this.rightFixedWidth=M(null),this.gutterWidth=0;for(const t in e)Nt(e,t)&&(Gt(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(Qd(e))return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&t?.wrapRef){let n=!0;const a=this.scrollY.value;return n=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=n,a!==n}return!1}setHeight(e,t="height"){if(!Lt)return;const n=this.table.vnode.el;if(e=tY(e),this.height.value=Number(e),this.heightMap[t]=e,!n&&(e||e===0)){Ne(()=>{this.heightMap[t]===e&&this.setHeight(e,t)});return}n&&Be(e)?(n.style[t]=`${e}px`,this.updateElsHeight()):n&&Ae(e)&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;t.tagName!=="DIV";){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}updateColumnsWidth(){if(!Lt)return;const e=this.fit,t=this.table.vnode.el?.clientWidth;let n=0;const a=this.getFlattenColumns(),o=a.filter(l=>!Be(l.width));if(a.forEach(l=>{Be(l.width)&&l.realWidth&&(l.realWidth=null)}),o.length>0&&e){if(a.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=t){this.scrollX.value=!1;const l=t-n;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+l;else{const u=l/o.reduce((d,f)=>d+Number(f.minWidth||80),0);let c=0;o.forEach((d,f)=>{if(f===0)return;const p=Math.floor(Number(d.minWidth||80)*u);c+=p,d.realWidth=Number(d.minWidth||80)+p}),o[0].realWidth=Number(o[0].minWidth||80)+l-c}}else this.scrollX.value=!0,o.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>t,this.bodyWidth.value=n;const r=this.store.states.fixedColumns.value;if(r.length>0){let l=0;r.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach(t=>{switch(e){case"columns":t.state?.onColumnsChange(this);break;case"scrollable":t.state?.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}};const Co=Symbol("ElTable"),px=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,px(n.children))):t.push(n)}),t},hx=e=>{let t=1;const n=(o,r)=>{if(r&&(o.level=r.level+1,t{n(l,o),s+=l.colSpan}),o.colSpan=s}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const a=[];for(let o=0;o{o.children?(o.rowSpan=1,o.children.forEach(r=>r.isSubColumn=!0)):o.rowSpan=t-o.level+1,a[o.level-1].push(o)}),a};function vY(e){const t=$e(Co),n=C(()=>hx(e.store.states.originColumns.value));return{isGroup:C(()=>{const r=n.value.length>1;return r&&t&&(t.state.isGroup.value=!0),r}),toggleAllSelection:r=>{r.stopPropagation(),t?.store.commit("toggleAllSelection")},columnRows:n}}var mY=se({name:"ElTableFilterPanel",components:{ElCheckbox:mo,ElCheckboxGroup:qm,ElScrollbar:vo,ElTooltip:Wn,ElIcon:De,ArrowDown:qo,ArrowUp:ff},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Kt.appendTo},setup(e){const t=dt(),{t:n}=xt(),a=ge("table-filter"),o=t?.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const r=M(null),s=M(null),l=M(0),u=C(()=>e.column&&e.column.filters),c=C(()=>e.column&&e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),d=C({get:()=>(e.column?.filteredValue||[])[0],set:O=>{f.value&&(Pa(O)?f.value.splice(0,1):f.value.splice(0,1,O))}}),f=C({get(){return e.column?e.column.filteredValue||[]:[]},set(O){e.column&&e.upDataColumn?.("filteredValue",O)}}),p=C(()=>e.column?e.column.filterMultiple:!0),g=O=>O.value===d.value,h=()=>{r.value?.onClose()},v=()=>{w(f.value),h()},m=()=>{f.value=[],w(f.value),h()},b=(O,T)=>{d.value=O,l.value=T,Pa(O)?w([]):w(f.value),h()},w=O=>{e.store?.commit("filterChange",{column:e.column,values:O}),e.store?.updateAllSelected()},y=()=>{s.value?.focus(),!p.value&&k(),e.column&&e.upDataColumn?.("filterOpened",!0)},S=()=>{e.column&&e.upDataColumn?.("filterOpened",!1)},k=()=>{if(Pa(d)){l.value=0;return}const O=(u.value||[]).findIndex(T=>T.value===d.value);l.value=O>=0?O+1:0};return{multiple:p,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:v,handleReset:m,handleSelect:b,isPropAbsent:Pa,isActive:g,t:n,ns:a,tooltipRef:r,rootRef:s,checkedIndex:l,handleShowTooltip:y,handleHideTooltip:S,handleKeydown:O=>{const T=qt(O),I=(u.value?u.value.length:0)+1;let _=l.value,N=!0;switch(T){case Se.down:case Se.right:_=(_+1)%I;break;case Se.up:case Se.left:_=(_-1+I)%I;break;case Se.tab:h(),N=!1;break;case Se.enter:case Se.space:if(_===0)b(null,0);else{const $=(u.value||[])[_-1];$.value&&b($.value,_)}break;default:N=!1;break}N&&O.preventDefault(),l.value=_,s.value?.querySelector(`.${a.e("list-item")}:nth-child(${_+1})`)?.focus()}}}});const gY=["disabled"],bY=["tabindex","aria-checked"],yY=["tabindex","aria-checked","onClick"],wY=["aria-label"];function SY(e,t,n,a,o,r){const s=Mt("el-checkbox"),l=Mt("el-checkbox-group"),u=Mt("el-scrollbar"),c=Mt("arrow-up"),d=Mt("arrow-down"),f=Mt("el-icon"),p=Mt("el-tooltip");return E(),le(p,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:ne(()=>[e.multiple?(E(),D("div",{key:0,ref:"rootRef",tabindex:"-1",class:R(e.ns.e("multiple"))},[z("div",{class:R(e.ns.e("content"))},[X(u,{"wrap-class":e.ns.e("wrap")},{default:ne(()=>[X(l,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:R(e.ns.e("checkbox-group"))},{default:ne(()=>[(E(!0),D(Ve,null,kt(e.filters,g=>(E(),le(s,{key:g.value,value:g.value},{default:ne(()=>[wt(Ce(g.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),z("div",{class:R(e.ns.e("bottom"))},[z("button",{class:R(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},Ce(e.t("el.table.confirmFilter")),11,gY),z("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},Ce(e.t("el.table.resetFilter")),1)],2)],2)):(E(),D("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:R(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...g)=>e.handleKeydown&&e.handleKeydown(...g))},[z("li",{role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=g=>e.handleSelect(null,0))},Ce(e.t("el.table.clearFilter")),11,bY),(E(!0),D(Ve,null,kt(e.filters,(g,h)=>(E(),D("li",{key:g.value,role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),tabindex:e.checkedIndex===h+1?0:-1,"aria-checked":e.isActive(g),onClick:v=>e.handleSelect(g.value,h+1)},Ce(g.text),11,yY))),128))],34))]),default:ne(()=>[z("button",{type:"button",class:R(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:e.column?.label||""})},[X(f,null,{default:ne(()=>[oe(e.$slots,"filter-icon",{},()=>[e.column?.filterOpened?(E(),le(c,{key:0})):(E(),le(d,{key:1}))])]),_:3})],10,wY)]),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var CY=Mn(mY,[["render",SY]]);function pg(e){const t=dt();zd(()=>{n.value.addObserver(t)}),ht(()=>{a(n.value),o(n.value)}),bo(()=>{a(n.value),o(n.value)}),Vl(()=>{n.value.removeObserver(t)});const n=C(()=>{const r=e.layout;if(!r)throw new Error("Can not find table layout.");return r}),a=r=>{const s=e.vnode.el?.querySelectorAll("colgroup > col")||[];if(!s.length)return;const l=r.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,d=s.length;c{const s=e.vnode.el?.querySelectorAll("colgroup > col[name=gutter]")||[];for(let u=0,c=s.length;u{v.stopPropagation()},r=(v,m)=>{!m.filters&&m.sortable?h(v,m,!1):m.filterable&&!m.sortable&&o(v),a?.emit("header-click",m,v)},s=(v,m)=>{a?.emit("header-contextmenu",m,v)},l=M(null),u=M(!1),c=M(),d=(v,m)=>{if(Lt&&!(m.children&&m.children.length>0)&&l.value&&e.border&&l.value.id===m.id){u.value=!0;const b=a;t("set-drag-visible",!0);const w=b?.vnode.el?.getBoundingClientRect().left,y=n?.vnode?.el?.querySelector(`th.${m.id}`),S=y.getBoundingClientRect(),k=S.left-w+30;Ua(y,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:S.right-w,startColumnLeft:S.left-w,tableLeft:w};const x=b?.refs.resizeProxy;x.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=I=>{const _=I.clientX-c.value.startMouseLeft,N=c.value.startLeft+_;x.style.left=`${Math.max(k,N)}px`},T=()=>{if(u.value){const{startColumnLeft:I,startLeft:_}=c.value;m.width=m.realWidth=Number.parseInt(x.style.left,10)-I,b?.emit("header-dragend",m.width,_-I,m,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,l.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",T),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ra(y,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",T)}},f=(v,m)=>{if(!e.border||m.children&&m.children.length>0)return;const b=v.target,w=ka(b)?b.closest("th"):null;if(!w)return;const y=Ao(w,"is-sortable");if(y){const I=u.value?"col-resize":"";w.style.cursor=I;const _=w.querySelector(".caret-wrapper");_&&(_.style.cursor=I)}if(!m.resizable||u.value){l.value=null;return}const S=w.getBoundingClientRect(),k=w.parentNode?.lastElementChild===w,x=e.allowDragLastColumn||!k,O=S.width>12&&S.right-v.clientX<8&&x,T=O?"col-resize":"";document.body.style.cursor=T,l.value=O?m:null,y&&(w.style.cursor=T)},p=()=>{!Lt||u.value||(document.body.style.cursor="")},g=({order:v,sortOrders:m})=>{if(v==="")return m[0];const b=m.indexOf(v||null);return m[b>m.length-2?0:b+1]},h=(v,m,b)=>{v.stopPropagation();const w=m.order===b?null:b||g(m),y=v.target?.closest("th");if(y&&Ao(y,"noclick")){ra(y,"noclick");return}if(!m.sortable)return;const S=v.currentTarget;if(["ascending","descending"].some(I=>Ao(S,I)&&!m.sortOrders.includes(I)))return;const k=e.store.states;let x=k.sortProp.value,O;const T=k.sortingColumn.value;(T!==m||T===m&&Qd(T.order))&&(T&&(T.order=null),k.sortingColumn.value=m,x=m.property),w?O=m.order=w:O=m.order=null,k.sortProp.value=x,k.sortOrder.value=O,a?.store.commit("changeSortCondition")};return{handleHeaderClick:r,handleHeaderContextMenu:s,handleMouseDown:d,handleMouseMove:f,handleMouseOut:p,handleSortClick:h,handleFilterClick:o}}function EY(e){const t=$e(Co),n=ge("table");return{getHeaderRowStyle:l=>{const u=t?.props.headerRowStyle;return Fe(u)?u.call(null,{rowIndex:l}):u},getHeaderRowClass:l=>{const u=[],c=t?.props.headerRowClassName;return Ae(c)?u.push(c):Fe(c)&&u.push(c.call(null,{rowIndex:l})),u.join(" ")},getHeaderCellStyle:(l,u,c,d)=>{let f=t?.props.headerCellStyle??{};Fe(f)&&(f=f.call(null,{rowIndex:l,columnIndex:u,row:c,column:d}));const p=dg(u,d.fixed,e.store,c);return Ml(p,"left"),Ml(p,"right"),Object.assign({},f,p)},getHeaderCellClass:(l,u,c,d)=>{const f=cg(n.b(),u,d.fixed,e.store,c),p=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||p.push("is-leaf"),d.sortable&&p.push("is-sortable");const g=t?.props.headerCellClassName;return Ae(g)?p.push(g):Fe(g)&&p.push(g.call(null,{rowIndex:l,columnIndex:u,row:c,column:d})),p.push(n.e("cell")),p.filter(h=>!!h).join(" ")}}}var xY=se({name:"ElTableHeader",components:{ElCheckbox:mo},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=dt(),a=$e(Co),o=ge("table"),r=M({}),{onColumnsChange:s,onScrollableChange:l}=pg(a),u=a?.props.tableLayout==="auto",c=Dt(new Map),d=M();let f;const p=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach(($,B)=>{const K=d.value.querySelector(`.${B.replace(/\s/g,".")}`);K&&($.width=K.getBoundingClientRect().width||$.width)}),c.clear())})};pe(c,p),Vt(()=>{f&&(clearTimeout(f),f=void 0)}),ht(async()=>{await Ne(),await Ne();const{prop:$,order:B}=e.defaultSort;a?.store.commit("sort",{prop:$,order:B,init:!0}),p()});const{handleHeaderClick:g,handleHeaderContextMenu:h,handleMouseDown:v,handleMouseMove:m,handleMouseOut:b,handleSortClick:w,handleFilterClick:y}=kY(e,t),{getHeaderRowStyle:S,getHeaderRowClass:k,getHeaderCellStyle:x,getHeaderCellClass:O}=EY(e),{isGroup:T,toggleAllSelection:I,columnRows:_}=vY(e),{t:N}=xt();return n.state={onColumnsChange:s,onScrollableChange:l},n.filterPanels=r,{ns:o,t:N,filterPanels:r,onColumnsChange:s,onScrollableChange:l,columnRows:_,getHeaderRowClass:k,getHeaderRowStyle:S,getHeaderCellClass:O,getHeaderCellStyle:x,handleHeaderClick:g,handleHeaderContextMenu:h,handleMouseDown:v,handleMouseMove:m,handleMouseOut:b,handleSortClick:w,handleFilterClick:y,isGroup:T,toggleAllSelection:I,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:p}},render(){const{ns:e,t,isGroup:n,columnRows:a,getHeaderCellStyle:o,getHeaderCellClass:r,getHeaderRowClass:s,getHeaderRowStyle:l,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:p,handleMouseOut:g,store:h,$parent:v,saveIndexSelection:m,isTableLayoutAuto:b}=this;let w=1;return qe("thead",{ref:"theadRef",class:e.is("group",n)},a.map((y,S)=>qe("tr",{class:s(S),key:S,style:l(S)},y.map((k,x)=>{k.rowSpan>w&&(w=k.rowSpan);const O=r(S,x,y,k);return b&&k.fixed&&m.set(O,k),qe("th",{class:O,colspan:k.colSpan,key:`${k.id}-thead`,rowspan:k.rowSpan,scope:k.colSpan>1?"colgroup":"col",ariaSort:k.sortable?k.order:void 0,style:o(S,x,y,k),onClick:T=>{T.currentTarget?.classList.contains("noclick")||u(T,k)},onContextmenu:T=>c(T,k),onMousedown:T=>d(T,k),onMousemove:T=>f(T,k),onMouseout:g},[qe("div",{class:["cell",k.filteredValue&&k.filteredValue.length>0?"highlight":""]},[k.renderHeader?k.renderHeader({column:k,$index:x,store:h,_self:v}):k.label,k.sortable&&qe("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:k.label||""}),onClick:T=>p(T,k)},[qe("i",{onClick:T=>p(T,k,"ascending"),class:"sort-caret ascending"}),qe("i",{onClick:T=>p(T,k,"descending"),class:"sort-caret descending"})]),k.filterable&&qe(CY,{store:h,placement:k.filterPlacement||"bottom-start",appendTo:v?.appendFilterPanelTo,column:k,upDataColumn:(T,I)=>{k[T]=I}},{"filter-icon":()=>k.renderFilterIcon?k.renderFilterIcon({filterOpened:k.filterOpened}):null})])])}))))}});function TY(e){const t=$e(Co),n=M(""),a=M(qe("div")),o=(h,v,m)=>{const b=t,w=Tp(h);let y=null;const S=b?.vnode.el?.dataset.prefix;w&&(y=e1({columns:e.store?.states.columns.value??[]},w,S),y&&b?.emit(`cell-${m}`,v,y,w,h)),b?.emit(`row-${m}`,v,y,h)},r=(h,v)=>{o(h,v,"dblclick")},s=(h,v)=>{e.store?.commit("setCurrentRow",v),o(h,v,"click")},l=(h,v)=>{o(h,v,"contextmenu")},u=Ho(h=>{e.store?.commit("setHoverRow",h)},30),c=Ho(()=>{e.store?.commit("setHoverRow",null)},30),d=h=>{const v=window.getComputedStyle(h,null);return{left:Number.parseInt(v.paddingLeft,10)||0,right:Number.parseInt(v.paddingRight,10)||0,top:Number.parseInt(v.paddingTop,10)||0,bottom:Number.parseInt(v.paddingBottom,10)||0}},f=(h,v,m)=>{let b=v?.target?.parentNode;for(;h>1&&(b=b?.nextSibling,!(!b||b.nodeName!=="TR"));)m(b,"hover-row hover-fixed-row"),h--};return{handleDoubleClick:r,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(h,v,m)=>{if(!t)return;const b=t,w=Tp(h),y=b?.vnode.el?.dataset.prefix;let S=null;if(w){if(S=e1({columns:e.store?.states.columns.value??[]},w,y),!S)return;w.rowSpan>1&&f(w.rowSpan,h,Ua);const A=b.hoverState={cell:w,column:S,row:v};b?.emit("cell-mouse-enter",A.row,A.column,A.cell,h)}if(!m){Ca?.trigger===w&&Ca?.();return}const k=h.target.querySelector(".cell");if(!(Ao(k,`${y}-tooltip`)&&k.childNodes.length&&k.textContent?.trim()))return;const x=document.createRange();x.setStart(k,0),x.setEnd(k,k.childNodes.length);const{width:O,height:T}=x.getBoundingClientRect(),{width:I,height:_}=k.getBoundingClientRect(),{top:N,left:$,right:B,bottom:K}=d(k),j=$+B,W=N+K;Vo(O+j,I)||Vo(T+W,_)||Vo(k.scrollWidth,I)?rY(m,(w?.innerText||w?.textContent)??"",v,S,w,b):Ca?.trigger===w&&Ca?.()},handleCellMouseLeave:h=>{const v=Tp(h);if(!v)return;v.rowSpan>1&&f(v.rowSpan,h,ra);const m=t?.hoverState;t?.emit("cell-mouse-leave",m?.row,m?.column,m?.cell,h)},tooltipContent:n,tooltipTrigger:a}}function OY(e){const t=$e(Co),n=ge("table");return{getRowStyle:(c,d)=>{const f=t?.props.rowStyle;return Fe(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{const p=[n.e("row")];t?.props.highlightCurrentRow&&c===e.store?.states.currentRow.value&&p.push("current-row"),e.stripe&&f%2===1&&p.push(n.em("row","striped"));const g=t?.props.rowClassName;return Ae(g)?p.push(g):Fe(g)&&p.push(g.call(null,{row:c,rowIndex:d})),p},getCellStyle:(c,d,f,p)=>{const g=t?.props.cellStyle;let h=g??{};Fe(g)&&(h=g.call(null,{rowIndex:c,columnIndex:d,row:f,column:p}));const v=dg(d,e?.fixed,e.store);return Ml(v,"left"),Ml(v,"right"),Object.assign({},h,v)},getCellClass:(c,d,f,p,g)=>{const h=cg(n.b(),d,e?.fixed,e.store,void 0,g),v=[p.id,p.align,p.className,...h],m=t?.props.cellClassName;return Ae(m)?v.push(m):Fe(m)&&v.push(m.call(null,{rowIndex:c,columnIndex:d,row:f,column:p})),v.push(n.e("cell")),v.filter(b=>!!b).join(" ")},getSpan:(c,d,f,p)=>{let g=1,h=1;const v=t?.props.spanMethod;if(Fe(v)){const m=v({row:c,column:d,rowIndex:f,columnIndex:p});we(m)?(g=m[0],h=m[1]):ot(m)&&(g=m.rowspan,h=m.colspan)}return{rowspan:g,colspan:h}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const p=c.map(({realWidth:g,width:h})=>g||h).slice(f,f+d);return Number(p.reduce((g,h)=>Number(g)+Number(h),-1))}}}const _Y=["colspan","rowspan"];var RY=se({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(E(),D("td",{colspan:e.colspan,rowspan:e.rowspan},[oe(t.$slots,"default")],8,_Y))}}),IY=RY;function $Y(e){const t=$e(Co),n=ge("table"),{handleDoubleClick:a,handleClick:o,handleContextMenu:r,handleMouseEnter:s,handleMouseLeave:l,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=TY(e),{getRowStyle:p,getRowClass:g,getCellStyle:h,getCellClass:v,getSpan:m,getColspanRealWidth:b}=OY(e);let w=-1;const y=C(()=>e.store?.states.columns.value.findIndex(({type:T})=>T==="default")),S=(T,I)=>{const _=t?.props?.rowKey;return _?Cn(T,_):I},k=(T,I,_,N=!1)=>{const{tooltipEffect:$,tooltipOptions:B,store:K}=e,{indent:j,columns:W}=K.states,A=[];let P=!0;return _&&(A.push(n.em("row",`level-${_.level}`)),P=!!_.display),I===0&&(w=-1),e.stripe&&P&&w++,A.push(...g(T,I,w)),qe("tr",{style:[P?null:{display:"none"},p(T,I)],class:A,key:S(T,I),onDblclick:V=>a(V,T),onClick:V=>o(V,T),onContextmenu:V=>r(V,T),onMouseenter:()=>s(I),onMouseleave:l},W.value.map((V,F)=>{const{rowspan:H,colspan:U}=m(T,V,I,F);if(!H||!U)return null;const J=Object.assign({},V);J.realWidth=b(W.value,U,F);const ee={store:K,_self:e.context||t,column:J,row:T,$index:I,cellIndex:F,expanded:N};F===y.value&&_&&(ee.treeNode={indent:_.level&&_.level*j.value,level:_.level},Wt(_.expanded)&&(ee.treeNode.expanded=_.expanded,"loading"in _&&(ee.treeNode.loading=_.loading),"noLazyChildren"in _&&(ee.treeNode.noLazyChildren=_.noLazyChildren)));const ae=`${S(T,I)},${F}`,ce=J.columnKey||J.rawColumnKey||"",Z=V.showOverflowTooltip&&ES({effect:$},B,V.showOverflowTooltip);return qe(IY,{style:h(I,F,T,V),class:v(I,F,T,V,U-1),key:`${ce}${ae}`,rowspan:H,colspan:U,onMouseenter:de=>u(de,T,Z),onMouseleave:c},{default:()=>x(F,V,ee)})}))},x=(T,I,_)=>I.renderCell(_);return{wrappedRowRender:(T,I)=>{const _=e.store,{isRowExpanded:N,assertRowKey:$}=_,{treeData:B,lazyTreeNodeMap:K,childrenColumnName:j,rowKey:W}=_.states,A=_.states.columns.value;if(A.some(({type:P})=>P==="expand")){const P=N(T),V=k(T,I,void 0,P),F=t?.renderExpanded;if(!F)return console.error("[Element Error]renderExpanded is required."),V;const H=[[V]];return(t.props.preserveExpandedContent||P)&&H[0].push(qe("tr",{key:`expanded-row__${V.key}`,style:{display:P?"":"none"}},[qe("td",{colspan:A.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[F({row:T,$index:I,store:_,expanded:P})])])),H}else if(Object.keys(B.value).length){$();const P=Cn(T,W.value);let V=B.value[P],F=null;V&&(F={expanded:V.expanded,level:V.level,display:!0,noLazyChildren:void 0,loading:void 0},Wt(V.lazy)&&(F&&Wt(V.loaded)&&V.loaded&&(F.noLazyChildren=!(V.children&&V.children.length)),F.loading=V.loading));const H=[k(T,I,F??void 0)];if(V){let U=0;const J=(ee,ae)=>{ee&&ee.length&&ae&&ee.forEach(ce=>{const Z={display:ae.display&&ae.expanded,level:ae.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=Cn(ce,W.value);if(Pa(de))throw new Error("For nested data item, row-key is required.");V={...B.value[de]},V&&(Z.expanded=V.expanded,V.level=V.level||Z.level,V.display=!!(V.expanded&&Z.display),Wt(V.lazy)&&(Wt(V.loaded)&&V.loaded&&(Z.noLazyChildren=!(V.children&&V.children.length)),Z.loading=V.loading)),U++,H.push(k(ce,I+U,Z)),V&&J(K.value[de]||ce[j.value],V)})};V.display=!0,J(K.value[P]||T[j.value],V)}return H}else return k(T,I,void 0)},tooltipContent:d,tooltipTrigger:f}}const NY={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var MY=se({name:"ElTableBody",props:NY,setup(e){const t=dt(),n=$e(Co),a=ge("table"),{wrappedRowRender:o,tooltipContent:r,tooltipTrigger:s}=$Y(e),{onColumnsChange:l,onScrollableChange:u}=pg(n),c=[];return pe(e.store?.states.hoverRow,(d,f)=>{const p=t?.vnode.el,g=Array.from(p?.children||[]).filter(m=>m?.classList.contains(`${a.e("row")}`));let h=d;const v=g[h]?.childNodes;if(v?.length){let m=0;Array.from(v).reduce((b,w,y)=>(v[y]?.colSpan>1&&(m=v[y]?.colSpan),w.nodeName!=="TD"&&m===0&&b.push(y),m>0&&m--,b),[]).forEach(b=>{for(h=d;h>0;){const w=g[h-1]?.childNodes;if(w[b]&&w[b].nodeName==="TD"&&w[b].rowSpan>1){Ua(w[b],"hover-cell"),c.push(w[b]);break}h--}})}else c.forEach(m=>ra(m,"hover-cell")),c.length=0;!e.store?.states.isComplex.value||!Lt||Oa(()=>{const m=g[f],b=g[d];m&&!m.classList.contains("hover-fixed-row")&&ra(m,"hover-row"),b&&Ua(b,"hover-row")})}),Vl(()=>{Ca?.()}),{ns:a,onColumnsChange:l,onScrollableChange:u,wrappedRowRender:o,tooltipContent:r,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this;return qe("tbody",{tabIndex:-1},[(t?.states.data.value||[]).reduce((n,a)=>n.concat(e(a,n.length)),[])])}});function PY(){const e=$e(Co)?.store;return{leftFixedLeafCount:C(()=>e?.states.fixedLeafColumnsLength.value??0),rightFixedLeafCount:C(()=>e?.states.rightFixedColumns.value.length??0),columnsCount:C(()=>e?.states.columns.value.length??0),leftFixedCount:C(()=>e?.states.fixedColumns.value.length??0),rightFixedCount:C(()=>e?.states.rightFixedColumns.value.length??0),columns:C(()=>e?.states.columns.value??[])}}function AY(e){const{columns:t}=PY(),n=ge("table");return{getCellClasses:(r,s)=>{const l=r[s],u=[n.e("cell"),l.id,l.align,l.labelClassName,...cg(n.b(),s,l.fixed,e.store)];return l.className&&u.push(l.className),l.children||u.push(n.is("leaf")),u},getCellStyles:(r,s)=>{const l=dg(s,r.fixed,e.store);return Ml(l,"left"),Ml(l,"right"),l},columns:t}}var LY=se({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=$e(Co),n=ge("table"),{getCellClasses:a,getCellStyles:o,columns:r}=AY(e),{onScrollableChange:s,onColumnsChange:l}=pg(t);return{ns:n,onScrollableChange:s,onColumnsChange:l,getCellClasses:a,getCellStyles:o,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:a,sumText:o}=this,r=this.store.states.data.value;let s=[];return a?s=a({columns:e,data:r}):e.forEach((l,u)=>{if(u===0){s[u]=o;return}const c=r.map(g=>Number(g[l.property])),d=[];let f=!0;c.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const h=`${g}`.split(".")[1];d.push(h?h.length:0)}});const p=Math.max.apply(null,d);f?s[u]="":s[u]=c.reduce((g,h)=>{const v=Number(h);return Number.isNaN(+v)?g:Number.parseFloat((g+h).toFixed(Math.min(p,20)))},0)}),qe(qe("tfoot",[qe("tr",{},[...e.map((l,u)=>qe("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,u),style:t(l,u)},[qe("div",{class:["cell",l.labelClassName]},[s[u]])]))])]))}});function DY(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,p,g=!0)=>{e.toggleRowSelection(f,p,!1,g),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,p)=>{e.toggleRowExpansionAdapter(f,p)},clearSort:()=>{e.clearSort()},sort:(f,p)=>{e.commit("sort",{prop:f,order:p})},updateKeyChildren:(f,p)=>{e.updateKeyChildren(f,p)}}}function BY(e,t,n,a){const o=M(!1),r=M(null),s=M(!1),l=j=>{s.value=j},u=M({width:null,height:null,headerHeight:null}),c=M(!1),d={display:"inline-block",verticalAlign:"middle"},f=M(),p=M(0),g=M(0),h=M(0),v=M(0),m=M(0);pe(()=>e.height,j=>{t.setHeight(j??null)},{immediate:!0}),pe(()=>e.maxHeight,j=>{t.setMaxHeight(j??null)},{immediate:!0}),pe(()=>[e.currentRowKey,n.states.rowKey],([j,W])=>{!i(W)||!i(j)||n.setCurrentRowKey(`${j}`)},{immediate:!0}),pe(()=>e.data,j=>{a.store.commit("setData",j)},{immediate:!0,deep:!0}),la(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},w=(j,W)=>{const{pixelX:A,pixelY:P}=W;Math.abs(A)>=Math.abs(P)&&(a.refs.bodyWrapper.scrollLeft+=W.pixelX/5)},y=C(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),S=C(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),k=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(I)};ht(async()=>{await Ne(),n.updateColumns(),_(),requestAnimationFrame(k);const j=a.vnode.el,W=a.refs.headerWrapper;e.flexible&&j&&j.parentElement&&(j.parentElement.style.minWidth="0"),u.value={width:f.value=j.offsetWidth,height:j.offsetHeight,headerHeight:e.showHeader&&W?W.offsetHeight:null},n.states.columns.value.forEach(A=>{A.filteredValue&&A.filteredValue.length&&a.store.commit("filterChange",{column:A,values:A.filteredValue,silent:!0})}),a.$ready=!0});const x=(j,W)=>{if(!j)return;const A=Array.from(j.classList).filter(P=>!P.startsWith("is-scrolling-"));A.push(t.scrollX.value?W:"is-scrolling-none"),j.className=A.join(" ")},O=j=>{const{tableWrapper:W}=a.refs;x(W,j)},T=j=>{const{tableWrapper:W}=a.refs;return!!(W&&W.classList.contains(j))},I=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const H="is-scrolling-none";T(H)||O(H);return}const j=a.refs.scrollBarRef.wrapRef;if(!j)return;const{scrollLeft:W,offsetWidth:A,scrollWidth:P}=j,{headerWrapper:V,footerWrapper:F}=a.refs;V&&(V.scrollLeft=W),F&&(F.scrollLeft=W),W>=P-A-1?O("is-scrolling-right"):O(W===0?"is-scrolling-left":"is-scrolling-middle")},_=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&Bt(a.refs.scrollBarRef.wrapRef,"scroll",I,{passive:!0}),e.fit?an(a.vnode.el,N):Bt(window,"resize",N),an(a.refs.tableInnerWrapper,()=>{N(),a.refs?.scrollBarRef?.update()}))},N=()=>{const j=a.vnode.el;if(!a.$ready||!j)return;let W=!1;const{width:A,height:P,headerHeight:V}=u.value,F=f.value=j.offsetWidth;A!==F&&(W=!0);const H=j.offsetHeight;(e.height||y.value)&&P!==H&&(W=!0);const U=e.tableLayout==="fixed"?a.refs.headerWrapper:a.refs.tableHeaderRef?.$el;e.showHeader&&U?.offsetHeight!==V&&(W=!0),p.value=a.refs.tableWrapper?.scrollHeight||0,h.value=U?.scrollHeight||0,v.value=a.refs.footerWrapper?.offsetHeight||0,m.value=a.refs.appendWrapper?.offsetHeight||0,g.value=p.value-h.value-v.value-m.value,W&&(u.value={width:F,height:H,headerHeight:e.showHeader&&U?.offsetHeight||0},k())},$=In(),B=C(()=>{const{bodyWidth:j,scrollY:W,gutterWidth:A}=t;return j.value?`${j.value-(W.value?A:0)}px`:""}),K=C(()=>e.maxHeight?"fixed":e.tableLayout);return{isHidden:o,renderExpanded:r,setDragVisible:l,isGroup:c,handleMouseLeave:b,handleHeaderFooterMousewheel:w,tableSize:$,emptyBlockStyle:C(()=>{if(e.data&&e.data.length)return;let j="100%";e.height&&g.value&&(j=`${g.value}px`);const W=f.value;return{width:W?`${W}px`:"",height:j}}),resizeProxyVisible:s,bodyWidth:B,resizeState:u,doLayout:k,tableBodyStyles:S,tableLayout:K,scrollbarViewStyle:d,scrollbarStyle:C(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${h.value+v.value}px)`}:{maxHeight:`${+e.maxHeight-h.value-v.value}px`}:{})}}function VY(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t=new MutationObserver(()=>{r.forEach(s=>s())}),t.observe(a,o)};ht(()=>{n()}),Vl(()=>{t?.disconnect()})}var FY={data:{type:Array,default:()=>[]},size:Nn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,rowExpandable:{type:Function},defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array,Boolean],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function vx(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:o})=>Rt(o))&&(n=[]);const a=o=>{const r={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?r.style={width:`${o.width}px`}:r.name=o.id,r};return qe("colgroup",{},n.map(o=>qe("col",a(o))))}vx.props=["columns","tableLayout"];const zY=()=>{const e=M(),t=(r,s)=>{const l=e.value;l&&l.scrollTo(r,s)},n=(r,s)=>{const l=e.value;l&&Be(s)&&["Top","Left"].includes(r)&&l[`setScroll${r}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:r=>n("Top",r),setScrollLeft:r=>n("Left",r)}};let HY=1;var KY=se({name:"ElTable",directives:{Mousewheel:EB},components:{TableHeader:xY,TableBody:MY,TableFooter:LY,ElScrollbar:vo,hColgroup:vx},props:FY,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=xt(),n=ge("table"),a=xr("table"),o=dt();St(Co,o);const r=fY(o,e);o.store=r;const s=new hY({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=s;const l=C(()=>(r.states.data.value||[]).length===0),{setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:p,toggleAllSelection:g,toggleRowExpansion:h,clearSort:v,sort:m,updateKeyChildren:b}=DY(r),{isHidden:w,renderExpanded:y,setDragVisible:S,isGroup:k,handleMouseLeave:x,handleHeaderFooterMousewheel:O,tableSize:T,emptyBlockStyle:I,resizeProxyVisible:_,bodyWidth:N,resizeState:$,doLayout:B,tableBodyStyles:K,tableLayout:j,scrollbarViewStyle:W,scrollbarStyle:A}=BY(e,s,r,o),{scrollBarRef:P,scrollTo:V,setScrollLeft:F,setScrollTop:H}=zY(),U=Ho(B,50),J=`${n.namespace.value}-table_${HY++}`;o.tableId=J,o.state={isGroup:k,resizeState:$,doLayout:B,debouncedUpdateLayout:U};const ee=C(()=>e.sumText??t("el.table.sumText")),ae=C(()=>e.emptyText??t("el.table.emptyText")),ce=C(()=>e.tooltipEffect??a.value?.tooltipEffect),Z=C(()=>e.tooltipOptions??a.value?.tooltipOptions),de=C(()=>hx(r.states.originColumns.value)[0]);return VY(o),Vt(()=>{U.cancel()}),{ns:n,layout:s,store:r,columns:de,handleHeaderFooterMousewheel:O,handleMouseLeave:x,tableId:J,tableSize:T,isHidden:w,isEmpty:l,renderExpanded:y,resizeProxyVisible:_,resizeState:$,isGroup:k,bodyWidth:N,tableBodyStyles:K,emptyBlockStyle:I,debouncedUpdateLayout:U,setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:p,toggleAllSelection:g,toggleRowExpansion:h,clearSort:v,doLayout:B,sort:m,updateKeyChildren:b,t,setDragVisible:S,context:o,computedSumText:ee,computedEmptyText:ae,computedTooltipEffect:ce,computedTooltipOptions:Z,tableLayout:j,scrollbarViewStyle:W,scrollbarStyle:A,scrollBarRef:P,scrollTo:V,setScrollLeft:F,setScrollTop:H,allowDragLastColumn:e.allowDragLastColumn}}});const WY=["data-prefix"],jY={ref:"hiddenColumns",class:"hidden-columns"};function UY(e,t,n,a,o,r){const s=Mt("hColgroup"),l=Mt("table-header"),u=Mt("table-body"),c=Mt("table-footer"),d=Mt("el-scrollbar"),f=Bv("mousewheel");return E(),D("div",{ref:"tableWrapper",class:R([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:ze(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p))},[z("div",{ref:"tableInnerWrapper",class:R(e.ns.e("inner-wrapper"))},[z("div",jY,[oe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ct((E(),D("div",{key:0,ref:"headerWrapper",class:R(e.ns.e("header-wrapper"))},[z("table",{ref:"tableHeader",class:R(e.ns.e("header")),style:ze(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[X(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),X(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),z("div",{ref:"bodyWrapper",class:R(e.ns.e("body-wrapper"))},[X(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=p=>e.$emit("scroll",p))},{default:ne(()=>[z("table",{ref:"tableBody",class:R(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:ze({width:e.bodyWidth,tableLayout:e.tableLayout})},[X(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(E(),le(l,{key:0,ref:"tableHeaderRef",class:R(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):re("v-if",!0),X(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.computedTooltipEffect,"tooltip-options":e.computedTooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(E(),le(c,{key:1,class:R(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):re("v-if",!0)],6),e.isEmpty?(E(),D("div",{key:0,ref:"emptyBlock",style:ze(e.emptyBlockStyle),class:R(e.ns.e("empty-block"))},[z("span",{class:R(e.ns.e("empty-text"))},[oe(e.$slots,"empty",{},()=>[wt(Ce(e.computedEmptyText),1)])],2)],6)):re("v-if",!0),e.$slots.append?(E(),D("div",{key:1,ref:"appendWrapper",class:R(e.ns.e("append-wrapper"))},[oe(e.$slots,"append")],2)):re("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?ct((E(),D("div",{key:1,ref:"footerWrapper",class:R(e.ns.e("footer-wrapper"))},[z("table",{class:R(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:ze(e.tableBodyStyles)},[X(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),X(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[$t,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),e.border||e.isGroup?(E(),D("div",{key:2,class:R(e.ns.e("border-left-patch"))},null,2)):re("v-if",!0)],2),ct(z("div",{ref:"resizeProxy",class:R(e.ns.e("column-resize-proxy"))},null,2),[[$t,e.resizeProxyVisible]])],46,WY)}var qY=Mn(KY,[["render",UY]]);const YY={selection:"table-column--selection",expand:"table__expand-column"},GY={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},XY=e=>YY[e]||"",JY={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return qe(mo,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection??void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:a}){return qe(mo,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),indeterminate:n.getRowIndeterminate(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return Be(a)?n=t+a:Fe(a)&&(n=a(t)),qe("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:a,$index:o}){const{ns:r}=n,s=[r.e("expand-icon")];!e.renderExpand&&a&&s.push(r.em("expand-icon","expanded"));const l=function(c){c.stopPropagation(),n.toggleRowExpansion(t)},u=n.states.rowExpandable.value?.(t,o)??!0;return u||s.push(r.is("disabled")),qe("button",{type:"button",disabled:!u,"aria-label":n.t(a?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":a,class:s,onClick:l},{default:()=>e.renderExpand?[e.renderExpand({expanded:a,expandable:u})]:[qe(De,null,{default:()=>[qe(sa)]})]})},sortable:!1,resizable:!1}};function ZY({row:e,column:t,$index:n}){const a=t.property,o=a&&Wr(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):o?.toString?.()||""}function QY({row:e,treeNode:t,store:n},a=!1){const{ns:o}=n;if(!t)return a?[qe("span",{class:o.e("placeholder")})]:null;const r=[],s=function(l){l.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&r.push(qe("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),Wt(t.expanded)&&!t.noLazyChildren){const l=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let u=sa;t.loading&&(u=ho),r.push(qe("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:l,onClick:s},{default:()=>[qe(De,{class:o.is("loading",t.loading)},{default:()=>[qe(u)]})]}))}else r.push(qe("span",{class:o.e("placeholder")}));return r}function a1(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function eG(e,t){const n=dt();return{registerComplexWatchers:()=>{const r=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},l=a1(r,s);Object.keys(l).forEach(u=>{const c=s[u];Nt(t,c)&&pe(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=ug(d)),c==="minWidth"&&u==="realMinWidth"&&(f=lx(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const p=c==="fixed";e.value.store.scheduleLayout(p)})})},registerNormalWatchers:()=>{const r=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],s=["showOverflowTooltip"],l={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=a1(r,l);Object.keys(u).forEach(d=>{const f=l[d];Nt(t,f)&&pe(()=>t[f],p=>{n.columnConfig.value[d]=p,(d==="filters"||d==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),s.forEach(d=>{Nt(e.value.props,d)&&pe(()=>e.value.props[d],f=>{n.columnConfig.value.type!=="selection"&&Rt(t[d])&&(n.columnConfig.value[d]=f)})});const c=xr("table");c.value&&Nt(c.value,"showOverflowTooltip")&&pe(()=>c.value?.showOverflowTooltip,d=>{n.columnConfig.value.type!=="selection"&&(!Rt(t.showOverflowTooltip)||!Rt(e.value.props.showOverflowTooltip)||(n.columnConfig.value.showOverflowTooltip=d))})}}}function tG(e,t,n){const a=dt(),o=M(""),r=M(!1),s=M(),l=M(),u=ge("table");la(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),la(()=>{l.value=e.headerAlign?`is-${e.headerAlign}`:s.value,l.value});const c=C(()=>{let S=a.vnode.vParent||a.parent;for(;S&&!S.tableId&&!S.columnId;)S=S.vnode.vParent||S.parent;return S}),d=C(()=>{const{store:S}=a.parent;if(!S)return!1;const{treeData:k}=S.states,x=k.value;return x&&Object.keys(x).length>0}),f=M(ug(e.width)),p=M(lx(e.minWidth)),g=S=>(f.value&&(S.width=f.value),p.value&&(S.minWidth=p.value),!f.value&&p.value&&(S.width=void 0),S.minWidth||(S.minWidth=80),S.realWidth=Number(Rt(S.width)?S.minWidth:S.width),S),h=S=>{const k=S.type,x=JY[k]||{};Object.keys(x).forEach(T=>{const I=x[T];T!=="className"&&!Rt(I)&&(S[T]=I)});const O=XY(k);if(O){const T=`${i(u.namespace)}-${O}`;S.className=S.className?`${S.className} ${T}`:T}return S},v=S=>{we(S)?S.forEach(x=>k(x)):k(S);function k(x){x?.type?.name==="ElTableColumn"&&(x.vParent=a)}};return{columnId:o,realAlign:s,isSubColumn:r,realHeaderAlign:l,columnOrTableParent:c,setColumnWidth:g,setColumnForcedProps:h,setColumnRenders:S=>{e.renderHeader?jt("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):S.type!=="selection"&&(S.renderHeader=x=>{if(a.columnConfig.value.label,t.header){const O=t.header(x);if(cx(O))return qe(Ve,O)}return wt(S.label)}),t["filter-icon"]&&(S.renderFilterIcon=x=>oe(t,"filter-icon",x)),t.expand&&(S.renderExpand=x=>oe(t,"expand",x));let k=S.renderCell;return S.type==="expand"?(S.renderCell=x=>qe("div",{class:"cell"},[k(x)]),n.value.renderExpanded=x=>t.default?t.default(x):t.default):(k=k||ZY,S.renderCell=x=>{let O=null;if(t.default){const $=t.default(x);O=$.some(B=>B.type!==kn)?$:k(x)}else O=k(x);const{columns:T}=n.value.store.states,I=T.value.findIndex($=>$.type==="default"),_=QY(x,d.value&&x.cellIndex===I),N={class:"cell",style:{}};return S.showOverflowTooltip&&(N.class=`${N.class} ${i(u.namespace)}-tooltip`,N.style={width:`${(x.column.realWidth||Number(x.column.width))-1}px`}),v(O),qe("div",N,[_,O])}),S},getPropsData:(...S)=>S.reduce((k,x)=>(we(x)&&x.forEach(O=>{k[O]=e[O]}),k),{}),getColumnElIndex:(S,k)=>Array.prototype.indexOf.call(S,k),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var nG={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let aG=1;var oG=se({name:"ElTableColumn",components:{ElCheckbox:mo},props:nG,setup(e,{slots:t}){const n=dt(),a=xr("table"),o=M({}),r=C(()=>{let S=n.parent;for(;S&&!S.tableId;)S=S.parent;return S}),{registerNormalWatchers:s,registerComplexWatchers:l}=eG(r,e),{columnId:u,isSubColumn:c,realHeaderAlign:d,columnOrTableParent:f,setColumnWidth:p,setColumnForcedProps:g,setColumnRenders:h,getPropsData:v,getColumnElIndex:m,realAlign:b,updateColumnOrder:w}=tG(e,t,r),y=f.value;u.value=`${"tableId"in y&&y.tableId||"columnId"in y&&y.columnId}_column_${aG++}`,zd(()=>{c.value=r.value!==y;const S=e.type||"default",k=e.sortable===""?!0:e.sortable,x=S==="selection"?!1:Rt(e.showOverflowTooltip)?y.props.showOverflowTooltip??a.value?.showOverflowTooltip:e.showOverflowTooltip,O=Rt(e.tooltipFormatter)?y.props.tooltipFormatter??a.value?.tooltipFormatter:e.tooltipFormatter,T={...GY[S],id:u.value,type:S,property:e.prop||e.property,align:b,headerAlign:d,showOverflowTooltip:x,tooltipFormatter:O,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:k,index:e.index,rawColumnKey:n.vnode.key};let I=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);I=eY(T,I),I=nY(h,p,g)(I),o.value=I,s(),l()}),ht(()=>{const S=f.value,k=c.value?S.vnode.el?.children:S.refs.hiddenColumns?.children,x=()=>m(k||[],n.vnode.el);o.value.getColumnIndex=x,x()>-1&&r.value.store.commit("insertColumn",o.value,c.value?"columnConfig"in S&&S.columnConfig.value:null,w)}),Vt(()=>{const S=o.value.getColumnIndex;(S?S():-1)>-1&&r.value.store.commit("removeColumn",o.value,c.value?"columnConfig"in y&&y.columnConfig.value:null,w)}),n.columnId=u.value,n.columnConfig=o},render(){try{const e=this.$slots.default?.({row:{},column:{},$index:-1}),t=[];if(we(e))for(const n of e)n.type?.name==="ElTableColumn"||n.shapeFlag&2?t.push(n):n.type===Ve&&we(n.children)&&n.children.forEach(a=>{a?.patchFlag!==1024&&!Ae(a?.children)&&t.push(a)});return qe("div",t)}catch{return qe("div",[])}}}),mx=oG;const rG=st(qY,{TableColumn:mx}),sG=ln(mx),Qh={asc:"desc",desc:"asc"},du=Symbol("placeholder"),gx=String,Fu={type:G(Array),required:!0},hg={type:G(Array)},bx={...hg,required:!0},lG=String,o1={type:G(Array),default:()=>pn([])},ps={type:Number,required:!0},yx={type:G([String,Number,Symbol]),default:"id"},r1={type:G(Object)},gs=Ee({class:String,columns:Fu,columnsStyles:{type:G(Object),required:!0},depth:Number,expandColumnKey:lG,estimatedRowHeight:{...Es.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:G(Function)},onRowHover:{type:G(Function)},onRowHeightChange:{type:G(Function)},rowData:{type:G(Object),required:!0},rowEventHandlers:{type:G(Object)},rowIndex:{type:Number,required:!0},rowKey:yx,style:{type:G(Object)}}),Op={type:Number,required:!0},vg=Ee({class:String,columns:Fu,fixedHeaderData:{type:G(Array)},headerData:{type:G(Array),required:!0},headerHeight:{type:G([Number,Array]),default:50},rowWidth:Op,rowHeight:{type:Number,default:50},height:Op,width:Op}),Mc=Ee({columns:Fu,data:bx,fixedData:hg,estimatedRowHeight:gs.estimatedRowHeight,width:ps,height:ps,headerWidth:ps,headerHeight:vg.headerHeight,bodyWidth:ps,rowHeight:ps,cache:$k.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Es.scrollbarAlwaysOn,scrollbarStartGap:Es.scrollbarStartGap,scrollbarEndGap:Es.scrollbarEndGap,class:gx,style:r1,containerStyle:r1,getRowHeight:{type:G(Function),required:!0},rowKey:gs.rowKey,onRowsRendered:{type:G(Function)},onScroll:{type:G(Function)}}),iG=Ee({cache:Mc.cache,estimatedRowHeight:gs.estimatedRowHeight,rowKey:yx,headerClass:{type:G([String,Function])},headerProps:{type:G([Object,Function])},headerCellProps:{type:G([Object,Function])},headerHeight:vg.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:G([String,Function])},rowProps:{type:G([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:G([Object,Function])},columns:Fu,data:bx,dataGetter:{type:G(Function)},fixedData:hg,expandColumnKey:gs.expandColumnKey,expandedRowKeys:o1,defaultExpandedRowKeys:o1,class:gx,fixed:Boolean,style:{type:G(Object)},width:ps,height:ps,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Es.hScrollbarSize,vScrollbarSize:Es.vScrollbarSize,scrollbarAlwaysOn:Pk.alwaysOn,sortBy:{type:G(Object),default:()=>({})},sortState:{type:G(Object),default:void 0},onColumnSort:{type:G(Function)},onExpandedRowsChange:{type:G(Function)},onEndReached:{type:G(Function)},onRowExpand:gs.onRowExpand,onScroll:Mc.onScroll,onRowsRendered:Mc.onRowsRendered,rowEventHandlers:gs.rowEventHandlers}),uG=(e,t,n)=>{const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow??0,flexShrink:e.flexShrink??1}},o={...e.style??{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function cG(e,t,n){const a=C(()=>i(t).map((m,b)=>({...m,key:m.key??m.dataKey??b}))),o=C(()=>i(a).filter(m=>!m.hidden)),r=C(()=>i(o).filter(m=>m.fixed==="left"||m.fixed===!0)),s=C(()=>i(o).filter(m=>m.fixed==="right")),l=C(()=>i(o).filter(m=>!m.fixed)),u=C(()=>{const m=[];return i(r).forEach(b=>{m.push({...b,placeholderSign:du})}),i(l).forEach(b=>{m.push(b)}),i(s).forEach(b=>{m.push({...b,placeholderSign:du})}),m}),c=C(()=>i(r).length||i(s).length),d=C(()=>i(a).reduce((m,b)=>(m[b.key]=uG(b,i(n),e.fixed),m),{})),f=C(()=>i(o).reduce((m,b)=>m+b.width,0)),p=m=>i(a).find(b=>b.key===m),g=m=>i(d)[m],h=(m,b)=>{m.width=b};function v(m){const{key:b}=m.currentTarget.dataset;if(!b)return;const{sortState:w,sortBy:y}=e;let S="asc";ot(w)?S=Qh[w[b]]:S=Qh[y.order],e.onColumnSort?.({column:p(b),key:b,order:S})}return{columns:a,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,hasFixedColumns:c,mainColumns:u,normalColumns:l,visibleColumns:o,getColumn:p,getColumnStyle:g,updateColumnWidth:h,onColumnSorted:v}}const dG=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:o})=>{const r=M({scrollLeft:0,scrollTop:0});function s(g){const{scrollTop:h}=g;t.value?.scrollTo(g),n.value?.scrollToTop(h),a.value?.scrollToTop(h)}function l(g){r.value=g,s(g)}function u(g){r.value.scrollTop=g,s(i(r))}function c(g){r.value.scrollLeft=g,t.value?.scrollTo?.(i(r))}function d(g){l(g),e.onScroll?.(g)}function f({scrollTop:g}){const{scrollTop:h}=i(r);g!==h&&u(g)}function p(g,h="auto"){t.value?.scrollToRow(g,h)}return pe(()=>i(r).scrollTop,(g,h)=>{g>h&&o()}),{scrollPos:r,scrollTo:l,scrollToLeft:c,scrollToTop:u,scrollToRow:p,onScroll:d,onVerticalScroll:f}},fG=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:o,ns:r,isScrolling:s})=>{const l=dt(),{emit:u}=l,c=Tt(!1),d=M(e.defaultExpandedRowKeys||[]),f=M(-1),p=Tt(null),g=M({}),h=M({}),v=Tt({}),m=Tt({}),b=Tt({}),w=C(()=>Be(e.estimatedRowHeight));function y(_){e.onRowsRendered?.(_),_.rowCacheEnd>i(f)&&(f.value=_.rowCacheEnd)}function S({hovered:_,rowKey:N}){s.value||o.vnode.el.querySelectorAll(`[rowkey="${String(N)}"]`).forEach($=>{_?$.classList.add(r.is("hovered")):$.classList.remove(r.is("hovered"))})}function k({expanded:_,rowData:N,rowIndex:$,rowKey:B}){const K=[...i(d)],j=K.indexOf(B);_?j===-1&&K.push(B):j>-1&&K.splice(j,1),d.value=K,u("update:expandedRowKeys",K),e.onRowExpand?.({expanded:_,rowData:N,rowIndex:$,rowKey:B}),e.onExpandedRowsChange?.(K),o.vnode.el.querySelector(`.${r.is("hovered")}[rowkey="${String(B)}"]`)&&Ne(()=>S({hovered:!0,rowKey:B}))}const x=Ho(()=>{c.value=!0,g.value={...i(g),...i(h)},O(i(p),!1),h.value={},p.value=null,t.value?.forceUpdate(),n.value?.forceUpdate(),a.value?.forceUpdate(),l.proxy?.$forceUpdate(),c.value=!1},0);function O(_,N=!1){i(w)&&[t,n,a].forEach($=>{const B=i($);B&&B.resetAfterRowIndex(_,N)})}function T(_,N,$){const B=i(p);(B===null||B>$)&&(p.value=$),h.value[_]=N}function I({rowKey:_,height:N,rowIndex:$},B){B?B==="right"?b.value[_]=N:v.value[_]=N:m.value[_]=N;const K=Math.max(...[v,b,m].map(j=>j.value[_]||0));i(g)[_]!==K&&(T(_,K,$),x())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:w,isResetting:c,rowHeights:g,resetAfterIndex:O,onRowExpanded:k,onRowHovered:S,onRowsRendered:y,onRowHeightChange:I}},pG=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const o=M({}),r=C(()=>{const l={},{data:u,rowKey:c}=e,d=i(t);if(!d||!d.length)return u;const f=[],p=new Set;d.forEach(h=>p.add(h));let g=u.slice();for(g.forEach(h=>l[h[c]]=0);g.length>0;){const h=g.shift();f.push(h),p.has(h[c])&&we(h.children)&&h.children.length>0&&(g=[...h.children,...g],h.children.forEach(v=>l[v[c]]=l[h[c]]+1))}return o.value=l,f}),s=C(()=>{const{data:l,expandColumnKey:u}=e;return u?i(r):l});return pe(s,(l,u)=>{l!==u&&(n.value=-1,a(0,!0))}),{data:s,depthMap:o}},hG=(e,t)=>e+t,Pc=e=>we(e)?e.reduce(hG,0):e,Ps=(e,t,n={})=>Fe(e)?e(t):e??n,Kr=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=hn(e[t])}),e),wx=e=>Zt(e)?t=>qe(e,t):e,vG=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:o})=>{const r=C(()=>{const{fixed:v,width:m,vScrollbarSize:b}=e,w=m-b;return v?Math.max(Math.round(i(t)),w):w}),s=C(()=>{const{height:v=0,maxHeight:m=0,footerHeight:b,hScrollbarSize:w}=e;if(m>0){const y=i(p),S=i(n),k=i(f)+y+S+w;return Math.min(k,m-b)}return v-b}),l=C(()=>{const{maxHeight:v}=e,m=i(s);if(Be(v)&&v>0)return m;const b=i(n)+i(f)+i(p);return Math.min(m,b)}),u=v=>v.width,c=C(()=>Pc(i(a).map(u))),d=C(()=>Pc(i(o).map(u))),f=C(()=>Pc(e.headerHeight)),p=C(()=>(e.fixedData?.length||0)*e.rowHeight),g=C(()=>i(s)-i(f)-i(p)),h=C(()=>{const{style:v={},height:m,width:b}=e;return Kr({...v,height:m,width:b})});return{bodyWidth:r,fixedTableHeight:l,mainTableHeight:s,leftTableWidth:c,rightTableWidth:d,windowHeight:g,footerHeight:C(()=>Kr({height:e.footerHeight})),emptyStyle:C(()=>({top:hn(i(f)),bottom:hn(e.footerHeight),width:hn(e.width)})),rootStyle:h,headerHeight:f}};function mG(e){const t=M(),n=M(),a=M(),{columns:o,columnsStyles:r,columnsTotalWidth:s,fixedColumnsOnLeft:l,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=cG(e,Ht(e,"columns"),Ht(e,"fixed")),{scrollTo:p,scrollToLeft:g,scrollToTop:h,scrollToRow:v,onScroll:m,onVerticalScroll:b,scrollPos:w}=dG(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:q}),y=ge("table-v2"),S=dt(),k=Tt(!1),{expandedRowKeys:x,lastRenderedRowIndex:O,isDynamic:T,isResetting:I,rowHeights:_,resetAfterIndex:N,onRowExpanded:$,onRowHeightChange:B,onRowHovered:K,onRowsRendered:j}=fG(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:S,ns:y,isScrolling:k}),{data:W,depthMap:A}=pG(e,{expandedRowKeys:x,lastRenderedRowIndex:O,resetAfterIndex:N}),P=C(()=>{const{estimatedRowHeight:te,rowHeight:fe}=e,he=i(W);return Be(te)?Object.values(i(_)).reduce((ve,Ie)=>ve+Ie,0):he.length*fe}),{bodyWidth:V,fixedTableHeight:F,mainTableHeight:H,leftTableWidth:U,rightTableWidth:J,windowHeight:ee,footerHeight:ae,emptyStyle:ce,rootStyle:Z,headerHeight:de}=vG(e,{columnsTotalWidth:s,fixedColumnsOnLeft:l,fixedColumnsOnRight:u,rowsHeight:P}),ue=M(),Y=C(()=>{const te=i(W).length===0;return we(e.fixedData)?e.fixedData.length===0&&te:te});function Q(te){const{estimatedRowHeight:fe,rowHeight:he,rowKey:ve}=e;return fe?i(_)[i(W)[te][ve]]||fe:he}const L=M(!1);function q(){const{onEndReached:te}=e;if(!te)return;const{scrollTop:fe}=i(w),he=i(P),ve=he-(fe+i(ee))+e.hScrollbarSize;!L.value&&i(O)>=0&&he<=fe+i(H)-i(de)?(L.value=!0,te(ve)):L.value=!1}return pe(()=>i(P),()=>L.value=!1),pe(()=>e.expandedRowKeys,te=>x.value=te,{deep:!0}),{columns:o,containerRef:ue,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:T,isResetting:I,isScrolling:k,hasFixedColumns:c,columnsStyles:r,columnsTotalWidth:s,data:W,expandedRowKeys:x,depthMap:A,fixedColumnsOnLeft:l,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:V,emptyStyle:ce,rootStyle:Z,footerHeight:ae,mainTableHeight:H,fixedTableHeight:F,leftTableWidth:U,rightTableWidth:J,showEmpty:Y,getRowHeight:Q,onColumnSorted:f,onRowHovered:K,onRowExpanded:$,onRowsRendered:j,onRowHeightChange:B,scrollTo:p,scrollToLeft:g,scrollToTop:h,scrollToRow:v,onScroll:m,onVerticalScroll:b}}const mg=Symbol("tableV2"),Sx="tableV2GridScrollLeft",gG=se({name:"ElTableV2Header",props:vg,setup(e,{slots:t,expose:n}){const a=ge("table-v2"),o=$e(Sx),r=M(),s=C(()=>Kr({width:e.width,height:e.height})),l=C(()=>Kr({width:e.rowWidth,height:e.height})),u=C(()=>Dn(i(e.headerHeight))),c=p=>{const g=i(r);Ne(()=>{g?.scroll&&g.scroll({left:p})})},d=()=>{const p=a.e("fixed-header-row"),{columns:g,fixedHeaderData:h,rowHeight:v}=e;return h?.map((m,b)=>{const w=Kr({height:v,width:"100%"});return t.fixed?.({class:p,columns:g,rowData:m,rowIndex:-(b+1),style:w})})},f=()=>{const p=a.e("dynamic-header-row"),{columns:g}=e;return i(u).map((h,v)=>{const m=Kr({width:"100%",height:h});return t.dynamic?.({class:p,columns:g,headerIndex:v,style:m})})};return bo(()=>{o?.value&&c(o.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return X("div",{ref:r,class:e.class,style:i(s),role:"rowgroup"},[X("div",{style:i(l),class:a.e("header")},[f(),d()])])}}}),bG="ElTableV2Grid",yG=e=>{const t=M(),n=M(),a=M(0),o=C(()=>{const{data:m,rowHeight:b,estimatedRowHeight:w}=e;if(!w)return m.length*b}),r=C(()=>{const{fixedData:m,rowHeight:b}=e;return(m?.length||0)*b}),s=C(()=>Pc(e.headerHeight)),l=C(()=>{const{height:m}=e;return Math.max(0,m-i(s)-i(r))}),u=C(()=>i(s)+i(r)>0),c=({data:m,rowIndex:b})=>m[b][e.rowKey];function d({rowCacheStart:m,rowCacheEnd:b,rowVisibleStart:w,rowVisibleEnd:y}){e.onRowsRendered?.({rowCacheStart:m,rowCacheEnd:b,rowVisibleStart:w,rowVisibleEnd:y})}function f(m,b){n.value?.resetAfterRowIndex(m,b)}function p(m,b){const w=i(t),y=i(n);ot(m)?(w?.scrollToLeft(m.scrollLeft),a.value=m.scrollLeft,y?.scrollTo(m)):(w?.scrollToLeft(m),a.value=m,y?.scrollTo({scrollLeft:m,scrollTop:b}))}function g(m){i(n)?.scrollTo({scrollTop:m})}function h(m,b){const w=i(n);if(!w)return;const y=a.value;w.scrollToItem(m,0,b),y&&p({scrollLeft:y})}function v(){i(n)?.$forceUpdate(),i(t)?.$forceUpdate()}return pe(()=>e.bodyWidth,()=>{Be(e.estimatedRowHeight)&&n.value?.resetAfter({columnIndex:0},!1)}),{bodyRef:n,forceUpdate:v,fixedRowHeight:r,gridHeight:l,hasHeader:u,headerHeight:s,headerRef:t,totalHeight:o,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:p,scrollToTop:g,scrollToRow:h,scrollLeft:a}},gg=se({name:bG,props:Mc,setup(e,{slots:t,expose:n}){const{ns:a}=$e(mg),{bodyRef:o,fixedRowHeight:r,gridHeight:s,hasHeader:l,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:p,onItemRendered:g,resetAfterRowIndex:h,scrollTo:v,scrollToTop:m,scrollToRow:b,scrollLeft:w}=yG(e);St(Sx,w),gu(async()=>{await Ne();const S=o.value?.states.scrollTop;S&&m(Math.round(S)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:v,scrollToTop:m,scrollToRow:b,resetAfterRowIndex:h});const y=()=>e.bodyWidth;return()=>{const{cache:S,columns:k,data:x,fixedData:O,useIsScrolling:T,scrollbarAlwaysOn:I,scrollbarEndGap:_,scrollbarStartGap:N,style:$,rowHeight:B,bodyWidth:K,estimatedRowHeight:j,headerWidth:W,height:A,width:P,getRowHeight:V,onScroll:F}=e,H=Be(j),U=H?yF:vF,J=i(c);return X("div",{role:"table",class:[a.e("table"),e.class],style:$},[X(U,{ref:o,data:x,useIsScrolling:T,itemKey:p,columnCache:0,columnWidth:H?y:K,totalColumn:1,totalRow:x.length,rowCache:S,rowHeight:H?V:B,width:P,height:i(s),class:a.e("body"),role:"rowgroup",scrollbarStartGap:N,scrollbarEndGap:_,scrollbarAlwaysOn:I,onScroll:F,onItemRendered:g,perfMode:!1},{default:ee=>{const ae=x[ee.rowIndex];return t.row?.({...ee,columns:k,rowData:ae})}}),i(l)&&X(gG,{ref:u,class:a.e("header-wrapper"),columns:k,headerData:x,headerHeight:e.headerHeight,fixedHeaderData:O,rowWidth:W,rowHeight:B,width:P,height:Math.min(J+i(r),A)},{dynamic:t.header,fixed:t.row})])}}});function wG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const SG=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return X(gg,pt({ref:n},a),wG(t)?t:{default:()=>[t]})};function CG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const kG=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return X(gg,pt({ref:n},a),CG(t)?t:{default:()=>[t]})};function EG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const xG=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return X(gg,pt({ref:n},a),EG(t)?t:{default:()=>[t]})},TG=e=>{const{isScrolling:t}=$e(mg),n=M(!1),a=M(),o=C(()=>Be(e.estimatedRowHeight)&&e.rowIndex>=0),r=(u=!1)=>{const c=i(a);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:p,rowIndex:g,style:h}=e,{height:v}=c.getBoundingClientRect();n.value=!0,Ne(()=>{if(u||v!==Number.parseInt(h.height)){const m=d[0],b=m?.placeholderSign===du;f?.({rowKey:p,height:v,rowIndex:g},m&&!b&&m.fixed)}})},s=C(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,p=e.rowEventHandlers||{},g={};return Object.entries(p).forEach(([h,v])=>{Fe(v)&&(g[h]=m=>{v({event:m,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:h,hovered:v})=>{const m=g[h];g[h]=b=>{f({event:b,hovered:v,rowData:u,rowIndex:c,rowKey:d}),m?.(b)}}),g}),l=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:p}=e;c?.({expanded:u,rowData:d,rowIndex:f,rowKey:p})};return ht(()=>{i(o)&&r(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:a,eventHandlers:s,onExpand:l}},OG=se({name:"ElTableV2TableRow",props:gs,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:o,isScrolling:r,measurable:s,measured:l,rowRef:u,onExpand:c}=TG(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:p,depth:g,rowData:h,rowIndex:v,style:m}=e;let b=d.map((w,y)=>{const S=we(h.children)&&h.children.length>0&&w.key===p;return n.cell({column:w,columns:d,columnIndex:y,depth:g,style:f[w.key],rowData:h,rowIndex:v,isScrolling:i(r),expandIconProps:S?{rowData:h,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(b=n.row({cells:b.map(w=>we(w)&&w.length===1?w[0]:w),style:m,columns:d,depth:g,rowData:h,rowIndex:v,isScrolling:i(r)})),i(s)){const{height:w,...y}=m||{},S=i(l);return X("div",pt({ref:u,class:e.class,style:S?m:y,role:"row"},a,i(o)),[b])}return X("div",pt(a,{ref:u,class:e.class,style:m,role:"row"},i(o)),[b])}}});function _G(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const RG=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:o,expandColumnKey:r,expandedRowKeys:s,estimatedRowHeight:l,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:p,rowProps:g,rowClass:h,rowKey:v,rowEventHandlers:m,ns:b,onRowHovered:w,onRowExpanded:y}=e,S=Ps(h,{columns:n,rowData:c,rowIndex:d},""),k=Ps(g,{columns:n,rowData:c,rowIndex:d}),x=c[v],O=o[x]||0,T=!!r,I=d<0,_=[b.e("row"),S,b.is("expanded",T&&s.includes(x)),b.is("fixed",!O&&I),b.is("customized",!!t.row),{[b.e(`row-depth-${O}`)]:T&&d>=0}],N=u?w:void 0,$={...k,columns:n,columnsStyles:a,class:_,depth:O,expandColumnKey:r,estimatedRowHeight:I?void 0:l,isScrolling:p,rowIndex:d,rowData:c,rowKey:x,rowEventHandlers:m,style:f};return X(OG,pt($,{onRowExpand:y,onMouseenter:j=>{N?.({hovered:!0,rowKey:x,event:j,rowData:c,rowIndex:d})},onMouseleave:j=>{N?.({hovered:!1,rowKey:x,event:j,rowData:c,rowIndex:d})},rowkey:x}),_G(t)?t:{default:()=>[t]})},bg=(e,{slots:t})=>{const{cellData:n,style:a}=e,o=n?.toString?.()||"",r=oe(t,"default",e,()=>[o]);return X("div",{class:e.class,title:o,style:a},[r])};bg.displayName="ElTableV2Cell";bg.inheritAttrs=!1;const Cx=e=>{const{expanded:t,expandable:n,onExpand:a,style:o,size:r,ariaLabel:s}=e;return X("button",pt({onClick:n?()=>a(!t):void 0,ariaLabel:s,ariaExpanded:t,class:e.class},{type:"button"}),[X(De,{size:r,style:o},{default:()=>[X(sa,null,null)]})])};Cx.inheritAttrs=!1;const ev=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:o,isScrolling:r,rowData:s,rowIndex:l,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:p,expandColumnKey:g,indentSize:h,iconSize:v,rowKey:m},{slots:b})=>{const w=Kr(u);if(t.placeholderSign===du)return X("div",{class:d.em("row-cell","placeholder"),style:w},null);const{cellRenderer:y,dataKey:S,dataGetter:k}=t,x=Fe(k)?k({columns:e,column:t,columnIndex:n,rowData:s,rowIndex:l}):yn(s,S??""),O=Ps(p,{cellData:x,columns:e,column:t,columnIndex:n,rowIndex:l,rowData:s}),T={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:x,isScrolling:r,rowData:s,rowIndex:l},I=wx(y),_=I?I(T):oe(b,"default",T,()=>[X(bg,T,null)]),N=[d.e("row-cell"),t.class,t.align==="center"&&d.is("align-center"),t.align==="right"&&d.is("align-right")],$=l>=0&&g&&t.key===g,B=l>=0&&c.includes(s[m]);let K;const j=`margin-inline-start: ${a*h}px;`;return $&&(ot(o)?K=X(Cx,pt(o,{class:[d.e("expand-icon"),d.is("expanded",B)],size:v,expanded:B,ariaLabel:f(B?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:j,expandable:!0}),null):K=X("div",{style:[j,`width: ${v}px; height: ${v}px;`].join(" ")},null)),X("div",pt({class:N,style:w},O,{role:"cell"}),[K,_])};ev.inheritAttrs=!1;const IG=Ee({class:String,columns:Fu,columnsStyles:{type:G(Object),required:!0},headerIndex:Number,style:{type:G(Object)}}),$G=se({name:"ElTableV2HeaderRow",props:IG,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:o,style:r}=e;let s=n.map((l,u)=>t.cell({columns:n,column:l,columnIndex:u,headerIndex:o,style:a[l.key]}));return t.header&&(s=t.header({cells:s.map(l=>we(l)&&l.length===1?l[0]:l),columns:n,headerIndex:o})),X("div",{class:e.class,style:r,role:"row"},[s])}}});function NG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const MG=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:o,headerProps:r,ns:s},{slots:l})=>{const u={columns:e,headerIndex:n},c=[s.e("header-row"),Ps(o,u,""),s.is("customized",!!l.header)];return X($G,{...Ps(r,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:a},NG(l)?l:{default:()=>[l]})},yg=(e,{slots:t})=>oe(t,"default",e,()=>[X("div",{class:e.class,title:e.column?.title},[e.column?.title])]);yg.displayName="ElTableV2HeaderCell";yg.inheritAttrs=!1;const PG=e=>{const{sortOrder:t}=e;return X("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[X(De,{size:14},{default:()=>[X(t==="asc"?_A:TA,null,null)]})])},s1=(e,{slots:t})=>{const{column:n,ns:a,t:o,style:r,onColumnSorted:s}=e,l=Kr(r);if(n.placeholderSign===du)return X("div",{class:a.em("header-row-cell","placeholder"),style:l},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:a.e("header-cell-text")},p=wx(u),g=p?p(f):oe(t,"default",f,()=>[X(yg,f,null)]),{sortBy:h,sortState:v,headerCellProps:m}=e;let b,w,y;if(v){const k=v[n.key];b=!!Qh[k],w=b?k:"asc"}else b=n.key===h.key,w=b?h.order:"asc";w==="asc"?y="ascending":w==="desc"?y="descending":y=void 0;const S=[a.e("header-cell"),Ps(c,e,""),n.align==="center"&&a.is("align-center"),n.align==="right"&&a.is("align-right"),d&&a.is("sortable")];return X("div",pt({...Ps(m,e),onClick:n.sortable?s:void 0,ariaSort:d?y:void 0,class:S,style:l,"data-key":n.key},{role:"columnheader"}),[g,d&&X(PG,{class:[a.e("sort-icon"),b&&a.is("sorting")],sortOrder:w,ariaLabel:o("el.table.sortLabel",{column:n.title||""})},null)])},kx=(e,{slots:t})=>X("div",{class:e.class,style:e.style},[t.default?.()]);kx.displayName="ElTableV2Footer";const Ex=(e,{slots:t})=>{const n=oe(t,"default",{},()=>[X(qE,null,null)]);return X("div",{class:e.class,style:e.style},[n])};Ex.displayName="ElTableV2Empty";const xx=(e,{slots:t})=>X("div",{class:e.class,style:e.style},[t.default?.()]);xx.displayName="ElTableV2Overlay";function si(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zt(e)}const AG=se({name:"ElTableV2",props:iG,slots:Object,setup(e,{slots:t,expose:n}){const a=ge("table-v2"),{t:o}=xt(),{columnsStyles:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:p,data:g,depthMap:h,expandedRowKeys:v,hasFixedColumns:m,mainTableRef:b,leftTableRef:w,rightTableRef:y,isDynamic:S,isResetting:k,isScrolling:x,bodyWidth:O,emptyStyle:T,rootStyle:I,footerHeight:_,showEmpty:N,scrollTo:$,scrollToLeft:B,scrollToTop:K,scrollToRow:j,getRowHeight:W,onColumnSorted:A,onRowHeightChange:P,onRowHovered:V,onRowExpanded:F,onRowsRendered:H,onScroll:U,onVerticalScroll:J}=mG(e);return n({scrollTo:$,scrollToLeft:B,scrollToTop:K,scrollToRow:j}),St(mg,{ns:a,isResetting:k,isScrolling:x}),()=>{const{cache:ee,cellProps:ae,estimatedRowHeight:ce,expandColumnKey:Z,fixedData:de,headerHeight:ue,headerClass:Y,headerProps:Q,headerCellProps:L,sortBy:q,sortState:te,rowHeight:fe,rowClass:he,rowEventHandlers:ve,rowKey:Ie,rowProps:Le,scrollbarAlwaysOn:_e,indentSize:ye,iconSize:Te,useIsScrolling:be,vScrollbarSize:Pe,width:He}=e,Je=i(g),Qe={cache:ee,class:a.e("main"),columns:i(u),data:Je,fixedData:de,estimatedRowHeight:ce,bodyWidth:i(O),headerHeight:ue,headerWidth:i(O),height:i(c),mainTableRef:b,rowKey:Ie,rowHeight:fe,scrollbarAlwaysOn:_e,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:be,width:He,getRowHeight:W,onRowsRendered:H,onScroll:U},lt=i(f),Ze=i(d),gt={cache:ee,class:a.e("left"),columns:i(s),data:Je,fixedData:de,estimatedRowHeight:ce,leftTableRef:w,rowHeight:fe,bodyWidth:lt,headerWidth:lt,headerHeight:ue,height:Ze,rowKey:Ie,scrollbarAlwaysOn:_e,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:be,width:lt,getRowHeight:W,onScroll:J},Pt=i(p),zt={cache:ee,class:a.e("right"),columns:i(l),data:Je,fixedData:de,estimatedRowHeight:ce,rightTableRef:y,rowHeight:fe,bodyWidth:Pt,headerWidth:Pt,headerHeight:ue,height:Ze,rowKey:Ie,scrollbarAlwaysOn:_e,scrollbarStartGap:2,scrollbarEndGap:Pe,width:Pt,style:`${a.cssVarName("table-scrollbar-size")}: ${Pe}px`,useIsScrolling:be,getRowHeight:W,onScroll:J},nt=i(r),ft={ns:a,depthMap:i(h),columnsStyles:nt,expandColumnKey:Z,expandedRowKeys:i(v),estimatedRowHeight:ce,hasFixedColumns:i(m),rowProps:Le,rowClass:he,rowKey:Ie,rowEventHandlers:ve,onRowHovered:V,onRowExpanded:F,onRowHeightChange:P},me={cellProps:ae,expandColumnKey:Z,indentSize:ye,iconSize:Te,rowKey:Ie,expandedRowKeys:i(v),ns:a,t:o},je={ns:a,headerClass:Y,headerProps:Q,columnsStyles:nt},ie={ns:a,t:o,sortBy:q,sortState:te,headerCellProps:L,onColumnSorted:A},xe={row:bt=>X(RG,pt(bt,ft),{row:t.row,cell:vt=>{let Et;return t.cell?X(ev,pt(vt,me,{style:nt[vt.column.key]}),si(Et=t.cell(vt))?Et:{default:()=>[Et]}):X(ev,pt(vt,me,{style:nt[vt.column.key]}),null)}}),header:bt=>X(MG,pt(bt,je),{header:t.header,cell:vt=>{let Et;return t["header-cell"]?X(s1,pt(vt,ie,{style:nt[vt.column.key]}),si(Et=t["header-cell"](vt))?Et:{default:()=>[Et]}):X(s1,pt(vt,ie,{style:nt[vt.column.key]}),null)}})},Ue=[e.class,a.b(),a.e("root"),a.is("dynamic",i(S))],et={class:a.e("footer"),style:i(_)};return X("div",{class:Ue,style:i(I)},[X(SG,Qe,si(xe)?xe:{default:()=>[xe]}),X(kG,gt,si(xe)?xe:{default:()=>[xe]}),X(xG,zt,si(xe)?xe:{default:()=>[xe]}),t.footer&&X(kx,et,{default:t.footer}),i(N)&&X(Ex,{class:a.e("empty"),style:i(T)},{default:t.empty}),t.overlay&&X(xx,{class:a.e("overlay")},{default:t.overlay})])}}}),LG=Ee({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:G(Function)}}),DG=e=>{const t=M(),n=M(0),a=M(0);let o;return ht(()=>{o=an(t,([r])=>{const{width:s,height:l}=r.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(r.target),p=Number.parseInt(u)||0,g=Number.parseInt(c)||0,h=Number.parseInt(d)||0,v=Number.parseInt(f)||0;n.value=s-p-g,a.value=l-h-v}).stop}),Vt(()=>{o?.()}),pe([n,a],([r,s])=>{e.onResize?.({width:r,height:s})}),{sizer:t,width:n,height:a}},BG=se({name:"ElAutoResizer",props:LG,setup(e,{slots:t}){const n=ge("auto-resizer"),{height:a,width:o,sizer:r}=DG(e),s={width:"100%",height:"100%"};return()=>X("div",{ref:r,class:n.b(),style:s},[t.default?.({height:a.value,width:o.value})])}}),VG=st(AG),FG=st(BG),Cf=Symbol("tabsRootContextKey"),zG=Ee({tabs:{type:G(Array),default:()=>pn([])},tabRefs:{type:G(Object),default:()=>pn({})}}),l1="ElTabBar";var HG=se({name:l1,__name:"tab-bar",props:zG,setup(e,{expose:t}){const n=e,a=$e(Cf);a||sn(l1,"");const o=ge("tabs"),r=M(),s=M(),l=C(()=>Rt(a.props.defaultValue)||!!s.value?.transform),u=()=>{let g=0,h=0;const v=["top","bottom"].includes(a.props.tabPosition)?"width":"height",m=v==="width"?"x":"y",b=m==="x"?"left":"top";return n.tabs.every(w=>{if(Rt(w.paneName))return!1;const y=n.tabRefs[w.paneName];if(!y)return!1;if(!w.active)return!0;g=y[`offset${ap(b)}`],h=y[`client${ap(v)}`];const S=window.getComputedStyle(y);return v==="width"&&(h-=Number.parseFloat(S.paddingLeft)+Number.parseFloat(S.paddingRight),g+=Number.parseFloat(S.paddingLeft)),!1}),{[v]:`${h}px`,transform:`translate${ap(m)}(${g}px)`}},c=()=>s.value=u(),d=[],f=()=>{d.forEach(g=>g.stop()),d.length=0,Object.values(n.tabRefs).forEach(g=>{d.push(an(g,c))})};pe(()=>n.tabs,async()=>{await Ne(),c(),f()},{immediate:!0});const p=an(r,()=>c());return Vt(()=>{d.forEach(g=>g.stop()),d.length=0,p.stop()}),t({ref:r,update:c}),(g,h)=>l.value?(E(),D("div",{key:0,ref_key:"barRef",ref:r,class:R([i(o).e("active-bar"),i(o).is(i(a).props.tabPosition)]),style:ze(s.value)},null,6)):re("v-if",!0)}}),KG=HG;const WG=Ee({panes:{type:G(Array),default:()=>pn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),jG={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},i1="ElTabNav",UG=se({name:i1,props:WG,emits:jG,setup(e,{expose:t,emit:n}){const a=$e(Cf);a||sn(i1,"");const o=ge("tabs"),r=E$(),s=T$(),l=M(),u=M(),c=M(),d=M({}),f=M(),p=M(!1),g=M(0),h=M(!1),v=M(!0),m=M(!1),b=Tt(),w=C(()=>["top","bottom"].includes(a.props.tabPosition)),y=C(()=>w.value?"width":"height"),S=C(()=>{const U=y.value==="width"?"X":"Y";return{transition:m.value?"none":void 0,transform:`translate${U}(-${g.value}px)`}}),{width:k,height:x}=uh(l),{width:O,height:T}=uh(u,{width:0,height:0},{box:"border-box"}),I=C(()=>w.value?k.value:x.value),_=C(()=>w.value?O.value:T.value),{onWheel:N}=Lk({atStartEdge:C(()=>g.value<=0),atEndEdge:C(()=>_.value-g.value<=I.value),layout:C(()=>w.value?"horizontal":"vertical")},U=>{g.value=Ma(g.value+U,0,_.value-I.value)}),$=U=>{m.value=!0,N(U),Oa(()=>{m.value=!1})},B=()=>{if(!l.value)return;const U=l.value.getBoundingClientRect()[y.value],J=g.value;J&&(g.value=J>U?J-U:0)},K=()=>{if(!l.value||!u.value)return;const U=u.value.getBoundingClientRect()[y.value],J=l.value.getBoundingClientRect()[y.value],ee=g.value;Vo(U-ee,J)&&(g.value=U-ee>J*2?ee+J:U-J)},j=async()=>{const U=u.value;if(!p.value||!c.value||!l.value||!U)return;await Ne();const J=d.value[e.currentName];if(!J)return;const ee=l.value,ae=J.getBoundingClientRect(),ce=ee.getBoundingClientRect(),Z=ce.left+1,de=ce.right-1,ue=U.getBoundingClientRect(),Y=w.value?ue.width-ce.width:ue.height-ce.height,Q=g.value;let L=Q;w.value?(ae.leftde&&(L=Q+ae.right-de)):(ae.topce.bottom&&(L=Q+(ae.bottom-ce.bottom))),L=Math.max(L,0),g.value=Math.min(L,Y)},W=()=>{if(!u.value||!l.value)return;e.stretch&&f.value?.update();const U=u.value.getBoundingClientRect()[y.value],J=l.value.getBoundingClientRect()[y.value],ee=g.value;J0&&(g.value=0))},A=U=>{const J=qt(U);let ee=0;switch(J){case Se.left:case Se.up:ee=-1;break;case Se.right:case Se.down:ee=1;break;default:return}const ae=Array.from(U.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let ce=ae.indexOf(U.target)+ee;ce<0?ce=ae.length-1:ce>=ae.length&&(ce=0),ae[ce].focus({preventScroll:!0}),ae[ce].click(),P()},P=()=>{v.value&&(h.value=!0)},V=()=>h.value=!1,F=(U,J)=>{d.value[J]=U},H=async()=>{await Ne(),d.value[e.currentName]?.focus({preventScroll:!0})};return pe(r,U=>{U==="hidden"?v.value=!1:U==="visible"&&setTimeout(()=>v.value=!0,50)}),pe(s,U=>{U?setTimeout(()=>v.value=!0,50):v.value=!1}),an(c,()=>{Oa(W)}),ht(()=>setTimeout(()=>j(),0)),bo(()=>W()),t({scrollToActiveTab:j,removeFocus:V,focusActiveTab:H,tabListRef:u,tabBarRef:f,scheduleRender:()=>Sc(b)}),()=>{const U=p.value?[X("span",{class:[o.e("nav-prev"),o.is("disabled",!p.value.prev)],onClick:B},[X(De,null,{default:()=>[X(mr,null,null)]})]),X("span",{class:[o.e("nav-next"),o.is("disabled",!p.value.next)],onClick:K},[X(De,null,{default:()=>[X(sa,null,null)]})])]:null,J=e.panes.map((ee,ae)=>{const ce=ee.uid,Z=ee.props.disabled,de=ee.props.name??ee.index??`${ae}`,ue=!Z&&(ee.isClosable||ee.props.closable!==!1&&e.editable);ee.index=`${ae}`;const Y=ue?X(De,{class:"is-icon-close",onClick:q=>n("tabRemove",ee,q)},{default:()=>[X(Qa,null,null)]}):null,Q=ee.slots.label?.()||ee.props.label,L=!Z&&ee.active?e.tabindex??a.props.tabindex:-1;return X("div",{ref:q=>F(q,de),class:[o.e("item"),o.is(a.props.tabPosition),o.is("active",ee.active),o.is("disabled",Z),o.is("closable",ue),o.is("focus",h.value)],id:`tab-${de}`,key:`tab-${ce}`,"aria-controls":`pane-${de}`,role:"tab","aria-selected":ee.active,tabindex:L,onFocus:()=>P(),onBlur:()=>V(),onClick:q=>{V(),n("tabClick",ee,de,q)},onKeydown:q=>{const te=qt(q);ue&&(te===Se.delete||te===Se.backspace)&&n("tabRemove",ee,q)}},[Q,Y])});return b.value,X("div",{ref:c,class:[o.e("nav-wrap"),o.is("scrollable",!!p.value),o.is(a.props.tabPosition)]},[U,X("div",{class:o.e("nav-scroll"),ref:l},[e.panes.length>0?X("div",{class:[o.e("nav"),o.is(a.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:S.value,role:"tablist",onKeydown:A,onWheel:$},[e.type?null:X(KG,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),J]):null])])}}}),qG=Ee({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:G(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),_p=e=>Ae(e)||Be(e),YG={[at]:e=>_p(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>_p(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>_p(e),tabAdd:()=>!0},GG=se({name:"ElTabs",props:qG,emits:YG,setup(e,{emit:t,slots:n,expose:a}){const o=ge("tabs"),r=C(()=>["left","right"].includes(e.tabPosition)),{children:s,addChild:l,removeChild:u,ChildrenSorter:c}=df(dt(),"ElTabPane"),d=M(),f=M((Rt(e.modelValue)?e.defaultValue:e.modelValue)??"0"),p=async(w,y=!1)=>{if(!(f.value===w||Rt(w)))try{let S;if(e.beforeLeave){const k=e.beforeLeave(w,f.value);S=k instanceof Promise?await k:k}else S=!0;if(S!==!1){const k=s.value.find(x=>x.paneName===f.value)?.isFocusInsidePane();f.value=w,y&&(t(at,w),t("tabChange",w)),d.value?.removeFocus?.(),k&&d.value?.focusActiveTab()}}catch{}},g=(w,y,S)=>{w.props.disabled||(t("tabClick",w,S),p(y,!0))},h=(w,y)=>{w.props.disabled||Rt(w.props.name)||(y.stopPropagation(),t("edit",w.props.name,"remove"),t("tabRemove",w.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")},m=w=>{const y=qt(w);[Se.enter,Se.numpadEnter].includes(y)&&v()},b=w=>{const y=w.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?w.children[0].el:w.children[1].el;y!==S&&y.before(S)};return pe(()=>e.modelValue,w=>p(w)),pe(f,async()=>{await Ne(),d.value?.scrollToActiveTab()}),St(Cf,{props:e,currentName:f,registerPane:l,unregisterPane:u,nav$:d}),a({currentName:f,get tabNavRef(){return ku(d.value,["scheduleRender"])}}),()=>{const w=n["add-icon"],y=e.editable||e.addable?X("div",{class:[o.e("new-tab"),r.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:v,onKeydown:m},[w?oe(n,"add-icon"):X(De,{class:o.is("icon-plus")},{default:()=>[X(xC,null,null)]})]):null,S=()=>X(UG,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:g,onTabRemove:h},null),k=X("div",{class:[o.e("header"),r.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[X(c,null,{default:S,$stable:!0}),y]),x=X("div",{class:o.e("content")},[oe(n,"default")]);return X("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:b,onVnodeUpdated:b},[x,k])}}}),XG=Ee({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),JG=["id","aria-hidden","aria-labelledby"],u1="ElTabPane";var ZG=se({name:u1,__name:"tab-pane",props:XG,setup(e){const t=e,n=dt(),a=wn(),o=$e(Cf);o||sn(u1,"usage: ");const r=ge("tab-pane"),s=M(),l=M(),u=C(()=>t.closable??o.props.closable),c=C(()=>o.currentName.value===(t.name??l.value)),d=M(c.value),f=C(()=>t.name??l.value),p=C(()=>!t.lazy||d.value||c.value),g=()=>s.value?.contains(document.activeElement);pe(c,v=>{v&&(d.value=!0)});const h=Dt({uid:n.uid,getVnode:()=>n.vnode,slots:a,props:t,paneName:f,active:c,index:l,isClosable:u,isFocusInsidePane:g});return o.registerPane(h),Vt(()=>{o.unregisterPane(h)}),Lv(()=>{a.label&&o.nav$.value?.scheduleRender()}),(v,m)=>p.value?ct((E(),D("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:s,class:R(i(r).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[oe(v.$slots,"default")],10,JG)),[[$t,c.value]]):re("v-if",!0)}}),Tx=ZG;const QG=st(GG,{TabPane:Tx}),eX=ln(Tx),tX=Ee({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:yo,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var nX=se({name:"ElText",__name:"text",props:tX,setup(e){const t=e,n=M(),a=In(),o=ge("text"),r=C(()=>[o.b(),o.m(t.type),o.m(a.value),o.is("truncated",t.truncated),o.is("line-clamp",!Rt(t.lineClamp))]),s=()=>{if(wr().title)return;let l=!1;const u=n.value?.textContent||"";if(t.truncated){const c=n.value?.offsetWidth,d=n.value?.scrollWidth;c&&d&&d>c&&(l=!0)}else if(!Rt(t.lineClamp)){const c=n.value?.offsetHeight,d=n.value?.scrollHeight;c&&d&&d>c&&(l=!0)}l?n.value?.setAttribute("title",u):n.value?.removeAttribute("title")};return ht(s),bo(s),(l,u)=>(E(),le(it(e.tag),{ref_key:"textRef",ref:n,class:R(r.value),style:ze({"-webkit-line-clamp":e.lineClamp})},{default:ne(()=>[oe(l.$slots,"default")]),_:3},8,["class","style"]))}}),aX=nX;const wg=st(aX),tv="00:30",oX=Ee({format:{type:String,default:"HH:mm"},modelValue:{type:G(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:G(String),default:"light"},clearable:{type:Boolean,default:!0},size:Nn,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:tv},minTime:{type:G(String)},maxTime:{type:G(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:G([String,Object]),default:()=>EC},clearIcon:{type:G([String,Object]),default:()=>Yo},popperClass:{type:String,default:""},popperStyle:{type:G([String,Object])},...zs}),rr=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},Rp=(e,t)=>{const n=rr(e);if(!n)return-1;const a=rr(t);if(!a)return-1;const o=n.minutes+n.hours*60,r=a.minutes+a.hours*60;return o===r?0:o>r?1:-1},c1=e=>`${e}`.padStart(2,"0"),nl=e=>`${c1(e.hours)}:${c1(e.minutes)}`,rX=(e,t)=>{const n=rr(e);if(!n)return"";const a=rr(t);if(!a)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=a.minutes,o.hours+=a.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,nl(o)};var sX=se({name:"ElTimeSelect",__name:"time-select",props:oX,emits:[yt,"blur","focus","clear",at],setup(e,{expose:t}){rt.extend(zm);const{Option:n}=es,a=e,o=ge("input"),r=M(),s=un(),{lang:l}=xt(),u=C(()=>a.modelValue),c=C(()=>{const b=rr(a.start);return b?nl(b):null}),d=C(()=>{const b=rr(a.end);return b?nl(b):null}),f=C(()=>{const b=rr(a.minTime||"");return b?nl(b):null}),p=C(()=>{const b=rr(a.maxTime||"");return b?nl(b):null}),g=C(()=>{const b=rr(a.step),w=!b||b.hours<0||b.minutes<0||Number.isNaN(b.hours)||Number.isNaN(b.minutes)||b.hours===0&&b.minutes===0;return w&&jt("ElTimeSelect",`invalid step, fallback to default step (${tv}).`),w?tv:nl(b)}),h=C(()=>{const b=[],w=(y,S)=>{b.push({value:y,rawValue:S,disabled:Rp(S,f.value||"-1:-1")<=0||Rp(S,p.value||"100:100")>=0})};if(a.start&&a.end&&a.step){let y=c.value,S;for(;y&&d.value&&Rp(y,d.value)<=0;)S=rt(y,"HH:mm").locale(l.value).format(a.format),w(S,y),y=rX(y,g.value);a.includeEndTime&&d.value&&b[b.length-1]?.rawValue!==d.value&&w(rt(d.value,"HH:mm").locale(l.value).format(a.format),d.value)}return b});return t({blur:()=>{r.value?.blur?.()},focus:()=>{r.value?.focus?.()}}),(b,w)=>(E(),le(i(es),{ref_key:"select",ref:r,name:e.name,"model-value":u.value,disabled:i(s),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":w[0]||(w[0]=y=>b.$emit(i("update:modelValue"),y)),onChange:w[1]||(w[1]=y=>b.$emit(i("change"),y)),onBlur:w[2]||(w[2]=y=>b.$emit("blur",y)),onFocus:w[3]||(w[3]=y=>b.$emit("focus",y)),onClear:w[4]||(w[4]=()=>b.$emit("clear"))},{prefix:ne(()=>[e.prefixIcon?(E(),le(i(De),{key:0,class:R(i(o).e("prefix-icon"))},{default:ne(()=>[(E(),le(it(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)]),default:ne(()=>[(E(!0),D(Ve,null,kt(h.value,y=>(E(),le(i(n),{key:y.value,label:y.value,value:y.value,disabled:y.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["name","model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}}),lX=sX;const iX=st(lX),Ox="timeline",uX=Ee({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),cX=se({name:"ElTimeline",props:uX,setup(e,{slots:t}){const n=ge("timeline");St(Ox,{props:e,slots:t});const a=C(()=>[n.b(),n.is(e.mode)]);return()=>{const o=Aa(t.default?.()??[]);return qe("ul",{class:a.value},e.reverse?o.reverse():o)}}}),dX=Ee({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:Ut},hollow:Boolean});var fX=se({name:"ElTimelineItem",__name:"timeline-item",props:dX,setup(e){const t=e,{props:n}=$e(Ox),a=ge("timeline-item"),o=C(()=>[a.e("node"),a.em("node",t.size||""),a.em("node",t.type||""),a.is("hollow",t.hollow)]),r=C(()=>[a.b(),{[a.e("center")]:t.center},a.is(n.mode)]);return(s,l)=>(E(),D("li",{class:R(r.value)},[z("div",{class:R(i(a).e("tail"))},null,2),s.$slots.dot?re("v-if",!0):(E(),D("div",{key:0,class:R(o.value),style:ze({backgroundColor:e.color})},[e.icon?(E(),le(i(De),{key:0,class:R(i(a).e("icon"))},{default:ne(()=>[(E(),le(it(e.icon)))]),_:1},8,["class"])):re("v-if",!0)],6)),s.$slots.dot?(E(),D("div",{key:1,class:R(i(a).e("dot"))},[oe(s.$slots,"dot")],2)):re("v-if",!0),z("div",{class:R(i(a).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(E(),D("div",{key:0,class:R([i(a).e("timestamp"),i(a).is("top")])},Ce(e.timestamp),3)):re("v-if",!0),z("div",{class:R(i(a).e("content"))},[oe(s.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(E(),D("div",{key:1,class:R([i(a).e("timestamp"),i(a).is("bottom")])},Ce(e.timestamp),3)):re("v-if",!0)],2)],2))}}),_x=fX;const pX=st(cX,{TimelineItem:_x}),hX=ln(_x),Rx="left-check-change",Ix="right-check-change",al=Ee({data:{type:G(Array),default:()=>[]},titles:{type:G(Array),default:()=>[]},buttonTexts:{type:G(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:G(Function)},leftDefaultChecked:{type:G(Array),default:()=>[]},rightDefaultChecked:{type:G(Array),default:()=>[]},renderContent:{type:G(Function)},modelValue:{type:G(Array),default:()=>[]},format:{type:G(Object),default:()=>({})},filterable:Boolean,props:{type:G(Object),default:()=>pn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),nv=(e,t)=>[e,t].every(we)||we(e)&&En(t),vX={[yt]:(e,t,n)=>[e,n].every(we)&&["left","right"].includes(t),[at]:e=>we(e),[Rx]:nv,[Ix]:nv},zu=e=>{const t={label:"label",key:"key",disabled:"disabled"};return C(()=>({...t,...e.props}))},mX=(e,t)=>({onSourceCheckedChange:(o,r)=>{e.leftChecked=o,r&&t(Rx,o,r)},onTargetCheckedChange:(o,r)=>{e.rightChecked=o,r&&t(Ix,o,r)}}),gX=e=>{const t=zu(e),n=C(()=>e.data.reduce((a,o)=>(a[o[t.value.key]]=o,a),{}));return{sourceData:C(()=>e.data.filter(a=>!e.modelValue.includes(a[t.value.key]))),targetData:C(()=>e.targetOrder==="original"?e.data.filter(a=>e.modelValue.includes(a[t.value.key])):e.modelValue.reduce((a,o)=>{const r=n.value[o];return r&&a.push(r),a},[]))}},bX=(e,t,n)=>{const a=zu(e),o=(l,u,c)=>{n(at,l),n(yt,l,u,c)};return{addToLeft:()=>{const l=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=l.indexOf(u);c>-1&&l.splice(c,1)}),o(l,"left",t.rightChecked)},addToRight:()=>{let l=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[a.value.key]);l=e.targetOrder==="unshift"?u.concat(l):l.concat(u),e.targetOrder==="original"&&(l=e.data.filter(c=>l.includes(c[a.value.key])).map(c=>c[a.value.key])),o(l,"right",t.leftChecked)}}},av="checked-change",yX=Ee({data:al.data,optionRender:{type:G(Function)},placeholder:String,title:String,filterable:Boolean,format:al.format,filterMethod:al.filterMethod,defaultChecked:al.leftDefaultChecked,props:al.props}),wX={[av]:nv},SX=(e,t,n)=>{const a=zu(e),o=C(()=>e.data.filter(d=>Fe(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),r=C(()=>o.value.filter(d=>!d[a.value.disabled])),s=C(()=>{const d=t.checked.length,f=e.data.length,{noChecked:p,hasChecked:g}=e.format;return p&&g?d>0?g.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):p.replace(/\${total}/g,f.toString()):`${d}/${f}`}),l=C(()=>{const d=t.checked.length;return d>0&&d{const d=r.value.map(f=>f[a.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?r.value.map(f=>f[a.value.key]):[]};return pe(()=>t.checked,(d,f)=>{u(),t.checkChangeByUser?n(av,d,d.concat(f).filter(p=>!d.includes(p)||!f.includes(p))):(n(av,d),t.checkChangeByUser=!0)}),pe(r,()=>{u()}),pe(()=>e.data,()=>{const d=[],f=o.value.map(p=>p[a.value.key]);t.checked.forEach(p=>{f.includes(p)&&d.push(p)}),t.checkChangeByUser=!1,t.checked=d}),pe(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(h=>f.includes(h)))return;const p=[],g=r.value.map(h=>h[a.value.key]);d.forEach(h=>{g.includes(h)&&p.push(h)}),t.checkChangeByUser=!1,t.checked=p},{immediate:!0}),{filteredData:o,checkableData:r,checkedSummary:s,isIndeterminate:l,updateAllChecked:u,handleAllCheckedChange:c}};var CX=se({name:"ElTransferPanel",__name:"transfer-panel",props:yX,emits:wX,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wn(),s=({option:S})=>S,{t:l}=xt(),u=ge("transfer"),c=Dt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=zu(a),{filteredData:f,checkedSummary:p,isIndeterminate:g,handleAllCheckedChange:h}=SX(a,c,o),v=C(()=>!ha(c.query)&&ha(f.value)),m=C(()=>!ha(r.default()[0].children)),{checked:b,allChecked:w,query:y}=Pn(c);return t({query:y}),(S,k)=>(E(),D("div",{class:R(i(u).b("panel"))},[z("p",{class:R(i(u).be("panel","header"))},[X(i(mo),{modelValue:i(w),"onUpdate:modelValue":k[0]||(k[0]=x=>Gt(w)?w.value=x:null),indeterminate:i(g),"validate-event":!1,onChange:i(h)},{default:ne(()=>[z("span",{class:R(i(u).be("panel","header-title"))},Ce(e.title),3),z("span",{class:R(i(u).be("panel","header-count"))},Ce(i(p)),3)]),_:1},8,["modelValue","indeterminate","onChange"])],2),z("div",{class:R([i(u).be("panel","body"),i(u).is("with-footer",m.value)])},[e.filterable?(E(),le(i(Un),{key:0,modelValue:i(y),"onUpdate:modelValue":k[1]||(k[1]=x=>Gt(y)?y.value=x:null),class:R(i(u).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":i(kA),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):re("v-if",!0),ct(X(i(qm),{modelValue:i(b),"onUpdate:modelValue":k[2]||(k[2]=x=>Gt(b)?b.value=x:null),"validate-event":!1,class:R([i(u).is("filterable",e.filterable),i(u).be("panel","list")])},{default:ne(()=>[(E(!0),D(Ve,null,kt(i(f),x=>(E(),le(i(mo),{key:x[i(d).key],class:R(i(u).be("panel","item")),value:x[i(d).key],disabled:x[i(d).disabled],"validate-event":!1},{default:ne(()=>[X(s,{option:e.optionRender?.(x)},null,8,["option"])]),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[$t,!v.value&&!i(ha)(e.data)]]),ct(z("div",{class:R(i(u).be("panel","empty"))},[oe(S.$slots,"empty",{},()=>[wt(Ce(v.value?i(l)("el.transfer.noMatch"):i(l)("el.transfer.noData")),1)])],2),[[$t,v.value||i(ha)(e.data)]])],2),m.value?(E(),D("p",{key:0,class:R(i(u).be("panel","footer"))},[oe(S.$slots,"default")],2)):re("v-if",!0)],2))}}),d1=CX;const kX={key:0},EX={key:0};var xX=se({name:"ElTransfer",__name:"transfer",props:al,emits:vX,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wn(),{t:s}=xt(),l=ge("transfer"),{formItem:u}=Fn(),c=Dt({leftChecked:[],rightChecked:[]}),d=zu(a),{sourceData:f,targetData:p}=gX(a),{onSourceCheckedChange:g,onTargetCheckedChange:h}=mX(c,o),{addToLeft:v,addToRight:m}=bX(a,c,o),b=M(),w=M(),y=I=>{switch(I){case"left":b.value.query="";break;case"right":w.value.query="";break}},S=C(()=>a.buttonTexts.length===2),k=C(()=>a.titles[0]||s("el.transfer.titles.0")),x=C(()=>a.titles[1]||s("el.transfer.titles.1")),O=C(()=>a.filterPlaceholder||s("el.transfer.filterPlaceholder"));pe(()=>a.modelValue,()=>{a.validateEvent&&u?.validate?.("change").catch(ut)});const T=C(()=>I=>{if(a.renderContent)return a.renderContent(qe,I);const _=(r.default?.({option:I})||[]).filter(N=>N.type!==kn);return _.length?_:qe("span",I[d.value.label]||I[d.value.key])});return t({clearQuery:y,leftPanel:b,rightPanel:w}),(I,_)=>(E(),D("div",{class:R(i(l).b())},[X(d1,{ref_key:"leftPanel",ref:b,data:i(f),"option-render":T.value,placeholder:O.value,title:k.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:a.props,onCheckedChange:i(g)},{empty:ne(()=>[oe(I.$slots,"left-empty")]),default:ne(()=>[oe(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),z("div",{class:R(i(l).e("buttons"))},[X(i(Bn),{type:"primary",class:R([i(l).e("button"),i(l).is("with-texts",S.value)]),disabled:i(ha)(c.rightChecked),onClick:i(v)},{default:ne(()=>[X(i(De),null,{default:ne(()=>[X(i(mr))]),_:1}),i(Rt)(e.buttonTexts[0])?re("v-if",!0):(E(),D("span",kX,Ce(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),X(i(Bn),{type:"primary",class:R([i(l).e("button"),i(l).is("with-texts",S.value)]),disabled:i(ha)(c.leftChecked),onClick:i(m)},{default:ne(()=>[i(Rt)(e.buttonTexts[1])?re("v-if",!0):(E(),D("span",EX,Ce(e.buttonTexts[1]),1)),X(i(De),null,{default:ne(()=>[X(i(sa))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),X(d1,{ref_key:"rightPanel",ref:w,data:i(p),"option-render":T.value,placeholder:O.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:x.value,"default-checked":e.rightDefaultChecked,props:a.props,onCheckedChange:i(h)},{empty:ne(()=>[oe(I.$slots,"right-empty")]),default:ne(()=>[oe(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}}),TX=xX;const OX=st(TX),Sg="RootTree",$x="NodeInstance",f1="TreeNodeMap",Nx=Ee({data:{type:G(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:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:G(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:G(Function)},allowDrop:{type:G(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ut}}),_X={"check-change":(e,t,n)=>e&&Wt(t)&&Wt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,a)=>e&&t&&a instanceof Event,"node-contextmenu":(e,t,n,a)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,a)=>e&&a,"node-drop":(e,t,n,a)=>e&&t&&a,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},Mx="$treeNodeId",p1=function(e,t){!t||t.$treeNodeId||Object.defineProperty(t,Mx,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Cg=(e,t)=>t?.[e||"$treeNodeId"],ov=(e,t,n)=>{const a=e.value.currentNode;n();const o=e.value.currentNode;a!==o&&t("current-change",o?o.data:null,o)},Px=e=>{let t=!0,n=!0,a=!0,o=!0;for(let r=0,s=e.length;r{n.canFocus=t,rv(n.childNodes,t)})};let RX=0;var sv=class Ac{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=RX++,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 n in t)Nt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const r=vc(this,"isLeaf");Wt(r)&&(this.isLeafByUser=r)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),we(this.data)||p1(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,o=t.key;o&&!En(this.key)&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),o&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode&&(t.currentNode.isCurrent=!1),t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||this.parent?.expanded===!0)&&(this.canFocus=!0)}setData(t){we(t)||p1(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&we(this.data)?n=this.data:n=vc(this,"children")||[];for(let a=0,o=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Ac)){if(!a){const o=this.getChildren(!0);o?.includes(t.data)||(Rt(n)||n<0?o?.push(t.data):o?.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Dt(new Ac(t)),t instanceof Ac&&t.initialize()}t.level=this.level+1,Rt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(a=>a.data===t);n&&this.removeChild(n)}expand(t,n){const a=()=>{if(n){let o=this.parent;for(;o&&o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),rv(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{we(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||mi(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,rv(this.childNodes,!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,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,a,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly&&!n)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const s=()=>{if(n){const l=this.childNodes;for(let f=0,p=l.length;f{s(),mi(this)},{checked:t!==!1});return}else s()}const r=this.parent;!r||r.level===0||!a&&!this.store.checkStrictly&&mi(r)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let o="children";return a&&(o=a.children||"children"),Rt(n[o])&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(r=>r.data),a={},o=[];t.forEach((r,s)=>{const l=r[Mx];l&&n.some(u=>u?.$treeNodeId===l)?a[l]={index:s,data:r}:o.push({index:s,data:r})}),this.store.lazy||n.forEach(r=>{a[r?.$treeNodeId]||this.removeChildByData(r)}),o.forEach(({index:r,data:s})=>{this.insertChild({data:s},r)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=r=>{this.childNodes=[],this.doCreateChildren(r,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,r)},o=()=>{this.loading=!1};this.store.load(this,a,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||mi(this)}},IX=class{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)Nt(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new sv({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,t=>{this.root.doCreateChildren(t),this._initDefaultCheckedNodes()},ut)}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,a=async function(o){const r=o.root?o.root.childNodes:o.childNodes;for(const[s,l]of r.entries())l.visible=!!t?.call(l,e,l.data,l),s%80===0&&s>0&&await Ne(),await a(l);if(!o.visible&&r.length){let s=!0;s=!r.some(l=>l.visible),o.root?o.root.visible=s===!1:o.visible=s===!1}e&&o.visible&&!o.isLeaf&&(!n||o.loaded)&&o.expand()};a(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof sv)return e;const t=ot(e)?Cg(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){const n=this.getNode(t);n.parent?.insertBefore({data:e},n)}insertAfter(e,t){const n=this.getNode(t);n.parent?.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=Pa(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(n=>{const a=t[n];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!En(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(!(!e||!e.data))if(!t)this.nodesMap[e.id]=e;else{const n=e.key;En(n)||(this.nodesMap[n]=e)}}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(t=>{this.deregisterNode(t)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(r=>{(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&n.push(r.data),a(r)})};return a(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(t=>(t||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(a=>{a.indeterminate&&e.push(a.data),t(a)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)Nt(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const a=n.childNodes;for(let o=a.length-1;o>=0;o--){const r=a[o];this.remove(r.data)}for(let o=0,r=t.length;ol.level-u.level),o=Object.create(null),r=Object.keys(n);a.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{o[u.data[e]]=!0,u.childNodes?.length&&s(u)})};for(let l=0,u=a.length;l{g.isLeaf||g.setChecked(!1,!1,!0),f(g)}),p.reInitChecked()};f(c)}}}setCheckedNodes(e,t=!1){const n=this.key,a={};e.forEach(o=>{a[(o||{})[n]]=!0}),this._setCheckedKeys(n,t,a)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,a={};e.forEach(o=>{a[o]=!0}),this._setCheckedKeys(n,t,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(t=>{const n=this.getNode(t);n&&n.expand(null,this.autoExpandParent)})}setChecked(e,t,n){const a=this.getNode(e);a&&a.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){const n=e[this.key],a=this.nodesMap[n];this.setCurrentNode(a),t&&this.currentNode&&this.currentNode.level>1&&this.currentNode.parent?.expand(null,!0)}setCurrentNodeKey(e,t=!0){if(this.currentNodeKey=e,Pa(e)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&this.currentNode.parent?.expand(null,!0))}};function Ax(e){const t=$e(f1,null);let n={treeNodeExpand:a=>{e.node!==a&&e.node?.collapse()},children:new Set};return t&&t.children.add(n),Vt(()=>{t&&t.children.delete(n),n=null}),St(f1,n),{broadcastExpanded:a=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(a)}}}const Lx=Symbol("dragEvents");function $X({props:e,ctx:t,el$:n,dropIndicator$:a,store:o}){const r=ge("tree"),s=M({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return St(Lx,{treeNodeDragStart:({event:d,treeNode:f})=>{if(d.dataTransfer){if(Fe(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const p=f,g=s.value.dropNode;g&&g.node.id!==p.node.id&&ra(g.$el,r.is("drop-inner"));const h=s.value.draggingNode;if(!h||!p)return;let v=!0,m=!0,b=!0,w=!0;Fe(e.allowDrop)&&(v=e.allowDrop(h.node,p.node,"prev"),w=m=e.allowDrop(h.node,p.node,"inner"),b=e.allowDrop(h.node,p.node,"next")),d.dataTransfer.dropEffect=m||v||b?"move":"none",(v||m||b)&&g?.node.id!==p.node.id&&(g&&t.emit("node-drag-leave",h.node,g.node,d),t.emit("node-drag-enter",h.node,p.node,d)),v||m||b?s.value.dropNode=p:s.value.dropNode=null,p.node.nextSibling===h.node&&(b=!1),p.node.previousSibling===h.node&&(v=!1),p.node.contains(h.node,!1)&&(m=!1),(h.node===p.node||h.node.contains(p.node))&&(v=!1,m=!1,b=!1);const y=p.$el,S=y.querySelector(`.${r.be("node","content")}`).getBoundingClientRect(),k=n.value.getBoundingClientRect(),x=n.value.scrollTop;let O;const T=v?m?.25:b?.45:1:Number.NEGATIVE_INFINITY,I=b?m?.75:v?.55:0:Number.POSITIVE_INFINITY;let _=-9999;const N=d.clientY-S.top;NS.height*I?O="after":m?O="inner":O="none";const $=y.querySelector(`.${r.be("node","expand-icon")}`).getBoundingClientRect(),B=a.value;O==="before"?_=$.top-k.top+x:O==="after"&&(_=$.bottom-k.top+x),B.style.top=`${_}px`,B.style.left=`${$.right-k.left}px`,O==="inner"?Ua(y,r.is("drop-inner")):ra(y,r.is("drop-inner")),s.value.showDropIndicator=O==="before"||O==="after",s.value.allowDrop=s.value.showDropIndicator||w,s.value.dropType=O,t.emit("node-drag-over",h.node,p.node,d)},treeNodeDragEnd:d=>{const{draggingNode:f,dropType:p,dropNode:g}=s.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f?.node.data&&g){const h={data:f.node.data};p!=="none"&&f.node.remove(),p==="before"?g.node.parent?.insertBefore(h,g.node):p==="after"?g.node.parent?.insertAfter(h,g.node):p==="inner"&&g.node.insertChild(h),p!=="none"&&(o.value.registerNode(h),o.value.key&&f.node.eachNode(v=>{o.value.nodesMap[v.data[o.value.key]]?.setChecked(v.checked,!o.value.checkStrictly)})),ra(g.$el,r.is("drop-inner")),t.emit("node-drag-end",f.node,g.node,p,d),p!=="none"&&t.emit("node-drop",f.node,g.node,p,d)}f&&!g&&t.emit("node-drag-end",f.node,null,p,d),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0}}),{dragState:s}}var NX=se({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ge("tree"),n=$e($x),a=$e(Sg);return()=>{const o=e.node,{data:r,store:s}=o;return e.renderContent?e.renderContent(qe,{_self:n,node:o,data:r,store:s}):oe(a.ctx.slots,"default",{node:o,data:r},()=>[qe(wg,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}}),MX=NX,PX=se({name:"ElTreeNode",components:{ElCollapseTransition:yf,ElCheckbox:mo,NodeContent:MX,ElIcon:De,Loading:ho},props:{node:{type:sv,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=ge("tree"),{broadcastExpanded:a}=Ax(e),o=$e(Sg),r=M(!1),s=M(!1),l=M(),u=M(),c=M(),d=$e(Lx),f=dt();St($x,f),o||jt("Tree","Can not find node's tree."),e.node.expanded&&(r.value=!0,s.value=!0);const p=o.props.props.children||"children";pe(()=>{const I=e.node.data?.[p];return I&&[...I]},()=>{e.node.updateChildren()}),pe(()=>e.node.indeterminate,I=>{v(e.node.checked,I)}),pe(()=>e.node.checked,I=>{v(I,e.node.indeterminate)}),pe(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),pe(()=>e.node.expanded,I=>{Ne(()=>r.value=I),I&&(s.value=!0)});const g=I=>o.props.nodeKey?Cg(o.props.nodeKey,I.data):I.id,h=I=>{const _=e.props.class;if(!_)return{};let N;if(Fe(_)){const{data:$}=I;N=_($,I)}else N=_;return Ae(N)?{[N]:!0}:N},v=(I,_)=>{(l.value!==I||u.value!==_)&&o.ctx.emit("check-change",e.node.data,I,_),l.value=I,u.value=_},m=I=>{ov(o.store,o.ctx.emit,()=>{if(o?.props?.nodeKey){const _=g(e.node);o.store.value.setCurrentNodeKey(_)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&w(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&y(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,f,I)},b=I=>{o.instance.vnode.props?.onNodeContextmenu&&(I.stopPropagation(),I.preventDefault()),o.ctx.emit("node-contextmenu",I,e.node.data,e.node,f)},w=()=>{e.node.isLeaf||(r.value?(o.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},y=I=>{const _=o?.props.checkStrictly,N=e.node.childNodes;!_&&N.length&&(I=N.some($=>!$.isEffectivelyChecked)),e.node.setChecked(I,!_),Ne(()=>{const $=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:$.getCheckedNodes(),checkedKeys:$.getCheckedKeys(),halfCheckedNodes:$.getHalfCheckedNodes(),halfCheckedKeys:$.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:o,expanded:r,childNodeRendered:s,oldChecked:l,oldIndeterminate:u,getNodeKey:g,getNodeClass:h,handleSelectChange:v,handleClick:m,handleContextMenu:b,handleExpandIconClick:w,handleCheckChange:y,handleChildNodeExpand:(I,_,N)=>{a(_),o.ctx.emit("node-expand",I,_,N)},handleDragStart:I=>{o.props.draggable&&d.treeNodeDragStart({event:I,treeNode:e})},handleDragOver:I=>{I.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:I,treeNode:{$el:c.value,node:e.node}})},handleDrop:I=>{I.preventDefault()},handleDragEnd:I=>{o.props.draggable&&d.treeNodeDragEnd(I)},CaretRight:kC}}});const AX=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],LX=["aria-expanded"];function DX(e,t,n,a,o,r){const s=Mt("el-icon"),l=Mt("el-checkbox"),u=Mt("loading"),c=Mt("node-content"),d=Mt("el-tree-node"),f=Mt("el-collapse-transition");return ct((E(),D("div",{ref:"node$",class:R([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Xe((...p)=>e.handleClick&&e.handleClick(...p),["stop"])),onContextmenu:t[3]||(t[3]=(...p)=>e.handleContextMenu&&e.handleContextMenu(...p)),onDragstart:t[4]||(t[4]=Xe((...p)=>e.handleDragStart&&e.handleDragStart(...p),["stop"])),onDragover:t[5]||(t[5]=Xe((...p)=>e.handleDragOver&&e.handleDragOver(...p),["stop"])),onDragend:t[6]||(t[6]=Xe((...p)=>e.handleDragEnd&&e.handleDragEnd(...p),["stop"])),onDrop:t[7]||(t[7]=Xe((...p)=>e.handleDrop&&e.handleDrop(...p),["stop"]))},[z("div",{class:R(e.ns.be("node","content")),style:ze({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(E(),le(s,{key:0,class:R([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Xe(e.handleExpandIconClick,["stop"])},{default:ne(()=>[(E(),le(it(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.showCheckbox?(E(),le(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Xe(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):re("v-if",!0),e.node.loading?(E(),le(s,{key:2,class:R([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ne(()=>[X(u)]),_:1},8,["class"])):re("v-if",!0),X(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),X(f,null,{default:ne(()=>[!e.renderAfterExpand||e.childNodeRendered?ct((E(),D("div",{key:0,class:R(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Xe(()=>{},["stop"]))},[(E(!0),D(Ve,null,kt(e.node.childNodes,p=>(E(),le(d,{key:e.getNodeKey(p),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:p,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,LX)),[[$t,e.expanded]]):re("v-if",!0)]),_:1})],42,AX)),[[$t,e.node.visible]])}var BX=Mn(PX,[["render",DX]]);function VX({el$:e},t){const n=ge("tree");ht(()=>{r()}),bo(()=>{e.value?.querySelectorAll("input[type=checkbox]").forEach(s=>{s.setAttribute("tabindex","-1")})});function a(s,l){const u=t.value.getNode(s[l].dataset.key);return u.canFocus&&u.visible&&(u.parent?.expanded||u.parent?.level===0)}Bt(e,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=qt(s),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(l);let f;if([Se.up,Se.down].includes(u)){if(s.preventDefault(),u===Se.up){f=d===-1?0:d!==0?d-1:c.length-1;const g=f;for(;!a(c,f);){if(f--,f===g){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d=c.length&&(f=0)}}f!==-1&&c[f].focus()}[Se.left,Se.right].includes(u)&&(s.preventDefault(),l.click());const p=l.querySelector('[type="checkbox"]');[Se.enter,Se.numpadEnter,Se.space].includes(u)&&p&&(s.preventDefault(),p.click())});const r=()=>{if(!e.value)return;const s=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(u=>{u.setAttribute("tabindex","-1")});const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}s[0]?.setAttribute("tabindex","0")}}var FX=se({name:"ElTree",components:{ElTreeNode:BX},props:Nx,emits:_X,setup(e,t){const{t:n}=xt(),a=ge("tree"),o=M(new IX({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const r=M(o.value.root),s=M(null),l=M(null),u=M(null),{broadcastExpanded:c}=Ax(e),{dragState:d}=$X({props:e,ctx:t,el$:l,dropIndicator$:u,store:o});VX({el$:l},o);const f=dt(),p=C(()=>{let F=f?.parent;for(;F;){if(F.type.name==="ElTreeSelect")return!0;F=F.parent}return!1}),g=C(()=>{const{childNodes:F}=r.value;return(!F||F.length===0||F.every(({visible:H})=>!H))&&!p.value});pe(()=>e.currentNodeKey,F=>{o.value.setCurrentNodeKey(F??null)}),pe(()=>e.defaultCheckedKeys,(F,H)=>{fn(F,H)||o.value.setDefaultCheckedKey(F??[])}),pe(()=>e.defaultExpandedKeys,F=>{o.value.setDefaultExpandedKeys(F??[])}),pe(()=>e.data,F=>{o.value.setData(F)},{deep:!0}),pe(()=>e.checkStrictly,F=>{o.value.checkStrictly=F});const h=F=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(F)},v=F=>e.nodeKey?Cg(e.nodeKey,F.data):F.id,m=F=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${F}`)},b=F=>{m("getNodePath");const H=o.value.getNode(F);if(!H)return[];const U=[H.data];let J=H.parent;for(;J&&J!==r.value;)U.push(J.data),J=J.parent;return U.reverse()},w=(F,H)=>o.value.getCheckedNodes(F,H),y=F=>o.value.getCheckedKeys(F),S=()=>{const F=o.value.getCurrentNode();return F?F.data:null},k=()=>{m("getCurrentKey");const F=S();return F?F[e.nodeKey]:null},x=(F,H)=>{m("setCheckedNodes"),o.value.setCheckedNodes(F,H)},O=(F,H)=>{m("setCheckedKeys"),o.value.setCheckedKeys(F,H)},T=(F,H,U=!1)=>{o.value.setChecked(F,H,U)},I=()=>o.value.getHalfCheckedNodes(),_=()=>o.value.getHalfCheckedKeys(),N=(F,H=!0)=>{m("setCurrentNode"),ov(o,t.emit,()=>{c(F),o.value.setUserCurrentNode(F,H)})},$=(F=null,H=!0)=>{m("setCurrentKey"),ov(o,t.emit,()=>{c(),o.value.setCurrentNodeKey(F,H)})},B=F=>o.value.getNode(F),K=F=>{o.value.remove(F)},j=(F,H)=>{o.value.append(F,H)},W=(F,H)=>{o.value.insertBefore(F,H)},A=(F,H)=>{o.value.insertAfter(F,H)},P=(F,H,U)=>{c(H),t.emit("node-expand",F,H,U)},V=(F,H)=>{m("updateKeyChildren"),o.value.updateChildren(F,H)};return St(Sg,{ctx:t,props:e,store:o,root:r,currentNode:s,instance:f}),St(Wo,void 0),{ns:a,store:o,root:r,currentNode:s,dragState:d,el$:l,dropIndicator$:u,isEmpty:g,filter:h,getNodeKey:v,getNodePath:b,getCheckedNodes:w,getCheckedKeys:y,getCurrentNode:S,getCurrentKey:k,setCheckedNodes:x,setCheckedKeys:O,setChecked:T,getHalfCheckedNodes:I,getHalfCheckedKeys:_,setCurrentNode:N,setCurrentKey:$,t:n,getNode:B,remove:K,append:j,insertBefore:W,insertAfter:A,handleNodeExpand:P,updateKeyChildren:V}}});function zX(e,t,n,a,o,r){const s=Mt("el-tree-node");return E(),D("div",{ref:"el$",class:R([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(E(!0),D(Ve,null,kt(e.root.childNodes,l=>(E(),le(s,{key:e.getNodeKey(l),node:l,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(E(),D("div",{key:0,class:R(e.ns.e("empty-block"))},[oe(e.$slots,"empty",{},()=>[z("span",{class:R(e.ns.e("empty-text"))},Ce(e.emptyText??e.t("el.tree.emptyText")),3)])],2)):re("v-if",!0),ct(z("div",{ref:"dropIndicator$",class:R(e.ns.e("drop-indicator"))},null,2),[[$t,e.dragState.showDropIndicator]])],2)}var HX=Mn(FX,[["render",zX]]);const kg=st(HX),KX=(e,{attrs:t,emit:n},{select:a,tree:o,key:r})=>{const s=ge("tree-select");pe(()=>e.data,()=>{e.filterable&&Ne(()=>{o.value?.filter(a.value?.states.inputValue)})},{flush:"post"});const l=u=>{const c=u.at(-1);if(c.expanded&&c.childNodes.at(-1))l([c.childNodes.at(-1)]);else{o.value.el$?.querySelector(`[data-key="${u.at(-1).key}"]`)?.focus({preventScroll:!0});return}};return ht(()=>{Bt(()=>a.value?.$el,"keydown",async u=>{const c=qt(u),{dropdownMenuVisible:d}=a.value;[Se.down,Se.up].includes(c)&&d&&(await Ne(),setTimeout(()=>{if(Se.up===c){const f=o.value.store.root.childNodes;l(f);return}a.value.optionsArray[a.value.states.hoveringIndex].$el?.parentNode?.parentNode?.focus({preventScroll:!0})}))},{capture:!0})}),{...hr(Pn(e),Object.keys(es.props)),...t,class:C(()=>t.class),style:C(()=>t.style),"onUpdate:modelValue":u=>n(at,u),valueKey:r,popperClass:C(()=>{const u=[s.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):o.value?.filter(u)}}},WX=se({extends:ud,setup(e,t){const n=ud.setup(e,t);delete n.selectOptionClick;const a=dt().proxy;return Ne(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),pe(()=>t.attrs.visible,o=>{Ne(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function lv(e){return e||e===0}function Eg(e){return we(e)&&e.length}function Js(e){return we(e)?e:lv(e)?[e]:[]}function Lc(e,t,n,a,o){for(let r=0;r{pe([()=>e.modelValue,r],()=>{e.showCheckbox&&Ne(()=>{const h=r.value;h&&!fn(h.getCheckedKeys(),Js(e.modelValue))&&h.setCheckedKeys(Js(e.modelValue))})},{immediate:!0,deep:!0});const l=C(()=>({value:s.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(h,v)=>{const m=l.value[h];return Fe(m)?m(v,r.value?.getNode(u("value",v))):v[m]},c=Js(e.modelValue).map(h=>Lc(e.data||[],v=>u("value",v)===h,v=>u("children",v),(v,m,b,w)=>w&&u("value",w))).filter(h=>lv(h)),d=C(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return Dc(e.data.concat(e.cacheData),v=>{const m=u("value",v);h.push({value:m,currentLabel:u("label",v),isDisabled:u("disabled",v)})},v=>u("children",v)),h}),f=()=>r.value?.getCheckedKeys().filter(h=>{const v=r.value?.getNode(h);return!En(v)&&ha(v.childNodes)}),p=h=>{fn(e.modelValue,h)||a(yt,h)};function g(h){a(at,h),p(h)}return{...hr(Pn(e),Object.keys(kg.props)),...t,nodeKey:s,expandOnClickNode:C(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:C(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:v,data:m,store:b})=>h(WX,{value:u("value",m),label:u("label",m),disabled:u("disabled",m),visible:v.visible},e.renderContent?()=>e.renderContent(h,{node:v,data:m,store:b}):n.default?()=>n.default({node:v,data:m,store:b}):void 0),filterNodeMethod:(h,v,m)=>e.filterNodeMethod?e.filterNodeMethod(h,v,m):h?new RegExp(um(h),"i").test(u("label",v)||""):!0,onNodeClick:(h,v,m)=>{if(t.onNodeClick?.(h,v,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!u("disabled",h)){const b=o.value?.states.options.get(u("value",h));o.value?.handleOptionSelect(b)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(h,v)=>{if(!e.showCheckbox)return;const m=u("value",h),b={};Dc([r.value.store.root],k=>b[k.key]=k,k=>k.childNodes);const w=v.checkedKeys,y=e.multiple?Js(e.modelValue).filter(k=>!(k in b)&&!w.includes(k)):[],S=y.concat(w);if(e.checkStrictly)g(e.multiple?S:S.includes(m)?m:void 0);else if(e.multiple){const k=f();g(y.concat(k))}else{const k=Lc([h],T=>!Eg(u("children",T))&&!u("disabled",T),T=>u("children",T)),x=k?u("value",k):void 0,O=lv(e.modelValue)&&!!Lc([h],T=>u("value",T)===e.modelValue,T=>u("children",T));g(x===e.modelValue||O?void 0:x)}Ne(()=>{const k=Js(e.modelValue);r.value.setCheckedKeys(k),t.onCheck?.(h,{checkedKeys:r.value.getCheckedKeys(),checkedNodes:r.value.getCheckedNodes(),halfCheckedKeys:r.value.getHalfCheckedKeys(),halfCheckedNodes:r.value.getHalfCheckedNodes()})}),o.value?.focus()},onNodeExpand:(h,v,m)=>{t.onNodeExpand?.(h,v,m),Ne(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const b={},w=r.value.getCheckedKeys();Dc([r.value.store.root],k=>b[k.key]=k,k=>k.childNodes);const y=Js(e.modelValue).filter(k=>!(k in b)&&!w.includes(k)),S=f();g(y.concat(S))}})},cacheOptions:d}};var UX=se({props:{data:{type:Array,default:()=>[]}},setup(e){const t=$e(Du);return pe(()=>e.data,()=>{e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const n=t.selectRef?.querySelectorAll("input")||[];Lt&&!Array.from(n).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),qX=se({name:"ElTreeSelect",inheritAttrs:!1,props:{...Ck,...Nx,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a,emit:o,attrs:r}=t,s={...r,onChange:void 0},l=M(),u=M(),c=C(()=>e.nodeKey||e.valueKey||"value"),d=KX(e,{attrs:r,emit:o},{select:l,tree:u,key:c}),{cacheOptions:f,...p}=jX(e,{attrs:s,slots:n,emit:o},{select:l,tree:u,key:c}),g=Dt({});return a(g),ht(()=>{Object.assign(g,{...hr(u.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...hr(l.value,["focus","blur","selectedLabel"]),treeRef:u.value,selectRef:l.value})}),()=>qe(es,Dt({...d,ref:h=>l.value=h}),{...n,default:()=>[qe(UX,{data:f.value}),qe(kg,Dt({...p,ref:h=>u.value=h}))]})}}),YX=qX;const GX=st(YX),xg=Symbol(),XX={key:-1,level:-1,data:{}},Dx={type:Number,default:26},JX=Ee({data:{type:G(Array),default:()=>pn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:G(Object),default:()=>pn({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:G(Array),default:()=>pn([])},checkStrictly:Boolean,defaultExpandedKeys:{type:G(Array),default:()=>pn([])},indent:{type:Number,default:16},itemSize:Dx,icon:{type:Ut},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:G([String,Number])},accordion:Boolean,filterMethod:{type:G(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),ZX=Ee({node:{type:G(Object),default:()=>pn(XX)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:Dx}),QX=Ee({node:{type:G(Object),required:!0}}),Bx="node-click",Vx="node-drop",Fx="node-expand",zx="node-collapse",Hx="current-change",Kx="check",Wx="check-change",jx="node-contextmenu",eJ={[Bx]:(e,t,n)=>e&&t&&n,[Vx]:(e,t,n)=>e&&t&&n,[Fx]:(e,t)=>e&&t,[zx]:(e,t)=>e&&t,[Hx]:(e,t)=>e&&t,[Kx]:(e,t)=>e&&t,[Wx]:(e,t)=>e&&Wt(t),[jx]:(e,t,n)=>e&&t&&n},tJ={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Wt(t)};function nJ(e,t){const n=M(new Set),a=M(new Set),{emit:o}=dt();pe([()=>t.value,()=>e.defaultCheckedKeys],()=>Ne(()=>{w(e.defaultCheckedKeys)}),{immediate:!0});const r=(y=!1)=>{if(!t.value||!e.showCheckbox||e.checkStrictly&&!y)return;const{levelTreeNodeMap:S,maxLevel:k}=t.value,x=n.value,O=new Set;for(let T=k;T>=1;--T){const I=S.get(T);I&&I.forEach(_=>{const N=_.children;let $=!_.isLeaf||_.disabled||x.has(_.key);if(N){let B=!0,K=!1;for(const j of N){const W=j.key;if(j.isEffectivelyChecked||($=!1),x.has(W))K=!0;else if(O.has(W)){B=!1,K=!0;break}else B=!1}B?x.add(_.key):K?(O.add(_.key),x.delete(_.key)):(x.delete(_.key),O.delete(_.key))}_.isEffectivelyChecked=$})}a.value=O},s=y=>n.value.has(y.key),l=y=>a.value.has(y.key),u=(y,S,k=!0,x=!0,O=!1)=>{const T=n.value,I=y.children;(!e.checkStrictly||O)&&k&&I?.length&&(S=I.some(N=>!N.isEffectivelyChecked));const _=(N,$)=>{T[$?"add":"delete"](N.key);const B=N.children;(!e.checkStrictly||O)&&B&&B.forEach(K=>{(!K.disabled||K.children)&&_(K,$)})};_(y,S),x&&r(),k&&c(y,S)},c=(y,S)=>{const{checkedNodes:k,checkedKeys:x}=h(),{halfCheckedNodes:O,halfCheckedKeys:T}=v();o(Kx,y.data,{checkedKeys:x,checkedNodes:k,halfCheckedKeys:T,halfCheckedNodes:O}),o(Wx,y.data,S)};function d(y=!1){return h(y).checkedKeys}function f(y=!1){return h(y).checkedNodes}function p(){return v().halfCheckedKeys}function g(){return v().halfCheckedNodes}function h(y=!1){const S=[],k=[];if(t?.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;n.value.forEach(O=>{const T=x.get(O);T&&(!y||y&&T.isLeaf)&&(k.push(O),S.push(T.data))})}return{checkedKeys:k,checkedNodes:S}}function v(){const y=[],S=[];if(t?.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;a.value.forEach(x=>{const O=k.get(x);O&&(S.push(x),y.push(O.data))})}return{halfCheckedNodes:y,halfCheckedKeys:S}}function m(y){n.value.clear(),a.value.clear(),Ne(()=>{w(y)})}function b(y,S,k){if(t?.value&&e.showCheckbox){const x=t.value.treeNodeMap.get(y);x&&u(x,S,!1,void 0,k)}}function w(y){if(t?.value){const{treeNodeMap:S}=t.value;if(e.showCheckbox&&S&&y?.length>0){for(const k of y){const x=S.get(k);x&&!s(x)&&u(x,!0,!1,!1)}r()}}}return{updateCheckedKeys:r,toggleCheckbox:u,isChecked:s,isIndeterminate:l,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:p,getHalfCheckedNodes:g,setChecked:b,setCheckedKeys:m}}function aJ(e,t){const n=M(new Set([])),a=M(new Set([])),o=C(()=>Fe(e.filterMethod));function r(l){if(!o.value)return;const u=new Set,c=a.value,d=n.value,f=[],p=t.value?.treeNodes||[],g=e.filterMethod;d.clear();function h(v){v.forEach(m=>{f.push(m),g?.(l,m.data,m)?f.forEach(w=>{u.add(w.key),w.expanded=!0}):(m.expanded=!1,m.isLeaf&&d.add(m.key));const b=m.children;if(b&&h(b),!m.isLeaf){if(!u.has(m.key))d.add(m.key);else if(b){let w=!0;for(const y of b)if(!d.has(y.key)){w=!1;break}w?c.add(m.key):c.delete(m.key)}}f.pop()})}return h(p),u}function s(l){return a.value.has(l.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:r,isForceHiddenExpandIcon:s}}function oJ(e,t){const n=M(new Set),a=M(),o=Tt(),r=M(),{isIndeterminate:s,isChecked:l,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:p,setChecked:g,setCheckedKeys:h}=nJ(e,o),{doFilter:v,hiddenNodeKeySet:m,isForceHiddenExpandIcon:b}=aJ(e,o),w=C(()=>e.props?.value||"id"),y=C(()=>e.props?.children||"children"),S=C(()=>e.props?.disabled||"disabled"),k=C(()=>e.props?.label||"label"),x=C(()=>{const Q=n.value,L=m.value,q=[],te=o.value?.treeNodes||[],fe=[];for(let he=te.length-1;he>=0;--he)fe.push(te[he]);for(;fe.length;){const he=fe.pop();if(!L.has(he.key)&&(q.push(he),he.children&&Q.has(he.key)))for(let ve=he.children.length-1;ve>=0;--ve)fe.push(he.children[ve])}return q}),O=C(()=>x.value.length>0);function T(Q){const L=new Map,q=new Map;let te=1;function fe(ve,Ie=1,Le=void 0){const _e=[];for(const ye of ve){const Te=N(ye),be={level:Ie,key:Te,data:ye};be.label=B(ye),be.parent=Le;const Pe=_(ye);be.disabled=$(ye),be.isLeaf=!Pe||Pe.length===0,be.expanded=n.value.has(Te),Pe&&Pe.length&&(be.children=fe(Pe,Ie+1,be)),_e.push(be),L.set(Te,be),q.has(Ie)||q.set(Ie,[]),q.get(Ie)?.push(be)}return Ie>te&&(te=Ie),_e}const he=fe(Q);return{treeNodeMap:L,levelTreeNodeMap:q,maxLevel:te,treeNodes:he}}function I(Q){const L=v(Q);L&&(n.value=L)}function _(Q){return Q[y.value]}function N(Q){return Q?Q[w.value]:""}function $(Q){return Q[S.value]}function B(Q){return Q[k.value]}function K(Q){n.value.has(Q.key)?H(Q):F(Q)}function j(Q){const L=new Set,q=o.value.treeNodeMap;n.value.forEach(te=>{const fe=q.get(te);fe&&(fe.expanded=!1)}),Q.forEach(te=>{let fe=q.get(te);for(;fe&&!L.has(fe.key);)L.add(fe.key),fe.expanded=!0,fe=fe.parent}),n.value=L}function W(Q,L){t(Bx,Q.data,Q,L),P(Q),e.expandOnClickNode&&K(Q),e.showCheckbox&&(e.checkOnClickNode||Q.isLeaf&&e.checkOnClickLeaf)&&!Q.disabled&&u(Q,!l(Q),!0)}function A(Q,L){t(Vx,Q.data,Q,L)}function P(Q){J(Q)||(a.value=Q.key,t(Hx,Q.data,Q))}function V(Q,L){u(Q,L)}function F(Q){const L=n.value;if(o.value&&e.accordion){const{treeNodeMap:te}=o.value;L.forEach(fe=>{const he=te.get(fe);Q&&Q.level===he?.level&&(L.delete(fe),he.expanded=!1)})}L.add(Q.key);const q=de(Q.key);q&&(q.expanded=!0,t(Fx,q.data,q))}function H(Q){n.value.delete(Q.key);const L=de(Q.key);L&&(L.expanded=!1,t(zx,L.data,L))}function U(Q){return!!Q.disabled}function J(Q){const L=a.value;return L!==void 0&&L===Q.key}function ee(){if(a.value)return o.value?.treeNodeMap.get(a.value)?.data}function ae(){return a.value}function ce(Q){a.value=Q}function Z(Q){o.value=T(Q)}function de(Q){const L=ot(Q)?N(Q):Q;return o.value?.treeNodeMap.get(L)}function ue(Q,L="auto"){const q=de(Q);q&&r.value&&r.value.scrollToItem(x.value.indexOf(q),L)}function Y(Q){r.value?.scrollTo(Q)}return pe(()=>e.currentNodeKey,Q=>{a.value=Q},{immediate:!0}),pe(()=>e.defaultExpandedKeys,Q=>{j(Q||[])}),pe(()=>e.data,Q=>{Z(Q),j(e.defaultExpandedKeys||[])},{immediate:!0}),{tree:o,flattenTree:x,isNotEmpty:O,listRef:r,getKey:N,getChildren:_,toggleExpand:K,toggleCheckbox:u,isChecked:l,isIndeterminate:s,isDisabled:U,isCurrent:J,isForceHiddenExpandIcon:b,handleNodeClick:W,handleNodeDrop:A,handleNodeCheck:V,getCurrentNode:ee,getCurrentKey:ae,setCurrentKey:ce,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:p,setChecked:g,setCheckedKeys:h,filter:I,setData:Z,getNode:de,expandNode:F,collapseNode:H,setExpandedKeys:j,scrollToNode:ue,scrollTo:Y}}var rJ=se({name:"ElTreeNodeContent",props:QX,setup(e){const t=$e(xg),n=ge("tree");return()=>{const a=e.node,{data:o}=a;return t?.ctx.slots.default?t.ctx.slots.default({node:a,data:o}):qe(wg,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[a?.label])}}});const sJ=["aria-expanded","aria-disabled","aria-checked","data-key"];var lJ=se({name:"ElTreeNode",__name:"tree-node",props:ZX,emits:tJ,setup(e,{emit:t}){const n=e,a=t,o=$e(xg),r=ge("tree"),s=C(()=>o?.props.indent??16),l=C(()=>o?.props.icon??kC),u=h=>{const v=o?.props.props?.class;if(!v)return{};let m;if(Fe(v)){const{data:b}=h;m=v(b,h)}else m=v;return Ae(m)?{[m]:!0}:m},c=h=>{a("click",n.node,h)},d=h=>{a("drop",n.node,h)},f=()=>{a("toggle",n.node)},p=h=>{a("check",n.node,h)},g=h=>{o?.instance?.vnode?.props?.onNodeContextmenu&&(h.stopPropagation(),h.preventDefault()),o?.ctx.emit(jx,h,n.node?.data,n.node)};return(h,v)=>(E(),D("div",{ref:"node$",class:R([i(r).b("node"),i(r).is("expanded",e.expanded),i(r).is("current",e.current),i(r).is("focusable",!e.disabled),i(r).is("checked",!e.disabled&&e.checked),u(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":e.node?.key,onClick:Xe(c,["stop"]),onContextmenu:g,onDragover:v[1]||(v[1]=Xe(()=>{},["prevent"])),onDragenter:v[2]||(v[2]=Xe(()=>{},["prevent"])),onDrop:Xe(d,["stop"])},[z("div",{class:R(i(r).be("node","content")),style:ze({paddingLeft:`${(e.node.level-1)*s.value}px`,height:e.itemSize+"px"})},[l.value?(E(),le(i(De),{key:0,class:R([i(r).is("leaf",!!e.node?.isLeaf),i(r).is("hidden",e.hiddenExpandIcon),{expanded:!e.node?.isLeaf&&e.expanded},i(r).be("node","expand-icon")]),onClick:Xe(f,["stop"])},{default:ne(()=>[(E(),le(it(l.value)))]),_:1},8,["class"])):re("v-if",!0),e.showCheckbox?(E(),le(i(mo),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:p,onClick:v[0]||(v[0]=Xe(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):re("v-if",!0),X(i(rJ),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,sJ))}}),iJ=lJ,uJ=se({name:"ElTreeV2",__name:"tree",props:JX,emits:eJ,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wn(),s=C(()=>a.itemSize);St(xg,{ctx:{emit:o,slots:r},props:a,instance:dt()}),St(Wo,void 0);const{t:l}=xt(),u=ge("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:p,isIndeterminate:g,isChecked:h,isDisabled:v,isCurrent:m,isForceHiddenExpandIcon:b,handleNodeClick:w,handleNodeDrop:y,handleNodeCheck:S,toggleCheckbox:k,getCurrentNode:x,getCurrentKey:O,setCurrentKey:T,getCheckedKeys:I,getCheckedNodes:_,getHalfCheckedKeys:N,getHalfCheckedNodes:$,setChecked:B,setCheckedKeys:K,filter:j,setData:W,getNode:A,expandNode:P,collapseNode:V,setExpandedKeys:F,scrollToNode:H,scrollTo:U}=oJ(a,o);return t({toggleCheckbox:k,getCurrentNode:x,getCurrentKey:O,setCurrentKey:T,getCheckedKeys:I,getCheckedNodes:_,getHalfCheckedKeys:N,getHalfCheckedNodes:$,setChecked:B,setCheckedKeys:K,filter:j,setData:W,getNode:A,expandNode:P,collapseNode:V,setExpandedKeys:F,scrollToNode:H,scrollTo:U}),(J,ee)=>(E(),D("div",{class:R([i(u).b(),{[i(u).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[i(d)?(E(),le(i(gf),{key:0,ref_key:"listRef",ref:f,"class-name":i(u).b("virtual-list"),data:i(c),total:i(c).length,height:e.height,"item-size":s.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ne(({data:ae,index:ce,style:Z})=>[(E(),le(iJ,{key:ae[ce].key,style:ze(Z),node:ae[ce],expanded:ae[ce].expanded,"show-checkbox":e.showCheckbox,checked:i(h)(ae[ce]),indeterminate:i(g)(ae[ce]),"item-size":s.value,disabled:i(v)(ae[ce]),current:i(m)(ae[ce]),"hidden-expand-icon":i(b)(ae[ce]),onClick:i(w),onToggle:i(p),onCheck:i(S),onDrop:i(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","scrollbar-always-on"])):(E(),D("div",{key:1,class:R(i(u).e("empty-block"))},[oe(J.$slots,"empty",{},()=>[z("span",{class:R(i(u).e("empty-text"))},Ce(e.emptyText??i(l)("el.tree.emptyText")),3)])],2))],2))}}),cJ=uJ;const dJ=st(cJ),fJ="ElUpload";var pJ=class extends Error{constructor(e,t,n,a){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}};function h1(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new pJ(a,n.status,t.method,e)}function hJ(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const vJ=e=>{typeof XMLHttpRequest>"u"&&sn(fJ,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",r=>{const s=r;s.percent=r.total>0?r.loaded/r.total*100:0,e.onProgress(s)});const a=new FormData;if(e.data)for(const[r,s]of Object.entries(e.data))we(s)?s.length===2&&s[0]instanceof Blob&&Ae(s[1])?a.append(r,s[0],s[1]):s.forEach(l=>{a.append(r,l)}):a.append(r,s);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(h1(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(h1(n,e,t));e.onSuccess(hJ(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((r,s)=>t.setRequestHeader(s,r));else for(const[r,s]of Object.entries(o))En(s)||t.setRequestHeader(r,String(s));return t.send(a),t},Ux=["text","picture","picture-card"];let mJ=1;const iv=()=>Date.now()+mJ++,qx=Ee({action:{type:String,default:"#"},headers:{type:G(Object)},method:{type:String,default:"post"},data:{type:G([Object,Function,Promise]),default:()=>pn({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:G(Array),default:()=>pn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Ux,default:"text"},httpRequest:{type:G(Function),default:vJ},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),gJ=Ee({...qx,beforeUpload:{type:G(Function),default:ut},beforeRemove:{type:G(Function)},onRemove:{type:G(Function),default:ut},onChange:{type:G(Function),default:ut},onPreview:{type:G(Function),default:ut},onSuccess:{type:G(Function),default:ut},onProgress:{type:G(Function),default:ut},onError:{type:G(Function),default:ut},onExceed:{type:G(Function),default:ut},crossorigin:{type:G(String)}}),Yx=Symbol("uploadContextKey"),bJ=Ee({files:{type:G(Array),default:()=>pn([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:G(Function),default:ut},listType:{type:String,values:Ux,default:"text"},crossorigin:{type:G(String)}}),yJ={remove:e=>!!e},wJ=Ee({...qx,beforeUpload:{type:G(Function),default:ut},onRemove:{type:G(Function),default:ut},onStart:{type:G(Function),default:ut},onSuccess:{type:G(Function),default:ut},onProgress:{type:G(Function),default:ut},onError:{type:G(Function),default:ut},onExceed:{type:G(Function),default:ut}}),SJ=Ee({disabled:{type:Boolean,default:void 0},directory:Boolean}),CJ={file:e=>we(e)},kJ=["tabindex","aria-disabled","onKeydown"],EJ=["src","crossorigin"],xJ=["onClick"],TJ=["title"],OJ=["onClick"],_J=["onClick"];var RJ=se({name:"ElUploadList",__name:"upload-list",props:bJ,emits:yJ,setup(e,{emit:t}){const n=e,a=t,{t:o}=xt(),r=ge("upload"),s=ge("icon"),l=ge("list"),u=un(),c=M(!1),d=C(()=>[r.b("list"),r.bm("list",n.listType),r.is("disabled",u.value)]),f=p=>{a("remove",p)};return(p,g)=>(E(),le(O2,{tag:"ul",class:R(d.value),name:i(l).b()},{default:ne(()=>[(E(!0),D(Ve,null,kt(e.files,(h,v)=>(E(),D("li",{key:h.uid||h.name,class:R([i(r).be("list","item"),i(r).is(h.status),{focusing:c.value}]),tabindex:i(u)?void 0:0,"aria-disabled":i(u),role:"button",onKeydown:dn(m=>!i(u)&&f(h),["delete"]),onFocus:g[0]||(g[0]=m=>c.value=!0),onBlur:g[1]||(g[1]=m=>c.value=!1),onClick:g[2]||(g[2]=m=>c.value=!1)},[oe(p.$slots,"default",{file:h,index:v},()=>[e.listType==="picture"||h.status!=="uploading"&&e.listType==="picture-card"?(E(),D("img",{key:0,class:R(i(r).be("list","item-thumbnail")),src:h.url,crossorigin:e.crossorigin,alt:""},null,10,EJ)):re("v-if",!0),h.status==="uploading"||e.listType!=="picture-card"?(E(),D("div",{key:1,class:R(i(r).be("list","item-info"))},[z("a",{class:R(i(r).be("list","item-name")),onClick:Xe(m=>e.handlePreview(h),["prevent"])},[X(i(De),{class:R(i(s).m("document"))},{default:ne(()=>[X(i(AP))]),_:1},8,["class"]),z("span",{class:R(i(r).be("list","item-file-name")),title:h.name},Ce(h.name),11,TJ)],10,xJ),h.status==="uploading"?(E(),le(i(tx),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:ze(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):re("v-if",!0)],2)):re("v-if",!0),z("label",{class:R(i(r).be("list","item-status-label"))},[e.listType==="text"?(E(),le(i(De),{key:0,class:R([i(s).m("upload-success"),i(s).m("circle-check")])},{default:ne(()=>[X(i(_m))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(E(),le(i(De),{key:1,class:R([i(s).m("upload-success"),i(s).m("check")])},{default:ne(()=>[X(i(Il))]),_:1},8,["class"])):re("v-if",!0)],2),i(u)?re("v-if",!0):(E(),le(i(De),{key:2,class:R(i(s).m("close")),"aria-label":i(o)("el.upload.delete"),role:"button",tabindex:"0",onClick:m=>f(h),onKeydown:dn(Xe(m=>f(h),["prevent"]),["enter","space"])},{default:ne(()=>[X(i(Qa))]),_:1},8,["class","aria-label","onClick","onKeydown"])),i(u)?re("v-if",!0):(E(),D("i",{key:3,class:R(i(s).m("close-tip"))},Ce(i(o)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(E(),D("span",{key:4,class:R(i(r).be("list","item-actions"))},[z("span",{class:R(i(r).be("list","item-preview")),onClick:m=>e.handlePreview(h)},[X(i(De),{class:R(i(s).m("zoom-in"))},{default:ne(()=>[X(i(OC))]),_:1},8,["class"])],10,OJ),i(u)?re("v-if",!0):(E(),D("span",{key:0,class:R(i(r).be("list","item-delete")),onClick:m=>f(h)},[X(i(De),{class:R(i(s).m("delete"))},{default:ne(()=>[X(i(MP))]),_:1},8,["class"])],10,_J))],2)):re("v-if",!0)])],42,kJ))),128)),oe(p.$slots,"append")]),_:3},8,["class","name"]))}}),v1=RJ;const m1="ElUploadDrag";var IJ=se({name:m1,__name:"upload-dragger",props:SJ,emits:CJ,setup(e,{emit:t}){const n=e,a=t;$e(Yx)||sn(m1,"usage: ");const o=ge("upload"),r=M(!1),s=un(),l=p=>new Promise((g,h)=>p.file(g,h)),u=async p=>{try{if(p.isFile){const g=await l(p);return g.isDirectory=!1,[g]}if(p.isDirectory){const g=p.createReader(),h=()=>new Promise((w,y)=>g.readEntries(w,y)),v=[];let m=await h();for(;m.length>0;)v.push(...m),m=await h();const b=v.map(w=>u(w).catch(()=>[]));return Qc(await Promise.all(b))}}catch{return[]}return[]},c=async p=>{if(s.value)return;r.value=!1,p.stopPropagation();const g=Array.from(p.dataTransfer.files),h=p.dataTransfer.items||[];if(n.directory){const v=Array.from(h).map(m=>m?.webkitGetAsEntry?.()).filter(m=>m);a("file",Qc(await Promise.all(v.map(u))));return}g.forEach((v,m)=>{const b=h[m]?.webkitGetAsEntry?.();b&&(v.isDirectory=b.isDirectory)}),a("file",g)},d=()=>{s.value||(r.value=!0)},f=p=>{p.currentTarget.contains(p.relatedTarget)||(r.value=!1)};return(p,g)=>(E(),D("div",{class:R([i(o).b("dragger"),i(o).is("dragover",r.value)]),onDrop:Xe(c,["prevent"]),onDragover:Xe(d,["prevent"]),onDragleave:Xe(f,["prevent"])},[oe(p.$slots,"default")],34))}}),$J=IJ;const NJ=["tabindex","aria-disabled","onKeydown"],MJ=["name","disabled","multiple","accept","webkitdirectory"];var PJ=se({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:wJ,setup(e,{expose:t}){const n=e,a=ge("upload"),o=un(),r=Tt({}),s=Tt(),l=v=>{if(v.length===0)return;const{autoUpload:m,limit:b,fileList:w,multiple:y,onStart:S,onExceed:k}=n;if(b&&w.length+v.length>b){k(v,w);return}y||(v=v.slice(0,1));for(const x of v){const O=x;O.uid=iv(),S(O),m&&u(O)}},u=async v=>{if(s.value.value="",!n.beforeUpload)return d(v);let m,b={};try{const y=n.data,S=n.beforeUpload(v);b=Vi(n.data)?No(n.data):n.data,m=await S,Vi(n.data)&&fn(y,b)&&(b=No(n.data))}catch{m=!1}if(m===!1){n.onRemove(v);return}let w=v;m instanceof Blob&&(m instanceof File?w=m:w=new File([m],v.name,{type:v.type})),d(Object.assign(w,{uid:v.uid}),b)},c=async(v,m)=>Fe(v)?v(m):v,d=async(v,m)=>{const{headers:b,data:w,method:y,withCredentials:S,name:k,action:x,onProgress:O,onSuccess:T,onError:I,httpRequest:_}=n;try{m=await c(m??w,v)}catch{n.onRemove(v);return}const{uid:N}=v,$={headers:b||{},withCredentials:S,file:v,data:m,method:y,filename:k,action:x,onProgress:K=>{O(K,v)},onSuccess:K=>{T(K,v),delete r.value[N]},onError:K=>{I(K,v),delete r.value[N]}},B=_($);r.value[N]=B,B instanceof Promise&&B.then($.onSuccess,$.onError)},f=v=>{const m=v.target.files;m&&l(Array.from(m))},p=()=>{o.value||(s.value.value="",s.value.click())},g=()=>{p()};return t({abort:v=>{TS(r.value).filter(v?([m])=>String(v.uid)===m:()=>!0).forEach(([m,b])=>{b instanceof XMLHttpRequest&&b.abort(),delete r.value[m]})},upload:u}),(v,m)=>(E(),D("div",{class:R([i(a).b(),i(a).m(e.listType),i(a).is("drag",e.drag),i(a).is("disabled",i(o))]),tabindex:i(o)?void 0:0,"aria-disabled":i(o),role:"button",onClick:p,onKeydown:dn(Xe(g,["self"]),["enter","space"])},[e.drag?(E(),le($J,{key:0,disabled:i(o),directory:e.directory,onFile:l},{default:ne(()=>[oe(v.$slots,"default")]),_:3},8,["disabled","directory"])):oe(v.$slots,"default",{key:1}),z("input",{ref_key:"inputRef",ref:s,class:R(i(a).e("input")),name:e.name,disabled:i(o),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:f,onClick:m[0]||(m[0]=Xe(()=>{},["stop"]))},null,42,MJ)],42,NJ))}}),g1=PJ;const b1="ElUpload",y1=e=>{e.url?.startsWith("blob:")&&URL.revokeObjectURL(e.url)},AJ=(e,t)=>{const n=NS(e,"fileList",void 0,{passive:!0}),a=h=>n.value.find(v=>v.uid===h.uid);function o(h){t.value?.abort(h)}function r(h=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!h.includes(v.status))}function s(h){n.value=n.value.filter(v=>v.uid!==h.uid)}const l=h=>{Ne(()=>e.onChange(h,n.value))},u=(h,v)=>{const m=a(v);m&&(console.error(h),m.status="fail",s(m),e.onError(h,m,n.value),l(m))},c=(h,v)=>{const m=a(v);m&&(e.onProgress(h,m,n.value),m.status="uploading",m.percentage=Math.round(h.percent))},d=(h,v)=>{const m=a(v);m&&(m.status="success",m.response=h,e.onSuccess(h,m,n.value),l(m))},f=h=>{En(h.uid)&&(h.uid=iv());const v={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(h)}catch(m){jt(b1,m.message),e.onError(m,v,n.value)}n.value=[...n.value,v],l(v)},p=async h=>{const v=h instanceof File?a(h):h;v||sn(b1,"file to be removed not found");const m=b=>{o(b),s(b),e.onRemove(b,n.value),y1(b)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&m(v):m(v)};function g(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>h&&t.value?.upload(h))}return pe(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(v=>{const{raw:m,url:b}=v;if(!b&&m)try{v.url=URL.createObjectURL(m)}catch(w){e.onError(w,v,n.value)}return v}))}),pe(n,h=>{for(const v of h)v.uid||(v.uid=iv()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:r,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:p,submit:g,revokeFileObjectURL:y1}};var LJ=se({name:"ElUpload",__name:"upload",props:gJ,setup(e,{expose:t}){const n=e,a=un(),o=Tt(),{abort:r,submit:s,clearFiles:l,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:p,handleProgress:g,revokeFileObjectURL:h}=AJ(n,o),v=C(()=>n.listType==="picture-card"),m=C(()=>({...n,fileList:u.value,onStart:c,onProgress:g,onSuccess:p,onError:d,onRemove:f}));return Vt(()=>{u.value.forEach(h)}),St(Yx,{accept:Ht(n,"accept")}),t({abort:r,submit:s,clearFiles:l,handleStart:c,handleRemove:f}),(b,w)=>(E(),D("div",null,[v.value&&e.showFileList?(E(),le(v1,{key:0,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},ma({append:ne(()=>[X(g1,pt({ref_key:"uploadRef",ref:o},m.value),{default:ne(()=>[b.$slots.trigger?oe(b.$slots,"trigger",{key:0}):re("v-if",!0),!b.$slots.trigger&&b.$slots.default?oe(b.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)]),_:2},[b.$slots.file?{name:"default",fn:ne(({file:y,index:S})=>[oe(b.$slots,"file",{file:y,index:S})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0),!v.value||v.value&&!e.showFileList?(E(),le(g1,pt({key:1,ref_key:"uploadRef",ref:o},m.value),{default:ne(()=>[b.$slots.trigger?oe(b.$slots,"trigger",{key:0}):re("v-if",!0),!b.$slots.trigger&&b.$slots.default?oe(b.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)):re("v-if",!0),b.$slots.trigger?oe(b.$slots,"default",{key:2}):re("v-if",!0),oe(b.$slots,"tip"),!v.value&&e.showFileList?(E(),le(v1,{key:3,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},ma({_:2},[b.$slots.file?{name:"default",fn:ne(({file:y,index:S})=>[oe(b.$slots,"file",{file:y,index:S})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0)]))}}),DJ=LJ;const BJ=st(DJ),VJ=Ee({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:G([String,Array]),default:"Element Plus"},font:{type:G(Object)},gap:{type:G(Array),default:()=>[100,100]},offset:{type:G(Array)}});function FJ(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function zJ(e){return Object.keys(e).map(t=>`${FJ(t)}: ${e[t]};`).join(" ")}function HJ(){return window.devicePixelRatio||1}const KJ=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},WJ={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function Ip(e,t,n=1){const a=document.createElement("canvas"),o=a.getContext("2d"),r=e*n,s=t*n;return a.setAttribute("width",`${r}px`),a.setAttribute("height",`${s}px`),o.save(),[o,a,r,s]}function jJ(){function e(t,n,a,o,r,s,l,u,c){const[d,f,p,g]=Ip(o,r,a);let h=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,p,g);else{const{color:U,fontSize:J,fontStyle:ee,fontWeight:ae,fontFamily:ce,textAlign:Z,textBaseline:de}=s,ue=Number(J)*a;d.font=`${ee} normal ${ae} ${ue}px/${r}px ${ce}`,d.fillStyle=U,d.textAlign=Z,d.textBaseline=de;const Y=we(t)?t:[t];if(de!=="top"&&Y[0]){const Q=d.measureText(Y[0]);d.textBaseline="top";const L=d.measureText(Y[0]);h=Q.actualBoundingBoxAscent-L.actualBoundingBoxAscent}Y?.forEach((Q,L)=>{const[q,te]=WJ[Z];d.fillText(Q??"",p*q+c*te,L*(ue+s.fontGap*a))})}const v=Math.PI/180*Number(n),m=Math.max(o,r),[b,w,y]=Ip(m,m,a);b.translate(y/2,y/2),b.rotate(v),p>0&&g>0&&b.drawImage(f,-p/2,-g/2);function S(U,J){return[U*Math.cos(v)-J*Math.sin(v),U*Math.sin(v)+J*Math.cos(v)]}let k=0,x=0,O=0,T=0;const I=p/2,_=g/2;[[0-I,0-_],[0+I,0-_],[0+I,0+_],[0-I,0+_]].forEach(([U,J])=>{const[ee,ae]=S(U,J);k=Math.min(k,ee),x=Math.max(x,ee),O=Math.min(O,ae),T=Math.max(T,ae)});const N=k+y/2,$=O+y/2,B=x-k,K=T-O,j=l*a,W=u*a,A=(B+j)*2,P=K+W,[V,F]=Ip(A,P);function H(U=0,J=0){V.drawImage(w,N,$,B,K,U,J+h,B,K)}return H(),H(B+j,-K/2-W/2),H(B+j,+K/2+W/2),[F.toDataURL(),A/a,P/a]}return e}var UJ=se({name:"ElWatermark",__name:"watermark",props:VJ,setup(e){const t={position:"relative"},n=e,a=C(()=>n.font?.fontGap??3),o=C(()=>n.font?.color??"rgba(0,0,0,.15)"),r=C(()=>n.font?.fontSize??16),s=C(()=>n.font?.fontWeight??"normal"),l=C(()=>n.font?.fontStyle??"normal"),u=C(()=>n.font?.fontFamily??"sans-serif"),c=C(()=>n.font?.textAlign??"center"),d=C(()=>n.font?.textBaseline??"hanging"),f=C(()=>n.gap[0]),p=C(()=>n.gap[1]),g=C(()=>f.value/2),h=C(()=>p.value/2),v=C(()=>n.offset?.[0]??g.value),m=C(()=>n.offset?.[1]??h.value),b=()=>{const N={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let $=v.value-g.value,B=m.value-h.value;return $>0&&(N.left=`${$}px`,N.width=`calc(100% - ${$}px)`,$=0),B>0&&(N.top=`${B}px`,N.height=`calc(100% - ${B}px)`,B=0),N.backgroundPosition=`${$}px ${B}px`,N},w=Tt(null),y=Tt(),S=M(!1),k=()=>{y.value&&(y.value.remove(),y.value=void 0)},x=(N,$)=>{w.value&&y.value&&(S.value=!0,y.value.setAttribute("style",zJ({...b(),backgroundImage:`url('${N}')`,backgroundSize:`${Math.floor($)}px`})),w.value?.append(y.value),setTimeout(()=>{S.value=!1}))},O=N=>{let $=120,B=64,K=0;const{image:j,content:W,width:A,height:P,rotate:V}=n;if(!j&&N.measureText){N.font=`${Number(r.value)}px ${u.value}`;const F=we(W)?W:[W];let H=0,U=0;F.forEach(ee=>{const{width:ae,fontBoundingBoxAscent:ce,fontBoundingBoxDescent:Z,actualBoundingBoxAscent:de,actualBoundingBoxDescent:ue}=N.measureText(ee),Y=Rt(ce)?de+ue:ce+Z;ae>H&&(H=Math.ceil(ae)),Y>U&&(U=Math.ceil(Y))}),$=H,B=U*F.length+(F.length-1)*a.value;const J=Math.PI/180*Number(V);K=Math.ceil(Math.abs(Math.sin(J)*B)/2),$+=K}return[A??$,P??B,K]},T=jJ(),I=()=>{const N=document.createElement("canvas").getContext("2d"),$=n.image,B=n.content,K=n.rotate;if(N){y.value||(y.value=document.createElement("div"));const j=HJ(),[W,A,P]=O(N),V=F=>{const[H,U]=T(F||"",K,j,W,A,{color:o.value,fontSize:r.value,fontStyle:l.value,fontWeight:s.value,fontFamily:u.value,fontGap:a.value,textAlign:c.value,textBaseline:d.value},f.value,p.value,P);x(H,U)};if($){const F=new Image;F.onload=()=>{V(F)},F.onerror=()=>{V(B)},F.crossOrigin="anonymous",F.referrerPolicy="no-referrer",F.src=$}else V(B)}};return ht(()=>{I()}),pe(()=>n,()=>{I()},{deep:!0,flush:"post"}),Vt(()=>{k()}),Tu(w,N=>{S.value||N.forEach($=>{KJ($,y.value)&&(k(),I())})},{attributes:!0,subtree:!0,childList:!0}),(N,$)=>(E(),D("div",{ref_key:"containerRef",ref:w,style:ze([t])},[oe(N.$slots,"default")],4))}}),qJ=UJ;const YJ=st(qJ),GJ=["absolute","fixed"],XJ=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Tg=Ee({placement:{type:G(String),values:XJ,default:"bottom"},reference:{type:G(Object),default:null},strategy:{type:G(String),values:GJ,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),JJ={close:()=>!0},ZJ=Ee({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Ut},placement:Tg.placement,contentStyle:{type:G([Object])},mask:{type:G([Boolean,Object]),default:!0},gap:{type:G(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:G([Boolean,Object]),default:()=>({block:"center"})},type:{type:G(String)},appendTo:{type:G([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),QJ={[at]:e=>Wt(e),"update:current":e=>Be(e),close:e=>Be(e),finish:()=>!0,change:e=>Be(e)},eZ=Ee({target:{type:G([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Ut},showArrow:{type:Boolean,default:void 0},placement:Tg.placement,mask:{type:G([Boolean,Object]),default:void 0},contentStyle:{type:G([Object])},prevButtonProps:{type:G(Object)},nextButtonProps:{type:G(Object)},scrollIntoViewOptions:{type:G([Boolean,Object]),default:void 0},type:{type:G(String)}}),tZ={close:()=>!0},nZ=(e,t,n,a,o)=>{const r=M(null),s=()=>{let d;return Ae(e.value)?d=document.querySelector(e.value):Fe(e.value)?d=e.value():d=e.value,d},l=()=>{const d=s();if(!d||!t.value){r.value=null;return}aZ(d)||d.scrollIntoView(o.value);const{left:f,top:p,width:g,height:h}=d.getBoundingClientRect();r.value={left:f,top:p,width:g,height:h,radius:0}};ht(()=>{pe([t,e],()=>{l()},{immediate:!0}),window.addEventListener("resize",l)}),Vt(()=>{window.removeEventListener("resize",l)});const u=d=>(we(n.value.offset)?n.value.offset[d]:n.value.offset)??6,c=C(()=>{if(!r.value)return r.value;const d=u(0),f=u(1),p=n.value?.radius||2;return{left:r.value.left-d,top:r.value.top-f,width:r.value.width+d*2,height:r.value.height+f*2,radius:p}});return{mergedPosInfo:c,triggerTarget:C(()=>{const d=s();return!a.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){return window.DOMRect.fromRect({width:c.value?.width||0,height:c.value?.height||0,x:c.value?.left||0,y:c.value?.top||0})}}})}},kf=Symbol("ElTour");function aZ(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:o,bottom:r,left:s}=e.getBoundingClientRect();return a>=0&&s>=0&&o<=t&&r<=n}const oZ=(e,t,n,a,o,r,s,l)=>{const u=M(),c=M(),d=M({}),f={x:u,y:c,placement:a,strategy:o,middlewareData:d},p=C(()=>{const b=[BM(i(r)),FM(),VM(),rZ()];return i(l)&&i(n)&&b.push(zM({element:i(n)})),b}),g=async()=>{if(!Lt)return;const b=i(e),w=i(t);if(!b||!w)return;const y=await HM(b,w,{placement:i(a),strategy:i(o),middleware:i(p)});Ji(f).forEach(S=>{f[S].value=y[S]})},h=C(()=>{if(!i(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:i(s)};const{overflow:b}=i(d);return{position:i(o),zIndex:i(s),top:i(c)!=null?`${i(c)}px`:"",left:i(u)!=null?`${i(u)}px`:"",maxWidth:b?.maxWidth?`${b?.maxWidth}px`:""}}),v=C(()=>{if(!i(l))return{};const{arrow:b}=i(d);return{left:b?.x!=null?`${b?.x}px`:"",top:b?.y!=null?`${b?.y}px`:""}});let m;return ht(()=>{const b=i(e),w=i(t);b&&w&&(m=LM(b,w,g)),la(()=>{g()})}),Vt(()=>{m&&m()}),{update:g,contentStyle:h,arrowStyle:v}},rZ=()=>({name:"overflow",async fn(e){const t=await DM(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),sZ=Ee({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:G(Object)},targetAreaClickable:{type:Boolean,default:!0}}),lZ={style:{width:"100%",height:"100%"}},iZ=["d"];var uZ=se({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:sZ,setup(e){const t=e,{ns:n}=$e(kf),a=C(()=>t.pos?.radius??2),o=C(()=>{const d=a.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:r,height:s}=lm(),l=C(()=>{const d=r.value,f=s.value,p=o.value,g=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,h=a.value;return t.pos?`${g} M${t.pos.left+h},${t.pos.top} h${t.pos.width-h*2} ${p.topRight} v${t.pos.height-h*2} ${p.bottomRight} h${-t.pos.width+h*2} ${p.bottomLeft} v${-t.pos.height+h*2} ${p.topLeft} z`:g}),u=C(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=C(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return of(Ht(t,"visible"),{ns:n}),(d,f)=>e.visible?(E(),D("div",pt({key:0,class:i(n).e("mask"),style:u.value},d.$attrs),[(E(),D("svg",lZ,[z("path",{class:R(i(n).e("hollow")),style:ze(c.value),d:l.value},null,14,iZ)]))],16)):re("v-if",!0)}}),cZ=uZ;const dZ=["data-side"];var fZ=se({name:"ElTourContent",__name:"content",props:Tg,emits:JJ,setup(e,{emit:t}){const n=e,a=t,o=M(n.placement),r=M(n.strategy),s=M(null),l=M(null);pe(()=>n.placement,()=>{o.value=n.placement});const{contentStyle:u,arrowStyle:c}=oZ(Ht(n,"reference"),s,l,o,r,Ht(n,"offset"),Ht(n,"zIndex"),Ht(n,"showArrow")),d=C(()=>o.value.split("-")[0]),{ns:f}=$e(kf),p=()=>{a("close")},g=h=>{h.detail.focusReason==="pointer"&&h.preventDefault()};return(h,v)=>(E(),D("div",{ref_key:"contentRef",ref:s,style:ze(i(u)),class:R(i(f).e("content")),"data-side":d.value,tabindex:"-1"},[X(i(Ul),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":s.value||void 0,onReleaseRequested:p,onFocusoutPrevented:g},{default:ne(()=>[oe(h.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(E(),D("span",{key:0,ref_key:"arrowRef",ref:l,style:ze(i(c)),class:R(i(f).e("arrow"))},null,6)):re("v-if",!0)],14,dZ))}}),pZ=fZ,hZ=se({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{const o=t.default?.(),r=[];let s=0;function l(u){we(u)&&u.forEach(c=>{(c?.type||{})?.name==="ElTourStep"&&(r.push(c),s+=1)})}return o.length&&l(Aa(o[0]?.children)),a!==s&&(a=s,n("update-total",s)),r.length?r[e.current]:null}}}),vZ=se({name:"ElTour",inheritAttrs:!1,__name:"tour",props:ZJ,emits:QJ,setup(e,{emit:t}){const n=e,a=t,o=ge("tour"),r=M(0),s=M(),l=NS(n,"current",a,{passive:!0}),u=C(()=>s.value?.target),c=C(()=>[o.b(),b.value==="primary"?o.m("primary"):""]),d=C(()=>s.value?.placement||n.placement),f=C(()=>s.value?.contentStyle??n.contentStyle),p=C(()=>s.value?.mask??n.mask),g=C(()=>!!p.value&&n.modelValue),h=C(()=>Wt(p.value)?void 0:p.value),v=C(()=>!!u.value&&(s.value?.showArrow??n.showArrow)),m=C(()=>s.value?.scrollIntoViewOptions??n.scrollIntoViewOptions),b=C(()=>s.value?.type??n.type),{nextZIndex:w}=Iu(),y=w(),S=C(()=>n.zIndex??y),{mergedPosInfo:k,triggerTarget:x}=nZ(u,Ht(n,"modelValue"),Ht(n,"gap"),p,m);pe(()=>n.modelValue,_=>{_||(l.value=0)});const O=()=>{n.closeOnPressEscape&&(a(at,!1),a("close",l.value))},T=_=>{r.value=_},I=wn();return St(kf,{currentStep:s,current:l,total:r,showClose:Ht(n,"showClose"),closeIcon:Ht(n,"closeIcon"),mergedType:b,ns:o,slots:I,updateModelValue(_){a(at,_)},onClose(){a("close",l.value)},onFinish(){a("finish")},onChange(){a(yt,l.value)}}),(_,N)=>(E(),D(Ve,null,[(E(),le(Bl,{to:e.appendTo},[z("div",pt({class:c.value},_.$attrs),[X(cZ,{visible:g.value,fill:h.value?.color,style:ze(h.value?.style),pos:i(k),"z-index":S.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(E(),le(pZ,{key:i(l),reference:i(x),placement:d.value,"show-arrow":v.value,"z-index":S.value,style:ze(f.value),onClose:O},{default:ne(()=>[X(i(hZ),{current:i(l),onUpdateTotal:T},{default:ne(()=>[oe(_.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):re("v-if",!0)],16)],8,["to"])),re(" just for IDE "),re("v-if",!0)],64))}}),mZ=vZ;const gZ=["aria-label"];var bZ=se({name:"ElTourStep",__name:"step",props:eZ,emits:tZ,setup(e,{emit:t}){const n=e,a=t,{Close:o}=_C,{t:r}=xt(),{currentStep:s,current:l,total:u,showClose:c,closeIcon:d,mergedType:f,ns:p,slots:g,updateModelValue:h,onClose:v,onFinish:m,onChange:b}=$e(kf);pe(n,_=>{s.value=_},{immediate:!0});const w=C(()=>n.showClose??c.value),y=C(()=>n.closeIcon??d.value??o),S=_=>{if(_)return ku(_,["children","onClick"])},k=()=>{l.value-=1,n.prevButtonProps?.onClick&&n.prevButtonProps?.onClick(),b()},x=()=>{l.value>=u.value-1?O():l.value+=1,n.nextButtonProps?.onClick&&n.nextButtonProps.onClick(),b()},O=()=>{T(),m()},T=()=>{h(!1),v(),a("close")},I=_=>{if(!_.target?.isContentEditable)switch(qt(_)){case Se.left:_.preventDefault(),l.value>0&&k();break;case Se.right:_.preventDefault(),x();break}};return ht(()=>{window.addEventListener("keydown",I)}),Vt(()=>{window.removeEventListener("keydown",I)}),(_,N)=>(E(),D(Ve,null,[w.value?(E(),D("button",{key:0,"aria-label":i(r)("el.tour.close"),class:R(i(p).e("closebtn")),type:"button",onClick:T},[X(i(De),{class:R(i(p).e("close"))},{default:ne(()=>[(E(),le(it(y.value)))]),_:1},8,["class"])],10,gZ)):re("v-if",!0),z("header",{class:R([i(p).e("header"),{"show-close":i(c)}])},[oe(_.$slots,"header",{},()=>[z("span",{role:"heading",class:R(i(p).e("title"))},Ce(e.title),3)])],2),z("div",{class:R(i(p).e("body"))},[oe(_.$slots,"default",{},()=>[z("span",null,Ce(e.description),1)])],2),z("footer",{class:R(i(p).e("footer"))},[z("div",{class:R(i(p).b("indicators"))},[i(g).indicators?(E(),le(it(i(g).indicators),{key:0,current:i(l),total:i(u)},null,8,["current","total"])):(E(!0),D(Ve,{key:1},kt(i(u),($,B)=>(E(),D("span",{key:$,class:R([i(p).b("indicator"),i(p).is("active",B===i(l))])},null,2))),128))],2),z("div",{class:R(i(p).b("buttons"))},[i(l)>0?(E(),le(i(Bn),pt({key:0,size:"small",type:i(f)},S(e.prevButtonProps),{onClick:k}),{default:ne(()=>[wt(Ce(e.prevButtonProps?.children??i(r)("el.tour.previous")),1)]),_:1},16,["type"])):re("v-if",!0),i(l)<=i(u)-1?(E(),le(i(Bn),pt({key:1,size:"small",type:i(f)==="primary"?"default":"primary"},S(e.nextButtonProps),{onClick:x}),{default:ne(()=>[wt(Ce(e.nextButtonProps?.children??(i(l)===i(u)-1?i(r)("el.tour.finish"):i(r)("el.tour.next"))),1)]),_:1},16,["type"])):re("v-if",!0)],2)],2)],64))}}),Gx=bZ;const yZ=st(mZ,{TourStep:Gx}),wZ=ln(Gx),SZ=Ee({container:{type:G([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:G(String),default:"default"},direction:{type:G(String),default:"vertical"},selectScrollTop:Boolean}),CZ={change:e=>Ae(e),click:(e,t)=>e instanceof MouseEvent&&(Ae(t)||Rt(t))},mc=e=>{if(!Lt||e==="")return null;if(Ae(e))try{return document.querySelector(e)}catch{return null}return e};function kZ(e){let t=0;const n=(...a)=>{t&&co(t),t=Oa(()=>{e(...a),t=0})};return n.cancel=()=>{co(t),t=0},n}const Xx=Symbol("anchor");var EZ=se({name:"ElAnchor",__name:"anchor",props:SZ,emits:CZ,setup(e,{expose:t,emit:n}){const a=e,o=n,r=wn(),s=M(""),l=M({}),u=M(null),c=M(null),d=M(),f={};let p=!1,g=0;const h=ge("anchor"),v=C(()=>[h.b(),a.type==="underline"?h.m("underline"):"",h.m(a.direction)]),m=$=>{f[$.href]=$.el},b=$=>{delete f[$]},w=$=>{s.value!==$&&(s.value=$,o(yt,$))};let y=null,S="";const k=$=>{if(!d.value)return;const B=mc($);if(!B)return;if(y){if(S===$)return;y()}S=$,p=!0;const K=d0(B,d.value),j=Yh(B,K),W=K.scrollHeight-K.clientHeight,A=Math.min(j-a.offset,W);y=D$(d.value,g,A,a.duration,()=>{setTimeout(()=>{p=!1,S=""},20)})},x=$=>{$&&(w($),k($))},O=($,B)=>{o("click",$,B),x(B)},T=kZ(()=>{d.value&&(g=f0(d.value));const $=I();p||Rt($)||w($)}),I=()=>{if(!d.value)return;const $=f0(d.value),B=[];for(const K of Object.keys(f)){const j=mc(K);if(!j)continue;const W=Yh(j,d0(j,d.value));B.push({top:W-a.offset-a.bound,href:K})}B.sort((K,j)=>K.top-j.top);for(let K=0;K$))return j.href}},_=()=>{const $=mc(a.container);!$||Eu($)?d.value=window:d.value=$};Bt(d,"scroll",T);const N=()=>{Ne(()=>{if(!u.value||!c.value||!s.value){l.value={};return}const $=f[s.value];if(!$){l.value={};return}const B=u.value.getBoundingClientRect(),K=c.value.getBoundingClientRect(),j=$.getBoundingClientRect();a.direction==="horizontal"?l.value={left:`${j.left-B.left}px`,width:`${j.width}px`,opacity:1}:l.value={top:`${j.top-B.top+(j.height-K.height)/2}px`,opacity:1}})};return pe(s,N),pe(()=>r.default?.(),N),ht(()=>{_();const $=decodeURIComponent(window.location.hash);mc($)?x($):T()}),pe(()=>a.container,()=>{_()}),St(Xx,{ns:h,direction:a.direction,currentAnchor:s,addLink:m,removeLink:b,handleClick:O}),t({scrollTo:x}),($,B)=>(E(),D("div",{ref_key:"anchorRef",ref:u,class:R(v.value)},[e.marker?(E(),D("div",{key:0,ref_key:"markerRef",ref:c,class:R(i(h).e("marker")),style:ze(l.value)},null,6)):re("v-if",!0),z("div",{class:R(i(h).e("list"))},[oe($.$slots,"default")],2)],2))}}),xZ=EZ;const TZ=Ee({title:String,href:String}),OZ=["href"];var _Z=se({name:"ElAnchorLink",__name:"anchor-link",props:TZ,setup(e){const t=e,n=M(null),{ns:a,direction:o,currentAnchor:r,addLink:s,removeLink:l,handleClick:u}=$e(Xx),c=C(()=>[a.e("link"),a.is("active",r.value===t.href)]),d=f=>{u(f,t.href)};return pe(()=>t.href,(f,p)=>{Ne(()=>{p&&l(p),f&&s({href:f,el:n.value})})}),ht(()=>{const{href:f}=t;f&&s({href:f,el:n.value})}),Vt(()=>{const{href:f}=t;f&&l(f)}),(f,p)=>(E(),D("div",{class:R(i(a).e("item"))},[z("a",{ref_key:"linkRef",ref:n,class:R(c.value),href:e.href,onClick:d},[oe(f.$slots,"default",{},()=>[wt(Ce(e.title),1)])],10,OZ),f.$slots["sub-link"]&&i(o)==="vertical"?(E(),D("div",{key:0,class:R(i(a).e("list"))},[oe(f.$slots,"sub-link")],2)):re("v-if",!0)],2))}}),Jx=_Z;const RZ=st(xZ,{AnchorLink:Jx}),IZ=ln(Jx),Zx={label:"label",value:"value",disabled:"disabled"},$Z=Ee({direction:{type:G(String),default:"horizontal"},options:{type:G(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:G(Object),default:()=>Zx},block:Boolean,size:Nn,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...ia(["ariaLabel"])}),NZ={[at]:e=>Ae(e)||Be(e)||Wt(e),[yt]:e=>Ae(e)||Be(e)||Wt(e)},MZ=["id","aria-label","aria-labelledby"],PZ=["name","disabled","checked","onChange"];var AZ=se({name:"ElSegmented",__name:"segmented",props:$Z,emits:NZ,setup(e,{emit:t}){const n=e,a=t,o=ge("segmented"),r=Gn(),s=In(),l=un(),{formItem:u}=Fn(),{inputId:c,isLabeledByFormItem:d}=_a(n,{formItemContext:u}),f=M(null),p=b$(),g=Dt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),h=(N,$)=>{const B=m($);a(at,B),a(yt,B),N.target.checked=B===n.modelValue},v=C(()=>({...Zx,...n.props})),m=N=>ot(N)?N[v.value.value]:N,b=N=>ot(N)?N[v.value.label]:N,w=N=>!!(l.value||ot(N)&&N[v.value.disabled]),y=N=>n.modelValue===m(N),S=N=>n.options.find($=>m($)===N),k=N=>[o.e("item"),o.is("selected",y(N)),o.is("disabled",w(N))],x=()=>{if(!f.value)return;const N=f.value.querySelector(".is-selected"),$=f.value.querySelector(".is-selected input");if(!N||!$){g.width=0,g.height=0,g.translateX=0,g.translateY=0,g.focusVisible=!1;return}g.isInit=!0,n.direction==="vertical"?(g.height=N.offsetHeight,g.translateY=N.offsetTop):(g.width=N.offsetWidth,g.translateX=N.offsetLeft);try{g.focusVisible=$.matches(":focus-visible")}catch{}},O=C(()=>[o.b(),o.m(s.value),o.is("block",n.block)]),T=C(()=>({width:n.direction==="vertical"?"100%":`${g.width}px`,height:n.direction==="vertical"?`${g.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${g.translateY}px)`:`translateX(${g.translateX}px)`,display:g.isInit?"block":"none"})),I=C(()=>[o.e("item-selected"),o.is("disabled",w(S(n.modelValue))),o.is("focus-visible",g.focusVisible)]),_=C(()=>n.name||r.value);return an(f,x),pe(p,x),pe(()=>n.options,x,{deep:!0,flush:"post"}),pe(()=>n.modelValue,()=>{x(),n.validateEvent&&u?.validate?.("change").catch(ut)},{flush:"post"}),(N,$)=>e.options.length?(E(),D("div",{key:0,id:i(c),ref_key:"segmentedRef",ref:f,class:R(O.value),role:"radiogroup","aria-label":i(d)?void 0:e.ariaLabel||"segmented","aria-labelledby":i(d)?i(u).labelId:void 0},[z("div",{class:R([i(o).e("group"),i(o).m(e.direction)])},[z("div",{style:ze(T.value),class:R(I.value)},null,6),(E(!0),D(Ve,null,kt(e.options,(B,K)=>(E(),D("label",{key:K,class:R(k(B))},[z("input",{class:R(i(o).e("item-input")),type:"radio",name:_.value,disabled:w(B),checked:y(B),onChange:j=>h(j,B)},null,42,PZ),z("div",{class:R(i(o).e("item-label"))},[oe(N.$slots,"default",{item:B},()=>[wt(Ce(b(B)),1)])],2)],2))),128))],2)],10,MZ)):re("v-if",!0)}}),LZ=AZ;const DZ=st(LZ),BZ=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},VZ=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const o=e.value,r=Dn(t);let s=-1,l;for(let u=a-1;u>=0;--u){const c=o[u];if(s===-1&&(c===n||c===` -`||c==="\r")){s=u;continue}if(r.includes(c)){const d=s===-1?a:s;l={pattern:o.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:s,selectionEnd:a};break}}return l},FZ=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?a:n,r=["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(t.debug){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p?.parentNode&&p.parentNode.removeChild(p)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const l=s.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";l.whiteSpace=c?"nowrap":"pre-wrap",c||(l.wordWrap="break-word"),l.position="absolute",t.debug||(l.visibility="hidden"),r.forEach(p=>{if(c&&p==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),h=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=h+Number.parseInt(u.lineHeight);g>v?l.lineHeight=`${g-h}px`:g===v?l.lineHeight=u.lineHeight:l.lineHeight="0"}else l.lineHeight=u.height;else l[p]=u[p]}),af()?e.scrollHeight>Number.parseInt(u.height)&&(l.overflowY="scroll"):l.overflow="hidden",s.textContent=e.value.slice(0,Math.max(0,o)),c&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,s.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(s),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},zZ=Ee({...Am,options:{type:G(Array),default:()=>[]},prefix:{type:G([String,Array]),default:"@",validator:e=>Ae(e)?e.length===1:e.every(t=>Ae(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:G([Boolean,Function]),default:()=>BZ,validator:e=>e===!1?!0:Fe(e)},placement:{type:G(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:G(Function)},modelValue:String,loading:Boolean,popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:{type:G(Object),default:()=>({})},props:{type:G(Object),default:()=>Qx}}),HZ={[at]:e=>Ae(e),"whole-remove":(e,t)=>Ae(e)&&Ae(t),input:e=>Ae(e),search:(e,t)=>Ae(e)&&Ae(t),select:(e,t)=>ot(e)&&Ae(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Qx={value:"value",label:"label",disabled:"disabled"},KZ=Ee({options:{type:G(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),WZ={select:e=>Ae(e.value)},jZ=["id","aria-disabled","aria-selected","onMousemove","onClick"];var UZ=se({name:"ElMentionDropdown",__name:"mention-dropdown",props:KZ,emits:WZ,setup(e,{expose:t,emit:n}){const a=e,o=n,r=ge("mention"),{t:s}=xt(),l=M(-1),u=M(),c=M(),d=M(),f=(S,k)=>[r.be("dropdown","item"),r.is("hovering",l.value===k),r.is("disabled",S.disabled||a.disabled)],p=S=>{S.disabled||a.disabled||o("select",S)},g=S=>{l.value=S},h=C(()=>a.disabled||a.options.every(S=>S.disabled)),v=C(()=>a.options[l.value]),m=()=>{!v.value||v.value.disabled||a.disabled||o("select",v.value)},b=S=>{const{options:k}=a;if(k.length===0||h.value)return;S==="next"?(l.value++,l.value===k.length&&(l.value=0)):S==="prev"&&(l.value--,l.value<0&&(l.value=k.length-1));const x=k[l.value];if(x.disabled){b(S);return}Ne(()=>w(x))},w=S=>{const{options:k}=a,x=k.findIndex(T=>T.value===S.value),O=c.value?.[x];if(O){const T=d.value?.querySelector?.(`.${r.be("dropdown","wrap")}`);T&&fm(T,O)}u.value?.handleScroll()};return pe(()=>a.options,()=>{h.value||a.options.length===0?l.value=-1:l.value=a.options.findIndex(S=>!S.disabled)},{immediate:!0}),t({hoveringIndex:l,navigateOptions:b,selectHoverOption:m,hoverOption:v}),(S,k)=>(E(),D("div",{ref_key:"dropdownRef",ref:d,class:R(i(r).b("dropdown"))},[S.$slots.header?(E(),D("div",{key:0,class:R(i(r).be("dropdown","header"))},[oe(S.$slots,"header")],2)):re("v-if",!0),ct(X(i(vo),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":i(r).be("dropdown","wrap"),"view-class":i(r).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ne(()=>[(E(!0),D(Ve,null,kt(e.options,(x,O)=>(E(),D("li",{id:`${e.contentId}-${O}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:O,class:R(f(x,O)),role:"option","aria-disabled":x.disabled||e.disabled||void 0,"aria-selected":l.value===O,onMousemove:T=>g(O),onClick:Xe(T=>p(x),["stop"])},[oe(S.$slots,"label",{item:x,index:O},()=>[z("span",null,Ce(x.label??x.value),1)])],42,jZ))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[$t,e.options.length>0&&!e.loading]]),e.loading?(E(),D("div",{key:1,class:R(i(r).be("dropdown","loading"))},[oe(S.$slots,"loading",{},()=>[wt(Ce(i(s)("el.mention.loading")),1)])],2)):re("v-if",!0),S.$slots.footer?(E(),D("div",{key:2,class:R(i(r).be("dropdown","footer"))},[oe(S.$slots,"footer")],2)):re("v-if",!0)],2))}}),qZ=UZ,YZ=se({name:"ElMention",inheritAttrs:!1,__name:"mention",props:zZ,emits:HZ,setup(e,{expose:t,emit:n}){const a=e,o=n,r=C(()=>{const A=Un.props??[];return hr(a,we(A)?A:Object.keys(A))}),s=ge("mention"),l=un(),u=Gn(),c=M(),d=M(),f=M(),p=M(!1),g=M(),h=M(),v=C(()=>a.showArrow?a.placement:`${a.placement}-start`),m=C(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),b=C(()=>({...Qx,...a.props})),w=A=>{const P={label:A[b.value.label],value:A[b.value.value],disabled:A[b.value.disabled]};return{...A,...P}},y=C(()=>a.options.map(w)),S=C(()=>{const{filterOption:A}=a;return!h.value||!A?y.value:y.value.filter(P=>A(h.value.pattern,P))}),k=C(()=>p.value&&(!!S.value.length||a.loading)),x=C(()=>`${u.value}-${f.value?.hoveringIndex}`),O=A=>{o(at,A),o(Tn,A),K()},T=A=>{if(c.value?.isComposing)return;const P=qt(A);switch(P){case Se.left:case Se.right:K();break;case Se.up:case Se.down:if(!p.value)return;A.preventDefault(),f.value?.navigateOptions(P===Se.up?"prev":"next");break;case Se.enter:case Se.numpadEnter:if(!p.value){a.type!=="textarea"&&K();return}A.preventDefault(),f.value?.hoverOption?f.value?.selectHoverOption():p.value=!1;break;case Se.esc:if(!p.value)return;A.preventDefault(),p.value=!1;break;case Se.backspace:if(a.whole&&h.value){const{splitIndex:V,selectionEnd:F,pattern:H,prefixIndex:U,prefix:J}=h.value,ee=B();if(!ee)return;const ae=ee.value,ce=y.value.find(Z=>Z.value===H);if((Fe(a.checkIsWhole)?a.checkIsWhole(H,J):ce)&&V!==-1&&V+1===F){A.preventDefault();const Z=ae.slice(0,U)+ae.slice(V+1);o(at,Z),o(Tn,Z),o("whole-remove",H,J);const de=U;Ne(()=>{ee.selectionStart=de,ee.selectionEnd=de,W()})}}}},{wrapperRef:I}=Er(c,{disabled:l,afterFocus(){K()},beforeBlur(A){return d.value?.isFocusInsideContent(A)},afterBlur(){p.value=!1}}),_=()=>{K()},N=A=>a.options.find(P=>A.value===P[b.value.value]),$=A=>{if(!h.value)return;const P=B();if(!P)return;const V=P.value,{split:F}=a,H=V.slice(h.value.end),U=H.startsWith(F),J=`${A.value}${U?"":F}`,ee=V.slice(0,h.value.start)+J+H;o(at,ee),o(Tn,ee),o("select",N(A),h.value.prefix);const ae=h.value.start+J.length+(U?1:0);Ne(()=>{P.selectionStart=ae,P.selectionEnd=ae,P.focus(),W()})},B=()=>a.type==="textarea"?c.value?.textarea:c.value?.input,K=()=>{setTimeout(()=>{j(),W(),Ne(()=>d.value?.updatePopper())},0)},j=()=>{const A=B();if(!A)return;const P=FZ(A),V=A.getBoundingClientRect(),F=I.value.getBoundingClientRect();g.value={position:"absolute",width:0,height:`${P.height}px`,left:`${P.left+V.left-F.left}px`,top:`${P.top+V.top-F.top}px`}},W=()=>{const A=B();if(document.activeElement!==A){p.value=!1;return}const{prefix:P,split:V}=a;if(h.value=VZ(A,P,V),h.value&&h.value.splitIndex===-1){p.value=!0,o("search",h.value.pattern,h.value.prefix);return}p.value=!1};return t({input:c,tooltip:d,dropdownVisible:k}),(A,P)=>(E(),D("div",{ref_key:"wrapperRef",ref:I,class:R(i(s).b())},[X(i(Un),pt(pt(r.value,A.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:i(l),role:k.value?"combobox":void 0,"aria-activedescendant":k.value?x.value||"":void 0,"aria-controls":k.value?i(u):void 0,"aria-expanded":k.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":k.value?"none":void 0,"aria-haspopup":k.value?"listbox":void 0,onInput:O,onKeydown:T,onMousedown:_}),ma({_:2},[kt(A.$slots,(V,F)=>({name:F,fn:ne(H=>[oe(A.$slots,F,sr(ir(H)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),X(i(Wn),{ref_key:"tooltipRef",ref:d,visible:k.value,"popper-class":[i(s).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:v.value,"fallback-placements":m.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:ne(()=>[z("div",{style:ze(g.value)},null,4)]),content:ne(()=>[X(qZ,{ref_key:"dropdownRef",ref:f,options:S.value,disabled:i(l),loading:e.loading,"content-id":i(u),"aria-label":e.ariaLabel,onSelect:$,onClick:P[0]||(P[0]=Xe(V=>c.value?.focus(),["stop"]))},ma({_:2},[kt(A.$slots,(V,F)=>({name:F,fn:ne(H=>[oe(A.$slots,F,sr(ir(H)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}}),GZ=YZ;const XZ=st(GZ),JZ=Ee({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),ZZ={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},QZ=Ee({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),eQ={"update:size":e=>typeof e=="number"||typeof e=="string"};function tQ(e){const t=M(),{width:n,height:a}=uh(t);return{containerEl:t,containerSize:C(()=>e.value==="horizontal"?n.value:a.value)}}function Og(e){return Number(e.slice(0,-1))/100}function _g(e){return Number(e.slice(0,-2))}function Rg(e){return Ae(e)&&e.endsWith("%")}function Ig(e){return Ae(e)&&e.endsWith("px")}function nQ(e,t){const n=C(()=>e.value.map(s=>s.size)),a=C(()=>e.value.length),o=M([]);pe([n,a,t],()=>{let s=[],l=0;for(let c=0;cc+(d||0),0);if(u>1||!l){const c=1/u;s=s.map(d=>d===void 0?0:d*c)}else{const c=(1-u)/l;s=s.map(d=>d===void 0?c:d)}o.value=s});const r=s=>s*t.value;return{percentSizes:o,pxSizes:C(()=>o.value.map(r))}}function aQ(e,t,n,a){const o=m=>m*t.value||0;function r(m,b){return Rg(m)?o(Og(m)):Ig(m)?_g(m):m??b}const s=M(0),l=M(null);let u=[],c=ut;const d=C(()=>e.value.map(m=>[m.min,m.max]));pe(a,()=>{if(s.value){const m=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(m)}});const f=m=>{s.value=0,l.value={index:m,confirmed:!1},u=n.value},p=(m,b)=>{let w=null;if((!l.value||!l.value.confirmed)&&b!==0){if(b>0)w=m,l.value={index:m,confirmed:!0};else for(let N=m;N>=0;N-=1)if(u[N]>0){w=N,l.value={index:N,confirmed:!0};break}}const y=w??l.value?.index??m,S=[...u],k=y+1,x=r(d.value[y][0],0),O=r(d.value[k][0],0),T=r(d.value[y][1],t.value||0),I=r(d.value[k][1],t.value||0);let _=b;S[y]+_T&&(_=T-S[y]),S[k]-_>I&&(_=S[k]-I),S[y]+=_,S[k]-=_,s.value=_,c=()=>{e.value.forEach((N,$)=>{N.size=S[$]}),c=ut},a.value||c()},g=()=>{a.value&&c(),s.value=0,l.value=null,u=[]},h=[];return{lazyOffset:s,onMoveStart:f,onMoving:p,onMoveEnd:g,movingIndex:l,onCollapse:(m,b)=>{h.length||h.push(...n.value.map((O,T)=>O<=0?r(d.value[T]?.[0],0):O));const w=n.value,y=b==="start"?m:m+1,S=b==="start"?m+1:m,k=w[y],x=w[S];if(k!==0&&x!==0)w[y]=0,w[S]+=k,h[m]=k;else{const O=k+x,T=Ma(h[m],0,O),I=O-T;w[S]=T,w[y]=I}e.value.forEach((O,T)=>{O.size=w[T]})}}}const e4=Symbol("splitterRootContextKey");var oQ=se({name:"ElSplitter",__name:"splitter",props:JZ,emits:ZZ,setup(e,{emit:t}){const n=ge("splitter"),a=t,o=e,r=Ht(o,"layout"),s=Ht(o,"lazy"),{containerEl:l,containerSize:u}=tQ(r),{removeChild:c,children:d,addChild:f,ChildrenSorter:p}=df(dt(),"ElSplitterPanel");pe(d,()=>{m.value=null,d.value.forEach((_,N)=>{_.setIndex(N)})});const{percentSizes:g,pxSizes:h}=nQ(d,u),{lazyOffset:v,movingIndex:m,onMoveStart:b,onMoving:w,onMoveEnd:y,onCollapse:S}=aQ(d,u,h,s),k=C(()=>({[n.cssVarBlockName("bar-offset")]:s.value?`${v.value}px`:void 0}));return St(e4,Dt({panels:d,percentSizes:g,pxSizes:h,layout:r,lazy:s,movingIndex:m,containerSize:u,onMoveStart:_=>{b(_),a("resizeStart",_,h.value)},onMoving:(_,N)=>{w(_,N),s.value||a("resize",_,h.value)},onMoveEnd:async _=>{y(),await Ne(),a("resizeEnd",_,h.value)},onCollapse:(_,N)=>{S(_,N),a("collapse",_,N,h.value)},registerPanel:f,unregisterPanel:c})),(_,N)=>(E(),D("div",{ref_key:"containerEl",ref:l,class:R([i(n).b(),i(n).e(r.value)]),style:ze(k.value)},[oe(_.$slots,"default"),X(i(p)),re(" Prevent iframe touch events from breaking "),i(m)?(E(),D("div",{key:0,class:R([i(n).e("mask"),i(n).e(`mask-${r.value}`)])},null,2)):re("v-if",!0)],6))}}),rQ=oQ;function sQ(e){return e&&ot(e)?e:{start:!!e,end:!!e}}function w1(e,t,n,a){return!!(e?.collapsible.end&&t>0||n?.collapsible.start&&a===0&&t>0)}var lQ=se({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=ge("splitter-bar"),a=e,o=t,r=C(()=>a.layout==="horizontal"),s=C(()=>r.value?{width:0}:{height:0}),l=C(()=>({width:r.value?"16px":"100%",height:r.value?"100%":"16px",cursor:a.resizable?r.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),u=C(()=>{const w=n.e("dragger");return{[`${w}-horizontal`]:r.value,[`${w}-vertical`]:!r.value,[`${w}-active`]:!!c.value}}),c=M(null),d=w=>{a.resizable&&(c.value=[w.pageX,w.pageY],o("moveStart",a.index),window.addEventListener("mouseup",h),window.addEventListener("mousemove",p))},f=w=>{if(a.resizable&&w.touches.length===1){w.preventDefault();const y=w.touches[0];c.value=[y.pageX,y.pageY],o("moveStart",a.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",g)}},p=w=>{const{pageX:y,pageY:S}=w,k=y-c.value[0],x=S-c.value[1],O=r.value?k:x;o("moving",a.index,O)},g=w=>{if(w.touches.length===1){w.preventDefault();const y=w.touches[0],S=y.pageX-c.value[0],k=y.pageY-c.value[1],x=r.value?S:k;o("moving",a.index,x)}},h=()=>{c.value=null,window.removeEventListener("mouseup",h),window.removeEventListener("mousemove",p),o("moveEnd",a.index)},v=()=>{c.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",g),o("moveEnd",a.index)},m=C(()=>r.value?mr:ff),b=C(()=>r.value?sa:qo);return(w,y)=>(E(),D("div",{class:R([i(n).b()]),style:ze(s.value)},[e.startCollapsible?(E(),D("div",{key:0,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-start`)]),onClick:y[0]||(y[0]=S=>o("collapse",e.index,"start"))},[oe(w.$slots,"start-collapsible",{},()=>[(E(),le(it(m.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0),z("div",{class:R([i(n).e("dragger"),u.value,i(n).is("disabled",!e.resizable),i(n).is("lazy",e.resizable&&e.lazy)]),style:ze(l.value),onMousedown:d,onTouchstart:f},null,38),e.endCollapsible?(E(),D("div",{key:1,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-end`)]),onClick:y[1]||(y[1]=S=>o("collapse",e.index,"end"))},[oe(w.$slots,"end-collapsible",{},()=>[(E(),le(it(b.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0)],6))}}),iQ=lQ;const S1="ElSplitterPanel";var uQ=se({name:S1,__name:"split-panel",props:QZ,emits:eQ,setup(e,{expose:t,emit:n}){const a=ge("splitter-panel"),o=e,r=n,s=$e(e4);s||sn(S1,"usage: ");const{panels:l,layout:u,lazy:c,containerSize:d,pxSizes:f}=Pn(s),{registerPanel:p,unregisterPanel:g,onCollapse:h,onMoveEnd:v,onMoveStart:m,onMoving:b}=s,w=M(),y=dt(),S=y.uid,k=M(0),x=C(()=>l.value[k.value]),O=P=>{k.value=P},T=C(()=>x.value?f.value[k.value]??0:0),I=C(()=>x.value?f.value[k.value+1]??0:0),_=C(()=>x.value?l.value[k.value+1]:null),N=C(()=>_.value?o.resizable&&_.value?.resizable&&(T.value!==0||!o.min)&&(I.value!==0||!_.value.min):!1),$=C(()=>x.value?k.value!==l.value.length-1:!1),B=C(()=>w1(x.value,T.value,_.value,I.value)),K=C(()=>w1(_.value,I.value,x.value,T.value));function j(P){return Rg(P)?Og(P)*d.value||0:Ig(P)?_g(P):P??0}let W=!1;pe(()=>o.size,()=>{if(!W&&x.value){if(!d.value){x.value.size=o.size;return}const P=j(o.size),V=j(o.max),F=j(o.min),H=Math.min(Math.max(P,F||0),V||P);H!==P&&r("update:size",H),x.value.size=H}}),pe(()=>x.value?.size,P=>{P!==o.size&&(W=!0,r("update:size",P),Ne(()=>W=!1))}),pe(()=>o.resizable,P=>{x.value&&(x.value.resizable=P)});const A=Dt({uid:S,getVnode:()=>y.vnode,setIndex:O,...o,collapsible:C(()=>sQ(o.collapsible))});return p(A),Vt(()=>g(A)),t({splitterPanelRef:w}),(P,V)=>(E(),D(Ve,null,[z("div",pt({ref_key:"panelEl",ref:w,class:[i(a).b()],style:{flexBasis:`${T.value}px`}},P.$attrs),[oe(P.$slots,"default")],16),$.value?(E(),le(iQ,{key:0,index:k.value,layout:i(u),lazy:i(c),resizable:N.value,"start-collapsible":B.value,"end-collapsible":K.value,onMoveStart:i(m),onMoving:i(b),onMoveEnd:i(v),onCollapse:i(h)},{"start-collapsible":ne(()=>[oe(P.$slots,"start-collapsible")]),"end-collapsible":ne(()=>[oe(P.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):re("v-if",!0)],64))}}),t4=uQ;const cQ=st(rQ,{SplitPanel:t4}),dQ=ln(t4),oo="ElInfiniteScroll",fQ={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},$g=(e,t)=>Object.entries(fQ).reduce((n,[a,o])=>{const{type:r,default:s}=o,l=e.getAttribute(`infinite-scroll-${a}`);let u=t[l]??l??s;return u=u==="false"?!1:u,u=r(u),n[a]=Number.isNaN(u)?s:u,n},{}),n4=e=>{const{observer:t}=e[oo];t&&(t.disconnect(),delete e[oo].observer)},pQ=(e,t)=>{const{container:n,containerEl:a,instance:o,observer:r,lastScrollTop:s}=e[oo],{disabled:l,distance:u}=$g(e,o),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,p=f-s;if(e[oo].lastScrollTop=f,r||l||p<0)return;let g=!1;if(n===e)g=d-(c+f)<=u;else{const{clientTop:h,scrollHeight:v}=e,m=Yh(e,a);g=f+c>=m+h+v-u}g&&t.call(o)};function $p(e,t){const{containerEl:n,instance:a}=e[oo],{disabled:o}=$g(e,a);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):n4(e))}const hQ={async mounted(e,t){const{instance:n,value:a}=t;Po({scope:oo,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),Fe(a)||sn(oo,"'v-infinite-scroll' binding value must be a function"),await Ne();const{delay:o,immediate:r}=$g(e,n),s=dm(e,!0),l=s===window?document.documentElement:s,u=Fr(pQ.bind(null,e,a),o);if(s){if(e[oo]={instance:n,container:s,containerEl:l,delay:o,cb:a,onScroll:u,lastScrollTop:l.scrollTop},r){const c=new MutationObserver(Fr($p.bind(null,e,a),50));e[oo].observer=c,c.observe(e,{childList:!0,subtree:!0}),$p(e,a)}s.addEventListener("scroll",u)}},unmounted(e){if(!e.ElInfiniteScroll)return;const{container:t,onScroll:n}=e[oo];t?.removeEventListener("scroll",n),n4(e)},async updated(e){if(!e.ElInfiniteScroll)await Ne();else{const{containerEl:t,cb:n,observer:a}=e[oo];t.clientHeight&&a&&$p(e,n)}}},uv=hQ;uv.install=e=>{e.directive("InfiniteScroll",uv)};const vQ=uv;function mQ(e,t){let n;const a=M(!1),o=Dt({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(p){o.text=p}function s(){const p=o.parent,g=f.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(ra(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),ra(p,g.bm("parent","hidden"))}l(),d.unmount()}function l(){f.$el?.parentNode?.removeChild(f.$el)}function u(){e.beforeClose&&!e.beforeClose()||(a.value=!0,clearTimeout(n),n=setTimeout(c,400),o.visible=!1,e.closed?.())}function c(){if(!a.value)return;const p=o.parent;a.value=!1,p.vLoadingAddClassList=void 0,s()}const d=A2(se({name:"ElLoading",setup(p,{expose:g}){const{ns:h,zIndex:v}=mf("loading");return g({ns:h,zIndex:v}),()=>{const m=o.spinner||o.svg,b=qe("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[qe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=o.text?qe("p",{class:h.b("text")},[o.text]):void 0;return qe(Yn,{name:h.b("fade"),onAfterLeave:c},{default:ne(()=>[ct(X("div",{style:{backgroundColor:o.background||""},class:[h.b("mask"),o.customClass,h.is("fullscreen",o.fullscreen)]},[qe("div",{class:h.b("spinner")},[b,w])]),[[$t,o.visible]])])})}}}));Object.assign(d._context,t??{});const f=d.mount(document.createElement("div"));return{...Pn(o),setText:r,removeElLoadingChild:l,close:u,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let gc;const ml=function(e={},t){if(!Lt)return;const n=gQ(e);if(n.fullscreen&&gc)return gc;const a=mQ({...n,closed:()=>{n.closed?.(),n.fullscreen&&(gc=void 0)}},t??ml._context);bQ(n,n.parent,a),C1(n,n.parent,a),n.parent.vLoadingAddClassList=()=>C1(n,n.parent,a);let o=n.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",n.parent.setAttribute("loading-number",o),n.parent.appendChild(a.$el),Ne(()=>a.visible.value=n.visible),n.fullscreen&&(gc=a),a},gQ=e=>{let t;return Ae(e.target)?t=document.querySelector(e.target)??document.body:t=e.target||document.body,{parent:t===document.body||e.body?document.body:t,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:t===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||"",visible:e.visible??!0,beforeClose:e.beforeClose,closed:e.closed,target:t}},bQ=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=or(document.body,"position"),n.originalOverflow.value=or(document.body,"overflow"),o.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=or(document.body,"position"),await Ne();for(const r of["top","left"]){const s=r==="top"?"scrollTop":"scrollLeft";o[r]=`${e.target.getBoundingClientRect()[r]+document.body[s]+document.documentElement[s]-Number.parseInt(or(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])o[r]=`${e.target.getBoundingClientRect()[r]}px`}else n.originalPosition.value=or(t,"position");for(const[r,s]of Object.entries(o))n.$el.style[r]=s},C1=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ra(t,a.bm("parent","relative")):Ua(t,a.bm("parent","relative")),e.fullscreen&&e.lock?Ua(t,a.bm("parent","hidden")):ra(t,a.bm("parent","hidden"))};ml._context=null;const gi=Symbol("ElLoading"),is=e=>`element-loading-${br(e)}`,k1=(e,t)=>{const n=t.instance,a=c=>ot(t.value)?t.value[c]:void 0,o=c=>M(Ae(c)&&n?.[c]||c),r=c=>o(a(c)||e.getAttribute(is(c))),s=a("fullscreen")??t.modifiers.fullscreen,l={text:r("text"),svg:r("svg"),svgViewBox:r("svgViewBox"),spinner:r("spinner"),background:r("background"),customClass:r("customClass"),fullscreen:s,target:a("target")??(s?void 0:e),body:a("body")??t.modifiers.body,lock:a("lock")??t.modifiers.lock},u=ml(l);u._context=Ni._context,e[gi]={options:l,instance:u}},yQ=(e,t)=>{for(const n of Object.keys(e))Gt(e[n])&&(e[n].value=t[n])},Ni={mounted(e,t){t.value&&k1(e,t)},updated(e,t){const n=e[gi];if(!t.value){n?.instance.close(),e[gi]=null;return}n?yQ(n.options,ot(t.value)?t.value:{text:e.getAttribute(is("text")),svg:e.getAttribute(is("svg")),svgViewBox:e.getAttribute(is("svgViewBox")),spinner:e.getAttribute(is("spinner")),background:e.getAttribute(is("background")),customClass:e.getAttribute(is("customClass"))}):k1(e,t)},unmounted(e){e[gi]?.instance.close(),e[gi]=null}};Ni._context=null;const wQ={install(e){ml._context=e._context,Ni._context=e._context,e.directive("loading",Ni),e.config.globalProperties.$loading=ml},directive:Ni,service:ml},a4=["primary","success","info","warning","error"],o4=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Qn=pn({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Lt?document.body:void 0}),SQ=Ee({customClass:{type:String,default:Qn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Qn.dangerouslyUseHTMLString},duration:{type:Number,default:Qn.duration},icon:{type:Ut,default:Qn.icon},id:{type:String,default:Qn.id},message:{type:G([String,Object,Function]),default:Qn.message},onClose:{type:G(Function),default:Qn.onClose},showClose:{type:Boolean,default:Qn.showClose},type:{type:String,values:a4,default:Qn.type},plain:{type:Boolean,default:Qn.plain},offset:{type:Number,default:Qn.offset},placement:{type:String,values:o4,default:Qn.placement},zIndex:{type:Number,default:Qn.zIndex},grouping:{type:Boolean,default:Qn.grouping},repeatNum:{type:Number,default:Qn.repeatNum}}),CQ={destroy:()=>!0},lo=Ad({}),kQ=e=>(lo[e]||(lo[e]=Ad([])),lo[e]),EQ=(e,t)=>{const n=lo[t]||[],a=n.findIndex(s=>s.id===e),o=n[a];let r;return a>0&&(r=n[a-1]),{current:o,prev:r}},xQ=(e,t)=>{const{prev:n}=EQ(e,t);return n?n.vm.exposed.bottom.value:0},TQ=(e,t,n)=>(lo[n]||[]).findIndex(a=>a.id===e)>0?16:t,OQ=["id"],_Q=["innerHTML"];var RQ=se({name:"ElMessage",__name:"message",props:SQ,emits:CQ,setup(e,{expose:t,emit:n}){const{Close:a}=Im,o=e,r=n,s=M(!1),{ns:l,zIndex:u}=mf("message"),{currentZIndex:c,nextZIndex:d}=u,f=M(),p=M(!1),g=M(0);let h;const v=C(()=>o.type?o.type==="error"?"danger":o.type:"info"),m=C(()=>{const B=o.type;return{[l.bm("icon",B)]:B&&Zr[B]}}),b=C(()=>o.icon||Zr[o.type]||""),w=C(()=>o.placement||"top"),y=C(()=>xQ(o.id,w.value)),S=C(()=>Math.max(TQ(o.id,o.offset,w.value)+y.value,o.offset)),k=C(()=>g.value+S.value),x=C(()=>w.value.includes("left")?l.is("left"):w.value.includes("right")?l.is("right"):l.is("center")),O=C(()=>w.value.startsWith("top")?"top":"bottom"),T=C(()=>({[O.value]:`${S.value}px`,zIndex:c.value}));function I(){o.duration!==0&&({stop:h}=kl(()=>{N()},o.duration))}function _(){h?.()}function N(){p.value=!1,Ne(()=>{s.value||(o.onClose?.(),r("destroy"))})}function $(B){qt(B)===Se.esc&&N()}return ht(()=>{I(),d(),p.value=!0}),pe(()=>o.repeatNum,()=>{_(),I()}),Bt(document,"keydown",$),an(f,()=>{g.value=f.value.getBoundingClientRect().height}),t({visible:p,bottom:k,close:N}),(B,K)=>(E(),le(Yn,{name:i(l).b("fade"),onBeforeEnter:K[0]||(K[0]=j=>s.value=!0),onBeforeLeave:e.onClose,onAfterLeave:K[1]||(K[1]=j=>B.$emit("destroy")),persisted:""},{default:ne(()=>[ct(z("div",{id:e.id,ref_key:"messageRef",ref:f,class:R([i(l).b(),{[i(l).m(e.type)]:e.type},i(l).is("closable",e.showClose),i(l).is("plain",e.plain),i(l).is("bottom",O.value==="bottom"),x.value,e.customClass]),style:ze(T.value),role:"alert",onMouseenter:_,onMouseleave:I},[e.repeatNum>1?(E(),le(i(UC),{key:0,value:e.repeatNum,type:v.value,class:R(i(l).e("badge"))},null,8,["value","type","class"])):re("v-if",!0),b.value?(E(),le(i(De),{key:1,class:R([i(l).e("icon"),m.value])},{default:ne(()=>[(E(),le(it(b.value)))]),_:1},8,["class"])):re("v-if",!0),!e.dangerouslyUseHTMLString||B.$slots.default?(E(),D("p",{key:2,class:R(i(l).e("content"))},[oe(B.$slots,"default",{},()=>[wt(Ce(e.message),1)])],2)):(E(),D(Ve,{key:3},[re(" Caution here, message could've been compromised, never use user's input as message "),z("p",{class:R(i(l).e("content")),innerHTML:e.message},null,10,_Q)],2112)),e.showClose?(E(),le(i(De),{key:4,class:R(i(l).e("closeBtn")),onClick:Xe(N,["stop"])},{default:ne(()=>[X(i(a))]),_:1},8,["class"])):re("v-if",!0)],46,OQ),[[$t,p.value]])]),_:3},8,["name","onBeforeLeave"]))}}),IQ=RQ;let $Q=1;const NQ=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Ae(e.appendTo)){let t=document.querySelector(e.appendTo);ka(t)||(jt("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},MQ=e=>{!e.placement&&Ae(ea.placement)&&ea.placement&&(e.placement=ea.placement),e.placement||(e.placement="top"),o4.includes(e.placement)||(jt("ElMessage",`Invalid placement: ${e.placement}. Falling back to 'top'.`),e.placement="top")},r4=e=>{const t=!e||Ae(e)||Zt(e)||Fe(e)?{message:e}:e,n={...Qn,...t};return NQ(n),MQ(n),Wt(ea.grouping)&&!n.grouping&&(n.grouping=ea.grouping),Be(ea.duration)&&n.duration===3e3&&(n.duration=ea.duration),Be(ea.offset)&&n.offset===16&&(n.offset=ea.offset),Wt(ea.showClose)&&!n.showClose&&(n.showClose=ea.showClose),Wt(ea.plain)&&!n.plain&&(n.plain=ea.plain),n},PQ=e=>{const t=lo[e.props.placement||"top"],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:a}=e;a.close()},AQ=({appendTo:e,...t},n)=>{const a=`message_${$Q++}`,o=t.onClose,r=document.createElement("div"),s={...t,id:a,onClose:()=>{o?.(),PQ(c)},onDestroy:()=>{Yr(null,r)}},l=X(IQ,s,Fe(s.message)||Zt(s.message)?{default:Fe(s.message)?s.message:()=>s.message}:null);l.appContext=n||As._context,Yr(l,r),e.appendChild(r.firstElementChild);const u=l.component,c={id:a,vnode:l,vm:u,handler:{close:()=>{u.exposed.close()}},props:l.component.props};return c},As=(e={},t)=>{if(!Lt)return{close:()=>{}};const n=r4(e),a=kQ(n.placement||"top");if(n.grouping&&a.length){const r=a.find(({vnode:s})=>s.props?.message===n.message);if(r)return r.props.repeatNum+=1,r.props.type=n.type,r.handler}if(Be(ea.max)&&a.length>=ea.max)return{close:()=>{}};const o=AQ(n,t);return a.push(o),o.handler};a4.forEach(e=>{As[e]=(t={},n)=>As({...r4(t),type:e},n)});function LQ(e){for(const t in lo)if(Nt(lo,t)){const n=[...lo[t]];for(const a of n)(!e||e===a.props.type)&&a.handler.close()}}function DQ(e){lo[e]&&[...lo[e]].forEach(t=>t.handler.close())}As.closeAll=LQ;As.closeAllByPlacement=DQ;As._context=null;const cv=CC(As,"$message");var BQ=se({name:"ElMessageBox",directives:{TrapFocus:gB},components:{ElButton:Bn,ElFocusTrap:Ul,ElInput:Un,ElOverlay:ng,ElIcon:De,...Im},inheritAttrs:!1,props:{buttonSize:{type:String,validator:rx},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:o,size:r}=mf("message-box",C(()=>e.buttonSize)),{t:s}=n,{nextZIndex:l}=a,u=M(!1),c=Dt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Ya(ho),cancelButtonLoadingIcon:Ya(ho),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),d=C(()=>{const j=c.type;return{[o.bm("icon",j)]:j&&Zr[j]}}),f=Gn(),p=Gn(),g=C(()=>{const j=c.type;return c.icon||j&&Zr[j]||""}),h=C(()=>!!c.message),v=M(),m=M(),b=M(),w=M(),y=M(),S=C(()=>c.confirmButtonClass);pe(()=>c.inputValue,async j=>{await Ne(),e.boxType==="prompt"&&j&&N()},{immediate:!0}),pe(()=>u.value,j=>{j&&(e.boxType!=="prompt"&&(c.autofocus?b.value=y.value?.$el??v.value:b.value=v.value),c.zIndex=l()),e.boxType==="prompt"&&(j?Ne().then(()=>{w.value&&w.value.$el&&(c.autofocus?b.value=$()??v.value:b.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const{isDragging:k}=VS(v,m,C(()=>e.draggable),C(()=>e.overflow));ht(async()=>{await Ne(),e.closeOnHashChange&&window.addEventListener("hashchange",x)}),Vt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",x)});function x(){u.value&&(u.value=!1,Ne(()=>{c.action&&t("action",c.action)}))}const O=()=>{e.closeOnClickModal&&_(c.distinguishCancelAndClose?"close":"cancel")},T=Sm(O),I=j=>{if(c.inputType!=="textarea"&&!w.value?.isComposing)return j.preventDefault(),_("confirm")},_=j=>{e.boxType==="prompt"&&j==="confirm"&&!N()||(c.action=j,c.beforeClose?c.beforeClose?.(j,c,x):x())},N=()=>{if(e.boxType==="prompt"){const j=c.inputPattern;if(j&&!j.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;const W=c.inputValidator;if(Fe(W)){const A=W(c.inputValue);if(A===!1)return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;if(Ae(A))return c.editorErrorMessage=A,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},$=()=>{const j=w.value?.$refs;return j?.input??j?.textarea},B=()=>{_("close")},K=()=>{e.closeOnPressEscape&&B()};return e.lockScroll&&of(u,{ns:o}),{...Pn(c),ns:o,overlayEvent:T,visible:u,hasMessage:h,typeClass:d,contentId:f,inputId:p,btnSize:r,iconComponent:g,confirmButtonClasses:S,rootRef:v,focusStartRef:b,headerRef:m,inputRef:w,isDragging:k,confirmRef:y,doClose:x,handleClose:B,onCloseRequested:K,handleWrapperClick:O,handleInputEnter:I,handleAction:_,t:s}}});const VQ=["aria-label","aria-describedby"],FQ=["aria-label"],zQ=["id"];function HQ(e,t,n,a,o,r){const s=Mt("el-icon"),l=Mt("el-input"),u=Mt("el-button"),c=Mt("el-focus-trap"),d=Mt("el-overlay");return E(),le(Yn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ne(()=>[ct(X(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ne(()=>[z("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:R(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[X(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ne(()=>[z("div",{ref:"rootRef",class:R([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:ze(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Xe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(E(),D("div",{key:0,ref:"headerRef",class:R([e.ns.e("header"),{"show-close":e.showClose}])},[z("div",{class:R(e.ns.e("title"))},[e.iconComponent&&e.center?(E(),le(s,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ne(()=>[(E(),le(it(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),z("span",null,Ce(e.title),1)],2),e.showClose?(E(),D("button",{key:0,type:"button",class:R(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=dn(Xe(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[X(s,{class:R(e.ns.e("close"))},{default:ne(()=>[(E(),le(it(e.closeIcon||"close")))]),_:1},8,["class"])],42,FQ)):re("v-if",!0)],2)):re("v-if",!0),z("div",{id:e.contentId,class:R(e.ns.e("content"))},[z("div",{class:R(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(E(),le(s,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ne(()=>[(E(),le(it(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.hasMessage?(E(),D("div",{key:1,class:R(e.ns.e("message"))},[oe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(E(),le(it(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(E(),le(it(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:Ce(e.message)},null,8,["for","textContent"]))])],2)):re("v-if",!0)],2),ct(z("div",{class:R(e.ns.e("input"))},[X(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:R({invalid:e.validateError}),onKeydown:dn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),z("div",{class:R(e.ns.e("errormsg")),style:ze({visibility:e.editorErrorMessage?"visible":"hidden"})},Ce(e.editorErrorMessage),7)],2),[[$t,e.showInput]])],10,zQ),z("div",{class:R(e.ns.e("btns"))},[e.showCancelButton?(E(),le(u,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:R([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=dn(Xe(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ne(()=>[wt(Ce(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):re("v-if",!0),ct(X(u,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:R([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=dn(Xe(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ne(()=>[wt(Ce(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[$t,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,VQ)]),_:3},8,["z-index","overlay-class","mask"]),[[$t,e.visible]])]),_:3})}var KQ=Mn(BQ,[["render",HQ]]);const fu=new Map,WQ=e=>{let t=document.body;return e.appendTo&&(Ae(e.appendTo)&&(t=document.querySelector(e.appendTo)),ka(e.appendTo)&&(t=e.appendTo),ka(t)||(jt("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},Np=(e,t)=>{const n=e.component?.proxy;return()=>n.handleAction(t)},jQ=(e,t,n=null)=>{const a=X(KQ,e,Fe(e.message)||Zt(e.message)?{default:Fe(e.message)?()=>e.message({confirm:Np(a,"confirm"),cancel:Np(a,"cancel"),close:Np(a,"close")}):()=>e.message}:null);return a.appContext=n,Yr(a,t),WQ(e).appendChild(t.firstElementChild),a.component},UQ=()=>document.createElement("div"),qQ=(e,t)=>{const n=UQ();e.onVanish=()=>{Yr(null,n),fu.delete(o)},e.onAction=r=>{const s=fu.get(o);let l;e.showInput?l={value:o.inputValue,action:r}:l=r,e.callback?e.callback(l,a.proxy):r==="cancel"||r==="close"?e.distinguishCancelAndClose&&r!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(l)};const a=jQ(e,n,t),o=a.proxy;for(const r in e)Nt(e,r)&&!Nt(o.$props,r)&&(r==="closeIcon"&&ot(e[r])?o[r]=Ya(e[r]):o[r]=e[r]);return o.visible=!0,o};function Yl(e,t=null){if(!Lt)return Promise.reject();let n;return Ae(e)||Zt(e)?e={message:e}:n=e.callback,new Promise((a,o)=>{const r=qQ(e,t??Yl._context);fu.set(r,{options:e,callback:n,resolve:a,reject:o})})}const YQ=["alert","confirm","prompt"],GQ={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};YQ.forEach(e=>{Yl[e]=XQ(e)});function XQ(e){return(t,n,a,o)=>{let r="";return ot(n)?(a=n,r=""):Rt(n)?r="":r=n,Yl(Object.assign({title:r,message:t,type:"",...GQ[e]},a,{boxType:e}),o)}}Yl.close=()=>{fu.forEach((e,t)=>{t.doClose()}),fu.clear()};Yl._context=null;const Lr=Yl;Lr.install=e=>{Lr._context=e._context,e.config.globalProperties.$msgbox=Lr,e.config.globalProperties.$messageBox=Lr,e.config.globalProperties.$alert=Lr.alert,e.config.globalProperties.$confirm=Lr.confirm,e.config.globalProperties.$prompt=Lr.prompt};const JQ=Lr,s4=["primary","success","info","warning","error"],ZQ=Ee({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ut},id:{type:String,default:""},message:{type:G([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:G(Function),default:()=>{}},onClose:{type:G(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:[...s4,""],default:""},zIndex:Number,closeIcon:{type:Ut,default:Qa}}),QQ={destroy:()=>!0},eee=["id"],tee=["textContent"],nee={key:0},aee=["innerHTML"];var oee=se({name:"ElNotification",__name:"notification",props:ZQ,emits:QQ,setup(e,{expose:t}){const n=e,{ns:a,zIndex:o}=mf("notification"),{nextZIndex:r,currentZIndex:s}=o,l=M(!1);let u;const c=C(()=>{const w=n.type;return w&&Zr[n.type]?a.m(w):""}),d=C(()=>n.type&&Zr[n.type]||n.icon),f=C(()=>n.position.endsWith("right")?"right":"left"),p=C(()=>n.position.startsWith("top")?"top":"bottom"),g=C(()=>({[p.value]:`${n.offset}px`,zIndex:n.zIndex??s.value}));function h(){n.duration>0&&({stop:u}=kl(()=>{l.value&&m()},n.duration))}function v(){u?.()}function m(){l.value=!1}function b(w){switch(qt(w)){case Se.delete:case Se.backspace:v();break;case Se.esc:l.value&&m();break;default:h();break}}return ht(()=>{h(),r(),l.value=!0}),Bt(document,"keydown",b),t({visible:l,close:m}),(w,y)=>(E(),le(Yn,{name:i(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:y[1]||(y[1]=S=>w.$emit("destroy")),persisted:""},{default:ne(()=>[ct(z("div",{id:e.id,class:R([i(a).b(),e.customClass,f.value]),style:ze(g.value),role:"alert",onMouseenter:v,onMouseleave:h,onClick:y[0]||(y[0]=(...S)=>e.onClick&&e.onClick(...S))},[d.value?(E(),le(i(De),{key:0,class:R([i(a).e("icon"),c.value])},{default:ne(()=>[(E(),le(it(d.value)))]),_:1},8,["class"])):re("v-if",!0),z("div",{class:R(i(a).e("group"))},[z("h2",{class:R(i(a).e("title")),textContent:Ce(e.title)},null,10,tee),ct(z("div",{class:R(i(a).e("content")),style:ze(e.title?void 0:{margin:0})},[oe(w.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(E(),D(Ve,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),z("p",{innerHTML:e.message},null,8,aee)],2112)):(E(),D("p",nee,Ce(e.message),1))])],6),[[$t,e.message]]),e.showClose?(E(),le(i(De),{key:0,class:R(i(a).e("closeBtn")),onClick:Xe(m,["stop"])},{default:ne(()=>[(E(),le(it(e.closeIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],46,eee),[[$t,l.value]])]),_:3},8,["name","onBeforeLeave"]))}}),ree=oee;const Pl={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},kd=16;let see=1;const Ls=function(e={},t){if(!Lt)return{close:()=>{}};(Ae(e)||Zt(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;Pl[n].forEach(({vm:d})=>{a+=(d.el?.offsetHeight||0)+kd}),a+=kd;const o=`notification_${see++}`,r=e.onClose,s={...e,offset:a,id:o,onClose:()=>{lee(o,n,r)}};let l=document.body;ka(e.appendTo)?l=e.appendTo:Ae(e.appendTo)&&(l=document.querySelector(e.appendTo)),ka(l)||(jt("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const u=document.createElement("div"),c=X(ree,s,Fe(s.message)?s.message:Zt(s.message)?()=>s.message:null);return c.appContext=Rt(t)?Ls._context:t,c.props.onDestroy=()=>{Yr(null,u)},Yr(c,u),Pl[n].push({vm:c}),l.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};s4.forEach(e=>{Ls[e]=(t={},n)=>((Ae(t)||Zt(t))&&(t={message:t}),Ls({...t,type:e},n))});function lee(e,t,n){const a=Pl[t],o=a.findIndex(({vm:c})=>c.component?.props.id===e);if(o===-1)return;const{vm:r}=a[o];if(!r)return;n?.(r);const s=r.el.offsetHeight,l=t.split("-")[0];a.splice(o,1);const u=a.length;if(!(u<1))for(let c=o;c{t.component.exposed.visible.value=!1})}function uee(e="top-right"){let t=Pl[e][0]?.vm.component?.props?.offset||0;for(const{vm:n}of Pl[e])n.component.props.offset=t,t+=(n.el?.offsetHeight||0)+kd}Ls.closeAll=iee;Ls.updateOffsets=uee;Ls._context=null;const cee=CC(Ls,"$notify"),dee=Ee({trigger:Bo.trigger,triggerKeys:Bo.triggerKeys,placement:$c.placement,disabled:Bo.disabled,visible:Kt.visible,transition:Kt.transition,popperOptions:$c.popperOptions,tabindex:$c.tabindex,content:Kt.content,popperStyle:Kt.popperStyle,popperClass:Kt.popperClass,enterable:{...Kt.enterable,default:!0},effect:{...Kt.effect,default:"light"},teleported:Kt.teleported,appendTo:Kt.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),fee={"update:visible":e=>Wt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},pee="onUpdate:visible";var hee=se({name:"ElPopover",__name:"popover",props:dee,emits:fee,setup(e,{expose:t,emit:n}){const a=e,o=n,r=C(()=>a[pee]),s=ge("popover"),l=M(),u=C(()=>i(l)?.popperRef),c=C(()=>[{width:hn(a.width)},a.popperStyle]),d=C(()=>[s.b(),a.popperClass,{[s.m("plain")]:!!a.content}]),f=C(()=>a.transition===`${s.namespace.value}-fade-in-linear`),p=()=>{l.value?.hide()},g=()=>{o("before-enter")},h=()=>{o("before-leave")},v=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:u,hide:p}),(b,w)=>(E(),le(i(Wn),pt({ref_key:"tooltipRef",ref:l},b.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":d.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":r.value,onBeforeShow:g,onBeforeHide:h,onShow:v,onHide:m}),{content:ne(()=>[e.title?(E(),D("div",{key:0,class:R(i(s).e("title")),role:"title"},Ce(e.title),3)):re("v-if",!0),oe(b.$slots,"default",{hide:p},()=>[wt(Ce(e.content),1)])]),default:ne(()=>[b.$slots.reference?oe(b.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),vee=hee;const E1=(e,t)=>{const n=(t.arg||t.value)?.popperRef;n&&(n.triggerRef=e)};var mee={mounted(e,t){E1(e,t)},updated(e,t){E1(e,t)}};const gee="popover",l4=JM(mee,gee),bee=st(vee,{directive:l4}),yee="2.14.0",wee=(e=[])=>({version:yee,install:(n,a)=>{n[Ib]||(n[Ib]=!0,e.forEach(o=>n.use(o)),a&&Dm(a,n,!0))}});var See=[eP,nL,c5,FG,m5,g5,k5,UC,M5,P5,Bn,QC,IV,PV,GV,XV,cz,rE,vz,mo,$F,qm,xz,Fz,zz,yf,gE,v9,F5,C9,k9,E9,x9,T9,h7,IE,k7,E7,V7,BE,Z7,VK,FK,zK,qE,QL,eD,De,RW,YE,Un,GE,UW,ZW,oj,wj,Sj,Cj,kj,Rj,uU,hU,bee,zC,tx,oE,KF,HF,RU,MU,Cz,vo,es,ud,cV,tq,lq,iq,_q,Mq,CE,A9,Fq,zq,Jq,rG,sG,VG,QG,eX,cr,wg,DB,iX,pX,hX,Wn,OX,kg,GX,dJ,BJ,YJ,yZ,wZ,RZ,IZ,DZ,XZ,cQ,dQ],Cee=[vQ,wQ,cv,JQ,cee,l4],Ng=wee([...See,...Cee]);Ng.install;Ng.version;var kee=Ng,Eee={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"},inputOTP:{groupLabel:"一次性密码输入框",defaultLabel:"请输入第 {index} 位 OTP 字符"}}};const xee=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n},Tee={};function Oee(e,t){const n=Mt("router-view");return E(),le(n,null,{default:ne(({Component:a})=>[(E(),le(it(a)))]),_:1})}const _ee=xee(Tee,[["render",Oee]]),Ree="modulepreload",Iee=function(e){return"/"+e},x1={},nn=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");o=Promise.allSettled(n.map(u=>{if(u=Iee(u),u in x1)return;x1[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Ree,c||(f.as="script"),f.crossOrigin="",f.href=u,l&&f.setAttribute("nonce",l),document.head.appendChild(f),c)return new Promise((p,g)=>{f.addEventListener("load",p),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function r(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&r(l.reason);return t().catch(r)})};/*! - * vue-router v4.6.4 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const ol=typeof document<"u";function i4(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $ee(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&i4(e.default)}const rn=Object.assign;function Mp(e,t){const n={};for(const a in t){const o=t[a];n[a]=go(o)?o.map(e):e(o)}return n}const Mi=()=>{},go=Array.isArray;function T1(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const u4=/#/g,Nee=/&/g,Mee=/\//g,Pee=/=/g,Aee=/\?/g,c4=/\+/g,Lee=/%5B/g,Dee=/%5D/g,d4=/%5E/g,Bee=/%60/g,f4=/%7B/g,Vee=/%7C/g,p4=/%7D/g,Fee=/%20/g;function Mg(e){return e==null?"":encodeURI(""+e).replace(Vee,"|").replace(Lee,"[").replace(Dee,"]")}function zee(e){return Mg(e).replace(f4,"{").replace(p4,"}").replace(d4,"^")}function dv(e){return Mg(e).replace(c4,"%2B").replace(Fee,"+").replace(u4,"%23").replace(Nee,"%26").replace(Bee,"`").replace(f4,"{").replace(p4,"}").replace(d4,"^")}function Hee(e){return dv(e).replace(Pee,"%3D")}function Kee(e){return Mg(e).replace(u4,"%23").replace(Aee,"%3F")}function Wee(e){return Kee(e).replace(Mee,"%2F")}function pu(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const jee=/\/$/,Uee=e=>e.replace(jee,"");function Pp(e,t,n="/"){let a,o={},r="",s="";const l=t.indexOf("#");let u=t.indexOf("?");return u=l>=0&&u>l?-1:u,u>=0&&(a=t.slice(0,u),r=t.slice(u,l>0?l:t.length),o=e(r.slice(1))),l>=0&&(a=a||t.slice(0,l),s=t.slice(l,t.length)),a=Xee(a??t,n),{fullPath:a+r+s,path:a,query:o,hash:pu(s)}}function qee(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function O1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yee(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&Al(t.matched[a],n.matched[o])&&h4(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Al(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function h4(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Gee(e[n],t[n]))return!1;return!0}function Gee(e,t){return go(e)?_1(e,t):go(t)?_1(t,e):e?.valueOf()===t?.valueOf()}function _1(e,t){return go(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Xee(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let r=n.length-1,s,l;for(s=0;s1&&r--;else break;return n.slice(0,r).join("/")+"/"+a.slice(s).join("/")}const Ir={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let fv=function(e){return e.pop="pop",e.push="push",e}({}),Ap=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Jee(e){if(!e)if(ol){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Uee(e)}const Zee=/^[^#]+#/;function Qee(e,t){return e.replace(Zee,"#")+t}function ete(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Ef=()=>({left:window.scrollX,top:window.scrollY});function tte(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ete(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function R1(e,t){return(history.state?history.state.position-t:-1)+e}const pv=new Map;function nte(e,t){pv.set(e,t)}function ate(e){const t=pv.get(e);return pv.delete(e),t}function ote(e){return typeof e=="string"||e&&typeof e=="object"}function v4(e){return typeof e=="string"||typeof e=="symbol"}let $n=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const m4=Symbol("");$n.MATCHER_NOT_FOUND+"",$n.NAVIGATION_GUARD_REDIRECT+"",$n.NAVIGATION_ABORTED+"",$n.NAVIGATION_CANCELLED+"",$n.NAVIGATION_DUPLICATED+"";function Ll(e,t){return rn(new Error,{type:e,[m4]:!0},t)}function Jo(e,t){return e instanceof Error&&m4 in e&&(t==null||!!(e.type&t))}const rte=["params","query","hash"];function ste(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of rte)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function lte(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&dv(o)):[a&&dv(a)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function ite(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=go(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const ute=Symbol(""),$1=Symbol(""),xf=Symbol(""),Pg=Symbol(""),hv=Symbol("");function li(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Br(e,t,n,a,o,r=s=>s()){const s=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((l,u)=>{const c=p=>{p===!1?u(Ll($n.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?u(p):ote(p)?u(Ll($n.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(s&&a.enterCallbacks[o]===s&&typeof p=="function"&&s.push(p),l())},d=r(()=>e.call(a&&a.instances[o],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(p=>u(p))})}function Lp(e,t,n,a,o=r=>r()){const r=[];for(const s of e)for(const l in s.components){let u=s.components[l];if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(i4(u)){const c=(u.__vccOpts||u)[t];c&&r.push(Br(c,n,a,s,l,o))}else{let c=u();r.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const f=$ee(d)?d.default:d;s.mods[l]=d,s.components[l]=f;const p=(f.__vccOpts||f)[t];return p&&Br(p,n,a,s,l,o)()}))}}return r}function cte(e,t){const n=[],a=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sAl(c,l))?a.push(l):n.push(l));const u=e.matched[s];u&&(t.matched.find(c=>Al(c,u))||o.push(u))}return[n,a,o]}/*! - * vue-router v4.6.4 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let dte=()=>location.protocol+"//"+location.host;function g4(e,t){const{pathname:n,search:a,hash:o}=t,r=e.indexOf("#");if(r>-1){let s=o.includes(e.slice(r))?e.slice(r).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),O1(l,"")}return O1(n,e)+a+o}function fte(e,t,n,a){let o=[],r=[],s=null;const l=({state:p})=>{const g=g4(e,location),h=n.value,v=t.value;let m=0;if(p){if(n.value=g,t.value=p,s&&s===h){s=null;return}m=v?p.position-v.position:0}else a(g);o.forEach(b=>{b(n.value,h,{delta:m,type:fv.pop,direction:m?m>0?Ap.forward:Ap.back:Ap.unknown})})};function u(){s=n.value}function c(p){o.push(p);const g=()=>{const h=o.indexOf(p);h>-1&&o.splice(h,1)};return r.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(rn({},p.state,{scroll:Ef()}),"")}}function f(){for(const p of r)p();r=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function N1(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?Ef():null}}function pte(e){const{history:t,location:n}=window,a={value:g4(e,n)},o={value:t.state};o.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(u,c,d){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:dte()+e+u;try{t[d?"replaceState":"pushState"](c,"",p),o.value=c}catch(g){console.error(g),n[d?"replace":"assign"](p)}}function s(u,c){r(u,rn({},t.state,N1(o.value.back,u,o.value.forward,!0),c,{position:o.value.position}),!0),a.value=u}function l(u,c){const d=rn({},o.value,t.state,{forward:u,scroll:Ef()});r(d.current,d,!0),r(u,rn({},N1(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:o,push:l,replace:s}}function hte(e){e=Jee(e);const t=pte(e),n=fte(e,t.state,t.location,t.replace);function a(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=rn({location:"",base:e,go:a,createHref:Qee.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let bs=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var zn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(zn||{});const vte={type:bs.Static,value:""},mte=/[a-zA-Z0-9_]/;function gte(e){if(!e)return[[]];if(e==="/")return[[vte]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=zn.Static,a=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let l=0,u,c="",d="";function f(){c&&(n===zn.Static?r.push({type:bs.Static,value:c}):n===zn.Param||n===zn.ParamRegExp||n===zn.ParamRegExpEnd?(r.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:bs.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;lt.length?t.length===1&&t[0]===fa.Static+fa.Segment?1:-1:0}function b4(e,t){let n=0;const a=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Cte={strict:!1,end:!0,sensitive:!1};function kte(e,t,n){const a=wte(gte(e.path),n),o=rn(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Ete(e,t){const n=[],a=new Map;t=T1(Cte,t);function o(f){return a.get(f)}function r(f,p,g){const h=!g,v=L1(f);v.aliasOf=g&&g.record;const m=T1(t,f),b=[v];if("alias"in f){const S=typeof f.alias=="string"?[f.alias]:f.alias;for(const k of S)b.push(L1(rn({},v,{components:g?g.record.components:v.components,path:k,aliasOf:g?g.record:v})))}let w,y;for(const S of b){const{path:k}=S;if(p&&k[0]!=="/"){const x=p.record.path,O=x[x.length-1]==="/"?"":"/";S.path=p.record.path+(k&&O+k)}if(w=kte(S,p,m),g?g.alias.push(w):(y=y||w,y!==w&&y.alias.push(w),h&&f.name&&!D1(w)&&s(f.name)),y4(w)&&u(w),v.children){const x=v.children;for(let O=0;O{s(y)}:Mi}function s(f){if(v4(f)){const p=a.get(f);p&&(a.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&a.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function l(){return n}function u(f){const p=Ote(f,n);n.splice(p,0,f),f.record.name&&!D1(f)&&a.set(f.record.name,f)}function c(f,p){let g,h={},v,m;if("name"in f&&f.name){if(g=a.get(f.name),!g)throw Ll($n.MATCHER_NOT_FOUND,{location:f});m=g.record.name,h=rn(A1(p.params,g.keys.filter(y=>!y.optional).concat(g.parent?g.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),f.params&&A1(f.params,g.keys.map(y=>y.name))),v=g.stringify(h)}else if(f.path!=null)v=f.path,g=n.find(y=>y.re.test(v)),g&&(h=g.parse(v),m=g.record.name);else{if(g=p.name?a.get(p.name):n.find(y=>y.re.test(p.path)),!g)throw Ll($n.MATCHER_NOT_FOUND,{location:f,currentLocation:p});m=g.record.name,h=rn({},p.params,f.params),v=g.stringify(h)}const b=[];let w=g;for(;w;)b.unshift(w.record),w=w.parent;return{name:m,path:v,params:h,matched:b,meta:Tte(b)}}e.forEach(f=>r(f));function d(){n.length=0,a.clear()}return{addRoute:r,resolve:c,removeRoute:s,clearRoutes:d,getRoutes:l,getRecordMatcher:o}}function A1(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function L1(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xte(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function xte(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function D1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Tte(e){return e.reduce((t,n)=>rn(t,n.meta),{})}function Ote(e,t){let n=0,a=t.length;for(;n!==a;){const r=n+a>>1;b4(e,t[r])<0?a=r:n=r+1}const o=_te(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function _te(e){let t=e;for(;t=t.parent;)if(y4(t)&&b4(e,t)===0)return t}function y4({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function B1(e){const t=$e(xf),n=$e(Pg),a=C(()=>{const u=i(e.to);return t.resolve(u)}),o=C(()=>{const{matched:u}=a.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const p=f.findIndex(Al.bind(null,d));if(p>-1)return p;const g=V1(u[c-2]);return c>1&&V1(d)===g&&f[f.length-1].path!==g?f.findIndex(Al.bind(null,u[c-2])):p}),r=C(()=>o.value>-1&&Mte(n.params,a.value.params)),s=C(()=>o.value>-1&&o.value===n.matched.length-1&&h4(n.params,a.value.params));function l(u={}){if(Nte(u)){const c=t[i(e.replace)?"replace":"push"](i(e.to)).catch(Mi);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:a,href:C(()=>a.value.href),isActive:r,isExactActive:s,navigate:l}}function Rte(e){return e.length===1?e[0]:e}const Ite=se({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:B1,setup(e,{slots:t}){const n=Dt(B1(e)),{options:a}=$e(xf),o=C(()=>({[F1(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[F1(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&Rte(t.default(n));return e.custom?r:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),$te=Ite;function Nte(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Mte(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!go(o)||o.length!==a.length||a.some((r,s)=>r.valueOf()!==o[s].valueOf()))return!1}return!0}function V1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const F1=(e,t,n)=>e??t??n,Pte=se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=$e(hv),o=C(()=>e.route||a.value),r=$e($1,0),s=C(()=>{let c=i(r);const{matched:d}=o.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),l=C(()=>o.value.matched[s.value]);St($1,C(()=>s.value+1)),St(ute,l),St(hv,o);const u=M();return pe(()=>[u.value,l.value,e.name],([c,d,f],[p,g,h])=>{d&&(d.instances[f]=c,g&&g!==d&&c&&c===p&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),c&&d&&(!g||!Al(d,g)||!p)&&(d.enterCallbacks[f]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,f=l.value,p=f&&f.components[d];if(!p)return z1(n.default,{Component:p,route:c});const g=f.props[d],h=g?g===!0?c.params:typeof g=="function"?g(c):g:null,m=qe(p,rn({},h,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return z1(n.default,{Component:m,route:c})||m}}});function z1(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ate=Pte;function Lte(e){const t=Ete(e.routes,e),n=e.parseQuery||lte,a=e.stringifyQuery||I1,o=e.history,r=li(),s=li(),l=li(),u=Tt(Ir);let c=Ir;ol&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Mp.bind(null,Z=>""+Z),f=Mp.bind(null,Wee),p=Mp.bind(null,pu);function g(Z,de){let ue,Y;return v4(Z)?(ue=t.getRecordMatcher(Z),Y=de):Y=Z,t.addRoute(Y,ue)}function h(Z){const de=t.getRecordMatcher(Z);de&&t.removeRoute(de)}function v(){return t.getRoutes().map(Z=>Z.record)}function m(Z){return!!t.getRecordMatcher(Z)}function b(Z,de){if(de=rn({},de||u.value),typeof Z=="string"){const te=Pp(n,Z,de.path),fe=t.resolve({path:te.path},de),he=o.createHref(te.fullPath);return rn(te,fe,{params:p(fe.params),hash:pu(te.hash),redirectedFrom:void 0,href:he})}let ue;if(Z.path!=null)ue=rn({},Z,{path:Pp(n,Z.path,de.path).path});else{const te=rn({},Z.params);for(const fe in te)te[fe]==null&&delete te[fe];ue=rn({},Z,{params:f(te)}),de.params=f(de.params)}const Y=t.resolve(ue,de),Q=Z.hash||"";Y.params=d(p(Y.params));const L=qee(a,rn({},Z,{hash:zee(Q),path:Y.path})),q=o.createHref(L);return rn({fullPath:L,hash:Q,query:a===I1?ite(Z.query):Z.query||{}},Y,{redirectedFrom:void 0,href:q})}function w(Z){return typeof Z=="string"?Pp(n,Z,u.value.path):rn({},Z)}function y(Z,de){if(c!==Z)return Ll($n.NAVIGATION_CANCELLED,{from:de,to:Z})}function S(Z){return O(Z)}function k(Z){return S(rn(w(Z),{replace:!0}))}function x(Z,de){const ue=Z.matched[Z.matched.length-1];if(ue&&ue.redirect){const{redirect:Y}=ue;let Q=typeof Y=="function"?Y(Z,de):Y;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=w(Q):{path:Q},Q.params={}),rn({query:Z.query,hash:Z.hash,params:Q.path!=null?{}:Z.params},Q)}}function O(Z,de){const ue=c=b(Z),Y=u.value,Q=Z.state,L=Z.force,q=Z.replace===!0,te=x(ue,Y);if(te)return O(rn(w(te),{state:typeof te=="object"?rn({},Q,te.state):Q,force:L,replace:q}),de||ue);const fe=ue;fe.redirectedFrom=de;let he;return!L&&Yee(a,Y,ue)&&(he=Ll($n.NAVIGATION_DUPLICATED,{to:fe,from:Y}),H(Y,Y,!0,!1)),(he?Promise.resolve(he):_(fe,Y)).catch(ve=>Jo(ve)?Jo(ve,$n.NAVIGATION_GUARD_REDIRECT)?ve:F(ve):P(ve,fe,Y)).then(ve=>{if(ve){if(Jo(ve,$n.NAVIGATION_GUARD_REDIRECT))return O(rn({replace:q},w(ve.to),{state:typeof ve.to=="object"?rn({},Q,ve.to.state):Q,force:L}),de||fe)}else ve=$(fe,Y,!0,q,Q);return N(fe,Y,ve),ve})}function T(Z,de){const ue=y(Z,de);return ue?Promise.reject(ue):Promise.resolve()}function I(Z){const de=ee.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(Z):Z()}function _(Z,de){let ue;const[Y,Q,L]=cte(Z,de);ue=Lp(Y.reverse(),"beforeRouteLeave",Z,de);for(const te of Y)te.leaveGuards.forEach(fe=>{ue.push(Br(fe,Z,de))});const q=T.bind(null,Z,de);return ue.push(q),ce(ue).then(()=>{ue=[];for(const te of r.list())ue.push(Br(te,Z,de));return ue.push(q),ce(ue)}).then(()=>{ue=Lp(Q,"beforeRouteUpdate",Z,de);for(const te of Q)te.updateGuards.forEach(fe=>{ue.push(Br(fe,Z,de))});return ue.push(q),ce(ue)}).then(()=>{ue=[];for(const te of L)if(te.beforeEnter)if(go(te.beforeEnter))for(const fe of te.beforeEnter)ue.push(Br(fe,Z,de));else ue.push(Br(te.beforeEnter,Z,de));return ue.push(q),ce(ue)}).then(()=>(Z.matched.forEach(te=>te.enterCallbacks={}),ue=Lp(L,"beforeRouteEnter",Z,de,I),ue.push(q),ce(ue))).then(()=>{ue=[];for(const te of s.list())ue.push(Br(te,Z,de));return ue.push(q),ce(ue)}).catch(te=>Jo(te,$n.NAVIGATION_CANCELLED)?te:Promise.reject(te))}function N(Z,de,ue){l.list().forEach(Y=>I(()=>Y(Z,de,ue)))}function $(Z,de,ue,Y,Q){const L=y(Z,de);if(L)return L;const q=de===Ir,te=ol?history.state:{};ue&&(Y||q?o.replace(Z.fullPath,rn({scroll:q&&te&&te.scroll},Q)):o.push(Z.fullPath,Q)),u.value=Z,H(Z,de,ue,q),F()}let B;function K(){B||(B=o.listen((Z,de,ue)=>{if(!ae.listening)return;const Y=b(Z),Q=x(Y,ae.currentRoute.value);if(Q){O(rn(Q,{replace:!0,force:!0}),Y).catch(Mi);return}c=Y;const L=u.value;ol&&nte(R1(L.fullPath,ue.delta),Ef()),_(Y,L).catch(q=>Jo(q,$n.NAVIGATION_ABORTED|$n.NAVIGATION_CANCELLED)?q:Jo(q,$n.NAVIGATION_GUARD_REDIRECT)?(O(rn(w(q.to),{force:!0}),Y).then(te=>{Jo(te,$n.NAVIGATION_ABORTED|$n.NAVIGATION_DUPLICATED)&&!ue.delta&&ue.type===fv.pop&&o.go(-1,!1)}).catch(Mi),Promise.reject()):(ue.delta&&o.go(-ue.delta,!1),P(q,Y,L))).then(q=>{q=q||$(Y,L,!1),q&&(ue.delta&&!Jo(q,$n.NAVIGATION_CANCELLED)?o.go(-ue.delta,!1):ue.type===fv.pop&&Jo(q,$n.NAVIGATION_ABORTED|$n.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),N(Y,L,q)}).catch(Mi)}))}let j=li(),W=li(),A;function P(Z,de,ue){F(Z);const Y=W.list();return Y.length?Y.forEach(Q=>Q(Z,de,ue)):console.error(Z),Promise.reject(Z)}function V(){return A&&u.value!==Ir?Promise.resolve():new Promise((Z,de)=>{j.add([Z,de])})}function F(Z){return A||(A=!Z,K(),j.list().forEach(([de,ue])=>Z?ue(Z):de()),j.reset()),Z}function H(Z,de,ue,Y){const{scrollBehavior:Q}=e;if(!ol||!Q)return Promise.resolve();const L=!ue&&ate(R1(Z.fullPath,0))||(Y||!ue)&&history.state&&history.state.scroll||null;return Ne().then(()=>Q(Z,de,L)).then(q=>q&&tte(q)).catch(q=>P(q,Z,de))}const U=Z=>o.go(Z);let J;const ee=new Set,ae={currentRoute:u,listening:!0,addRoute:g,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:v,resolve:b,options:e,push:S,replace:k,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:r.add,beforeResolve:s.add,afterEach:l.add,onError:W.add,isReady:V,install(Z){Z.component("RouterLink",$te),Z.component("RouterView",Ate),Z.config.globalProperties.$router=ae,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>i(u)}),ol&&!J&&u.value===Ir&&(J=!0,S(o.location).catch(Y=>{}));const de={};for(const Y in Ir)Object.defineProperty(de,Y,{get:()=>u.value[Y],enumerable:!0});Z.provide(xf,ae),Z.provide(Pg,Ad(de)),Z.provide(hv,u);const ue=Z.unmount;ee.add(Z),Z.unmount=function(){ee.delete(Z),ee.size<1&&(c=Ir,B&&B(),B=null,u.value=Ir,J=!1,A=!1),ue()}}};function ce(Z){return Z.reduce((de,ue)=>de.then(()=>I(ue)),Promise.resolve())}return ae}function joe(){return $e(xf)}function Uoe(e){return $e(Pg)}function w4(e,t){return function(){return e.apply(t,arguments)}}const{toString:Dte}=Object.prototype,{getPrototypeOf:Tf}=Object,{iterator:Of,toStringTag:S4}=Symbol,_f=(e=>t=>{const n=Dte.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ko=e=>(e=e.toLowerCase(),t=>_f(t)===e),Rf=e=>t=>typeof t===e,{isArray:Gl}=Array,Dl=Rf("undefined");function Hu(e){return e!==null&&!Dl(e)&&e.constructor!==null&&!Dl(e.constructor)&&Ta(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const C4=ko("ArrayBuffer");function Bte(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&C4(e.buffer),t}const Vte=Rf("string"),Ta=Rf("function"),k4=Rf("number"),Ku=e=>e!==null&&typeof e=="object",Fte=e=>e===!0||e===!1,Bc=e=>{if(_f(e)!=="object")return!1;const t=Tf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(S4 in e)&&!(Of in e)},zte=e=>{if(!Ku(e)||Hu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Hte=ko("Date"),Kte=ko("File"),Wte=e=>!!(e&&typeof e.uri<"u"),jte=e=>e&&typeof e.getParts<"u",Ute=ko("Blob"),qte=ko("FileList"),Yte=e=>Ku(e)&&Ta(e.pipe);function Gte(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const H1=Gte(),K1=typeof H1.FormData<"u"?H1.FormData:void 0,Xte=e=>{if(!e)return!1;if(K1&&e instanceof K1)return!0;const t=Tf(e);if(!t||t===Object.prototype||!Ta(e.append))return!1;const n=_f(e);return n==="formdata"||n==="object"&&Ta(e.toString)&&e.toString()==="[object FormData]"},Jte=ko("URLSearchParams"),[Zte,Qte,ene,tne]=["ReadableStream","Request","Response","Headers"].map(ko),nne=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),Gl(e))for(a=0,o=e.length;a0;)if(o=n[a],t===o.toLowerCase())return o;return null}const ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,x4=e=>!Dl(e)&&e!==ys;function vv(...e){const{caseless:t,skipUndefined:n}=x4(this)&&this||{},a={},o=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const l=t&&E4(a,s)||s,u=mv(a,l)?a[l]:void 0;Bc(u)&&Bc(r)?a[l]=vv(u,r):Bc(r)?a[l]=vv({},r):Gl(r)?a[l]=r.slice():(!n||!Dl(r))&&(a[l]=r)};for(let r=0,s=e.length;r(Wu(t,(o,r)=>{n&&Ta(o)?Object.defineProperty(e,r,{__proto__:null,value:w4(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),one=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rne=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},sne=(e,t,n,a)=>{let o,r,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),r=o.length;r-- >0;)s=o[r],(!a||a(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Tf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lne=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},ine=e=>{if(!e)return null;if(Gl(e))return e;let t=e.length;if(!k4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},une=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Tf(Uint8Array)),cne=(e,t)=>{const a=(e&&e[Of]).call(e);let o;for(;(o=a.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},dne=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},fne=ko("HTMLFormElement"),pne=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,o){return a.toUpperCase()+o}),mv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hne=ko("RegExp"),T4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};Wu(n,(o,r)=>{let s;(s=t(o,r,e))!==!1&&(a[r]=s||o)}),Object.defineProperties(e,a)},vne=e=>{T4(e,(t,n)=>{if(Ta(e)&&["arguments","caller","callee"].includes(n))return!1;const a=e[n];if(Ta(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mne=(e,t)=>{const n={},a=o=>{o.forEach(r=>{n[r]=!0})};return Gl(e)?a(e):a(String(e).split(t)),n},gne=()=>{},bne=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yne(e){return!!(e&&Ta(e.append)&&e[S4]==="FormData"&&e[Of])}const wne=e=>{const t=new WeakSet,n=a=>{if(Ku(a)){if(t.has(a))return;if(Hu(a))return a;if(!("toJSON"in a)){t.add(a);const o=Gl(a)?[]:{};return Wu(a,(r,s)=>{const l=n(r);!Dl(l)&&(o[s]=l)}),t.delete(a),o}}return a};return n(e)},Sne=ko("AsyncFunction"),Cne=e=>e&&(Ku(e)||Ta(e))&&Ta(e.then)&&Ta(e.catch),O4=((e,t)=>e?setImmediate:t?((n,a)=>(ys.addEventListener("message",({source:o,data:r})=>{o===ys&&r===n&&a.length&&a.shift()()},!1),o=>{a.push(o),ys.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ta(ys.postMessage)),kne=typeof queueMicrotask<"u"?queueMicrotask.bind(ys):typeof process<"u"&&process.nextTick||O4,Ene=e=>e!=null&&Ta(e[Of]),ke={isArray:Gl,isArrayBuffer:C4,isBuffer:Hu,isFormData:Xte,isArrayBufferView:Bte,isString:Vte,isNumber:k4,isBoolean:Fte,isObject:Ku,isPlainObject:Bc,isEmptyObject:zte,isReadableStream:Zte,isRequest:Qte,isResponse:ene,isHeaders:tne,isUndefined:Dl,isDate:Hte,isFile:Kte,isReactNativeBlob:Wte,isReactNative:jte,isBlob:Ute,isRegExp:hne,isFunction:Ta,isStream:Yte,isURLSearchParams:Jte,isTypedArray:une,isFileList:qte,forEach:Wu,merge:vv,extend:ane,trim:nne,stripBOM:one,inherits:rne,toFlatObject:sne,kindOf:_f,kindOfTest:ko,endsWith:lne,toArray:ine,forEachEntry:cne,matchAll:dne,isHTMLForm:fne,hasOwnProperty:mv,hasOwnProp:mv,reduceDescriptors:T4,freezeMethods:vne,toObjectSet:mne,toCamelCase:pne,noop:gne,toFiniteNumber:bne,findKey:E4,global:ys,isContextDefined:x4,isSpecCompliantForm:yne,toJSONObject:wne,isAsyncFn:Sne,isThenable:Cne,setImmediate:O4,asap:kne,isIterable:Ene},xne=ke.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Tne=e=>{const t={};let n,a,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),a=s.substring(o+1).trim(),!(!n||t[n]&&xne[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t};function One(e){let t=0,n=e.length;for(;tt;){const a=e.charCodeAt(n-1);if(a!==9&&a!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const _ne=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Rne=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ag(e,t){return ke.isArray(e)?e.map(n=>Ag(n,t)):One(String(e).replace(t,""))}const Ine=e=>Ag(e,_ne),$ne=e=>Ag(e,Rne);function _4(e){const t=Object.create(null);return ke.forEach(e.toJSON(),(n,a)=>{t[a]=$ne(n)}),t}const W1=Symbol("internals");function ii(e){return e&&String(e).trim().toLowerCase()}function Vc(e){return e===!1||e==null?e:ke.isArray(e)?e.map(Vc):Ine(String(e))}function Nne(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const Mne=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dp(e,t,n,a,o){if(ke.isFunction(a))return a.call(this,t,n);if(o&&(t=n),!!ke.isString(t)){if(ke.isString(a))return t.indexOf(a)!==-1;if(ke.isRegExp(a))return a.test(t)}}function Pne(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function Ane(e,t){const n=ke.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{__proto__:null,value:function(o,r,s){return this[a].call(this,t,o,r,s)},configurable:!0})})}let va=class{constructor(t){t&&this.set(t)}set(t,n,a){const o=this;function r(l,u,c){const d=ii(u);if(!d)throw new Error("header name must be a non-empty string");const f=ke.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||u]=Vc(l))}const s=(l,u)=>ke.forEach(l,(c,d)=>r(c,d,u));if(ke.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(ke.isString(t)&&(t=t.trim())&&!Mne(t))s(Tne(t),n);else if(ke.isObject(t)&&ke.isIterable(t)){let l={},u,c;for(const d of t){if(!ke.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[c=d[0]]=(u=l[c])?ke.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}s(l,n)}else t!=null&&r(n,t,a);return this}get(t,n){if(t=ii(t),t){const a=ke.findKey(this,t);if(a){const o=this[a];if(!n)return o;if(n===!0)return Nne(o);if(ke.isFunction(n))return n.call(this,o,a);if(ke.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ii(t),t){const a=ke.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||Dp(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let o=!1;function r(s){if(s=ii(s),s){const l=ke.findKey(a,s);l&&(!n||Dp(a,a[l],l,n))&&(delete a[l],o=!0)}}return ke.isArray(t)?t.forEach(r):r(t),o}clear(t){const n=Object.keys(this);let a=n.length,o=!1;for(;a--;){const r=n[a];(!t||Dp(this,this[r],r,t,!0))&&(delete this[r],o=!0)}return o}normalize(t){const n=this,a={};return ke.forEach(this,(o,r)=>{const s=ke.findKey(a,r);if(s){n[s]=Vc(o),delete n[r];return}const l=t?Pne(r):String(r).trim();l!==r&&delete n[r],n[l]=Vc(o),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ke.forEach(this,(a,o)=>{a!=null&&a!==!1&&(n[o]=t&&ke.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[W1]=this[W1]={accessors:{}}).accessors,o=this.prototype;function r(s){const l=ii(s);a[l]||(Ane(o,s),a[l]=!0)}return ke.isArray(t)?t.forEach(r):r(t),this}};va.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ke.reduceDescriptors(va.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});ke.freezeMethods(va);const Lne="[REDACTED ****]";function Dne(e){if(ke.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ke.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Bne(e,t){const n=new Set(t.map(r=>String(r).toLowerCase())),a=[],o=r=>{if(r===null||typeof r!="object"||ke.isBuffer(r))return r;if(a.indexOf(r)!==-1)return;r instanceof va&&(r=r.toJSON()),a.push(r);let s;if(ke.isArray(r))s=[],r.forEach((l,u)=>{const c=o(l);ke.isUndefined(c)||(s[u]=c)});else{if(!ke.isPlainObject(r)&&Dne(r))return a.pop(),r;s=Object.create(null);for(const[l,u]of Object.entries(r)){const c=n.has(l.toLowerCase())?Lne:o(u);ke.isUndefined(c)||(s[l]=c)}}return a.pop(),s};return o(e)}let Ct=class R4 extends Error{static from(t,n,a,o,r,s){const l=new R4(t.message,n||t.code,a,o,r);return l.cause=t,l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),s&&Object.assign(l,s),l}constructor(t,n,a,o,r){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){const t=this.config,n=t&&ke.hasOwnProp(t,"redact")?t.redact:void 0,a=ke.isArray(n)&&n.length>0?Bne(t,n):ke.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a,code:this.code,status:this.status}}};Ct.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ct.ERR_BAD_OPTION="ERR_BAD_OPTION";Ct.ECONNABORTED="ECONNABORTED";Ct.ETIMEDOUT="ETIMEDOUT";Ct.ECONNREFUSED="ECONNREFUSED";Ct.ERR_NETWORK="ERR_NETWORK";Ct.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ct.ERR_DEPRECATED="ERR_DEPRECATED";Ct.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ct.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ct.ERR_CANCELED="ERR_CANCELED";Ct.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ct.ERR_INVALID_URL="ERR_INVALID_URL";Ct.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Vne=null;function gv(e){return ke.isPlainObject(e)||ke.isArray(e)}function I4(e){return ke.endsWith(e,"[]")?e.slice(0,-2):e}function Bp(e,t,n){return e?e.concat(t).map(function(o,r){return o=I4(o),!n&&r?"["+o+"]":o}).join(n?".":""):t}function Fne(e){return ke.isArray(e)&&!e.some(gv)}const zne=ke.toFlatObject(ke,{},null,function(t){return/^is[A-Z]/.test(t)});function If(e,t,n){if(!ke.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ke.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,b){return!ke.isUndefined(b[m])});const a=n.metaTokens,o=n.visitor||f,r=n.dots,s=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?100:n.maxDepth,c=l&&ke.isSpecCompliantForm(t);if(!ke.isFunction(o))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(ke.isDate(v))return v.toISOString();if(ke.isBoolean(v))return v.toString();if(!c&&ke.isBlob(v))throw new Ct("Blob is not supported. Use a Buffer instead.");return ke.isArrayBuffer(v)||ke.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,m,b){let w=v;if(ke.isReactNative(t)&&ke.isReactNativeBlob(v))return t.append(Bp(b,m,r),d(v)),!1;if(v&&!b&&typeof v=="object"){if(ke.endsWith(m,"{}"))m=a?m:m.slice(0,-2),v=JSON.stringify(v);else if(ke.isArray(v)&&Fne(v)||(ke.isFileList(v)||ke.endsWith(m,"[]"))&&(w=ke.toArray(v)))return m=I4(m),w.forEach(function(S,k){!(ke.isUndefined(S)||S===null)&&t.append(s===!0?Bp([m],k,r):s===null?m:m+"[]",d(S))}),!1}return gv(v)?!0:(t.append(Bp(b,m,r),d(v)),!1)}const p=[],g=Object.assign(zne,{defaultVisitor:f,convertValue:d,isVisitable:gv});function h(v,m,b=0){if(!ke.isUndefined(v)){if(b>u)throw new Ct("Object is too deeply nested ("+b+" levels). Max depth: "+u,Ct.ERR_FORM_DATA_DEPTH_EXCEEDED);if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(v),ke.forEach(v,function(y,S){(!(ke.isUndefined(y)||y===null)&&o.call(t,y,ke.isString(S)?S.trim():S,m,g))===!0&&h(y,m?m.concat(S):[S],b+1)}),p.pop()}}if(!ke.isObject(e))throw new TypeError("data must be an object");return h(e),t}function j1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(a){return t[a]})}function Lg(e,t){this._pairs=[],e&&If(e,this,t)}const $4=Lg.prototype;$4.append=function(t,n){this._pairs.push([t,n])};$4.toString=function(t){const n=t?function(a){return t.call(this,a,j1)}:j1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Hne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function N4(e,t,n){if(!t)return e;const a=n&&n.encode||Hne,o=ke.isFunction(n)?{serialize:n}:n,r=o&&o.serialize;let s;if(r?s=r(t,o):s=ke.isURLSearchParams(t)?t.toString():new Lg(t,o).toString(a),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class U1{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ke.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Dg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Kne=typeof URLSearchParams<"u"?URLSearchParams:Lg,Wne=typeof FormData<"u"?FormData:null,jne=typeof Blob<"u"?Blob:null,Une={isBrowser:!0,classes:{URLSearchParams:Kne,FormData:Wne,Blob:jne},protocols:["http","https","file","blob","url","data"]},Bg=typeof window<"u"&&typeof document<"u",bv=typeof navigator=="object"&&navigator||void 0,qne=Bg&&(!bv||["ReactNative","NativeScript","NS"].indexOf(bv.product)<0),Yne=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gne=Bg&&window.location.href||"http://localhost",Xne=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bg,hasStandardBrowserEnv:qne,hasStandardBrowserWebWorkerEnv:Yne,navigator:bv,origin:Gne},Symbol.toStringTag,{value:"Module"})),oa={...Xne,...Une};function Jne(e,t){return If(e,new oa.classes.URLSearchParams,{visitor:function(n,a,o,r){return oa.isNode&&ke.isBuffer(n)?(this.append(a,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Zne(e){return ke.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qne(e){const t={},n=Object.keys(e);let a;const o=n.length;let r;for(a=0;a=n.length;return s=!s&&ke.isArray(o)?o.length:s,u?(ke.hasOwnProp(o,s)?o[s]=ke.isArray(o[s])?o[s].concat(a):[o[s],a]:o[s]=a,!l):((!ke.hasOwnProp(o,s)||!ke.isObject(o[s]))&&(o[s]=[]),t(n,a,o[s],r)&&ke.isArray(o[s])&&(o[s]=Qne(o[s])),!l)}if(ke.isFormData(e)&&ke.isFunction(e.entries)){const n={};return ke.forEachEntry(e,(a,o)=>{t(Zne(a),o,n,0)}),n}return null}const Zs=(e,t)=>e!=null&&ke.hasOwnProp(e,t)?e[t]:void 0;function eae(e,t,n){if(ke.isString(e))try{return(t||JSON.parse)(e),ke.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const ju={transitional:Dg,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",o=a.indexOf("application/json")>-1,r=ke.isObject(t);if(r&&ke.isHTMLForm(t)&&(t=new FormData(t)),ke.isFormData(t))return o?JSON.stringify(M4(t)):t;if(ke.isArrayBuffer(t)||ke.isBuffer(t)||ke.isStream(t)||ke.isFile(t)||ke.isBlob(t)||ke.isReadableStream(t))return t;if(ke.isArrayBufferView(t))return t.buffer;if(ke.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(r){const u=Zs(this,"formSerializer");if(a.indexOf("application/x-www-form-urlencoded")>-1)return Jne(t,u).toString();if((l=ke.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=Zs(this,"env"),d=c&&c.FormData;return If(l?{"files[]":t}:t,d&&new d,u)}}return r||o?(n.setContentType("application/json",!1),eae(t)):t}],transformResponse:[function(t){const n=Zs(this,"transitional")||ju.transitional,a=n&&n.forcedJSONParsing,o=Zs(this,"responseType"),r=o==="json";if(ke.isResponse(t)||ke.isReadableStream(t))return t;if(t&&ke.isString(t)&&(a&&!o||r)){const l=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,Zs(this,"parseReviver"))}catch(u){if(l)throw u.name==="SyntaxError"?Ct.from(u,Ct.ERR_BAD_RESPONSE,this,null,Zs(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oa.classes.FormData,Blob:oa.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ke.forEach(["delete","get","head","post","put","patch","query"],e=>{ju.headers[e]={}});function Vp(e,t){const n=this||ju,a=t||n,o=va.from(a.headers);let r=a.data;return ke.forEach(e,function(l){r=l.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function P4(e){return!!(e&&e.__CANCEL__)}let Uu=class extends Ct{constructor(t,n,a){super(t??"canceled",Ct.ERR_CANCELED,n,a),this.name="CanceledError",this.__CANCEL__=!0}};function A4(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Ct("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ct.ERR_BAD_REQUEST:Ct.ERR_BAD_RESPONSE,n.config,n.request,n))}function tae(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function nae(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o=0,r=0,s;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=a[r];s||(s=c),n[o]=u,a[o]=c;let f=r,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),c-s{n=d,o=null,r&&(clearTimeout(r),r=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=a?s(c,d):(o=c,r||(r=setTimeout(()=>{r=null,s(o)},a-f)))},()=>o&&s(o)]}const Ed=(e,t,n=3)=>{let a=0;const o=nae(50,250);return aae(r=>{if(!r||typeof r.loaded!="number")return;const s=r.loaded,l=r.lengthComputable?r.total:void 0,u=l!=null?Math.min(s,l):s,c=Math.max(0,u-a),d=o(c);a=Math.max(a,u);const f={loaded:u,total:l,progress:l?u/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l?(l-u)/d:void 0,event:r,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},q1=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},Y1=e=>(...t)=>ke.asap(()=>e(...t)),oae=oa.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,oa.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(oa.origin),oa.navigator&&/(msie|trident)/i.test(oa.navigator.userAgent)):()=>!0,rae=oa.hasStandardBrowserEnv?{write(e,t,n,a,o,r,s){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];ke.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),ke.isString(a)&&l.push(`path=${a}`),ke.isString(o)&&l.push(`domain=${o}`),r===!0&&l.push("secure"),ke.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;ne instanceof va?{...e}:e;function Ds(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function a(c,d,f,p){return ke.isPlainObject(c)&&ke.isPlainObject(d)?ke.merge.call({caseless:p},c,d):ke.isPlainObject(d)?ke.merge({},d):ke.isArray(d)?d.slice():d}function o(c,d,f,p){if(ke.isUndefined(d)){if(!ke.isUndefined(c))return a(void 0,c,f,p)}else return a(c,d,f,p)}function r(c,d){if(!ke.isUndefined(d))return a(void 0,d)}function s(c,d){if(ke.isUndefined(d)){if(!ke.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function l(c,d,f){if(ke.hasOwnProp(t,f))return a(c,d);if(ke.hasOwnProp(e,f))return a(void 0,c)}const u={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(c,d,f)=>o(G1(c),G1(d),f,!0)};return ke.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=ke.hasOwnProp(u,d)?u[d]:o,p=ke.hasOwnProp(e,d)?e[d]:void 0,g=ke.hasOwnProp(t,d)?t[d]:void 0,h=f(p,g,d);ke.isUndefined(h)&&f!==l||(n[d]=h)}),n}const iae=["content-type","content-length"];function uae(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([a,o])=>{iae.includes(a.toLowerCase())&&e.set(a,o)})}const cae=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),D4=e=>{const t=Ds({},e),n=p=>ke.hasOwnProp(t,p)?t[p]:void 0,a=n("data");let o=n("withXSRFToken");const r=n("xsrfHeaderName"),s=n("xsrfCookieName");let l=n("headers");const u=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=va.from(l),t.url=N4(L4(c,f,d),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?cae(u.password):""))),ke.isFormData(a)&&(oa.hasStandardBrowserEnv||oa.hasStandardBrowserWebWorkerEnv?l.setContentType(void 0):ke.isFunction(a.getHeaders)&&uae(l,a.getHeaders(),n("formDataHeaderPolicy"))),oa.hasStandardBrowserEnv&&(ke.isFunction(o)&&(o=o(t)),o===!0||o==null&&oae(t.url))){const g=r&&s&&rae.read(s);g&&l.set(r,g)}return t},dae=typeof XMLHttpRequest<"u",fae=dae&&function(e){return new Promise(function(n,a){const o=D4(e);let r=o.data;const s=va.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=o,d,f,p,g,h;function v(){g&&g(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function b(){if(!m)return;const y=va.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};A4(function(O){n(O),v()},function(O){a(O),v()},k),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(b)},m.onabort=function(){m&&(a(new Ct("Request aborted",Ct.ECONNABORTED,e,m)),v(),m=null)},m.onerror=function(S){const k=S&&S.message?S.message:"Network Error",x=new Ct(k,Ct.ERR_NETWORK,e,m);x.event=S||null,a(x),v(),m=null},m.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Dg;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),a(new Ct(S,k.clarifyTimeoutError?Ct.ETIMEDOUT:Ct.ECONNABORTED,e,m)),v(),m=null},r===void 0&&s.setContentType(null),"setRequestHeader"in m&&ke.forEach(_4(s),function(S,k){m.setRequestHeader(k,S)}),ke.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),l&&l!=="json"&&(m.responseType=o.responseType),c&&([p,h]=Ed(c,!0),m.addEventListener("progress",p)),u&&m.upload&&([f,g]=Ed(u),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=y=>{m&&(a(!y||y.type?new Uu(null,e,m):y),m.abort(),v(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const w=tae(o.url);if(w&&!oa.protocols.includes(w)){a(new Ct("Unsupported protocol "+w+":",Ct.ERR_BAD_REQUEST,e));return}m.send(r||null)})},pae=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let a=!1;const o=function(u){if(!a){a=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof Ct?c:new Uu(c instanceof Error?c.message:c))}};let r=t&&setTimeout(()=>{r=null,o(new Ct(`timeout of ${t}ms exceeded`,Ct.ETIMEDOUT))},t);const s=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>ke.asap(s),l},hae=function*(e,t){let n=e.byteLength;if(n{const o=vae(e,t);let r=0,s,l=u=>{s||(s=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){l(),u.close();return}let f=d.byteLength;if(n){let p=r+=f;n(p)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),o.return()}},{highWaterMark:2})};function gae(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),a=e.slice(t+1);if(/;base64/i.test(n)){let s=a.length;const l=a.length;for(let g=0;g=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(s-=2,g+=2)}let u=0,c=l-1;const d=g=>g>=2&&a.charCodeAt(g-2)===37&&a.charCodeAt(g-1)===51&&(a.charCodeAt(g)===68||a.charCodeAt(g)===100);c>=0&&(a.charCodeAt(c)===61?(u++,c--):d(c)&&(u++,c-=3)),u===1&&c>=0&&(a.charCodeAt(c)===61||d(c))&&u++;const p=Math.floor(s/4)*3-(u||0);return p>0?p:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(a,"utf8");let r=0;for(let s=0,l=a.length;s=55296&&u<=56319&&s+1=56320&&c<=57343?(r+=4,s++):r+=3}else r+=3}return r}const Vg="1.16.1",J1=64*1024,{isFunction:bc}=ke,Z1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bae=e=>{const t=ke.global!==void 0&&ke.global!==null?ke.global:globalThis,{ReadableStream:n,TextEncoder:a}=t;e=ke.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:r,Response:s}=e,l=o?bc(o):typeof fetch=="function",u=bc(r),c=bc(s);if(!l)return!1;const d=l&&bc(n),f=l&&(typeof a=="function"?(b=>w=>b.encode(w))(new a):async b=>new Uint8Array(await new r(b).arrayBuffer())),p=u&&d&&Z1(()=>{let b=!1;const w=new r(oa.origin,{body:new n,method:"POST",get duplex(){return b=!0,"half"}}),y=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),b&&!y}),g=c&&d&&Z1(()=>ke.isReadableStream(new s("").body)),h={stream:g&&(b=>b.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!h[b]&&(h[b]=(w,y)=>{let S=w&&w[b];if(S)return S.call(w);throw new Ct(`Response type '${b}' is not supported`,Ct.ERR_NOT_SUPPORT,y)})});const v=async b=>{if(b==null)return 0;if(ke.isBlob(b))return b.size;if(ke.isSpecCompliantForm(b))return(await new r(oa.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(ke.isArrayBufferView(b)||ke.isArrayBuffer(b))return b.byteLength;if(ke.isURLSearchParams(b)&&(b=b+""),ke.isString(b))return(await f(b)).byteLength},m=async(b,w)=>{const y=ke.toFiniteNumber(b.getContentLength());return y??v(w)};return async b=>{let{url:w,method:y,data:S,signal:k,cancelToken:x,timeout:O,onDownloadProgress:T,onUploadProgress:I,responseType:_,headers:N,withCredentials:$="same-origin",fetchOptions:B,maxContentLength:K,maxBodyLength:j}=D4(b);const W=ke.isNumber(K)&&K>-1,A=ke.isNumber(j)&&j>-1;let P=o||fetch;_=_?(_+"").toLowerCase():"text";let V=pae([k,x&&x.toAbortSignal()],O),F=null;const H=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let U;try{if(W&&typeof w=="string"&&w.startsWith("data:")&&gae(w)>K)throw new Ct("maxContentLength size of "+K+" exceeded",Ct.ERR_BAD_RESPONSE,b,F);if(A&&y!=="get"&&y!=="head"){const de=await m(N,S);if(typeof de=="number"&&isFinite(de)&&de>j)throw new Ct("Request body larger than maxBodyLength limit",Ct.ERR_BAD_REQUEST,b,F)}if(I&&p&&y!=="get"&&y!=="head"&&(U=await m(N,S))!==0){let de=new r(w,{method:"POST",body:S,duplex:"half"}),ue;if(ke.isFormData(S)&&(ue=de.headers.get("content-type"))&&N.setContentType(ue),de.body){const[Y,Q]=q1(U,Ed(Y1(I)));S=X1(de.body,J1,Y,Q)}}ke.isString($)||($=$?"include":"omit");const J=u&&"credentials"in r.prototype;if(ke.isFormData(S)){const de=N.getContentType();de&&/^multipart\/form-data/i.test(de)&&!/boundary=/i.test(de)&&N.delete("content-type")}N.set("User-Agent","axios/"+Vg,!1);const ee={...B,signal:V,method:y.toUpperCase(),headers:_4(N.normalize()),body:S,duplex:"half",credentials:J?$:void 0};F=u&&new r(w,ee);let ae=await(u?P(F,B):P(w,ee));if(W){const de=ke.toFiniteNumber(ae.headers.get("content-length"));if(de!=null&&de>K)throw new Ct("maxContentLength size of "+K+" exceeded",Ct.ERR_BAD_RESPONSE,b,F)}const ce=g&&(_==="stream"||_==="response");if(g&&ae.body&&(T||W||ce&&H)){const de={};["status","statusText","headers"].forEach(te=>{de[te]=ae[te]});const ue=ke.toFiniteNumber(ae.headers.get("content-length")),[Y,Q]=T&&q1(ue,Ed(Y1(T),!0))||[];let L=0;const q=te=>{if(W&&(L=te,L>K))throw new Ct("maxContentLength size of "+K+" exceeded",Ct.ERR_BAD_RESPONSE,b,F);Y&&Y(te)};ae=new s(X1(ae.body,J1,q,()=>{Q&&Q(),H&&H()}),de)}_=_||"text";let Z=await h[ke.findKey(h,_)||"text"](ae,b);if(W&&!g&&!ce){let de;if(Z!=null&&(typeof Z.byteLength=="number"?de=Z.byteLength:typeof Z.size=="number"?de=Z.size:typeof Z=="string"&&(de=typeof a=="function"?new a().encode(Z).byteLength:Z.length)),typeof de=="number"&&de>K)throw new Ct("maxContentLength size of "+K+" exceeded",Ct.ERR_BAD_RESPONSE,b,F)}return!ce&&H&&H(),await new Promise((de,ue)=>{A4(de,ue,{data:Z,headers:va.from(ae.headers),status:ae.status,statusText:ae.statusText,config:b,request:F})})}catch(J){if(H&&H(),V&&V.aborted&&V.reason instanceof Ct){const ee=V.reason;throw ee.config=b,F&&(ee.request=F),J!==ee&&(ee.cause=J),ee}throw J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)?Object.assign(new Ct("Network Error",Ct.ERR_NETWORK,b,F,J&&J.response),{cause:J.cause||J}):Ct.from(J,J&&J.code,b,F,J&&J.response)}}},yae=new Map,B4=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:o}=t,r=[a,o,n];let s=r.length,l=s,u,c,d=yae;for(;l--;)u=r[l],c=d.get(u),c===void 0&&d.set(u,c=l?new Map:bae(t)),d=c;return c};B4();const Fg={http:Vne,xhr:fae,fetch:{get:B4}};ke.forEach(Fg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Q1=e=>`- ${e}`,wae=e=>ke.isFunction(e)||e===null||e===!1;function Sae(e,t){e=ke.isArray(e)?e:[e];const{length:n}=e;let a,o;const r={};for(let s=0;s`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since : -`+s.map(Q1).join(` -`):" "+Q1(s[0]):"as no adapter specified";throw new Ct("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const V4={getAdapter:Sae,adapters:Fg};function Fp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Uu(null,e)}function ew(e){return Fp(e),e.headers=va.from(e.headers),e.data=Vp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),V4.getAdapter(e.adapter||ju.adapter,e)(e).then(function(a){Fp(e),e.response=a;try{a.data=Vp.call(e,e.transformResponse,a)}finally{delete e.response}return a.headers=va.from(a.headers),a},function(a){if(!P4(a)&&(Fp(e),a&&a.response)){e.response=a.response;try{a.response.data=Vp.call(e,e.transformResponse,a.response)}finally{delete e.response}a.response.headers=va.from(a.response.headers)}return Promise.reject(a)})}const $f={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$f[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const tw={};$f.transitional=function(t,n,a){function o(r,s){return"[Axios v"+Vg+"] Transitional option '"+r+"'"+s+(a?". "+a:"")}return(r,s,l)=>{if(t===!1)throw new Ct(o(s," has been removed"+(n?" in "+n:"")),Ct.ERR_DEPRECATED);return n&&!tw[s]&&(tw[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,s,l):!0}};$f.spelling=function(t){return(n,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function Cae(e,t,n){if(typeof e!="object")throw new Ct("options must be an object",Ct.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const r=a[o],s=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(s){const l=e[r],u=l===void 0||s(l,r,e);if(u!==!0)throw new Ct("option "+r+" must be "+u,Ct.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ct("Unknown option "+r,Ct.ERR_BAD_OPTION)}}const Fc={assertOptions:Cae,validators:$f},Ka=Fc.validators;let xs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new U1,response:new U1}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const r=(()=>{if(!o.stack)return"";const s=o.stack.indexOf(` -`);return s===-1?"":o.stack.slice(s+1)})();try{if(!a.stack)a.stack=r;else if(r){const s=r.indexOf(` -`),l=s===-1?-1:r.indexOf(` -`,s+1),u=l===-1?"":r.slice(l+1);String(a.stack).endsWith(u)||(a.stack+=` -`+r)}}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ds(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:r}=n;a!==void 0&&Fc.assertOptions(a,{silentJSONParsing:Ka.transitional(Ka.boolean),forcedJSONParsing:Ka.transitional(Ka.boolean),clarifyTimeoutError:Ka.transitional(Ka.boolean),legacyInterceptorReqResOrdering:Ka.transitional(Ka.boolean)},!1),o!=null&&(ke.isFunction(o)?n.paramsSerializer={serialize:o}:Fc.assertOptions(o,{encode:Ka.function,serialize:Ka.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fc.assertOptions(n,{baseUrl:Ka.spelling("baseURL"),withXsrfToken:Ka.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=r&&ke.merge(r.common,r[n.method]);r&&ke.forEach(["delete","get","head","post","put","patch","query","common"],h=>{delete r[h]}),n.headers=va.concat(s,r);const l=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;u=u&&v.synchronous;const m=n.transitional||Dg;m&&m.legacyInterceptorReqResOrdering?l.unshift(v.fulfilled,v.rejected):l.push(v.fulfilled,v.rejected)});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,p;if(!u){const h=[ew.bind(this),void 0];for(h.unshift(...l),h.push(...c),p=h.length,d=Promise.resolve(n);f{if(!a._listeners)return;let r=a._listeners.length;for(;r-- >0;)a._listeners[r](o);a._listeners=null}),this.promise.then=o=>{let r;const s=new Promise(l=>{a.subscribe(l),r=l}).then(o);return s.cancel=function(){a.unsubscribe(r)},s},t(function(r,s,l){a.reason||(a.reason=new Uu(r,s,l),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new F4(function(o){t=o}),cancel:t}}};function Eae(e){return function(n){return e.apply(null,n)}}function xae(e){return ke.isObject(e)&&e.isAxiosError===!0}const yv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yv).forEach(([e,t])=>{yv[t]=e});function z4(e){const t=new xs(e),n=w4(xs.prototype.request,t);return ke.extend(n,xs.prototype,t,{allOwnKeys:!0}),ke.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return z4(Ds(e,o))},n}const An=z4(ju);An.Axios=xs;An.CanceledError=Uu;An.CancelToken=kae;An.isCancel=P4;An.VERSION=Vg;An.toFormData=If;An.AxiosError=Ct;An.Cancel=An.CanceledError;An.all=function(t){return Promise.all(t)};An.spread=Eae;An.isAxiosError=xae;An.mergeConfig=Ds;An.AxiosHeaders=va;An.formToJSON=e=>M4(ke.isHTMLForm(e)?new FormData(e):e);An.getAdapter=V4.getAdapter;An.HttpStatusCode=yv;An.default=An;const{Axios:Xoe,AxiosError:Joe,CanceledError:Zoe,isCancel:Qoe,CancelToken:ere,VERSION:tre,all:nre,Cancel:are,isAxiosError:ore,spread:rre,toFormData:sre,AxiosHeaders:lre,HttpStatusCode:ire,formToJSON:ure,getAdapter:cre,mergeConfig:dre,create:fre}=An,Tae="/api",Xl=An.create({baseURL:Tae,timeout:15e3,headers:{"Content-Type":"application/json"},withCredentials:!0});Xl.interceptors.request.use(e=>{const t=localStorage.getItem("simple.auth.token");t&&e.headers.set("Authorization",`Bearer ${t}`);const n=localStorage.getItem("simple.auth.scope");return n&&e.headers.set("X-Scope",n),e});function Oae(e){const t=e.response?.status,n=e.config?.url??"",a=n.startsWith("/sl/")||n.startsWith("sl/");if(t===502||t===504||e.code==="ECONNABORTED"||e.code==="ERR_NETWORK")return a?"SimpleLite 未连接:请先启动 SimpleLite 后端(监听端口 8222)后重试。":`网关无法连接到下游服务(${t??e.code??"network"})。`;const o=e.response?.data;return o?.message?o.message:e.message}Xl.interceptors.response.use(e=>e,e=>{if(e.response?.status===401){try{localStorage.removeItem("simple.auth.token"),localStorage.removeItem("simple.auth.user"),localStorage.removeItem("simple.auth.scope"),localStorage.removeItem("simple.auth.runMode"),localStorage.removeItem("simple.auth.perm")}catch{}location.pathname!=="/login"&&location.assign("/login")}const t=Oae(e);try{Object.defineProperty(e,"message",{value:t,configurable:!0})}catch{}return Promise.reject(e)});new Date().toISOString();new Date().toISOString();const _ae={dispatchLoopHz:50,log:{level:"info",rollDays:7,maxSizeMB:256},security:{jwtExpireMin:1440,enableSwagger:!1,corsWhitelist:["http://localhost:5173","https://*.intra"]}},Rae={mes:[{id:"mes-1",name:"MES 主线",url:"http://mes.lan/api",enabled:!0}],wms:[{id:"wms-1",name:"WMS 仓储",url:"http://wms.lan/api",enabled:!0}],rcs:[],ptl:[{id:"ptl-1",name:"PTL 拣选",url:"http://ptl.lan/api",enabled:!0}]},Iae={algorithm:"astar",weights:{distance:1,congestion:.5,turnPenalty:.2},avoidance:[{id:"AV1",zoneId:"Z-NORTH",rule:"no-entry-while-loading"}],zoneSpeedLimits:[{zoneId:"Z-NARROW",maxSpeedMps:.5}]},$ae={lowBatteryThreshold:.3,criticalBatteryThreshold:.15,faultReport:{enabled:!0,emailTo:["ops@example.com"]},autoRepair:{enabled:!1,cooldownSec:600}},Nae={allowMidTaskCharge:!1,idleChargeAfterSec:300,priority:[{id:"CP1",condition:"soc<0.2",weight:100},{id:"CP2",condition:"idle>5min",weight:30}]},Mae={mode:"leastLoad",loadBalance:!0,maxQueuePerCar:3},Pae={intersections:[{id:"IX1",siteIds:["S006","S007"],mode:"mutex"}],mutex:[{id:"MZ1",zoneIds:["Z-CROSS"]}],yields:[{id:"YD1",from:"A 区",to:"B 区",condition:"priority30s"},{level:"error",condition:"driverException"}]}},Dae={groups:[{id:"G-A",name:"A 区车队",floor:"F1",region:"A",carIds:["C01","C02","C03"]},{id:"G-B",name:"B 区车队",floor:"F1",region:"B",carIds:["C04","C05"]}],ota:{enabled:!0,batchSize:2,rollbackOnFail:!0},batchOps:{confirmationRequired:!0,maxBatch:10},networkDiag:{rttThresholdMs:80,packetLossThreshold:.02}},Bae={templates:[{id:"tpl-sps",name:"SPS 物料配送",category:"SPS",version:"1.0.0",baselineJson:"{}"},{id:"tpl-pack",name:"电池 Pack 自动化产线",category:"BatteryPack",version:"1.0.0",baselineJson:"{}"},{id:"tpl-loop",name:"环线运行",category:"Loop",version:"1.0.0",baselineJson:"{}"},{id:"tpl-p2p",name:"点对点柔性搬运",category:"P2P",version:"1.0.0",baselineJson:"{}"}],dslPolicy:{enabled:!0,schemaVersion:"1"},lowCode:{enabled:!1,editor:"json"},versionPolicy:{keepVersions:10,allowRollback:!0}},Vae={locations:[{id:"L01",code:"A-01",name:"A 区货架 1",siteId:"S001",capacity:20,occupied:12},{id:"L02",code:"A-02",name:"A 区货架 2",siteId:"S002",capacity:20,occupied:7},{id:"L03",code:"B-01",name:"B 区缓存",siteId:"S003",capacity:30,occupied:25}],inventoryRules:[{id:"IR1",itemType:"PalletA",minQty:5,maxQty:30}]},Fae={playback:{retentionDays:30,samplingHz:5},logRetention:{hotDays:7,coldDays:180},version:{keepReleases:5},monitor:{car:{propertyKeys:[],statusKeys:[],actionKeys:[]},site:{propertyKeys:[],statusKeys:[],actionKeys:[]},track:{propertyKeys:[],statusKeys:[],actionKeys:[]},carActionByType:{}}},zae={items:[{id:"widget-call-button",name:"呼叫按钮",schemaJson:'{"fields":[{"name":"siteId"}]}',layoutJson:'{"x":0,"y":0,"w":2,"h":1}',bindToScopes:["RCSMonitor"]}]},H4={system:_ae,integrations:Rae,routing:Iae,vehicle:$ae,charge:Nae,task:Mae,traffic:Pae,auth:Aae,device:Lae,fleet:Dae,scenario:Bae,location:Vae,ops:Fae,widget:zae},K4="simple-platform-mock-rbac";function Hae(){return{roles:[{id:"role-admin",name:"超级管理员",description:"拥有全部页面与操作权限的内置角色",scope:"*",pages:["*"],ops:["*"],widgetGrants:[],system:!0},{id:"role-ops",name:"运营人员",description:"运营监控端默认角色:可执行运维操作、查看监控",scope:"RCSMonitor",pages:["monitor-dashboard","monitor-map","monitor-ops","monitor-notes","monitor-vehicle-hub"],ops:["ops.car.pause","ops.car.resume","ops.car.gohome","ops.car.resetSession","ops.car.manualCharge","ops.task.pause","ops.task.cancel","ops.task.reassign","ops.task.boostPriority","monitor.note.write"],widgetGrants:[{widgetId:"MapEditor",visibility:"readonly"},{widgetId:"CadToolbar",visibility:"hidden"},{widgetId:"CarPanel",visibility:"readonly"},{widgetId:"MissionEditor",visibility:"readonly"},{widgetId:"OpsActionPanel",visibility:"interactive"},{widgetId:"ConfigCenter",visibility:"hidden"}],system:!0}],users:[{id:"u-admin",username:"admin",displayName:"系统管理员",enabled:!0,roleIds:["role-admin"],scopes:[]},{id:"u-ops",username:"ops",displayName:"运营人员",enabled:!0,roleIds:["role-ops"],scopes:[]}]}}function Kae(){try{const t=localStorage.getItem(K4);if(t)return JSON.parse(t)}catch{}const e=Hae();return jae(e),e}let Wae=Kae();function jae(e=Wae){try{localStorage.setItem(K4,JSON.stringify(e))}catch{}}function wv(){return new Date().toISOString()}const Uae="simple-platform-mock-config",nw=new Map;function qae(){try{const e=localStorage.getItem(Uae);if(e)return JSON.parse(e)}catch{}return{}}function Yae(e){let t=nw.get(e);return t||(t=qae()[e]??{section:e,version:1,updatedAt:wv(),payload:H4[e]},nw.set(e,t)),t}for(const e of Object.keys(H4))Yae(e);wv(),wv();async function Gae(e){const{data:t}=await Xl.post("/auth/login",e);return t}async function Xae(){await Xl.post("/auth/logout")}async function Jae(e){const{data:t}=await Xl.post("/auth/switch-scope",{scope:e});return t}async function Zae(){const{data:e}=await Xl.get("/auth/me");return e}const xd="simple.auth.token",Pi="simple.auth.user",Ai="simple.auth.scope",Li="simple.auth.runMode",Di="simple.auth.perm";function aw(e){try{const t=localStorage.getItem(e);return t==null?null:JSON.parse(t)}catch{return null}}function zp(e){try{return localStorage.getItem(e)}catch{return null}}function Qae(){return{token:zp(xd),user:aw(Pi),scope:zp(Ai),runMode:zp(Li),effectivePermissions:aw(Di),validated:!1,needsWizard:!1}}function Hp(e){e.token=null,e.user=null,e.scope=null,e.runMode=null,e.effectivePermissions=null,e.validated=!1,e.needsWizard=!1;try{localStorage.removeItem(xd),localStorage.removeItem(Pi),localStorage.removeItem(Ai),localStorage.removeItem(Li),localStorage.removeItem(Di)}catch{}}const eoe=F2("auth",{state:()=>Qae(),getters:{isAuthed:e=>!!e.token,hasOp:e=>t=>{const n=e.effectivePermissions?.allowedOps??[];return n.includes("*")||n.includes(t)},widgetOf:e=>t=>e.effectivePermissions?.visibleWidgets.find(a=>a.widgetId===t)?.visibility??"interactive",hasPage:e=>t=>{const n=e.effectivePermissions?.allowedPages??[];return n.includes("*")||n.includes(t)}},actions:{async login(e){const t=await Gae(e);return this.token=t.token,this.user=t.user,this.scope=t.scope,this.runMode=t.runMode,this.effectivePermissions=t.effectivePermissions,this.needsWizard=t.needsWizard??!1,this.validated=!0,localStorage.setItem(xd,t.token),localStorage.setItem(Pi,JSON.stringify(t.user)),localStorage.setItem(Ai,t.scope),localStorage.setItem(Li,t.runMode),localStorage.setItem(Di,JSON.stringify(t.effectivePermissions)),t},async logout(){try{await Xae()}catch{}Hp(this)},async validate(){if(!this.token)throw Hp(this),new Error("no-token");try{const e=await Zae();this.user=e.user,this.scope=e.scope,this.runMode=e.runMode,this.effectivePermissions=e.effectivePermissions,this.needsWizard=e.needsWizard??!1,this.validated=!0,localStorage.setItem(Pi,JSON.stringify(e.user)),localStorage.setItem(Ai,e.scope),localStorage.setItem(Li,e.runMode),localStorage.setItem(Di,JSON.stringify(e.effectivePermissions))}catch(e){if(e instanceof Error&&e.message==="mock-mode-skip-me-validation"){this.validated=!0;return}throw Hp(this),e}},async switchScope(e){const t=await Jae(e);return this.token=t.token,this.user=t.user,this.scope=t.scope,this.runMode=t.runMode,this.effectivePermissions=t.effectivePermissions,this.needsWizard=t.needsWizard??!1,this.validated=!0,localStorage.setItem(xd,t.token),localStorage.setItem(Pi,JSON.stringify(t.user)),localStorage.setItem(Ai,t.scope),localStorage.setItem(Li,t.runMode),localStorage.setItem(Di,JSON.stringify(t.effectivePermissions)),t},markWizardDone(){this.needsWizard=!1}}}),W4=[{path:"/login",name:"login",component:()=>nn(()=>import("./LoginView-0TaDlGzh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),meta:{layout:"blank",public:!0,title:"登录"}},{path:"/status",name:"status",component:()=>nn(()=>import("./ServiceStatusView-CiTg6q_Q.js"),__vite__mapDeps([13,14,4,15,6,16,17])),meta:{layout:"blank",public:!0,title:"服务状态"}},{path:"/wizard",name:"wizard",component:()=>nn(()=>import("./WizardView-C7EOtEcB.js"),__vite__mapDeps([18,2,19,4,6,17])),meta:{layout:"blank",title:"配置向导"}},{path:"/admin",component:()=>nn(()=>import("./AppShell-CAX-HJ2b.js"),__vite__mapDeps([20,1,2,21,4,22,12,6,23,24,25])),meta:{scope:"Platform"},redirect:"/admin/dashboard",children:[{path:"dashboard",name:"admin-dashboard",component:()=>nn(()=>import("./DashboardView-C5o_Ttf4.js"),__vite__mapDeps([26,27,28,29,4,30,10,15])),meta:{title:"总览"}},{path:"map-monitor",name:"admin-map-monitor",component:()=>nn(()=>import("./MapMonitorView-Bc6X9WQO.js"),__vite__mapDeps([31,32,33,4,6,17,1,28,34,35,36,37,27,38,39,15,30,40,41,42,22,12,43,8,11,44,45,46,24,23])),meta:{title:"地图监控"}},{path:"maps",name:"admin-maps",component:()=>nn(()=>import("./MapManagementView-CccyKhbv.js"),__vite__mapDeps([47,1,34,48,4,49,30,22,12,11,44,17,50,6,45,5,8,9,43])),meta:{title:"地图管理"}},{path:"map-editor",name:"admin-map-editor",component:()=>nn(()=>import("./MapEditorView-Bf_sv8Aw.js"),__vite__mapDeps([51,1,32,33,4,6,17,28,34,52,38,53,45,22,12,11,44,8,54,55,23,24,30,5,50,9,43,7,25,42,10])),meta:{title:"地图编辑"}},{path:"tracks",name:"admin-tracks",component:()=>nn(()=>import("./TrackTableView-CKv4G01-.js"),__vite__mapDeps([56,57,1,28,52,38,58,4,49,45,5,25,16,8,9,6,54,55,17,15,46,22,12,11,44,23,24,59,30])),meta:{title:"场景管理"}},{path:"cars",name:"admin-cars",component:()=>nn(()=>import("./CarPanelView-DfcvV1b9.js"),__vite__mapDeps([60,57,1,28,52,38,58,4,49,45,5,25,16,8,9,6,54,55,17,15,46,22,12,11,44,23,24,61,30,7,40])),meta:{title:"车辆管理"}},{path:"processes",name:"admin-processes",component:()=>nn(()=>import("./ProcessPanelView-DoD_u6oD.js"),__vite__mapDeps([62,57,1,28,52,38,58,4,49,45,5,25,16,8,9,6,54,55,17,15,46,22,12,11,44,23,24,63])),meta:{title:"进程管理"}},{path:"scripts",name:"admin-scripts",component:()=>nn(()=>import("./ScriptPanelView-DMd6Dq7p.js"),__vite__mapDeps([64,57,1,28,52,38,58,4,49,45,5,25,16,8,9,6,54,55,17,15,46,22,12,11,44,23,24,65])),meta:{title:"脚本管理"}},{path:"missions",name:"admin-missions",component:()=>nn(()=>import("./MissionEditorView-BNUdM9Ij.js"),__vite__mapDeps([66,57,1,28,52,38,58,4,49,45,5,25,16,8,9,6,54,55,17,15,46,22,12,11,44,23,24,67])),meta:{title:"任务编排"}},{path:"project-properties",name:"admin-project-properties",component:()=>nn(()=>import("./ProjectPropertiesView-DxQyu0yl.js"),__vite__mapDeps([68,1,28,69,4,30,49,15,46,22,12,11,44,17,8,9,55,6,16])),meta:{title:"项目属性"}},{path:"playback",name:"admin-playback",component:()=>nn(()=>import("./PlaybackView-DVrgp4e4.js"),__vite__mapDeps([70,1,71,4,15,22,12,11,44,17,72,40,6,8])),meta:{title:"调度回放"}},{path:"config/system",name:"admin-config-system",component:()=>nn(()=>import("./SystemConfigView-Cy7YXbTA.js"),__vite__mapDeps([73,74,75,76,4,46,28,37,77,40,15,6,17,34,78,5,8,55,22,12,43,72,9,7,54])),meta:{title:"系统级配置"}},{path:"config/integrations",name:"admin-config-integrations",component:()=>nn(()=>import("./ExternalIntegrationView-CVrzHPs8.js"),__vite__mapDeps([79,1,74,75,76,4,46,28,37,77,40,15,6,17,30,22,12,11,44,55,8])),meta:{title:"外部系统对接"}},{path:"config/routing",name:"admin-config-routing",component:()=>nn(()=>import("./RoutingPolicyView-vyV201zY.js"),__vite__mapDeps([80,1,74,75,76,4,46,28,37,77,40,15,6,17,5,22,12,11,44,8,9,43])),meta:{title:"路径规划策略"}},{path:"config/vehicle-hub",name:"admin-vehicle-hub",component:()=>nn(()=>import("./VehicleHubView-1cdDkq5N.js"),__vite__mapDeps([81,28,74,75,76,4,46,37,77,40,15,6,17,1,27,38,82,49,30,22,12,23,24,43,8,55,42,5,9,72,16,50])),meta:{title:"车辆运维"}},{path:"vehicle-hub",redirect:"/admin/config/vehicle-hub"},{path:"config/vehicle",redirect:{path:"/admin/config/vehicle-hub",query:{tab:"maintenance"}}},{path:"config/fleet",redirect:{path:"/admin/config/vehicle-hub",query:{tab:"fleet"}}},{path:"config/charge",name:"admin-config-charge",component:()=>nn(()=>import("./ChargePolicyView-fgYXxU-T.js"),__vite__mapDeps([83,1,74,75,76,4,46,28,37,77,40,15,6,17,5,22,12,11,44,8,9,55])),meta:{title:"充电逻辑"}},{path:"config/task",name:"admin-config-task",component:()=>nn(()=>import("./TaskAllocationView-BoGL3AmK.js"),__vite__mapDeps([84,74,75,76,4,46,28,37,77,40,15,6,17,5,8,9,55,25])),meta:{title:"任务分配"}},{path:"config/traffic",name:"admin-config-traffic",component:()=>nn(()=>import("./TrafficRuleView-CZpyEJOL.js"),__vite__mapDeps([85,1,74,75,76,4,46,28,37,77,40,15,6,17,30,22,12,11,44])),meta:{title:"交通管制"}},{path:"config/auth",name:"admin-config-auth",component:()=>nn(()=>import("./AuthRoleView-BW7bVuKX.js"),__vite__mapDeps([86,1,87,4,49,46,11,88,72,40,45,5,22,12,17,43,8,15,30,44,55,6])),meta:{title:"权限角色"}},{path:"config/device",name:"admin-config-device",component:()=>nn(()=>import("./DeviceHubView-D6W4gbr_.js"),__vite__mapDeps([89,1,74,75,76,4,46,28,37,77,40,15,6,17,30,16,55,22,12,11,44])),meta:{title:"设备接入"}},{path:"config/scenario",name:"admin-config-scenario",component:()=>nn(()=>import("./ScenarioTemplateView-CmTU4kEH.js"),__vite__mapDeps([90,74,75,76,4,46,28,37,77,40,15,6,17,91,16,72])),meta:{title:"场景模板"}},{path:"config/location",name:"admin-config-location",component:()=>nn(()=>import("./LocationView-r0d4EkyN.js"),__vite__mapDeps([92,1,74,75,76,4,46,28,37,77,40,15,6,17,30,22,12,11,44,42])),meta:{title:"库位管理"}},{path:"config/ops",name:"admin-config-ops",component:()=>nn(()=>import("./OpsConfigView-Ch6itZUF.js"),__vite__mapDeps([93,74,75,76,4,46,28,37,77,40,15,6,17,94,49,5,7,11,88,50,8,9,72])),meta:{title:"运营维护"}},{path:"config/widget",name:"admin-config-widget",component:()=>nn(()=>import("./CustomWidgetView-Ch7DIGUj.js"),__vite__mapDeps([95,1,74,75,76,4,46,28,37,77,40,15,6,17,96,22,12,11,44])),meta:{title:"自定义控件"}},{path:"config/map-monitor",name:"admin-config-map-monitor",component:()=>nn(()=>import("./MapMonitorConfigView-CYlZhPX2.js"),__vite__mapDeps([97,75,76,4,46,28,98,49,15,30,6,17,50,11,88,23])),meta:{title:"地图监控配置"}}]},{path:"/monitor",component:()=>nn(()=>import("./AppShell-CAX-HJ2b.js"),__vite__mapDeps([20,1,2,21,4,22,12,6,23,24,25])),meta:{scope:"RCSMonitor"},redirect:"/monitor/map",children:[{path:"dashboard",name:"monitor-dashboard",component:()=>nn(()=>import("./MonitorDashboardView-Dl0hq3jL.js"),__vite__mapDeps([99,1,27,28,36,100,4,15,22,12,11,44,42,17,40,41])),meta:{title:"运营总览"}},{path:"vehicle-hub",name:"monitor-vehicle-hub",component:()=>nn(()=>import("./VehicleHubView-1cdDkq5N.js"),__vite__mapDeps([81,28,74,75,76,4,46,37,77,40,15,6,17,1,27,38,82,49,30,22,12,23,24,43,8,55,42,5,9,72,16,50])),meta:{title:"车辆运维"}},{path:"map",name:"monitor-map",component:()=>nn(()=>import("./MonitorMapView-OvNLwhYc.js"),__vite__mapDeps([101,31,32,33,4,6,17,1,28,34,35,36,37,27,38,39,15,30,40,41,42,22,12,43,8,11,44,45,46,24,23])),meta:{title:"地图监控"}},{path:"ops",name:"monitor-ops",component:()=>nn(()=>import("./OpsActionPanelView-CgLT81Kn.js"),__vite__mapDeps([102,1,75,76,4,46,35,36,103,15,22,12,11,44,6,8,17])),meta:{title:"运维操作"}},{path:"notes",name:"monitor-notes",component:()=>nn(()=>import("./AnnotationView-DixiuHnc.js"),__vite__mapDeps([104,1,4,15,22,12,11,44,17,72,5,6,43,8])),meta:{title:"运营备注"}}]},{path:"/",redirect:"/login"},{path:"/:pathMatch(.*)*",redirect:"/login"}];function j4(e){return(W4.find(n=>n.path===e)?.children??[]).filter(n=>typeof n.name=="string").map(n=>({name:String(n.name),path:`${e}/${n.path}`}))}const U4=j4("/admin"),q4=j4("/monitor"),toe=new Set([...U4,...q4].map(e=>e.name)),Nf=Lte({history:hte(),routes:W4});Nf.beforeEach(async e=>{const t=eoe();if(e.meta.public)return!0;if(!t.isAuthed)return{path:"/login",query:{redirect:e.fullPath}};if(!t.validated)try{await t.validate()}catch{return{path:"/login",query:{redirect:e.fullPath}}}if(t.needsWizard&&e.name!=="wizard")return{name:"wizard"};const n=e.path.startsWith("/admin")?"Platform":e.path.startsWith("/monitor")?"RCSMonitor":null;if(n&&t.scope!==n)try{await t.switchScope(n)}catch{try{await t.switchScope(n)}catch{}}const a=typeof e.name=="string"?e.name:"";if(a&&toe.has(a)&&!t.hasPage(a)){const r=(t.scope==="RCSMonitor"?q4:U4).find(s=>t.hasPage(s.name))?.path;if(r&&r!==e.path)return cv.warning("无权访问该页面,已跳转到可访问页面"),r;if(!r)return cv.error("当前账号在该区域没有任何可访问页面,请联系管理员分配权限"),{path:"/status"}}return!0});Nf.afterEach(e=>{const t="迷毂";document.title=e.meta.title?`${e.meta.title} · ${t}`:t});Nf.onError((e,t)=>{const n=e?.message??"";/dynamically imported module|Loading (chunk|CSS chunk)|module script failed|Failed to fetch/i.test(n)&&(t?.fullPath?window.location.assign(t.fullPath):window.location.reload())});const noe="fame-lavender",zc=[{id:"fame-lavender",name:"迷毂浅紫",description:"参考 FAME 系统:深紫侧栏 + 浅紫白主区,柔和耐看,长时间使用不刺眼",preview:"#7c3aed",previewAccent:"#a855f7",vars:{"--mg-primary":"#7c3aed","--mg-primary-rgb":"124, 58, 237","--mg-primary-hover":"#8b5cf6","--mg-primary-hover-rgb":"139, 92, 246","--mg-primary-active":"#5b21b6","--mg-accent":"#a855f7","--mg-accent-rgb":"168, 85, 247","--mg-primary-light-3":"#a78bfa","--mg-primary-light-5":"#c4b5fd","--mg-primary-light-7":"#ddd6fe","--mg-primary-light-8":"#ede9fe","--mg-primary-light-9":"#f5f3ff","--mg-primary-dark-2":"#6d28d9","--mg-bg-app-1":"#edeaf5","--mg-bg-app-2":"#e7e4f1","--mg-bg-app-3":"#f1eef8","--mg-bg-app-deep-rgb":"231, 228, 241","--mg-bg-aside-1":"#2d1b69","--mg-bg-aside-2":"#1a1040","--mg-bg-aside-rgb":"45, 27, 105","--mg-bg-card-rgb":"255, 255, 255","--mg-bg-card-hi-rgb":"249, 246, 255","--mg-bg-card-darker-rgb":"245, 240, 251","--mg-shadow-rgb":"124, 58, 237","--mg-text-tint-rgb":"45, 27, 105","--mg-text-hi-rgb":"96, 98, 102","--mg-orb-a-opacity":"0","--mg-orb-b-opacity":"0","--mg-orb-c-opacity":"0"}},{id:"industrial-purple",name:"星云紫",description:"科幻紫主色,辅以蓝紫渐变,磨砂玻璃 · 霓虹辉光",preview:"#7c3aed",previewAccent:"#c4b5fd",vars:{"--mg-primary":"#7c3aed","--mg-primary-rgb":"124, 58, 237","--mg-primary-hover":"#8b5cf6","--mg-primary-hover-rgb":"139, 92, 246","--mg-primary-active":"#5b21b6","--mg-accent":"#c4b5fd","--mg-accent-rgb":"196, 181, 253","--mg-primary-light-3":"#9d6cf2","--mg-primary-light-5":"#b594f7","--mg-primary-light-7":"#6f4eab","--mg-primary-light-8":"#4c357a","--mg-primary-light-9":"#2d1f55","--mg-primary-dark-2":"#4c1d95","--mg-bg-app-1":"#0e0a24","--mg-bg-app-2":"#1f1147","--mg-bg-app-3":"#06031a","--mg-bg-app-deep-rgb":"6, 3, 26","--mg-bg-aside-1":"#0c0820","--mg-bg-aside-2":"#03020e","--mg-bg-aside-rgb":"10, 6, 30","--mg-bg-card-rgb":"38, 24, 78","--mg-bg-card-hi-rgb":"58, 38, 110","--mg-bg-card-darker-rgb":"20, 12, 48","--mg-shadow-rgb":"8, 2, 24","--mg-text-tint-rgb":"242, 232, 255","--mg-text-hi-rgb":"220, 200, 252","--mg-orb-a-opacity":"0.55","--mg-orb-b-opacity":"0.50","--mg-orb-c-opacity":"0.40"}},{id:"deep-azure",name:"深邃蓝",description:"科技感深蓝,沉静稳重",preview:"#1565c0",previewAccent:"#82b1ff",vars:{"--mg-primary":"#1565c0","--mg-primary-rgb":"21, 101, 192","--mg-primary-hover":"#1976d2","--mg-primary-hover-rgb":"25, 118, 210","--mg-primary-active":"#0d47a1","--mg-accent":"#82b1ff","--mg-accent-rgb":"130, 177, 255","--mg-primary-light-3":"#5a8fce","--mg-primary-light-5":"#83aedb","--mg-primary-light-7":"#adcde7","--mg-primary-light-8":"#c4dbed","--mg-primary-light-9":"#e3eef8","--mg-primary-dark-2":"#0d47a1","--mg-bg-app-1":"#051a3a","--mg-bg-app-2":"#0a2f6b","--mg-bg-app-3":"#020a1f","--mg-bg-app-deep-rgb":"2, 8, 26","--mg-bg-aside-1":"#06122a","--mg-bg-aside-2":"#02060f","--mg-bg-aside-rgb":"8, 18, 42","--mg-bg-card-rgb":"12, 36, 80","--mg-bg-card-hi-rgb":"18, 50, 110","--mg-bg-card-darker-rgb":"6, 18, 44","--mg-shadow-rgb":"2, 4, 14","--mg-text-tint-rgb":"218, 234, 252","--mg-text-hi-rgb":"170, 200, 240"}},{id:"emerald-forge",name:"翡翠绿",description:"机械翡翠绿,沉稳活力",preview:"#00796b",previewAccent:"#80cbc4",vars:{"--mg-primary":"#00796b","--mg-primary-rgb":"0, 121, 107","--mg-primary-hover":"#00897b","--mg-primary-hover-rgb":"0, 137, 123","--mg-primary-active":"#004d40","--mg-accent":"#80cbc4","--mg-accent-rgb":"128, 203, 196","--mg-primary-light-3":"#4ca094","--mg-primary-light-5":"#79b9b0","--mg-primary-light-7":"#a6d2cc","--mg-primary-light-8":"#bfdfdb","--mg-primary-light-9":"#e1f0ee","--mg-primary-dark-2":"#004d40","--mg-bg-app-1":"#06241f","--mg-bg-app-2":"#0a4538","--mg-bg-app-3":"#020f0c","--mg-bg-app-deep-rgb":"2, 12, 10","--mg-bg-aside-1":"#061a16","--mg-bg-aside-2":"#020a08","--mg-bg-aside-rgb":"8, 26, 22","--mg-bg-card-rgb":"10, 50, 42","--mg-bg-card-hi-rgb":"14, 66, 56","--mg-bg-card-darker-rgb":"6, 28, 24","--mg-shadow-rgb":"2, 10, 8","--mg-text-tint-rgb":"220, 244, 240","--mg-text-hi-rgb":"170, 220, 210"}},{id:"crimson-iron",name:"熔铁赤",description:"熔铁炉火般的暗红工业风",preview:"#b71c1c",previewAccent:"#ff8a80",vars:{"--mg-primary":"#b71c1c","--mg-primary-rgb":"183, 28, 28","--mg-primary-hover":"#d32f2f","--mg-primary-hover-rgb":"211, 47, 47","--mg-primary-active":"#8a0c0c","--mg-accent":"#ff8a80","--mg-accent-rgb":"255, 138, 128","--mg-primary-light-3":"#c95a5a","--mg-primary-light-5":"#d68585","--mg-primary-light-7":"#e4afaf","--mg-primary-light-8":"#edc8c8","--mg-primary-light-9":"#f7e6e6","--mg-primary-dark-2":"#8a0c0c","--mg-bg-app-1":"#2a0606","--mg-bg-app-2":"#4a0c0c","--mg-bg-app-3":"#150303","--mg-bg-app-deep-rgb":"20, 4, 4","--mg-bg-aside-1":"#200505","--mg-bg-aside-2":"#0c0202","--mg-bg-aside-rgb":"36, 6, 6","--mg-bg-card-rgb":"60, 10, 10","--mg-bg-card-hi-rgb":"80, 14, 14","--mg-bg-card-darker-rgb":"34, 5, 5","--mg-shadow-rgb":"10, 1, 1","--mg-text-tint-rgb":"252, 220, 220","--mg-text-hi-rgb":"240, 175, 175"}},{id:"graphite-steel",name:"石墨钢",description:"中性冷灰,纯粹工业",preview:"#455a64",previewAccent:"#b0bec5",vars:{"--mg-primary":"#455a64","--mg-primary-rgb":"69, 90, 100","--mg-primary-hover":"#607d8b","--mg-primary-hover-rgb":"96, 125, 139","--mg-primary-active":"#263238","--mg-accent":"#b0bec5","--mg-accent-rgb":"176, 190, 197","--mg-primary-light-3":"#7a8a92","--mg-primary-light-5":"#9aa6ac","--mg-primary-light-7":"#bac2c7","--mg-primary-light-8":"#ccd2d6","--mg-primary-light-9":"#e8ebed","--mg-primary-dark-2":"#263238","--mg-bg-app-1":"#161e24","--mg-bg-app-2":"#243038","--mg-bg-app-3":"#0a0e12","--mg-bg-app-deep-rgb":"10, 14, 18","--mg-bg-aside-1":"#11181d","--mg-bg-aside-2":"#060a0d","--mg-bg-aside-rgb":"18, 26, 32","--mg-bg-card-rgb":"30, 42, 50","--mg-bg-card-hi-rgb":"42, 56, 66","--mg-bg-card-darker-rgb":"16, 22, 28","--mg-shadow-rgb":"4, 6, 10","--mg-text-tint-rgb":"226, 232, 238","--mg-text-hi-rgb":"186, 198, 210"}},{id:"amber-forge",name:"琥珀金",description:"高对比的橙金调,警示与活力并存",preview:"#e65100",previewAccent:"#ffb74d",vars:{"--mg-primary":"#e65100","--mg-primary-rgb":"230, 81, 0","--mg-primary-hover":"#f57c00","--mg-primary-hover-rgb":"245, 124, 0","--mg-primary-active":"#bf360c","--mg-accent":"#ffb74d","--mg-accent-rgb":"255, 183, 77","--mg-primary-light-3":"#ec8344","--mg-primary-light-5":"#f2a474","--mg-primary-light-7":"#f7c4a3","--mg-primary-light-8":"#fad6bc","--mg-primary-light-9":"#fdeadd","--mg-primary-dark-2":"#bf360c","--mg-bg-app-1":"#2a1404","--mg-bg-app-2":"#4a2a0c","--mg-bg-app-3":"#150a02","--mg-bg-app-deep-rgb":"20, 10, 4","--mg-bg-aside-1":"#200f04","--mg-bg-aside-2":"#0c0602","--mg-bg-aside-rgb":"34, 16, 6","--mg-bg-card-rgb":"62, 32, 8","--mg-bg-card-hi-rgb":"82, 44, 12","--mg-bg-card-darker-rgb":"34, 16, 4","--mg-shadow-rgb":"10, 4, 1","--mg-text-tint-rgb":"252, 232, 210","--mg-text-hi-rgb":"240, 196, 140"}}];function ui(e){return e?zc.find(t=>t.id===e)??zc[0]:zc[0]}function ci(e){const t=document.documentElement;for(const[n,a]of Object.entries(e.vars))t.style.setProperty(n,a);t.setAttribute("data-theme",e.id)}const pre=[{key:"--mg-primary",label:"主色(背景基色)",hint:"全页背景、左侧导航、卡片底色、按钮"},{key:"--mg-primary-hover",label:"悬停/辉光",hint:"背景光晕、菜单高亮、悬停态"},{key:"--mg-accent",label:"强调/高光",hint:"点缀、边框高光、Logo 光晕"}];function Sv(e){const t=e.trim().replace(/^#/,"");return/^[0-9a-f]{6}$/i.test(t)?[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]:null}function Zo(e){const t=Sv(e);return t?`${t[0]}, ${t[1]}, ${t[2]}`:"0, 0, 0"}function Bi(e,t,n){const a=Sv(e),o=Sv(t);if(!a||!o)return e;const r=l=>Math.round(a[l]+(o[l]-a[l])*n),s=l=>l.toString(16).padStart(2,"0");return`#${s(r(0))}${s(r(1))}${s(r(2))}`}function ow(e,t){return Bi(e,"#ffffff",t)}function no(e,t){return Bi(e,"#000000",t)}function aoe(e,t){const n={...e.vars},a=t["--mg-primary"]??n["--mg-primary"],o=t["--mg-primary-hover"]??n["--mg-primary-hover"],r=t["--mg-accent"]??n["--mg-accent"];if(t["--mg-primary"]){const s=no(a,.72),l=no(a,.48),u=no(a,.58),c=no(a,.54),d=no(a,.7),f=no(a,.38),p=no(a,.28),g=no(a,.62);n["--mg-primary"]=a,n["--mg-primary-rgb"]=Zo(a),n["--mg-primary-active"]=no(a,.35),n["--mg-primary-dark-2"]=no(a,.35),n["--mg-primary-light-3"]=ow(a,.22),n["--mg-primary-light-5"]=ow(a,.35),n["--mg-primary-light-7"]=Bi(a,"#888888",.45),n["--mg-primary-light-8"]=Bi(a,"#666666",.55),n["--mg-primary-light-9"]=Bi(a,"#444444",.65),n["--mg-bg-app-1"]=u,n["--mg-bg-app-2"]=l,n["--mg-bg-app-3"]=s,n["--mg-bg-app-deep-rgb"]=Zo(s),n["--mg-bg-aside-1"]=c,n["--mg-bg-aside-2"]=d,n["--mg-bg-aside-rgb"]=Zo(c),n["--mg-bg-card-rgb"]=Zo(f),n["--mg-bg-card-hi-rgb"]=Zo(p),n["--mg-bg-card-darker-rgb"]=Zo(g),n["--mg-shadow-rgb"]=Zo(no(a,.78))}return t["--mg-primary-hover"]&&(n["--mg-primary-hover"]=o,n["--mg-primary-hover-rgb"]=Zo(o)),t["--mg-accent"]&&(n["--mg-accent"]=r,n["--mg-accent-rgb"]=Zo(r)),n}function rw(e,t){if(!t||Object.keys(t).length===0)return e;const n=aoe(e,t);return{...e,preview:t["--mg-primary"]??e.preview,previewAccent:t["--mg-accent"]??e.previewAccent,vars:n}}const Y4="simple.ui.state",yc={sidebarCollapsed:!1,theme:"light",themeId:noe,themeOverrides:{}};function ooe(){try{const e=localStorage.getItem(Y4);if(!e)return{...yc};const t=JSON.parse(e);return{sidebarCollapsed:t.sidebarCollapsed??yc.sidebarCollapsed,theme:t.theme==="dark"?"dark":"light",themeId:t.themeId??yc.themeId,themeOverrides:t.themeOverrides??{}}}catch(e){return console.warn("[ui.store] localStorage 中的 UI 状态解析失败,已回退默认:",e),{...yc}}}const roe=F2("ui",{state:()=>ooe(),getters:{activeTheme(e){return rw(ui(e.themeId),e.themeOverrides[e.themeId])},availableThemes(){return zc}},actions:{toggleSidebar(){this.sidebarCollapsed=!this.sidebarCollapsed,this.persist()},setTheme(e){this.theme=e,document.documentElement.classList.toggle("dark",e==="dark"),this.persist()},getMergedTheme(e){return rw(e,this.themeOverrides[e.id])},getThemeColor(e,t){const n=ui(e);return this.themeOverrides[e]?.[t]??n.vars[t]},setThemeColor(e,t,n){this.themeOverrides[e]||(this.themeOverrides[e]={}),this.themeOverrides[e][t]=n,this.themeId===e&&ci(this.getMergedTheme(ui(e))),this.persist()},clearThemeOverrides(e){delete this.themeOverrides[e],this.themeId===e&&ci(ui(e)),this.persist()},clearAllThemeOverrides(){this.themeOverrides={},ci(this.activeTheme),this.persist()},setThemeId(e){const t=ui(e);this.themeId=t.id,ci(this.getMergedTheme(t)),this.persist()},applyCurrentTheme(){ci(this.activeTheme)},persist(){const e={sidebarCollapsed:this.sidebarCollapsed,theme:this.theme,themeId:this.themeId,themeOverrides:this.themeOverrides};try{localStorage.setItem(Y4,JSON.stringify(e))}catch(t){console.warn("[ui.store] 持久化 UI 状态失败:",t)}}}}),Mf=A2(_ee),G4=wO();Mf.use(G4);roe(G4).applyCurrentTheme();Mf.use(Nf);Mf.use(kee,{locale:Eee});Mf.mount("#app");export{tx as $,C9 as A,h7 as B,k7 as C,Nae as D,nL as E,E7 as F,V7 as G,BE as H,VK as I,FK as J,zK as K,qE as L,E9 as M,QL as N,eD as O,x9 as P,De as Q,Un as R,GE as S,oj as T,T9 as U,wj as V,Sj as W,cv as X,JQ as Y,ud as Z,uU as _,Lae as a,Ooe as a$,KF as a0,HF as a1,Cz as a2,vo as a3,es as a4,_q as a5,CE as a6,kj as a7,Jq as a8,eX as a9,moe as aA,z as aB,le as aC,re as aD,D as aE,soe as aF,wt as aG,X as aH,se as aI,F2 as aJ,MP as aK,AP as aL,goe as aM,boe as aN,yoe as aO,ui as aP,woe as aQ,Soe as aR,HP as aS,Coe as aT,Xl as aU,tu as aV,koe as aW,Eoe as aX,xoe as aY,ho as aZ,Toe as a_,rG as aa,sG as ab,QG as ac,cr as ad,pX as ae,hX as af,Wn as ag,BJ as ah,Ve as ai,pre as aj,xee as ak,loe as al,qo as am,ff as an,ioe as ao,uoe as ap,coe as aq,doe as ar,Il as as,Yo as at,Qa as au,foe as av,poe as aw,C as ax,hoe as ay,voe as az,Dae as b,_oe as b0,L0 as b1,Ne as b2,R as b3,ze as b4,Roe as b5,Vt as b6,ht as b7,Vl as b8,E as b9,Ni as bA,$t as bB,Foe as bC,zoe as bD,Hoe as bE,Koe as bF,HA as bG,Woe as bH,pe as bI,ne as bJ,ct as bK,Xe as bL,Ioe as ba,$oe as bb,xC as bc,Noe as bd,Moe as be,hA as bf,Dt as bg,M as bh,Poe as bi,kt as bj,oe as bk,Mt as bl,it as bm,kA as bn,Aoe as bo,Tt as bp,Ce as bq,Loe as br,Doe as bs,i as bt,Boe as bu,eoe as bv,Uoe as bw,joe as bx,roe as by,Voe as bz,Rae as c,Vae as d,Fae as e,Iae as f,Bae as g,_ae as h,Mae as i,Pae as j,$ae as k,zae as l,k9 as m,m5 as n,UC as o,M5 as p,P5 as q,Bn as r,QC as s,PV as t,mo as u,qm as v,xz as w,Fz as x,zz as y,v9 as z}; diff --git a/MiGu.Server/wwwroot/assets/install-D_iTbSFG.js b/MiGu.Server/wwwroot/assets/install-D_iTbSFG.js new file mode 100644 index 0000000..9372ff6 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/install-D_iTbSFG.js @@ -0,0 +1,39 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Wl=function(r,t){return Wl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Wl(r,t)};function B(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wl(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Wm=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Ym=function(){function r(){this.browser=new Wm,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),X=new Ym;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(X.wxa=!0,X.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?X.worker=!0:!X.hasGlobalWindow||"Deno"in window?(X.node=!0,X.svgSupported=!0):Um(navigator.userAgent,X);function Um(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var $u=12,Xm="sans-serif",Qr=$u+"px "+Xm,Zm=20,$m=100,qm="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Km(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function S0(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?lh(s,o):lh(o,s))}function ap(r){return r.nodeName.toUpperCase()==="CANVAS"}var w0=/([&<>"'])/g,b0={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ht(r){return r==null?"":(r+"").replace(w0,function(t,e){return b0[e]})}var x0=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ws=[],T0=X.browser.firefox&&+X.browser.version.split(".")[0]<39;function $l(r,t,e,i){return e=e||{},i?fh(r,t,e):T0&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):fh(r,t,e),e}function fh(r,t,e){if(X.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(ap(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(Zl(ws,r,i,n)){e.zrX=ws[0],e.zrY=ws[1];return}}e.zrX=e.zrY=0}function ju(r){return r||window.event}function ee(r,t,e){if(t=ju(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&$l(r,o,t,e)}else{$l(r,t,t,e);var a=C0(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&x0.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function C0(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function M0(r,t,e,i){r.addEventListener(t,e,i)}function D0(r,t,e,i){r.removeEventListener(t,e,i)}var Bi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function hh(r){return r.which===2||r.which===3}var A0=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=vh(i)/vh(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=L0(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Xr(){return[1,0,0,1,0,0]}function tf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function op(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ii(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function ql(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function ef(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function I0(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function rf(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}function LA(r){var t=Xr();return op(t,r),t}var ut=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r}(),sa=Math.min,la=Math.max,_r=new ut,Sr=new ut,wr=new ut,br=new ut,$i=new ut,qi=new ut,it=function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=sa(t.x,this.x),i=sa(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=la(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=la(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=Xr();return ql(a,a,[-e.x,-e.y]),I0(a,a,[i,n]),ql(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,c=!(ad&&(d=_,pd&&(d=S,y=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}_r.x=wr.x=e.x,_r.y=br.y=e.y,Sr.x=br.x=e.x+e.width,Sr.y=wr.y=e.y+e.height,_r.transform(i),br.transform(i),Sr.transform(i),wr.transform(i),t.x=sa(_r.x,Sr.x,wr.x,br.x),t.y=sa(_r.y,Sr.y,wr.y,br.y);var l=la(_r.x,Sr.x,wr.x,br.x),u=la(_r.y,Sr.y,wr.y,br.y);t.width=l-t.x,t.height=u-t.y},r}(),sp="silent";function P0(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:R0}}function R0(){Bi(this.event)}var E0=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(_e),Ki=function(){function r(t,e){this.x=t,this.y=e}return r}(),k0=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xs=new it(0,0,0,0),lp=function(r){B(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Ki(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new E0,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new g0(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(k0,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=up(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ki(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ki(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=P0(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new Ki(e,i);if(ch(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new it(e-u,i-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(xs.copy(c.getBoundingRect()),c.transform&&xs.applyTransform(c.transform),xs.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function O0(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?sp:!0}return!1}function ch(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=O0(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==sp)){t.target=o;break}}}function up(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var fp=32,Qi=7;function B0(r){for(var t=0;r>=fp;)t|=r&1,r>>=1;return r+t}function dh(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function N0(r,t,e){for(e--;t>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Ts(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Cs(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function F0(r,t){var e=Qi,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]n[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&n[v-1]=Qi||x>=Qi);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[w+y]=r[b+y];r[S]=o[_];return}for(var x=e;;){var C=0,D=0,A=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],C++,D=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],D++,C=0,--g===1){A=!0;break}while((C|D)=0;y--)r[w+y]=r[b+y];if(d===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(D=g-Ts(r[m],o,0,g,g-1,t),D!==0){for(S-=D,_-=D,g-=D,w=S+1,b=_+1,y=0;y=Qi||D>=Qi);if(A)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),g===1){for(S-=d,m-=d,w=S+1,b=m+1,y=d-1;y>=0;y--)r[w+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),ph(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var Kt=1,yn=2,bi=4,gh=!1;function Ms(){gh||(gh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function yh(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var z0=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=yh}return r.prototype.traverse=function(t,e){for(var i=0;i0&&(f.__clipPaths=[]),isNaN(f.z)&&(Ms(),f.z=0),isNaN(f.z2)&&(Ms(),f.z2=0),isNaN(f.zlevel)&&(Ms(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,i);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),uo;uo=X.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Mn={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Mn.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Mn.bounceIn(r*2)*.5:Mn.bounceOut(r*2-1)*.5+.5}},ua=Math.pow,sr=Math.sqrt,fo=1e-8,hp=1e-4,mh=sr(3),fa=1/3,Me=Gi(),ne=Gi(),Pi=Gi();function ir(r){return r>-fo&&rfo||r<-fo}function wt(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function _h(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function ho(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(ir(f)&&ir(h))if(ir(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=h*h-4*f*c;if(ir(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(p>0){var m=sr(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ua(-_,fa):_=ua(_,fa),S<0?S=-ua(-S,fa):S=ua(S,fa);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*sr(f*f*f)),w=Math.acos(b)/3,x=sr(f),C=Math.cos(w),d=(-s-2*x*C)/(3*o),y=(-s+x*(C+mh*Math.sin(w)))/(3*o),D=(-s+x*(C-mh*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),D>=0&&D<=1&&(a[v++]=D)}}return v}function cp(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(ir(o)){if(vp(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(ir(f))n[0]=-a/(2*o);else if(f>0){var h=sr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function vo(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function H0(r,t,e,i,n,a,o,s,l,u,f){var h,c=.005,v=1/0,d,p,g,y;Me[0]=l,Me[1]=u;for(var m=0;m<1;m+=.05)ne[0]=wt(r,e,n,o,m),ne[1]=wt(t,i,a,s,m),g=Li(Me,ne),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(ir(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=sr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function dp(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function co(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function W0(r,t,e,i,n,a,o,s,l){var u,f=.005,h=1/0;Me[0]=o,Me[1]=s;for(var c=0;c<1;c+=.05){ne[0]=Pt(r,e,n,c),ne[1]=Pt(t,i,a,c);var v=Li(Me,ne);v=0&&v=1?1:ho(0,i,a,1,l,s)&&wt(0,n,o,1,s[0])}}}var X0=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Bt,this.ondestroy=t.ondestroy||Bt,this.onrestart=t.onrestart||Bt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Z(t)?t:Mn[t]||pp(t)},r}(),gp=function(){function r(t){this.value=t}return r}(),Z0=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new gp(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),jn=function(){function r(t){this._list=new Z0,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new gp(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),wh={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function pe(r){return r=Math.round(r),r<0?0:r>255?255:r}function $0(r){return r=Math.round(r),r<0?0:r>360?360:r}function zn(r){return r<0?0:r>1?1:r}function Ds(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?pe(parseFloat(t)/100*255):pe(parseInt(t,10))}function Zr(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?zn(parseFloat(t)/100):zn(parseFloat(t))}function As(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function nr(r,t,e){return r+(t-r)*e}function te(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Kl(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var yp=new jn(20),ha=null;function si(r,t){ha&&Kl(ha,t),ha=yp.put(r,ha||t.slice())}function se(r,t){if(r){t=t||[];var e=yp.get(r);if(e)return Kl(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in wh)return Kl(t,wh[i]),si(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){te(t,0,0,0,1);return}return te(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),si(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){te(t,0,0,0,1);return}return te(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),si(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?te(t,+u[0],+u[1],+u[2],1):te(t,0,0,0,1);f=Zr(u.pop());case"rgb":if(u.length>=3)return te(t,Ds(u[0]),Ds(u[1]),Ds(u[2]),u.length===3?f:Zr(u[3])),si(r,t),t;te(t,0,0,0,1);return;case"hsla":if(u.length!==4){te(t,0,0,0,1);return}return u[3]=Zr(u[3]),Ql(u,t),si(r,t),t;case"hsl":if(u.length!==3){te(t,0,0,0,1);return}return Ql(u,t),si(r,t),t;default:return}}te(t,0,0,0,1)}}function Ql(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=Zr(r[1]),n=Zr(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],te(t,pe(As(o,a,e+1/3)*255),pe(As(o,a,e)*255),pe(As(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function q0(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?l=c-h:e===a?l=1/3+f-c:i===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function bh(r,t){var e=se(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return Wi(e,e.length===4?"rgba":"rgb")}}function IA(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return e[0]=pe(nr(o[0],s[0],l)),e[1]=pe(nr(o[1],s[1],l)),e[2]=pe(nr(o[2],s[2],l)),e[3]=zn(nr(o[3],s[3],l)),e}}function K0(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=se(t[n]),s=se(t[a]),l=i-n,u=Wi([pe(nr(o[0],s[0],l)),pe(nr(o[1],s[1],l)),pe(nr(o[2],s[2],l)),zn(nr(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function PA(r,t,e,i){var n=se(r);if(r)return n=q0(n),t!=null&&(n[0]=$0(t)),e!=null&&(n[1]=Zr(e)),i!=null&&(n[2]=Zr(i)),Wi(Ql(n),"rgba")}function RA(r,t){var e=se(r);if(e&&t!=null)return e[3]=zn(t),Wi(e,"rgba")}function Wi(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function po(r,t){var e=se(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var xh=new jn(100);function Th(r){if(z(r)){var t=xh.get(r);return t||(t=bh(r,-.1),xh.put(r,t)),t}else if(Ho(r)){var e=k({},r);return e.colorStops=H(r.colorStops,function(i){return{offset:i.offset,color:bh(i.color,-.1)}}),e}return r}var go=Math.round;function EA(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=se(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var Ch=1e-4;function kA(r){return r-Ch}function va(r){return go(r*1e3)/1e3}function Mh(r){return go(r*1e4)/1e4}function OA(r){return"matrix("+va(r[0])+","+va(r[1])+","+va(r[2])+","+va(r[3])+","+Mh(r[4])+","+Mh(r[5])+")"}var BA={left:"start",right:"end",center:"middle",middle:"middle"};function NA(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function FA(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function zA(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function Q0(r){return r&&!!r.image}function J0(r){return r&&!!r.svgElement}function HA(r){return Q0(r)||J0(r)}function j0(r){return r.type==="linear"}function t_(r){return r.type==="radial"}function VA(r){return r&&(r.type==="linear"||r.type==="radial")}function GA(r){return"url(#"+r+")"}function WA(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function YA(r){var t=r.x||0,e=r.y||0,i=(r.rotation||0)*Xa,n=K(r.scaleX,1),a=K(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),i&&l.push("rotate("+i+")"),(n!==1||a!==1)&&l.push("scale("+n+","+a+")"),(o||s)&&l.push("skew("+go(o*Xa)+"deg, "+go(s*Xa)+"deg)"),l.join(" ")}var UA=function(){return X.hasGlobalWindow&&Z(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Jl=Array.prototype.slice;function Fe(r,t,e){return(t-r)*e+r}function Ls(r,t,e,i){for(var n=t.length,a=0;ai?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Ah,l=e;if(Ut(e)){var u=n_(e);s=u,(u===1&&!ft(e[0])||u===2&&!ft(e[0][0]))&&(o=!0)}else if(ft(e)&&!so(e))s=da;else if(z(e))if(!isNaN(+e))s=da;else{var f=se(e);f&&(l=f,s=mn)}else if(Ho(e)){var h=k({},l);h.colorStops=H(e.colorStops,function(v){return{offset:v.offset,color:se(v.color)}}),j0(e)?s=jl:t_(e)&&(s=tu),l=h}a===0?this.valType=s:(s!==this.valType||s===Ah)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=Z(i)?i:Mn[i]||pp(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(p,g){return p.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=pa(n),u=Lh(n),f=0;f=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;fe);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,y=g===0?1:c((e-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=i?this._additiveValue:u?Ji:t[l];if((pa(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(pa(a))a===Ka?Ls(m,v[n],d[n],y):e_(m,v[n],d[n],y);else if(Lh(a)){var _=v[n],S=d[n],b=a===jl;t[l]={type:b?"linear":"radial",x:Fe(_.x,S.x,y),y:Fe(_.y,S.y,y),colorStops:H(_.colorStops,function(x,C){var D=S.colorStops[C];return{offset:Fe(x.offset,D.offset,y),color:qa(Ls([],x.color,D.color,y))}}),global:S.global},b?(t[l].x2=Fe(_.x2,S.x2,y),t[l].y2=Fe(_.y2,S.y2,y)):t[l].r=Fe(_.r,S.r,y)}else if(u)Ls(m,v[n],d[n],y),i||(t[l]=qa(m));else{var w=Fe(v[n],d[n],y);i?this._additiveValue=w:t[l]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===da?t[i]=t[i]+n:e===mn?(se(t[i],Ji),ca(Ji,Ji,n,1),t[i]=qa(Ji)):e===Ka?ca(t[i],t[i],n,1):e===mp&&Dh(t[i],t[i],n,1)},r}(),nf=function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Qu("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,vt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,$a(u),n),this._trackKeys.push(s)}l.addKeyframe(t,$a(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function Di(){return new Date().getTime()}var o_=function(r){B(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Di()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(uo(i),!e._paused&&e.update())}uo(i)},t.prototype.start=function(){this._running||(this._time=Di(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Di(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Di()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new nf(e,i.loop);return this.addAnimator(n),n},t}(_e),s_=300,Is=X.domSupported,Ps=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=H(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),Ih={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ph=!1;function eu(r){var t=r.pointerType;return t==="pen"||t==="touch"}function l_(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Rs(r){r&&(r.zrByTouch=!0)}function u_(r,t){return ee(r.dom,new f_(r,t),!0)}function _p(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var f_=function(){function r(t,e){this.stopPropagation=Bt,this.stopImmediatePropagation=Bt,this.preventDefault=Bt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),ce={mousedown:function(r){r=ee(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ee(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ee(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ee(this.dom,r);var t=r.toElement||r.relatedTarget;_p(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Ph=!0,r=ee(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Ph||(r=ee(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ee(this.dom,r),Rs(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ce.mousemove.call(this,r),ce.mousedown.call(this,r)},touchmove:function(r){r=ee(this.dom,r),Rs(r),this.handler.processGesture(r,"change"),ce.mousemove.call(this,r)},touchend:function(r){r=ee(this.dom,r),Rs(r),this.handler.processGesture(r,"end"),ce.mouseup.call(this,r),+new Date-+this.__lastTouchMomentkh||r<-kh}var Tr=[],li=[],ks=Xr(),Os=Math.abs,af=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return xr(this.rotation)||xr(this.x)||xr(this.y)||xr(this.scaleX-1)||xr(this.scaleY-1)||xr(this.skewX)||xr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(Eh(i),this.invTransform=null);return}i=i||Xr(),e?this.getLocalTransform(i):Eh(i),t&&(e?Ii(i,t,i):op(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Tr);var i=Tr[0]<0?-1:1,n=Tr[1]<0?-1:1,a=((Tr[0]-i)*e+i)/Tr[0]||0,o=((Tr[1]-n)*e+n)/Tr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Xr(),rf(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Xr(),Ii(li,t.invTransform,e),e=li);var i=this.originX,n=this.originY;(i||n)&&(ks[4]=i,ks[5]=n,Ii(li,e,ks),li[4]-=i,li[5]-=n,e=li),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&oe(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&oe(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Os(t[0]-1)>1e-10&&Os(t[3]-1)>1e-10?Math.sqrt(Os(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){p_(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var d=i+s,p=n+l;e[4]=-d*a-c*p*o,e[5]=-p*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&ef(e,e,u),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Hn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p_(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function mo(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=vr(i[0],e.width),u+=vr(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Bs="__zr_normal__",Ns=Hn.concat(["ignore"]),g_=fr(Hn,function(r,t){return r[t]=!0,r},{ignore:!1}),ui={},y_=new it(0,0,0,0),Go=function(){function r(t){this.id=tp(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(e),i.position!=null){var f=y_;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ui,i,f):mo(ui,i,f),a.x=ui.x,a.y=ui.y,o=ui.align,s=ui.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=vr(h[0],f.width),v=vr(h[1],f.height)),u=!0,a.originX=-a.x+c+(n?0:f.x),a.originY=-a.y+v+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=Kt,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?au:nu},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&se(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Wi(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},k(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(V(t))for(var i=t,n=vt(i),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Bs,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===Bs,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(at(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Qu("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,f),c&&c.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Kt),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Kt)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=at(n,t),o=at(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var c=0;c0||n.force&&!o.length){var C=void 0,D=void 0,A=void 0;if(s){D={},c&&(C={});for(var S=0;S<_;S++){var y=p[S];D[y]=e[y],c?C[y]=i[y]:e[y]=i[y]}}else if(c){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=$a(e[y]),__(e,i,y)}}var b=new nf(e,!1,!1,h?Ct(d,function(L){return L.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),c&&C&&b.whenWithKeys(0,C,p),A&&b.whenWithKeys(0,A,p),b.whenWithKeys(u??500,s?D:i,p).delay(f||0),r.addAnimator(b,t),o.push(b)}}var bt=function(r){B(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=at(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=at(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}function yt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return z(r)?D_(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function _t(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),xp),r=(+r).toFixed(t),e?r:+r}function Sn(r){return r.sort(function(t,e){return t-e}),r}function ze(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return A_(r)}function A_(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function Tp(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function ZA(r,t){var e=fr(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var i=Math.pow(10,t),n=H(r,function(v){return(isNaN(v)?0:v)/e*i*100}),a=i*100,o=H(n,function(v){return Math.floor(v)}),s=fr(o,function(v,d){return v+d},0),l=H(n,function(v,d){return v-o[d]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return H(o,function(v){return v/i})}function L_(r,t){var e=Math.max(ze(r),ze(t)),i=r+t;return e>xp?i:_t(i,e)}var $A=9007199254740991;function Cp(r){var t=Math.PI*2;return(r%t+t)%t}function _o(r){return r>-Fh&&r=10&&t++,t}function Mp(r,t){var e=lf(r),i=Math.pow(10,e),n=r/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function qA(r,t){var e=(r.length-1)*t+1,i=Math.floor(e),n=+r[i-1],a=e-i;return a?n+a*(r[i]-n):n}function KA(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,i=0;i=0||a&&at(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var e1=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],r1=Gn(e1),i1=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return r1(this,t,e)},r}(),su=new jn(50);function n1(r){if(typeof r=="string"){var t=su.get(r);return t&&t.image}else return r}function Bp(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=su.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!Yo(t)&&a.pending.push(o)):(t=Hi.loadImage(r,Wh,Wh),t.__zrImageSrc=r,su.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Wh(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Qt(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function Fp(r,t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Qt(t,n);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?o1(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=Qt(t,n)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function o1(r,t,e,i){for(var n=0,a=0,o=r.length;ad&&u){var p=Math.floor(d/s);f=f||c.length>p,c=c.slice(0,p)}if(r&&a&&h!=null)for(var g=Np(h,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;ms&&Gs(e,r.substring(s,u),t,o),Gs(e,l[2],t,o,l[1]),s=Vs.lastIndex}sn){var I=e.lines.length;w>0?(_.tokens=_.tokens.slice(0,w),y(_,b,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length0&&d+i.accumWidth>i.width&&(f=t.split(` +`),u=!0),i.accumWidth=d}else{var p=zp(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=p.accumWidth+v,h=p.linesWidths,f=p.lines}}else f=t.split(` +`);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var v1=fr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function c1(r){return h1(r)?!!v1[r]:!0}function zp(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;he:n+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var lu="__zr_style_"+Math.round(Math.random()*10),$r={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Uo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$r[lu]=!0;var Uh=["z","z2","invisible"],d1=["invisible"],ra=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=vt(e),n=0;n1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(ga[0]=Xs(n)*e+r,ga[1]=Us(n)*i+t,ya[0]=Xs(a)*e+r,ya[1]=Us(a)*i+t,u(s,ga,ya),f(l,ga,ya),n=n%Mr,n<0&&(n=n+Mr),a=a%Mr,a<0&&(a=a+Mr),n>a&&!o?a+=Mr:nn&&(ma[0]=Xs(v)*e+r,ma[1]=Us(v)*i+t,u(s,ma,s),f(l,ma,l))}var nt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Dr=[],Ar=[],be=[],Xe=[],xe=[],Te=[],Zs=Math.min,$s=Math.max,Lr=Math.cos,Ir=Math.sin,Be=Math.abs,uu=Math.PI,er=uu*2,qs=typeof Float32Array<"u",ji=[];function Ks(r){var t=Math.round(r/uu*1e8)/1e8;return t%2*uu}function _1(r,t){var e=Ks(r[0]);e<0&&(e+=er);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=er?n=e+er:t&&e-n>=er?n=e-er:!t&&e>n?n=e+(er-Ks(e-n)):t&&e0&&(this._ux=Be(i/yo/t)||0,this._uy=Be(i/yo/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(nt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Be(t-this._xi),n=Be(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(nt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(nt.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(nt.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),ji[0]=n,ji[1]=a,_1(ji,o),n=ji[0],a=ji[1];var s=a-n;return this.addData(nt.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Lr(a)*i+t,this._yi=Ir(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(nt.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(nt.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&qs&&(this.data=new Float32Array(e));for(var i=0;if.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){be[0]=be[1]=xe[0]=xe[1]=Number.MAX_VALUE,Xe[0]=Xe[1]=Te[0]=Te[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;oi||Be(_)>n||c===e-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case nt.C:{var S=t[c++],b=t[c++],g=t[c++],y=t[c++],w=t[c++],x=t[c++];p=V0(a,o,S,b,g,y,w,x,10),a=w,o=x;break}case nt.Q:{var S=t[c++],b=t[c++],g=t[c++],y=t[c++];p=Y0(a,o,S,b,g,y,10),a=g,o=y;break}case nt.A:var C=t[c++],D=t[c++],A=t[c++],T=t[c++],L=t[c++],I=t[c++],P=I+L;c+=1,d&&(s=Lr(L)*A+C,l=Ir(L)*T+D),p=$s(A,T)*Zs(er,Math.abs(I)),a=Lr(P)*A+C,o=Ir(P)*T+D;break;case nt.R:{s=a=t[c++],l=o=t[c++];var R=t[c++],E=t[c++];p=R*2+E*2;break}case nt.Z:{var m=s-a,_=l-o;p=Math.sqrt(m*m+_*_),a=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,p,g=0,y=0,m,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var w=0;w0&&(t.lineTo(S,b),_=0),x){case nt.M:s=u=i[w++],l=f=i[w++],t.moveTo(u,f);break;case nt.L:{h=i[w++],c=i[w++];var D=Be(h-u),A=Be(c-f);if(D>n||A>a){if(v){var T=d[y++];if(g+T>m){var L=(m-g)/T;t.lineTo(u*(1-L)+h*L,f*(1-L)+c*L);break t}g+=T}t.lineTo(h,c),u=h,f=c,_=0}else{var I=D*D+A*A;I>_&&(S=h,b=c,_=I)}break}case nt.C:{var P=i[w++],R=i[w++],E=i[w++],G=i[w++],O=i[w++],N=i[w++];if(v){var T=d[y++];if(g+T>m){var L=(m-g)/T;vo(u,P,E,O,L,Dr),vo(f,R,G,N,L,Ar),t.bezierCurveTo(Dr[1],Ar[1],Dr[2],Ar[2],Dr[3],Ar[3]);break t}g+=T}t.bezierCurveTo(P,R,E,G,O,N),u=O,f=N;break}case nt.Q:{var P=i[w++],R=i[w++],E=i[w++],G=i[w++];if(v){var T=d[y++];if(g+T>m){var L=(m-g)/T;co(u,P,E,L,Dr),co(f,R,G,L,Ar),t.quadraticCurveTo(Dr[1],Ar[1],Dr[2],Ar[2]);break t}g+=T}t.quadraticCurveTo(P,R,E,G),u=E,f=G;break}case nt.A:var W=i[w++],q=i[w++],J=i[w++],lt=i[w++],ht=i[w++],dt=i[w++],ue=i[w++],yr=!i[w++],ai=J>lt?J:lt,qt=Be(J-lt)>.001,xt=ht+dt,$=!1;if(v){var T=d[y++];g+T>m&&(xt=ht+dt*(m-g)/T,$=!0),g+=T}if(qt&&t.ellipse?t.ellipse(W,q,J,lt,ue,ht,xt,yr):t.arc(W,q,ai,ht,xt,yr),$)break t;C&&(s=Lr(ht)*J+W,l=Ir(ht)*lt+q),u=Lr(xt)*J+W,f=Ir(xt)*lt+q;break;case nt.R:s=u=i[w],l=f=i[w+1],h=i[w++],c=i[w++];var j=i[w++],mr=i[w++];if(v){var T=d[y++];if(g+T>m){var Et=m-g;t.moveTo(h,c),t.lineTo(h+Zs(Et,j),c),Et-=j,Et>0&&t.lineTo(h+j,c+Zs(Et,mr)),Et-=mr,Et>0&&t.lineTo(h+$s(j-Et,0),c+mr),Et-=j,Et>0&&t.lineTo(h,c+$s(mr-Et,0));break t}g+=T}t.rect(h,c,j,mr);break;case nt.Z:if(v){var T=d[y++];if(g+T>m){var L=(m-g)/T;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=T}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=nt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function fi(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>i+s||or+s&&a>e+s||at+h&&f>i+h&&f>a+h&&f>s+h||fr+h&&u>e+h&&u>n+h&&u>o+h||ut+u&&l>i+u&&l>a+u||lr+u&&s>e+u&&s>n+u||se||f+un&&(n+=tn);var c=Math.atan2(l,s);return c<0&&(c+=tn),c>=i&&c<=n||c+tn>=i&&c+tn<=n}function Pr(r,t,e,i,n,a){if(a>t&&a>i||an?s:0}var Ze=jr.CMD,Rr=Math.PI*2,x1=1e-4;function T1(r,t){return Math.abs(r-t)t&&u>i&&u>a&&u>s||u1&&C1(),v=wt(t,i,a,s,ie[0]),c>1&&(d=wt(t,i,a,s,ie[1]))),c===2?gt&&s>i&&s>a||s=0&&u<=1){for(var f=0,h=Pt(t,i,a,u),c=0;ce||s<-e)return 0;var l=Math.sqrt(e*e-s*s);kt[0]=-l,kt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Rr-1e-4){i=0,n=Rr;var f=a?1:-1;return o>=kt[0]+r&&o<=kt[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Rr,n+=Rr);for(var c=0,v=0;v<2;v++){var d=kt[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Rr+p),(p>=i&&p<=n||p+Rr>=i&&p+Rr<=n)&&(p>Math.PI/2&&p1&&(e||(s+=Pr(l,u,f,h,i,n))),g&&(l=a[d],u=a[d+1],f=l,h=u),p){case Ze.M:f=a[d++],h=a[d++],l=f,u=h;break;case Ze.L:if(e){if(fi(l,u,a[d],a[d+1],t,i,n))return!0}else s+=Pr(l,u,a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case Ze.C:if(e){if(S1(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=M1(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case Ze.Q:if(e){if(w1(l,u,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=D1(l,u,a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case Ze.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,g?(f=c,h=v):s+=Pr(l,u,c,v,i,n);var C=(i-y)*S/_+y;if(e){if(b1(y,m,S,b,b+w,x,t,C,n))return!0}else s+=A1(y,m,S,b,b+w,x,C,n);l=Math.cos(b+w)*_+y,u=Math.sin(b+w)*S+m;break;case Ze.R:f=l=a[d++],h=u=a[d++];var D=a[d++],A=a[d++];if(c=f+D,v=h+A,e){if(fi(f,h,c,h,t,i,n)||fi(c,h,c,v,t,i,n)||fi(c,v,f,v,t,i,n)||fi(f,v,f,h,t,i,n))return!0}else s+=Pr(c,h,c,v,i,n),s+=Pr(f,v,f,h,i,n);break;case Ze.Z:if(e){if(fi(l,u,f,h,t,i,n))return!0}else s+=Pr(l,u,f,h,i,n);l=f,u=h;break}}return!e&&!T1(u,h)&&(s+=Pr(l,u,f,h,i,n)||0),s!==0}function L1(r,t,e){return Hp(r,0,!1,t,e)}function I1(r,t,e,i){return Hp(r,t,!0,e,i)}var Vp=rt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$r),P1={style:rt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Uo.style)},Qs=Hn.concat(["invisible","culling","z","z2","zlevel","parent"]),ot=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?nu:i>.2?d_:au}else if(e)return au}return nu},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(z(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=po(e,0)0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&bi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),I1(s,l/u,e,i)))return!0}if(this.hasFill())return L1(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=bi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:k(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&bi)},t.prototype.createStyle=function(e){return Vo(Vp,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=k({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=k({},n.shape),k(u,i.shape)):(u=k({},a?this.shape:n.shape),k(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=k({},this.shape);for(var f={},h=vt(u),c=0;c0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Vo(R1,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=of(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(ra);So.prototype.type="tspan";var E1=rt({x:0,y:0},$r),k1={style:rt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Uo.style)};function O1(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var gr=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Vo(E1,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=O1(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return k1},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new it(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ra);gr.prototype.type="image";function B1(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Ai=Math.round;function Gp(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Ai(i*2)===Ai(n*2)&&(r.x1=r.x2=Gr(i,s,!0)),Ai(a*2)===Ai(o*2)&&(r.y1=r.y2=Gr(a,s,!0))),r}}function Wp(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Gr(i,s,!0),r.y=Gr(n,s,!0),r.width=Math.max(Gr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Gr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Gr(r,t,e){if(!t)return r;var i=Ai(r*2);return(i+Ai(t))%2===0?i/2:(i+(e?1:-1))/2}var N1=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),F1={},ct=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new N1},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=Wp(F1,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?B1(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ot);ct.prototype.type="rect";var Kh={fill:"#000"},Qh=2,z1={style:rt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Uo.style)},Nt=function(r){B(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Kh,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=w[I],P.align==="right");)this._placeToken(P,e,C,y,L,"right",_),D-=P.width,L-=P.width,I--;for(T+=(a-(T-g)-(m-L)-D)/2;A<=I;)P=w[A],this._placeToken(P,e,C,y,T+P.width/2,"center",_),T+=P.width,A++;y+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var c=!e.isLineHolder&&Js(u);c&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=iv(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(So),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=rv("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),b=ev("stroke"in u?u.stroke:"stroke"in i?i.stroke:!v&&!l&&(!y.autoStroke||m)?(_=Qh,y.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,w&&(g.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,g.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Qr,g.opacity=Ua(u.opacity,i.opacity,1),jh(g,u),b&&(g.lineWidth=Ua(u.lineWidth,i.lineWidth,_),g.lineDash=K(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var x=e.contentWidth,C=e.contentHeight;p.setBoundingRect(new it(_n(g.x,x,g.textAlign),xi(g.y,C,g.textBaseline),x,C))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,p,g;if(c||e.lineHeight||u&&f){p=this._getOrCreateChild(ct),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=a,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(c){var m=p.style;m.fill=l||null,m.fillOpacity=K(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(gr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=K(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Ua(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return W1(e)&&(i=[e.fontStyle,e.fontWeight,G1(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&De(i)||e.textFont||e.font},t}(ra),H1={left:!0,right:1,center:1},V1={top:1,bottom:1,middle:1},Jh=["fontStyle","fontWeight","fontSize","fontFamily"];function G1(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?$u+"px":r+"px"}function jh(r,t){for(var e=0;e=0,a=!1;if(r instanceof ot){var o=Yp(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(hi(s)||hi(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=k({},i),u=k({},u),u.fill=s):!hi(u.fill)&&hi(s)?(a=!0,i=k({},i),u=k({},u),u.fill=Th(s)):!hi(u.stroke)&&hi(l)&&(a||(i=k({},i),u=k({},u)),u.stroke=Th(l)),i.style=u}}if(i&&i.z2==null){a||(i=k({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??X1)}return i}function J1(r,t,e){if(e&&e.z2==null){e=k({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??Z1)}return e}function j1(r,t,e){var i=at(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:K1(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=k({},e),o=k({opacity:i?n:a.opacity*.1},o),e.style=o),e}function js(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Q1(this,r,t,e);if(r==="blur")return j1(this,r,e);if(r==="select")return J1(this,r,e)}return e}function tS(r){r.stateProxy=js;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=js),e&&(e.stateProxy=js)}function fv(r,t){!Qp(r,t)&&!r.__highByOuter&&Ue(r,Up)}function hv(r,t){!Qp(r,t)&&!r.__highByOuter&&Ue(r,Xp)}function wo(r,t){r.__highByOuter|=1<<(t||0),Ue(r,Up)}function bo(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ue(r,Xp)}function eS(r){Ue(r,df)}function $p(r){Ue(r,Zp)}function qp(r){Ue(r,$1)}function Kp(r){Ue(r,q1)}function Qp(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Jp(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=vf(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){Zp(u)}),s&&e.push(a)),o.isBlured=!1}),M(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function fu(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function xo(r,t,e){jp(r,!0),Ue(r,tS),lS(r,t,e)}function sS(r){jp(r,!1)}function To(r,t,e,i){i?sS(r):xo(r,t,e)}function lS(r,t,e){var i=et(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var cv=["emphasis","blur","select"],uS={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vu(r,t,e,i){e=e||"itemStyle";for(var n=0;n1&&(o*=tl(d),s*=tl(d));var p=(n===a?-1:1)*tl((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=p*o*v/s,y=p*-s*c/o,m=(r+e)/2+wa(h)*g-Sa(h)*y,_=(t+i)/2+Sa(h)*g+wa(h)*y,S=yv([1,0],[(c-g)/o,(v-y)/s]),b=[(c-g)/o,(v-y)/s],w=[(-1*c-g)/o,(-1*v-y)/s],x=yv(b,w);if(pu(b,w)<=-1&&(x=en),pu(b,w)>=1&&(x=0),x<0){var C=Math.round(x/en*1e6)/1e6;x=en*2+C%2*en}f.addData(u,m,_,o,s,S,x,h,a)}var dS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,pS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gS(r){var t=new jr;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=jr.CMD,l=r.match(dS);if(!l)return t;for(var u=0;uP*P+R*R&&(C=A,D=T),{cx:C,cy:D,x0:-f,y0:-h,x1:C*(n/b-1),y1:D*(n/b-1)}}function TS(r){var t;if(F(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function CS(r,t){var e,i=wn(t.r,0),n=wn(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=_v(u-l),d=v>el&&v%el;if(d>ve&&(v=d),!(i>ve))r.moveTo(f,h);else if(v>el-ve)r.moveTo(f+i*ci(l),h+i*Er(l)),r.arc(f,h,i,l,u,!c),n>ve&&(r.moveTo(f+n*ci(u),h+n*Er(u)),r.arc(f,h,n,u,l,c));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,C=void 0,D=void 0,A=void 0,T=void 0,L=void 0,I=void 0,P=void 0,R=i*ci(l),E=i*Er(l),G=n*ci(u),O=n*Er(u),N=v>ve;if(N){var W=t.cornerRadius;W&&(e=TS(W),p=e[0],g=e[1],y=e[2],m=e[3]);var q=_v(i-n)/2;if(_=Ce(q,y),S=Ce(q,m),b=Ce(q,p),w=Ce(q,g),D=x=wn(_,S),A=C=wn(b,w),(x>ve||C>ve)&&(T=i*ci(u),L=i*Er(u),I=n*ci(l),P=n*Er(l),vve){var qt=Ce(y,D),xt=Ce(m,D),$=ba(I,P,R,E,i,qt,c),j=ba(T,L,G,O,i,xt,c);r.moveTo(f+$.cx+$.x0,h+$.cy+$.y0),D0&&r.arc(f+$.cx,h+$.cy,qt,Dt($.y0,$.x0),Dt($.y1,$.x1),!c),r.arc(f,h,i,Dt($.cy+$.y1,$.cx+$.x1),Dt(j.cy+j.y1,j.cx+j.x1),!c),xt>0&&r.arc(f+j.cx,h+j.cy,xt,Dt(j.y1,j.x1),Dt(j.y0,j.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,i,l,u,!c);if(!(n>ve)||!N)r.lineTo(f+G,h+O);else if(A>ve){var qt=Ce(p,A),xt=Ce(g,A),$=ba(G,O,T,L,n,-xt,c),j=ba(R,E,I,P,n,-qt,c);r.lineTo(f+$.cx+$.x0,h+$.cy+$.y0),A0&&r.arc(f+$.cx,h+$.cy,xt,Dt($.y0,$.x0),Dt($.y1,$.x1),!c),r.arc(f,h,n,Dt($.cy+$.y1,$.cx+$.x1),Dt(j.cy+j.y1,j.cx+j.x1),c),qt>0&&r.arc(f+j.cx,h+j.cy,qt,Dt(j.y1,j.x1),Dt(j.y0,j.x0),!c))}else r.lineTo(f+G,h+O),r.arc(f,h,n,u,l,c)}r.closePath()}}}var MS=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Yi=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new MS},t.prototype.buildPath=function(e,i){CS(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ot);Yi.prototype.type="sector";var DS=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),yf=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new DS},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t}(ot);yf.prototype.type="ring";function AS(r,t,e,i){var n=[],a=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c=2){if(i){var a=AS(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;sOr[1]){if(s=!1,a)return s;var f=Math.abs(Or[0]-kr[1]),h=Math.abs(kr[0]-Or[1]);Math.min(f,h)>n.len()&&(f0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Zt(r,t,e,i,n,a){_f("update",r,t,e,i,n,a)}function Pe(r,t,e,i,n,a){_f("enter",r,t,e,i,n,a)}function Pn(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function bv(r){return!r.isGroup}function ZS(r){return r.shape!=null}function pg(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){bv(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ZS(o)&&(s.shape=k({},o.shape)),s}var a=i(r);t.traverse(function(o){if(bv(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Zt(o,l,e,et(o).dataIndex)}}})}function $S(r,t){return H(r,function(e){var i=e[0];i=Do(i,t.x),i=Ao(i,t.x+t.width);var n=e[1];return n=Do(n,t.y),n=Ao(n,t.y+t.height),[i,n]})}function qS(r,t){var e=Do(r.x,t.x),i=Ao(r.x+r.width,t.x+t.width),n=Do(r.y,t.y),a=Ao(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function wf(r,t,e){var i=k({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),rt(n,e),new gr(i)):Sf(r.replace("path://",""),i,e,"center")}function KS(r,t,e,i,n){for(var a=0,o=n[n.length-1];a1)return!1;var g=rl(v,d,f,h)/c;return!(g<0||g>1)}function rl(r,t,e,i){return r*i-e*t}function QS(r){return r<=1e-6&&r>=-1e-6}function jo(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=z(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&M(vt(l),function(f){hr(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=et(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:rt({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function xv(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ts(r,t){if(r)if(F(r))for(var e=0;e=0&&s.push(l)}),s}}function as(r,t){return tt(tt({},r,!0),t,!0)}const vw={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},cw={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Lo="ZH",bf="EN",Ri=bf,eo={},xf={},Sg=X.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ri).toUpperCase();return r.indexOf(Lo)>-1?Lo:Ri}():Ri;function wg(r,t){r=r.toUpperCase(),xf[r]=new pt(t),eo[r]=t}function dw(r){if(z(r)){var t=eo[r.toUpperCase()]||{};return r===Lo||r===bf?Q(t):tt(Q(t),Q(eo[Ri]),!1)}else return tt(Q(r),Q(eo[Ri]),!1)}function pw(r){return xf[r]}function gw(){return xf[Ri]}wg(bf,vw);wg(Lo,cw);var Tf=1e3,Cf=Tf*60,Rn=Cf*60,ae=Rn*24,Lv=ae*365,bn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ca="{yyyy}-{MM}-{dd}",Iv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ca,hour:Ca+" "+bn.hour,minute:Ca+" "+bn.minute,second:Ca+" "+bn.second,millisecond:bn.none},al=["year","month","day","hour","minute","second","millisecond"],bg=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $e(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ei(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function yw(r){return r===Ei(r)}function mw(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function os(r,t,e,i){var n=We(r),a=n[Mf(e)](),o=n[ki(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[ss(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Un(e)](),h=(f-1)%12+1,c=n[ls(e)](),v=n[us(e)](),d=n[fs(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=i instanceof pt?i:pw(i||Sg)||gw(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,$e(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,$e(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,$e(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$e(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,$e(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,$e(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,$e(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,$e(d,3)).replace(/{S}/g,d+"")}function _w(r,t,e,i,n){var a=null;if(z(e))a=e;else if(Z(e))a=e(r.value,t,{level:r.level});else{var o=k({},bn);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(F(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return os(new Date(r.value),a,n,i)}function xg(r,t){var e=We(r),i=e[ki(t)]()+1,n=e[ss(t)](),a=e[Un(t)](),o=e[ls(t)](),s=e[us(t)](),l=e[fs(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&n===1,d=v&&i===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Pv(r,t,e){var i=ft(r)?We(r):r;switch(t=t||xg(r,e),t){case"year":return i[Mf(e)]();case"half-year":return i[ki(e)]()>=6?1:0;case"quarter":return Math.floor((i[ki(e)]()+1)/4);case"month":return i[ki(e)]();case"day":return i[ss(e)]();case"half-day":return i[Un(e)]()/24;case"hour":return i[Un(e)]();case"minute":return i[ls(e)]();case"second":return i[us(e)]();case"millisecond":return i[fs(e)]()}}function Mf(r){return r?"getUTCFullYear":"getFullYear"}function ki(r){return r?"getUTCMonth":"getMonth"}function ss(r){return r?"getUTCDate":"getDate"}function Un(r){return r?"getUTCHours":"getHours"}function ls(r){return r?"getUTCMinutes":"getMinutes"}function us(r){return r?"getUTCSeconds":"getSeconds"}function fs(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Sw(r){return r?"setUTCFullYear":"setFullYear"}function Tg(r){return r?"setUTCMonth":"setMonth"}function Cg(r){return r?"setUTCDate":"setDate"}function Mg(r){return r?"setUTCHours":"setHours"}function Dg(r){return r?"setUTCMinutes":"setMinutes"}function Ag(r){return r?"setUTCSeconds":"setSeconds"}function Lg(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Ig(r){if(!R_(r))return z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Pg(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var na=ep;function _u(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&De(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?We(r):r;if(isNaN(+l)){if(s)return"-"}else return os(l,i,e)}if(t==="ordinal")return Yl(r)?n(r):ft(r)&&a(r)?r+"":"-";var u=cr(r);return a(u)?Ig(u):Yl(r)?n(r):typeof r=="boolean"?r+"":"-"}var Rv=["a","b","c","d","e","f","g"],ol=function(r,t){return"{"+r+(t??"")+"}"};function Rg(r,t,e){F(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function ei(r,t){return t=t||"transparent",z(r)?r:V(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function o2(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ro=M,bw=["left","right","top","bottom","width","height"],Wr=[["width","left","right"],["height","top","bottom"]];function Df(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);v=a+p,v>i||l.newline?(a=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>n||l.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var Oi=Df;mt(Df,"vertical");mt(Df,"horizontal");function s2(r,t,e){var i=t.width,n=t.height,a=yt(r.left,i),o=yt(r.top,n),s=yt(r.right,i),l=yt(r.bottom,n);return(isNaN(a)||isNaN(parseFloat(r.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=i),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),e=na(e||0),{width:Math.max(s-a-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function ri(r,t,e){e=na(e||0);var i=t.width,n=t.height,a=yt(r.left,i),o=yt(r.top,n),s=yt(r.right,i),l=yt(r.bottom,n),u=yt(r.width,i),f=yt(r.height,n),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=i-s-c-a),isNaN(f)&&(f=n-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=i-s-u-c),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new it(a+e[3],o+e[0],u,f);return d.margin=e,d}function xw(r,t,e,i,n,a){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new it(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=ri(rt({width:u.width,height:u.height},t),e,i),c=o?h.x-u.x:0,v=s?h.y-u.y:0;return l==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===r&&r.markRedraw(),!0}function l2(r,t){return r[Wr[t][0]]!=null||r[Wr[t][1]]!=null&&r[Wr[t][2]]!=null}function Xn(r){var t=r.layoutMode||r.constructor.layoutMode;return V(t)?t:t?{type:t}:null}function Ni(r,t,e){var i=e&&e.ignoreSize;!F(i)&&(i=[i,i]);var n=o(Wr[0],0),a=o(Wr[1],1);u(Wr[0],r,n),u(Wr[1],r,a);function o(f,h){var c={},v=0,d={},p=0,g=2;if(ro(f,function(_){d[_]=r[_]}),ro(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),l(c,_)&&v++,l(d,_)&&p++}),i[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return c;for(var y=0;y=0;l--)s=tt(s,n[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return ea(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(pt);Op(st,pt);Wo(st);fw(st);hw(st,Mw);function Mw(r){var t=[];return M(st.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=H(t,function(e){return Ae(e).main}),r!=="dataset"&&at(t,"dataset")<=0&&t.unshift("dataset"),t}var Eg="";typeof navigator<"u"&&(Eg=navigator.platform||"");var di="rgba(0, 0, 0, 0.2)";const Dw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:di,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:di,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:di,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:di,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:di,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:di,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Eg.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var kg=Y(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),le="original",$t="arrayRows",we="objectRows",ke="keyedColumns",lr="typedArray",Og="unknown",Ge="column",Ui="row",Tt={Must:1,Might:2,Not:3},Bg=St();function Aw(r){Bg(r).datasetMap=Y()}function Lw(r,t,e){var i={},n=Af(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,l=Bg(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),M(r,function(p,g){var y=V(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),i[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});M(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;v(i[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(i[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(i[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(p,g,y){for(var m=0;mt)return r[i];return r[e-1]}function zg(r,t,e,i,n,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?e:Ew(i,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function kw(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Ma,rn,kv,Ov="\0_ec_inner",Ow=1,If=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new pt(a),this._locale=new pt(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=Fv(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,Fv(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?kv(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&M(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Y(),u=i&&i.replaceMergeMainTypeMap;Aw(this),M(e,function(h,c){h!=null&&(st.hasClass(c)?c&&(s.push(c),l.set(c,!0)):n[c]=n[c]==null?Q(h):tt(n[c],h,!0))}),u&&u.each(function(h,c){st.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),st.topologicalTravel(s,st.getAllClassMainTypes(),f,this);function f(h){var c=Pw(this,h,Mt(e[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=k_(v,c,d);V_(p,h,st),n[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;M(p,function(S,b){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=h==="series",D=st.getClass(h,S.keyInfo.subType,!C);if(!D)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var A=k({componentIndex:b},S.keyInfo);w=new D(x,this,this,A),k(w,A),S.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,a.set(h,y),o.set(h,m),h==="series"&&Ma(this)}this._seriesIndices||Ma(this)},t.prototype.getOption=function(){var e=Q(this.option);return M(e,function(i,n){if(st.hasClass(n)){for(var a=Mt(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Vn(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[Ov],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Yw(r,t){return r.join(",")===t.join(",")}var fe=M,Zn=V,zv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ll(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=zv.length;e=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=L_(c,m),p=m;break}}}return i[0]=c,i[1]=p,i})})}var hs=function(){function r(t){this.data=t.data||(t.sourceFormat===ke?{}:[]),this.sourceFormat=t.sourceFormat||Og,this.seriesLayoutBy=t.seriesLayoutBy||Ge,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;ip&&(p=_)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};Xv=(t={},t[$t+"_"+Ge]={pure:!0,appendData:a},t[$t+"_"+Ui]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[we]={pure:!0,appendData:a},t[ke]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[le]={appendData:a},t[lr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Fi(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function Kv(r){var t,e;return V(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function En(r){return new lb(r)}var lb=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v1&&i>0?s:o}};return a;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},fb=function(){function r(t,e){if(!ft(e)){var i="";Ot(i)}this._opFn=qg[t],this._rvalFloat=cr(e)}return r.prototype.evaluate=function(t){return ft(t)?this._opFn(t,this._rvalFloat):this._opFn(cr(t),this._rvalFloat)},r}(),hb=function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=ft(t)?t:cr(t),n=ft(e)?e:cr(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=z(t),l=z(e);s&&(i=l?t:0),l&&(n=s?e:0)}return in?-this._resultLT:0},r}(),vb=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=cr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(e=cr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function c2(r,t){return r==="eq"||r==="ne"?new vb(r==="eq",t):hr(qg,r)?new fb(r,t):null}var cb=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return io(t,e)},r}();function db(r,t){var e=new cb,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Ge&&Ot(o);var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";hr(l,y)&&Ot(_),l[y]=m}});else for(var f=0;f65535?bb:xb}function gi(){return[1/0,-1/0]}function Tb(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function jv(r,t,e,i,n){var a=Jg[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=H(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&it)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a=h&&m<=c||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=v[n[0]],_=v[n[1]],S=t[n[1]][0],b=t[n[1]][1],y=0;y=h&&m<=c||isNaN(m))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y=h&&m<=c||isNaN(m))&&(l[u++]=x)}else for(var y=0;yt[A][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(pi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=h,c=S)}T>0&&Ts&&(p=s-f);for(var g=0;gd&&(d=m,v=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(v);hf-d&&(l=f-d,s.length=l);for(var p=0;ph[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,i,n,a){return io(e[a],this._dimensions[a])}hl={arrayRows:t,objectRows:function(e,i,n,a){return io(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return io(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}}(),r}(),Cb=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(Da(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Xt(s)?lr:le,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=K(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=K(h.sourceHeader,c.sourceHeader),p=K(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;n=g?[wu(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(i){var m=this._applyTransform(e);n=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);n=[wu(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&tc(a)}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&tc(h),s.push(f),l.push(u._getVersionSign())}),i?o=Sb(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[tb(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return M(r.blocks,function(n){var a=ry(n);a>=t&&(t=a+ +(i&&(!a||xu(n)&&!n.noHeader)))}),t}return 0}function Lb(r,t,e,i){var n=t.noHeader,a=Pb(ry(t)),o=[],s=t.blocks||[];Le(!s||F(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(hr(u,l)){var f=new hb(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var y=t.valueFormatter,m=ey(p)(y?k(k({},r),{valueFormatter:y}):r,p,g>0?a.html:0,i);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):Tu(i,o.join(""),n?e:a.html);if(n)return h;var c=_u(t.header,"ordinal",r.useUTC),v=ty(i,r.renderMode).nameStyle,d=jg(i);return r.renderMode==="richText"?iy(r,c,v)+a.richText+h:Tu(i,'
'+Ht(c)+"
"+h,e)}function Ib(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],H(S,function(b,w){return _u(b,F(v)?v[w]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),c=a?"":_u(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=ty(i,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(a?"":iy(r,c,m))+(o?"":kb(r,d,p,g,_)):Tu(i,(s?"":h)+(a?"":Rb(c,!s,m))+(o?"":Eb(d,p,g,_)),e)}}function ec(r,t,e,i,n,a){if(r){var o=ey(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function Pb(r){return{html:Db[r],richText:Ab[r]}}function Tu(r,t,e){var i='
',n="margin: "+e+"px 0 0",a=jg(r);return'
'+t+i+"
"}function Rb(r,t,e){var i=t?"margin-left:2px":"";return''+Ht(r)+""}function Eb(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=F(r)?r:[r],''+H(r,function(o){return Ht(o)}).join("  ")+""}function iy(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function kb(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,a)}function Ob(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return ei(i)}function ny(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var vl=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Dp()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=ww({color:e,type:t,renderMode:i,markerId:n});return z(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};F(e)?M(e,function(a){return k(i,a)}):k(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function Bb(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=F(s),u=Ob(t,e),f,h,c,v;if(o>1||l&&!o){var d=Nb(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(a[0]);v=f=Fi(n,e,a[0]),h=p.type}else v=f=l?s[0]:s;var g=uf(t),y=g&&t.name||"",m=n.getName(e),_=i?y:m;return $n("section",{header:y,noHeader:i||!g,sortParam:v,blocks:[$n("nameValue",{markerType:"item",markerColor:u,name:_,noName:!De(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function Nb(r,t,e,i,n){var a=t.getData(),o=fr(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?M(i,function(h){f(Fi(a,e,h),h)}):M(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push($n("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var qe=St();function Aa(r,t){return r.getName(t)||r.getId(t)}var Fb="__universalTransitionEnabled",Re=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=En({count:Hb,reset:Vb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=qe(this).sourceManager=new Cb(this);a.prepareSource();var o=this.getInitialData(e,n);ic(o,this),this.dataTask.context.data=o,qe(this).dataBeforeProcessed=o,rc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=Xn(this),a=n?aa(e):{},o=this.subType;st.hasClass(o)&&(o+="Series"),tt(e,i.getTheme().get(this.subType)),tt(e,this.getDefaultOption()),Vh(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Ni(e,a,n)},t.prototype.mergeOption=function(e,i){e=tt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Xn(this);n&&Ni(this.option,e,n);var a=qe(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);ic(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,qe(this).dataBeforeProcessed=o,rc(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Xt(e))for(var i=["show"],n=0;nthis.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=Lf.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Aa(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Fb])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){V(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,i)}},t.registerClass=function(e){return st.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(st);Ee(Re,sb);Ee(Re,Lf);Op(Re,st);function rc(r){var t=r.name;uf(r)||(r.name=zb(r)||t)}function zb(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return M(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function Hb(r){return r.model.getRawData().count()}function Vb(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Gb}function Gb(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ic(r,t){M(l0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,mt(Wb,t))})}function Wb(r,t){var e=Cu(r);return e&&e.setOutputEnd((t||this).count()),t}function Cu(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var me=function(){function r(){this.group=new bt,this.uid=ns("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();hf(me);Wo(me);function Bf(){var r=St();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var ay=St(),Yb=Bf(),ye=function(){function r(){this.group=new bt,this.uid=ns("viewChart"),this.renderTask=En({plan:Ub,reset:Xb}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&ac(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&ac(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){ts(this.group,t)},r.markUpdateMethod=function(t,e){ay(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function nc(r,t,e){r&&cu(r)&&(t==="emphasis"?wo:bo)(r,e)}function ac(r,t,e){var i=Jr(r,t),n=t&&t.highlightKey!=null?fS(t.highlightKey):null;i!=null?M(Mt(i),function(a){nc(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){nc(a,e,n)})}hf(ye);Wo(ye);function Ub(r){return Yb(r.model)}function Xb(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&ay(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,n),Zb[l]}var Zb={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Io="\0__throttleOriginMethod",oc="\0__throttleRate",sc="\0__throttleType";function Nf(r,t,e){var i,n=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d=0?h():o=setTimeout(h,-s),n=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function cs(r,t,e,i){var n=r[t];if(n){var a=n[Io]||n,o=n[sc],s=n[oc];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=Nf(a,e,i==="debounce"),n[Io]=a,n[sc]=i,n[oc]=e}return n}}function Po(r,t){var e=r[t];e&&e[Io]&&(e.clear&&e.clear(),r[t]=e[Io])}var lc=St(),uc={itemStyle:Gn(_g,!0),lineStyle:Gn(mg,!0)},$b={lineStyle:"stroke",itemStyle:"fill"};function oy(r,t){var e=r.visualStyleMapper||uc[t];return e||(console.warn("Unknown style type '"+t+"'."),uc.itemStyle)}function sy(r,t){var e=r.visualDrawType||$b[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var qb={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=oy(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=sy(r,i),u=o[l],f=Z(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=k({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},an=new pt,Kb={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=oy(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){an.option=l[i];var u=n(an),f=o.ensureUniqueItemVisual(s,"style");k(f,u),an.option.decal&&(o.setItemVisual(s,"decal",an.option.decal),an.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Qb={performRawSeries:!0,overallReset:function(r){var t=Y();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),lc(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=lc(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=sy(e,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(u)||u+"",d=i.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},La=Math.PI;function Jb(r,t){t=t||{},rt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new bt,i=new ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Nt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new ct({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Jo({shape:{startAngle:-La/2,endAngle:-La/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:La*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:La*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var ly=function(){function r(t,e,i,n){this._stageTaskMap=Y(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Y();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;M(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";Le(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;M(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var p=o.getPerformArgs(c,n.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(a=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Y(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||En({plan:ix,reset:nx,count:ox}));v.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||En({reset:jb});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Y(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";Le(!t.createOnAllSeries,v),u?i.eachRawSeriesByType(u,d):f?f(i,n).each(d):(h=!1,M(i.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(c=!0,En({reset:tx,onDirty:rx})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,a._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return Z(t)&&(t={overallReset:t,seriesType:sx(t)}),t.uid=ns("stageHandler"),e&&(t.visualType=e),t},r}();function jb(r){r.overallReset(r.ecModel,r.api,r.payload)}function tx(r){return r.overallProgress&&ex}function ex(){this.agent.dirty(),this.getDownstream().dirty()}function rx(){this.agent&&this.agent.dirty()}function ix(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function nx(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Mt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?H(t,function(e,i){return uy(i)}):ax}var ax=uy(0);function uy(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Mu=["symbol","symbolSize","symbolRotate","symbolOffset"],cc=Mu.concat(["symbolKeepAspect"]),fx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o=0&&Yr(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Du(r,t,e){for(var i=t.type==="radial"?Lx(r,t,e):Ax(r,t,e),n=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ft(r)?[r]:F(r)?r:null}function dy(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&Px(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=H(e,function(a){return a/n}),i/=n)}return[e,i]}var Rx=new jr(!0);function ko(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function dc(r){return typeof r=="string"&&r!=="none"}function Oo(r){var t=r.fill;return t!=null&&t!=="none"}function pc(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function gc(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Au(r,t,e){var i=Bp(t.image,t.__image,e);if(Yo(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Xa),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Ex(r,t,e,i){var n,a=ko(e),o=Oo(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||Rx,h=t.__dirty;if(!i){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,p=a&&!!v.colorStops,g=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0;(d||p)&&(w=t.getBoundingRect()),d&&(m=h?Du(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?Du(r,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?Au(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?Au(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(b?r.strokeStyle=b:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var C,D;r.setLineDash&&e.lineDash&&(n=dy(t),C=n[0],D=n[1]);var A=!0;(u||h&bi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=D),i||(e.strokeFirst?(a&&gc(r,e),o&&pc(r,e)):(o&&pc(r,e),a&&gc(r,e))),C&&r.setLineDash([])}function kx(r,t,e){var i=t.__image=Bp(e.image,t.__image,t,t.onload);if(!(!i||!Yo(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(i,u,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(i,u,f,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function Ox(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Qr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=dy(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(ko(e)&&r.strokeText(n,e.x,e.y),Oo(e)&&r.fillText(n,e.x,e.y)):(Oo(e)&&r.fillText(n,e.x,e.y),ko(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var yc=["shadowBlur","shadowOffsetX","shadowOffsetY"],mc=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function py(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){Wt(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?$r.opacity:o}(i||t.blend!==e.blend)&&(a||(Wt(r,n),a=!0),r.globalCompositeOperation=t.blend||$r.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,n){if(!this[At]){if(this._disposed){this.id;return}var a,o,s;if(V(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[At]=!0,!this._model||i){var l=new Hw(this._api),u=this._theme,f=this._model=new If;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Pu);var h={seriesTransition:s,optionChanged:!0};if(n)this[zt]={silent:a,updateParams:h},this[At]=!1,this.getZr().wakeUp();else{try{mi(this),Ke.update.call(this,null,h)}catch(c){throw this[zt]=null,this[At]=!1,c}this._ssr||this._zr.flush(),this[zt]=null,this[At]=!1,on.call(this,a),sn.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||X.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(X.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return M(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;M(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Ec[n]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(On,function(_,S){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Q(e)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:b,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,p=h-u,g=Hi.createCanvas(),y=Nh(g,{renderer:i?"svg":"canvas"});if(y.resize({width:d,height:p}),i){var m="";return M(c,function(_){var S=_.left-l,b=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new ct({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),M(c,function(_){var S=new gr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return yl(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return yl(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=Hs(n,e);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,u))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=Hs(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?vx(s,l,i):cx(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(oT,function(i){var n=function(a){var o=e.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&Tn(s,function(d){var p=et(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=k({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=a,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(i,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),M(kn,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),M(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),dx(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Rp(this.getDom(),Hf,"");var i=this,n=i._api,a=i._model;M(i._componentsViews,function(o){o.dispose(a,n)}),M(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete On[i.id]},t.prototype.resize=function(e){if(!this[At]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[zt]&&(a==null&&(a=this[zt].silent),n=!0,this[zt]=null),this[At]=!0;try{n&&mi(this),Ke.update.call(this,{type:"resize",animation:k({duration:0},e&&e.animation)})}catch(o){throw this[At]=!1,o}this[At]=!1,on.call(this,a),sn.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(V(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!Ru[e]){var n=Ru[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=k({},e);return i.type=kn[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(V(i)||(i={silent:!!i}),!!Bo[e.type]&&this._model){if(this[At]){this._pendingActions.push(e);return}var n=i.silent;_l.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&X.browser.weChat&&this._throttledZrFlush(),on.call(this,n),sn.call(this,n)}},t.prototype.updateLabelLayout=function(){de.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){mi=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),gl(h,!0),gl(h,!1),c.plan()},gl=function(h,c){for(var v=h._model,d=h._scheduler,p=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_c.get("hoverLayerThreshold")&&!X.node&&!X.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(h,c,v,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Pn(y))return;if(y instanceof ot&&hS(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}Pc=function(h){return new(function(c){B(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){wo(d,p),Jt(h)},v.prototype.leaveEmphasis=function(d,p){bo(d,p),Jt(h)},v.prototype.enterBlur=function(d){eS(d),Jt(h)},v.prototype.leaveBlur=function(d){$p(d),Jt(h)},v.prototype.enterSelect=function(d){qp(d),Jt(h)},v.prototype.leaveSelect=function(d){Kp(d),Jt(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(Hg))(h)},Iy=function(h){function c(v,d){for(var p=0;p=0)){kc.push(e);var a=ly.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function By(r,t){Ru[r]=t}function cT(r,t,e){var i=Ux("registerMap");i&&i(r,t,e)}var dT=_b;ni(Ff,qb);ni(ds,Kb);ni(ds,Qb);ni(Ff,fx);ni(ds,hx);ni(Ty,Wx);ky(Gg);Oy($x,Jw);By("default",Jb);ii({type:qr,event:qr,update:qr},Bt);ii({type:ja,event:ja,update:ja},Bt);ii({type:An,event:An,update:An},Bt);ii({type:to,event:to,update:to},Bt);ii({type:Ln,event:Ln,update:Ln},Bt);Ey("light",lx);Ey("dark",vy);var Oc=[],pT={registerPreprocessor:ky,registerProcessor:Oy,registerPostInit:uT,registerPostUpdate:fT,registerUpdateLifecycle:Vf,registerAction:ii,registerCoordinateSystem:hT,registerLayout:vT,registerVisual:ni,registerTransform:dT,registerLoading:By,registerMap:cT,registerImpl:Yx,PRIORITY:iT,ComponentModel:st,ComponentView:me,SeriesModel:Re,ChartView:ye,registerComponentModel:function(r){st.registerClass(r)},registerComponentView:function(r){me.registerClass(r)},registerSeriesModel:function(r){Re.registerClass(r)},registerChartView:function(r){ye.registerClass(r)},registerSubTypeDefaulter:function(r,t){st.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){C_(r,t)}};function Ye(r){if(F(r)){M(r,function(t){Ye(t)});return}at(Oc,r)>=0||(Oc.push(r),Z(r)&&(r={install:r}),r.install(pT))}function ln(r){return r==null?0:r.length||1}function Bc(r){return r}var gT=function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||Bc,this._newKeyGetter=n||Bc,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var un=V,Qe=H,xT=typeof Int32Array>"u"?Array:Int32Array,TT="e\0\0",Nc=-1,CT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],MT=["_approximateExtent"],Fc,Oa,fn,hn,bl,vn,xl,DT=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;Fy(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===le;if(l&&!n.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),F(a)?a=a.slice():un(a)&&(a=k({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,un(e)?k(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){un(t)?k(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?k(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;U1(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Qe(this.dimensions,this._getDimInfo,this),this.hostModel)),bl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];Z(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(Ju(arguments)))})},r.internalField=function(){Fc=function(t){var e=t._invertedIndicesMap;M(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new xT(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[e]=l}}}(),r}();function AT(r,t){Rf(r)||(r=Ef(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=Y(),a=[],o=IT(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Vy(o),l=i===r.dimensionsDefine,u=l?Hy(r):zy(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Y(f),c=new Qg(o),v=0;v0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function IT(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return M(t,function(a){var o;V(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function PT(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}var RT=function(){function r(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return r}();function ET(r){var t=r.get("coordinateSystem"),e=new RT(t),i=kT[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var kT={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",Yt).models[0],a=r.getReferringComponents("yAxis",Yt).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),_i(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),_i(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",Yt).models[0];t.coordSysDims=["single"],e.set("single",n),_i(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",Yt).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),_i(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),_i(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),_i(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function _i(r){return r.get("type")==="category"}function OT(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;BT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(M(a,function(m,_){z(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!i&&!u&&(i=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;M(a,function(m){m.coordDim===v&&p++});var g={name:h,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function BT(r){return!Fy(r.schema)}function zi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function NT(r,t){return zi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function FT(r,t){var e=r.get("coordinateSystem"),i=Pf.get(e),n;return t&&t.coordSysDims&&(n=H(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=_T(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function zT(r,t,e){var i,n;return e&&M(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function Wf(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;r?(a=!0,n=Ef(r)):(n=i.getSource(),a=n.sourceFormat===le);var o=ET(t),s=FT(t,o),l=e.useEncodeDefaulter,u=Z(l)?l:l?mt(Lw,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=AT(n,f),c=zT(h.dimensions,e.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),d=OT(t,{schema:h,store:v}),p=new DT(h,t);p.setCalculationInfo(d);var g=c!=null&&HT(n)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?n:v,null,g),p}function HT(r){if(r.sourceFormat===le){var t=VT(r.data||[]);return!F(ta(t))}}function VT(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Wo(Oe);var GT=0,Eu=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++GT}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&H(i,WT);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!z(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},r}();function WT(r){return V(r)&&r.value!=null?r.value:r+""}function ku(r){return r.type==="interval"||r.type==="log"}function YT(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=Mp(a/t);e!=null&&oi&&(o=n.interval=i);var s=n.intervalPrecision=Gy(o),l=n.niceTickExtent=[_t(Math.ceil(r[0]/o)*o,s),_t(Math.floor(r[1]/o)*o,s)];return UT(l,r),n}function Tl(r){var t=Math.pow(10,lf(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,_t(e*t)}function Gy(r){return ze(r)+2}function zc(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function UT(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),zc(r,0,t),zc(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function ps(r,t){return r>=t[0]&&r<=t[1]}function gs(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function ys(r,t){return r*(t[1]-t[0])+t[0]}var Yf=function(r){B(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new Eu({})),F(n)&&(n=new Eu({categories:H(n,function(a){return V(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:z(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),ps(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),gs(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(ys(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Oe);Oe.registerClass(Yf);var zr=_t,Xi=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return ps(e,this._extent)},t.prototype.normalize=function(e){return gs(e,this._extent)},t.prototype.scale=function(e){return ys(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Gy(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;n[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(e?s.push({value:zr(f+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function Xy(r){var t=ZT(r),e=[];return M(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=yt(i.get("barWidth"),s),p=yt(i.get("barMaxWidth"),s),g=yt(i.get("barMinWidth")||(qy(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Uf(a),stackId:Yy(i)})}),Zy(e)}function Zy(r){var t={};M(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var c=i.barMinWidth;c&&(l[u].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=vt(a).length;s=Math.max(35-l*4,15)+"%"}var u=yt(s,o),f=yt(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),M(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&mS&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,p;M(a,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;M(a,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function $T(r,t,e){if(r&&t){var i=r[Uf(t)];return i}}function qT(r,t){var e=Uy(r,t),i=Xy(e);M(e,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Yy(n),u=i[Uf(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function KT(r){return{seriesType:r,plan:Bf(),reset:function(t){if($y(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=zi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=QT(n,a),d=qy(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&He(b*3),x=d&&l&&He(b*3),C=d&&He(b),D=i.master.getRect(),A=c?D.width:D.height,T,L=S.getStore(),I=0;(T=_.next())!=null;){var P=L.get(h?g:o,T),R=L.get(s,T),E=v,G=void 0;h&&(G=+P-L.get(o,T));var O=void 0,N=void 0,W=void 0,q=void 0;if(c){var J=i.dataToPoint([P,R]);if(h){var lt=i.dataToPoint([G,R]);E=lt[0]}O=E,N=J[1]+m,W=J[0]-E,q=y,Math.abs(W)0?e:1:e))}var JT=function(r,t,e,i){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var s=Ba.length,l=Math.min(JT(Ba,this._approxInterval,0,s),s-1);this._interval=Ba[l][1],this._minLevelUnit=Ba[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return ft(e)?e:+We(e)},t.prototype.contain=function(e){return ps(this.parse(e),this._extent)},t.prototype.normalize=function(e){return gs(this.parse(e),this._extent)},t.prototype.scale=function(e){return ys(e,this._extent)},t.type="time",t}(Xi),Ba=[["second",Tf],["minute",Cf],["hour",Rn],["quarter-day",Rn*6],["half-day",Rn*12],["day",ae*1.2],["half-week",ae*3.5],["week",ae*7],["month",ae*31],["quarter",ae*95],["half-year",Lv/2],["year",Lv]];function jT(r,t,e,i){var n=We(t),a=We(e),o=function(d){return Pv(n,d,i)===Pv(a,d,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function tC(r,t){return r/=ae,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function eC(r){var t=30*ae;return r/=t,r>6?6:r>3?3:r>2?2:1}function rC(r){return r/=Rn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Hc(r,t){return r/=t?Cf:Tf,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function iC(r){return Mp(r)}function nC(r,t,e){var i=new Date(r);switch(Ei(t)){case"year":case"month":i[Tg(e)](0);case"day":i[Cg(e)](1);case"hour":i[Mg(e)](0);case"minute":i[Dg(e)](0);case"second":i[Ag(e)](0),i[Lg(e)](0)}return i.getTime()}function aC(r,t,e,i){var n=1e4,a=bg,o=0;function s(A,T,L,I,P,R,E){for(var G=new Date(T),O=T,N=G[I]();O1&&R===0&&L.unshift({value:L[0].value-O})}}for(var R=0;R=i[0]&&m<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(g),h>_||r===a[v]))break}f=[]}}}for(var S=Ct(H(u,function(A){return Ct(A,function(T){return T.value>=i[0]&&T.value<=i[1]&&!T.notAdd})}),function(A){return A.length>0}),b=[],w=S.length-1,v=0;v0;)a*=10;var s=[_t(lC(i[0]/a)*a),_t(sC(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Bn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=he(e)/he(this.base),ps(e,this._extent)},t.prototype.normalize=function(e){return e=he(e)/he(this.base),gs(e,this._extent)},t.prototype.scale=function(e){return e=ys(e,this._extent),Na(this.base,e)},t.type="log",t}(Oe),Qy=Xf.prototype;Qy.getMinorTicks=Bn.getMinorTicks;Qy.getLabel=Bn.getLabel;function Fa(r,t){return oC(r,ze(t))}Oe.registerClass(Xf);var uC=function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[hC[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=fC[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),fC={min:"_determinedMin",max:"_determinedMax"},hC={min:"_dataMin",max:"_dataMax"};function Jy(r,t,e){var i=r.rawExtentInfo;return i||(i=new uC(r,t,e),r.rawExtentInfo=i,i)}function za(r,t){return t==null?null:so(t)?NaN:r.parse(t)}function jy(r,t){var e=r.type,i=Jy(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=Uy("bar",o),l=!1;if(M(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Xy(s),f=vC(n,a,t,u);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function vC(r,t,e,i){var n=e.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=$T(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;M(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function Gc(r,t){var e=t,i=jy(r,e),n=i.extent,a=e.get("splitNumber");r instanceof Xf&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function cC(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Yf({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Ky({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Oe.getClass(t)||Xi)}}function dC(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function Zi(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}}(t):z(t)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a??"");return o}}(t):Z(t)?function(i){return function(n,a){return e!=null&&(a=n.value-e),i(Zf(r,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function Zf(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function pC(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof Yf?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=Zi(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;fr[1]&&(r[1]=n[1])})}var mC=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Qn=St();function rm(r,t){var e=H(t,function(i){return r.scale.parse(i)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function _C(r){var t=r.getLabelModel().get("customValues");if(t){var e=Zi(r),i=r.scale.getExtent(),n=rm(r,t),a=Ct(n,function(o){return o>=i[0]&&o<=i[1]});return{labels:H(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?wC(r):xC(r)}function SC(r,t){var e=r.getTickModel().get("customValues");if(e){var i=r.scale.getExtent(),n=rm(r,e);return{ticks:Ct(n,function(a){return a>=i[0]&&a<=i[1]})}}return r.type==="category"?bC(r,t):{ticks:H(r.scale.getTicks(),function(a){return a.value})}}function wC(r){var t=r.getLabelModel(),e=im(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function im(r,t){var e=nm(r,"labels"),i=$f(t),n=am(e,i);if(n)return n;var a,o;return Z(i)?a=lm(r,i):(o=i==="auto"?TC(r):i,a=sm(r,o)),om(e,i,{labels:a,labelCategoryInterval:o})}function bC(r,t){var e=nm(r,"ticks"),i=$f(t),n=am(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),Z(i))a=lm(r,i,!0);else if(i==="auto"){var s=im(r,r.getLabelModel());o=s.labelCategoryInterval,a=H(s.labels,function(l){return l.tickValue})}else o=i,a=sm(r,o,!0);return om(e,i,{ticks:a,tickCategoryInterval:o})}function xC(r){var t=r.scale.getTicks(),e=Zi(r);return{labels:H(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function nm(r,t){return Qn(r)[t]||(Qn(r)[t]=[])}function am(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),c=0,v=0;l<=a[1];l+=s){var d=0,p=0,g=of(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,c=Math.max(c,d,7),v=Math.max(v,p,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Qn(r.model),b=r.getExtent(),w=S.lastAutoInterval,x=S.lastTickCount;return w!=null&&x!=null&&Math.abs(w-_)<=1&&Math.abs(x-o)<=1&&w>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function MC(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function sm(r,t,e){var i=Zi(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=tm(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);v&&d-l!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:i(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function lm(r,t,e){var i=r.scale,n=Zi(r),a=[];return M(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),a}var Wc=[0,1],DC=function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Tp(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(i=i.slice(),Yc(i,n.count())),It(t,Wc,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),Yc(i,n.count()));var a=It(t,i,Wc,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=SC(this,e),n=i.ticks,a=H(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return AC(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=H(i,function(a){return H(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return _C(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(){return CC(this)},r}();function Yc(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function AC(r,t,e,i){var n=t.length;if(!r.onBand||e||!n)return;var a=r.getExtent(),o,s;if(n===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;M(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=_t(v),d=_t(d),h?v>d:v0){_(D*C,0,o);var A=D+w;A<0&&S(-A*C,1)}else S(-w*C,1)}}function _(w,x,C){w!==0&&(u=!0);for(var D=x;D0)for(var A=0;A0;A--){var P=C[A-1]*I;_(-P,A,o)}}}function b(w){var x=w<0?-1:1;w=Math.abs(w);for(var C=Math.ceil(w/(o-1)),D=0;D0?_(C,0,D+1):_(-C,o-D-1,o),w-=C,w<=0)return}return u}function _2(r,t,e,i){return um(r,"x","width",t,e)}function S2(r,t,e,i){return um(r,"y","height",t,e)}function IC(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new it(0,0,0,0);function i(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)C=g.__endIndex;else for(var A=v.dpr,T=0;T0&&t>n[0]){for(l=0;lt);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n0?Ha:0),this._needsManuallyCompositing),f.__builtin__||Qu("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),n.__dirty&Kt&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?tt(i[t],e,!0):i[t]=e;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Re);function qf(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=Fi(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o=0&&i.push(t[a])}return i.join(" ")}var Kf=function(r){B(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o){this.removeAll();var s=pr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=BC,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){wo(this.childAt(0))},t.prototype.downplay=function(){bo(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):Zt(c,v,s,i),ug(c)}if(this._updateCommon(e,i,l,n,a),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Pe(c,v,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,p,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=is(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=cy(e.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var w=e.getItemVisual(i,"style"),x=w.fill;if(s instanceof gr){var C=s.style;s.useStyle(k({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(k({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(i,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var T=o&&o.useNameLabel;rs(s,p,{labelFetcher:l,labelDataIndex:i,defaultText:L,inheritColor:x,defaultOpacity:w.opacity});function L(R){return T?e.getName(R):qf(e,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),To(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=et(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Mo(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Mo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return Dx(e.getItemVisual(i,"symbolSize"))},t}(bt);function BC(r,t){this.parent.drift(r,t)}function Ml(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Zc(r){return r!=null&&!V(r)&&(r={isIgnore:r}),r||{}}function $c(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:is(t),cursorStyle:t.get("cursor")}}var NC=function(){function r(t){this.group=new bt,this._SymbolCtor=t||Kf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Zc(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=$c(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var c=f(h);if(Ml(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!Ml(t,d,h,e)){i.remove(v);return}var p=t.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)i.remove(v),v=new o(t,h,l,u),v.setPosition(d);else{v.updateData(t,h,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):Zt(v,y,n)}i.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){i.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=$c(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=Zc(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=i[0]:i[1]<0&&(e=i[1]),e}function vm(r,t,e,i){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function zC(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,n){e.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function HC(r,t,e,i,n,a,o,s){for(var l=zC(r,t),u=[],f=[],h=[],c=[],v=[],d=[],p=[],g=hm(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||p<0)break;if(Kr(y,m)){if(l){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var b=p+a,w=t[b*2],x=t[b*2+1];w===y&&x===m&&g=i||Kr(w,x))v=y,d=m;else{A=w-u,T=x-f;var P=y-u,R=w-y,E=m-f,G=x-m,O=void 0,N=void 0;if(s==="x"){O=Math.abs(P),N=Math.abs(R);var W=A>0?1:-1;v=y-W*O*o,d=m,L=y+W*N*o,I=m}else if(s==="y"){O=Math.abs(E),N=Math.abs(G);var q=T>0?1:-1;v=y,d=m-q*O*o,L=y,I=m+q*N*o}else O=Math.sqrt(P*P+E*E),N=Math.sqrt(R*R+G*G),D=N/(N+O),v=y-A*o*(1-D),d=m-T*o*(1-D),L=y+A*o*D,I=m+T*o*D,L=Je(L,je(w,y)),I=Je(I,je(x,m)),L=je(L,Je(w,y)),I=je(I,Je(x,m)),A=L-y,T=I-m,v=y-A*O/N,d=m-T*O/N,v=Je(v,je(u,y)),d=Je(d,je(f,m)),v=je(v,Je(u,y)),d=je(d,Je(f,m)),A=y-v,T=m-d,L=y+A*N/O,I=m+T*N/O}r.bezierCurveTo(h,c,v,d,y,m),h=L,c=I}else r.lineTo(y,m)}u=y,f=m,p+=a}return g}var cm=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),VC=function(r){B(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cm},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Kr(n[o*2-2],n[o*2-1]);o--);for(;a=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=a[h++],d=a[h++],p=a[h++],g=a[h++],y=a[h++],m=a[h++];var b=u?ho(s,v,p,y,e,f):ho(l,d,g,m,e,f);if(b>0)for(var w=0;w=0){var S=u?wt(l,d,g,m,x):wt(s,v,p,y,x);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(ot),GC=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(cm),WC=function(r){B(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new GC},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Kr(n[s*2-2],n[s*2-1]);s--);for(;ot){a?e.push(o(a,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),a=l}return e}function ZC(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=t.getAxis(n),u=H(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=XC(u,n==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=c[0].coord-d,g=c[v-1].coord+d,y=g-p;if(y<.001)return"transparent";M(c,function(_){_.offset=(_.coord-p)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new sg(0,0,0,0,c,!0);return m[n]=p,m[n+"2"]=g,m}}}function $C(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(n&&qC(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function qC(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;oi)return!1;return!0}function KC(r,t){return isNaN(r)||isNaN(t)}function QC(r){for(var t=r.length/2;t>0&&KC(r[t*2-2],r[t*2-1]);t--);return t-1}function jc(r,t){return[r[t*2],r[t*2+1]]}function JC(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function gm(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var N=d.getState("emphasis").style;N.lineWidth=+d.style.lineWidth+1}et(d).seriesIndex=e.seriesIndex,To(d,E,G,O);var W=Jc(e.get("smooth")),q=e.get("smoothMonotone");if(d.setShape({smooth:W,smoothMonotone:q,connectNulls:x}),p){var J=s.getCalculationInfo("stackedOnSeries"),lt=0;p.useStyle(rt(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),J&&(lt=Jc(J.get("smooth"))),p.setShape({smooth:W,stackedOnSmooth:lt,smoothMonotone:q,connectNulls:x}),vu(p,e,"areaStyle"),et(p).seriesIndex=e.seriesIndex,To(p,E,G,O)}var ht=this._changePolyState;s.eachItemGraphicEl(function(dt){dt&&(dt.onHoverStateChange=ht)}),this._polyline.onHoverStateChange=ht,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,i){et(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,n,a){var o=e.getData(),s=Jr(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;u=new Kf(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ye.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=Jr(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ye.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;uv(this._polyline,e),i&&uv(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new VC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new WC({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");Z(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=Z(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=i.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var w=n;a?(y=w.x,m=w.x+w.width,_=v.x):(y=w.y+w.height,m=w.y,_=v.y)}var x=m===y?0:(_-y)/(m-y);l&&(x=1-x);var C=Z(h)?h(d):f*x+c,D=p.getSymbolPath(),A=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(gm(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Nt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=QC(l);f>=0&&(rs(s,is(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?fm(o,v):qf(o,h)},enableTextSetter:!0},jC(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=n.getLayout("points"),c=n.hostModel,v=c.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=i.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),w=(y?0:-p)*(m?-1:1),x=y?"x":"y",C=JC(h,S,x),D=C.range,A=D[1]-D[0],T=void 0;if(A>=1){if(A>1&&!v){var L=jc(h,D[0]);u.attr({x:L[0]+b,y:L[1]+w}),o&&(T=c.getRawValue(D[0]))}else{var L=f.getPointOn(S,x);L&&u.attr({x:L[0]+b,y:L[1]+w});var I=c.getRawValue(D[0]),P=c.getRawValue(D[1]);o&&(T=Ep(n,d,I,P,C.t))}a.lastFrameIndex=D[0]}else{var R=e===1||a.lastFrameIndex>0?D[0]:0,L=jc(h,R);o&&(T=c.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+w})}if(o){var E=ia(u);typeof E.setLabelText=="function"&&E.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=HC(this._data,e,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(d=tr(c.stackedOnCurrent,c.current,n,o,l),v=tr(c.current,null,n,o,l),g=tr(c.stackedOnNext,c.next,n,o,l),p=tr(c.next,null,n,o,l)),Qc(v,p)>3e3||f&&Qc(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=v;var y={shape:{points:p}};c.current!==v&&(y.shape.__points=c.next),u.stopAnimation(),Zt(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Zt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=e.getItemGraphicEl(_[S].idx1);w&&m.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,C=0;Ct&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):a==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;z(a)?d=rM[a]:Z(a)&&(d=a),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,d,iM))}}}}}function b2(r){r.registerChartView(tM),r.registerSeriesModel(OC),r.registerLayout(eM("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ym("line"))}var Nu=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return Wf(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(n)M(a.getAxes(),function(c,v){if(c.type==="category"&&i!=null){var d=c.getTicksCoords(),p=c.getTickModel().get("alignWithLabel"),g=o[v],y=i[v]==="x1"||i[v]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;bg){_=(w+m)/2;break}b===1&&(S=x-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Re);Re.registerClass(Nu);var nM=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Wf(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,n){return n.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=as(Nu.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Nu),aM=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),td=function(r){B(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new aM},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,h=i.endAngle,c=i.clockwise,v=Math.PI*2,d=c?h-fMath.PI/2&&fs)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,i,n,a){if(this._isOrderChangedWithinSameData(e,i,n)){var o=this._dataSort(e,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,i,n){var a=i.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){gu(a,e,et(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ye),ed={cartesian2d:function(r,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,a=r.y+r.height,o=Al(t.x,r.x),s=Ll(t.x+t.width,n),l=Al(t.y,r.y),u=Ll(t.y+t.height,a),f=sn?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var n=Ll(t.r,r.r),a=Al(t.r0,r.r0);t.r=n,t.r0=a;var o=n-a<0;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},rd={cartesian2d:function(r,t,e,i,n,a,o,s,l){var u=new ct({shape:k({},i),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,t,e,i,n,a,o,s,l){var u=!n&&l?td:Yi,f=new u({shape:i,z2:1});f.name="item";var h=mm(n);if(f.calculateTextPosition=oM(h,{isRoundCap:u===td}),a){var c=f.shape,v=n?"r":"endAngle",d={};c[v]=n?i.r0:i.startAngle,d[v]=i[v],(s?Zt:Pe)(f,{shape:d},a)}return f}};function hM(r,t){var e=r.get("realtimeSort",!0),i=t.getBaseAxis();if(e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function id(r,t,e,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Zt:Pe)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Zt:Pe)(e,{shape:u},f,n)}function nd(r,t){for(var e=0;e0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,t,e){var i=r.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function dM(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function mm(r){return function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}}(r)}function od(r,t,e,i,n,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=lM(i.getModel("itemStyle"),f,!0);k(f,h),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=is(i);rs(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:qf(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=i.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,sM(r,g==="outside"?v:g,mm(o),i.get(["label","rotate"]))}rw(p,d,a.getRawValue(e),function(m){return fm(t,m)});var y=i.getModel(["emphasis"]);To(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),vu(r,i),dM(n)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function pM(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var gM=function(){function r(){}return r}(),sd=function(r){B(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new gM},t.prototype.buildPath=function(e,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function yM(r,t,e){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function _m(r,t,e){if(Qf(e,"cartesian2d")){var i=t,n=e.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=e.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function mM(r,t,e){var i=r.type==="polar"?Yi:ct;return new i({shape:_m(t,e,r),silent:!0,z2:0})}function x2(r){r.registerChartView(fM),r.registerSeriesModel(nM),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,mt(qT,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,KT("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ym("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var _M=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(st),Fu=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Yt).models[0]},t.type="cartesian2dAxis",t}(st);Ee(Fu,mC);var Sm={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},SM=tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Sm),Jf=tt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Sm),wM=tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Jf),bM=rt({logBase:10},Jf);const xM={category:SM,value:Jf,time:wM,log:bM};var TM={value:1,category:1,time:1,log:1};function fd(r,t,e,i){M(TM,function(n,a){var o=tt(tt({},xM[a],!0),i,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=Xn(this),v=c?aa(f):{},d=h.getTheme();tt(f,d.get(a+"Axis")),tt(f,this.getDefaultOption()),f.type=hd(f),c&&Ni(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Eu.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",hd)}function hd(r){return r.type||(r.data?"category":"value")}var CM=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return H(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ct(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),zu=["x","y"];function vd(r){return r.type==="interval"||r.type==="time"}var MM=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=zu,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!vd(e)||!vd(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-n[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=rf([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var n=this.dataToPoint(e),a=this.dataToPoint(i),o=this.getArea(),s=new it(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,n){n=n||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return oe(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(e[0]),u=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return oe(n,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(e[0]),i),n[1]=o.coordToData(o.toLocalCoord(e[1]),i),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(i[0],i[1])-a+e,l=Math.max(n[0],n[1])-o+e;return new it(a,o,s,l)},t}(CM),DM=function(r){B(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(DC);function Hu(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Fn(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function cd(r){return r.get("coordinateSystem")==="cartesian2d"}function dd(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,Yt).models[0];t[i]=a}),t}var Il=Math.log;function AM(r,t,e){var i=Xi.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,!0),o=n.length-1,s=i.getInterval.call(e),l=jy(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=Il(r.base);u=[Il(u[0])/c,Il(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=i.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var d=i.getInterval.call(r),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Tl(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Tl(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=_t(g-m),p<0&&u[0]>=0?(p=0,g=_t(m)):g>0&&u[1]<=0&&(g=0,p=-_t(m))}var _=(n[0].value-a[0].value)/s,S=(n[o].value-a[o].value)/s;i.setExtent.call(r,p+d*_,g+d*S),i.setInterval.call(r,d),(_||S)&&i.setNiceExtent.call(r,p+d,g-d)}var LM=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=zu,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=vt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,p=v.scale;ku(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Gc(p,d),ku(p)&&(s=v))}f.length&&(s||(s=f.pop(),Gc(s.scale,s.model)),M(f,function(g){AM(g.scale,g.model,s.scale)}))}}n(i.x),n(i.y);var a={};M(i.x,function(o){pd(i,"y",o,a)}),M(i.y,function(o){pd(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),a=!i&&t.get("containLabel"),o=ri(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=pC(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),IM(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}V(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n0?"top":"bottom",a="center"):_o(n-ar)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),yd={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(oe(s,s,o),oe(l,l,o));var f=k({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new dr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Wn(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);z(c)&&(c=[c,c]),(z(v)||ft(v))&&(v=[v,v]);var d=cy(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=pr(c[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var n=EM(e,i,t,r),a=OM(e,i,t,r);if(RM(t,a,n),kM(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=LC(H(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));IC(o)}},axisName:function(r,t,e,i){var n=Fn(r.axisName,t.get("name"));if(n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,_d(a)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*ar/180);var d;_d(a)?c=ur.innerTextLayout(r.rotation,v??r.rotation,o):(c=PM(r.rotation,a,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Fn(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Nt({x:h[0],y:h[1],rotation:c.rotation,silent:ur.isLabelSilent(t),style:ti(s,{text:n,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(jo({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var S=ur.makeAxisEventDataBase(t);S.targetType="axisName",S.name=n,et(_).eventData=S}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function PM(r,t,e,i){var n=Cp(e-r),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return _o(n-ar/2)?(o=l?"bottom":"top",a="center"):_o(n-ar*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",nar/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function RM(r,t,e){if(!tm(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];i===!1?(jt(a),jt(u)):md(a,o)&&(i?(jt(o),jt(f)):(jt(a),jt(u))),n===!1?(jt(s),jt(h)):md(l,s)&&(n?(jt(l),jt(c)):(jt(s),jt(h)))}}function jt(r){r&&(r.ignore=!0)}function md(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=tf([]);return ef(n,n,-r.rotation),e.applyTransform(Ii([],n,r.getLocalTransform())),i.applyTransform(Ii([],n,t.getLocalTransform())),e.intersect(i)}}function _d(r){return r==="middle"||r==="center"}function wm(r,t,e,i,n){for(var a=[],o=[],s=[],l=0;l=0||r===t}function VM(r){var t=jf(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=Vu(e);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;El(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(a),c=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);El(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!xd(this._zr,"globalPan")){var i=e.pinchScale>1?1.1:1/1.1;El(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(_e);function El(r,t,e,i,n){r.pointerChecker&&r.pointerChecker(i,n.originX,n.originY)&&(Bi(i.event),Cm(r,t,e,i,n))}function Cm(r,t,e,i,n){n.isAvailableBehavior=U(ao,null,e,i),r.trigger(t,n)}function ao(r,t,e){var i=e[r];return!r||i&&(!z(i)||t.event[i+"Key"])}function ms(r,t,e,i,n,a){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Si(n,[0,o])),a!=null&&(a=Math.max(a,n??0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=Si(s,[0,o]),n=a=Si(s,[n,a]),i=0}t[0]=Si(t[0],e),t[1]=Si(t[1],e);var l=kl(t,i);t[i]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[i]=Si(t[i],f);var h;return h=kl(t,i),n!=null&&(h.sign!==l.sign||h.spana&&(t[1-i]=t[i]+h.sign*a),t}function kl(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Si(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Vr=St(),Td=Q,Ol=U,JM=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new bt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);else{var c=mt(Cd,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}Dd(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,a=n.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var l=jf(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=Vr(t).pointerEl=new JS[a.type](Td(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=Vr(t).labelEl=new Nt(Td(e.label));t.add(a),Md(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=Vr(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=Vr(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),Md(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=wf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Bi(u.event)},onmousedown:Ol(this._onHandleDragMove,this,0,0),drift:Ol(this._onHandleDragMove,this),ondragend:Ol(this._onHandleDragEnd,this)}),i.add(n)),Dd(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");F(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,cs(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Cd(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Bl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Bl(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Bl(n)),Vr(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Po(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r}();function Cd(r,t,e,i){Mm(Vr(e).lastProp,i)||(Vr(e).lastProp=i,t?Zt(e,i,r):(e.stopAnimation(),e.attr(i)))}function Mm(r,t){if(V(r)&&V(t)){var e=!0;return M(t,function(i,n){e=e&&Mm(r[n],i)}),!!e}else return r===t}function Md(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Bl(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Dd(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}function jM(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function tD(r,t,e,i,n){var a=e.get("value"),o=Dm(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=na(s.get("padding")||0),u=s.getFont(),f=of(o,u),h=n.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var p=n.verticalAlign;p==="bottom"&&(h[1]-=v),p==="middle"&&(h[1]-=v/2),eD(h,c,v,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:ti(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function eD(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Dm(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Zf(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),z(o)?a=o.replace("{value}",a):Z(o)&&(a=o(s))}return a}function Am(r,t,e){var i=Xr();return ef(i,i,e.rotation),ql(i,i,e.position),Yn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function rD(r,t,e,i,n,a){var o=ur.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),tD(t,i,n,a,{position:Am(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function iD(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function nD(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function M2(r,t,e,i,n,a){return{cx:r,cy:t,r0:e,r:i,startAngle:n,endAngle:a,clockwise:!0}}var aD=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=Ad(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=jM(a),v=oD[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=Hu(l.model,n);rD(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=Hu(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Am(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Ad(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(JM);function Ad(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var oD={line:function(r,t,e){var i=iD([t,e[0]],[t,e[1]],Ld(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:nD([t-i/2,e[0]],[i,n],Ld(r))}}};function Ld(r){return r.dim==="x"?0:1}var sD=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(st),Ve=St(),lD=M;function Lm(r,t,e){if(!X.node){var i=t.getZr();Ve(i).records||(Ve(i).records={}),uD(i,t);var n=Ve(i).records[r]||(Ve(i).records[r]={});n.handler=e}}function uD(r,t){if(Ve(r).initialized)return;Ve(r).initialized=!0,e("click",mt(Id,"click")),e("mousemove",mt(Id,"mousemove")),e("globalout",hD);function e(i,n){r.on(i,function(a){var o=vD(t);lD(Ve(r).records,function(s){s&&n(s,a,o.dispatchAction)}),fD(o.pendings,t)})}}function fD(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function hD(r,t,e){r.handler("leave",null,e)}function Id(r,t,e,i){t.handler(r,e,i)}function vD(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function Wu(r,t){if(!X.node){var e=t.getZr(),i=(Ve(e).records||{})[r];i&&(Ve(e).records[r]=null)}}var cD=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Lm("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){Wu("axisPointer",i)},t.prototype.dispose=function(e,i){Wu("axisPointer",i)},t.type="axisPointer",t}(me);function Im(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Jr(a,r);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(a.getValues(H(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Pd=St();function dD(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||U(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){oo(n)&&(n=Im({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=oo(n),u=a.axesInfo,f=s.axesInfo,h=i==="leave"||oo(n),c={},v={},d={list:[],map:{}},p={showPointer:mt(gD,v),showTooltip:mt(yD,d)};M(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);M(s.coordSysAxesInfo[m],function(S,b){var w=S.axis,x=wD(u,S);if(!h&&_&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=w.pointToData(n)),C!=null&&Rd(S,C,p,!1,c)}})});var g={};return M(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,b){var w=v[b];if(S!==y&&w){var x=w.value;_.mapper&&(x=y.axis.scale.parse(_.mapper(x,Ed(S),Ed(y)))),g[y.key]=x}})}),M(g,function(y,m){Rd(f[m],y,p,!0,c)}),mD(v,f,c),_D(d,n,r,o),SD(f,o,e),c}}function Rd(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=pD(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&k(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function pD(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,n=h,a.length=0),M(c,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function gD(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function yD(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=Jn(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function mD(r,t,e){var i=e.axesInfo=[];M(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function _D(r,t,e,i){if(oo(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function SD(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=Pd(i)[n]||{},o=Pd(i)[n]={};M(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];M(a,function(u,f){!o[f]&&l.push(u)}),M(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function wD(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function Ed(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function oo(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Pm(r){bm.registerAxisPointerClass("CartesianAxisPointer",aD),r.registerComponentModel(sD),r.registerComponentView(cD),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!F(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=BM(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},dD)}function D2(r){Ye(KM),Ye(Pm)}var kd=["x","y","radius","angle","single"],bD=["cartesian2d","polar","singleAxis"];function xD(r){var t=r.get("coordinateSystem");return at(bD,t)>=0}function or(r){return r+"Axis"}function TD(r,t){var e=Y(),i=[],n=Y();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!n.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){n.set(f.uid,!0),i.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return i}function Rm(r){var t=r.ecModel,e={infoList:[],infoMap:Y()};return r.eachTargetAxis(function(i,n){var a=t.getComponent(or(i),n);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(a)}}}),e}var Nl=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Fo=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,i,n){var a=Od(e);this.settledOption=a,this.mergeDefaultAndTheme(e,n),this._doInit(a)},t.prototype.mergeOption=function(e){var i=Od(e);tt(this.option,e,!0),tt(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(i[a[0]]=n[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=Y(),n=this._fillSpecifiedTargetAxis(i);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return M(kd,function(n){var a=this.getReferringComponents(or(n),Y_);if(a.specified){i=!0;var o=new Nl;M(a.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var n=this.ecModel,a=!0;if(a){var o=i==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var h=u[0];if(h){var c=new Nl;if(c.add(h.componentIndex),e.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",Yt).models[0];v&&M(u,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Yt).models[0]&&c.add(d.componentIndex)})}}}a&&M(kd,function(u){if(a){var f=n.findComponents({mainType:or(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new Nl;h.add(f[0].componentIndex),e.set(u,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(i){!e&&(e=i)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var i=this._rangePropMode,n=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":n?i[o]=n[o]:s&&(i[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,n){e==null&&(e=this.ecModel.getComponent(or(i),n))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(n,a){M(n.indexList,function(o){e.call(i,a,o)})})},t.prototype.getAxisProxy=function(e,i){var n=this.getAxisModel(e,i);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,i){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[i])return this.ecModel.getComponent(or(e),i)},t.prototype.setRawRange=function(e){var i=this.option,n=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(i[a[0]]=n[a[0]]=e[a[0]],i[a[1]]=n[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;M(["start","startValue","end","endValue"],function(n){i[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,i){if(e==null&&i==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,i).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var i,n=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else Ti(f,function(v){if(a==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});Ti(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;Ti(["min","max"],function(n){var a=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=It(i[0]+o,i,[0,100],!0):a!=null&&(o=It(a,[0,100],i,!0)-i[0]),t[n+"Span"]=a,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var n=Tp(i,[0,500]);n=Math.min(n,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+i[0].toFixed(n)),e[1]!==100&&a.setDeterminedMinMax("max",+i[1].toFixed(n)),a.freeze()}},r}();function MD(r,t,e){var i=[1/0,-1/0];Ti(e,function(o){yC(i,o.getData(),t)});var n=r.getAxisModel(),a=Jy(n.axis.scale,n,i).calculate();return[a.min,a.max]}var DD={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(or(o),s);n(o,s,l,a)})})}t(function(n,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new CD(n,a,s,r),e.push(o.__dzAxisProxy))});var i=Y();return M(e,function(n){M(n.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(i,n){e.getAxisProxy(i,n).reset(e)}),e.eachTargetAxis(function(i,n){e.getAxisProxy(i,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var n=i.getDataPercentWindow(),a=i.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:a[0],endValue:a[1]})}})}};function AD(r){r.registerAction("dataZoom",function(t,e){var i=TD(e,t);M(i,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Nd=!1;function km(r){Nd||(Nd=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,DD),AD(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function A2(r,t,e){var i=t.getBoxLayoutParams(),n=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=ri(i,a,n);Oi(t.get("orient"),r,t.get("itemGap"),o.width,o.height),xw(r,i,a,n)}function LD(r,t){var e=na(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new ct({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var ID=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(st);function Om(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Bm(r){if(X.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'
'}function ND(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=X.transformSupported?","+eh+i:",left"+i+",top"+i),ED+":"+n}function Fd(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!X.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=X.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+eh+":"+o+";":[["top",0],["left",0],[Nm,o]]}function FD(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont());var n=K(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),M(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function zD(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=ny(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),t&&n&&i.push(ND(n,e)),a&&i.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,p=Pg(d),g=r.get(p);g!=null&&i.push(d+":"+g+(v==="color"?"":"px"))}),i.push(FD(f)),h!=null&&i.push("padding:"+na(h).join("px ")+"px"),i.join(";")+";"}function zd(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&m0(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var HD=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,X.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&(z(a)?document.querySelector(a):Nn(a)?a:Z(a)&&a(t.getDom()));zd(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();ee(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=RD(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=kD+zD(t,!this._firstShow,this._longHide)+Fd(a[0],a[1],!0)+("border-color:"+ei(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(z(a)&&i.get("trigger")==="item"&&!Om(i)&&(s=BD(i,n,a)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||X.node||!n.getDom())){var o=Gd(a,n);this._ticket="";var s=a.dataByCoordSys,l=ZD(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=GD;f.x=a.x,f.y=a.y,f.update(),et(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var h=Im(a,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Gd(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),h=cn([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=et(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Tn(n,function(f){if(et(f).dataIndex!=null)return l=f,!0;if(et(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,i):u?this._showComponentItemTooltip(e,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=U(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=cn([i.tooltipOption],a),l=this._renderMode,u=[],f=$n("section",{blocks:[],noHeader:!0}),h=[],c=new vl;M(e,function(m){M(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var w=Dm(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),x=$n("section",{header:w,noHeader:!De(w),sortBlocks:!0,blocks:[]});f.blocks.push(x),M(_.seriesDataIndices,function(C){var D=n.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,T=D.getDataParams(A);if(!(T.dataIndex<0)){T.axisDim=_.axisDim,T.axisIndex=_.axisIndex,T.axisType=_.axisType,T.axisId=_.axisId,T.axisValue=Zf(S.axis,{value:b}),T.axisValueLabel=w,T.marker=c.makeTooltipMarker("item",ei(T.color),l);var L=Kv(D.formatTooltip(A,!0,null)),I=L.frag;if(I){var P=cn([D],a).get("valueFormatter");x.blocks.push(P?k({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(T)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),p=ec(f,c,l,d,n.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?` + +`:"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=et(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,p=cn([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new vl;y.marker=m.makeTooltipMarker("item",ei(y.color),v);var _=Kv(u.formatTooltip(f,!1,h)),S=p.get("order"),b=p.get("valueFormatter"),w=_.frag,x=w?ec(b?k({valueFormatter:b},w):w,m,v,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,x,y,C,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=et(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=Q(l),l.content=Ht(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=e.positionDefault,d=cn(h,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",y=new vl;this._showOrMove(d,function(){var m=Q(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,i,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(c)if(z(c)){var g=e.ecModel.get("useUTC"),y=F(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=os(y.axisValue,v,g)),v=Rg(v,n,!0)}else if(Z(c)){var _=U(function(S,b){S===this._ticket&&(h.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||F(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!F(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Z(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),F(i))n=yt(i[0],u),a=yt(i[1],f);else if(V(i)){var p=i;p.width=h[0],p.height=h[1];var g=ri(p,{width:u,height:f});n=g.x,a=g.y,c=null,v=null}else if(z(i)&&l){var y=XD(i,d,h,e.get("borderWidth"));n=y[0],a=y[1]}else{var y=YD(n,a,o,u,f,c?null:20,v?null:20);n=y[0],a=y[1]}if(c&&(n-=Wd(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Wd(v)?h[1]/2:v==="bottom"?h[1]:0),Om(e)){var y=UD(n,a,o,u,f);n=y[0],a=y[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&M(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&M(u,function(c,v){var d=h[v]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&M(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&M(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=i[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){X.node||!i.getDom()||(Po(this,"_updatePosition"),this._tooltipContent.dispose(),Wu("itemTooltip",i))},t.type="tooltip",t}(me);function cn(r,t,e){var i=t.ecModel,n;e?(n=new pt(e,i,i),n=new pt(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof pt&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(n=new pt(o,n,i)))}return n}function Gd(r,t){return r.dispatchAction||U(t.dispatchAction,t)}function YD(r,t,e,i,n,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function UD(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function XD(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function Wd(r){return r==="center"||r==="middle"}function ZD(r,t,e){var i=ff(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=ea(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=et(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function L2(r){Ye(Pm),r.registerComponentModel(ID),r.registerComponentView(WD),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Bt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Bt)}var $D=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Yu=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),F(i)&&M(i,function(a,o){z(a)&&(a={type:a}),i[o]=tt(a,$D(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(st),wi=mt,Uu=M,Ya=bt,zm=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Ya),this.group.add(this._selectorGroup=new Ya),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,l,s,u);var f=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),v=ri(f,h,c),d=this.layoutInner(e,o,v,a,l,u),p=ri(rt({width:d.width,height:d.height},f),h,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=LD(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this.getContentGroup(),f=Y(),h=i.get("selectedMode"),c=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Uu(i.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` +`)){var g=new Ya;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),w=this._createItem(y,p,d,v,i,e,_,b,S,h,a);w.on("click",wi(Yd,p,null,a,c)).on("mouseover",wi(Xu,y.name,null,a,c)).on("mouseout",wi(Zu,y.name,null,a,c)),n.ssr&&w.eachChild(function(x){var C=et(x);C.seriesIndex=y.seriesIndex,C.dataIndex=d,C.ssrType="legend"}),f.set(p,!0)}else n.eachRawSeries(function(x){if(!f.get(p)&&x.legendVisualProvider){var C=x.legendVisualProvider;if(!C.containName(p))return;var D=C.indexOfName(p),A=C.getItemVisual(D,"style"),T=C.getItemVisual(D,"legendIcon"),L=se(A.fill);L&&L[3]===0&&(L[3]=.2,A=k(k({},A),{fill:Wi(L,"rgba")}));var I=this._createItem(x,p,d,v,i,e,{},A,T,h,a);I.on("click",wi(Yd,null,p,a,c)).on("mouseover",wi(Xu,null,p,a,c)).on("mouseout",wi(Zu,null,p,a,c)),n.ssr&&I.eachChild(function(P){var R=et(P);R.seriesIndex=x.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();Uu(e,function(u){var f=u.type,h=new Nt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(h);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);rs(h,{normal:c,emphasis:v},{defaultText:u.title}),xo(h)})},t.prototype._createItem=function(e,i,n,a,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(i),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=qD(f,a,l,u,v,g,c),b=new Ya,w=a.getModel("textStyle");if(Z(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var x=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(KD({itemWidth:d,itemHeight:p,icon:f,iconRotate:x,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,D=s,A=o.get("formatter"),T=i;z(A)&&A?T=A.replace("{name}",i??""):Z(A)&&(T=A(i));var L=g?w.getTextColor():a.get("inactiveColor");b.add(new Nt({style:ti(w,{text:T,x:C,y:p/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var I=new ct({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&jo({el:I,componentModel:o,itemName:i,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(b),xo(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Oi(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Oi("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:h[p]+=c[g]+d,v[1-p]+=f[y]/2-c[y]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(me);function qD(r,t,e,i,n,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Uu(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:Lu(h,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:e).opacity),s(u,i);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?i.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function KD(r){var t=r.icon||"roundRect",e=pr(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Yd(r,t,e,i){Zu(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Xu(r,t,e,i)}function Hm(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;in[o],g=[-v.x,-v.y];i||(g[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=K(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=n[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=n[o],p){var w={x:0,y:0};w[o]=Math.max(n[o]-d[o]-_,0),w[s]=b[s],h.setClipPath(new ct({shape:w})),h.__rectSize=w[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(e);return x.pageIndex!=null&&Zt(f,{x:x.contentPosition[0],y:x.contentPosition[1]},p?e:null),this._updatePageInfoView(e,x),b},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=i[h]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Fl[o],l=zl[o],u=this._findTargetItemIndex(i),f=n.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=x&&w.s<=x+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(i=s)}),i??a},t.type="legend.scroll",t}(zm);function eA(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function rA(r){Ye(Vm),r.registerComponentModel(jD),r.registerComponentView(tA),eA(r)}function I2(r){Ye(Vm),Ye(rA)}var iA=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=as(Fo.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Fo),rh=St();function nA(r,t,e){rh(r).coordSysRecordMap.each(function(i){var n=i.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function aA(r,t){for(var e=rh(r).coordSysRecordMap,i=e.keys(),n=0;ni[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function fA(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=rh(e),n=i.coordSysRecordMap||(i.coordSysRecordMap=Y());n.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=Rm(a);M(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,oA(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Y());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),n.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Gm(n,a);return}var f=uA(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),cs(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var hA=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,i,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),nA(n,e,{pan:U(Hl.pan,this),zoom:U(Hl.zoom,this),scrollMove:U(Hl.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){aA(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Em),Hl={zoom:function(r,t,e,i){var n=this.range,a=n.slice(),o=r.axisModels[0];if(o){var s=Vl[t](null,[i.originX,i.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ms(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a}},pan:$d(function(r,t,e,i,n,a){var o=Vl[i]([a.oldX,a.oldY],[a.newX,a.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:$d(function(r,t,e,i,n,a){var o=Vl[i]([0,0],[a.scrollDelta,a.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function $d(r){return function(t,e,i,n){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,i,n);if(ms(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Vl={grid:function(r,t,e,i,n){var a=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,i,n){var a=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,i,n){var a=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function vA(r){km(r),r.registerComponentModel(iA),r.registerComponentView(hA),fA(r)}var cA=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=as(Fo.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Fo),pn=ct,qd=7,dA=1,Gl=30,pA=7,gn="horizontal",Kd="vertical",gA=5,yA=["line","bar","candlestick","scatter"],mA={easing:"cubicOut",duration:100,delay:0},_A=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,i){this.api=i,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},t.prototype.render=function(e,i,n,a){if(r.prototype.render.apply(this,arguments),cs(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Po(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new bt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,n=e.get("brushSelect"),a=n?pA:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===gn?{right:s.width-o.x-o.width,top:s.height-Gl-qd-a,width:o.width,height:Gl}:{right:qd,top:o.y,width:Gl,height:o.height},u=aa(e.option);M(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=ri(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Kd&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,n=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===gn&&!o?{scaleY:l?1:-1,scaleX:1}:n===gn&&o?{scaleY:l?1:-1,scaleX:-1}:n===Kd&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=i.x-u.x,e.y=i.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,n=this._displayables.sliderGroup,a=e.get("brushSelect");n.add(new pn({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new pn({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:U(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var i=this._size,n=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==n[0]||i[1]!==n[1]){var h=o.getDataExtent(l),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var v=[0,i[1]],d=[0,i[0]],p=[[i[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/i[0]),S;o.each([l],function(D,A){if(_>0&&A%_){m+=y;return}var T=D==null||isNaN(D)||D==="",L=T?0:It(D,h,v,!0);T&&!S&&A?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!T&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,L]),g.push([m,L]),m+=y,S=T}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var b=this.dataZoomModel;function w(D){var A=b.getModel(D?"selectedDataBackground":"dataBackground"),T=new bt,L=new Ko({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Qo({shape:{points:f},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return T.add(L),T.add(I),T}for(var x=0;x<3;x++){var C=w(x===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var n,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!n&&!(i!==!0&&at(yA,u.get("type"))<0)){var f=a.getComponent(or(o),s).axis,h=SA(o),c,v=u.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,n=i.handles=[null,null],a=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),c=i.filler=new pn({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new pn({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:dA,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!Eo[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=pr(S,-1,0,2,2,null,!0);b.attr({cursor:Qd(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var w=b.getBoundingRect(),x=l.get("handleSize");this._handleHeight=yt(x,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),xo(b);var C=l.get("handleColor");C!=null&&(b.style.fill=C),o.add(n[_]=b);var D=l.getModel("textStyle"),A=l.get("handleLabel")||{},T=A.show||!1;e.add(a[_]=new Nt({silent:!0,invisible:!T,style:ti(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var v=c;if(h){var d=yt(l.get("moveHandleSize"),s[1]),p=i.moveHandle=new ct({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=i.moveHandleIcon=pr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=i.moveZone=new ct({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:Qd(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[It(e[0],[0,100],i,!0),It(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var n=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ms(i,a,o,n.get("zoomLock")?"all":e,s.minSpan!=null?It(s.minSpan,l,o,!0):null,s.maxSpan!=null?It(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Sn([It(a[0],o,l,!0),It(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var i=this._displayables,n=this._handleEnds,a=Sn(n.slice()),o=this._size;M([0,1],function(v){var d=i.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[v]+(v?-1:1),y:o[1]/2-p/2})},this),i.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;fi[0]||n[1]<0||n[1]>i[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,n=e.offsetY;this._brushStart=new ut(i,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var n=i.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Sn([It(n.x,o,s,!0),It(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Bi(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var n=this._displayables,a=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new pn({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,i),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?mA:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=Rm(this.dataZoomModel).infoList;if(!e&&i.length){var n=i[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Em);function SA(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function Qd(r){return r==="vertical"?"ns-resize":"ew-resize"}function wA(r){r.registerComponentModel(cA),r.registerComponentView(_A),km(r)}function P2(r){Ye(vA),Ye(wA)}export{Re as $,DC as A,JM as B,ye as C,Qr as D,WC as E,Ko as F,bt as G,Xo as H,Xi as I,Qo as J,ct as K,bw as L,$A as M,yf as N,Yf as O,ot as P,QM as Q,BS as R,Ge as S,Fb as T,Yt as U,$t as V,we as W,Ie as X,td as Y,Yi as Z,DT as _,ur as a,ti as a$,hb as a0,Cb as a1,Kf as a2,NC as a3,BA as a4,Hn as a5,So as a6,Ky as a7,af as a8,X1 as a9,l0 as aA,fi as aB,w1 as aC,ge as aD,op as aE,CA as aF,Tw as aG,p_ as aH,Xr as aI,Gi as aJ,YC as aK,pp as aL,c2 as aM,He as aN,yS as aO,Y as aP,wf as aQ,g2 as aR,cs as aS,Bp as aT,Lu as aU,KT as aV,Bf as aW,cC as aX,Wf as aY,pr as aZ,Tv as a_,gr as aa,Nt as ab,B as ac,M0 as ad,NA as ae,AM as af,n2 as ag,oe as ah,Yn as ai,Sn as aj,Le as ak,xM as al,fd as am,U as an,Oi as ao,rD as ap,jM as aq,tD as ar,Po as as,$S as at,Q as au,u0 as av,LA as aw,r2 as ax,$a as ay,JA as az,mC as b,JS as b$,$n as b0,H0 as b1,vo as b2,mt as b3,Vh as b4,Bb as b5,rt as b6,d2 as b7,d0 as b8,Li as b9,XA as bA,ew as bB,GA as bC,vx as bD,is as bE,m2 as bF,aa as bG,ri as bH,dy as bI,sf as bJ,pw as bK,OA as bL,i2 as bM,WA as bN,ZA as bO,ze as bP,v2 as bQ,YA as bR,lM as bS,zA as bT,WS as bU,Ra as bV,NT as bW,cg as bX,Am as bY,ns as bZ,cx as b_,M as ba,e2 as bb,xo as bc,lS as bd,UA as be,Ht as bf,eS as bg,wo as bh,X as bi,so as bj,k as bk,IA as bl,Ct as bm,xA as bn,Tn as bo,a2 as bp,t2 as bq,zS as br,s2 as bs,of as bt,em as bu,ta as bv,h2 as bw,qf as bx,_T as by,et as bz,bm as c,Lw as c$,jA as c0,pg as c1,hr as c2,W1 as c3,FA as c4,IC as c5,tf as c6,at as c7,as as c8,y2 as c9,ft as cA,R_ as cB,V as cC,HA as cD,t_ as cE,_o as cF,TA as cG,z as cH,vt as cI,ia as cJ,qT as cK,A2 as cL,$p as cM,bo as cN,h0 as cO,AA as cP,bh as cQ,Th as cR,KS as cS,It as cT,LD as cU,St as cV,QA as cW,iD as cX,Sf as cY,nD as cZ,M2 as c_,Pe as ca,KM as cb,Pm as cc,w2 as cd,b2 as ce,x2 as cf,D2 as cg,L2 as ch,I2 as ci,P2 as cj,vA as ck,wA as cl,km as cm,rf as cn,kA as co,F as cp,Ut as cq,Qf as cr,zi as cs,Nn as ct,Pn as cu,Z as cv,VA as cw,cu as cx,Q0 as cy,j0 as cz,Nu as d,DA as d$,u2 as d0,Gn as d1,H as d2,k_ as d3,Mi as d4,tt as d5,bA as d6,Ni as d7,YS as d8,Ci as d9,xw as dA,LC as dB,AT as dC,Pt as dD,Sh as dE,W0 as dF,co as dG,qA as dH,WM as dI,YM as dJ,fr as dK,KA as dL,ii as dM,f2 as dN,C2 as dO,Mo as dP,gu as dQ,Fn as dR,K as dS,Ua as dT,Ob as dU,ef as dV,_t as dW,Mh as dX,ug as dY,I0 as dZ,_s as d_,Ee as da,RA as db,PA as dc,Ii as dd,Gc as de,Bt as df,c0 as dg,_1 as dh,EA as di,ep as dj,na as dk,_a as dl,cy as dm,Dx as dn,Mt as dp,cr as dq,se as dr,io as ds,We as dt,Hs as du,G1 as dv,yt as dw,vr as dx,Hi as dy,eM as dz,mf as e,MA as e0,jp as e1,U1 as e2,tS as e3,p2 as e4,rs as e5,rw as e6,uv as e7,vu as e8,jo as e9,_2 as ea,S2 as eb,l2 as ec,ms as ed,Bi as ee,Wi as ef,f0 as eg,XS as eh,Wn as ei,T2 as ej,Ot as ek,To as el,dg as em,ql as en,ts as eo,De as ep,Zt as eq,Ye as er,Pr as es,o2 as et,it as f,qo as g,st as h,me as i,OS as j,Pf as k,Xm as l,Vp as m,sv as n,gT as o,sb as p,Fo as q,Em as r,ra as s,gf as t,_e as u,dr as v,sg as w,pt as x,jr as y,ut as z}; diff --git a/MiGu.Server/wwwroot/assets/mapEdit-TNAQr3Be.js b/MiGu.Server/wwwroot/assets/mapEdit-BXIATxCI.js similarity index 50% rename from MiGu.Server/wwwroot/assets/mapEdit-TNAQr3Be.js rename to MiGu.Server/wwwroot/assets/mapEdit-BXIATxCI.js index 24ae265..183bfff 100644 --- a/MiGu.Server/wwwroot/assets/mapEdit-TNAQr3Be.js +++ b/MiGu.Server/wwwroot/assets/mapEdit-BXIATxCI.js @@ -1 +1 @@ -import{aU as t}from"./index-Dg4NaXsE.js";const s="/sl/projection/map-edit",r="/sl/projection/ai-config";async function a(e){const{data:o}=await e;if(!o?.success)throw new Error(o?.message??"request failed");return o.data}const m={createSite:e=>a(t.post(`${s}/objects/site`,e)),createTrack:(e,o)=>a(t.post(`${s}/objects/${e}`,o)),createImage:e=>a(t.post(`${s}/objects/image`,e)),createText:e=>a(t.post(`${s}/objects/text`,e)),createModel:e=>a(t.post(`${s}/objects/model`,e)),createCar:e=>a(t.post(`${s}/objects/car`,e)),deleteObject:(e,o)=>a(t.delete(`${s}/objects/${e}/${o}`)),batch:e=>a(t.post(`${s}/objects/batch`,{ops:e})),copyFieldsTo:(e,o,c,p)=>a(t.post(`${s}/objects/${e}/${o}/fields/copy-to`,{fieldNames:c,targets:p})),pick:()=>a(t.post(`${s}/pick`)),dashboardSummary:()=>a(t.get(`${s}/dashboard/summary`)),uploadAsset:(e,o)=>a(t.post(`${s}/assets/upload`,{filename:e,data:o},{headers:{"Content-Type":"multipart/form-data"}})),aiMapGenerate:e=>a(t.post(`${s}/ai/map-generate`,e)),projectSave:e=>a(t.post(`${s}/project/save`,{path:e??""})),projectLoad:e=>a(t.post(`${s}/project/load`,{path:e})),projectCurrent:()=>a(t.get(`${s}/project/current`)),projectBrowse:e=>a(t.get(`${s}/project/browse`,{params:e?{dir:e}:{}})),projectNativePickOpen:e=>a(t.post(`${s}/project/native-pick-open`,{initialDir:e??""})),projectNativePickSave:(e,o)=>a(t.post(`${s}/project/native-pick-save`,{initialDir:e??"",suggestedFileName:o??"project.current.json"})),sampleSitesAlongTrack:(e,o)=>a(t.post(`${s}/objects/track/${e}/sample-sites`,o)),getViewFilter:()=>a(t.get(`${s}/view-filter`)),setViewFilter:e=>a(t.post(`${s}/view-filter`,e))},$={get:()=>a(t.get(`${r}/`)),save:e=>a(t.post(`${r}/`,e))},d={list:()=>a(t.get(`${s}/maps`)),sceneTaskStatus:()=>a(t.get(`${s}/maps/scene-task-status`)),async save(e,o=!1){const{data:c}=await t.post(`${s}/maps/save`,{name:e,overwrite:o});return c?.success?{ok:!0,data:c.data}:{ok:!1,conflict:c?.code===409,message:c?.message??"保存失败"}},open:e=>a(t.post(`${s}/maps/open`,{name:e})),use:e=>a(t.post(`${s}/maps/use`,{name:e})),delete:e=>a(t.delete(`${s}/maps/${encodeURIComponent(e)}`)),rename:(e,o)=>a(t.post(`${s}/maps/rename`,{from:e,to:o})),async merge(e,o,c=!1){const{data:p}=await t.post(`${s}/maps/merge`,{sources:e,target:o,overwrite:c});return p?.success?{ok:!0,data:p.data}:{ok:!1,conflict:p?.code===409&&(p?.message??"").includes("已存在"),message:p?.message??"合并失败"}}};export{$ as a,d as b,m}; +import{b4 as t}from"./index-D5GfLbIx.js";const s="/sl/projection/map-edit",n="/sl/projection/ai-config";async function a(e){const{data:o}=await e;if(!o?.success)throw new Error(o?.message??"request failed");return o.data}const m={createSite:e=>a(t.post(`${s}/objects/site`,e)),createTrack:(e,o)=>a(t.post(`${s}/objects/${e}`,o)),createImage:e=>a(t.post(`${s}/objects/image`,e)),createText:e=>a(t.post(`${s}/objects/text`,e)),createModel:e=>a(t.post(`${s}/objects/model`,e)),createCar:e=>a(t.post(`${s}/objects/car`,e)),deleteObject:(e,o)=>a(t.delete(`${s}/objects/${e}/${o}`)),batch:e=>a(t.post(`${s}/objects/batch`,{ops:e})),copyFieldsTo:(e,o,c,r)=>a(t.post(`${s}/objects/${e}/${o}/fields/copy-to`,{fieldNames:c,targets:r})),pick:()=>a(t.post(`${s}/pick`)),dashboardSummary:()=>a(t.get(`${s}/dashboard/summary`)),uploadAsset:(e,o)=>a(t.post(`${s}/assets/upload`,{filename:e,data:o},{headers:{"Content-Type":"multipart/form-data"}})),aiMapGenerate:e=>a(t.post(`${s}/ai/map-generate`,e)),projectSave:e=>a(t.post(`${s}/project/save`,{path:e??""})),projectLoad:e=>a(t.post(`${s}/project/load`,{path:e})),projectCurrent:()=>a(t.get(`${s}/project/current`)),projectBrowse:e=>a(t.get(`${s}/project/browse`,{params:e?{dir:e}:{}})),projectNativePickOpen:e=>a(t.post(`${s}/project/native-pick-open`,{initialDir:e??""})),projectNativePickSave:(e,o)=>a(t.post(`${s}/project/native-pick-save`,{initialDir:e??"",suggestedFileName:o??"project.current.json"})),sampleSitesAlongTrack:(e,o)=>a(t.post(`${s}/objects/track/${e}/sample-sites`,o)),getViewFilter:()=>a(t.get(`${s}/view-filter`)),setViewFilter:e=>a(t.post(`${s}/view-filter`,e))},d={get:()=>a(t.get(`${n}/`)),save:e=>a(t.post(`${n}/`,e))},$={list:()=>a(t.get(`${s}/maps`)),readContent:e=>t.get(`/maps/${encodeURIComponent(e)}/content`).then(o=>o.data),sceneTaskStatus:()=>a(t.get(`${s}/maps/scene-task-status`)),async save(e,o=!1){try{const{data:c}=await t.post(`${s}/maps/save`,{name:e,overwrite:o});return c?.success?{ok:!0,data:c.data}:{ok:!1,conflict:c?.code===409,message:c?.message??"保存失败"}}catch(c){const r=c,p=r.response?.data;if(r.response?.status===409||p?.code===409)return{ok:!1,conflict:!0,message:p?.message??"地图已存在"};throw c}},open:e=>a(t.post(`${s}/maps/open`,{name:e})),use:e=>a(t.post(`${s}/maps/use`,{name:e})),delete:e=>a(t.delete(`${s}/maps/${encodeURIComponent(e)}`)),rename:(e,o)=>a(t.post(`${s}/maps/rename`,{from:e,to:o})),async merge(e,o,c=!1){const{data:r}=await t.post(`${s}/maps/merge`,{sources:e,target:o,overwrite:c});return r?.success?{ok:!0,data:r.data}:{ok:!1,conflict:r?.code===409&&(r?.message??"").includes("已存在"),message:r?.message??"合并失败"}}};export{d as a,$ as b,m}; diff --git a/MiGu.Server/wwwroot/assets/monitorConfigCache-BigdkiFw.js b/MiGu.Server/wwwroot/assets/monitorConfigCache-DXn96T8F.js similarity index 72% rename from MiGu.Server/wwwroot/assets/monitorConfigCache-BigdkiFw.js rename to MiGu.Server/wwwroot/assets/monitorConfigCache-DXn96T8F.js index 27e7280..2583cff 100644 --- a/MiGu.Server/wwwroot/assets/monitorConfigCache-BigdkiFw.js +++ b/MiGu.Server/wwwroot/assets/monitorConfigCache-DXn96T8F.js @@ -1 +1 @@ -import{r as e}from"./reflection-B_glb6eT.js";let i=null,n=null;function o(){i=null,n=null}async function f(l=!1){return!l&&i?i:(!l&&n||(n=e.getMonitorConfig().then(t=>(i=t,n=null,t)).catch(t=>{throw n=null,t})),n)}export{f,o as i}; +import{r as e}from"./reflection-BwOBPyb9.js";let i=null,n=null;function o(){i=null,n=null}async function f(l=!1){return!l&&i?i:(!l&&n||(n=e.getMonitorConfig().then(t=>(i=t,n=null,t)).catch(t=>{throw n=null,t})),n)}export{f,o as i}; diff --git a/MiGu.Server/wwwroot/assets/ops-C48uBBTk.js b/MiGu.Server/wwwroot/assets/ops-C48uBBTk.js new file mode 100644 index 0000000..bef00b2 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/ops-C48uBBTk.js @@ -0,0 +1 @@ +import{b4 as s}from"./index-D5GfLbIx.js";async function n(t){const{data:a}=await s.post("/sl/ops/execute",t);return a}async function o(){const{data:t}=await s.get("/sl/ops/audits");return t}export{n as e,o as l}; diff --git a/MiGu.Server/wwwroot/assets/ops-CsVl7GhE.js b/MiGu.Server/wwwroot/assets/ops-CsVl7GhE.js deleted file mode 100644 index f55283d..0000000 --- a/MiGu.Server/wwwroot/assets/ops-CsVl7GhE.js +++ /dev/null @@ -1 +0,0 @@ -import{aU as a}from"./index-Dg4NaXsE.js";async function n(t){const{data:s}=await a.post("/sl/ops/execute",t);return s}async function o(){const{data:t}=await a.get("/sl/ops/audits");return t}export{n as e,o as l}; diff --git a/MiGu.Server/wwwroot/assets/projectSaveFlow-BOHSv3Vc.js b/MiGu.Server/wwwroot/assets/projectSaveFlow-BOHSv3Vc.js new file mode 100644 index 0000000..c3b214f --- /dev/null +++ b/MiGu.Server/wwwroot/assets/projectSaveFlow-BOHSv3Vc.js @@ -0,0 +1,4 @@ +import{u as p}from"./useProjectionStream-ayb6RvWW.js";import{bp as m,bo as f,Y as l}from"./index-D5GfLbIx.js";import{b as d}from"./mapEdit-BXIATxCI.js";import{r as i}from"./reflection-BwOBPyb9.js";function N(t){const e=p({autoConnect:!1});function a(r){const n=r?.payload;if(n)switch(r.kind){case"alarm":t.onAlarm?.(n);break;case"object-created":t.onObjectCreated?.(n);break;case"object-deleted":t.onObjectDeleted?.(n);break;case"object-patched":t.onObjectPatched?.(n);break;case"object-batch-changed":t.onObjectBatchChanged?.(n);break;case"pick-result":t.onPickResult?.(n);break;case"selection-detail":t.onSelectionDetail?.(n);break;case"workspace-shortcut":t.onWorkspaceShortcut?.(n);break;case"viewport-style-updated":t.onViewportStyleUpdated?.();break}}return m(()=>{e.on(a),e.connect()}),f(()=>{e.off(a),e.disconnect()}),{connected:e.connected}}function u(t=new Date){const e=a=>String(a).padStart(2,"0");return`${t.getFullYear()}${e(t.getMonth()+1)}${e(t.getDate())}_${e(t.getHours())}${e(t.getMinutes())}${e(t.getSeconds())}`}function b(t,e=new Date){const a=t.trim();return a?`${a}_${u(e)}`:u(e)}function h(t){const e=t.replace(/\\/g,"/"),a=e.slice(e.lastIndexOf("/")+1),r=a.lastIndexOf(".");return r>=0?a.slice(0,r):a}function j(t,e,a=".json"){const r=t.replace(/\\/g,"/"),n=r.lastIndexOf("/"),c=t.includes("\\")?"\\":"/",o=n>=0?r.slice(0,n).replace(/\//g,c):"",s=`${e}${a}`;return o?`${o}${c}${s}`:s}async function w(){try{const t=await i.getProjectFields();if(t.lastLoadedPath?.trim())return t.lastLoadedPath.trim();if(t.autoloadPath?.trim())return t.autoloadPath.trim()}catch{}return null}async function v(){try{const t=await d.list(),e=t.maps.find(a=>a.isCurrent);if(e?.name?.trim())return e.name.trim();if(t.currentFileName?.trim())return t.currentFileName.replace(/\.json$/i,"").trim()}catch{}return""}const g=/^[^\\/:*?"<>|]+$/;async function x(){try{return await l.confirm(`是否保存成新项目? + +· 否,在原项目基础上保存:名称不变,直接覆盖原文件 +· 是,保存成新项目:在服务器另存(默认名称含修改日期)`,"保存确认",{confirmButtonText:"是,保存成新项目",cancelButtonText:"否,在原项目基础上保存",distinguishCancelAndClose:!0,type:"info"}),"new"}catch(t){return t==="cancel"?"replace":"cancel"}}async function P(t,e){try{return((await l.prompt(`请输入${t}名称`,t,{inputValue:b(e),inputPattern:g,inputErrorMessage:'名称不能包含 \\ / : * ? " < > | 等字符',confirmButtonText:"保存到服务器",cancelButtonText:"取消"})).value??"").trim()||null}catch{return null}}async function B(t){if(t==="cancel")return null;if(t==="replace")return(await i.saveProject()).path;const e=await w(),a=e?h(e):"project",r=await P("保存成新项目",a);if(!r)return null;const n=e?j(e,r):`${r}.json`;return(await i.saveProject(n)).path}export{x as a,B as e,P as p,v as r,N as u}; diff --git a/MiGu.Server/wwwroot/assets/projection-BMms551H.js b/MiGu.Server/wwwroot/assets/projection-BHFE6Meg.js similarity index 92% rename from MiGu.Server/wwwroot/assets/projection-BMms551H.js rename to MiGu.Server/wwwroot/assets/projection-BHFE6Meg.js index 4491abc..da5cf89 100644 --- a/MiGu.Server/wwwroot/assets/projection-BMms551H.js +++ b/MiGu.Server/wwwroot/assets/projection-BHFE6Meg.js @@ -1 +1 @@ -import{aU as e}from"./index-Dg4NaXsE.js";import{r as s}from"./reflection-B_glb6eT.js";async function p(){const{data:t}=await e.get("/sl/projection/sites");return t}async function d(){const{data:t}=await e.get("/sl/projection/tracks");return t}function i(t){if(!t)return"idle";const r=t.toLowerCase();return/fault|error|failed|故障|异常|失联|超时|检修/.test(r)?"fault":/charg|充电/.test(r)?"charging":/pause|暂停|挂起/.test(r)?"paused":/offline|离线/.test(r)?"offline":/run|busy|working|运行|工作|执行|忙/.test(r)?"running":"idle"}function o(t){if(!t)return"queued";const r=t.toLowerCase();return/run|运行|执行/.test(r)?"running":/pause|暂停|挂起/.test(r)?"paused":/complete|done|完成|成功/.test(r)?"completed":/cancel|取消|中止/.test(r)?"cancelled":/fail|error|fault|失败|异常/.test(r)?"failed":/assign|分配/.test(r)?"assigned":"queued"}function u(t){return{id:`C${String(t.id).padStart(2,"0")}`,rawId:t.id,name:t.name,typeName:t.typeName,x:0,y:0,theta:0,batterySoc:.8,state:i(t.status),lastUpdate:new Date().toISOString(),group:t.layer??void 0}}function c(t){return{id:`M${String(t.id).padStart(2,"0")}`,name:t.name,typeName:t.typeName,priority:50,status:o(t.status),steps:[],createdAt:new Date().toISOString()}}async function n(){return(await s.listObjects("car")).map(u)}async function a(){return(await s.listObjects("mission")).map(c)}async function m(){try{const{data:t}=await e.get("/sl/projection/cars");if(Array.isArray(t)&&t.length>0)return t;const r=await n();return r.length>0?r:Array.isArray(t)?t:[]}catch{return n()}}async function y(){try{const{data:t}=await e.get("/sl/projection/missions");if(Array.isArray(t)&&t.length>0)return t;const r=await a();return r.length>0?r:Array.isArray(t)?t:[]}catch{return a()}}export{y as a,p as b,d as c,m as l}; +import{b4 as e}from"./index-D5GfLbIx.js";import{r as s}from"./reflection-BwOBPyb9.js";async function p(){const{data:t}=await e.get("/sl/projection/sites");return t}async function d(){const{data:t}=await e.get("/sl/projection/tracks");return t}function i(t){if(!t)return"idle";const r=t.toLowerCase();return/fault|error|failed|故障|异常|失联|超时|检修/.test(r)?"fault":/charg|充电/.test(r)?"charging":/pause|暂停|挂起/.test(r)?"paused":/offline|离线/.test(r)?"offline":/run|busy|working|运行|工作|执行|忙/.test(r)?"running":"idle"}function o(t){if(!t)return"queued";const r=t.toLowerCase();return/run|运行|执行/.test(r)?"running":/pause|暂停|挂起/.test(r)?"paused":/complete|done|完成|成功/.test(r)?"completed":/cancel|取消|中止/.test(r)?"cancelled":/fail|error|fault|失败|异常/.test(r)?"failed":/assign|分配/.test(r)?"assigned":"queued"}function u(t){return{id:`C${String(t.id).padStart(2,"0")}`,rawId:t.id,name:t.name,typeName:t.typeName,x:0,y:0,theta:0,batterySoc:.8,state:i(t.status),lastUpdate:new Date().toISOString(),group:t.layer??void 0}}function c(t){return{id:`M${String(t.id).padStart(2,"0")}`,name:t.name,typeName:t.typeName,priority:50,status:o(t.status),steps:[],createdAt:new Date().toISOString()}}async function n(){return(await s.listObjects("car")).map(u)}async function a(){return(await s.listObjects("mission")).map(c)}async function m(){try{const{data:t}=await e.get("/sl/projection/cars");if(Array.isArray(t)&&t.length>0)return t;const r=await n();return r.length>0?r:Array.isArray(t)?t:[]}catch{return n()}}async function y(){try{const{data:t}=await e.get("/sl/projection/missions");if(Array.isArray(t)&&t.length>0)return t;const r=await a();return r.length>0?r:Array.isArray(t)?t:[]}catch{return a()}}export{y as a,p as b,d as c,m as l}; diff --git a/MiGu.Server/wwwroot/assets/reflection-B_glb6eT.js b/MiGu.Server/wwwroot/assets/reflection-BwOBPyb9.js similarity index 78% rename from MiGu.Server/wwwroot/assets/reflection-B_glb6eT.js rename to MiGu.Server/wwwroot/assets/reflection-BwOBPyb9.js index 45923fd..5fb9a06 100644 --- a/MiGu.Server/wwwroot/assets/reflection-B_glb6eT.js +++ b/MiGu.Server/wwwroot/assets/reflection-BwOBPyb9.js @@ -1 +1 @@ -import{aU as l}from"./index-Dg4NaXsE.js";const d="/sl/projection/reflection";function p(){return{fields:[],status:[],methods:[]}}function f(){return{car:p(),site:p(),track:p()}}const y=f;async function s(e){const{data:t}=await l.get(`${d}${e}`);if(!t?.success)throw new Error(t?.message??`reflection ${e} failed`);return t.data}async function n(e,t){const{data:o}=await l.post(`${d}${e}`,null,{params:t});if(!o?.success)throw new Error(o?.message??`reflection ${e} failed`);return o.data}async function g(e){const{data:t}=await l.delete(`${d}${e}`);if(!t?.success)throw new Error(t?.message??`reflection ${e} failed`);return t.data}async function u(e,t){const{data:o}=await l.patch(`${d}${e}`,t);if(!o?.success)throw new Error(o?.message??`reflection PATCH ${e} failed`);return o.data}const A={listKinds:()=>s("/kinds"),listAssemblies:()=>s("/assemblies"),listObjects:e=>s(`/objects/${e}`),listCreatableTypes:e=>s(`/types/${e}`),createObject:(e,t,o)=>{const r={};if(t&&(r.typeName=t),o)for(const[c,a]of Object.entries(o))a==null||a===""||(r[c]=a);return n(`/objects/${e}`,r)},deleteObject:(e,t)=>g(`/objects/${e}/${t}`),reloadPlugins:()=>n("/plugins/reload"),listPlugins:()=>s("/plugins"),unloadPlugin:e=>n(`/plugins/${encodeURIComponent(e)}/unload`),listMethods:(e,t)=>s(`/methods/${e}/${t}`),listMethodsByType:e=>s(`/methods-by-type/${e}`),getStatus:(e,t)=>s(`/status/${e}/${t}`),getFields:(e,t)=>s(`/fields/${e}/${t}`),setField:(e,t,o,r)=>n(`/fields/${e}/${t}/${encodeURIComponent(o)}`,{value:r}),deleteField:(e,t,o)=>g(`/fields/${e}/${t}/${encodeURIComponent(o)}`),getBundle:(e,t)=>s(`/bundle/${e}/${t}`),execute:(e,t,o,r)=>n(`/execute/${e}/${t}/${encodeURIComponent(o)}`,r),gotoCarSite:(e,t)=>n(`/car/${e}/goto-site`,{siteId:t}),getScriptSource:e=>s(`/scripts/${e}/source`),getScriptExceptionStatus:e=>s(`/scripts/${e}/exception-status`),getMonitorConfig:()=>s("/monitor-config"),saveMonitorConfig:async e=>{const{data:t}=await l.post(`${d}/monitor-config`,e);if(!t?.success)throw new Error(t?.message??"saveMonitorConfig failed");return t.data},getSelection:()=>s("/selection"),setSelection:(e,t)=>n("/selection",{kind:e,id:t}),clearSelection:()=>n("/selection/clear"),getProjectFields:()=>s("/project/fields"),setProjectField:(e,t)=>n(`/project/fields/${encodeURIComponent(e)}`,{value:t}),saveProject:e=>n("/project/save",e?{path:e}:void 0),getAppConfigFields:()=>s("/app-config/fields"),setAppConfigField:(e,t)=>n(`/app-config/fields/${encodeURIComponent(e)}`,{value:t}),saveAppConfig:()=>n("/app-config/save"),getViewportStyle:()=>s("/viewport-style"),patchViewportStyle:e=>u("/viewport-style",b(e)),getCarStyleTypes:()=>s("/car-style/types"),getCarStyle:e=>s(`/car-style/${encodeURIComponent(e)}`),putCarStyle:async(e,t)=>{const{data:o}=await l.post(`${d}/car-style/${encodeURIComponent(e)}`,t);if(!o?.success)throw new Error(o?.message??"putCarStyle failed");return o.data},deleteCarStyle:e=>g(`/car-style/${encodeURIComponent(e)}`),getAlarmColors:()=>s("/car-style/alarm-colors"),putAlarmColors:async e=>{const{data:t}=await l.post(`${d}/car-style/alarm-colors`,e);if(!t?.success)throw new Error(t?.message??"putAlarmColors failed");return t.data},saveCarStyle:()=>n("/car-style/save")};function i(e){return Number.isFinite(e)?e>>>0:0}function C(e){const t=i(e),o=t>>>24&255,r=t>>>16&255,c=t>>>8&255,a=t&255;return o>=255?`#${r.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}${a.toString(16).padStart(2,"0")}`:`#${o.toString(16).padStart(2,"0")}${r.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}${a.toString(16).padStart(2,"0")}`}function w(e){const t=e.replace("#","").trim();if(t.length===6){const o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),c=parseInt(t.slice(4,6),16);return i(255<<24|o<<16|r<<8|c)}if(t.length===8){const o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),c=parseInt(t.slice(4,6),16),a=parseInt(t.slice(6,8),16);return i(o<<24|r<<16|c<<8|a)}return 4294967295}const $=["colorNormalArgb","colorSelectedArgb","labelColorNormalArgb","labelColorSelectedArgb"],m=["colorNormalArgb","colorSelectedArgb"];function b(e){const t={};if(e.site){const o={...e.site};for(const r of $)o[r]!=null&&(o[r]=i(o[r]));t.site=o}if(e.track){const o={...e.track};for(const r of m)o[r]!=null&&(o[r]=i(o[r]));t.track=o}return t}function I(e){return{site:{...e.site,colorNormalArgb:i(e.site.colorNormalArgb),colorSelectedArgb:i(e.site.colorSelectedArgb),labelColorNormalArgb:i(e.site.labelColorNormalArgb),labelColorSelectedArgb:i(e.site.labelColorSelectedArgb)},track:{...e.track,colorNormalArgb:i(e.track.colorNormalArgb),colorSelectedArgb:i(e.track.colorSelectedArgb)}}}export{C as a,f as b,y as e,w as h,I as n,A as r}; +import{b4 as l}from"./index-D5GfLbIx.js";const d="/sl/projection/reflection";function p(){return{fields:[],status:[],methods:[]}}function f(){return{car:p(),site:p(),track:p()}}const y=f;async function s(e){const{data:t}=await l.get(`${d}${e}`);if(!t?.success)throw new Error(t?.message??`reflection ${e} failed`);return t.data}async function n(e,t){const{data:o}=await l.post(`${d}${e}`,null,{params:t});if(!o?.success)throw new Error(o?.message??`reflection ${e} failed`);return o.data}async function g(e){const{data:t}=await l.delete(`${d}${e}`);if(!t?.success)throw new Error(t?.message??`reflection ${e} failed`);return t.data}async function u(e,t){const{data:o}=await l.patch(`${d}${e}`,t);if(!o?.success)throw new Error(o?.message??`reflection PATCH ${e} failed`);return o.data}const A={listKinds:()=>s("/kinds"),listAssemblies:()=>s("/assemblies"),listObjects:e=>s(`/objects/${e}`),listCreatableTypes:e=>s(`/types/${e}`),createObject:(e,t,o)=>{const r={};if(t&&(r.typeName=t),o)for(const[a,c]of Object.entries(o))c==null||c===""||(r[a]=c);return n(`/objects/${e}`,r)},deleteObject:(e,t)=>g(`/objects/${e}/${t}`),reloadPlugins:()=>n("/plugins/reload"),listPlugins:()=>s("/plugins"),unloadPlugin:e=>n(`/plugins/${encodeURIComponent(e)}/unload`),listMethods:(e,t)=>s(`/methods/${e}/${t}`),listMethodsByType:e=>s(`/methods-by-type/${e}`),getStatus:(e,t)=>s(`/status/${e}/${t}`),getFields:(e,t)=>s(`/fields/${e}/${t}`),setField:(e,t,o,r)=>n(`/fields/${e}/${t}/${encodeURIComponent(o)}`,{value:r}),deleteField:(e,t,o)=>g(`/fields/${e}/${t}/${encodeURIComponent(o)}`),getBundle:(e,t)=>s(`/bundle/${e}/${t}`),execute:(e,t,o,r)=>n(`/execute/${e}/${t}/${encodeURIComponent(o)}`,r),gotoCarSite:(e,t)=>n(`/car/${e}/goto-site`,{siteId:t}),getScriptSource:e=>s(`/scripts/${e}/source`),getScriptExceptionStatus:e=>s(`/scripts/${e}/exception-status`),getMonitorConfig:()=>s("/monitor-config"),saveMonitorConfig:async e=>{const{data:t}=await l.post(`${d}/monitor-config`,e);if(!t?.success)throw new Error(t?.message??"saveMonitorConfig failed");return t.data},getSelection:()=>s("/selection"),setSelection:(e,t)=>n("/selection",{kind:e,id:t}),clearSelection:()=>n("/selection/clear"),getProjectFields:()=>s("/project/fields"),setProjectField:(e,t)=>n(`/project/fields/${encodeURIComponent(e)}`,{value:t}),saveProject:e=>n("/project/save",e?{path:e}:void 0),getAppConfigFields:()=>s("/app-config/fields"),setAppConfigField:(e,t)=>n(`/app-config/fields/${encodeURIComponent(e)}`,{value:t}),saveAppConfig:()=>n("/app-config/save"),getViewportStyle:()=>s("/viewport-style"),patchViewportStyle:e=>u("/viewport-style",m(e)),getCarStyleTypes:()=>s("/car-style/types"),getCarStyle:e=>s(`/car-style/${encodeURIComponent(e)}`),putCarStyle:async(e,t)=>{const{data:o}=await l.post(`${d}/car-style/${encodeURIComponent(e)}`,t);if(!o?.success)throw new Error(o?.message??"putCarStyle failed");return o.data},deleteCarStyle:e=>g(`/car-style/${encodeURIComponent(e)}`),getAlarmColors:()=>s("/car-style/alarm-colors"),putAlarmColors:async e=>{const{data:t}=await l.post(`${d}/car-style/alarm-colors`,e);if(!t?.success)throw new Error(t?.message??"putAlarmColors failed");return t.data},saveCarStyle:()=>n("/car-style/save")};function i(e){return Number.isFinite(e)?e>>>0:0}function C(e){const t=i(e),o=t>>>24&255,r=t>>>16&255,a=t>>>8&255,c=t&255;return o>=255?`#${r.toString(16).padStart(2,"0")}${a.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`:`#${o.toString(16).padStart(2,"0")}${r.toString(16).padStart(2,"0")}${a.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function w(e){const t=e.replace("#","").trim();if(t.length===6){const o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return i(255<<24|o<<16|r<<8|a)}if(t.length===8){const o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16),c=parseInt(t.slice(6,8),16);return i(o<<24|r<<16|a<<8|c)}return 4294967295}const $=["colorNormalArgb","colorSelectedArgb","labelColorNormalArgb","labelColorSelectedArgb"],b=["colorNormalArgb","colorSelectedArgb"];function m(e){const t={};if(e.site){const o={...e.site};for(const r of $)o[r]!=null&&(o[r]=i(o[r]));t.site=o}if(e.track){const o={...e.track};for(const r of b)o[r]!=null&&(o[r]=i(o[r]));t.track=o}return t}function I(e){return{site:{...e.site,colorNormalArgb:i(e.site.colorNormalArgb),colorSelectedArgb:i(e.site.colorSelectedArgb),labelColorNormalArgb:i(e.site.labelColorNormalArgb),labelColorSelectedArgb:i(e.site.labelColorSelectedArgb)},track:{...e.track,colorNormalArgb:i(e.track.colorNormalArgb),colorSelectedArgb:i(e.track.colorSelectedArgb)}}}export{C as a,f as b,y as e,w as h,I as n,A as r}; diff --git a/MiGu.Server/wwwroot/assets/useMapEditStream-BgR6WvRg.js b/MiGu.Server/wwwroot/assets/useMapEditStream-BgR6WvRg.js deleted file mode 100644 index 2db06f2..0000000 --- a/MiGu.Server/wwwroot/assets/useMapEditStream-BgR6WvRg.js +++ /dev/null @@ -1 +0,0 @@ -import{u as n}from"./useProjectionStream-BBHmpNXC.js";import{b7 as r,b6 as s}from"./index-Dg4NaXsE.js";function u(e){const c=n({autoConnect:!1});function o(a){const t=a?.payload;if(t)switch(a.kind){case"alarm":e.onAlarm?.(t);break;case"object-created":e.onObjectCreated?.(t);break;case"object-deleted":e.onObjectDeleted?.(t);break;case"object-patched":e.onObjectPatched?.(t);break;case"object-batch-changed":e.onObjectBatchChanged?.(t);break;case"pick-result":e.onPickResult?.(t);break;case"selection-detail":e.onSelectionDetail?.(t);break;case"workspace-shortcut":e.onWorkspaceShortcut?.(t);break;case"viewport-style-updated":e.onViewportStyleUpdated?.();break}}return r(()=>{c.on(o),c.connect()}),s(()=>{c.off(o),c.disconnect()}),{connected:c.connected}}export{u}; diff --git a/MiGu.Server/wwwroot/assets/useProjectionStream-BBHmpNXC.js b/MiGu.Server/wwwroot/assets/useProjectionStream-BBHmpNXC.js deleted file mode 100644 index d558b57..0000000 --- a/MiGu.Server/wwwroot/assets/useProjectionStream-BBHmpNXC.js +++ /dev/null @@ -1 +0,0 @@ -import{b8 as S,bh as v}from"./index-Dg4NaXsE.js";const g=["snapshot-tick","selection-detail","alarm","object-created","object-deleted","object-patched","object-batch-changed","pick-result","project-saved","project-loaded","car-state","mission-status","monitor-config-updated","workspace-shortcut","viewport-style-updated"];function w(a={}){const y=a.url??"/api/sl/projection/stream",j=a.reconnectDelayMs??3e3,r=v(!1),u=v(null),s=new Set;let e=null,c=null,l=!1;function i(){if(l||e)return;try{e=new EventSource(y)}catch{p();return}e.onopen=()=>{r.value=!0},e.onerror=()=>{r.value=!1,f(),p()},e.onmessage=t=>{d(void 0,t.data)};const n=new Set([...g,...a.extraEventKinds??[]]);for(const t of n)e.addEventListener(t,o=>{d(t,o.data)})}function d(n,t){if(!(typeof t!="string"||!t))try{const o=JSON.parse(t),m=typeof o=="object"&&o!==null&&"kind"in o?o:{kind:n??"message",payload:o};u.value=m,s.forEach(k=>{try{k(m)}catch{}})}catch{}}function f(){if(e){try{e.close()}catch{}e=null}}function p(){l||c||(c=setTimeout(()=>{c=null,i()},j))}function h(){l=!0,c&&(clearTimeout(c),c=null),f(),r.value=!1}function b(n){s.add(n)}function E(n){s.delete(n)}return a.autoConnect!==!1&&i(),S(()=>{h(),s.clear()}),{connected:r,lastEvent:u,connect:i,disconnect:h,on:b,off:E}}export{w as u}; diff --git a/MiGu.Server/wwwroot/assets/useProjectionStream-ayb6RvWW.js b/MiGu.Server/wwwroot/assets/useProjectionStream-ayb6RvWW.js new file mode 100644 index 0000000..f9e0bc0 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/useProjectionStream-ayb6RvWW.js @@ -0,0 +1 @@ +import{br as S,bC as v}from"./index-D5GfLbIx.js";const g=["snapshot-tick","selection-detail","alarm","object-created","object-deleted","object-patched","object-batch-changed","pick-result","project-saved","project-loaded","car-state","mission-status","monitor-config-updated","workspace-shortcut","viewport-style-updated"];function T(a={}){const y=a.url??"/api/sl/projection/stream",j=a.reconnectDelayMs??3e3,r=v(!1),u=v(null),s=new Set;let e=null,c=null,l=!1;function i(){if(l||e)return;try{e=new EventSource(y,{withCredentials:!0})}catch{p();return}e.onopen=()=>{r.value=!0},e.onerror=()=>{r.value=!1,f(),p()},e.onmessage=t=>{d(void 0,t.data)};const n=new Set([...g,...a.extraEventKinds??[]]);for(const t of n)e.addEventListener(t,o=>{d(t,o.data)})}function d(n,t){if(!(typeof t!="string"||!t))try{const o=JSON.parse(t),m=typeof o=="object"&&o!==null&&"kind"in o?o:{kind:n??"message",payload:o};u.value=m,s.forEach(k=>{try{k(m)}catch{}})}catch{}}function f(){if(e){try{e.close()}catch{}e=null}}function p(){l||c||(c=setTimeout(()=>{c=null,i()},j))}function h(){l=!0,c&&(clearTimeout(c),c=null),f(),r.value=!1}function b(n){s.add(n)}function E(n){s.delete(n)}return a.autoConnect!==!1&&i(),S(()=>{h(),s.clear()}),{connected:r,lastEvent:u,connect:i,disconnect:h,on:b,off:E}}export{T as u}; diff --git a/MiGu.Server/wwwroot/assets/workspaceToolbar-abOZ7a24.js b/MiGu.Server/wwwroot/assets/workspaceToolbar-abOZ7a24.js new file mode 100644 index 0000000..c280d81 --- /dev/null +++ b/MiGu.Server/wwwroot/assets/workspaceToolbar-abOZ7a24.js @@ -0,0 +1 @@ +import{b4 as a}from"./index-D5GfLbIx.js";const e="/sl/projection/toolbar";function s(t,o){return{key:t,value:o,Key:t,Value:o}}function c(t,o){return{name:t,visible:o,Name:t,Visible:o}}function l(t){return{note:t,Note:t}}function n(t){return{fileName:t,FileName:t}}async function r(t){const o=(await t).data;if(!o?.success)throw new Error(o?.message??"请求失败");if(o.data==null)throw new Error("服务端返回空数据");return o.data}const i={getState:()=>r(a.get(`${e}/state`)),setAlign:(t,o)=>r(a.post(`${e}/align`,s(t,o))),setSelect:(t,o)=>r(a.post(`${e}/select`,s(t,o))),setDisplay:(t,o)=>r(a.post(`${e}/display`,s(t,o))),setLayerVisibility:(t,o)=>r(a.post(`${e}/layer`,c(t,o))),startRecording:t=>r(a.post(`${e}/recording/start`,l(t??""))),stopRecording:()=>r(a.post(`${e}/recording/stop`)),deleteRecording:t=>r(a.delete(`${e}/recording/${encodeURIComponent(t)}`)),startPlayback:t=>r(a.post(`${e}/playback/start`,n(t))),stopPlayback:()=>r(a.post(`${e}/playback/stop`)),toggleViewMode:()=>r(a.post(`${e}/view/toggle`)),setCameraFollow:(t,o)=>r(a.post(`${e}/camera/follow`,{carId:t??void 0,enabled:o,CarId:t??void 0,Enabled:o})),locateCamera:t=>r(a.post(`${e}/camera/locate`,{carId:t,CarId:t}))};export{i as w}; diff --git a/MiGu.Server/wwwroot/index.html b/MiGu.Server/wwwroot/index.html index 9223522..5597904 100644 --- a/MiGu.Server/wwwroot/index.html +++ b/MiGu.Server/wwwroot/index.html @@ -6,7 +6,7 @@ 迷毂 · 智能调度平台 - +