@glodon-aiot/agent-cli-ui 3.0.6 → 3.0.7-beta.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 (70) hide show
  1. package/dist/es/Dialog/AgentChat/index.mjs +454 -434
  2. package/dist/es/_virtual/lib.mjs +4 -0
  3. package/dist/es/_virtual/ua-parser.min.mjs +4 -0
  4. package/dist/es/components/Markdown/ATag/index.mjs +47 -0
  5. package/dist/es/components/Markdown/Image/index.mjs +56 -22
  6. package/dist/es/components/Markdown/Video/index.mjs +22 -0
  7. package/dist/es/components/Markdown/index.mjs +41 -37
  8. package/dist/es/index.mjs +15 -15
  9. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
  10. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
  11. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
  12. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
  13. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
  14. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
  15. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
  16. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
  17. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
  18. package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +16 -0
  19. package/dist/es/node_modules/ahooks/es/useSize/index.mjs +34 -0
  20. package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +13 -0
  21. package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
  22. package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
  23. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
  24. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
  25. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
  26. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
  27. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
  28. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +172 -0
  29. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +81 -0
  30. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
  31. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
  32. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
  33. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
  34. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
  35. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
  36. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
  37. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
  38. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
  39. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
  40. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
  41. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
  42. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
  43. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
  44. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
  45. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
  46. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
  47. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +46 -0
  48. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
  49. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
  50. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
  51. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
  52. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
  53. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
  54. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
  55. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
  56. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
  57. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
  58. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
  59. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
  60. package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +11 -11
  61. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
  62. package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +294 -0
  63. package/dist/es/node_modules/tslib/tslib.es6.mjs +56 -7
  64. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +120 -0
  65. package/dist/es/utils/index.mjs +37 -22
  66. package/dist/lib/index.js +50 -48
  67. package/dist/src/components/Markdown/ATag/index.d.ts +3 -0
  68. package/dist/src/components/Markdown/Video/index.d.ts +3 -0
  69. package/dist/src/utils/index.d.ts +1 -0
  70. package/package.json +3 -3
