ik-next-ui 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/Demo/ik.index.es.js +8 -0
  2. package/dist/IkApprovalProcess/ik-next-ui.css +1 -0
  3. package/dist/IkApprovalProcess/ik.index.es.js +2610 -0
  4. package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -0
  5. package/dist/IkApprovalProcessDetail/ik.index.es.js +17033 -0
  6. package/dist/IkAutoCard/ik-next-ui.css +1 -0
  7. package/dist/IkAutoCard/ik.index.es.js +51 -0
  8. package/dist/IkBaseDialog/ik-next-ui.css +1 -0
  9. package/dist/IkBaseDialog/ik.index.es.js +1954 -0
  10. package/dist/IkBottomOperate/ik-next-ui.css +1 -0
  11. package/dist/IkBottomOperate/ik.index.es.js +241 -0
  12. package/dist/IkBtnContent/ik-next-ui.css +1 -0
  13. package/dist/IkBtnContent/ik.index.es.js +80 -0
  14. package/dist/IkCollapseCard/ik-next-ui.css +1 -0
  15. package/dist/IkCollapseCard/ik.index.es.js +1924 -0
  16. package/dist/IkCurrencyInput/ik.index.es.js +60 -0
  17. package/dist/IkDescription/ik-next-ui.css +1 -0
  18. package/dist/IkDescription/ik.index.es.js +16544 -0
  19. package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -0
  20. package/dist/IkDetailPreviewFiles/ik.index.es.js +16540 -0
  21. package/dist/IkDragList/ik-next-ui.css +1 -0
  22. package/dist/IkDragList/ik.index.es.js +445 -0
  23. package/dist/IkEmpty/ik-next-ui.css +1 -0
  24. package/dist/IkEmpty/ik.index.es.js +44 -0
  25. package/dist/IkFileIcon/ik.index.es.js +619 -0
  26. package/dist/IkHorizontalStepBar/ik-next-ui.css +1 -0
  27. package/dist/IkHorizontalStepBar/ik.index.es.js +279 -0
  28. package/dist/IkIconPicker/ik-next-ui.css +1 -0
  29. package/dist/IkIconPicker/ik.index.es.js +2060 -0
  30. package/dist/IkImageUploadEditor/ik-next-ui.css +9 -0
  31. package/dist/IkImageUploadEditor/ik.index.es.js +9489 -0
  32. package/dist/IkImageViewer/ik.index.es.js +552 -0
  33. package/dist/IkMonacoEditor/ik-next-ui.css +1 -0
  34. package/dist/IkMonacoEditor/ik.index.es.js +2566 -0
  35. package/dist/IkOnlyOffice/ik.index.es.js +1612 -0
  36. package/dist/IkPage/ik.index.es.js +1 -0
  37. package/dist/IkPickerUser/ik-next-ui.css +1 -0
  38. package/dist/IkPickerUser/ik.index.es.js +2077 -0
  39. package/dist/IkPlayer/ik-next-ui.css +1 -0
  40. package/dist/IkPlayer/ik.index.es.js +11071 -0
  41. package/dist/IkPreviewFile/ik-next-ui.css +1 -0
  42. package/dist/IkPreviewFile/ik.index.es.js +16385 -0
  43. package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -0
  44. package/dist/IkPreviewFileDialog/ik.index.es.js +15486 -0
  45. package/dist/IkRadioGroup/ik-next-ui.css +1 -0
  46. package/dist/IkRadioGroup/ik.index.es.js +1937 -0
  47. package/dist/IkSelectTag/ik-next-ui.css +1 -0
  48. package/dist/IkSelectTag/ik.index.es.js +359 -0
  49. package/dist/IkSideText/ik-next-ui.css +1 -0
  50. package/dist/IkSideText/ik.index.es.js +2084 -0
  51. package/dist/IkStatu/ik-next-ui.css +1 -0
  52. package/dist/IkStatu/ik.index.es.js +131 -0
  53. package/dist/IkStatuOver/ik-next-ui.css +1 -0
  54. package/dist/IkStatuOver/ik.index.es.js +284 -0
  55. package/dist/IkSvgIcon/ik-next-ui.css +1 -0
  56. package/dist/IkSvgIcon/ik.index.es.js +1845 -0
  57. package/dist/IkTemplateOfficeConfig/ik-next-ui.css +1 -0
  58. package/dist/IkTemplateOfficeConfig/ik.index.es.js +2027 -0
  59. package/dist/IkTinymce/ik-next-ui.css +1 -0
  60. package/dist/IkTinymce/ik.index.es.js +50349 -0
  61. package/dist/IkTooltip/ik.index.es.js +48 -0
  62. package/dist/IkTree/ik-next-ui.css +1 -0
  63. package/dist/IkTree/ik.index.es.js +136 -0
  64. package/dist/IkUploadFile/ik-next-ui.css +1 -0
  65. package/dist/IkUploadFile/ik.index.es.js +17251 -0
  66. package/dist/IkUploadImage/ik-next-ui.css +1 -0
  67. package/dist/IkUploadImage/ik.index.es.js +2946 -0
  68. package/dist/IkVerticalStepBar/ik-next-ui.css +1 -0
  69. package/dist/IkVerticalStepBar/ik.index.es.js +1987 -0
  70. package/dist/Provider/ik.index.es.js +42 -0
  71. package/dist/ik-next-ui.css +9 -0
  72. package/dist/index.es.js +84696 -0
  73. package/dist/index.umd.js +371 -0
  74. package/dist/resolver.cjs +1 -0
  75. package/dist/resolver.js +63 -0
  76. package/dist/src/components/Demo/index.d.ts +4 -0
  77. package/dist/src/components/IkApprovalProcess/index.d.ts +100 -0
  78. package/dist/src/components/IkApprovalProcess/src/IkApprovalProcess.vue.d.ts +100 -0
  79. package/dist/src/components/IkApprovalProcessDetail/index.d.ts +108 -0
  80. package/dist/src/components/IkApprovalProcessDetail/src/IkApprovalProcessDetail.vue.d.ts +109 -0
  81. package/dist/src/components/IkAutoCard/index.d.ts +60 -0
  82. package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +43 -0
  83. package/dist/src/components/IkBaseDialog/index.d.ts +141 -0
  84. package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +23 -0
  85. package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +87 -0
  86. package/dist/src/components/IkBottomOperate/index.d.ts +155 -0
  87. package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +84 -0
  88. package/dist/src/components/IkCollapseCard/index.d.ts +59 -0
  89. package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +36 -0
  90. package/dist/src/components/IkCurrencyInput/index.d.ts +25 -0
  91. package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +25 -0
  92. package/dist/src/components/IkDescription/index.d.ts +235 -0
  93. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +146 -0
  94. package/dist/src/components/IkDetailPreviewFiles/index.d.ts +52 -0
  95. package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +53 -0
  96. package/dist/src/components/IkDragList/index.d.ts +509 -0
  97. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +307 -0
  98. package/dist/src/components/IkDragList/src/default-props.d.ts +150 -0
  99. package/dist/src/components/IkEmpty/index.d.ts +69 -0
  100. package/dist/src/components/IkEmpty/src/index.vue.d.ts +41 -0
  101. package/dist/src/components/IkFileIcon/index.d.ts +40 -0
  102. package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +42 -0
  103. package/dist/src/components/IkHorizontalStepBar/index.d.ts +224 -0
  104. package/dist/src/components/IkHorizontalStepBar/src/IkHorizontalStepBar.vue.d.ts +137 -0
  105. package/dist/src/components/IkIconPicker/index.d.ts +83 -0
  106. package/dist/src/components/IkIconPicker/src/index.vue.d.ts +83 -0
  107. package/dist/src/components/IkImageUploadEditor/index.d.ts +231 -0
  108. package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +232 -0
  109. package/dist/src/components/IkImageViewer/index.d.ts +6 -0
  110. package/dist/src/components/IkImageViewer/src/IkImageViewer.vue.d.ts +11 -0
  111. package/dist/src/components/IkImageViewer/src/image-viewer.d.ts +87 -0
  112. package/dist/src/components/IkMonacoEditor/index.d.ts +229 -0
  113. package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +10 -0
  114. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +232 -0
  115. package/dist/src/components/IkOnlyOffice/index.d.ts +32 -0
  116. package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +32 -0
  117. package/dist/src/components/IkPage/index.d.ts +0 -0
  118. package/dist/src/components/IkPickerUser/index.d.ts +373 -0
  119. package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +41 -0
  120. package/dist/src/components/IkPickerUser/src/default.d.ts +156 -0
  121. package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +112 -0
  122. package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +110 -0
  123. package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +110 -0
  124. package/dist/src/components/IkPickerUser/src/list/props.d.ts +49 -0
  125. package/dist/src/components/IkPickerUser/src/list/utils.d.ts +5 -0
  126. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +375 -0
  127. package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +2 -0
  128. package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +2 -0
  129. package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +2 -0
  130. package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +2 -0
  131. package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +2 -0
  132. package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +15 -0
  133. package/dist/src/components/IkPickerUser/types.d.ts +28 -0
  134. package/dist/src/components/IkPlayer/index.d.ts +82 -0
  135. package/dist/src/components/IkPlayer/src/Player.vue.d.ts +48 -0
  136. package/dist/src/components/IkPreviewFile/index.d.ts +382 -0
  137. package/dist/src/components/IkPreviewFile/src/IkPreviewFile.vue.d.ts +231 -0
  138. package/dist/src/components/IkPreviewFileDialog/index.d.ts +80 -0
  139. package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +82 -0
  140. package/dist/src/components/IkRadioGroup/index.d.ts +30 -0
  141. package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +32 -0
  142. package/dist/src/components/IkSelectTag/index.d.ts +85 -0
  143. package/dist/src/components/IkSelectTag/src/index.vue.d.ts +49 -0
  144. package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +32 -0
  145. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +115 -0
  146. package/dist/src/components/IkSideText/index.d.ts +113 -0
  147. package/dist/src/components/IkSideText/useLinear.d.ts +3 -0
  148. package/dist/src/components/IkStatu/index.d.ts +117 -0
  149. package/dist/src/components/IkStatu/src/index.vue.d.ts +119 -0
  150. package/dist/src/components/IkStatuOver/index.d.ts +36 -0
  151. package/dist/src/components/IkStatuOver/src/index.vue.d.ts +52 -0
  152. package/dist/src/components/IkSvgIcon/index.d.ts +135 -0
  153. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +146 -0
  154. package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +130 -0
  155. package/dist/src/components/IkTemplateOfficeConfig/src/IkTemplateOfficeConfig.vue.d.ts +130 -0
  156. package/dist/src/components/IkTemplateOfficeConfig/src/templateOfficeData.vue.d.ts +57 -0
  157. package/dist/src/components/IkTinymce/index.d.ts +215 -0
  158. package/dist/src/components/IkTinymce/src/index.vue.d.ts +216 -0
  159. package/dist/src/components/IkTooltip/index.d.ts +84 -0
  160. package/dist/src/components/IkTooltip/src/index.vue.d.ts +52 -0
  161. package/dist/src/components/IkTree/IkTree.vue.d.ts +1597 -0
  162. package/dist/src/components/IkTree/index.d.ts +4693 -0
  163. package/dist/src/components/IkUploadFile/index.d.ts +586 -0
  164. package/dist/src/components/IkUploadFile/src/components/ErrorFileItem.vue.d.ts +27 -0
  165. package/dist/src/components/IkUploadFile/src/components/FileItemCard.vue.d.ts +85 -0
  166. package/dist/src/components/IkUploadFile/src/components/FileItemDefault.vue.d.ts +103 -0
  167. package/dist/src/components/IkUploadFile/src/components/FileItemSimple.vue.d.ts +68 -0
  168. package/dist/src/components/IkUploadFile/src/components/FileItemSimpleIcon.vue.d.ts +112 -0
  169. package/dist/src/components/IkUploadFile/src/components/UploadTriggerButton.vue.d.ts +59 -0
  170. package/dist/src/components/IkUploadFile/src/components/UploadTriggerCard.vue.d.ts +90 -0
  171. package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +35 -0
  172. package/dist/src/components/IkUploadFile/src/hooks/useFileOperations.d.ts +32 -0
  173. package/dist/src/components/IkUploadFile/src/hooks/useUploadFile.d.ts +35 -0
  174. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +349 -0
  175. package/dist/src/components/IkUploadFile/src/types/index.d.ts +133 -0
  176. package/dist/src/components/IkUploadFile/src/utils.d.ts +0 -0
  177. package/dist/src/components/IkUploadImage/index.d.ts +287 -0
  178. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +171 -0
  179. package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +2 -0
  180. package/dist/src/components/IkVerticalStepBar/index.d.ts +79 -0
  181. package/dist/src/components/IkVerticalStepBar/src/IkVerticalStepBar.vue.d.ts +81 -0
  182. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +59 -0
  183. package/dist/src/components/Provider/index.d.ts +99 -0
  184. package/dist/src/components/index.d.ts +37 -0
  185. package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
  186. package/dist/src/components-dev/IkUmoEditor/src/props.d.ts +138 -0
  187. package/dist/src/components-dev/IkUmoEditor/src/types.d.ts +78 -0
  188. package/dist/src/components-dev/IkUmoViewer/index.d.ts +168 -0
  189. package/dist/src/components-dev/IkUmoViewer/src/props.d.ts +85 -0
  190. package/dist/src/components-dev/IkUmoViewer/src/types.d.ts +13 -0
  191. package/dist/src/enum/search.d.ts +88 -0
  192. package/dist/src/iking-ui/component.d.ts +4 -0
  193. package/dist/src/iking-ui/defaults.d.ts +4 -0
  194. package/dist/src/iking-ui/index.d.ts +6 -0
  195. package/dist/src/iking-ui/make-installer.d.ts +5 -0
  196. package/dist/src/iking-ui/resolver.d.ts +16 -0
  197. package/dist/src/utils/approval.d.ts +10 -0
  198. package/dist/src/utils/file.d.ts +27 -0
  199. package/dist/src/utils/index.d.ts +12 -0
  200. package/dist/src/utils/install.d.ts +6 -0
  201. package/dist/src/utils/math.d.ts +3 -0
  202. package/dist/src/utils/object.d.ts +4 -0
  203. package/dist/src/utils/theme.d.ts +1 -0
  204. package/dist/src/utils/typescript.d.ts +6 -0
  205. package/dist/src/utils/use-provider.d.ts +15 -0
  206. package/package.json +236 -0
