bitboss-ui 0.2.44 → 0.2.46

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 (146) hide show
  1. package/dist/index101.js +3 -3
  2. package/dist/index103.js +2 -2
  3. package/dist/index109.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index111.js +4 -4
  6. package/dist/index113.js +1 -1
  7. package/dist/index116.js +1 -1
  8. package/dist/index117.js +1 -1
  9. package/dist/index118.js +1 -1
  10. package/dist/index119.js +1 -1
  11. package/dist/index121.js +1 -1
  12. package/dist/index125.js +1 -1
  13. package/dist/index126.js +1 -1
  14. package/dist/index127.js +1 -1
  15. package/dist/index131.js +2 -2
  16. package/dist/index15.js +8 -8
  17. package/dist/index17.js +9 -9
  18. package/dist/index19.js +3 -3
  19. package/dist/index196.js +2 -2
  20. package/dist/index196.js.map +1 -1
  21. package/dist/index197.js +4 -3
  22. package/dist/index197.js.map +1 -1
  23. package/dist/index198.js +5 -35
  24. package/dist/index198.js.map +1 -1
  25. package/dist/index199.js +16 -6
  26. package/dist/index199.js.map +1 -1
  27. package/dist/index200.js +16 -5
  28. package/dist/index200.js.map +1 -1
  29. package/dist/index201.js +18 -15
  30. package/dist/index201.js.map +1 -1
  31. package/dist/index202.js +17 -13
  32. package/dist/index202.js.map +1 -1
  33. package/dist/index203.js +28 -18
  34. package/dist/index203.js.map +1 -1
  35. package/dist/index204.js +8 -20
  36. package/dist/index204.js.map +1 -1
  37. package/dist/index205.js +2 -29
  38. package/dist/index205.js.map +1 -1
  39. package/dist/index206.js +368 -8
  40. package/dist/index206.js.map +1 -1
  41. package/dist/index207.js +134 -2
  42. package/dist/index207.js.map +1 -1
  43. package/dist/index208.js +2 -2
  44. package/dist/index208.js.map +1 -1
  45. package/dist/index209.js +174 -2
  46. package/dist/index209.js.map +1 -1
  47. package/dist/index21.js +2 -2
  48. package/dist/index210.js +23 -2
  49. package/dist/index210.js.map +1 -1
  50. package/dist/index211.js +350 -345
  51. package/dist/index211.js.map +1 -1
  52. package/dist/index212.js +2 -134
  53. package/dist/index212.js.map +1 -1
  54. package/dist/index213.js +3 -174
  55. package/dist/index213.js.map +1 -1
  56. package/dist/index214.js +3 -23
  57. package/dist/index214.js.map +1 -1
  58. package/dist/index215.js +225 -363
  59. package/dist/index215.js.map +1 -1
  60. package/dist/index216.js +2 -235
  61. package/dist/index216.js.map +1 -1
  62. package/dist/index217.js +2 -4
  63. package/dist/index217.js.map +1 -1
  64. package/dist/index218.js +3 -10
  65. package/dist/index218.js.map +1 -1
  66. package/dist/index219.js +35 -2
  67. package/dist/index219.js.map +1 -1
  68. package/dist/index220.js +6 -3
  69. package/dist/index220.js.map +1 -1
  70. package/dist/index221.js +10 -3
  71. package/dist/index221.js.map +1 -1
  72. package/dist/index222.js +9 -6
  73. package/dist/index222.js.map +1 -1
  74. package/dist/index223.js +120 -16
  75. package/dist/index223.js.map +1 -1
  76. package/dist/index224.js +6 -9
  77. package/dist/index224.js.map +1 -1
  78. package/dist/index225.js +16 -120
  79. package/dist/index225.js.map +1 -1
  80. package/dist/index226.js +3 -434
  81. package/dist/index226.js.map +1 -1
  82. package/dist/index227.js +294 -88
  83. package/dist/index227.js.map +1 -1
  84. package/dist/index228.js +6 -200
  85. package/dist/index228.js.map +1 -1
  86. package/dist/index229.js +2 -295
  87. package/dist/index229.js.map +1 -1
  88. package/dist/index23.js +1 -1
  89. package/dist/index230.js +2 -6
  90. package/dist/index230.js.map +1 -1
  91. package/dist/index231.js +2 -2
  92. package/dist/index235.js +2 -2
  93. package/dist/index236.js +117 -2
  94. package/dist/index236.js.map +1 -1
  95. package/dist/index237.js +106 -2
  96. package/dist/index237.js.map +1 -1
  97. package/dist/index238.js +218 -111
  98. package/dist/index238.js.map +1 -1
  99. package/dist/index239.js +246 -94
  100. package/dist/index239.js.map +1 -1
  101. package/dist/index240.js +1 -1
  102. package/dist/index241.js +2 -69
  103. package/dist/index241.js.map +1 -1
  104. package/dist/index242.js +5 -160
  105. package/dist/index242.js.map +1 -1
  106. package/dist/index243.js +162 -1
  107. package/dist/index243.js.map +1 -1
  108. package/dist/index244.js +1 -7
  109. package/dist/index244.js.map +1 -1
  110. package/dist/index245.js +69 -2
  111. package/dist/index245.js.map +1 -1
  112. package/dist/index246.js +434 -3
  113. package/dist/index246.js.map +1 -1
  114. package/dist/index247.js +83 -218
  115. package/dist/index247.js.map +1 -1
  116. package/dist/index248.js +200 -258
  117. package/dist/index248.js.map +1 -1
  118. package/dist/index249.js +1 -1
  119. package/dist/index25.js +2 -2
  120. package/dist/index250.js +15 -4
  121. package/dist/index250.js.map +1 -1
  122. package/dist/index251.js +4 -4
  123. package/dist/index251.js.map +1 -1
  124. package/dist/index252.js +4 -61
  125. package/dist/index252.js.map +1 -1
  126. package/dist/index253.js +60 -14
  127. package/dist/index253.js.map +1 -1
  128. package/dist/index254.js +3 -2
  129. package/dist/index254.js.map +1 -1
  130. package/dist/index255.js +2 -3
  131. package/dist/index255.js.map +1 -1
  132. package/dist/index29.js +3 -3
  133. package/dist/index31.js +74 -74
  134. package/dist/index31.js.map +1 -1
  135. package/dist/index33.js +2 -2
  136. package/dist/index35.js +2 -2
  137. package/dist/index47.js +1 -1
  138. package/dist/index49.js +1 -1
  139. package/dist/index65.js +5 -5
  140. package/dist/index69.js +2 -2
  141. package/dist/index72.js +1 -1
  142. package/dist/index75.js +1 -1
  143. package/dist/index79.js +4 -4
  144. package/dist/index81.js +1 -1
  145. package/dist/style.css +1 -1
  146. package/package.json +1 -1
