@aiquants/directory-tree 6.1.1 → 6.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.cjs +1 -6
  2. package/dist/index.js +1448 -1302
  3. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,336 +1,482 @@
1
- import * as fe from "react";
2
- import mr, { useRef as G, useEffect as $e, useCallback as _, memo as Ft, useState as ge, useMemo as M, useSyncExternalStore as pr, useLayoutEffect as Rn, useImperativeHandle as yr, useTransition as gr } from "react";
3
- import { VIRTUAL_SCROLL_LABEL_KEYS as mt, VIRTUAL_SCROLL_LABEL_CATALOGS as In, resolveVirtualScrollLocale as Mn, resolveVirtualScrollLabels as br, VirtualScroll as vr, ScrollBar as Sr } from "@aiquants/virtualscroll";
4
- import { twMerge as U } from "tailwind-merge";
5
- import { FileIcon as wr, FileText as Er, FileCode as xr, FileZip as Rr, FileVideo as Ir, FileAudio as kr, FileImage as Nr, FilePpt as Tr, FileDoc as Pr, FileCsv as _r, FileXls as Cr, FilePdf as Or, FileMd as jr } from "@phosphor-icons/react";
6
- var ht = { exports: {} }, qe = {};
7
- var kn;
8
- function Ar() {
9
- if (kn) return qe;
10
- kn = 1;
11
- var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
12
- function n(r, a, i) {
13
- var l = null;
14
- if (i !== void 0 && (l = "" + i), a.key !== void 0 && (l = "" + a.key), "key" in a) {
15
- i = {};
16
- for (var d in a)
17
- d !== "key" && (i[d] = a[d]);
18
- } else i = a;
19
- return a = i.ref, {
20
- $$typeof: e,
21
- type: r,
22
- key: l,
23
- ref: a !== void 0 ? a : null,
24
- props: i
25
- };
26
- }
27
- return qe.Fragment = t, qe.jsx = n, qe.jsxs = n, qe;
28
- }
29
- var Qe = {};
30
- var Nn;
31
- function Lr() {
32
- return Nn || (Nn = 1, process.env.NODE_ENV !== "production" && (function() {
33
- function e(o) {
34
- if (o == null) return null;
35
- if (typeof o == "function")
36
- return o.$$typeof === z ? null : o.displayName || o.name || null;
37
- if (typeof o == "string") return o;
38
- switch (o) {
39
- case w:
40
- return "Fragment";
41
- case F:
42
- return "Profiler";
43
- case v:
44
- return "StrictMode";
45
- case D:
46
- return "Suspense";
47
- case $:
48
- return "SuspenseList";
49
- case J:
50
- return "Activity";
51
- }
52
- if (typeof o == "object")
53
- switch (typeof o.tag == "number" && console.error(
54
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
55
- ), o.$$typeof) {
56
- case p:
57
- return "Portal";
58
- case C:
59
- return o.displayName || "Context";
60
- case P:
61
- return (o._context.displayName || "Context") + ".Consumer";
62
- case g:
63
- var u = o.render;
64
- return o = o.displayName, o || (o = u.displayName || u.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
65
- case O:
66
- return u = o.displayName || null, u !== null ? u : e(o.type) || "Memo";
67
- case Q:
68
- u = o._payload, o = o._init;
69
- try {
70
- return e(o(u));
71
- } catch {
72
- }
73
- }
74
- return null;
75
- }
76
- function t(o) {
77
- return "" + o;
78
- }
79
- function n(o) {
80
- try {
81
- t(o);
82
- var u = !1;
83
- } catch {
84
- u = !0;
85
- }
86
- if (u) {
87
- u = console;
88
- var I = u.error, E = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
89
- return I.call(
90
- u,
91
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
92
- E
93
- ), t(o);
94
- }
95
- }
96
- function r(o) {
97
- if (o === w) return "<>";
98
- if (typeof o == "object" && o !== null && o.$$typeof === Q)
99
- return "<...>";
100
- try {
101
- var u = e(o);
102
- return u ? "<" + u + ">" : "<...>";
103
- } catch {
104
- return "<...>";
105
- }
106
- }
107
- function a() {
108
- var o = Y.A;
109
- return o === null ? null : o.getOwner();
110
- }
111
- function i() {
112
- return Error("react-stack-top-frame");
113
- }
114
- function l(o) {
115
- if (he.call(o, "key")) {
116
- var u = Object.getOwnPropertyDescriptor(o, "key").get;
117
- if (u && u.isReactWarning) return !1;
118
- }
119
- return o.key !== void 0;
120
- }
121
- function d(o, u) {
122
- function I() {
123
- me || (me = !0, console.error(
124
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
125
- u
126
- ));
127
- }
128
- I.isReactWarning = !0, Object.defineProperty(o, "key", {
129
- get: I,
130
- configurable: !0
131
- });
132
- }
133
- function h() {
134
- var o = e(this.type);
135
- return V[o] || (V[o] = !0, console.error(
136
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
137
- )), o = this.props.ref, o !== void 0 ? o : null;
138
- }
139
- function b(o, u, I, E, ve, k) {
140
- var j = I.ref;
141
- return o = {
142
- $$typeof: y,
143
- type: o,
144
- key: u,
145
- props: I,
146
- _owner: E
147
- }, (j !== void 0 ? j : null) !== null ? Object.defineProperty(o, "ref", {
148
- enumerable: !1,
149
- get: h
150
- }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
151
- configurable: !1,
152
- enumerable: !1,
153
- writable: !0,
154
- value: 0
155
- }), Object.defineProperty(o, "_debugInfo", {
156
- configurable: !1,
157
- enumerable: !1,
158
- writable: !0,
159
- value: null
160
- }), Object.defineProperty(o, "_debugStack", {
161
- configurable: !1,
162
- enumerable: !1,
163
- writable: !0,
164
- value: ve
165
- }), Object.defineProperty(o, "_debugTask", {
166
- configurable: !1,
167
- enumerable: !1,
168
- writable: !0,
169
- value: k
170
- }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
171
- }
172
- function N(o, u, I, E, ve, k) {
173
- var j = u.children;
174
- if (j !== void 0)
175
- if (E)
176
- if (W(j)) {
177
- for (E = 0; E < j.length; E++)
178
- x(j[E]);
179
- Object.freeze && Object.freeze(j);
180
- } else
181
- console.error(
182
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
183
- );
184
- else x(j);
185
- if (he.call(u, "key")) {
186
- j = e(o);
187
- var ee = Object.keys(u).filter(function(Ne) {
188
- return Ne !== "key";
189
- });
190
- E = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", be[j + E] || (ee = 0 < ee.length ? "{" + ee.join(": ..., ") + ": ...}" : "{}", console.error(
191
- `A props object containing a "key" prop is being spread into JSX:
192
- let props = %s;
193
- <%s {...props} />
194
- React keys must be passed directly to JSX without using spread:
195
- let props = %s;
196
- <%s key={someKey} {...props} />`,
197
- E,
198
- j,
199
- ee,
200
- j
201
- ), be[j + E] = !0);
202
- }
203
- if (j = null, I !== void 0 && (n(I), j = "" + I), l(u) && (n(u.key), j = "" + u.key), "key" in u) {
204
- I = {};
205
- for (var pe in u)
206
- pe !== "key" && (I[pe] = u[pe]);
207
- } else I = u;
208
- return j && d(
209
- I,
210
- typeof o == "function" ? o.displayName || o.name || "Unknown" : o
211
- ), b(
212
- o,
213
- j,
214
- I,
215
- a(),
216
- ve,
217
- k
218
- );
219
- }
220
- function x(o) {
221
- T(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === Q && (o._payload.status === "fulfilled" ? T(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
222
- }
223
- function T(o) {
224
- return typeof o == "object" && o !== null && o.$$typeof === y;
225
- }
226
- var m = mr, y = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), w = /* @__PURE__ */ Symbol.for("react.fragment"), v = /* @__PURE__ */ Symbol.for("react.strict_mode"), F = /* @__PURE__ */ Symbol.for("react.profiler"), P = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), g = /* @__PURE__ */ Symbol.for("react.forward_ref"), D = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), O = /* @__PURE__ */ Symbol.for("react.memo"), Q = /* @__PURE__ */ Symbol.for("react.lazy"), J = /* @__PURE__ */ Symbol.for("react.activity"), z = /* @__PURE__ */ Symbol.for("react.client.reference"), Y = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, he = Object.prototype.hasOwnProperty, W = Array.isArray, oe = console.createTask ? console.createTask : function() {
227
- return null;
228
- };
229
- m = {
230
- react_stack_bottom_frame: function(o) {
231
- return o();
232
- }
233
- };
234
- var me, V = {}, X = m.react_stack_bottom_frame.bind(
235
- m,
236
- i
237
- )(), Ee = oe(r(i)), be = {};
238
- Qe.Fragment = w, Qe.jsx = function(o, u, I) {
239
- var E = 1e4 > Y.recentlyCreatedOwnerStacks++;
240
- return N(
241
- o,
242
- u,
243
- I,
244
- !1,
245
- E ? Error("react-stack-top-frame") : X,
246
- E ? oe(r(o)) : Ee
247
- );
248
- }, Qe.jsxs = function(o, u, I) {
249
- var E = 1e4 > Y.recentlyCreatedOwnerStacks++;
250
- return N(
251
- o,
252
- u,
253
- I,
254
- !0,
255
- E ? Error("react-stack-top-frame") : X,
256
- E ? oe(r(o)) : Ee
257
- );
258
- };
259
- })()), Qe;
260
- }
261
- var Tn;
262
- function Dr() {
263
- return Tn || (Tn = 1, process.env.NODE_ENV === "production" ? ht.exports = Ar() : ht.exports = Lr()), ht.exports;
264
- }
265
- var f = Dr();
266
- function $r({
1
+ import { jsx as m, jsxs as b0, Fragment as y2 } from "react/jsx-runtime";
2
+ import { VIRTUAL_SCROLL_LABEL_KEYS as m1, VIRTUAL_SCROLL_LABEL_CATALOGS as ye, resolveVirtualScrollLocale as Re, resolveVirtualScrollLabels as M2, VirtualScroll as E2, ScrollBar as w2 } from "@aiquants/virtualscroll";
3
+ import * as t from "react";
4
+ import { createContext as b2, useRef as _, useEffect as k0, useCallback as b, memo as T1, useState as h0, useMemo as F, useSyncExternalStore as S2, useLayoutEffect as Me, useImperativeHandle as L2, useTransition as I2 } from "react";
5
+ import { twMerge as W } from "tailwind-merge";
6
+ function C2({
267
7
  title: e,
268
- titleId: t,
8
+ titleId: a,
269
9
  ...n
270
10
  }, r) {
271
- return /* @__PURE__ */ fe.createElement("svg", Object.assign({
11
+ return /* @__PURE__ */ t.createElement("svg", Object.assign({
272
12
  xmlns: "http://www.w3.org/2000/svg",
273
13
  viewBox: "0 0 24 24",
274
14
  fill: "currentColor",
275
15
  "aria-hidden": "true",
276
16
  "data-slot": "icon",
277
17
  ref: r,
278
- "aria-labelledby": t
279
- }, n), e ? /* @__PURE__ */ fe.createElement("title", {
280
- id: t
281
- }, e) : null, /* @__PURE__ */ fe.createElement("path", {
18
+ "aria-labelledby": a
19
+ }, n), e ? /* @__PURE__ */ t.createElement("title", {
20
+ id: a
21
+ }, e) : null, /* @__PURE__ */ t.createElement("path", {
282
22
  fillRule: "evenodd",
283
23
  d: "M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",
284
24
  clipRule: "evenodd"
285
25
  }));
286
26
  }
287
- const Fr = /* @__PURE__ */ fe.forwardRef($r);
288
- function Mr({
27
+ const x2 = /* @__PURE__ */ t.forwardRef(C2);
28
+ function F2({
289
29
  title: e,
290
- titleId: t,
30
+ titleId: a,
291
31
  ...n
292
32
  }, r) {
293
- return /* @__PURE__ */ fe.createElement("svg", Object.assign({
33
+ return /* @__PURE__ */ t.createElement("svg", Object.assign({
294
34
  xmlns: "http://www.w3.org/2000/svg",
295
35
  viewBox: "0 0 24 24",
296
36
  fill: "currentColor",
297
37
  "aria-hidden": "true",
298
38
  "data-slot": "icon",
299
39
  ref: r,
300
- "aria-labelledby": t
301
- }, n), e ? /* @__PURE__ */ fe.createElement("title", {
302
- id: t
303
- }, e) : null, /* @__PURE__ */ fe.createElement("path", {
40
+ "aria-labelledby": a
41
+ }, n), e ? /* @__PURE__ */ t.createElement("title", {
42
+ id: a
43
+ }, e) : null, /* @__PURE__ */ t.createElement("path", {
304
44
  fillRule: "evenodd",
305
45
  d: "M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",
306
46
  clipRule: "evenodd"
307
47
  }));
308
48
  }
309
- const zr = /* @__PURE__ */ fe.forwardRef(Mr);
310
- function Hr({
49
+ const N2 = /* @__PURE__ */ t.forwardRef(F2);
50
+ function R2({
311
51
  title: e,
312
- titleId: t,
52
+ titleId: a,
313
53
  ...n
314
54
  }, r) {
315
- return /* @__PURE__ */ fe.createElement("svg", Object.assign({
55
+ return /* @__PURE__ */ t.createElement("svg", Object.assign({
316
56
  xmlns: "http://www.w3.org/2000/svg",
317
57
  viewBox: "0 0 24 24",
318
58
  fill: "currentColor",
319
59
  "aria-hidden": "true",
320
60
  "data-slot": "icon",
321
61
  ref: r,
322
- "aria-labelledby": t
323
- }, n), e ? /* @__PURE__ */ fe.createElement("title", {
324
- id: t
325
- }, e) : null, /* @__PURE__ */ fe.createElement("path", {
62
+ "aria-labelledby": a
63
+ }, n), e ? /* @__PURE__ */ t.createElement("title", {
64
+ id: a
65
+ }, e) : null, /* @__PURE__ */ t.createElement("path", {
326
66
  d: "M19.5 21a3 3 0 0 0 3-3v-4.5a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3V18a3 3 0 0 0 3 3h15ZM1.5 10.146V6a3 3 0 0 1 3-3h5.379a2.25 2.25 0 0 1 1.59.659l2.122 2.121c.14.141.331.22.53.22H19.5a3 3 0 0 1 3 3v1.146A4.483 4.483 0 0 0 19.5 9h-15a4.483 4.483 0 0 0-3 1.146Z"
327
67
  }));
328
68
  }
329
- const Wr = /* @__PURE__ */ fe.forwardRef(Hr), Br = {
69
+ const k2 = /* @__PURE__ */ t.forwardRef(R2), P2 = b2({
70
+ color: "currentColor",
71
+ size: "1em",
72
+ weight: "regular",
73
+ mirrored: !1
74
+ }), a0 = t.forwardRef(
75
+ (e, a) => {
76
+ const {
77
+ alt: n,
78
+ color: r,
79
+ size: o,
80
+ weight: s,
81
+ mirrored: c,
82
+ children: d,
83
+ weights: h,
84
+ ...A
85
+ } = e, {
86
+ color: M = "currentColor",
87
+ size: Z,
88
+ weight: E = "regular",
89
+ mirrored: u = !1,
90
+ ...p
91
+ } = t.useContext(P2);
92
+ return /* @__PURE__ */ t.createElement(
93
+ "svg",
94
+ {
95
+ ref: a,
96
+ xmlns: "http://www.w3.org/2000/svg",
97
+ width: o ?? Z,
98
+ height: o ?? Z,
99
+ fill: r ?? M,
100
+ viewBox: "0 0 256 256",
101
+ transform: c || u ? "scale(-1, 1)" : void 0,
102
+ ...p,
103
+ ...A
104
+ },
105
+ !!n && /* @__PURE__ */ t.createElement("title", null, n),
106
+ d,
107
+ h.get(s ?? E)
108
+ );
109
+ }
110
+ );
111
+ a0.displayName = "IconBase";
112
+ const T2 = /* @__PURE__ */ new Map([
113
+ [
114
+ "bold",
115
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z" }))
116
+ ],
117
+ [
118
+ "duotone",
119
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z" }))
120
+ ],
121
+ [
122
+ "fill",
123
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z" }))
124
+ ],
125
+ [
126
+ "light",
127
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z" }))
128
+ ],
129
+ [
130
+ "regular",
131
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z" }))
132
+ ],
133
+ [
134
+ "thin",
135
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z" }))
136
+ ]
137
+ ]), ke = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: T2 }));
138
+ ke.displayName = "FileIcon";
139
+ const O2 = /* @__PURE__ */ new Map([
140
+ [
141
+ "bold",
142
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M96.59,124.91a12,12,0,0,0-13.08,2.6L63,148H44a12,12,0,0,0-12,12v40a12,12,0,0,0,12,12H63l20.48,20.48A12,12,0,0,0,104,224V136A12,12,0,0,0,96.59,124.91ZM80,195l-3.51-3.52A12,12,0,0,0,68,188H56V172H68a12,12,0,0,0,8.49-3.51L80,165Zm80-15a44.55,44.55,0,0,1-21.95,38.36A12,12,0,1,1,126,197.64a20.51,20.51,0,0,0,0-35.28,12,12,0,1,1,12.1-20.72A44.55,44.55,0,0,1,160,180ZM216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v72a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Z" }))
143
+ ],
144
+ [
145
+ "duotone",
146
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M72,160l24-24v88L72,200H48V160ZM152,32V88h56Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM88,204.69,77.66,194.34A8,8,0,0,0,72,192H56V168H72a8,8,0,0,0,5.66-2.34L88,155.31ZM152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180Zm61.66-97.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
147
+ ],
148
+ [
149
+ "fill",
150
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180ZM99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM216,88V216a16,16,0,0,1-16,16H168a8,8,0,0,1,0-16h32V96H152a8,8,0,0,1-8-8V40H56v80a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Z" }))
151
+ ],
152
+ [
153
+ "light",
154
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M98.3,130.46a6,6,0,0,0-6.54,1.3L69.51,154H48a6,6,0,0,0-6,6v40a6,6,0,0,0,6,6H69.51l22.25,22.24A6,6,0,0,0,102,224V136A6,6,0,0,0,98.3,130.46Zm-8.3,79L76.24,195.76A6,6,0,0,0,72,194H54V166H72a6,6,0,0,0,4.24-1.76L90,150.49ZM150,180a38.53,38.53,0,0,1-19,33.18A6,6,0,0,1,125,202.82a26.5,26.5,0,0,0,0-45.64A6,6,0,0,1,131,146.82,38.53,38.53,0,0,1,150,180Zm62.24-96.24-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v80a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H168a6,6,0,0,0,0,12h32a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Z" }))
155
+ ],
156
+ [
157
+ "regular",
158
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM88,204.69,77.66,194.34A8,8,0,0,0,72,192H56V168H72a8,8,0,0,0,5.66-2.34L88,155.31ZM152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180Zm61.66-97.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
159
+ ],
160
+ [
161
+ "thin",
162
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M97.53,132.3a4,4,0,0,0-4.36.87L70.34,156H48a4,4,0,0,0-4,4v40a4,4,0,0,0,4,4H70.34l22.83,22.83A4,4,0,0,0,100,224V136A4,4,0,0,0,97.53,132.3Zm-5.53,82L74.83,197.17A4,4,0,0,0,72,196H52V164H72a4,4,0,0,0,2.83-1.17L92,145.66ZM148,180a36.52,36.52,0,0,1-18,31.45,4,4,0,0,1-4-6.9,28.5,28.5,0,0,0,0-49.1,4,4,0,0,1,4-6.9A36.52,36.52,0,0,1,148,180Zm62.83-94.83-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v80a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H168a4,4,0,0,0,0,8h32a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156Z" }))
163
+ ]
164
+ ]), Pe = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: O2 }));
165
+ Pe.displayName = "FileAudioIcon";
166
+ const $2 = /* @__PURE__ */ new Map([
167
+ [
168
+ "bold",
169
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M180.49,143.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L155,152l-15.52-15.51a12,12,0,1,1,17-17Zm-64-24a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,0,0,17-17L101,152l15.52-15.51A12,12,0,0,0,116.49,119.51ZM220,88V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88ZM160,57V80h23Zm36,155V104H148a12,12,0,0,1-12-12V44H60V212Z" }))
170
+ ],
171
+ [
172
+ "duotone",
173
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z" }))
174
+ ],
175
+ [
176
+ "fill",
177
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34Zm-104,88a8,8,0,0,1-11.32,11.32l-24-24a8,8,0,0,1,0-11.32l24-24a8,8,0,0,1,11.32,11.32L91.31,152Zm72-12.68-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32l24,24A8,8,0,0,1,181.66,157.66ZM152,88V44l44,44Z" }))
178
+ ],
179
+ [
180
+ "light",
181
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M180.24,147.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L167.51,152l-19.75-19.76a6,6,0,1,1,8.48-8.48Zm-72-24a6,6,0,0,0-8.48,0l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,1,0,8.48-8.48L88.49,152l19.75-19.76A6,6,0,0,0,108.24,123.76ZM214,88V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-56-6h35.52L158,46.48Zm44,134V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200A2,2,0,0,0,202,216Z" }))
182
+ ],
183
+ [
184
+ "regular",
185
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z" }))
186
+ ],
187
+ [
188
+ "thin",
189
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M178.83,149.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L170.34,152l-21.17-21.17a4,4,0,1,1,5.66-5.66Zm-72-24a4,4,0,0,0-5.66,0l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L85.66,152l21.17-21.17A4,4,0,0,0,106.83,125.17ZM212,88V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-56-4h42.34L156,41.65Zm48,132V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200A4,4,0,0,0,204,216Z" }))
190
+ ]
191
+ ]), Te = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: $2 }));
192
+ Te.displayName = "FileCodeIcon";
193
+ const D2 = /* @__PURE__ */ new Map([
194
+ [
195
+ "bold",
196
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M48,180c0,8.67,5.49,16,12,16a10.27,10.27,0,0,0,7.33-3.43,12,12,0,1,1,17.34,16.6A34,34,0,0,1,60,220C40.15,220,24,202,24,180s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,1,1-17.34,16.6A10.27,10.27,0,0,0,60,164C53.49,164,48,171.31,48,180Zm97.51-5.71c-5.13-3.45-11.33-5.24-16.8-6.82a79.5,79.5,0,0,1-7.91-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,143,142a69.24,69.24,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.48,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2,2,0,0,1-.22.71c-1.36,1.55-9.57,1.79-16.39-.06a12,12,0,0,0-6.45,23.11A63.73,63.73,0,0,0,125.09,220c6.47,0,13.74-1.17,19.74-5.15a24.73,24.73,0,0,0,10.95-18C157,187.53,153.32,179.53,145.51,174.27ZM216,140.68A12,12,0,0,0,200.7,148L192,172.3,183.3,148A12,12,0,1,0,160.7,156l20,56a12,12,0,0,0,22.6,0l20-56A12,12,0,0,0,216,140.68ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z" }))
197
+ ],
198
+ [
199
+ "duotone",
200
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.83-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z" }))
201
+ ],
202
+ [
203
+ "fill",
204
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44ZM48,180c0,11,7.18,20,16,20a14.18,14.18,0,0,0,10.06-4.5,8.21,8.21,0,0,1,10.9-.91,8,8,0,0,1,.82,11.81A30.06,30.06,0,0,1,64,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.39,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.17,14.17,0,0,0,64,160C55.18,160,48,169,48,180Zm103.81,16.31a20.82,20.82,0,0,1-9.19,15.23C137.43,215,131,216,125.13,216A61.14,61.14,0,0,1,110,214a8,8,0,1,1,4.3-15.41c4.38,1.2,14.95,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C137.49,174.17,154.05,179,151.81,196.31ZM215.42,155l-19.89,55.68a8,8,0,0,1-15.06,0L160.58,155a8.21,8.21,0,0,1,4.5-10.45,8,8,0,0,1,10.45,4.76L188,184.21l12.47-34.9a8,8,0,0,1,10.45-4.76A8.23,8.23,0,0,1,215.42,155Z" }))
205
+ ],
206
+ [
207
+ "light",
208
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M46,180c0,12.13,8.07,22,18,22a16.24,16.24,0,0,0,11.67-5.28,6,6,0,0,1,8.66,8.3A28.06,28.06,0,0,1,64,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,64,158C54.07,158,46,167.86,46,180Zm81.05-6.77c-10.86-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.66-1.82,21.45-.84a6,6,0,0,0,3.06-11.6c-2-.53-20.1-5-31.21,2.48a18.61,18.61,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.78,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,110.48,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C151.84,180.39,136.92,176.08,127.05,173.22Zm83-26.88a6,6,0,0,0-7.67,3.63L188,190.15,173.65,150a6,6,0,1,0-11.3,4l20,56a6,6,0,0,0,11.3,0l20-56A6,6,0,0,0,210,146.34ZM214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88Zm-20.49-6L158,46.48V82Z" }))
209
+ ],
210
+ [
211
+ "regular",
212
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z" }))
213
+ ],
214
+ [
215
+ "thin",
216
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,180c0,13.23,9,24,20,24a18.15,18.15,0,0,0,13.11-5.9,4,4,0,1,1,5.78,5.54A26.11,26.11,0,0,1,64,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,64,156C53,156,44,166.77,44,180Zm82.49-4.85c-10.53-3-15.08-4.91-14.42-10.08a8.51,8.51,0,0,1,3.75-6.49c6.25-4.23,18.77-2.24,23.06-1.11a4,4,0,0,0,2-7.74,61.11,61.11,0,0,0-10.47-1.61c-8.12-.54-14.54.75-19.1,3.82a16.66,16.66,0,0,0-7.22,12.13c-1.58,12.49,10.46,16,20.14,18.77,11.26,3.25,16.47,5.49,15.64,11.94a8.94,8.94,0,0,1-3.91,6.75c-6.27,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.89,57.89,0,0,0,125.19,212c5.18,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C149.64,181.84,136.26,178,126.49,175.15Zm82.85-26.92a4,4,0,0,0-5.11,2.42L188,196.11l-16.23-45.46a4,4,0,1,0-7.54,2.7l20,56a4,4,0,0,0,7.54,0l20-56A4,4,0,0,0,209.34,148.23ZM212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-13.66-4L156,41.65V84Z" }))
217
+ ]
218
+ ]), Oe = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: D2 }));
219
+ Oe.displayName = "FileCsvIcon";
220
+ const _2 = /* @__PURE__ */ new Map([
221
+ [
222
+ "bold",
223
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M48,140H32a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12H48a40,40,0,0,0,0-80Zm0,56H44V164h4a16,16,0,0,1,0,32Zm180.3-3.8a12,12,0,0,1,.37,17A34,34,0,0,1,204,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,0,1-17.34,16.6A10.27,10.27,0,0,0,204,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a10.27,10.27,0,0,0,7.33-3.43A12,12,0,0,1,228.3,192.2ZM128,140c-19.85,0-36,17.94-36,40s16.15,40,36,40,36-17.94,36-40S147.85,140,128,140Zm0,56c-6.5,0-12-7.33-12-16s5.5-16,12-16,12,7.33,12,16S134.5,196,128,196ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z" }))
224
+ ],
225
+ [
226
+ "duotone",
227
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.18,14.18,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.64,0-32,16.15-32,36s14.36,36,32,36,32-16.15,32-36S145.64,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z" }))
228
+ ],
229
+ [
230
+ "fill",
231
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,120H212.07a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152.05,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120Zm108-76,44,44h-44ZM52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H51.33C71,216,87.55,200.52,88,180.87A36,36,0,0,0,52,144Zm-.49,56H44V160h8a20,20,0,0,1,20,20.77C71.59,191.59,62.35,200,51.52,200Zm170.67-4.28a8.26,8.26,0,0,1-.73,11.09,30,30,0,0,1-21.4,9.19c-17.65,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.4,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.21,14.21,0,0,0,200.06,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.25,14.25,0,0,0,10.23-4.66A8,8,0,0,1,222.19,195.72ZM128,144c-17.65,0-32,16.15-32,36s14.37,36,32,36,32-16.15,32-36S145.69,144,128,144Zm0,56c-8.83,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.86,200,128,200Z" }))
232
+ ],
233
+ [
234
+ "light",
235
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z" }))
236
+ ],
237
+ [
238
+ "regular",
239
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.65,0-32,16.15-32,36s14.35,36,32,36,32-16.15,32-36S145.65,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z" }))
240
+ ],
241
+ [
242
+ "thin",
243
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M52,148H36a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4H52a32,32,0,0,0,0-64Zm0,56H40V156H52a24,24,0,0,1,0,48Zm166.77-6a4,4,0,0,1,.12,5.66A26.11,26.11,0,0,1,200,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,200,156c-11,0-20,10.77-20,24s9,24,20,24a18.15,18.15,0,0,0,13.11-5.9A4,4,0,0,1,218.77,198ZM128,148c-15.44,0-28,14.36-28,32s12.56,32,28,32,28-14.36,28-32S143.44,148,128,148Zm0,56c-11,0-20-10.77-20-24s9-24,20-24,20,10.77,20,24S139,204,128,204ZM48,116a4,4,0,0,0,4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72A4,4,0,0,0,48,116ZM156,41.65,198.34,84H156Z" }))
244
+ ]
245
+ ]), $e = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: _2 }));
246
+ $e.displayName = "FileDocIcon";
247
+ const z2 = /* @__PURE__ */ new Map([
248
+ [
249
+ "bold",
250
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M114,145.34a12,12,0,0,0-20,0L79,167.82,72.3,157.73a12,12,0,0,0-20.07.17L13.91,217.51A12,12,0,0,0,24,236H152a12,12,0,0,0,10-18.66ZM46,212,62.5,186.3l6.55,9.81a12,12,0,0,0,20,0l15-22.48L129.58,212ZM216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v84a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Z" }))
251
+ ],
252
+ [
253
+ "duotone",
254
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
255
+ "path",
256
+ {
257
+ d: "M104,152l48,72H24l36-56,16.36,25.45ZM152,32V88h56Z",
258
+ opacity: "0.2"
259
+ }
260
+ ), /* @__PURE__ */ t.createElement("path", { d: "M110.66,147.56a8,8,0,0,0-13.32,0L76.49,178.85l-9.76-15.18a8,8,0,0,0-13.46,0l-36,56A8,8,0,0,0,24,232H152a8,8,0,0,0,6.66-12.44ZM38.65,216,60,182.79l9.63,15a8,8,0,0,0,13.39.11l21-31.47L137.05,216Zm175-133.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
261
+ ],
262
+ [
263
+ "fill",
264
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M158.66,219.56A8,8,0,0,1,152,232H24a8,8,0,0,1-6.73-12.33l36-56a8,8,0,0,1,13.46,0l9.76,15.18,20.85-31.29a8,8,0,0,1,13.32,0ZM216,88V216a16,16,0,0,1-16,16h-8a8,8,0,0,1,0-16h8V96H152a8,8,0,0,1-8-8V40H56v88a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Z" }))
265
+ ],
266
+ [
267
+ "light",
268
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M109,148.67a6,6,0,0,0-10,0L76.46,182.5,65.05,164.76a6,6,0,0,0-10.1,0l-36,56A6,6,0,0,0,24,230H152a6,6,0,0,0,5-9.33ZM35,218l25-38.9,11.32,17.6a6,6,0,0,0,10,.08l22.64-34L140.79,218ZM212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v88a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2h-8a6,6,0,0,0,0,12h8a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Z" }))
269
+ ],
270
+ [
271
+ "regular",
272
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M110.66,147.56a8,8,0,0,0-13.32,0L76.49,178.85l-9.76-15.18a8,8,0,0,0-13.46,0l-36,56A8,8,0,0,0,24,232H152a8,8,0,0,0,6.66-12.44ZM38.65,216,60,182.79l9.63,15a8,8,0,0,0,13.39.11l21-31.47L137.05,216Zm175-133.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z" }))
273
+ ],
274
+ [
275
+ "thin",
276
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M107.33,149.78a4,4,0,0,0-6.66,0L76.42,186.15,63.36,165.84a4,4,0,0,0-6.72,0l-36,56A4,4,0,0,0,24,228H152a4,4,0,0,0,3.33-6.22ZM31.33,220,60,175.4l13,20.22a4,4,0,0,0,3.33,1.83,3.93,3.93,0,0,0,3.36-1.78L104,159.21,144.53,220ZM210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v88a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4h-8a4,4,0,0,0,0,8h8a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156Z" }))
277
+ ]
278
+ ]), De = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: z2 }));
279
+ De.displayName = "FileImageIcon";
280
+ const B2 = /* @__PURE__ */ new Map([
281
+ [
282
+ "bold",
283
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M100,152v56a12,12,0,0,1-24,0V190.07l-6.17,8.81a12,12,0,0,1-19.66,0L44,190.07V208a12,12,0,0,1-24,0V152a12,12,0,0,1,21.83-6.88L60,171.07l18.17-25.95A12,12,0,0,1,100,152Zm84,28a40,40,0,0,1-40,40H128a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,184,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,160,180Zm60-92V224a12,12,0,0,1-24,0V104H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88Zm-60-8h23L160,57Z" }))
284
+ ],
285
+ [
286
+ "duotone",
287
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z" }))
288
+ ],
289
+ [
290
+ "fill",
291
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H196a4,4,0,0,1,4,4V224a8,8,0,0,0,9.19,7.91,8.15,8.15,0,0,0,6.81-8.16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-8,56H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,144,144Zm-.49,56H136V160h8a20,20,0,0,1,20,20.77C163.58,191.59,154.34,200,143.51,200ZM104,152v55.73A8.17,8.17,0,0,1,96.53,216,8,8,0,0,1,88,208V177.38l-13.32,19a8.3,8.3,0,0,1-4.2,3.2,8,8,0,0,1-9-3L48,177.38v30.35A8.17,8.17,0,0,1,40.53,216,8,8,0,0,1,32,208V152.31a8.27,8.27,0,0,1,4.56-7.53,8,8,0,0,1,10,2.63L68,178.05l21.27-30.39a8.28,8.28,0,0,1,8.06-3.55A8,8,0,0,1,104,152Z" }))
292
+ ],
293
+ [
294
+ "light",
295
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V224a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM144,146H128a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6h16a34,34,0,0,0,0-68Zm0,56H134V158h10a22,22,0,0,1,0,44Zm-42-50v56a6,6,0,0,1-12,0V171L72.92,195.44a6,6,0,0,1-9.84,0L46,171v37a6,6,0,0,1-12,0V152a6,6,0,0,1,10.92-3.44l23.08,33,23.08-33A6,6,0,0,1,102,152Z" }))
296
+ ],
297
+ [
298
+ "regular",
299
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z" }))
300
+ ],
301
+ [
302
+ "thin",
303
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V224a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM144,148H128a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4h16a32,32,0,0,0,0-64Zm0,56H132V156h12a24,24,0,0,1,0,48Zm-44-52v56a4,4,0,0,1-8,0V164.69l-20.72,29.6a4,4,0,0,1-6.56,0L44,164.69V208a4,4,0,0,1-8,0V152a4,4,0,0,1,7.28-2.29L68,185l24.72-35.31A4,4,0,0,1,100,152Z" }))
304
+ ]
305
+ ]), _e = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: B2 }));
306
+ _e.displayName = "FileMdIcon";
307
+ const W2 = /* @__PURE__ */ new Map([
308
+ [
309
+ "bold",
310
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z" }))
311
+ ],
312
+ [
313
+ "duotone",
314
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
315
+ ],
316
+ [
317
+ "fill",
318
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z" }))
319
+ ],
320
+ [
321
+ "light",
322
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z" }))
323
+ ],
324
+ [
325
+ "regular",
326
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
327
+ ],
328
+ [
329
+ "thin",
330
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z" }))
331
+ ]
332
+ ]), ze = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: W2 }));
333
+ ze.displayName = "FilePdfIcon";
334
+ const j2 = /* @__PURE__ */ new Map([
335
+ [
336
+ "bold",
337
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M232,152a12,12,0,0,1-12,12h-8v44a12,12,0,0,1-24,0V164h-8a12,12,0,0,1,0-24h40A12,12,0,0,1,232,152ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm96,0a32,32,0,0,1-32,32h-4v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h16A32,32,0,0,1,164,172Zm-24,0a8,8,0,0,0-8-8h-4v16h4A8,8,0,0,0,140,172ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,80h23L160,57Z" }))
338
+ ],
339
+ [
340
+ "duotone",
341
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
342
+ ],
343
+ [
344
+ "fill",
345
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,152.53a8.17,8.17,0,0,1-8.25,7.47H204v47.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V160H176.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h40A8,8,0,0,1,224,152.53ZM92,172.85C91.54,188.08,78.64,200,63.4,200H56v7.73A8.17,8.17,0,0,1,48.53,216,8,8,0,0,1,40,208V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172.85Zm-16-2A12.25,12.25,0,0,0,63.65,160H56v24h8A12,12,0,0,0,76,170.84Zm84,2C159.54,188.08,146.64,200,131.4,200H124v7.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172.85Zm-16-2A12.25,12.25,0,0,0,131.65,160H124v24h8A12,12,0,0,0,144,170.84ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z" }))
346
+ ],
347
+ [
348
+ "light",
349
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M222,152a6,6,0,0,1-6,6H202v50a6,6,0,0,1-12,0V158H176a6,6,0,0,1,0-12h40A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm80,0a26,26,0,0,1-26,26H122v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h16A26,26,0,0,1,158,172Zm-12,0a14,14,0,0,0-14-14H122v28h10A14,14,0,0,0,146,172ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z" }))
350
+ ],
351
+ [
352
+ "regular",
353
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z" }))
354
+ ],
355
+ [
356
+ "thin",
357
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M220,152a4,4,0,0,1-4,4H200v52a4,4,0,0,1-8,0V156H176a4,4,0,0,1,0-8h40A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm76,0a24,24,0,0,1-24,24H120v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h16A24,24,0,0,1,156,172Zm-8,0a16,16,0,0,0-16-16H120v32h12A16,16,0,0,0,148,172ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z" }))
358
+ ]
359
+ ]), Be = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: j2 }));
360
+ Be.displayName = "FilePptIcon";
361
+ const K2 = /* @__PURE__ */ new Map([
362
+ [
363
+ "bold",
364
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z" }))
365
+ ],
366
+ [
367
+ "duotone",
368
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z" }))
369
+ ],
370
+ [
371
+ "fill",
372
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z" }))
373
+ ],
374
+ [
375
+ "light",
376
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z" }))
377
+ ],
378
+ [
379
+ "regular",
380
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z" }))
381
+ ],
382
+ [
383
+ "thin",
384
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z" }))
385
+ ]
386
+ ]), We = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: K2 }));
387
+ We.displayName = "FileTextIcon";
388
+ const G2 = /* @__PURE__ */ new Map([
389
+ [
390
+ "bold",
391
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-1.91,84.69a12,12,0,0,0-11.92-.15L126.5,152.44A20,20,0,0,0,108,140H48a20,20,0,0,0-20,20v48a20,20,0,0,0,20,20h60a20,20,0,0,0,18.5-12.44l19.67,10.93A12,12,0,0,0,164,216V152A12,12,0,0,0,158.09,141.66ZM104,204H52V164h52Zm36-8.39-12-6.67v-9.88l12-6.67Z" }))
392
+ ],
393
+ [
394
+ "duotone",
395
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
396
+ "path",
397
+ {
398
+ d: "M208,88H152V32Zm-88,72a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V196l32,20V152l-32,20Z",
399
+ opacity: "0.2"
400
+ }
401
+ ), /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z" }))
402
+ ],
403
+ [
404
+ "fill",
405
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM144,201.57l-16-10V176.43l16-10Z" }))
406
+ ],
407
+ [
408
+ "light",
409
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2h-8a6,6,0,0,0,0,12h8a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Zm-3.09,100.27a6,6,0,0,0-6.09.16L126,161.17V160a14,14,0,0,0-14-14H48a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h64a14,14,0,0,0,14-14v-1.17l22.82,14.26A6,6,0,0,0,158,216V152A6,6,0,0,0,154.91,146.75ZM114,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V160a2,2,0,0,1,2-2h64a2,2,0,0,1,2,2Zm32-2.83-20-12.5V175.33l20-12.5Z" }))
410
+ ],
411
+ [
412
+ "regular",
413
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z" }))
414
+ ],
415
+ [
416
+ "thin",
417
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4h-8a4,4,0,0,0,0,8h8a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM153.94,148.5a4,4,0,0,0-4.06.11L124,164.78V160a12,12,0,0,0-12-12H48a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12v-4.78l25.88,16.17A4,4,0,0,0,152,220a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,156,216V152A4,4,0,0,0,153.94,148.5ZM116,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V160a4,4,0,0,1,4-4h64a4,4,0,0,1,4,4Zm32,.78-24-15V174.22l24-15Z" }))
418
+ ]
419
+ ]), je = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: G2 }));
420
+ je.displayName = "FileVideoIcon";
421
+ const Y2 = /* @__PURE__ */ new Map([
422
+ [
423
+ "bold",
424
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M160,208a12,12,0,0,1-12,12H120a12,12,0,0,1-12-12V152a12,12,0,0,1,24,0v44h16A12,12,0,0,1,160,208ZM91,142.22A12,12,0,0,0,74.24,145L64,159.34,53.77,145a12,12,0,1,0-19.53,14l15,21-15,21A12,12,0,1,0,53.77,215L64,200.62,74.24,215A12,12,0,0,0,93.77,201l-15-21,15-21A12,12,0,0,0,91,142.22Zm122.53,32.05c-5.12-3.45-11.32-5.24-16.79-6.82a79.69,79.69,0,0,1-7.92-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,211,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,193.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C225,187.53,221.33,179.53,213.51,174.27ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z" }))
425
+ ],
426
+ [
427
+ "duotone",
428
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.94c-2,15.89,13.65,20.42,23,23.12,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.56-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z" }))
429
+ ],
430
+ [
431
+ "fill",
432
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm4,164.53a8.18,8.18,0,0,1-8.25,7.47H120a8,8,0,0,1-8-8V152.27a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v48h20A8,8,0,0,1,156,208.53ZM94.51,156.65,77.83,180l16.68,23.35a8,8,0,0,1-13,9.3L68,193.76,54.51,212.65a8,8,0,1,1-13-9.3L58.17,180,41.49,156.65a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L68,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm121.28,39.66a20.81,20.81,0,0,1-9.18,15.23C201.42,215,194.94,216,189.12,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,14.94,2.71,19.54-.35.89-.6,1.84-1.52,2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,8.95-14.94c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C201.48,174.17,218,179,215.79,196.31Z" }))
433
+ ],
434
+ [
435
+ "light",
436
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M154,208a6,6,0,0,1-6,6H120a6,6,0,0,1-6-6V152a6,6,0,1,1,12,0v50h22A6,6,0,0,1,154,208ZM91.48,147.11a6,6,0,0,0-8.36,1.39L68,169.67,52.88,148.5a6,6,0,1,0-9.76,7L60.63,180,43.12,204.5a6,6,0,1,0,9.76,7L68,190.31l15.12,21.16A6,6,0,0,0,88,214a5.91,5.91,0,0,0,3.48-1.12,6,6,0,0,0,1.4-8.37L75.37,180l17.51-24.51A6,6,0,0,0,91.48,147.11ZM191,173.22c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0ZM158,82H193.5L158,46.48Z" }))
437
+ ],
438
+ [
439
+ "regular",
440
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.72,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.55-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z" }))
441
+ ],
442
+ [
443
+ "thin",
444
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M152,208a4,4,0,0,1-4,4H120a4,4,0,0,1-4-4V152a4,4,0,0,1,8,0v52h24A4,4,0,0,1,152,208ZM90.32,148.75a4,4,0,0,0-5.58.92L68,173.12,51.25,149.67a4,4,0,0,0-6.5,4.66L63.08,180,44.75,205.67a4,4,0,0,0,.93,5.58A3.91,3.91,0,0,0,48,212a4,4,0,0,0,3.25-1.67L68,186.88l16.74,23.45A4,4,0,0,0,88,212a3.91,3.91,0,0,0,2.32-.75,4,4,0,0,0,.93-5.58L72.91,180l18.34-25.67A4,4,0,0,0,90.32,148.75Zm100.17,26.4c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.11-.54-14.54.75-19.09,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.59,12.49,10.46,16,20.14,18.77,11.25,3.25,16.46,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.7,57.7,0,0,0,189.19,212c5.17,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C213.63,181.84,200.26,178,190.49,175.15ZM204,92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0Zm-5.65-8L156,41.65V84Z" }))
445
+ ]
446
+ ]), Ke = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: Y2 }));
447
+ Ke.displayName = "FileXlsIcon";
448
+ const X2 = /* @__PURE__ */ new Map([
449
+ [
450
+ "bold",
451
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M188,140H172a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40h-4V164h4a8,8,0,0,1,0,16Zm-48-28v56a12,12,0,0,1-24,0V152a12,12,0,0,1,24,0ZM96,208a12,12,0,0,1-12,12H52a12,12,0,0,1-10.42-17.95L63.32,164H52a12,12,0,0,1,0-24H84A12,12,0,0,1,94.42,158L72.68,196H84A12,12,0,0,1,96,208ZM216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88A12,12,0,0,0,216.49,79.52ZM160,80V57l23,23Z" }))
452
+ ],
453
+ [
454
+ "duotone",
455
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M184,144H168a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm-48-32v56a8,8,0,0,1-16,0V152a8,8,0,0,1,16,0ZM96,208a8,8,0,0,1-8,8H56a8,8,0,0,1-7-12l25.16-44H56a8,8,0,0,1,0-16H88a8,8,0,0,1,7,12L69.79,200H88A8,8,0,0,1,96,208ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z" }))
456
+ ],
457
+ [
458
+ "fill",
459
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,144H168a8,8,0,0,0-8,8v55.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,184,144Zm-.35,40H176V160h8A12,12,0,0,1,196,173.16,12.25,12.25,0,0,1,183.65,184ZM136,152v55.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152.27a8.17,8.17,0,0,1,7.47-8.25A8,8,0,0,1,136,152ZM96,208.53A8.17,8.17,0,0,1,87.73,216H56.23a8.27,8.27,0,0,1-6-2.5A8,8,0,0,1,49.05,204l25.16-44H56.27A8.17,8.17,0,0,1,48,152.53,8,8,0,0,1,56,144H87.77a8.27,8.27,0,0,1,6,2.5A8,8,0,0,1,95,156L69.79,200H88A8,8,0,0,1,96,208.53ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z" }))
460
+ ],
461
+ [
462
+ "light",
463
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,146H168a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198h10a26,26,0,0,0,0-52Zm0,40H174V158h10a14,14,0,0,1,0,28Zm-50-34v56a6,6,0,0,1-12,0V152a6,6,0,0,1,12,0ZM94,208a6,6,0,0,1-6,6H56a6,6,0,0,1-5.21-9l26.87-47H56a6,6,0,0,1,0-12H88a6,6,0,0,1,5.21,9L66.34,202H88A6,6,0,0,1,94,208ZM212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,82V46.48L193.52,82Z" }))
464
+ ],
465
+ [
466
+ "regular",
467
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,144H168a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm-48-32v56a8,8,0,0,1-16,0V152a8,8,0,0,1,16,0ZM96,208a8,8,0,0,1-8,8H56a8,8,0,0,1-7-12l25.16-44H56a8,8,0,0,1,0-16H88a8,8,0,0,1,7,12L69.79,200H88A8,8,0,0,1,96,208ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z" }))
468
+ ],
469
+ [
470
+ "thin",
471
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184,148H168a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196h12a24,24,0,0,0,0-48Zm0,40H172V156h12a16,16,0,0,1,0,32Zm-52-36v56a4,4,0,0,1-8,0V152a4,4,0,0,1,8,0Zm-40.53,2L62.89,204H88a4,4,0,0,1,0,8H56a4,4,0,0,1-3.47-6l28.58-50H56a4,4,0,0,1,0-8H88a4,4,0,0,1,3.47,6ZM210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,84V41.65L198.34,84Z" }))
472
+ ]
473
+ ]), Ge = t.forwardRef((e, a) => /* @__PURE__ */ t.createElement(a0, { ref: a, ...e, weights: X2 }));
474
+ Ge.displayName = "FileZipIcon";
475
+ const U2 = {
330
476
  icon: { light: "#6a7282", dark: "#99a1af" },
331
477
  iconSelected: { light: "#1447e6", dark: "#51a2ff" },
332
478
  checkedRing: { light: "#155dfc", dark: "#51a2ff" }
333
- }, Qo = {
479
+ }, l8 = {
334
480
  markdown: { light: "#0084d1", dark: "#00bcff" },
335
481
  pdf: { light: "#e7000b", dark: "#ff6467" },
336
482
  spreadsheet: { light: "#007a55", dark: "#00d492" },
@@ -342,8 +488,8 @@ const Wr = /* @__PURE__ */ fe.forwardRef(Hr), Br = {
342
488
  video: { light: "#7f22fe", dark: "#a684ff" },
343
489
  archive: { light: "#bb4d00", dark: "#ffb900" },
344
490
  code: { light: "#9810fa", dark: "#c27aff" },
345
- text: Br.icon
346
- }, zn = "#71829b", ce = {
491
+ text: U2.icon
492
+ }, Ye = "#71829b", o0 = {
347
493
  rowHover: "hover:bg-[color:light-dark(#f3f4f6,#1e2939)]",
348
494
  rowSelected: "bg-[color:light-dark(#eff6ff,#162456)]",
349
495
  checkedRing: "inset-ring-1 inset-ring-[color:light-dark(#155dfc,#51a2ff)]",
@@ -352,7 +498,7 @@ const Wr = /* @__PURE__ */ fe.forwardRef(Hr), Br = {
352
498
  gridEdge: "text-[color:light-dark(#4a5565,#d1d5dc)]",
353
499
  icon: "text-[color:light-dark(#6a7282,#99a1af)]",
354
500
  iconSelected: "text-[color:light-dark(#1447e6,#51a2ff)]"
355
- }, ue = {
501
+ }, s0 = {
356
502
  markdown: "text-[color:light-dark(#0084d1,#00bcff)]",
357
503
  pdf: "text-[color:light-dark(#e7000b,#ff6467)]",
358
504
  spreadsheet: "text-[color:light-dark(#007a55,#00d492)]",
@@ -365,63 +511,63 @@ const Wr = /* @__PURE__ */ fe.forwardRef(Hr), Br = {
365
511
  archive: "text-[color:light-dark(#bb4d00,#ffb900)]",
366
512
  code: "text-[color:light-dark(#9810fa,#c27aff)]",
367
513
  text: "text-[color:light-dark(#6a7282,#99a1af)]"
368
- }, Hn = "text-[length:var(--dt-font-size-body,0.8125rem)]", Yr = `${Hn} leading-[max(var(--dt-line-height-body,1.25rem),1.5em)]`, Ot = 44, Gr = 12, Vr = 8, de = 14, Xr = 14, Wn = (e) => e === void 0 ? void 0 : { fontSize: typeof e == "number" ? `${e}px` : e }, ae = (e) => ({ width: e, height: e }), L = {
514
+ }, Xe = "text-[length:var(--dt-font-size-body,0.8125rem)]", J2 = `${Xe} leading-[max(var(--dt-line-height-body,1.25rem),1.5em)]`, x1 = 44, q2 = 12, Q2 = 8, c0 = 14, et = 14, Ue = (e) => e === void 0 ? void 0 : { fontSize: typeof e == "number" ? `${e}px` : e }, t0 = (e) => ({ width: e, height: e }), x = {
369
515
  container: "directory-tree-container relative h-full overflow-y-hidden pb-[3px] pr-[2px]",
370
516
  // 保留中も薄めない。薄めた文字と印は地と混ざり、配色表の組の対比 (文字 7:1・印 3:1) を割る
371
517
  containerPending: "cursor-progress",
372
518
  // 行は itemHeight の固定の箱で中身を縦の中央に置くため、上下の詰め物は行の高さを中身から奪うだけになる
373
519
  // (行の中に置いたホストのボタンが行の高さいっぱいの的にならない)
374
- entry: `directory-tree-entry flex items-center cursor-pointer relative select-none ${Yr}`,
375
- entryHover: `directory-tree-entry--hover ${ce.rowHover}`,
376
- entrySelected: `directory-tree-entry--selected ${ce.rowSelected}`,
520
+ entry: `directory-tree-entry flex items-center cursor-pointer relative select-none ${J2}`,
521
+ entryHover: `directory-tree-entry--hover ${o0.rowHover}`,
522
+ entrySelected: `directory-tree-entry--selected ${o0.rowSelected}`,
377
523
  // 輪は行の内側に描く。外側の輪は、後に描く隣の行の不透明な地 (ホバーや選択) に覆われる
378
- entryItemSelected: `directory-tree-entry--item-selected ${ce.rowSelected} ${ce.checkedRing}`,
524
+ entryItemSelected: `directory-tree-entry--item-selected ${o0.rowSelected} ${o0.checkedRing}`,
379
525
  // 箱の大きさはクラスでなく EXPAND_BOX_SIZE から行が付ける (ツリーラインのジオメトリが印を置く箱と同じ値を読むため)
380
- expandIcon: `directory-tree-expand-icon flex-shrink-0 flex items-center justify-center ${ce.icon}`,
381
- expandIconSelected: `directory-tree-expand-icon--selected ${ce.iconSelected}`,
526
+ expandIcon: `directory-tree-expand-icon flex-shrink-0 flex items-center justify-center ${o0.icon}`,
527
+ expandIconSelected: `directory-tree-expand-icon--selected ${o0.iconSelected}`,
382
528
  // 箱の大きさはクラスでなく visual.typeIconSize から行が付ける (ツリーラインのジオメトリと同じ値を読むため)
383
- typeIcon: `directory-tree-type-icon flex-shrink-0 flex items-center justify-center ${ce.icon}`,
384
- typeIconSelected: `directory-tree-type-icon--selected ${ce.iconSelected}`,
529
+ typeIcon: `directory-tree-type-icon flex-shrink-0 flex items-center justify-center ${o0.icon}`,
530
+ typeIconSelected: `directory-tree-type-icon--selected ${o0.iconSelected}`,
385
531
  // 文字の行の高さ (line-height) は行 (entry) の body の行を受け継ぐため、名前には文字の大きさだけを付ける
386
- name: `directory-tree-name overflow-hidden text-ellipsis whitespace-nowrap ml-1 ${Hn} font-normal ${ce.name}`,
532
+ name: `directory-tree-name overflow-hidden text-ellipsis whitespace-nowrap ml-1 ${Xe} font-normal ${o0.name}`,
387
533
  nameDirectory: "directory-tree-name--directory font-medium",
388
- nameSelected: `directory-tree-name--selected font-semibold ${ce.nameSelected}`
389
- }, Mt = (e) => {
390
- const t = e.slice(e.lastIndexOf("/") + 1), n = t.lastIndexOf(".");
391
- return n <= 0 ? "" : t.slice(n + 1).toLowerCase();
392
- }, Kr = /^[a-z][a-z\d+.-]*:\/\//i, Pn = (e) => Mt(Kr.test(e) ? e.split(/[?#]/, 1)[0] : e), Bn = (e) => Mt(e.name) || Pn(e.relativePath) || Pn(e.absolutePath), Yn = ({ isDirectory: e, isExpanded: t, showExpandIcons: n, useCanvasExpandIcons: r, expandIconSize: a }) => {
393
- const i = a ? { width: a, height: a } : void 0, l = a ? "" : "h-4 w-4";
394
- return !(n && e) || r ? /* @__PURE__ */ f.jsx("span", { className: l, style: i, "aria-hidden": "true" }) : t ? /* @__PURE__ */ f.jsx(Fr, { className: l, style: i }) : /* @__PURE__ */ f.jsx(zr, { className: l, style: i });
395
- }, At = (e, t) => {
534
+ nameSelected: `directory-tree-name--selected font-semibold ${o0.nameSelected}`
535
+ }, O1 = (e) => {
536
+ const a = e.slice(e.lastIndexOf("/") + 1), n = a.lastIndexOf(".");
537
+ return n <= 0 ? "" : a.slice(n + 1).toLowerCase();
538
+ }, tt = /^[a-z][a-z\d+.-]*:\/\//i, Ee = (e) => O1(tt.test(e) ? e.split(/[?#]/, 1)[0] : e), Je = (e) => O1(e.name) || Ee(e.relativePath) || Ee(e.absolutePath), qe = ({ isDirectory: e, isExpanded: a, showExpandIcons: n, useCanvasExpandIcons: r, expandIconSize: o }) => {
539
+ const s = o ? { width: o, height: o } : void 0, c = o ? "" : "h-4 w-4";
540
+ return !(n && e) || r ? /* @__PURE__ */ m("span", { className: c, style: s, "aria-hidden": "true" }) : a ? /* @__PURE__ */ m(x2, { className: c, style: s }) : /* @__PURE__ */ m(N2, { className: c, style: s });
541
+ }, N1 = (e, a) => {
396
542
  if (e == null || typeof e == "boolean") return null;
397
543
  if (typeof e == "function")
398
- return console.warn(`[DirectoryTree] Function returned by renderer for "${t}". Return a node.`), null;
544
+ return console.warn(`[DirectoryTree] Function returned by renderer for "${a}". Return a node.`), null;
399
545
  if (typeof e == "object") {
400
546
  if ("then" in e)
401
- return console.warn(`[DirectoryTree] Promise returned for "${t}". Not supported.`), null;
547
+ return console.warn(`[DirectoryTree] Promise returned for "${a}". Not supported.`), null;
402
548
  if (Array.isArray(e)) {
403
- const r = e.map((a) => At(a, t)).filter(Boolean);
549
+ const r = e.map((o) => N1(o, a)).filter(Boolean);
404
550
  return r.length ? r : null;
405
551
  }
406
552
  const n = e.type;
407
553
  if (n && n.$$typeof === /* @__PURE__ */ Symbol.for("react.lazy"))
408
- return console.warn(`[DirectoryTree] Lazy component for "${t}". Not supported.`), null;
554
+ return console.warn(`[DirectoryTree] Lazy component for "${a}". Not supported.`), null;
409
555
  }
410
556
  return e;
411
- }, Ur = {
412
- markdown: (e) => /* @__PURE__ */ f.jsx(jr, { className: ue.markdown, style: ae(e) }),
413
- pdf: (e) => /* @__PURE__ */ f.jsx(Or, { className: ue.pdf, style: ae(e) }),
414
- spreadsheet: (e) => /* @__PURE__ */ f.jsx(Cr, { className: ue.spreadsheet, style: ae(e) }),
415
- csv: (e) => /* @__PURE__ */ f.jsx(_r, { className: ue.csv, style: ae(e) }),
416
- document: (e) => /* @__PURE__ */ f.jsx(Pr, { className: ue.document, style: ae(e) }),
417
- presentation: (e) => /* @__PURE__ */ f.jsx(Tr, { className: ue.presentation, style: ae(e) }),
418
- image: (e) => /* @__PURE__ */ f.jsx(Nr, { className: ue.image, style: ae(e) }),
419
- audio: (e) => /* @__PURE__ */ f.jsx(kr, { className: ue.audio, style: ae(e) }),
420
- video: (e) => /* @__PURE__ */ f.jsx(Ir, { className: ue.video, style: ae(e) }),
421
- archive: (e) => /* @__PURE__ */ f.jsx(Rr, { className: ue.archive, style: ae(e) }),
422
- code: (e) => /* @__PURE__ */ f.jsx(xr, { className: ue.code, style: ae(e) }),
423
- text: (e) => /* @__PURE__ */ f.jsx(Er, { className: ue.text, style: ae(e) })
424
- }, Jr = {
557
+ }, at = {
558
+ markdown: (e) => /* @__PURE__ */ m(_e, { className: s0.markdown, style: t0(e) }),
559
+ pdf: (e) => /* @__PURE__ */ m(ze, { className: s0.pdf, style: t0(e) }),
560
+ spreadsheet: (e) => /* @__PURE__ */ m(Ke, { className: s0.spreadsheet, style: t0(e) }),
561
+ csv: (e) => /* @__PURE__ */ m(Oe, { className: s0.csv, style: t0(e) }),
562
+ document: (e) => /* @__PURE__ */ m($e, { className: s0.document, style: t0(e) }),
563
+ presentation: (e) => /* @__PURE__ */ m(Be, { className: s0.presentation, style: t0(e) }),
564
+ image: (e) => /* @__PURE__ */ m(De, { className: s0.image, style: t0(e) }),
565
+ audio: (e) => /* @__PURE__ */ m(Pe, { className: s0.audio, style: t0(e) }),
566
+ video: (e) => /* @__PURE__ */ m(je, { className: s0.video, style: t0(e) }),
567
+ archive: (e) => /* @__PURE__ */ m(Ge, { className: s0.archive, style: t0(e) }),
568
+ code: (e) => /* @__PURE__ */ m(Te, { className: s0.code, style: t0(e) }),
569
+ text: (e) => /* @__PURE__ */ m(We, { className: s0.text, style: t0(e) })
570
+ }, nt = {
425
571
  markdown: ["md", "markdown", "mdx"],
426
572
  pdf: ["pdf"],
427
573
  spreadsheet: ["xls", "xlsx", "xlsm", "xlsb", "ods"],
@@ -434,7 +580,7 @@ const Wr = /* @__PURE__ */ fe.forwardRef(Hr), Br = {
434
580
  archive: ["zip", "tar", "gz", "7z", "rar", "tgz", "bz2"],
435
581
  code: ["js", "mjs", "cjs", "ts", "tsx", "jsx", "json", "html", "htm", "css", "scss", "py", "go", "rs", "c", "cpp", "h", "hpp", "sh", "bash", "yaml", "yml", "sql", "xml", "toml"],
436
582
  text: ["txt", "log"]
437
- }, Zr = new Map(Object.entries(Jr).flatMap(([e, t]) => t.map((n) => [n, e]))), qr = /* @__PURE__ */ new Set(["", "application/octet-stream", "binary/octet-stream", "text/plain", "application/x-empty"]), Qr = (e) => (e ?? "").split(";", 1)[0].trim().toLowerCase(), eo = (e) => {
583
+ }, rt = new Map(Object.entries(nt).flatMap(([e, a]) => a.map((n) => [n, e]))), lt = /* @__PURE__ */ new Set(["", "application/octet-stream", "binary/octet-stream", "text/plain", "application/x-empty"]), ot = (e) => (e ?? "").split(";", 1)[0].trim().toLowerCase(), ct = (e) => {
438
584
  if (e === "text/markdown" || e === "text/x-markdown") return "markdown";
439
585
  if (e === "application/pdf") return "pdf";
440
586
  if (e.includes("excel") || e.includes("spreadsheet")) return "spreadsheet";
@@ -448,21 +594,21 @@ const Wr = /* @__PURE__ */ fe.forwardRef(Hr), Br = {
448
594
  if (e === "application/json" || e.includes("javascript") || e.includes("typescript") || e.includes("xml") || e.startsWith("text/html") || e.startsWith("text/css") || e.includes("x-python") || e.includes("x-sh") || e.includes("x-go") || e.includes("x-rust"))
449
595
  return "code";
450
596
  if (e.startsWith("text/")) return "text";
451
- }, to = (e, t, n, r) => {
452
- const a = Qr(e), i = eo(a), l = Zr.get((t || (n ? Mt(n) : "")).toLowerCase()), h = (qr.has(a) ? [l, i] : [i, l]).find((b) => b !== void 0);
453
- return h === void 0 ? /* @__PURE__ */ f.jsx(wr, { className: ce.icon, style: ae(r) }) : Ur[h](r);
454
- }, Gn = (e, t, n) => {
455
- const { entry: r, isDirectory: a, isExpanded: i, extension: l, mimeType: d } = e;
597
+ }, st = (e, a, n, r) => {
598
+ const o = ot(e), s = ct(o), c = rt.get((a || (n ? O1(n) : "")).toLowerCase()), h = (lt.has(o) ? [c, s] : [s, c]).find((A) => A !== void 0);
599
+ return h === void 0 ? /* @__PURE__ */ m(ke, { className: o0.icon, style: t0(r) }) : at[h](r);
600
+ }, Qe = (e, a, n) => {
601
+ const { entry: r, isDirectory: o, isExpanded: s, extension: c, mimeType: d } = e;
456
602
  let h;
457
- const b = d || r.mimeType;
458
- return r.icon !== void 0 ? h = r.icon : a ? h = i && t?.directoryExpanded || t?.directory || /* @__PURE__ */ f.jsx(Wr, { style: ae(n) }) : l && t?.fileByExtension?.[l] ? h = t.fileByExtension[l] : h = t?.file || to(b, l, r.name, n), At(typeof h == "function" ? h(e) : h, r.absolutePath);
459
- }, no = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Vn = (e) => {
603
+ const A = d || r.mimeType;
604
+ return r.icon !== void 0 ? h = r.icon : o ? h = s && a?.directoryExpanded || a?.directory || /* @__PURE__ */ m(k2, { style: t0(n) }) : c && a?.fileByExtension?.[c] ? h = a.fileByExtension[c] : h = a?.file || st(A, c, r.name, n), N1(typeof h == "function" ? h(e) : h, r.absolutePath);
605
+ }, it = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), e2 = (e) => {
460
606
  if (!e)
461
607
  return;
462
- const t = Object.entries(e).filter(([, n]) => n != null);
463
- if (t.length !== 0)
464
- return Object.fromEntries(t.map(([n, r]) => [`data-${no(n)}`, String(r)]));
465
- }, ro = [
608
+ const a = Object.entries(e).filter(([, n]) => n != null);
609
+ if (a.length !== 0)
610
+ return Object.fromEntries(a.map(([n, r]) => [`data-${it(n)}`, String(r)]));
611
+ }, dt = [
466
612
  // 塗り: 箱の大きさと位置を変えずに行の面・縁・指す形だけを描く (アウトラインと影は箱の外に描かれ、場所を取らない)
467
613
  "color",
468
614
  "background",
@@ -509,160 +655,160 @@ const Wr = /* @__PURE__ */ fe.forwardRef(Hr), Br = {
509
655
  "textDecorationThickness",
510
656
  "textUnderlineOffset",
511
657
  "textTransform"
512
- ], oo = ["color", "opacity"], so = "the row's box belongs to the tree (height: visual.itemHeight, indent: visual.indentSize, icons: visual.typeIconSize, text size: visual.fontSize)", ao = new Set(ro), io = new Set(oo), _n = (e, t) => {
513
- const n = t === void 0 ? e.option : `${e.option}.${t}`;
658
+ ], ht = ["color", "opacity"], ut = "the row's box belongs to the tree (height: visual.itemHeight, indent: visual.indentSize, icons: visual.typeIconSize, text size: visual.fontSize)", mt = new Set(dt), ft = new Set(ht), we = (e, a) => {
659
+ const n = a === void 0 ? e.option : `${e.option}.${a}`;
514
660
  return e.absolutePath === void 0 ? n : `${n} of "${e.absolutePath}"`;
515
- }, Xn = (e, t, n, r) => {
661
+ }, t2 = (e, a, n, r) => {
516
662
  if (e !== void 0) {
517
663
  if (typeof e != "object" || e === null)
518
- throw new RangeError(`${_n(n, void 0)} must be an object of CSS properties or undefined, got ${e === null ? "null" : typeof e}.`);
519
- for (const [a, i] of Object.entries(e))
520
- if (i !== void 0 && !t.has(a))
521
- throw new RangeError(`${_n(n, a)} cannot be set: ${so}, so ${r}.`);
664
+ throw new RangeError(`${we(n, void 0)} must be an object of CSS properties or undefined, got ${e === null ? "null" : typeof e}.`);
665
+ for (const [o, s] of Object.entries(e))
666
+ if (s !== void 0 && !a.has(o))
667
+ throw new RangeError(`${we(n, o)} cannot be set: ${ut}, so ${r}.`);
522
668
  }
523
- }, Ge = (e, t) => Xn(e, ao, t, "a row style accepts only paint and text properties (ROW_STYLE_PROPERTIES)"), lo = (e, t) => Xn(e, io, t, "the expand icon style accepts only the glyph's colour and opacity (EXPAND_ICON_STYLE_PROPERTIES), and the 14 px expand box is the tree's"), co = 500, Kn = ({ entry: e, isDirectory: t, isExpanded: n, isItemSelected: r, selectionMode: a, onSelectionChange: i, onEntryClick: l, toggleDirectory: d, onToggleDirectoryRecursive: h }) => {
524
- const b = G(null);
525
- return $e(
669
+ }, K0 = (e, a) => t2(e, mt, a, "a row style accepts only paint and text properties (ROW_STYLE_PROPERTIES)"), pt = (e, a) => t2(e, ft, a, "the expand icon style accepts only the glyph's colour and opacity (EXPAND_ICON_STYLE_PROPERTIES), and the 14 px expand box is the tree's"), At = 500, a2 = ({ entry: e, isDirectory: a, isExpanded: n, isItemSelected: r, selectionMode: o, onSelectionChange: s, onEntryClick: c, toggleDirectory: d, onToggleDirectoryRecursive: h }) => {
670
+ const A = _(null);
671
+ return k0(
526
672
  () => () => {
527
- b.current && window.clearTimeout(b.current);
673
+ A.current && window.clearTimeout(A.current);
528
674
  },
529
675
  []
530
- ), _(
531
- (N) => {
532
- N.stopPropagation(), a !== "none" && !t && i && i(e, !r);
533
- let x = !1;
534
- l({
676
+ ), b(
677
+ (M) => {
678
+ M.stopPropagation(), o !== "none" && !a && s && s(e, !r);
679
+ let Z = !1;
680
+ c({
535
681
  entry: e,
536
- isDirectory: t,
682
+ isDirectory: a,
537
683
  isExpanded: n,
538
684
  preventDefault: () => {
539
- x = !0;
685
+ Z = !0;
540
686
  }
541
- }), !(!t || x) && (b.current ? (window.clearTimeout(b.current), b.current = null, h(e)) : b.current = window.setTimeout(() => {
542
- d(e.absolutePath), b.current = null;
543
- }, co));
687
+ }), !(!a || Z) && (A.current ? (window.clearTimeout(A.current), A.current = null, h(e)) : A.current = window.setTimeout(() => {
688
+ d(e.absolutePath), A.current = null;
689
+ }, At));
544
690
  },
545
- [t, e, n, h, d, l, a, i, r]
691
+ [a, e, n, h, d, c, o, s, r]
546
692
  );
547
- }, Un = (e) => e === "right" ? "dt-grid-cell--right" : e === "center" ? "dt-grid-cell--center" : "", Cn = (e, t) => e.children !== void 0 && t(e.absolutePath), Jn = (e, t) => ({
693
+ }, n2 = (e) => e === "right" ? "dt-grid-cell--right" : e === "center" ? "dt-grid-cell--center" : "", be = (e, a) => e.children !== void 0 && a(e.absolutePath), r2 = (e, a) => ({
548
694
  width: e,
549
- gridTemplateColumns: t
550
- }), Zn = Ft(
695
+ gridTemplateColumns: a
696
+ }), l2 = T1(
551
697
  ({
552
698
  entry: e,
553
- indentLevel: t,
699
+ indentLevel: a,
554
700
  positionInSet: n,
555
701
  setSize: r,
556
- rowIndex: a,
557
- flatIndex: i,
558
- onRowFocus: l,
702
+ rowIndex: o,
703
+ flatIndex: s,
704
+ onRowFocus: c,
559
705
  onRowBlur: d,
560
706
  isSelectedForAria: h,
561
- rowHeight: b,
562
- isDirOpen: N,
563
- columns: x,
564
- numericTemplate: T,
565
- numericTotal: m,
566
- nameWidth: y,
567
- rowClassName: p,
568
- selection: { onEntryClick: w, selectedPath: v, currentPath: F, mode: P = "none", selectedItems: C, onSelectionChange: g },
569
- expansion: { toggleDirectory: D, onToggleDirectoryRecursive: $ },
570
- visual: { iconOverrides: O, showExpandIcons: Q = !0, showDirectoryIcons: J = !0, showFileIcons: z = !0, useCanvasExpandIcons: Y = !1, expandIconSize: he, typeIconSize: W, fontSize: oe, indentSize: me, highlightStyles: V, expandIconClassName: X, expandIconStyle: Ee }
707
+ rowHeight: A,
708
+ isDirOpen: M,
709
+ columns: Z,
710
+ numericTemplate: E,
711
+ numericTotal: u,
712
+ nameWidth: p,
713
+ rowClassName: f,
714
+ selection: { onEntryClick: V, selectedPath: H, currentPath: T, mode: S = "none", selectedItems: L, onSelectionChange: v },
715
+ expansion: { toggleDirectory: N, onToggleDirectoryRecursive: R },
716
+ visual: { iconOverrides: C, showExpandIcons: i0 = !0, showDirectoryIcons: J = !0, showFileIcons: $ = !0, useCanvasExpandIcons: G = !1, expandIconSize: H0, typeIconSize: z, fontSize: u0, indentSize: V0, highlightStyles: q, expandIconClassName: Q, expandIconStyle: P0 }
571
717
  }) => {
572
- Ge(e.style, { option: "entry.style", absolutePath: e.absolutePath });
573
- const [be, o] = ge(!1), u = e.children !== void 0, I = u && N(e.absolutePath), E = e.absolutePath === v, ve = e.absolutePath === F, k = !u && !!C?.has(e.absolutePath), j = u ? void 0 : Bn(e), ee = Kn({ entry: e, isDirectory: u, isExpanded: I, isItemSelected: k, selectionMode: P, onSelectionChange: g, onEntryClick: w, toggleDirectory: D, onToggleDirectoryRecursive: $ }), pe = be ? V?.hoverClassName !== void 0 ? V.hoverClassName : L.entryHover : "", Ne = (() => {
574
- if (u) {
575
- if (E) return V?.directorySelectedClassName !== void 0 ? V.directorySelectedClassName : L.entrySelected;
576
- } else if (E || k)
577
- return V?.itemSelectedClassName !== void 0 ? V.itemSelectedClassName : U(E && L.entrySelected, k && L.entryItemSelected);
718
+ K0(e.style, { option: "entry.style", absolutePath: e.absolutePath });
719
+ const [S0, L0] = h0(!1), k = e.children !== void 0, n0 = k && M(e.absolutePath), D = e.absolutePath === H, G0 = e.absolutePath === T, w = !k && !!L?.has(e.absolutePath), T0 = k ? void 0 : Je(e), Z0 = a2({ entry: e, isDirectory: k, isExpanded: n0, isItemSelected: w, selectionMode: S, onSelectionChange: v, onEntryClick: V, toggleDirectory: N, onToggleDirectoryRecursive: R }), I0 = S0 ? q?.hoverClassName !== void 0 ? q.hoverClassName : x.entryHover : "", O0 = (() => {
720
+ if (k) {
721
+ if (D) return q?.directorySelectedClassName !== void 0 ? q.directorySelectedClassName : x.entrySelected;
722
+ } else if (D || w)
723
+ return q?.itemSelectedClassName !== void 0 ? q.itemSelectedClassName : W(D && x.entrySelected, w && x.entryItemSelected);
578
724
  return "";
579
- })(), A = typeof p == "function" ? p(e) : p, Se = U("dt-grid-row cursor-pointer select-none", pe, Ne, A, e.className), Z = U(L.expandIcon, X, (E || k) && L.expandIconSelected), Fe = U(L.typeIcon, (E || k) && L.typeIconSelected), se = U("dt-grid-name-label ml-1", ce.name, u && L.nameDirectory, (E || k) && L.nameSelected), te = Yn({ isDirectory: u, isExpanded: I, showExpandIcons: Q, useCanvasExpandIcons: Y, expandIconSize: he }), ie = (u ? J : z) ? Gn({ entry: e, isDirectory: u, isExpanded: I, isSelected: E, isItemSelected: k, extension: j, mimeType: e.mimeType }, O, W) : null, Te = { indentLevel: t, isDirectory: u, isExpanded: I }, [xe, ...Oe] = x, Re = xe?.render ? xe.render(e, Te) : e.label ?? e.name, Ve = {
580
- ...be ? V?.hoverStyle : {},
581
- ...u && E ? V?.directorySelectedStyle : {},
582
- ...!u && (E || k) ? V?.itemSelectedStyle : {}
725
+ })(), I = typeof f == "function" ? f(e) : f, m0 = W("dt-grid-row cursor-pointer select-none", I0, O0, I, e.className), j = W(x.expandIcon, Q, (D || w) && x.expandIconSelected), $0 = W(x.typeIcon, (D || w) && x.typeIconSelected), e0 = W("dt-grid-name-label ml-1", o0.name, k && x.nameDirectory, (D || w) && x.nameSelected), Y = qe({ isDirectory: k, isExpanded: n0, showExpandIcons: i0, useCanvasExpandIcons: G, expandIconSize: H0 }), r0 = (k ? J : $) ? Qe({ entry: e, isDirectory: k, isExpanded: n0, isSelected: D, isItemSelected: w, extension: T0, mimeType: e.mimeType }, C, z) : null, y0 = { indentLevel: a, isDirectory: k, isExpanded: n0 }, [p0, ...C0] = Z, A0 = p0?.render ? p0.render(e, y0) : e.label ?? e.name, Y0 = {
726
+ ...S0 ? q?.hoverStyle : {},
727
+ ...k && D ? q?.directorySelectedStyle : {},
728
+ ...!k && (D || w) ? q?.itemSelectedStyle : {}
583
729
  };
584
- return /* @__PURE__ */ f.jsxs(
730
+ return /* @__PURE__ */ b0(
585
731
  "div",
586
732
  {
587
- className: Se,
588
- style: { ...Ve, ...e.style, height: b },
733
+ className: m0,
734
+ style: { ...Y0, ...e.style, height: A },
589
735
  role: "row",
590
- "aria-expanded": u ? I : void 0,
591
- "aria-level": t + 1,
736
+ "aria-expanded": k ? n0 : void 0,
737
+ "aria-level": a + 1,
592
738
  "aria-posinset": n,
593
739
  "aria-setsize": r,
594
- "aria-rowindex": a,
595
- "aria-selected": P === "none" ? void 0 : h,
596
- "aria-current": ve ? "page" : void 0,
597
- ...Vn(e.data),
598
- "data-entry-type": u ? "directory" : "file",
599
- "data-entry-expanded": u ? String(I) : void 0,
600
- "data-entry-selected": E ? "true" : void 0,
601
- "data-entry-item-selected": k ? "true" : void 0,
602
- onClick: ee,
603
- onMouseEnter: () => o(!0),
604
- onMouseLeave: () => o(!1),
605
- onFocus: (B) => l(i, e.absolutePath, B.currentTarget),
606
- onBlur: (B) => d(e.absolutePath, B.currentTarget),
607
- onKeyDown: (B) => {
608
- if (B.key === "Enter") {
609
- if (B.repeat) {
610
- B.preventDefault();
740
+ "aria-rowindex": o,
741
+ "aria-selected": S === "none" ? void 0 : h,
742
+ "aria-current": G0 ? "page" : void 0,
743
+ ...e2(e.data),
744
+ "data-entry-type": k ? "directory" : "file",
745
+ "data-entry-expanded": k ? String(n0) : void 0,
746
+ "data-entry-selected": D ? "true" : void 0,
747
+ "data-entry-item-selected": w ? "true" : void 0,
748
+ onClick: Z0,
749
+ onMouseEnter: () => L0(!0),
750
+ onMouseLeave: () => L0(!1),
751
+ onFocus: (O) => c(s, e.absolutePath, O.currentTarget),
752
+ onBlur: (O) => d(e.absolutePath, O.currentTarget),
753
+ onKeyDown: (O) => {
754
+ if (O.key === "Enter") {
755
+ if (O.repeat) {
756
+ O.preventDefault();
611
757
  return;
612
758
  }
613
- ee(B);
759
+ Z0(O);
614
760
  }
615
761
  },
616
762
  tabIndex: 0,
617
763
  children: [
618
- /* @__PURE__ */ f.jsxs("div", { className: U("dt-grid-name-cell", xe?.className), role: "gridcell", style: { width: y, paddingLeft: Math.max(0, t * me) }, children: [
619
- (Q || Y) && /* @__PURE__ */ f.jsx("span", { className: Z, style: { ...Ee, width: de, height: de }, children: te }),
620
- (u ? J : z) && /* @__PURE__ */ f.jsx("span", { className: Fe, style: { width: W, height: W }, children: ie }),
621
- /* @__PURE__ */ f.jsx("span", { className: se, style: Wn(oe), children: Re })
764
+ /* @__PURE__ */ b0("div", { className: W("dt-grid-name-cell", p0?.className), role: "gridcell", style: { width: p, paddingLeft: Math.max(0, a * V0) }, children: [
765
+ (i0 || G) && /* @__PURE__ */ m("span", { className: j, style: { ...P0, width: c0, height: c0 }, children: Y }),
766
+ (k ? J : $) && /* @__PURE__ */ m("span", { className: $0, style: { width: z, height: z }, children: r0 }),
767
+ /* @__PURE__ */ m("span", { className: e0, style: Ue(u0), children: A0 })
622
768
  ] }),
623
- Oe.length > 0 && /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-track", style: Jn(m, T), children: Oe.map((B) => /* @__PURE__ */ f.jsx("div", { className: U("dt-grid-cell", Un(B.align), B.className), role: "gridcell", children: B.render ? B.render(e, Te) : null }, B.key)) }) })
769
+ C0.length > 0 && /* @__PURE__ */ m("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ m("div", { className: "dt-grid-numeric-track", style: r2(u, E), children: C0.map((O) => /* @__PURE__ */ m("div", { className: W("dt-grid-cell", n2(O.align), O.className), role: "gridcell", children: O.render ? O.render(e, y0) : null }, O.key)) }) })
624
770
  ]
625
771
  }
626
772
  );
627
773
  },
628
- (e, t) => {
629
- if (e.entry !== t.entry) return !1;
630
- const n = Cn(e.entry, e.isDirOpen), r = Cn(t.entry, t.isDirOpen);
631
- return e.indentLevel === t.indentLevel && e.positionInSet === t.positionInSet && e.setSize === t.setSize && e.rowIndex === t.rowIndex && // 焦点の通知は行番号で行うため、番号が変われば描き直してハンドラへ新しい番号を渡す
632
- e.flatIndex === t.flatIndex && e.isSelectedForAria === t.isSelectedForAria && e.rowHeight === t.rowHeight && n === r && e.columns === t.columns && e.numericTemplate === t.numericTemplate && e.numericTotal === t.numericTotal && e.nameWidth === t.nameWidth && e.rowClassName === t.rowClassName && e.selection.selectedPath === t.selection.selectedPath && e.selection.currentPath === t.selection.currentPath && e.selection.mode === t.selection.mode && e.selection.selectedItems === t.selection.selectedItems && e.visual === t.visual;
774
+ (e, a) => {
775
+ if (e.entry !== a.entry) return !1;
776
+ const n = be(e.entry, e.isDirOpen), r = be(a.entry, a.isDirOpen);
777
+ return e.indentLevel === a.indentLevel && e.positionInSet === a.positionInSet && e.setSize === a.setSize && e.rowIndex === a.rowIndex && // 焦点の通知は行番号で行うため、番号が変われば描き直してハンドラへ新しい番号を渡す
778
+ e.flatIndex === a.flatIndex && e.isSelectedForAria === a.isSelectedForAria && e.rowHeight === a.rowHeight && n === r && e.columns === a.columns && e.numericTemplate === a.numericTemplate && e.numericTotal === a.numericTotal && e.nameWidth === a.nameWidth && e.rowClassName === a.rowClassName && e.selection.selectedPath === a.selection.selectedPath && e.selection.currentPath === a.selection.currentPath && e.selection.mode === a.selection.mode && e.selection.selectedItems === a.selection.selectedItems && e.visual === a.visual;
633
779
  }
634
780
  );
635
- Zn.displayName = "DirectoryTreeGridRow";
636
- const qn = ({
781
+ l2.displayName = "DirectoryTreeGridRow";
782
+ const o2 = ({
637
783
  kind: e,
638
- columns: t,
784
+ columns: a,
639
785
  numericTemplate: n,
640
786
  numericTotal: r,
641
- nameWidth: a,
642
- scrollBarWidth: i,
643
- className: l,
787
+ nameWidth: o,
788
+ scrollBarWidth: s,
789
+ className: c,
644
790
  nameContent: d,
645
791
  renderCell: h
646
792
  }) => {
647
- const [, ...b] = t, N = e === "header" ? "dt-grid-name-header" : "dt-grid-name-footer", x = e === "header" ? "dt-grid-header" : "dt-grid-footer", T = e === "header" ? "columnheader" : "gridcell";
648
- return /* @__PURE__ */ f.jsxs("div", { className: U(x, ce.gridEdge, l), role: "row", children: [
649
- /* @__PURE__ */ f.jsx("div", { className: U(N, "px-1", t[0]?.className), role: T, style: { width: a }, children: d }),
650
- b.length > 0 && /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-track", style: Jn(r, n), children: b.map((m) => /* @__PURE__ */ f.jsx("div", { className: U("dt-grid-cell", Un(m.align), m.className), role: T, children: h(m) }, m.key)) }) }),
651
- /* @__PURE__ */ f.jsx("div", { className: "dt-grid-scrollbar-spacer", style: { width: i }, "aria-hidden": "true" })
793
+ const [, ...A] = a, M = e === "header" ? "dt-grid-name-header" : "dt-grid-name-footer", Z = e === "header" ? "dt-grid-header" : "dt-grid-footer", E = e === "header" ? "columnheader" : "gridcell";
794
+ return /* @__PURE__ */ b0("div", { className: W(Z, o0.gridEdge, c), role: "row", children: [
795
+ /* @__PURE__ */ m("div", { className: W(M, "px-1", a[0]?.className), role: E, style: { width: o }, children: d }),
796
+ A.length > 0 && /* @__PURE__ */ m("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ m("div", { className: "dt-grid-numeric-track", style: r2(r, n), children: A.map((u) => /* @__PURE__ */ m("div", { className: W("dt-grid-cell", n2(u.align), u.className), role: E, children: h(u) }, u.key)) }) }),
797
+ /* @__PURE__ */ m("div", { className: "dt-grid-scrollbar-spacer", style: { width: s }, "aria-hidden": "true" })
652
798
  ] });
653
- }, uo = ({ columns: e, className: t, ...n }) => /* @__PURE__ */ f.jsx(qn, { kind: "header", columns: e, className: t, nameContent: e[0]?.header ?? null, renderCell: (r) => r.header ?? null, ...n }), On = (e, t) => typeof e == "function" ? e(t) : e ?? null, fo = ({ columns: e, allEntries: t, className: n, ...r }) => /* @__PURE__ */ f.jsx(qn, { kind: "footer", columns: e, className: n, nameContent: On(e[0]?.footer, t), renderCell: (a) => On(a.footer, t), ...r }), ho = 240, Qn = 96, er = 12, Lt = (e, t) => {
799
+ }, vt = ({ columns: e, className: a, ...n }) => /* @__PURE__ */ m(o2, { kind: "header", columns: e, className: a, nameContent: e[0]?.header ?? null, renderCell: (r) => r.header ?? null, ...n }), Se = (e, a) => typeof e == "function" ? e(a) : e ?? null, gt = ({ columns: e, allEntries: a, className: n, ...r }) => /* @__PURE__ */ m(o2, { kind: "footer", columns: e, className: n, nameContent: Se(e[0]?.footer, a), renderCell: (o) => Se(o.footer, a), ...r }), Ht = 240, c2 = 96, s2 = 12, R1 = (e, a) => {
654
800
  const n = e?.width;
655
- return typeof n == "number" && Number.isFinite(n) && n > 0 ? n : t;
656
- }, mo = (e) => e.slice(1).map((t) => `${Lt(t, Qn)}px`).join(" "), po = ({ measuredWidth: e, columns: t, scrollBarWidth: n = er }) => {
657
- const r = Lt(t[0], ho), a = t.slice(1).reduce((h, b) => h + Lt(b, Qn), 0), i = Number.isFinite(e) && e > 0 ? e : 0, l = Math.max(0, i - r - Math.max(0, n)), d = Math.max(0, a - l);
658
- return { nameWidth: r, numericTotal: a, numericVisible: l, maxHScroll: d };
659
- }, jt = (e, t) => !Number.isFinite(e) || e < 0 ? 0 : e > t ? t : e, yo = (e) => {
660
- const t = [], n = (r) => {
661
- for (const a of r)
662
- t.push(a), a.children && a.children.length > 0 && n(a.children);
801
+ return typeof n == "number" && Number.isFinite(n) && n > 0 ? n : a;
802
+ }, Vt = (e) => e.slice(1).map((a) => `${R1(a, c2)}px`).join(" "), Zt = ({ measuredWidth: e, columns: a, scrollBarWidth: n = s2 }) => {
803
+ const r = R1(a[0], Ht), o = a.slice(1).reduce((h, A) => h + R1(A, c2), 0), s = Number.isFinite(e) && e > 0 ? e : 0, c = Math.max(0, s - r - Math.max(0, n)), d = Math.max(0, o - c);
804
+ return { nameWidth: r, numericTotal: o, numericVisible: c, maxHScroll: d };
805
+ }, F1 = (e, a) => !Number.isFinite(e) || e < 0 ? 0 : e > a ? a : e, yt = (e) => {
806
+ const a = [], n = (r) => {
807
+ for (const o of r)
808
+ a.push(o), o.children && o.children.length > 0 && n(o.children);
663
809
  };
664
- return n(e), t;
665
- }, tr = ["entryKindDirectory", "entryKindFile"], jn = [...mt, ...tr], Dt = Object.freeze({
810
+ return n(e), a;
811
+ }, i2 = ["entryKindDirectory", "entryKindFile"], Le = [...m1, ...i2], k1 = Object.freeze({
666
812
  en: Object.freeze({
667
813
  entryKindDirectory: "directory",
668
814
  entryKindFile: "file"
@@ -671,254 +817,254 @@ const qn = ({
671
817
  entryKindDirectory: "ディレクトリ",
672
818
  entryKindFile: "ファイル"
673
819
  })
674
- }), go = Object.freeze({
675
- en: Object.freeze({ ...In.en, ...Dt.en }),
676
- ja: Object.freeze({ ...In.ja, ...Dt.ja })
677
- }), An = (e) => typeof e == "string" ? JSON.stringify(e) : e === null ? "null" : typeof e, bo = (e) => {
678
- const t = {};
820
+ }), Mt = Object.freeze({
821
+ en: Object.freeze({ ...ye.en, ...k1.en }),
822
+ ja: Object.freeze({ ...ye.ja, ...k1.ja })
823
+ }), Ie = (e) => typeof e == "string" ? JSON.stringify(e) : e === null ? "null" : typeof e, Et = (e) => {
824
+ const a = {};
679
825
  let n = !1;
680
- for (const r of mt) {
681
- const a = Object.hasOwn(e, r) ? e[r] : void 0;
682
- a !== void 0 && (t[r] = a, n = !0);
826
+ for (const r of m1) {
827
+ const o = Object.hasOwn(e, r) ? e[r] : void 0;
828
+ o !== void 0 && (a[r] = o, n = !0);
683
829
  }
684
- return n ? t : void 0;
685
- }, vo = (e, t) => {
686
- const n = Mn(e);
687
- if (t === void 0)
688
- return go[n];
689
- if (t === null || typeof t != "object")
690
- throw new RangeError(`[directory-tree] labels must be an object; got ${An(t)}`);
691
- const r = Object.getPrototypeOf(t);
830
+ return n ? a : void 0;
831
+ }, wt = (e, a) => {
832
+ const n = Re(e);
833
+ if (a === void 0)
834
+ return Mt[n];
835
+ if (a === null || typeof a != "object")
836
+ throw new RangeError(`[directory-tree] labels must be an object; got ${Ie(a)}`);
837
+ const r = Object.getPrototypeOf(a);
692
838
  if (r !== Object.prototype && r !== null)
693
- throw new RangeError(`[directory-tree] labels must be a plain object (prototype Object.prototype or null); got ${Array.isArray(t) ? "an array" : "an object with a non-plain prototype"}`);
694
- for (const l of Object.keys(t))
695
- if (!jn.includes(l))
696
- throw new RangeError(`[directory-tree] labels.${l} is not a known label key; expected one of ${jn.join(", ")}`);
697
- const i = { ...br(n, bo(t)), ...Dt[n] };
698
- for (const l of tr) {
699
- const d = Object.hasOwn(t, l) ? t[l] : void 0;
839
+ throw new RangeError(`[directory-tree] labels must be a plain object (prototype Object.prototype or null); got ${Array.isArray(a) ? "an array" : "an object with a non-plain prototype"}`);
840
+ for (const c of Object.keys(a))
841
+ if (!Le.includes(c))
842
+ throw new RangeError(`[directory-tree] labels.${c} is not a known label key; expected one of ${Le.join(", ")}`);
843
+ const s = { ...M2(n, Et(a)), ...k1[n] };
844
+ for (const c of i2) {
845
+ const d = Object.hasOwn(a, c) ? a[c] : void 0;
700
846
  if (d !== void 0) {
701
847
  if (typeof d != "string" || d.trim() === "")
702
- throw new RangeError(`[directory-tree] labels.${l} must be a non-blank string; got ${An(d)}`);
703
- i[l] = d;
848
+ throw new RangeError(`[directory-tree] labels.${c} must be a non-blank string; got ${Ie(d)}`);
849
+ s[c] = d;
704
850
  }
705
851
  }
706
- return Object.freeze(i);
707
- }, So = (e) => {
708
- const t = {};
709
- for (const n of mt)
710
- t[n] = e[n];
711
- return Object.freeze(t);
712
- }, wo = () => {
852
+ return Object.freeze(s);
853
+ }, bt = (e) => {
854
+ const a = {};
855
+ for (const n of m1)
856
+ a[n] = e[n];
857
+ return Object.freeze(a);
858
+ }, St = () => {
713
859
  let e = null;
714
860
  return {
715
- mark: (t) => {
716
- const n = t.composedPath();
861
+ mark: (a) => {
862
+ const n = a.composedPath();
717
863
  e = n, setTimeout(() => {
718
864
  e === n && (e = null);
719
865
  }, 0);
720
866
  },
721
- landedOn: (t) => e?.includes(t) === !0
867
+ landedOn: (a) => e?.includes(a) === !0
722
868
  };
723
- }, et = (e) => typeof e == "string" ? JSON.stringify(e) : String(e), $t = (e, t) => {
724
- if (typeof t != "number" || !Number.isFinite(t) || t <= 0)
725
- throw new RangeError(`[directory-tree] visual.${e} must be a finite number greater than 0 (px); got ${et(t)}.`);
726
- return t;
727
- }, Eo = (e) => {
869
+ }, e1 = (e) => typeof e == "string" ? JSON.stringify(e) : String(e), P1 = (e, a) => {
870
+ if (typeof a != "number" || !Number.isFinite(a) || a <= 0)
871
+ throw new RangeError(`[directory-tree] visual.${e} must be a finite number greater than 0 (px); got ${e1(a)}.`);
872
+ return a;
873
+ }, Lt = (e) => {
728
874
  if (typeof e == "string" && e.trim() !== "" || typeof e == "number" && Number.isFinite(e) && e > 0)
729
875
  return e;
730
- throw new RangeError(`[directory-tree] visual.fontSize must be a finite number greater than 0 (px) or a CSS font size that is not blank; got ${et(e)}.`);
731
- }, xo = ({ indentSize: e, typeIconSize: t, fontSize: n }) => ({
732
- indentSize: e === void 0 ? Gr : $t("indentSize", e),
733
- typeIconSize: t === void 0 ? Xr : $t("typeIconSize", t),
734
- fontSize: n === void 0 ? void 0 : Eo(n)
735
- }), Ro = ({ indentSize: e, removeRootIndent: t, hasExpandBox: n }) => t ? Math.max(0, e - (n ? de : 0)) : 0, Io = (e, t, n) => {
876
+ throw new RangeError(`[directory-tree] visual.fontSize must be a finite number greater than 0 (px) or a CSS font size that is not blank; got ${e1(e)}.`);
877
+ }, It = ({ indentSize: e, typeIconSize: a, fontSize: n }) => ({
878
+ indentSize: e === void 0 ? q2 : P1("indentSize", e),
879
+ typeIconSize: a === void 0 ? et : P1("typeIconSize", a),
880
+ fontSize: n === void 0 ? void 0 : Lt(n)
881
+ }), Ct = ({ indentSize: e, removeRootIndent: a, hasExpandBox: n }) => a ? Math.max(0, e - (n ? c0 : 0)) : 0, xt = (e, a, n) => {
736
882
  if (typeof e != "function")
737
- return $t("itemHeight", e);
738
- const r = e(t, n);
883
+ return P1("itemHeight", e);
884
+ const r = e(a, n);
739
885
  if (typeof r != "number" || !Number.isFinite(r) || r <= 0)
740
- throw new RangeError(`[directory-tree] visual.itemHeight returned ${et(r)} for ${JSON.stringify(t.absolutePath)} (row ${n}); it must return a finite number greater than 0 (px).`);
886
+ throw new RangeError(`[directory-tree] visual.itemHeight returned ${e1(r)} for ${JSON.stringify(a.absolutePath)} (row ${n}); it must return a finite number greater than 0 (px).`);
741
887
  return r;
742
- }, ko = (e, t, n) => {
743
- const r = t === void 0 ? Vr : t;
744
- if (typeof r != "number" || !Number.isFinite(r) || r <= 0 || r > de)
745
- throw new RangeError(`[directory-tree] visual.expandIconSize must be a finite number greater than 0 and at most ${de} (the expand box, px) while tree lines are drawn; got ${et(r)}.`);
746
- const { indentSize: a, typeIconSize: i } = e, l = r / 2, d = de + i - r / 2;
747
- if (a < l || a > d)
888
+ }, Ft = (e, a, n) => {
889
+ const r = a === void 0 ? Q2 : a;
890
+ if (typeof r != "number" || !Number.isFinite(r) || r <= 0 || r > c0)
891
+ throw new RangeError(`[directory-tree] visual.expandIconSize must be a finite number greater than 0 and at most ${c0} (the expand box, px) while tree lines are drawn; got ${e1(r)}.`);
892
+ const { indentSize: o, typeIconSize: s } = e, c = r / 2, d = c0 + s - r / 2;
893
+ if (o < c || o > d)
748
894
  throw new RangeError(
749
- `[directory-tree] visual.indentSize ${et(a)} does not fit the tree lines: with typeIconSize ${i} and an expand glyph of ${r} px it must be from ${l} (half the glyph) to ${d} (the ${de} px expand box + typeIconSize − half the glyph).`
895
+ `[directory-tree] visual.indentSize ${e1(o)} does not fit the tree lines: with typeIconSize ${s} and an expand glyph of ${r} px it must be from ${c} (half the glyph) to ${d} (the ${c0} px expand box + typeIconSize − half the glyph).`
750
896
  );
751
- return { indentSize: a, typeIconSize: i, glyphSize: r, originX: n };
752
- }, No = ({ indentSize: e, typeIconSize: t, glyphSize: n }) => Math.min(Math.max(de + t / 2 - e, n / 2), de - n / 2), To = (e, t) => {
897
+ return { indentSize: o, typeIconSize: s, glyphSize: r, originX: n };
898
+ }, Nt = ({ indentSize: e, typeIconSize: a, glyphSize: n }) => Math.min(Math.max(c0 + a / 2 - e, n / 2), c0 - n / 2), Rt = (e, a) => {
753
899
  const n = e.length - 1;
754
900
  if (n <= 0) return 0;
755
- let r = 0, a = n - 1, i = 0;
756
- for (; r <= a; ) {
757
- const l = r + a >>> 1;
758
- e[l] <= t ? (i = l, r = l + 1) : a = l - 1;
901
+ let r = 0, o = n - 1, s = 0;
902
+ for (; r <= o; ) {
903
+ const c = r + o >>> 1;
904
+ e[c] <= a ? (s = c, r = c + 1) : o = c - 1;
759
905
  }
760
- return i;
761
- }, Po = (e, t, n) => {
762
- if (n <= 0 || e.length === 0 || t.length !== e.length + 1)
906
+ return s;
907
+ }, kt = (e, a, n) => {
908
+ if (n <= 0 || e.length === 0 || a.length !== e.length + 1)
763
909
  return null;
764
- const r = To(t, n), a = e[r];
765
- return a ? {
766
- path: a.entry.absolutePath,
767
- offsetInViewport: n - t[r]
910
+ const r = Rt(a, n), o = e[r];
911
+ return o ? {
912
+ path: o.entry.absolutePath,
913
+ offsetInViewport: n - a[r]
768
914
  } : null;
769
- }, _o = (e, t, n) => {
770
- if (t.length === 0 || n.length !== t.length + 1)
915
+ }, Pt = (e, a, n) => {
916
+ if (a.length === 0 || n.length !== a.length + 1)
771
917
  return null;
772
- for (let r = 0; r < t.length; r++)
773
- if (t[r].entry.absolutePath === e.path)
918
+ for (let r = 0; r < a.length; r++)
919
+ if (a[r].entry.absolutePath === e.path)
774
920
  return Math.max(0, n[r] + e.offsetInViewport);
775
921
  return null;
776
- }, Co = (e, t, n) => {
922
+ }, Tt = (e, a, n) => {
777
923
  const r = [];
778
- for (let a = t; a < n; a++) {
779
- const i = e[a];
780
- if (!(!i || i.length === 0))
781
- for (const l of i)
782
- r.push(l);
924
+ for (let o = a; o < n; o++) {
925
+ const s = e[o];
926
+ if (!(!s || s.length === 0))
927
+ for (const c of s)
928
+ r.push(c);
783
929
  }
784
930
  return r;
785
- }, Oo = (e, t, n) => {
931
+ }, Ot = (e, a, n) => {
786
932
  const r = [];
787
- for (let a = t; a < n; a++) {
788
- const i = e[a];
789
- if (!(!i || i.length === 0))
790
- for (const l of i)
791
- r.push(l);
933
+ for (let o = a; o < n; o++) {
934
+ const s = e[o];
935
+ if (!(!s || s.length === 0))
936
+ for (const c of s)
937
+ r.push(c);
792
938
  }
793
939
  return r;
794
- }, jo = (e, t, n, r) => {
795
- const a = Math.max(1, Math.floor(t * r)), i = Math.max(1, Math.floor(n * r));
796
- (e.width !== a || e.height !== i) && (e.width = a, e.height = i);
797
- const l = e.style;
798
- l.width !== `${t}px` && (l.width = `${t}px`), l.height !== `${n}px` && (l.height = `${n}px`);
799
- }, Ao = (e, t, n) => {
940
+ }, $t = (e, a, n, r) => {
941
+ const o = Math.max(1, Math.floor(a * r)), s = Math.max(1, Math.floor(n * r));
942
+ (e.width !== o || e.height !== s) && (e.width = o, e.height = s);
943
+ const c = e.style;
944
+ c.width !== `${a}px` && (c.width = `${a}px`), c.height !== `${n}px` && (c.height = `${n}px`);
945
+ }, Dt = (e, a, n) => {
800
946
  e.lineWidth = n, e.beginPath();
801
- for (const r of t)
947
+ for (const r of a)
802
948
  e.moveTo(r.x1, r.y1), e.lineTo(r.x2, r.y2);
803
949
  e.stroke();
804
- }, Lo = (e, t, n, r) => {
805
- if (t.length === 0)
950
+ }, _t = (e, a, n, r) => {
951
+ if (a.length === 0)
806
952
  return;
807
- const a = e.strokeStyle, i = e.lineWidth, l = e.lineCap, d = e.lineJoin;
953
+ const o = e.strokeStyle, s = e.lineWidth, c = e.lineCap, d = e.lineJoin;
808
954
  e.strokeStyle = n, e.lineCap = "round", e.lineJoin = "round";
809
- for (const h of t) {
810
- const b = r ?? h.size, N = Math.max(0, b / 2), x = Math.max(1, Math.round(b * 0.08)), T = Math.max(1, Math.round(b * 0.14)), m = Math.max(0, N - x * 0.8), y = Math.max(0, m * 0.55);
811
- e.lineWidth = x, e.beginPath(), e.arc(h.centerX, h.centerY, Math.max(0, N - x * 0.3), 0, Math.PI * 2), e.stroke(), e.lineWidth = T, e.beginPath(), e.moveTo(h.centerX - y, h.centerY), e.lineTo(h.centerX + y, h.centerY), e.stroke(), h.isExpanded || (e.beginPath(), e.moveTo(h.centerX, h.centerY - y), e.lineTo(h.centerX, h.centerY + y), e.stroke());
955
+ for (const h of a) {
956
+ const A = r ?? h.size, M = Math.max(0, A / 2), Z = Math.max(1, Math.round(A * 0.08)), E = Math.max(1, Math.round(A * 0.14)), u = Math.max(0, M - Z * 0.8), p = Math.max(0, u * 0.55);
957
+ e.lineWidth = Z, e.beginPath(), e.arc(h.centerX, h.centerY, Math.max(0, M - Z * 0.3), 0, Math.PI * 2), e.stroke(), e.lineWidth = E, e.beginPath(), e.moveTo(h.centerX - p, h.centerY), e.lineTo(h.centerX + p, h.centerY), e.stroke(), h.isExpanded || (e.beginPath(), e.moveTo(h.centerX, h.centerY - p), e.lineTo(h.centerX, h.centerY + p), e.stroke());
812
958
  }
813
- e.strokeStyle = a, e.lineWidth = i, e.lineCap = l, e.lineJoin = d;
814
- }, nr = Ft(({ segmentsByItem: e, glyphsByItem: t, itemHeight: n, width: r, viewportHeight: a, scrollPosition: i, color: l = zn, strokeWidth: d = 1, renderStartIndex: h, renderEndIndex: b, lookaheadEndIndex: N, devicePixelRatio: x, expandGlyphColor: T, expandGlyphSize: m }) => {
815
- const y = G(null), p = G(null), w = G({
959
+ e.strokeStyle = o, e.lineWidth = s, e.lineCap = c, e.lineJoin = d;
960
+ }, d2 = T1(({ segmentsByItem: e, glyphsByItem: a, itemHeight: n, width: r, viewportHeight: o, scrollPosition: s, color: c = Ye, strokeWidth: d = 1, renderStartIndex: h, renderEndIndex: A, lookaheadEndIndex: M, devicePixelRatio: Z, expandGlyphColor: E, expandGlyphSize: u }) => {
961
+ const p = _(null), f = _(null), V = _({
816
962
  segmentsByItem: e,
817
- glyphsByItem: t,
963
+ glyphsByItem: a,
818
964
  itemHeight: n,
819
965
  width: r,
820
- viewportHeight: a,
821
- scrollPosition: i,
822
- color: l,
966
+ viewportHeight: o,
967
+ scrollPosition: s,
968
+ color: c,
823
969
  strokeWidth: d,
824
970
  renderStartIndex: h,
825
- renderEndIndex: b,
826
- lookaheadEndIndex: N,
827
- devicePixelRatio: x,
828
- expandGlyphColor: T,
829
- expandGlyphSize: m
830
- }), v = _(() => {
831
- p.current = null;
832
- const P = y.current;
833
- if (!P)
971
+ renderEndIndex: A,
972
+ lookaheadEndIndex: M,
973
+ devicePixelRatio: Z,
974
+ expandGlyphColor: E,
975
+ expandGlyphSize: u
976
+ }), H = b(() => {
977
+ f.current = null;
978
+ const S = p.current;
979
+ if (!S)
834
980
  return;
835
- const C = P.getContext("2d");
836
- if (!C)
981
+ const L = S.getContext("2d");
982
+ if (!L)
837
983
  return;
838
- const g = w.current;
839
- if (g.width <= 0 || g.viewportHeight <= 0) {
840
- C.clearRect(0, 0, P.width, P.height);
984
+ const v = V.current;
985
+ if (v.width <= 0 || v.viewportHeight <= 0) {
986
+ L.clearRect(0, 0, S.width, S.height);
841
987
  return;
842
988
  }
843
- const D = Number.isFinite(g.devicePixelRatio ?? NaN) ? g.devicePixelRatio : typeof window < "u" && window.devicePixelRatio || 1;
844
- jo(P, g.width, g.viewportHeight, D);
845
- const $ = g.segmentsByItem.length, O = typeof g.renderStartIndex == "number" && Number.isFinite(g.renderStartIndex) ? Math.max(0, Math.floor(g.renderStartIndex)) : Math.max(0, Math.floor(g.scrollPosition / g.itemHeight)), Q = Math.min($, Math.ceil((g.scrollPosition + g.viewportHeight) / g.itemHeight)), J = (() => {
846
- if (typeof g.renderEndIndex == "number" && Number.isFinite(g.renderEndIndex)) {
847
- const W = Math.floor(g.renderEndIndex);
848
- return Math.max(Math.min($, W + 1), O);
989
+ const N = Number.isFinite(v.devicePixelRatio ?? NaN) ? v.devicePixelRatio : typeof window < "u" && window.devicePixelRatio || 1;
990
+ $t(S, v.width, v.viewportHeight, N);
991
+ const R = v.segmentsByItem.length, C = typeof v.renderStartIndex == "number" && Number.isFinite(v.renderStartIndex) ? Math.max(0, Math.floor(v.renderStartIndex)) : Math.max(0, Math.floor(v.scrollPosition / v.itemHeight)), i0 = Math.min(R, Math.ceil((v.scrollPosition + v.viewportHeight) / v.itemHeight)), J = (() => {
992
+ if (typeof v.renderEndIndex == "number" && Number.isFinite(v.renderEndIndex)) {
993
+ const z = Math.floor(v.renderEndIndex);
994
+ return Math.max(Math.min(R, z + 1), C);
849
995
  }
850
- return Math.max(Q, O);
851
- })(), z = (() => {
852
- if (typeof g.lookaheadEndIndex == "number" && Number.isFinite(g.lookaheadEndIndex)) {
853
- const W = Math.floor(g.lookaheadEndIndex), oe = Math.min($, W + 1);
854
- return Math.max(oe, J);
996
+ return Math.max(i0, C);
997
+ })(), $ = (() => {
998
+ if (typeof v.lookaheadEndIndex == "number" && Number.isFinite(v.lookaheadEndIndex)) {
999
+ const z = Math.floor(v.lookaheadEndIndex), u0 = Math.min(R, z + 1);
1000
+ return Math.max(u0, J);
855
1001
  }
856
- return Math.max(Q, J);
857
- })(), Y = Co(g.segmentsByItem, O, z), he = Oo(g.glyphsByItem, O, z);
858
- C.save(), C.scale(D, D), C.clearRect(0, 0, g.width, g.viewportHeight), C.translate(0, -g.scrollPosition), C.strokeStyle = g.color, Ao(C, Y, g.strokeWidth), Lo(C, he, g.expandGlyphColor ?? g.color, g.expandGlyphSize), C.restore();
859
- }, []), F = _(() => {
860
- p.current === null && (p.current = window.requestAnimationFrame(v));
861
- }, [v]);
862
- return $e(() => {
863
- w.current = {
1002
+ return Math.max(i0, J);
1003
+ })(), G = Tt(v.segmentsByItem, C, $), H0 = Ot(v.glyphsByItem, C, $);
1004
+ L.save(), L.scale(N, N), L.clearRect(0, 0, v.width, v.viewportHeight), L.translate(0, -v.scrollPosition), L.strokeStyle = v.color, Dt(L, G, v.strokeWidth), _t(L, H0, v.expandGlyphColor ?? v.color, v.expandGlyphSize), L.restore();
1005
+ }, []), T = b(() => {
1006
+ f.current === null && (f.current = window.requestAnimationFrame(H));
1007
+ }, [H]);
1008
+ return k0(() => {
1009
+ V.current = {
864
1010
  segmentsByItem: e,
865
- glyphsByItem: t,
1011
+ glyphsByItem: a,
866
1012
  itemHeight: n,
867
1013
  width: r,
868
- viewportHeight: a,
869
- scrollPosition: i,
870
- color: l,
1014
+ viewportHeight: o,
1015
+ scrollPosition: s,
1016
+ color: c,
871
1017
  strokeWidth: d,
872
1018
  renderStartIndex: h,
873
- renderEndIndex: b,
874
- lookaheadEndIndex: N,
875
- devicePixelRatio: x,
876
- expandGlyphColor: T,
877
- expandGlyphSize: m
878
- }, F();
879
- }, [e, t, n, r, a, i, l, d, h, b, N, x, T, m, F]), $e(() => () => {
880
- p.current !== null && (window.cancelAnimationFrame(p.current), p.current = null);
881
- }, []), /* @__PURE__ */ f.jsx("canvas", { ref: y, className: "pointer-events-none absolute top-0 left-0 z-0" });
1019
+ renderEndIndex: A,
1020
+ lookaheadEndIndex: M,
1021
+ devicePixelRatio: Z,
1022
+ expandGlyphColor: E,
1023
+ expandGlyphSize: u
1024
+ }, T();
1025
+ }, [e, a, n, r, o, s, c, d, h, A, M, Z, E, u, T]), k0(() => () => {
1026
+ f.current !== null && (window.cancelAnimationFrame(f.current), f.current = null);
1027
+ }, []), /* @__PURE__ */ m("canvas", { ref: p, className: "pointer-events-none absolute top-0 left-0 z-0" });
882
1028
  });
883
- nr.displayName = "TreeLineCanvas";
884
- const Do = (e) => {
885
- const t = /* @__PURE__ */ new Map();
1029
+ d2.displayName = "TreeLineCanvas";
1030
+ const zt = (e) => {
1031
+ const a = /* @__PURE__ */ new Map();
886
1032
  for (let n = 0; n < e.length; n++) {
887
1033
  const r = e[n].entry.absolutePath;
888
- t.has(r) || t.set(r, n);
1034
+ a.has(r) || a.set(r, n);
889
1035
  }
890
- return t;
891
- }, Ln = (e, t) => e.selectedPath === t ? e : { selectedPath: t, selectionGeneration: e.selectionGeneration + 1, anchor: e.anchor }, $o = (e, t) => ({ ...e, anchor: { path: t, selectionGeneration: e.selectionGeneration, focused: !0 } }), Fo = (e, t) => {
892
- const { anchor: n, selectionGeneration: r, selectedPath: a } = t;
1036
+ return a;
1037
+ }, Ce = (e, a) => e.selectedPath === a ? e : { selectedPath: a, selectionGeneration: e.selectionGeneration + 1, anchor: e.anchor }, Bt = (e, a) => ({ ...e, anchor: { path: a, selectionGeneration: e.selectionGeneration, focused: !0 } }), Wt = (e, a) => {
1038
+ const { anchor: n, selectionGeneration: r, selectedPath: o } = a;
893
1039
  if (n !== null && (n.focused || n.selectionGeneration === r)) {
894
- const i = e.get(n.path);
895
- if (i !== void 0)
896
- return i;
1040
+ const s = e.get(n.path);
1041
+ if (s !== void 0)
1042
+ return s;
897
1043
  }
898
- if (a !== null) {
899
- const i = e.get(a);
900
- if (i !== void 0)
901
- return i;
1044
+ if (o !== null) {
1045
+ const s = e.get(o);
1046
+ if (s !== void 0)
1047
+ return s;
902
1048
  }
903
1049
  return 0;
904
- }, Mo = {
1050
+ }, jt = {
905
1051
  msOverflowStyle: "none",
906
1052
  scrollbarWidth: "none"
907
- }, zo = () => {
1053
+ }, Kt = () => {
908
1054
  let e = document.getElementById("directory-tree-webkit-scrollbar-hide");
909
1055
  e || (e = document.createElement("style"), e.id = "directory-tree-webkit-scrollbar-hide", e.textContent = ".directory-tree-container::-webkit-scrollbar { display: none; }", document.head.appendChild(e));
910
- }, Ho = () => () => {
911
- }, Wo = () => !0, Bo = () => !1, Yo = (e) => {
912
- const t = G(null), n = t.current;
913
- return n !== null && mt.every((r) => n[r] === e[r]) ? n : (t.current = e, e);
914
- }, Dn = /* @__PURE__ */ new Set(["top", "bottom", "center", "nearest"]), $n = (e) => {
915
- const t = e?.align;
916
- if (t === void 0)
1056
+ }, Gt = () => () => {
1057
+ }, Yt = () => !0, Xt = () => !1, Ut = (e) => {
1058
+ const a = _(null), n = a.current;
1059
+ return n !== null && m1.every((r) => n[r] === e[r]) ? n : (a.current = e, e);
1060
+ }, xe = /* @__PURE__ */ new Set(["top", "bottom", "center", "nearest"]), Fe = (e) => {
1061
+ const a = e?.align;
1062
+ if (a === void 0)
917
1063
  return "top";
918
- if (!Dn.has(t))
919
- throw new RangeError(`[directory-tree] Unsupported scroll alignment ${JSON.stringify(t)}; expected one of ${[...Dn].join(", ")}.`);
920
- return t;
921
- }, Go = {
1064
+ if (!xe.has(a))
1065
+ throw new RangeError(`[directory-tree] Unsupported scroll alignment ${JSON.stringify(a)}; expected one of ${[...xe].join(", ")}.`);
1066
+ return a;
1067
+ }, Jt = {
922
1068
  position: "absolute",
923
1069
  width: 1,
924
1070
  height: 1,
@@ -928,230 +1074,230 @@ const Do = (e) => {
928
1074
  overflow: "hidden",
929
1075
  clipPath: "inset(50%)",
930
1076
  whiteSpace: "nowrap"
931
- }, Vo = (e, t, n, r, a) => {
932
- const i = [], l = [];
1077
+ }, qt = (e, a, n, r, o) => {
1078
+ const s = [], c = [];
933
1079
  let d = 0;
934
- const h = (b, N, x) => {
935
- const T = a ? [...b].sort(a) : b;
936
- for (let m = 0; m < T.length; m++) {
937
- const y = T[m], p = m === T.length - 1, w = [...x, p], v = y.children !== void 0, F = v && t(y.absolutePath, y.relativePath);
938
- let P = N, C = x;
939
- r && (P = N - 1, C = x.slice(1)), i.push({ entry: y, indentLevel: P, depth: N, positionInSet: m + 1, setSize: T.length }), n && (P > d && (d = P), l.push({
940
- id: y.absolutePath,
941
- name: y.name,
942
- absolutePath: y.absolutePath,
943
- indentLevel: P,
944
- isLastChild: p,
945
- isDirectory: v,
946
- isExpanded: F,
947
- ancestorIsLast: [...C],
948
- hideLines: r && N === 0
949
- })), v && F && y.children && h(y.children, N + 1, w);
1080
+ const h = (A, M, Z) => {
1081
+ const E = o ? [...A].sort(o) : A;
1082
+ for (let u = 0; u < E.length; u++) {
1083
+ const p = E[u], f = u === E.length - 1, V = [...Z, f], H = p.children !== void 0, T = H && a(p.absolutePath, p.relativePath);
1084
+ let S = M, L = Z;
1085
+ r && (S = M - 1, L = Z.slice(1)), s.push({ entry: p, indentLevel: S, depth: M, positionInSet: u + 1, setSize: E.length }), n && (S > d && (d = S), c.push({
1086
+ id: p.absolutePath,
1087
+ name: p.name,
1088
+ absolutePath: p.absolutePath,
1089
+ indentLevel: S,
1090
+ isLastChild: f,
1091
+ isDirectory: H,
1092
+ isExpanded: T,
1093
+ ancestorIsLast: [...L],
1094
+ hideLines: r && M === 0
1095
+ })), H && T && p.children && h(p.children, M + 1, V);
950
1096
  }
951
1097
  };
952
- return h(e, 0, []), { flatItems: i, lineItems: l, maxIndent: d };
953
- }, Fn = (e, t) => {
1098
+ return h(e, 0, []), { flatItems: s, lineItems: c, maxIndent: d };
1099
+ }, Ne = (e, a) => {
954
1100
  const n = e.length - 1;
955
1101
  if (n <= 0) return 0;
956
- let r = 0, a = n - 1, i = 0;
957
- for (; r <= a; ) {
958
- const l = r + a >>> 1;
959
- e[l] <= t ? (i = l, r = l + 1) : a = l - 1;
1102
+ let r = 0, o = n - 1, s = 0;
1103
+ for (; r <= o; ) {
1104
+ const c = r + o >>> 1;
1105
+ e[c] <= a ? (s = c, r = c + 1) : o = c - 1;
960
1106
  }
961
- return i;
962
- }, Xo = (e, t, n, r, a, i) => {
963
- const l = r?.renderStart ?? Math.max(0, Fn(i, a)), d = t > 0 ? Fn(i, a + t) + n : l + n, h = e > 0 ? Math.min(e - 1, Math.max(l, d)) : l, b = r?.renderEnd ?? h, N = e > 0 ? Math.min(e - 1, b + n) : b;
964
- return { renderStart: l, renderEnd: b, lookaheadEnd: N };
965
- }, Ko = (e, t, n, r) => {
1107
+ return s;
1108
+ }, Qt = (e, a, n, r, o, s) => {
1109
+ const c = r?.renderStart ?? Math.max(0, Ne(s, o)), d = a > 0 ? Ne(s, o + a) + n : c + n, h = e > 0 ? Math.min(e - 1, Math.max(c, d)) : c, A = r?.renderEnd ?? h, M = e > 0 ? Math.min(e - 1, A + n) : A;
1110
+ return { renderStart: c, renderEnd: A, lookaheadEnd: M };
1111
+ }, e8 = (e, a, n, r) => {
966
1112
  if (e.length === 0)
967
1113
  return { segmentsByItem: [], glyphsByItem: [] };
968
- const { indentSize: a, typeIconSize: i, glyphSize: l, originX: d } = r, h = Array.from({ length: e.length }, () => []), b = Array.from({ length: e.length }, () => []), N = d + No(r), x = (m) => m * a + N, T = l / 2 + 2;
969
- for (let m = 0; m < e.length; m++) {
970
- const y = e[m], p = t[m] ?? 0, w = n[m] ?? 0, v = w + p / 2, F = e[m + 1], P = v + i / 2, C = w + p, g = F !== void 0 && F.indentLevel === y.indentLevel + 1 && P < C ? { key: `${y.id}-connector-children`, x1: x(F.indentLevel), y1: P, x2: x(F.indentLevel), y2: C, itemIndex: m } : null;
971
- if (y.hideLines) {
972
- g !== null && (h[m] = [g]);
1114
+ const { indentSize: o, typeIconSize: s, glyphSize: c, originX: d } = r, h = Array.from({ length: e.length }, () => []), A = Array.from({ length: e.length }, () => []), M = d + Nt(r), Z = (u) => u * o + M, E = c / 2 + 2;
1115
+ for (let u = 0; u < e.length; u++) {
1116
+ const p = e[u], f = a[u] ?? 0, V = n[u] ?? 0, H = V + f / 2, T = e[u + 1], S = H + s / 2, L = V + f, v = T !== void 0 && T.indentLevel === p.indentLevel + 1 && S < L ? { key: `${p.id}-connector-children`, x1: Z(T.indentLevel), y1: S, x2: Z(T.indentLevel), y2: L, itemIndex: u } : null;
1117
+ if (p.hideLines) {
1118
+ v !== null && (h[u] = [v]);
973
1119
  continue;
974
1120
  }
975
- const D = [];
976
- for (let O = 0; O < y.indentLevel; O++) {
977
- if (y.ancestorIsLast[O] ?? !1)
1121
+ const N = [];
1122
+ for (let C = 0; C < p.indentLevel; C++) {
1123
+ if (p.ancestorIsLast[C] ?? !1)
978
1124
  continue;
979
1125
  let J = !1;
980
- for (let z = m; z < e.length; z++) {
981
- const Y = e[z];
982
- if (Y.indentLevel > O && Y.ancestorIsLast.length > O && !Y.ancestorIsLast[O]) {
1126
+ for (let $ = u; $ < e.length; $++) {
1127
+ const G = e[$];
1128
+ if (G.indentLevel > C && G.ancestorIsLast.length > C && !G.ancestorIsLast[C]) {
983
1129
  J = !0;
984
1130
  break;
985
1131
  }
986
- if (z > m && Y.indentLevel === O)
1132
+ if ($ > u && G.indentLevel === C)
987
1133
  break;
988
1134
  }
989
1135
  if (J) {
990
- const z = x(O);
991
- D.push({
992
- key: `${y.id}-ancestor-${O}`,
993
- x1: z,
994
- y1: w,
995
- x2: z,
996
- y2: w + p,
997
- itemIndex: m
1136
+ const $ = Z(C);
1137
+ N.push({
1138
+ key: `${p.id}-ancestor-${C}`,
1139
+ x1: $,
1140
+ y1: V,
1141
+ x2: $,
1142
+ y2: V + f,
1143
+ itemIndex: u
998
1144
  });
999
1145
  }
1000
1146
  }
1001
- const $ = x(y.indentLevel);
1002
- m > 0 && D.push({
1003
- key: `${y.id}-connector-top`,
1004
- x1: $,
1005
- y1: w,
1006
- x2: $,
1007
- y2: y.isDirectory ? v - T : v,
1008
- itemIndex: m
1009
- }), !y.isDirectory && y.isLastChild && D.push({
1010
- key: `${y.id}-connector-horizontal`,
1011
- x1: $,
1012
- y1: v,
1013
- x2: d + y.indentLevel * a + de,
1014
- y2: v,
1015
- itemIndex: m
1016
- }), y.isLastChild || (y.isDirectory ? D.push({
1017
- key: `${y.id}-connector-bottom`,
1018
- x1: $,
1019
- y1: v + T,
1020
- x2: $,
1021
- y2: w + p,
1022
- itemIndex: m
1023
- }) : D.push({
1024
- key: `${y.id}-connector-bottom`,
1025
- x1: $,
1026
- y1: v,
1027
- x2: $,
1028
- y2: w + p,
1029
- itemIndex: m
1030
- })), g !== null && D.push(g), h[m] = D, y.isDirectory && (b[m] = [
1147
+ const R = Z(p.indentLevel);
1148
+ u > 0 && N.push({
1149
+ key: `${p.id}-connector-top`,
1150
+ x1: R,
1151
+ y1: V,
1152
+ x2: R,
1153
+ y2: p.isDirectory ? H - E : H,
1154
+ itemIndex: u
1155
+ }), !p.isDirectory && p.isLastChild && N.push({
1156
+ key: `${p.id}-connector-horizontal`,
1157
+ x1: R,
1158
+ y1: H,
1159
+ x2: d + p.indentLevel * o + c0,
1160
+ y2: H,
1161
+ itemIndex: u
1162
+ }), p.isLastChild || (p.isDirectory ? N.push({
1163
+ key: `${p.id}-connector-bottom`,
1164
+ x1: R,
1165
+ y1: H + E,
1166
+ x2: R,
1167
+ y2: V + f,
1168
+ itemIndex: u
1169
+ }) : N.push({
1170
+ key: `${p.id}-connector-bottom`,
1171
+ x1: R,
1172
+ y1: H,
1173
+ x2: R,
1174
+ y2: V + f,
1175
+ itemIndex: u
1176
+ })), v !== null && N.push(v), h[u] = N, p.isDirectory && (A[u] = [
1031
1177
  {
1032
- key: `${y.id}-glyph`,
1033
- itemIndex: m,
1034
- centerX: $,
1035
- centerY: v,
1036
- size: l,
1037
- isExpanded: y.isExpanded
1178
+ key: `${p.id}-glyph`,
1179
+ itemIndex: u,
1180
+ centerX: R,
1181
+ centerY: H,
1182
+ size: c,
1183
+ isExpanded: p.isExpanded
1038
1184
  }
1039
1185
  ]);
1040
1186
  }
1041
- return { segmentsByItem: h, glyphsByItem: b };
1042
- }, rr = Ft(
1187
+ return { segmentsByItem: h, glyphsByItem: A };
1188
+ }, h2 = T1(
1043
1189
  ({
1044
1190
  entry: e,
1045
- indentLevel: t,
1191
+ indentLevel: a,
1046
1192
  originX: n,
1047
1193
  depth: r,
1048
- positionInSet: a,
1049
- setSize: i,
1050
- isSelectedForAria: l,
1194
+ positionInSet: o,
1195
+ setSize: s,
1196
+ isSelectedForAria: c,
1051
1197
  flatIndex: d,
1052
1198
  isActive: h,
1053
- registerRowRef: b,
1054
- onNavigationKeyDown: N,
1055
- onRowFocus: x,
1056
- onRowBlur: T,
1057
- rowHeight: m,
1058
- entryKindDirectory: y,
1059
- entryKindFile: p,
1060
- isDirOpen: w,
1061
- expansion: { toggleDirectory: v, onToggleDirectoryRecursive: F },
1062
- selection: { onEntryClick: P, selectedPath: C, currentPath: g, mode: D = "none", selectedItems: $, onSelectionChange: O },
1199
+ registerRowRef: A,
1200
+ onNavigationKeyDown: M,
1201
+ onRowFocus: Z,
1202
+ onRowBlur: E,
1203
+ rowHeight: u,
1204
+ entryKindDirectory: p,
1205
+ entryKindFile: f,
1206
+ isDirOpen: V,
1207
+ expansion: { toggleDirectory: H, onToggleDirectoryRecursive: T },
1208
+ selection: { onEntryClick: S, selectedPath: L, currentPath: v, mode: N = "none", selectedItems: R, onSelectionChange: C },
1063
1209
  visual: {
1064
- iconOverrides: Q,
1210
+ iconOverrides: i0,
1065
1211
  showExpandIcons: J = !0,
1066
- showDirectoryIcons: z = !0,
1067
- showFileIcons: Y = !0,
1068
- useCanvasExpandIcons: he = !1,
1069
- expandIconSize: W,
1070
- typeIconSize: oe,
1071
- fontSize: me,
1072
- indentSize: V,
1073
- highlightStyles: X,
1074
- entryClassName: Ee,
1075
- entryStyle: be,
1076
- nameClassName: o,
1077
- nameStyle: u,
1078
- directoryNameClassName: I,
1079
- directoryNameStyle: E,
1080
- fileNameClassName: ve,
1081
- fileNameStyle: k,
1082
- expandIconClassName: j,
1083
- expandIconStyle: ee
1212
+ showDirectoryIcons: $ = !0,
1213
+ showFileIcons: G = !0,
1214
+ useCanvasExpandIcons: H0 = !1,
1215
+ expandIconSize: z,
1216
+ typeIconSize: u0,
1217
+ fontSize: V0,
1218
+ indentSize: q,
1219
+ highlightStyles: Q,
1220
+ entryClassName: P0,
1221
+ entryStyle: S0,
1222
+ nameClassName: L0,
1223
+ nameStyle: k,
1224
+ directoryNameClassName: n0,
1225
+ directoryNameStyle: D,
1226
+ fileNameClassName: G0,
1227
+ fileNameStyle: w,
1228
+ expandIconClassName: T0,
1229
+ expandIconStyle: Z0
1084
1230
  }
1085
1231
  }) => {
1086
- Ge(e.style, { option: "entry.style", absolutePath: e.absolutePath });
1087
- const [pe, Ne] = ge(!1), A = e.children !== void 0, Se = A && w(e.absolutePath), Z = e.absolutePath === C, Fe = e.absolutePath === g, se = !A && $?.has(e.absolutePath), te = _((ne) => b(d, ne), [b, d]), ie = A ? void 0 : Bn(e), Te = Kn({ entry: e, isDirectory: A, isExpanded: Se, isItemSelected: !!se, selectionMode: D, onSelectionChange: O, onEntryClick: P, toggleDirectory: v, onToggleDirectoryRecursive: F }), xe = pe ? X?.hoverClassName !== void 0 ? X.hoverClassName : L.entryHover : "", Oe = (() => {
1088
- if (A) {
1089
- if (Z)
1090
- return X?.directorySelectedClassName !== void 0 ? X.directorySelectedClassName : L.entrySelected;
1091
- } else if (Z || se)
1092
- return X?.itemSelectedClassName !== void 0 ? X.itemSelectedClassName : U(Z && L.entrySelected, se && L.entryItemSelected);
1232
+ K0(e.style, { option: "entry.style", absolutePath: e.absolutePath });
1233
+ const [I0, O0] = h0(!1), I = e.children !== void 0, m0 = I && V(e.absolutePath), j = e.absolutePath === L, $0 = e.absolutePath === v, e0 = !I && R?.has(e.absolutePath), Y = b((X) => A(d, X), [A, d]), r0 = I ? void 0 : Je(e), y0 = a2({ entry: e, isDirectory: I, isExpanded: m0, isItemSelected: !!e0, selectionMode: N, onSelectionChange: C, onEntryClick: S, toggleDirectory: H, onToggleDirectoryRecursive: T }), p0 = I0 ? Q?.hoverClassName !== void 0 ? Q.hoverClassName : x.entryHover : "", C0 = (() => {
1234
+ if (I) {
1235
+ if (j)
1236
+ return Q?.directorySelectedClassName !== void 0 ? Q.directorySelectedClassName : x.entrySelected;
1237
+ } else if (j || e0)
1238
+ return Q?.itemSelectedClassName !== void 0 ? Q.itemSelectedClassName : W(j && x.entrySelected, e0 && x.entryItemSelected);
1093
1239
  return "";
1094
- })(), Re = U(L.entry, xe, Oe, Ee, e.className), Ve = U(L.expandIcon, j, (Z || se) && L.expandIconSelected), B = U(L.typeIcon, (Z || se) && L.typeIconSelected), tt = U(L.name, o, A && L.nameDirectory, A && I, !A && ve, (Z || se) && L.nameSelected), pt = Yn({ isDirectory: A, isExpanded: Se, showExpandIcons: J && t >= 0, useCanvasExpandIcons: he, expandIconSize: W }), Xe = (A ? z : Y) ? Gn({ entry: e, isDirectory: A, isExpanded: Se, isSelected: Z, isItemSelected: !!se, extension: ie, mimeType: e.mimeType }, Q, oe) : null, Ke = {
1095
- ...pe ? X?.hoverStyle : {},
1096
- ...A && Z ? X?.directorySelectedStyle : {},
1097
- ...!A && (Z || se) ? X?.itemSelectedStyle : {}
1098
- }, nt = Vn(e.data), yt = { width: oe, height: oe }, je = Wn(me), Pe = n + t * V;
1099
- return /* @__PURE__ */ f.jsxs(
1240
+ })(), A0 = W(x.entry, p0, C0, P0, e.className), Y0 = W(x.expandIcon, T0, (j || e0) && x.expandIconSelected), O = W(x.typeIcon, (j || e0) && x.typeIconSelected), t1 = W(x.name, L0, I && x.nameDirectory, I && n0, !I && G0, (j || e0) && x.nameSelected), f1 = qe({ isDirectory: I, isExpanded: m0, showExpandIcons: J && a >= 0, useCanvasExpandIcons: H0, expandIconSize: z }), X0 = (I ? $ : G) ? Qe({ entry: e, isDirectory: I, isExpanded: m0, isSelected: j, isItemSelected: !!e0, extension: r0, mimeType: e.mimeType }, i0, u0) : null, U0 = {
1241
+ ...I0 ? Q?.hoverStyle : {},
1242
+ ...I && j ? Q?.directorySelectedStyle : {},
1243
+ ...!I && (j || e0) ? Q?.itemSelectedStyle : {}
1244
+ }, a1 = e2(e.data), p1 = { width: u0, height: u0 }, x0 = Ue(V0), M0 = n + a * q;
1245
+ return /* @__PURE__ */ b0(
1100
1246
  "div",
1101
1247
  {
1102
- className: Re,
1248
+ className: A0,
1103
1249
  style: {
1104
- ...je,
1105
- ...Ke,
1106
- ...be,
1250
+ ...x0,
1251
+ ...U0,
1252
+ ...S0,
1107
1253
  ...e.style,
1108
1254
  // 箱の性質はホストのスタイルの後に書く。スプレッドは値が undefined のキーも写し、React はそれを空にするため、
1109
1255
  // 前に書くと検査が通す { height: undefined } が行の高さを消す
1110
- paddingLeft: `${Math.max(0, Pe)}px`,
1111
- transform: Pe < 0 ? `translateX(${Pe}px)` : void 0,
1112
- width: Pe < 0 ? `calc(100% + ${-Pe}px)` : void 0,
1113
- height: `${m}px`
1256
+ paddingLeft: `${Math.max(0, M0)}px`,
1257
+ transform: M0 < 0 ? `translateX(${M0}px)` : void 0,
1258
+ width: M0 < 0 ? `calc(100% + ${-M0}px)` : void 0,
1259
+ height: `${u}px`
1114
1260
  },
1115
- ...nt,
1116
- "data-entry-type": A ? "directory" : "file",
1117
- "data-entry-expanded": A ? String(Se) : void 0,
1118
- "data-entry-selected": Z ? "true" : void 0,
1119
- "data-entry-item-selected": se ? "true" : void 0,
1120
- onClick: Te,
1121
- onMouseEnter: () => Ne(!0),
1122
- onMouseLeave: () => Ne(!1),
1123
- onFocus: (ne) => x(d, e.absolutePath, ne.currentTarget),
1124
- onBlur: (ne) => T(e.absolutePath, ne.currentTarget),
1125
- ref: te,
1126
- onKeyDown: (ne) => {
1127
- if (ne.key === "Enter" || ne.key === " ") {
1128
- ne.preventDefault(), ne.repeat || Te(ne);
1261
+ ...a1,
1262
+ "data-entry-type": I ? "directory" : "file",
1263
+ "data-entry-expanded": I ? String(m0) : void 0,
1264
+ "data-entry-selected": j ? "true" : void 0,
1265
+ "data-entry-item-selected": e0 ? "true" : void 0,
1266
+ onClick: y0,
1267
+ onMouseEnter: () => O0(!0),
1268
+ onMouseLeave: () => O0(!1),
1269
+ onFocus: (X) => Z(d, e.absolutePath, X.currentTarget),
1270
+ onBlur: (X) => E(e.absolutePath, X.currentTarget),
1271
+ ref: Y,
1272
+ onKeyDown: (X) => {
1273
+ if (X.key === "Enter" || X.key === " ") {
1274
+ X.preventDefault(), X.repeat || y0(X);
1129
1275
  return;
1130
1276
  }
1131
- N(ne, d);
1277
+ M(X, d);
1132
1278
  },
1133
1279
  tabIndex: h ? 0 : -1,
1134
1280
  role: "treeitem",
1135
- "aria-expanded": A ? Se : void 0,
1281
+ "aria-expanded": I ? m0 : void 0,
1136
1282
  "aria-level": r + 1,
1137
- "aria-posinset": a,
1138
- "aria-setsize": i,
1139
- "aria-selected": D === "none" ? void 0 : l,
1140
- "aria-current": Fe ? "page" : void 0,
1141
- "aria-label": `${e.name} (${A ? y : p})`,
1283
+ "aria-posinset": o,
1284
+ "aria-setsize": s,
1285
+ "aria-selected": N === "none" ? void 0 : c,
1286
+ "aria-current": $0 ? "page" : void 0,
1287
+ "aria-label": `${e.name} (${I ? p : f})`,
1142
1288
  children: [
1143
- (J || he) && /* @__PURE__ */ f.jsx("span", { className: Ve, style: { ...ee, width: de, height: de }, children: pt }),
1144
- (A ? z : Y) && /* @__PURE__ */ f.jsx("span", { className: B, style: yt, children: Xe }),
1145
- /* @__PURE__ */ f.jsx(
1289
+ (J || H0) && /* @__PURE__ */ m("span", { className: Y0, style: { ...Z0, width: c0, height: c0 }, children: f1 }),
1290
+ (I ? $ : G) && /* @__PURE__ */ m("span", { className: O, style: p1, children: X0 }),
1291
+ /* @__PURE__ */ m(
1146
1292
  "span",
1147
1293
  {
1148
- className: tt,
1294
+ className: t1,
1149
1295
  style: {
1150
- ...je,
1151
- ...u,
1152
- ...A ? E : k
1296
+ ...x0,
1297
+ ...k,
1298
+ ...I ? D : w
1153
1299
  },
1154
- "data-entry-type": A ? "directory" : "file",
1300
+ "data-entry-type": I ? "directory" : "file",
1155
1301
  "data-entry-role": "name",
1156
1302
  children: e.label ?? e.name
1157
1303
  }
@@ -1160,646 +1306,646 @@ const Do = (e) => {
1160
1306
  }
1161
1307
  );
1162
1308
  },
1163
- (e, t) => {
1164
- if (e.entry !== t.entry) return !1;
1165
- const n = e.entry.children !== void 0, r = t.entry.children !== void 0, a = n && e.isDirOpen(e.entry.absolutePath), i = r && t.isDirOpen(t.entry.absolutePath);
1166
- return e.indentLevel === t.indentLevel && e.originX === t.originX && // 位置情報は aria として描画されるため、変化したら再描画が必要
1167
- e.depth === t.depth && e.positionInSet === t.positionInSet && e.setSize === t.setSize && e.isSelectedForAria === t.isSelectedForAria && e.flatIndex === t.flatIndex && e.isActive === t.isActive && e.rowHeight === t.rowHeight && // 種別語はアクセシブルネームとして描画されるため、ロケール / 上書きの変更で再描画が必要
1168
- e.entryKindDirectory === t.entryKindDirectory && e.entryKindFile === t.entryKindFile && a === i && e.selection.selectedPath === t.selection.selectedPath && e.selection.currentPath === t.selection.currentPath && e.selection.mode === t.selection.mode && e.selection.selectedItems === t.selection.selectedItems && e.visual.iconOverrides === t.visual.iconOverrides && e.visual.showExpandIcons === t.visual.showExpandIcons && e.visual.showDirectoryIcons === t.visual.showDirectoryIcons && e.visual.showFileIcons === t.visual.showFileIcons && e.visual.useCanvasExpandIcons === t.visual.useCanvasExpandIcons && e.visual.expandIconSize === t.visual.expandIconSize && e.visual.typeIconSize === t.visual.typeIconSize && e.visual.fontSize === t.visual.fontSize && e.visual.indentSize === t.visual.indentSize && e.visual.highlightStyles === t.visual.highlightStyles && e.visual.entryClassName === t.visual.entryClassName && e.visual.entryStyle === t.visual.entryStyle && e.visual.nameClassName === t.visual.nameClassName && e.visual.nameStyle === t.visual.nameStyle && e.visual.directoryNameClassName === t.visual.directoryNameClassName && e.visual.directoryNameStyle === t.visual.directoryNameStyle && e.visual.fileNameClassName === t.visual.fileNameClassName && e.visual.fileNameStyle === t.visual.fileNameStyle && e.visual.expandIconClassName === t.visual.expandIconClassName && e.visual.expandIconStyle === t.visual.expandIconStyle;
1309
+ (e, a) => {
1310
+ if (e.entry !== a.entry) return !1;
1311
+ const n = e.entry.children !== void 0, r = a.entry.children !== void 0, o = n && e.isDirOpen(e.entry.absolutePath), s = r && a.isDirOpen(a.entry.absolutePath);
1312
+ return e.indentLevel === a.indentLevel && e.originX === a.originX && // 位置情報は aria として描画されるため、変化したら再描画が必要
1313
+ e.depth === a.depth && e.positionInSet === a.positionInSet && e.setSize === a.setSize && e.isSelectedForAria === a.isSelectedForAria && e.flatIndex === a.flatIndex && e.isActive === a.isActive && e.rowHeight === a.rowHeight && // 種別語はアクセシブルネームとして描画されるため、ロケール / 上書きの変更で再描画が必要
1314
+ e.entryKindDirectory === a.entryKindDirectory && e.entryKindFile === a.entryKindFile && o === s && e.selection.selectedPath === a.selection.selectedPath && e.selection.currentPath === a.selection.currentPath && e.selection.mode === a.selection.mode && e.selection.selectedItems === a.selection.selectedItems && e.visual.iconOverrides === a.visual.iconOverrides && e.visual.showExpandIcons === a.visual.showExpandIcons && e.visual.showDirectoryIcons === a.visual.showDirectoryIcons && e.visual.showFileIcons === a.visual.showFileIcons && e.visual.useCanvasExpandIcons === a.visual.useCanvasExpandIcons && e.visual.expandIconSize === a.visual.expandIconSize && e.visual.typeIconSize === a.visual.typeIconSize && e.visual.fontSize === a.visual.fontSize && e.visual.indentSize === a.visual.indentSize && e.visual.highlightStyles === a.visual.highlightStyles && e.visual.entryClassName === a.visual.entryClassName && e.visual.entryStyle === a.visual.entryStyle && e.visual.nameClassName === a.visual.nameClassName && e.visual.nameStyle === a.visual.nameStyle && e.visual.directoryNameClassName === a.visual.directoryNameClassName && e.visual.directoryNameStyle === a.visual.directoryNameStyle && e.visual.fileNameClassName === a.visual.fileNameClassName && e.visual.fileNameStyle === a.visual.fileNameStyle && e.visual.expandIconClassName === a.visual.expandIconClassName && e.visual.expandIconStyle === a.visual.expandIconStyle;
1169
1315
  }
1170
1316
  );
1171
- rr.displayName = "DirectoryEntryItem";
1172
- const or = (e) => {
1173
- const t = [];
1317
+ h2.displayName = "DirectoryEntryItem";
1318
+ const u2 = (e) => {
1319
+ const a = [];
1174
1320
  if (e.children)
1175
1321
  for (const n of e.children)
1176
- n.type === "directory" && (t.push(n.absolutePath), t.push(...or(n)));
1177
- return t;
1178
- }, es = ({
1322
+ n.type === "directory" && (a.push(n.absolutePath), a.push(...u2(n)));
1323
+ return a;
1324
+ }, o8 = ({
1179
1325
  entries: e,
1180
- expansion: { toggle: t, isExpanded: n, expandMultiple: r, collapseMultiple: a, isPending: i, alwaysExpanded: l = !1, doubleClickAction: d = "recursive" },
1181
- selection: { onEntryClick: h, selectedPath: b, currentPath: N, mode: x = "none", selectedItems: T, onSelectionChange: m },
1326
+ expansion: { toggle: a, isExpanded: n, expandMultiple: r, collapseMultiple: o, isPending: s, alwaysExpanded: c = !1, doubleClickAction: d = "recursive" },
1327
+ selection: { onEntryClick: h, selectedPath: A, currentPath: M, mode: Z = "none", selectedItems: E, onSelectionChange: u },
1182
1328
  visual: {
1183
- className: y,
1184
- style: p,
1185
- ariaLabel: w,
1186
- ariaLabelledBy: v,
1187
- lineColor: F = zn,
1188
- showTreeLines: P = !0,
1189
- showExpandIcons: C = !0,
1190
- showDirectoryIcons: g = !0,
1191
- showFileIcons: D = !0,
1192
- iconOverrides: $,
1193
- expandIconSize: O,
1194
- typeIconSize: Q,
1329
+ className: p,
1330
+ style: f,
1331
+ ariaLabel: V,
1332
+ ariaLabelledBy: H,
1333
+ lineColor: T = Ye,
1334
+ showTreeLines: S = !0,
1335
+ showExpandIcons: L = !0,
1336
+ showDirectoryIcons: v = !0,
1337
+ showFileIcons: N = !0,
1338
+ iconOverrides: R,
1339
+ expandIconSize: C,
1340
+ typeIconSize: i0,
1195
1341
  fontSize: J,
1196
- indentSize: z,
1197
- itemHeight: Y = Ot,
1198
- removeRootIndent: he = !1,
1199
- highlightStyles: W,
1200
- entryClassName: oe,
1201
- entryStyle: me,
1202
- nameClassName: V,
1203
- nameStyle: X,
1204
- directoryNameClassName: Ee,
1205
- directoryNameStyle: be,
1206
- fileNameClassName: o,
1207
- fileNameStyle: u,
1208
- expandIconClassName: I,
1209
- expandIconStyle: E
1342
+ indentSize: $,
1343
+ itemHeight: G = x1,
1344
+ removeRootIndent: H0 = !1,
1345
+ highlightStyles: z,
1346
+ entryClassName: u0,
1347
+ entryStyle: V0,
1348
+ nameClassName: q,
1349
+ nameStyle: Q,
1350
+ directoryNameClassName: P0,
1351
+ directoryNameStyle: S0,
1352
+ fileNameClassName: L0,
1353
+ fileNameStyle: k,
1354
+ expandIconClassName: n0,
1355
+ expandIconStyle: D
1210
1356
  } = {},
1211
- virtualScroll: ve,
1212
- grid: k,
1213
- sort: j,
1214
- locale: ee,
1215
- labels: pe,
1216
- ref: Ne
1357
+ virtualScroll: G0,
1358
+ grid: w,
1359
+ sort: T0,
1360
+ locale: Z0,
1361
+ labels: I0,
1362
+ ref: O0
1217
1363
  }) => {
1218
- const A = Mn(ee), Se = M(() => vo(ee, pe), [ee, pe]), Z = Yo(So(Se)), { entryKindDirectory: Fe, entryKindFile: se } = Se, te = M(() => xo({ indentSize: z, typeIconSize: Q, fontSize: J }), [z, Q, J]);
1219
- M(() => {
1220
- Ge(me, { option: "visual.entryStyle" }), Ge(W?.hoverStyle, { option: "visual.highlightStyles.hoverStyle" }), Ge(W?.directorySelectedStyle, { option: "visual.highlightStyles.directorySelectedStyle" }), Ge(W?.itemSelectedStyle, { option: "visual.highlightStyles.itemSelectedStyle" }), lo(E, { option: "visual.expandIconStyle" });
1221
- }, [me, W, E]);
1222
- const ie = k !== void 0, Te = pr(Ho, Wo, Bo), xe = G(null), Oe = G(null), Re = G(null), [Ve, B] = ge(0), [tt, pt] = ge(0), [Xe, Ke] = ge(0), [nt, yt] = ge(null), {
1223
- overscanCount: je = 15,
1224
- className: Pe,
1225
- background: ne,
1226
- onScroll: zt,
1227
- onRangeChange: Ht,
1228
- onScrollAdjust: Wt,
1229
- liveRegion: Bt,
1230
- initialScrollIndex: Yt,
1231
- initialScrollOffset: Me,
1232
- initialScrollAnchor: Gt,
1233
- callbackThrottleMs: Vt = 5,
1234
- contentInsets: Xt,
1235
- onItemFocus: Kt,
1236
- viewportHeightOverride: le,
1237
- scrollBarOptions: gt,
1238
- behaviorOptions: Ut,
1239
- preserveScrollAnchor: Jt = !1,
1240
- getItemKey: sr,
1364
+ const I = Re(Z0), m0 = F(() => wt(Z0, I0), [Z0, I0]), j = Ut(bt(m0)), { entryKindDirectory: $0, entryKindFile: e0 } = m0, Y = F(() => It({ indentSize: $, typeIconSize: i0, fontSize: J }), [$, i0, J]);
1365
+ F(() => {
1366
+ K0(V0, { option: "visual.entryStyle" }), K0(z?.hoverStyle, { option: "visual.highlightStyles.hoverStyle" }), K0(z?.directorySelectedStyle, { option: "visual.highlightStyles.directorySelectedStyle" }), K0(z?.itemSelectedStyle, { option: "visual.highlightStyles.itemSelectedStyle" }), pt(D, { option: "visual.expandIconStyle" });
1367
+ }, [V0, z, D]);
1368
+ const r0 = w !== void 0, y0 = S2(Gt, Yt, Xt), p0 = _(null), C0 = _(null), A0 = _(null), [Y0, O] = h0(0), [t1, f1] = h0(0), [X0, U0] = h0(0), [a1, p1] = h0(null), {
1369
+ overscanCount: x0 = 15,
1370
+ className: M0,
1371
+ background: X,
1372
+ onScroll: $1,
1373
+ onRangeChange: D1,
1374
+ onScrollAdjust: _1,
1375
+ liveRegion: z1,
1376
+ initialScrollIndex: B1,
1377
+ initialScrollOffset: D0,
1378
+ initialScrollAnchor: W1,
1379
+ callbackThrottleMs: j1 = 5,
1380
+ contentInsets: K1,
1381
+ onItemFocus: G1,
1382
+ viewportHeightOverride: l0,
1383
+ scrollBarOptions: A1,
1384
+ behaviorOptions: Y1,
1385
+ preserveScrollAnchor: X1 = !1,
1386
+ getItemKey: m2,
1241
1387
  // 素通しの pass-through。型で受け付けているものは実際に転送する
1242
- testId: Zt,
1243
- contentProps: bt
1244
- } = ve ?? {}, qt = M(
1245
- () => ie ? { ...bt, role: "rowgroup" } : {
1246
- ...bt,
1388
+ testId: U1,
1389
+ contentProps: v1
1390
+ } = G0 ?? {}, J1 = F(
1391
+ () => r0 ? { ...v1, role: "rowgroup" } : {
1392
+ ...v1,
1247
1393
  role: "tree",
1248
- "aria-label": v ? void 0 : w,
1249
- "aria-labelledby": v,
1250
- "aria-multiselectable": x === "multiple" ? !0 : void 0,
1251
- "aria-busy": i ? !0 : void 0
1394
+ "aria-label": H ? void 0 : V,
1395
+ "aria-labelledby": H,
1396
+ "aria-multiselectable": Z === "multiple" ? !0 : void 0,
1397
+ "aria-busy": s ? !0 : void 0
1252
1398
  },
1253
- [ie, bt, w, v, x, i]
1254
- ), Qt = M(() => ({ ...Ut, enableKeyboardNavigation: !1 }), [Ut]), [rt, en] = ge(typeof Me == "number" ? Me : 0), vt = G(typeof Me == "number" ? Me : 0), tn = _(
1255
- (s, c) => {
1256
- vt.current = s, en(s), zt?.(s, c);
1399
+ [r0, v1, V, H, Z, s]
1400
+ ), q1 = F(() => ({ ...Y1, enableKeyboardNavigation: !1 }), [Y1]), [n1, Q1] = h0(typeof D0 == "number" ? D0 : 0), g1 = _(typeof D0 == "number" ? D0 : 0), ee = b(
1401
+ (l, i) => {
1402
+ g1.current = l, Q1(l), $1?.(l, i);
1257
1403
  },
1258
- [zt]
1259
- ), nn = _(
1260
- (s) => {
1261
- const { renderingStartIndex: c, renderingEndIndex: S } = s;
1262
- yt((R) => R && R.renderStart === c && R.renderEnd === S ? R : { renderStart: c, renderEnd: S }), Ht?.(s);
1404
+ [$1]
1405
+ ), te = b(
1406
+ (l) => {
1407
+ const { renderingStartIndex: i, renderingEndIndex: g } = l;
1408
+ p1((y) => y && y.renderStart === i && y.renderEnd === g ? y : { renderStart: i, renderEnd: g }), D1?.(l);
1263
1409
  },
1264
- [Ht]
1410
+ [D1]
1265
1411
  );
1266
- $e(() => {
1267
- zo();
1268
- }, []), $e(() => {
1269
- const s = xe.current, c = ie ? Oe.current : s, S = () => {
1270
- if (s) {
1271
- const H = s.clientWidth;
1272
- pt((q) => Math.abs(q - H) > 1 ? H : q);
1412
+ k0(() => {
1413
+ Kt();
1414
+ }, []), k0(() => {
1415
+ const l = p0.current, i = r0 ? C0.current : l, g = () => {
1416
+ if (l) {
1417
+ const P = l.clientWidth;
1418
+ f1((K) => Math.abs(K - P) > 1 ? P : K);
1273
1419
  }
1274
- if (typeof le == "number")
1275
- B((H) => Math.abs(H - le) > 1 ? le : H);
1276
- else if (c) {
1277
- const H = c.clientHeight;
1278
- B((q) => Math.abs(q - H) > 1 ? H : q);
1420
+ if (typeof l0 == "number")
1421
+ O((P) => Math.abs(P - l0) > 1 ? l0 : P);
1422
+ else if (i) {
1423
+ const P = i.clientHeight;
1424
+ O((K) => Math.abs(K - P) > 1 ? P : K);
1279
1425
  }
1280
1426
  };
1281
- if (!(s || c)) return B(0);
1282
- S();
1283
- const R = new ResizeObserver(S);
1284
- return s && R.observe(s), c && c !== s && R.observe(c), () => R.disconnect();
1285
- }, [le, ie]);
1286
- const ze = typeof le == "number" ? le : Ve, we = _((s) => l || (Te ? n(s) : !1), [Te, n, l]), rn = U(L.container, i && L.containerPending, y), on = M(
1427
+ if (!(l || i)) return O(0);
1428
+ g();
1429
+ const y = new ResizeObserver(g);
1430
+ return l && y.observe(l), i && i !== l && y.observe(i), () => y.disconnect();
1431
+ }, [l0, r0]);
1432
+ const _0 = typeof l0 == "number" ? l0 : Y0, f0 = b((l) => c || (y0 ? n(l) : !1), [y0, n, c]), ae = W(x.container, s && x.containerPending, p), ne = F(
1287
1433
  () => ({
1288
- ...Mo,
1289
- ...p ?? {},
1290
- ...typeof le == "number" ? { height: le, minHeight: le } : {}
1434
+ ...jt,
1435
+ ...f ?? {},
1436
+ ...typeof l0 == "number" ? { height: l0, minHeight: l0 } : {}
1291
1437
  }),
1292
- [p, le]
1293
- ), St = _(
1294
- (s, c) => {
1295
- const S = [s.absolutePath, ...or(s)], R = c || d;
1296
- if (S.every((ke) => we(ke))) return a(S);
1297
- if (S.every((ke) => !we(ke)) || R === "recursive") return r(S);
1298
- if (R === "toggle") return a(S);
1299
- console.warn(`[DirectoryTree] Unknown double click action: ${R}. No action taken.`);
1438
+ [f, l0]
1439
+ ), H1 = b(
1440
+ (l, i) => {
1441
+ const g = [l.absolutePath, ...u2(l)], y = i || d;
1442
+ if (g.every((g0) => f0(g0))) return o(g);
1443
+ if (g.every((g0) => !f0(g0)) || y === "recursive") return r(g);
1444
+ if (y === "toggle") return o(g);
1445
+ console.warn(`[DirectoryTree] Unknown double click action: ${y}. No action taken.`);
1300
1446
  },
1301
- [we, r, a, d]
1302
- ), wt = ie ? !1 : he, { flatItems: Ae, lineItems: Et, maxIndent: sn } = M(() => Vo(e, we, P, wt, j), [e, we, P, wt, j]), ot = Ro({ indentSize: te.indentSize, removeRootIndent: wt, hasExpandBox: C || P }), ye = M(() => P ? ko(te, O, ot) : null, [P, te, O, ot]), K = M(() => Ae.map((s, c) => ({ ...s, rowHeight: Io(Y, s.entry, c) })), [Ae, Y]), _e = M(() => K.map((s) => s.rowHeight), [K]), Le = M(() => {
1303
- const s = new Array(_e.length + 1);
1304
- s[0] = 0;
1305
- for (let c = 0; c < _e.length; c++)
1306
- s[c + 1] = s[c] + _e[c];
1307
- return s;
1308
- }, [_e]), an = _((s) => K[s]?.rowHeight ?? Ot, [K]), ar = _((s) => K[s]?.entry.absolutePath ?? s, [K]), ln = sr ?? ar, He = b ?? null, xt = N ?? null, [cn, Ue] = ge(() => ({ selectedPath: He, selectionGeneration: 0, anchor: null })), Rt = Ln(cn, He);
1309
- Rt !== cn && Ue((s) => Ln(s, He));
1310
- const st = M(() => Do(Ae), [Ae]), We = M(() => Fo(st, Rt), [st, Rt]), Je = G(/* @__PURE__ */ new Map()), at = G(null), [it] = ge(wo), Ze = G(null), [ir, dn] = ge(!0), It = G(Ae);
1311
- It.current = Ae;
1312
- const un = G(we);
1313
- un.current = we;
1314
- const kt = G(t);
1315
- kt.current = t;
1316
- const fn = G(st);
1317
- fn.current = st;
1318
- const Nt = G(We);
1319
- Nt.current = We;
1320
- const hn = G(Kt);
1321
- hn.current = Kt;
1322
- const De = _((s) => {
1323
- const c = Re.current;
1324
- return !c || c.getViewportSize() <= 0 ? !1 : (c.scrollToIndex(s, { align: "nearest" }), !0);
1325
- }, []), Ie = _(
1326
- (s) => {
1327
- const c = Je.current.get(s);
1328
- if (c === void 0) {
1329
- Ze.current = s, De(s) || (Ze.current = null);
1447
+ [f0, r, o, d]
1448
+ ), V1 = r0 ? !1 : H0, { flatItems: F0, lineItems: Z1, maxIndent: re } = F(() => qt(e, f0, S, V1, T0), [e, f0, S, V1, T0]), r1 = Ct({ indentSize: Y.indentSize, removeRootIndent: V1, hasExpandBox: L || S }), d0 = F(() => S ? Ft(Y, C, r1) : null, [S, Y, C, r1]), B = F(() => F0.map((l, i) => ({ ...l, rowHeight: xt(G, l.entry, i) })), [F0, G]), E0 = F(() => B.map((l) => l.rowHeight), [B]), N0 = F(() => {
1449
+ const l = new Array(E0.length + 1);
1450
+ l[0] = 0;
1451
+ for (let i = 0; i < E0.length; i++)
1452
+ l[i + 1] = l[i] + E0[i];
1453
+ return l;
1454
+ }, [E0]), le = b((l) => B[l]?.rowHeight ?? x1, [B]), f2 = b((l) => B[l]?.entry.absolutePath ?? l, [B]), oe = m2 ?? f2, z0 = A ?? null, y1 = M ?? null, [ce, J0] = h0(() => ({ selectedPath: z0, selectionGeneration: 0, anchor: null })), M1 = Ce(ce, z0);
1455
+ M1 !== ce && J0((l) => Ce(l, z0));
1456
+ const l1 = F(() => zt(F0), [F0]), B0 = F(() => Wt(l1, M1), [l1, M1]), q0 = _(/* @__PURE__ */ new Map()), o1 = _(null), [c1] = h0(St), Q0 = _(null), [p2, se] = h0(!0), E1 = _(F0);
1457
+ E1.current = F0;
1458
+ const ie = _(f0);
1459
+ ie.current = f0;
1460
+ const w1 = _(a);
1461
+ w1.current = a;
1462
+ const de = _(l1);
1463
+ de.current = l1;
1464
+ const b1 = _(B0);
1465
+ b1.current = B0;
1466
+ const he = _(G1);
1467
+ he.current = G1;
1468
+ const R0 = b((l) => {
1469
+ const i = A0.current;
1470
+ return !i || i.getViewportSize() <= 0 ? !1 : (i.scrollToIndex(l, { align: "nearest" }), !0);
1471
+ }, []), v0 = b(
1472
+ (l) => {
1473
+ const i = q0.current.get(l);
1474
+ if (i === void 0) {
1475
+ Q0.current = l, R0(l) || (Q0.current = null);
1330
1476
  return;
1331
1477
  }
1332
- Ze.current = null, De(s), c.focus({ preventScroll: !0 });
1478
+ Q0.current = null, R0(l), i.focus({ preventScroll: !0 });
1333
1479
  },
1334
- [De]
1335
- ), mn = _((s, c) => {
1336
- if (c)
1337
- Je.current.set(s, c), Ze.current === s ? (Ze.current = null, c.focus({ preventScroll: !0 })) : c.contains(c.ownerDocument.activeElement) && Ue((S) => S.anchor === null ? S : { ...S, anchor: { ...S.anchor, focused: !0 } });
1480
+ [R0]
1481
+ ), ue = b((l, i) => {
1482
+ if (i)
1483
+ q0.current.set(l, i), Q0.current === l ? (Q0.current = null, i.focus({ preventScroll: !0 })) : i.contains(i.ownerDocument.activeElement) && J0((g) => g.anchor === null ? g : { ...g, anchor: { ...g.anchor, focused: !0 } });
1338
1484
  else {
1339
- const S = Je.current.get(s);
1340
- Je.current.delete(s), S?.contains(S.ownerDocument.activeElement) && Ue((R) => R.anchor === null ? R : { ...R, anchor: { ...R.anchor, focused: !1 } });
1485
+ const g = q0.current.get(l);
1486
+ q0.current.delete(l), g?.contains(g.ownerDocument.activeElement) && J0((y) => y.anchor === null ? y : { ...y, anchor: { ...y.anchor, focused: !1 } });
1341
1487
  }
1342
- s === Nt.current && dn(c !== null);
1488
+ l === b1.current && se(i !== null);
1343
1489
  }, []);
1344
- Rn(() => {
1345
- dn(Je.current.has(We));
1346
- }, [We]);
1347
- const Tt = _(
1348
- (s, c, S) => {
1349
- const R = at.current === S;
1350
- at.current = null, R || (Ue((H) => $o(H, c)), it.landedOn(S) || De(s)), hn.current?.(s);
1490
+ Me(() => {
1491
+ se(q0.current.has(B0));
1492
+ }, [B0]);
1493
+ const S1 = b(
1494
+ (l, i, g) => {
1495
+ const y = o1.current === g;
1496
+ o1.current = null, y || (J0((P) => Bt(P, i)), c1.landedOn(g) || R0(l)), he.current?.(l);
1351
1497
  },
1352
- [De, it]
1353
- ), lt = _((s) => it.mark(s.nativeEvent), [it]), Pt = _((s, c) => {
1354
- const { ownerDocument: S } = c;
1355
- if (!S.hasFocus() && c.contains(S.activeElement)) {
1356
- at.current = c;
1498
+ [R0, c1]
1499
+ ), s1 = b((l) => c1.mark(l.nativeEvent), [c1]), L1 = b((l, i) => {
1500
+ const { ownerDocument: g } = i;
1501
+ if (!g.hasFocus() && i.contains(g.activeElement)) {
1502
+ o1.current = i;
1357
1503
  return;
1358
1504
  }
1359
- at.current = null, Ue((R) => R.anchor !== null && R.anchor.path === s ? { ...R, anchor: { ...R.anchor, focused: !1 } } : R);
1360
- }, []), lr = _(() => Ie(Nt.current), [Ie]), _t = _(
1361
- (s, c) => {
1362
- const S = $n(c), R = It.current.length;
1363
- if (!Number.isInteger(s) || s < 0 || s >= R)
1364
- throw new RangeError(`[directory-tree] scrollToIndex: ${String(s)} is not a row index (${R === 0 ? "the tree has no rows" : `expected an integer in 0..${String(R - 1)}`}).`);
1365
- if (S === "nearest") {
1366
- De(s);
1505
+ o1.current = null, J0((y) => y.anchor !== null && y.anchor.path === l ? { ...y, anchor: { ...y.anchor, focused: !1 } } : y);
1506
+ }, []), A2 = b(() => v0(b1.current), [v0]), I1 = b(
1507
+ (l, i) => {
1508
+ const g = Fe(i), y = E1.current.length;
1509
+ if (!Number.isInteger(l) || l < 0 || l >= y)
1510
+ throw new RangeError(`[directory-tree] scrollToIndex: ${String(l)} is not a row index (${y === 0 ? "the tree has no rows" : `expected an integer in 0..${String(y - 1)}`}).`);
1511
+ if (g === "nearest") {
1512
+ R0(l);
1367
1513
  return;
1368
1514
  }
1369
- Re.current?.scrollToIndex(s, { align: S });
1515
+ A0.current?.scrollToIndex(l, { align: g });
1370
1516
  },
1371
- [De]
1517
+ [R0]
1372
1518
  );
1373
- yr(
1374
- Ne,
1519
+ L2(
1520
+ O0,
1375
1521
  () => ({
1376
- scrollToIndex: _t,
1377
- scrollToPath: (s, c) => {
1378
- $n(c);
1379
- const S = fn.current.get(s);
1380
- return S === void 0 ? !1 : (_t(S, c), !0);
1522
+ scrollToIndex: I1,
1523
+ scrollToPath: (l, i) => {
1524
+ Fe(i);
1525
+ const g = de.current.get(l);
1526
+ return g === void 0 ? !1 : (I1(g, i), !0);
1381
1527
  },
1382
- getScrollAnchor: () => Re.current?.getScrollAnchor() ?? null
1528
+ getScrollAnchor: () => A0.current?.getScrollAnchor() ?? null
1383
1529
  }),
1384
- [_t]
1530
+ [I1]
1385
1531
  );
1386
- const pn = _(
1387
- (s, c) => {
1388
- if (s.altKey || s.ctrlKey || s.metaKey)
1532
+ const me = b(
1533
+ (l, i) => {
1534
+ if (l.altKey || l.ctrlKey || l.metaKey)
1389
1535
  return;
1390
- const S = It.current, R = S.length - 1;
1391
- if (R < 0) return;
1392
- const H = S[c], q = H?.entry.children !== void 0, ke = q && un.current(H.entry.absolutePath);
1393
- switch (s.key) {
1536
+ const g = E1.current, y = g.length - 1;
1537
+ if (y < 0) return;
1538
+ const P = g[i], K = P?.entry.children !== void 0, g0 = K && ie.current(P.entry.absolutePath);
1539
+ switch (l.key) {
1394
1540
  case "ArrowDown":
1395
- s.preventDefault(), Ie(Math.min(c + 1, R));
1541
+ l.preventDefault(), v0(Math.min(i + 1, y));
1396
1542
  break;
1397
1543
  case "ArrowUp":
1398
- s.preventDefault(), Ie(Math.max(c - 1, 0));
1544
+ l.preventDefault(), v0(Math.max(i - 1, 0));
1399
1545
  break;
1400
1546
  case "Home":
1401
- s.preventDefault(), Ie(0);
1547
+ l.preventDefault(), v0(0);
1402
1548
  break;
1403
1549
  case "End":
1404
- s.preventDefault(), Ie(R);
1550
+ l.preventDefault(), v0(y);
1405
1551
  break;
1406
1552
  case "ArrowRight":
1407
- s.preventDefault(), q && !ke ? kt.current(H.entry.absolutePath) : q && c < R && S[c + 1].depth > H.depth && Ie(c + 1);
1553
+ l.preventDefault(), K && !g0 ? w1.current(P.entry.absolutePath) : K && i < y && g[i + 1].depth > P.depth && v0(i + 1);
1408
1554
  break;
1409
1555
  case "ArrowLeft": {
1410
- if (s.preventDefault(), q && ke) {
1411
- kt.current(H.entry.absolutePath);
1556
+ if (l.preventDefault(), K && g0) {
1557
+ w1.current(P.entry.absolutePath);
1412
1558
  break;
1413
1559
  }
1414
- const hr = H?.depth ?? 0;
1415
- for (let ft = c - 1; ft >= 0; ft--)
1416
- if (S[ft].depth < hr) {
1417
- Ie(ft);
1560
+ const Z2 = P?.depth ?? 0;
1561
+ for (let u1 = i - 1; u1 >= 0; u1--)
1562
+ if (g[u1].depth < Z2) {
1563
+ v0(u1);
1418
1564
  break;
1419
1565
  }
1420
1566
  break;
1421
1567
  }
1422
1568
  }
1423
1569
  },
1424
- [Ie]
1425
- ), ct = M(() => ye === null || Et.length === 0 ? { segmentsByItem: [], glyphsByItem: [] } : Ko(Et, _e, Le, ye), [Et, _e, Le, ye]), dt = M(() => ye === null || e.length === 0 ? 0 : ye.originX + sn * ye.indentSize + de + ye.typeIconSize, [e.length, sn, ye]), { renderStart: yn, renderEnd: gn, lookaheadEnd: bn } = M(
1426
- () => Xo(K.length, ze, je, nt, rt, Le),
1427
- [K.length, ze, je, nt, rt, Le]
1428
- ), Ct = M(() => ye === null || dt <= 0 || ze <= 0 || ct.segmentsByItem.length === 0 ? null : /* @__PURE__ */ f.jsx("div", { className: "pointer-events-none absolute inset-0 z-1", "aria-hidden": "true", children: /* @__PURE__ */ f.jsx("div", { className: "absolute top-0 left-0", style: { width: dt, height: ze }, children: /* @__PURE__ */ f.jsx(
1429
- nr,
1570
+ [v0]
1571
+ ), i1 = F(() => d0 === null || Z1.length === 0 ? { segmentsByItem: [], glyphsByItem: [] } : e8(Z1, E0, N0, d0), [Z1, E0, N0, d0]), d1 = F(() => d0 === null || e.length === 0 ? 0 : d0.originX + re * d0.indentSize + c0 + d0.typeIconSize, [e.length, re, d0]), { renderStart: fe, renderEnd: pe, lookaheadEnd: Ae } = F(
1572
+ () => Qt(B.length, _0, x0, a1, n1, N0),
1573
+ [B.length, _0, x0, a1, n1, N0]
1574
+ ), C1 = F(() => d0 === null || d1 <= 0 || _0 <= 0 || i1.segmentsByItem.length === 0 ? null : /* @__PURE__ */ m("div", { className: "pointer-events-none absolute inset-0 z-1", "aria-hidden": "true", children: /* @__PURE__ */ m("div", { className: "absolute top-0 left-0", style: { width: d1, height: _0 }, children: /* @__PURE__ */ m(
1575
+ d2,
1430
1576
  {
1431
- segmentsByItem: ct.segmentsByItem,
1432
- glyphsByItem: ct.glyphsByItem,
1433
- itemHeight: _e[0] ?? Ot,
1434
- width: dt,
1435
- viewportHeight: ze,
1436
- scrollPosition: rt,
1437
- color: F,
1438
- expandGlyphColor: F,
1439
- expandGlyphSize: ye.glyphSize,
1440
- renderStartIndex: yn,
1441
- renderEndIndex: gn,
1442
- lookaheadEndIndex: bn
1577
+ segmentsByItem: i1.segmentsByItem,
1578
+ glyphsByItem: i1.glyphsByItem,
1579
+ itemHeight: E0[0] ?? x1,
1580
+ width: d1,
1581
+ viewportHeight: _0,
1582
+ scrollPosition: n1,
1583
+ color: T,
1584
+ expandGlyphColor: T,
1585
+ expandGlyphSize: d0.glyphSize,
1586
+ renderStartIndex: fe,
1587
+ renderEndIndex: pe,
1588
+ lookaheadEndIndex: Ae
1443
1589
  }
1444
- ) }) }), [dt, ze, yn, gn, bn, rt, ct, F, ye, _e]), vn = _((s) => K[s], [K]), Sn = G(null);
1445
- Rn(() => {
1446
- const s = Sn.current;
1447
- if (Sn.current = { items: K, offsets: Le }, !Jt || !s || s.items === K)
1590
+ ) }) }), [d1, _0, fe, pe, Ae, n1, i1, T, d0, E0]), ve = b((l) => B[l], [B]), ge = _(null);
1591
+ Me(() => {
1592
+ const l = ge.current;
1593
+ if (ge.current = { items: B, offsets: N0 }, !X1 || !l || l.items === B)
1448
1594
  return;
1449
- const c = Re.current, S = c?.getScrollPosition(), R = typeof S == "number" && S >= 0 ? S : vt.current, H = Po(s.items, s.offsets, R);
1450
- if (!H)
1595
+ const i = A0.current, g = i?.getScrollPosition(), y = typeof g == "number" && g >= 0 ? g : g1.current, P = kt(l.items, l.offsets, y);
1596
+ if (!P)
1451
1597
  return;
1452
- const q = _o(H, K, Le);
1453
- if (q === null || Math.abs(q - R) < 1)
1598
+ const K = Pt(P, B, N0);
1599
+ if (K === null || Math.abs(K - y) < 1)
1454
1600
  return;
1455
- const ke = c ? c.scrollTo(q) : q;
1456
- vt.current = ke, en(ke);
1457
- }, [K, Le, Jt]);
1458
- const Ce = k?.columns, Be = k?.scrollBarWidth ?? gt?.width ?? er, re = M(() => Ce ? po({ measuredWidth: tt, columns: Ce, scrollBarWidth: Be }) : null, [Ce, tt, Be]), ut = M(() => Ce ? mo(Ce) : "", [Ce]), cr = M(() => k?.showFooter && Ce ? yo(e) : [], [k?.showFooter, Ce, e]), Ye = re?.maxHScroll ?? 0;
1459
- $e(() => {
1460
- Ke((s) => jt(s, Ye));
1461
- }, [Ye]);
1462
- const wn = _((s) => Ke((c) => jt(c + s, Ye)), [Ye]), En = M(
1601
+ const g0 = i ? i.scrollTo(K) : K;
1602
+ g1.current = g0, Q1(g0);
1603
+ }, [B, N0, X1]);
1604
+ const w0 = w?.columns, W0 = w?.scrollBarWidth ?? A1?.width ?? s2, U = F(() => w0 ? Zt({ measuredWidth: t1, columns: w0, scrollBarWidth: W0 }) : null, [w0, t1, W0]), h1 = F(() => w0 ? Vt(w0) : "", [w0]), v2 = F(() => w?.showFooter && w0 ? yt(e) : [], [w?.showFooter, w0, e]), j0 = U?.maxHScroll ?? 0;
1605
+ k0(() => {
1606
+ U0((l) => F1(l, j0));
1607
+ }, [j0]);
1608
+ const He = b((l) => U0((i) => F1(i + l, j0)), [j0]), Ve = F(
1463
1609
  () => ({
1464
- iconOverrides: $,
1465
- showExpandIcons: C,
1466
- showDirectoryIcons: g,
1467
- showFileIcons: D,
1468
- useCanvasExpandIcons: P,
1469
- expandIconSize: O,
1470
- typeIconSize: te.typeIconSize,
1471
- fontSize: te.fontSize,
1472
- indentSize: te.indentSize,
1473
- highlightStyles: W,
1474
- expandIconClassName: I,
1475
- expandIconStyle: E
1610
+ iconOverrides: R,
1611
+ showExpandIcons: L,
1612
+ showDirectoryIcons: v,
1613
+ showFileIcons: N,
1614
+ useCanvasExpandIcons: S,
1615
+ expandIconSize: C,
1616
+ typeIconSize: Y.typeIconSize,
1617
+ fontSize: Y.fontSize,
1618
+ indentSize: Y.indentSize,
1619
+ highlightStyles: z,
1620
+ expandIconClassName: n0,
1621
+ expandIconStyle: D
1476
1622
  }),
1477
- [$, C, g, D, P, O, te, W, I, E]
1478
- ), xn = M(
1479
- () => /* @__PURE__ */ f.jsx(
1480
- vr,
1623
+ [R, L, v, N, S, C, Y, z, n0, D]
1624
+ ), Ze = F(
1625
+ () => /* @__PURE__ */ m(
1626
+ E2,
1481
1627
  {
1482
- ref: Re,
1483
- itemCount: K.length,
1484
- getItem: vn,
1485
- getItemHeight: an,
1486
- getItemKey: ln,
1487
- testId: Zt,
1488
- contentProps: qt,
1489
- locale: A,
1490
- labels: Z,
1491
- viewportSize: typeof le == "number" ? le : void 0,
1492
- overscanCount: je,
1493
- onScroll: tn,
1494
- onRangeChange: nn,
1495
- onScrollAdjust: Wt,
1496
- liveRegion: Bt,
1497
- className: Pe,
1498
- onWheelHorizontal: ie ? wn : void 0,
1499
- background: /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
1500
- ie && re ? (
1628
+ ref: A0,
1629
+ itemCount: B.length,
1630
+ getItem: ve,
1631
+ getItemHeight: le,
1632
+ getItemKey: oe,
1633
+ testId: U1,
1634
+ contentProps: J1,
1635
+ locale: I,
1636
+ labels: j,
1637
+ viewportSize: typeof l0 == "number" ? l0 : void 0,
1638
+ overscanCount: x0,
1639
+ onScroll: ee,
1640
+ onRangeChange: te,
1641
+ onScrollAdjust: _1,
1642
+ liveRegion: z1,
1643
+ className: M0,
1644
+ onWheelHorizontal: r0 ? He : void 0,
1645
+ background: /* @__PURE__ */ b0(y2, { children: [
1646
+ r0 && U ? (
1501
1647
  // Clip the connector-line canvas to the frozen name column so deep trees never bleed into the numeric region.
1502
- /* @__PURE__ */ f.jsx("div", { className: "pointer-events-none absolute top-0 left-0 z-1 h-full overflow-hidden", style: { width: re.nameWidth }, "aria-hidden": "true", children: Ct })
1503
- ) : Ct,
1504
- ne
1648
+ /* @__PURE__ */ m("div", { className: "pointer-events-none absolute top-0 left-0 z-1 h-full overflow-hidden", style: { width: U.nameWidth }, "aria-hidden": "true", children: C1 })
1649
+ ) : C1,
1650
+ X
1505
1651
  ] }),
1506
- initialScrollIndex: Yt,
1507
- initialScrollOffset: Me,
1508
- initialScrollAnchor: Gt,
1509
- callbackThrottleMs: Vt,
1510
- contentInsets: Xt,
1511
- scrollBarOptions: gt,
1512
- behaviorOptions: Qt,
1513
- children: (s, c) => s ? ie && k && re ? /* @__PURE__ */ f.jsx(
1514
- Zn,
1652
+ initialScrollIndex: B1,
1653
+ initialScrollOffset: D0,
1654
+ initialScrollAnchor: W1,
1655
+ callbackThrottleMs: j1,
1656
+ contentInsets: K1,
1657
+ scrollBarOptions: A1,
1658
+ behaviorOptions: q1,
1659
+ children: (l, i) => l ? r0 && w && U ? /* @__PURE__ */ m(
1660
+ l2,
1515
1661
  {
1516
- entry: s.entry,
1517
- indentLevel: s.indentLevel,
1518
- positionInSet: s.positionInSet,
1519
- setSize: s.setSize,
1520
- rowIndex: c + (k.showHeader ?? !0 ? 2 : 1),
1521
- flatIndex: c,
1522
- onRowFocus: Tt,
1523
- onRowBlur: Pt,
1524
- isSelectedForAria: !!T?.has(s.entry.absolutePath),
1525
- rowHeight: s.rowHeight,
1526
- isDirOpen: we,
1527
- columns: k.columns,
1528
- numericTemplate: ut,
1529
- numericTotal: re.numericTotal,
1530
- nameWidth: re.nameWidth,
1531
- rowClassName: k.rowClassName,
1532
- selection: { onEntryClick: h, selectedPath: He, currentPath: xt, mode: x, selectedItems: T, onSelectionChange: m },
1533
- expansion: { toggleDirectory: t, onToggleDirectoryRecursive: St },
1534
- visual: En
1662
+ entry: l.entry,
1663
+ indentLevel: l.indentLevel,
1664
+ positionInSet: l.positionInSet,
1665
+ setSize: l.setSize,
1666
+ rowIndex: i + (w.showHeader ?? !0 ? 2 : 1),
1667
+ flatIndex: i,
1668
+ onRowFocus: S1,
1669
+ onRowBlur: L1,
1670
+ isSelectedForAria: !!E?.has(l.entry.absolutePath),
1671
+ rowHeight: l.rowHeight,
1672
+ isDirOpen: f0,
1673
+ columns: w.columns,
1674
+ numericTemplate: h1,
1675
+ numericTotal: U.numericTotal,
1676
+ nameWidth: U.nameWidth,
1677
+ rowClassName: w.rowClassName,
1678
+ selection: { onEntryClick: h, selectedPath: z0, currentPath: y1, mode: Z, selectedItems: E, onSelectionChange: u },
1679
+ expansion: { toggleDirectory: a, onToggleDirectoryRecursive: H1 },
1680
+ visual: Ve
1535
1681
  },
1536
- s.entry.absolutePath
1537
- ) : /* @__PURE__ */ f.jsx(
1538
- rr,
1682
+ l.entry.absolutePath
1683
+ ) : /* @__PURE__ */ m(
1684
+ h2,
1539
1685
  {
1540
- entry: s.entry,
1541
- indentLevel: s.indentLevel,
1542
- originX: ot,
1543
- depth: s.depth,
1544
- positionInSet: s.positionInSet,
1545
- setSize: s.setSize,
1546
- isSelectedForAria: !!T?.has(s.entry.absolutePath),
1547
- flatIndex: c,
1548
- isActive: c === We,
1549
- registerRowRef: mn,
1550
- onNavigationKeyDown: pn,
1551
- onRowFocus: Tt,
1552
- onRowBlur: Pt,
1553
- rowHeight: s.rowHeight,
1554
- entryKindDirectory: Fe,
1555
- entryKindFile: se,
1556
- isDirOpen: we,
1557
- expansion: { toggleDirectory: t, onToggleDirectoryRecursive: St },
1558
- selection: { onEntryClick: h, selectedPath: He, currentPath: xt, mode: x, selectedItems: T, onSelectionChange: m },
1686
+ entry: l.entry,
1687
+ indentLevel: l.indentLevel,
1688
+ originX: r1,
1689
+ depth: l.depth,
1690
+ positionInSet: l.positionInSet,
1691
+ setSize: l.setSize,
1692
+ isSelectedForAria: !!E?.has(l.entry.absolutePath),
1693
+ flatIndex: i,
1694
+ isActive: i === B0,
1695
+ registerRowRef: ue,
1696
+ onNavigationKeyDown: me,
1697
+ onRowFocus: S1,
1698
+ onRowBlur: L1,
1699
+ rowHeight: l.rowHeight,
1700
+ entryKindDirectory: $0,
1701
+ entryKindFile: e0,
1702
+ isDirOpen: f0,
1703
+ expansion: { toggleDirectory: a, onToggleDirectoryRecursive: H1 },
1704
+ selection: { onEntryClick: h, selectedPath: z0, currentPath: y1, mode: Z, selectedItems: E, onSelectionChange: u },
1559
1705
  visual: {
1560
- iconOverrides: $,
1561
- showExpandIcons: C,
1562
- showDirectoryIcons: g,
1563
- showFileIcons: D,
1564
- useCanvasExpandIcons: P,
1565
- expandIconSize: O,
1566
- typeIconSize: te.typeIconSize,
1567
- fontSize: te.fontSize,
1568
- indentSize: te.indentSize,
1569
- highlightStyles: W,
1570
- entryClassName: oe,
1571
- entryStyle: me,
1572
- nameClassName: V,
1573
- nameStyle: X,
1574
- directoryNameClassName: Ee,
1575
- directoryNameStyle: be,
1576
- fileNameClassName: o,
1577
- fileNameStyle: u,
1578
- expandIconClassName: I,
1579
- expandIconStyle: E
1706
+ iconOverrides: R,
1707
+ showExpandIcons: L,
1708
+ showDirectoryIcons: v,
1709
+ showFileIcons: N,
1710
+ useCanvasExpandIcons: S,
1711
+ expandIconSize: C,
1712
+ typeIconSize: Y.typeIconSize,
1713
+ fontSize: Y.fontSize,
1714
+ indentSize: Y.indentSize,
1715
+ highlightStyles: z,
1716
+ entryClassName: u0,
1717
+ entryStyle: V0,
1718
+ nameClassName: q,
1719
+ nameStyle: Q,
1720
+ directoryNameClassName: P0,
1721
+ directoryNameStyle: S0,
1722
+ fileNameClassName: L0,
1723
+ fileNameStyle: k,
1724
+ expandIconClassName: n0,
1725
+ expandIconStyle: D
1580
1726
  }
1581
1727
  },
1582
- s.entry.absolutePath
1728
+ l.entry.absolutePath
1583
1729
  ) : null
1584
1730
  }
1585
1731
  ),
1586
1732
  [
1587
- K.length,
1588
- vn,
1589
- an,
1590
- ln,
1591
- Zt,
1592
- qt,
1593
- A,
1594
- Z,
1595
- Fe,
1596
- se,
1597
- We,
1598
- mn,
1599
- pn,
1600
- Tt,
1601
- Pt,
1733
+ B.length,
1734
+ ve,
1602
1735
  le,
1603
- je,
1604
- tn,
1605
- nn,
1606
- Wt,
1607
- Bt,
1608
- Pe,
1609
- ie,
1610
- wn,
1611
- re,
1612
- Ct,
1613
- ne,
1614
- Yt,
1615
- Me,
1616
- Gt,
1617
- Vt,
1618
- Xt,
1619
- gt,
1620
- Qt,
1621
- k,
1622
- ut,
1623
- we,
1624
- h,
1625
- He,
1626
- xt,
1627
- x,
1628
- T,
1629
- m,
1630
- t,
1631
- St,
1632
- En,
1633
- $,
1634
- C,
1635
- g,
1636
- D,
1637
- P,
1638
- O,
1639
- te,
1640
- ot,
1641
- W,
1642
1736
  oe,
1737
+ U1,
1738
+ J1,
1739
+ I,
1740
+ j,
1741
+ $0,
1742
+ e0,
1743
+ B0,
1744
+ ue,
1643
1745
  me,
1644
- V,
1746
+ S1,
1747
+ L1,
1748
+ l0,
1749
+ x0,
1750
+ ee,
1751
+ te,
1752
+ _1,
1753
+ z1,
1754
+ M0,
1755
+ r0,
1756
+ He,
1757
+ U,
1758
+ C1,
1645
1759
  X,
1646
- Ee,
1647
- be,
1648
- o,
1760
+ B1,
1761
+ D0,
1762
+ W1,
1763
+ j1,
1764
+ K1,
1765
+ A1,
1766
+ q1,
1767
+ w,
1768
+ h1,
1769
+ f0,
1770
+ h,
1771
+ z0,
1772
+ y1,
1773
+ Z,
1774
+ E,
1649
1775
  u,
1650
- I,
1651
- E
1776
+ a,
1777
+ H1,
1778
+ Ve,
1779
+ R,
1780
+ L,
1781
+ v,
1782
+ N,
1783
+ S,
1784
+ C,
1785
+ Y,
1786
+ r1,
1787
+ z,
1788
+ u0,
1789
+ V0,
1790
+ q,
1791
+ Q,
1792
+ P0,
1793
+ S0,
1794
+ L0,
1795
+ k,
1796
+ n0,
1797
+ D
1652
1798
  ]
1653
1799
  );
1654
- if (!(k && re))
1655
- return /* @__PURE__ */ f.jsxs("div", { ref: xe, className: rn, style: on, onPointerDownCapture: lt, onMouseDownCapture: lt, children: [
1656
- Ae.length > 0 && !ir && // biome-ignore lint/a11y/noNoninteractiveTabindex: 停止点の行が描画窓の外で DOM に無い間だけ Tab を受け、受けた瞬間にその行へ焦点を渡す。これが無いとツリーに Tab で入れない
1800
+ if (!(w && U))
1801
+ return /* @__PURE__ */ b0("div", { ref: p0, className: ae, style: ne, onPointerDownCapture: s1, onMouseDownCapture: s1, children: [
1802
+ F0.length > 0 && !p2 && // biome-ignore lint/a11y/noNoninteractiveTabindex: 停止点の行が描画窓の外で DOM に無い間だけ Tab を受け、受けた瞬間にその行へ焦点を渡す。これが無いとツリーに Tab で入れない
1657
1803
  // biome-ignore lint/a11y/noStaticElementInteractions: 同上 (焦点の受け渡しだけを担い、要素自身は操作の対象ではない)
1658
- /* @__PURE__ */ f.jsx("span", { tabIndex: 0, "data-directory-tree-tab-stop": "", style: Go, onFocus: lr }),
1659
- xn
1804
+ /* @__PURE__ */ m("span", { tabIndex: 0, "data-directory-tree-tab-stop": "", style: Jt, onFocus: A2 }),
1805
+ Ze
1660
1806
  ] });
1661
- const dr = k.showHeader ?? !0, ur = k.showFooter ?? !1, fr = { ...on, "--dt-hscroll": `${Xe}px` };
1662
- return /* @__PURE__ */ f.jsxs(
1807
+ const g2 = w.showHeader ?? !0, H2 = w.showFooter ?? !1, V2 = { ...ne, "--dt-hscroll": `${X0}px` };
1808
+ return /* @__PURE__ */ b0(
1663
1809
  "div",
1664
1810
  {
1665
- ref: xe,
1666
- className: U(rn, "dt-grid"),
1667
- style: fr,
1811
+ ref: p0,
1812
+ className: W(ae, "dt-grid"),
1813
+ style: V2,
1668
1814
  role: "treegrid",
1669
- "aria-label": v ? void 0 : w,
1670
- "aria-labelledby": v,
1671
- "aria-multiselectable": x === "multiple" ? !0 : void 0,
1672
- "aria-busy": i ? !0 : void 0,
1673
- "aria-rowcount": K.length + (k.showHeader ?? !0 ? 1 : 0),
1674
- onPointerDownCapture: lt,
1675
- onMouseDownCapture: lt,
1815
+ "aria-label": H ? void 0 : V,
1816
+ "aria-labelledby": H,
1817
+ "aria-multiselectable": Z === "multiple" ? !0 : void 0,
1818
+ "aria-busy": s ? !0 : void 0,
1819
+ "aria-rowcount": B.length + (w.showHeader ?? !0 ? 1 : 0),
1820
+ onPointerDownCapture: s1,
1821
+ onMouseDownCapture: s1,
1676
1822
  children: [
1677
- dr && // biome-ignore lint/a11y/useSemanticElements: 仮想スクロールの treegrid は絶対配置行を使うため native table 要素にできない。ARIA ロールで意味を提供する
1678
- /* @__PURE__ */ f.jsx("div", { role: "rowgroup", children: /* @__PURE__ */ f.jsx(uo, { columns: k.columns, numericTemplate: ut, numericTotal: re.numericTotal, nameWidth: re.nameWidth, scrollBarWidth: Be, className: k.headerClassName }) }),
1679
- /* @__PURE__ */ f.jsx("div", { ref: Oe, className: "dt-grid-body", children: xn }),
1680
- Ye > 0 && /* @__PURE__ */ f.jsxs("div", { className: "dt-grid-hscrollbar-row", children: [
1681
- /* @__PURE__ */ f.jsx("div", { className: "dt-grid-scrollbar-spacer", style: { width: re.nameWidth }, "aria-hidden": "true" }),
1682
- /* @__PURE__ */ f.jsx(
1683
- Sr,
1823
+ g2 && // biome-ignore lint/a11y/useSemanticElements: 仮想スクロールの treegrid は絶対配置行を使うため native table 要素にできない。ARIA ロールで意味を提供する
1824
+ /* @__PURE__ */ m("div", { role: "rowgroup", children: /* @__PURE__ */ m(vt, { columns: w.columns, numericTemplate: h1, numericTotal: U.numericTotal, nameWidth: U.nameWidth, scrollBarWidth: W0, className: w.headerClassName }) }),
1825
+ /* @__PURE__ */ m("div", { ref: C0, className: "dt-grid-body", children: Ze }),
1826
+ j0 > 0 && /* @__PURE__ */ b0("div", { className: "dt-grid-hscrollbar-row", children: [
1827
+ /* @__PURE__ */ m("div", { className: "dt-grid-scrollbar-spacer", style: { width: U.nameWidth }, "aria-hidden": "true" }),
1828
+ /* @__PURE__ */ m(
1829
+ w2,
1684
1830
  {
1685
1831
  horizontal: !0,
1686
- contentSize: re.numericTotal,
1687
- viewportSize: re.numericVisible,
1688
- scrollPosition: Xe,
1689
- scrollBarWidth: Be,
1690
- locale: A,
1691
- labels: Z,
1692
- onScroll: (s) => {
1693
- const c = typeof s == "function" ? s(Xe) : s, S = jt(c, Ye);
1694
- return Ke(S), S;
1832
+ contentSize: U.numericTotal,
1833
+ viewportSize: U.numericVisible,
1834
+ scrollPosition: X0,
1835
+ scrollBarWidth: W0,
1836
+ locale: I,
1837
+ labels: j,
1838
+ onScroll: (l) => {
1839
+ const i = typeof l == "function" ? l(X0) : l, g = F1(i, j0);
1840
+ return U0(g), g;
1695
1841
  }
1696
1842
  }
1697
1843
  ),
1698
- /* @__PURE__ */ f.jsx("div", { className: "dt-grid-scrollbar-spacer", style: { width: Be }, "aria-hidden": "true" })
1844
+ /* @__PURE__ */ m("div", { className: "dt-grid-scrollbar-spacer", style: { width: W0 }, "aria-hidden": "true" })
1699
1845
  ] }),
1700
- ur && // biome-ignore lint/a11y/useSemanticElements: 同上 (フッタ行も絶対配置レイアウトの一部)
1701
- /* @__PURE__ */ f.jsx("div", { role: "rowgroup", children: /* @__PURE__ */ f.jsx(fo, { columns: k.columns, numericTemplate: ut, numericTotal: re.numericTotal, nameWidth: re.nameWidth, scrollBarWidth: Be, allEntries: cr, className: k.footerClassName }) })
1846
+ H2 && // biome-ignore lint/a11y/useSemanticElements: 同上 (フッタ行も絶対配置レイアウトの一部)
1847
+ /* @__PURE__ */ m("div", { role: "rowgroup", children: /* @__PURE__ */ m(gt, { columns: w.columns, numericTemplate: h1, numericTotal: U.numericTotal, nameWidth: U.nameWidth, scrollBarWidth: W0, allEntries: v2, className: w.footerClassName }) })
1702
1848
  ]
1703
1849
  }
1704
1850
  );
1705
- }, ts = ({ initialExpanded: e = /* @__PURE__ */ new Set(), storageKey: t } = {}) => {
1706
- const [n, r] = gr(), [a, i] = ge(() => {
1707
- if (typeof window < "u" && t)
1851
+ }, c8 = ({ initialExpanded: e = /* @__PURE__ */ new Set(), storageKey: a } = {}) => {
1852
+ const [n, r] = I2(), [o, s] = h0(() => {
1853
+ if (typeof window < "u" && a)
1708
1854
  try {
1709
- const p = window.localStorage.getItem(t);
1710
- if (p) {
1711
- const w = JSON.parse(p);
1712
- return new Set(w);
1855
+ const f = window.localStorage.getItem(a);
1856
+ if (f) {
1857
+ const V = JSON.parse(f);
1858
+ return new Set(V);
1713
1859
  }
1714
- } catch (p) {
1715
- console.error("[useDirectoryTreeState] Error reading from localStorage", p);
1860
+ } catch (f) {
1861
+ console.error("[useDirectoryTreeState] Error reading from localStorage", f);
1716
1862
  }
1717
1863
  return e;
1718
- }), l = _((p) => {
1864
+ }), c = b((f) => {
1719
1865
  r(() => {
1720
- i((w) => {
1721
- const v = new Set(w);
1722
- return p(v), v;
1866
+ s((V) => {
1867
+ const H = new Set(V);
1868
+ return f(H), H;
1723
1869
  });
1724
1870
  });
1725
- }, []), d = _(
1726
- (p, w) => {
1727
- l((v) => {
1728
- for (const F of p)
1729
- w(v, F);
1871
+ }, []), d = b(
1872
+ (f, V) => {
1873
+ c((H) => {
1874
+ for (const T of f)
1875
+ V(H, T);
1730
1876
  });
1731
1877
  },
1732
- [l]
1878
+ [c]
1733
1879
  );
1734
- $e(() => {
1735
- if (t && typeof window < "u")
1880
+ k0(() => {
1881
+ if (a && typeof window < "u")
1736
1882
  try {
1737
- window.localStorage.setItem(t, JSON.stringify(Array.from(a)));
1738
- } catch (p) {
1739
- console.warn(`Error setting localStorage key "${t}":`, p);
1883
+ window.localStorage.setItem(a, JSON.stringify(Array.from(o)));
1884
+ } catch (f) {
1885
+ console.warn(`Error setting localStorage key "${a}":`, f);
1740
1886
  }
1741
- }, [a, t]);
1742
- const h = _(
1743
- (p) => {
1744
- d([p], (w, v) => {
1745
- w.has(v) ? w.delete(v) : w.add(v);
1887
+ }, [o, a]);
1888
+ const h = b(
1889
+ (f) => {
1890
+ d([f], (V, H) => {
1891
+ V.has(H) ? V.delete(H) : V.add(H);
1746
1892
  });
1747
1893
  },
1748
1894
  [d]
1749
- ), b = _(
1750
- (p) => {
1751
- d([p], (w, v) => {
1752
- w.add(v);
1895
+ ), A = b(
1896
+ (f) => {
1897
+ d([f], (V, H) => {
1898
+ V.add(H);
1753
1899
  });
1754
1900
  },
1755
1901
  [d]
1756
- ), N = _(
1757
- (p) => {
1758
- d([p], (w, v) => {
1759
- w.delete(v);
1902
+ ), M = b(
1903
+ (f) => {
1904
+ d([f], (V, H) => {
1905
+ V.delete(H);
1760
1906
  });
1761
1907
  },
1762
1908
  [d]
1763
- ), x = _(
1764
- (p) => {
1765
- d(p, (w, v) => {
1766
- w.delete(v);
1909
+ ), Z = b(
1910
+ (f) => {
1911
+ d(f, (V, H) => {
1912
+ V.delete(H);
1767
1913
  });
1768
1914
  },
1769
1915
  [d]
1770
- ), T = _(
1771
- (p) => {
1772
- d(p, (w, v) => {
1773
- w.add(v);
1916
+ ), E = b(
1917
+ (f) => {
1918
+ d(f, (V, H) => {
1919
+ V.add(H);
1774
1920
  });
1775
1921
  },
1776
1922
  [d]
1777
- ), m = _(() => {
1778
- l((p) => {
1779
- p.clear();
1923
+ ), u = b(() => {
1924
+ c((f) => {
1925
+ f.clear();
1780
1926
  });
1781
- }, [l]), y = _((p) => a.has(p), [a]);
1927
+ }, [c]), p = b((f) => o.has(f), [o]);
1782
1928
  return {
1783
- expanded: a,
1929
+ expanded: o,
1784
1930
  toggle: h,
1785
- expand: b,
1786
- collapse: N,
1787
- collapseMultiple: x,
1788
- expandMultiple: T,
1789
- collapseAll: m,
1790
- isExpanded: y,
1931
+ expand: A,
1932
+ collapse: M,
1933
+ collapseMultiple: Z,
1934
+ expandMultiple: E,
1935
+ collapseAll: u,
1936
+ isExpanded: p,
1791
1937
  isPending: n
1792
1938
  };
1793
1939
  };
1794
1940
  export {
1795
- go as DIRECTORY_TREE_LABEL_CATALOGS,
1796
- jn as DIRECTORY_TREE_LABEL_KEYS,
1797
- es as DirectoryTree,
1798
- oo as EXPAND_ICON_STYLE_PROPERTIES,
1799
- Qo as FILE_ICON_PAIRS,
1800
- Br as MARK_PAIRS,
1801
- ro as ROW_STYLE_PROPERTIES,
1802
- L as directoryTreeClasses,
1803
- vo as resolveDirectoryTreeLabels,
1804
- ts as useDirectoryTreeState
1941
+ Mt as DIRECTORY_TREE_LABEL_CATALOGS,
1942
+ Le as DIRECTORY_TREE_LABEL_KEYS,
1943
+ o8 as DirectoryTree,
1944
+ ht as EXPAND_ICON_STYLE_PROPERTIES,
1945
+ l8 as FILE_ICON_PAIRS,
1946
+ U2 as MARK_PAIRS,
1947
+ dt as ROW_STYLE_PROPERTIES,
1948
+ x as directoryTreeClasses,
1949
+ wt as resolveDirectoryTreeLabels,
1950
+ c8 as useDirectoryTreeState
1805
1951
  };