@@ -0,0 +1,1924 @@
1
+ import { defineComponent as Y, h as se, toValue as I, watch as F, nextTick as Se, isRef as dt, toRef as ht, readonly as pt, customRef as gt, ref as _e, getCurrentScope as mt, onScopeDispose as vt, shallowRef as A, computed as E, unref as O, reactive as yt, resolveComponent as le, openBlock as x, createElementBlock as P, normalizeStyle as N, normalizeClass as V, createBlock as L, withCtx as M, createElementVNode as C, createCommentVNode as B, Fragment as wt, useModel as bt, renderSlot as ee, toDisplayString as Ce, createTextVNode as kt, createVNode as xt, mergeModels as It } from "vue";
2
+ const He = (e, n) => (e.install = (t) => {
3
+ for (const o of [e, ...Object.values({})])
4
+ t.component(o.name, o);
5
+ }, e);
6
+ function qe(...e) {
7
+ const n = [];
8
+ for (const t of e)
9
+ if (t) {
10
+ if (typeof t == "string")
11
+ n.push(t);
12
+ else if (Array.isArray(t)) {
13
+ const o = qe(...t);
14
+ o && n.push(o);
15
+ } else if (typeof t == "object")
16
+ for (const [o, i] of Object.entries(t))
17
+ i && n.push(o);
18
+ }
19
+ return n.join(" ");
20
+ }
21
+ const Qe = (e, n) => {
22
+ const t = e.__vccOpts || e;
23
+ for (const [o, i] of n)
24
+ t[o] = i;
25
+ return t;
26
+ }, Ge = /^[a-z0-9]+(-[a-z0-9]+)*$/, J = (e, n, t, o = "") => {
27
+ const i = e.split(":");
28
+ if (e.slice(0, 1) === "@") {
29
+ if (i.length < 2 || i.length > 3)
30
+ return null;
31
+ o = i.shift().slice(1);
32
+ }
33
+ if (i.length > 3 || !i.length)
34
+ return null;
35
+ if (i.length > 1) {
36
+ const l = i.pop(), c = i.pop(), a = {
37
+ // Allow provider without '@': "provider:prefix:name"
38
+ provider: i.length > 0 ? i[0] : o,
39
+ prefix: c,
40
+ name: l
41
+ };
42
+ return n && !q(a) ? null : a;
43
+ }
44
+ const r = i[0], s = r.split("-");
45
+ if (s.length > 1) {
46
+ const l = {
47
+ provider: o,
48
+ prefix: s.shift(),
49
+ name: s.join("-")
50
+ };
51
+ return n && !q(l) ? null : l;
52
+ }
53
+ if (t && o === "") {
54
+ const l = {
55
+ provider: o,
56
+ prefix: "",
57
+ name: r
58
+ };
59
+ return n && !q(l, t) ? null : l;
60
+ }
61
+ return null;
62
+ }, q = (e, n) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
63
+ // Check name: cannot be empty
64
+ ((n && e.prefix === "" || e.prefix) && e.name) : !1, Ke = Object.freeze(
65
+ {
66
+ left: 0,
67
+ top: 0,
68
+ width: 16,
69
+ height: 16
70
+ }
71
+ ), K = Object.freeze({
72
+ rotate: 0,
73
+ vFlip: !1,
74
+ hFlip: !1
75
+ }), X = Object.freeze({
76
+ ...Ke,
77
+ ...K
78
+ }), ce = Object.freeze({
79
+ ...X,
80
+ body: "",
81
+ hidden: !1
82
+ });
83
+ function St(e, n) {
84
+ const t = {};
85
+ !e.hFlip != !n.hFlip && (t.hFlip = !0), !e.vFlip != !n.vFlip && (t.vFlip = !0);
86
+ const o = ((e.rotate || 0) + (n.rotate || 0)) % 4;
87
+ return o && (t.rotate = o), t;
88
+ }
89
+ function Te(e, n) {
90
+ const t = St(e, n);
91
+ for (const o in ce)
92
+ o in K ? o in e && !(o in t) && (t[o] = K[o]) : o in n ? t[o] = n[o] : o in e && (t[o] = e[o]);
93
+ return t;
94
+ }
95
+ function Ct(e, n) {
96
+ const t = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
97
+ function r(s) {
98
+ if (t[s])
99
+ return i[s] = [];
100
+ if (!(s in i)) {
101
+ i[s] = null;
102
+ const l = o[s] && o[s].parent, c = l && r(l);
103
+ c && (i[s] = [l].concat(c));
104
+ }
105
+ return i[s];
106
+ }
107
+ return Object.keys(t).concat(Object.keys(o)).forEach(r), i;
108
+ }
109
+ function Tt(e, n, t) {
110
+ const o = e.icons, i = e.aliases || /* @__PURE__ */ Object.create(null);
111
+ let r = {};
112
+ function s(l) {
113
+ r = Te(
114
+ o[l] || i[l],
115
+ r
116
+ );
117
+ }
118
+ return s(n), t.forEach(s), Te(e, r);
119
+ }
120
+ function Ye(e, n) {
121
+ const t = [];
122
+ if (typeof e != "object" || typeof e.icons != "object")
123
+ return t;
124
+ e.not_found instanceof Array && e.not_found.forEach((i) => {
125
+ n(i, null), t.push(i);
126
+ });
127
+ const o = Ct(e);
128
+ for (const i in o) {
129
+ const r = o[i];
130
+ r && (n(i, Tt(e, i, r)), t.push(i));
131
+ }
132
+ return t;
133
+ }
134
+ const Pt = {
135
+ provider: "",
136
+ aliases: {},
137
+ not_found: {},
138
+ ...Ke
139
+ };
140
+ function te(e, n) {
141
+ for (const t in n)
142
+ if (t in e && typeof e[t] != typeof n[t])
143
+ return !1;
144
+ return !0;
145
+ }
146
+ function Je(e) {
147
+ if (typeof e != "object" || e === null)
148
+ return null;
149
+ const n = e;
150
+ if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !te(e, Pt))
151
+ return null;
152
+ const t = n.icons;
153
+ for (const i in t) {
154
+ const r = t[i];
155
+ if (
156
+ // Name cannot be empty
157
+ !i || // Must have body
158
+ typeof r.body != "string" || // Check other props
159
+ !te(
160
+ r,
161
+ ce
162
+ )
163
+ )
164
+ return null;
165
+ }
166
+ const o = n.aliases || /* @__PURE__ */ Object.create(null);
167
+ for (const i in o) {
168
+ const r = o[i], s = r.parent;
169
+ if (
170
+ // Name cannot be empty
171
+ !i || // Parent must be set and point to existing icon
172
+ typeof s != "string" || !t[s] && !o[s] || // Check other props
173
+ !te(
174
+ r,
175
+ ce
176
+ )
177
+ )
178
+ return null;
179
+ }
180
+ return n;
181
+ }
182
+ const Pe = /* @__PURE__ */ Object.create(null);
183
+ function Mt(e, n) {
184
+ return {
185
+ provider: e,
186
+ prefix: n,
187
+ icons: /* @__PURE__ */ Object.create(null),
188
+ missing: /* @__PURE__ */ new Set()
189
+ };
190
+ }
191
+ function z(e, n) {
192
+ const t = Pe[e] || (Pe[e] = /* @__PURE__ */ Object.create(null));
193
+ return t[n] || (t[n] = Mt(e, n));
194
+ }
195
+ function ye(e, n) {
196
+ return Je(n) ? Ye(n, (t, o) => {
197
+ o ? e.icons[t] = o : e.missing.add(t);
198
+ }) : [];
199
+ }
200
+ function jt(e, n, t) {
201
+ try {
202
+ if (typeof t.body == "string")
203
+ return e.icons[n] = { ...t }, !0;
204
+ } catch {
205
+ }
206
+ return !1;
207
+ }
208
+ let U = !1;
209
+ function Xe(e) {
210
+ return typeof e == "boolean" && (U = e), U;
211
+ }
212
+ function Et(e) {
213
+ const n = typeof e == "string" ? J(e, !0, U) : e;
214
+ if (n) {
215
+ const t = z(n.provider, n.prefix), o = n.name;
216
+ return t.icons[o] || (t.missing.has(o) ? null : void 0);
217
+ }
218
+ }
219
+ function Ot(e, n) {
220
+ const t = J(e, !0, U);
221
+ if (!t)
222
+ return !1;
223
+ const o = z(t.provider, t.prefix);
224
+ return n ? jt(o, t.name, n) : (o.missing.add(t.name), !0);
225
+ }
226
+ function Lt(e, n) {
227
+ if (typeof e != "object")
228
+ return !1;
229
+ if (typeof n != "string" && (n = e.provider || ""), U && !n && !e.prefix) {
230
+ let i = !1;
231
+ return Je(e) && (e.prefix = "", Ye(e, (r, s) => {
232
+ Ot(r, s) && (i = !0);
233
+ })), i;
234
+ }
235
+ const t = e.prefix;
236
+ if (!q({
237
+ prefix: t,
238
+ name: "a"
239
+ }))
240
+ return !1;
241
+ const o = z(n, t);
242
+ return !!ye(o, e);
243
+ }
244
+ const Ze = Object.freeze({
245
+ width: null,
246
+ height: null
247
+ }), et = Object.freeze({
248
+ // Dimensions
249
+ ...Ze,
250
+ // Transformations
251
+ ...K
252
+ }), zt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, At = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
253
+ function Me(e, n, t) {
254
+ if (n === 1)
255
+ return e;
256
+ if (t = t || 100, typeof e == "number")
257
+ return Math.ceil(e * n * t) / t;
258
+ if (typeof e != "string")
259
+ return e;
260
+ const o = e.split(zt);
261
+ if (o === null || !o.length)
262
+ return e;
263
+ const i = [];
264
+ let r = o.shift(), s = At.test(r);
265
+ for (; ; ) {
266
+ if (s) {
267
+ const l = parseFloat(r);
268
+ isNaN(l) ? i.push(r) : i.push(Math.ceil(l * n * t) / t);
269
+ } else
270
+ i.push(r);
271
+ if (r = o.shift(), r === void 0)
272
+ return i.join("");
273
+ s = !s;
274
+ }
275
+ }
276
+ function Bt(e, n = "defs") {
277
+ let t = "";
278
+ const o = e.indexOf("<" + n);
279
+ for (; o >= 0; ) {
280
+ const i = e.indexOf(">", o), r = e.indexOf("</" + n);
281
+ if (i === -1 || r === -1)
282
+ break;
283
+ const s = e.indexOf(">", r);
284
+ if (s === -1)
285
+ break;
286
+ t += e.slice(i + 1, r).trim(), e = e.slice(0, o).trim() + e.slice(s + 1);
287
+ }
288
+ return {
289
+ defs: t,
290
+ content: e
291
+ };
292
+ }
293
+ function Ft(e, n) {
294
+ return e ? "<defs>" + e + "</defs>" + n : n;
295
+ }
296
+ function $t(e, n, t) {
297
+ const o = Bt(e);
298
+ return Ft(o.defs, n + o.content + t);
299
+ }
300
+ const Nt = (e) => e === "unset" || e === "undefined" || e === "none";
301
+ function Dt(e, n) {
302
+ const t = {
303
+ ...X,
304
+ ...e
305
+ }, o = {
306
+ ...et,
307
+ ...n
308
+ }, i = {
309
+ left: t.left,
310
+ top: t.top,
311
+ width: t.width,
312
+ height: t.height
313
+ };
314
+ let r = t.body;
315
+ [t, o].forEach((g) => {
316
+ const d = [], w = g.hFlip, S = g.vFlip;
317
+ let m = g.rotate;
318
+ w ? S ? m += 2 : (d.push(
319
+ "translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
320
+ ), d.push("scale(-1 1)"), i.top = i.left = 0) : S && (d.push(
321
+ "translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
322
+ ), d.push("scale(1 -1)"), i.top = i.left = 0);
323
+ let b;
324
+ switch (m < 0 && (m -= Math.floor(m / 4) * 4), m = m % 4, m) {
325
+ case 1:
326
+ b = i.height / 2 + i.top, d.unshift(
327
+ "rotate(90 " + b.toString() + " " + b.toString() + ")"
328
+ );
329
+ break;
330
+ case 2:
331
+ d.unshift(
332
+ "rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")"
333
+ );
334
+ break;
335
+ case 3:
336
+ b = i.width / 2 + i.left, d.unshift(
337
+ "rotate(-90 " + b.toString() + " " + b.toString() + ")"
338
+ );
339
+ break;
340
+ }
341
+ m % 2 === 1 && (i.left !== i.top && (b = i.left, i.left = i.top, i.top = b), i.width !== i.height && (b = i.width, i.width = i.height, i.height = b)), d.length && (r = $t(
342
+ r,
343
+ '<g transform="' + d.join(" ") + '">',
344
+ "</g>"
345
+ ));
346
+ });
347
+ const s = o.width, l = o.height, c = i.width, a = i.height;
348
+ let h, f;
349
+ s === null ? (f = l === null ? "1em" : l === "auto" ? a : l, h = Me(f, c / a)) : (h = s === "auto" ? c : s, f = l === null ? Me(h, a / c) : l === "auto" ? a : l);
350
+ const u = {}, p = (g, d) => {
351
+ Nt(d) || (u[g] = d.toString());
352
+ };
353
+ p("width", h), p("height", f);
354
+ const y = [i.left, i.top, c, a];
355
+ return u.viewBox = y.join(" "), {
356
+ attributes: u,
357
+ viewBox: y,
358
+ body: r
359
+ };
360
+ }
361
+ const Rt = /\sid="(\S+)"/g, Vt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
362
+ let Ut = 0;
363
+ function Wt(e, n = Vt) {
364
+ const t = [];
365
+ let o;
366
+ for (; o = Rt.exec(e); )
367
+ t.push(o[1]);
368
+ if (!t.length)
369
+ return e;
370
+ const i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
371
+ return t.forEach((r) => {
372
+ const s = typeof n == "function" ? n(r) : n + (Ut++).toString(), l = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
373
+ e = e.replace(
374
+ // Allowed characters before id: [#;"]
375
+ // Allowed characters after id: [)"], .[a-z]
376
+ new RegExp('([#;"])(' + l + ')([")]|\\.[a-z])', "g"),
377
+ "$1" + s + i + "$3"
378
+ );
379
+ }), e = e.replace(new RegExp(i, "g"), ""), e;
380
+ }
381
+ const ue = /* @__PURE__ */ Object.create(null);
382
+ function _t(e, n) {
383
+ ue[e] = n;
384
+ }
385
+ function ae(e) {
386
+ return ue[e] || ue[""];
387
+ }
388
+ function we(e) {
389
+ let n;
390
+ if (typeof e.resources == "string")
391
+ n = [e.resources];
392
+ else if (n = e.resources, !(n instanceof Array) || !n.length)
393
+ return null;
394
+ return {
395
+ // API hosts
396
+ resources: n,
397
+ // Root path
398
+ path: e.path || "/",
399
+ // URL length limit
400
+ maxURL: e.maxURL || 500,
401
+ // Timeout before next host is used.
402
+ rotate: e.rotate || 750,
403
+ // Timeout before failing query.
404
+ timeout: e.timeout || 5e3,
405
+ // Randomise default API end point.
406
+ random: e.random === !0,
407
+ // Start index
408
+ index: e.index || 0,
409
+ // Receive data after time out (used if time out kicks in first, then API module sends data anyway).
410
+ dataAfterTimeout: e.dataAfterTimeout !== !1
411
+ };
412
+ }
413
+ const be = /* @__PURE__ */ Object.create(null), D = [
414
+ "https://api.simplesvg.com",
415
+ "https://api.unisvg.com"
416
+ ], Q = [];
417
+ for (; D.length > 0; )
418
+ D.length === 1 || Math.random() > 0.5 ? Q.push(D.shift()) : Q.push(D.pop());
419
+ be[""] = we({
420
+ resources: ["https://api.iconify.design"].concat(Q)
421
+ });
422
+ function Ht(e, n) {
423
+ const t = we(n);
424
+ return t === null ? !1 : (be[e] = t, !0);
425
+ }
426
+ function ke(e) {
427
+ return be[e];
428
+ }
429
+ const qt = () => {
430
+ let e;
431
+ try {
432
+ if (e = fetch, typeof e == "function")
433
+ return e;
434
+ } catch {
435
+ }
436
+ };
437
+ let je = qt();
438
+ function Qt(e, n) {
439
+ const t = ke(e);
440
+ if (!t)
441
+ return 0;
442
+ let o;
443
+ if (!t.maxURL)
444
+ o = 0;
445
+ else {
446
+ let i = 0;
447
+ t.resources.forEach((s) => {
448
+ i = Math.max(i, s.length);
449
+ });
450
+ const r = n + ".json?icons=";
451
+ o = t.maxURL - i - t.path.length - r.length;
452
+ }
453
+ return o;
454
+ }
455
+ function Gt(e) {
456
+ return e === 404;
457
+ }
458
+ const Kt = (e, n, t) => {
459
+ const o = [], i = Qt(e, n), r = "icons";
460
+ let s = {
461
+ type: r,
462
+ provider: e,
463
+ prefix: n,
464
+ icons: []
465
+ }, l = 0;
466
+ return t.forEach((c, a) => {
467
+ l += c.length + 1, l >= i && a > 0 && (o.push(s), s = {
468
+ type: r,
469
+ provider: e,
470
+ prefix: n,
471
+ icons: []
472
+ }, l = c.length), s.icons.push(c);
473
+ }), o.push(s), o;
474
+ };
475
+ function Yt(e) {
476
+ if (typeof e == "string") {
477
+ const n = ke(e);
478
+ if (n)
479
+ return n.path;
480
+ }
481
+ return "/";
482
+ }
483
+ const Jt = (e, n, t) => {
484
+ if (!je) {
485
+ t("abort", 424);
486
+ return;
487
+ }
488
+ let o = Yt(n.provider);
489
+ switch (n.type) {
490
+ case "icons": {
491
+ const r = n.prefix, l = n.icons.join(","), c = new URLSearchParams({
492
+ icons: l
493
+ });
494
+ o += r + ".json?" + c.toString();
495
+ break;
496
+ }
497
+ case "custom": {
498
+ const r = n.uri;
499
+ o += r.slice(0, 1) === "/" ? r.slice(1) : r;
500
+ break;
501
+ }
502
+ default:
503
+ t("abort", 400);
504
+ return;
505
+ }
506
+ let i = 503;
507
+ je(e + o).then((r) => {
508
+ const s = r.status;
509
+ if (s !== 200) {
510
+ setTimeout(() => {
511
+ t(Gt(s) ? "abort" : "next", s);
512
+ });
513
+ return;
514
+ }
515
+ return i = 501, r.json();
516
+ }).then((r) => {
517
+ if (typeof r != "object" || r === null) {
518
+ setTimeout(() => {
519
+ r === 404 ? t("abort", r) : t("next", i);
520
+ });
521
+ return;
522
+ }
523
+ setTimeout(() => {
524
+ t("success", r);
525
+ });
526
+ }).catch(() => {
527
+ t("next", i);
528
+ });
529
+ }, Xt = {
530
+ prepare: Kt,
531
+ send: Jt
532
+ };
533
+ function Zt(e) {
534
+ const n = {
535
+ loaded: [],
536
+ missing: [],
537
+ pending: []
538
+ }, t = /* @__PURE__ */ Object.create(null);
539
+ e.sort((i, r) => i.provider !== r.provider ? i.provider.localeCompare(r.provider) : i.prefix !== r.prefix ? i.prefix.localeCompare(r.prefix) : i.name.localeCompare(r.name));
540
+ let o = {
541
+ provider: "",
542
+ prefix: "",
543
+ name: ""
544
+ };
545
+ return e.forEach((i) => {
546
+ if (o.name === i.name && o.prefix === i.prefix && o.provider === i.provider)
547
+ return;
548
+ o = i;
549
+ const r = i.provider, s = i.prefix, l = i.name, c = t[r] || (t[r] = /* @__PURE__ */ Object.create(null)), a = c[s] || (c[s] = z(r, s));
550
+ let h;
551
+ l in a.icons ? h = n.loaded : s === "" || a.missing.has(l) ? h = n.missing : h = n.pending;
552
+ const f = {
553
+ provider: r,
554
+ prefix: s,
555
+ name: l
556
+ };
557
+ h.push(f);
558
+ }), n;
559
+ }
560
+ function tt(e, n) {
561
+ e.forEach((t) => {
562
+ const o = t.loaderCallbacks;
563
+ o && (t.loaderCallbacks = o.filter((i) => i.id !== n));
564
+ });
565
+ }
566
+ function en(e) {
567
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
568
+ e.pendingCallbacksFlag = !1;
569
+ const n = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
570
+ if (!n.length)
571
+ return;
572
+ let t = !1;
573
+ const o = e.provider, i = e.prefix;
574
+ n.forEach((r) => {
575
+ const s = r.icons, l = s.pending.length;
576
+ s.pending = s.pending.filter((c) => {
577
+ if (c.prefix !== i)
578
+ return !0;
579
+ const a = c.name;
580
+ if (e.icons[a])
581
+ s.loaded.push({
582
+ provider: o,
583
+ prefix: i,
584
+ name: a
585
+ });
586
+ else if (e.missing.has(a))
587
+ s.missing.push({
588
+ provider: o,
589
+ prefix: i,
590
+ name: a
591
+ });
592
+ else
593
+ return t = !0, !0;
594
+ return !1;
595
+ }), s.pending.length !== l && (t || tt([e], r.id), r.callback(
596
+ s.loaded.slice(0),
597
+ s.missing.slice(0),
598
+ s.pending.slice(0),
599
+ r.abort
600
+ ));
601
+ });
602
+ }));
603
+ }
604
+ let tn = 0;
605
+ function nn(e, n, t) {
606
+ const o = tn++, i = tt.bind(null, t, o);
607
+ if (!n.pending.length)
608
+ return i;
609
+ const r = {
610
+ id: o,
611
+ icons: n,
612
+ callback: e,
613
+ abort: i
614
+ };
615
+ return t.forEach((s) => {
616
+ (s.loaderCallbacks || (s.loaderCallbacks = [])).push(r);
617
+ }), i;
618
+ }
619
+ function on(e, n = !0, t = !1) {
620
+ const o = [];
621
+ return e.forEach((i) => {
622
+ const r = typeof i == "string" ? J(i, n, t) : i;
623
+ r && o.push(r);
624
+ }), o;
625
+ }
626
+ var rn = {
627
+ resources: [],
628
+ index: 0,
629
+ timeout: 2e3,
630
+ rotate: 750,
631
+ random: !1,
632
+ dataAfterTimeout: !1
633
+ };
634
+ function sn(e, n, t, o) {
635
+ const i = e.resources.length, r = e.random ? Math.floor(Math.random() * i) : e.index;
636
+ let s;
637
+ if (e.random) {
638
+ let v = e.resources.slice(0);
639
+ for (s = []; v.length > 1; ) {
640
+ const k = Math.floor(Math.random() * v.length);
641
+ s.push(v[k]), v = v.slice(0, k).concat(v.slice(k + 1));
642
+ }
643
+ s = s.concat(v);
644
+ } else
645
+ s = e.resources.slice(r).concat(e.resources.slice(0, r));
646
+ const l = Date.now();
647
+ let c = "pending", a = 0, h, f = null, u = [], p = [];
648
+ typeof o == "function" && p.push(o);
649
+ function y() {
650
+ f && (clearTimeout(f), f = null);
651
+ }
652
+ function g() {
653
+ c === "pending" && (c = "aborted"), y(), u.forEach((v) => {
654
+ v.status === "pending" && (v.status = "aborted");
655
+ }), u = [];
656
+ }
657
+ function d(v, k) {
658
+ k && (p = []), typeof v == "function" && p.push(v);
659
+ }
660
+ function w() {
661
+ return {
662
+ startTime: l,
663
+ payload: n,
664
+ status: c,
665
+ queriesSent: a,
666
+ queriesPending: u.length,
667
+ subscribe: d,
668
+ abort: g
669
+ };
670
+ }
671
+ function S() {
672
+ c = "failed", p.forEach((v) => {
673
+ v(void 0, h);
674
+ });
675
+ }
676
+ function m() {
677
+ u.forEach((v) => {
678
+ v.status === "pending" && (v.status = "aborted");
679
+ }), u = [];
680
+ }
681
+ function b(v, k, $) {
682
+ const _ = k !== "success";
683
+ switch (u = u.filter((j) => j !== v), c) {
684
+ case "pending":
685
+ break;
686
+ case "failed":
687
+ if (_ || !e.dataAfterTimeout)
688
+ return;
689
+ break;
690
+ default:
691
+ return;
692
+ }
693
+ if (k === "abort") {
694
+ h = $, S();
695
+ return;
696
+ }
697
+ if (_) {
698
+ h = $, u.length || (s.length ? T() : S());
699
+ return;
700
+ }
701
+ if (y(), m(), !e.random) {
702
+ const j = e.resources.indexOf(v.resource);
703
+ j !== -1 && j !== e.index && (e.index = j);
704
+ }
705
+ c = "completed", p.forEach((j) => {
706
+ j($);
707
+ });
708
+ }
709
+ function T() {
710
+ if (c !== "pending")
711
+ return;
712
+ y();
713
+ const v = s.shift();
714
+ if (v === void 0) {
715
+ if (u.length) {
716
+ f = setTimeout(() => {
717
+ y(), c === "pending" && (m(), S());
718
+ }, e.timeout);
719
+ return;
720
+ }
721
+ S();
722
+ return;
723
+ }
724
+ const k = {
725
+ status: "pending",
726
+ resource: v,
727
+ callback: ($, _) => {
728
+ b(k, $, _);
729
+ }
730
+ };
731
+ u.push(k), a++, f = setTimeout(T, e.rotate), t(v, n, k.callback);
732
+ }
733
+ return setTimeout(T), w;
734
+ }
735
+ function nt(e) {
736
+ const n = {
737
+ ...rn,
738
+ ...e
739
+ };
740
+ let t = [];
741
+ function o() {
742
+ t = t.filter((l) => l().status === "pending");
743
+ }
744
+ function i(l, c, a) {
745
+ const h = sn(
746
+ n,
747
+ l,
748
+ c,
749
+ (f, u) => {
750
+ o(), a && a(f, u);
751
+ }
752
+ );
753
+ return t.push(h), h;
754
+ }
755
+ function r(l) {
756
+ return t.find((c) => l(c)) || null;
757
+ }
758
+ return {
759
+ query: i,
760
+ find: r,
761
+ setIndex: (l) => {
762
+ n.index = l;
763
+ },
764
+ getIndex: () => n.index,
765
+ cleanup: o
766
+ };
767
+ }
768
+ function Ee() {
769
+ }
770
+ const ne = /* @__PURE__ */ Object.create(null);
771
+ function ln(e) {
772
+ if (!ne[e]) {
773
+ const n = ke(e);
774
+ if (!n)
775
+ return;
776
+ const t = nt(n), o = {
777
+ config: n,
778
+ redundancy: t
779
+ };
780
+ ne[e] = o;
781
+ }
782
+ return ne[e];
783
+ }
784
+ function cn(e, n, t) {
785
+ let o, i;
786
+ if (typeof e == "string") {
787
+ const r = ae(e);
788
+ if (!r)
789
+ return t(void 0, 424), Ee;
790
+ i = r.send;
791
+ const s = ln(e);
792
+ s && (o = s.redundancy);
793
+ } else {
794
+ const r = we(e);
795
+ if (r) {
796
+ o = nt(r);
797
+ const s = e.resources ? e.resources[0] : "", l = ae(s);
798
+ l && (i = l.send);
799
+ }
800
+ }
801
+ return !o || !i ? (t(void 0, 424), Ee) : o.query(n, i, t)().abort;
802
+ }
803
+ const Oe = "iconify2", W = "iconify", ot = W + "-count", Le = W + "-version", it = 36e5, un = 168, an = 50;
804
+ function fe(e, n) {
805
+ try {
806
+ return e.getItem(n);
807
+ } catch {
808
+ }
809
+ }
810
+ function xe(e, n, t) {
811
+ try {
812
+ return e.setItem(n, t), !0;
813
+ } catch {
814
+ }
815
+ }
816
+ function ze(e, n) {
817
+ try {
818
+ e.removeItem(n);
819
+ } catch {
820
+ }
821
+ }
822
+ function de(e, n) {
823
+ return xe(e, ot, n.toString());
824
+ }
825
+ function he(e) {
826
+ return parseInt(fe(e, ot)) || 0;
827
+ }
828
+ const Z = {
829
+ local: !0,
830
+ session: !0
831
+ }, rt = {
832
+ local: /* @__PURE__ */ new Set(),
833
+ session: /* @__PURE__ */ new Set()
834
+ };
835
+ let Ie = !1;
836
+ function fn(e) {
837
+ Ie = e;
838
+ }
839
+ let H = typeof window > "u" ? {} : window;
840
+ function st(e) {
841
+ const n = e + "Storage";
842
+ try {
843
+ if (H && H[n] && typeof H[n].length == "number")
844
+ return H[n];
845
+ } catch {
846
+ }
847
+ Z[e] = !1;
848
+ }
849
+ function lt(e, n) {
850
+ const t = st(e);
851
+ if (!t)
852
+ return;
853
+ const o = fe(t, Le);
854
+ if (o !== Oe) {
855
+ if (o) {
856
+ const l = he(t);
857
+ for (let c = 0; c < l; c++)
858
+ ze(t, W + c.toString());
859
+ }
860
+ xe(t, Le, Oe), de(t, 0);
861
+ return;
862
+ }
863
+ const i = Math.floor(Date.now() / it) - un, r = (l) => {
864
+ const c = W + l.toString(), a = fe(t, c);
865
+ if (typeof a == "string") {
866
+ try {
867
+ const h = JSON.parse(a);
868
+ if (typeof h == "object" && typeof h.cached == "number" && h.cached > i && typeof h.provider == "string" && typeof h.data == "object" && typeof h.data.prefix == "string" && // Valid item: run callback
869
+ n(h, l))
870
+ return !0;
871
+ } catch {
872
+ }
873
+ ze(t, c);
874
+ }
875
+ };
876
+ let s = he(t);
877
+ for (let l = s - 1; l >= 0; l--)
878
+ r(l) || (l === s - 1 ? (s--, de(t, s)) : rt[e].add(l));
879
+ }
880
+ function ct() {
881
+ if (!Ie) {
882
+ fn(!0);
883
+ for (const e in Z)
884
+ lt(e, (n) => {
885
+ const t = n.data, o = n.provider, i = t.prefix, r = z(
886
+ o,
887
+ i
888
+ );
889
+ if (!ye(r, t).length)
890
+ return !1;
891
+ const s = t.lastModified || -1;
892
+ return r.lastModifiedCached = r.lastModifiedCached ? Math.min(r.lastModifiedCached, s) : s, !0;
893
+ });
894
+ }
895
+ }
896
+ function dn(e, n) {
897
+ const t = e.lastModifiedCached;
898
+ if (
899
+ // Matches or newer
900
+ t && t >= n
901
+ )
902
+ return t === n;
903
+ if (e.lastModifiedCached = n, t)
904
+ for (const o in Z)
905
+ lt(o, (i) => {
906
+ const r = i.data;
907
+ return i.provider !== e.provider || r.prefix !== e.prefix || r.lastModified === n;
908
+ });
909
+ return !0;
910
+ }
911
+ function hn(e, n) {
912
+ Ie || ct();
913
+ function t(o) {
914
+ let i;
915
+ if (!Z[o] || !(i = st(o)))
916
+ return;
917
+ const r = rt[o];
918
+ let s;
919
+ if (r.size)
920
+ r.delete(s = Array.from(r).shift());
921
+ else if (s = he(i), s >= an || !de(i, s + 1))
922
+ return;
923
+ const l = {
924
+ cached: Math.floor(Date.now() / it),
925
+ provider: e.provider,
926
+ data: n
927
+ };
928
+ return xe(
929
+ i,
930
+ W + s.toString(),
931
+ JSON.stringify(l)
932
+ );
933
+ }
934
+ n.lastModified && !dn(e, n.lastModified) || Object.keys(n.icons).length && (n.not_found && (n = Object.assign({}, n), delete n.not_found), t("local") || t("session"));
935
+ }
936
+ function Ae() {
937
+ }
938
+ function pn(e) {
939
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
940
+ e.iconsLoaderFlag = !1, en(e);
941
+ }));
942
+ }
943
+ function gn(e) {
944
+ const n = [], t = [];
945
+ return e.forEach((o) => {
946
+ (o.match(Ge) ? n : t).push(o);
947
+ }), {
948
+ valid: n,
949
+ invalid: t
950
+ };
951
+ }
952
+ function R(e, n, t, o) {
953
+ function i() {
954
+ const r = e.pendingIcons;
955
+ n.forEach((s) => {
956
+ r && r.delete(s), e.icons[s] || e.missing.add(s);
957
+ });
958
+ }
959
+ if (t && typeof t == "object")
960
+ try {
961
+ if (!ye(e, t).length) {
962
+ i();
963
+ return;
964
+ }
965
+ o && hn(e, t);
966
+ } catch (r) {
967
+ console.error(r);
968
+ }
969
+ i(), pn(e);
970
+ }
971
+ function Be(e, n) {
972
+ e instanceof Promise ? e.then((t) => {
973
+ n(t);
974
+ }).catch(() => {
975
+ n(null);
976
+ }) : n(e);
977
+ }
978
+ function mn(e, n) {
979
+ e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(n).sort() : e.iconsToLoad = n, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
980
+ e.iconsQueueFlag = !1;
981
+ const { provider: t, prefix: o } = e, i = e.iconsToLoad;
982
+ if (delete e.iconsToLoad, !i || !i.length)
983
+ return;
984
+ const r = e.loadIcon;
985
+ if (e.loadIcons && (i.length > 1 || !r)) {
986
+ Be(
987
+ e.loadIcons(i, o, t),
988
+ (h) => {
989
+ R(e, i, h, !1);
990
+ }
991
+ );
992
+ return;
993
+ }
994
+ if (r) {
995
+ i.forEach((h) => {
996
+ const f = r(h, o, t);
997
+ Be(f, (u) => {
998
+ const p = u ? {
999
+ prefix: o,
1000
+ icons: {
1001
+ [h]: u
1002
+ }
1003
+ } : null;
1004
+ R(e, [h], p, !1);
1005
+ });
1006
+ });
1007
+ return;
1008
+ }
1009
+ const { valid: s, invalid: l } = gn(i);
1010
+ if (l.length && R(e, l, null, !1), !s.length)
1011
+ return;
1012
+ const c = o.match(Ge) ? ae(t) : null;
1013
+ if (!c) {
1014
+ R(e, s, null, !1);
1015
+ return;
1016
+ }
1017
+ c.prepare(t, o, s).forEach((h) => {
1018
+ cn(t, h, (f) => {
1019
+ R(e, h.icons, f, !0);
1020
+ });
1021
+ });
1022
+ }));
1023
+ }
1024
+ const vn = (e, n) => {
1025
+ const t = on(e, !0, Xe()), o = Zt(t);
1026
+ if (!o.pending.length) {
1027
+ let c = !0;
1028
+ return n && setTimeout(() => {
1029
+ c && n(
1030
+ o.loaded,
1031
+ o.missing,
1032
+ o.pending,
1033
+ Ae
1034
+ );
1035
+ }), () => {
1036
+ c = !1;
1037
+ };
1038
+ }
1039
+ const i = /* @__PURE__ */ Object.create(null), r = [];
1040
+ let s, l;
1041
+ return o.pending.forEach((c) => {
1042
+ const { provider: a, prefix: h } = c;
1043
+ if (h === l && a === s)
1044
+ return;
1045
+ s = a, l = h, r.push(z(a, h));
1046
+ const f = i[a] || (i[a] = /* @__PURE__ */ Object.create(null));
1047
+ f[h] || (f[h] = []);
1048
+ }), o.pending.forEach((c) => {
1049
+ const { provider: a, prefix: h, name: f } = c, u = z(a, h), p = u.pendingIcons || (u.pendingIcons = /* @__PURE__ */ new Set());
1050
+ p.has(f) || (p.add(f), i[a][h].push(f));
1051
+ }), r.forEach((c) => {
1052
+ const a = i[c.provider][c.prefix];
1053
+ a.length && mn(c, a);
1054
+ }), n ? nn(n, o, r) : Ae;
1055
+ };
1056
+ function yn(e, n) {
1057
+ const t = {
1058
+ ...e
1059
+ };
1060
+ for (const o in n) {
1061
+ const i = n[o], r = typeof i;
1062
+ o in Ze ? (i === null || i && (r === "string" || r === "number")) && (t[o] = i) : r === typeof t[o] && (t[o] = o === "rotate" ? i % 4 : i);
1063
+ }
1064
+ return t;
1065
+ }
1066
+ const wn = /[\s,]+/;
1067
+ function bn(e, n) {
1068
+ n.split(wn).forEach((t) => {
1069
+ switch (t.trim()) {
1070
+ case "horizontal":
1071
+ e.hFlip = !0;
1072
+ break;
1073
+ case "vertical":
1074
+ e.vFlip = !0;
1075
+ break;
1076
+ }
1077
+ });
1078
+ }
1079
+ function kn(e, n = 0) {
1080
+ const t = e.replace(/^-?[0-9.]*/, "");
1081
+ function o(i) {
1082
+ for (; i < 0; )
1083
+ i += 4;
1084
+ return i % 4;
1085
+ }
1086
+ if (t === "") {
1087
+ const i = parseInt(e);
1088
+ return isNaN(i) ? 0 : o(i);
1089
+ } else if (t !== e) {
1090
+ let i = 0;
1091
+ switch (t) {
1092
+ case "%":
1093
+ i = 25;
1094
+ break;
1095
+ case "deg":
1096
+ i = 90;
1097
+ }
1098
+ if (i) {
1099
+ let r = parseFloat(e.slice(0, e.length - t.length));
1100
+ return isNaN(r) ? 0 : (r = r / i, r % 1 === 0 ? o(r) : 0);
1101
+ }
1102
+ }
1103
+ return n;
1104
+ }
1105
+ function xn(e, n) {
1106
+ let t = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1107
+ for (const o in n)
1108
+ t += " " + o + '="' + n[o] + '"';
1109
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + e + "</svg>";
1110
+ }
1111
+ function In(e) {
1112
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1113
+ }
1114
+ function Sn(e) {
1115
+ return "data:image/svg+xml," + In(e);
1116
+ }
1117
+ function Cn(e) {
1118
+ return 'url("' + Sn(e) + '")';
1119
+ }
1120
+ const Fe = {
1121
+ ...et,
1122
+ inline: !1
1123
+ }, Tn = {
1124
+ xmlns: "http://www.w3.org/2000/svg",
1125
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
1126
+ "aria-hidden": !0,
1127
+ role: "img"
1128
+ }, Pn = {
1129
+ display: "inline-block"
1130
+ }, pe = {
1131
+ backgroundColor: "currentColor"
1132
+ }, ut = {
1133
+ backgroundColor: "transparent"
1134
+ }, $e = {
1135
+ Image: "var(--svg)",
1136
+ Repeat: "no-repeat",
1137
+ Size: "100% 100%"
1138
+ }, Ne = {
1139
+ webkitMask: pe,
1140
+ mask: pe,
1141
+ background: ut
1142
+ };
1143
+ for (const e in Ne) {
1144
+ const n = Ne[e];
1145
+ for (const t in $e)
1146
+ n[e + t] = $e[t];
1147
+ }
1148
+ const G = {};
1149
+ ["horizontal", "vertical"].forEach((e) => {
1150
+ const n = e.slice(0, 1) + "Flip";
1151
+ G[e + "-flip"] = n, G[e.slice(0, 1) + "-flip"] = n, G[e + "Flip"] = n;
1152
+ });
1153
+ function De(e) {
1154
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1155
+ }
1156
+ const Re = (e, n) => {
1157
+ const t = yn(Fe, n), o = { ...Tn }, i = n.mode || "svg", r = {}, s = n.style, l = typeof s == "object" && !(s instanceof Array) ? s : {};
1158
+ for (let g in n) {
1159
+ const d = n[g];
1160
+ if (d !== void 0)
1161
+ switch (g) {
1162
+ // Properties to ignore
1163
+ case "icon":
1164
+ case "style":
1165
+ case "onLoad":
1166
+ case "mode":
1167
+ case "ssr":
1168
+ break;
1169
+ // Boolean attributes
1170
+ case "inline":
1171
+ case "hFlip":
1172
+ case "vFlip":
1173
+ t[g] = d === !0 || d === "true" || d === 1;
1174
+ break;
1175
+ // Flip as string: 'horizontal,vertical'
1176
+ case "flip":
1177
+ typeof d == "string" && bn(t, d);
1178
+ break;
1179
+ // Color: override style
1180
+ case "color":
1181
+ r.color = d;
1182
+ break;
1183
+ // Rotation as string
1184
+ case "rotate":
1185
+ typeof d == "string" ? t[g] = kn(d) : typeof d == "number" && (t[g] = d);
1186
+ break;
1187
+ // Remove aria-hidden
1188
+ case "ariaHidden":
1189
+ case "aria-hidden":
1190
+ d !== !0 && d !== "true" && delete o["aria-hidden"];
1191
+ break;
1192
+ default: {
1193
+ const w = G[g];
1194
+ w ? (d === !0 || d === "true" || d === 1) && (t[w] = !0) : Fe[g] === void 0 && (o[g] = d);
1195
+ }
1196
+ }
1197
+ }
1198
+ const c = Dt(e, t), a = c.attributes;
1199
+ if (t.inline && (r.verticalAlign = "-0.125em"), i === "svg") {
1200
+ o.style = {
1201
+ ...r,
1202
+ ...l
1203
+ }, Object.assign(o, a);
1204
+ let g = 0, d = n.id;
1205
+ return typeof d == "string" && (d = d.replace(/-/g, "_")), o.innerHTML = Wt(c.body, d ? () => d + "ID" + g++ : "iconifyVue"), se("svg", o);
1206
+ }
1207
+ const { body: h, width: f, height: u } = e, p = i === "mask" || (i === "bg" ? !1 : h.indexOf("currentColor") !== -1), y = xn(h, {
1208
+ ...a,
1209
+ width: f + "",
1210
+ height: u + ""
1211
+ });
1212
+ return o.style = {
1213
+ ...r,
1214
+ "--svg": Cn(y),
1215
+ width: De(a.width),
1216
+ height: De(a.height),
1217
+ ...Pn,
1218
+ ...p ? pe : ut,
1219
+ ...l
1220
+ }, se("span", o);
1221
+ };
1222
+ Xe(!0);
1223
+ _t("", Xt);
1224
+ if (typeof document < "u" && typeof window < "u") {
1225
+ ct();
1226
+ const e = window;
1227
+ if (e.IconifyPreload !== void 0) {
1228
+ const n = e.IconifyPreload, t = "Invalid IconifyPreload syntax.";
1229
+ typeof n == "object" && n !== null && (n instanceof Array ? n : [n]).forEach((o) => {
1230
+ try {
1231
+ // Check if item is an object and not null/array
1232
+ (typeof o != "object" || o === null || o instanceof Array || // Check for 'icons' and 'prefix'
1233
+ typeof o.icons != "object" || typeof o.prefix != "string" || // Add icon set
1234
+ !Lt(o)) && console.error(t);
1235
+ } catch {
1236
+ console.error(t);
1237
+ }
1238
+ });
1239
+ }
1240
+ if (e.IconifyProviders !== void 0) {
1241
+ const n = e.IconifyProviders;
1242
+ if (typeof n == "object" && n !== null)
1243
+ for (let t in n) {
1244
+ const o = "IconifyProviders[" + t + "] is invalid.";
1245
+ try {
1246
+ const i = n[t];
1247
+ if (typeof i != "object" || !i || i.resources === void 0)
1248
+ continue;
1249
+ Ht(t, i) || console.error(o);
1250
+ } catch {
1251
+ console.error(o);
1252
+ }
1253
+ }
1254
+ }
1255
+ }
1256
+ const Mn = {
1257
+ ...X,
1258
+ body: ""
1259
+ }, Ve = Y({
1260
+ // Do not inherit other attributes: it is handled by render()
1261
+ inheritAttrs: !1,
1262
+ // Set initial data
1263
+ data() {
1264
+ return {
1265
+ // Current icon name
1266
+ _name: "",
1267
+ // Loading
1268
+ _loadingIcon: null,
1269
+ // Mounted status
1270
+ iconMounted: !1,
1271
+ // Callback counter to trigger re-render
1272
+ counter: 0
1273
+ };
1274
+ },
1275
+ mounted() {
1276
+ this.iconMounted = !0;
1277
+ },
1278
+ unmounted() {
1279
+ this.abortLoading();
1280
+ },
1281
+ methods: {
1282
+ abortLoading() {
1283
+ this._loadingIcon && (this._loadingIcon.abort(), this._loadingIcon = null);
1284
+ },
1285
+ // Get data for icon to render or null
1286
+ getIcon(e, n, t) {
1287
+ if (typeof e == "object" && e !== null && typeof e.body == "string")
1288
+ return this._name = "", this.abortLoading(), {
1289
+ data: e
1290
+ };
1291
+ let o;
1292
+ if (typeof e != "string" || (o = J(e, !1, !0)) === null)
1293
+ return this.abortLoading(), null;
1294
+ let i = Et(o);
1295
+ if (!i)
1296
+ return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", i !== null && (this._loadingIcon = {
1297
+ name: e,
1298
+ abort: vn([o], () => {
1299
+ this.counter++;
1300
+ })
1301
+ })), null;
1302
+ if (this.abortLoading(), this._name !== e && (this._name = e, n && n(e)), t) {
1303
+ i = Object.assign({}, i);
1304
+ const s = t(i.body, o.name, o.prefix, o.provider);
1305
+ typeof s == "string" && (i.body = s);
1306
+ }
1307
+ const r = ["iconify"];
1308
+ return o.prefix !== "" && r.push("iconify--" + o.prefix), o.provider !== "" && r.push("iconify--" + o.provider), { data: i, classes: r };
1309
+ }
1310
+ },
1311
+ // Render icon
1312
+ render() {
1313
+ this.counter;
1314
+ const e = this.$attrs, n = this.iconMounted || e.ssr ? this.getIcon(e.icon, e.onLoad, e.customise) : null;
1315
+ if (!n)
1316
+ return Re(Mn, e);
1317
+ let t = e;
1318
+ return n.classes && (t = {
1319
+ ...e,
1320
+ class: (typeof e.class == "string" ? e.class + " " : "") + n.classes.join(" ")
1321
+ }), Re({
1322
+ ...X,
1323
+ ...n.data
1324
+ }, t);
1325
+ }
1326
+ });
1327
+ function jn(e, n) {
1328
+ return mt() ? (vt(e, n), !0) : !1;
1329
+ }
1330
+ const at = typeof window < "u" && typeof document < "u";
1331
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1332
+ const En = Object.prototype.toString, On = (e) => En.call(e) === "[object Object]", ge = () => {
1333
+ }, Ue = /* @__PURE__ */ Ln();
1334
+ function Ln() {
1335
+ var e, n, t;
1336
+ return at && !!(!((e = window) === null || e === void 0 || (e = e.navigator) === null || e === void 0) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((n = window) === null || n === void 0 || (n = n.navigator) === null || n === void 0 ? void 0 : n.maxTouchPoints) > 2 && /iPad|Macintosh/.test((t = window) === null || t === void 0 ? void 0 : t.navigator.userAgent));
1337
+ }
1338
+ function zn(...e) {
1339
+ if (e.length !== 1) return ht(...e);
1340
+ const n = e[0];
1341
+ return typeof n == "function" ? pt(gt(() => ({
1342
+ get: n,
1343
+ set: ge
1344
+ }))) : _e(n);
1345
+ }
1346
+ function me(e, n = !1, t = "Timeout") {
1347
+ return new Promise((o, i) => {
1348
+ setTimeout(n ? () => i(t) : o, e);
1349
+ });
1350
+ }
1351
+ function oe(e) {
1352
+ return Array.isArray(e) ? e : [e];
1353
+ }
1354
+ function ve(e, n = !1) {
1355
+ function t(f, { flush: u = "sync", deep: p = !1, timeout: y, throwOnTimeout: g } = {}) {
1356
+ let d = null;
1357
+ const w = [new Promise((S) => {
1358
+ d = F(e, (m) => {
1359
+ f(m) !== n && (d ? d() : Se(() => d == null ? void 0 : d()), S(m));
1360
+ }, {
1361
+ flush: u,
1362
+ deep: p,
1363
+ immediate: !0
1364
+ });
1365
+ })];
1366
+ return y != null && w.push(me(y, g).then(() => I(e)).finally(() => d == null ? void 0 : d())), Promise.race(w);
1367
+ }
1368
+ function o(f, u) {
1369
+ if (!dt(f)) return t((m) => m === f, u);
1370
+ const { flush: p = "sync", deep: y = !1, timeout: g, throwOnTimeout: d } = u ?? {};
1371
+ let w = null;
1372
+ const S = [new Promise((m) => {
1373
+ w = F([e, f], ([b, T]) => {
1374
+ n !== (b === T) && (w ? w() : Se(() => w == null ? void 0 : w()), m(b));
1375
+ }, {
1376
+ flush: p,
1377
+ deep: y,
1378
+ immediate: !0
1379
+ });
1380
+ })];
1381
+ return g != null && S.push(me(g, d).then(() => I(e)).finally(() => (w == null || w(), I(e)))), Promise.race(S);
1382
+ }
1383
+ function i(f) {
1384
+ return t((u) => !!u, f);
1385
+ }
1386
+ function r(f) {
1387
+ return o(null, f);
1388
+ }
1389
+ function s(f) {
1390
+ return o(void 0, f);
1391
+ }
1392
+ function l(f) {
1393
+ return t(Number.isNaN, f);
1394
+ }
1395
+ function c(f, u) {
1396
+ return t((p) => {
1397
+ const y = Array.from(p);
1398
+ return y.includes(f) || y.includes(I(f));
1399
+ }, u);
1400
+ }
1401
+ function a(f) {
1402
+ return h(1, f);
1403
+ }
1404
+ function h(f = 1, u) {
1405
+ let p = -1;
1406
+ return t(() => (p += 1, p >= f), u);
1407
+ }
1408
+ return Array.isArray(I(e)) ? {
1409
+ toMatch: t,
1410
+ toContains: c,
1411
+ changed: a,
1412
+ changedTimes: h,
1413
+ get not() {
1414
+ return ve(e, !n);
1415
+ }
1416
+ } : {
1417
+ toMatch: t,
1418
+ toBe: o,
1419
+ toBeTruthy: i,
1420
+ toBeNull: r,
1421
+ toBeNaN: l,
1422
+ toBeUndefined: s,
1423
+ changed: a,
1424
+ changedTimes: h,
1425
+ get not() {
1426
+ return ve(e, !n);
1427
+ }
1428
+ };
1429
+ }
1430
+ function An(e) {
1431
+ return ve(e);
1432
+ }
1433
+ function Bn(e, n, t) {
1434
+ return F(e, n, {
1435
+ ...t,
1436
+ immediate: !0
1437
+ });
1438
+ }
1439
+ const Fn = at ? window : void 0;
1440
+ function $n(e) {
1441
+ var n;
1442
+ const t = I(e);
1443
+ return (n = t == null ? void 0 : t.$el) !== null && n !== void 0 ? n : t;
1444
+ }
1445
+ function Nn(...e) {
1446
+ const n = (o, i, r, s) => (o.addEventListener(i, r, s), () => o.removeEventListener(i, r, s)), t = E(() => {
1447
+ const o = oe(I(e[0])).filter((i) => i != null);
1448
+ return o.every((i) => typeof i != "string") ? o : void 0;
1449
+ });
1450
+ return Bn(() => {
1451
+ var o, i;
1452
+ return [
1453
+ (o = (i = t.value) === null || i === void 0 ? void 0 : i.map((r) => $n(r))) !== null && o !== void 0 ? o : [Fn].filter((r) => r != null),
1454
+ oe(I(t.value ? e[1] : e[0])),
1455
+ oe(O(t.value ? e[2] : e[1])),
1456
+ I(t.value ? e[3] : e[2])
1457
+ ];
1458
+ }, ([o, i, r, s], l, c) => {
1459
+ if (!(o != null && o.length) || !(i != null && i.length) || !(r != null && r.length)) return;
1460
+ const a = On(s) ? { ...s } : s, h = o.flatMap((f) => i.flatMap((u) => r.map((p) => n(f, u, p, a))));
1461
+ c(() => {
1462
+ h.forEach((f) => f());
1463
+ });
1464
+ }, { flush: "post" });
1465
+ }
1466
+ function Dn(e, n, t) {
1467
+ var o;
1468
+ const { immediate: i = !0, delay: r = 0, onError: s = (o = globalThis.reportError) !== null && o !== void 0 ? o : ge, onSuccess: l = ge, resetOnExecute: c = !0, shallow: a = !0, throwError: h } = t ?? {}, f = a ? A(n) : _e(n), u = A(!1), p = A(!1), y = A(void 0);
1469
+ let g = 0;
1470
+ async function d(m = 0, ...b) {
1471
+ const T = g += 1;
1472
+ c && (f.value = I(n)), y.value = void 0, u.value = !1, p.value = !0, m > 0 && await me(m);
1473
+ const v = typeof e == "function" ? e(...b) : e;
1474
+ try {
1475
+ const k = await v;
1476
+ return T === g && (f.value = k, u.value = !0), l(k), k;
1477
+ } catch (k) {
1478
+ if (T === g && (y.value = k), s(k), h) throw k;
1479
+ } finally {
1480
+ T === g && (p.value = !1);
1481
+ }
1482
+ }
1483
+ i && d(r);
1484
+ const w = {
1485
+ state: f,
1486
+ isReady: u,
1487
+ isLoading: p,
1488
+ error: y,
1489
+ execute: d,
1490
+ executeImmediate: (...m) => d(0, ...m)
1491
+ };
1492
+ function S() {
1493
+ return new Promise((m, b) => {
1494
+ An(p).toBe(!1).then(() => m(w)).catch(b);
1495
+ });
1496
+ }
1497
+ return {
1498
+ ...w,
1499
+ then(m, b) {
1500
+ return S().then(m, b);
1501
+ }
1502
+ };
1503
+ }
1504
+ async function Rn(e) {
1505
+ return new Promise((n, t) => {
1506
+ const o = new Image(), { src: i, srcset: r, sizes: s, class: l, loading: c, crossorigin: a, referrerPolicy: h, width: f, height: u, decoding: p, fetchPriority: y, ismap: g, usemap: d } = e;
1507
+ o.src = i, r != null && (o.srcset = r), s != null && (o.sizes = s), l != null && (o.className = l), c != null && (o.loading = c), a != null && (o.crossOrigin = a), h != null && (o.referrerPolicy = h), f != null && (o.width = f), u != null && (o.height = u), p != null && (o.decoding = p), y != null && (o.fetchPriority = y), g != null && (o.isMap = g), d != null && (o.useMap = d), o.onload = () => n(o), o.onerror = t;
1508
+ });
1509
+ }
1510
+ function Vn(e, n = {}) {
1511
+ const t = Dn(() => Rn(I(e)), void 0, {
1512
+ resetOnExecute: !0,
1513
+ ...n
1514
+ });
1515
+ return F(() => I(e), () => t.execute(n.delay), { deep: !0 }), t;
1516
+ }
1517
+ function ie(e) {
1518
+ return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
1519
+ }
1520
+ function ft(e) {
1521
+ const n = window.getComputedStyle(e);
1522
+ if (n.overflowX === "scroll" || n.overflowY === "scroll" || n.overflowX === "auto" && e.clientWidth < e.scrollWidth || n.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
1523
+ {
1524
+ const t = e.parentNode;
1525
+ return !t || t.tagName === "BODY" ? !1 : ft(t);
1526
+ }
1527
+ }
1528
+ function Un(e) {
1529
+ const n = e || window.event, t = n.target;
1530
+ return ft(t) ? !1 : n.touches.length > 1 ? !0 : (n.preventDefault && n.preventDefault(), !1);
1531
+ }
1532
+ const re = /* @__PURE__ */ new WeakMap();
1533
+ function Wn(e, n = !1) {
1534
+ const t = A(n);
1535
+ let o = null, i = "";
1536
+ F(zn(e), (l) => {
1537
+ const c = ie(I(l));
1538
+ if (c) {
1539
+ const a = c;
1540
+ if (re.get(a) || re.set(a, a.style.overflow), a.style.overflow !== "hidden" && (i = a.style.overflow), a.style.overflow === "hidden") return t.value = !0;
1541
+ if (t.value) return a.style.overflow = "hidden";
1542
+ }
1543
+ }, { immediate: !0 });
1544
+ const r = () => {
1545
+ const l = ie(I(e));
1546
+ !l || t.value || (Ue && (o = Nn(l, "touchmove", (c) => {
1547
+ Un(c);
1548
+ }, { passive: !1 })), l.style.overflow = "hidden", t.value = !0);
1549
+ }, s = () => {
1550
+ const l = ie(I(e));
1551
+ !l || !t.value || (Ue && (o == null || o()), l.style.overflow = i, re.delete(l), t.value = !1);
1552
+ };
1553
+ return jn(s), E({
1554
+ get() {
1555
+ return t.value;
1556
+ },
1557
+ set(l) {
1558
+ l ? r() : s();
1559
+ }
1560
+ });
1561
+ }
1562
+ const We = /* @__PURE__ */ Y((e, { slots: n }) => {
1563
+ const t = yt(Vn(e));
1564
+ return () => t.isLoading && n.loading ? n.loading(t) : t.error && n.error ? n.error(t.error) : n.default ? n.default(t) : se(e.as || "img", e);
1565
+ }, {
1566
+ name: "UseImage",
1567
+ props: [
1568
+ "alt",
1569
+ "as",
1570
+ "class",
1571
+ "crossorigin",
1572
+ "decoding",
1573
+ "fetchPriority",
1574
+ "height",
1575
+ "ismap",
1576
+ "loading",
1577
+ "referrerPolicy",
1578
+ "sizes",
1579
+ "src",
1580
+ "srcset",
1581
+ "usemap",
1582
+ "width"
1583
+ ]
1584
+ });
1585
+ function _n() {
1586
+ let e = !1;
1587
+ const n = A(!1);
1588
+ return (t, o) => {
1589
+ if (n.value = o.value, e) return;
1590
+ e = !0;
1591
+ const i = Wn(t, o.value);
1592
+ F(n, (r) => i.value = r);
1593
+ };
1594
+ }
1595
+ _n();
1596
+ const Hn = {
1597
+ key: 2,
1598
+ class: "shrink-0 size-inherit",
1599
+ "aria-hidden": "true"
1600
+ }, qn = ["xlink:href"], Qn = ["xlink:href"], Gn = ["size"], Kn = ["xlink:href"], Yn = ["xlink:href"], Jn = /* @__PURE__ */ Y({
1601
+ name: "IkSvgIcon",
1602
+ __name: "index",
1603
+ props: {
1604
+ name: {},
1605
+ class: {},
1606
+ showBg: { type: Boolean, default: !1 },
1607
+ disabled: { type: Boolean, default: !1 },
1608
+ size: {},
1609
+ active: { type: Boolean, default: !1 },
1610
+ unMargin: { type: Boolean, default: !1 },
1611
+ title: { default: null },
1612
+ type: { default: "default" },
1613
+ colorMode: { default: "auto" },
1614
+ deepColor: {},
1615
+ shallowColor: {},
1616
+ onClick: {},
1617
+ danger: { type: Boolean, default: !1 },
1618
+ error: { type: Boolean, default: !1 },
1619
+ hover: { type: Boolean, default: !1 }
1620
+ },
1621
+ emits: ["click"],
1622
+ setup(e, { emit: n }) {
1623
+ const t = e, o = n, i = E(() => t.danger ? "danger" : t.error ? "error" : t.type), r = E(() => {
1624
+ if (!t.name)
1625
+ return;
1626
+ const u = (p) => /^\.{1,2}\//.test(p) || p.startsWith("/") || p.includes("/");
1627
+ return /^https?:\/\//.test(t.name) || u(t.name) ? "img" : t.name.startsWith("iksvg_") ? "two-color-svg" : /i-[^:]+:[^:]+/.test(t.name) || t.name.startsWith("ik") ? "unocss" : t.name.includes(":") ? "iconify" : "svg";
1628
+ }), s = {
1629
+ big: 24,
1630
+ default: 22,
1631
+ small: 20
1632
+ };
1633
+ function l() {
1634
+ return t.size ? s[t.size] || t.size : 18;
1635
+ }
1636
+ const c = E(() => {
1637
+ const u = l(), p = typeof u == "number" ? `${u}px` : u;
1638
+ return {
1639
+ width: p,
1640
+ height: p,
1641
+ fontSize: p
1642
+ };
1643
+ }), a = E(() => {
1644
+ const p = `${Number.parseInt(l()) + 8}px`;
1645
+ return {
1646
+ width: p,
1647
+ height: p
1648
+ };
1649
+ });
1650
+ function h(u) {
1651
+ t.onClick ? t.onClick(u) : o("click", u);
1652
+ }
1653
+ const f = E(() => {
1654
+ if (r.value !== "two-color-svg")
1655
+ return {};
1656
+ const u = {};
1657
+ if (t.disabled)
1658
+ return u["--ik-icon-deep-color"] = "var(--ik-icon-deep-disabled)", u["--ik-icon-shallow-color"] = "var(--ik-icon-shallow-disabled)", u;
1659
+ if (t.deepColor && (u["--ik-icon-deep-color"] = t.deepColor), t.shallowColor && (u["--ik-icon-shallow-color"] = t.shallowColor), t.colorMode !== "auto")
1660
+ switch (t.colorMode) {
1661
+ case "primary":
1662
+ t.deepColor || (u["--ik-icon-deep-color"] = "var(--ik-color-primary)"), t.shallowColor || (u["--ik-icon-shallow-color"] = "var(--ik-primary-light-1, color-mix(in srgb, var(--ik-color-primary) 30%, white))");
1663
+ break;
1664
+ case "deep":
1665
+ t.shallowColor || (u["--ik-icon-shallow-color"] = u["--ik-icon-deep-color"] || t.deepColor || "var(--ik-icon-deep-color)");
1666
+ break;
1667
+ case "shallow":
1668
+ t.deepColor || (u["--ik-icon-deep-color"] = u["--ik-icon-shallow-color"] || t.shallowColor || "var(--ik-icon-shallow-color)");
1669
+ break;
1670
+ }
1671
+ return t.active && i.value !== "default" && !t.deepColor && !t.shallowColor && t.colorMode === "auto" && (u["--ik-icon-deep-color"] = `var(--ik-icon-${i.value}-deep-active)`, u["--ik-icon-shallow-color"] = `var(--ik-icon-${i.value}-shallow-active)`), u;
1672
+ });
1673
+ return (u, p) => {
1674
+ var g;
1675
+ const y = le("IkTooltip");
1676
+ return x(), P(
1677
+ "i",
1678
+ {
1679
+ class: V(O(qe)(
1680
+ "ik-icon relative size-[1em] flex-inline items-center justify-center fill-current leading-[1em]",
1681
+ t.class,
1682
+ e.showBg ? "bg" : "",
1683
+ e.disabled ? "is-disabled" : "",
1684
+ e.active ? "is-active" : "",
1685
+ i.value !== "default" ? `is-${i.value}` : "",
1686
+ e.unMargin ? "un-margin" : "margin",
1687
+ e.hover ? "is-hover" : ""
1688
+ )),
1689
+ style: N(e.showBg ? a.value : c.value),
1690
+ onClick: h
1691
+ },
1692
+ [
1693
+ e.title ? (x(), L(y, {
1694
+ key: 0,
1695
+ text: e.title
1696
+ }, {
1697
+ default: M(() => {
1698
+ var d;
1699
+ return [
1700
+ r.value === "unocss" ? (x(), P(
1701
+ "i",
1702
+ {
1703
+ key: 0,
1704
+ class: V(["iconfont shrink-0 size-inherit", `${e.name} ${(d = e.name) == null ? void 0 : d.split("_")[0]}`]),
1705
+ style: N({ ...f.value, ...e.showBg ? c.value : {} })
1706
+ },
1707
+ null,
1708
+ 6
1709
+ /* CLASS, STYLE */
1710
+ )) : r.value === "iconify" ? (x(), L(O(Ve), {
1711
+ key: 1,
1712
+ icon: e.name,
1713
+ class: "shrink-0 size-inherit"
1714
+ }, null, 8, ["icon"])) : r.value === "svg" ? (x(), P("svg", Hn, [
1715
+ C("use", {
1716
+ "xlink:href": `#icon-${e.name}`
1717
+ }, null, 8, qn)
1718
+ ])) : r.value === "two-color-svg" ? (x(), P(
1719
+ "svg",
1720
+ {
1721
+ key: 3,
1722
+ class: "two-color-icon shrink-0 size-inherit",
1723
+ style: N(f.value),
1724
+ "aria-hidden": "true"
1725
+ },
1726
+ [
1727
+ C("use", {
1728
+ "xlink:href": `#${e.name}`
1729
+ }, null, 8, Qn)
1730
+ ],
1731
+ 4
1732
+ /* STYLE */
1733
+ )) : r.value === "img" ? (x(), L(O(We), {
1734
+ key: 4,
1735
+ src: e.name,
1736
+ class: "shrink-0"
1737
+ }, {
1738
+ loading: M(() => [...p[0] || (p[0] = [
1739
+ C(
1740
+ "i",
1741
+ { class: "i-line-md:loading-loop size-inherit" },
1742
+ null,
1743
+ -1
1744
+ /* CACHED */
1745
+ )
1746
+ ])]),
1747
+ error: M(() => [...p[1] || (p[1] = [
1748
+ C(
1749
+ "i",
1750
+ { class: "i-ph:image-broken-duotone size-inherit" },
1751
+ null,
1752
+ -1
1753
+ /* CACHED */
1754
+ )
1755
+ ])]),
1756
+ _: 1
1757
+ /* STABLE */
1758
+ }, 8, ["src"])) : B("v-if", !0)
1759
+ ];
1760
+ }),
1761
+ _: 1
1762
+ /* STABLE */
1763
+ }, 8, ["text"])) : (x(), P(
1764
+ wt,
1765
+ { key: 1 },
1766
+ [
1767
+ r.value === "unocss" ? (x(), P(
1768
+ "i",
1769
+ {
1770
+ key: 0,
1771
+ class: V(["iconfont shrink-0 size-inherit", `${e.name} ${(g = e.name) == null ? void 0 : g.split("_")[0]}`]),
1772
+ style: N({ ...f.value, ...e.showBg ? c.value : {} })
1773
+ },
1774
+ null,
1775
+ 6
1776
+ /* CLASS, STYLE */
1777
+ )) : r.value === "iconify" ? (x(), L(O(Ve), {
1778
+ key: 1,
1779
+ icon: e.name,
1780
+ class: "shrink-0 size-inherit"
1781
+ }, null, 8, ["icon"])) : r.value === "svg" ? (x(), P("svg", {
1782
+ key: 2,
1783
+ class: "shrink-0 size-inherit",
1784
+ size: e.size,
1785
+ "aria-hidden": "true"
1786
+ }, [
1787
+ C("use", {
1788
+ "xlink:href": `#icon-${e.name}`
1789
+ }, null, 8, Kn)
1790
+ ], 8, Gn)) : r.value === "two-color-svg" ? (x(), P(
1791
+ "svg",
1792
+ {
1793
+ key: 3,
1794
+ class: "two-color-icon shrink-0 size-inherit",
1795
+ style: N(f.value),
1796
+ "aria-hidden": "true"
1797
+ },
1798
+ [
1799
+ C("use", {
1800
+ "xlink:href": `#${e.name}`
1801
+ }, null, 8, Yn)
1802
+ ],
1803
+ 4
1804
+ /* STYLE */
1805
+ )) : r.value === "img" ? (x(), L(O(We), {
1806
+ key: 4,
1807
+ src: e.name,
1808
+ class: "shrink-0"
1809
+ }, {
1810
+ loading: M(() => [...p[2] || (p[2] = [
1811
+ C(
1812
+ "i",
1813
+ { class: "i-line-md:loading-loop size-inherit" },
1814
+ null,
1815
+ -1
1816
+ /* CACHED */
1817
+ )
1818
+ ])]),
1819
+ error: M(() => [...p[3] || (p[3] = [
1820
+ C(
1821
+ "i",
1822
+ { class: "i-ph:image-broken-duotone size-inherit" },
1823
+ null,
1824
+ -1
1825
+ /* CACHED */
1826
+ )
1827
+ ])]),
1828
+ _: 1
1829
+ /* STABLE */
1830
+ }, 8, ["src"])) : B("v-if", !0)
1831
+ ],
1832
+ 64
1833
+ /* STABLE_FRAGMENT */
1834
+ ))
1835
+ ],
1836
+ 6
1837
+ /* CLASS, STYLE */
1838
+ );
1839
+ };
1840
+ }
1841
+ }), Xn = /* @__PURE__ */ Qe(Jn, [["__scopeId", "data-v-701f2359"]]), Zn = He(Xn), eo = { class: "align-center flex justify-between" }, to = { class: "align-center flex" }, no = { style: { overflow: "hidden" } }, oo = /* @__PURE__ */ Y({
1842
+ __name: "index",
1843
+ props: /* @__PURE__ */ It({
1844
+ showToggle: {
1845
+ type: Boolean,
1846
+ default: !0
1847
+ },
1848
+ title: {
1849
+ type: String,
1850
+ default: "信息"
1851
+ }
1852
+ }, {
1853
+ modelValue: {
1854
+ type: Boolean,
1855
+ default: !1
1856
+ },
1857
+ modelModifiers: {}
1858
+ }),
1859
+ emits: ["update:modelValue"],
1860
+ setup(e) {
1861
+ const n = bt(e, "modelValue"), t = () => {
1862
+ n.value = !n.value;
1863
+ };
1864
+ return (o, i) => {
1865
+ const r = le("el-button"), s = le("el-card");
1866
+ return x(), L(s, {
1867
+ class: V(["ik-collapse-box-card", n.value ? "hiddened" : ""]),
1868
+ shadow: "hover"
1869
+ }, {
1870
+ header: M(() => [
1871
+ C("div", eo, [
1872
+ B(" card header左侧内容 "),
1873
+ ee(o.$slots, "header-leaft", {}, () => [
1874
+ C(
1875
+ "span",
1876
+ null,
1877
+ Ce(e.title),
1878
+ 1
1879
+ /* TEXT */
1880
+ )
1881
+ ], !0),
1882
+ C("div", to, [
1883
+ B(" card header右侧内容 "),
1884
+ ee(o.$slots, "header-right", {}, void 0, !0),
1885
+ B(" 展开、收起按钮 "),
1886
+ e.showToggle ? (x(), L(r, {
1887
+ key: 0,
1888
+ link: "",
1889
+ class: "ml-[8px]",
1890
+ onClick: i[0] || (i[0] = (l) => t())
1891
+ }, {
1892
+ default: M(() => [
1893
+ kt(
1894
+ Ce(n.value ? "展开" : "收起") + " ",
1895
+ 1
1896
+ /* TEXT */
1897
+ ),
1898
+ xt(O(Zn), {
1899
+ name: "iksvg_shouqi",
1900
+ size: 16,
1901
+ class: V(n.value ? "toogle" : null)
1902
+ }, null, 8, ["class"])
1903
+ ]),
1904
+ _: 1
1905
+ /* STABLE */
1906
+ })) : B("v-if", !0)
1907
+ ])
1908
+ ])
1909
+ ]),
1910
+ default: M(() => [
1911
+ C("div", no, [
1912
+ ee(o.$slots, "default", {}, void 0, !0)
1913
+ ])
1914
+ ]),
1915
+ _: 3
1916
+ /* FORWARDED */
1917
+ }, 8, ["class"]);
1918
+ };
1919
+ }
1920
+ }), io = /* @__PURE__ */ Qe(oo, [["__scopeId", "data-v-f29f6bf5"]]), so = He(io);
1921
+ export {
1922
+ so as IkCollapseCard,
1923
+ so as default
1924
+ };