@attraccess/plugins-frontend-ui 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1241 -1217
- package/lib/components/attraccess-user/AttraccessUser.d.ts +3 -2
- package/lib/components/attraccess-user/AttraccessUserActionsContext.d.ts +2 -2
- package/lib/components/user-search/UserSearch.d.ts +2 -2
- package/lib/components/user-search/UserSearch.utils.d.ts +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,19 +1,37 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import t, { createContext as n, createElement as r, forwardRef as i, useCallback as a, useContext as o, useEffect as s, useId as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
3
|
-
import { Avatar as f, AvatarFallback as p, AvatarImage as m, Button as h, Checkbox as g, Header as _, InputGroup as v, Label as y, ListBox as b, ListBoxItem as x, ListBoxSection as S, Modal as C, ModalBackdrop as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { useResourcesServiceGetAllResources as
|
|
3
|
+
import { Avatar as f, AvatarFallback as p, AvatarImage as m, Button as h, Checkbox as g, Header as _, InputGroup as v, Label as y, ListBox as b, ListBoxItem as x, ListBoxSection as S, Modal as C, ModalBackdrop as w, ModalBody as T, ModalContainer as E, ModalDialog as D, ModalHeader as O, ModalHeading as ee, Popover as k, Spinner as te, TableBody as ne, TableCell as A, TableColumn as j, TableContent as M, TableHeader as N, TableRoot as re, TableRow as P, TableScrollContainer as ie, TextField as ae, useOverlayState as F } from "@heroui/react";
|
|
4
|
+
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
5
|
+
import { useResourcesServiceGetAllResources as oe, useUsersServiceFindManyInfinite as z } from "@attraccess/react-query-client";
|
|
6
6
|
//#region \0rolldown/runtime.js
|
|
7
|
-
var
|
|
8
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
7
|
+
var B = Object.create, V = Object.defineProperty, H = Object.getOwnPropertyDescriptor, U = Object.getOwnPropertyNames, W = Object.getPrototypeOf, se = Object.prototype.hasOwnProperty, G = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ce = (e, t, n, r) => {
|
|
8
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = U(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !se.call(e, s) && s !== n && V(e, s, {
|
|
9
9
|
get: ((e) => t[e]).bind(null, s),
|
|
10
|
-
enumerable: !(r =
|
|
10
|
+
enumerable: !(r = H(t, s)) || r.enumerable
|
|
11
11
|
});
|
|
12
12
|
return e;
|
|
13
|
-
},
|
|
13
|
+
}, le = (e, t, n) => (n = e == null ? {} : B(W(e)), ce(t || !e || !e.__esModule || !se.call(e, "default") ? V(n, "default", {
|
|
14
14
|
value: e,
|
|
15
15
|
enumerable: !0
|
|
16
|
-
}) : n, e)),
|
|
16
|
+
}) : n, e)), K = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
17
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
18
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
19
|
+
}), ue = /* @__PURE__ */ G(((e) => {
|
|
20
|
+
var t = K("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
21
|
+
e.c = function(e) {
|
|
22
|
+
return t.H.useMemoCache(e);
|
|
23
|
+
};
|
|
24
|
+
})), de = /* @__PURE__ */ G(((e) => {
|
|
25
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
26
|
+
var t = K("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
27
|
+
e.c = function(e) {
|
|
28
|
+
var n = t.H;
|
|
29
|
+
return n === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), n.useMemoCache(e);
|
|
30
|
+
};
|
|
31
|
+
})();
|
|
32
|
+
})), q = /* @__PURE__ */ G(((e, t) => {
|
|
33
|
+
t.exports = process.env.NODE_ENV === "production" ? ue() : de();
|
|
34
|
+
})), fe = (e) => {
|
|
17
35
|
let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
|
|
18
36
|
let i = typeof e == "function" ? e(t) : e;
|
|
19
37
|
if (!Object.is(i, t)) {
|
|
@@ -27,93 +45,93 @@ var ge = Object.create, _e = Object.defineProperty, ve = Object.getOwnPropertyDe
|
|
|
27
45
|
subscribe: (e) => (n.add(e), () => n.delete(e))
|
|
28
46
|
}, o = t = e(r, i, a);
|
|
29
47
|
return a;
|
|
30
|
-
},
|
|
31
|
-
function
|
|
48
|
+
}, pe = ((e) => e ? fe(e) : fe), J = (e) => e;
|
|
49
|
+
function me(e, n = J) {
|
|
32
50
|
let r = t.useSyncExternalStore(e.subscribe, t.useCallback(() => n(e.getState()), [e, n]), t.useCallback(() => n(e.getInitialState()), [e, n]));
|
|
33
51
|
return t.useDebugValue(r), r;
|
|
34
52
|
}
|
|
35
|
-
var
|
|
36
|
-
let t =
|
|
53
|
+
var he = (e) => {
|
|
54
|
+
let t = pe(e), n = (e) => me(t, e);
|
|
37
55
|
return Object.assign(n, t), n;
|
|
38
|
-
},
|
|
39
|
-
function
|
|
40
|
-
var t =
|
|
56
|
+
}, ge = ((e) => e ? he(e) : he), _e = typeof global == "object" && global && global.Object === Object && global, ve = typeof self == "object" && self && self.Object === Object && self, ye = _e || ve || Function("return this")(), be = ye.Symbol, xe = Object.prototype, Se = xe.hasOwnProperty, Ce = xe.toString, we = be ? be.toStringTag : void 0;
|
|
57
|
+
function Te(e) {
|
|
58
|
+
var t = Se.call(e, we), n = e[we];
|
|
41
59
|
try {
|
|
42
|
-
e[
|
|
60
|
+
e[we] = void 0;
|
|
43
61
|
var r = !0;
|
|
44
62
|
} catch {}
|
|
45
|
-
var i =
|
|
46
|
-
return r && (t ? e[
|
|
63
|
+
var i = Ce.call(e);
|
|
64
|
+
return r && (t ? e[we] = n : delete e[we]), i;
|
|
47
65
|
}
|
|
48
66
|
//#endregion
|
|
49
67
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
50
|
-
var
|
|
51
|
-
function
|
|
52
|
-
return
|
|
68
|
+
var Ee = Object.prototype.toString;
|
|
69
|
+
function De(e) {
|
|
70
|
+
return Ee.call(e);
|
|
53
71
|
}
|
|
54
72
|
//#endregion
|
|
55
73
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
return e == null ? e === void 0 ?
|
|
74
|
+
var Oe = "[object Null]", ke = "[object Undefined]", Ae = be ? be.toStringTag : void 0;
|
|
75
|
+
function je(e) {
|
|
76
|
+
return e == null ? e === void 0 ? ke : Oe : Ae && Ae in Object(e) ? Te(e) : De(e);
|
|
59
77
|
}
|
|
60
78
|
//#endregion
|
|
61
79
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
62
|
-
function
|
|
80
|
+
function Me(e) {
|
|
63
81
|
return typeof e == "object" && !!e;
|
|
64
82
|
}
|
|
65
83
|
//#endregion
|
|
66
84
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
67
|
-
var
|
|
68
|
-
function
|
|
69
|
-
return typeof e == "symbol" ||
|
|
85
|
+
var Ne = "[object Symbol]";
|
|
86
|
+
function Pe(e) {
|
|
87
|
+
return typeof e == "symbol" || Me(e) && je(e) == Ne;
|
|
70
88
|
}
|
|
71
89
|
//#endregion
|
|
72
90
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
73
|
-
function
|
|
91
|
+
function Fe(e, t) {
|
|
74
92
|
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
|
|
75
93
|
return i;
|
|
76
94
|
}
|
|
77
95
|
//#endregion
|
|
78
96
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
79
|
-
var
|
|
80
|
-
function
|
|
97
|
+
var Ie = Array.isArray, Le = 1 / 0, Re = be ? be.prototype : void 0, ze = Re ? Re.toString : void 0;
|
|
98
|
+
function Be(e) {
|
|
81
99
|
if (typeof e == "string") return e;
|
|
82
|
-
if (
|
|
83
|
-
if (
|
|
100
|
+
if (Ie(e)) return Fe(e, Be) + "";
|
|
101
|
+
if (Pe(e)) return ze ? ze.call(e) : "";
|
|
84
102
|
var t = e + "";
|
|
85
|
-
return t == "0" && 1 / e == -
|
|
103
|
+
return t == "0" && 1 / e == -Le ? "-0" : t;
|
|
86
104
|
}
|
|
87
105
|
//#endregion
|
|
88
106
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
89
|
-
function
|
|
107
|
+
function Ve(e) {
|
|
90
108
|
var t = typeof e;
|
|
91
109
|
return e != null && (t == "object" || t == "function");
|
|
92
110
|
}
|
|
93
111
|
//#endregion
|
|
94
112
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
95
|
-
var
|
|
96
|
-
function
|
|
97
|
-
if (!
|
|
98
|
-
var t =
|
|
99
|
-
return t ==
|
|
113
|
+
var He = "[object AsyncFunction]", Ue = "[object Function]", We = "[object GeneratorFunction]", Ge = "[object Proxy]";
|
|
114
|
+
function Ke(e) {
|
|
115
|
+
if (!Ve(e)) return !1;
|
|
116
|
+
var t = je(e);
|
|
117
|
+
return t == Ue || t == We || t == He || t == Ge;
|
|
100
118
|
}
|
|
101
119
|
//#endregion
|
|
102
120
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
103
|
-
var
|
|
104
|
-
var e = /[^.]+$/.exec(
|
|
121
|
+
var qe = ye["__core-js_shared__"], Je = function() {
|
|
122
|
+
var e = /[^.]+$/.exec(qe && qe.keys && qe.keys.IE_PROTO || "");
|
|
105
123
|
return e ? "Symbol(src)_1." + e : "";
|
|
106
124
|
}();
|
|
107
|
-
function
|
|
108
|
-
return !!
|
|
125
|
+
function Ye(e) {
|
|
126
|
+
return !!Je && Je in e;
|
|
109
127
|
}
|
|
110
128
|
//#endregion
|
|
111
129
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
112
|
-
var
|
|
113
|
-
function
|
|
130
|
+
var Xe = Function.prototype.toString;
|
|
131
|
+
function Ze(e) {
|
|
114
132
|
if (e != null) {
|
|
115
133
|
try {
|
|
116
|
-
return
|
|
134
|
+
return Xe.call(e);
|
|
117
135
|
} catch {}
|
|
118
136
|
try {
|
|
119
137
|
return e + "";
|
|
@@ -123,249 +141,249 @@ function st(e) {
|
|
|
123
141
|
}
|
|
124
142
|
//#endregion
|
|
125
143
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
126
|
-
var
|
|
127
|
-
function
|
|
128
|
-
return !
|
|
144
|
+
var Qe = /[\\^$.*+?()[\]{}|]/g, $e = /^\[object .+?Constructor\]$/, et = Function.prototype, tt = Object.prototype, nt = et.toString, rt = tt.hasOwnProperty, it = RegExp("^" + nt.call(rt).replace(Qe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
145
|
+
function at(e) {
|
|
146
|
+
return !Ve(e) || Ye(e) ? !1 : (Ke(e) ? it : $e).test(Ze(e));
|
|
129
147
|
}
|
|
130
148
|
//#endregion
|
|
131
149
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
132
|
-
function
|
|
150
|
+
function ot(e, t) {
|
|
133
151
|
return e?.[t];
|
|
134
152
|
}
|
|
135
153
|
//#endregion
|
|
136
154
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
137
|
-
function
|
|
138
|
-
var n =
|
|
139
|
-
return
|
|
155
|
+
function st(e, t) {
|
|
156
|
+
var n = ot(e, t);
|
|
157
|
+
return at(n) ? n : void 0;
|
|
140
158
|
}
|
|
141
159
|
//#endregion
|
|
142
160
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
143
|
-
function
|
|
161
|
+
function ct(e, t) {
|
|
144
162
|
return e === t || e !== e && t !== t;
|
|
145
163
|
}
|
|
146
164
|
//#endregion
|
|
147
165
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
148
|
-
var
|
|
149
|
-
function
|
|
150
|
-
if (
|
|
166
|
+
var lt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ut = /^\w*$/;
|
|
167
|
+
function dt(e, t) {
|
|
168
|
+
if (Ie(e)) return !1;
|
|
151
169
|
var n = typeof e;
|
|
152
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
170
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || Pe(e) ? !0 : ut.test(e) || !lt.test(e) || t != null && e in Object(t);
|
|
153
171
|
}
|
|
154
172
|
//#endregion
|
|
155
173
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
156
|
-
var
|
|
174
|
+
var ft = st(Object, "create");
|
|
157
175
|
//#endregion
|
|
158
176
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
159
|
-
function
|
|
160
|
-
this.__data__ =
|
|
177
|
+
function pt() {
|
|
178
|
+
this.__data__ = ft ? ft(null) : {}, this.size = 0;
|
|
161
179
|
}
|
|
162
180
|
//#endregion
|
|
163
181
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
164
|
-
function
|
|
182
|
+
function mt(e) {
|
|
165
183
|
var t = this.has(e) && delete this.__data__[e];
|
|
166
184
|
return this.size -= +!!t, t;
|
|
167
185
|
}
|
|
168
186
|
//#endregion
|
|
169
187
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
170
|
-
var
|
|
171
|
-
function
|
|
188
|
+
var ht = "__lodash_hash_undefined__", gt = Object.prototype.hasOwnProperty;
|
|
189
|
+
function _t(e) {
|
|
172
190
|
var t = this.__data__;
|
|
173
|
-
if (
|
|
191
|
+
if (ft) {
|
|
174
192
|
var n = t[e];
|
|
175
|
-
return n ===
|
|
193
|
+
return n === ht ? void 0 : n;
|
|
176
194
|
}
|
|
177
|
-
return
|
|
195
|
+
return gt.call(t, e) ? t[e] : void 0;
|
|
178
196
|
}
|
|
179
197
|
//#endregion
|
|
180
198
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
181
|
-
var
|
|
182
|
-
function
|
|
199
|
+
var vt = Object.prototype.hasOwnProperty;
|
|
200
|
+
function yt(e) {
|
|
183
201
|
var t = this.__data__;
|
|
184
|
-
return
|
|
202
|
+
return ft ? t[e] !== void 0 : vt.call(t, e);
|
|
185
203
|
}
|
|
186
204
|
//#endregion
|
|
187
205
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
188
|
-
var
|
|
189
|
-
function
|
|
206
|
+
var bt = "__lodash_hash_undefined__";
|
|
207
|
+
function xt(e, t) {
|
|
190
208
|
var n = this.__data__;
|
|
191
|
-
return this.size += +!this.has(e), n[e] =
|
|
209
|
+
return this.size += +!this.has(e), n[e] = ft && t === void 0 ? bt : t, this;
|
|
192
210
|
}
|
|
193
211
|
//#endregion
|
|
194
212
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
195
|
-
function
|
|
213
|
+
function St(e) {
|
|
196
214
|
var t = -1, n = e == null ? 0 : e.length;
|
|
197
215
|
for (this.clear(); ++t < n;) {
|
|
198
216
|
var r = e[t];
|
|
199
217
|
this.set(r[0], r[1]);
|
|
200
218
|
}
|
|
201
219
|
}
|
|
202
|
-
|
|
220
|
+
St.prototype.clear = pt, St.prototype.delete = mt, St.prototype.get = _t, St.prototype.has = yt, St.prototype.set = xt;
|
|
203
221
|
//#endregion
|
|
204
222
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
205
|
-
function
|
|
223
|
+
function Ct() {
|
|
206
224
|
this.__data__ = [], this.size = 0;
|
|
207
225
|
}
|
|
208
226
|
//#endregion
|
|
209
227
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
210
|
-
function
|
|
211
|
-
for (var n = e.length; n--;) if (
|
|
228
|
+
function wt(e, t) {
|
|
229
|
+
for (var n = e.length; n--;) if (ct(e[n][0], t)) return n;
|
|
212
230
|
return -1;
|
|
213
231
|
}
|
|
214
232
|
//#endregion
|
|
215
233
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
216
|
-
var
|
|
217
|
-
function
|
|
218
|
-
var t = this.__data__, n =
|
|
219
|
-
return n < 0 ? !1 : (n == t.length - 1 ? t.pop() :
|
|
234
|
+
var Tt = Array.prototype.splice;
|
|
235
|
+
function Et(e) {
|
|
236
|
+
var t = this.__data__, n = wt(t, e);
|
|
237
|
+
return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Tt.call(t, n, 1), --this.size, !0);
|
|
220
238
|
}
|
|
221
239
|
//#endregion
|
|
222
240
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
223
|
-
function
|
|
224
|
-
var t = this.__data__, n =
|
|
241
|
+
function Dt(e) {
|
|
242
|
+
var t = this.__data__, n = wt(t, e);
|
|
225
243
|
return n < 0 ? void 0 : t[n][1];
|
|
226
244
|
}
|
|
227
245
|
//#endregion
|
|
228
246
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
229
|
-
function
|
|
230
|
-
return
|
|
247
|
+
function Ot(e) {
|
|
248
|
+
return wt(this.__data__, e) > -1;
|
|
231
249
|
}
|
|
232
250
|
//#endregion
|
|
233
251
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
234
|
-
function
|
|
235
|
-
var n = this.__data__, r =
|
|
252
|
+
function kt(e, t) {
|
|
253
|
+
var n = this.__data__, r = wt(n, e);
|
|
236
254
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
237
255
|
}
|
|
238
256
|
//#endregion
|
|
239
257
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
240
|
-
function
|
|
258
|
+
function At(e) {
|
|
241
259
|
var t = -1, n = e == null ? 0 : e.length;
|
|
242
260
|
for (this.clear(); ++t < n;) {
|
|
243
261
|
var r = e[t];
|
|
244
262
|
this.set(r[0], r[1]);
|
|
245
263
|
}
|
|
246
264
|
}
|
|
247
|
-
|
|
265
|
+
At.prototype.clear = Ct, At.prototype.delete = Et, At.prototype.get = Dt, At.prototype.has = Ot, At.prototype.set = kt;
|
|
248
266
|
//#endregion
|
|
249
267
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
250
|
-
var
|
|
268
|
+
var jt = st(ye, "Map");
|
|
251
269
|
//#endregion
|
|
252
270
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
253
|
-
function
|
|
271
|
+
function Mt() {
|
|
254
272
|
this.size = 0, this.__data__ = {
|
|
255
|
-
hash: new
|
|
256
|
-
map: new (
|
|
257
|
-
string: new
|
|
273
|
+
hash: new St(),
|
|
274
|
+
map: new (jt || At)(),
|
|
275
|
+
string: new St()
|
|
258
276
|
};
|
|
259
277
|
}
|
|
260
278
|
//#endregion
|
|
261
279
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
262
|
-
function
|
|
280
|
+
function Nt(e) {
|
|
263
281
|
var t = typeof e;
|
|
264
282
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
265
283
|
}
|
|
266
284
|
//#endregion
|
|
267
285
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
268
|
-
function
|
|
286
|
+
function Pt(e, t) {
|
|
269
287
|
var n = e.__data__;
|
|
270
|
-
return
|
|
288
|
+
return Nt(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
271
289
|
}
|
|
272
290
|
//#endregion
|
|
273
291
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
274
|
-
function
|
|
275
|
-
var t =
|
|
292
|
+
function Ft(e) {
|
|
293
|
+
var t = Pt(this, e).delete(e);
|
|
276
294
|
return this.size -= +!!t, t;
|
|
277
295
|
}
|
|
278
296
|
//#endregion
|
|
279
297
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
280
|
-
function
|
|
281
|
-
return
|
|
298
|
+
function It(e) {
|
|
299
|
+
return Pt(this, e).get(e);
|
|
282
300
|
}
|
|
283
301
|
//#endregion
|
|
284
302
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
285
|
-
function
|
|
286
|
-
return
|
|
303
|
+
function Lt(e) {
|
|
304
|
+
return Pt(this, e).has(e);
|
|
287
305
|
}
|
|
288
306
|
//#endregion
|
|
289
307
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
290
|
-
function
|
|
291
|
-
var n =
|
|
308
|
+
function Rt(e, t) {
|
|
309
|
+
var n = Pt(this, e), r = n.size;
|
|
292
310
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
293
311
|
}
|
|
294
312
|
//#endregion
|
|
295
313
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
296
|
-
function
|
|
314
|
+
function zt(e) {
|
|
297
315
|
var t = -1, n = e == null ? 0 : e.length;
|
|
298
316
|
for (this.clear(); ++t < n;) {
|
|
299
317
|
var r = e[t];
|
|
300
318
|
this.set(r[0], r[1]);
|
|
301
319
|
}
|
|
302
320
|
}
|
|
303
|
-
|
|
321
|
+
zt.prototype.clear = Mt, zt.prototype.delete = Ft, zt.prototype.get = It, zt.prototype.has = Lt, zt.prototype.set = Rt;
|
|
304
322
|
//#endregion
|
|
305
323
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
306
|
-
var
|
|
307
|
-
function
|
|
308
|
-
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(
|
|
324
|
+
var Bt = "Expected a function";
|
|
325
|
+
function Vt(e, t) {
|
|
326
|
+
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(Bt);
|
|
309
327
|
var n = function() {
|
|
310
328
|
var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
|
|
311
329
|
if (a.has(i)) return a.get(i);
|
|
312
330
|
var o = e.apply(this, r);
|
|
313
331
|
return n.cache = a.set(i, o) || a, o;
|
|
314
332
|
};
|
|
315
|
-
return n.cache = new (
|
|
333
|
+
return n.cache = new (Vt.Cache || zt)(), n;
|
|
316
334
|
}
|
|
317
|
-
|
|
335
|
+
Vt.Cache = zt;
|
|
318
336
|
//#endregion
|
|
319
337
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
320
|
-
var
|
|
321
|
-
function
|
|
322
|
-
var t =
|
|
323
|
-
return n.size ===
|
|
338
|
+
var Ht = 500;
|
|
339
|
+
function Ut(e) {
|
|
340
|
+
var t = Vt(e, function(e) {
|
|
341
|
+
return n.size === Ht && n.clear(), e;
|
|
324
342
|
}), n = t.cache;
|
|
325
343
|
return t;
|
|
326
344
|
}
|
|
327
345
|
//#endregion
|
|
328
346
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
329
|
-
var
|
|
347
|
+
var Wt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Gt = /\\(\\)?/g, Kt = Ut(function(e) {
|
|
330
348
|
var t = [];
|
|
331
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
332
|
-
t.push(r ? i.replace(
|
|
349
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Wt, function(e, n, r, i) {
|
|
350
|
+
t.push(r ? i.replace(Gt, "$1") : n || e);
|
|
333
351
|
}), t;
|
|
334
352
|
});
|
|
335
353
|
//#endregion
|
|
336
354
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
337
|
-
function
|
|
338
|
-
return e == null ? "" :
|
|
355
|
+
function qt(e) {
|
|
356
|
+
return e == null ? "" : Be(e);
|
|
339
357
|
}
|
|
340
358
|
//#endregion
|
|
341
359
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
342
|
-
function
|
|
343
|
-
return
|
|
360
|
+
function Jt(e, t) {
|
|
361
|
+
return Ie(e) ? e : dt(e, t) ? [e] : Kt(qt(e));
|
|
344
362
|
}
|
|
345
363
|
//#endregion
|
|
346
364
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
if (typeof e == "string" ||
|
|
365
|
+
var Yt = 1 / 0;
|
|
366
|
+
function Xt(e) {
|
|
367
|
+
if (typeof e == "string" || Pe(e)) return e;
|
|
350
368
|
var t = e + "";
|
|
351
|
-
return t == "0" && 1 / e == -
|
|
369
|
+
return t == "0" && 1 / e == -Yt ? "-0" : t;
|
|
352
370
|
}
|
|
353
371
|
//#endregion
|
|
354
372
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
355
|
-
function
|
|
356
|
-
t =
|
|
357
|
-
for (var n = 0, r = t.length; e != null && n < r;) e = e[
|
|
373
|
+
function Zt(e, t) {
|
|
374
|
+
t = Jt(t, e);
|
|
375
|
+
for (var n = 0, r = t.length; e != null && n < r;) e = e[Xt(t[n++])];
|
|
358
376
|
return n && n == r ? e : void 0;
|
|
359
377
|
}
|
|
360
378
|
//#endregion
|
|
361
379
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
362
|
-
function
|
|
363
|
-
var r = e == null ? void 0 :
|
|
380
|
+
function Qt(e, t, n) {
|
|
381
|
+
var r = e == null ? void 0 : Zt(e, t);
|
|
364
382
|
return r === void 0 ? n : r;
|
|
365
383
|
}
|
|
366
384
|
//#endregion
|
|
367
385
|
//#region ../../node_modules/.pnpm/handlebars@4.7.9/node_modules/handlebars/dist/cjs/handlebars/utils.js
|
|
368
|
-
var
|
|
386
|
+
var Y = /* @__PURE__ */ G(((e) => {
|
|
369
387
|
e.__esModule = !0, e.extend = a, e.indexOf = l, e.escapeExpression = u, e.isEmpty = d, e.createFrame = f, e.blockParams = p, e.appendContextPath = m;
|
|
370
388
|
var t = {
|
|
371
389
|
"&": "&",
|
|
@@ -422,7 +440,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
422
440
|
function m(e, t) {
|
|
423
441
|
return (e ? e + "." : "") + t;
|
|
424
442
|
}
|
|
425
|
-
})),
|
|
443
|
+
})), X = /* @__PURE__ */ G(((e, t) => {
|
|
426
444
|
e.__esModule = !0;
|
|
427
445
|
var n = [
|
|
428
446
|
"description",
|
|
@@ -451,15 +469,15 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
451
469
|
} catch {}
|
|
452
470
|
}
|
|
453
471
|
r.prototype = /* @__PURE__ */ Error(), e.default = r, t.exports = e.default;
|
|
454
|
-
})),
|
|
472
|
+
})), $t = /* @__PURE__ */ G(((e, t) => {
|
|
455
473
|
e.__esModule = !0;
|
|
456
|
-
var n =
|
|
474
|
+
var n = Y();
|
|
457
475
|
e.default = function(e) {
|
|
458
476
|
e.registerHelper("blockHelperMissing", function(t, r) {
|
|
459
477
|
var i = r.inverse, a = r.fn;
|
|
460
478
|
if (t === !0) return a(this);
|
|
461
479
|
if (t === !1 || t == null) return i(this);
|
|
462
|
-
if (n.isArray(t)) return t.length > 0 ? (r.ids
|
|
480
|
+
if (n.isArray(t)) return t.length > 0 ? (r.ids && (r.ids = [r.name]), e.helpers.each(t, r)) : i(this);
|
|
463
481
|
if (r.data && r.ids) {
|
|
464
482
|
var o = n.createFrame(r.data);
|
|
465
483
|
o.contextPath = n.appendContextPath(r.data.contextPath, r.name), r = { data: o };
|
|
@@ -467,13 +485,13 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
467
485
|
return a(t, r);
|
|
468
486
|
});
|
|
469
487
|
}, t.exports = e.default;
|
|
470
|
-
})),
|
|
488
|
+
})), en = /* @__PURE__ */ G(((e, t) => {
|
|
471
489
|
e.__esModule = !0;
|
|
472
490
|
// istanbul ignore next
|
|
473
491
|
function n(e) {
|
|
474
492
|
return e && e.__esModule ? e : { default: e };
|
|
475
493
|
}
|
|
476
|
-
var r =
|
|
494
|
+
var r = Y(), i = n(X());
|
|
477
495
|
e.default = function(e) {
|
|
478
496
|
e.registerHelper("each", function(e, t) {
|
|
479
497
|
if (!t) throw new i.default("Must pass iterator to #each");
|
|
@@ -485,39 +503,41 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
485
503
|
blockParams: r.blockParams([e[t], t], [l + t, null])
|
|
486
504
|
});
|
|
487
505
|
}
|
|
488
|
-
if (e && typeof e == "object")
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
506
|
+
if (e && typeof e == "object") {
|
|
507
|
+
if (r.isArray(e)) for (var d = e.length; o < d; o++) o in e && u(o, o, o === e.length - 1);
|
|
508
|
+
else if (typeof Symbol == "function" && e[Symbol.iterator]) {
|
|
509
|
+
for (var f = [], p = e[Symbol.iterator](), m = p.next(); !m.done; m = p.next()) f.push(m.value);
|
|
510
|
+
e = f;
|
|
511
|
+
for (var d = e.length; o < d; o++) u(o, o, o === e.length - 1);
|
|
512
|
+
} else (function() {
|
|
513
|
+
var t = void 0;
|
|
514
|
+
Object.keys(e).forEach(function(e) {
|
|
515
|
+
t !== void 0 && u(t, o - 1), t = e, o++;
|
|
516
|
+
}), t !== void 0 && u(t, o - 1, !0);
|
|
517
|
+
})();
|
|
518
|
+
}
|
|
499
519
|
return o === 0 && (s = a(this)), s;
|
|
500
520
|
});
|
|
501
521
|
}, t.exports = e.default;
|
|
502
|
-
})),
|
|
522
|
+
})), tn = /* @__PURE__ */ G(((e, t) => {
|
|
503
523
|
e.__esModule = !0;
|
|
504
524
|
// istanbul ignore next
|
|
505
525
|
function n(e) {
|
|
506
526
|
return e && e.__esModule ? e : { default: e };
|
|
507
527
|
}
|
|
508
|
-
var r = n(
|
|
528
|
+
var r = n(X());
|
|
509
529
|
e.default = function(e) {
|
|
510
530
|
e.registerHelper("helperMissing", function() {
|
|
511
531
|
if (arguments.length !== 1) throw new r.default("Missing helper: \"" + arguments[arguments.length - 1].name + "\"");
|
|
512
532
|
});
|
|
513
533
|
}, t.exports = e.default;
|
|
514
|
-
})),
|
|
534
|
+
})), nn = /* @__PURE__ */ G(((e, t) => {
|
|
515
535
|
e.__esModule = !0;
|
|
516
536
|
// istanbul ignore next
|
|
517
537
|
function n(e) {
|
|
518
538
|
return e && e.__esModule ? e : { default: e };
|
|
519
539
|
}
|
|
520
|
-
var r =
|
|
540
|
+
var r = Y(), i = n(X());
|
|
521
541
|
e.default = function(e) {
|
|
522
542
|
e.registerHelper("if", function(e, t) {
|
|
523
543
|
if (arguments.length != 2) throw new i.default("#if requires exactly one argument");
|
|
@@ -531,7 +551,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
531
551
|
});
|
|
532
552
|
});
|
|
533
553
|
}, t.exports = e.default;
|
|
534
|
-
})),
|
|
554
|
+
})), rn = /* @__PURE__ */ G(((e, t) => {
|
|
535
555
|
e.__esModule = !0, e.default = function(e) {
|
|
536
556
|
e.registerHelper("log", function() {
|
|
537
557
|
for (var t = [void 0], n = arguments[arguments.length - 1], r = 0; r < arguments.length - 1; r++) t.push(arguments[r]);
|
|
@@ -539,19 +559,19 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
539
559
|
n.hash.level == null ? n.data && n.data.level != null && (i = n.data.level) : i = n.hash.level, t[0] = i, e.log.apply(e, t);
|
|
540
560
|
});
|
|
541
561
|
}, t.exports = e.default;
|
|
542
|
-
})),
|
|
562
|
+
})), an = /* @__PURE__ */ G(((e, t) => {
|
|
543
563
|
e.__esModule = !0, e.default = function(e) {
|
|
544
564
|
e.registerHelper("lookup", function(e, t, n) {
|
|
545
565
|
return e && n.lookupProperty(e, t);
|
|
546
566
|
});
|
|
547
567
|
}, t.exports = e.default;
|
|
548
|
-
})),
|
|
568
|
+
})), on = /* @__PURE__ */ G(((e, t) => {
|
|
549
569
|
e.__esModule = !0;
|
|
550
570
|
// istanbul ignore next
|
|
551
571
|
function n(e) {
|
|
552
572
|
return e && e.__esModule ? e : { default: e };
|
|
553
573
|
}
|
|
554
|
-
var r =
|
|
574
|
+
var r = Y(), i = n(X());
|
|
555
575
|
e.default = function(e) {
|
|
556
576
|
e.registerHelper("with", function(e, t) {
|
|
557
577
|
if (arguments.length != 2) throw new i.default("#with requires exactly one argument");
|
|
@@ -565,22 +585,22 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
565
585
|
});
|
|
566
586
|
});
|
|
567
587
|
}, t.exports = e.default;
|
|
568
|
-
})),
|
|
588
|
+
})), sn = /* @__PURE__ */ G(((e) => {
|
|
569
589
|
e.__esModule = !0, e.registerDefaultHelpers = l, e.moveHelperToHooks = u;
|
|
570
590
|
// istanbul ignore next
|
|
571
591
|
function t(e) {
|
|
572
592
|
return e && e.__esModule ? e : { default: e };
|
|
573
593
|
}
|
|
574
|
-
var n = t(
|
|
594
|
+
var n = t($t()), r = t(en()), i = t(tn()), a = t(nn()), o = t(rn()), s = t(an()), c = t(on());
|
|
575
595
|
function l(e) {
|
|
576
596
|
n.default(e), r.default(e), i.default(e), a.default(e), o.default(e), s.default(e), c.default(e);
|
|
577
597
|
}
|
|
578
598
|
function u(e, t, n) {
|
|
579
599
|
e.helpers[t] && (e.hooks[t] = e.helpers[t], n || (e.helpers[t] = void 0));
|
|
580
600
|
}
|
|
581
|
-
})),
|
|
601
|
+
})), cn = /* @__PURE__ */ G(((e, t) => {
|
|
582
602
|
e.__esModule = !0;
|
|
583
|
-
var n =
|
|
603
|
+
var n = Y();
|
|
584
604
|
e.default = function(e) {
|
|
585
605
|
e.registerDecorator("inline", function(e, t, r, i) {
|
|
586
606
|
var a = e;
|
|
@@ -592,19 +612,19 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
592
612
|
}), t.partials[i.args[0]] = i.fn, a;
|
|
593
613
|
});
|
|
594
614
|
}, t.exports = e.default;
|
|
595
|
-
})),
|
|
615
|
+
})), ln = /* @__PURE__ */ G(((e) => {
|
|
596
616
|
e.__esModule = !0, e.registerDefaultDecorators = r;
|
|
597
617
|
// istanbul ignore next
|
|
598
618
|
function t(e) {
|
|
599
619
|
return e && e.__esModule ? e : { default: e };
|
|
600
620
|
}
|
|
601
|
-
var n = t(
|
|
621
|
+
var n = t(cn());
|
|
602
622
|
function r(e) {
|
|
603
623
|
n.default(e);
|
|
604
624
|
}
|
|
605
|
-
})),
|
|
625
|
+
})), un = /* @__PURE__ */ G(((e, t) => {
|
|
606
626
|
e.__esModule = !0;
|
|
607
|
-
var n =
|
|
627
|
+
var n = Y(), r = {
|
|
608
628
|
methodMap: [
|
|
609
629
|
"debug",
|
|
610
630
|
"info",
|
|
@@ -629,13 +649,13 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
629
649
|
}
|
|
630
650
|
};
|
|
631
651
|
e.default = r, t.exports = e.default;
|
|
632
|
-
})),
|
|
652
|
+
})), dn = /* @__PURE__ */ G(((e) => {
|
|
633
653
|
e.__esModule = !0, e.createProtoAccessControl = a, e.resultIsAllowed = o, e.resetLoggedProperties = l;
|
|
634
654
|
// istanbul ignore next
|
|
635
655
|
function t(e) {
|
|
636
656
|
return e && e.__esModule ? e : { default: e };
|
|
637
657
|
}
|
|
638
|
-
var n =
|
|
658
|
+
var n = Y(), r = t(un()), i = Object.create(null);
|
|
639
659
|
function a(e) {
|
|
640
660
|
var t = Object.create(null);
|
|
641
661
|
t.__proto__ = !1, n.extend(t, e.allowedProtoProperties);
|
|
@@ -665,13 +685,13 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
665
685
|
delete i[e];
|
|
666
686
|
});
|
|
667
687
|
}
|
|
668
|
-
})),
|
|
688
|
+
})), fn = /* @__PURE__ */ G(((e) => {
|
|
669
689
|
e.__esModule = !0, e.HandlebarsEnvironment = l;
|
|
670
690
|
// istanbul ignore next
|
|
671
691
|
function t(e) {
|
|
672
692
|
return e && e.__esModule ? e : { default: e };
|
|
673
693
|
}
|
|
674
|
-
var n =
|
|
694
|
+
var n = Y(), r = t(X()), i = sn(), a = ln(), o = t(un()), s = dn();
|
|
675
695
|
e.VERSION = "4.7.9", e.COMPILER_REVISION = 8, e.LAST_COMPATIBLE_COMPILER_REVISION = 7, e.REVISION_CHANGES = {
|
|
676
696
|
1: "<= 1.0.rc.2",
|
|
677
697
|
2: "== 1.0.0-rc.3",
|
|
@@ -722,7 +742,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
722
742
|
s.resetLoggedProperties();
|
|
723
743
|
}
|
|
724
744
|
}, e.log = o.default.log, e.createFrame = n.createFrame, e.logger = o.default;
|
|
725
|
-
})),
|
|
745
|
+
})), pn = /* @__PURE__ */ G(((e, t) => {
|
|
726
746
|
e.__esModule = !0;
|
|
727
747
|
function n(e) {
|
|
728
748
|
this.string = e;
|
|
@@ -730,7 +750,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
730
750
|
n.prototype.toString = n.prototype.toHTML = function() {
|
|
731
751
|
return "" + this.string;
|
|
732
752
|
}, e.default = n, t.exports = e.default;
|
|
733
|
-
})),
|
|
753
|
+
})), mn = /* @__PURE__ */ G(((e) => {
|
|
734
754
|
e.__esModule = !0, e.wrapHelper = t;
|
|
735
755
|
function t(e, t) {
|
|
736
756
|
return typeof e == "function" ? function() {
|
|
@@ -738,7 +758,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
738
758
|
return arguments[arguments.length - 1] = t(n), e.apply(this, arguments);
|
|
739
759
|
} : e;
|
|
740
760
|
}
|
|
741
|
-
})),
|
|
761
|
+
})), hn = /* @__PURE__ */ G(((e) => {
|
|
742
762
|
e.__esModule = !0, e.checkRevision = l, e.template = u, e.wrapProgram = d, e.resolvePartial = f, e.invokePartial = p, e.noop = m;
|
|
743
763
|
// istanbul ignore next
|
|
744
764
|
function t(e) {
|
|
@@ -751,13 +771,16 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
751
771
|
if (e != null) for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
752
772
|
return t.default = e, t;
|
|
753
773
|
}
|
|
754
|
-
var r = n(
|
|
774
|
+
var r = n(Y()), i = t(X()), a = fn(), o = sn(), s = mn(), c = dn();
|
|
755
775
|
function l(e) {
|
|
756
776
|
var t = e && e[0] || 1, n = a.COMPILER_REVISION;
|
|
757
|
-
if (!(t >= a.LAST_COMPATIBLE_COMPILER_REVISION && t <= a.COMPILER_REVISION))
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
777
|
+
if (!(t >= a.LAST_COMPATIBLE_COMPILER_REVISION && t <= a.COMPILER_REVISION)) {
|
|
778
|
+
if (t < a.LAST_COMPATIBLE_COMPILER_REVISION) {
|
|
779
|
+
var r = a.REVISION_CHANGES[n], o = a.REVISION_CHANGES[t];
|
|
780
|
+
throw new i.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + r + ") or downgrade your runtime to an older version (" + o + ").");
|
|
781
|
+
}
|
|
782
|
+
throw new i.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + e[1] + ").");
|
|
783
|
+
}
|
|
761
784
|
}
|
|
762
785
|
function u(e, t) {
|
|
763
786
|
/* istanbul ignore next */
|
|
@@ -774,7 +797,8 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
774
797
|
s = c.join("\n");
|
|
775
798
|
}
|
|
776
799
|
return s;
|
|
777
|
-
}
|
|
800
|
+
}
|
|
801
|
+
throw new i.default("The partial " + o.name + " could not be compiled when running in runtime-only mode");
|
|
778
802
|
}
|
|
779
803
|
var s = {
|
|
780
804
|
strict: function(e, t, n) {
|
|
@@ -844,7 +868,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
844
868
|
function d(e, t, n, r, i, a, o) {
|
|
845
869
|
function s(t) {
|
|
846
870
|
var i = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], s = o;
|
|
847
|
-
return o && t != o[0] &&
|
|
871
|
+
return o && t != o[0] && (t !== e.nullContext || o[0] !== null) && (s = [t].concat(o)), n(e, t, e.helpers, e.partials, i.data || r, a && [i.blockParams].concat(a), s);
|
|
848
872
|
}
|
|
849
873
|
return s = _(n, s, e, o, r, a), s.program = t, s.depth = o ? o.length : 0, s.blockParams = i || 0, s;
|
|
850
874
|
}
|
|
@@ -893,7 +917,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
893
917
|
return e.lookupProperty = n, e;
|
|
894
918
|
});
|
|
895
919
|
}
|
|
896
|
-
})),
|
|
920
|
+
})), gn = /* @__PURE__ */ G(((e, t) => {
|
|
897
921
|
e.__esModule = !0, e.default = function(e) {
|
|
898
922
|
/* istanbul ignore next */
|
|
899
923
|
(function() {
|
|
@@ -907,7 +931,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
907
931
|
return globalThis.Handlebars === e && (globalThis.Handlebars = t), e;
|
|
908
932
|
};
|
|
909
933
|
}, t.exports = e.default;
|
|
910
|
-
})),
|
|
934
|
+
})), _n = /* @__PURE__ */ G(((e, t) => {
|
|
911
935
|
e.__esModule = !0;
|
|
912
936
|
// istanbul ignore next
|
|
913
937
|
function n(e) {
|
|
@@ -920,7 +944,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
920
944
|
if (e != null) for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
921
945
|
return t.default = e, t;
|
|
922
946
|
}
|
|
923
|
-
var i = r(
|
|
947
|
+
var i = r(fn()), a = n(pn()), o = n(X()), s = r(Y()), c = r(hn()), l = n(gn());
|
|
924
948
|
function u() {
|
|
925
949
|
var e = new i.HandlebarsEnvironment();
|
|
926
950
|
return s.extend(e, i), e.SafeString = a.default, e.Exception = o.default, e.Utils = s, e.escapeExpression = s.escapeExpression, e.VM = c, e.template = function(t) {
|
|
@@ -929,7 +953,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
929
953
|
}
|
|
930
954
|
var d = u();
|
|
931
955
|
d.create = u, l.default(d), d.default = d, e.default = d, t.exports = e.default;
|
|
932
|
-
})),
|
|
956
|
+
})), vn = /* @__PURE__ */ G(((e, t) => {
|
|
933
957
|
e.__esModule = !0;
|
|
934
958
|
var n = { helpers: {
|
|
935
959
|
helperExpression: function(e) {
|
|
@@ -943,7 +967,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
943
967
|
}
|
|
944
968
|
} };
|
|
945
969
|
e.default = n, t.exports = e.default;
|
|
946
|
-
})),
|
|
970
|
+
})), yn = /* @__PURE__ */ G(((e, t) => {
|
|
947
971
|
e.__esModule = !0, e.default = (function() {
|
|
948
972
|
var e = {
|
|
949
973
|
trace: function() {},
|
|
@@ -1490,9 +1514,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
1490
1514
|
case 100:
|
|
1491
1515
|
this.$ = [a[s]];
|
|
1492
1516
|
break;
|
|
1493
|
-
case 101:
|
|
1494
|
-
a[s - 1].push(a[s]);
|
|
1495
|
-
break;
|
|
1517
|
+
case 101: a[s - 1].push(a[s]);
|
|
1496
1518
|
}
|
|
1497
1519
|
},
|
|
1498
1520
|
table: [
|
|
@@ -3230,13 +3252,13 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3230
3252
|
}
|
|
3231
3253
|
return t.prototype = e, e.Parser = t, new t();
|
|
3232
3254
|
})(), t.exports = e.default;
|
|
3233
|
-
})),
|
|
3255
|
+
})), bn = /* @__PURE__ */ G(((e, t) => {
|
|
3234
3256
|
e.__esModule = !0;
|
|
3235
3257
|
// istanbul ignore next
|
|
3236
3258
|
function n(e) {
|
|
3237
3259
|
return e && e.__esModule ? e : { default: e };
|
|
3238
3260
|
}
|
|
3239
|
-
var r = n(
|
|
3261
|
+
var r = n(X());
|
|
3240
3262
|
function i() {
|
|
3241
3263
|
this.parents = [];
|
|
3242
3264
|
}
|
|
@@ -3303,13 +3325,13 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3303
3325
|
this.acceptRequired(e, "name"), this.acceptArray(e.params), this.acceptKey(e, "hash");
|
|
3304
3326
|
}
|
|
3305
3327
|
e.default = i, t.exports = e.default;
|
|
3306
|
-
})),
|
|
3328
|
+
})), xn = /* @__PURE__ */ G(((e, t) => {
|
|
3307
3329
|
e.__esModule = !0;
|
|
3308
3330
|
// istanbul ignore next
|
|
3309
3331
|
function n(e) {
|
|
3310
3332
|
return e && e.__esModule ? e : { default: e };
|
|
3311
3333
|
}
|
|
3312
|
-
var r = n(
|
|
3334
|
+
var r = n(bn());
|
|
3313
3335
|
function i() {
|
|
3314
3336
|
var e = arguments.length <= 0 || arguments[0] === void 0 ? {} : arguments[0];
|
|
3315
3337
|
this.options = e;
|
|
@@ -3378,13 +3400,13 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3378
3400
|
}
|
|
3379
3401
|
}
|
|
3380
3402
|
e.default = i, t.exports = e.default;
|
|
3381
|
-
})),
|
|
3403
|
+
})), Sn = /* @__PURE__ */ G(((e) => {
|
|
3382
3404
|
e.__esModule = !0, e.SourceLocation = i, e.id = a, e.stripFlags = o, e.stripComment = s, e.preparePath = c, e.prepareMustache = l, e.prepareRawBlock = u, e.prepareBlock = d, e.prepareProgram = f, e.preparePartialBlock = p;
|
|
3383
3405
|
// istanbul ignore next
|
|
3384
3406
|
function t(e) {
|
|
3385
3407
|
return e && e.__esModule ? e : { default: e };
|
|
3386
3408
|
}
|
|
3387
|
-
var n = t(
|
|
3409
|
+
var n = t(X());
|
|
3388
3410
|
function r(e, t) {
|
|
3389
3411
|
if (t = t.path ? t.path.original : t, e.path.original !== t) {
|
|
3390
3412
|
var r = { loc: e.path.loc };
|
|
@@ -3519,7 +3541,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3519
3541
|
loc: this.locInfo(i)
|
|
3520
3542
|
};
|
|
3521
3543
|
}
|
|
3522
|
-
})),
|
|
3544
|
+
})), Cn = /* @__PURE__ */ G(((e) => {
|
|
3523
3545
|
e.__esModule = !0, e.parseWithoutProcessing = l, e.parse = u;
|
|
3524
3546
|
// istanbul ignore next
|
|
3525
3547
|
function t(e) {
|
|
@@ -3532,7 +3554,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3532
3554
|
function n(e) {
|
|
3533
3555
|
return e && e.__esModule ? e : { default: e };
|
|
3534
3556
|
}
|
|
3535
|
-
var r = n(
|
|
3557
|
+
var r = n(yn()), i = n(xn()), a = t(Sn()), o = n(X()), s = Y();
|
|
3536
3558
|
e.parser = r.default;
|
|
3537
3559
|
var c = {};
|
|
3538
3560
|
s.extend(c, a);
|
|
@@ -3571,13 +3593,13 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3571
3593
|
function p(e) {
|
|
3572
3594
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && e >= 0;
|
|
3573
3595
|
}
|
|
3574
|
-
})),
|
|
3596
|
+
})), wn = /* @__PURE__ */ G(((e) => {
|
|
3575
3597
|
e.__esModule = !0, e.Compiler = o, e.precompile = s, e.compile = c;
|
|
3576
3598
|
// istanbul ignore next
|
|
3577
3599
|
function t(e) {
|
|
3578
3600
|
return e && e.__esModule ? e : { default: e };
|
|
3579
3601
|
}
|
|
3580
|
-
var n = t(
|
|
3602
|
+
var n = t(X()), r = Y(), i = t(vn()), a = [].slice;
|
|
3581
3603
|
function o() {}
|
|
3582
3604
|
o.prototype = {
|
|
3583
3605
|
compiler: o,
|
|
@@ -3795,7 +3817,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3795
3817
|
};
|
|
3796
3818
|
}
|
|
3797
3819
|
}
|
|
3798
|
-
})),
|
|
3820
|
+
})), Tn = /* @__PURE__ */ G(((e) => {
|
|
3799
3821
|
var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
|
|
3800
3822
|
e.encode = function(e) {
|
|
3801
3823
|
if (0 <= e && e < t.length) return t[e];
|
|
@@ -3804,8 +3826,8 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3804
3826
|
var t = 65, n = 90, r = 97, i = 122, a = 48;
|
|
3805
3827
|
return t <= e && e <= n ? e - t : r <= e && e <= i ? e - r + 26 : a <= e && e <= 57 ? e - a + 52 : e == 43 ? 62 : e == 47 ? 63 : -1;
|
|
3806
3828
|
};
|
|
3807
|
-
})),
|
|
3808
|
-
var t =
|
|
3829
|
+
})), En = /* @__PURE__ */ G(((e) => {
|
|
3830
|
+
var t = Tn(), n = 5, r = 1 << n, i = r - 1, a = r;
|
|
3809
3831
|
function o(e) {
|
|
3810
3832
|
return e < 0 ? (-e << 1) + 1 : (e << 1) + 0;
|
|
3811
3833
|
}
|
|
@@ -3828,7 +3850,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3828
3850
|
} while (d);
|
|
3829
3851
|
o.value = s(l), o.rest = r;
|
|
3830
3852
|
};
|
|
3831
|
-
})),
|
|
3853
|
+
})), Dn = /* @__PURE__ */ G(((e) => {
|
|
3832
3854
|
function t(e, t, n) {
|
|
3833
3855
|
if (t in e) return e[t];
|
|
3834
3856
|
if (arguments.length === 3) return n;
|
|
@@ -3940,8 +3962,8 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3940
3962
|
return o(t);
|
|
3941
3963
|
}
|
|
3942
3964
|
e.computeSourceURL = y;
|
|
3943
|
-
})),
|
|
3944
|
-
var t =
|
|
3965
|
+
})), On = /* @__PURE__ */ G(((e) => {
|
|
3966
|
+
var t = Dn(), n = Object.prototype.hasOwnProperty, r = typeof Map < "u";
|
|
3945
3967
|
function i() {
|
|
3946
3968
|
this._array = [], this._set = r ? /* @__PURE__ */ new Map() : Object.create(null);
|
|
3947
3969
|
}
|
|
@@ -3972,8 +3994,8 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3972
3994
|
}, i.prototype.toArray = function() {
|
|
3973
3995
|
return this._array.slice();
|
|
3974
3996
|
}, e.ArraySet = i;
|
|
3975
|
-
})),
|
|
3976
|
-
var t =
|
|
3997
|
+
})), kn = /* @__PURE__ */ G(((e) => {
|
|
3998
|
+
var t = Dn();
|
|
3977
3999
|
function n(e, n) {
|
|
3978
4000
|
var r = e.generatedLine, i = n.generatedLine, a = e.generatedColumn, o = n.generatedColumn;
|
|
3979
4001
|
return i > r || i == r && o >= a || t.compareByGeneratedPositionsInflated(e, n) <= 0;
|
|
@@ -3991,8 +4013,8 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
3991
4013
|
}, r.prototype.toArray = function() {
|
|
3992
4014
|
return this._sorted ||= (this._array.sort(t.compareByGeneratedPositionsInflated), !0), this._array;
|
|
3993
4015
|
}, e.MappingList = r;
|
|
3994
|
-
})),
|
|
3995
|
-
var t =
|
|
4016
|
+
})), An = /* @__PURE__ */ G(((e) => {
|
|
4017
|
+
var t = En(), n = Dn(), r = On().ArraySet, i = kn().MappingList;
|
|
3996
4018
|
function a(e) {
|
|
3997
4019
|
e ||= {}, this._file = n.getArg(e, "file", null), this._sourceRoot = n.getArg(e, "sourceRoot", null), this._skipValidation = n.getArg(e, "skipValidation", !1), this._sources = new r(), this._names = new r(), this._mappings = new i(), this._sourcesContents = null;
|
|
3998
4020
|
}
|
|
@@ -4090,7 +4112,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
4090
4112
|
}, a.prototype.toString = function() {
|
|
4091
4113
|
return JSON.stringify(this.toJSON());
|
|
4092
4114
|
}, e.SourceMapGenerator = a;
|
|
4093
|
-
})),
|
|
4115
|
+
})), jn = /* @__PURE__ */ G(((e) => {
|
|
4094
4116
|
e.GREATEST_LOWER_BOUND = 1, e.LEAST_UPPER_BOUND = 2;
|
|
4095
4117
|
function t(n, r, i, a, o, s) {
|
|
4096
4118
|
var c = Math.floor((r - n) / 2) + n, l = o(i, a[c], !0);
|
|
@@ -4103,7 +4125,7 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
4103
4125
|
for (; o - 1 >= 0 && i(r[o], r[o - 1], !0) === 0;) --o;
|
|
4104
4126
|
return o;
|
|
4105
4127
|
};
|
|
4106
|
-
})),
|
|
4128
|
+
})), Mn = /* @__PURE__ */ G(((e) => {
|
|
4107
4129
|
function t(e, t, n) {
|
|
4108
4130
|
var r = e[t];
|
|
4109
4131
|
e[t] = e[n], e[n] = r;
|
|
@@ -4124,8 +4146,8 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
4124
4146
|
e.quickSort = function(e, t) {
|
|
4125
4147
|
r(e, t, 0, e.length - 1);
|
|
4126
4148
|
};
|
|
4127
|
-
})),
|
|
4128
|
-
var t =
|
|
4149
|
+
})), Nn = /* @__PURE__ */ G(((e) => {
|
|
4150
|
+
var t = Dn(), n = jn(), r = On().ArraySet, i = En(), a = Mn().quickSort;
|
|
4129
4151
|
function o(e, n) {
|
|
4130
4152
|
var r = e;
|
|
4131
4153
|
return typeof e == "string" && (r = t.parseSourceMapInput(e)), r.sections == null ? new s(r, n) : new l(r, n);
|
|
@@ -4416,8 +4438,8 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
4416
4438
|
}
|
|
4417
4439
|
a(this.__generatedMappings, t.compareByGeneratedPositionsDeflated), a(this.__originalMappings, t.compareByOriginalPositions);
|
|
4418
4440
|
}, e.IndexedSourceMapConsumer = l;
|
|
4419
|
-
})),
|
|
4420
|
-
var t =
|
|
4441
|
+
})), Pn = /* @__PURE__ */ G(((e) => {
|
|
4442
|
+
var t = An().SourceMapGenerator, n = Dn(), r = /(\r?\n)/, i = 10, a = "$$$isSourceNode$$$";
|
|
4421
4443
|
function o(e, t, n, r, i) {
|
|
4422
4444
|
this.children = [], this.sourceContents = {}, this.line = e ?? null, this.column = t ?? null, this.source = n ?? null, this.name = i ?? null, this[a] = !0, r != null && this.add(r);
|
|
4423
4445
|
}
|
|
@@ -4429,11 +4451,13 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
4429
4451
|
}
|
|
4430
4452
|
}, u = 1, d = 0, f = null;
|
|
4431
4453
|
return t.eachMapping(function(e) {
|
|
4432
|
-
if (f !== null)
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4454
|
+
if (f !== null) {
|
|
4455
|
+
if (u < e.generatedLine) p(f, l()), u++, d = 0;
|
|
4456
|
+
else {
|
|
4457
|
+
var t = s[c] || "", n = t.substr(0, e.generatedColumn - d);
|
|
4458
|
+
s[c] = t.substr(e.generatedColumn - d), d = e.generatedColumn, p(f, n), f = e;
|
|
4459
|
+
return;
|
|
4460
|
+
}
|
|
4437
4461
|
}
|
|
4438
4462
|
for (; u < e.generatedLine;) a.add(l()), u++;
|
|
4439
4463
|
if (d < e.generatedColumn) {
|
|
@@ -4532,14 +4556,14 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
4532
4556
|
map: r
|
|
4533
4557
|
};
|
|
4534
4558
|
}, e.SourceNode = o;
|
|
4535
|
-
})),
|
|
4536
|
-
e.SourceMapGenerator =
|
|
4537
|
-
})),
|
|
4559
|
+
})), Fn = /* @__PURE__ */ G(((e) => {
|
|
4560
|
+
e.SourceMapGenerator = An().SourceMapGenerator, e.SourceMapConsumer = Nn().SourceMapConsumer, e.SourceNode = Pn().SourceNode;
|
|
4561
|
+
})), In = /* @__PURE__ */ G(((e, t) => {
|
|
4538
4562
|
e.__esModule = !0;
|
|
4539
|
-
var n =
|
|
4563
|
+
var n = Y(), r = void 0;
|
|
4540
4564
|
try {
|
|
4541
4565
|
/* istanbul ignore next */
|
|
4542
|
-
(typeof define != "function" || !define.amd) && (r =
|
|
4566
|
+
(typeof define != "function" || !define.amd) && (r = Fn().SourceNode);
|
|
4543
4567
|
} catch {}
|
|
4544
4568
|
/* istanbul ignore if: tested but not covered in istanbul due to dist build */
|
|
4545
4569
|
r || (r = function(e, t, n, r) {
|
|
@@ -4562,8 +4586,8 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
4562
4586
|
if (n.isArray(e)) {
|
|
4563
4587
|
for (var i = [], a = 0, o = e.length; a < o; a++) i.push(t.wrap(e[a], r));
|
|
4564
4588
|
return i;
|
|
4565
|
-
}
|
|
4566
|
-
return e;
|
|
4589
|
+
}
|
|
4590
|
+
return typeof e == "boolean" || typeof e == "number" ? e + "" : e;
|
|
4567
4591
|
}
|
|
4568
4592
|
function a(e) {
|
|
4569
4593
|
this.srcFile = e, this.source = [];
|
|
@@ -4633,13 +4657,13 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
4633
4657
|
return t.prepend("["), t.add("]"), t;
|
|
4634
4658
|
}
|
|
4635
4659
|
}, e.default = a, t.exports = e.default;
|
|
4636
|
-
})),
|
|
4660
|
+
})), Ln = /* @__PURE__ */ G(((e, t) => {
|
|
4637
4661
|
e.__esModule = !0;
|
|
4638
4662
|
// istanbul ignore next
|
|
4639
4663
|
function n(e) {
|
|
4640
4664
|
return e && e.__esModule ? e : { default: e };
|
|
4641
4665
|
}
|
|
4642
|
-
var r =
|
|
4666
|
+
var r = fn(), i = n(X()), a = Y(), o = n(In());
|
|
4643
4667
|
function s(e) {
|
|
4644
4668
|
this.value = e;
|
|
4645
4669
|
}
|
|
@@ -5123,13 +5147,13 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
5123
5147
|
] : a;
|
|
5124
5148
|
}
|
|
5125
5149
|
e.default = c, t.exports = e.default;
|
|
5126
|
-
})),
|
|
5150
|
+
})), Rn = /* @__PURE__ */ G(((e, t) => {
|
|
5127
5151
|
e.__esModule = !0;
|
|
5128
5152
|
// istanbul ignore next
|
|
5129
5153
|
function n(e) {
|
|
5130
5154
|
return e && e.__esModule ? e : { default: e };
|
|
5131
5155
|
}
|
|
5132
|
-
var r = n(
|
|
5156
|
+
var r = n(_n()), i = n(vn()), a = Cn(), o = wn(), s = n(Ln()), c = n(bn()), l = n(gn()), u = r.default.create;
|
|
5133
5157
|
function d() {
|
|
5134
5158
|
var e = u();
|
|
5135
5159
|
return e.compile = function(t, n) {
|
|
@@ -5140,73 +5164,83 @@ var z = /* @__PURE__ */ j(((e) => {
|
|
|
5140
5164
|
}
|
|
5141
5165
|
var f = d();
|
|
5142
5166
|
f.create = d, l.default(f), f.Visitor = c.default, f.default = f, e.default = f, t.exports = e.default;
|
|
5143
|
-
})))(), 1);
|
|
5144
|
-
|
|
5145
|
-
var
|
|
5167
|
+
})), Z = q(), zn = /* @__PURE__ */ le(Rn(), 1);
|
|
5168
|
+
zn.Utils.escapeExpression = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
5169
|
+
var Bn = "language", Vn = ge((e) => ({
|
|
5146
5170
|
language: "en",
|
|
5147
5171
|
setLanguage: (t) => {
|
|
5148
|
-
e({ language: t }), localStorage.setItem(
|
|
5149
|
-
}
|
|
5150
|
-
})),
|
|
5151
|
-
function
|
|
5152
|
-
let { language:
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
let n =
|
|
5160
|
-
return
|
|
5161
|
-
}, [
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
};
|
|
5170
|
-
return s(() => {
|
|
5172
|
+
e({ language: t }), localStorage.setItem(Bn, t);
|
|
5173
|
+
}
|
|
5174
|
+
})), Hn = (e) => typeof e == "object" && !!e && "one" in e && "many" in e && typeof e.one == "string" && typeof e.many == "string", Un = (e, t) => t === 1 ? e.one : e.many;
|
|
5175
|
+
function Wn(e) {
|
|
5176
|
+
let t = (0, Z.c)(15), { language: n, setLanguage: r } = Vn(), [i] = d(e), a = i[n], o = i.en, c;
|
|
5177
|
+
t[0] !== a || t[1] !== o ? (c = (e) => {
|
|
5178
|
+
let t = Qt(o, e);
|
|
5179
|
+
return Qt(a, e, t);
|
|
5180
|
+
}, t[0] = a, t[1] = o, t[2] = c) : c = t[2];
|
|
5181
|
+
let l = c, u;
|
|
5182
|
+
t[3] === l ? u = t[4] : (u = (e, t) => {
|
|
5183
|
+
let n = `!!! ${e} !!!`, r = l(e);
|
|
5184
|
+
return Hn(r) && t && typeof t.count == "number" && (r = Un(r, t.count)), r === void 0 || typeof r != "string" ? (console.error(`Missing translation for key: ${e}`), n) : zn.compile(r)(t);
|
|
5185
|
+
}, t[3] = l, t[4] = u);
|
|
5186
|
+
let f = u, p;
|
|
5187
|
+
t[5] === l ? p = t[6] : (p = (e, t) => {
|
|
5188
|
+
let n = l(e);
|
|
5189
|
+
return n !== void 0 && (typeof n == "string" || Hn(n) || t?.succeedIfKeyIsObject && typeof n == "object");
|
|
5190
|
+
}, t[5] = l, t[6] = p);
|
|
5191
|
+
let m = p, h = Gn, g, _;
|
|
5192
|
+
t[7] === i ? (g = t[8], _ = t[9]) : (g = () => {
|
|
5171
5193
|
if (process.env.NODE_ENV !== "development") return;
|
|
5172
5194
|
let e = /* @__PURE__ */ new Map();
|
|
5173
|
-
Object.entries(
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5195
|
+
Object.entries(i).forEach((t) => {
|
|
5196
|
+
let [n, r] = t;
|
|
5197
|
+
h(r).forEach((t) => {
|
|
5198
|
+
let r = e.get(t);
|
|
5199
|
+
r || (r = /* @__PURE__ */ new Set(), e.set(t, r)), r.add(n);
|
|
5177
5200
|
});
|
|
5178
5201
|
});
|
|
5179
|
-
let t = Object.keys(
|
|
5202
|
+
let t = Object.keys(i);
|
|
5180
5203
|
e.forEach((e, n) => {
|
|
5181
5204
|
if (e.size === t.length) return;
|
|
5182
5205
|
let r = t.filter((t) => !e.has(t));
|
|
5183
5206
|
console.error("Missing i18n Translation Key:", n, "in languages:", r);
|
|
5184
5207
|
});
|
|
5185
|
-
}, []),
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5208
|
+
}, _ = [i], t[7] = i, t[8] = g, t[9] = _), s(g, _);
|
|
5209
|
+
let v;
|
|
5210
|
+
return t[10] !== n || t[11] !== r || t[12] !== f || t[13] !== m ? (v = {
|
|
5211
|
+
t: f,
|
|
5212
|
+
tExists: m,
|
|
5213
|
+
language: n,
|
|
5214
|
+
setLanguage: r
|
|
5215
|
+
}, t[10] = n, t[11] = r, t[12] = f, t[13] = m, t[14] = v) : v = t[14], v;
|
|
5216
|
+
}
|
|
5217
|
+
function Gn(e) {
|
|
5218
|
+
let t = [], n = (e, r) => {
|
|
5219
|
+
Object.entries(e).forEach((e) => {
|
|
5220
|
+
let [i, a] = e, o = r ? `${r}.${i}` : i;
|
|
5221
|
+
typeof a == "object" && a && !Array.isArray(a) && !Hn(a) ? n(a, o) : t.push(o);
|
|
5222
|
+
});
|
|
5190
5223
|
};
|
|
5224
|
+
return n(e, ""), t;
|
|
5191
5225
|
}
|
|
5192
|
-
function
|
|
5193
|
-
let e = localStorage.getItem(
|
|
5226
|
+
function Kn() {
|
|
5227
|
+
let e = localStorage.getItem(Bn), t = sessionStorage.getItem(Bn), n = navigator.language;
|
|
5194
5228
|
n.includes("-") && (n = n.split("-")[0]);
|
|
5195
5229
|
let r = e || t || n;
|
|
5196
|
-
|
|
5230
|
+
Vn.getState().setLanguage(r);
|
|
5197
5231
|
}
|
|
5198
5232
|
//#endregion
|
|
5199
5233
|
//#region ../../node_modules/.pnpm/jdenticon@3.3.0/node_modules/jdenticon/dist/jdenticon-module.mjs
|
|
5200
|
-
function
|
|
5234
|
+
function qn(e, t, n) {
|
|
5201
5235
|
return parseInt(e.substr(t, n), 16);
|
|
5202
5236
|
}
|
|
5203
|
-
function
|
|
5237
|
+
function Jn(e) {
|
|
5204
5238
|
return e |= 0, e < 0 ? "00" : e < 16 ? "0" + e.toString(16) : e < 256 ? e.toString(16) : "ff";
|
|
5205
5239
|
}
|
|
5206
|
-
function
|
|
5207
|
-
return n = n < 0 ? n + 6 : n > 6 ? n - 6 : n,
|
|
5240
|
+
function Yn(e, t, n) {
|
|
5241
|
+
return n = n < 0 ? n + 6 : n > 6 ? n - 6 : n, Jn(255 * (n < 1 ? e + (t - e) * n : n < 3 ? t : n < 4 ? e + (t - e) * (4 - n) : e));
|
|
5208
5242
|
}
|
|
5209
|
-
function
|
|
5243
|
+
function Xn(e) {
|
|
5210
5244
|
if (/^#[0-9a-f]{3,8}$/i.test(e)) {
|
|
5211
5245
|
let t, n = e.length;
|
|
5212
5246
|
if (n < 6) {
|
|
@@ -5216,18 +5250,18 @@ function Qn(e) {
|
|
|
5216
5250
|
return (n == 7 || n > 8) && (t = e), t;
|
|
5217
5251
|
}
|
|
5218
5252
|
}
|
|
5219
|
-
function
|
|
5253
|
+
function Zn(e, t, n) {
|
|
5220
5254
|
let r;
|
|
5221
5255
|
if (t == 0) {
|
|
5222
|
-
let e =
|
|
5256
|
+
let e = Jn(n * 255);
|
|
5223
5257
|
r = e + e + e;
|
|
5224
5258
|
} else {
|
|
5225
5259
|
let i = n <= .5 ? n * (t + 1) : n + t - n * t, a = n * 2 - i;
|
|
5226
|
-
r =
|
|
5260
|
+
r = Yn(a, i, e * 6 + 2) + Yn(a, i, e * 6) + Yn(a, i, e * 6 - 2);
|
|
5227
5261
|
}
|
|
5228
5262
|
return "#" + r;
|
|
5229
5263
|
}
|
|
5230
|
-
function
|
|
5264
|
+
function Qn(e, t, n) {
|
|
5231
5265
|
let r = [
|
|
5232
5266
|
.55,
|
|
5233
5267
|
.5,
|
|
@@ -5237,14 +5271,14 @@ function er(e, t, n) {
|
|
|
5237
5271
|
.55,
|
|
5238
5272
|
.55
|
|
5239
5273
|
][e * 6 + .5 | 0];
|
|
5240
|
-
return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2,
|
|
5274
|
+
return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2, Zn(e, t, n);
|
|
5241
5275
|
}
|
|
5242
|
-
var
|
|
5276
|
+
var $n = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {}, er = {
|
|
5243
5277
|
V: "jdenticon_config",
|
|
5244
5278
|
n: "config"
|
|
5245
|
-
},
|
|
5246
|
-
function
|
|
5247
|
-
let n = typeof e == "object" && e ||
|
|
5279
|
+
}, tr = {};
|
|
5280
|
+
function nr(e, t) {
|
|
5281
|
+
let n = typeof e == "object" && e || tr[er.n] || $n[er.V] || {}, r = n.lightness || {}, i = n.saturation || {}, a = "color" in i ? i.color : i, o = i.grayscale, s = n.backColor, c = n.padding;
|
|
5248
5282
|
function l(e, t) {
|
|
5249
5283
|
let n = r[e];
|
|
5250
5284
|
return n && n.length > 1 || (n = t), function(e) {
|
|
@@ -5261,25 +5295,25 @@ function ir(e, t) {
|
|
|
5261
5295
|
D: typeof o == "number" ? o : 0,
|
|
5262
5296
|
p: l("color", [.4, .8]),
|
|
5263
5297
|
F: l("grayscale", [.3, .9]),
|
|
5264
|
-
G:
|
|
5298
|
+
G: Xn(s),
|
|
5265
5299
|
X: typeof e == "number" ? e : typeof c == "number" ? c : t
|
|
5266
5300
|
};
|
|
5267
5301
|
}
|
|
5268
|
-
var
|
|
5302
|
+
var rr = class {
|
|
5269
5303
|
constructor(e, t) {
|
|
5270
5304
|
this.x = e, this.y = t;
|
|
5271
5305
|
}
|
|
5272
|
-
},
|
|
5306
|
+
}, ir = class {
|
|
5273
5307
|
constructor(e, t, n, r) {
|
|
5274
5308
|
this.q = e, this.t = t, this.H = n, this.Y = r;
|
|
5275
5309
|
}
|
|
5276
5310
|
I(e, t, n, r) {
|
|
5277
5311
|
let i = this.q + this.H, a = this.t + this.H, o = this.Y;
|
|
5278
|
-
return o === 1 ? new
|
|
5312
|
+
return o === 1 ? new rr(i - t - (r || 0), this.t + e) : o === 2 ? new rr(i - e - (n || 0), a - t - (r || 0)) : o === 3 ? new rr(this.q + t, a - e - (n || 0)) : new rr(this.q + e, this.t + t);
|
|
5279
5313
|
}
|
|
5280
|
-
},
|
|
5314
|
+
}, ar = new ir(0, 0, 0, 0), or = class {
|
|
5281
5315
|
constructor(e) {
|
|
5282
|
-
this.J = e, this.u =
|
|
5316
|
+
this.J = e, this.u = ar;
|
|
5283
5317
|
}
|
|
5284
5318
|
g(e, t) {
|
|
5285
5319
|
let n = t ? -2 : 2, r = [];
|
|
@@ -5328,7 +5362,7 @@ var ar = class {
|
|
|
5328
5362
|
], i);
|
|
5329
5363
|
}
|
|
5330
5364
|
};
|
|
5331
|
-
function
|
|
5365
|
+
function sr(e, t, n, r) {
|
|
5332
5366
|
e %= 14;
|
|
5333
5367
|
let i, a, o, s, c, l;
|
|
5334
5368
|
e ? e == 1 ? (o = 0 | n * .5, s = 0 | n * .8, t.j(n - o, 0, o, s, 2)) : e == 2 ? (o = 0 | n / 3, t.i(o, o, n - o, n - o)) : e == 3 ? (c = n * .1, l = n < 6 ? 1 : n < 8 ? 2 : 0 | n * .25, c = c > 1 ? 0 | c : c > .5 ? 1 : c, t.i(l, l, n - c - l, n - c - l)) : e == 4 ? (a = 0 | n * .15, o = 0 | n * .5, t.h(n - o - a, n - o - a, o)) : e == 5 ? (c = n * .1, l = c * 4, l > 3 && (l = 0 | l), t.i(0, 0, n, n), t.g([
|
|
@@ -5364,40 +5398,40 @@ function lr(e, t, n, r) {
|
|
|
5364
5398
|
n
|
|
5365
5399
|
]));
|
|
5366
5400
|
}
|
|
5367
|
-
function
|
|
5401
|
+
function cr(e, t, n) {
|
|
5368
5402
|
e %= 4;
|
|
5369
5403
|
let r;
|
|
5370
5404
|
e ? e == 1 ? t.j(0, n / 2, n, n / 2, 0) : e == 2 ? t.K(0, 0, n, n) : (r = n / 6, t.h(r, r, n - 2 * r)) : t.j(0, 0, n, n, 0);
|
|
5371
5405
|
}
|
|
5372
|
-
function
|
|
5406
|
+
function lr(e, t) {
|
|
5373
5407
|
return e = t.W(e), [
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5408
|
+
Qn(e, t.D, t.F(0)),
|
|
5409
|
+
Qn(e, t.o, t.p(.5)),
|
|
5410
|
+
Qn(e, t.D, t.F(1)),
|
|
5411
|
+
Qn(e, t.o, t.p(1)),
|
|
5412
|
+
Qn(e, t.o, t.p(0))
|
|
5379
5413
|
];
|
|
5380
5414
|
}
|
|
5381
|
-
function
|
|
5382
|
-
let r =
|
|
5415
|
+
function ur(e, t, n) {
|
|
5416
|
+
let r = nr(n, .08);
|
|
5383
5417
|
r.G && e.m(r.G);
|
|
5384
5418
|
let i = e.k, a = .5 + i * r.X | 0;
|
|
5385
5419
|
i -= a * 2;
|
|
5386
|
-
let o = new
|
|
5420
|
+
let o = new or(e), s = 0 | i / 4, c = 0 | a + i / 2 - s * 2, l = 0 | a + i / 2 - s * 2;
|
|
5387
5421
|
function u(n, r, i, a, u) {
|
|
5388
|
-
let p =
|
|
5422
|
+
let p = qn(t, i, 1), m = a ? qn(t, a, 1) : 0;
|
|
5389
5423
|
e.L(d[f[n]]);
|
|
5390
|
-
for (let e = 0; e < u.length; e++) o.u = new
|
|
5424
|
+
for (let e = 0; e < u.length; e++) o.u = new ir(c + u[e][0] * s, l + u[e][1] * s, s, m++ % 4), r(p, o, s, e);
|
|
5391
5425
|
e.M();
|
|
5392
5426
|
}
|
|
5393
|
-
let d =
|
|
5427
|
+
let d = lr(qn(t, -7) / 268435455, r), f = [], p;
|
|
5394
5428
|
function m(e) {
|
|
5395
5429
|
if (e.indexOf(p) >= 0) {
|
|
5396
5430
|
for (let t = 0; t < e.length; t++) if (f.indexOf(e[t]) >= 0) return !0;
|
|
5397
5431
|
}
|
|
5398
5432
|
}
|
|
5399
|
-
for (let e = 0; e < 3; e++) p =
|
|
5400
|
-
u(0,
|
|
5433
|
+
for (let e = 0; e < 3; e++) p = qn(t, 8 + e, 1) % d.length, (m([0, 4]) || m([2, 3])) && (p = 1), f.push(p);
|
|
5434
|
+
u(0, cr, 2, 3, [
|
|
5401
5435
|
[1, 0],
|
|
5402
5436
|
[2, 0],
|
|
5403
5437
|
[2, 3],
|
|
@@ -5406,19 +5440,19 @@ function fr(e, t, n) {
|
|
|
5406
5440
|
[3, 1],
|
|
5407
5441
|
[3, 2],
|
|
5408
5442
|
[0, 2]
|
|
5409
|
-
]), u(1,
|
|
5443
|
+
]), u(1, cr, 4, 5, [
|
|
5410
5444
|
[0, 0],
|
|
5411
5445
|
[3, 0],
|
|
5412
5446
|
[3, 3],
|
|
5413
5447
|
[0, 3]
|
|
5414
|
-
]), u(2,
|
|
5448
|
+
]), u(2, sr, 1, null, [
|
|
5415
5449
|
[1, 1],
|
|
5416
5450
|
[2, 1],
|
|
5417
5451
|
[2, 2],
|
|
5418
5452
|
[1, 2]
|
|
5419
5453
|
]), e.finish();
|
|
5420
5454
|
}
|
|
5421
|
-
function
|
|
5455
|
+
function dr(e) {
|
|
5422
5456
|
var t = 0, n = 0, r = encodeURI(e) + "%80", i = [], a, o = [], s = 1732584193, c = 4023233417, l = ~s, u = ~c, d = 3285377520, f = [
|
|
5423
5457
|
s,
|
|
5424
5458
|
c,
|
|
@@ -5437,39 +5471,39 @@ function pr(e) {
|
|
|
5437
5471
|
for (t = 0; t < 40; t++) m += (f[t >> 3] >>> (7 - (t & 7)) * 4 & 15).toString(16);
|
|
5438
5472
|
return m;
|
|
5439
5473
|
}
|
|
5440
|
-
function
|
|
5474
|
+
function fr(e) {
|
|
5441
5475
|
return /^[0-9a-f]{11,}$/i.test(e) && e;
|
|
5442
5476
|
}
|
|
5443
|
-
function
|
|
5444
|
-
return
|
|
5477
|
+
function pr(e) {
|
|
5478
|
+
return dr(e == null ? "" : "" + e);
|
|
5445
5479
|
}
|
|
5446
5480
|
typeof document < "u" && document.querySelectorAll.bind(document);
|
|
5447
|
-
function
|
|
5481
|
+
function mr(e) {
|
|
5448
5482
|
return (e * 10 + .5 | 0) / 10;
|
|
5449
5483
|
}
|
|
5450
|
-
var
|
|
5484
|
+
var hr = class {
|
|
5451
5485
|
constructor() {
|
|
5452
5486
|
this.v = "";
|
|
5453
5487
|
}
|
|
5454
5488
|
g(e) {
|
|
5455
5489
|
let t = "";
|
|
5456
|
-
for (let n = 0; n < e.length; n++) t += (n ? "L" : "M") +
|
|
5490
|
+
for (let n = 0; n < e.length; n++) t += (n ? "L" : "M") + mr(e[n].x) + " " + mr(e[n].y);
|
|
5457
5491
|
this.v += t + "Z";
|
|
5458
5492
|
}
|
|
5459
5493
|
h(e, t, n) {
|
|
5460
|
-
let r = +!n, i =
|
|
5461
|
-
this.v += "M" +
|
|
5494
|
+
let r = +!n, i = mr(t / 2), a = mr(t), o = "a" + i + "," + i + " 0 1," + r + " ";
|
|
5495
|
+
this.v += "M" + mr(e.x) + " " + mr(e.y + t / 2) + o + a + ",0" + o + -a + ",0";
|
|
5462
5496
|
}
|
|
5463
|
-
},
|
|
5497
|
+
}, gr = class {
|
|
5464
5498
|
constructor(e) {
|
|
5465
5499
|
this.A, this.B = {}, this.O = e, this.k = e.k;
|
|
5466
5500
|
}
|
|
5467
5501
|
m(e) {
|
|
5468
|
-
let t = /^(#......)(..)?/.exec(e), n = t[2] ?
|
|
5502
|
+
let t = /^(#......)(..)?/.exec(e), n = t[2] ? qn(t[2], 0) / 255 : 1;
|
|
5469
5503
|
this.O.m(t[1], n);
|
|
5470
5504
|
}
|
|
5471
5505
|
L(e) {
|
|
5472
|
-
this.A = this.B[e] || (this.B[e] = new
|
|
5506
|
+
this.A = this.B[e] || (this.B[e] = new hr());
|
|
5473
5507
|
}
|
|
5474
5508
|
M() {}
|
|
5475
5509
|
g(e) {
|
|
@@ -5482,13 +5516,13 @@ var gr = class {
|
|
|
5482
5516
|
let e = this.B;
|
|
5483
5517
|
for (let t in e) e.hasOwnProperty(t) && this.O.P(t, e[t].v);
|
|
5484
5518
|
}
|
|
5485
|
-
},
|
|
5519
|
+
}, _r = {
|
|
5486
5520
|
R: "http://www.w3.org/2000/svg",
|
|
5487
5521
|
S: "width",
|
|
5488
5522
|
T: "height"
|
|
5489
|
-
},
|
|
5523
|
+
}, vr = class {
|
|
5490
5524
|
constructor(e) {
|
|
5491
|
-
this.k = e, this.C = "<svg xmlns=\"" +
|
|
5525
|
+
this.k = e, this.C = "<svg xmlns=\"" + _r.R + "\" width=\"" + e + "\" height=\"" + e + "\" viewBox=\"0 0 " + e + " " + e + "\">";
|
|
5492
5526
|
}
|
|
5493
5527
|
m(e, t) {
|
|
5494
5528
|
t && (this.C += "<rect width=\"100%\" height=\"100%\" fill=\"" + e + "\" opacity=\"" + t.toFixed(2) + "\"/>");
|
|
@@ -5500,16 +5534,16 @@ var gr = class {
|
|
|
5500
5534
|
return this.C + "</svg>";
|
|
5501
5535
|
}
|
|
5502
5536
|
};
|
|
5503
|
-
function
|
|
5504
|
-
let r = new
|
|
5505
|
-
return
|
|
5537
|
+
function yr(e, t, n) {
|
|
5538
|
+
let r = new vr(t);
|
|
5539
|
+
return ur(new gr(r), fr(e) || pr(e), n), r.toString();
|
|
5506
5540
|
}
|
|
5507
5541
|
//#endregion
|
|
5508
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.
|
|
5509
|
-
var
|
|
5510
|
-
let t =
|
|
5542
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.30.0_react@19.2.8/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
|
|
5543
|
+
var br = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), xr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), Cr = (e) => {
|
|
5544
|
+
let t = Sr(e);
|
|
5511
5545
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
5512
|
-
},
|
|
5546
|
+
}, wr = {
|
|
5513
5547
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5514
5548
|
width: 24,
|
|
5515
5549
|
height: 24,
|
|
@@ -5519,37 +5553,37 @@ var xr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
|
|
|
5519
5553
|
strokeWidth: 2,
|
|
5520
5554
|
strokeLinecap: "round",
|
|
5521
5555
|
strokeLinejoin: "round"
|
|
5522
|
-
},
|
|
5556
|
+
}, Tr = (e) => {
|
|
5523
5557
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
5524
5558
|
return !1;
|
|
5525
|
-
},
|
|
5526
|
-
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } =
|
|
5559
|
+
}, Er = n({}), Dr = () => o(Er), Or = i(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: i, className: a = "", children: o, iconNode: s, ...c }, l) => {
|
|
5560
|
+
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = Dr() ?? {}, h = i ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
|
|
5527
5561
|
return r("svg", {
|
|
5528
5562
|
ref: l,
|
|
5529
|
-
...
|
|
5530
|
-
width: t ?? u ??
|
|
5531
|
-
height: t ?? u ??
|
|
5563
|
+
...wr,
|
|
5564
|
+
width: t ?? u ?? wr.width,
|
|
5565
|
+
height: t ?? u ?? wr.height,
|
|
5532
5566
|
stroke: e ?? p,
|
|
5533
5567
|
strokeWidth: h,
|
|
5534
|
-
className:
|
|
5535
|
-
...!o && !
|
|
5568
|
+
className: br("lucide", m, a),
|
|
5569
|
+
...!o && !Tr(c) && { "aria-hidden": "true" },
|
|
5536
5570
|
...c
|
|
5537
5571
|
}, [...s.map(([e, t]) => r(e, t)), ...Array.isArray(o) ? o : [o]]);
|
|
5538
|
-
}),
|
|
5539
|
-
let n = i(({ className: n, ...i }, a) => r(
|
|
5572
|
+
}), kr = (e, t) => {
|
|
5573
|
+
let n = i(({ className: n, ...i }, a) => r(Or, {
|
|
5540
5574
|
ref: a,
|
|
5541
5575
|
iconNode: t,
|
|
5542
|
-
className:
|
|
5576
|
+
className: br(`lucide-${xr(Cr(e))}`, `lucide-${e}`, n),
|
|
5543
5577
|
...i
|
|
5544
5578
|
}));
|
|
5545
|
-
return n.displayName =
|
|
5546
|
-
}, Ar =
|
|
5579
|
+
return n.displayName = Cr(e), n;
|
|
5580
|
+
}, Ar = kr("chevron-down", [["path", {
|
|
5547
5581
|
d: "m6 9 6 6 6-6",
|
|
5548
5582
|
key: "qrunsl"
|
|
5549
|
-
}]]), jr =
|
|
5583
|
+
}]]), jr = kr("message-circle", [["path", {
|
|
5550
5584
|
d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
|
|
5551
5585
|
key: "1sd12s"
|
|
5552
|
-
}]]), Mr =
|
|
5586
|
+
}]]), Mr = kr("search", [["path", {
|
|
5553
5587
|
d: "m21 21-4.34-4.34",
|
|
5554
5588
|
key: "14j7rj"
|
|
5555
5589
|
}], ["circle", {
|
|
@@ -5557,7 +5591,7 @@ var xr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
|
|
|
5557
5591
|
cy: "11",
|
|
5558
5592
|
r: "8",
|
|
5559
5593
|
key: "4ej97u"
|
|
5560
|
-
}]]), Nr =
|
|
5594
|
+
}]]), Nr = kr("triangle-alert", [
|
|
5561
5595
|
["path", {
|
|
5562
5596
|
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
5563
5597
|
key: "wmoenq"
|
|
@@ -5570,7 +5604,7 @@ var xr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
|
|
|
5570
5604
|
d: "M12 17h.01",
|
|
5571
5605
|
key: "p32p05"
|
|
5572
5606
|
}]
|
|
5573
|
-
]), Pr =
|
|
5607
|
+
]), Pr = kr("user-plus", [
|
|
5574
5608
|
["path", {
|
|
5575
5609
|
d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
|
|
5576
5610
|
key: "1yyitq"
|
|
@@ -5595,18 +5629,21 @@ var xr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
|
|
|
5595
5629
|
y2: "11",
|
|
5596
5630
|
key: "1shjgl"
|
|
5597
5631
|
}]
|
|
5598
|
-
]), Fr =
|
|
5632
|
+
]), Fr = kr("x", [["path", {
|
|
5599
5633
|
d: "M18 6 6 18",
|
|
5600
5634
|
key: "1bl5f8"
|
|
5601
5635
|
}], ["path", {
|
|
5602
5636
|
d: "m6 6 12 12",
|
|
5603
5637
|
key: "d8bk6v"
|
|
5604
5638
|
}]]), Ir = n({});
|
|
5605
|
-
function Lr(
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5639
|
+
function Lr(e) {
|
|
5640
|
+
let t = (0, Z.c)(5), { children: n, onStartDirectMessage: r } = e, i;
|
|
5641
|
+
t[0] === r ? i = t[1] : (i = { onStartDirectMessage: r }, t[0] = r, t[1] = i);
|
|
5642
|
+
let a;
|
|
5643
|
+
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ L(Ir.Provider, {
|
|
5644
|
+
value: i,
|
|
5645
|
+
children: n
|
|
5646
|
+
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
5610
5647
|
}
|
|
5611
5648
|
function Rr() {
|
|
5612
5649
|
return o(Ir);
|
|
@@ -5624,98 +5661,137 @@ var zr = {
|
|
|
5624
5661
|
};
|
|
5625
5662
|
//#endregion
|
|
5626
5663
|
//#region src/lib/components/attraccess-user/AttraccessUser.tsx
|
|
5627
|
-
function Vr(
|
|
5628
|
-
let {
|
|
5664
|
+
function Vr(e) {
|
|
5665
|
+
let t = (0, Z.c)(62), { user: n, description: r, className: i, onStartDirectMessage: a, variant: o, interactive: s } = e, c = o === void 0 ? "full" : o, l = s === void 0 || s, u;
|
|
5666
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
5629
5667
|
en: zr,
|
|
5630
5668
|
de: Br
|
|
5631
|
-
}
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
e
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
}
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5669
|
+
}, t[0] = u) : u = t[0];
|
|
5670
|
+
let { t: d } = Wn(u), g = Rr(), _ = !n || !!n?.deletedAt, v;
|
|
5671
|
+
bb0: {
|
|
5672
|
+
if (_) {
|
|
5673
|
+
v = void 0;
|
|
5674
|
+
break bb0;
|
|
5675
|
+
}
|
|
5676
|
+
let e;
|
|
5677
|
+
if (t[1] !== n?.id) {
|
|
5678
|
+
let r = yr(n?.id || "unknown", 100);
|
|
5679
|
+
e = btoa(r), t[1] = n?.id, t[2] = e;
|
|
5680
|
+
} else e = t[2];
|
|
5681
|
+
v = `data:image/svg+xml;base64,${e}`;
|
|
5682
|
+
}
|
|
5683
|
+
let y = v, b, x, S, C, w, T, E, D;
|
|
5684
|
+
if (t[3] !== g || t[4] !== y || t[5] !== l || t[6] !== _ || t[7] !== a || t[8] !== d || t[9] !== n) {
|
|
5685
|
+
C = n?.username || d("unknown");
|
|
5686
|
+
let e;
|
|
5687
|
+
t[18] !== g || t[19] !== a || t[20] !== n ? (e = () => {
|
|
5688
|
+
a ? a(n) : g.onStartDirectMessage(n);
|
|
5689
|
+
}, t[18] = g, t[19] = a, t[20] = n, t[21] = e) : e = t[21], w = e, S = l && !!n && !!w, x = f, D = y ? /* @__PURE__ */ L(m, {
|
|
5690
|
+
src: y,
|
|
5691
|
+
alt: C
|
|
5692
|
+
}) : null, b = p, T = _ ? "warning" : void 0, E = _ ? /* @__PURE__ */ L(Nr, { className: "w-4 h-4" }) : C.slice(0, 2).toUpperCase(), t[3] = g, t[4] = y, t[5] = l, t[6] = _, t[7] = a, t[8] = d, t[9] = n, t[10] = b, t[11] = x, t[12] = S, t[13] = C, t[14] = w, t[15] = T, t[16] = E, t[17] = D;
|
|
5693
|
+
} else b = t[10], x = t[11], S = t[12], C = t[13], w = t[14], T = t[15], E = t[16], D = t[17];
|
|
5694
|
+
let O;
|
|
5695
|
+
t[22] !== b || t[23] !== T || t[24] !== E ? (O = /* @__PURE__ */ L(b, {
|
|
5696
|
+
color: T,
|
|
5697
|
+
children: E
|
|
5698
|
+
}), t[22] = b, t[23] = T, t[24] = E, t[25] = O) : O = t[25];
|
|
5699
|
+
let ee;
|
|
5700
|
+
t[26] !== x || t[27] !== D || t[28] !== O ? (ee = /* @__PURE__ */ R(x, { children: [D, O] }), t[26] = x, t[27] = D, t[28] = O, t[29] = ee) : ee = t[29];
|
|
5701
|
+
let te = ee, ne = `flex items-center gap-2 ${i ?? ""}`, A;
|
|
5702
|
+
t[30] !== _ || t[31] !== C ? (A = _ ? /* @__PURE__ */ L("del", { children: C }) : C, t[30] = _, t[31] = C, t[32] = A) : A = t[32];
|
|
5703
|
+
let j;
|
|
5704
|
+
t[33] === A ? j = t[34] : (j = /* @__PURE__ */ L("span", {
|
|
5705
|
+
className: "text-sm font-medium group-hover:underline",
|
|
5706
|
+
children: A
|
|
5707
|
+
}), t[33] = A, t[34] = j);
|
|
5708
|
+
let M;
|
|
5709
|
+
t[35] === S ? M = t[36] : (M = S && /* @__PURE__ */ L(Ar, {
|
|
5710
|
+
className: "h-3 w-3 text-muted-foreground shrink-0",
|
|
5711
|
+
"aria-hidden": "true",
|
|
5712
|
+
focusable: "false"
|
|
5713
|
+
}), t[35] = S, t[36] = M);
|
|
5714
|
+
let N;
|
|
5715
|
+
t[37] !== j || t[38] !== M ? (N = /* @__PURE__ */ R("div", {
|
|
5716
|
+
className: "flex flex-row items-center gap-1",
|
|
5717
|
+
children: [j, M]
|
|
5718
|
+
}), t[37] = j, t[38] = M, t[39] = N) : N = t[39];
|
|
5719
|
+
let re;
|
|
5720
|
+
t[40] !== r || t[41] !== _ ? (re = r && /* @__PURE__ */ L("span", {
|
|
5721
|
+
className: "text-xs text-muted-foreground",
|
|
5722
|
+
children: _ ? /* @__PURE__ */ L("del", { children: r }) : r
|
|
5723
|
+
}), t[40] = r, t[41] = _, t[42] = re) : re = t[42];
|
|
5724
|
+
let P;
|
|
5725
|
+
t[43] !== N || t[44] !== re ? (P = /* @__PURE__ */ R("div", {
|
|
5726
|
+
className: "flex flex-col",
|
|
5727
|
+
children: [N, re]
|
|
5728
|
+
}), t[43] = N, t[44] = re, t[45] = P) : P = t[45];
|
|
5729
|
+
let ie;
|
|
5730
|
+
t[46] !== te || t[47] !== ne || t[48] !== P ? (ie = /* @__PURE__ */ R("div", {
|
|
5731
|
+
className: ne,
|
|
5732
|
+
children: [te, P]
|
|
5733
|
+
}), t[46] = te, t[47] = ne, t[48] = P, t[49] = ie) : ie = t[49];
|
|
5734
|
+
let ae = ie, F = c === "mini" ? te : ae;
|
|
5735
|
+
if (!S) return F;
|
|
5736
|
+
let I;
|
|
5737
|
+
t[50] === F ? I = t[51] : (I = /* @__PURE__ */ L(k.Trigger, {
|
|
5668
5738
|
className: "group inline-flex w-fit cursor-pointer rounded-md outline-none focus-visible:ring-2",
|
|
5669
|
-
children:
|
|
5670
|
-
}),
|
|
5739
|
+
children: F
|
|
5740
|
+
}), t[50] = F, t[51] = I);
|
|
5741
|
+
let oe;
|
|
5742
|
+
t[52] !== _ || t[53] !== w || t[54] !== d ? (oe = !_ && /* @__PURE__ */ R(h, {
|
|
5743
|
+
variant: "primary",
|
|
5744
|
+
size: "sm",
|
|
5745
|
+
className: "w-full",
|
|
5746
|
+
onPress: w,
|
|
5747
|
+
children: [/* @__PURE__ */ L(jr, { className: "h-4 w-4" }), d("startDirectMessage")]
|
|
5748
|
+
}), t[52] = _, t[53] = w, t[54] = d, t[55] = oe) : oe = t[55];
|
|
5749
|
+
let z;
|
|
5750
|
+
t[56] !== oe || t[57] !== ae ? (z = /* @__PURE__ */ L(k.Content, { children: /* @__PURE__ */ R(k.Dialog, {
|
|
5671
5751
|
className: "flex w-64 flex-col gap-3 p-4",
|
|
5672
|
-
children: [
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
onPress: _,
|
|
5677
|
-
children: [/* @__PURE__ */ k(jr, { className: "h-4 w-4" }), s("startDirectMessage")]
|
|
5678
|
-
})]
|
|
5679
|
-
}) })] }) : x;
|
|
5752
|
+
children: [ae, oe]
|
|
5753
|
+
}) }), t[56] = oe, t[57] = ae, t[58] = z) : z = t[58];
|
|
5754
|
+
let B;
|
|
5755
|
+
return t[59] !== I || t[60] !== z ? (B = /* @__PURE__ */ R(k, { children: [I, z] }), t[59] = I, t[60] = z, t[61] = B) : B = t[61], B;
|
|
5680
5756
|
}
|
|
5681
5757
|
//#endregion
|
|
5682
5758
|
//#region src/lib/hooks/useDebounce.ts
|
|
5683
5759
|
function Hr(e, t) {
|
|
5684
|
-
let
|
|
5685
|
-
return
|
|
5760
|
+
let n = (0, Z.c)(4), [r, i] = d(e), a, o;
|
|
5761
|
+
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
5686
5762
|
let n = setTimeout(() => {
|
|
5687
|
-
|
|
5763
|
+
i(e);
|
|
5688
5764
|
}, t);
|
|
5689
5765
|
return () => {
|
|
5690
5766
|
clearTimeout(n);
|
|
5691
5767
|
};
|
|
5692
|
-
}, [e, t]), n;
|
|
5768
|
+
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), s(a, o), r;
|
|
5693
5769
|
}
|
|
5694
5770
|
//#endregion
|
|
5695
5771
|
//#region src/lib/hooks/useFormatDateTime.tsx
|
|
5696
5772
|
function Ur(e) {
|
|
5697
|
-
let
|
|
5773
|
+
let t = (0, Z.c)(9), n;
|
|
5774
|
+
t[0] === e ? n = t[1] : (n = e ?? {}, t[0] = e, t[1] = n);
|
|
5775
|
+
let { showTime: r, showDate: i, showSeconds: a } = n, o = r === void 0 || r, s = i === void 0 || i, c = a !== void 0 && a, { language: l } = Vn(), u;
|
|
5776
|
+
if (t[2] !== l || t[3] !== s || t[4] !== c || t[5] !== o) {
|
|
5698
5777
|
let e = {};
|
|
5699
|
-
|
|
5700
|
-
}
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
r,
|
|
5704
|
-
i
|
|
5705
|
-
]);
|
|
5706
|
-
return a((e, t) => {
|
|
5778
|
+
o && (e.hour12 = !1, e.hour = "2-digit", e.minute = "2-digit", c && (e.second = "2-digit")), s && (e.day = "2-digit", e.month = "2-digit", e.year = "numeric"), u = new Intl.DateTimeFormat(l, e), t[2] = l, t[3] = s, t[4] = c, t[5] = o, t[6] = u;
|
|
5779
|
+
} else u = t[6];
|
|
5780
|
+
let d = u, f;
|
|
5781
|
+
return t[7] === d ? f = t[8] : (f = (e, t) => {
|
|
5707
5782
|
if (e == null) return t ?? "-";
|
|
5708
5783
|
let n = new Date(e);
|
|
5709
|
-
return isNaN(n.getTime()) ? t ?? "-" :
|
|
5710
|
-
}, [
|
|
5784
|
+
return isNaN(n.getTime()) ? t ?? "-" : d.format(n);
|
|
5785
|
+
}, t[7] = d, t[8] = f), f;
|
|
5711
5786
|
}
|
|
5712
5787
|
function Wr(e, t) {
|
|
5713
|
-
|
|
5788
|
+
let n = (0, Z.c)(3), r = Ur(t), i;
|
|
5789
|
+
return n[0] !== e || n[1] !== r ? (i = r(e), n[0] = e, n[1] = r, n[2] = i) : i = n[2], i;
|
|
5714
5790
|
}
|
|
5715
5791
|
//#endregion
|
|
5716
5792
|
//#region src/lib/hooks/useFormatDuration.ts
|
|
5717
5793
|
function Gr(e) {
|
|
5718
|
-
let { language: t } =
|
|
5794
|
+
let { language: t } = Vn(), n = a((e) => {
|
|
5719
5795
|
let n = 1440, r = Math.floor(e / n), i = Math.floor((e - r * n) / 60), a = e - r * n - i * 60;
|
|
5720
5796
|
try {
|
|
5721
5797
|
if (typeof Intl.DurationFormat == "function") {
|
|
@@ -5738,15 +5814,15 @@ function Gr(e) {
|
|
|
5738
5814
|
return l(() => n(e), [e, n]);
|
|
5739
5815
|
}
|
|
5740
5816
|
//#endregion
|
|
5741
|
-
//#region ../../node_modules/.pnpm/react-router@7.18.
|
|
5817
|
+
//#region ../../node_modules/.pnpm/react-router@7.18.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs
|
|
5742
5818
|
var Kr = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, qr = /^[\\/]{2}/;
|
|
5743
5819
|
function Jr(e, t) {
|
|
5744
5820
|
return t + e.replace(/\\/g, "/");
|
|
5745
5821
|
}
|
|
5746
|
-
function
|
|
5822
|
+
function Q(e, t) {
|
|
5747
5823
|
if (e === !1 || e == null) throw Error(t);
|
|
5748
5824
|
}
|
|
5749
|
-
function
|
|
5825
|
+
function Yr(e, t) {
|
|
5750
5826
|
if (!e) {
|
|
5751
5827
|
typeof console < "u" && console.warn(t);
|
|
5752
5828
|
try {
|
|
@@ -5754,10 +5830,10 @@ function K(e, t) {
|
|
|
5754
5830
|
} catch {}
|
|
5755
5831
|
}
|
|
5756
5832
|
}
|
|
5757
|
-
function
|
|
5833
|
+
function Xr({ pathname: e = "/", search: t = "", hash: n = "" }) {
|
|
5758
5834
|
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
|
|
5759
5835
|
}
|
|
5760
|
-
function
|
|
5836
|
+
function Zr(e) {
|
|
5761
5837
|
let t = {};
|
|
5762
5838
|
if (e) {
|
|
5763
5839
|
let n = e.indexOf("#");
|
|
@@ -5767,27 +5843,16 @@ function Xr(e) {
|
|
|
5767
5843
|
}
|
|
5768
5844
|
return t;
|
|
5769
5845
|
}
|
|
5770
|
-
function
|
|
5771
|
-
return
|
|
5846
|
+
function Qr(e, t, n = "/") {
|
|
5847
|
+
return $r(e, t, n, !1);
|
|
5772
5848
|
}
|
|
5773
|
-
function
|
|
5774
|
-
let a =
|
|
5849
|
+
function $r(e, t, n, r, i) {
|
|
5850
|
+
let a = vi((typeof t == "string" ? Zr(t) : t).pathname || "/", n);
|
|
5775
5851
|
if (a == null) return null;
|
|
5776
5852
|
let o = i ?? ei(e), s = null, c = _i(a);
|
|
5777
5853
|
for (let e = 0; s == null && e < o.length; ++e) s = pi(o[e], c, r);
|
|
5778
5854
|
return s;
|
|
5779
5855
|
}
|
|
5780
|
-
function $r(e, t) {
|
|
5781
|
-
let { route: n, pathname: r, params: i } = e;
|
|
5782
|
-
return {
|
|
5783
|
-
id: n.id,
|
|
5784
|
-
pathname: r,
|
|
5785
|
-
params: i,
|
|
5786
|
-
data: t[n.id],
|
|
5787
|
-
loaderData: t[n.id],
|
|
5788
|
-
handle: n.handle
|
|
5789
|
-
};
|
|
5790
|
-
}
|
|
5791
5856
|
function ei(e) {
|
|
5792
5857
|
let t = ti(e);
|
|
5793
5858
|
return ri(t), t;
|
|
@@ -5802,10 +5867,10 @@ function ti(e, t = [], n = [], r = "", i = !1) {
|
|
|
5802
5867
|
};
|
|
5803
5868
|
if (c.relativePath.startsWith("/")) {
|
|
5804
5869
|
if (!c.relativePath.startsWith(r) && o) return;
|
|
5805
|
-
|
|
5870
|
+
Q(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
|
|
5806
5871
|
}
|
|
5807
|
-
let l =
|
|
5808
|
-
e.children && e.children.length > 0 && (
|
|
5872
|
+
let l = $([r, c.relativePath]), u = n.concat(c);
|
|
5873
|
+
e.children && e.children.length > 0 && (Q(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), ti(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
|
|
5809
5874
|
path: l,
|
|
5810
5875
|
score: di(l, e.index),
|
|
5811
5876
|
routesMeta: u.map((e, t) => {
|
|
@@ -5857,10 +5922,10 @@ function pi(e, t, n = !1) {
|
|
|
5857
5922
|
}, l)), !d) return null;
|
|
5858
5923
|
Object.assign(i, d.params), o.push({
|
|
5859
5924
|
params: i,
|
|
5860
|
-
pathname:
|
|
5861
|
-
pathnameBase:
|
|
5925
|
+
pathname: $([a, d.pathname]),
|
|
5926
|
+
pathnameBase: Di($([a, d.pathnameBase])),
|
|
5862
5927
|
route: f
|
|
5863
|
-
}), d.pathnameBase !== "/" && (a =
|
|
5928
|
+
}), d.pathnameBase !== "/" && (a = $([a, d.pathnameBase]));
|
|
5864
5929
|
}
|
|
5865
5930
|
return o;
|
|
5866
5931
|
}
|
|
@@ -5884,7 +5949,7 @@ function hi(e, t, n, r) {
|
|
|
5884
5949
|
o = a.slice(0, a.length - e.length).replace(/(.)\/+$/, "$1");
|
|
5885
5950
|
}
|
|
5886
5951
|
let i = s[r];
|
|
5887
|
-
return n && !i ?
|
|
5952
|
+
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
|
|
5888
5953
|
}, {}),
|
|
5889
5954
|
pathname: a,
|
|
5890
5955
|
pathnameBase: o,
|
|
@@ -5892,7 +5957,7 @@ function hi(e, t, n, r) {
|
|
|
5892
5957
|
};
|
|
5893
5958
|
}
|
|
5894
5959
|
function gi(e, t = !1, n = !0) {
|
|
5895
|
-
|
|
5960
|
+
Yr(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
|
|
5896
5961
|
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
|
|
5897
5962
|
if (r.push({
|
|
5898
5963
|
paramName: t,
|
|
@@ -5909,42 +5974,42 @@ function _i(e) {
|
|
|
5909
5974
|
try {
|
|
5910
5975
|
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
|
|
5911
5976
|
} catch (t) {
|
|
5912
|
-
return
|
|
5977
|
+
return Yr(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
|
|
5913
5978
|
}
|
|
5914
5979
|
}
|
|
5915
|
-
function
|
|
5980
|
+
function vi(e, t) {
|
|
5916
5981
|
if (t === "/") return e;
|
|
5917
5982
|
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
|
|
5918
5983
|
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
5919
5984
|
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
5920
5985
|
}
|
|
5921
|
-
function
|
|
5922
|
-
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ?
|
|
5923
|
-
return n ? (n =
|
|
5986
|
+
function yi(e, t = "/") {
|
|
5987
|
+
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? Zr(e) : e, a;
|
|
5988
|
+
return n ? (n = Ti(n), a = n.startsWith("/") ? bi(n.substring(1), "/") : bi(n, t)) : a = t, {
|
|
5924
5989
|
pathname: a,
|
|
5925
|
-
search:
|
|
5926
|
-
hash:
|
|
5990
|
+
search: Oi(r),
|
|
5991
|
+
hash: ki(i)
|
|
5927
5992
|
};
|
|
5928
5993
|
}
|
|
5929
|
-
function
|
|
5930
|
-
let n =
|
|
5994
|
+
function bi(e, t) {
|
|
5995
|
+
let n = Ei(t).split("/");
|
|
5931
5996
|
return e.split("/").forEach((e) => {
|
|
5932
5997
|
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
|
|
5933
5998
|
}), n.length > 1 ? n.join("/") : "/";
|
|
5934
5999
|
}
|
|
5935
|
-
function
|
|
6000
|
+
function xi(e, t, n, r) {
|
|
5936
6001
|
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
5937
6002
|
}
|
|
5938
|
-
function
|
|
6003
|
+
function Si(e) {
|
|
5939
6004
|
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
|
|
5940
6005
|
}
|
|
5941
|
-
function
|
|
5942
|
-
let t =
|
|
6006
|
+
function Ci(e) {
|
|
6007
|
+
let t = Si(e);
|
|
5943
6008
|
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
|
|
5944
6009
|
}
|
|
5945
|
-
function
|
|
6010
|
+
function wi(e, t, n, r = !1) {
|
|
5946
6011
|
let i;
|
|
5947
|
-
typeof e == "string" ? i =
|
|
6012
|
+
typeof e == "string" ? i = Zr(e) : (i = { ...e }, Q(!i.pathname || !i.pathname.includes("?"), xi("?", "pathname", "search", i)), Q(!i.pathname || !i.pathname.includes("#"), xi("#", "pathname", "hash", i)), Q(!i.search || !i.search.includes("#"), xi("#", "search", "hash", i)));
|
|
5948
6013
|
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
|
|
5949
6014
|
if (o == null) s = n;
|
|
5950
6015
|
else {
|
|
@@ -5956,22 +6021,22 @@ function Ci(e, t, n, r = !1) {
|
|
|
5956
6021
|
}
|
|
5957
6022
|
s = e >= 0 ? t[e] : "/";
|
|
5958
6023
|
}
|
|
5959
|
-
let c =
|
|
6024
|
+
let c = yi(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
|
|
5960
6025
|
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
|
|
5961
6026
|
}
|
|
5962
|
-
var
|
|
6027
|
+
var Ti = (e) => e.replace(/[\\/]{2,}/g, "/"), $ = (e) => Ti(e.join("/")), Ei = (e) => e.replace(/\/+$/, ""), Di = (e) => Ei(e).replace(/^\/*/, "/"), Oi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ki = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ai = class {
|
|
5963
6028
|
constructor(e, t, n, r = !1) {
|
|
5964
6029
|
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
|
|
5965
6030
|
}
|
|
5966
6031
|
};
|
|
5967
|
-
function
|
|
6032
|
+
function ji(e) {
|
|
5968
6033
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
5969
6034
|
}
|
|
5970
|
-
function
|
|
5971
|
-
return
|
|
6035
|
+
function Mi(e) {
|
|
6036
|
+
return $(e.map((e) => e.route.path).filter(Boolean)) || "/";
|
|
5972
6037
|
}
|
|
5973
|
-
var
|
|
5974
|
-
function
|
|
6038
|
+
var Ni = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
6039
|
+
function Pi(e, t) {
|
|
5975
6040
|
let n = e;
|
|
5976
6041
|
if (typeof n != "string" || !Kr.test(n)) return {
|
|
5977
6042
|
absoluteURL: void 0,
|
|
@@ -5979,11 +6044,11 @@ function Ni(e, t) {
|
|
|
5979
6044
|
to: n
|
|
5980
6045
|
};
|
|
5981
6046
|
let r = n, i = !1;
|
|
5982
|
-
if (
|
|
5983
|
-
let e = new URL(window.location.href), r = qr.test(n) ? new URL(Jr(n, e.protocol)) : new URL(n), a =
|
|
6047
|
+
if (Ni) try {
|
|
6048
|
+
let e = new URL(window.location.href), r = qr.test(n) ? new URL(Jr(n, e.protocol)) : new URL(n), a = vi(r.pathname, t);
|
|
5984
6049
|
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
|
|
5985
6050
|
} catch {
|
|
5986
|
-
|
|
6051
|
+
Yr(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
|
|
5987
6052
|
}
|
|
5988
6053
|
return {
|
|
5989
6054
|
absoluteURL: r,
|
|
@@ -5992,16 +6057,16 @@ function Ni(e, t) {
|
|
|
5992
6057
|
};
|
|
5993
6058
|
}
|
|
5994
6059
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
5995
|
-
var
|
|
6060
|
+
var Fi = [
|
|
5996
6061
|
"POST",
|
|
5997
6062
|
"PUT",
|
|
5998
6063
|
"PATCH",
|
|
5999
6064
|
"DELETE"
|
|
6000
6065
|
];
|
|
6001
|
-
new Set(Pi);
|
|
6002
|
-
var Fi = ["GET", ...Pi];
|
|
6003
6066
|
new Set(Fi);
|
|
6004
|
-
var Ii = [
|
|
6067
|
+
var Ii = ["GET", ...Fi];
|
|
6068
|
+
new Set(Ii);
|
|
6069
|
+
var Li = [
|
|
6005
6070
|
"about:",
|
|
6006
6071
|
"blob:",
|
|
6007
6072
|
"chrome:",
|
|
@@ -6013,88 +6078,88 @@ var Ii = [
|
|
|
6013
6078
|
"filesystem:",
|
|
6014
6079
|
"javascript:"
|
|
6015
6080
|
];
|
|
6016
|
-
function
|
|
6081
|
+
function Ri(e) {
|
|
6017
6082
|
try {
|
|
6018
|
-
return
|
|
6083
|
+
return Li.includes(new URL(e).protocol);
|
|
6019
6084
|
} catch {
|
|
6020
6085
|
return !1;
|
|
6021
6086
|
}
|
|
6022
6087
|
}
|
|
6023
|
-
var
|
|
6024
|
-
|
|
6025
|
-
var
|
|
6026
|
-
|
|
6027
|
-
var
|
|
6028
|
-
function
|
|
6029
|
-
return e.useContext(
|
|
6030
|
-
}
|
|
6031
|
-
var
|
|
6032
|
-
|
|
6033
|
-
var
|
|
6034
|
-
|
|
6035
|
-
var
|
|
6036
|
-
|
|
6037
|
-
var
|
|
6038
|
-
|
|
6039
|
-
var
|
|
6040
|
-
|
|
6041
|
-
var
|
|
6088
|
+
var zi = e.createContext(null);
|
|
6089
|
+
zi.displayName = "DataRouter";
|
|
6090
|
+
var Bi = e.createContext(null);
|
|
6091
|
+
Bi.displayName = "DataRouterState";
|
|
6092
|
+
var Vi = e.createContext(!1);
|
|
6093
|
+
function Hi() {
|
|
6094
|
+
return e.useContext(Vi);
|
|
6095
|
+
}
|
|
6096
|
+
var Ui = e.createContext({ isTransitioning: !1 });
|
|
6097
|
+
Ui.displayName = "ViewTransition";
|
|
6098
|
+
var Wi = e.createContext(/* @__PURE__ */ new Map());
|
|
6099
|
+
Wi.displayName = "Fetchers";
|
|
6100
|
+
var Gi = e.createContext(null);
|
|
6101
|
+
Gi.displayName = "Await";
|
|
6102
|
+
var Ki = e.createContext(null);
|
|
6103
|
+
Ki.displayName = "Navigation";
|
|
6104
|
+
var qi = e.createContext(null);
|
|
6105
|
+
qi.displayName = "Location";
|
|
6106
|
+
var Ji = e.createContext({
|
|
6042
6107
|
outlet: null,
|
|
6043
6108
|
matches: [],
|
|
6044
6109
|
isDataRoute: !1
|
|
6045
6110
|
});
|
|
6046
|
-
|
|
6047
|
-
var
|
|
6048
|
-
|
|
6049
|
-
var
|
|
6050
|
-
function
|
|
6051
|
-
if (e.startsWith(`${
|
|
6111
|
+
Ji.displayName = "Route";
|
|
6112
|
+
var Yi = e.createContext(null);
|
|
6113
|
+
Yi.displayName = "RouteError";
|
|
6114
|
+
var Xi = "REACT_ROUTER_ERROR", Zi = "REDIRECT", Qi = "ROUTE_ERROR_RESPONSE";
|
|
6115
|
+
function $i(e) {
|
|
6116
|
+
if (e.startsWith(`${Xi}:${Zi}:{`)) try {
|
|
6052
6117
|
let t = JSON.parse(e.slice(28));
|
|
6053
6118
|
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
|
|
6054
6119
|
} catch {}
|
|
6055
6120
|
}
|
|
6056
|
-
function
|
|
6057
|
-
if (e.startsWith(`${
|
|
6121
|
+
function ea(e) {
|
|
6122
|
+
if (e.startsWith(`${Xi}:${Qi}:{`)) try {
|
|
6058
6123
|
let t = JSON.parse(e.slice(40));
|
|
6059
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new
|
|
6124
|
+
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Ai(t.status, t.statusText, t.data);
|
|
6060
6125
|
} catch {}
|
|
6061
6126
|
}
|
|
6062
|
-
function
|
|
6063
|
-
|
|
6064
|
-
let { basename: r, navigator: i } = e.useContext(
|
|
6065
|
-
return r !== "/" && (c = o === "/" ? r :
|
|
6127
|
+
function ta(t, { relative: n } = {}) {
|
|
6128
|
+
Q(na(), "useHref() may be used only in the context of a <Router> component.");
|
|
6129
|
+
let { basename: r, navigator: i } = e.useContext(Ki), { hash: a, pathname: o, search: s } = ca(t, { relative: n }), c = o;
|
|
6130
|
+
return r !== "/" && (c = o === "/" ? r : $([r, o])), i.createHref({
|
|
6066
6131
|
pathname: c,
|
|
6067
6132
|
search: s,
|
|
6068
6133
|
hash: a
|
|
6069
6134
|
});
|
|
6070
6135
|
}
|
|
6071
|
-
function
|
|
6072
|
-
return e.useContext(
|
|
6136
|
+
function na() {
|
|
6137
|
+
return e.useContext(qi) != null;
|
|
6073
6138
|
}
|
|
6074
|
-
function
|
|
6075
|
-
return
|
|
6139
|
+
function ra() {
|
|
6140
|
+
return Q(na(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(qi).location;
|
|
6076
6141
|
}
|
|
6077
|
-
var
|
|
6078
|
-
function
|
|
6079
|
-
e.useContext(
|
|
6142
|
+
var ia = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
6143
|
+
function aa(t) {
|
|
6144
|
+
e.useContext(Ki).static || e.useLayoutEffect(t);
|
|
6080
6145
|
}
|
|
6081
|
-
function
|
|
6082
|
-
let { isDataRoute: t } = e.useContext(
|
|
6083
|
-
return t ?
|
|
6146
|
+
function oa() {
|
|
6147
|
+
let { isDataRoute: t } = e.useContext(Ji);
|
|
6148
|
+
return t ? wa() : sa();
|
|
6084
6149
|
}
|
|
6085
|
-
function
|
|
6086
|
-
|
|
6087
|
-
let t = e.useContext(
|
|
6088
|
-
return
|
|
6150
|
+
function sa() {
|
|
6151
|
+
Q(na(), "useNavigate() may be used only in the context of a <Router> component.");
|
|
6152
|
+
let t = e.useContext(zi), { basename: n, navigator: r } = e.useContext(Ki), { matches: i } = e.useContext(Ji), { pathname: a } = ra(), o = JSON.stringify(Ci(i)), s = e.useRef(!1);
|
|
6153
|
+
return aa(() => {
|
|
6089
6154
|
s.current = !0;
|
|
6090
6155
|
}), e.useCallback((e, i = {}) => {
|
|
6091
|
-
if (
|
|
6156
|
+
if (Yr(s.current, ia), !s.current) return;
|
|
6092
6157
|
if (typeof e == "number") {
|
|
6093
6158
|
r.go(e);
|
|
6094
6159
|
return;
|
|
6095
6160
|
}
|
|
6096
|
-
let c =
|
|
6097
|
-
t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n :
|
|
6161
|
+
let c = wi(e, JSON.parse(o), a, i.relative === "path");
|
|
6162
|
+
t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : $([n, c.pathname])), (i.replace ? r.replace : r.push)(c, i.state, i);
|
|
6098
6163
|
}, [
|
|
6099
6164
|
n,
|
|
6100
6165
|
r,
|
|
@@ -6104,42 +6169,42 @@ function na() {
|
|
|
6104
6169
|
]);
|
|
6105
6170
|
}
|
|
6106
6171
|
e.createContext(null);
|
|
6107
|
-
function
|
|
6108
|
-
let { matches: r } = e.useContext(
|
|
6109
|
-
return e.useMemo(() =>
|
|
6172
|
+
function ca(t, { relative: n } = {}) {
|
|
6173
|
+
let { matches: r } = e.useContext(Ji), { pathname: i } = ra(), a = JSON.stringify(Ci(r));
|
|
6174
|
+
return e.useMemo(() => wi(t, JSON.parse(a), i, n === "path"), [
|
|
6110
6175
|
t,
|
|
6111
6176
|
a,
|
|
6112
6177
|
i,
|
|
6113
6178
|
n
|
|
6114
6179
|
]);
|
|
6115
6180
|
}
|
|
6116
|
-
function
|
|
6117
|
-
|
|
6118
|
-
let { navigator: i } = e.useContext(
|
|
6181
|
+
function la(t, n, r) {
|
|
6182
|
+
Q(na(), "useRoutes() may be used only in the context of a <Router> component.");
|
|
6183
|
+
let { navigator: i } = e.useContext(Ki), { matches: a } = e.useContext(Ji), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
|
|
6119
6184
|
{
|
|
6120
6185
|
let e = u && u.path || "";
|
|
6121
|
-
|
|
6186
|
+
Ea(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
6122
6187
|
|
|
6123
6188
|
Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
|
|
6124
6189
|
}
|
|
6125
|
-
let d =
|
|
6190
|
+
let d = ra(), f;
|
|
6126
6191
|
if (n) {
|
|
6127
|
-
let e = typeof n == "string" ?
|
|
6128
|
-
|
|
6192
|
+
let e = typeof n == "string" ? Zr(n) : n;
|
|
6193
|
+
Q(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
|
|
6129
6194
|
} else f = d;
|
|
6130
6195
|
let p = f.pathname || "/", m = p;
|
|
6131
6196
|
if (l !== "/") {
|
|
6132
6197
|
let e = l.replace(/^\//, "").split("/");
|
|
6133
6198
|
m = "/" + p.replace(/^\//, "").split("/").slice(e.length).join("/");
|
|
6134
6199
|
}
|
|
6135
|
-
let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) :
|
|
6136
|
-
|
|
6137
|
-
let g =
|
|
6200
|
+
let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : Qr(t, { pathname: m });
|
|
6201
|
+
Yr(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), Yr(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
|
|
6202
|
+
let g = ga(h && h.map((e) => Object.assign({}, e, {
|
|
6138
6203
|
params: Object.assign({}, s, e.params),
|
|
6139
|
-
pathname:
|
|
6140
|
-
pathnameBase: e.pathnameBase === "/" ? l :
|
|
6204
|
+
pathname: $([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
|
|
6205
|
+
pathnameBase: e.pathnameBase === "/" ? l : $([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
|
|
6141
6206
|
})), a, r);
|
|
6142
|
-
return n && g ? /* @__PURE__ */ e.createElement(
|
|
6207
|
+
return n && g ? /* @__PURE__ */ e.createElement(qi.Provider, { value: {
|
|
6143
6208
|
location: {
|
|
6144
6209
|
pathname: "/",
|
|
6145
6210
|
search: "",
|
|
@@ -6152,8 +6217,8 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
|
|
|
6152
6217
|
navigationType: "POP"
|
|
6153
6218
|
} }, g) : g;
|
|
6154
6219
|
}
|
|
6155
|
-
function
|
|
6156
|
-
let t =
|
|
6220
|
+
function ua() {
|
|
6221
|
+
let t = Ca(), n = ji(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
|
|
6157
6222
|
padding: "0.5rem",
|
|
6158
6223
|
backgroundColor: i
|
|
6159
6224
|
}, o = {
|
|
@@ -6162,7 +6227,7 @@ function aa() {
|
|
|
6162
6227
|
}, s = null;
|
|
6163
6228
|
return console.error("Error handled by React Router default ErrorBoundary:", t), s = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ e.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ e.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ e.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ e.createElement("h3", { style: { fontStyle: "italic" } }, n), r ? /* @__PURE__ */ e.createElement("pre", { style: a }, r) : null, s);
|
|
6164
6229
|
}
|
|
6165
|
-
var
|
|
6230
|
+
var da = /* @__PURE__ */ e.createElement(ua, null), fa = class extends e.Component {
|
|
6166
6231
|
constructor(e) {
|
|
6167
6232
|
super(e), this.state = {
|
|
6168
6233
|
location: e.location,
|
|
@@ -6190,31 +6255,33 @@ var oa = /* @__PURE__ */ e.createElement(aa, null), sa = class extends e.Compone
|
|
|
6190
6255
|
render() {
|
|
6191
6256
|
let t = this.state.error;
|
|
6192
6257
|
if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
6193
|
-
let e =
|
|
6258
|
+
let e = ea(t.digest);
|
|
6194
6259
|
e && (t = e);
|
|
6195
6260
|
}
|
|
6196
|
-
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(
|
|
6261
|
+
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(Ji.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(Yi.Provider, {
|
|
6197
6262
|
value: t,
|
|
6198
6263
|
children: this.props.component
|
|
6199
6264
|
}));
|
|
6200
|
-
return this.context ? /* @__PURE__ */ e.createElement(
|
|
6265
|
+
return this.context ? /* @__PURE__ */ e.createElement(ma, { error: t }, n) : n;
|
|
6201
6266
|
}
|
|
6202
6267
|
};
|
|
6203
|
-
|
|
6204
|
-
var
|
|
6205
|
-
function
|
|
6206
|
-
let { basename: r } = e.useContext(
|
|
6268
|
+
fa.contextType = Vi;
|
|
6269
|
+
var pa = /* @__PURE__ */ new WeakMap();
|
|
6270
|
+
function ma({ children: t, error: n }) {
|
|
6271
|
+
let { basename: r } = e.useContext(Ki);
|
|
6207
6272
|
if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
|
|
6208
|
-
let t =
|
|
6273
|
+
let t = $i(n.digest);
|
|
6209
6274
|
if (t) {
|
|
6210
|
-
let i =
|
|
6275
|
+
let i = pa.get(n);
|
|
6211
6276
|
if (i) throw i;
|
|
6212
|
-
let a =
|
|
6213
|
-
if (
|
|
6214
|
-
if (
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6277
|
+
let a = Pi(t.location, r), o = a.absoluteURL || a.to;
|
|
6278
|
+
if (Ri(o)) throw Error("Invalid redirect location");
|
|
6279
|
+
if (Ni && !pa.get(n)) {
|
|
6280
|
+
if (a.isExternal || t.reloadDocument) window.location.href = o;
|
|
6281
|
+
else {
|
|
6282
|
+
let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: t.replace }));
|
|
6283
|
+
throw pa.set(n, e), e;
|
|
6284
|
+
}
|
|
6218
6285
|
}
|
|
6219
6286
|
return /* @__PURE__ */ e.createElement("meta", {
|
|
6220
6287
|
httpEquiv: "refresh",
|
|
@@ -6224,11 +6291,11 @@ function la({ children: t, error: n }) {
|
|
|
6224
6291
|
}
|
|
6225
6292
|
return t;
|
|
6226
6293
|
}
|
|
6227
|
-
function
|
|
6228
|
-
let i = e.useContext(
|
|
6229
|
-
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(
|
|
6294
|
+
function ha({ routeContext: t, match: n, children: r }) {
|
|
6295
|
+
let i = e.useContext(zi);
|
|
6296
|
+
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(Ji.Provider, { value: t }, r);
|
|
6230
6297
|
}
|
|
6231
|
-
function
|
|
6298
|
+
function ga(t, n = [], r) {
|
|
6232
6299
|
let i = r?.state;
|
|
6233
6300
|
if (t == null) {
|
|
6234
6301
|
if (!i) return null;
|
|
@@ -6239,7 +6306,7 @@ function da(t, n = [], r) {
|
|
|
6239
6306
|
let a = t, o = i?.errors;
|
|
6240
6307
|
if (o != null) {
|
|
6241
6308
|
let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
|
|
6242
|
-
|
|
6309
|
+
Q(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
|
|
6243
6310
|
}
|
|
6244
6311
|
let s = !1, c = -1;
|
|
6245
6312
|
if (r && i) {
|
|
@@ -6259,16 +6326,16 @@ function da(t, n = [], r) {
|
|
|
6259
6326
|
l(e, {
|
|
6260
6327
|
location: i.location,
|
|
6261
6328
|
params: i.matches?.[0]?.params ?? {},
|
|
6262
|
-
pattern:
|
|
6329
|
+
pattern: Mi(i.matches),
|
|
6263
6330
|
errorInfo: t
|
|
6264
6331
|
});
|
|
6265
6332
|
} : void 0;
|
|
6266
6333
|
return a.reduceRight((t, r, l) => {
|
|
6267
6334
|
let d, f = !1, p = null, m = null;
|
|
6268
|
-
i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement ||
|
|
6335
|
+
i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || da, s && (c < 0 && l === 0 ? (Ea("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
|
|
6269
6336
|
let h = n.concat(a.slice(0, l + 1)), g = () => {
|
|
6270
6337
|
let n;
|
|
6271
|
-
return n = d ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(
|
|
6338
|
+
return n = d ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(ha, {
|
|
6272
6339
|
match: r,
|
|
6273
6340
|
routeContext: {
|
|
6274
6341
|
outlet: t,
|
|
@@ -6278,7 +6345,7 @@ function da(t, n = [], r) {
|
|
|
6278
6345
|
children: n
|
|
6279
6346
|
});
|
|
6280
6347
|
};
|
|
6281
|
-
return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(
|
|
6348
|
+
return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(fa, {
|
|
6282
6349
|
location: i.location,
|
|
6283
6350
|
revalidation: i.revalidation,
|
|
6284
6351
|
component: p,
|
|
@@ -6293,61 +6360,50 @@ function da(t, n = [], r) {
|
|
|
6293
6360
|
}) : g();
|
|
6294
6361
|
}, null);
|
|
6295
6362
|
}
|
|
6296
|
-
function
|
|
6363
|
+
function _a(e) {
|
|
6297
6364
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
6298
6365
|
}
|
|
6299
|
-
function
|
|
6300
|
-
let n = e.useContext(
|
|
6301
|
-
return
|
|
6302
|
-
}
|
|
6303
|
-
function ma(t) {
|
|
6304
|
-
let n = e.useContext(Ri);
|
|
6305
|
-
return G(n, fa(t)), n;
|
|
6306
|
-
}
|
|
6307
|
-
function ha(t) {
|
|
6308
|
-
let n = e.useContext(Z);
|
|
6309
|
-
return G(n, fa(t)), n;
|
|
6366
|
+
function va(t) {
|
|
6367
|
+
let n = e.useContext(zi);
|
|
6368
|
+
return Q(n, _a(t)), n;
|
|
6310
6369
|
}
|
|
6311
|
-
function
|
|
6312
|
-
let
|
|
6313
|
-
return
|
|
6370
|
+
function ya(t) {
|
|
6371
|
+
let n = e.useContext(Bi);
|
|
6372
|
+
return Q(n, _a(t)), n;
|
|
6314
6373
|
}
|
|
6315
|
-
function
|
|
6316
|
-
|
|
6374
|
+
function ba(t) {
|
|
6375
|
+
let n = e.useContext(Ji);
|
|
6376
|
+
return Q(n, _a(t)), n;
|
|
6317
6377
|
}
|
|
6318
|
-
function
|
|
6319
|
-
let t =
|
|
6320
|
-
return e
|
|
6321
|
-
let { matches: e, historyAction: n, ...r } = t.navigation;
|
|
6322
|
-
return r;
|
|
6323
|
-
}, [t.navigation]);
|
|
6378
|
+
function xa(e) {
|
|
6379
|
+
let t = ba(e), n = t.matches[t.matches.length - 1];
|
|
6380
|
+
return Q(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
|
|
6324
6381
|
}
|
|
6325
|
-
function
|
|
6326
|
-
|
|
6327
|
-
return e.useMemo(() => t.map((e) => $r(e, n)), [t, n]);
|
|
6382
|
+
function Sa() {
|
|
6383
|
+
return xa("useRouteId");
|
|
6328
6384
|
}
|
|
6329
|
-
function
|
|
6330
|
-
let t = e.useContext(
|
|
6385
|
+
function Ca() {
|
|
6386
|
+
let t = e.useContext(Yi), n = ya("useRouteError"), r = xa("useRouteError");
|
|
6331
6387
|
return t === void 0 ? n.errors?.[r] : t;
|
|
6332
6388
|
}
|
|
6333
|
-
function
|
|
6334
|
-
let { router: t } =
|
|
6335
|
-
return
|
|
6389
|
+
function wa() {
|
|
6390
|
+
let { router: t } = va("useNavigate"), n = xa("useNavigate"), r = e.useRef(!1);
|
|
6391
|
+
return aa(() => {
|
|
6336
6392
|
r.current = !0;
|
|
6337
6393
|
}), e.useCallback(async (e, i = {}) => {
|
|
6338
|
-
|
|
6394
|
+
Yr(r.current, ia), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
|
|
6339
6395
|
fromRouteId: n,
|
|
6340
6396
|
...i
|
|
6341
6397
|
}));
|
|
6342
6398
|
}, [t, n]);
|
|
6343
6399
|
}
|
|
6344
|
-
var
|
|
6345
|
-
function
|
|
6346
|
-
!t && !
|
|
6400
|
+
var Ta = {};
|
|
6401
|
+
function Ea(e, t, n) {
|
|
6402
|
+
!t && !Ta[e] && (Ta[e] = !0, Yr(!1, n));
|
|
6347
6403
|
}
|
|
6348
|
-
e.memo(
|
|
6349
|
-
function
|
|
6350
|
-
return
|
|
6404
|
+
e.memo(Da);
|
|
6405
|
+
function Da({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
|
|
6406
|
+
return la(e, void 0, {
|
|
6351
6407
|
manifest: t,
|
|
6352
6408
|
state: r,
|
|
6353
6409
|
isStatic: i,
|
|
@@ -6355,104 +6411,61 @@ function wa({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError:
|
|
|
6355
6411
|
future: n
|
|
6356
6412
|
});
|
|
6357
6413
|
}
|
|
6358
|
-
function Ta({ basename: t = "/", children: n = null, location: r, navigationType: i = "POP", navigator: a, static: o = !1, useTransitions: s }) {
|
|
6359
|
-
G(!Qi(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
6360
|
-
let c = t.replace(/^\/*/, "/"), l = e.useMemo(() => ({
|
|
6361
|
-
basename: c,
|
|
6362
|
-
navigator: a,
|
|
6363
|
-
static: o,
|
|
6364
|
-
useTransitions: s,
|
|
6365
|
-
future: {}
|
|
6366
|
-
}), [
|
|
6367
|
-
c,
|
|
6368
|
-
a,
|
|
6369
|
-
o,
|
|
6370
|
-
s
|
|
6371
|
-
]);
|
|
6372
|
-
typeof r == "string" && (r = Xr(r));
|
|
6373
|
-
let { pathname: u = "/", search: d = "", hash: f = "", state: p = null, key: m = "default", mask: h } = r, g = e.useMemo(() => {
|
|
6374
|
-
let e = q(u, c);
|
|
6375
|
-
return e == null ? null : {
|
|
6376
|
-
location: {
|
|
6377
|
-
pathname: e,
|
|
6378
|
-
search: d,
|
|
6379
|
-
hash: f,
|
|
6380
|
-
state: p,
|
|
6381
|
-
key: m,
|
|
6382
|
-
mask: h
|
|
6383
|
-
},
|
|
6384
|
-
navigationType: i
|
|
6385
|
-
};
|
|
6386
|
-
}, [
|
|
6387
|
-
c,
|
|
6388
|
-
u,
|
|
6389
|
-
d,
|
|
6390
|
-
f,
|
|
6391
|
-
p,
|
|
6392
|
-
m,
|
|
6393
|
-
i,
|
|
6394
|
-
h
|
|
6395
|
-
]);
|
|
6396
|
-
return K(g != null, `<Router basename="${c}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`), g == null ? null : /* @__PURE__ */ e.createElement(X.Provider, { value: l }, /* @__PURE__ */ e.createElement(Wi.Provider, {
|
|
6397
|
-
children: n,
|
|
6398
|
-
value: g
|
|
6399
|
-
}));
|
|
6400
|
-
}
|
|
6401
6414
|
e.Component;
|
|
6402
|
-
var
|
|
6403
|
-
function Oa(e) {
|
|
6404
|
-
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
6405
|
-
}
|
|
6406
|
-
function ka(e) {
|
|
6407
|
-
return Oa(e) && e.tagName.toLowerCase() === "button";
|
|
6408
|
-
}
|
|
6415
|
+
var Oa = "get", ka = "application/x-www-form-urlencoded";
|
|
6409
6416
|
function Aa(e) {
|
|
6410
|
-
return
|
|
6417
|
+
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
6411
6418
|
}
|
|
6412
6419
|
function ja(e) {
|
|
6413
|
-
return
|
|
6420
|
+
return Aa(e) && e.tagName.toLowerCase() === "button";
|
|
6414
6421
|
}
|
|
6415
6422
|
function Ma(e) {
|
|
6423
|
+
return Aa(e) && e.tagName.toLowerCase() === "form";
|
|
6424
|
+
}
|
|
6425
|
+
function Na(e) {
|
|
6426
|
+
return Aa(e) && e.tagName.toLowerCase() === "input";
|
|
6427
|
+
}
|
|
6428
|
+
function Pa(e) {
|
|
6416
6429
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
6417
6430
|
}
|
|
6418
|
-
function
|
|
6419
|
-
return e.button === 0 && (!t || t === "_self") && !
|
|
6431
|
+
function Fa(e, t) {
|
|
6432
|
+
return e.button === 0 && (!t || t === "_self") && !Pa(e);
|
|
6420
6433
|
}
|
|
6421
|
-
var
|
|
6422
|
-
function
|
|
6423
|
-
if (
|
|
6424
|
-
new FormData(document.createElement("form"), 0),
|
|
6434
|
+
var Ia = null;
|
|
6435
|
+
function La() {
|
|
6436
|
+
if (Ia === null) try {
|
|
6437
|
+
new FormData(document.createElement("form"), 0), Ia = !1;
|
|
6425
6438
|
} catch {
|
|
6426
|
-
|
|
6439
|
+
Ia = !0;
|
|
6427
6440
|
}
|
|
6428
|
-
return
|
|
6441
|
+
return Ia;
|
|
6429
6442
|
}
|
|
6430
|
-
var
|
|
6443
|
+
var Ra = /* @__PURE__ */ new Set([
|
|
6431
6444
|
"application/x-www-form-urlencoded",
|
|
6432
6445
|
"multipart/form-data",
|
|
6433
6446
|
"text/plain"
|
|
6434
6447
|
]);
|
|
6435
|
-
function
|
|
6436
|
-
return e != null && !
|
|
6448
|
+
function za(e) {
|
|
6449
|
+
return e != null && !Ra.has(e) ? (Yr(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ka}"`), null) : e;
|
|
6437
6450
|
}
|
|
6438
|
-
function
|
|
6451
|
+
function Ba(e, t) {
|
|
6439
6452
|
let n, r, i, a, o;
|
|
6440
|
-
if (
|
|
6453
|
+
if (Ma(e)) {
|
|
6441
6454
|
let o = e.getAttribute("action");
|
|
6442
|
-
r = o ?
|
|
6443
|
-
} else if (
|
|
6455
|
+
r = o ? vi(o, t) : null, n = e.getAttribute("method") || Oa, i = za(e.getAttribute("enctype")) || ka, a = new FormData(e);
|
|
6456
|
+
} else if (ja(e) || Na(e) && (e.type === "submit" || e.type === "image")) {
|
|
6444
6457
|
let o = e.form;
|
|
6445
6458
|
if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
|
|
6446
6459
|
let s = e.getAttribute("formaction") || o.getAttribute("action");
|
|
6447
|
-
if (r = s ?
|
|
6460
|
+
if (r = s ? vi(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Oa, i = za(e.getAttribute("formenctype")) || za(o.getAttribute("enctype")) || ka, a = new FormData(o, e), !La()) {
|
|
6448
6461
|
let { name: t, type: n, value: r } = e;
|
|
6449
6462
|
if (n === "image") {
|
|
6450
6463
|
let e = t ? `${t}.` : "";
|
|
6451
6464
|
a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
|
|
6452
6465
|
} else t && a.append(t, r);
|
|
6453
6466
|
}
|
|
6454
|
-
} else if (
|
|
6455
|
-
else n =
|
|
6467
|
+
} else if (Aa(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
|
|
6468
|
+
else n = Oa, r = null, i = ka, o = e;
|
|
6456
6469
|
return a && i === "text/plain" && (o = a, a = void 0), {
|
|
6457
6470
|
action: r,
|
|
6458
6471
|
method: n.toLowerCase(),
|
|
@@ -6462,24 +6475,14 @@ function Ra(e, t) {
|
|
|
6462
6475
|
};
|
|
6463
6476
|
}
|
|
6464
6477
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
6465
|
-
|
|
6466
|
-
"&": "\\u0026",
|
|
6467
|
-
">": "\\u003e",
|
|
6468
|
-
"<": "\\u003c",
|
|
6469
|
-
"\u2028": "\\u2028",
|
|
6470
|
-
"\u2029": "\\u2029"
|
|
6471
|
-
}, Ba = /[&><\u2028\u2029]/g;
|
|
6472
|
-
function Va(e) {
|
|
6473
|
-
return e.replace(Ba, (e) => za[e]);
|
|
6474
|
-
}
|
|
6475
|
-
function Ha(e, t) {
|
|
6478
|
+
function Va(e, t) {
|
|
6476
6479
|
if (e === !1 || e == null) throw Error(t);
|
|
6477
6480
|
}
|
|
6478
|
-
function
|
|
6481
|
+
function Ha(e, t, n, r) {
|
|
6479
6482
|
let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
|
|
6480
|
-
return n ? i.pathname.endsWith("/") ?
|
|
6483
|
+
return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && vi(i.pathname, t) === "/" ? `${Ei(t)}/_root.${r}` : `${Ei(i.pathname)}.${r}`, i;
|
|
6481
6484
|
}
|
|
6482
|
-
async function
|
|
6485
|
+
async function Ua(e, t) {
|
|
6483
6486
|
if (e.id in t) return t[e.id];
|
|
6484
6487
|
try {
|
|
6485
6488
|
let n = await import(
|
|
@@ -6492,21 +6495,21 @@ async function Wa(e, t) {
|
|
|
6492
6495
|
return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
|
|
6493
6496
|
}
|
|
6494
6497
|
}
|
|
6495
|
-
function
|
|
6498
|
+
function Wa(e) {
|
|
6496
6499
|
return e != null && typeof e.page == "string";
|
|
6497
6500
|
}
|
|
6498
|
-
function
|
|
6501
|
+
function Ga(e) {
|
|
6499
6502
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
6500
6503
|
}
|
|
6501
|
-
async function
|
|
6502
|
-
return
|
|
6504
|
+
async function Ka(e, t, n) {
|
|
6505
|
+
return Za((await Promise.all(e.map(async (e) => {
|
|
6503
6506
|
let r = t.routes[e.route.id];
|
|
6504
6507
|
if (r) {
|
|
6505
|
-
let e = await
|
|
6508
|
+
let e = await Ua(r, n);
|
|
6506
6509
|
return e.links ? e.links() : [];
|
|
6507
6510
|
}
|
|
6508
6511
|
return [];
|
|
6509
|
-
}))).flat(1).filter(
|
|
6512
|
+
}))).flat(1).filter(Ga).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
|
|
6510
6513
|
...e,
|
|
6511
6514
|
rel: "prefetch",
|
|
6512
6515
|
as: "style"
|
|
@@ -6515,7 +6518,7 @@ async function qa(e, t, n) {
|
|
|
6515
6518
|
rel: "prefetch"
|
|
6516
6519
|
}));
|
|
6517
6520
|
}
|
|
6518
|
-
function
|
|
6521
|
+
function qa(e, t, n, r, i, a) {
|
|
6519
6522
|
let o = (e, t) => !n[t] || e.route.id !== n[t].route.id, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
|
|
6520
6523
|
return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
|
|
6521
6524
|
let c = r.routes[t.route.id];
|
|
@@ -6534,49 +6537,49 @@ function Ja(e, t, n, r, i, a) {
|
|
|
6534
6537
|
return !0;
|
|
6535
6538
|
}) : [];
|
|
6536
6539
|
}
|
|
6537
|
-
function
|
|
6538
|
-
return
|
|
6540
|
+
function Ja(e, t, { includeHydrateFallback: n } = {}) {
|
|
6541
|
+
return Ya(e.map((e) => {
|
|
6539
6542
|
let r = t.routes[e.route.id];
|
|
6540
6543
|
if (!r) return [];
|
|
6541
6544
|
let i = [r.module];
|
|
6542
6545
|
return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
|
|
6543
6546
|
}).flat(1));
|
|
6544
6547
|
}
|
|
6545
|
-
function
|
|
6548
|
+
function Ya(e) {
|
|
6546
6549
|
return [...new Set(e)];
|
|
6547
6550
|
}
|
|
6548
|
-
function
|
|
6551
|
+
function Xa(e) {
|
|
6549
6552
|
let t = {}, n = Object.keys(e).sort();
|
|
6550
6553
|
for (let r of n) t[r] = e[r];
|
|
6551
6554
|
return t;
|
|
6552
6555
|
}
|
|
6553
|
-
function
|
|
6556
|
+
function Za(e, t) {
|
|
6554
6557
|
let n = /* @__PURE__ */ new Set(), r = new Set(t);
|
|
6555
6558
|
return e.reduce((e, i) => {
|
|
6556
|
-
if (t && !
|
|
6557
|
-
let a = JSON.stringify(
|
|
6559
|
+
if (t && !Wa(i) && i.as === "script" && i.href && r.has(i.href)) return e;
|
|
6560
|
+
let a = JSON.stringify(Xa(i));
|
|
6558
6561
|
return n.has(a) || (n.add(a), e.push({
|
|
6559
6562
|
key: a,
|
|
6560
6563
|
link: i
|
|
6561
6564
|
})), e;
|
|
6562
6565
|
}, []);
|
|
6563
6566
|
}
|
|
6564
|
-
function
|
|
6565
|
-
let t = e.useContext(
|
|
6566
|
-
return
|
|
6567
|
+
function Qa() {
|
|
6568
|
+
let t = e.useContext(zi);
|
|
6569
|
+
return Va(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
|
|
6567
6570
|
}
|
|
6568
|
-
function
|
|
6569
|
-
let t = e.useContext(
|
|
6570
|
-
return
|
|
6571
|
+
function $a() {
|
|
6572
|
+
let t = e.useContext(Bi);
|
|
6573
|
+
return Va(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
|
|
6571
6574
|
}
|
|
6572
|
-
var
|
|
6573
|
-
|
|
6574
|
-
function
|
|
6575
|
-
let t = e.useContext(
|
|
6576
|
-
return
|
|
6575
|
+
var eo = e.createContext(void 0);
|
|
6576
|
+
eo.displayName = "FrameworkContext";
|
|
6577
|
+
function to() {
|
|
6578
|
+
let t = e.useContext(eo);
|
|
6579
|
+
return Va(t, "You must render this element inside a <HydratedRouter> element"), t;
|
|
6577
6580
|
}
|
|
6578
|
-
function
|
|
6579
|
-
let r = e.useContext(
|
|
6581
|
+
function no(t, n) {
|
|
6582
|
+
let r = e.useContext(eo), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
|
|
6580
6583
|
e.useEffect(() => {
|
|
6581
6584
|
if (t === "render" && s(!0), t === "viewport") {
|
|
6582
6585
|
let e = new IntersectionObserver((e) => {
|
|
@@ -6607,11 +6610,11 @@ function ro(t, n) {
|
|
|
6607
6610
|
o,
|
|
6608
6611
|
p,
|
|
6609
6612
|
{
|
|
6610
|
-
onFocus:
|
|
6611
|
-
onBlur:
|
|
6612
|
-
onMouseEnter:
|
|
6613
|
-
onMouseLeave:
|
|
6614
|
-
onTouchStart:
|
|
6613
|
+
onFocus: ro(c, m),
|
|
6614
|
+
onBlur: ro(l, h),
|
|
6615
|
+
onMouseEnter: ro(u, m),
|
|
6616
|
+
onMouseLeave: ro(d, h),
|
|
6617
|
+
onTouchStart: ro(f, m)
|
|
6615
6618
|
}
|
|
6616
6619
|
] : [
|
|
6617
6620
|
o,
|
|
@@ -6623,13 +6626,13 @@ function ro(t, n) {
|
|
|
6623
6626
|
{}
|
|
6624
6627
|
];
|
|
6625
6628
|
}
|
|
6626
|
-
function
|
|
6629
|
+
function ro(e, t) {
|
|
6627
6630
|
return (n) => {
|
|
6628
6631
|
e && e(n), n.defaultPrevented || t(n);
|
|
6629
6632
|
};
|
|
6630
6633
|
}
|
|
6631
6634
|
function io({ page: t, ...n }) {
|
|
6632
|
-
let r =
|
|
6635
|
+
let r = Hi(), { nonce: i } = to(), { router: a } = Qa(), o = e.useMemo(() => Qr(a.routes, t, a.basename), [
|
|
6633
6636
|
a.routes,
|
|
6634
6637
|
t,
|
|
6635
6638
|
a.basename
|
|
@@ -6648,10 +6651,10 @@ function io({ page: t, ...n }) {
|
|
|
6648
6651
|
})) : null;
|
|
6649
6652
|
}
|
|
6650
6653
|
function ao(t) {
|
|
6651
|
-
let { manifest: n, routeModules: r } =
|
|
6654
|
+
let { manifest: n, routeModules: r } = to(), [i, a] = e.useState([]);
|
|
6652
6655
|
return e.useEffect(() => {
|
|
6653
6656
|
let e = !1;
|
|
6654
|
-
return
|
|
6657
|
+
return Ka(t, n, r).then((t) => {
|
|
6655
6658
|
e || a(t);
|
|
6656
6659
|
}), () => {
|
|
6657
6660
|
e = !0;
|
|
@@ -6663,9 +6666,9 @@ function ao(t) {
|
|
|
6663
6666
|
]), i;
|
|
6664
6667
|
}
|
|
6665
6668
|
function oo({ page: t, matches: n, ...r }) {
|
|
6666
|
-
let i =
|
|
6669
|
+
let i = ra(), { future: a } = to(), { basename: o } = Qa(), s = e.useMemo(() => {
|
|
6667
6670
|
if (t === i.pathname + i.search + i.hash) return [];
|
|
6668
|
-
let e =
|
|
6671
|
+
let e = Ha(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
|
|
6669
6672
|
for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
|
|
6670
6673
|
return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
|
|
6671
6674
|
}, [
|
|
@@ -6684,13 +6687,13 @@ function oo({ page: t, matches: n, ...r }) {
|
|
|
6684
6687
|
})));
|
|
6685
6688
|
}
|
|
6686
6689
|
function so({ page: t, matches: n, ...r }) {
|
|
6687
|
-
let i =
|
|
6690
|
+
let i = ra(), { future: a, manifest: o, routeModules: s } = to(), { basename: c } = Qa(), { loaderData: l, matches: u } = $a(), d = e.useMemo(() => qa(t, n, u, o, i, "data"), [
|
|
6688
6691
|
t,
|
|
6689
6692
|
n,
|
|
6690
6693
|
u,
|
|
6691
6694
|
o,
|
|
6692
6695
|
i
|
|
6693
|
-
]), f = e.useMemo(() =>
|
|
6696
|
+
]), f = e.useMemo(() => qa(t, n, u, o, i, "assets"), [
|
|
6694
6697
|
t,
|
|
6695
6698
|
n,
|
|
6696
6699
|
u,
|
|
@@ -6703,7 +6706,7 @@ function so({ page: t, matches: n, ...r }) {
|
|
|
6703
6706
|
let n = o.routes[t.route.id];
|
|
6704
6707
|
!n || !n.hasLoader || (!d.some((e) => e.route.id === t.route.id) && t.route.id in l && s[t.route.id]?.shouldRevalidate || n.hasClientLoader ? r = !0 : e.add(t.route.id));
|
|
6705
6708
|
}), e.size === 0) return [];
|
|
6706
|
-
let u =
|
|
6709
|
+
let u = Ha(t, c, a.v8_trailingSlashAwareDataRequests, "data");
|
|
6707
6710
|
return r && e.size > 0 && u.searchParams.set("_routes", n.filter((t) => e.has(t.route.id)).map((e) => e.route.id).join(",")), [u.pathname + u.search];
|
|
6708
6711
|
}, [
|
|
6709
6712
|
c,
|
|
@@ -6715,7 +6718,7 @@ function so({ page: t, matches: n, ...r }) {
|
|
|
6715
6718
|
n,
|
|
6716
6719
|
t,
|
|
6717
6720
|
s
|
|
6718
|
-
]), m = e.useMemo(() =>
|
|
6721
|
+
]), m = e.useMemo(() => Ja(f, o), [f, o]), h = ao(f);
|
|
6719
6722
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
6720
6723
|
key: t,
|
|
6721
6724
|
rel: "prefetch",
|
|
@@ -6744,34 +6747,17 @@ function co(...e) {
|
|
|
6744
6747
|
e.Component;
|
|
6745
6748
|
var lo = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
6746
6749
|
try {
|
|
6747
|
-
lo && (window.__reactRouterVersion = "7.18.
|
|
6750
|
+
lo && (window.__reactRouterVersion = "7.18.2");
|
|
6748
6751
|
} catch {}
|
|
6749
|
-
|
|
6750
|
-
let
|
|
6751
|
-
action: r.action,
|
|
6752
|
-
location: r.location
|
|
6753
|
-
}), s = e.useCallback((t) => {
|
|
6754
|
-
i === !1 ? o(t) : e.startTransition(() => o(t));
|
|
6755
|
-
}, [i]);
|
|
6756
|
-
return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement(Ta, {
|
|
6757
|
-
basename: t,
|
|
6758
|
-
children: n,
|
|
6759
|
-
location: a.location,
|
|
6760
|
-
navigationType: a.action,
|
|
6761
|
-
navigator: r,
|
|
6762
|
-
useTransitions: i
|
|
6763
|
-
});
|
|
6764
|
-
}
|
|
6765
|
-
uo.displayName = "unstable_HistoryRouter";
|
|
6766
|
-
var fo = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
|
|
6767
|
-
let { basename: g, navigator: _, useTransitions: v } = e.useContext(X), y = typeof u == "string" && Kr.test(u), b = Ni(u, g);
|
|
6752
|
+
var uo = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
|
|
6753
|
+
let { basename: g, navigator: _, useTransitions: v } = e.useContext(Ki), y = typeof u == "string" && Kr.test(u), b = Pi(u, g);
|
|
6768
6754
|
u = b.to;
|
|
6769
|
-
let x =
|
|
6755
|
+
let x = ta(u, { relative: i }), S = ra(), C = null;
|
|
6770
6756
|
if (s) {
|
|
6771
|
-
let e =
|
|
6772
|
-
g !== "/" && (e.pathname = e.pathname === "/" ? g :
|
|
6757
|
+
let e = wi(s, [], S.mask ? S.mask.pathname : "/", !0);
|
|
6758
|
+
g !== "/" && (e.pathname = e.pathname === "/" ? g : $([g, e.pathname])), C = _.createHref(e);
|
|
6773
6759
|
}
|
|
6774
|
-
let [
|
|
6760
|
+
let [w, T, E] = no(r, m), D = go(u, {
|
|
6775
6761
|
replace: o,
|
|
6776
6762
|
mask: s,
|
|
6777
6763
|
state: c,
|
|
@@ -6782,49 +6768,49 @@ var fo = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r
|
|
|
6782
6768
|
defaultShouldRevalidate: p,
|
|
6783
6769
|
useTransitions: v
|
|
6784
6770
|
});
|
|
6785
|
-
function
|
|
6786
|
-
t && t(e), e.defaultPrevented ||
|
|
6771
|
+
function O(e) {
|
|
6772
|
+
t && t(e), e.defaultPrevented || D(e);
|
|
6787
6773
|
}
|
|
6788
|
-
let
|
|
6774
|
+
let ee = !(b.isExternal || a), k = /* @__PURE__ */ e.createElement("a", {
|
|
6789
6775
|
...m,
|
|
6790
|
-
...
|
|
6791
|
-
href: (
|
|
6792
|
-
onClick:
|
|
6793
|
-
ref: co(h,
|
|
6776
|
+
...E,
|
|
6777
|
+
href: (ee ? C : void 0) || b.absoluteURL || x,
|
|
6778
|
+
onClick: ee ? O : t,
|
|
6779
|
+
ref: co(h, T),
|
|
6794
6780
|
target: l,
|
|
6795
6781
|
"data-discover": !y && n === "render" ? "true" : void 0
|
|
6796
6782
|
});
|
|
6797
|
-
return
|
|
6783
|
+
return w && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, k, /* @__PURE__ */ e.createElement(io, { page: x })) : k;
|
|
6798
6784
|
});
|
|
6799
|
-
|
|
6800
|
-
var
|
|
6801
|
-
let d =
|
|
6802
|
-
n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y =
|
|
6785
|
+
uo.displayName = "Link";
|
|
6786
|
+
var fo = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
|
|
6787
|
+
let d = ca(o, { relative: l.relative }), f = ra(), p = e.useContext(Bi), { navigator: m, basename: h } = e.useContext(Ki), g = p != null && xo(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
|
|
6788
|
+
n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = vi(y, h) || y);
|
|
6803
6789
|
let b = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, x = v === _ || !i && v.startsWith(_) && v.charAt(b) === "/", S = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), C = {
|
|
6804
6790
|
isActive: x,
|
|
6805
6791
|
isPending: S,
|
|
6806
6792
|
isTransitioning: g
|
|
6807
|
-
},
|
|
6808
|
-
|
|
6793
|
+
}, w = x ? t : void 0, T;
|
|
6794
|
+
T = typeof r == "function" ? r(C) : [
|
|
6809
6795
|
r,
|
|
6810
6796
|
x ? "active" : null,
|
|
6811
6797
|
S ? "pending" : null,
|
|
6812
6798
|
g ? "transitioning" : null
|
|
6813
6799
|
].filter(Boolean).join(" ");
|
|
6814
|
-
let
|
|
6815
|
-
return /* @__PURE__ */ e.createElement(
|
|
6800
|
+
let E = typeof a == "function" ? a(C) : a;
|
|
6801
|
+
return /* @__PURE__ */ e.createElement(uo, {
|
|
6816
6802
|
...l,
|
|
6817
|
-
"aria-current":
|
|
6818
|
-
className:
|
|
6803
|
+
"aria-current": w,
|
|
6804
|
+
className: T,
|
|
6819
6805
|
ref: u,
|
|
6820
|
-
style:
|
|
6806
|
+
style: E,
|
|
6821
6807
|
to: o,
|
|
6822
6808
|
viewTransition: s
|
|
6823
6809
|
}, typeof c == "function" ? c(C) : c);
|
|
6824
6810
|
});
|
|
6825
|
-
|
|
6826
|
-
var
|
|
6827
|
-
let { useTransitions: g } = e.useContext(
|
|
6811
|
+
fo.displayName = "NavLink";
|
|
6812
|
+
var po = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = Oa, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
|
|
6813
|
+
let { useTransitions: g } = e.useContext(Ki), _ = yo(), v = bo(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", b = typeof c == "string" && Kr.test(c);
|
|
6828
6814
|
return /* @__PURE__ */ e.createElement("form", {
|
|
6829
6815
|
ref: h,
|
|
6830
6816
|
method: y,
|
|
@@ -6849,55 +6835,20 @@ var mo = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, rel
|
|
|
6849
6835
|
"data-discover": !b && t === "render" ? "true" : void 0
|
|
6850
6836
|
});
|
|
6851
6837
|
});
|
|
6852
|
-
|
|
6853
|
-
function
|
|
6854
|
-
let i = e.useContext(to), { basename: a } = e.useContext(X), o = Q(), s = ya();
|
|
6855
|
-
Do({
|
|
6856
|
-
getKey: t,
|
|
6857
|
-
storageKey: n
|
|
6858
|
-
});
|
|
6859
|
-
let c = e.useMemo(() => {
|
|
6860
|
-
if (!i || !t) return null;
|
|
6861
|
-
let e = Eo(o, s, a, t);
|
|
6862
|
-
return e === o.key ? null : e;
|
|
6863
|
-
}, []);
|
|
6864
|
-
if (!i || i.isSpaMode) return null;
|
|
6865
|
-
let l = ((e, t) => {
|
|
6866
|
-
if (!window.history.state || !window.history.state.key) {
|
|
6867
|
-
let e = Math.random().toString(32).slice(2);
|
|
6868
|
-
window.history.replaceState({ key: e }, "");
|
|
6869
|
-
}
|
|
6870
|
-
try {
|
|
6871
|
-
let n = JSON.parse(sessionStorage.getItem(e) || "{}")[t || window.history.state.key];
|
|
6872
|
-
typeof n == "number" && window.scrollTo(0, n);
|
|
6873
|
-
} catch (t) {
|
|
6874
|
-
console.error(t), sessionStorage.removeItem(e);
|
|
6875
|
-
}
|
|
6876
|
-
}).toString();
|
|
6877
|
-
return r.nonce == null && i?.nonce && (r.nonce = i.nonce), /* @__PURE__ */ e.createElement("script", {
|
|
6878
|
-
...r,
|
|
6879
|
-
suppressHydrationWarning: !0,
|
|
6880
|
-
dangerouslySetInnerHTML: { __html: `(${l})(${Va(JSON.stringify(n || wo))}, ${Va(JSON.stringify(c))})` }
|
|
6881
|
-
});
|
|
6882
|
-
}
|
|
6883
|
-
ho.displayName = "ScrollRestoration";
|
|
6884
|
-
function go(e) {
|
|
6838
|
+
po.displayName = "Form";
|
|
6839
|
+
function mo(e) {
|
|
6885
6840
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
6886
6841
|
}
|
|
6887
|
-
function
|
|
6888
|
-
let n = e.useContext(
|
|
6889
|
-
return
|
|
6890
|
-
}
|
|
6891
|
-
function vo(t) {
|
|
6892
|
-
let n = e.useContext(Ri);
|
|
6893
|
-
return G(n, go(t)), n;
|
|
6842
|
+
function ho(t) {
|
|
6843
|
+
let n = e.useContext(zi);
|
|
6844
|
+
return Q(n, mo(t)), n;
|
|
6894
6845
|
}
|
|
6895
|
-
function
|
|
6896
|
-
let d =
|
|
6846
|
+
function go(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
|
|
6847
|
+
let d = oa(), f = ra(), p = ca(t, { relative: s });
|
|
6897
6848
|
return e.useCallback((m) => {
|
|
6898
|
-
if (
|
|
6849
|
+
if (Fa(m, n)) {
|
|
6899
6850
|
m.preventDefault();
|
|
6900
|
-
let n = r === void 0 ?
|
|
6851
|
+
let n = r === void 0 ? Xr(f) === Xr(p) : r, h = () => d(t, {
|
|
6901
6852
|
replace: n,
|
|
6902
6853
|
mask: i,
|
|
6903
6854
|
state: a,
|
|
@@ -6924,13 +6875,13 @@ function yo(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o
|
|
|
6924
6875
|
u
|
|
6925
6876
|
]);
|
|
6926
6877
|
}
|
|
6927
|
-
var
|
|
6928
|
-
function
|
|
6929
|
-
let { router: t } =
|
|
6878
|
+
var _o = 0, vo = () => `__${String(++_o)}__`;
|
|
6879
|
+
function yo() {
|
|
6880
|
+
let { router: t } = ho("useSubmit"), { basename: n } = e.useContext(Ki), r = Sa(), i = t.fetch, a = t.navigate;
|
|
6930
6881
|
return e.useCallback(async (e, t = {}) => {
|
|
6931
|
-
let { action: o, method: s, encType: c, formData: l, body: u } =
|
|
6882
|
+
let { action: o, method: s, encType: c, formData: l, body: u } = Ba(e, n);
|
|
6932
6883
|
if (t.navigate === !1) {
|
|
6933
|
-
let e = t.fetcherKey ||
|
|
6884
|
+
let e = t.fetcherKey || vo();
|
|
6934
6885
|
await i(e, r, t.action || o, {
|
|
6935
6886
|
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
6936
6887
|
preventScrollReset: t.preventScrollReset,
|
|
@@ -6960,10 +6911,10 @@ function So() {
|
|
|
6960
6911
|
r
|
|
6961
6912
|
]);
|
|
6962
6913
|
}
|
|
6963
|
-
function
|
|
6964
|
-
let { basename: r } = e.useContext(
|
|
6965
|
-
|
|
6966
|
-
let [a] = i.matches.slice(-1), o = { ...
|
|
6914
|
+
function bo(t, { relative: n } = {}) {
|
|
6915
|
+
let { basename: r } = e.useContext(Ki), i = e.useContext(Ji);
|
|
6916
|
+
Q(i, "useFormAction must be used inside a RouteContext");
|
|
6917
|
+
let [a] = i.matches.slice(-1), o = { ...ca(t || ".", { relative: n }) }, s = ra();
|
|
6967
6918
|
if (t == null) {
|
|
6968
6919
|
o.search = s.search;
|
|
6969
6920
|
let e = new URLSearchParams(o.search), t = e.getAll("index");
|
|
@@ -6973,135 +6924,71 @@ function Co(t, { relative: n } = {}) {
|
|
|
6973
6924
|
o.search = n ? `?${n}` : "";
|
|
6974
6925
|
}
|
|
6975
6926
|
}
|
|
6976
|
-
return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r :
|
|
6927
|
+
return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : $([r, o.pathname])), Xr(o);
|
|
6977
6928
|
}
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
...e,
|
|
6983
|
-
pathname: q(e.pathname, n) || e.pathname
|
|
6984
|
-
}, t)), i ??= e.key, i;
|
|
6985
|
-
}
|
|
6986
|
-
function Do({ getKey: t, storageKey: n } = {}) {
|
|
6987
|
-
let { router: r } = _o("useScrollRestoration"), { restoreScrollPosition: i, preventScrollReset: a } = vo("useScrollRestoration"), { basename: o } = e.useContext(X), s = Q(), c = ya(), l = va();
|
|
6988
|
-
e.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
6989
|
-
window.history.scrollRestoration = "auto";
|
|
6990
|
-
}), []), Oo(e.useCallback(() => {
|
|
6991
|
-
if (l.state === "idle") {
|
|
6992
|
-
let e = Eo(s, c, o, t);
|
|
6993
|
-
To[e] = window.scrollY;
|
|
6994
|
-
}
|
|
6995
|
-
try {
|
|
6996
|
-
sessionStorage.setItem(n || wo, JSON.stringify(To));
|
|
6997
|
-
} catch (e) {
|
|
6998
|
-
K(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`);
|
|
6999
|
-
}
|
|
7000
|
-
window.history.scrollRestoration = "auto";
|
|
7001
|
-
}, [
|
|
7002
|
-
l.state,
|
|
7003
|
-
t,
|
|
7004
|
-
o,
|
|
7005
|
-
s,
|
|
7006
|
-
c,
|
|
7007
|
-
n
|
|
7008
|
-
])), typeof document < "u" && (e.useLayoutEffect(() => {
|
|
7009
|
-
try {
|
|
7010
|
-
let e = sessionStorage.getItem(n || wo);
|
|
7011
|
-
e && (To = JSON.parse(e));
|
|
7012
|
-
} catch {}
|
|
7013
|
-
}, [n]), e.useLayoutEffect(() => {
|
|
7014
|
-
let e = r?.enableScrollRestoration(To, () => window.scrollY, t ? (e, n) => Eo(e, n, o, t) : void 0);
|
|
7015
|
-
return () => e && e();
|
|
7016
|
-
}, [
|
|
7017
|
-
r,
|
|
7018
|
-
o,
|
|
7019
|
-
t
|
|
7020
|
-
]), e.useLayoutEffect(() => {
|
|
7021
|
-
if (i !== !1) {
|
|
7022
|
-
if (typeof i == "number") {
|
|
7023
|
-
window.scrollTo(0, i);
|
|
7024
|
-
return;
|
|
7025
|
-
}
|
|
7026
|
-
try {
|
|
7027
|
-
if (s.hash) {
|
|
7028
|
-
let e = document.getElementById(decodeURIComponent(s.hash.slice(1)));
|
|
7029
|
-
if (e) {
|
|
7030
|
-
e.scrollIntoView();
|
|
7031
|
-
return;
|
|
7032
|
-
}
|
|
7033
|
-
}
|
|
7034
|
-
} catch {
|
|
7035
|
-
K(!1, `"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
|
|
7036
|
-
}
|
|
7037
|
-
a !== !0 && window.scrollTo(0, 0);
|
|
7038
|
-
}
|
|
7039
|
-
}, [
|
|
7040
|
-
s,
|
|
7041
|
-
i,
|
|
7042
|
-
a
|
|
7043
|
-
]));
|
|
7044
|
-
}
|
|
7045
|
-
function Oo(t, n) {
|
|
7046
|
-
let { capture: r } = n || {};
|
|
7047
|
-
e.useEffect(() => {
|
|
7048
|
-
let e = r == null ? void 0 : { capture: r };
|
|
7049
|
-
return window.addEventListener("pagehide", t, e), () => {
|
|
7050
|
-
window.removeEventListener("pagehide", t, e);
|
|
7051
|
-
};
|
|
7052
|
-
}, [t, r]);
|
|
7053
|
-
}
|
|
7054
|
-
function ko(t, { relative: n } = {}) {
|
|
7055
|
-
let r = e.useContext(Vi);
|
|
7056
|
-
G(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
|
|
7057
|
-
let { basename: i } = _o("useViewTransitionState"), a = ra(t, { relative: n });
|
|
6929
|
+
function xo(t, { relative: n } = {}) {
|
|
6930
|
+
let r = e.useContext(Ui);
|
|
6931
|
+
Q(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
|
|
6932
|
+
let { basename: i } = ho("useViewTransitionState"), a = ca(t, { relative: n });
|
|
7058
6933
|
if (!r.isTransitioning) return !1;
|
|
7059
|
-
let o =
|
|
6934
|
+
let o = vi(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = vi(r.nextLocation.pathname, i) || r.nextLocation.pathname;
|
|
7060
6935
|
return mi(a.pathname, s) != null || mi(a.pathname, o) != null;
|
|
7061
6936
|
}
|
|
7062
6937
|
//#endregion
|
|
7063
6938
|
//#region src/lib/hooks/useUrlQuery.ts
|
|
7064
|
-
function
|
|
7065
|
-
let { search:
|
|
7066
|
-
return
|
|
6939
|
+
function So() {
|
|
6940
|
+
let e = (0, Z.c)(2), { search: t } = ra(), n;
|
|
6941
|
+
return e[0] === t ? n = e[1] : (n = new URLSearchParams(t), e[0] = t, e[1] = n), n;
|
|
7067
6942
|
}
|
|
7068
6943
|
//#endregion
|
|
7069
6944
|
//#region src/lib/hooks/useFormatNumber.ts
|
|
7070
|
-
function
|
|
7071
|
-
let
|
|
7072
|
-
|
|
6945
|
+
function Co(e) {
|
|
6946
|
+
let t = (0, Z.c)(5), { language: n } = Vn(), r;
|
|
6947
|
+
t[0] !== n || t[1] !== e ? (r = new Intl.NumberFormat(n, e), t[0] = n, t[1] = e, t[2] = r) : r = t[2];
|
|
6948
|
+
let i = r, a;
|
|
6949
|
+
return t[3] === i ? a = t[4] : (a = (e) => {
|
|
7073
6950
|
if (e == null) return "-";
|
|
7074
6951
|
let t = Number(e);
|
|
7075
|
-
return isNaN(t) ? "-" :
|
|
7076
|
-
}, [
|
|
6952
|
+
return isNaN(t) ? "-" : i.format(t);
|
|
6953
|
+
}, t[3] = i, t[4] = a), a;
|
|
7077
6954
|
}
|
|
7078
|
-
function
|
|
7079
|
-
|
|
6955
|
+
function wo(e) {
|
|
6956
|
+
let t = (0, Z.c)(3), n = Co(), r;
|
|
6957
|
+
return t[0] !== n || t[1] !== e ? (r = n(e), t[0] = n, t[1] = e, t[2] = r) : r = t[2], r;
|
|
7080
6958
|
}
|
|
7081
6959
|
//#endregion
|
|
7082
6960
|
//#region src/lib/components/datetime-display/DateTimeDisplay.tsx
|
|
7083
|
-
function
|
|
7084
|
-
let
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
6961
|
+
function To(e) {
|
|
6962
|
+
let t = (0, Z.c)(7), n, r, i;
|
|
6963
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({date: n, options: r, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
6964
|
+
let a = Wr(n, r), o;
|
|
6965
|
+
return t[4] !== a || t[5] !== i ? (o = /* @__PURE__ */ L("span", {
|
|
6966
|
+
...i,
|
|
6967
|
+
children: a
|
|
6968
|
+
}), t[4] = a, t[5] = i, t[6] = o) : o = t[6], o;
|
|
7089
6969
|
}
|
|
7090
6970
|
//#endregion
|
|
7091
6971
|
//#region src/lib/components/duration-display/DurationDisplay.tsx
|
|
7092
|
-
function
|
|
7093
|
-
let
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
6972
|
+
function Eo(e) {
|
|
6973
|
+
let t = (0, Z.c)(10), n, r, i;
|
|
6974
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({minutes: n, alternativeText: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
6975
|
+
let a = i === void 0 ? "" : i, o = Gr(n ?? 0);
|
|
6976
|
+
if (n == null) {
|
|
6977
|
+
let e;
|
|
6978
|
+
return t[4] !== a || t[5] !== r ? (e = /* @__PURE__ */ L("span", {
|
|
6979
|
+
...r,
|
|
6980
|
+
children: a
|
|
6981
|
+
}), t[4] = a, t[5] = r, t[6] = e) : e = t[6], e;
|
|
6982
|
+
}
|
|
6983
|
+
let s;
|
|
6984
|
+
return t[7] !== o || t[8] !== r ? (s = /* @__PURE__ */ L("span", {
|
|
6985
|
+
...r,
|
|
6986
|
+
children: o
|
|
6987
|
+
}), t[7] = o, t[8] = r, t[9] = s) : s = t[9], s;
|
|
7101
6988
|
}
|
|
7102
6989
|
//#endregion
|
|
7103
6990
|
//#region src/lib/components/user-search/UserSearch.utils.ts
|
|
7104
|
-
function
|
|
6991
|
+
function Do(e) {
|
|
7105
6992
|
let t = /* @__PURE__ */ new Map();
|
|
7106
6993
|
for (let n of e) {
|
|
7107
6994
|
let e = (n.username?.[0] ?? "#").toUpperCase(), r = t.get(e);
|
|
@@ -7112,7 +6999,7 @@ function Fo(e) {
|
|
|
7112
6999
|
users: t
|
|
7113
7000
|
}));
|
|
7114
7001
|
}
|
|
7115
|
-
var
|
|
7002
|
+
var Oo = {
|
|
7116
7003
|
label: "User",
|
|
7117
7004
|
chooseUser: "Choose user",
|
|
7118
7005
|
modalTitle: "Choose a user",
|
|
@@ -7126,7 +7013,7 @@ var Io = {
|
|
|
7126
7013
|
empty: "No users found",
|
|
7127
7014
|
loadError: "Users could not be loaded.",
|
|
7128
7015
|
retry: "Try again"
|
|
7129
|
-
},
|
|
7016
|
+
}, ko = {
|
|
7130
7017
|
label: "Benutzer",
|
|
7131
7018
|
chooseUser: "Benutzer auswählen",
|
|
7132
7019
|
modalTitle: "Benutzer auswählen",
|
|
@@ -7140,217 +7027,296 @@ var Io = {
|
|
|
7140
7027
|
empty: "Keine Benutzer gefunden",
|
|
7141
7028
|
loadError: "Benutzer konnten nicht geladen werden.",
|
|
7142
7029
|
retry: "Erneut versuchen"
|
|
7143
|
-
},
|
|
7030
|
+
}, Ao = 50, jo = 300, Mo = {
|
|
7144
7031
|
"--field-border": "var(--border-secondary)",
|
|
7145
7032
|
"--border-width-field": "1px"
|
|
7146
7033
|
};
|
|
7147
|
-
function
|
|
7148
|
-
let { label:
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7034
|
+
function No(e) {
|
|
7035
|
+
let t = (0, Z.c)(125), { label: n, placeholder: r, size: i, resetSignal: a, onSelectionChange: o, afterAutocomplete: l, wrapperProps: f, afterSelection: p } = e, m;
|
|
7036
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
7037
|
+
en: Oo,
|
|
7038
|
+
de: ko
|
|
7039
|
+
}, t[0] = m) : m = t[0];
|
|
7040
|
+
let { t: g } = Wn(m), k = c(), ne = c(), { isOpen: A, open: j, close: M } = F(), [N, re] = d(null), [P, ie] = d(""), oe = Hr(P, jo), B = u(!0), V;
|
|
7041
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (V = () => {
|
|
7042
|
+
if (B.current) {
|
|
7043
|
+
B.current = !1;
|
|
7155
7044
|
return;
|
|
7156
7045
|
}
|
|
7157
|
-
|
|
7158
|
-
}, [
|
|
7159
|
-
let
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7046
|
+
re(null), ie("");
|
|
7047
|
+
}, t[1] = V) : V = t[1];
|
|
7048
|
+
let H;
|
|
7049
|
+
t[2] === a ? H = t[3] : (H = [a], t[2] = a, t[3] = H), s(V, H);
|
|
7050
|
+
let U;
|
|
7051
|
+
t[4] !== oe || t[5] !== A || t[6] !== P ? (U = A && P.trim() && oe.trim() || void 0, t[4] = oe, t[5] = A, t[6] = P, t[7] = U) : U = t[7];
|
|
7052
|
+
let W;
|
|
7053
|
+
t[8] === U ? W = t[9] : (W = {
|
|
7054
|
+
limit: Ao,
|
|
7055
|
+
search: U
|
|
7056
|
+
}, t[8] = U, t[9] = W);
|
|
7057
|
+
let se;
|
|
7058
|
+
t[10] === A ? se = t[11] : (se = {
|
|
7059
|
+
enabled: A,
|
|
7164
7060
|
initialPageParam: 1,
|
|
7165
|
-
getNextPageParam:
|
|
7166
|
-
}
|
|
7061
|
+
getNextPageParam: Po
|
|
7062
|
+
}, t[10] = A, t[11] = se);
|
|
7063
|
+
let { data: G, fetchNextPage: ce, hasNextPage: le, isFetchingNextPage: K, isFetching: ue, isLoading: de, isError: q, refetch: fe } = z(W, void 0, se), pe;
|
|
7064
|
+
if (t[12] !== G?.pages) {
|
|
7167
7065
|
let e = /* @__PURE__ */ new Map();
|
|
7168
|
-
for (let t of
|
|
7169
|
-
|
|
7170
|
-
}
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
}, [
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7066
|
+
for (let t of G?.pages ?? []) for (let n of t.data) e.set(n.id, n);
|
|
7067
|
+
pe = [...e.values()], t[12] = G?.pages, t[13] = pe;
|
|
7068
|
+
} else pe = t[13];
|
|
7069
|
+
let J = pe, me;
|
|
7070
|
+
t[14] === J ? me = t[15] : (me = Do(J), t[14] = J, t[15] = me);
|
|
7071
|
+
let he = me, ge, _e;
|
|
7072
|
+
t[16] !== o || t[17] !== N ? (ge = () => {
|
|
7073
|
+
o?.(N);
|
|
7074
|
+
}, _e = [N, o], t[16] = o, t[17] = N, t[18] = ge, t[19] = _e) : (ge = t[18], _e = t[19]), s(ge, _e);
|
|
7075
|
+
let ve;
|
|
7076
|
+
t[20] === M ? ve = t[21] : (ve = (e) => {
|
|
7077
|
+
re(e), ie(""), M();
|
|
7078
|
+
}, t[20] = M, t[21] = ve);
|
|
7079
|
+
let ye = ve, be;
|
|
7080
|
+
t[22] !== M || t[23] !== j ? (be = (e) => {
|
|
7081
|
+
e ? j() : (ie(""), M());
|
|
7082
|
+
}, t[22] = M, t[23] = j, t[24] = be) : be = t[24];
|
|
7083
|
+
let xe = be, Se = u(null), Ce = u(null), we;
|
|
7084
|
+
t[25] !== ce || t[26] !== le || t[27] !== K ? (we = {
|
|
7085
|
+
hasNextPage: le,
|
|
7086
|
+
isFetchingNextPage: K,
|
|
7087
|
+
fetchNextPage: ce
|
|
7088
|
+
}, t[25] = ce, t[26] = le, t[27] = K, t[28] = we) : we = t[28];
|
|
7089
|
+
let Te = u(we), Ee;
|
|
7090
|
+
t[29] !== ce || t[30] !== le || t[31] !== K ? (Ee = () => {
|
|
7091
|
+
Te.current = {
|
|
7092
|
+
hasNextPage: le,
|
|
7093
|
+
isFetchingNextPage: K,
|
|
7094
|
+
fetchNextPage: ce
|
|
7188
7095
|
};
|
|
7189
|
-
}), s(
|
|
7190
|
-
|
|
7191
|
-
|
|
7096
|
+
}, t[29] = ce, t[30] = le, t[31] = K, t[32] = Ee) : Ee = t[32], s(Ee);
|
|
7097
|
+
let De;
|
|
7098
|
+
t[33] === A ? De = t[34] : (De = () => {
|
|
7099
|
+
let e = Ce.current, t = Se.current;
|
|
7100
|
+
if (!e || !t || !A) return;
|
|
7192
7101
|
let n = new IntersectionObserver((e) => {
|
|
7193
|
-
let t =
|
|
7102
|
+
let t = Te.current;
|
|
7194
7103
|
e[0]?.isIntersecting && t.hasNextPage && !t.isFetchingNextPage && t.fetchNextPage();
|
|
7195
7104
|
}, {
|
|
7196
7105
|
root: t,
|
|
7197
7106
|
rootMargin: "200px"
|
|
7198
7107
|
});
|
|
7199
7108
|
return n.observe(e), () => n.disconnect();
|
|
7200
|
-
}, [
|
|
7201
|
-
|
|
7109
|
+
}, t[33] = A, t[34] = De);
|
|
7110
|
+
let Oe;
|
|
7111
|
+
t[35] !== q || t[36] !== A ? (Oe = [A, q], t[35] = q, t[36] = A, t[37] = Oe) : Oe = t[37], s(De, Oe);
|
|
7112
|
+
let ke;
|
|
7113
|
+
t[38] !== n || t[39] !== g ? (ke = n ?? g("label"), t[38] = n, t[39] = g, t[40] = ke) : ke = t[40];
|
|
7114
|
+
let Ae;
|
|
7115
|
+
t[41] !== k || t[42] !== ke ? (Ae = /* @__PURE__ */ L(y, {
|
|
7116
|
+
id: k,
|
|
7117
|
+
className: "mb-1 block",
|
|
7118
|
+
children: ke
|
|
7119
|
+
}), t[41] = k, t[42] = ke, t[43] = Ae) : Ae = t[43];
|
|
7120
|
+
let je;
|
|
7121
|
+
t[44] !== k || t[45] !== j || t[46] !== N || t[47] !== i || t[48] !== g || t[49] !== ne ? (je = N ? /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(h, {
|
|
7122
|
+
variant: "ghost",
|
|
7123
|
+
size: i,
|
|
7124
|
+
onPress: j,
|
|
7125
|
+
className: "justify-start px-2",
|
|
7126
|
+
id: ne,
|
|
7127
|
+
"aria-labelledby": `${k} ${ne}`,
|
|
7128
|
+
"data-cy": "user-picker-selected",
|
|
7129
|
+
children: /* @__PURE__ */ L(Vr, {
|
|
7130
|
+
user: N,
|
|
7131
|
+
interactive: !1
|
|
7132
|
+
})
|
|
7133
|
+
}), /* @__PURE__ */ L(h, {
|
|
7134
|
+
variant: "ghost",
|
|
7135
|
+
size: i ?? "sm",
|
|
7136
|
+
isIconOnly: !0,
|
|
7137
|
+
onPress: () => re(null),
|
|
7138
|
+
"aria-label": g("clear"),
|
|
7139
|
+
"data-cy": "user-picker-clear",
|
|
7140
|
+
children: /* @__PURE__ */ L(Fr, { className: "w-4 h-4" })
|
|
7141
|
+
})] }) : /* @__PURE__ */ R(h, {
|
|
7142
|
+
variant: "secondary",
|
|
7143
|
+
size: i,
|
|
7144
|
+
onPress: j,
|
|
7145
|
+
className: "flex-1 justify-start",
|
|
7146
|
+
id: ne,
|
|
7147
|
+
"aria-labelledby": `${k} ${ne}`,
|
|
7148
|
+
"data-cy": "user-picker-open",
|
|
7149
|
+
children: [/* @__PURE__ */ L(Pr, { className: "w-4 h-4" }), g("chooseUser")]
|
|
7150
|
+
}), t[44] = k, t[45] = j, t[46] = N, t[47] = i, t[48] = g, t[49] = ne, t[50] = je) : je = t[50];
|
|
7151
|
+
let Me;
|
|
7152
|
+
t[51] !== l || t[52] !== p || t[53] !== je ? (Me = /* @__PURE__ */ R("div", {
|
|
7153
|
+
className: "flex gap-2 items-center",
|
|
7202
7154
|
children: [
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
children: t ?? g("label")
|
|
7207
|
-
}),
|
|
7208
|
-
/* @__PURE__ */ A("div", {
|
|
7209
|
-
className: "flex gap-2 items-center",
|
|
7210
|
-
children: [
|
|
7211
|
-
se ? /* @__PURE__ */ A(pe, { children: [/* @__PURE__ */ k(h, {
|
|
7212
|
-
variant: "ghost",
|
|
7213
|
-
size: r,
|
|
7214
|
-
onPress: D,
|
|
7215
|
-
className: "justify-start px-2",
|
|
7216
|
-
id: T,
|
|
7217
|
-
"aria-labelledby": `${w} ${T}`,
|
|
7218
|
-
"data-cy": "user-picker-selected",
|
|
7219
|
-
children: /* @__PURE__ */ k(Vr, {
|
|
7220
|
-
user: se,
|
|
7221
|
-
interactive: !1
|
|
7222
|
-
})
|
|
7223
|
-
}), /* @__PURE__ */ k(h, {
|
|
7224
|
-
variant: "ghost",
|
|
7225
|
-
size: r ?? "sm",
|
|
7226
|
-
isIconOnly: !0,
|
|
7227
|
-
onPress: () => ce(null),
|
|
7228
|
-
"aria-label": g("clear"),
|
|
7229
|
-
"data-cy": "user-picker-clear",
|
|
7230
|
-
children: /* @__PURE__ */ k(Fr, { className: "w-4 h-4" })
|
|
7231
|
-
})] }) : /* @__PURE__ */ A(h, {
|
|
7232
|
-
variant: "secondary",
|
|
7233
|
-
size: r,
|
|
7234
|
-
onPress: D,
|
|
7235
|
-
className: "flex-1 justify-start",
|
|
7236
|
-
id: T,
|
|
7237
|
-
"aria-labelledby": `${w} ${T}`,
|
|
7238
|
-
"data-cy": "user-picker-open",
|
|
7239
|
-
children: [/* @__PURE__ */ k(Pr, { className: "w-4 h-4" }), g("chooseUser")]
|
|
7240
|
-
}),
|
|
7241
|
-
f,
|
|
7242
|
-
m
|
|
7243
|
-
]
|
|
7244
|
-
}),
|
|
7245
|
-
/* @__PURE__ */ k(C, {
|
|
7246
|
-
isOpen: E,
|
|
7247
|
-
onOpenChange: Ee,
|
|
7248
|
-
children: /* @__PURE__ */ k(ee, { children: /* @__PURE__ */ k(ne, {
|
|
7249
|
-
size: "md",
|
|
7250
|
-
children: /* @__PURE__ */ A(re, {
|
|
7251
|
-
className: "bg-surface-secondary",
|
|
7252
|
-
style: Bo,
|
|
7253
|
-
"aria-label": g("modalTitle"),
|
|
7254
|
-
children: [/* @__PURE__ */ k(ie, { children: /* @__PURE__ */ k(ae, { children: g("modalTitle") }) }), /* @__PURE__ */ A(te, {
|
|
7255
|
-
className: "px-0 pb-0",
|
|
7256
|
-
children: [
|
|
7257
|
-
/* @__PURE__ */ k("div", {
|
|
7258
|
-
className: "px-4",
|
|
7259
|
-
children: /* @__PURE__ */ k(de, {
|
|
7260
|
-
value: le,
|
|
7261
|
-
onChange: ue,
|
|
7262
|
-
className: "w-full",
|
|
7263
|
-
"aria-label": g("searchPlaceholder"),
|
|
7264
|
-
children: /* @__PURE__ */ A(v, { children: [
|
|
7265
|
-
/* @__PURE__ */ k(v.Prefix, { children: /* @__PURE__ */ k(Mr, { className: "size-4 text-muted" }) }),
|
|
7266
|
-
/* @__PURE__ */ k(v.Input, {
|
|
7267
|
-
placeholder: n ?? g("searchPlaceholder"),
|
|
7268
|
-
autoComplete: "off"
|
|
7269
|
-
}),
|
|
7270
|
-
j ? /* @__PURE__ */ k(v.Suffix, { children: /* @__PURE__ */ k(oe, { size: "sm" }) }) : null
|
|
7271
|
-
] })
|
|
7272
|
-
})
|
|
7273
|
-
}),
|
|
7274
|
-
/* @__PURE__ */ k("div", {
|
|
7275
|
-
"aria-live": "polite",
|
|
7276
|
-
className: "sr-only",
|
|
7277
|
-
children: g("resultCount", { count: M.length })
|
|
7278
|
-
}),
|
|
7279
|
-
/* @__PURE__ */ A("div", {
|
|
7280
|
-
ref: De,
|
|
7281
|
-
className: "mt-2",
|
|
7282
|
-
style: {
|
|
7283
|
-
maxHeight: "60vh",
|
|
7284
|
-
overflowY: "auto"
|
|
7285
|
-
},
|
|
7286
|
-
"data-cy": "user-picker-list",
|
|
7287
|
-
children: [
|
|
7288
|
-
Se && M.length === 0 ? /* @__PURE__ */ A("div", {
|
|
7289
|
-
className: "flex flex-col items-center gap-3 py-10",
|
|
7290
|
-
"data-cy": "user-picker-error",
|
|
7291
|
-
children: [/* @__PURE__ */ k("p", {
|
|
7292
|
-
className: "text-sm text-muted",
|
|
7293
|
-
children: g("loadError")
|
|
7294
|
-
}), /* @__PURE__ */ k(h, {
|
|
7295
|
-
variant: "secondary",
|
|
7296
|
-
size: "sm",
|
|
7297
|
-
isPending: xe,
|
|
7298
|
-
onPress: () => Ce(),
|
|
7299
|
-
children: g("retry")
|
|
7300
|
-
})]
|
|
7301
|
-
}) : we.length === 0 && !j ? /* @__PURE__ */ k("div", {
|
|
7302
|
-
className: "py-10 text-center text-sm text-muted",
|
|
7303
|
-
children: g("empty")
|
|
7304
|
-
}) : /* @__PURE__ */ k(b, {
|
|
7305
|
-
"aria-label": g("usersListLabel"),
|
|
7306
|
-
selectionMode: "none",
|
|
7307
|
-
children: we.map((e) => /* @__PURE__ */ A(S, {
|
|
7308
|
-
id: e.letter,
|
|
7309
|
-
children: [/* @__PURE__ */ k(_, {
|
|
7310
|
-
className: "sticky top-0 z-10 bg-surface-secondary px-2 py-1 text-xs font-semibold text-muted",
|
|
7311
|
-
children: e.letter
|
|
7312
|
-
}), e.users.map((e) => /* @__PURE__ */ k(x, {
|
|
7313
|
-
id: String(e.id),
|
|
7314
|
-
textValue: e.username,
|
|
7315
|
-
onAction: () => Te(e),
|
|
7316
|
-
"data-cy": `user-picker-item-${e.id}`,
|
|
7317
|
-
children: /* @__PURE__ */ k(Vr, {
|
|
7318
|
-
user: e,
|
|
7319
|
-
interactive: !1
|
|
7320
|
-
})
|
|
7321
|
-
}, e.id))]
|
|
7322
|
-
}, e.letter))
|
|
7323
|
-
}),
|
|
7324
|
-
Se ? null : /* @__PURE__ */ k("div", { ref: Oe }),
|
|
7325
|
-
Se && M.length > 0 ? /* @__PURE__ */ A("div", {
|
|
7326
|
-
className: "flex items-center justify-center gap-3 py-3",
|
|
7327
|
-
"data-cy": "user-picker-load-more-error",
|
|
7328
|
-
children: [/* @__PURE__ */ k("p", {
|
|
7329
|
-
className: "text-sm text-muted",
|
|
7330
|
-
children: g("loadError")
|
|
7331
|
-
}), /* @__PURE__ */ k(h, {
|
|
7332
|
-
variant: "secondary",
|
|
7333
|
-
size: "sm",
|
|
7334
|
-
isPending: be,
|
|
7335
|
-
onPress: () => ve(),
|
|
7336
|
-
children: g("retry")
|
|
7337
|
-
})]
|
|
7338
|
-
}) : null,
|
|
7339
|
-
be ? /* @__PURE__ */ k("div", {
|
|
7340
|
-
className: "flex justify-center py-3",
|
|
7341
|
-
children: /* @__PURE__ */ k(oe, { size: "sm" })
|
|
7342
|
-
}) : null
|
|
7343
|
-
]
|
|
7344
|
-
})
|
|
7345
|
-
]
|
|
7346
|
-
})]
|
|
7347
|
-
})
|
|
7348
|
-
}) })
|
|
7349
|
-
})
|
|
7155
|
+
je,
|
|
7156
|
+
l,
|
|
7157
|
+
p
|
|
7350
7158
|
]
|
|
7351
|
-
});
|
|
7159
|
+
}), t[51] = l, t[52] = p, t[53] = je, t[54] = Me) : Me = t[54];
|
|
7160
|
+
let Ne;
|
|
7161
|
+
t[55] === g ? Ne = t[56] : (Ne = g("modalTitle"), t[55] = g, t[56] = Ne);
|
|
7162
|
+
let Pe;
|
|
7163
|
+
t[57] === g ? Pe = t[58] : (Pe = g("modalTitle"), t[57] = g, t[58] = Pe);
|
|
7164
|
+
let Fe;
|
|
7165
|
+
t[59] === Pe ? Fe = t[60] : (Fe = /* @__PURE__ */ L(O, { children: /* @__PURE__ */ L(ee, { children: Pe }) }), t[59] = Pe, t[60] = Fe);
|
|
7166
|
+
let Ie;
|
|
7167
|
+
t[61] === g ? Ie = t[62] : (Ie = g("searchPlaceholder"), t[61] = g, t[62] = Ie);
|
|
7168
|
+
let Le;
|
|
7169
|
+
t[63] === Symbol.for("react.memo_cache_sentinel") ? (Le = /* @__PURE__ */ L(v.Prefix, { children: /* @__PURE__ */ L(Mr, { className: "size-4 text-muted" }) }), t[63] = Le) : Le = t[63];
|
|
7170
|
+
let Re;
|
|
7171
|
+
t[64] !== r || t[65] !== g ? (Re = r ?? g("searchPlaceholder"), t[64] = r, t[65] = g, t[66] = Re) : Re = t[66];
|
|
7172
|
+
let ze;
|
|
7173
|
+
t[67] === Re ? ze = t[68] : (ze = /* @__PURE__ */ L(v.Input, {
|
|
7174
|
+
placeholder: Re,
|
|
7175
|
+
autoComplete: "off"
|
|
7176
|
+
}), t[67] = Re, t[68] = ze);
|
|
7177
|
+
let Be;
|
|
7178
|
+
t[69] === de ? Be = t[70] : (Be = de ? /* @__PURE__ */ L(v.Suffix, { children: /* @__PURE__ */ L(te, { size: "sm" }) }) : null, t[69] = de, t[70] = Be);
|
|
7179
|
+
let Ve;
|
|
7180
|
+
t[71] !== ze || t[72] !== Be ? (Ve = /* @__PURE__ */ R(v, { children: [
|
|
7181
|
+
Le,
|
|
7182
|
+
ze,
|
|
7183
|
+
Be
|
|
7184
|
+
] }), t[71] = ze, t[72] = Be, t[73] = Ve) : Ve = t[73];
|
|
7185
|
+
let He;
|
|
7186
|
+
t[74] !== P || t[75] !== Ie || t[76] !== Ve ? (He = /* @__PURE__ */ L("div", {
|
|
7187
|
+
className: "px-4",
|
|
7188
|
+
children: /* @__PURE__ */ L(ae, {
|
|
7189
|
+
value: P,
|
|
7190
|
+
onChange: ie,
|
|
7191
|
+
className: "w-full",
|
|
7192
|
+
"aria-label": Ie,
|
|
7193
|
+
children: Ve
|
|
7194
|
+
})
|
|
7195
|
+
}), t[74] = P, t[75] = Ie, t[76] = Ve, t[77] = He) : He = t[77];
|
|
7196
|
+
let Ue;
|
|
7197
|
+
t[78] !== g || t[79] !== J.length ? (Ue = g("resultCount", { count: J.length }), t[78] = g, t[79] = J.length, t[80] = Ue) : Ue = t[80];
|
|
7198
|
+
let We;
|
|
7199
|
+
t[81] === Ue ? We = t[82] : (We = /* @__PURE__ */ L("div", {
|
|
7200
|
+
"aria-live": "polite",
|
|
7201
|
+
className: "sr-only",
|
|
7202
|
+
children: Ue
|
|
7203
|
+
}), t[81] = Ue, t[82] = We);
|
|
7204
|
+
let Ge;
|
|
7205
|
+
t[83] === Symbol.for("react.memo_cache_sentinel") ? (Ge = {
|
|
7206
|
+
maxHeight: "60vh",
|
|
7207
|
+
overflowY: "auto"
|
|
7208
|
+
}, t[83] = Ge) : Ge = t[83];
|
|
7209
|
+
let Ke;
|
|
7210
|
+
t[84] !== he || t[85] !== ye || t[86] !== q || t[87] !== ue || t[88] !== de || t[89] !== fe || t[90] !== g || t[91] !== J.length ? (Ke = q && J.length === 0 ? /* @__PURE__ */ R("div", {
|
|
7211
|
+
className: "flex flex-col items-center gap-3 py-10",
|
|
7212
|
+
"data-cy": "user-picker-error",
|
|
7213
|
+
children: [/* @__PURE__ */ L("p", {
|
|
7214
|
+
className: "text-sm text-muted",
|
|
7215
|
+
children: g("loadError")
|
|
7216
|
+
}), /* @__PURE__ */ L(h, {
|
|
7217
|
+
variant: "secondary",
|
|
7218
|
+
size: "sm",
|
|
7219
|
+
isPending: ue,
|
|
7220
|
+
onPress: () => fe(),
|
|
7221
|
+
children: g("retry")
|
|
7222
|
+
})]
|
|
7223
|
+
}) : he.length === 0 && !de ? /* @__PURE__ */ L("div", {
|
|
7224
|
+
className: "py-10 text-center text-sm text-muted",
|
|
7225
|
+
children: g("empty")
|
|
7226
|
+
}) : /* @__PURE__ */ L(b, {
|
|
7227
|
+
"aria-label": g("usersListLabel"),
|
|
7228
|
+
selectionMode: "none",
|
|
7229
|
+
children: he.map((e) => /* @__PURE__ */ R(S, {
|
|
7230
|
+
id: e.letter,
|
|
7231
|
+
children: [/* @__PURE__ */ L(_, {
|
|
7232
|
+
className: "sticky top-0 z-10 bg-surface-secondary px-2 py-1 text-xs font-semibold text-muted",
|
|
7233
|
+
children: e.letter
|
|
7234
|
+
}), e.users.map((e) => /* @__PURE__ */ L(x, {
|
|
7235
|
+
id: String(e.id),
|
|
7236
|
+
textValue: e.username,
|
|
7237
|
+
onAction: () => ye(e),
|
|
7238
|
+
"data-cy": `user-picker-item-${e.id}`,
|
|
7239
|
+
children: /* @__PURE__ */ L(Vr, {
|
|
7240
|
+
user: e,
|
|
7241
|
+
interactive: !1
|
|
7242
|
+
})
|
|
7243
|
+
}, e.id))]
|
|
7244
|
+
}, e.letter))
|
|
7245
|
+
}), t[84] = he, t[85] = ye, t[86] = q, t[87] = ue, t[88] = de, t[89] = fe, t[90] = g, t[91] = J.length, t[92] = Ke) : Ke = t[92];
|
|
7246
|
+
let qe;
|
|
7247
|
+
t[93] === q ? qe = t[94] : (qe = q ? null : /* @__PURE__ */ L("div", { ref: Ce }), t[93] = q, t[94] = qe);
|
|
7248
|
+
let Je;
|
|
7249
|
+
t[95] !== ce || t[96] !== q || t[97] !== K || t[98] !== g || t[99] !== J.length ? (Je = q && J.length > 0 ? /* @__PURE__ */ R("div", {
|
|
7250
|
+
className: "flex items-center justify-center gap-3 py-3",
|
|
7251
|
+
"data-cy": "user-picker-load-more-error",
|
|
7252
|
+
children: [/* @__PURE__ */ L("p", {
|
|
7253
|
+
className: "text-sm text-muted",
|
|
7254
|
+
children: g("loadError")
|
|
7255
|
+
}), /* @__PURE__ */ L(h, {
|
|
7256
|
+
variant: "secondary",
|
|
7257
|
+
size: "sm",
|
|
7258
|
+
isPending: K,
|
|
7259
|
+
onPress: () => ce(),
|
|
7260
|
+
children: g("retry")
|
|
7261
|
+
})]
|
|
7262
|
+
}) : null, t[95] = ce, t[96] = q, t[97] = K, t[98] = g, t[99] = J.length, t[100] = Je) : Je = t[100];
|
|
7263
|
+
let Ye;
|
|
7264
|
+
t[101] === K ? Ye = t[102] : (Ye = K ? /* @__PURE__ */ L("div", {
|
|
7265
|
+
className: "flex justify-center py-3",
|
|
7266
|
+
children: /* @__PURE__ */ L(te, { size: "sm" })
|
|
7267
|
+
}) : null, t[101] = K, t[102] = Ye);
|
|
7268
|
+
let Xe;
|
|
7269
|
+
t[103] !== Ke || t[104] !== qe || t[105] !== Je || t[106] !== Ye ? (Xe = /* @__PURE__ */ R("div", {
|
|
7270
|
+
ref: Se,
|
|
7271
|
+
className: "mt-2",
|
|
7272
|
+
style: Ge,
|
|
7273
|
+
"data-cy": "user-picker-list",
|
|
7274
|
+
children: [
|
|
7275
|
+
Ke,
|
|
7276
|
+
qe,
|
|
7277
|
+
Je,
|
|
7278
|
+
Ye
|
|
7279
|
+
]
|
|
7280
|
+
}), t[103] = Ke, t[104] = qe, t[105] = Je, t[106] = Ye, t[107] = Xe) : Xe = t[107];
|
|
7281
|
+
let Ze;
|
|
7282
|
+
t[108] !== He || t[109] !== We || t[110] !== Xe ? (Ze = /* @__PURE__ */ R(T, {
|
|
7283
|
+
className: "px-0 pb-0",
|
|
7284
|
+
children: [
|
|
7285
|
+
He,
|
|
7286
|
+
We,
|
|
7287
|
+
Xe
|
|
7288
|
+
]
|
|
7289
|
+
}), t[108] = He, t[109] = We, t[110] = Xe, t[111] = Ze) : Ze = t[111];
|
|
7290
|
+
let Qe;
|
|
7291
|
+
t[112] !== Ne || t[113] !== Fe || t[114] !== Ze ? (Qe = /* @__PURE__ */ L(w, { children: /* @__PURE__ */ L(E, {
|
|
7292
|
+
size: "md",
|
|
7293
|
+
children: /* @__PURE__ */ R(D, {
|
|
7294
|
+
className: "bg-surface-secondary",
|
|
7295
|
+
style: Mo,
|
|
7296
|
+
"aria-label": Ne,
|
|
7297
|
+
children: [Fe, Ze]
|
|
7298
|
+
})
|
|
7299
|
+
}) }), t[112] = Ne, t[113] = Fe, t[114] = Ze, t[115] = Qe) : Qe = t[115];
|
|
7300
|
+
let $e;
|
|
7301
|
+
t[116] !== xe || t[117] !== A || t[118] !== Qe ? ($e = /* @__PURE__ */ L(C, {
|
|
7302
|
+
isOpen: A,
|
|
7303
|
+
onOpenChange: xe,
|
|
7304
|
+
children: Qe
|
|
7305
|
+
}), t[116] = xe, t[117] = A, t[118] = Qe, t[119] = $e) : $e = t[119];
|
|
7306
|
+
let et;
|
|
7307
|
+
return t[120] !== Ae || t[121] !== Me || t[122] !== $e || t[123] !== f ? (et = /* @__PURE__ */ R("div", {
|
|
7308
|
+
...f,
|
|
7309
|
+
children: [
|
|
7310
|
+
Ae,
|
|
7311
|
+
Me,
|
|
7312
|
+
$e
|
|
7313
|
+
]
|
|
7314
|
+
}), t[120] = Ae, t[121] = Me, t[122] = $e, t[123] = f, t[124] = et) : et = t[124], et;
|
|
7352
7315
|
}
|
|
7353
|
-
|
|
7316
|
+
function Po(e) {
|
|
7317
|
+
return e.nextPage;
|
|
7318
|
+
}
|
|
7319
|
+
var Fo = {
|
|
7354
7320
|
search: {
|
|
7355
7321
|
label: "Ressourcen suchen",
|
|
7356
7322
|
placeholder: "Tippe um zu suchen"
|
|
@@ -7360,7 +7326,7 @@ var Ho = {
|
|
|
7360
7326
|
columns: { name: { header: "Name" } }
|
|
7361
7327
|
},
|
|
7362
7328
|
list: { label: "Zugewiesen an" }
|
|
7363
|
-
},
|
|
7329
|
+
}, Io = {
|
|
7364
7330
|
search: {
|
|
7365
7331
|
label: "Search resources",
|
|
7366
7332
|
placeholder: "Type to search"
|
|
@@ -7370,80 +7336,138 @@ var Ho = {
|
|
|
7370
7336
|
columns: { name: { header: "Name" } }
|
|
7371
7337
|
},
|
|
7372
7338
|
list: { label: "Assigned to" }
|
|
7373
|
-
},
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7339
|
+
}, Lo = (e) => {
|
|
7340
|
+
let t = (0, Z.c)(2), { children: n } = e, r;
|
|
7341
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ L("div", {
|
|
7342
|
+
className: "border-small px-1 py-2 rounded-small border-default-200 dark:border-default-100",
|
|
7343
|
+
children: n
|
|
7344
|
+
}), t[0] = n, t[1] = r), r;
|
|
7345
|
+
};
|
|
7346
|
+
function Ro(e) {
|
|
7347
|
+
let t = (0, Z.c)(58), { selection: n, onSelectionChange: r, multiple: i, listClassName: a } = e, o = i === void 0 || i, s = a === void 0 ? "" : a, [c, l] = d(""), u;
|
|
7348
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
7349
|
+
de: Fo,
|
|
7350
|
+
en: Io
|
|
7351
|
+
}, t[0] = u) : u = t[0];
|
|
7352
|
+
let { t: f } = Wn(u), p;
|
|
7353
|
+
t[1] === c ? p = t[2] : (p = {
|
|
7382
7354
|
limit: 15,
|
|
7383
7355
|
page: 1,
|
|
7384
|
-
search:
|
|
7385
|
-
});
|
|
7386
|
-
|
|
7356
|
+
search: c
|
|
7357
|
+
}, t[1] = c, t[2] = p);
|
|
7358
|
+
let { data: m, isLoading: h } = oe(p), _;
|
|
7359
|
+
t[3] === f ? _ = t[4] : (_ = f("search.label"), t[3] = f, t[4] = _);
|
|
7360
|
+
let b;
|
|
7361
|
+
t[5] === _ ? b = t[6] : (b = /* @__PURE__ */ L(y, { children: _ }), t[5] = _, t[6] = b);
|
|
7362
|
+
let x;
|
|
7363
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ L(v.Prefix, { children: /* @__PURE__ */ L(Mr, { className: "size-4 text-muted" }) }), t[7] = x) : x = t[7];
|
|
7364
|
+
let S;
|
|
7365
|
+
t[8] === f ? S = t[9] : (S = f("search.placeholder"), t[8] = f, t[9] = S);
|
|
7366
|
+
let C;
|
|
7367
|
+
t[10] === S ? C = t[11] : (C = /* @__PURE__ */ L(v.Input, { placeholder: S }), t[10] = S, t[11] = C);
|
|
7368
|
+
let w;
|
|
7369
|
+
t[12] === h ? w = t[13] : (w = h ? /* @__PURE__ */ L(v.Suffix, { children: /* @__PURE__ */ L(te, { size: "sm" }) }) : null, t[12] = h, t[13] = w);
|
|
7370
|
+
let T;
|
|
7371
|
+
t[14] !== C || t[15] !== w ? (T = /* @__PURE__ */ R(v, { children: [
|
|
7372
|
+
x,
|
|
7373
|
+
C,
|
|
7374
|
+
w
|
|
7375
|
+
] }), t[14] = C, t[15] = w, t[16] = T) : T = t[16];
|
|
7376
|
+
let E;
|
|
7377
|
+
t[17] !== c || t[18] !== T || t[19] !== b ? (E = /* @__PURE__ */ R(ae, {
|
|
7378
|
+
value: c,
|
|
7379
|
+
onChange: l,
|
|
7380
|
+
className: "w-full",
|
|
7381
|
+
children: [b, T]
|
|
7382
|
+
}), t[17] = c, t[18] = T, t[19] = b, t[20] = E) : E = t[20];
|
|
7383
|
+
let D;
|
|
7384
|
+
t[21] === f ? D = t[22] : (D = f("table.ariaLabel"), t[21] = f, t[22] = D);
|
|
7385
|
+
let O;
|
|
7386
|
+
t[23] === Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
7387
|
+
maxHeight: 387,
|
|
7388
|
+
overflowY: "auto"
|
|
7389
|
+
}, t[23] = O) : O = t[23];
|
|
7390
|
+
let ee = o ? "multiple" : "single", k;
|
|
7391
|
+
t[24] === n ? k = t[25] : (k = new Set(n.map(String)), t[24] = n, t[25] = k);
|
|
7392
|
+
let A;
|
|
7393
|
+
t[26] !== r || t[27] !== m?.data ? (A = (e) => {
|
|
7394
|
+
if (e === "all") {
|
|
7395
|
+
r((m?.data ?? []).map(Vo));
|
|
7396
|
+
return;
|
|
7397
|
+
}
|
|
7398
|
+
r(Array.from(e).map(Bo));
|
|
7399
|
+
}, t[26] = r, t[27] = m?.data, t[28] = A) : A = t[28];
|
|
7400
|
+
let P;
|
|
7401
|
+
t[29] !== o || t[30] !== f ? (P = o ? /* @__PURE__ */ L(g, {
|
|
7402
|
+
"aria-label": f("table.ariaLabel"),
|
|
7403
|
+
slot: "selection",
|
|
7404
|
+
children: /* @__PURE__ */ L(g.Control, { children: /* @__PURE__ */ L(g.Indicator, {}) })
|
|
7405
|
+
}) : null, t[29] = o, t[30] = f, t[31] = P) : P = t[31];
|
|
7406
|
+
let F;
|
|
7407
|
+
t[32] === P ? F = t[33] : (F = /* @__PURE__ */ L(j, {
|
|
7408
|
+
className: "pr-0 w-0",
|
|
7409
|
+
children: P
|
|
7410
|
+
}), t[32] = P, t[33] = F);
|
|
7411
|
+
let I;
|
|
7412
|
+
t[34] === f ? I = t[35] : (I = f("table.columns.name.header"), t[34] = f, t[35] = I);
|
|
7413
|
+
let z;
|
|
7414
|
+
t[36] === I ? z = t[37] : (z = /* @__PURE__ */ L(j, {
|
|
7415
|
+
className: "w-full",
|
|
7416
|
+
isRowHeader: !0,
|
|
7417
|
+
children: I
|
|
7418
|
+
}), t[36] = I, t[37] = z);
|
|
7419
|
+
let B;
|
|
7420
|
+
t[38] !== F || t[39] !== z ? (B = /* @__PURE__ */ R(N, { children: [F, z] }), t[38] = F, t[39] = z, t[40] = B) : B = t[40];
|
|
7421
|
+
let V;
|
|
7422
|
+
t[41] === m?.data ? V = t[42] : (V = m?.data ?? [], t[41] = m?.data, t[42] = V);
|
|
7423
|
+
let H;
|
|
7424
|
+
t[43] === V ? H = t[44] : (H = /* @__PURE__ */ L(ne, {
|
|
7425
|
+
items: V,
|
|
7426
|
+
children: zo
|
|
7427
|
+
}), t[43] = V, t[44] = H);
|
|
7428
|
+
let U;
|
|
7429
|
+
t[45] !== ee || t[46] !== k || t[47] !== A || t[48] !== B || t[49] !== H ? (U = /* @__PURE__ */ L(ie, { children: /* @__PURE__ */ R(M, {
|
|
7430
|
+
selectionMode: ee,
|
|
7431
|
+
selectedKeys: k,
|
|
7432
|
+
onSelectionChange: A,
|
|
7433
|
+
children: [B, H]
|
|
7434
|
+
}) }), t[45] = ee, t[46] = k, t[47] = A, t[48] = B, t[49] = H, t[50] = U) : U = t[50];
|
|
7435
|
+
let W;
|
|
7436
|
+
t[51] !== s || t[52] !== D || t[53] !== U ? (W = /* @__PURE__ */ L(re, {
|
|
7437
|
+
"aria-label": D,
|
|
7438
|
+
className: s,
|
|
7439
|
+
style: O,
|
|
7440
|
+
children: U
|
|
7441
|
+
}), t[51] = s, t[52] = D, t[53] = U, t[54] = W) : W = t[54];
|
|
7442
|
+
let se;
|
|
7443
|
+
return t[55] !== E || t[56] !== W ? (se = /* @__PURE__ */ R("div", {
|
|
7387
7444
|
className: "flex flex-col gap-2",
|
|
7388
|
-
children: [
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
return;
|
|
7411
|
-
}
|
|
7412
|
-
n(Array.from(e).map((e) => Number(e)));
|
|
7413
|
-
},
|
|
7414
|
-
children: [/* @__PURE__ */ A(se, { children: [/* @__PURE__ */ k(D, {
|
|
7415
|
-
className: "pr-0 w-0",
|
|
7416
|
-
children: r ? /* @__PURE__ */ k(g, {
|
|
7417
|
-
"aria-label": s("table.ariaLabel"),
|
|
7418
|
-
slot: "selection",
|
|
7419
|
-
children: /* @__PURE__ */ k(g.Control, { children: /* @__PURE__ */ k(g.Indicator, {}) })
|
|
7420
|
-
}) : null
|
|
7421
|
-
}), /* @__PURE__ */ k(D, {
|
|
7422
|
-
className: "w-full",
|
|
7423
|
-
isRowHeader: !0,
|
|
7424
|
-
children: s("table.columns.name.header")
|
|
7425
|
-
})] }), /* @__PURE__ */ k(T, {
|
|
7426
|
-
items: c?.data ?? [],
|
|
7427
|
-
children: (e) => /* @__PURE__ */ A(le, {
|
|
7428
|
-
id: String(e.id),
|
|
7429
|
-
children: [/* @__PURE__ */ k(E, {
|
|
7430
|
-
className: "pr-0",
|
|
7431
|
-
children: /* @__PURE__ */ k(g, {
|
|
7432
|
-
"aria-label": e.name,
|
|
7433
|
-
slot: "selection",
|
|
7434
|
-
variant: "secondary",
|
|
7435
|
-
children: /* @__PURE__ */ k(g.Control, { children: /* @__PURE__ */ k(g.Indicator, {}) })
|
|
7436
|
-
})
|
|
7437
|
-
}), /* @__PURE__ */ k(E, { children: e.name })]
|
|
7438
|
-
}, e.id)
|
|
7439
|
-
})]
|
|
7440
|
-
}) })
|
|
7441
|
-
})]
|
|
7442
|
-
});
|
|
7445
|
+
children: [E, W]
|
|
7446
|
+
}), t[55] = E, t[56] = W, t[57] = se) : se = t[57], se;
|
|
7447
|
+
}
|
|
7448
|
+
function zo(e) {
|
|
7449
|
+
return /* @__PURE__ */ R(P, {
|
|
7450
|
+
id: String(e.id),
|
|
7451
|
+
children: [/* @__PURE__ */ L(A, {
|
|
7452
|
+
className: "pr-0",
|
|
7453
|
+
children: /* @__PURE__ */ L(g, {
|
|
7454
|
+
"aria-label": e.name,
|
|
7455
|
+
slot: "selection",
|
|
7456
|
+
variant: "secondary",
|
|
7457
|
+
children: /* @__PURE__ */ L(g.Control, { children: /* @__PURE__ */ L(g.Indicator, {}) })
|
|
7458
|
+
})
|
|
7459
|
+
}), /* @__PURE__ */ L(A, { children: e.name })]
|
|
7460
|
+
}, e.id);
|
|
7461
|
+
}
|
|
7462
|
+
function Bo(e) {
|
|
7463
|
+
return Number(e);
|
|
7464
|
+
}
|
|
7465
|
+
function Vo(e) {
|
|
7466
|
+
return e.id;
|
|
7443
7467
|
}
|
|
7444
7468
|
//#endregion
|
|
7445
7469
|
//#region src/lib/components/Trans/index.tsx
|
|
7446
|
-
function
|
|
7470
|
+
function Ho(e) {
|
|
7447
7471
|
let t = { children: [] }, n = [], r = /<\/?([a-zA-Z0-9_]+)\s*\/?\s*>/g, i = 0, a = () => n.length === 0 ? t.children : n[n.length - 1].children, o;
|
|
7448
7472
|
for (; (o = r.exec(e)) !== null;) {
|
|
7449
7473
|
let s = o[0], c = o[1], l = s.startsWith("</"), u = /\/>\s*$/.test(s) || !l && s.endsWith("/>");
|
|
@@ -7501,7 +7525,7 @@ function Ko(e) {
|
|
|
7501
7525
|
}
|
|
7502
7526
|
return t.children;
|
|
7503
7527
|
}
|
|
7504
|
-
function
|
|
7528
|
+
function Uo(e, n, r = "k") {
|
|
7505
7529
|
let i = [];
|
|
7506
7530
|
return e.forEach((e, a) => {
|
|
7507
7531
|
let o = `${r}-${a}`;
|
|
@@ -7513,21 +7537,21 @@ function qo(e, n, r = "k") {
|
|
|
7513
7537
|
if (t.isValidElement(s)) {
|
|
7514
7538
|
if (e.selfClosing) i.push(t.cloneElement(s, { key: o }));
|
|
7515
7539
|
else {
|
|
7516
|
-
let r =
|
|
7540
|
+
let r = Uo(e.children, n, o);
|
|
7517
7541
|
i.push(t.cloneElement(s, { key: o }, r));
|
|
7518
7542
|
}
|
|
7519
7543
|
return;
|
|
7520
7544
|
}
|
|
7521
|
-
e.selfClosing || i.push(...
|
|
7545
|
+
e.selfClosing || i.push(...Uo(e.children, n, o));
|
|
7522
7546
|
}), i;
|
|
7523
7547
|
}
|
|
7524
|
-
function
|
|
7525
|
-
let { i18nKey:
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
return l(
|
|
7548
|
+
function Wo(e) {
|
|
7549
|
+
let t = (0, Z.c)(9), { i18nKey: n, values: r, components: i, t: a } = e, o;
|
|
7550
|
+
t[0] !== n || t[1] !== a || t[2] !== r ? (o = a(n, r), t[0] = n, t[1] = a, t[2] = r, t[3] = o) : o = t[3];
|
|
7551
|
+
let s = o, c;
|
|
7552
|
+
t[4] === s ? c = t[5] : (c = Ho(s), t[4] = s, t[5] = c);
|
|
7553
|
+
let l = c, u;
|
|
7554
|
+
return t[6] !== i || t[7] !== l ? (u = Uo(l, i), t[6] = i, t[7] = l, t[8] = u) : u = t[8], u;
|
|
7531
7555
|
}
|
|
7532
7556
|
//#endregion
|
|
7533
|
-
export { Vr as AttraccessUser, Lr as AttraccessUserActionsProvider,
|
|
7557
|
+
export { Vr as AttraccessUser, Lr as AttraccessUserActionsProvider, To as DateTimeDisplay, Eo as DurationDisplay, Bn as I18N_LANGUAGE_STORAGE_KEY, Wo as I18nTransComponent, Lo as ListboxWrapper, Ro as ResourceSelector, No as UserSearch, Kn as detectAndSetLanguage, Rr as useAttraccessUserActions, Ur as useDateTimeFormatter, Hr as useDebounce, Wr as useFormatDateTime, wo as useFormatNumber, Gr as useFormatedDuration, Co as useNumberFormatter, Vn as useTranslationState, Wn as useTranslations, So as useUrlQuery };
|