@@ -0,0 +1,104 @@
1
+ let m = r();
2
+ const n = (e) => u(e, m);
3
+ let p = r();
4
+ n.write = (e) => u(e, p);
5
+ let s = r();
6
+ n.onStart = (e) => u(e, s);
7
+ let w = r();
8
+ n.onFrame = (e) => u(e, w);
9
+ let y = r();
10
+ n.onFinish = (e) => u(e, y);
11
+ let d = [];
12
+ n.setTimeout = (e, t) => {
13
+ let l = n.now() + t, a = () => {
14
+ let f = d.findIndex((L) => L.cancel == a);
15
+ ~f && d.splice(f, 1), i -= ~f ? 1 : 0;
16
+ }, c = {
17
+ time: l,
18
+ handler: e,
19
+ cancel: a
20
+ };
21
+ return d.splice(Q(l), 0, c), i += 1, S(), c;
22
+ };
23
+ let Q = (e) => ~(~d.findIndex((t) => t.time > e) || ~d.length);
24
+ n.cancel = (e) => {
25
+ s.delete(e), w.delete(e), y.delete(e), m.delete(e), p.delete(e);
26
+ };
27
+ n.sync = (e) => {
28
+ h = !0, n.batchedUpdates(e), h = !1;
29
+ };
30
+ n.throttle = (e) => {
31
+ let t;
32
+ function l() {
33
+ try {
34
+ e(...t);
35
+ } finally {
36
+ t = null;
37
+ }
38
+ }
39
+ function a(...c) {
40
+ t = c, n.onStart(l);
41
+ }
42
+ return a.handler = e, a.cancel = () => {
43
+ s.delete(l), t = null;
44
+ }, a;
45
+ };
46
+ let F = typeof window != "undefined" ? window.requestAnimationFrame : () => {
47
+ };
48
+ n.use = (e) => F = e;
49
+ n.now = typeof performance != "undefined" ? () => performance.now() : Date.now;
50
+ n.batchedUpdates = (e) => e();
51
+ n.catch = console.error;
52
+ n.frameLoop = "always";
53
+ n.advance = () => {
54
+ n.frameLoop !== "demand" ? console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand") : x();
55
+ };
56
+ let o = -1, i = 0, h = !1;
57
+ function u(e, t) {
58
+ h ? (t.delete(e), e(0)) : (t.add(e), S());
59
+ }
60
+ function S() {
61
+ o < 0 && (o = 0, n.frameLoop !== "demand" && F(v));
62
+ }
63
+ function b() {
64
+ o = -1;
65
+ }
66
+ function v() {
67
+ ~o && (F(v), n.batchedUpdates(x));
68
+ }
69
+ function x() {
70
+ let e = o;
71
+ o = n.now();
72
+ let t = Q(o);
73
+ if (t && (z(d.splice(0, t), (l) => l.handler()), i -= t), !i) {
74
+ b();
75
+ return;
76
+ }
77
+ s.flush(), m.flush(e ? Math.min(64, o - e) : 16.667), w.flush(), p.flush(), y.flush();
78
+ }
79
+ function r() {
80
+ let e = /* @__PURE__ */ new Set(), t = e;
81
+ return {
82
+ add(l) {
83
+ i += t == e && !e.has(l) ? 1 : 0, e.add(l);
84
+ },
85
+ delete(l) {
86
+ return i -= t == e && e.has(l) ? 1 : 0, e.delete(l);
87
+ },
88
+ flush(l) {
89
+ t.size && (e = /* @__PURE__ */ new Set(), i -= t.size, z(t, (a) => a(l) && e.add(a)), i += e.size, t = e);
90
+ }
91
+ };
92
+ }
93
+ function z(e, t) {
94
+ e.forEach((l) => {
95
+ try {
96
+ t(l);
97
+ } catch (a) {
98
+ n.catch(a);
99
+ }
100
+ });
101
+ }
102
+ export {
103
+ n as raf
104
+ };
@@ -0,0 +1,568 @@
1
+ import { raf as d } from "../../rafz/dist/react-spring-rafz.esm.mjs";
2
+ import { useState as Z, useRef as Q, useEffect as E, useLayoutEffect as ne } from "react";
3
+ function re() {
4
+ }
5
+ const Ve = (e, f, t) => Object.defineProperty(e, f, {
6
+ value: t,
7
+ writable: !0,
8
+ configurable: !0
9
+ }), l = {
10
+ arr: Array.isArray,
11
+ obj: (e) => !!e && e.constructor.name === "Object",
12
+ fun: (e) => typeof e == "function",
13
+ str: (e) => typeof e == "string",
14
+ num: (e) => typeof e == "number",
15
+ und: (e) => e === void 0
16
+ };
17
+ function je(e, f) {
18
+ if (l.arr(e)) {
19
+ if (!l.arr(f) || e.length !== f.length)
20
+ return !1;
21
+ for (let t = 0; t < e.length; t++)
22
+ if (e[t] !== f[t])
23
+ return !1;
24
+ return !0;
25
+ }
26
+ return e === f;
27
+ }
28
+ const ae = (e, f) => e.forEach(f);
29
+ function Ue(e, f, t) {
30
+ if (l.arr(e)) {
31
+ for (let n = 0; n < e.length; n++)
32
+ f.call(t, e[n], `${n}`);
33
+ return;
34
+ }
35
+ for (const n in e)
36
+ e.hasOwnProperty(n) && f.call(t, e[n], n);
37
+ }
38
+ const Le = (e) => l.und(e) ? [] : l.arr(e) ? e : [e];
39
+ function oe(e, f) {
40
+ if (e.size) {
41
+ const t = Array.from(e);
42
+ e.clear(), ae(t, f);
43
+ }
44
+ }
45
+ const Te = (e, ...f) => oe(e, (t) => t(...f)), z = () => typeof window == "undefined" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent);
46
+ let _, W, h = null, X = !1, B = re;
47
+ const ie = (e) => {
48
+ e.to && (W = e.to), e.now && (d.now = e.now), e.colors !== void 0 && (h = e.colors), e.skipAnimation != null && (X = e.skipAnimation), e.createStringInterpolator && (_ = e.createStringInterpolator), e.requestAnimationFrame && d.use(e.requestAnimationFrame), e.batchedUpdates && (d.batchedUpdates = e.batchedUpdates), e.willAdvance && (B = e.willAdvance), e.frameLoop && (d.frameLoop = e.frameLoop);
49
+ };
50
+ var De = /* @__PURE__ */ Object.freeze({
51
+ __proto__: null,
52
+ get createStringInterpolator() {
53
+ return _;
54
+ },
55
+ get to() {
56
+ return W;
57
+ },
58
+ get colors() {
59
+ return h;
60
+ },
61
+ get skipAnimation() {
62
+ return X;
63
+ },
64
+ get willAdvance() {
65
+ return B;
66
+ },
67
+ assign: ie
68
+ });
69
+ const m = /* @__PURE__ */ new Set();
70
+ let s = [], $ = [], O = 0;
71
+ const se = {
72
+ get idle() {
73
+ return !m.size && !s.length;
74
+ },
75
+ start(e) {
76
+ O > e.priority ? (m.add(e), d.onStart(ce)) : (J(e), d(q));
77
+ },
78
+ advance: q,
79
+ sort(e) {
80
+ if (O)
81
+ d.onFrame(() => se.sort(e));
82
+ else {
83
+ const f = s.indexOf(e);
84
+ ~f && (s.splice(f, 1), K(e));
85
+ }
86
+ },
87
+ clear() {
88
+ s = [], m.clear();
89
+ }
90
+ };
91
+ function ce() {
92
+ m.forEach(J), m.clear(), d(q);
93
+ }
94
+ function J(e) {
95
+ s.includes(e) || K(e);
96
+ }
97
+ function K(e) {
98
+ s.splice(ue(s, (f) => f.priority > e.priority), 0, e);
99
+ }
100
+ function q(e) {
101
+ const f = $;
102
+ for (let t = 0; t < s.length; t++) {
103
+ const n = s[t];
104
+ O = n.priority, n.idle || (B(n), n.advance(e), n.idle || f.push(n));
105
+ }
106
+ return O = 0, $ = s, $.length = 0, s = f, s.length > 0;
107
+ }
108
+ function ue(e, f) {
109
+ const t = e.findIndex(f);
110
+ return t < 0 ? e.length : t;
111
+ }
112
+ const le = (e, f, t) => Math.min(Math.max(t, e), f), Ge = {
113
+ transparent: 0,
114
+ aliceblue: 4042850303,
115
+ antiquewhite: 4209760255,
116
+ aqua: 16777215,
117
+ aquamarine: 2147472639,
118
+ azure: 4043309055,
119
+ beige: 4126530815,
120
+ bisque: 4293182719,
121
+ black: 255,
122
+ blanchedalmond: 4293643775,
123
+ blue: 65535,
124
+ blueviolet: 2318131967,
125
+ brown: 2771004159,
126
+ burlywood: 3736635391,
127
+ burntsienna: 3934150143,
128
+ cadetblue: 1604231423,
129
+ chartreuse: 2147418367,
130
+ chocolate: 3530104575,
131
+ coral: 4286533887,
132
+ cornflowerblue: 1687547391,
133
+ cornsilk: 4294499583,
134
+ crimson: 3692313855,
135
+ cyan: 16777215,
136
+ darkblue: 35839,
137
+ darkcyan: 9145343,
138
+ darkgoldenrod: 3095792639,
139
+ darkgray: 2846468607,
140
+ darkgreen: 6553855,
141
+ darkgrey: 2846468607,
142
+ darkkhaki: 3182914559,
143
+ darkmagenta: 2332068863,
144
+ darkolivegreen: 1433087999,
145
+ darkorange: 4287365375,
146
+ darkorchid: 2570243327,
147
+ darkred: 2332033279,
148
+ darksalmon: 3918953215,
149
+ darkseagreen: 2411499519,
150
+ darkslateblue: 1211993087,
151
+ darkslategray: 793726975,
152
+ darkslategrey: 793726975,
153
+ darkturquoise: 13554175,
154
+ darkviolet: 2483082239,
155
+ deeppink: 4279538687,
156
+ deepskyblue: 12582911,
157
+ dimgray: 1768516095,
158
+ dimgrey: 1768516095,
159
+ dodgerblue: 512819199,
160
+ firebrick: 2988581631,
161
+ floralwhite: 4294635775,
162
+ forestgreen: 579543807,
163
+ fuchsia: 4278255615,
164
+ gainsboro: 3705462015,
165
+ ghostwhite: 4177068031,
166
+ gold: 4292280575,
167
+ goldenrod: 3668254975,
168
+ gray: 2155905279,
169
+ green: 8388863,
170
+ greenyellow: 2919182335,
171
+ grey: 2155905279,
172
+ honeydew: 4043305215,
173
+ hotpink: 4285117695,
174
+ indianred: 3445382399,
175
+ indigo: 1258324735,
176
+ ivory: 4294963455,
177
+ khaki: 4041641215,
178
+ lavender: 3873897215,
179
+ lavenderblush: 4293981695,
180
+ lawngreen: 2096890111,
181
+ lemonchiffon: 4294626815,
182
+ lightblue: 2916673279,
183
+ lightcoral: 4034953471,
184
+ lightcyan: 3774873599,
185
+ lightgoldenrodyellow: 4210742015,
186
+ lightgray: 3553874943,
187
+ lightgreen: 2431553791,
188
+ lightgrey: 3553874943,
189
+ lightpink: 4290167295,
190
+ lightsalmon: 4288707327,
191
+ lightseagreen: 548580095,
192
+ lightskyblue: 2278488831,
193
+ lightslategray: 2005441023,
194
+ lightslategrey: 2005441023,
195
+ lightsteelblue: 2965692159,
196
+ lightyellow: 4294959359,
197
+ lime: 16711935,
198
+ limegreen: 852308735,
199
+ linen: 4210091775,
200
+ magenta: 4278255615,
201
+ maroon: 2147483903,
202
+ mediumaquamarine: 1724754687,
203
+ mediumblue: 52735,
204
+ mediumorchid: 3126187007,
205
+ mediumpurple: 2473647103,
206
+ mediumseagreen: 1018393087,
207
+ mediumslateblue: 2070474495,
208
+ mediumspringgreen: 16423679,
209
+ mediumturquoise: 1221709055,
210
+ mediumvioletred: 3340076543,
211
+ midnightblue: 421097727,
212
+ mintcream: 4127193855,
213
+ mistyrose: 4293190143,
214
+ moccasin: 4293178879,
215
+ navajowhite: 4292783615,
216
+ navy: 33023,
217
+ oldlace: 4260751103,
218
+ olive: 2155872511,
219
+ olivedrab: 1804477439,
220
+ orange: 4289003775,
221
+ orangered: 4282712319,
222
+ orchid: 3664828159,
223
+ palegoldenrod: 4008225535,
224
+ palegreen: 2566625535,
225
+ paleturquoise: 2951671551,
226
+ palevioletred: 3681588223,
227
+ papayawhip: 4293907967,
228
+ peachpuff: 4292524543,
229
+ peru: 3448061951,
230
+ pink: 4290825215,
231
+ plum: 3718307327,
232
+ powderblue: 2967529215,
233
+ purple: 2147516671,
234
+ rebeccapurple: 1714657791,
235
+ red: 4278190335,
236
+ rosybrown: 3163525119,
237
+ royalblue: 1097458175,
238
+ saddlebrown: 2336560127,
239
+ salmon: 4202722047,
240
+ sandybrown: 4104413439,
241
+ seagreen: 780883967,
242
+ seashell: 4294307583,
243
+ sienna: 2689740287,
244
+ silver: 3233857791,
245
+ skyblue: 2278484991,
246
+ slateblue: 1784335871,
247
+ slategray: 1887473919,
248
+ slategrey: 1887473919,
249
+ snow: 4294638335,
250
+ springgreen: 16744447,
251
+ steelblue: 1182971135,
252
+ tan: 3535047935,
253
+ teal: 8421631,
254
+ thistle: 3636451583,
255
+ tomato: 4284696575,
256
+ turquoise: 1088475391,
257
+ violet: 4001558271,
258
+ wheat: 4125012991,
259
+ white: 4294967295,
260
+ whitesmoke: 4126537215,
261
+ yellow: 4294902015,
262
+ yellowgreen: 2597139199
263
+ }, u = "[-+]?\\d*\\.?\\d+", M = u + "%";
264
+ function F(...e) {
265
+ return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
266
+ }
267
+ const de = new RegExp("rgb" + F(u, u, u)), he = new RegExp("rgba" + F(u, u, u, u)), pe = new RegExp("hsl" + F(u, M, M)), xe = new RegExp("hsla" + F(u, M, M, u)), ge = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, be = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, me = /^#([0-9a-fA-F]{6})$/, we = /^#([0-9a-fA-F]{8})$/;
268
+ function ye(e) {
269
+ let f;
270
+ return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (f = me.exec(e)) ? parseInt(f[1] + "ff", 16) >>> 0 : h && h[e] !== void 0 ? h[e] : (f = de.exec(e)) ? (g(f[1]) << 24 | g(f[2]) << 16 | g(f[3]) << 8 | 255) >>> 0 : (f = he.exec(e)) ? (g(f[1]) << 24 | g(f[2]) << 16 | g(f[3]) << 8 | L(f[4])) >>> 0 : (f = ge.exec(e)) ? parseInt(f[1] + f[1] + f[2] + f[2] + f[3] + f[3] + "ff", 16) >>> 0 : (f = we.exec(e)) ? parseInt(f[1], 16) >>> 0 : (f = be.exec(e)) ? parseInt(f[1] + f[1] + f[2] + f[2] + f[3] + f[3] + f[4] + f[4], 16) >>> 0 : (f = pe.exec(e)) ? (j(U(f[1]), y(f[2]), y(f[3])) | 255) >>> 0 : (f = xe.exec(e)) ? (j(U(f[1]), y(f[2]), y(f[3])) | L(f[4])) >>> 0 : null;
271
+ }
272
+ function S(e, f, t) {
273
+ return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? e + (f - e) * 6 * t : t < 1 / 2 ? f : t < 2 / 3 ? e + (f - e) * (2 / 3 - t) * 6 : e;
274
+ }
275
+ function j(e, f, t) {
276
+ const n = t < 0.5 ? t * (1 + f) : t + f - t * f, o = 2 * t - n, a = S(o, n, e + 1 / 3), i = S(o, n, e), c = S(o, n, e - 1 / 3);
277
+ return Math.round(a * 255) << 24 | Math.round(i * 255) << 16 | Math.round(c * 255) << 8;
278
+ }
279
+ function g(e) {
280
+ const f = parseInt(e, 10);
281
+ return f < 0 ? 0 : f > 255 ? 255 : f;
282
+ }
283
+ function U(e) {
284
+ return (parseFloat(e) % 360 + 360) % 360 / 360;
285
+ }
286
+ function L(e) {
287
+ const f = parseFloat(e);
288
+ return f < 0 ? 0 : f > 1 ? 255 : Math.round(f * 255);
289
+ }
290
+ function y(e) {
291
+ const f = parseFloat(e);
292
+ return f < 0 ? 0 : f > 100 ? 1 : f / 100;
293
+ }
294
+ function T(e) {
295
+ let f = ye(e);
296
+ if (f === null)
297
+ return e;
298
+ f = f || 0;
299
+ let t = (f & 4278190080) >>> 24, n = (f & 16711680) >>> 16, o = (f & 65280) >>> 8, a = (f & 255) / 255;
300
+ return `rgba(${t}, ${n}, ${o}, ${a})`;
301
+ }
302
+ const Y = (e, f, t) => {
303
+ if (l.fun(e))
304
+ return e;
305
+ if (l.arr(e))
306
+ return Y({
307
+ range: e,
308
+ output: f,
309
+ extrapolate: t
310
+ });
311
+ if (l.str(e.output[0]))
312
+ return _(e);
313
+ const n = e, o = n.output, a = n.range || [0, 1], i = n.extrapolateLeft || n.extrapolate || "extend", c = n.extrapolateRight || n.extrapolate || "extend", x = n.easing || ((r) => r);
314
+ return (r) => {
315
+ const w = ke(r, a);
316
+ return ve(r, a[w], a[w + 1], o[w], o[w + 1], x, i, c, n.map);
317
+ };
318
+ };
319
+ function ve(e, f, t, n, o, a, i, c, x) {
320
+ let r = x ? x(e) : e;
321
+ if (r < f) {
322
+ if (i === "identity")
323
+ return r;
324
+ i === "clamp" && (r = f);
325
+ }
326
+ if (r > t) {
327
+ if (c === "identity")
328
+ return r;
329
+ c === "clamp" && (r = t);
330
+ }
331
+ return n === o ? n : f === t ? e <= f ? n : o : (f === -1 / 0 ? r = -r : t === 1 / 0 ? r = r - f : r = (r - f) / (t - f), r = a(r), n === -1 / 0 ? r = -r : o === 1 / 0 ? r = r + n : r = r * (o - n) + n, r);
332
+ }
333
+ function ke(e, f) {
334
+ for (var t = 1; t < f.length - 1 && !(f[t] >= e); ++t)
335
+ ;
336
+ return t - 1;
337
+ }
338
+ const Ie = (e, f = "end") => (t) => {
339
+ t = f === "end" ? Math.min(t, 0.999) : Math.max(t, 1e-3);
340
+ const n = t * e, o = f === "end" ? Math.floor(n) : Math.ceil(n);
341
+ return le(0, 1, o / e);
342
+ }, A = 1.70158, v = A * 1.525, D = A + 1, G = 2 * Math.PI / 3, N = 2 * Math.PI / 4.5, k = (e) => e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375, Ne = {
343
+ linear: (e) => e,
344
+ easeInQuad: (e) => e * e,
345
+ easeOutQuad: (e) => 1 - (1 - e) * (1 - e),
346
+ easeInOutQuad: (e) => e < 0.5 ? 2 * e * e : 1 - Math.pow(-2 * e + 2, 2) / 2,
347
+ easeInCubic: (e) => e * e * e,
348
+ easeOutCubic: (e) => 1 - Math.pow(1 - e, 3),
349
+ easeInOutCubic: (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2,
350
+ easeInQuart: (e) => e * e * e * e,
351
+ easeOutQuart: (e) => 1 - Math.pow(1 - e, 4),
352
+ easeInOutQuart: (e) => e < 0.5 ? 8 * e * e * e * e : 1 - Math.pow(-2 * e + 2, 4) / 2,
353
+ easeInQuint: (e) => e * e * e * e * e,
354
+ easeOutQuint: (e) => 1 - Math.pow(1 - e, 5),
355
+ easeInOutQuint: (e) => e < 0.5 ? 16 * e * e * e * e * e : 1 - Math.pow(-2 * e + 2, 5) / 2,
356
+ easeInSine: (e) => 1 - Math.cos(e * Math.PI / 2),
357
+ easeOutSine: (e) => Math.sin(e * Math.PI / 2),
358
+ easeInOutSine: (e) => -(Math.cos(Math.PI * e) - 1) / 2,
359
+ easeInExpo: (e) => e === 0 ? 0 : Math.pow(2, 10 * e - 10),
360
+ easeOutExpo: (e) => e === 1 ? 1 : 1 - Math.pow(2, -10 * e),
361
+ easeInOutExpo: (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? Math.pow(2, 20 * e - 10) / 2 : (2 - Math.pow(2, -20 * e + 10)) / 2,
362
+ easeInCirc: (e) => 1 - Math.sqrt(1 - Math.pow(e, 2)),
363
+ easeOutCirc: (e) => Math.sqrt(1 - Math.pow(e - 1, 2)),
364
+ easeInOutCirc: (e) => e < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * e, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * e + 2, 2)) + 1) / 2,
365
+ easeInBack: (e) => D * e * e * e - A * e * e,
366
+ easeOutBack: (e) => 1 + D * Math.pow(e - 1, 3) + A * Math.pow(e - 1, 2),
367
+ easeInOutBack: (e) => e < 0.5 ? Math.pow(2 * e, 2) * ((v + 1) * 2 * e - v) / 2 : (Math.pow(2 * e - 2, 2) * ((v + 1) * (e * 2 - 2) + v) + 2) / 2,
368
+ easeInElastic: (e) => e === 0 ? 0 : e === 1 ? 1 : -Math.pow(2, 10 * e - 10) * Math.sin((e * 10 - 10.75) * G),
369
+ easeOutElastic: (e) => e === 0 ? 0 : e === 1 ? 1 : Math.pow(2, -10 * e) * Math.sin((e * 10 - 0.75) * G) + 1,
370
+ easeInOutElastic: (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? -(Math.pow(2, 20 * e - 10) * Math.sin((20 * e - 11.125) * N)) / 2 : Math.pow(2, -20 * e + 10) * Math.sin((20 * e - 11.125) * N) / 2 + 1,
371
+ easeInBounce: (e) => 1 - k(1 - e),
372
+ easeOutBounce: k,
373
+ easeInOutBounce: (e) => e < 0.5 ? (1 - k(1 - 2 * e)) / 2 : (1 + k(2 * e - 1)) / 2,
374
+ steps: Ie
375
+ };
376
+ function P() {
377
+ return P = Object.assign ? Object.assign.bind() : function(e) {
378
+ for (var f = 1; f < arguments.length; f++) {
379
+ var t = arguments[f];
380
+ for (var n in t)
381
+ Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
382
+ }
383
+ return e;
384
+ }, P.apply(this, arguments);
385
+ }
386
+ const b = Symbol.for("FluidValue.get"), p = Symbol.for("FluidValue.observers"), He = (e) => !!(e && e[b]), Oe = (e) => e && e[b] ? e[b]() : e, Ze = (e) => e[p] || null;
387
+ function Me(e, f) {
388
+ e.eventObserved ? e.eventObserved(f) : e(f);
389
+ }
390
+ function We(e, f) {
391
+ let t = e[p];
392
+ t && t.forEach((n) => {
393
+ Me(n, f);
394
+ });
395
+ }
396
+ class Xe {
397
+ constructor(f) {
398
+ if (this[b] = void 0, this[p] = void 0, !f && !(f = this.get))
399
+ throw Error("Unknown getter");
400
+ Ae(this, f);
401
+ }
402
+ }
403
+ const Ae = (e, f) => ee(e, b, f);
404
+ function Je(e, f) {
405
+ if (e[b]) {
406
+ let t = e[p];
407
+ t || ee(e, p, t = /* @__PURE__ */ new Set()), t.has(f) || (t.add(f), e.observerAdded && e.observerAdded(t.size, f));
408
+ }
409
+ return f;
410
+ }
411
+ function Ke(e, f) {
412
+ let t = e[p];
413
+ if (t && t.has(f)) {
414
+ const n = t.size - 1;
415
+ n ? t.delete(f) : e[p] = null, e.observerRemoved && e.observerRemoved(n, f);
416
+ }
417
+ }
418
+ const ee = (e, f, t) => Object.defineProperty(e, f, {
419
+ value: t,
420
+ writable: !0,
421
+ configurable: !0
422
+ }), I = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, Ee = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, H = new RegExp(`(${I.source})(%|[a-z]+)`, "i"), Fe = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, R = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, fe = (e) => {
423
+ const [f, t] = Re(e);
424
+ if (!f || z())
425
+ return e;
426
+ const n = window.getComputedStyle(document.documentElement).getPropertyValue(f);
427
+ if (n)
428
+ return n.trim();
429
+ if (t && t.startsWith("--")) {
430
+ const o = window.getComputedStyle(document.documentElement).getPropertyValue(t);
431
+ return o || e;
432
+ } else {
433
+ if (t && R.test(t))
434
+ return fe(t);
435
+ if (t)
436
+ return t;
437
+ }
438
+ return e;
439
+ }, Re = (e) => {
440
+ const f = R.exec(e);
441
+ if (!f)
442
+ return [,];
443
+ const [, t, n] = f;
444
+ return [t, n];
445
+ };
446
+ let C;
447
+ const $e = (e, f, t, n, o) => `rgba(${Math.round(f)}, ${Math.round(t)}, ${Math.round(n)}, ${o})`, Ye = (e) => {
448
+ C || (C = h ? new RegExp(`(${Object.keys(h).join("|")})(?!\\w)`, "g") : /^\b$/);
449
+ const f = e.output.map((a) => Oe(a).replace(R, fe).replace(Ee, T).replace(C, T)), t = f.map((a) => a.match(I).map(Number)), o = t[0].map((a, i) => t.map((c) => {
450
+ if (!(i in c))
451
+ throw Error('The arity of each "output" value must be equal');
452
+ return c[i];
453
+ })).map((a) => Y(P({}, e, {
454
+ output: a
455
+ })));
456
+ return (a) => {
457
+ var i;
458
+ const c = !H.test(f[0]) && ((i = f.find((r) => H.test(r))) == null ? void 0 : i.replace(I, ""));
459
+ let x = 0;
460
+ return f[0].replace(I, () => `${o[x++](a)}${c || ""}`).replace(Fe, $e);
461
+ };
462
+ }, V = "react-spring: ", te = (e) => {
463
+ const f = e;
464
+ let t = !1;
465
+ if (typeof f != "function")
466
+ throw new TypeError(`${V}once requires a function parameter`);
467
+ return (...n) => {
468
+ t || (f(...n), t = !0);
469
+ };
470
+ }, Se = te(console.warn);
471
+ function ef() {
472
+ Se(`${V}The "interpolate" function is deprecated in v9 (use "to" instead)`);
473
+ }
474
+ const Ce = te(console.warn);
475
+ function ff() {
476
+ Ce(`${V}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);
477
+ }
478
+ function tf(e) {
479
+ return l.str(e) && (e[0] == "#" || /\d/.test(e) || !z() && R.test(e) || e in (h || {}));
480
+ }
481
+ const qe = z() ? E : ne, Pe = () => {
482
+ const e = Q(!1);
483
+ return qe(() => (e.current = !0, () => {
484
+ e.current = !1;
485
+ }), []), e;
486
+ };
487
+ function nf() {
488
+ const e = Z()[1], f = Pe();
489
+ return () => {
490
+ f.current && e(Math.random());
491
+ };
492
+ }
493
+ function rf(e, f) {
494
+ const [t] = Z(() => ({
495
+ inputs: f,
496
+ result: e()
497
+ })), n = Q(), o = n.current;
498
+ let a = o;
499
+ return a ? f && a.inputs && Qe(f, a.inputs) || (a = {
500
+ inputs: f,
501
+ result: e()
502
+ }) : a = t, E(() => {
503
+ n.current = a, o == t && (t.inputs = t.result = void 0);
504
+ }, [a]), a.result;
505
+ }
506
+ function Qe(e, f) {
507
+ if (e.length !== f.length)
508
+ return !1;
509
+ for (let t = 0; t < e.length; t++)
510
+ if (e[t] !== f[t])
511
+ return !1;
512
+ return !0;
513
+ }
514
+ const af = (e) => E(e, ze), ze = [];
515
+ function of(e) {
516
+ const f = Q();
517
+ return E(() => {
518
+ f.current = e;
519
+ }), f.current;
520
+ }
521
+ export {
522
+ Xe as FluidValue,
523
+ De as Globals,
524
+ Je as addFluidObserver,
525
+ Me as callFluidObserver,
526
+ We as callFluidObservers,
527
+ le as clamp,
528
+ T as colorToRgba,
529
+ Ge as colors,
530
+ Y as createInterpolator,
531
+ Ye as createStringInterpolator,
532
+ Ve as defineHidden,
533
+ ff as deprecateDirectCall,
534
+ ef as deprecateInterpolate,
535
+ ae as each,
536
+ Ue as eachProp,
537
+ Ne as easings,
538
+ oe as flush,
539
+ Te as flushCalls,
540
+ se as frameLoop,
541
+ Ze as getFluidObservers,
542
+ Oe as getFluidValue,
543
+ He as hasFluidValue,
544
+ ge as hex3,
545
+ be as hex4,
546
+ me as hex6,
547
+ we as hex8,
548
+ pe as hsl,
549
+ xe as hsla,
550
+ l as is,
551
+ tf as isAnimatedString,
552
+ je as isEqual,
553
+ z as isSSR,
554
+ re as noop,
555
+ te as once,
556
+ V as prefix,
557
+ d as raf,
558
+ Ke as removeFluidObserver,
559
+ de as rgb,
560
+ he as rgba,
561
+ Ae as setFluidGetter,
562
+ Le as toArray,
563
+ nf as useForceUpdate,
564
+ qe as useIsomorphicLayoutEffect,
565
+ rf as useMemoOne,
566
+ af as useOnce,
567
+ of as usePrev
568
+ };