@pubinfo-nightly/module-rbac 2026.3.15 → 2026.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ComponentSelect-A7uGTuHW.js → ComponentSelect-CYmAgdm3.js} +998 -963
- package/dist/DynamicRoutesForm-CMF3oh8h.js +171 -0
- package/dist/HCheckList-CAhQwX7m.js +39 -0
- package/dist/HoverCard-B-uU48hF.js +46 -0
- package/dist/IconSelect-CvxGRN_O.js +719 -0
- package/dist/ImportExport-CzZssb7_.js +345 -0
- package/dist/ImportExport-b1SnWRLj.js +6 -0
- package/dist/LayoutForm-Bpdyi_2o.js +129 -0
- package/dist/MetaForm-ZLzLz68d.js +39037 -0
- package/dist/OrgAndPosition-B0RE1Vc_.js +187 -0
- package/dist/OrgSelector-C2rPIonI.js +4877 -0
- package/dist/OrgSelector.css +1 -0
- package/dist/ResourceEdit-9fvxbd0K.js +383 -0
- package/dist/ResourceEdit-BMqfJ3aQ.js +13 -0
- package/dist/ResourceRelation-BrluMHdX.js +81 -0
- package/dist/ResourceRelation-IJvXnlpo.js +95 -0
- package/dist/RoleRelation-DuRuQG08.js +82 -0
- package/dist/RoleSelector-BTNYbcC6.js +282 -0
- package/dist/TenantEdit-Df3gZKLA.js +249 -0
- package/dist/UserAuthorization-DX7jNDDe.js +237 -0
- package/dist/UserEdit-BLb0n7WM.js +322 -0
- package/dist/_baseClone-C7vkGgsW.js +138 -0
- package/dist/_initCloneObject-r-eWKqzl.js +531 -0
- package/dist/add-child-DPb_m2by.js +4 -0
- package/dist/{animation_item-DBOz2rcX.js → animation_item-Coe-B0jQ.js} +24 -19
- package/dist/assist-BRMYD-oT.js +89 -0
- package/dist/authority-B9wtmsQd.js +4 -0
- package/dist/authorize-DxrutyIG.js +4 -0
- package/dist/blackWhiteList-d6TVsK48.js +214 -0
- package/dist/blacklist-disable-BKSw91qq.js +4 -0
- package/dist/blacklist-enable-CIB1fOHT.js +4 -0
- package/dist/breadcrumb_setting-DMbvWP5t.js +111 -0
- package/dist/browser-chrome-CM60RcrG.js +4 -0
- package/dist/browser-edge-4LBRzooM.js +4 -0
- package/dist/browser-ie-BF-wqbf6.js +4 -0
- package/dist/browser-other-iXJH-9iL.js +4 -0
- package/dist/browser-safari-CIpt0yPc.js +4 -0
- package/dist/browserType-Bik20-72.js +28 -0
- package/dist/chunk-WQLz0Won.js +20 -0
- package/dist/cloneDeep-REaxTPsZ.js +8 -0
- package/dist/createAndEditDataPermission-OunqmBu_.js +438 -0
- package/dist/data-permission-2pzeFLxP.js +159 -0
- package/dist/{dayjs.min-Cb7gQFd4.js → dayjs.min-CJunOGCc.js} +5 -3
- package/dist/dictionary-DGqlAhRk.js +182 -0
- package/dist/dist-DxAYQq3U.js +21 -0
- package/dist/drawerBlackWhiteList-VxyjaBkA.js +123 -0
- package/dist/drawerDictionary-DhAB-LV9.js +129 -0
- package/dist/drawerDictionaryItem-DYsJzZ2f.js +141 -0
- package/dist/drawerGroup-CTO8Lmbb.js +189 -0
- package/dist/drawerOrganization-DWhTc1fB.js +253 -0
- package/dist/drawerPosition-BmM9mLlP.js +169 -0
- package/dist/drawerRegion-BD-xc1x2.js +189 -0
- package/dist/drawerRole-B348x40k.js +214 -0
- package/dist/drawerRole-CgAPM-0g.js +172 -0
- package/dist/drawerRole-Cjp9iDsa.js +157 -0
- package/dist/edit-Drp8yjRe.js +4 -0
- package/dist/enum-CG0P82pn.js +6 -0
- package/dist/{enum-3E_sUqRF.js → enum-CR5ztb5v2.js} +15 -14
- package/dist/enum-CYCebJeC.js +62 -0
- package/dist/enum-DS4SGhiF.js +6 -0
- package/dist/enum-zdKA3Jy-.js +23 -0
- package/dist/group-C6Rj3K5I.js +178 -0
- package/dist/icard-BULUUV5m.js +4 -0
- package/dist/icon_animation-DuEY1FMm.js +4 -0
- package/dist/icon_breadcrumb-Y788iP_T.js +4 -0
- package/dist/icon_copyright-C1BER6kq.js +4 -0
- package/dist/icon_jt-ICOdrIF6.js +4 -0
- package/dist/icon_layout-D_wV9rX3.js +4 -0
- package/dist/icon_mainpage-Cz6_cxpJ.js +4 -0
- package/dist/icon_menu-y7SblUoR.js +4 -0
- package/dist/icon_page_size-BjwT656E.js +4 -0
- package/dist/icon_position_type-CPxcDgmM.js +4 -0
- package/dist/icon_safe_manage-CoqVRBLl.js +4 -0
- package/dist/icon_screen_scale-DURlkq3C.js +4 -0
- package/dist/icon_system_manage-BLXs2CQg.js +4 -0
- package/dist/icon_tabbar-_0QWhSBV.js +4 -0
- package/dist/icon_toolbar-BXpfu0iq.js +4 -0
- package/dist/icon_topbar-DrwvB8Jw.js +4 -0
- package/dist/icon_watermark-DwNqjAiA.js +4 -0
- package/dist/index.css +1 -1
- package/dist/index.js +588 -6776
- package/dist/isEmpty-2rx9iUQv.js +14 -0
- package/dist/isEqual-CNeQLaCM.js +474 -0
- package/dist/itemlist-BGe-z1IR.js +159 -0
- package/dist/layout_setting-Cds3TCHc.js +71 -0
- package/dist/log-DOMU9MyH.js +18 -0
- package/dist/log-center-BrGlNhMd.js +4 -0
- package/dist/loginHistoryDetail-Coba_ajy.js +80 -0
- package/dist/{login_history-BiwaLpxA.js → login_history-CrXkEsHb.js} +38 -35
- package/dist/menu_setting-Br5dOEUk.js +158 -0
- package/dist/not-data-C-MacYF3.js +5 -0
- package/dist/operateHistoryDetail-DfDQL5BF.js +92 -0
- package/dist/{operate_history-sPd9IHMV.js → operate_history-BtHgPhmF.js} +38 -35
- package/dist/org-main-BRMBumDm.js +4 -0
- package/dist/org-unmain-0BHnrNdD.js +4 -0
- package/dist/organization-BbFERZ1l.js +15411 -0
- package/dist/other_setting-D92SlFvl.js +216 -0
- package/dist/page_animation_setting-Cy2R0vZy.js +111 -0
- package/dist/page_w_setting-DryWrqcx.js +66 -0
- package/dist/position-B1bqGly6.js +169 -0
- package/dist/rbac-B59CVHDt.js +460 -0
- package/dist/region-B_n1KXMG.js +182 -0
- package/dist/remove-BTME2Fhs.js +4 -0
- package/dist/request-7X2hpUru.js +5 -0
- package/dist/resource-CPNNd1l0.js +275 -0
- package/dist/resource-app-D8to3Lkn.js +4 -0
- package/dist/resource-btn-Cz-A_EQF.js +4 -0
- package/dist/resource-dynamic-BUqWxUiU.js +4 -0
- package/dist/resource-index-D2roT002.js +4 -0
- package/dist/resource-menu-BRER68rK.js +4 -0
- package/dist/resource-micro-Hyucl9de.js +4 -0
- package/dist/resource-nonmenu-7FcPEpHv.js +4 -0
- package/dist/role-CMd7WDRC.js +195 -0
- package/dist/role_group-DHh2s911.js +174 -0
- package/dist/safe_setting-CuTBmUve.js +225 -0
- package/dist/setItem-BwXZ5Uqx.js +4 -0
- package/dist/setItem-DlhIkIgh.js +78 -0
- package/dist/setting-manage-UHelpLrr.js +4 -0
- package/dist/stores-C-zbXsms.js +2 -0
- package/dist/tabbar_setting-CjW9LGPp.js +142 -0
- package/dist/tenant-B_vgufMG.js +180 -0
- package/dist/theme-check-mark-DRzx4sTs.js +4 -0
- package/dist/theme-title-BRvQ_qPg.js +4 -0
- package/dist/theme_setting-DMP0_nZ1.js +114 -0
- package/dist/toolbar_setting-ClxxvA7R.js +143 -0
- package/dist/useAppAndResource-D6WnpUPR.js +55 -0
- package/dist/user-BhytPqnx.js +348 -0
- package/dist/{vanilla-picker-Byb6q187.js → vanilla-picker-2HFham9c.js} +61 -59
- package/dist/view-Cridj7u2.js +4 -0
- package/dist/view-lBxqXfPW.js +114 -0
- package/dist/watermark_setting-b3vBYWwY.js +194 -0
- package/dist/zddata-CnvPWtIW.js +4 -0
- package/dist/zy_checked-C25HQlnr.js +4 -0
- package/dist/zy_default-B7RKtyqy.js +4 -0
- package/package.json +3 -3
- package/dist/DynamicRoutesForm-DSzy_bh5.js +0 -169
- package/dist/HCheckList-ODQHidN8.js +0 -37
- package/dist/HoverCard-CmJCoa2b.js +0 -44
- package/dist/IconSelect-DouEg3xY.js +0 -717
- package/dist/ImportExport-DisdLoY8.js +0 -342
- package/dist/LayoutForm-Bdfs5WeK.js +0 -125
- package/dist/MetaForm-CcDwS8vh.js +0 -38902
- package/dist/OrgAndPosition-jDX7m0HD.js +0 -184
- package/dist/ResourceEdit-0BYZRye_.js +0 -381
- package/dist/ResourceRelation-CU-QpUhP.js +0 -76
- package/dist/ResourceRelation-roz0a8Td.js +0 -91
- package/dist/RoleRelation-BQQFaum0.js +0 -79
- package/dist/RoleSelector-gkar_UGG.js +0 -275
- package/dist/TenantEdit-BsahDUlf.js +0 -246
- package/dist/UserAuthorization-2Fl4IGw7.js +0 -233
- package/dist/UserEdit-CX3Qau8T.js +0 -320
- package/dist/add-child-CFHHkjfg.js +0 -2
- package/dist/authority-L7SfiMdP.js +0 -2
- package/dist/authorize-qMpV_BXT.js +0 -2
- package/dist/blackWhiteList-DbG7JH8n.js +0 -211
- package/dist/blacklist-disable-BT6Xx-JG.js +0 -2
- package/dist/blacklist-enable-CJ6DK_V2.js +0 -2
- package/dist/breadcrumb_setting-DTR6CPZQ.js +0 -108
- package/dist/browser-chrome-DuAegVCe.js +0 -2
- package/dist/browser-edge-DzkWdXRd.js +0 -2
- package/dist/browser-ie-DZ9g_MXr.js +0 -2
- package/dist/browser-other-BmkifoYq.js +0 -2
- package/dist/browser-safari-CXrCuF2a.js +0 -2
- package/dist/browserType-B8A1Osvk.js +0 -26
- package/dist/chunk-DiMWNkAf.js +0 -18
- package/dist/cloneDeep-CSOSavu3.js +0 -6
- package/dist/createAndEditDataPermission-8_KNLzJT.js +0 -431
- package/dist/data-permission-LpuDLDm0.js +0 -152
- package/dist/dictionary-CEaxjqZe.js +0 -179
- package/dist/drawerBlackWhiteList-DXLdWurZ.js +0 -120
- package/dist/drawerDictionary-DYJTAZr6.js +0 -126
- package/dist/drawerDictionaryItem-BChXD2-q.js +0 -138
- package/dist/drawerGroup-CdnZkZxi.js +0 -185
- package/dist/drawerOrganization-CwtSFUj0.js +0 -247
- package/dist/drawerPosition-CfyfeQCN.js +0 -166
- package/dist/drawerRegion-DAwY_29K.js +0 -183
- package/dist/drawerRole-B7uCfHk-.js +0 -154
- package/dist/drawerRole-DK6DrinO.js +0 -209
- package/dist/drawerRole-DrzMHL0O.js +0 -167
- package/dist/edit-fZ7h_z_Z.js +0 -2
- package/dist/enum-3mYayxff.js +0 -61
- package/dist/enum-Cr7uWnB2.js +0 -23
- package/dist/enum-D2UEJsrC.js +0 -4
- package/dist/group-CaOhkh72.js +0 -172
- package/dist/icard-H-d9Pip-.js +0 -2
- package/dist/icon_animation-BCdRKkE5.js +0 -2
- package/dist/icon_breadcrumb-BR6LK8hP.js +0 -2
- package/dist/icon_copyright-BfWn1s6t.js +0 -2
- package/dist/icon_jt-DOMTq9De.js +0 -2
- package/dist/icon_layout-DKqAThpM.js +0 -2
- package/dist/icon_mainpage-CXB9JMGv.js +0 -2
- package/dist/icon_menu-BYQtWV-Q.js +0 -2
- package/dist/icon_page_size-r-z4oHWp.js +0 -2
- package/dist/icon_position_type-JDFdklRh.js +0 -2
- package/dist/icon_safe_manage-BDTIOduB.js +0 -2
- package/dist/icon_screen_scale-vEaAdr9S.js +0 -2
- package/dist/icon_system_manage-CkhQtieE.js +0 -2
- package/dist/icon_tabbar-DZNj-h-p.js +0 -2
- package/dist/icon_toolbar-BBYhGmEf.js +0 -2
- package/dist/icon_topbar-Bc379eaS.js +0 -2
- package/dist/icon_watermark-CTP8r-e2.js +0 -2
- package/dist/isEmpty-BjEzPyCa.js +0 -12
- package/dist/itemlist-CFwRUV2Y.js +0 -156
- package/dist/layout_setting-79srmFgJ.js +0 -68
- package/dist/log-BYris9iT.js +0 -14
- package/dist/log-center-CGT-BGAN.js +0 -2
- package/dist/loginHistoryDetail-CZnfmbbM.js +0 -78
- package/dist/menu_setting-C2GciMXz.js +0 -155
- package/dist/not-data-Bml86wdH.js +0 -3
- package/dist/operateHistoryDetail-HId-EZzy.js +0 -90
- package/dist/org-main-DnftBa38.js +0 -2
- package/dist/org-unmain-ByMarqFw.js +0 -2
- package/dist/organization-Dv3FbKke.js +0 -15316
- package/dist/other_setting-oVuhA70c.js +0 -213
- package/dist/page_animation_setting-D0CtzyOZ.js +0 -108
- package/dist/page_w_setting-Q--ct16C.js +0 -63
- package/dist/position-CCZ2MSMP.js +0 -166
- package/dist/region-D3mjqB8H.js +0 -179
- package/dist/remove-DfZZBE2T.js +0 -2
- package/dist/resource-DaQ7CvM_.js +0 -271
- package/dist/resource-app-QSLZ7Hts.js +0 -2
- package/dist/resource-btn-BcB4xMgR.js +0 -2
- package/dist/resource-dynamic-D69oEbaO.js +0 -2
- package/dist/resource-index-BIHr3PZY.js +0 -2
- package/dist/resource-menu-0JSNn7S7.js +0 -2
- package/dist/resource-micro-CcX_pmaJ.js +0 -2
- package/dist/resource-nonmenu-DFItasMT.js +0 -2
- package/dist/role-4UgEw3nH.js +0 -192
- package/dist/role_group-hkRlCnyl.js +0 -171
- package/dist/safe_setting-4fv3qNRZ.js +0 -221
- package/dist/setItem-Vkcwkj-O.js +0 -77
- package/dist/setting-manage-C9whamLP.js +0 -2
- package/dist/stores-DPQF8JRt.js +0 -2
- package/dist/tabbar_setting-DhrW4Jj5.js +0 -139
- package/dist/tenant-lWfGw2u1.js +0 -177
- package/dist/theme-check-mark-DG4oWCQN.js +0 -2
- package/dist/theme-title-BCYnl2jK.js +0 -2
- package/dist/theme_setting-CEb7UYQO.js +0 -111
- package/dist/toolbar_setting-znESrYgi.js +0 -140
- package/dist/useAppAndResource-B7FmNfKG.js +0 -52
- package/dist/user-BkUpcQC8.js +0 -339
- package/dist/view-Bnu34EJT.js +0 -2
- package/dist/watermark_setting-DYirSIAn.js +0 -191
- package/dist/zddata-Ceyga3_2.js +0 -2
- package/dist/zy_checked-DvD7k9F8.js +0 -2
- package/dist/zy_default-DJ2tB3Fo.js +0 -2
|
@@ -1,85 +1,86 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import {
|
|
3
|
-
import { Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, isRef, mergeProps, normalizeClass, normalizeProps, onBeforeUnmount, onMounted, onUnmounted, openBlock, ref
|
|
4
|
-
import { CaretDownOutlined } from "@ant-design/icons-vue";
|
|
5
|
-
import { Empty } from "ant-design-vue";
|
|
6
|
-
import { DirectoryTree, Empty as
|
|
7
|
-
import './ComponentSelect.css'
|
|
1
|
+
import { r as e } from "./chunk-WQLz0Won.js";
|
|
2
|
+
import { t } from "./view-lBxqXfPW.js";
|
|
3
|
+
import { Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, isRef as d, mergeProps as f, normalizeClass as p, normalizeProps as m, onBeforeUnmount as h, onMounted as g, onUnmounted as _, openBlock as v, ref as y, shallowRef as b, unref as x, useId as ee, useModel as S, useTemplateRef as C, watch as w, watchEffect as te, withCtx as ne } from "vue";
|
|
4
|
+
import { CaretDownOutlined as re } from "@ant-design/icons-vue";
|
|
5
|
+
import { Empty as ie } from "ant-design-vue";
|
|
6
|
+
import { DirectoryTree as T, Empty as ae, FormItemRest as oe, Input as se } from "ant-design-vue/es";
|
|
7
|
+
import './ComponentSelect.css';//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
8
|
+
var ce = [
|
|
8
9
|
"top",
|
|
9
10
|
"right",
|
|
10
11
|
"bottom",
|
|
11
12
|
"left"
|
|
12
|
-
],
|
|
13
|
+
], E = Math.min, D = Math.max, O = Math.round, le = Math.floor, k = (e) => ({
|
|
13
14
|
x: e,
|
|
14
15
|
y: e
|
|
15
|
-
}),
|
|
16
|
+
}), ue = {
|
|
16
17
|
left: "right",
|
|
17
18
|
right: "left",
|
|
18
19
|
bottom: "top",
|
|
19
20
|
top: "bottom"
|
|
20
|
-
},
|
|
21
|
+
}, de = {
|
|
21
22
|
start: "end",
|
|
22
23
|
end: "start"
|
|
23
24
|
};
|
|
24
|
-
function
|
|
25
|
-
return
|
|
25
|
+
function fe(e, t, n) {
|
|
26
|
+
return D(e, E(t, n));
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function A(e, t) {
|
|
28
29
|
return typeof e == "function" ? e(t) : e;
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function j(e) {
|
|
31
32
|
return e.split("-")[0];
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function M(e) {
|
|
34
35
|
return e.split("-")[1];
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function pe(e) {
|
|
37
38
|
return e === "x" ? "y" : "x";
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function me(e) {
|
|
40
41
|
return e === "y" ? "height" : "width";
|
|
41
42
|
}
|
|
42
|
-
var
|
|
43
|
-
function
|
|
44
|
-
return
|
|
43
|
+
var he = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
44
|
+
function N(e) {
|
|
45
|
+
return he.has(j(e)) ? "y" : "x";
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
47
|
+
function ge(e) {
|
|
48
|
+
return pe(N(e));
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function _e(e, t, n) {
|
|
50
51
|
n === void 0 && (n = !1);
|
|
51
|
-
let r =
|
|
52
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
52
|
+
let r = M(e), i = ge(e), a = me(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
53
|
+
return t.reference[a] > t.floating[a] && (o = Ee(o)), [o, Ee(o)];
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
let t =
|
|
55
|
+
function ve(e) {
|
|
56
|
+
let t = Ee(e);
|
|
56
57
|
return [
|
|
57
|
-
|
|
58
|
+
ye(e),
|
|
58
59
|
t,
|
|
59
|
-
|
|
60
|
+
ye(t)
|
|
60
61
|
];
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
return e.replace(/start|end/g, (e) =>
|
|
63
|
+
function ye(e) {
|
|
64
|
+
return e.replace(/start|end/g, (e) => de[e]);
|
|
64
65
|
}
|
|
65
|
-
var
|
|
66
|
-
function
|
|
66
|
+
var be = ["left", "right"], xe = ["right", "left"], Se = ["top", "bottom"], Ce = ["bottom", "top"];
|
|
67
|
+
function we(e, t, n) {
|
|
67
68
|
switch (e) {
|
|
68
69
|
case "top":
|
|
69
|
-
case "bottom": return n ? t ?
|
|
70
|
+
case "bottom": return n ? t ? xe : be : t ? be : xe;
|
|
70
71
|
case "left":
|
|
71
|
-
case "right": return t ?
|
|
72
|
+
case "right": return t ? Se : Ce;
|
|
72
73
|
default: return [];
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
-
let i =
|
|
77
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
76
|
+
function Te(e, t, n, r) {
|
|
77
|
+
let i = M(e), a = we(j(e), n === "start", r);
|
|
78
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ye)))), a;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
-
return e.replace(/left|right|bottom|top/g, (e) =>
|
|
80
|
+
function Ee(e) {
|
|
81
|
+
return e.replace(/left|right|bottom|top/g, (e) => ue[e]);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function De(e) {
|
|
83
84
|
return {
|
|
84
85
|
top: 0,
|
|
85
86
|
right: 0,
|
|
@@ -88,15 +89,15 @@ function expandPaddingObject(e) {
|
|
|
88
89
|
...e
|
|
89
90
|
};
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function Oe(e) {
|
|
92
93
|
return typeof e == "number" ? {
|
|
93
94
|
top: e,
|
|
94
95
|
right: e,
|
|
95
96
|
bottom: e,
|
|
96
97
|
left: e
|
|
97
|
-
} :
|
|
98
|
+
} : De(e);
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
+
function ke(e) {
|
|
100
101
|
let { x: t, y: n, width: r, height: i } = e;
|
|
101
102
|
return {
|
|
102
103
|
width: r,
|
|
@@ -109,47 +110,49 @@ function rectToClientRect(e) {
|
|
|
109
110
|
y: n
|
|
110
111
|
};
|
|
111
112
|
}
|
|
112
|
-
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
115
|
+
function Ae() {
|
|
113
116
|
return typeof window < "u";
|
|
114
117
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
118
|
+
function je(e) {
|
|
119
|
+
return Me(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
117
120
|
}
|
|
118
|
-
function
|
|
121
|
+
function P(e) {
|
|
119
122
|
var t;
|
|
120
123
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
121
124
|
}
|
|
122
|
-
function
|
|
123
|
-
return ((
|
|
125
|
+
function F(e) {
|
|
126
|
+
return ((Me(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
124
127
|
}
|
|
125
|
-
function
|
|
126
|
-
return
|
|
128
|
+
function Me(e) {
|
|
129
|
+
return Ae() ? e instanceof Node || e instanceof P(e).Node : !1;
|
|
127
130
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
131
|
+
function I(e) {
|
|
132
|
+
return Ae() ? e instanceof Element || e instanceof P(e).Element : !1;
|
|
130
133
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
134
|
+
function L(e) {
|
|
135
|
+
return Ae() ? e instanceof HTMLElement || e instanceof P(e).HTMLElement : !1;
|
|
133
136
|
}
|
|
134
|
-
function
|
|
135
|
-
return !
|
|
137
|
+
function Ne(e) {
|
|
138
|
+
return !Ae() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof P(e).ShadowRoot;
|
|
136
139
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
139
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } =
|
|
140
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !
|
|
140
|
+
var Pe = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
141
|
+
function Fe(e) {
|
|
142
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = R(e);
|
|
143
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Pe.has(i);
|
|
141
144
|
}
|
|
142
|
-
var
|
|
145
|
+
var Ie = /* @__PURE__ */ new Set([
|
|
143
146
|
"table",
|
|
144
147
|
"td",
|
|
145
148
|
"th"
|
|
146
149
|
]);
|
|
147
|
-
function
|
|
148
|
-
return
|
|
150
|
+
function Le(e) {
|
|
151
|
+
return Ie.has(je(e));
|
|
149
152
|
}
|
|
150
|
-
var
|
|
151
|
-
function
|
|
152
|
-
return
|
|
153
|
+
var Re = [":popover-open", ":modal"];
|
|
154
|
+
function ze(e) {
|
|
155
|
+
return Re.some((t) => {
|
|
153
156
|
try {
|
|
154
157
|
return e.matches(t);
|
|
155
158
|
} catch {
|
|
@@ -157,54 +160,54 @@ function isTopLayer(e) {
|
|
|
157
160
|
}
|
|
158
161
|
});
|
|
159
162
|
}
|
|
160
|
-
var
|
|
163
|
+
var Be = [
|
|
161
164
|
"transform",
|
|
162
165
|
"translate",
|
|
163
166
|
"scale",
|
|
164
167
|
"rotate",
|
|
165
168
|
"perspective"
|
|
166
|
-
],
|
|
169
|
+
], Ve = [
|
|
167
170
|
"transform",
|
|
168
171
|
"translate",
|
|
169
172
|
"scale",
|
|
170
173
|
"rotate",
|
|
171
174
|
"perspective",
|
|
172
175
|
"filter"
|
|
173
|
-
],
|
|
176
|
+
], He = [
|
|
174
177
|
"paint",
|
|
175
178
|
"layout",
|
|
176
179
|
"strict",
|
|
177
180
|
"content"
|
|
178
181
|
];
|
|
179
|
-
function
|
|
180
|
-
let t =
|
|
181
|
-
return
|
|
182
|
+
function Ue(e) {
|
|
183
|
+
let t = Ge(), n = I(e) ? R(e) : e;
|
|
184
|
+
return Be.some((e) => n[e] ? n[e] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Ve.some((e) => (n.willChange || "").includes(e)) || He.some((e) => (n.contain || "").includes(e));
|
|
182
185
|
}
|
|
183
|
-
function
|
|
184
|
-
let t =
|
|
185
|
-
for (;
|
|
186
|
-
if (
|
|
187
|
-
if (
|
|
188
|
-
t =
|
|
186
|
+
function We(e) {
|
|
187
|
+
let t = z(e);
|
|
188
|
+
for (; L(t) && !qe(t);) {
|
|
189
|
+
if (Ue(t)) return t;
|
|
190
|
+
if (ze(t)) return null;
|
|
191
|
+
t = z(t);
|
|
189
192
|
}
|
|
190
193
|
return null;
|
|
191
194
|
}
|
|
192
|
-
function
|
|
195
|
+
function Ge() {
|
|
193
196
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
194
197
|
}
|
|
195
|
-
var
|
|
198
|
+
var Ke = /* @__PURE__ */ new Set([
|
|
196
199
|
"html",
|
|
197
200
|
"body",
|
|
198
201
|
"#document"
|
|
199
202
|
]);
|
|
200
|
-
function
|
|
201
|
-
return
|
|
203
|
+
function qe(e) {
|
|
204
|
+
return Ke.has(je(e));
|
|
202
205
|
}
|
|
203
|
-
function
|
|
204
|
-
return
|
|
206
|
+
function R(e) {
|
|
207
|
+
return P(e).getComputedStyle(e);
|
|
205
208
|
}
|
|
206
|
-
function
|
|
207
|
-
return
|
|
209
|
+
function Je(e) {
|
|
210
|
+
return I(e) ? {
|
|
208
211
|
scrollLeft: e.scrollLeft,
|
|
209
212
|
scrollTop: e.scrollTop
|
|
210
213
|
} : {
|
|
@@ -212,86 +215,90 @@ function getNodeScroll(e) {
|
|
|
212
215
|
scrollTop: e.scrollY
|
|
213
216
|
};
|
|
214
217
|
}
|
|
215
|
-
function
|
|
216
|
-
if (
|
|
217
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
218
|
-
return
|
|
218
|
+
function z(e) {
|
|
219
|
+
if (je(e) === "html") return e;
|
|
220
|
+
let t = e.assignedSlot || e.parentNode || Ne(e) && e.host || F(e);
|
|
221
|
+
return Ne(t) ? t.host : t;
|
|
219
222
|
}
|
|
220
|
-
function
|
|
221
|
-
let t =
|
|
222
|
-
return
|
|
223
|
+
function Ye(e) {
|
|
224
|
+
let t = z(e);
|
|
225
|
+
return qe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : L(t) && Fe(t) ? t : Ye(t);
|
|
223
226
|
}
|
|
224
|
-
function
|
|
227
|
+
function Xe(e, t, n) {
|
|
225
228
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
226
|
-
let r =
|
|
229
|
+
let r = Ye(e), i = r === e.ownerDocument?.body, a = P(r);
|
|
227
230
|
if (i) {
|
|
228
|
-
let e =
|
|
229
|
-
return t.concat(a, a.visualViewport || [],
|
|
231
|
+
let e = Ze(a);
|
|
232
|
+
return t.concat(a, a.visualViewport || [], Fe(r) ? r : [], e && n ? Xe(e) : []);
|
|
230
233
|
}
|
|
231
|
-
return t.concat(r,
|
|
234
|
+
return t.concat(r, Xe(r, [], n));
|
|
232
235
|
}
|
|
233
|
-
function
|
|
236
|
+
function Ze(e) {
|
|
234
237
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
235
238
|
}
|
|
236
|
-
|
|
237
|
-
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region ../../node_modules/.pnpm/@destyler+anatomy@0.2.6/node_modules/@destyler/anatomy/dist/index.mjs
|
|
241
|
+
var Qe = (e) => e.length === 0;
|
|
242
|
+
function $e(e) {
|
|
238
243
|
return e.replace(/([a-z\d])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
|
|
239
244
|
}
|
|
240
|
-
function
|
|
245
|
+
function et(e, t = []) {
|
|
241
246
|
return {
|
|
242
247
|
parts: (...n) => {
|
|
243
|
-
if (
|
|
248
|
+
if (Qe(t)) return et(e, n);
|
|
244
249
|
throw Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?");
|
|
245
250
|
},
|
|
246
|
-
extendWith: (...n) =>
|
|
247
|
-
rename: (e) =>
|
|
251
|
+
extendWith: (...n) => et(e, [...t, ...n]),
|
|
252
|
+
rename: (e) => et(e, t),
|
|
248
253
|
keys: () => t,
|
|
249
254
|
build: () => [...new Set(t)].reduce((t, n) => Object.assign(t, { [n]: {
|
|
250
|
-
selector: [`&[data-scope="${
|
|
255
|
+
selector: [`&[data-scope="${$e(e)}"][data-part="${$e(n)}"]`, `& [data-scope="${$e(e)}"][data-part="${$e(n)}"]`].join(", "),
|
|
251
256
|
attrs: {
|
|
252
|
-
"data-scope":
|
|
253
|
-
"data-part":
|
|
257
|
+
"data-scope": $e(e),
|
|
258
|
+
"data-part": $e(n)
|
|
254
259
|
}
|
|
255
260
|
} }), {})
|
|
256
261
|
};
|
|
257
262
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region ../../node_modules/.pnpm/@destyler+dom@0.2.6/node_modules/@destyler/dom/dist/index.mjs
|
|
265
|
+
var tt = (e) => typeof e == "object" && !!e, nt = (e) => e ? "" : void 0, rt = 1, it = 9, at = 11;
|
|
266
|
+
function B(e) {
|
|
267
|
+
return tt(e) && e.nodeType === rt && typeof e.nodeName == "string";
|
|
261
268
|
}
|
|
262
|
-
var
|
|
263
|
-
function
|
|
264
|
-
return
|
|
269
|
+
var ot = (e) => tt(e) && e.nodeType === it, st = (e) => tt(e) && e === e.window;
|
|
270
|
+
function ct(e) {
|
|
271
|
+
return B(e) ? e.localName || "" : "#document";
|
|
265
272
|
}
|
|
266
|
-
function
|
|
273
|
+
function lt(e) {
|
|
267
274
|
return [
|
|
268
275
|
"html",
|
|
269
276
|
"body",
|
|
270
277
|
"#document"
|
|
271
|
-
].includes(
|
|
278
|
+
].includes(ct(e));
|
|
272
279
|
}
|
|
273
|
-
var
|
|
274
|
-
function
|
|
275
|
-
return
|
|
280
|
+
var ut = (e) => tt(e) && e.nodeType !== void 0;
|
|
281
|
+
function dt(e) {
|
|
282
|
+
return ut(e) && e.nodeType === at && "host" in e;
|
|
276
283
|
}
|
|
277
|
-
var
|
|
278
|
-
function
|
|
279
|
-
return
|
|
284
|
+
var ft = (e) => B(e) && e.localName === "input";
|
|
285
|
+
function pt(e) {
|
|
286
|
+
return B(e) ? e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0 : !1;
|
|
280
287
|
}
|
|
281
|
-
var
|
|
282
|
-
function
|
|
283
|
-
if (e == null || !
|
|
288
|
+
var mt = /(textarea|select)/;
|
|
289
|
+
function ht(e) {
|
|
290
|
+
if (e == null || !B(e)) return !1;
|
|
284
291
|
try {
|
|
285
|
-
return
|
|
292
|
+
return ft(e) && e.selectionStart != null || mt.test(e.localName) || e.isContentEditable || e.getAttribute("contenteditable") === "true" || e.getAttribute("contenteditable") === "";
|
|
286
293
|
} catch {
|
|
287
294
|
return !1;
|
|
288
295
|
}
|
|
289
296
|
}
|
|
290
|
-
function
|
|
291
|
-
if (!e || !t || !
|
|
297
|
+
function gt(e, t) {
|
|
298
|
+
if (!e || !t || !B(e) || !B(t)) return !1;
|
|
292
299
|
let n = t.getRootNode?.();
|
|
293
300
|
if (e === t || e.contains(t)) return !0;
|
|
294
|
-
if (n &&
|
|
301
|
+
if (n && dt(n)) {
|
|
295
302
|
let n = t;
|
|
296
303
|
for (; n;) {
|
|
297
304
|
if (e === n) return !0;
|
|
@@ -300,16 +307,16 @@ function contains(e, t) {
|
|
|
300
307
|
}
|
|
301
308
|
return !1;
|
|
302
309
|
}
|
|
303
|
-
function
|
|
304
|
-
return
|
|
310
|
+
function V(e) {
|
|
311
|
+
return ot(e) ? e : st(e) ? e.document : e?.ownerDocument ?? document;
|
|
305
312
|
}
|
|
306
|
-
function
|
|
307
|
-
return
|
|
313
|
+
function _t(e) {
|
|
314
|
+
return V(e).documentElement;
|
|
308
315
|
}
|
|
309
|
-
function
|
|
310
|
-
return
|
|
316
|
+
function vt(e) {
|
|
317
|
+
return dt(e) ? vt(e.host) : ot(e) ? e.defaultView ?? window : B(e) ? e.ownerDocument?.defaultView ?? window : window;
|
|
311
318
|
}
|
|
312
|
-
function
|
|
319
|
+
function yt(e) {
|
|
313
320
|
let t = e.activeElement;
|
|
314
321
|
for (; t?.shadowRoot;) {
|
|
315
322
|
let e = t.shadowRoot.activeElement;
|
|
@@ -318,130 +325,130 @@ function getActiveElement(e) {
|
|
|
318
325
|
}
|
|
319
326
|
return t;
|
|
320
327
|
}
|
|
321
|
-
function
|
|
322
|
-
if (
|
|
323
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
324
|
-
return
|
|
328
|
+
function bt(e) {
|
|
329
|
+
if (ct(e) === "html") return e;
|
|
330
|
+
let t = e.assignedSlot || e.parentNode || dt(e) && e.host || _t(e);
|
|
331
|
+
return dt(t) ? t.host : t;
|
|
325
332
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return
|
|
333
|
+
var xt = /* @__PURE__ */ new WeakMap();
|
|
334
|
+
function St(e) {
|
|
335
|
+
return xt.has(e) || xt.set(e, vt(e).getComputedStyle(e)), xt.get(e);
|
|
329
336
|
}
|
|
330
|
-
var
|
|
331
|
-
function
|
|
337
|
+
var Ct = () => typeof document < "u";
|
|
338
|
+
function wt() {
|
|
332
339
|
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
333
340
|
}
|
|
334
|
-
var
|
|
335
|
-
function
|
|
341
|
+
var Tt = (e) => Ct() && e.test(wt()), Et = (e) => Ct() && e.test(navigator.vendor), Dt = () => Tt(/^Mac/), Ot = () => Tt(/mac|iphone|ipad|ipod/i), kt = () => Ot() && Et(/apple/i), At = () => Tt(/iP(hone|ad|od)|iOS/);
|
|
342
|
+
function jt(e) {
|
|
336
343
|
return e.composedPath?.() ?? e.nativeEvent?.composedPath?.();
|
|
337
344
|
}
|
|
338
|
-
function
|
|
339
|
-
return
|
|
345
|
+
function H(e) {
|
|
346
|
+
return jt(e)?.[0] ?? e.target;
|
|
340
347
|
}
|
|
341
|
-
function
|
|
342
|
-
return e.button === 2 ||
|
|
348
|
+
function Mt(e) {
|
|
349
|
+
return e.button === 2 || Dt() && e.ctrlKey && e.button === 0;
|
|
343
350
|
}
|
|
344
|
-
function
|
|
351
|
+
function U(e, t, n, r) {
|
|
345
352
|
let i = typeof e == "function" ? e() : e;
|
|
346
353
|
return i?.addEventListener(t, n, r), () => {
|
|
347
354
|
i?.removeEventListener(t, n, r);
|
|
348
355
|
};
|
|
349
356
|
}
|
|
350
|
-
function
|
|
351
|
-
let { type: n = "HTMLInputElement", property: r = "value" } = t, i =
|
|
357
|
+
function Nt(e, t) {
|
|
358
|
+
let { type: n = "HTMLInputElement", property: r = "value" } = t, i = vt(e)[n].prototype;
|
|
352
359
|
return Object.getOwnPropertyDescriptor(i, r) ?? {};
|
|
353
360
|
}
|
|
354
|
-
function
|
|
361
|
+
function Pt(e) {
|
|
355
362
|
if (e.localName === "input") return "HTMLInputElement";
|
|
356
363
|
if (e.localName === "textarea") return "HTMLTextAreaElement";
|
|
357
364
|
if (e.localName === "select") return "HTMLSelectElement";
|
|
358
365
|
}
|
|
359
|
-
function
|
|
360
|
-
let r =
|
|
361
|
-
r &&
|
|
366
|
+
function Ft(e, t, n = "value") {
|
|
367
|
+
let r = Pt(e);
|
|
368
|
+
r && Nt(e, {
|
|
362
369
|
type: r,
|
|
363
370
|
property: n
|
|
364
371
|
}).set?.call(e, t), e.setAttribute(n, t);
|
|
365
372
|
}
|
|
366
|
-
var
|
|
367
|
-
function
|
|
373
|
+
var It = (e) => B(e) && e.tagName === "IFRAME", Lt = (e) => !Number.isNaN(Number.parseInt(e.getAttribute("tabindex") || "0", 10)), Rt = (e) => Number.parseInt(e.getAttribute("tabindex") || "0", 10) < 0, zt = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type";
|
|
374
|
+
function Bt(e, t = !1) {
|
|
368
375
|
if (!e) return [];
|
|
369
|
-
let n = Array.from(e.querySelectorAll(
|
|
370
|
-
(t === !0 || t === "if-empty" && n.length === 0) &&
|
|
371
|
-
let r = n.filter(
|
|
376
|
+
let n = Array.from(e.querySelectorAll(zt));
|
|
377
|
+
(t === !0 || t === "if-empty" && n.length === 0) && B(e) && W(e) && n.unshift(e);
|
|
378
|
+
let r = n.filter(W);
|
|
372
379
|
return r.forEach((e, t) => {
|
|
373
|
-
if (
|
|
380
|
+
if (It(e) && e.contentDocument) {
|
|
374
381
|
let n = e.contentDocument.body;
|
|
375
|
-
r.splice(t, 1, ...
|
|
382
|
+
r.splice(t, 1, ...Bt(n));
|
|
376
383
|
}
|
|
377
384
|
}), r;
|
|
378
385
|
}
|
|
379
|
-
function
|
|
380
|
-
return !e || e.closest("[inert]") ? !1 : e.matches(
|
|
386
|
+
function W(e) {
|
|
387
|
+
return !e || e.closest("[inert]") ? !1 : e.matches(zt) && pt(e);
|
|
381
388
|
}
|
|
382
|
-
function
|
|
389
|
+
function Vt(e, t) {
|
|
383
390
|
if (!e) return [];
|
|
384
|
-
let n = Array.from(e.querySelectorAll(
|
|
385
|
-
return t &&
|
|
386
|
-
if (
|
|
387
|
-
let n = e.contentDocument.body, i =
|
|
391
|
+
let n = Array.from(e.querySelectorAll(zt)), r = n.filter(Ht);
|
|
392
|
+
return t && Ht(e) && r.unshift(e), r.forEach((e, t) => {
|
|
393
|
+
if (It(e) && e.contentDocument) {
|
|
394
|
+
let n = e.contentDocument.body, i = Vt(n);
|
|
388
395
|
r.splice(t, 1, ...i);
|
|
389
396
|
}
|
|
390
397
|
}), !r.length && t ? n : r;
|
|
391
398
|
}
|
|
392
|
-
function
|
|
393
|
-
return e != null && e.tabIndex > 0 ? !0 :
|
|
399
|
+
function Ht(e) {
|
|
400
|
+
return e != null && e.tabIndex > 0 ? !0 : W(e) && !Rt(e);
|
|
394
401
|
}
|
|
395
|
-
function
|
|
396
|
-
let n =
|
|
402
|
+
function Ut(e, t) {
|
|
403
|
+
let n = Vt(e, t);
|
|
397
404
|
return [n[0] || null, n[n.length - 1] || null];
|
|
398
405
|
}
|
|
399
|
-
function
|
|
400
|
-
let n =
|
|
406
|
+
function Wt(e, t) {
|
|
407
|
+
let n = Vt(e), r = e?.ownerDocument || document, i = t ?? r.activeElement;
|
|
401
408
|
return i && n[n.indexOf(i) + 1] || null;
|
|
402
409
|
}
|
|
403
|
-
function
|
|
404
|
-
return e.tabIndex < 0 && (/^(audio|video|details)$/.test(e.localName) ||
|
|
410
|
+
function Gt(e) {
|
|
411
|
+
return e.tabIndex < 0 && (/^(audio|video|details)$/.test(e.localName) || ht(e)) && !Lt(e) ? 0 : e.tabIndex;
|
|
405
412
|
}
|
|
406
|
-
function
|
|
413
|
+
function Kt(e) {
|
|
407
414
|
let { root: t, getInitialEl: n, filter: r, enabled: i = !0 } = e;
|
|
408
415
|
if (!i) return;
|
|
409
416
|
let a = null;
|
|
410
417
|
if (a ||= typeof n == "function" ? n() : n, a ||= t?.querySelector("[data-autofocus],[autofocus]"), !a) {
|
|
411
|
-
let e =
|
|
418
|
+
let e = Vt(t);
|
|
412
419
|
a = r ? e.filter(r)[0] : e[0];
|
|
413
420
|
}
|
|
414
421
|
return a || t || void 0;
|
|
415
422
|
}
|
|
416
|
-
function
|
|
423
|
+
function G(e) {
|
|
417
424
|
let t = globalThis.requestAnimationFrame(e);
|
|
418
425
|
return () => {
|
|
419
426
|
globalThis.cancelAnimationFrame(t);
|
|
420
427
|
};
|
|
421
428
|
}
|
|
422
|
-
function
|
|
423
|
-
let t =
|
|
424
|
-
return
|
|
429
|
+
function qt(e) {
|
|
430
|
+
let t = bt(e);
|
|
431
|
+
return lt(t) ? V(t).body : B(t) && Yt(t) ? t : qt(t);
|
|
425
432
|
}
|
|
426
|
-
var
|
|
427
|
-
function
|
|
428
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } =
|
|
429
|
-
return
|
|
433
|
+
var Jt = /auto|scroll|overlay|hidden|clip/;
|
|
434
|
+
function Yt(e) {
|
|
435
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = vt(e).getComputedStyle(e);
|
|
436
|
+
return Jt.test(t + r + n) && !["inline", "contents"].includes(i);
|
|
430
437
|
}
|
|
431
|
-
function
|
|
438
|
+
function Xt(e, t = {}) {
|
|
432
439
|
let { triggerElement: n, onFocus: r } = t, i = e?.ownerDocument || document, a = i.body;
|
|
433
440
|
function o(t) {
|
|
434
441
|
if (t.key !== "Tab") return;
|
|
435
|
-
let o = null, [s, c] =
|
|
436
|
-
t.shiftKey && (i.activeElement === s || l) ? o = n : !t.shiftKey && i.activeElement === n ? o = s : !t.shiftKey && (i.activeElement === c || l) && (o =
|
|
442
|
+
let o = null, [s, c] = Ut(e, !0), l = !s && !c;
|
|
443
|
+
t.shiftKey && (i.activeElement === s || l) ? o = n : !t.shiftKey && i.activeElement === n ? o = s : !t.shiftKey && (i.activeElement === c || l) && (o = Wt(a, n)), o && (t.preventDefault(), typeof r == "function" ? r(o) : o.focus());
|
|
437
444
|
}
|
|
438
|
-
return
|
|
445
|
+
return U(i, "keydown", o, !0);
|
|
439
446
|
}
|
|
440
|
-
function
|
|
441
|
-
let { defer: n, triggerElement: r, ...i } = t, a = n ?
|
|
447
|
+
function Zt(e, t) {
|
|
448
|
+
let { defer: n, triggerElement: r, ...i } = t, a = n ? G : (e) => e(), o = [];
|
|
442
449
|
return o.push(a(() => {
|
|
443
450
|
let t = typeof e == "function" ? e() : e, n = typeof r == "function" ? r() : r;
|
|
444
|
-
o.push(
|
|
451
|
+
o.push(Xt(t, {
|
|
445
452
|
triggerElement: n,
|
|
446
453
|
...i
|
|
447
454
|
}));
|
|
@@ -449,16 +456,16 @@ function proxyTabFocus(e, t) {
|
|
|
449
456
|
o.forEach((e) => e?.());
|
|
450
457
|
};
|
|
451
458
|
}
|
|
452
|
-
function
|
|
459
|
+
function Qt(e) {
|
|
453
460
|
let t = {
|
|
454
461
|
getRootNode: (e) => e.getRootNode?.() ?? document,
|
|
455
|
-
getDoc: (e) =>
|
|
462
|
+
getDoc: (e) => V(t.getRootNode(e)),
|
|
456
463
|
getWin: (e) => t.getDoc(e).defaultView ?? window,
|
|
457
|
-
getActiveElement: (e) =>
|
|
464
|
+
getActiveElement: (e) => yt(t.getRootNode(e)),
|
|
458
465
|
isActiveElement: (e, n) => n === t.getActiveElement(e),
|
|
459
466
|
getById: (e, n) => t.getRootNode(e).getElementById(n),
|
|
460
467
|
setValue: (e, t) => {
|
|
461
|
-
e == null || t == null ||
|
|
468
|
+
e == null || t == null || Ft(e, t.toString());
|
|
462
469
|
}
|
|
463
470
|
};
|
|
464
471
|
return {
|
|
@@ -466,10 +473,10 @@ function createScope(e) {
|
|
|
466
473
|
...e
|
|
467
474
|
};
|
|
468
475
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
471
|
-
|
|
472
|
-
let r =
|
|
476
|
+
var $t = /* @__PURE__ */ new WeakMap();
|
|
477
|
+
function en(e, t, n) {
|
|
478
|
+
$t.has(e) || $t.set(e, /* @__PURE__ */ new Map());
|
|
479
|
+
let r = $t.get(e), i = r.get(t);
|
|
473
480
|
if (!i) return r.set(t, n()), () => {
|
|
474
481
|
r.get(t)?.(), r.delete(t);
|
|
475
482
|
};
|
|
@@ -480,81 +487,85 @@ function set$2(e, t, n) {
|
|
|
480
487
|
r.get(t) === o && (a(), r.set(t, i));
|
|
481
488
|
};
|
|
482
489
|
}
|
|
483
|
-
function
|
|
484
|
-
return e ?
|
|
490
|
+
function tn(e, t) {
|
|
491
|
+
return e ? en(e, "style", () => {
|
|
485
492
|
let n = e.style.cssText;
|
|
486
493
|
return Object.assign(e.style, t), () => {
|
|
487
494
|
e.style.cssText = n;
|
|
488
495
|
};
|
|
489
496
|
}) : () => {};
|
|
490
497
|
}
|
|
491
|
-
var
|
|
492
|
-
function
|
|
498
|
+
var nn = 1e3 / 60;
|
|
499
|
+
function rn(e, t) {
|
|
493
500
|
let n = e();
|
|
494
|
-
if (
|
|
501
|
+
if (B(n) && n.isConnected) return t(n), () => void 0;
|
|
495
502
|
{
|
|
496
503
|
let n = setInterval(() => {
|
|
497
504
|
let r = e();
|
|
498
|
-
|
|
499
|
-
},
|
|
505
|
+
B(r) && r.isConnected && (t(r), clearInterval(n));
|
|
506
|
+
}, nn);
|
|
500
507
|
return () => clearInterval(n);
|
|
501
508
|
}
|
|
502
509
|
}
|
|
503
|
-
function
|
|
510
|
+
function an(e, t) {
|
|
504
511
|
let n = [];
|
|
505
512
|
return e?.forEach((e) => {
|
|
506
|
-
let r =
|
|
513
|
+
let r = rn(e, t);
|
|
507
514
|
n.push(r);
|
|
508
515
|
}), () => {
|
|
509
516
|
n.forEach((e) => e());
|
|
510
517
|
};
|
|
511
518
|
}
|
|
512
|
-
|
|
519
|
+
//#endregion
|
|
520
|
+
//#region ../../node_modules/.pnpm/@destyler+utils@0.2.6/node_modules/@destyler/utils/dist/index.mjs
|
|
521
|
+
function on(e) {
|
|
513
522
|
for (; e.length > 0;) e.pop();
|
|
514
523
|
return e;
|
|
515
524
|
}
|
|
516
|
-
function
|
|
525
|
+
function sn(e, ...t) {
|
|
517
526
|
return (typeof e == "function" ? e(...t) : e) ?? void 0;
|
|
518
527
|
}
|
|
519
|
-
var
|
|
520
|
-
function
|
|
521
|
-
function
|
|
528
|
+
var K = (e) => e;
|
|
529
|
+
function cn() {}
|
|
530
|
+
function ln(...e) {
|
|
522
531
|
return (...t) => {
|
|
523
532
|
e.forEach((e) => {
|
|
524
533
|
e?.(...t);
|
|
525
534
|
});
|
|
526
535
|
};
|
|
527
536
|
}
|
|
528
|
-
var
|
|
537
|
+
var un = /* @__PURE__ */ (() => {
|
|
529
538
|
let e = 0;
|
|
530
539
|
return () => (e++, e.toString(36));
|
|
531
|
-
})(),
|
|
532
|
-
function
|
|
540
|
+
})(), dn = (e) => Array.isArray(e), fn = (e) => typeof e == "object" && !!e, pn = (e) => fn(e) && !dn(e), mn = (e) => typeof e == "number" && !Number.isNaN(e), q = (e) => typeof e == "string", hn = (e) => typeof e == "function", gn = (e) => e == null;
|
|
541
|
+
function _n(e, t) {
|
|
533
542
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
534
543
|
}
|
|
535
|
-
var
|
|
536
|
-
function
|
|
537
|
-
if (!
|
|
544
|
+
var vn = (e) => Object.prototype.toString.call(e), yn = Function.prototype.toString, bn = yn.call(Object);
|
|
545
|
+
function xn(e) {
|
|
546
|
+
if (!fn(e) || vn(e) !== "[object Object]") return !1;
|
|
538
547
|
let t = Object.getPrototypeOf(e);
|
|
539
548
|
if (t === null) return !0;
|
|
540
|
-
let n =
|
|
541
|
-
return typeof n == "function" && n instanceof n &&
|
|
549
|
+
let n = _n(t, "constructor") && t.constructor;
|
|
550
|
+
return typeof n == "function" && n instanceof n && yn.call(n) === bn;
|
|
542
551
|
}
|
|
543
|
-
var { floor, abs, round, min, max, sign } = Math;
|
|
544
|
-
function
|
|
545
|
-
if (!
|
|
552
|
+
var { floor: Sn, abs: Cn, round: wn, min: Tn, max: En, sign: Dn } = Math;
|
|
553
|
+
function On(e) {
|
|
554
|
+
if (!kn(e) || e === void 0) return e;
|
|
546
555
|
let t = Reflect.ownKeys(e).filter((e) => typeof e == "string"), n = {};
|
|
547
556
|
for (let r of t) {
|
|
548
557
|
let t = e[r];
|
|
549
|
-
t !== void 0 && (n[r] =
|
|
558
|
+
t !== void 0 && (n[r] = On(t));
|
|
550
559
|
}
|
|
551
560
|
return n;
|
|
552
561
|
}
|
|
553
|
-
function
|
|
562
|
+
function kn(e) {
|
|
554
563
|
return e && typeof e == "object" && e.constructor === Object;
|
|
555
564
|
}
|
|
556
|
-
|
|
557
|
-
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region ../../node_modules/.pnpm/@floating-ui+core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
567
|
+
function An(e, t, n) {
|
|
568
|
+
let { reference: r, floating: i } = e, a = N(t), o = ge(t), s = me(o), c = j(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
558
569
|
switch (c) {
|
|
559
570
|
case "top":
|
|
560
571
|
p = {
|
|
@@ -585,7 +596,7 @@ function computeCoordsFromPlacement(e, t, n) {
|
|
|
585
596
|
y: r.y
|
|
586
597
|
};
|
|
587
598
|
}
|
|
588
|
-
switch (
|
|
599
|
+
switch (M(t)) {
|
|
589
600
|
case "start":
|
|
590
601
|
p[o] -= f * (n && l ? -1 : 1);
|
|
591
602
|
break;
|
|
@@ -595,9 +606,9 @@ function computeCoordsFromPlacement(e, t, n) {
|
|
|
595
606
|
}
|
|
596
607
|
return p;
|
|
597
608
|
}
|
|
598
|
-
async function
|
|
609
|
+
async function jn(e, t) {
|
|
599
610
|
t === void 0 && (t = {});
|
|
600
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
611
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = A(t, e), p = Oe(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = ke(await i.getClippingRect({
|
|
601
612
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
602
613
|
boundary: c,
|
|
603
614
|
rootBoundary: l,
|
|
@@ -610,7 +621,7 @@ async function detectOverflow(e, t) {
|
|
|
610
621
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
611
622
|
x: 1,
|
|
612
623
|
y: 1
|
|
613
|
-
}, y =
|
|
624
|
+
}, y = ke(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
614
625
|
elements: o,
|
|
615
626
|
rect: g,
|
|
616
627
|
offsetParent: _,
|
|
@@ -623,12 +634,12 @@ async function detectOverflow(e, t) {
|
|
|
623
634
|
right: (y.right - h.right + p.right) / v.x
|
|
624
635
|
};
|
|
625
636
|
}
|
|
626
|
-
var
|
|
637
|
+
var Mn = async (e, t, n) => {
|
|
627
638
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = a.filter(Boolean), c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
628
639
|
reference: e,
|
|
629
640
|
floating: t,
|
|
630
641
|
strategy: i
|
|
631
|
-
}), { x: u, y: d } =
|
|
642
|
+
}), { x: u, y: d } = An(l, r, c), f = r, p = {}, m = 0;
|
|
632
643
|
for (let n = 0; n < s.length; n++) {
|
|
633
644
|
let { name: a, fn: h } = s[n], { x: g, y: _, data: v, reset: y } = await h({
|
|
634
645
|
x: u,
|
|
@@ -640,7 +651,7 @@ var computePosition$1 = async (e, t, n) => {
|
|
|
640
651
|
rects: l,
|
|
641
652
|
platform: {
|
|
642
653
|
...o,
|
|
643
|
-
detectOverflow: o.detectOverflow ??
|
|
654
|
+
detectOverflow: o.detectOverflow ?? jn
|
|
644
655
|
},
|
|
645
656
|
elements: {
|
|
646
657
|
reference: e,
|
|
@@ -657,7 +668,7 @@ var computePosition$1 = async (e, t, n) => {
|
|
|
657
668
|
reference: e,
|
|
658
669
|
floating: t,
|
|
659
670
|
strategy: i
|
|
660
|
-
}) : y.rects), {x: u, y: d} =
|
|
671
|
+
}) : y.rects), {x: u, y: d} = An(l, f, c)), n = -1);
|
|
661
672
|
}
|
|
662
673
|
return {
|
|
663
674
|
x: u,
|
|
@@ -666,61 +677,61 @@ var computePosition$1 = async (e, t, n) => {
|
|
|
666
677
|
strategy: i,
|
|
667
678
|
middlewareData: p
|
|
668
679
|
};
|
|
669
|
-
},
|
|
680
|
+
}, Nn = (e) => ({
|
|
670
681
|
name: "arrow",
|
|
671
682
|
options: e,
|
|
672
683
|
async fn(t) {
|
|
673
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
684
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = A(e, t) || {};
|
|
674
685
|
if (l == null) return {};
|
|
675
|
-
let d =
|
|
686
|
+
let d = Oe(u), f = {
|
|
676
687
|
x: n,
|
|
677
688
|
y: r
|
|
678
|
-
}, p =
|
|
679
|
-
(!
|
|
680
|
-
let
|
|
689
|
+
}, p = ge(i), m = me(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], ee = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), S = ee ? ee[y] : 0;
|
|
690
|
+
(!S || !await (o.isElement == null ? void 0 : o.isElement(ee))) && (S = s.floating[y] || a.floating[m]);
|
|
691
|
+
let C = b / 2 - x / 2, w = S / 2 - h[m] / 2 - 1, te = E(d[_], w), ne = E(d[v], w), re = te, ie = S - h[m] - ne, T = S / 2 - h[m] / 2 + C, ae = fe(re, T, ie), oe = !c.arrow && M(i) != null && T !== ae && a.reference[m] / 2 - (T < re ? te : ne) - h[m] / 2 < 0, se = oe ? T < re ? T - re : T - ie : 0;
|
|
681
692
|
return {
|
|
682
|
-
[p]: f[p] +
|
|
693
|
+
[p]: f[p] + se,
|
|
683
694
|
data: {
|
|
684
|
-
[p]:
|
|
685
|
-
centerOffset:
|
|
686
|
-
...
|
|
695
|
+
[p]: ae,
|
|
696
|
+
centerOffset: T - ae - se,
|
|
697
|
+
...oe && { alignmentOffset: se }
|
|
687
698
|
},
|
|
688
|
-
reset:
|
|
699
|
+
reset: oe
|
|
689
700
|
};
|
|
690
701
|
}
|
|
691
|
-
}),
|
|
702
|
+
}), Pn = function(e) {
|
|
692
703
|
return e === void 0 && (e = {}), {
|
|
693
704
|
name: "flip",
|
|
694
705
|
options: e,
|
|
695
706
|
async fn(t) {
|
|
696
707
|
var n;
|
|
697
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
708
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = A(e, t);
|
|
698
709
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
699
|
-
let g =
|
|
700
|
-
!d && x && b.push(...
|
|
701
|
-
let
|
|
702
|
-
if (l &&
|
|
703
|
-
let e =
|
|
704
|
-
|
|
710
|
+
let g = j(r), _ = N(o), v = j(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Ee(o)] : ve(o)), x = p !== "none";
|
|
711
|
+
!d && x && b.push(...Te(o, m, p, y));
|
|
712
|
+
let ee = [o, ...b], S = await s.detectOverflow(t, h), C = [], w = i.flip?.overflows || [];
|
|
713
|
+
if (l && C.push(S[g]), u) {
|
|
714
|
+
let e = _e(r, a, y);
|
|
715
|
+
C.push(S[e[0]], S[e[1]]);
|
|
705
716
|
}
|
|
706
|
-
if (
|
|
717
|
+
if (w = [...w, {
|
|
707
718
|
placement: r,
|
|
708
|
-
overflows:
|
|
709
|
-
}], !
|
|
710
|
-
let e = (i.flip?.index || 0) + 1, t =
|
|
711
|
-
if (t && (!(u === "alignment" && _ !==
|
|
719
|
+
overflows: C
|
|
720
|
+
}], !C.every((e) => e <= 0)) {
|
|
721
|
+
let e = (i.flip?.index || 0) + 1, t = ee[e];
|
|
722
|
+
if (t && (!(u === "alignment" && _ !== N(t)) || w.every((e) => N(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
712
723
|
data: {
|
|
713
724
|
index: e,
|
|
714
|
-
overflows:
|
|
725
|
+
overflows: w
|
|
715
726
|
},
|
|
716
727
|
reset: { placement: t }
|
|
717
728
|
};
|
|
718
|
-
let n =
|
|
729
|
+
let n = w.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
719
730
|
if (!n) switch (f) {
|
|
720
731
|
case "bestFit": {
|
|
721
|
-
let e =
|
|
732
|
+
let e = w.filter((e) => {
|
|
722
733
|
if (x) {
|
|
723
|
-
let t =
|
|
734
|
+
let t = N(e.placement);
|
|
724
735
|
return t === _ || t === "y";
|
|
725
736
|
}
|
|
726
737
|
return !0;
|
|
@@ -738,7 +749,7 @@ var computePosition$1 = async (e, t, n) => {
|
|
|
738
749
|
}
|
|
739
750
|
};
|
|
740
751
|
};
|
|
741
|
-
function
|
|
752
|
+
function Fn(e, t) {
|
|
742
753
|
return {
|
|
743
754
|
top: e.top - t.height,
|
|
744
755
|
right: e.right - t.width,
|
|
@@ -746,43 +757,43 @@ function getSideOffsets(e, t) {
|
|
|
746
757
|
left: e.left - t.width
|
|
747
758
|
};
|
|
748
759
|
}
|
|
749
|
-
function
|
|
750
|
-
return
|
|
760
|
+
function In(e) {
|
|
761
|
+
return ce.some((t) => e[t] >= 0);
|
|
751
762
|
}
|
|
752
|
-
var
|
|
763
|
+
var Ln = function(e) {
|
|
753
764
|
return e === void 0 && (e = {}), {
|
|
754
765
|
name: "hide",
|
|
755
766
|
options: e,
|
|
756
767
|
async fn(t) {
|
|
757
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
768
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = A(e, t);
|
|
758
769
|
switch (i) {
|
|
759
770
|
case "referenceHidden": {
|
|
760
|
-
let e =
|
|
771
|
+
let e = Fn(await r.detectOverflow(t, {
|
|
761
772
|
...a,
|
|
762
773
|
elementContext: "reference"
|
|
763
774
|
}), n.reference);
|
|
764
775
|
return { data: {
|
|
765
776
|
referenceHiddenOffsets: e,
|
|
766
|
-
referenceHidden:
|
|
777
|
+
referenceHidden: In(e)
|
|
767
778
|
} };
|
|
768
779
|
}
|
|
769
780
|
case "escaped": {
|
|
770
|
-
let e =
|
|
781
|
+
let e = Fn(await r.detectOverflow(t, {
|
|
771
782
|
...a,
|
|
772
783
|
altBoundary: !0
|
|
773
784
|
}), n.floating);
|
|
774
785
|
return { data: {
|
|
775
786
|
escapedOffsets: e,
|
|
776
|
-
escaped:
|
|
787
|
+
escaped: In(e)
|
|
777
788
|
} };
|
|
778
789
|
}
|
|
779
790
|
default: return {};
|
|
780
791
|
}
|
|
781
792
|
}
|
|
782
793
|
};
|
|
783
|
-
},
|
|
784
|
-
async function
|
|
785
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
794
|
+
}, Rn = /* @__PURE__ */ new Set(["left", "top"]);
|
|
795
|
+
async function zn(e, t) {
|
|
796
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = j(n), s = M(n), c = N(n) === "y", l = Rn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = A(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
786
797
|
mainAxis: d,
|
|
787
798
|
crossAxis: 0,
|
|
788
799
|
alignmentAxis: null
|
|
@@ -799,13 +810,13 @@ async function convertValueToCoords(e, t) {
|
|
|
799
810
|
y: p * u
|
|
800
811
|
};
|
|
801
812
|
}
|
|
802
|
-
var
|
|
813
|
+
var Bn = function(e) {
|
|
803
814
|
return e === void 0 && (e = 0), {
|
|
804
815
|
name: "offset",
|
|
805
816
|
options: e,
|
|
806
817
|
async fn(t) {
|
|
807
818
|
var n;
|
|
808
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
819
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await zn(t, e);
|
|
809
820
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
810
821
|
x: r + s.x,
|
|
811
822
|
y: i + s.y,
|
|
@@ -816,7 +827,7 @@ var offset$1 = function(e) {
|
|
|
816
827
|
};
|
|
817
828
|
}
|
|
818
829
|
};
|
|
819
|
-
},
|
|
830
|
+
}, Vn = function(e) {
|
|
820
831
|
return e === void 0 && (e = {}), {
|
|
821
832
|
name: "shift",
|
|
822
833
|
options: e,
|
|
@@ -827,17 +838,17 @@ var offset$1 = function(e) {
|
|
|
827
838
|
x: t,
|
|
828
839
|
y: n
|
|
829
840
|
};
|
|
830
|
-
} }, ...l } =
|
|
841
|
+
} }, ...l } = A(e, t), u = {
|
|
831
842
|
x: n,
|
|
832
843
|
y: r
|
|
833
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
844
|
+
}, d = await a.detectOverflow(t, l), f = N(j(i)), p = pe(f), m = u[p], h = u[f];
|
|
834
845
|
if (o) {
|
|
835
846
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
836
|
-
m =
|
|
847
|
+
m = fe(n, m, r);
|
|
837
848
|
}
|
|
838
849
|
if (s) {
|
|
839
850
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
840
|
-
h =
|
|
851
|
+
h = fe(n, h, r);
|
|
841
852
|
}
|
|
842
853
|
let g = c.fn({
|
|
843
854
|
...t,
|
|
@@ -857,14 +868,14 @@ var offset$1 = function(e) {
|
|
|
857
868
|
};
|
|
858
869
|
}
|
|
859
870
|
};
|
|
860
|
-
},
|
|
871
|
+
}, Hn = function(e) {
|
|
861
872
|
return e === void 0 && (e = {}), {
|
|
862
873
|
options: e,
|
|
863
874
|
fn(t) {
|
|
864
|
-
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } =
|
|
875
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = A(e, t), u = {
|
|
865
876
|
x: n,
|
|
866
877
|
y: r
|
|
867
|
-
}, d =
|
|
878
|
+
}, d = N(i), f = pe(d), p = u[f], m = u[d], h = A(s, t), g = typeof h == "number" ? {
|
|
868
879
|
mainAxis: h,
|
|
869
880
|
crossAxis: 0
|
|
870
881
|
} : {
|
|
@@ -877,7 +888,7 @@ var offset$1 = function(e) {
|
|
|
877
888
|
p < t ? p = t : p > n && (p = n);
|
|
878
889
|
}
|
|
879
890
|
if (l) {
|
|
880
|
-
let e = f === "y" ? "width" : "height", t =
|
|
891
|
+
let e = f === "y" ? "width" : "height", t = Rn.has(j(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
881
892
|
m < n ? m = n : m > r && (m = r);
|
|
882
893
|
}
|
|
883
894
|
return {
|
|
@@ -886,102 +897,104 @@ var offset$1 = function(e) {
|
|
|
886
897
|
};
|
|
887
898
|
}
|
|
888
899
|
};
|
|
889
|
-
},
|
|
900
|
+
}, Un = function(e) {
|
|
890
901
|
return e === void 0 && (e = {}), {
|
|
891
902
|
name: "size",
|
|
892
903
|
options: e,
|
|
893
904
|
async fn(t) {
|
|
894
905
|
var n, r;
|
|
895
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
906
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = A(e, t), u = await o.detectOverflow(t, l), d = j(i), f = M(i), p = N(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
896
907
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
897
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
898
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
899
|
-
let e =
|
|
900
|
-
p ?
|
|
908
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = E(h - u[g], v), x = E(m - u[_], y), ee = !t.middlewareData.shift, S = b, C = x;
|
|
909
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = y), (r = t.middlewareData.shift) != null && r.enabled.y && (S = v), ee && !f) {
|
|
910
|
+
let e = D(u.left, 0), t = D(u.right, 0), n = D(u.top, 0), r = D(u.bottom, 0);
|
|
911
|
+
p ? C = m - 2 * (e !== 0 || t !== 0 ? e + t : D(u.left, u.right)) : S = h - 2 * (n !== 0 || r !== 0 ? n + r : D(u.top, u.bottom));
|
|
901
912
|
}
|
|
902
913
|
await c({
|
|
903
914
|
...t,
|
|
904
|
-
availableWidth:
|
|
905
|
-
availableHeight:
|
|
915
|
+
availableWidth: C,
|
|
916
|
+
availableHeight: S
|
|
906
917
|
});
|
|
907
|
-
let
|
|
908
|
-
return m !==
|
|
918
|
+
let w = await o.getDimensions(s.floating);
|
|
919
|
+
return m !== w.width || h !== w.height ? { reset: { rects: !0 } } : {};
|
|
909
920
|
}
|
|
910
921
|
};
|
|
911
922
|
};
|
|
912
|
-
|
|
913
|
-
|
|
923
|
+
//#endregion
|
|
924
|
+
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
925
|
+
function Wn(e) {
|
|
926
|
+
let t = R(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = L(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = O(n) !== a || O(r) !== o;
|
|
914
927
|
return s && (n = a, r = o), {
|
|
915
928
|
width: n,
|
|
916
929
|
height: r,
|
|
917
930
|
$: s
|
|
918
931
|
};
|
|
919
932
|
}
|
|
920
|
-
function
|
|
921
|
-
return
|
|
933
|
+
function Gn(e) {
|
|
934
|
+
return I(e) ? e : e.contextElement;
|
|
922
935
|
}
|
|
923
|
-
function
|
|
924
|
-
let t =
|
|
925
|
-
if (!
|
|
926
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
936
|
+
function Kn(e) {
|
|
937
|
+
let t = Gn(e);
|
|
938
|
+
if (!L(t)) return k(1);
|
|
939
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Wn(t), o = (a ? O(n.width) : n.width) / r, s = (a ? O(n.height) : n.height) / i;
|
|
927
940
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
928
941
|
x: o,
|
|
929
942
|
y: s
|
|
930
943
|
};
|
|
931
944
|
}
|
|
932
|
-
var
|
|
933
|
-
function
|
|
934
|
-
let t =
|
|
935
|
-
return !
|
|
945
|
+
var qn = /* @__PURE__ */ k(0);
|
|
946
|
+
function Jn(e) {
|
|
947
|
+
let t = P(e);
|
|
948
|
+
return !Ge() || !t.visualViewport ? qn : {
|
|
936
949
|
x: t.visualViewport.offsetLeft,
|
|
937
950
|
y: t.visualViewport.offsetTop
|
|
938
951
|
};
|
|
939
952
|
}
|
|
940
|
-
function
|
|
941
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
953
|
+
function Yn(e, t, n) {
|
|
954
|
+
return t === void 0 && (t = !1), !n || t && n !== P(e) ? !1 : t;
|
|
942
955
|
}
|
|
943
|
-
function
|
|
956
|
+
function Xn(e, t, n, r) {
|
|
944
957
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
945
|
-
let i = e.getBoundingClientRect(), a =
|
|
946
|
-
t && (r ?
|
|
947
|
-
let s =
|
|
958
|
+
let i = e.getBoundingClientRect(), a = Gn(e), o = k(1);
|
|
959
|
+
t && (r ? I(r) && (o = Kn(r)) : o = Kn(e));
|
|
960
|
+
let s = Yn(a, n, r) ? Jn(a) : k(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
948
961
|
if (a) {
|
|
949
|
-
let e =
|
|
962
|
+
let e = P(a), t = r && I(r) ? P(r) : r, n = e, i = Ze(n);
|
|
950
963
|
for (; i && r && t !== n;) {
|
|
951
|
-
let e =
|
|
952
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
964
|
+
let e = Kn(i), t = i.getBoundingClientRect(), r = R(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
965
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = P(i), i = Ze(n);
|
|
953
966
|
}
|
|
954
967
|
}
|
|
955
|
-
return
|
|
968
|
+
return ke({
|
|
956
969
|
width: u,
|
|
957
970
|
height: d,
|
|
958
971
|
x: c,
|
|
959
972
|
y: l
|
|
960
973
|
});
|
|
961
974
|
}
|
|
962
|
-
function
|
|
963
|
-
let n =
|
|
964
|
-
return t ? t.left + n :
|
|
975
|
+
function Zn(e, t) {
|
|
976
|
+
let n = Je(e).scrollLeft;
|
|
977
|
+
return t ? t.left + n : Xn(F(e)).left + n;
|
|
965
978
|
}
|
|
966
|
-
function
|
|
979
|
+
function Qn(e, t) {
|
|
967
980
|
let n = e.getBoundingClientRect();
|
|
968
981
|
return {
|
|
969
|
-
x: n.left + t.scrollLeft -
|
|
982
|
+
x: n.left + t.scrollLeft - Zn(e, n),
|
|
970
983
|
y: n.top + t.scrollTop
|
|
971
984
|
};
|
|
972
985
|
}
|
|
973
|
-
function
|
|
974
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
986
|
+
function $n(e) {
|
|
987
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = F(r), s = t ? ze(t.floating) : !1;
|
|
975
988
|
if (r === o || s && a) return n;
|
|
976
989
|
let c = {
|
|
977
990
|
scrollLeft: 0,
|
|
978
991
|
scrollTop: 0
|
|
979
|
-
}, l =
|
|
980
|
-
if ((d || !d && !a) && ((
|
|
981
|
-
let e =
|
|
982
|
-
l =
|
|
992
|
+
}, l = k(1), u = k(0), d = L(r);
|
|
993
|
+
if ((d || !d && !a) && ((je(r) !== "body" || Fe(o)) && (c = Je(r)), L(r))) {
|
|
994
|
+
let e = Xn(r);
|
|
995
|
+
l = Kn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
983
996
|
}
|
|
984
|
-
let f = o && !d && !a ?
|
|
997
|
+
let f = o && !d && !a ? Qn(o, c) : k(0);
|
|
985
998
|
return {
|
|
986
999
|
width: n.width * l.x,
|
|
987
1000
|
height: n.height * l.y,
|
|
@@ -989,31 +1002,31 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(e) {
|
|
|
989
1002
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
990
1003
|
};
|
|
991
1004
|
}
|
|
992
|
-
function
|
|
1005
|
+
function er(e) {
|
|
993
1006
|
return Array.from(e.getClientRects());
|
|
994
1007
|
}
|
|
995
|
-
function
|
|
996
|
-
let t =
|
|
997
|
-
return
|
|
1008
|
+
function tr(e) {
|
|
1009
|
+
let t = F(e), n = Je(e), r = e.ownerDocument.body, i = D(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = D(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Zn(e), s = -n.scrollTop;
|
|
1010
|
+
return R(r).direction === "rtl" && (o += D(t.clientWidth, r.clientWidth) - i), {
|
|
998
1011
|
width: i,
|
|
999
1012
|
height: a,
|
|
1000
1013
|
x: o,
|
|
1001
1014
|
y: s
|
|
1002
1015
|
};
|
|
1003
1016
|
}
|
|
1004
|
-
var
|
|
1005
|
-
function
|
|
1006
|
-
let n =
|
|
1017
|
+
var nr = 25;
|
|
1018
|
+
function rr(e, t) {
|
|
1019
|
+
let n = P(e), r = F(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
1007
1020
|
if (i) {
|
|
1008
1021
|
a = i.width, o = i.height;
|
|
1009
|
-
let e =
|
|
1022
|
+
let e = Ge();
|
|
1010
1023
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
1011
1024
|
}
|
|
1012
|
-
let l =
|
|
1025
|
+
let l = Zn(r);
|
|
1013
1026
|
if (l <= 0) {
|
|
1014
1027
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
1015
|
-
o <=
|
|
1016
|
-
} else l <=
|
|
1028
|
+
o <= nr && (a -= o);
|
|
1029
|
+
} else l <= nr && (a += l);
|
|
1017
1030
|
return {
|
|
1018
1031
|
width: a,
|
|
1019
1032
|
height: o,
|
|
@@ -1021,9 +1034,9 @@ function getViewportRect(e, t) {
|
|
|
1021
1034
|
y: c
|
|
1022
1035
|
};
|
|
1023
1036
|
}
|
|
1024
|
-
var
|
|
1025
|
-
function
|
|
1026
|
-
let n =
|
|
1037
|
+
var ir = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1038
|
+
function ar(e, t) {
|
|
1039
|
+
let n = Xn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = L(e) ? Kn(e) : k(1);
|
|
1027
1040
|
return {
|
|
1028
1041
|
width: e.clientWidth * a.x,
|
|
1029
1042
|
height: e.clientHeight * a.y,
|
|
@@ -1031,13 +1044,13 @@ function getInnerBoundingClientRect(e, t) {
|
|
|
1031
1044
|
y: r * a.y
|
|
1032
1045
|
};
|
|
1033
1046
|
}
|
|
1034
|
-
function
|
|
1047
|
+
function or(e, t, n) {
|
|
1035
1048
|
let r;
|
|
1036
|
-
if (t === "viewport") r =
|
|
1037
|
-
else if (t === "document") r =
|
|
1038
|
-
else if (
|
|
1049
|
+
if (t === "viewport") r = rr(e, n);
|
|
1050
|
+
else if (t === "document") r = tr(F(e));
|
|
1051
|
+
else if (I(t)) r = ar(t, n);
|
|
1039
1052
|
else {
|
|
1040
|
-
let n =
|
|
1053
|
+
let n = Jn(e);
|
|
1041
1054
|
r = {
|
|
1042
1055
|
x: t.x - n.x,
|
|
1043
1056
|
y: t.y - n.y,
|
|
@@ -1045,27 +1058,27 @@ function getClientRectFromClippingAncestor(e, t, n) {
|
|
|
1045
1058
|
height: t.height
|
|
1046
1059
|
};
|
|
1047
1060
|
}
|
|
1048
|
-
return
|
|
1061
|
+
return ke(r);
|
|
1049
1062
|
}
|
|
1050
|
-
function
|
|
1051
|
-
let n =
|
|
1052
|
-
return n === t || !
|
|
1063
|
+
function sr(e, t) {
|
|
1064
|
+
let n = z(e);
|
|
1065
|
+
return n === t || !I(n) || qe(n) ? !1 : R(n).position === "fixed" || sr(n, t);
|
|
1053
1066
|
}
|
|
1054
|
-
function
|
|
1067
|
+
function cr(e, t) {
|
|
1055
1068
|
let n = t.get(e);
|
|
1056
1069
|
if (n) return n;
|
|
1057
|
-
let r =
|
|
1058
|
-
for (;
|
|
1059
|
-
let t =
|
|
1060
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i &&
|
|
1070
|
+
let r = Xe(e, [], !1).filter((e) => I(e) && je(e) !== "body"), i = null, a = R(e).position === "fixed", o = a ? z(e) : e;
|
|
1071
|
+
for (; I(o) && !qe(o);) {
|
|
1072
|
+
let t = R(o), n = Ue(o);
|
|
1073
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && ir.has(i.position) || Fe(o) && !n && sr(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = z(o);
|
|
1061
1074
|
}
|
|
1062
1075
|
return t.set(e, r), r;
|
|
1063
1076
|
}
|
|
1064
|
-
function
|
|
1065
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
1066
|
-
let r =
|
|
1067
|
-
return e.top =
|
|
1068
|
-
},
|
|
1077
|
+
function lr(e) {
|
|
1078
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ze(t) ? [] : cr(t, this._c) : [].concat(n), r], o = a[0], s = a.reduce((e, n) => {
|
|
1079
|
+
let r = or(t, n, i);
|
|
1080
|
+
return e.top = D(r.top, e.top), e.right = E(r.right, e.right), e.bottom = E(r.bottom, e.bottom), e.left = D(r.left, e.left), e;
|
|
1081
|
+
}, or(t, o, i));
|
|
1069
1082
|
return {
|
|
1070
1083
|
width: s.right - s.left,
|
|
1071
1084
|
height: s.bottom - s.top,
|
|
@@ -1073,27 +1086,27 @@ function getClippingRect(e) {
|
|
|
1073
1086
|
y: s.top
|
|
1074
1087
|
};
|
|
1075
1088
|
}
|
|
1076
|
-
function
|
|
1077
|
-
let { width: t, height: n } =
|
|
1089
|
+
function ur(e) {
|
|
1090
|
+
let { width: t, height: n } = Wn(e);
|
|
1078
1091
|
return {
|
|
1079
1092
|
width: t,
|
|
1080
1093
|
height: n
|
|
1081
1094
|
};
|
|
1082
1095
|
}
|
|
1083
|
-
function
|
|
1084
|
-
let r =
|
|
1096
|
+
function dr(e, t, n) {
|
|
1097
|
+
let r = L(t), i = F(t), a = n === "fixed", o = Xn(e, !0, a, t), s = {
|
|
1085
1098
|
scrollLeft: 0,
|
|
1086
1099
|
scrollTop: 0
|
|
1087
|
-
}, c =
|
|
1100
|
+
}, c = k(0);
|
|
1088
1101
|
function l() {
|
|
1089
|
-
c.x =
|
|
1102
|
+
c.x = Zn(i);
|
|
1090
1103
|
}
|
|
1091
|
-
if (r || !r && !a) if ((
|
|
1092
|
-
let e =
|
|
1104
|
+
if (r || !r && !a) if ((je(t) !== "body" || Fe(i)) && (s = Je(t)), r) {
|
|
1105
|
+
let e = Xn(t, !0, a, t);
|
|
1093
1106
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1094
1107
|
} else i && l();
|
|
1095
1108
|
a && !r && i && l();
|
|
1096
|
-
let u = i && !r && !a ?
|
|
1109
|
+
let u = i && !r && !a ? Qn(i, s) : k(0);
|
|
1097
1110
|
return {
|
|
1098
1111
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1099
1112
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -1101,34 +1114,34 @@ function getRectRelativeToOffsetParent(e, t, n) {
|
|
|
1101
1114
|
height: o.height
|
|
1102
1115
|
};
|
|
1103
1116
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return
|
|
1117
|
+
function fr(e) {
|
|
1118
|
+
return R(e).position === "static";
|
|
1106
1119
|
}
|
|
1107
|
-
function
|
|
1108
|
-
if (!
|
|
1120
|
+
function pr(e, t) {
|
|
1121
|
+
if (!L(e) || R(e).position === "fixed") return null;
|
|
1109
1122
|
if (t) return t(e);
|
|
1110
1123
|
let n = e.offsetParent;
|
|
1111
|
-
return
|
|
1112
|
-
}
|
|
1113
|
-
function
|
|
1114
|
-
let n =
|
|
1115
|
-
if (
|
|
1116
|
-
if (!
|
|
1117
|
-
let t =
|
|
1118
|
-
for (; t && !
|
|
1119
|
-
if (
|
|
1120
|
-
t =
|
|
1124
|
+
return F(e) === n && (n = n.ownerDocument.body), n;
|
|
1125
|
+
}
|
|
1126
|
+
function mr(e, t) {
|
|
1127
|
+
let n = P(e);
|
|
1128
|
+
if (ze(e)) return n;
|
|
1129
|
+
if (!L(e)) {
|
|
1130
|
+
let t = z(e);
|
|
1131
|
+
for (; t && !qe(t);) {
|
|
1132
|
+
if (I(t) && !fr(t)) return t;
|
|
1133
|
+
t = z(t);
|
|
1121
1134
|
}
|
|
1122
1135
|
return n;
|
|
1123
1136
|
}
|
|
1124
|
-
let r =
|
|
1125
|
-
for (; r &&
|
|
1126
|
-
return r &&
|
|
1137
|
+
let r = pr(e, t);
|
|
1138
|
+
for (; r && Le(r) && fr(r);) r = pr(r, t);
|
|
1139
|
+
return r && qe(r) && fr(r) && !Ue(r) ? n : r || We(e) || n;
|
|
1127
1140
|
}
|
|
1128
|
-
var
|
|
1129
|
-
let t = this.getOffsetParent ||
|
|
1141
|
+
var hr = async function(e) {
|
|
1142
|
+
let t = this.getOffsetParent || mr, n = this.getDimensions, r = await n(e.floating);
|
|
1130
1143
|
return {
|
|
1131
|
-
reference:
|
|
1144
|
+
reference: dr(e.reference, await t(e.floating), e.strategy),
|
|
1132
1145
|
floating: {
|
|
1133
1146
|
x: 0,
|
|
1134
1147
|
y: 0,
|
|
@@ -1137,26 +1150,26 @@ var getElementRects = async function(e) {
|
|
|
1137
1150
|
}
|
|
1138
1151
|
};
|
|
1139
1152
|
};
|
|
1140
|
-
function
|
|
1141
|
-
return
|
|
1142
|
-
}
|
|
1143
|
-
var
|
|
1144
|
-
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1145
|
-
getDocumentElement:
|
|
1146
|
-
getClippingRect,
|
|
1147
|
-
getOffsetParent,
|
|
1148
|
-
getElementRects,
|
|
1149
|
-
getClientRects,
|
|
1150
|
-
getDimensions,
|
|
1151
|
-
getScale,
|
|
1152
|
-
isElement:
|
|
1153
|
-
isRTL
|
|
1153
|
+
function gr(e) {
|
|
1154
|
+
return R(e).direction === "rtl";
|
|
1155
|
+
}
|
|
1156
|
+
var _r = {
|
|
1157
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: $n,
|
|
1158
|
+
getDocumentElement: F,
|
|
1159
|
+
getClippingRect: lr,
|
|
1160
|
+
getOffsetParent: mr,
|
|
1161
|
+
getElementRects: hr,
|
|
1162
|
+
getClientRects: er,
|
|
1163
|
+
getDimensions: ur,
|
|
1164
|
+
getScale: Kn,
|
|
1165
|
+
isElement: I,
|
|
1166
|
+
isRTL: gr
|
|
1154
1167
|
};
|
|
1155
|
-
function
|
|
1168
|
+
function vr(e, t) {
|
|
1156
1169
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1157
1170
|
}
|
|
1158
|
-
function
|
|
1159
|
-
let n = null, r, i =
|
|
1171
|
+
function yr(e, t) {
|
|
1172
|
+
let n = null, r, i = F(e);
|
|
1160
1173
|
function a() {
|
|
1161
1174
|
var e;
|
|
1162
1175
|
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
@@ -1165,9 +1178,9 @@ function observeMove(e, t) {
|
|
|
1165
1178
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
1166
1179
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
1167
1180
|
if (s || t(), !f || !p) return;
|
|
1168
|
-
let m =
|
|
1181
|
+
let m = le(d), h = le(i.clientWidth - (u + f)), g = le(i.clientHeight - (d + p)), _ = le(u), v = {
|
|
1169
1182
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
1170
|
-
threshold:
|
|
1183
|
+
threshold: D(0, E(1, c)) || 1
|
|
1171
1184
|
}, y = !0;
|
|
1172
1185
|
function b(t) {
|
|
1173
1186
|
let n = t[0].intersectionRatio;
|
|
@@ -1177,7 +1190,7 @@ function observeMove(e, t) {
|
|
|
1177
1190
|
o(!1, 1e-7);
|
|
1178
1191
|
}, 1e3);
|
|
1179
1192
|
}
|
|
1180
|
-
n === 1 && !
|
|
1193
|
+
n === 1 && !vr(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
1181
1194
|
}
|
|
1182
1195
|
try {
|
|
1183
1196
|
n = new IntersectionObserver(b, {
|
|
@@ -1191,13 +1204,13 @@ function observeMove(e, t) {
|
|
|
1191
1204
|
}
|
|
1192
1205
|
return o(!0), a;
|
|
1193
1206
|
}
|
|
1194
|
-
function
|
|
1207
|
+
function br(e, t, n, r) {
|
|
1195
1208
|
r === void 0 && (r = {});
|
|
1196
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
1209
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Gn(e), u = i || a ? [...l ? Xe(l) : [], ...Xe(t)] : [];
|
|
1197
1210
|
u.forEach((e) => {
|
|
1198
1211
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
1199
1212
|
});
|
|
1200
|
-
let d = l && s ?
|
|
1213
|
+
let d = l && s ? yr(l, n) : null, f = -1, p = null;
|
|
1201
1214
|
o && (p = new ResizeObserver((e) => {
|
|
1202
1215
|
let [r] = e;
|
|
1203
1216
|
r && r.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -1205,11 +1218,11 @@ function autoUpdate(e, t, n, r) {
|
|
|
1205
1218
|
(e = p) == null || e.observe(t);
|
|
1206
1219
|
})), n();
|
|
1207
1220
|
}), l && !c && p.observe(l), p.observe(t));
|
|
1208
|
-
let m, h = c ?
|
|
1221
|
+
let m, h = c ? Xn(e) : null;
|
|
1209
1222
|
c && g();
|
|
1210
1223
|
function g() {
|
|
1211
|
-
let t =
|
|
1212
|
-
h && !
|
|
1224
|
+
let t = Xn(e);
|
|
1225
|
+
h && !vr(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
1213
1226
|
}
|
|
1214
1227
|
return n(), () => {
|
|
1215
1228
|
var e;
|
|
@@ -1218,20 +1231,22 @@ function autoUpdate(e, t, n, r) {
|
|
|
1218
1231
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
1219
1232
|
};
|
|
1220
1233
|
}
|
|
1221
|
-
var
|
|
1234
|
+
var xr = Bn, Sr = Vn, Cr = Pn, wr = Un, Tr = Ln, Er = Nn, Dr = Hn, Or = (e, t, n) => {
|
|
1222
1235
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
1223
|
-
platform,
|
|
1236
|
+
platform: _r,
|
|
1224
1237
|
...n
|
|
1225
1238
|
}, a = {
|
|
1226
1239
|
...i.platform,
|
|
1227
1240
|
_c: r
|
|
1228
1241
|
};
|
|
1229
|
-
return
|
|
1242
|
+
return Mn(e, t, {
|
|
1230
1243
|
...i,
|
|
1231
1244
|
platform: a
|
|
1232
1245
|
});
|
|
1233
1246
|
};
|
|
1234
|
-
|
|
1247
|
+
//#endregion
|
|
1248
|
+
//#region ../../node_modules/.pnpm/@destyler+popper@0.2.6/node_modules/@destyler/popper/dist/index.mjs
|
|
1249
|
+
function kr(e = 0, t = 0, n = 0, r = 0) {
|
|
1235
1250
|
if (typeof DOMRect == "function") return new DOMRect(e, t, n, r);
|
|
1236
1251
|
let i = {
|
|
1237
1252
|
x: e,
|
|
@@ -1248,31 +1263,31 @@ function createDOMRect(e = 0, t = 0, n = 0, r = 0) {
|
|
|
1248
1263
|
toJSON: () => i
|
|
1249
1264
|
};
|
|
1250
1265
|
}
|
|
1251
|
-
function
|
|
1252
|
-
if (!e) return
|
|
1266
|
+
function Ar(e) {
|
|
1267
|
+
if (!e) return kr();
|
|
1253
1268
|
let { x: t, y: n, width: r, height: i } = e;
|
|
1254
|
-
return
|
|
1269
|
+
return kr(t, n, r, i);
|
|
1255
1270
|
}
|
|
1256
|
-
function
|
|
1271
|
+
function jr(e, t) {
|
|
1257
1272
|
return {
|
|
1258
|
-
contextElement:
|
|
1273
|
+
contextElement: B(e) ? e : void 0,
|
|
1259
1274
|
getBoundingClientRect: () => {
|
|
1260
1275
|
let n = e, r = t?.(n);
|
|
1261
|
-
return r || !n ?
|
|
1276
|
+
return r || !n ? Ar(r) : n.getBoundingClientRect();
|
|
1262
1277
|
}
|
|
1263
1278
|
};
|
|
1264
1279
|
}
|
|
1265
|
-
var
|
|
1280
|
+
var Mr = (e) => ({
|
|
1266
1281
|
variable: e,
|
|
1267
1282
|
reference: `var(${e})`
|
|
1268
|
-
}),
|
|
1269
|
-
arrowSize:
|
|
1270
|
-
arrowSizeHalf:
|
|
1271
|
-
arrowBg:
|
|
1272
|
-
transformOrigin:
|
|
1273
|
-
arrowOffset:
|
|
1283
|
+
}), J = {
|
|
1284
|
+
arrowSize: Mr("--arrow-size"),
|
|
1285
|
+
arrowSizeHalf: Mr("--arrow-size-half"),
|
|
1286
|
+
arrowBg: Mr("--arrow-background"),
|
|
1287
|
+
transformOrigin: Mr("--transform-origin"),
|
|
1288
|
+
arrowOffset: Mr("--arrow-offset")
|
|
1274
1289
|
};
|
|
1275
|
-
function
|
|
1290
|
+
function Nr(e) {
|
|
1276
1291
|
return {
|
|
1277
1292
|
top: "bottom center",
|
|
1278
1293
|
"top-start": e ? `${e.x}px bottom` : "left bottom",
|
|
@@ -1288,19 +1303,19 @@ function getTransformOrigin(e) {
|
|
|
1288
1303
|
"right-end": e ? `left ${e.y}px` : "left bottom"
|
|
1289
1304
|
};
|
|
1290
1305
|
}
|
|
1291
|
-
var
|
|
1306
|
+
var Pr = {
|
|
1292
1307
|
name: "transformOrigin",
|
|
1293
1308
|
fn({ placement: e, elements: t, middlewareData: n }) {
|
|
1294
|
-
let { arrow: r } = n, i =
|
|
1295
|
-
return a.style.setProperty(
|
|
1309
|
+
let { arrow: r } = n, i = Nr(r)[e], { floating: a } = t;
|
|
1310
|
+
return a.style.setProperty(J.transformOrigin.variable, i), { data: { transformOrigin: i } };
|
|
1296
1311
|
}
|
|
1297
|
-
},
|
|
1312
|
+
}, Fr = {
|
|
1298
1313
|
name: "rects",
|
|
1299
1314
|
fn({ rects: e }) {
|
|
1300
1315
|
return { data: e };
|
|
1301
1316
|
}
|
|
1302
1317
|
};
|
|
1303
|
-
function
|
|
1318
|
+
function Ir(e) {
|
|
1304
1319
|
if (e) return {
|
|
1305
1320
|
name: "shiftArrow",
|
|
1306
1321
|
fn({ placement: t, middlewareData: n }) {
|
|
@@ -1309,12 +1324,12 @@ function shiftArrowMiddleware(e) {
|
|
|
1309
1324
|
return Object.assign(e.style, {
|
|
1310
1325
|
left: r == null ? "" : `${r}px`,
|
|
1311
1326
|
top: i == null ? "" : `${i}px`,
|
|
1312
|
-
[a]: `calc(100% + ${
|
|
1327
|
+
[a]: `calc(100% + ${J.arrowOffset.reference})`
|
|
1313
1328
|
}), {};
|
|
1314
1329
|
}
|
|
1315
1330
|
};
|
|
1316
1331
|
}
|
|
1317
|
-
function
|
|
1332
|
+
function Lr(e) {
|
|
1318
1333
|
let [t, n] = e.split("-");
|
|
1319
1334
|
return {
|
|
1320
1335
|
side: t,
|
|
@@ -1322,7 +1337,7 @@ function getPlacementDetails(e) {
|
|
|
1322
1337
|
hasAlign: n != null
|
|
1323
1338
|
};
|
|
1324
1339
|
}
|
|
1325
|
-
var
|
|
1340
|
+
var Rr = {
|
|
1326
1341
|
strategy: "absolute",
|
|
1327
1342
|
placement: "bottom",
|
|
1328
1343
|
listeners: !0,
|
|
@@ -1335,47 +1350,47 @@ var defaultOptions = {
|
|
|
1335
1350
|
overflowPadding: 8,
|
|
1336
1351
|
arrowPadding: 4
|
|
1337
1352
|
};
|
|
1338
|
-
function
|
|
1353
|
+
function zr(e, t) {
|
|
1339
1354
|
let n = e.devicePixelRatio || 1;
|
|
1340
1355
|
return Math.round(t * n) / n;
|
|
1341
1356
|
}
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1357
|
+
function Br(e) {
|
|
1358
|
+
return sn(e.boundary);
|
|
1344
1359
|
}
|
|
1345
|
-
function
|
|
1346
|
-
if (e) return
|
|
1360
|
+
function Vr(e, t) {
|
|
1361
|
+
if (e) return Er({
|
|
1347
1362
|
element: e,
|
|
1348
1363
|
padding: t.arrowPadding
|
|
1349
1364
|
});
|
|
1350
1365
|
}
|
|
1351
|
-
function
|
|
1352
|
-
if (!
|
|
1353
|
-
let r = (e?.clientHeight || 0) / 2, i = t.offset?.mainAxis ?? t.gutter, a = typeof i == "number" ? i + r : i ?? r, { hasAlign: o } =
|
|
1354
|
-
return
|
|
1366
|
+
function Hr(e, t) {
|
|
1367
|
+
if (!gn(t.offset ?? t.gutter)) return xr(({ placement: n }) => {
|
|
1368
|
+
let r = (e?.clientHeight || 0) / 2, i = t.offset?.mainAxis ?? t.gutter, a = typeof i == "number" ? i + r : i ?? r, { hasAlign: o } = Lr(n), s = o ? void 0 : t.shift;
|
|
1369
|
+
return On({
|
|
1355
1370
|
crossAxis: t.offset?.crossAxis ?? s,
|
|
1356
1371
|
mainAxis: a,
|
|
1357
1372
|
alignmentAxis: t.shift
|
|
1358
1373
|
});
|
|
1359
1374
|
});
|
|
1360
1375
|
}
|
|
1361
|
-
function
|
|
1362
|
-
if (e.flip) return
|
|
1363
|
-
boundary:
|
|
1376
|
+
function Ur(e) {
|
|
1377
|
+
if (e.flip) return Cr({
|
|
1378
|
+
boundary: Br(e),
|
|
1364
1379
|
padding: e.overflowPadding,
|
|
1365
1380
|
fallbackPlacements: e.flip === !0 ? void 0 : e.flip
|
|
1366
1381
|
});
|
|
1367
1382
|
}
|
|
1368
|
-
function
|
|
1369
|
-
if (!(!e.slide && !e.overlap)) return
|
|
1370
|
-
boundary:
|
|
1383
|
+
function Wr(e) {
|
|
1384
|
+
if (!(!e.slide && !e.overlap)) return Sr({
|
|
1385
|
+
boundary: Br(e),
|
|
1371
1386
|
mainAxis: e.slide,
|
|
1372
1387
|
crossAxis: e.overlap,
|
|
1373
1388
|
padding: e.overflowPadding,
|
|
1374
|
-
limiter:
|
|
1389
|
+
limiter: Dr()
|
|
1375
1390
|
});
|
|
1376
1391
|
}
|
|
1377
|
-
function
|
|
1378
|
-
return
|
|
1392
|
+
function Gr(e) {
|
|
1393
|
+
return wr({
|
|
1379
1394
|
padding: e.overflowPadding,
|
|
1380
1395
|
apply({ elements: e, rects: t, availableHeight: n, availableWidth: r }) {
|
|
1381
1396
|
let i = e.floating, a = Math.round(t.reference.width);
|
|
@@ -1383,13 +1398,13 @@ function getSizeMiddleware(e) {
|
|
|
1383
1398
|
}
|
|
1384
1399
|
});
|
|
1385
1400
|
}
|
|
1386
|
-
function
|
|
1387
|
-
if (e.hideWhenDetached) return
|
|
1401
|
+
function Kr(e) {
|
|
1402
|
+
if (e.hideWhenDetached) return Tr({
|
|
1388
1403
|
strategy: "referenceHidden",
|
|
1389
1404
|
boundary: e.boundary?.() ?? "clippingAncestors"
|
|
1390
1405
|
});
|
|
1391
1406
|
}
|
|
1392
|
-
function
|
|
1407
|
+
function qr(e) {
|
|
1393
1408
|
return e ? e === !0 ? {
|
|
1394
1409
|
ancestorResize: !0,
|
|
1395
1410
|
ancestorScroll: !0,
|
|
@@ -1397,69 +1412,69 @@ function getAutoUpdateOptions(e) {
|
|
|
1397
1412
|
layoutShift: !0
|
|
1398
1413
|
} : e : {};
|
|
1399
1414
|
}
|
|
1400
|
-
function
|
|
1401
|
-
let r =
|
|
1415
|
+
function Jr(e, t, n = {}) {
|
|
1416
|
+
let r = jr(e, n.getAnchorRect);
|
|
1402
1417
|
if (!t || !r) return;
|
|
1403
|
-
let i = Object.assign({},
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1418
|
+
let i = Object.assign({}, Rr, n), a = t.querySelector("[data-part=arrow]"), o = [
|
|
1419
|
+
Hr(a, i),
|
|
1420
|
+
Ur(i),
|
|
1421
|
+
Wr(i),
|
|
1422
|
+
Vr(a, i),
|
|
1423
|
+
Ir(a),
|
|
1424
|
+
Pr,
|
|
1425
|
+
Gr(i),
|
|
1426
|
+
Kr(i),
|
|
1427
|
+
Fr
|
|
1413
1428
|
], { placement: s, strategy: c, onComplete: l, onPositioned: u } = i, d = async () => {
|
|
1414
1429
|
if (!r || !t) return;
|
|
1415
|
-
let e = await
|
|
1430
|
+
let e = await Or(r, t, {
|
|
1416
1431
|
placement: s,
|
|
1417
1432
|
middleware: o,
|
|
1418
1433
|
strategy: c
|
|
1419
1434
|
});
|
|
1420
1435
|
l?.(e), u?.({ placed: !0 });
|
|
1421
|
-
let n =
|
|
1436
|
+
let n = vt(t), a = zr(n, e.x), d = zr(n, e.y);
|
|
1422
1437
|
t.style.setProperty("--x", `${a}px`), t.style.setProperty("--y", `${d}px`), i.hideWhenDetached && (e.middlewareData.hide?.referenceHidden ? (t.style.setProperty("visibility", "hidden"), t.style.setProperty("pointer-events", "none")) : (t.style.removeProperty("visibility"), t.style.removeProperty("pointer-events")));
|
|
1423
1438
|
let f = t.firstElementChild;
|
|
1424
1439
|
if (f) {
|
|
1425
|
-
let e =
|
|
1440
|
+
let e = St(f);
|
|
1426
1441
|
t.style.setProperty("--z-index", e.zIndex);
|
|
1427
1442
|
}
|
|
1428
1443
|
}, f = async () => {
|
|
1429
1444
|
n.updatePosition ? (await n.updatePosition({ updatePosition: d }), u?.({ placed: !0 })) : await d();
|
|
1430
|
-
}, p =
|
|
1445
|
+
}, p = qr(i.listeners), m = i.listeners ? br(r, t, f, p) : cn;
|
|
1431
1446
|
return f(), () => {
|
|
1432
1447
|
m?.(), u?.({ placed: !1 });
|
|
1433
1448
|
};
|
|
1434
1449
|
}
|
|
1435
|
-
function
|
|
1436
|
-
let { defer: r, ...i } = n, a = r ?
|
|
1450
|
+
function Yr(e, t, n = {}) {
|
|
1451
|
+
let { defer: r, ...i } = n, a = r ? G : (e) => e(), o = [];
|
|
1437
1452
|
return o.push(a(() => {
|
|
1438
1453
|
let n = typeof e == "function" ? e() : e, r = typeof t == "function" ? t() : t;
|
|
1439
|
-
o.push(
|
|
1454
|
+
o.push(Jr(n, r, i));
|
|
1440
1455
|
})), () => {
|
|
1441
1456
|
o.forEach((e) => e?.());
|
|
1442
1457
|
};
|
|
1443
1458
|
}
|
|
1444
|
-
var
|
|
1459
|
+
var Xr = {
|
|
1445
1460
|
bottom: "rotate(45deg)",
|
|
1446
1461
|
left: "rotate(135deg)",
|
|
1447
1462
|
top: "rotate(225deg)",
|
|
1448
1463
|
right: "rotate(315deg)"
|
|
1449
1464
|
};
|
|
1450
|
-
function
|
|
1465
|
+
function Zr(e = {}) {
|
|
1451
1466
|
let { placement: t, sameWidth: n, fitViewport: r, strategy: i = "absolute" } = e;
|
|
1452
1467
|
return {
|
|
1453
1468
|
arrow: {
|
|
1454
1469
|
position: "absolute",
|
|
1455
|
-
width:
|
|
1456
|
-
height:
|
|
1457
|
-
[
|
|
1458
|
-
[
|
|
1470
|
+
width: J.arrowSize.reference,
|
|
1471
|
+
height: J.arrowSize.reference,
|
|
1472
|
+
[J.arrowSizeHalf.variable]: `calc(${J.arrowSize.reference} / 2)`,
|
|
1473
|
+
[J.arrowOffset.variable]: `calc(${J.arrowSizeHalf.reference} * -1)`
|
|
1459
1474
|
},
|
|
1460
1475
|
arrowTip: {
|
|
1461
|
-
transform: t ?
|
|
1462
|
-
background:
|
|
1476
|
+
transform: t ? Xr[t.split("-")[0]] : void 0,
|
|
1477
|
+
background: J.arrowBg.reference,
|
|
1463
1478
|
top: "0",
|
|
1464
1479
|
left: "0",
|
|
1465
1480
|
width: "100%",
|
|
@@ -1481,24 +1496,26 @@ function getPlacementStyles(e = {}) {
|
|
|
1481
1496
|
}
|
|
1482
1497
|
};
|
|
1483
1498
|
}
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1499
|
+
//#endregion
|
|
1500
|
+
//#region ../../node_modules/.pnpm/@destyler+aria-hidden@0.2.6/node_modules/@destyler/aria-hidden/dist/index.mjs
|
|
1501
|
+
var Qr = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), ei = {}, ti = 0;
|
|
1502
|
+
function ni(e) {
|
|
1503
|
+
return e && (e.host || ni(e.parentNode));
|
|
1487
1504
|
}
|
|
1488
|
-
function
|
|
1505
|
+
function ri(e, t) {
|
|
1489
1506
|
return t.map((t) => {
|
|
1490
1507
|
if (e.contains(t)) return t;
|
|
1491
|
-
let n =
|
|
1508
|
+
let n = ni(t);
|
|
1492
1509
|
return n && e.contains(n) ? n : (console.error("[@destyler/aria-hidden] target", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
1493
1510
|
}).filter((e) => !!e);
|
|
1494
1511
|
}
|
|
1495
|
-
function
|
|
1512
|
+
function ii(e) {
|
|
1496
1513
|
return e.localName === "next-route-announcer" || e.localName === "script" || e.hasAttribute("aria-live") ? !0 : e.matches("[data-live-announcer]");
|
|
1497
1514
|
}
|
|
1498
|
-
function
|
|
1499
|
-
let { parentNode: n, markerName: r, controlAttribute: i, explicitBooleanValue: a } = t, o =
|
|
1500
|
-
|
|
1501
|
-
let s =
|
|
1515
|
+
function ai(e, t) {
|
|
1516
|
+
let { parentNode: n, markerName: r, controlAttribute: i, explicitBooleanValue: a } = t, o = ri(n, Array.isArray(e) ? e : [e]);
|
|
1517
|
+
ei[r] ||= /* @__PURE__ */ new WeakMap();
|
|
1518
|
+
let s = ei[r], c = [], l = /* @__PURE__ */ new Set(), u = new Set(o), d = (e) => {
|
|
1502
1519
|
!e || l.has(e) || (l.add(e), d(e.parentNode));
|
|
1503
1520
|
};
|
|
1504
1521
|
o.forEach(d);
|
|
@@ -1506,46 +1523,48 @@ function walkTreeOutside(e, t) {
|
|
|
1506
1523
|
!e || u.has(e) || Array.prototype.forEach.call(e.children, (e) => {
|
|
1507
1524
|
if (l.has(e)) f(e);
|
|
1508
1525
|
else try {
|
|
1509
|
-
if (
|
|
1510
|
-
let t = e.getAttribute(i), n = a ? t === "true" : t !== null && t !== "false", o = (
|
|
1511
|
-
|
|
1526
|
+
if (ii(e)) return;
|
|
1527
|
+
let t = e.getAttribute(i), n = a ? t === "true" : t !== null && t !== "false", o = (Qr.get(e) || 0) + 1, l = (s.get(e) || 0) + 1;
|
|
1528
|
+
Qr.set(e, o), s.set(e, l), c.push(e), o === 1 && n && $r.set(e, !0), l === 1 && e.setAttribute(r, ""), n || e.setAttribute(i, a ? "true" : "");
|
|
1512
1529
|
} catch (t) {
|
|
1513
1530
|
console.error("[@destyler/aria-hidden] cannot operate on ", e, t);
|
|
1514
1531
|
}
|
|
1515
1532
|
});
|
|
1516
1533
|
};
|
|
1517
|
-
return f(n), l.clear(),
|
|
1534
|
+
return f(n), l.clear(), ti++, () => {
|
|
1518
1535
|
c.forEach((e) => {
|
|
1519
|
-
let t =
|
|
1520
|
-
|
|
1521
|
-
}),
|
|
1536
|
+
let t = Qr.get(e) - 1, n = s.get(e) - 1;
|
|
1537
|
+
Qr.set(e, t), s.set(e, n), t || ($r.has(e) || e.removeAttribute(i), $r.delete(e)), n || e.removeAttribute(r);
|
|
1538
|
+
}), ti--, ti || (Qr = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), ei = {});
|
|
1522
1539
|
};
|
|
1523
1540
|
}
|
|
1524
|
-
function
|
|
1541
|
+
function oi(e) {
|
|
1525
1542
|
return (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
1526
1543
|
}
|
|
1527
|
-
function
|
|
1528
|
-
if (t) return
|
|
1544
|
+
function si(e, t = oi(e), n = "data-aria-hidden") {
|
|
1545
|
+
if (t) return ai(e, {
|
|
1529
1546
|
parentNode: t,
|
|
1530
1547
|
markerName: n,
|
|
1531
1548
|
controlAttribute: "aria-hidden",
|
|
1532
1549
|
explicitBooleanValue: !0
|
|
1533
1550
|
});
|
|
1534
1551
|
}
|
|
1535
|
-
function
|
|
1552
|
+
function ci(e) {
|
|
1536
1553
|
let t = requestAnimationFrame(() => e());
|
|
1537
1554
|
return () => cancelAnimationFrame(t);
|
|
1538
1555
|
}
|
|
1539
|
-
function
|
|
1540
|
-
let { defer: n = !0 } = t, r = n ?
|
|
1556
|
+
function li(e, t = {}) {
|
|
1557
|
+
let { defer: n = !0 } = t, r = n ? ci : (e) => e(), i = [];
|
|
1541
1558
|
return i.push(r(() => {
|
|
1542
1559
|
let t = (typeof e == "function" ? e() : e).filter(Boolean);
|
|
1543
|
-
t.length !== 0 && i.push(
|
|
1560
|
+
t.length !== 0 && i.push(si(t));
|
|
1544
1561
|
})), () => {
|
|
1545
1562
|
i.forEach((e) => e?.());
|
|
1546
1563
|
};
|
|
1547
1564
|
}
|
|
1548
|
-
|
|
1565
|
+
//#endregion
|
|
1566
|
+
//#region ../../node_modules/.pnpm/@destyler+interact-outside@0.2.6/node_modules/@destyler/interact-outside/dist/index.mjs
|
|
1567
|
+
function ui(e) {
|
|
1549
1568
|
let t = {
|
|
1550
1569
|
each(t) {
|
|
1551
1570
|
for (let n = 0; n < e.frames?.length; n += 1) {
|
|
@@ -1574,7 +1593,7 @@ function getWindowFrames(e) {
|
|
|
1574
1593
|
};
|
|
1575
1594
|
return t;
|
|
1576
1595
|
}
|
|
1577
|
-
function
|
|
1596
|
+
function di(e) {
|
|
1578
1597
|
let t = e.frameElement == null ? null : e.parent;
|
|
1579
1598
|
return {
|
|
1580
1599
|
addEventListener: (e, n, r) => {
|
|
@@ -1594,24 +1613,24 @@ function getParentWindow(e) {
|
|
|
1594
1613
|
}
|
|
1595
1614
|
};
|
|
1596
1615
|
}
|
|
1597
|
-
var
|
|
1598
|
-
function
|
|
1599
|
-
for (let t of e) if (
|
|
1616
|
+
var fi = "pointerdown.outside", pi = "focus.outside";
|
|
1617
|
+
function mi(e) {
|
|
1618
|
+
for (let t of e) if (B(t) && W(t)) return !0;
|
|
1600
1619
|
return !1;
|
|
1601
1620
|
}
|
|
1602
|
-
var
|
|
1603
|
-
function
|
|
1604
|
-
if (!
|
|
1621
|
+
var hi = (e) => "clientY" in e;
|
|
1622
|
+
function gi(e, t) {
|
|
1623
|
+
if (!hi(t) || !e) return !1;
|
|
1605
1624
|
let n = e.getBoundingClientRect();
|
|
1606
1625
|
return n.width === 0 || n.height === 0 ? !1 : n.top <= t.clientY && t.clientY <= n.top + n.height && n.left <= t.clientX && t.clientX <= n.left + n.width;
|
|
1607
1626
|
}
|
|
1608
|
-
function
|
|
1627
|
+
function _i(e, t) {
|
|
1609
1628
|
return e.y <= t.y && t.y <= e.y + e.height && e.x <= t.x && t.x <= e.x + e.width;
|
|
1610
1629
|
}
|
|
1611
|
-
function
|
|
1612
|
-
if (!t || !
|
|
1630
|
+
function vi(e, t) {
|
|
1631
|
+
if (!t || !hi(e)) return !1;
|
|
1613
1632
|
let n = t.scrollHeight > t.clientHeight, r = n && e.clientX > t.offsetLeft + t.clientWidth, i = t.scrollWidth > t.clientWidth, a = i && e.clientY > t.offsetTop + t.clientHeight;
|
|
1614
|
-
return
|
|
1633
|
+
return _i({
|
|
1615
1634
|
x: t.offsetLeft,
|
|
1616
1635
|
y: t.offsetTop,
|
|
1617
1636
|
width: t.clientWidth + (n ? 16 : 0),
|
|
@@ -1621,85 +1640,87 @@ function isEventWithinScrollbar(e, t) {
|
|
|
1621
1640
|
y: e.clientY
|
|
1622
1641
|
}) ? r || a : !1;
|
|
1623
1642
|
}
|
|
1624
|
-
function
|
|
1643
|
+
function yi(e, t) {
|
|
1625
1644
|
let { exclude: n, onFocusOutside: r, onPointerDownOutside: i, onInteractOutside: a, defer: o } = t;
|
|
1626
1645
|
if (!e) return;
|
|
1627
|
-
let s =
|
|
1646
|
+
let s = V(e), c = vt(e), l = ui(c), u = di(c);
|
|
1628
1647
|
function d(t) {
|
|
1629
|
-
let r =
|
|
1630
|
-
if (!
|
|
1648
|
+
let r = H(t);
|
|
1649
|
+
if (!B(r) || !r.isConnected || gt(e, r) || gi(e, t)) return !1;
|
|
1631
1650
|
let i = s.querySelector(`[aria-controls="${e.id}"]`);
|
|
1632
|
-
return i &&
|
|
1651
|
+
return i && vi(t, qt(i)) || vi(t, qt(e)) ? !1 : !n?.(r);
|
|
1633
1652
|
}
|
|
1634
1653
|
let f = /* @__PURE__ */ new Set();
|
|
1635
1654
|
function p(t) {
|
|
1636
1655
|
function n() {
|
|
1637
|
-
let n = o ?
|
|
1656
|
+
let n = o ? G : (e) => e(), r = t.composedPath?.() ?? [t.target];
|
|
1638
1657
|
n(() => {
|
|
1639
1658
|
if (!(!e || !d(t))) {
|
|
1640
1659
|
if (i || a) {
|
|
1641
|
-
let t =
|
|
1642
|
-
e.addEventListener(
|
|
1660
|
+
let t = ln(i, a);
|
|
1661
|
+
e.addEventListener(fi, t, { once: !0 });
|
|
1643
1662
|
}
|
|
1644
|
-
|
|
1663
|
+
xi(e, fi, {
|
|
1645
1664
|
bubbles: !1,
|
|
1646
1665
|
cancelable: !0,
|
|
1647
1666
|
detail: {
|
|
1648
1667
|
originalEvent: t,
|
|
1649
|
-
contextmenu:
|
|
1650
|
-
focusable:
|
|
1668
|
+
contextmenu: Mt(t),
|
|
1669
|
+
focusable: mi(r)
|
|
1651
1670
|
}
|
|
1652
1671
|
});
|
|
1653
1672
|
}
|
|
1654
1673
|
});
|
|
1655
1674
|
}
|
|
1656
|
-
t.pointerType === "touch" ? (f.forEach((e) => e()), f.add(
|
|
1675
|
+
t.pointerType === "touch" ? (f.forEach((e) => e()), f.add(U(s, "click", n, { once: !0 })), f.add(u.addEventListener("click", n, { once: !0 })), f.add(l.addEventListener("click", n, { once: !0 }))) : n();
|
|
1657
1676
|
}
|
|
1658
1677
|
let m = /* @__PURE__ */ new Set(), h = setTimeout(() => {
|
|
1659
|
-
m.add(
|
|
1678
|
+
m.add(U(s, "pointerdown", p, !0)), m.add(u.addEventListener("pointerdown", p, !0)), m.add(l.addEventListener("pointerdown", p, !0));
|
|
1660
1679
|
}, 0);
|
|
1661
1680
|
function g(t) {
|
|
1662
|
-
(o ?
|
|
1681
|
+
(o ? G : (e) => e())(() => {
|
|
1663
1682
|
if (!(!e || !d(t))) {
|
|
1664
1683
|
if (r || a) {
|
|
1665
|
-
let t =
|
|
1666
|
-
e.addEventListener(
|
|
1684
|
+
let t = ln(r, a);
|
|
1685
|
+
e.addEventListener(pi, t, { once: !0 });
|
|
1667
1686
|
}
|
|
1668
|
-
|
|
1687
|
+
xi(e, pi, {
|
|
1669
1688
|
bubbles: !1,
|
|
1670
1689
|
cancelable: !0,
|
|
1671
1690
|
detail: {
|
|
1672
1691
|
originalEvent: t,
|
|
1673
1692
|
contextmenu: !1,
|
|
1674
|
-
focusable:
|
|
1693
|
+
focusable: W(H(t))
|
|
1675
1694
|
}
|
|
1676
1695
|
});
|
|
1677
1696
|
}
|
|
1678
1697
|
});
|
|
1679
1698
|
}
|
|
1680
|
-
return m.add(
|
|
1699
|
+
return m.add(U(s, "focusin", g, !0)), m.add(u.addEventListener("focusin", g, !0)), m.add(l.addEventListener("focusin", g, !0)), () => {
|
|
1681
1700
|
clearTimeout(h), f.forEach((e) => e()), m.forEach((e) => e());
|
|
1682
1701
|
};
|
|
1683
1702
|
}
|
|
1684
|
-
function
|
|
1685
|
-
let { defer: n } = t, r = n ?
|
|
1703
|
+
function bi(e, t) {
|
|
1704
|
+
let { defer: n } = t, r = n ? G : (e) => e(), i = [];
|
|
1686
1705
|
return i.push(r(() => {
|
|
1687
1706
|
let n = typeof e == "function" ? e() : e;
|
|
1688
|
-
i.push(
|
|
1707
|
+
i.push(yi(n, t));
|
|
1689
1708
|
})), () => {
|
|
1690
1709
|
i.forEach((e) => e?.());
|
|
1691
1710
|
};
|
|
1692
1711
|
}
|
|
1693
|
-
function
|
|
1712
|
+
function xi(e, t, n) {
|
|
1694
1713
|
let r = new (e.ownerDocument.defaultView || window).CustomEvent(t, n);
|
|
1695
1714
|
return e.dispatchEvent(r);
|
|
1696
1715
|
}
|
|
1697
|
-
|
|
1698
|
-
|
|
1716
|
+
//#endregion
|
|
1717
|
+
//#region ../../node_modules/.pnpm/@destyler+dismissable@0.2.6/node_modules/@destyler/dismissable/dist/index.mjs
|
|
1718
|
+
function Si(e, t) {
|
|
1719
|
+
return U(V(e), "keydown", (e) => {
|
|
1699
1720
|
e.key === "Escape" && (e.isComposing || t?.(e));
|
|
1700
1721
|
}, { capture: !0 });
|
|
1701
1722
|
}
|
|
1702
|
-
var
|
|
1723
|
+
var Y = {
|
|
1703
1724
|
layers: [],
|
|
1704
1725
|
branches: [],
|
|
1705
1726
|
count() {
|
|
@@ -1724,10 +1745,10 @@ var layerStack = {
|
|
|
1724
1745
|
return Array.from(this.layers).slice(this.indexOf(e) + 1);
|
|
1725
1746
|
},
|
|
1726
1747
|
isInNestedLayer(e, t) {
|
|
1727
|
-
return this.getNestedLayers(e).some((e) =>
|
|
1748
|
+
return this.getNestedLayers(e).some((e) => gt(e.node, t));
|
|
1728
1749
|
},
|
|
1729
1750
|
isInBranch(e) {
|
|
1730
|
-
return Array.from(this.branches).some((t) =>
|
|
1751
|
+
return Array.from(this.branches).some((t) => gt(t, e));
|
|
1731
1752
|
},
|
|
1732
1753
|
add(e) {
|
|
1733
1754
|
let t = this.layers.push(e);
|
|
@@ -1753,59 +1774,59 @@ var layerStack = {
|
|
|
1753
1774
|
clear() {
|
|
1754
1775
|
this.remove(this.layers[0].node);
|
|
1755
1776
|
}
|
|
1756
|
-
},
|
|
1757
|
-
function
|
|
1758
|
-
|
|
1759
|
-
e.style.pointerEvents =
|
|
1777
|
+
}, Ci;
|
|
1778
|
+
function wi() {
|
|
1779
|
+
Y.layers.forEach(({ node: e }) => {
|
|
1780
|
+
e.style.pointerEvents = Y.isBelowPointerBlockingLayer(e) ? "none" : "auto";
|
|
1760
1781
|
});
|
|
1761
1782
|
}
|
|
1762
|
-
function
|
|
1783
|
+
function Ti(e) {
|
|
1763
1784
|
e.style.pointerEvents = "";
|
|
1764
1785
|
}
|
|
1765
|
-
function
|
|
1766
|
-
let n =
|
|
1767
|
-
if (
|
|
1786
|
+
function Ei(e, t) {
|
|
1787
|
+
let n = V(e), r = [];
|
|
1788
|
+
if (Y.hasPointerBlockingLayer() && !n.body.hasAttribute("data-inert") && (Ci = document.body.style.pointerEvents, queueMicrotask(() => {
|
|
1768
1789
|
n.body.style.pointerEvents = "none", n.body.setAttribute("data-inert", "");
|
|
1769
1790
|
})), t) {
|
|
1770
|
-
let e =
|
|
1771
|
-
r.push(
|
|
1791
|
+
let e = an(t, (e) => {
|
|
1792
|
+
r.push(tn(e, { pointerEvents: "auto" }));
|
|
1772
1793
|
});
|
|
1773
1794
|
r.push(e);
|
|
1774
1795
|
}
|
|
1775
1796
|
return () => {
|
|
1776
|
-
|
|
1777
|
-
n.body.style.pointerEvents =
|
|
1797
|
+
Y.hasPointerBlockingLayer() || (queueMicrotask(() => {
|
|
1798
|
+
n.body.style.pointerEvents = Ci, n.body.removeAttribute("data-inert"), n.body.style.length === 0 && n.body.removeAttribute("style");
|
|
1778
1799
|
}), r.forEach((e) => e()));
|
|
1779
1800
|
};
|
|
1780
1801
|
}
|
|
1781
|
-
function
|
|
1802
|
+
function Di(e, t) {
|
|
1782
1803
|
if (!e) throw Error("[@destyler/dismissable] node is `null` or `undefined`");
|
|
1783
1804
|
let { onDismiss: n, pointerBlocking: r, exclude: i, debug: a } = t, o = {
|
|
1784
1805
|
dismiss: n,
|
|
1785
1806
|
node: e,
|
|
1786
1807
|
pointerBlocking: r
|
|
1787
1808
|
};
|
|
1788
|
-
|
|
1809
|
+
Y.add(o), wi();
|
|
1789
1810
|
function s(r) {
|
|
1790
|
-
let i =
|
|
1791
|
-
|
|
1811
|
+
let i = H(r.detail.originalEvent);
|
|
1812
|
+
Y.isBelowPointerBlockingLayer(e) || Y.isInBranch(i) || (t.onPointerDownOutside?.(r), t.onInteractOutside?.(r), !r.defaultPrevented && (a && console.log("onPointerDownOutside:", r.detail.originalEvent), n?.()));
|
|
1792
1813
|
}
|
|
1793
1814
|
function c(e) {
|
|
1794
|
-
let r =
|
|
1795
|
-
|
|
1815
|
+
let r = H(e.detail.originalEvent);
|
|
1816
|
+
Y.isInBranch(r) || (t.onFocusOutside?.(e), t.onInteractOutside?.(e), !e.defaultPrevented && (a && console.log("onFocusOutside:", e.detail.originalEvent), n?.()));
|
|
1796
1817
|
}
|
|
1797
1818
|
function l(r) {
|
|
1798
|
-
|
|
1819
|
+
Y.isTopMost(e) && (t.onEscapeKeyDown?.(r), !r.defaultPrevented && n && (r.preventDefault(), n()));
|
|
1799
1820
|
}
|
|
1800
1821
|
function u(n) {
|
|
1801
1822
|
if (!e) return !1;
|
|
1802
|
-
let r = typeof i == "function" ? i() : i, a = Array.isArray(r) ? r : [r], o = t.persistentElements?.map((e) => e()).filter(
|
|
1803
|
-
return o && a.push(...o), a.some((e) =>
|
|
1823
|
+
let r = typeof i == "function" ? i() : i, a = Array.isArray(r) ? r : [r], o = t.persistentElements?.map((e) => e()).filter(B);
|
|
1824
|
+
return o && a.push(...o), a.some((e) => gt(e, n)) || Y.isInNestedLayer(e, n);
|
|
1804
1825
|
}
|
|
1805
1826
|
let d = [
|
|
1806
|
-
r ?
|
|
1807
|
-
|
|
1808
|
-
|
|
1827
|
+
r ? Ei(e, t.persistentElements) : void 0,
|
|
1828
|
+
Si(e, l),
|
|
1829
|
+
bi(e, {
|
|
1809
1830
|
exclude: u,
|
|
1810
1831
|
onFocusOutside: c,
|
|
1811
1832
|
onPointerDownOutside: s,
|
|
@@ -1813,23 +1834,25 @@ function trackDismissableElementImpl(e, t) {
|
|
|
1813
1834
|
})
|
|
1814
1835
|
];
|
|
1815
1836
|
return () => {
|
|
1816
|
-
|
|
1837
|
+
Y.remove(e), wi(), Ti(e), d.forEach((e) => e?.());
|
|
1817
1838
|
};
|
|
1818
1839
|
}
|
|
1819
|
-
function
|
|
1820
|
-
let { defer: n } = t, r = n ?
|
|
1840
|
+
function Oi(e, t) {
|
|
1841
|
+
let { defer: n } = t, r = n ? G : (e) => e(), i = [];
|
|
1821
1842
|
return i.push(r(() => {
|
|
1822
|
-
let n =
|
|
1823
|
-
i.push(
|
|
1843
|
+
let n = hn(e) ? e() : e;
|
|
1844
|
+
i.push(Di(n, t));
|
|
1824
1845
|
})), () => {
|
|
1825
1846
|
i.forEach((e) => e?.());
|
|
1826
1847
|
};
|
|
1827
1848
|
}
|
|
1828
|
-
|
|
1829
|
-
|
|
1849
|
+
//#endregion
|
|
1850
|
+
//#region ../../node_modules/.pnpm/@destyler+focus-trap@0.2.6/node_modules/@destyler/focus-trap/dist/index.mjs
|
|
1851
|
+
var ki = (e) => e.key === "Tab", Ai = (e, ...t) => typeof e == "function" ? e(...t) : e, ji = (e) => !e.isComposing && e.key === "Escape", Mi = (e) => setTimeout(e, 0);
|
|
1852
|
+
function Ni(e) {
|
|
1830
1853
|
return e.localName === "input" && "select" in e && typeof e.select == "function";
|
|
1831
1854
|
}
|
|
1832
|
-
var
|
|
1855
|
+
var Pi = {
|
|
1833
1856
|
activateTrap(e, t) {
|
|
1834
1857
|
if (e.length > 0) {
|
|
1835
1858
|
let n = e[e.length - 1];
|
|
@@ -1842,7 +1865,7 @@ var activeFocusTraps = {
|
|
|
1842
1865
|
let n = e.indexOf(t);
|
|
1843
1866
|
n !== -1 && e.splice(n, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
1844
1867
|
}
|
|
1845
|
-
},
|
|
1868
|
+
}, Fi = [], Ii = class {
|
|
1846
1869
|
get active() {
|
|
1847
1870
|
return this.state.active;
|
|
1848
1871
|
}
|
|
@@ -1861,18 +1884,18 @@ var activeFocusTraps = {
|
|
|
1861
1884
|
delayInitialFocusTimer: void 0,
|
|
1862
1885
|
recentNavEvent: void 0
|
|
1863
1886
|
}, this.listenerCleanups = [], this.handleFocus = (e) => {
|
|
1864
|
-
let t =
|
|
1865
|
-
if (n ||
|
|
1887
|
+
let t = H(e), n = this.findContainerIndex(t, e) >= 0;
|
|
1888
|
+
if (n || ot(t)) n && (this.state.mostRecentlyFocusedNode = t);
|
|
1866
1889
|
else {
|
|
1867
1890
|
e.stopImmediatePropagation();
|
|
1868
1891
|
let t, n = !0;
|
|
1869
|
-
if (this.state.mostRecentlyFocusedNode) if (
|
|
1892
|
+
if (this.state.mostRecentlyFocusedNode) if (Gt(this.state.mostRecentlyFocusedNode) > 0) {
|
|
1870
1893
|
let e = this.findContainerIndex(this.state.mostRecentlyFocusedNode), { tabbableNodes: r } = this.state.containerGroups[e];
|
|
1871
1894
|
if (r.length > 0) {
|
|
1872
1895
|
let e = r.findIndex((e) => e === this.state.mostRecentlyFocusedNode);
|
|
1873
1896
|
e >= 0 && (this.config.isKeyForward(this.state.recentNavEvent) ? e + 1 < r.length && (t = r[e + 1], n = !1) : e - 1 >= 0 && (t = r[e - 1], n = !1));
|
|
1874
1897
|
}
|
|
1875
|
-
} else this.state.containerGroups.some((e) => e.tabbableNodes.some((e) =>
|
|
1898
|
+
} else this.state.containerGroups.some((e) => e.tabbableNodes.some((e) => Gt(e) > 0)) || (n = !1);
|
|
1876
1899
|
else n = !1;
|
|
1877
1900
|
n && (t = this.findNextNavNode({
|
|
1878
1901
|
target: this.state.mostRecentlyFocusedNode,
|
|
@@ -1881,17 +1904,17 @@ var activeFocusTraps = {
|
|
|
1881
1904
|
}
|
|
1882
1905
|
this.state.recentNavEvent = void 0;
|
|
1883
1906
|
}, this.handlePointerDown = (e) => {
|
|
1884
|
-
let t =
|
|
1907
|
+
let t = H(e);
|
|
1885
1908
|
if (!(this.findContainerIndex(t, e) >= 0)) {
|
|
1886
|
-
if (
|
|
1909
|
+
if (Ai(this.config.clickOutsideDeactivates, e)) {
|
|
1887
1910
|
this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });
|
|
1888
1911
|
return;
|
|
1889
1912
|
}
|
|
1890
|
-
|
|
1913
|
+
Ai(this.config.allowOutsideClick, e) || e.preventDefault();
|
|
1891
1914
|
}
|
|
1892
1915
|
}, this.handleClick = (e) => {
|
|
1893
|
-
let t =
|
|
1894
|
-
this.findContainerIndex(t, e) >= 0 ||
|
|
1916
|
+
let t = H(e);
|
|
1917
|
+
this.findContainerIndex(t, e) >= 0 || Ai(this.config.clickOutsideDeactivates, e) || Ai(this.config.allowOutsideClick, e) || (e.preventDefault(), e.stopImmediatePropagation());
|
|
1895
1918
|
}, this.handleTabKey = (e) => {
|
|
1896
1919
|
if (this.config.isKeyForward(e) || this.config.isKeyBackward(e)) {
|
|
1897
1920
|
this.state.recentNavEvent = e;
|
|
@@ -1900,10 +1923,10 @@ var activeFocusTraps = {
|
|
|
1900
1923
|
isBackward: t
|
|
1901
1924
|
});
|
|
1902
1925
|
if (!n) return;
|
|
1903
|
-
|
|
1926
|
+
ki(e) && e.preventDefault(), this.tryFocus(n);
|
|
1904
1927
|
}
|
|
1905
1928
|
}, this.handleEscapeKey = (e) => {
|
|
1906
|
-
|
|
1929
|
+
ji(e) && Ai(this.config.escapeDeactivates, e) !== !1 && (e.preventDefault(), this.deactivate());
|
|
1907
1930
|
}, this.setupMutationObserver = () => {
|
|
1908
1931
|
this._mutationObserver = new (this.doc.defaultView || window).MutationObserver((e) => {
|
|
1909
1932
|
e.some((e) => Array.from(e.removedNodes).includes(this.state.mostRecentlyFocusedNode)) && this.tryFocus(this.getInitialFocusNode());
|
|
@@ -1918,7 +1941,7 @@ var activeFocusTraps = {
|
|
|
1918
1941
|
}, this.getInitialFocusNode = () => {
|
|
1919
1942
|
let e = this.getNodeForOption("initialFocus", { hasFallback: !0 });
|
|
1920
1943
|
if (e === !1) return !1;
|
|
1921
|
-
if (e === void 0 || e && !
|
|
1944
|
+
if (e === void 0 || e && !W(e)) if (this.findContainerIndex(this.doc.activeElement) >= 0) e = this.doc.activeElement;
|
|
1922
1945
|
else {
|
|
1923
1946
|
let t = this.state.tabbableGroups[0];
|
|
1924
1947
|
e = t && t.firstTabbableNode || this.getNodeForOption("fallbackFocus");
|
|
@@ -1927,12 +1950,12 @@ var activeFocusTraps = {
|
|
|
1927
1950
|
if (!e) throw Error("Your focus-trap needs to have at least one focusable element");
|
|
1928
1951
|
return e.isConnected || (e = this.getNodeForOption("fallbackFocus")), e;
|
|
1929
1952
|
}, this.tryFocus = (e) => {
|
|
1930
|
-
if (e !== !1 && e !==
|
|
1953
|
+
if (e !== !1 && e !== yt(this.doc)) {
|
|
1931
1954
|
if (!e || !e.focus) {
|
|
1932
1955
|
this.tryFocus(this.getInitialFocusNode());
|
|
1933
1956
|
return;
|
|
1934
1957
|
}
|
|
1935
|
-
e.focus({ preventScroll: !!this.config.preventScroll }), this.state.mostRecentlyFocusedNode = e,
|
|
1958
|
+
e.focus({ preventScroll: !!this.config.preventScroll }), this.state.mostRecentlyFocusedNode = e, Ni(e) && e.select();
|
|
1936
1959
|
}
|
|
1937
1960
|
}, this.deactivate = (e) => {
|
|
1938
1961
|
if (!this.state.active) return this;
|
|
@@ -1942,11 +1965,11 @@ var activeFocusTraps = {
|
|
|
1942
1965
|
checkCanReturnFocus: this.config.checkCanReturnFocus,
|
|
1943
1966
|
...e
|
|
1944
1967
|
};
|
|
1945
|
-
clearTimeout(this.state.delayInitialFocusTimer), this.state.delayInitialFocusTimer = void 0, this.removeListeners(), this.state.active = !1, this.state.paused = !1, this.updateObservedNodes(),
|
|
1968
|
+
clearTimeout(this.state.delayInitialFocusTimer), this.state.delayInitialFocusTimer = void 0, this.removeListeners(), this.state.active = !1, this.state.paused = !1, this.updateObservedNodes(), Pi.deactivateTrap(this.trapStack, this);
|
|
1946
1969
|
let n = this.getOption(t, "onDeactivate"), r = this.getOption(t, "onPostDeactivate"), i = this.getOption(t, "checkCanReturnFocus"), a = this.getOption(t, "returnFocus", "returnFocusOnDeactivate");
|
|
1947
1970
|
n?.();
|
|
1948
1971
|
let o = () => {
|
|
1949
|
-
|
|
1972
|
+
Mi(() => {
|
|
1950
1973
|
if (a) {
|
|
1951
1974
|
let e = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);
|
|
1952
1975
|
this.tryFocus(e);
|
|
@@ -1983,7 +2006,7 @@ var activeFocusTraps = {
|
|
|
1983
2006
|
}
|
|
1984
2007
|
return i;
|
|
1985
2008
|
}, this.findNextNavNode = (e) => {
|
|
1986
|
-
let { event: t, isBackward: n = !1 } = e, r = e.target ||
|
|
2009
|
+
let { event: t, isBackward: n = !1 } = e, r = e.target || H(t);
|
|
1987
2010
|
this.updateTabbableNodes();
|
|
1988
2011
|
let i = null;
|
|
1989
2012
|
if (this.state.tabbableGroups.length > 0) {
|
|
@@ -1991,33 +2014,33 @@ var activeFocusTraps = {
|
|
|
1991
2014
|
if (e < 0) i = n ? this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode : this.state.tabbableGroups[0].firstTabbableNode;
|
|
1992
2015
|
else if (n) {
|
|
1993
2016
|
let n = this.state.tabbableGroups.findIndex(({ firstTabbableNode: e }) => r === e);
|
|
1994
|
-
if (n < 0 && (a?.container === r ||
|
|
2017
|
+
if (n < 0 && (a?.container === r || W(r) && !Ht(r) && !a?.nextTabbableNode(r, !1)) && (n = e), n >= 0) {
|
|
1995
2018
|
let e = n === 0 ? this.state.tabbableGroups.length - 1 : n - 1, t = this.state.tabbableGroups[e];
|
|
1996
|
-
i =
|
|
1997
|
-
} else
|
|
2019
|
+
i = Gt(r) >= 0 ? t.lastTabbableNode : t.lastDomTabbableNode;
|
|
2020
|
+
} else ki(t) || (i = a?.nextTabbableNode(r, !1));
|
|
1998
2021
|
} else {
|
|
1999
2022
|
let n = this.state.tabbableGroups.findIndex(({ lastTabbableNode: e }) => r === e);
|
|
2000
|
-
if (n < 0 && (a?.container === r ||
|
|
2023
|
+
if (n < 0 && (a?.container === r || W(r) && !Ht(r) && !a?.nextTabbableNode(r)) && (n = e), n >= 0) {
|
|
2001
2024
|
let e = n === this.state.tabbableGroups.length - 1 ? 0 : n + 1, t = this.state.tabbableGroups[e];
|
|
2002
|
-
i =
|
|
2003
|
-
} else
|
|
2025
|
+
i = Gt(r) >= 0 ? t.firstTabbableNode : t.firstDomTabbableNode;
|
|
2026
|
+
} else ki(t) || (i = a?.nextTabbableNode(r));
|
|
2004
2027
|
}
|
|
2005
2028
|
} else i = this.getNodeForOption("fallbackFocus");
|
|
2006
2029
|
return i;
|
|
2007
|
-
}, this.trapStack = t.trapStack ||
|
|
2030
|
+
}, this.trapStack = t.trapStack || Fi;
|
|
2008
2031
|
let n = {
|
|
2009
2032
|
returnFocusOnDeactivate: !0,
|
|
2010
2033
|
escapeDeactivates: !0,
|
|
2011
2034
|
delayInitialFocus: !0,
|
|
2012
2035
|
isKeyForward(e) {
|
|
2013
|
-
return
|
|
2036
|
+
return ki(e) && !e.shiftKey;
|
|
2014
2037
|
},
|
|
2015
2038
|
isKeyBackward(e) {
|
|
2016
|
-
return
|
|
2039
|
+
return ki(e) && e.shiftKey;
|
|
2017
2040
|
},
|
|
2018
2041
|
...t
|
|
2019
2042
|
};
|
|
2020
|
-
this.doc = n.document ||
|
|
2043
|
+
this.doc = n.document || V(Array.isArray(e) ? e[0] : e), this.config = n, this.updateContainerElements(e), this.setupMutationObserver();
|
|
2021
2044
|
}
|
|
2022
2045
|
findContainerIndex(e, t) {
|
|
2023
2046
|
let n = typeof t?.composedPath == "function" ? t.composedPath() : void 0;
|
|
@@ -2025,10 +2048,10 @@ var activeFocusTraps = {
|
|
|
2025
2048
|
}
|
|
2026
2049
|
updateTabbableNodes() {
|
|
2027
2050
|
if (this.state.containerGroups = this.state.containers.map((e) => {
|
|
2028
|
-
let t =
|
|
2051
|
+
let t = Vt(e), n = Bt(e), r = t.length > 0 ? t[0] : void 0, i = t.length > 0 ? t[t.length - 1] : void 0, a = n.find((e) => Ht(e)), o = n.slice().reverse().find((e) => Ht(e)), s = !!t.find((e) => Gt(e) > 0);
|
|
2029
2052
|
function c(e, r = !0) {
|
|
2030
2053
|
let i = t.indexOf(e);
|
|
2031
|
-
return i < 0 ? r ? n.slice(n.indexOf(e) + 1).find((e) =>
|
|
2054
|
+
return i < 0 ? r ? n.slice(n.indexOf(e) + 1).find((e) => Ht(e)) : n.slice(0, n.indexOf(e)).reverse().find((e) => Ht(e)) : t[i + (r ? 1 : -1)];
|
|
2032
2055
|
}
|
|
2033
2056
|
return {
|
|
2034
2057
|
container: e,
|
|
@@ -2045,21 +2068,21 @@ var activeFocusTraps = {
|
|
|
2045
2068
|
if (this.state.containerGroups.find((e) => e.posTabIndexesFound) && this.state.containerGroups.length > 1) throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
2046
2069
|
}
|
|
2047
2070
|
addListeners() {
|
|
2048
|
-
if (this.state.active) return
|
|
2071
|
+
if (this.state.active) return Pi.activateTrap(this.trapStack, this), this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? Mi(() => {
|
|
2049
2072
|
this.tryFocus(this.getInitialFocusNode());
|
|
2050
|
-
}) : this.tryFocus(this.getInitialFocusNode()), this.listenerCleanups.push(
|
|
2073
|
+
}) : this.tryFocus(this.getInitialFocusNode()), this.listenerCleanups.push(U(this.doc, "focusin", this.handleFocus, !0), U(this.doc, "mousedown", this.handlePointerDown, {
|
|
2051
2074
|
capture: !0,
|
|
2052
2075
|
passive: !1
|
|
2053
|
-
}),
|
|
2076
|
+
}), U(this.doc, "touchstart", this.handlePointerDown, {
|
|
2054
2077
|
capture: !0,
|
|
2055
2078
|
passive: !1
|
|
2056
|
-
}),
|
|
2079
|
+
}), U(this.doc, "click", this.handleClick, {
|
|
2057
2080
|
capture: !0,
|
|
2058
2081
|
passive: !1
|
|
2059
|
-
}),
|
|
2082
|
+
}), U(this.doc, "keydown", this.handleTabKey, {
|
|
2060
2083
|
capture: !0,
|
|
2061
2084
|
passive: !1
|
|
2062
|
-
}),
|
|
2085
|
+
}), U(this.doc, "keydown", this.handleEscapeKey)), this;
|
|
2063
2086
|
}
|
|
2064
2087
|
removeListeners() {
|
|
2065
2088
|
if (this.state.active) return this.listenerCleanups.forEach((e) => e()), this.listenerCleanups = [], this;
|
|
@@ -2074,11 +2097,11 @@ var activeFocusTraps = {
|
|
|
2074
2097
|
return r ? (r(this.state.containers.concat()).then(i, i), this) : (i(), this);
|
|
2075
2098
|
}
|
|
2076
2099
|
};
|
|
2077
|
-
function
|
|
2078
|
-
let n, r =
|
|
2100
|
+
function Li(e, t = {}) {
|
|
2101
|
+
let n, r = G(() => {
|
|
2079
2102
|
let r = typeof e == "function" ? e() : e;
|
|
2080
2103
|
if (r) {
|
|
2081
|
-
n = new
|
|
2104
|
+
n = new Ii(r, {
|
|
2082
2105
|
escapeDeactivates: !1,
|
|
2083
2106
|
allowOutsideClick: !0,
|
|
2084
2107
|
preventScroll: !0,
|
|
@@ -2086,7 +2109,7 @@ function trapFocus(e, t = {}) {
|
|
|
2086
2109
|
delayInitialFocus: !1,
|
|
2087
2110
|
fallbackFocus: r,
|
|
2088
2111
|
...t,
|
|
2089
|
-
document:
|
|
2112
|
+
document: V(r)
|
|
2090
2113
|
});
|
|
2091
2114
|
try {
|
|
2092
2115
|
n.activate();
|
|
@@ -2097,31 +2120,33 @@ function trapFocus(e, t = {}) {
|
|
|
2097
2120
|
n?.deactivate(), r();
|
|
2098
2121
|
};
|
|
2099
2122
|
}
|
|
2100
|
-
|
|
2101
|
-
|
|
2123
|
+
//#endregion
|
|
2124
|
+
//#region ../../node_modules/.pnpm/@destyler+remove-scroll@0.2.6/node_modules/@destyler/remove-scroll/dist/index.mjs
|
|
2125
|
+
var Ri = "data-scroll-lock";
|
|
2126
|
+
function zi(e, t) {
|
|
2102
2127
|
if (!e) return;
|
|
2103
2128
|
let n = Object.keys(t).reduce((t, n) => (t[n] = e.style.getPropertyValue(n), t), {});
|
|
2104
2129
|
return Object.assign(e.style, t), () => {
|
|
2105
2130
|
Object.assign(e.style, n);
|
|
2106
2131
|
};
|
|
2107
2132
|
}
|
|
2108
|
-
function
|
|
2133
|
+
function Bi(e, t, n) {
|
|
2109
2134
|
if (!e) return;
|
|
2110
2135
|
let r = e.style.getPropertyValue(t);
|
|
2111
2136
|
return e.style.setProperty(t, n), () => {
|
|
2112
2137
|
r ? e.style.setProperty(t, r) : e.style.removeProperty(t);
|
|
2113
2138
|
};
|
|
2114
2139
|
}
|
|
2115
|
-
function
|
|
2140
|
+
function Vi(e) {
|
|
2116
2141
|
let t = e.getBoundingClientRect().left;
|
|
2117
2142
|
return Math.round(t) + e.scrollLeft ? "paddingLeft" : "paddingRight";
|
|
2118
2143
|
}
|
|
2119
|
-
function
|
|
2144
|
+
function Hi(e) {
|
|
2120
2145
|
let t = e ?? document, n = t.defaultView ?? window, { documentElement: r, body: i } = t;
|
|
2121
|
-
if (i.hasAttribute(
|
|
2122
|
-
i.setAttribute(
|
|
2123
|
-
let a = n.innerWidth - r.clientWidth, o = () =>
|
|
2124
|
-
let { scrollX: e, scrollY: t, visualViewport: r } = n, o = r?.offsetLeft ?? 0, c = r?.offsetTop ?? 0, l =
|
|
2146
|
+
if (i.hasAttribute(Ri)) return;
|
|
2147
|
+
i.setAttribute(Ri, "");
|
|
2148
|
+
let a = n.innerWidth - r.clientWidth, o = () => Bi(r, "--scrollbar-width", `${a}px`), s = Vi(r), c = [o(), At() ? (() => {
|
|
2149
|
+
let { scrollX: e, scrollY: t, visualViewport: r } = n, o = r?.offsetLeft ?? 0, c = r?.offsetTop ?? 0, l = zi(i, {
|
|
2125
2150
|
position: "fixed",
|
|
2126
2151
|
overflow: "hidden",
|
|
2127
2152
|
top: `${-(t - Math.floor(c))}px`,
|
|
@@ -2136,61 +2161,64 @@ function preventBodyScroll(e) {
|
|
|
2136
2161
|
behavior: "instant"
|
|
2137
2162
|
});
|
|
2138
2163
|
};
|
|
2139
|
-
})() :
|
|
2164
|
+
})() : zi(i, {
|
|
2140
2165
|
overflow: "hidden",
|
|
2141
2166
|
[s]: `${a}px`
|
|
2142
2167
|
})];
|
|
2143
2168
|
return () => {
|
|
2144
|
-
c.forEach((e) => e?.()), i.removeAttribute(
|
|
2169
|
+
c.forEach((e) => e?.()), i.removeAttribute(Ri);
|
|
2145
2170
|
};
|
|
2146
2171
|
}
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2172
|
+
//#endregion
|
|
2173
|
+
//#region ../../node_modules/.pnpm/proxy-compare@3.0.1/node_modules/proxy-compare/dist/index.js
|
|
2174
|
+
var Ui = Symbol(), Wi = Object.getPrototypeOf, Gi = /* @__PURE__ */ new WeakMap(), Ki = (e) => e && (Gi.has(e) ? Gi.get(e) : Wi(e) === Object.prototype || Wi(e) === Array.prototype), qi = (e) => Ki(e) && e[Ui] || null, Ji = (e, t = !0) => {
|
|
2175
|
+
Gi.set(e, t);
|
|
2150
2176
|
};
|
|
2151
|
-
|
|
2177
|
+
//#endregion
|
|
2178
|
+
//#region ../../node_modules/.pnpm/@destyler+store@0.2.6/node_modules/@destyler/store/dist/index.mjs
|
|
2179
|
+
function Yi() {
|
|
2152
2180
|
if (typeof globalThis < "u" || typeof globalThis < "u") return globalThis;
|
|
2153
2181
|
if (typeof window < "u") return window;
|
|
2154
2182
|
}
|
|
2155
|
-
function
|
|
2156
|
-
let n =
|
|
2183
|
+
function Xi(e, t) {
|
|
2184
|
+
let n = Yi();
|
|
2157
2185
|
return n ? (n[e] ||= t(), n[e]) : t();
|
|
2158
2186
|
}
|
|
2159
|
-
var
|
|
2160
|
-
function
|
|
2187
|
+
var Zi = Xi("__destyler__refSet", () => /* @__PURE__ */ new WeakSet()), Qi = (e) => typeof e == "object" && !!e && "$$typeof" in e && "props" in e, $i = (e) => typeof e == "object" && !!e && "__v_isVNode" in e;
|
|
2188
|
+
function ea(e) {
|
|
2161
2189
|
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeName == "string";
|
|
2162
2190
|
}
|
|
2163
|
-
var
|
|
2164
|
-
function
|
|
2165
|
-
return
|
|
2191
|
+
var ta = (e) => Qi(e) || $i(e) || ea(e), na = (e) => typeof e == "object" && !!e;
|
|
2192
|
+
function ra(e) {
|
|
2193
|
+
return na(e) && !Zi.has(e) && (Array.isArray(e) || !(Symbol.iterator in e)) && !ta(e) && !(e instanceof WeakMap) && !(e instanceof WeakSet) && !(e instanceof Error) && typeof e != "number" && !(e instanceof Date) && typeof e != "string" && !(e instanceof RegExp) && !(e instanceof ArrayBuffer) && !(e instanceof Promise);
|
|
2166
2194
|
}
|
|
2167
|
-
function
|
|
2168
|
-
typeof n.value == "object" && !
|
|
2195
|
+
function ia(e, t, n) {
|
|
2196
|
+
typeof n.value == "object" && !ra(n.value) && (n.value = aa(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
|
|
2169
2197
|
}
|
|
2170
|
-
function
|
|
2198
|
+
function aa(e) {
|
|
2171
2199
|
if (typeof e != "object") return e;
|
|
2172
2200
|
let t = 0, n, r, i, a = Object.prototype.toString.call(e);
|
|
2173
2201
|
if (a === "[object Object]" ? i = Object.create(Object.getPrototypeOf(e) || null) : a === "[object Array]" ? i = Array.from({ length: e.length }) : a === "[object Set]" ? (i = /* @__PURE__ */ new Set(), e.forEach((e) => {
|
|
2174
|
-
i.add(
|
|
2202
|
+
i.add(aa(e));
|
|
2175
2203
|
})) : a === "[object Map]" ? (i = /* @__PURE__ */ new Map(), e.forEach((e, t) => {
|
|
2176
|
-
i.set(
|
|
2177
|
-
})) : a === "[object Date]" ? i = /* @__PURE__ */ new Date(+e) : a === "[object RegExp]" ? i = new RegExp(e.source, e.flags) : a === "[object DataView]" ? i = new e.constructor(
|
|
2178
|
-
for (r = Object.getOwnPropertySymbols(e); t < r.length; t++)
|
|
2179
|
-
for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++) Object.hasOwnProperty.call(i, n = r[t]) && i[n] === e[n] ||
|
|
2204
|
+
i.set(aa(t), aa(e));
|
|
2205
|
+
})) : a === "[object Date]" ? i = /* @__PURE__ */ new Date(+e) : a === "[object RegExp]" ? i = new RegExp(e.source, e.flags) : a === "[object DataView]" ? i = new e.constructor(aa(e.buffer)) : a === "[object ArrayBuffer]" ? i = e.slice(0) : a === "[object Blob]" ? i = e.slice() : a.slice(-6) === "Array]" && (i = new e.constructor(e)), i) {
|
|
2206
|
+
for (r = Object.getOwnPropertySymbols(e); t < r.length; t++) ia(i, r[t], Object.getOwnPropertyDescriptor(e, r[t]));
|
|
2207
|
+
for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++) Object.hasOwnProperty.call(i, n = r[t]) && i[n] === e[n] || ia(i, n, Object.getOwnPropertyDescriptor(e, n));
|
|
2180
2208
|
}
|
|
2181
2209
|
return i || e;
|
|
2182
2210
|
}
|
|
2183
|
-
var
|
|
2184
|
-
function
|
|
2211
|
+
var oa = Xi("__destyler__proxyStateMap", () => /* @__PURE__ */ new WeakMap());
|
|
2212
|
+
function sa(e = Object.is, t = (e, t) => new Proxy(e, t), n = /* @__PURE__ */ new WeakMap(), r = (e, t) => {
|
|
2185
2213
|
let r = n.get(e);
|
|
2186
2214
|
if (r?.[0] === t) return r[1];
|
|
2187
2215
|
let i = Array.isArray(e) ? [] : Object.create(Object.getPrototypeOf(e));
|
|
2188
|
-
return
|
|
2216
|
+
return Ji(i, !0), n.set(e, [t, i]), Reflect.ownKeys(e).forEach((t) => {
|
|
2189
2217
|
let n = Reflect.get(e, t);
|
|
2190
|
-
|
|
2218
|
+
Zi.has(n) ? (Ji(n, !1), i[t] = n) : oa.has(n) ? i[t] = da(n) : i[t] = n;
|
|
2191
2219
|
}), Object.freeze(i);
|
|
2192
2220
|
}, i = /* @__PURE__ */ new WeakMap(), a = [1, 1], o = (n) => {
|
|
2193
|
-
if (!
|
|
2221
|
+
if (!na(n)) throw Error("object required");
|
|
2194
2222
|
let o = i.get(n);
|
|
2195
2223
|
if (o) return o;
|
|
2196
2224
|
let s = a[0], c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), u = (e, t = ++a[0]) => {
|
|
@@ -2230,11 +2258,11 @@ function buildProxyFunction(e = Object.is, t = (e, t) => new Proxy(e, t), n = /*
|
|
|
2230
2258
|
set(t, n, r, a) {
|
|
2231
2259
|
let o = Reflect.has(t, n), s = Reflect.get(t, n, a);
|
|
2232
2260
|
if (o && (e(s, r) || i.has(r) && e(s, i.get(r)))) return !0;
|
|
2233
|
-
h(n),
|
|
2261
|
+
h(n), na(r) && (r = qi(r) || r);
|
|
2234
2262
|
let c = r;
|
|
2235
2263
|
if (!Object.getOwnPropertyDescriptor(t, n)?.set) {
|
|
2236
|
-
!
|
|
2237
|
-
let e = !
|
|
2264
|
+
!oa.has(r) && ra(r) && (c = la(r));
|
|
2265
|
+
let e = !Zi.has(c) && oa.get(c);
|
|
2238
2266
|
e && m(n, e);
|
|
2239
2267
|
}
|
|
2240
2268
|
return Reflect.set(t, n, c, a), u([
|
|
@@ -2252,30 +2280,30 @@ function buildProxyFunction(e = Object.is, t = (e, t) => new Proxy(e, t), n = /*
|
|
|
2252
2280
|
r,
|
|
2253
2281
|
g
|
|
2254
2282
|
];
|
|
2255
|
-
return
|
|
2283
|
+
return oa.set(v, y), Reflect.ownKeys(n).forEach((e) => {
|
|
2256
2284
|
let t = Object.getOwnPropertyDescriptor(n, e);
|
|
2257
2285
|
t.get || t.set ? Object.defineProperty(_, e, t) : v[e] = n[e];
|
|
2258
2286
|
}), v;
|
|
2259
2287
|
}) {
|
|
2260
2288
|
return [
|
|
2261
2289
|
o,
|
|
2262
|
-
|
|
2263
|
-
|
|
2290
|
+
oa,
|
|
2291
|
+
Zi,
|
|
2264
2292
|
e,
|
|
2265
2293
|
t,
|
|
2266
|
-
|
|
2294
|
+
ra,
|
|
2267
2295
|
n,
|
|
2268
2296
|
r,
|
|
2269
2297
|
i,
|
|
2270
2298
|
a
|
|
2271
2299
|
];
|
|
2272
2300
|
}
|
|
2273
|
-
var [
|
|
2274
|
-
function
|
|
2275
|
-
return
|
|
2301
|
+
var [ca] = sa();
|
|
2302
|
+
function la(e = {}) {
|
|
2303
|
+
return ca(e);
|
|
2276
2304
|
}
|
|
2277
|
-
function
|
|
2278
|
-
let r =
|
|
2305
|
+
function ua(e, t, n) {
|
|
2306
|
+
let r = oa.get(e), i, a = [], o = r[3], s = !1, c = o((e) => {
|
|
2279
2307
|
if (a.push(e), n) {
|
|
2280
2308
|
t(a.splice(0));
|
|
2281
2309
|
return;
|
|
@@ -2288,75 +2316,77 @@ function subscribe(e, t, n) {
|
|
|
2288
2316
|
s = !1, c();
|
|
2289
2317
|
};
|
|
2290
2318
|
}
|
|
2291
|
-
function
|
|
2292
|
-
let [t, n, r] =
|
|
2319
|
+
function da(e) {
|
|
2320
|
+
let [t, n, r] = oa.get(e);
|
|
2293
2321
|
return r(t, n());
|
|
2294
2322
|
}
|
|
2295
|
-
function
|
|
2296
|
-
return
|
|
2323
|
+
function fa(e) {
|
|
2324
|
+
return Zi.add(e), e;
|
|
2297
2325
|
}
|
|
2298
|
-
function
|
|
2326
|
+
function pa(e, t) {
|
|
2299
2327
|
let n = Object.keys(t);
|
|
2300
2328
|
n.forEach((t) => {
|
|
2301
2329
|
if (Object.getOwnPropertyDescriptor(e, t)) throw Error("object property already defined");
|
|
2302
2330
|
});
|
|
2303
|
-
let r =
|
|
2331
|
+
let r = la(e);
|
|
2304
2332
|
return n.forEach((e) => {
|
|
2305
2333
|
let n = t[e], { get: i, set: a } = typeof n == "function" ? { get: n } : n, o = {};
|
|
2306
|
-
o.get = () => i(
|
|
2334
|
+
o.get = () => i(da(r)), a && (o.set = (e) => a(r, e)), Object.defineProperty(r, e, o);
|
|
2307
2335
|
}), r;
|
|
2308
2336
|
}
|
|
2309
|
-
|
|
2310
|
-
|
|
2337
|
+
//#endregion
|
|
2338
|
+
//#region ../../node_modules/.pnpm/@destyler+xstate@0.2.6/node_modules/@destyler/xstate/dist/index.mjs
|
|
2339
|
+
function ma(e, ...t) {
|
|
2340
|
+
if (!xn(e)) throw TypeError("Source argument must be a plain object");
|
|
2311
2341
|
let n = e;
|
|
2312
2342
|
for (let e of t) {
|
|
2313
|
-
if (!
|
|
2314
|
-
let t =
|
|
2343
|
+
if (!xn(e)) continue;
|
|
2344
|
+
let t = On(e);
|
|
2315
2345
|
for (let r in t) {
|
|
2316
2346
|
if (!Object.prototype.hasOwnProperty.call(t, r) || r === "__proto__" || r === "constructor" || r === "prototype") continue;
|
|
2317
2347
|
let i = n[r], a = e[r];
|
|
2318
|
-
|
|
2348
|
+
xn(a) ? n[r] = xn(i) ? ma(i, a) : { ...a } : n[r] = a;
|
|
2319
2349
|
}
|
|
2320
2350
|
}
|
|
2321
2351
|
return n;
|
|
2322
2352
|
}
|
|
2323
|
-
function
|
|
2324
|
-
return
|
|
2353
|
+
function X(e) {
|
|
2354
|
+
return q(e) ? { type: e } : e;
|
|
2325
2355
|
}
|
|
2326
|
-
function
|
|
2327
|
-
return e ?
|
|
2356
|
+
function ha(e) {
|
|
2357
|
+
return e ? dn(e) ? e.slice() : [e] : [];
|
|
2328
2358
|
}
|
|
2329
|
-
function
|
|
2330
|
-
return
|
|
2359
|
+
function ga(e) {
|
|
2360
|
+
return pn(e) && e.predicate != null;
|
|
2331
2361
|
}
|
|
2332
|
-
var
|
|
2333
|
-
function
|
|
2334
|
-
return e ??=
|
|
2335
|
-
if (
|
|
2362
|
+
var _a = () => !0;
|
|
2363
|
+
function va(e, t) {
|
|
2364
|
+
return e ??= _a, (n, r, i) => {
|
|
2365
|
+
if (q(e)) {
|
|
2336
2366
|
let a = t[e];
|
|
2337
|
-
return
|
|
2367
|
+
return hn(a) ? a(n, r, i) : a;
|
|
2338
2368
|
}
|
|
2339
|
-
return
|
|
2369
|
+
return ga(e) ? e.predicate(t)(n, r, i) : e?.(n, r, i);
|
|
2340
2370
|
};
|
|
2341
2371
|
}
|
|
2342
|
-
function
|
|
2343
|
-
return (n, r, i) =>
|
|
2372
|
+
function ya(e, t) {
|
|
2373
|
+
return (n, r, i) => ga(e) ? e.predicate(t)(n, r, i) : e;
|
|
2344
2374
|
}
|
|
2345
|
-
var
|
|
2375
|
+
var ba = /* @__PURE__ */ function(e) {
|
|
2346
2376
|
return e.NotStarted = "Not Started", e.Running = "Running", e.Stopped = "Stopped", e;
|
|
2347
|
-
}({}),
|
|
2377
|
+
}({}), Z = /* @__PURE__ */ function(e) {
|
|
2348
2378
|
return e.Start = "machine.start", e.Stop = "machine.stop", e.Created = "machine.created", e.Init = "machine.init", e;
|
|
2349
|
-
}({}),
|
|
2379
|
+
}({}), xa = /* @__PURE__ */ function(e) {
|
|
2350
2380
|
return e.Machine = "machine", e.Actor = "machine.actor", e;
|
|
2351
2381
|
}({});
|
|
2352
|
-
function
|
|
2353
|
-
let t = e.computed ??
|
|
2354
|
-
return
|
|
2382
|
+
function Sa(e) {
|
|
2383
|
+
let t = e.computed ?? K({}), n = e.context ?? K({}), r = e.initial ? e.states?.[e.initial]?.tags : [];
|
|
2384
|
+
return K(la({
|
|
2355
2385
|
value: e.initial ?? "",
|
|
2356
2386
|
previousValue: "",
|
|
2357
|
-
event:
|
|
2358
|
-
previousEvent:
|
|
2359
|
-
context:
|
|
2387
|
+
event: K({}),
|
|
2388
|
+
previousEvent: K({}),
|
|
2389
|
+
context: pa(n, t),
|
|
2360
2390
|
done: !1,
|
|
2361
2391
|
tags: r ?? [],
|
|
2362
2392
|
hasTag(e) {
|
|
@@ -2366,7 +2396,7 @@ function createProxy(e) {
|
|
|
2366
2396
|
return e.includes(this.value);
|
|
2367
2397
|
},
|
|
2368
2398
|
can(e) {
|
|
2369
|
-
return
|
|
2399
|
+
return K(this).nextEvents.includes(e);
|
|
2370
2400
|
},
|
|
2371
2401
|
get nextEvents() {
|
|
2372
2402
|
let t = e.states?.[this.value]?.on ?? {}, n = e?.on ?? {};
|
|
@@ -2376,59 +2406,59 @@ function createProxy(e) {
|
|
|
2376
2406
|
});
|
|
2377
2407
|
},
|
|
2378
2408
|
get changed() {
|
|
2379
|
-
return this.event.value ===
|
|
2409
|
+
return this.event.value === Z.Init || !this.previousValue ? !1 : this.value !== this.previousValue;
|
|
2380
2410
|
}
|
|
2381
2411
|
}));
|
|
2382
2412
|
}
|
|
2383
|
-
function
|
|
2413
|
+
function Ca(e, t) {
|
|
2384
2414
|
return (n, r) => {
|
|
2385
|
-
if (
|
|
2386
|
-
if (
|
|
2387
|
-
if (
|
|
2415
|
+
if (mn(e)) return e;
|
|
2416
|
+
if (hn(e)) return e(n, r);
|
|
2417
|
+
if (q(e)) {
|
|
2388
2418
|
let i = Number.parseFloat(e);
|
|
2389
2419
|
if (!Number.isNaN(i)) return i;
|
|
2390
2420
|
if (t) {
|
|
2391
2421
|
let i = t?.[e];
|
|
2392
2422
|
if (i === null) throw Error(`[@destyler/xstate > determine-delay] Cannot determine delay for \`${e}\`. It is set to null in \`options.delays\``);
|
|
2393
|
-
return
|
|
2423
|
+
return hn(i) ? i(n, r) : i;
|
|
2394
2424
|
}
|
|
2395
2425
|
}
|
|
2396
2426
|
};
|
|
2397
2427
|
}
|
|
2398
|
-
function
|
|
2399
|
-
return
|
|
2428
|
+
function wa(e) {
|
|
2429
|
+
return q(e) ? { target: e } : e;
|
|
2400
2430
|
}
|
|
2401
|
-
function
|
|
2402
|
-
return (n, r, i) =>
|
|
2431
|
+
function Ta(e, t) {
|
|
2432
|
+
return (n, r, i) => ha(e).map(wa).find((e) => va(e.guard, t)(n, r, i) ?? e.target ?? e.actions);
|
|
2403
2433
|
}
|
|
2404
|
-
var
|
|
2434
|
+
var Ea = class {
|
|
2405
2435
|
constructor(e, t) {
|
|
2406
|
-
this.status =
|
|
2436
|
+
this.status = ba.NotStarted, this.type = xa.Machine, this.activityEvents = /* @__PURE__ */ new Map(), this.delayedEvents = /* @__PURE__ */ new Map(), this.stateListeners = /* @__PURE__ */ new Set(), this.doneListeners = /* @__PURE__ */ new Set(), this.contextWatchers = /* @__PURE__ */ new Set(), this.removeStateListener = cn, this.children = /* @__PURE__ */ new Map(), this._created = () => {
|
|
2407
2437
|
if (!this.config.created) return;
|
|
2408
|
-
let e =
|
|
2438
|
+
let e = X(Z.Created);
|
|
2409
2439
|
this.executeActions(this.config.created, e);
|
|
2410
2440
|
}, this.start = (e) => {
|
|
2411
|
-
if (this.state.value = "", this.state.tags = [], this.status ===
|
|
2412
|
-
this.status =
|
|
2441
|
+
if (this.state.value = "", this.state.tags = [], this.status === ba.Running) return this;
|
|
2442
|
+
this.status = ba.Running, this.removeStateListener = ua(this.state, () => {
|
|
2413
2443
|
this.stateListeners.forEach((e) => {
|
|
2414
2444
|
e(this.stateSnapshot);
|
|
2415
2445
|
});
|
|
2416
|
-
}, this.sync), this.setupContextWatchers(), this.executeActivities(
|
|
2417
|
-
let t =
|
|
2446
|
+
}, this.sync), this.setupContextWatchers(), this.executeActivities(X(Z.Start), ha(this.config.activities), Z.Start), this.executeActions(this.config.entry, X(Z.Start));
|
|
2447
|
+
let t = X(Z.Init), n = pn(e) ? e.value : e, r = pn(e) ? e.context : void 0;
|
|
2418
2448
|
r && this.setContext(r);
|
|
2419
2449
|
let i = { target: n ?? this.config.initial }, a = this.getNextStateInfo(i, t);
|
|
2420
2450
|
return this.initialState = a, this.performStateChangeEffects(this.state.value, a, t), this;
|
|
2421
2451
|
}, this.setupContextWatchers = () => {
|
|
2422
2452
|
let { watch: e } = this.config;
|
|
2423
2453
|
if (!e) return;
|
|
2424
|
-
let t =
|
|
2425
|
-
let n =
|
|
2454
|
+
let t = da(this.state.context), n = ua(this.state.context, () => {
|
|
2455
|
+
let n = da(this.state.context);
|
|
2426
2456
|
for (let [r, i] of Object.entries(e)) (this.options.compareFns?.[r] ?? Object.is)(t[r], n[r]) || this.executeActions(i, this.state.event);
|
|
2427
2457
|
t = n;
|
|
2428
2458
|
});
|
|
2429
2459
|
this.contextWatchers.add(n);
|
|
2430
2460
|
}, this.stop = () => {
|
|
2431
|
-
if (this.status !==
|
|
2461
|
+
if (this.status !== ba.Stopped) return this.performExitEffects(this.state.value, X(Z.Stop)), this.executeActions(this.config.exit, X(Z.Stop)), this.setState(""), this.setEvent(Z.Stop), this.stopStateListeners(), this.stopChildren(), this.stopActivities(), this.stopDelayedEvents(), this.stopContextWatchers(), this.status = ba.Stopped, this;
|
|
2432
2462
|
}, this.stopStateListeners = () => {
|
|
2433
2463
|
this.removeStateListener(), this.stateListeners.clear();
|
|
2434
2464
|
}, this.stopContextWatchers = () => {
|
|
@@ -2442,7 +2472,7 @@ var Machine = class {
|
|
|
2442
2472
|
e.forEach((e) => e()), e.clear();
|
|
2443
2473
|
}), this.activityEvents.clear());
|
|
2444
2474
|
}, this.sendChild = (e, t) => {
|
|
2445
|
-
let n =
|
|
2475
|
+
let n = X(e), r = sn(t, this.contextSnapshot), i = this.children.get(r);
|
|
2446
2476
|
if (!i) throw Error(`[@destyler/xstate] Cannot send '${n.type}' event to unknown child`);
|
|
2447
2477
|
i.send(n);
|
|
2448
2478
|
}, this.stopChild = (e) => {
|
|
@@ -2455,10 +2485,10 @@ var Machine = class {
|
|
|
2455
2485
|
}, this.setParent = (e) => {
|
|
2456
2486
|
this.parent = e;
|
|
2457
2487
|
}, this.spawn = (e, t) => {
|
|
2458
|
-
let n =
|
|
2459
|
-
return t && (n.id = t), n.type =
|
|
2488
|
+
let n = sn(e);
|
|
2489
|
+
return t && (n.id = t), n.type = xa.Actor, n.setParent(this), this.children.set(n.id, K(n)), n.onDone(() => {
|
|
2460
2490
|
this.removeChild(n.id);
|
|
2461
|
-
}).start(),
|
|
2491
|
+
}).start(), K(fa(n));
|
|
2462
2492
|
}, this.stopActivity = (e) => {
|
|
2463
2493
|
if (!this.state.value) return;
|
|
2464
2494
|
let t = this.activityEvents.get(this.state.value);
|
|
@@ -2468,11 +2498,11 @@ var Machine = class {
|
|
|
2468
2498
|
}, this.setState = (e) => {
|
|
2469
2499
|
this.state.previousValue = this.state.value, this.state.value = e;
|
|
2470
2500
|
let t = this.getStateNode(e);
|
|
2471
|
-
e == null ?
|
|
2501
|
+
e == null ? on(this.state.tags) : this.state.tags = ha(t?.tags);
|
|
2472
2502
|
}, this.setContext = (e) => {
|
|
2473
|
-
e &&
|
|
2503
|
+
e && ma(this.state.context, e);
|
|
2474
2504
|
}, this.setOptions = (e) => {
|
|
2475
|
-
let t =
|
|
2505
|
+
let t = On(e);
|
|
2476
2506
|
this.actionMap = {
|
|
2477
2507
|
...this.actionMap,
|
|
2478
2508
|
...t.actions
|
|
@@ -2514,18 +2544,18 @@ var Machine = class {
|
|
|
2514
2544
|
let t = this.getStateNode(e), n = this.state.event;
|
|
2515
2545
|
if (!t || !t.after) return;
|
|
2516
2546
|
let r = [], i = [];
|
|
2517
|
-
if (
|
|
2547
|
+
if (dn(t.after)) {
|
|
2518
2548
|
let e = this.determineTransition(t.after, n);
|
|
2519
2549
|
if (!e) return;
|
|
2520
|
-
if (!
|
|
2521
|
-
let a =
|
|
2550
|
+
if (!_n(e, "delay")) throw Error(`[@destyler/xstate > after] Delay is required for after transition: ${JSON.stringify(e)}`);
|
|
2551
|
+
let a = Ca(e.delay, this.delayMap)(this.contextSnapshot, n), o = this.getAfterActions(e, a);
|
|
2522
2552
|
return r.push(o.entry), i.push(o.exit), {
|
|
2523
2553
|
entries: r,
|
|
2524
2554
|
exits: i
|
|
2525
2555
|
};
|
|
2526
2556
|
}
|
|
2527
|
-
if (
|
|
2528
|
-
let a = t.after[e], o =
|
|
2557
|
+
if (pn(t.after)) for (let e in t.after) {
|
|
2558
|
+
let a = t.after[e], o = Ca(e, this.delayMap)(this.contextSnapshot, n), s = this.getAfterActions(a, o);
|
|
2529
2559
|
r.push(s.entry), i.push(s.exit);
|
|
2530
2560
|
}
|
|
2531
2561
|
return {
|
|
@@ -2533,32 +2563,32 @@ var Machine = class {
|
|
|
2533
2563
|
exits: i
|
|
2534
2564
|
};
|
|
2535
2565
|
}, this.executeActions = (e, t) => {
|
|
2536
|
-
let n =
|
|
2537
|
-
for (let e of
|
|
2538
|
-
let n =
|
|
2539
|
-
|
|
2566
|
+
let n = ya(e, this.guardMap)(this.contextSnapshot, t, this.guardMeta);
|
|
2567
|
+
for (let e of ha(n)) {
|
|
2568
|
+
let n = q(e) ? this.actionMap?.[e] : e;
|
|
2569
|
+
q(e) && !n && console.warn(`[@destyler/xstate > execute-actions] No implementation found for action: \`${e}\``), n?.(this.state.context, t, this.meta);
|
|
2540
2570
|
}
|
|
2541
2571
|
}, this.executeActivities = (e, t, n) => {
|
|
2542
2572
|
for (let r of t) {
|
|
2543
|
-
let t =
|
|
2573
|
+
let t = q(r) ? this.activityMap?.[r] : r;
|
|
2544
2574
|
if (!t) {
|
|
2545
2575
|
console.warn(`[@destyler/xstate > execute-activity] No implementation found for activity: \`${r}\``);
|
|
2546
2576
|
continue;
|
|
2547
2577
|
}
|
|
2548
2578
|
let i = t(this.state.context, e, this.meta);
|
|
2549
2579
|
if (i) {
|
|
2550
|
-
let e =
|
|
2580
|
+
let e = q(r) ? r : r.name || un();
|
|
2551
2581
|
this.addActivityCleanup(n ?? this.state.value, e, i);
|
|
2552
2582
|
}
|
|
2553
2583
|
}
|
|
2554
2584
|
}, this.createEveryActivities = (e, t) => {
|
|
2555
|
-
if (e) if (
|
|
2556
|
-
let n =
|
|
2557
|
-
let t = e.delay, n =
|
|
2558
|
-
return
|
|
2585
|
+
if (e) if (dn(e)) {
|
|
2586
|
+
let n = ha(e).find((e) => {
|
|
2587
|
+
let t = e.delay, n = Ca(t, this.delayMap)(this.contextSnapshot, this.state.event);
|
|
2588
|
+
return va(e.guard, this.guardMap)(this.contextSnapshot, this.state.event, this.guardMeta) ?? n != null;
|
|
2559
2589
|
});
|
|
2560
2590
|
if (!n) return;
|
|
2561
|
-
let r =
|
|
2591
|
+
let r = Ca(n.delay, this.delayMap)(this.contextSnapshot, this.state.event);
|
|
2562
2592
|
t(() => {
|
|
2563
2593
|
let e = globalThis.setInterval(() => {
|
|
2564
2594
|
this.executeActions(n.actions, this.state.event);
|
|
@@ -2568,7 +2598,7 @@ var Machine = class {
|
|
|
2568
2598
|
};
|
|
2569
2599
|
});
|
|
2570
2600
|
} else for (let n in e) {
|
|
2571
|
-
let r = e?.[n], i =
|
|
2601
|
+
let r = e?.[n], i = Ca(n, this.delayMap)(this.contextSnapshot, this.state.event);
|
|
2572
2602
|
t(() => {
|
|
2573
2603
|
let e = globalThis.setInterval(() => {
|
|
2574
2604
|
this.executeActions(r, this.state.event);
|
|
@@ -2579,20 +2609,20 @@ var Machine = class {
|
|
|
2579
2609
|
});
|
|
2580
2610
|
}
|
|
2581
2611
|
}, this.setEvent = (e) => {
|
|
2582
|
-
this.state.previousEvent = this.state.event, this.state.event =
|
|
2612
|
+
this.state.previousEvent = this.state.event, this.state.event = fa(X(e));
|
|
2583
2613
|
}, this.performExitEffects = (e, t) => {
|
|
2584
2614
|
let n = this.state.value;
|
|
2585
2615
|
if (n === "") return;
|
|
2586
2616
|
let r = e ? this.getStateNode(e) : void 0;
|
|
2587
2617
|
this.stopActivities(n);
|
|
2588
|
-
let i =
|
|
2618
|
+
let i = ha(ya(r?.exit, this.guardMap)(this.contextSnapshot, t, this.guardMeta)), a = this.delayedEvents.get(n);
|
|
2589
2619
|
a && i.push(...a), this.executeActions(i, t), this.delayedEvents.delete(n);
|
|
2590
2620
|
}, this.performEntryEffects = (e, t) => {
|
|
2591
|
-
let n = this.getStateNode(e), r =
|
|
2621
|
+
let n = this.getStateNode(e), r = ha(n?.activities);
|
|
2592
2622
|
this.createEveryActivities(n?.every, (e) => {
|
|
2593
2623
|
r.unshift(e);
|
|
2594
2624
|
}), r.length > 0 && this.executeActivities(t, r);
|
|
2595
|
-
let i =
|
|
2625
|
+
let i = ha(ya(n?.entry, this.guardMap)(this.contextSnapshot, t, this.guardMeta)), a = this.getDelayedEventActions(e);
|
|
2596
2626
|
n?.after && a && (this.delayedEvents.set(e, a?.exits), i.push(...a.entries)), this.executeActions(i, t), n?.type === "final" && (this.state.done = !0, this.doneListeners.forEach((e) => {
|
|
2597
2627
|
e(this.stateSnapshot);
|
|
2598
2628
|
}), this.stop());
|
|
@@ -2603,30 +2633,30 @@ var Machine = class {
|
|
|
2603
2633
|
this.setEvent(n);
|
|
2604
2634
|
let r = t.changed || t.reenter;
|
|
2605
2635
|
r && this.performExitEffects(e, n), this.performTransitionEffects(t.transition, n), this.setState(t.target), r && this.performEntryEffects(t.target, n);
|
|
2606
|
-
}, this.determineTransition = (e, t) =>
|
|
2636
|
+
}, this.determineTransition = (e, t) => Ta(e, this.guardMap)?.(this.contextSnapshot, t, this.guardMeta), this.sendParent = (e) => {
|
|
2607
2637
|
if (!this.parent) throw Error("[@destyler/xstate > send-parent] Cannot send event to parent machine, no parent is set. Use `machine.spawn()` to spawn a child machine.");
|
|
2608
|
-
let t =
|
|
2638
|
+
let t = X(e);
|
|
2609
2639
|
this.parent?.send(t);
|
|
2610
2640
|
}, this.log = (...e) => {
|
|
2611
2641
|
this.options.debug && console.log(...e);
|
|
2612
2642
|
}, this.send = (e) => {
|
|
2613
|
-
let t =
|
|
2643
|
+
let t = X(e);
|
|
2614
2644
|
this.transition(this.state.value, t);
|
|
2615
2645
|
}, this.transition = (e, t) => {
|
|
2616
|
-
let n =
|
|
2646
|
+
let n = q(e) ? this.getStateNode(e) : e?.stateNode, r = X(t);
|
|
2617
2647
|
if (!n && !this.config.on) {
|
|
2618
|
-
let t = this.status ===
|
|
2648
|
+
let t = this.status === ba.Stopped ? "[@destyler/xstate > transition] Cannot transition a stopped machine" : `[destyler/xstate > transition] State does not have a definition for \`state\`: ${e}, \`event\`: ${r.type}`;
|
|
2619
2649
|
console.warn(t);
|
|
2620
2650
|
return;
|
|
2621
2651
|
}
|
|
2622
2652
|
let i = n?.on?.[r.type] ?? this.config.on?.[r.type], a = this.getNextStateInfo(i, r);
|
|
2623
2653
|
return this.performStateChangeEffects(this.state.value, a, r), a.stateNode;
|
|
2624
|
-
}, this.subscribe = (e) => (this.stateListeners.add(e), this.status ===
|
|
2654
|
+
}, this.subscribe = (e) => (this.stateListeners.add(e), this.status === ba.Running && e(this.stateSnapshot), () => {
|
|
2625
2655
|
this.stateListeners.delete(e);
|
|
2626
|
-
}), this.onDone = (e) => (this.doneListeners.add(e), this), this.onTransition = (e) => (this.stateListeners.add(e), this.status ===
|
|
2656
|
+
}), this.onDone = (e) => (this.doneListeners.add(e), this), this.onTransition = (e) => (this.stateListeners.add(e), this.status === ba.Running && e(this.stateSnapshot), this), this.config = aa(e), this.options = aa(t ?? {}), this.id = this.config.id ?? `machine-${un()}`, this.guardMap = this.options?.guards ?? {}, this.actionMap = this.options?.actions ?? {}, this.delayMap = this.options?.delays ?? {}, this.activityMap = this.options?.activities ?? {}, this.sync = this.options?.sync ?? !1, this.state = Sa(this.config), this.initialContext = da(this.state.context);
|
|
2627
2657
|
}
|
|
2628
2658
|
get stateSnapshot() {
|
|
2629
|
-
return
|
|
2659
|
+
return K(da(this.state));
|
|
2630
2660
|
}
|
|
2631
2661
|
getState() {
|
|
2632
2662
|
return this.stateSnapshot;
|
|
@@ -2683,18 +2713,20 @@ var Machine = class {
|
|
|
2683
2713
|
};
|
|
2684
2714
|
}
|
|
2685
2715
|
};
|
|
2686
|
-
function
|
|
2687
|
-
return new
|
|
2716
|
+
function Da(e, t) {
|
|
2717
|
+
return new Ea(e, t);
|
|
2688
2718
|
}
|
|
2689
|
-
|
|
2719
|
+
//#endregion
|
|
2720
|
+
//#region ../../node_modules/.pnpm/@destyler+types@0.2.6/node_modules/@destyler/types/dist/index.mjs
|
|
2721
|
+
function Oa() {
|
|
2690
2722
|
return (e) => Array.from(new Set(e));
|
|
2691
2723
|
}
|
|
2692
|
-
function
|
|
2724
|
+
function ka(e) {
|
|
2693
2725
|
return new Proxy({}, { get() {
|
|
2694
2726
|
return e;
|
|
2695
2727
|
} });
|
|
2696
2728
|
}
|
|
2697
|
-
var
|
|
2729
|
+
var Q = et("popover").parts("arrow", "arrowTip", "anchor", "trigger", "indicator", "positioner", "content", "title", "description", "closeTrigger").build(), $ = Qt({
|
|
2698
2730
|
getAnchorId: (e) => e.ids?.anchor ?? `popover:${e.id}:anchor`,
|
|
2699
2731
|
getTriggerId: (e) => e.ids?.trigger ?? `popover:${e.id}:trigger`,
|
|
2700
2732
|
getContentId: (e) => e.ids?.content ?? `popover:${e.id}:content`,
|
|
@@ -2703,17 +2735,17 @@ var parts = createAnatomy("popover").parts("arrow", "arrowTip", "anchor", "trigg
|
|
|
2703
2735
|
getTitleId: (e) => e.ids?.title ?? `popover:${e.id}:title`,
|
|
2704
2736
|
getDescriptionId: (e) => e.ids?.description ?? `popover:${e.id}:desc`,
|
|
2705
2737
|
getCloseTriggerId: (e) => e.ids?.closeTrigger ?? `popover:${e.id}:close`,
|
|
2706
|
-
getAnchorEl: (e) =>
|
|
2707
|
-
getTriggerEl: (e) =>
|
|
2708
|
-
getContentEl: (e) =>
|
|
2709
|
-
getPositionerEl: (e) =>
|
|
2710
|
-
getTitleEl: (e) =>
|
|
2711
|
-
getDescriptionEl: (e) =>
|
|
2712
|
-
getFocusableEls: (e) =>
|
|
2713
|
-
getFirstFocusableEl: (e) =>
|
|
2738
|
+
getAnchorEl: (e) => $.getById(e, $.getAnchorId(e)),
|
|
2739
|
+
getTriggerEl: (e) => $.getById(e, $.getTriggerId(e)),
|
|
2740
|
+
getContentEl: (e) => $.getById(e, $.getContentId(e)),
|
|
2741
|
+
getPositionerEl: (e) => $.getById(e, $.getPositionerId(e)),
|
|
2742
|
+
getTitleEl: (e) => $.getById(e, $.getTitleId(e)),
|
|
2743
|
+
getDescriptionEl: (e) => $.getById(e, $.getDescriptionId(e)),
|
|
2744
|
+
getFocusableEls: (e) => Bt($.getContentEl(e)),
|
|
2745
|
+
getFirstFocusableEl: (e) => $.getFocusableEls(e)[0]
|
|
2714
2746
|
});
|
|
2715
|
-
function
|
|
2716
|
-
let r = e.matches("open"), i = e.context.currentPlacement, a = e.context.currentPortalled, o = e.context.renderedElements, s =
|
|
2747
|
+
function Aa(e, t, n) {
|
|
2748
|
+
let r = e.matches("open"), i = e.context.currentPlacement, a = e.context.currentPortalled, o = e.context.renderedElements, s = Zr({
|
|
2717
2749
|
...e.context.positioning,
|
|
2718
2750
|
placement: i
|
|
2719
2751
|
});
|
|
@@ -2731,39 +2763,39 @@ function connect(e, t, n) {
|
|
|
2731
2763
|
},
|
|
2732
2764
|
getArrowProps() {
|
|
2733
2765
|
return n.element({
|
|
2734
|
-
id:
|
|
2735
|
-
...
|
|
2766
|
+
id: $.getArrowId(e.context),
|
|
2767
|
+
...Q.arrow.attrs,
|
|
2736
2768
|
dir: e.context.dir,
|
|
2737
2769
|
style: s.arrow
|
|
2738
2770
|
});
|
|
2739
2771
|
},
|
|
2740
2772
|
getArrowTipProps() {
|
|
2741
2773
|
return n.element({
|
|
2742
|
-
...
|
|
2774
|
+
...Q.arrowTip.attrs,
|
|
2743
2775
|
dir: e.context.dir,
|
|
2744
2776
|
style: s.arrowTip
|
|
2745
2777
|
});
|
|
2746
2778
|
},
|
|
2747
2779
|
getAnchorProps() {
|
|
2748
2780
|
return n.element({
|
|
2749
|
-
...
|
|
2781
|
+
...Q.anchor.attrs,
|
|
2750
2782
|
dir: e.context.dir,
|
|
2751
|
-
id:
|
|
2783
|
+
id: $.getAnchorId(e.context)
|
|
2752
2784
|
});
|
|
2753
2785
|
},
|
|
2754
2786
|
getTriggerProps() {
|
|
2755
2787
|
return n.button({
|
|
2756
|
-
...
|
|
2788
|
+
...Q.trigger.attrs,
|
|
2757
2789
|
dir: e.context.dir,
|
|
2758
2790
|
type: "button",
|
|
2759
2791
|
"data-placement": i,
|
|
2760
|
-
id:
|
|
2792
|
+
id: $.getTriggerId(e.context),
|
|
2761
2793
|
"aria-haspopup": "dialog",
|
|
2762
2794
|
"aria-expanded": r,
|
|
2763
2795
|
"data-state": r ? "open" : "closed",
|
|
2764
|
-
"aria-controls":
|
|
2796
|
+
"aria-controls": $.getContentId(e.context),
|
|
2765
2797
|
onPointerDown(e) {
|
|
2766
|
-
|
|
2798
|
+
kt() && e.currentTarget.focus();
|
|
2767
2799
|
},
|
|
2768
2800
|
onClick(e) {
|
|
2769
2801
|
e.defaultPrevented || t("TOGGLE");
|
|
@@ -2778,53 +2810,53 @@ function connect(e, t, n) {
|
|
|
2778
2810
|
},
|
|
2779
2811
|
getIndicatorProps() {
|
|
2780
2812
|
return n.element({
|
|
2781
|
-
...
|
|
2813
|
+
...Q.indicator.attrs,
|
|
2782
2814
|
dir: e.context.dir,
|
|
2783
2815
|
"data-state": r ? "open" : "closed"
|
|
2784
2816
|
});
|
|
2785
2817
|
},
|
|
2786
2818
|
getPositionerProps() {
|
|
2787
2819
|
return n.element({
|
|
2788
|
-
id:
|
|
2789
|
-
...
|
|
2820
|
+
id: $.getPositionerId(e.context),
|
|
2821
|
+
...Q.positioner.attrs,
|
|
2790
2822
|
dir: e.context.dir,
|
|
2791
2823
|
style: s.floating
|
|
2792
2824
|
});
|
|
2793
2825
|
},
|
|
2794
2826
|
getContentProps() {
|
|
2795
2827
|
return n.element({
|
|
2796
|
-
...
|
|
2828
|
+
...Q.content.attrs,
|
|
2797
2829
|
dir: e.context.dir,
|
|
2798
|
-
id:
|
|
2830
|
+
id: $.getContentId(e.context),
|
|
2799
2831
|
tabIndex: -1,
|
|
2800
2832
|
role: "dialog",
|
|
2801
2833
|
hidden: !r,
|
|
2802
2834
|
"data-state": r ? "open" : "closed",
|
|
2803
|
-
"data-expanded":
|
|
2804
|
-
"aria-labelledby": o.title ?
|
|
2805
|
-
"aria-describedby": o.description ?
|
|
2835
|
+
"data-expanded": nt(r),
|
|
2836
|
+
"aria-labelledby": o.title ? $.getTitleId(e.context) : void 0,
|
|
2837
|
+
"aria-describedby": o.description ? $.getDescriptionId(e.context) : void 0,
|
|
2806
2838
|
"data-placement": i
|
|
2807
2839
|
});
|
|
2808
2840
|
},
|
|
2809
2841
|
getTitleProps() {
|
|
2810
2842
|
return n.element({
|
|
2811
|
-
...
|
|
2812
|
-
id:
|
|
2843
|
+
...Q.title.attrs,
|
|
2844
|
+
id: $.getTitleId(e.context),
|
|
2813
2845
|
dir: e.context.dir
|
|
2814
2846
|
});
|
|
2815
2847
|
},
|
|
2816
2848
|
getDescriptionProps() {
|
|
2817
2849
|
return n.element({
|
|
2818
|
-
...
|
|
2819
|
-
id:
|
|
2850
|
+
...Q.description.attrs,
|
|
2851
|
+
id: $.getDescriptionId(e.context),
|
|
2820
2852
|
dir: e.context.dir
|
|
2821
2853
|
});
|
|
2822
2854
|
},
|
|
2823
2855
|
getCloseTriggerProps() {
|
|
2824
2856
|
return n.button({
|
|
2825
|
-
...
|
|
2857
|
+
...Q.closeTrigger.attrs,
|
|
2826
2858
|
dir: e.context.dir,
|
|
2827
|
-
id:
|
|
2859
|
+
id: $.getCloseTriggerId(e.context),
|
|
2828
2860
|
type: "button",
|
|
2829
2861
|
"aria-label": "close",
|
|
2830
2862
|
onClick(e) {
|
|
@@ -2834,9 +2866,9 @@ function connect(e, t, n) {
|
|
|
2834
2866
|
}
|
|
2835
2867
|
};
|
|
2836
2868
|
}
|
|
2837
|
-
function
|
|
2838
|
-
let t =
|
|
2839
|
-
return
|
|
2869
|
+
function ja(e) {
|
|
2870
|
+
let t = On(e);
|
|
2871
|
+
return Da({
|
|
2840
2872
|
id: "popover",
|
|
2841
2873
|
initial: t.open ? "open" : "closed",
|
|
2842
2874
|
context: {
|
|
@@ -2916,7 +2948,7 @@ function machine(e) {
|
|
|
2916
2948
|
guards: { isOpenControlled: (e) => !!e["open.controlled"] },
|
|
2917
2949
|
activities: {
|
|
2918
2950
|
trackPositioning(e) {
|
|
2919
|
-
return e.currentPlacement = e.positioning.placement,
|
|
2951
|
+
return e.currentPlacement = e.positioning.placement, Yr($.getAnchorEl(e) ?? $.getTriggerEl(e), () => $.getPositionerEl(e), {
|
|
2920
2952
|
...e.positioning,
|
|
2921
2953
|
defer: !0,
|
|
2922
2954
|
onComplete(t) {
|
|
@@ -2925,10 +2957,10 @@ function machine(e) {
|
|
|
2925
2957
|
});
|
|
2926
2958
|
},
|
|
2927
2959
|
trackDismissableElement(e, t, { send: n }) {
|
|
2928
|
-
let r = () =>
|
|
2929
|
-
return
|
|
2960
|
+
let r = () => $.getContentEl(e), i = !0;
|
|
2961
|
+
return Oi(r, {
|
|
2930
2962
|
pointerBlocking: e.modal,
|
|
2931
|
-
exclude:
|
|
2963
|
+
exclude: $.getTriggerEl(e),
|
|
2932
2964
|
defer: !0,
|
|
2933
2965
|
onEscapeKeyDown(t) {
|
|
2934
2966
|
e.onEscapeKeyDown?.(t), !e.closeOnEscape && t.preventDefault();
|
|
@@ -2949,8 +2981,8 @@ function machine(e) {
|
|
|
2949
2981
|
});
|
|
2950
2982
|
},
|
|
2951
2983
|
proxyTabFocus(e) {
|
|
2952
|
-
return e.modal || !e.portalled ? void 0 :
|
|
2953
|
-
triggerElement:
|
|
2984
|
+
return e.modal || !e.portalled ? void 0 : Zt(() => $.getContentEl(e), {
|
|
2985
|
+
triggerElement: $.getTriggerEl(e),
|
|
2954
2986
|
defer: !0,
|
|
2955
2987
|
onFocus(e) {
|
|
2956
2988
|
e.focus({ preventScroll: !0 });
|
|
@@ -2958,14 +2990,14 @@ function machine(e) {
|
|
|
2958
2990
|
});
|
|
2959
2991
|
},
|
|
2960
2992
|
hideContentBelow(e) {
|
|
2961
|
-
return e.modal ?
|
|
2993
|
+
return e.modal ? li(() => [$.getContentEl(e), $.getTriggerEl(e)], { defer: !0 }) : void 0;
|
|
2962
2994
|
},
|
|
2963
2995
|
preventScroll(e) {
|
|
2964
|
-
if (e.modal) return
|
|
2996
|
+
if (e.modal) return Hi($.getDoc(e));
|
|
2965
2997
|
},
|
|
2966
2998
|
trapFocus(e) {
|
|
2967
|
-
return e.modal ?
|
|
2968
|
-
root:
|
|
2999
|
+
return e.modal ? Li(() => $.getContentEl(e), { initialFocus: () => Kt({
|
|
3000
|
+
root: $.getContentEl(e),
|
|
2969
3001
|
getInitialEl: e.initialFocusEl,
|
|
2970
3002
|
enabled: e.autoFocus
|
|
2971
3003
|
}) }) : void 0;
|
|
@@ -2973,7 +3005,7 @@ function machine(e) {
|
|
|
2973
3005
|
},
|
|
2974
3006
|
actions: {
|
|
2975
3007
|
reposition(e, t) {
|
|
2976
|
-
|
|
3008
|
+
Yr($.getAnchorEl(e) ?? $.getTriggerEl(e), () => $.getPositionerEl(e), {
|
|
2977
3009
|
...e.positioning,
|
|
2978
3010
|
...t.options,
|
|
2979
3011
|
defer: !0,
|
|
@@ -2984,17 +3016,17 @@ function machine(e) {
|
|
|
2984
3016
|
});
|
|
2985
3017
|
},
|
|
2986
3018
|
checkRenderedElements(e) {
|
|
2987
|
-
|
|
3019
|
+
G(() => {
|
|
2988
3020
|
Object.assign(e.renderedElements, {
|
|
2989
|
-
title:
|
|
2990
|
-
description:
|
|
3021
|
+
title: !!$.getTitleEl(e),
|
|
3022
|
+
description: !!$.getDescriptionEl(e)
|
|
2991
3023
|
});
|
|
2992
3024
|
});
|
|
2993
3025
|
},
|
|
2994
3026
|
setInitialFocus(e) {
|
|
2995
|
-
e.modal ||
|
|
2996
|
-
|
|
2997
|
-
root:
|
|
3027
|
+
e.modal || G(() => {
|
|
3028
|
+
Kt({
|
|
3029
|
+
root: $.getContentEl(e),
|
|
2998
3030
|
getInitialEl: e.initialFocusEl,
|
|
2999
3031
|
enabled: e.autoFocus
|
|
3000
3032
|
})?.focus({ preventScroll: !0 });
|
|
@@ -3002,8 +3034,8 @@ function machine(e) {
|
|
|
3002
3034
|
},
|
|
3003
3035
|
setFinalFocus(e, t) {
|
|
3004
3036
|
let n = t.restoreFocus ?? t.previousEvent?.restoreFocus;
|
|
3005
|
-
n != null && !n ||
|
|
3006
|
-
|
|
3037
|
+
n != null && !n || G(() => {
|
|
3038
|
+
$.getTriggerEl(e)?.focus({ preventScroll: !0 });
|
|
3007
3039
|
});
|
|
3008
3040
|
},
|
|
3009
3041
|
invokeOnOpen(e) {
|
|
@@ -3021,7 +3053,7 @@ function machine(e) {
|
|
|
3021
3053
|
}
|
|
3022
3054
|
});
|
|
3023
3055
|
}
|
|
3024
|
-
|
|
3056
|
+
Oa()([
|
|
3025
3057
|
"autoFocus",
|
|
3026
3058
|
"closeOnEscape",
|
|
3027
3059
|
"closeOnInteractOutside",
|
|
@@ -3042,38 +3074,40 @@ createProps()([
|
|
|
3042
3074
|
"portalled",
|
|
3043
3075
|
"positioning"
|
|
3044
3076
|
]);
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3077
|
+
//#endregion
|
|
3078
|
+
//#region ../../node_modules/.pnpm/@destyler+vue@0.2.6_vue@3.5.28_typescript@5.9.3_/node_modules/@destyler/vue/dist/index.mjs
|
|
3079
|
+
function Ma(e, t) {
|
|
3080
|
+
let { actions: n, context: r } = t ?? {}, i = b(e.state), a = ua(e.state, () => {
|
|
3081
|
+
i.value = da(e.state);
|
|
3048
3082
|
});
|
|
3049
|
-
return
|
|
3083
|
+
return _(() => {
|
|
3050
3084
|
a?.();
|
|
3051
|
-
}),
|
|
3085
|
+
}), te(() => {
|
|
3052
3086
|
e.setOptions({ actions: n });
|
|
3053
|
-
}), r &&
|
|
3054
|
-
e.setContext(
|
|
3087
|
+
}), r && w(r, (t) => {
|
|
3088
|
+
e.setContext(x(t));
|
|
3055
3089
|
}, { deep: !0 }), i;
|
|
3056
3090
|
}
|
|
3057
|
-
function
|
|
3091
|
+
function Na(e, t) {
|
|
3058
3092
|
let { state: n, context: r } = t ?? {}, i = typeof e == "function" ? e() : e;
|
|
3059
|
-
return r && i.setContext(
|
|
3060
|
-
i.start(n),
|
|
3093
|
+
return r && i.setContext(x(r)), i._created(), g(() => {
|
|
3094
|
+
i.start(n), h(() => {
|
|
3061
3095
|
i.stop();
|
|
3062
3096
|
});
|
|
3063
3097
|
}), i;
|
|
3064
3098
|
}
|
|
3065
|
-
function
|
|
3066
|
-
let n =
|
|
3099
|
+
function Pa(e, t) {
|
|
3100
|
+
let n = Na(e, t);
|
|
3067
3101
|
return [
|
|
3068
|
-
|
|
3102
|
+
Ma(n, t),
|
|
3069
3103
|
n.send,
|
|
3070
3104
|
n
|
|
3071
3105
|
];
|
|
3072
3106
|
}
|
|
3073
|
-
function
|
|
3107
|
+
function Fa(e) {
|
|
3074
3108
|
return e.charAt(0).toUpperCase() + e.substr(1).toLowerCase();
|
|
3075
3109
|
}
|
|
3076
|
-
var
|
|
3110
|
+
var Ia = {
|
|
3077
3111
|
htmlFor: "for",
|
|
3078
3112
|
className: "class",
|
|
3079
3113
|
onDoubleClick: "onDblclick",
|
|
@@ -3083,29 +3117,29 @@ var propMap = {
|
|
|
3083
3117
|
defaultValue: "value",
|
|
3084
3118
|
defaultChecked: "checked"
|
|
3085
3119
|
};
|
|
3086
|
-
function
|
|
3087
|
-
return e in
|
|
3120
|
+
function La(e) {
|
|
3121
|
+
return e in Ia ? Ia[e] : e.startsWith("on") ? `on${Fa(e.substr(2))}` : e.toLowerCase();
|
|
3088
3122
|
}
|
|
3089
|
-
var
|
|
3123
|
+
var Ra = ka((e) => {
|
|
3090
3124
|
let t = {};
|
|
3091
3125
|
for (let n in e) {
|
|
3092
3126
|
let r = e[n];
|
|
3093
|
-
n === "children" ? (typeof r == "string" || typeof r == "number") && (t.textContent = String(r)) : t[
|
|
3127
|
+
n === "children" ? (typeof r == "string" || typeof r == "number") && (t.textContent = String(r)) : t[La(n)] = e[n];
|
|
3094
3128
|
}
|
|
3095
3129
|
return t;
|
|
3096
|
-
}),
|
|
3130
|
+
}), za = {
|
|
3097
3131
|
key: 0,
|
|
3098
3132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3099
3133
|
width: "1em",
|
|
3100
3134
|
height: "1em",
|
|
3101
3135
|
viewBox: "0 0 16 16"
|
|
3102
|
-
},
|
|
3136
|
+
}, Ba = {
|
|
3103
3137
|
key: 1,
|
|
3104
3138
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3105
3139
|
width: "1em",
|
|
3106
3140
|
height: "1em",
|
|
3107
3141
|
viewBox: "0 0 16 16"
|
|
3108
|
-
},
|
|
3142
|
+
}, Va = /* @__PURE__ */ l({
|
|
3109
3143
|
name: "ComponentIcones",
|
|
3110
3144
|
__name: "ComponentsIcones",
|
|
3111
3145
|
props: { expanded: {
|
|
@@ -3114,41 +3148,41 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3114
3148
|
} },
|
|
3115
3149
|
setup(e) {
|
|
3116
3150
|
let t = e;
|
|
3117
|
-
return (e, n) => t.expanded ? (
|
|
3151
|
+
return (e, n) => t.expanded ? (v(), o("svg", za, [...n[0] ||= [s("g", {
|
|
3118
3152
|
fill: "none",
|
|
3119
3153
|
"stroke-linecap": "round",
|
|
3120
3154
|
"stroke-linejoin": "round"
|
|
3121
|
-
}, [
|
|
3155
|
+
}, [s("path", {
|
|
3122
3156
|
class: "stroke-dark dark:stroke-light",
|
|
3123
3157
|
d: "m1.87 8l.7-2.74a1 1 0 0 1 .96-.76h10.94a1 1 0 0 1 .97 1.24l-.219.875M6 13.5H2A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3124
|
-
}),
|
|
3158
|
+
}), s("path", {
|
|
3125
3159
|
stroke: "#67B686",
|
|
3126
3160
|
d: "m9.485 9.516l3.968 3.968m-3.968 0l3.968-3.968m-1.634-1.874l3.507 3.507a.496.496 0 0 1 0 .702l-3.507 3.507a.496.496 0 0 1-.701 0L7.61 11.85a.496.496 0 0 1 0-.702l3.507-3.507a.496.496 0 0 1 .701 0z"
|
|
3127
|
-
})], -1)]])) : (
|
|
3161
|
+
})], -1)]])) : (v(), o("svg", Ba, [...n[1] ||= [s("g", {
|
|
3128
3162
|
fill: "none",
|
|
3129
3163
|
"stroke-linecap": "round",
|
|
3130
3164
|
"stroke-linejoin": "round"
|
|
3131
|
-
}, [
|
|
3165
|
+
}, [s("path", {
|
|
3132
3166
|
class: "stroke-dark dark:stroke-light",
|
|
3133
3167
|
d: "M4.5 4.5H12c.83 0 1.5.67 1.5 1.5v.5m-7.5 7H2A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3134
|
-
}),
|
|
3168
|
+
}), s("path", {
|
|
3135
3169
|
stroke: "#67B686",
|
|
3136
3170
|
d: "m9.485 9.516l3.968 3.968m-3.968 0l3.968-3.968m-1.634-1.874l3.507 3.507a.496.496 0 0 1 0 .702l-3.507 3.507a.496.496 0 0 1-.701 0L7.61 11.85a.496.496 0 0 1 0-.702l3.507-3.507a.496.496 0 0 1 .701 0z"
|
|
3137
3171
|
})], -1)]]));
|
|
3138
3172
|
}
|
|
3139
|
-
}),
|
|
3173
|
+
}), Ha = {
|
|
3140
3174
|
key: 0,
|
|
3141
3175
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3142
3176
|
width: "1em",
|
|
3143
3177
|
height: "1em",
|
|
3144
3178
|
viewBox: "0 0 16 16"
|
|
3145
|
-
},
|
|
3179
|
+
}, Ua = {
|
|
3146
3180
|
key: 1,
|
|
3147
3181
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3148
3182
|
width: "1em",
|
|
3149
3183
|
height: "1em",
|
|
3150
3184
|
viewBox: "0 0 16 16"
|
|
3151
|
-
},
|
|
3185
|
+
}, Wa = /* @__PURE__ */ l({
|
|
3152
3186
|
name: "FolderIcones",
|
|
3153
3187
|
__name: "FolderIcones",
|
|
3154
3188
|
props: { expanded: {
|
|
@@ -3157,13 +3191,13 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3157
3191
|
} },
|
|
3158
3192
|
setup(e) {
|
|
3159
3193
|
let t = e;
|
|
3160
|
-
return (e, n) => t.expanded ? (
|
|
3194
|
+
return (e, n) => t.expanded ? (v(), o("svg", Ha, [...n[0] ||= [s("path", {
|
|
3161
3195
|
fill: "none",
|
|
3162
3196
|
class: "stroke-dark dark:stroke-light",
|
|
3163
3197
|
"stroke-linecap": "round",
|
|
3164
3198
|
"stroke-linejoin": "round",
|
|
3165
3199
|
d: "m1.87 8l.7-2.74a1 1 0 0 1 .96-.76h10.94a1 1 0 0 1 .97 1.24l-1.75 7a1 1 0 0 1-.97.76H2A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3166
|
-
}, null, -1)]])) : (
|
|
3200
|
+
}, null, -1)]])) : (v(), o("svg", Ua, [...n[1] ||= [s("path", {
|
|
3167
3201
|
fill: "none",
|
|
3168
3202
|
class: "stroke-dark dark:stroke-light",
|
|
3169
3203
|
"stroke-linecap": "round",
|
|
@@ -3171,19 +3205,19 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3171
3205
|
d: "M4.5 4.5H12c.83 0 1.5.67 1.5 1.5v6c0 .83-.67 1.5-1.5 1.5H2A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3172
3206
|
}, null, -1)]]));
|
|
3173
3207
|
}
|
|
3174
|
-
}),
|
|
3208
|
+
}), Ga = {
|
|
3175
3209
|
key: 0,
|
|
3176
3210
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3177
3211
|
width: "1em",
|
|
3178
3212
|
height: "1em",
|
|
3179
3213
|
viewBox: "0 0 16 16"
|
|
3180
|
-
},
|
|
3214
|
+
}, Ka = {
|
|
3181
3215
|
key: 1,
|
|
3182
3216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3183
3217
|
width: "1em",
|
|
3184
3218
|
height: "1em",
|
|
3185
3219
|
viewBox: "0 0 16 16"
|
|
3186
|
-
},
|
|
3220
|
+
}, qa = /* @__PURE__ */ l({
|
|
3187
3221
|
name: "ModleIcones",
|
|
3188
3222
|
__name: "ModuleIcones",
|
|
3189
3223
|
props: { expanded: {
|
|
@@ -3192,41 +3226,41 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3192
3226
|
} },
|
|
3193
3227
|
setup(e) {
|
|
3194
3228
|
let t = e;
|
|
3195
|
-
return (e, n) => t.expanded ? (
|
|
3229
|
+
return (e, n) => t.expanded ? (v(), o("svg", Ga, [...n[0] ||= [s("g", {
|
|
3196
3230
|
fill: "none",
|
|
3197
3231
|
"stroke-linecap": "round",
|
|
3198
3232
|
"stroke-linejoin": "round"
|
|
3199
|
-
}, [
|
|
3233
|
+
}, [s("path", {
|
|
3200
3234
|
class: "stroke-dark dark:stroke-light",
|
|
3201
3235
|
d: "m1.875 8l.686-2.743a1 1 0 0 1 .97-.757h10.938a1 1 0 0 1 .97 1.243l-.315 1.26M6 13.5H2.004A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3202
|
-
}),
|
|
3236
|
+
}), s("path", {
|
|
3203
3237
|
stroke: "#65bb87",
|
|
3204
3238
|
d: "M15.5 13.5v1.2a.8.8 0 0 1-.8.8h-4.4a.8.8 0 0 1-.8-.8v-1.2H9a1 1 0 0 1 0-2h.5v-1.2a.8.8 0 0 1 .8-.8h1.2V9a1 1 0 0 1 2 0v.5h1.2a.8.8 0 0 1 .8.8v1.2H15a1 1 0 0 0 0 2z"
|
|
3205
|
-
})], -1)]])) : (
|
|
3239
|
+
})], -1)]])) : (v(), o("svg", Ka, [...n[1] ||= [s("g", {
|
|
3206
3240
|
fill: "none",
|
|
3207
3241
|
"stroke-linecap": "round",
|
|
3208
3242
|
"stroke-linejoin": "round"
|
|
3209
|
-
}, [
|
|
3243
|
+
}, [s("path", {
|
|
3210
3244
|
class: "stroke-dark dark:stroke-light",
|
|
3211
3245
|
d: "M4.5 4.5H12A1.5 1.5 0 0 1 13.5 6v.5m-7.5 7H2A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3212
|
-
}),
|
|
3246
|
+
}), s("path", {
|
|
3213
3247
|
stroke: "#65bb87",
|
|
3214
3248
|
d: "M15.5 13.5v1.2a.8.8 0 0 1-.8.8h-4.4a.8.8 0 0 1-.8-.8v-1.2H9a1 1 0 0 1 0-2h.5v-1.2a.8.8 0 0 1 .8-.8h1.2V9a1 1 0 0 1 2 0v.5h1.2a.8.8 0 0 1 .8.8v1.2H15a1 1 0 0 0 0 2z"
|
|
3215
3249
|
})], -1)]]));
|
|
3216
3250
|
}
|
|
3217
|
-
}),
|
|
3251
|
+
}), Ja = {
|
|
3218
3252
|
key: 0,
|
|
3219
3253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3220
3254
|
width: "1em",
|
|
3221
3255
|
height: "1em",
|
|
3222
3256
|
viewBox: "0 0 16 16"
|
|
3223
|
-
},
|
|
3257
|
+
}, Ya = {
|
|
3224
3258
|
key: 1,
|
|
3225
3259
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3226
3260
|
width: "1em",
|
|
3227
3261
|
height: "1em",
|
|
3228
3262
|
viewBox: "0 0 16 16"
|
|
3229
|
-
},
|
|
3263
|
+
}, Xa = /* @__PURE__ */ l({
|
|
3230
3264
|
name: "PackagesIcones",
|
|
3231
3265
|
__name: "PackagesIcones",
|
|
3232
3266
|
props: { expanded: {
|
|
@@ -3235,41 +3269,41 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3235
3269
|
} },
|
|
3236
3270
|
setup(e) {
|
|
3237
3271
|
let t = e;
|
|
3238
|
-
return (e, n) => t.expanded ? (
|
|
3272
|
+
return (e, n) => t.expanded ? (v(), o("svg", Ja, [...n[0] ||= [s("g", {
|
|
3239
3273
|
fill: "none",
|
|
3240
3274
|
"stroke-linecap": "round",
|
|
3241
3275
|
"stroke-linejoin": "round"
|
|
3242
|
-
}, [
|
|
3276
|
+
}, [s("path", {
|
|
3243
3277
|
class: "stroke-dark dark:stroke-light",
|
|
3244
3278
|
d: "m1.875 8l.686-2.743a1 1 0 0 1 .97-.757h10.938a1 1 0 0 1 .97 1.243l-.315 1.26M6 13.5H2.004A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3245
|
-
}),
|
|
3279
|
+
}), s("path", {
|
|
3246
3280
|
stroke: "#E23730",
|
|
3247
3281
|
d: "M12 15.337v-3.919L8.5 9.214m3.5 2.204l3.5-2.204M12 7.5l3.5 1.714v4.408L12 15.5l-3.5-1.878V9.214Z"
|
|
3248
|
-
})], -1)]])) : (
|
|
3282
|
+
})], -1)]])) : (v(), o("svg", Ya, [...n[1] ||= [s("g", {
|
|
3249
3283
|
fill: "none",
|
|
3250
3284
|
"stroke-linecap": "round",
|
|
3251
3285
|
"stroke-linejoin": "round"
|
|
3252
|
-
}, [
|
|
3286
|
+
}, [s("path", {
|
|
3253
3287
|
class: "stroke-dark dark:stroke-light",
|
|
3254
3288
|
d: "M4.5 4.5H12A1.5 1.5 0 0 1 13.5 6v.5m-7.5 7H2A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3255
|
-
}),
|
|
3289
|
+
}), s("path", {
|
|
3256
3290
|
stroke: "#E23730",
|
|
3257
3291
|
d: "M12 15.337v-3.919L8.5 9.214m3.5 2.204l3.5-2.204M12 7.5l3.5 1.714v4.408L12 15.5l-3.5-1.878V9.214Z"
|
|
3258
3292
|
})], -1)]]));
|
|
3259
3293
|
}
|
|
3260
|
-
}),
|
|
3294
|
+
}), Za = {
|
|
3261
3295
|
key: 0,
|
|
3262
3296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3263
3297
|
width: "1em",
|
|
3264
3298
|
height: "1em",
|
|
3265
3299
|
viewBox: "0 0 16 16"
|
|
3266
|
-
},
|
|
3300
|
+
}, Qa = {
|
|
3267
3301
|
key: 1,
|
|
3268
3302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3269
3303
|
width: "1em",
|
|
3270
3304
|
height: "1em",
|
|
3271
3305
|
viewBox: "0 0 16 16"
|
|
3272
|
-
},
|
|
3306
|
+
}, $a = /* @__PURE__ */ l({
|
|
3273
3307
|
name: "SrcIcones",
|
|
3274
3308
|
__name: "SrcIcones",
|
|
3275
3309
|
props: { expanded: {
|
|
@@ -3278,41 +3312,41 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3278
3312
|
} },
|
|
3279
3313
|
setup(e) {
|
|
3280
3314
|
let t = e;
|
|
3281
|
-
return (e, n) => t.expanded ? (
|
|
3315
|
+
return (e, n) => t.expanded ? (v(), o("svg", Za, [...n[0] ||= [s("g", {
|
|
3282
3316
|
fill: "none",
|
|
3283
3317
|
"stroke-linecap": "round",
|
|
3284
3318
|
"stroke-linejoin": "round"
|
|
3285
|
-
}, [
|
|
3319
|
+
}, [s("path", {
|
|
3286
3320
|
class: "stroke-dark dark:stroke-light",
|
|
3287
3321
|
d: "m1.875 8l.686-2.743a1 1 0 0 1 .97-.757h10.938a1 1 0 0 1 .97 1.243l-.315 1.26M6 13.5H2.004A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3288
|
-
}),
|
|
3322
|
+
}), s("path", {
|
|
3289
3323
|
stroke: "#65bb87",
|
|
3290
3324
|
d: "m10.5 8.5l-3 3.5l3 3.5m2-7l3 3.5l-3 3.5"
|
|
3291
|
-
})], -1)]])) : (
|
|
3325
|
+
})], -1)]])) : (v(), o("svg", Qa, [...n[1] ||= [s("g", {
|
|
3292
3326
|
fill: "none",
|
|
3293
3327
|
"stroke-linecap": "round",
|
|
3294
3328
|
"stroke-linejoin": "round"
|
|
3295
|
-
}, [
|
|
3329
|
+
}, [s("path", {
|
|
3296
3330
|
class: "stroke-dark dark:stroke-light",
|
|
3297
3331
|
d: "M4.5 4.5H12A1.5 1.5 0 0 1 13.5 6v.5m-7.5 7H2A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3298
|
-
}),
|
|
3332
|
+
}), s("path", {
|
|
3299
3333
|
stroke: "#65bb87",
|
|
3300
3334
|
d: "m10.5 8.5l-3 3.5l3 3.5m2-7l3 3.5l-3 3.5"
|
|
3301
3335
|
})], -1)]]));
|
|
3302
3336
|
}
|
|
3303
|
-
}),
|
|
3337
|
+
}), eo = {
|
|
3304
3338
|
key: 0,
|
|
3305
3339
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3306
3340
|
width: "1em",
|
|
3307
3341
|
height: "1em",
|
|
3308
3342
|
viewBox: "0 0 16 16"
|
|
3309
|
-
},
|
|
3343
|
+
}, to = {
|
|
3310
3344
|
key: 1,
|
|
3311
3345
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3312
3346
|
width: "1em",
|
|
3313
3347
|
height: "1em",
|
|
3314
3348
|
viewBox: "0 0 16 16"
|
|
3315
|
-
},
|
|
3349
|
+
}, no = /* @__PURE__ */ l({
|
|
3316
3350
|
name: "ViewIcones",
|
|
3317
3351
|
__name: "ViewIcones",
|
|
3318
3352
|
props: { expanded: {
|
|
@@ -3321,48 +3355,48 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3321
3355
|
} },
|
|
3322
3356
|
setup(e) {
|
|
3323
3357
|
let t = e;
|
|
3324
|
-
return (e, n) => t.expanded ? (
|
|
3358
|
+
return (e, n) => t.expanded ? (v(), o("svg", eo, [...n[0] ||= [s("g", {
|
|
3325
3359
|
fill: "none",
|
|
3326
3360
|
"stroke-linecap": "round",
|
|
3327
3361
|
"stroke-linejoin": "round"
|
|
3328
|
-
}, [
|
|
3362
|
+
}, [s("path", {
|
|
3329
3363
|
class: "stroke-dark dark:stroke-light",
|
|
3330
3364
|
d: "m1.875 8l.686-2.743a1 1 0 0 1 .97-.757h10.938a1 1 0 0 1 .97 1.243l-.315 1.26M6 13.5H2.004A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3331
|
-
}),
|
|
3365
|
+
}), s("path", {
|
|
3332
3366
|
stroke: "#E23730",
|
|
3333
3367
|
d: "M14.692 8.5H9.308a.31.31 0 0 0-.307.336l.47 5.241c.01.128.1.235.223.27l2.303 1.153l2.308-1.153a.31.31 0 0 0 .225-.27L15 8.836a.31.31 0 0 0-.307-.336"
|
|
3334
|
-
})], -1)]])) : (
|
|
3368
|
+
})], -1)]])) : (v(), o("svg", to, [...n[1] ||= [s("g", {
|
|
3335
3369
|
fill: "none",
|
|
3336
3370
|
"stroke-linecap": "round",
|
|
3337
3371
|
"stroke-linejoin": "round"
|
|
3338
|
-
}, [
|
|
3372
|
+
}, [s("path", {
|
|
3339
3373
|
class: "stroke-dark dark:stroke-light",
|
|
3340
3374
|
d: "M4.5 4.5H12A1.5 1.5 0 0 1 13.5 6v.5m-7.5 7H2A1.5 1.5 0 0 1 .5 12V3.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1"
|
|
3341
|
-
}),
|
|
3375
|
+
}), s("path", {
|
|
3342
3376
|
stroke: "#E23730",
|
|
3343
3377
|
d: "M14.692 8.5H9.308a.31.31 0 0 0-.307.336l.47 5.241c.01.128.1.235.223.27l2.303 1.153l2.308-1.153a.31.31 0 0 0 .225-.27L15 8.836a.31.31 0 0 0-.307-.336"
|
|
3344
3378
|
})], -1)]]));
|
|
3345
3379
|
}
|
|
3346
|
-
}),
|
|
3380
|
+
}), ro = {
|
|
3347
3381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3348
3382
|
width: "1em",
|
|
3349
3383
|
height: "1em",
|
|
3350
3384
|
viewBox: "0 0 16 16"
|
|
3351
|
-
},
|
|
3385
|
+
}, io = /* @__PURE__ */ l({
|
|
3352
3386
|
name: "VueIcones",
|
|
3353
3387
|
__name: "VueIcones",
|
|
3354
3388
|
setup(e) {
|
|
3355
|
-
return (e, t) => (
|
|
3389
|
+
return (e, t) => (v(), o("svg", ro, [...t[0] ||= [s("g", {
|
|
3356
3390
|
fill: "none",
|
|
3357
3391
|
stroke: "#65bb87",
|
|
3358
3392
|
"stroke-linecap": "round",
|
|
3359
3393
|
"stroke-linejoin": "round"
|
|
3360
|
-
}, [
|
|
3394
|
+
}, [s("path", { d: "M1 1.5h5.44L8 4.56L9.56 1.5H15l-6.99 13z" }), s("path", { d: "M12.05 1.73L8 9.28L3.95 1.73" })], -1)]]));
|
|
3361
3395
|
}
|
|
3362
|
-
}),
|
|
3396
|
+
}), ao = { class: "mt-0" }, oo = { class: "w-152 mb-2" }, so = { class: "inline-flex items-center text-inherit not-italic leading-[0] text-center normal-case [vertical-align:-0.125em] [text-rendering:optimizeLegibility] svg:size-4" }, co = {
|
|
3363
3397
|
key: 1,
|
|
3364
3398
|
class: "flex items-center justify-center h-[220px]"
|
|
3365
|
-
},
|
|
3399
|
+
}, lo = /* @__PURE__ */ l({
|
|
3366
3400
|
name: "ComponentSelect",
|
|
3367
3401
|
__name: "ComponentSelect",
|
|
3368
3402
|
props: {
|
|
@@ -3373,18 +3407,18 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3373
3407
|
},
|
|
3374
3408
|
emits: ["update:modelValue", "update:scope"],
|
|
3375
3409
|
setup(e) {
|
|
3376
|
-
let l =
|
|
3377
|
-
id:
|
|
3410
|
+
let l = ie.PRESENTED_IMAGE_SIMPLE, h = t(), g = S(e, "modelValue"), _ = S(e, "scope"), b = C("searchInputRef"), [te, ce] = Pa(ja({
|
|
3411
|
+
id: ee(),
|
|
3378
3412
|
initialFocusEl: () => b.value
|
|
3379
|
-
})),
|
|
3380
|
-
function
|
|
3413
|
+
})), E = r(() => Aa(te.value, ce, Ra)), D = y(!1), O = y(""), le = r(() => g.value ? [`${_.value ? `module:${_.value}` : "local"}/${g.value}`] : []), k = y([]);
|
|
3414
|
+
function ue(e) {
|
|
3381
3415
|
return !e.includes("/");
|
|
3382
3416
|
}
|
|
3383
|
-
function
|
|
3417
|
+
function de(e) {
|
|
3384
3418
|
let t = e.indexOf("/");
|
|
3385
3419
|
return t === -1 ? e : e.slice(0, t);
|
|
3386
3420
|
}
|
|
3387
|
-
function
|
|
3421
|
+
function fe(e) {
|
|
3388
3422
|
let t = e.split("/"), n = [], r = "";
|
|
3389
3423
|
for (let e = 0; e < Math.max(0, t.length - 1); e++) {
|
|
3390
3424
|
let i = t[e];
|
|
@@ -3392,80 +3426,80 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3392
3426
|
}
|
|
3393
3427
|
return n;
|
|
3394
3428
|
}
|
|
3395
|
-
function
|
|
3429
|
+
function A(e, t) {
|
|
3396
3430
|
let n = e || [], r = t?.node?.key, i = !!t?.expanded, a;
|
|
3397
|
-
a = r &&
|
|
3431
|
+
a = r && ue(r) ? i ? r : void 0 : r ? de(r) : n.find(ue), k.value = n.filter((e) => !ue(String(e)) || String(e) === a);
|
|
3398
3432
|
}
|
|
3399
|
-
function
|
|
3400
|
-
let e =
|
|
3401
|
-
e && (
|
|
3433
|
+
function j() {
|
|
3434
|
+
let e = le.value[0];
|
|
3435
|
+
e && (k.value = fe(e));
|
|
3402
3436
|
}
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
}, { immediate: !0 }),
|
|
3406
|
-
e &&
|
|
3407
|
-
}),
|
|
3408
|
-
e &&
|
|
3437
|
+
w(le, () => {
|
|
3438
|
+
j();
|
|
3439
|
+
}, { immediate: !0 }), w(D, (e) => {
|
|
3440
|
+
e && j();
|
|
3441
|
+
}), w(D, (e) => {
|
|
3442
|
+
e && j();
|
|
3409
3443
|
});
|
|
3410
|
-
let
|
|
3411
|
-
let e =
|
|
3444
|
+
let M = r(() => {
|
|
3445
|
+
let e = O.value.trim();
|
|
3412
3446
|
return e ? h.filterRouteTree(e) : h.getRouteTreeData();
|
|
3413
3447
|
});
|
|
3414
|
-
function
|
|
3448
|
+
function pe(e) {
|
|
3415
3449
|
let t = [], n = (e) => {
|
|
3416
3450
|
for (let r of e || []) Array.isArray(r?.children) && r.children.length > 0 && (t.push(String(r.key)), n(r.children));
|
|
3417
3451
|
};
|
|
3418
3452
|
return n(e), t;
|
|
3419
3453
|
}
|
|
3420
|
-
|
|
3454
|
+
w(O, (e) => {
|
|
3421
3455
|
if (String(e || "").trim().length > 0) {
|
|
3422
|
-
let e =
|
|
3423
|
-
|
|
3424
|
-
} else
|
|
3456
|
+
let e = M.value;
|
|
3457
|
+
k.value = pe(e);
|
|
3458
|
+
} else j();
|
|
3425
3459
|
});
|
|
3426
|
-
function
|
|
3460
|
+
function me(e, t) {
|
|
3427
3461
|
let n = t?.node, r = n?.dataRef ?? n;
|
|
3428
|
-
r?.isLeaf && (g.value = r.value || "", _.value = r.scope || "",
|
|
3462
|
+
r?.isLeaf && (g.value = r.value || "", _.value = r.scope || "", O.value = "", D.value = !1);
|
|
3429
3463
|
}
|
|
3430
3464
|
return (e, t) => {
|
|
3431
|
-
let r =
|
|
3432
|
-
return
|
|
3465
|
+
let r = se, h = oe, y = T, b = ae;
|
|
3466
|
+
return v(), o("div", ao, [s("div", m(u(x(E).getTriggerProps())), [c(r, {
|
|
3433
3467
|
value: g.value,
|
|
3434
3468
|
"onUpdate:value": t[0] ||= (e) => g.value = e,
|
|
3435
3469
|
"addon-before": _.value || "本地",
|
|
3436
3470
|
placeholder: "请输入或选择组件路径(views下的路径)"
|
|
3437
|
-
}, null, 8, ["value", "addon-before"])], 16), (
|
|
3438
|
-
default:
|
|
3471
|
+
}, null, 8, ["value", "addon-before"])], 16), (v(), i(n, { to: "body" }, [x(E).open ? (v(), o("div", f({ key: 0 }, x(E).getPositionerProps(), { class: "z-1050" }), [s("div", f(x(E).getContentProps(), { class: "z-1050 w-162 rounded-md border border-solid p-4 border-[--g-border-color] shadow-md outline-none bg-#ffffff dark:bg-#141414 text-dark dark:text-light data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95" }), [s("div", oo, [c(h, null, {
|
|
3472
|
+
default: ne(() => [c(r, {
|
|
3439
3473
|
ref: "searchInputRef",
|
|
3440
|
-
value:
|
|
3441
|
-
"onUpdate:value": t[1] ||= (e) =>
|
|
3474
|
+
value: x(O),
|
|
3475
|
+
"onUpdate:value": t[1] ||= (e) => d(O) ? O.value = e : null,
|
|
3442
3476
|
"allow-clear": "",
|
|
3443
3477
|
size: "small",
|
|
3444
3478
|
placeholder: "搜索组件或路径"
|
|
3445
3479
|
}, null, 8, ["value"])]),
|
|
3446
3480
|
_: 1
|
|
3447
|
-
})]),
|
|
3481
|
+
})]), x(M) && x(M).length ? (v(), i(y, {
|
|
3448
3482
|
key: 0,
|
|
3449
|
-
"expanded-keys":
|
|
3450
|
-
"onUpdate:expandedKeys": t[2] ||= (e) =>
|
|
3483
|
+
"expanded-keys": x(k),
|
|
3484
|
+
"onUpdate:expandedKeys": t[2] ||= (e) => d(k) ? k.value = e : null,
|
|
3451
3485
|
class: "w-152 h-100 overflow-y-auto directory-tree-root",
|
|
3452
|
-
"selected-keys":
|
|
3453
|
-
"tree-data":
|
|
3486
|
+
"selected-keys": x(le),
|
|
3487
|
+
"tree-data": x(M),
|
|
3454
3488
|
"show-icon": !0,
|
|
3455
3489
|
"show-line": !0,
|
|
3456
3490
|
virtual: !0,
|
|
3457
3491
|
"expand-action": "click",
|
|
3458
|
-
onExpand:
|
|
3459
|
-
onSelect:
|
|
3492
|
+
onExpand: A,
|
|
3493
|
+
onSelect: me
|
|
3460
3494
|
}, {
|
|
3461
|
-
switcherIcon:
|
|
3462
|
-
icon:
|
|
3495
|
+
switcherIcon: ne(({ switcherCls: e }) => [c(x(re), { class: p(e) }, null, 8, ["class"])]),
|
|
3496
|
+
icon: ne(({ expanded: e, dataRef: t }) => [s("span", so, [t?.root && !t?.module ? (v(), i(Xa, {
|
|
3463
3497
|
key: 0,
|
|
3464
3498
|
expanded: e
|
|
3465
|
-
}, null, 8, ["expanded"])) : t?.root && t?.module ? (
|
|
3499
|
+
}, null, 8, ["expanded"])) : t?.root && t?.module ? (v(), i(qa, {
|
|
3466
3500
|
key: 1,
|
|
3467
3501
|
expanded: e
|
|
3468
|
-
}, null, 8, ["expanded"])) : t?.isLeaf ? (
|
|
3502
|
+
}, null, 8, ["expanded"])) : t?.isLeaf ? (v(), i(io, { key: 2 })) : ["components", "component"].includes(String(t?.title).toLowerCase()) ? (v(), i(Va, {
|
|
3469
3503
|
key: 3,
|
|
3470
3504
|
expanded: e
|
|
3471
3505
|
}, null, 8, ["expanded"])) : [
|
|
@@ -3473,13 +3507,13 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3473
3507
|
"view",
|
|
3474
3508
|
"pages",
|
|
3475
3509
|
"page"
|
|
3476
|
-
].includes(String(t?.title).toLowerCase()) ? (
|
|
3510
|
+
].includes(String(t?.title).toLowerCase()) ? (v(), i(no, {
|
|
3477
3511
|
key: 4,
|
|
3478
3512
|
expanded: e
|
|
3479
|
-
}, null, 8, ["expanded"])) : ["src"].includes(String(t?.title).toLowerCase()) ? (
|
|
3513
|
+
}, null, 8, ["expanded"])) : ["src"].includes(String(t?.title).toLowerCase()) ? (v(), i($a, {
|
|
3480
3514
|
key: 5,
|
|
3481
3515
|
expanded: e
|
|
3482
|
-
}, null, 8, ["expanded"])) : (
|
|
3516
|
+
}, null, 8, ["expanded"])) : (v(), i(Wa, {
|
|
3483
3517
|
key: 6,
|
|
3484
3518
|
expanded: e
|
|
3485
3519
|
}, null, 8, ["expanded"]))])]),
|
|
@@ -3488,11 +3522,12 @@ var normalizeProps$1 = createNormalizer((e) => {
|
|
|
3488
3522
|
"expanded-keys",
|
|
3489
3523
|
"selected-keys",
|
|
3490
3524
|
"tree-data"
|
|
3491
|
-
])) : (
|
|
3492
|
-
image:
|
|
3525
|
+
])) : (v(), o("div", co, [c(b, {
|
|
3526
|
+
image: x(l),
|
|
3493
3527
|
description: "没有找到匹配的组件"
|
|
3494
|
-
}, null, 8, ["image"])]))], 16)], 16)) :
|
|
3528
|
+
}, null, 8, ["image"])]))], 16)], 16)) : a("", !0)]))]);
|
|
3495
3529
|
};
|
|
3496
3530
|
}
|
|
3497
|
-
}),
|
|
3498
|
-
|
|
3531
|
+
}), uo = /* @__PURE__ */ e({ default: () => fo }), fo = lo;
|
|
3532
|
+
//#endregion
|
|
3533
|
+
export { uo as n, fo as t };
|