package/dist/index214.js CHANGED
@@ -1,26 +1,6 @@
1
- const e = {
2
- inert: ":not([inert]):not([inert] *)",
3
- negTabIndex: ':not([tabindex^="-"])',
4
- disabled: ":not(:disabled)"
5
- }, n = [
6
- `a[href]${e.inert}${e.negTabIndex}`,
7
- `area[href]${e.inert}${e.negTabIndex}`,
8
- `input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
9
- `input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
10
- `select${e.inert}${e.negTabIndex}${e.disabled}`,
11
- `textarea${e.inert}${e.negTabIndex}${e.disabled}`,
12
- `button${e.inert}${e.negTabIndex}${e.disabled}`,
13
- `details${e.inert} > summary:first-of-type${e.negTabIndex}`,
14
- // Discard until Firefox supports `:has()`
15
- // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
16
- // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
17
- `iframe${e.inert}${e.negTabIndex}`,
18
- `audio[controls]${e.inert}${e.negTabIndex}`,
19
- `video[controls]${e.inert}${e.negTabIndex}`,
20
- `[contenteditable]${e.inert}${e.negTabIndex}`,
21
- `[tabindex]${e.inert}${e.negTabIndex}`
22
- ];
1
+ import o from "./index239.js";
2
+ const e = o;
23
3
  export {
24
- n as default
4
+ e as snakeCase
25
5
  };
26
6
  //# sourceMappingURL=index214.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index214.js","sources":["../node_modules/focusable-selectors/index.js"],"sourcesContent":["const not = {\n inert: ':not([inert]):not([inert] *)',\n negTabIndex: ':not([tabindex^=\"-\"])',\n disabled: ':not(:disabled)',\n}\n\nexport default [\n `a[href]${not.inert}${not.negTabIndex}`,\n `area[href]${not.inert}${not.negTabIndex}`,\n `input:not([type=\"hidden\"]):not([type=\"radio\"])${not.inert}${not.negTabIndex}${not.disabled}`,\n `input[type=\"radio\"]${not.inert}${not.negTabIndex}${not.disabled}`,\n `select${not.inert}${not.negTabIndex}${not.disabled}`,\n `textarea${not.inert}${not.negTabIndex}${not.disabled}`,\n `button${not.inert}${not.negTabIndex}${not.disabled}`,\n `details${not.inert} > summary:first-of-type${not.negTabIndex}`,\n // Discard until Firefox supports `:has()`\n // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12\n // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,\n `iframe${not.inert}${not.negTabIndex}`,\n `audio[controls]${not.inert}${not.negTabIndex}`,\n `video[controls]${not.inert}${not.negTabIndex}`,\n `[contenteditable]${not.inert}${not.negTabIndex}`,\n `[tabindex]${not.inert}${not.negTabIndex}`,\n]\n"],"names":["not","selectors"],"mappings":"AAAA,MAAMA,IAAM;AAAA,EACV,OAAO;AAAA,EACP,aAAa;AAAA,EACb,UAAU;AACZ,GAEeC,IAAA;AAAA,EACb,UAAUD,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EACrC,aAAaA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EACxC,iDAAiDA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EAC3F,sBAAsBA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EAChE,SAASA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EACnD,WAAWA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EACrD,SAASA,EAAI,KAAK,GAAGA,EAAI,WAAW,GAAGA,EAAI,QAAQ;AAAA,EACnD,UAAUA,EAAI,KAAK,2BAA2BA,EAAI,WAAW;AAAA;AAAA;AAAA;AAAA,EAI7D,SAASA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EACpC,kBAAkBA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EAC7C,kBAAkBA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EAC7C,oBAAoBA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAAA,EAC/C,aAAaA,EAAI,KAAK,GAAGA,EAAI,WAAW;AAC1C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index214.js","sources":["../src/utilities/functions/snakeCase.ts"],"sourcesContent":["import s from 'lodash.snakecase';\n\nexport const snakeCase = s;\n"],"names":["snakeCase","s"],"mappings":";AAEO,MAAMA,IAAYC;"}
package/dist/index215.js CHANGED
@@ -1,376 +1,238 @@
1
- import { evaluate as j, getSide as M, getOppositePlacement as G, getExpandedPlacements as J, getOppositeAxisPlacements as K, getAlignmentSides as N, getAlignment as F, getSideAxis as Y, clamp as B, getAlignmentAxis as z, getPaddingObject as H, rectToClientRect as $, getOppositeAxis as Q, getAxisLength as I, min as X } from "./index238.js";
2
- function _(o, i, m) {
3
- let {
4
- reference: n,
5
- floating: r
6
- } = o;
7
- const e = Y(i), l = z(i), a = I(l), g = M(i), x = e === "y", d = n.x + n.width / 2 - r.width / 2, c = n.y + n.height / 2 - r.height / 2, f = n[a] / 2 - r[a] / 2;
8
- let t;
9
- switch (g) {
10
- case "top":
11
- t = {
12
- x: d,
13
- y: n.y - r.height
14
- };
15
- break;
16
- case "bottom":
17
- t = {
18
- x: d,
19
- y: n.y + n.height
20
- };
21
- break;
22
- case "right":
23
- t = {
24
- x: n.x + n.width,
25
- y: c
26
- };
27
- break;
28
- case "left":
29
- t = {
30
- x: n.x - r.width,
31
- y: c
32
- };
33
- break;
34
- default:
35
- t = {
36
- x: n.x,
37
- y: n.y
38
- };
1
+ import { commonjsGlobal as f, getDefaultExportFromCjs as $ } from "./index228.js";
2
+ var D = "Expected a function", O = "__lodash_hash_undefined__", j = 1 / 0, F = "[object Function]", N = "[object GeneratorFunction]", H = "[object Symbol]", G = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, R = /^\w*$/, A = /^\./, M = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, K = /[\\^$.*+?()[\]{}|]/g, L = /\\(\\)?/g, z = /^\[object .+?Constructor\]$/, U = typeof f == "object" && f && f.Object === Object && f, q = typeof self == "object" && self && self.Object === Object && self, d = U || q || Function("return this")();
3
+ function J(t, e) {
4
+ return t == null ? void 0 : t[e];
5
+ }
6
+ function V(t) {
7
+ var e = !1;
8
+ if (t != null && typeof t.toString != "function")
9
+ try {
10
+ e = !!(t + "");
11
+ } catch {
12
+ }
13
+ return e;
14
+ }
15
+ var X = Array.prototype, Y = Function.prototype, w = Object.prototype, l = d["__core-js_shared__"], m = function() {
16
+ var t = /[^.]+$/.exec(l && l.keys && l.keys.IE_PROTO || "");
17
+ return t ? "Symbol(src)_1." + t : "";
18
+ }(), x = Y.toString, _ = w.hasOwnProperty, P = w.toString, B = RegExp(
19
+ "^" + x.call(_).replace(K, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
20
+ ), C = d.Symbol, Q = X.splice, W = T(d, "Map"), u = T(Object, "create"), v = C ? C.prototype : void 0, S = v ? v.toString : void 0;
21
+ function a(t) {
22
+ var e = -1, r = t ? t.length : 0;
23
+ for (this.clear(); ++e < r; ) {
24
+ var n = t[e];
25
+ this.set(n[0], n[1]);
39
26
  }
40
- switch (F(i)) {
41
- case "start":
42
- t[l] -= f * (m && x ? -1 : 1);
43
- break;
44
- case "end":
45
- t[l] += f * (m && x ? -1 : 1);
46
- break;
27
+ }
28
+ function Z() {
29
+ this.__data__ = u ? u(null) : {};
30
+ }
31
+ function k(t) {
32
+ return this.has(t) && delete this.__data__[t];
33
+ }
34
+ function tt(t) {
35
+ var e = this.__data__;
36
+ if (u) {
37
+ var r = e[t];
38
+ return r === O ? void 0 : r;
47
39
  }
48
- return t;
49
- }
50
- const tt = async (o, i, m) => {
51
- const {
52
- placement: n = "bottom",
53
- strategy: r = "absolute",
54
- middleware: e = [],
55
- platform: l
56
- } = m, a = e.filter(Boolean), g = await (l.isRTL == null ? void 0 : l.isRTL(i));
57
- let x = await l.getElementRects({
58
- reference: o,
59
- floating: i,
60
- strategy: r
61
- }), {
62
- x: d,
63
- y: c
64
- } = _(x, n, g), f = n, t = {}, s = 0;
65
- for (let w = 0; w < a.length; w++) {
66
- const {
67
- name: u,
68
- fn: p
69
- } = a[w], {
70
- x: h,
71
- y,
72
- data: P,
73
- reset: v
74
- } = await p({
75
- x: d,
76
- y: c,
77
- initialPlacement: n,
78
- placement: f,
79
- strategy: r,
80
- middlewareData: t,
81
- rects: x,
82
- platform: l,
83
- elements: {
84
- reference: o,
85
- floating: i
86
- }
87
- });
88
- d = h ?? d, c = y ?? c, t = {
89
- ...t,
90
- [u]: {
91
- ...t[u],
92
- ...P
93
- }
94
- }, v && s <= 50 && (s++, typeof v == "object" && (v.placement && (f = v.placement), v.rects && (x = v.rects === !0 ? await l.getElementRects({
95
- reference: o,
96
- floating: i,
97
- strategy: r
98
- }) : v.rects), {
99
- x: d,
100
- y: c
101
- } = _(x, f, g)), w = -1);
40
+ return _.call(e, t) ? e[t] : void 0;
41
+ }
42
+ function et(t) {
43
+ var e = this.__data__;
44
+ return u ? e[t] !== void 0 : _.call(e, t);
45
+ }
46
+ function rt(t, e) {
47
+ var r = this.__data__;
48
+ return r[t] = u && e === void 0 ? O : e, this;
49
+ }
50
+ a.prototype.clear = Z;
51
+ a.prototype.delete = k;
52
+ a.prototype.get = tt;
53
+ a.prototype.has = et;
54
+ a.prototype.set = rt;
55
+ function i(t) {
56
+ var e = -1, r = t ? t.length : 0;
57
+ for (this.clear(); ++e < r; ) {
58
+ var n = t[e];
59
+ this.set(n[0], n[1]);
102
60
  }
103
- return {
104
- x: d,
105
- y: c,
106
- placement: f,
107
- strategy: r,
108
- middlewareData: t
109
- };
110
- };
111
- async function W(o, i) {
112
- var m;
113
- i === void 0 && (i = {});
114
- const {
115
- x: n,
116
- y: r,
117
- platform: e,
118
- rects: l,
119
- elements: a,
120
- strategy: g
121
- } = o, {
122
- boundary: x = "clippingAncestors",
123
- rootBoundary: d = "viewport",
124
- elementContext: c = "floating",
125
- altBoundary: f = !1,
126
- padding: t = 0
127
- } = j(i, o), s = H(t), u = a[f ? c === "floating" ? "reference" : "floating" : c], p = $(await e.getClippingRect({
128
- element: (m = await (e.isElement == null ? void 0 : e.isElement(u))) == null || m ? u : u.contextElement || await (e.getDocumentElement == null ? void 0 : e.getDocumentElement(a.floating)),
129
- boundary: x,
130
- rootBoundary: d,
131
- strategy: g
132
- })), h = c === "floating" ? {
133
- ...l.floating,
134
- x: n,
135
- y: r
136
- } : l.reference, y = await (e.getOffsetParent == null ? void 0 : e.getOffsetParent(a.floating)), P = await (e.isElement == null ? void 0 : e.isElement(y)) ? await (e.getScale == null ? void 0 : e.getScale(y)) || {
137
- x: 1,
138
- y: 1
139
- } : {
140
- x: 1,
141
- y: 1
142
- }, v = $(e.convertOffsetParentRelativeRectToViewportRelativeRect ? await e.convertOffsetParentRelativeRectToViewportRelativeRect({
143
- elements: a,
144
- rect: h,
145
- offsetParent: y,
146
- strategy: g
147
- }) : h);
148
- return {
149
- top: (p.top - v.top + s.top) / P.y,
150
- bottom: (v.bottom - p.bottom + s.bottom) / P.y,
151
- left: (p.left - v.left + s.left) / P.x,
152
- right: (v.right - p.right + s.right) / P.x
153
- };
154
61
  }
155
- const et = (o) => ({
156
- name: "arrow",
157
- options: o,
158
- async fn(i) {
159
- const {
160
- x: m,
161
- y: n,
162
- placement: r,
163
- rects: e,
164
- platform: l,
165
- elements: a,
166
- middlewareData: g
167
- } = i, {
168
- element: x,
169
- padding: d = 0
170
- } = j(o, i) || {};
171
- if (x == null)
172
- return {};
173
- const c = H(d), f = {
174
- x: m,
175
- y: n
176
- }, t = z(r), s = I(t), w = await l.getDimensions(x), u = t === "y", p = u ? "top" : "left", h = u ? "bottom" : "right", y = u ? "clientHeight" : "clientWidth", P = e.reference[s] + e.reference[t] - f[t] - e.floating[s], v = f[t] - e.reference[t], D = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(x));
177
- let O = D ? D[y] : 0;
178
- (!O || !await (l.isElement == null ? void 0 : l.isElement(D))) && (O = a.floating[y] || e.floating[s]);
179
- const E = P / 2 - v / 2, S = O / 2 - w[s] / 2 - 1, T = X(c[p], S), L = X(c[h], S), b = T, V = O - w[s] - L, A = O / 2 - w[s] / 2 + E, R = B(b, A, V), k = !g.arrow && F(r) != null && A !== R && e.reference[s] / 2 - (A < b ? T : L) - w[s] / 2 < 0, C = k ? A < b ? A - b : A - V : 0;
180
- return {
181
- [t]: f[t] + C,
182
- data: {
183
- [t]: R,
184
- centerOffset: A - R - C,
185
- ...k && {
186
- alignmentOffset: C
187
- }
188
- },
189
- reset: k
190
- };
62
+ function nt() {
63
+ this.__data__ = [];
64
+ }
65
+ function at(t) {
66
+ var e = this.__data__, r = h(e, t);
67
+ if (r < 0)
68
+ return !1;
69
+ var n = e.length - 1;
70
+ return r == n ? e.pop() : Q.call(e, r, 1), !0;
71
+ }
72
+ function ot(t) {
73
+ var e = this.__data__, r = h(e, t);
74
+ return r < 0 ? void 0 : e[r][1];
75
+ }
76
+ function it(t) {
77
+ return h(this.__data__, t) > -1;
78
+ }
79
+ function ct(t, e) {
80
+ var r = this.__data__, n = h(r, t);
81
+ return n < 0 ? r.push([t, e]) : r[n][1] = e, this;
82
+ }
83
+ i.prototype.clear = nt;
84
+ i.prototype.delete = at;
85
+ i.prototype.get = ot;
86
+ i.prototype.has = it;
87
+ i.prototype.set = ct;
88
+ function o(t) {
89
+ var e = -1, r = t ? t.length : 0;
90
+ for (this.clear(); ++e < r; ) {
91
+ var n = t[e];
92
+ this.set(n[0], n[1]);
191
93
  }
192
- }), nt = function(o) {
193
- return o === void 0 && (o = {}), {
194
- name: "flip",
195
- options: o,
196
- async fn(i) {
197
- var m, n;
198
- const {
199
- placement: r,
200
- middlewareData: e,
201
- rects: l,
202
- initialPlacement: a,
203
- platform: g,
204
- elements: x
205
- } = i, {
206
- mainAxis: d = !0,
207
- crossAxis: c = !0,
208
- fallbackPlacements: f,
209
- fallbackStrategy: t = "bestFit",
210
- fallbackAxisSideDirection: s = "none",
211
- flipAlignment: w = !0,
212
- ...u
213
- } = j(o, i);
214
- if ((m = e.arrow) != null && m.alignmentOffset)
215
- return {};
216
- const p = M(r), h = M(a) === a, y = await (g.isRTL == null ? void 0 : g.isRTL(x.floating)), P = f || (h || !w ? [G(a)] : J(a));
217
- !f && s !== "none" && P.push(...K(a, w, s, y));
218
- const v = [a, ...P], D = await W(i, u), O = [];
219
- let E = ((n = e.flip) == null ? void 0 : n.overflows) || [];
220
- if (d && O.push(D[p]), c) {
221
- const b = N(r, l, y);
222
- O.push(D[b[0]], D[b[1]]);
223
- }
224
- if (E = [...E, {
225
- placement: r,
226
- overflows: O
227
- }], !O.every((b) => b <= 0)) {
228
- var S, T;
229
- const b = (((S = e.flip) == null ? void 0 : S.index) || 0) + 1, V = v[b];
230
- if (V)
231
- return {
232
- data: {
233
- index: b,
234
- overflows: E
235
- },
236
- reset: {
237
- placement: V
238
- }
239
- };
240
- let A = (T = E.filter((R) => R.overflows[0] <= 0).sort((R, k) => R.overflows[1] - k.overflows[1])[0]) == null ? void 0 : T.placement;
241
- if (!A)
242
- switch (t) {
243
- case "bestFit": {
244
- var L;
245
- const R = (L = E.map((k) => [k.placement, k.overflows.filter((C) => C > 0).reduce((C, q) => C + q, 0)]).sort((k, C) => k[1] - C[1])[0]) == null ? void 0 : L[0];
246
- R && (A = R);
247
- break;
248
- }
249
- case "initialPlacement":
250
- A = a;
251
- break;
252
- }
253
- if (r !== A)
254
- return {
255
- reset: {
256
- placement: A
257
- }
258
- };
259
- }
260
- return {};
261
- }
262
- };
263
- };
264
- async function U(o, i) {
265
- const {
266
- placement: m,
267
- platform: n,
268
- elements: r
269
- } = o, e = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), l = M(m), a = F(m), g = Y(m) === "y", x = ["left", "top"].includes(l) ? -1 : 1, d = e && g ? -1 : 1, c = j(i, o);
270
- let {
271
- mainAxis: f,
272
- crossAxis: t,
273
- alignmentAxis: s
274
- } = typeof c == "number" ? {
275
- mainAxis: c,
276
- crossAxis: 0,
277
- alignmentAxis: null
278
- } : {
279
- mainAxis: 0,
280
- crossAxis: 0,
281
- alignmentAxis: null,
282
- ...c
283
- };
284
- return a && typeof s == "number" && (t = a === "end" ? s * -1 : s), g ? {
285
- x: t * d,
286
- y: f * x
287
- } : {
288
- x: f * x,
289
- y: t * d
94
+ }
95
+ function st() {
96
+ this.__data__ = {
97
+ hash: new a(),
98
+ map: new (W || i)(),
99
+ string: new a()
290
100
  };
291
101
  }
292
- const it = function(o) {
293
- return o === void 0 && (o = 0), {
294
- name: "offset",
295
- options: o,
296
- async fn(i) {
297
- var m, n;
298
- const {
299
- x: r,
300
- y: e,
301
- placement: l,
302
- middlewareData: a
303
- } = i, g = await U(i, o);
304
- return l === ((m = a.offset) == null ? void 0 : m.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
305
- x: r + g.x,
306
- y: e + g.y,
307
- data: {
308
- ...g,
309
- placement: l
310
- }
311
- };
102
+ function ut(t) {
103
+ return p(this, t).delete(t);
104
+ }
105
+ function ft(t) {
106
+ return p(this, t).get(t);
107
+ }
108
+ function ht(t) {
109
+ return p(this, t).has(t);
110
+ }
111
+ function pt(t, e) {
112
+ return p(this, t).set(t, e), this;
113
+ }
114
+ o.prototype.clear = st;
115
+ o.prototype.delete = ut;
116
+ o.prototype.get = ft;
117
+ o.prototype.has = ht;
118
+ o.prototype.set = pt;
119
+ function h(t, e) {
120
+ for (var r = t.length; r--; )
121
+ if (Ot(t[r][0], e))
122
+ return r;
123
+ return -1;
124
+ }
125
+ function lt(t, e) {
126
+ e = gt(e, t) ? [e] : yt(e);
127
+ for (var r = 0, n = e.length; t != null && r < n; )
128
+ t = t[vt(e[r++])];
129
+ return r && r == n ? t : void 0;
130
+ }
131
+ function dt(t) {
132
+ if (!E(t) || mt(t))
133
+ return !1;
134
+ var e = jt(t) || V(t) ? B : z;
135
+ return e.test(St(t));
136
+ }
137
+ function _t(t) {
138
+ if (typeof t == "string")
139
+ return t;
140
+ if (g(t))
141
+ return S ? S.call(t) : "";
142
+ var e = t + "";
143
+ return e == "0" && 1 / t == -j ? "-0" : e;
144
+ }
145
+ function yt(t) {
146
+ return I(t) ? t : Ct(t);
147
+ }
148
+ function p(t, e) {
149
+ var r = t.__data__;
150
+ return bt(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
151
+ }
152
+ function T(t, e) {
153
+ var r = J(t, e);
154
+ return dt(r) ? r : void 0;
155
+ }
156
+ function gt(t, e) {
157
+ if (I(t))
158
+ return !1;
159
+ var r = typeof t;
160
+ return r == "number" || r == "symbol" || r == "boolean" || t == null || g(t) ? !0 : R.test(t) || !G.test(t) || e != null && t in Object(e);
161
+ }
162
+ function bt(t) {
163
+ var e = typeof t;
164
+ return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
165
+ }
166
+ function mt(t) {
167
+ return !!m && m in t;
168
+ }
169
+ var Ct = y(function(t) {
170
+ t = xt(t);
171
+ var e = [];
172
+ return A.test(t) && e.push(""), t.replace(M, function(r, n, c, s) {
173
+ e.push(c ? s.replace(L, "$1") : n || r);
174
+ }), e;
175
+ });
176
+ function vt(t) {
177
+ if (typeof t == "string" || g(t))
178
+ return t;
179
+ var e = t + "";
180
+ return e == "0" && 1 / t == -j ? "-0" : e;
181
+ }
182
+ function St(t) {
183
+ if (t != null) {
184
+ try {
185
+ return x.call(t);
186
+ } catch {
312
187
  }
313
- };
314
- }, ot = function(o) {
315
- return o === void 0 && (o = {}), {
316
- name: "shift",
317
- options: o,
318
- async fn(i) {
319
- const {
320
- x: m,
321
- y: n,
322
- placement: r
323
- } = i, {
324
- mainAxis: e = !0,
325
- crossAxis: l = !1,
326
- limiter: a = {
327
- fn: (u) => {
328
- let {
329
- x: p,
330
- y: h
331
- } = u;
332
- return {
333
- x: p,
334
- y: h
335
- };
336
- }
337
- },
338
- ...g
339
- } = j(o, i), x = {
340
- x: m,
341
- y: n
342
- }, d = await W(i, g), c = Y(M(r)), f = Q(c);
343
- let t = x[f], s = x[c];
344
- if (e) {
345
- const u = f === "y" ? "top" : "left", p = f === "y" ? "bottom" : "right", h = t + d[u], y = t - d[p];
346
- t = B(h, t, y);
347
- }
348
- if (l) {
349
- const u = c === "y" ? "top" : "left", p = c === "y" ? "bottom" : "right", h = s + d[u], y = s - d[p];
350
- s = B(h, s, y);
351
- }
352
- const w = a.fn({
353
- ...i,
354
- [f]: t,
355
- [c]: s
356
- });
357
- return {
358
- ...w,
359
- data: {
360
- x: w.x - m,
361
- y: w.y - n
362
- }
363
- };
188
+ try {
189
+ return t + "";
190
+ } catch {
364
191
  }
192
+ }
193
+ return "";
194
+ }
195
+ function y(t, e) {
196
+ if (typeof t != "function" || e && typeof e != "function")
197
+ throw new TypeError(D);
198
+ var r = function() {
199
+ var n = arguments, c = e ? e.apply(this, n) : n[0], s = r.cache;
200
+ if (s.has(c))
201
+ return s.get(c);
202
+ var b = t.apply(this, n);
203
+ return r.cache = s.set(c, b), b;
365
204
  };
366
- };
205
+ return r.cache = new (y.Cache || o)(), r;
206
+ }
207
+ y.Cache = o;
208
+ function Ot(t, e) {
209
+ return t === e || t !== t && e !== e;
210
+ }
211
+ var I = Array.isArray;
212
+ function jt(t) {
213
+ var e = E(t) ? P.call(t) : "";
214
+ return e == F || e == N;
215
+ }
216
+ function E(t) {
217
+ var e = typeof t;
218
+ return !!t && (e == "object" || e == "function");
219
+ }
220
+ function wt(t) {
221
+ return !!t && typeof t == "object";
222
+ }
223
+ function g(t) {
224
+ return typeof t == "symbol" || wt(t) && P.call(t) == H;
225
+ }
226
+ function xt(t) {
227
+ return t == null ? "" : _t(t);
228
+ }
229
+ function Pt(t, e, r) {
230
+ var n = t == null ? void 0 : lt(t, e);
231
+ return n === void 0 ? r : n;
232
+ }
233
+ var Tt = Pt;
234
+ const Et = /* @__PURE__ */ $(Tt);
367
235
  export {
368
- et as arrow,
369
- tt as computePosition,
370
- W as detectOverflow,
371
- nt as flip,
372
- it as offset,
373
- $ as rectToClientRect,
374
- ot as shift
236
+ Et as default
375
237
  };
376
238
  //# sourceMappingURL=index215.js.map