@guiexpert/solid-table 1.1.60 → 1.1.62

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/index.cjs +10 -10
  2. package/index.js +468 -414
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -1,106 +1,106 @@
1
- const De = (a, e) => a === e, se = Symbol("solid-proxy"), ke = typeof Proxy == "function", ge = {
2
- equals: De
1
+ const ke = (l, e) => l === e, se = Symbol("solid-proxy"), Fe = typeof Proxy == "function", ge = {
2
+ equals: ke
3
3
  };
4
- let Se = xe;
5
- const L = 1, G = 2, ye = {
4
+ let ye = we;
5
+ const L = 1, G = 2, xe = {
6
6
  owned: null,
7
7
  cleanups: null,
8
8
  context: null,
9
9
  owner: null
10
10
  };
11
11
  var R = null;
12
- let ee = null, Fe = null, w = null, M = null, O = null, q = 0;
13
- function Ie(a, e) {
14
- const t = w, s = R, o = a.length === 0, i = e === void 0 ? s : e, r = o ? ye : {
12
+ let ee = null, Ie = null, w = null, M = null, O = null, q = 0;
13
+ function Oe(l, e) {
14
+ const t = w, s = R, o = l.length === 0, i = e === void 0 ? s : e, r = o ? xe : {
15
15
  owned: null,
16
16
  cleanups: null,
17
17
  context: i ? i.context : null,
18
18
  owner: i
19
- }, l = o ? a : () => a(() => Z(() => H(r)));
19
+ }, a = o ? l : () => l(() => Z(() => H(r)));
20
20
  R = r, w = null;
21
21
  try {
22
- return V(l, !0);
22
+ return V(a, !0);
23
23
  } finally {
24
24
  w = t, R = s;
25
25
  }
26
26
  }
27
- function oe(a, e, t) {
28
- const s = ae(a, e, !1, L);
27
+ function oe(l, e, t) {
28
+ const s = le(l, e, !1, L);
29
29
  $(s);
30
30
  }
31
- function Oe(a, e, t) {
32
- Se = Ve;
33
- const s = ae(a, e, !1, L);
31
+ function Le(l, e, t) {
32
+ ye = _e;
33
+ const s = le(l, e, !1, L);
34
34
  s.user = !0, O ? O.push(s) : $(s);
35
35
  }
36
- function Le(a, e, t) {
36
+ function Be(l, e, t) {
37
37
  t = t ? Object.assign({}, ge, t) : ge;
38
- const s = ae(a, e, !0, 0);
39
- return s.observers = null, s.observerSlots = null, s.comparator = t.equals || void 0, $(s), Pe.bind(s);
38
+ const s = le(l, e, !0, 0);
39
+ return s.observers = null, s.observerSlots = null, s.comparator = t.equals || void 0, $(s), We.bind(s);
40
40
  }
41
- function Z(a) {
42
- if (w === null) return a();
41
+ function Z(l) {
42
+ if (w === null) return l();
43
43
  const e = w;
44
44
  w = null;
45
45
  try {
46
- return a();
46
+ return l();
47
47
  } finally {
48
48
  w = e;
49
49
  }
50
50
  }
51
- function Be(a) {
52
- Oe(() => Z(a));
51
+ function Pe(l) {
52
+ Le(() => Z(l));
53
53
  }
54
- function Pe() {
54
+ function We() {
55
55
  if (this.sources && this.state)
56
56
  if (this.state === L) $(this);
57
57
  else {
58
- const a = M;
59
- M = null, V(() => U(this), !1), M = a;
58
+ const l = M;
59
+ M = null, V(() => U(this), !1), M = l;
60
60
  }
61
61
  if (w) {
62
- const a = this.observers ? this.observers.length : 0;
63
- w.sources ? (w.sources.push(this), w.sourceSlots.push(a)) : (w.sources = [this], w.sourceSlots = [a]), this.observers ? (this.observers.push(w), this.observerSlots.push(w.sources.length - 1)) : (this.observers = [w], this.observerSlots = [w.sources.length - 1]);
62
+ const l = this.observers ? this.observers.length : 0;
63
+ w.sources ? (w.sources.push(this), w.sourceSlots.push(l)) : (w.sources = [this], w.sourceSlots = [l]), this.observers ? (this.observers.push(w), this.observerSlots.push(w.sources.length - 1)) : (this.observers = [w], this.observerSlots = [w.sources.length - 1]);
64
64
  }
65
65
  return this.value;
66
66
  }
67
- function We(a, e, t) {
68
- let s = a.value;
69
- return (!a.comparator || !a.comparator(s, e)) && (a.value = e, a.observers && a.observers.length && V(() => {
70
- for (let o = 0; o < a.observers.length; o += 1) {
71
- const i = a.observers[o], r = ee && ee.running;
72
- r && ee.disposed.has(i), (r ? !i.tState : !i.state) && (i.pure ? M.push(i) : O.push(i), i.observers && we(i)), r || (i.state = L);
67
+ function He(l, e, t) {
68
+ let s = l.value;
69
+ return (!l.comparator || !l.comparator(s, e)) && (l.value = e, l.observers && l.observers.length && V(() => {
70
+ for (let o = 0; o < l.observers.length; o += 1) {
71
+ const i = l.observers[o], r = ee && ee.running;
72
+ r && ee.disposed.has(i), (r ? !i.tState : !i.state) && (i.pure ? M.push(i) : O.push(i), i.observers && ve(i)), r || (i.state = L);
73
73
  }
74
74
  if (M.length > 1e6)
75
75
  throw M = [], new Error();
76
76
  }, !1)), e;
77
77
  }
78
- function $(a) {
79
- if (!a.fn) return;
80
- H(a);
78
+ function $(l) {
79
+ if (!l.fn) return;
80
+ H(l);
81
81
  const e = q;
82
- He(
83
- a,
84
- a.value,
82
+ $e(
83
+ l,
84
+ l.value,
85
85
  e
86
86
  );
87
87
  }
88
- function He(a, e, t) {
88
+ function $e(l, e, t) {
89
89
  let s;
90
90
  const o = R, i = w;
91
- w = R = a;
91
+ w = R = l;
92
92
  try {
93
- s = a.fn(e);
93
+ s = l.fn(e);
94
94
  } catch (r) {
95
- return a.pure && (a.state = L, a.owned && a.owned.forEach(H), a.owned = null), a.updatedAt = t + 1, ve(r);
95
+ return l.pure && (l.state = L, l.owned && l.owned.forEach(H), l.owned = null), l.updatedAt = t + 1, Ce(r);
96
96
  } finally {
97
97
  w = i, R = o;
98
98
  }
99
- (!a.updatedAt || a.updatedAt <= t) && (a.updatedAt != null && "observers" in a ? We(a, s) : a.value = s, a.updatedAt = t);
99
+ (!l.updatedAt || l.updatedAt <= t) && (l.updatedAt != null && "observers" in l ? He(l, s) : l.value = s, l.updatedAt = t);
100
100
  }
101
- function ae(a, e, t, s = L, o) {
101
+ function le(l, e, t, s = L, o) {
102
102
  const i = {
103
- fn: a,
103
+ fn: l,
104
104
  state: s,
105
105
  updatedAt: null,
106
106
  owned: null,
@@ -112,361 +112,361 @@ function ae(a, e, t, s = L, o) {
112
112
  context: R ? R.context : null,
113
113
  pure: t
114
114
  };
115
- return R === null || R !== ye && (R.owned ? R.owned.push(i) : R.owned = [i]), i;
116
- }
117
- function z(a) {
118
- if (a.state === 0) return;
119
- if (a.state === G) return U(a);
120
- if (a.suspense && Z(a.suspense.inFallback)) return a.suspense.effects.push(a);
121
- const e = [a];
122
- for (; (a = a.owner) && (!a.updatedAt || a.updatedAt < q); )
123
- a.state && e.push(a);
115
+ return R === null || R !== xe && (R.owned ? R.owned.push(i) : R.owned = [i]), i;
116
+ }
117
+ function z(l) {
118
+ if (l.state === 0) return;
119
+ if (l.state === G) return U(l);
120
+ if (l.suspense && Z(l.suspense.inFallback)) return l.suspense.effects.push(l);
121
+ const e = [l];
122
+ for (; (l = l.owner) && (!l.updatedAt || l.updatedAt < q); )
123
+ l.state && e.push(l);
124
124
  for (let t = e.length - 1; t >= 0; t--)
125
- if (a = e[t], a.state === L)
126
- $(a);
127
- else if (a.state === G) {
125
+ if (l = e[t], l.state === L)
126
+ $(l);
127
+ else if (l.state === G) {
128
128
  const s = M;
129
- M = null, V(() => U(a, e[0]), !1), M = s;
129
+ M = null, V(() => U(l, e[0]), !1), M = s;
130
130
  }
131
131
  }
132
- function V(a, e) {
133
- if (M) return a();
132
+ function V(l, e) {
133
+ if (M) return l();
134
134
  let t = !1;
135
135
  e || (M = []), O ? t = !0 : O = [], q++;
136
136
  try {
137
- const s = a();
138
- return $e(t), s;
137
+ const s = l();
138
+ return Ve(t), s;
139
139
  } catch (s) {
140
- t || (O = null), M = null, ve(s);
140
+ t || (O = null), M = null, Ce(s);
141
141
  }
142
142
  }
143
- function $e(a) {
144
- if (M && (xe(M), M = null), a) return;
143
+ function Ve(l) {
144
+ if (M && (we(M), M = null), l) return;
145
145
  const e = O;
146
- O = null, e.length && V(() => Se(e), !1);
146
+ O = null, e.length && V(() => ye(e), !1);
147
147
  }
148
- function xe(a) {
149
- for (let e = 0; e < a.length; e++) z(a[e]);
148
+ function we(l) {
149
+ for (let e = 0; e < l.length; e++) z(l[e]);
150
150
  }
151
- function Ve(a) {
151
+ function _e(l) {
152
152
  let e, t = 0;
153
- for (e = 0; e < a.length; e++) {
154
- const s = a[e];
155
- s.user ? a[t++] = s : z(s);
153
+ for (e = 0; e < l.length; e++) {
154
+ const s = l[e];
155
+ s.user ? l[t++] = s : z(s);
156
156
  }
157
- for (e = 0; e < t; e++) z(a[e]);
157
+ for (e = 0; e < t; e++) z(l[e]);
158
158
  }
159
- function U(a, e) {
160
- a.state = 0;
161
- for (let t = 0; t < a.sources.length; t += 1) {
162
- const s = a.sources[t];
159
+ function U(l, e) {
160
+ l.state = 0;
161
+ for (let t = 0; t < l.sources.length; t += 1) {
162
+ const s = l.sources[t];
163
163
  if (s.sources) {
164
164
  const o = s.state;
165
165
  o === L ? s !== e && (!s.updatedAt || s.updatedAt < q) && z(s) : o === G && U(s, e);
166
166
  }
167
167
  }
168
168
  }
169
- function we(a) {
170
- for (let e = 0; e < a.observers.length; e += 1) {
171
- const t = a.observers[e];
172
- t.state || (t.state = G, t.pure ? M.push(t) : O.push(t), t.observers && we(t));
169
+ function ve(l) {
170
+ for (let e = 0; e < l.observers.length; e += 1) {
171
+ const t = l.observers[e];
172
+ t.state || (t.state = G, t.pure ? M.push(t) : O.push(t), t.observers && ve(t));
173
173
  }
174
174
  }
175
- function H(a) {
175
+ function H(l) {
176
176
  let e;
177
- if (a.sources)
178
- for (; a.sources.length; ) {
179
- const t = a.sources.pop(), s = a.sourceSlots.pop(), o = t.observers;
177
+ if (l.sources)
178
+ for (; l.sources.length; ) {
179
+ const t = l.sources.pop(), s = l.sourceSlots.pop(), o = t.observers;
180
180
  if (o && o.length) {
181
181
  const i = o.pop(), r = t.observerSlots.pop();
182
182
  s < o.length && (i.sourceSlots[r] = s, o[s] = i, t.observerSlots[s] = r);
183
183
  }
184
184
  }
185
- if (a.tOwned) {
186
- for (e = a.tOwned.length - 1; e >= 0; e--) H(a.tOwned[e]);
187
- delete a.tOwned;
185
+ if (l.tOwned) {
186
+ for (e = l.tOwned.length - 1; e >= 0; e--) H(l.tOwned[e]);
187
+ delete l.tOwned;
188
188
  }
189
- if (a.owned) {
190
- for (e = a.owned.length - 1; e >= 0; e--) H(a.owned[e]);
191
- a.owned = null;
189
+ if (l.owned) {
190
+ for (e = l.owned.length - 1; e >= 0; e--) H(l.owned[e]);
191
+ l.owned = null;
192
192
  }
193
- if (a.cleanups) {
194
- for (e = a.cleanups.length - 1; e >= 0; e--) a.cleanups[e]();
195
- a.cleanups = null;
193
+ if (l.cleanups) {
194
+ for (e = l.cleanups.length - 1; e >= 0; e--) l.cleanups[e]();
195
+ l.cleanups = null;
196
196
  }
197
- a.state = 0;
197
+ l.state = 0;
198
198
  }
199
- function _e(a) {
200
- return a instanceof Error ? a : new Error(typeof a == "string" ? a : "Unknown error", {
201
- cause: a
199
+ function Ne(l) {
200
+ return l instanceof Error ? l : new Error(typeof l == "string" ? l : "Unknown error", {
201
+ cause: l
202
202
  });
203
203
  }
204
- function ve(a, e = R) {
205
- throw _e(a);
204
+ function Ce(l, e = R) {
205
+ throw Ne(l);
206
206
  }
207
207
  function N() {
208
208
  return !0;
209
209
  }
210
- const Ne = {
211
- get(a, e, t) {
212
- return e === se ? t : a.get(e);
210
+ const Ge = {
211
+ get(l, e, t) {
212
+ return e === se ? t : l.get(e);
213
213
  },
214
- has(a, e) {
215
- return e === se ? !0 : a.has(e);
214
+ has(l, e) {
215
+ return e === se ? !0 : l.has(e);
216
216
  },
217
217
  set: N,
218
218
  deleteProperty: N,
219
- getOwnPropertyDescriptor(a, e) {
219
+ getOwnPropertyDescriptor(l, e) {
220
220
  return {
221
221
  configurable: !0,
222
222
  enumerable: !0,
223
223
  get() {
224
- return a.get(e);
224
+ return l.get(e);
225
225
  },
226
226
  set: N,
227
227
  deleteProperty: N
228
228
  };
229
229
  },
230
- ownKeys(a) {
231
- return a.keys();
230
+ ownKeys(l) {
231
+ return l.keys();
232
232
  }
233
233
  };
234
- function te(a) {
235
- return (a = typeof a == "function" ? a() : a) ? a : {};
234
+ function te(l) {
235
+ return (l = typeof l == "function" ? l() : l) ? l : {};
236
236
  }
237
- function Ge() {
238
- for (let a = 0, e = this.length; a < e; ++a) {
239
- const t = this[a]();
237
+ function ze() {
238
+ for (let l = 0, e = this.length; l < e; ++l) {
239
+ const t = this[l]();
240
240
  if (t !== void 0) return t;
241
241
  }
242
242
  }
243
- function Ce(...a) {
243
+ function Ee(...l) {
244
244
  let e = !1;
245
- for (let r = 0; r < a.length; r++) {
246
- const l = a[r];
247
- e = e || !!l && se in l, a[r] = typeof l == "function" ? (e = !0, Le(l)) : l;
245
+ for (let r = 0; r < l.length; r++) {
246
+ const a = l[r];
247
+ e = e || !!a && se in a, l[r] = typeof a == "function" ? (e = !0, Be(a)) : a;
248
248
  }
249
- if (ke && e)
249
+ if (Fe && e)
250
250
  return new Proxy(
251
251
  {
252
252
  get(r) {
253
- for (let l = a.length - 1; l >= 0; l--) {
254
- const n = te(a[l])[r];
253
+ for (let a = l.length - 1; a >= 0; a--) {
254
+ const n = te(l[a])[r];
255
255
  if (n !== void 0) return n;
256
256
  }
257
257
  },
258
258
  has(r) {
259
- for (let l = a.length - 1; l >= 0; l--)
260
- if (r in te(a[l])) return !0;
259
+ for (let a = l.length - 1; a >= 0; a--)
260
+ if (r in te(l[a])) return !0;
261
261
  return !1;
262
262
  },
263
263
  keys() {
264
264
  const r = [];
265
- for (let l = 0; l < a.length; l++)
266
- r.push(...Object.keys(te(a[l])));
265
+ for (let a = 0; a < l.length; a++)
266
+ r.push(...Object.keys(te(l[a])));
267
267
  return [...new Set(r)];
268
268
  }
269
269
  },
270
- Ne
270
+ Ge
271
271
  );
272
272
  const t = {}, s = /* @__PURE__ */ Object.create(null);
273
- for (let r = a.length - 1; r >= 0; r--) {
274
- const l = a[r];
275
- if (!l) continue;
276
- const n = Object.getOwnPropertyNames(l);
273
+ for (let r = l.length - 1; r >= 0; r--) {
274
+ const a = l[r];
275
+ if (!a) continue;
276
+ const n = Object.getOwnPropertyNames(a);
277
277
  for (let d = n.length - 1; d >= 0; d--) {
278
278
  const c = n[d];
279
279
  if (c === "__proto__" || c === "constructor") continue;
280
- const h = Object.getOwnPropertyDescriptor(l, c);
280
+ const h = Object.getOwnPropertyDescriptor(a, c);
281
281
  if (!s[c])
282
282
  s[c] = h.get ? {
283
283
  enumerable: !0,
284
284
  configurable: !0,
285
- get: Ge.bind(t[c] = [h.get.bind(l)])
285
+ get: ze.bind(t[c] = [h.get.bind(a)])
286
286
  } : h.value !== void 0 ? h : void 0;
287
287
  else {
288
288
  const p = t[c];
289
- p && (h.get ? p.push(h.get.bind(l)) : h.value !== void 0 && p.push(() => h.value));
289
+ p && (h.get ? p.push(h.get.bind(a)) : h.value !== void 0 && p.push(() => h.value));
290
290
  }
291
291
  }
292
292
  }
293
293
  const o = {}, i = Object.keys(s);
294
294
  for (let r = i.length - 1; r >= 0; r--) {
295
- const l = i[r], n = s[l];
296
- n && n.get ? Object.defineProperty(o, l, n) : o[l] = n ? n.value : void 0;
295
+ const a = i[r], n = s[a];
296
+ n && n.get ? Object.defineProperty(o, a, n) : o[a] = n ? n.value : void 0;
297
297
  }
298
298
  return o;
299
299
  }
300
- function ze(a, e, t) {
301
- let s = t.length, o = e.length, i = s, r = 0, l = 0, n = e[o - 1].nextSibling, d = null;
302
- for (; r < o || l < i; ) {
303
- if (e[r] === t[l]) {
304
- r++, l++;
300
+ function Ue(l, e, t) {
301
+ let s = t.length, o = e.length, i = s, r = 0, a = 0, n = e[o - 1].nextSibling, d = null;
302
+ for (; r < o || a < i; ) {
303
+ if (e[r] === t[a]) {
304
+ r++, a++;
305
305
  continue;
306
306
  }
307
307
  for (; e[o - 1] === t[i - 1]; )
308
308
  o--, i--;
309
309
  if (o === r) {
310
- const c = i < s ? l ? t[l - 1].nextSibling : t[i - l] : n;
311
- for (; l < i; ) a.insertBefore(t[l++], c);
312
- } else if (i === l)
310
+ const c = i < s ? a ? t[a - 1].nextSibling : t[i - a] : n;
311
+ for (; a < i; ) l.insertBefore(t[a++], c);
312
+ } else if (i === a)
313
313
  for (; r < o; )
314
314
  (!d || !d.has(e[r])) && e[r].remove(), r++;
315
- else if (e[r] === t[i - 1] && t[l] === e[o - 1]) {
315
+ else if (e[r] === t[i - 1] && t[a] === e[o - 1]) {
316
316
  const c = e[--o].nextSibling;
317
- a.insertBefore(t[l++], e[r++].nextSibling), a.insertBefore(t[--i], c), e[o] = t[i];
317
+ l.insertBefore(t[a++], e[r++].nextSibling), l.insertBefore(t[--i], c), e[o] = t[i];
318
318
  } else {
319
319
  if (!d) {
320
320
  d = /* @__PURE__ */ new Map();
321
- let h = l;
321
+ let h = a;
322
322
  for (; h < i; ) d.set(t[h], h++);
323
323
  }
324
324
  const c = d.get(e[r]);
325
325
  if (c != null)
326
- if (l < c && c < i) {
326
+ if (a < c && c < i) {
327
327
  let h = r, p = 1, u;
328
328
  for (; ++h < o && h < i && !((u = d.get(e[h])) == null || u !== c + p); )
329
329
  p++;
330
- if (p > c - l) {
330
+ if (p > c - a) {
331
331
  const g = e[r];
332
- for (; l < c; ) a.insertBefore(t[l++], g);
333
- } else a.replaceChild(t[l++], e[r++]);
332
+ for (; a < c; ) l.insertBefore(t[a++], g);
333
+ } else l.replaceChild(t[a++], e[r++]);
334
334
  } else r++;
335
335
  else e[r++].remove();
336
336
  }
337
337
  }
338
338
  }
339
- function Ue(a, e, t, s = {}) {
339
+ function je(l, e, t, s = {}) {
340
340
  let o;
341
- return Ie((i) => {
342
- o = i, e === document ? a() : Ke(e, a(), e.firstChild ? null : void 0, t);
341
+ return Oe((i) => {
342
+ o = i, e === document ? l() : Ye(e, l(), e.firstChild ? null : void 0, t);
343
343
  }, s.owner), () => {
344
344
  o(), e.textContent = "";
345
345
  };
346
346
  }
347
- function je(a, e, t) {
347
+ function Xe(l, e, t) {
348
348
  let s;
349
349
  const o = () => {
350
350
  const r = document.createElement("template");
351
- return r.innerHTML = a, r.content.firstChild;
351
+ return r.innerHTML = l, r.content.firstChild;
352
352
  }, i = () => (s || (s = o())).cloneNode(!0);
353
353
  return i.cloneNode = i, i;
354
354
  }
355
- function Xe(a, e, t) {
356
- return Z(() => a(e, t));
355
+ function Ke(l, e, t) {
356
+ return Z(() => l(e, t));
357
357
  }
358
- function Ke(a, e, t, s) {
359
- if (t !== void 0 && !s && (s = []), typeof e != "function") return j(a, e, s, t);
360
- oe((o) => j(a, e(), o, t), s);
358
+ function Ye(l, e, t, s) {
359
+ if (t !== void 0 && !s && (s = []), typeof e != "function") return j(l, e, s, t);
360
+ oe((o) => j(l, e(), o, t), s);
361
361
  }
362
- function j(a, e, t, s, o) {
362
+ function j(l, e, t, s, o) {
363
363
  for (; typeof t == "function"; ) t = t();
364
364
  if (e === t) return t;
365
365
  const i = typeof e, r = s !== void 0;
366
- if (a = r && t[0] && t[0].parentNode || a, i === "string" || i === "number") {
366
+ if (l = r && t[0] && t[0].parentNode || l, i === "string" || i === "number") {
367
367
  if (i === "number" && (e = e.toString(), e === t))
368
368
  return t;
369
369
  if (r) {
370
- let l = t[0];
371
- l && l.nodeType === 3 ? l.data !== e && (l.data = e) : l = document.createTextNode(e), t = P(a, t, s, l);
370
+ let a = t[0];
371
+ a && a.nodeType === 3 ? a.data !== e && (a.data = e) : a = document.createTextNode(e), t = P(l, t, s, a);
372
372
  } else
373
- t !== "" && typeof t == "string" ? t = a.firstChild.data = e : t = a.textContent = e;
373
+ t !== "" && typeof t == "string" ? t = l.firstChild.data = e : t = l.textContent = e;
374
374
  } else if (e == null || i === "boolean")
375
- t = P(a, t, s);
375
+ t = P(l, t, s);
376
376
  else {
377
377
  if (i === "function")
378
378
  return oe(() => {
379
- let l = e();
380
- for (; typeof l == "function"; ) l = l();
381
- t = j(a, l, t, s);
379
+ let a = e();
380
+ for (; typeof a == "function"; ) a = a();
381
+ t = j(l, a, t, s);
382
382
  }), () => t;
383
383
  if (Array.isArray(e)) {
384
- const l = [], n = t && Array.isArray(t);
385
- if (ie(l, e, t, o))
386
- return oe(() => t = j(a, l, t, s, !0)), () => t;
387
- if (l.length === 0) {
388
- if (t = P(a, t, s), r) return t;
389
- } else n ? t.length === 0 ? fe(a, l, s) : ze(a, t, l) : (t && P(a), fe(a, l));
390
- t = l;
384
+ const a = [], n = t && Array.isArray(t);
385
+ if (ie(a, e, t, o))
386
+ return oe(() => t = j(l, a, t, s, !0)), () => t;
387
+ if (a.length === 0) {
388
+ if (t = P(l, t, s), r) return t;
389
+ } else n ? t.length === 0 ? fe(l, a, s) : Ue(l, t, a) : (t && P(l), fe(l, a));
390
+ t = a;
391
391
  } else if (e.nodeType) {
392
392
  if (Array.isArray(t)) {
393
- if (r) return t = P(a, t, s, e);
394
- P(a, t, null, e);
395
- } else t == null || t === "" || !a.firstChild ? a.appendChild(e) : a.replaceChild(e, a.firstChild);
393
+ if (r) return t = P(l, t, s, e);
394
+ P(l, t, null, e);
395
+ } else t == null || t === "" || !l.firstChild ? l.appendChild(e) : l.replaceChild(e, l.firstChild);
396
396
  t = e;
397
397
  }
398
398
  }
399
399
  return t;
400
400
  }
401
- function ie(a, e, t, s) {
401
+ function ie(l, e, t, s) {
402
402
  let o = !1;
403
403
  for (let i = 0, r = e.length; i < r; i++) {
404
- let l = e[i], n = t && t[a.length], d;
405
- if (!(l == null || l === !0 || l === !1)) if ((d = typeof l) == "object" && l.nodeType)
406
- a.push(l);
407
- else if (Array.isArray(l))
408
- o = ie(a, l, n) || o;
404
+ let a = e[i], n = t && t[l.length], d;
405
+ if (!(a == null || a === !0 || a === !1)) if ((d = typeof a) == "object" && a.nodeType)
406
+ l.push(a);
407
+ else if (Array.isArray(a))
408
+ o = ie(l, a, n) || o;
409
409
  else if (d === "function")
410
410
  if (s) {
411
- for (; typeof l == "function"; ) l = l();
411
+ for (; typeof a == "function"; ) a = a();
412
412
  o = ie(
413
- a,
414
- Array.isArray(l) ? l : [l],
413
+ l,
414
+ Array.isArray(a) ? a : [a],
415
415
  Array.isArray(n) ? n : [n]
416
416
  ) || o;
417
417
  } else
418
- a.push(l), o = !0;
418
+ l.push(a), o = !0;
419
419
  else {
420
- const c = String(l);
421
- n && n.nodeType === 3 && n.data === c ? a.push(n) : a.push(document.createTextNode(c));
420
+ const c = String(a);
421
+ n && n.nodeType === 3 && n.data === c ? l.push(n) : l.push(document.createTextNode(c));
422
422
  }
423
423
  }
424
424
  return o;
425
425
  }
426
- function fe(a, e, t = null) {
427
- for (let s = 0, o = e.length; s < o; s++) a.insertBefore(e[s], t);
426
+ function fe(l, e, t = null) {
427
+ for (let s = 0, o = e.length; s < o; s++) l.insertBefore(e[s], t);
428
428
  }
429
- function P(a, e, t, s) {
430
- if (t === void 0) return a.textContent = "";
429
+ function P(l, e, t, s) {
430
+ if (t === void 0) return l.textContent = "";
431
431
  const o = s || document.createTextNode("");
432
432
  if (e.length) {
433
433
  let i = !1;
434
434
  for (let r = e.length - 1; r >= 0; r--) {
435
- const l = e[r];
436
- if (o !== l) {
437
- const n = l.parentNode === a;
438
- !i && !r ? n ? a.replaceChild(o, l) : a.insertBefore(o, t) : n && l.remove();
435
+ const a = e[r];
436
+ if (o !== a) {
437
+ const n = a.parentNode === l;
438
+ !i && !r ? n ? l.replaceChild(o, a) : l.insertBefore(o, t) : n && a.remove();
439
439
  } else i = !0;
440
440
  }
441
- } else a.insertBefore(o, t);
441
+ } else l.insertBefore(o, t);
442
442
  return [o];
443
443
  }
444
- class Mt {
444
+ class Tt {
445
445
  constructor(e) {
446
446
  this.code = e;
447
447
  }
448
- render(e, t, s, o, i, r, l) {
449
- const n = Ce({
448
+ render(e, t, s, o, i, r, a) {
449
+ const n = Ee({
450
450
  rowIndex: t,
451
451
  columnIndex: s,
452
452
  areaIdent: o,
453
453
  areaModel: i,
454
454
  cellValue: r
455
455
  });
456
- Ue(
456
+ je(
457
457
  () => this.code(n),
458
458
  e
459
459
  );
460
460
  }
461
461
  }
462
- const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
462
+ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
463
463
  __proto__: null
464
464
  }, Symbol.toStringTag, { value: "Module" }));
465
- function Ye(a, e = 500) {
465
+ function Je(l, e = 500) {
466
466
  let t = null;
467
467
  return function(...s) {
468
468
  t && window.clearTimeout(t), t = window.setTimeout(() => {
469
- a.apply(this, s), t = null;
469
+ l.apply(this, s), t = null;
470
470
  }, e);
471
471
  };
472
472
  }
@@ -495,18 +495,18 @@ class B {
495
495
  }
496
496
  }
497
497
  }
498
- function X(a) {
499
- return a && a.type === "TreeRow";
498
+ function X(l) {
499
+ return l && l.type === "TreeRow";
500
500
  }
501
- function re(a) {
502
- return a && a.type === "AreaModelTree";
501
+ function re(l) {
502
+ return l && l.type === "AreaModelTree";
503
503
  }
504
- class le {
505
- constructor(e = -1, t = -1, s = -1, o = -1, i, r, l, n = 0, d = 0, c = 0, h = "") {
506
- this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = l, this.clickCount = n, this.draggingX = d, this.draggingY = c, this.action = h;
504
+ class ae {
505
+ constructor(e = -1, t = -1, s = -1, o = -1, i, r, a, n = 0, d = 0, c = 0, h = "") {
506
+ this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = a, this.clickCount = n, this.draggingX = d, this.draggingY = c, this.action = h;
507
507
  }
508
508
  clone() {
509
- return new le(
509
+ return new ae(
510
510
  this.rowIndex,
511
511
  this.rowTop,
512
512
  this.columnIndex,
@@ -526,7 +526,7 @@ class I {
526
526
  this.content = e, this.style = t, this.classes = s;
527
527
  }
528
528
  }
529
- class Ee {
529
+ class Ae {
530
530
  constructor(e = new I(
531
531
  ">",
532
532
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
@@ -547,12 +547,12 @@ class Ee {
547
547
  this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
548
548
  }
549
549
  }
550
- class Ae {
550
+ class Me {
551
551
  constructor(e = new I("↑", "", ["ge-header-sorted-asc"]), t = new I("↓", "", ["ge-header-sorted-desc"]), s = new I("↑", "color:transparent;", [])) {
552
552
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
553
553
  }
554
554
  }
555
- class Je {
555
+ class qe {
556
556
  constructor(e) {
557
557
  this.domService = e;
558
558
  }
@@ -626,7 +626,7 @@ class Je {
626
626
  return this.addClass(e, s), this.domService.appendChild(t, s), s;
627
627
  }
628
628
  addRowDiv(e, t, s = -1, o, i, r = "") {
629
- const l = t.index ?? -1, n = this.getDivOrCreateDiv(l, e);
629
+ const a = t.index ?? -1, n = this.getDivOrCreateDiv(a, e);
630
630
  if (this.domService.addClass(n, "ge-table-row-div"), this.domService.addClass(n, `ge-table-row-div-${t.index}`), o === "body" && i === "center") {
631
631
  const d = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
632
632
  this.domService.addClass(n, `ge-table-row-${d}`);
@@ -638,10 +638,10 @@ class Je {
638
638
  return this.domService.appendChild(e.child, n), n;
639
639
  }
640
640
  addColumnDiv(e) {
641
- const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: l, text: n = "", treeArrow: d, tableOptions: c, checkedType: h = void 0, sortState: p } = e, u = c == null ? void 0 : c.treeOptions, g = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
641
+ const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: a, text: n = "", treeArrow: d, tableOptions: c, checkedType: h = void 0, sortState: p } = e, u = c == null ? void 0 : c.treeOptions, g = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
642
642
  this.domService.addClass(b, "ge-table-col-div"), g && this.domService.addClass(b, "ge-with-checkbox"), this.domService.addClass(b, `ge-table-col-div-${s.index}`), this.domService.setAttribute(b, "data-col-index", `${s.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${r}`);
643
643
  const f = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
644
- if (r === "body" && l === "center" && this.domService.addClass(b, `ge-table-column-${f}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), d && d !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, d, u, o, i, r)), g && i === 0 && h && this.addCheckboxToDiv(b, h, r, o), n) {
644
+ if (r === "body" && a === "center" && this.domService.addClass(b, `ge-table-column-${f}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), d && d !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, d, u, o, i, r)), g && i === 0 && h && this.addCheckboxToDiv(b, h, r, o), n) {
645
645
  const m = d !== "none" && i === 0;
646
646
  this.addLabelDiv(b, n, m, o, i, r);
647
647
  }
@@ -659,40 +659,40 @@ class Je {
659
659
  class="ge-table-row-checkbox"> `, this.domService.setStyle(i, "display", "inline"), this.domService.setStyle(i, "width", "inherit"), this.domService.setAttribute(i, "data-row-index", `${o}`), this.domService.appendChild(e, i), i;
660
660
  }
661
661
  addLabelDiv(e, t = "", s = !1, o = -1, i = -1, r = "body") {
662
- const l = this.domService.createElement("div");
663
- if (this.domService.addClass(l, "ge-table-label-div"), this.domService.setStyle(l, "position", "relative"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "width", "100%"), this.domService.setStyle(l, "height", "100%"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`), t)
662
+ const a = this.domService.createElement("div");
663
+ if (this.domService.addClass(a, "ge-table-label-div"), this.domService.setStyle(a, "position", "relative"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "width", "100%"), this.domService.setStyle(a, "height", "100%"), this.domService.setAttribute(a, "data-row-index", `${o}`), this.domService.setAttribute(a, "data-col-index", `${i}`), this.domService.setAttribute(a, "data-area", `${r}`), t)
664
664
  if (s) {
665
665
  const n = this.domService.createText(t);
666
- this.domService.appendChild(l, n);
666
+ this.domService.appendChild(a, n);
667
667
  } else {
668
668
  const n = this.domService.createElement("div");
669
- this.domService.appendChild(l, n);
669
+ this.domService.appendChild(a, n);
670
670
  const d = this.domService.createText(t);
671
671
  this.domService.addClass(n, "ge-table-label"), this.domService.appendChild(n, d), this.domService.setAttribute(n, "data-row-index", `${o}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`);
672
672
  }
673
- return this.domService.appendChild(e, l), l;
673
+ return this.domService.appendChild(e, a), a;
674
674
  }
675
- addSortedIcon(e, t = "", s = new Ae(), o = -1) {
675
+ addSortedIcon(e, t = "", s = new Me(), o = -1) {
676
676
  const i = this.domService.createElement("div");
677
677
  this.domService.addClass(i, "ge-table-sorted-icon-div"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "top", "0"), this.domService.setStyle(i, "right", "0"), this.domService.setStyle(i, "width", "20px"), this.domService.setStyle(i, "background", "transparent"), this.domService.setStyle(i, "cursor", "pointer"), this.domService.setAttribute(i, "data-col-index", `${o}`), this.domService.setAttribute(i, "data-area", "header");
678
678
  let r;
679
679
  t === "asc" ? r = s.iconAsc : t === "desc" ? r = s.iconDesc : r = s.iconPlaceholder;
680
- const l = r.content, n = this.domService.createText(l);
680
+ const a = r.content, n = this.domService.createText(a);
681
681
  this.domService.appendChild(i, n), r.style && this.applyStyleString(i, r.style);
682
682
  for (const d of r.classes)
683
683
  this.domService.addClass(i, d);
684
684
  return this.domService.appendChild(e, i), i;
685
685
  }
686
- addArrowDiv(e, t = "none", s = new Ee(), o = -1, i = -1, r = "body") {
687
- const l = this.domService.createElement("div");
688
- this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
686
+ addArrowDiv(e, t = "none", s = new Ae(), o = -1, i = -1, r = "body") {
687
+ const a = this.domService.createElement("div");
688
+ this.domService.addClass(a, "ge-table-tree-arrow-div"), this.domService.setStyle(a, "display", "inline-block"), this.domService.setStyle(a, "position", ""), this.domService.setStyle(a, "width", "20px"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "cursor", "pointer"), this.domService.setAttribute(a, "data-row-index", `${o}`), this.domService.setAttribute(a, "data-col-index", `${i}`), this.domService.setAttribute(a, "data-area", `${r}`);
689
689
  let n;
690
690
  t === "expanded" ? n = s.arrowExpanded : t === "collapsed" ? n = s.arrowCollapsed : n = s.arrowPlaceholder;
691
691
  const d = n.content, c = this.domService.createText(d);
692
- this.domService.appendChild(l, c), n.style && this.applyStyleString(l, n.style);
692
+ this.domService.appendChild(a, c), n.style && this.applyStyleString(a, n.style);
693
693
  for (const h of n.classes)
694
- this.domService.addClass(l, h);
695
- return this.domService.appendChild(e, l), l;
694
+ this.domService.addClass(a, h);
695
+ return this.domService.appendChild(e, a), a;
696
696
  }
697
697
  addColumnBorderDivs(e, t, s, o, i) {
698
698
  if (e.verticalBorderVisible) {
@@ -734,8 +734,8 @@ class Je {
734
734
  return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
735
735
  }
736
736
  }
737
- const ne = (a) => a === "header" ? "header" : a === "footer" ? "footer" : "body";
738
- class qe {
737
+ const ne = (l) => l === "header" ? "header" : l === "footer" ? "footer" : "body";
738
+ class Ze {
739
739
  constructor(e, t) {
740
740
  if (this.rowIdx = -1, this.colIdx = -1, this.action = null, this.inputType = null, this.className = "", e !== null && (e instanceof HTMLDivElement || e instanceof HTMLSpanElement || e instanceof HTMLInputElement)) {
741
741
  this.className = e.className, this.action = e.getAttribute("data-ge-action"), this.inputType = e.getAttribute("data-input-type"), this.rowIdx = Number(e.getAttribute("data-row-index")), this.colIdx = Number(e.getAttribute("data-col-index"));
@@ -747,7 +747,7 @@ class qe {
747
747
  }
748
748
  }
749
749
  }
750
- class Ze {
750
+ class Qe {
751
751
  constructor(e) {
752
752
  this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
753
753
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
@@ -777,7 +777,7 @@ class Ze {
777
777
  if (t - this.lastClicked < this.doubleClickDelay)
778
778
  return;
779
779
  this.lastClicked = t;
780
- const s = new qe(e.target, this.tableScope);
780
+ const s = new Ze(e.target, this.tableScope);
781
781
  if (s.action === "toggleExpandCollapseAll")
782
782
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
783
783
  else if (s.action === "toggleHeaderGroup")
@@ -806,15 +806,15 @@ class Ze {
806
806
  */
807
807
  onHostElementDblClicked(e) {
808
808
  if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
809
- const t = e.target, s = t.getAttribute("data-area"), o = ne(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(o);
809
+ const t = e.target, s = t.getAttribute("data-area"), o = ne(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), a = this.tableScope.tableModel.getAreaModel(o);
810
810
  if (s && o === "header")
811
811
  this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
812
812
  else if (t.getAttribute("data-row-index")) {
813
- const n = l.getRowByIndex(i);
814
- if (s && o === "body" && l.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), X(n) && r === this.getArrowColumnIndex()) {
813
+ const n = a.getRowByIndex(i);
814
+ if (s && o === "body" && a.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), X(n) && r === this.getArrowColumnIndex()) {
815
815
  e.preventDefault(), e.stopPropagation();
816
816
  const d = n;
817
- d.expanded = !d.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(d);
817
+ d.expanded = !d.expanded, "recalcVisibleTreeRows" in a && a.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(d);
818
818
  }
819
819
  }
820
820
  }
@@ -839,11 +839,11 @@ class Ze {
839
839
  * @returns {void}
840
840
  */
841
841
  updateCollapsedExpandedState(e) {
842
- var s, o, i, r, l;
842
+ var s, o, i, r, a;
843
843
  const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
844
844
  if (t) {
845
845
  const n = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, d = n === "collapsed" && !e.expanded || n === "expanded" && e.expanded, c = n === "collapsed" && e.expanded || n === "expanded" && !e.expanded, h = t(e.data);
846
- d ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : c && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(h));
846
+ d ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : c && ((a = this.tableScope.storeStateCollapsedExpandService) == null || a.collapsedStateIdsRemove(h));
847
847
  }
848
848
  }
849
849
  getArrowColumnIndex() {
@@ -879,7 +879,7 @@ class Ze {
879
879
  }
880
880
  }
881
881
  }
882
- class Qe {
882
+ class et {
883
883
  constructor(e, t = [], s = -1) {
884
884
  this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
885
885
  }
@@ -944,8 +944,8 @@ class Qe {
944
944
  return ((i = s == null ? void 0 : s.editable) == null ? void 0 : i.call(s)) ?? !1;
945
945
  }
946
946
  setValue(e, t, s) {
947
- var l;
948
- const o = (l = this.columnDefs[t]) == null ? void 0 : l.editInputPipe;
947
+ var a;
948
+ const o = (a = this.columnDefs[t]) == null ? void 0 : a.editInputPipe;
949
949
  o && (s = o(s, e, t));
950
950
  const i = this.getRowByIndex(e), r = this.columnDefs[t].property;
951
951
  return r.includes(".") ? this.setPropertyValue(i, r.split("."), s) : (i[r] = s, !0);
@@ -975,7 +975,7 @@ class Qe {
975
975
  this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
976
976
  }
977
977
  }
978
- class et {
978
+ class tt {
979
979
  genericSortComparator(e, t, s) {
980
980
  if (typeof e == "number" && typeof t == "number")
981
981
  return s * (e - t);
@@ -993,9 +993,9 @@ class et {
993
993
  return s * ("" + e).localeCompare("" + t);
994
994
  }
995
995
  }
996
- class tt extends Qe {
996
+ class st extends et {
997
997
  constructor(e, t, s, o = []) {
998
- super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new et(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
998
+ super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.focusedRowIndex = 0, this.sorterService = new tt(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
999
999
  }
1000
1000
  setRows(e) {
1001
1001
  this.rows = e, this.filteredRows = [...e];
@@ -1012,6 +1012,12 @@ class tt extends Qe {
1012
1012
  let o = this.filteredRows[e];
1013
1013
  return X(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
1014
1014
  }
1015
+ /**
1016
+ * Retrieves the filtered and sorted rows from the dataset.
1017
+ * These rows are used for rendering the table.
1018
+ *
1019
+ * @return {T[]} An array containing the filtered (and sorted) rows.
1020
+ */
1015
1021
  getFilteredRows() {
1016
1022
  return this.filteredRows;
1017
1023
  }
@@ -1040,11 +1046,15 @@ class tt extends Qe {
1040
1046
  changeColumnOrder(e, t) {
1041
1047
  this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
1042
1048
  }
1049
+ getCustomClassesAt(e, t) {
1050
+ const s = super.getCustomClassesAt(e, t);
1051
+ return this.getRowByIndex(e).selected && s.push("ge-selected-row"), this.focusedRowIndex === e && s.push("ge-focused-row"), s;
1052
+ }
1043
1053
  genericFlatTableSortComparator(e, t) {
1044
1054
  const s = this.columnDefs.find((o) => o.property === e);
1045
1055
  return (o, i) => {
1046
- const r = this.getValueByT(o, e), l = this.getValueByT(i, e);
1047
- return s != null && s.sortComparator ? t * s.sortComparator(r, l, o, i, t) : this.sorterService.genericSortComparator(r, l, t);
1056
+ const r = this.getValueByT(o, e), a = this.getValueByT(i, e);
1057
+ return s != null && s.sortComparator ? t * s.sortComparator(r, a, o, i, t) : this.sorterService.genericSortComparator(r, a, t);
1048
1058
  };
1049
1059
  }
1050
1060
  getPropertyValue(e, t) {
@@ -1052,7 +1062,7 @@ class tt extends Qe {
1052
1062
  return o && t.length ? this.getPropertyValue(o, t) : o;
1053
1063
  }
1054
1064
  }
1055
- class st {
1065
+ class ot {
1056
1066
  constructor(e) {
1057
1067
  this.tableScope = e;
1058
1068
  }
@@ -1239,12 +1249,12 @@ class st {
1239
1249
  downloadExcel(e = "table.xlsx", t = "") {
1240
1250
  const s = [], o = this.tableScope.tableModel.getColumnCount(), i = ["header", "body", "footer"];
1241
1251
  for (const r of i) {
1242
- const l = this.tableScope.tableModel.getAreaModel(r), n = (l == null ? void 0 : l.getRowCount()) ?? 0;
1252
+ const a = this.tableScope.tableModel.getAreaModel(r), n = (a == null ? void 0 : a.getRowCount()) ?? 0;
1243
1253
  for (let d = 0; d < n; d++) {
1244
1254
  const c = [];
1245
1255
  s.push(c);
1246
1256
  for (let h = 0; h < o; h++)
1247
- c.push(l.getValueAt(d, h));
1257
+ c.push(a.getValueAt(d, h));
1248
1258
  }
1249
1259
  }
1250
1260
  return this.tableScope.excelService.downloadExcel(s, e, t);
@@ -1283,7 +1293,7 @@ class st {
1283
1293
  }
1284
1294
  setRows(e) {
1285
1295
  const t = this.getBodyModel();
1286
- t instanceof tt ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t);
1296
+ t instanceof st ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t);
1287
1297
  }
1288
1298
  reSort() {
1289
1299
  this.tableScope.reSort();
@@ -1356,7 +1366,7 @@ class ce {
1356
1366
  // }
1357
1367
  // }
1358
1368
  }
1359
- class ot extends ce {
1369
+ class it extends ce {
1360
1370
  constructor(e) {
1361
1371
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
1362
1372
  }
@@ -1378,14 +1388,14 @@ class ot extends ce {
1378
1388
  }
1379
1389
  }
1380
1390
  }
1381
- class it {
1391
+ class rt {
1382
1392
  constructor(e = "collapsed", t = [], s = !1, o = !1) {
1383
1393
  this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
1384
1394
  }
1385
1395
  }
1386
- class rt extends ce {
1396
+ class lt extends ce {
1387
1397
  constructor(e) {
1388
- super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new it(), this.load();
1398
+ super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new rt(), this.load();
1389
1399
  }
1390
1400
  collapsedExpandedStateGet() {
1391
1401
  return this.collapsedExpandedState;
@@ -1443,7 +1453,7 @@ class F {
1443
1453
  this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
1444
1454
  }
1445
1455
  }
1446
- class lt {
1456
+ class nt {
1447
1457
  constructor(e, t, s, o) {
1448
1458
  this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new F(), this.areaBodyCenterGeo = new F(), this.areaBodyEastGeo = new F();
1449
1459
  const i = this.hostElement;
@@ -1649,7 +1659,7 @@ class A {
1649
1659
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
1650
1660
  }
1651
1661
  }
1652
- class nt {
1662
+ class ct {
1653
1663
  constructor(e, t) {
1654
1664
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
1655
1665
  }
@@ -1663,9 +1673,9 @@ class nt {
1663
1673
  let i = this.areaModel.getColspanAt(s, o), r = this.areaModel.getRowspanAt(s, o);
1664
1674
  if (i > 1 || r > 1) {
1665
1675
  i === 0 && (i = 1), r === 0 && (r = 1);
1666
- const l = "gammaCells" in this.areaModel;
1676
+ const a = "gammaCells" in this.areaModel;
1667
1677
  this.colAndRowspanRanges.push(
1668
- new A(s, o, s + r - 1, o + i - 1, l)
1678
+ new A(s, o, s + r - 1, o + i - 1, a)
1669
1679
  );
1670
1680
  }
1671
1681
  }
@@ -1682,22 +1692,22 @@ class nt {
1682
1692
  return !1;
1683
1693
  }
1684
1694
  }
1685
- class ct {
1695
+ class dt {
1686
1696
  constructor(e, t, s) {
1687
1697
  this.header = e, this.body = t, this.footer = s;
1688
1698
  }
1689
1699
  }
1690
- class dt extends lt {
1700
+ class ht extends nt {
1691
1701
  constructor(e, t, s, o) {
1692
- var r, l;
1702
+ var r, a;
1693
1703
  super(e, t, s, o), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
1694
1704
  header: [],
1695
1705
  body: [],
1696
1706
  footer: []
1697
- }, this.tree = !1, this.colAndRowspanModels = new ct(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), re(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1707
+ }, this.tree = !1, this.colAndRowspanModels = new dt(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (a = this.tableOptions) != null && a.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), re(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1698
1708
  (n) => {
1699
1709
  var d;
1700
- this.colAndRowspanModels[n] = new nt(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
1710
+ this.colAndRowspanModels[n] = new ct(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
1701
1711
  }
1702
1712
  );
1703
1713
  }
@@ -1834,7 +1844,7 @@ class dt extends lt {
1834
1844
  * @param {string[]} cssClasses - An array of CSS classes to be applied to the cell.
1835
1845
  */
1836
1846
  rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
1837
- const r = this.tableModel.getAreaModel(e), l = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', n = document.querySelector(l);
1847
+ const r = this.tableModel.getAreaModel(e), a = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', n = document.querySelector(a);
1838
1848
  if (n) {
1839
1849
  let d;
1840
1850
  const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
@@ -1951,7 +1961,7 @@ class dt extends lt {
1951
1961
  var f;
1952
1962
  const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
1953
1963
  s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
1954
- const l = 0, n = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
1964
+ const a = 0, n = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
1955
1965
  for (; this.cleanupFunctions[e].length; ) {
1956
1966
  const m = this.cleanupFunctions[e].shift();
1957
1967
  m && m();
@@ -1962,7 +1972,7 @@ class dt extends lt {
1962
1972
  const x = p, v = m === h - 1, E = this.tableModel.getRowHeight(e, m);
1963
1973
  if (x + E > 0) {
1964
1974
  this.firstVisibleRowIndex = m;
1965
- let y = { left: l, width: n, height: E, top: x, index: m }, S = this.dom.addRowDiv(o, y, m, e, "center");
1975
+ let y = { left: a, width: n, height: E, top: x, index: m }, S = this.dom.addRowDiv(o, y, m, e, "center");
1966
1976
  const k = b;
1967
1977
  if (this.adjustColumnsToRowParent({
1968
1978
  areaIdent: e,
@@ -1975,7 +1985,7 @@ class dt extends lt {
1975
1985
  columnIndexEnd: u - g - 1,
1976
1986
  verticalFixed: !1,
1977
1987
  lastRowOfModel: v
1978
- }), d.left > 0 && (y = { left: l, width: this.areaBodyWestGeo.width, height: E, top: x, index: m }, S = this.dom.addRowDiv(s, y, m, e, "west"), this.adjustColumnsToRowParent({
1988
+ }), d.left > 0 && (y = { left: a, width: this.areaBodyWestGeo.width, height: E, top: x, index: m }, S = this.dom.addRowDiv(s, y, m, e, "west"), this.adjustColumnsToRowParent({
1979
1989
  areaIdent: e,
1980
1990
  sideIdent: "west",
1981
1991
  areaModel: c,
@@ -1986,7 +1996,7 @@ class dt extends lt {
1986
1996
  columnIndexEnd: k - 1,
1987
1997
  verticalFixed: !0,
1988
1998
  lastRowOfModel: v
1989
- })), d.right > 0 && (y = { left: l, width: this.areaBodyEastGeo.width, height: E, top: x, index: m }, S = this.dom.addRowDiv(i, y, m, e, "east"), this.adjustColumnsToRowParent({
1999
+ })), d.right > 0 && (y = { left: a, width: this.areaBodyEastGeo.width, height: E, top: x, index: m }, S = this.dom.addRowDiv(i, y, m, e, "east"), this.adjustColumnsToRowParent({
1990
2000
  areaIdent: e,
1991
2001
  sideIdent: "east",
1992
2002
  areaModel: c,
@@ -2043,7 +2053,7 @@ class dt extends lt {
2043
2053
  * @protected
2044
2054
  */
2045
2055
  drawBigCell(e, t, s, o, i, r) {
2046
- const l = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, m) => f + m, 0), n = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
2056
+ const a = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, m) => f + m, 0), n = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
2047
2057
  let c = 0;
2048
2058
  d > 0 && e.c1 >= n - d && (c = n - d);
2049
2059
  const h = t + this.getColumnWidths(c, e.c1 - 1).reduce((f, m) => f + m, 0), p = this.getRowHeights(e.r1, e.r2, o).reduce((f, m) => f + m, 0), u = this.getColumnWidths(e.c1, e.c2).reduce((f, m) => f + m, 0);
@@ -2056,7 +2066,7 @@ class dt extends lt {
2056
2066
  rowIndex: e.r1,
2057
2067
  columnIndex: e.c1,
2058
2068
  left: h,
2059
- top: l,
2069
+ top: a,
2060
2070
  width: u,
2061
2071
  height: p,
2062
2072
  parent: i,
@@ -2070,7 +2080,7 @@ class dt extends lt {
2070
2080
  rowIndex: e.r1,
2071
2081
  columnIndex: e.c1,
2072
2082
  left: h,
2073
- top: l,
2083
+ top: a,
2074
2084
  width: u,
2075
2085
  height: p,
2076
2086
  parent: i,
@@ -2081,7 +2091,7 @@ class dt extends lt {
2081
2091
  rowIndex: e.r1,
2082
2092
  columnIndex: e.c1,
2083
2093
  cellLeft: h,
2084
- cellTop: l,
2094
+ cellTop: a,
2085
2095
  cellWidth: u,
2086
2096
  cellHeight: p,
2087
2097
  parent: i
@@ -2121,7 +2131,7 @@ class dt extends lt {
2121
2131
  geo: o,
2122
2132
  parent: i,
2123
2133
  rowIndex: r,
2124
- columnIndexStart: l,
2134
+ columnIndexStart: a,
2125
2135
  columnIndexEnd: n,
2126
2136
  verticalFixed: d = !1,
2127
2137
  lastRowOfModel: c = !1
@@ -2135,7 +2145,7 @@ class dt extends lt {
2135
2145
  }
2136
2146
  const p = 0, u = !!(e === "body" && t);
2137
2147
  let g = h;
2138
- for (let f = l; f <= n; f++) {
2148
+ for (let f = a; f <= n; f++) {
2139
2149
  const m = g, x = this.tableModel.getColumnWidth(f);
2140
2150
  if (x > 0 && m + x > 0) {
2141
2151
  let v = o.height;
@@ -2199,14 +2209,14 @@ class dt extends lt {
2199
2209
  rowIndex: o,
2200
2210
  index: i,
2201
2211
  left: r,
2202
- width: l,
2212
+ width: a,
2203
2213
  height: n,
2204
2214
  top: d,
2205
2215
  parent: c,
2206
2216
  lastRowOfModel: h
2207
2217
  }) {
2208
2218
  var pe;
2209
- const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width: l, height: n, top: d, index: i }, b = e.getRowByIndex(o);
2219
+ const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width: a, height: n, top: d, index: i }, b = e.getRowByIndex(o);
2210
2220
  let f = "none";
2211
2221
  if (i === this.getTreeArrowColumnIndex() && X(b)) {
2212
2222
  const C = b;
@@ -2238,7 +2248,7 @@ class dt extends lt {
2238
2248
  let D;
2239
2249
  u && (D = u.render(S, o, i, t, e, v, this.dom.domService));
2240
2250
  const _ = e.getCustomClassesAt(o, i);
2241
- if (_.length && this.dom.addClasses(_, S), this.dom.addColumnBorderDivs(this.tableOptions, c, g, t, s), h && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: d + n }, c), this.getFocusModel && t === "body") {
2251
+ if (_.length && this.dom.addClasses(_, S), this.dom.addColumnBorderDivs(this.tableOptions, c, g, t, s), h && this.dom.addHorizontalBorder({ left: r, width: a, height: n, top: d + n }, c), this.getFocusModel && t === "body") {
2242
2252
  const C = this.getFocusModel();
2243
2253
  C != null && C.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, g, {});
2244
2254
  }
@@ -2377,9 +2387,9 @@ class dt extends lt {
2377
2387
  adjustDraggingColumn(e, t, s) {
2378
2388
  var o, i;
2379
2389
  if (this.dragging) {
2380
- const r = this.hostElement.clientHeight, l = this.storedColumnWidths[t];
2390
+ const r = this.hostElement.clientHeight, a = this.storedColumnWidths[t];
2381
2391
  if ((o = e.originalEvent) != null && o.clientX) {
2382
- const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - l / 2, width: l, height: r, top: 0, index: t };
2392
+ const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - a / 2, width: a, height: r, top: 0, index: t };
2383
2393
  this.dom.applyStyle(this.draggingColumn, {
2384
2394
  background: "rgba(128,128,128,0.2)",
2385
2395
  display: "block",
@@ -2411,24 +2421,24 @@ class dt extends lt {
2411
2421
  renderContentOfDraggingColumnForArea(e, t, s = 0) {
2412
2422
  const o = "center", i = this.tableModel.getAreaModel(t), r = i == null ? void 0 : i.getRowCount();
2413
2423
  if (r) {
2414
- const l = e.index ?? 0, n = this.draggingColumn;
2424
+ const a = e.index ?? 0, n = this.draggingColumn;
2415
2425
  for (let d = 0; d < r; d++) {
2416
- const c = s, h = i.getRowHeight(d), p = { left: 0, width: e.width, height: h, top: c, index: d }, u = i.getValueAt(d, l), g = i.getCellRenderer(d, l), b = g ? "" : `${u}`, f = {
2426
+ const c = s, h = i.getRowHeight(d), p = { left: 0, width: e.width, height: h, top: c, index: d }, u = i.getValueAt(d, a), g = i.getCellRenderer(d, a), b = g ? "" : `${u}`, f = {
2417
2427
  parent: n,
2418
2428
  geo: p,
2419
2429
  rowIndex: d,
2420
- columnIndex: l,
2430
+ columnIndex: a,
2421
2431
  areaIdent: t,
2422
2432
  sideIdent: o,
2423
2433
  text: b
2424
2434
  }, m = this.dom.addColumnDiv(f);
2425
2435
  let x;
2426
- g && (x = g.render(m, d, l, t, i, u, this.dom.domService), x && this.cleanupFunctions[t].push(x));
2427
- const v = i.getCustomClassesAt(d, l);
2436
+ g && (x = g.render(m, d, a, t, i, u, this.dom.domService), x && this.cleanupFunctions[t].push(x));
2437
+ const v = i.getCustomClassesAt(d, a);
2428
2438
  v.length && this.dom.addClasses(v, m);
2429
- const E = this.tableModel.getColumnDef(l);
2439
+ const E = this.tableModel.getColumnDef(a);
2430
2440
  E && E.classes[t] && this.dom.addClasses(E.classes[t], m), this.dom.addColumnBorderDivs(this.tableOptions, n, p, t, o);
2431
- const y = i.getCustomStyleAt(d, l);
2441
+ const y = i.getCustomStyleAt(d, a);
2432
2442
  if (y)
2433
2443
  for (const S in y)
2434
2444
  this.dom.setStyle(m, S, y[S]);
@@ -2481,7 +2491,7 @@ class dt extends lt {
2481
2491
  * @param {number} height - The height of the div.
2482
2492
  * @returns {boolean} - Whether the cell is selected.
2483
2493
  */
2484
- renderSelectedBackgroundDiv(e, t, s, o, i, r, l, n, d, c, h) {
2494
+ renderSelectedBackgroundDiv(e, t, s, o, i, r, a, n, d, c, h) {
2485
2495
  let p = !1;
2486
2496
  if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
2487
2497
  const u = this.getSelectionModel();
@@ -2491,7 +2501,7 @@ class dt extends lt {
2491
2501
  for (let b = 0; b < g; b++) {
2492
2502
  const f = this.dom.applyStylePosistionAbsolute(
2493
2503
  // ge-table-body-west-selected-range
2494
- this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, l)
2504
+ this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, a)
2495
2505
  );
2496
2506
  this.dom.setStyle(f, "left", `${n}px`), this.dom.setStyle(f, "top", `${d}px`), this.dom.setStyle(f, "width", `${c}px`), this.dom.setStyle(f, "height", `${h}px`);
2497
2507
  }
@@ -2525,7 +2535,7 @@ class dt extends lt {
2525
2535
  rowIndex: o,
2526
2536
  columnIndex: i,
2527
2537
  left: r,
2528
- top: l,
2538
+ top: a,
2529
2539
  width: n,
2530
2540
  height: d,
2531
2541
  parent: c,
@@ -2541,7 +2551,7 @@ class dt extends lt {
2541
2551
  left: r,
2542
2552
  width: n,
2543
2553
  height: d,
2544
- top: l,
2554
+ top: a,
2545
2555
  parent: c,
2546
2556
  lastRowOfModel: p
2547
2557
  });
@@ -2561,17 +2571,17 @@ class dt extends lt {
2561
2571
  *
2562
2572
  * @return {void}
2563
2573
  */
2564
- renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: l }) {
2574
+ renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: a }) {
2565
2575
  const n = this.dom.domService, d = this.tableOptions.columnResizeHandleWidthInPx ?? 2, c = n.createElement("div");
2566
- n.setAttribute(c, "data-col-index", `${t}`), n.setAttribute(c, "data-row-index", `${e}`), n.setAttribute(c, "data-area", "header"), n.setAttribute(c, "data-ge-action", "resize-column"), n.addClass(c, "ge-table-column-resize-handle"), n.setStyle(c, "display", "clip"), n.setStyle(c, "position", "absolute"), n.setStyle(c, "cursor", "col-resize"), n.setStyle(c, "left", `${s + i - d}px`), n.setStyle(c, "top", `${o}px`), n.setStyle(c, "width", `${d}px`), n.setStyle(c, "height", `${r}px`), n.appendChild(l, c);
2576
+ n.setAttribute(c, "data-col-index", `${t}`), n.setAttribute(c, "data-row-index", `${e}`), n.setAttribute(c, "data-area", "header"), n.setAttribute(c, "data-ge-action", "resize-column"), n.addClass(c, "ge-table-column-resize-handle"), n.setStyle(c, "display", "clip"), n.setStyle(c, "position", "absolute"), n.setStyle(c, "cursor", "col-resize"), n.setStyle(c, "left", `${s + i - d}px`), n.setStyle(c, "top", `${o}px`), n.setStyle(c, "width", `${d}px`), n.setStyle(c, "height", `${r}px`), n.appendChild(a, c);
2567
2577
  }
2568
2578
  }
2569
- class ht {
2579
+ class pt {
2570
2580
  constructor(e, t) {
2571
2581
  this.columnIndex = e, this.sortState = t;
2572
2582
  }
2573
2583
  }
2574
- class pt {
2584
+ class gt {
2575
2585
  constructor(e) {
2576
2586
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
2577
2587
  }
@@ -2587,13 +2597,13 @@ class pt {
2587
2597
  if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
2588
2598
  const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
2589
2599
  if (s && o && i) {
2590
- const r = ne(s), l = Number(o), n = Number(i);
2591
- this.tableScope.updateModelValueAfterEdit(r, l, n, t.value);
2600
+ const r = ne(s), a = Number(o), n = Number(i);
2601
+ this.tableScope.updateModelValueAfterEdit(r, a, n, t.value);
2592
2602
  }
2593
2603
  }
2594
2604
  }
2595
2605
  }
2596
- class gt {
2606
+ class ft {
2597
2607
  constructor(e = -1, t = -1) {
2598
2608
  this.rowIndex = e, this.columnIndex = t;
2599
2609
  }
@@ -2603,20 +2613,20 @@ class de {
2603
2613
  this.cells = e;
2604
2614
  }
2605
2615
  static createSingle(e, t) {
2606
- return new de([new gt(e, t)]);
2616
+ return new de([new ft(e, t)]);
2607
2617
  }
2608
2618
  }
2609
- class ft {
2619
+ class ut {
2610
2620
  constructor(e) {
2611
2621
  var t, s;
2612
2622
  this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (s = this.tableScope.tableOptions) != null && s.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
2613
2623
  }
2614
2624
  onMouseClicked(e, t) {
2615
- var i, r, l, n, d, c, h;
2625
+ var i, r, a, n, d, c, h;
2616
2626
  let s = !1, o = !1;
2617
2627
  if (this.getSelectionModel && this.getFocusModel) {
2618
2628
  const p = this.getSelectionModel(), u = this.getFocusModel();
2619
- p && u && (u.hasFocus(e.rowIndex, e.columnIndex) || (u.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(u), s = !0), (i = e.originalEvent) != null && i.shiftKey || p.hasSelection() && (p.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (p.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (l = e.originalEvent) != null && l.altKey && ((n = e.originalEvent) != null && n.ctrlKey || (d = e.originalEvent) != null && d.metaKey) ? (p.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (p.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (p.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(p));
2629
+ p && u && (u.hasFocus(e.rowIndex, e.columnIndex) || (u.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(u), s = !0), (i = e.originalEvent) != null && i.shiftKey || p.hasSelection() && (p.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (p.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (a = e.originalEvent) != null && a.altKey && ((n = e.originalEvent) != null && n.ctrlKey || (d = e.originalEvent) != null && d.metaKey) ? (p.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (p.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (p.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(p));
2620
2630
  }
2621
2631
  return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
2622
2632
  }
@@ -2647,7 +2657,7 @@ class ft {
2647
2657
  });
2648
2658
  }
2649
2659
  }
2650
- class ut {
2660
+ class mt {
2651
2661
  get() {
2652
2662
  return {
2653
2663
  f2: "START_EDITING",
@@ -2667,7 +2677,7 @@ class ut {
2667
2677
  };
2668
2678
  }
2669
2679
  }
2670
- class mt {
2680
+ class bt {
2671
2681
  get() {
2672
2682
  return {
2673
2683
  f2: "START_EDITING",
@@ -2689,7 +2699,23 @@ class mt {
2689
2699
  };
2690
2700
  }
2691
2701
  }
2692
- class bt {
2702
+ function St(l) {
2703
+ return l.trim().replace(/\+/g, " ").replace(/ +/g, " ").replace(/⌫/g, "backspace").replace(/↩/g, "enter").replace(/⇧/g, "shift").replace(/⌥/g, "alt").replace(/option/g, "alt").replace(/opt/g, "alt").replace(/⌃/g, "ctrl").replace(/control/g, "ctrl").replace(/command/g, "cmd").replace(/meta/g, "cmd").replace(/escape/g, "esc").replace(/⌘/g, "cmd").replace(/\*/g, "multiply").split(" ").filter((e) => e).sort((e, t) => {
2704
+ const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
2705
+ return o !== i ? o - i : e.localeCompare(t);
2706
+ }).join(" ");
2707
+ }
2708
+ function ue(l) {
2709
+ let e = l.key.toLowerCase();
2710
+ if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" && l.code === "Delete" && (e = "delete"), e === "backspace" && (e = "backspace"), e === "escape" && (e = "esc"), e === "return" && (e = "enter"), l.code.startsWith("Numpad")) {
2711
+ const s = l.code.replace("Numpad", "").toLowerCase();
2712
+ s === "add" ? e = "num_add" : s === "subtract" ? e = "num_subtract" : s === "multiply" ? e = "num_multiply" : s === "divide" ? e = "num_divide" : s === "decimal" ? e = "num_decimal" : s === "enter" ? e = "num_enter" : e = "num_" + s;
2713
+ }
2714
+ l.code.match(/^F\d+$/) && (e = l.code.toLowerCase()), l.code.match(/^Digit\d+$/) && (e = l.code.replace(/Digit/g, ""));
2715
+ let t = "";
2716
+ return l.ctrlKey && (t += " ctrl"), l.altKey && (t += t + " alt"), l.shiftKey && (t += t + " shift"), l.metaKey && (t += t + " cmd"), St(t + " " + e);
2717
+ }
2718
+ class yt {
2693
2719
  constructor(e) {
2694
2720
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
2695
2721
  }
@@ -2707,10 +2733,11 @@ class bt {
2707
2733
  * Also adds key down event listener to the table host element.
2708
2734
  */
2709
2735
  init() {
2710
- this.assignPredefinedSystemShortcutMappings(), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
2736
+ var e, t;
2737
+ (t = (e = this.tableScope) == null ? void 0 : e.tableOptions) != null && t.shortcutActionsDisabled ? this.isDebug() && console.debug("ShortcutService skipped.") : (this.assignPredefinedSystemShortcutMappings(), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this)));
2711
2738
  }
2712
2739
  assignPredefinedSystemShortcutMappings() {
2713
- this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new mt().get()) : Object.assign(this.shortcutActionIdMapping, new ut().get());
2740
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new bt().get()) : Object.assign(this.shortcutActionIdMapping, new mt().get());
2714
2741
  }
2715
2742
  isMacintosh() {
2716
2743
  return navigator.platform.indexOf("Mac") > -1;
@@ -2733,26 +2760,47 @@ class bt {
2733
2760
  return t;
2734
2761
  }
2735
2762
  findEntity(e) {
2736
- const t = this.getTokenByEvent(e);
2737
- this.isDebug() && console.debug("ShortcutService tokens :", t);
2738
- for (const s in this.shortcutActionIdMapping) {
2739
- const o = s.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[+ ]/g).sort();
2740
- if (this.areTokensEquals(t, o))
2741
- return this.shortcutActionIdMapping[s];
2742
- }
2743
- }
2744
- areTokensEquals(e, t) {
2745
- if (e.length !== t.length || e.length === 0)
2746
- return !1;
2747
- for (let s = 0; s < e.length; s++)
2748
- if (e[s] !== t[s])
2749
- return !1;
2750
- return !0;
2751
- }
2752
- getTokenByEvent(e) {
2753
- const t = [];
2754
- return e.altKey && t.push("alt"), e.shiftKey && t.push("shift"), e.ctrlKey && t.push("ctrl"), e.metaKey && t.push("meta"), e.code && t.push(e.code.toLowerCase().replace(/key/g, "")), t.sort();
2755
- }
2763
+ const t = ue(e);
2764
+ this.isDebug() && console.debug("ShortcutService shortcut :", t);
2765
+ for (const s in this.shortcutActionIdMapping)
2766
+ if (ue(e) === t)
2767
+ return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
2768
+ }
2769
+ // private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
2770
+ // if (tokens1.length !== tokens2.length) {
2771
+ // return false;
2772
+ // }
2773
+ // if (tokens1.length === 0) {
2774
+ // return false;
2775
+ // }
2776
+ // for (let i = 0; i < tokens1.length; i++) {
2777
+ // if (tokens1[i] !== tokens2[i]) {
2778
+ // return false;
2779
+ // }
2780
+ // }
2781
+ //
2782
+ // return true;
2783
+ // }
2784
+ //
2785
+ // private getTokenByEvent(evt: KeyboardEvent): string[] {
2786
+ // const tokens: string[] = [];
2787
+ // if (evt.altKey) {
2788
+ // tokens.push("alt");
2789
+ // }
2790
+ // if (evt.shiftKey) {
2791
+ // tokens.push("shift");
2792
+ // }
2793
+ // if (evt.ctrlKey) {
2794
+ // tokens.push("ctrl");
2795
+ // }
2796
+ // if (evt.metaKey) {
2797
+ // tokens.push("meta");
2798
+ // }
2799
+ // if (evt.code) {
2800
+ // tokens.push(evt.code.toLowerCase().replace(/key/g, ""));
2801
+ // }
2802
+ // return tokens.sort();
2803
+ // }
2756
2804
  /**
2757
2805
  * Retrieves the shortcut action mapping object.
2758
2806
  *
@@ -2762,7 +2810,7 @@ class bt {
2762
2810
  return this.shortcutActionIdMapping;
2763
2811
  }
2764
2812
  }
2765
- class ue {
2813
+ class me {
2766
2814
  onCheckboxChanged(e) {
2767
2815
  }
2768
2816
  onContextmenu(e) {
@@ -2782,7 +2830,7 @@ class ue {
2782
2830
  onFocusChanged(e) {
2783
2831
  }
2784
2832
  }
2785
- class Me {
2833
+ class Re {
2786
2834
  setStyle(e, t, s) {
2787
2835
  return e.style[t] = s, e;
2788
2836
  }
@@ -2809,10 +2857,10 @@ class Me {
2809
2857
  e.setAttribute(t, s);
2810
2858
  }
2811
2859
  }
2812
- class St {
2813
- render(e, t, s, o, i, r, l) {
2860
+ class xt {
2861
+ render(e, t, s, o, i, r, a) {
2814
2862
  if (i.isEditable(t, s)) {
2815
- l.addClass(e, "ge-table-row-input-div");
2863
+ a.addClass(e, "ge-table-row-input-div");
2816
2864
  const n = i.getValueAt(t, s);
2817
2865
  e.innerHTML = `
2818
2866
  <input
@@ -2830,7 +2878,7 @@ class St {
2830
2878
  }
2831
2879
  }
2832
2880
  }
2833
- class yt {
2881
+ class wt {
2834
2882
  constructor(e = "none", t = "single") {
2835
2883
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
2836
2884
  }
@@ -2912,7 +2960,7 @@ class yt {
2912
2960
  this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e), this.fireChangeEvent());
2913
2961
  }
2914
2962
  }
2915
- class xt {
2963
+ class vt {
2916
2964
  constructor(e = "none") {
2917
2965
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
2918
2966
  }
@@ -2949,7 +2997,7 @@ class xt {
2949
2997
  return [this.rowIndex, this.columnIndex];
2950
2998
  }
2951
2999
  }
2952
- class Re {
3000
+ class Te {
2953
3001
  constructor(e = new I(
2954
3002
  "❯",
2955
3003
  "",
@@ -2963,14 +3011,14 @@ class Re {
2963
3011
  }
2964
3012
  // `⊖ `, `⊕ `;
2965
3013
  }
2966
- const wt = new yt(), vt = new xt("cell");
2967
- class Te {
3014
+ const Ct = new wt(), Et = new vt("cell");
3015
+ class De {
2968
3016
  constructor() {
2969
3017
  this.overflowX = "auto", this.overflowY = "auto", this.horizontalBorderVisible = !0, this.verticalBorderVisible = !0, this.footerSeparatorBorderVisible = !0, this.headerSeparatorBorderVisible = !0, this.fixedEastSeparatorBorderVisible = !0, this.fixedWestSeparatorBorderVisible = !0, this.tableTopBorderVisible = !0, this.tableBottomBorderVisible = !0, this.hoverRowVisible = !0, this.hoverColumnVisible = !0, this.columnsResizable = !0, this.columnsDraggable = !0, this.columnResizeHandleWidthInPx = 4, this.defaultRowHeights = {
2970
3018
  header: 34,
2971
3019
  body: 34,
2972
3020
  footer: 34
2973
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Ee(), this.headerGroupOptions = new Re(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Ae(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new St(), this.getSelectionModel = () => wt, this.getFocusModel = () => vt;
3021
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Ae(), this.headerGroupOptions = new Te(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Me(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new xt(), this.getSelectionModel = () => Ct, this.getFocusModel = () => Et;
2974
3022
  }
2975
3023
  }
2976
3024
  const W = class W {
@@ -2989,20 +3037,20 @@ const W = class W {
2989
3037
  const r = this.mergeRanges(t.getRanges());
2990
3038
  if (r) {
2991
3039
  r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
2992
- const l = [];
3040
+ const a = [];
2993
3041
  for (let n = r.r1; n <= r.r2; n++) {
2994
3042
  const d = [];
2995
3043
  for (let c = r.c1; c <= r.c2; c++) {
2996
3044
  const h = t.isSelected(n, c) ? e.getBodyModel().getTextValueAt(n, c) : "";
2997
3045
  d.push(h);
2998
3046
  }
2999
- l.push(d.join(W.columnSeparatorChar));
3047
+ a.push(d.join(W.columnSeparatorChar));
3000
3048
  }
3001
- return o(l.join(W.rowSeparatorChar));
3049
+ return o(a.join(W.rowSeparatorChar));
3002
3050
  }
3003
3051
  }
3004
3052
  if (s) {
3005
- const [r, l] = s.getFocus(), n = e.getBodyModel().getTextValueAt(r, l);
3053
+ const [r, a] = s.getFocus(), n = e.getBodyModel().getTextValueAt(r, a);
3006
3054
  return o(n);
3007
3055
  }
3008
3056
  i("Cannot copy, neither selection nor focus defined.");
@@ -3032,9 +3080,9 @@ const W = class W {
3032
3080
  t,
3033
3081
  s
3034
3082
  ).then((r) => {
3035
- r && this.copyContent(r).then((l) => {
3083
+ r && this.copyContent(r).then((a) => {
3036
3084
  o(r);
3037
- }).catch((l) => {
3085
+ }).catch((a) => {
3038
3086
  i();
3039
3087
  });
3040
3088
  }).catch((r) => {
@@ -3058,16 +3106,16 @@ const W = class W {
3058
3106
  W.columnSeparatorChar = " ", W.rowSeparatorChar = `
3059
3107
  `;
3060
3108
  let K = W;
3061
- class Ct {
3109
+ class At {
3062
3110
  constructor(e, t = 500) {
3063
- this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Ye(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
3111
+ this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Je(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
3064
3112
  }
3065
3113
  handleResize(e) {
3066
3114
  const t = e[0], { width: s } = t.contentRect;
3067
3115
  this.tableScope.recalcColumnWidths(s);
3068
3116
  }
3069
3117
  }
3070
- class Et {
3118
+ class Mt {
3071
3119
  /**
3072
3120
  * Downloads a matrix data as an Excel file.
3073
3121
  *
@@ -3096,13 +3144,13 @@ class Et {
3096
3144
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>`, o = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3097
3145
  <Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>`, i = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3098
3146
  <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>${t}</dc:creator><cp:lastModifiedBy>${t}</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">2024-12-13T19:45:08Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2024-12-13T19:45:35Z</dcterms:modified></cp:coreProperties>`, r = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3099
- <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`, l = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3147
+ <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`, a = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3100
3148
  <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="0E2841"/></a:dk2><a:lt2><a:srgbClr val="E8E8E8"/></a:lt2><a:accent1><a:srgbClr val="156082"/></a:accent1><a:accent2><a:srgbClr val="E97132"/></a:accent2><a:accent3><a:srgbClr val="196B24"/></a:accent3><a:accent4><a:srgbClr val="0F9ED5"/></a:accent4><a:accent5><a:srgbClr val="A02B93"/></a:accent5><a:accent6><a:srgbClr val="4EA72E"/></a:accent6><a:hlink><a:srgbClr val="467886"/></a:hlink><a:folHlink><a:srgbClr val="96607D"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Aptos Display" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Aptos Narrow" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{2E142A2C-CD16-42D6-873A-C26D2A0506FA}" vid="{1BDDFF52-6CD6-40A5-AB3C-68EB2F1E4D0A}"/></a:ext></a:extLst></a:theme>`, n = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3101
3149
  <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="3" uniqueCount="3"><si><t>a</t></si><si><t>b</t></si><si><t>c</t></si></sst>`, d = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3102
3150
  <styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"><fonts count="1" x14ac:knownFonts="1"><font><sz val="12"/><color theme="1"/><name val="Aptos Narrow"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles><dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`, c = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3103
3151
  <workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15 xr xr6 xr10 xr2" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xmlns:xr10="http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"><fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="11207"/><workbookPr defaultThemeVersion="202300"/><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice Requires="x15"><x15ac:absPath url="/" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/></mc:Choice></mc:AlternateContent><xr:revisionPtr revIDLastSave="0" documentId="8_{292BF245-1F37-B045-B1A5-26C42FB62779}" xr6:coauthVersionLast="47" xr6:coauthVersionMax="47" xr10:uidLastSave="{00000000-0000-0000-0000-000000000000}"/><bookViews><workbookView xWindow="11340" yWindow="5060" windowWidth="28040" windowHeight="17440" xr2:uid="{858B8D3F-6246-774D-8903-6D38687B7BC6}"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="181029"/><extLst><ext uri="{140A7094-0E35-4892-8432-C4D2E57EDEB5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:workbookPr chartTrackingRefBase="1"/></ext><ext uri="{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}" xmlns:xcalcf="http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures"><xcalcf:calcFeatures><xcalcf:feature name="microsoft.com:RD"/><xcalcf:feature name="microsoft.com:Single"/><xcalcf:feature name="microsoft.com:FV"/><xcalcf:feature name="microsoft.com:CNMTM"/><xcalcf:feature name="microsoft.com:LET_WF"/><xcalcf:feature name="microsoft.com:LAMBDA_WF"/><xcalcf:feature name="microsoft.com:ARRAYTEXT_WF"/></xcalcf:calcFeatures></ext></extLst></workbook>`, h = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3104
3152
  <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>`, p = /* @__PURE__ */ new Map();
3105
- return p.set("_rels/.rels", s), p.set("docProps/app.xml", o), p.set("docProps/core.xml", i), p.set("xl/_rels/workbook.xml.rels", r), p.set("xl/theme/theme1.xml", l), p.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), p.set("xl/sharedStrings.xml", n), p.set("xl/styles.xml", d), p.set("xl/workbook.xml", c), p.set("[Content_Types].xml", h), p;
3153
+ return p.set("_rels/.rels", s), p.set("docProps/app.xml", o), p.set("docProps/core.xml", i), p.set("xl/_rels/workbook.xml.rels", r), p.set("xl/theme/theme1.xml", a), p.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), p.set("xl/sharedStrings.xml", n), p.set("xl/styles.xml", d), p.set("xl/workbook.xml", c), p.set("[Content_Types].xml", h), p;
3106
3154
  }
3107
3155
  getX1WorksheetsSheet1Xml(e) {
3108
3156
  const t = [];
@@ -3117,15 +3165,15 @@ class Et {
3117
3165
  const o = e[s];
3118
3166
  t.push('<row r="${r + 1}" spans="1:2" x14ac:dyDescent="0.2">');
3119
3167
  for (let i = 0; i < o.length; i++) {
3120
- const r = o[i], l = this.getCellAddress(s, i);
3168
+ const r = o[i], a = this.getCellAddress(s, i);
3121
3169
  if (typeof r == "number")
3122
- t.push(`<c r="${l}"><v>${r}</v></c>`);
3170
+ t.push(`<c r="${a}"><v>${r}</v></c>`);
3123
3171
  else if (r instanceof Date) {
3124
3172
  const n = r;
3125
- t.push(`<c r="${l}" t="inlineStr"><is><t>${n.toISOString()}</t></is></c>`);
3173
+ t.push(`<c r="${a}" t="inlineStr"><is><t>${n.toISOString()}</t></is></c>`);
3126
3174
  } else {
3127
3175
  const n = r != null ? this.escapeXml(String(r)) : "";
3128
- t.push(`<c r="${l}" t="inlineStr"><is><t>${n}</t></is></c>`);
3176
+ t.push(`<c r="${a}" t="inlineStr"><is><t>${n}</t></is></c>`);
3129
3177
  }
3130
3178
  }
3131
3179
  t.push("</row>");
@@ -3160,8 +3208,8 @@ class Et {
3160
3208
  const p = new TextEncoder().encode(h.path), u = new Uint8Array(46 + p.length), g = new DataView(u.buffer);
3161
3209
  u.set([80, 75, 1, 2], 0), g.setUint16(4, 20, !0), g.setUint16(6, 20, !0), g.setUint16(8, 0, !0), g.setUint16(10, 0, !0), g.setUint16(12, 0, !0), g.setUint16(14, 0, !0), g.setUint32(16, 0, !0), g.setUint32(20, h.contentSize, !0), g.setUint32(24, h.contentSize, !0), g.setUint16(28, p.length, !0), g.setUint16(30, 0, !0), g.setUint16(32, 0, !0), g.setUint16(34, 0, !0), g.setUint16(36, 0, !0), g.setUint32(38, 0, !0), g.setUint32(42, h.offset, !0), u.set(p, 46), t.push(u), s += u.length;
3162
3210
  });
3163
- const r = new Uint8Array(22), l = new DataView(r.buffer);
3164
- r.set([80, 75, 5, 6], 0), l.setUint16(4, 0, !0), l.setUint16(6, 0, !0), l.setUint16(8, o.length, !0), l.setUint16(10, o.length, !0), l.setUint32(12, s - i, !0), l.setUint32(16, i, !0), l.setUint16(20, 0, !0), t.push(r);
3211
+ const r = new Uint8Array(22), a = new DataView(r.buffer);
3212
+ r.set([80, 75, 5, 6], 0), a.setUint16(4, 0, !0), a.setUint16(6, 0, !0), a.setUint16(8, o.length, !0), a.setUint16(10, o.length, !0), a.setUint32(12, s - i, !0), a.setUint32(16, i, !0), a.setUint16(20, 0, !0), t.push(r);
3165
3213
  const n = t.reduce((h, p) => h + p.length, 0), d = new Uint8Array(n);
3166
3214
  let c = 0;
3167
3215
  for (const h of t)
@@ -3173,14 +3221,14 @@ class Et {
3173
3221
  return this.createZip(s);
3174
3222
  }
3175
3223
  }
3176
- class he extends dt {
3177
- constructor(e, t, s, o, i, r = new K(), l = new Et()) {
3224
+ class he extends ht {
3225
+ constructor(e, t, s, o, i, r = new K(), a = new Mt()) {
3178
3226
  var c;
3179
- if (super(e, t, new Je(s), o), this.eventListener = i, this.copyService = r, this.excelService = l, this.licenseManager = B.getInstance(), this.selectionService = new ft(this), this.api = new st(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, t.setTableScope(this), i || (this.eventListener = new ue()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
3227
+ if (super(e, t, new qe(s), o), this.eventListener = i, this.copyService = r, this.excelService = a, this.licenseManager = B.getInstance(), this.selectionService = new ut(this), this.api = new ot(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, this.lastContextmenu = Date.now(), t.setTableScope(this), i || (this.eventListener = new me()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
3180
3228
  const h = this.tableOptions.autoRestoreOptions, p = h.getStorageKeyFn;
3181
- p && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new ot(p)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new rt(p)), h.autoRestoreSortingState && (this.storeSortingService = new at(p)));
3229
+ p && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new it(p)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new lt(p)), h.autoRestoreSortingState && (this.storeSortingService = new at(p)));
3182
3230
  }
3183
- this.mouseHandler = new Ze(this), this.inputHandler = new pt(this), this.resizeHandler = new Ct(this, o.resizeEventDebounceDelay), this.shortcutService = new bt(this), this.shortcutService.addListener(this.selectionService);
3231
+ this.mouseHandler = new Qe(this), this.inputHandler = new gt(this), this.resizeHandler = new At(this, o.resizeEventDebounceDelay), this.shortcutService = new yt(this), this.shortcutService.addListener(this.selectionService);
3184
3232
  const n = this.getSelectionModel ? this.getSelectionModel() : void 0;
3185
3233
  n && n.addEventSelectionChangedListener(this);
3186
3234
  const d = this.getFocusModel ? this.getFocusModel() : void 0;
@@ -3198,7 +3246,7 @@ class he extends dt {
3198
3246
  *
3199
3247
  * @return {TableScope} - The newly created TableScope instance.
3200
3248
  */
3201
- static create(e, t, s = new Te(), o = new ue(), i = new Me(), r = new K()) {
3249
+ static create(e, t, s = new De(), o = new me(), i = new Re(), r = new K()) {
3202
3250
  return new he(e, t, i, s, o, r);
3203
3251
  }
3204
3252
  /**
@@ -3256,7 +3304,7 @@ class he extends dt {
3256
3304
  * @return {GeMouseEvent} - The created GeMouseEvent object.
3257
3305
  */
3258
3306
  createGeMouseEvent(e) {
3259
- const t = new le();
3307
+ const t = new ae();
3260
3308
  if (t.originalEvent = e, e) {
3261
3309
  const s = e.target;
3262
3310
  if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(s), t.rowIndex = this.getNumberByAttr(s, "data-row-index"), t.columnIndex = this.getNumberByAttr(s, "data-col-index"), t.action = this.getStringByAttr(s, "data-ge-action"), t.areaIdent) {
@@ -3314,7 +3362,13 @@ class he extends dt {
3314
3362
  * @return {void}
3315
3363
  */
3316
3364
  contextmenu(e) {
3317
- this.eventListener.onContextmenu(e);
3365
+ var s, o;
3366
+ const t = Date.now();
3367
+ if (t - this.lastContextmenu < 50) {
3368
+ this.lastContextmenu = t, (s = e.originalEvent) == null || s.preventDefault(), (o = e.originalEvent) == null || o.stopImmediatePropagation();
3369
+ return;
3370
+ }
3371
+ this.lastContextmenu = t, this.eventListener.onContextmenu(e);
3318
3372
  }
3319
3373
  /**
3320
3374
  * Toggles the expand or collapse state of all items in the body area model.
@@ -3341,8 +3395,8 @@ class he extends dt {
3341
3395
  var n;
3342
3396
  const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e), r = i === void 0 || i === "semi" || i === "none";
3343
3397
  o.setRowChecked(e, r), this.repaint();
3344
- const l = (n = o.rowSelectionModel) == null ? void 0 : n.getCheckedRows();
3345
- this.eventListener.onCheckboxChanged(l || []);
3398
+ const a = (n = o.rowSelectionModel) == null ? void 0 : n.getCheckedRows();
3399
+ this.eventListener.onCheckboxChanged(a || []);
3346
3400
  }
3347
3401
  /**
3348
3402
  * Handle mouse click events.
@@ -3396,7 +3450,7 @@ class he extends dt {
3396
3450
  const o = this.tableModel.getColumnDef(s);
3397
3451
  if (o != null && o.sortable && o.sortable()) {
3398
3452
  e.preventDefault(), e.stopPropagation();
3399
- const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, n = o.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], c = new ht(s, d);
3453
+ const a = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, n = o.sortState ?? "", d = a[(a.indexOf(n) + 1) % a.length], c = new pt(s, d);
3400
3454
  this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((p) => p.sortState = ""), o.sortState = d), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
3401
3455
  }
3402
3456
  }
@@ -3543,7 +3597,7 @@ class he extends dt {
3543
3597
  if (s.autoRestoreCollapsedExpandedState && o) {
3544
3598
  const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
3545
3599
  if (re(r)) {
3546
- const l = r, n = r.getRowCount();
3600
+ const a = r, n = r.getRowCount();
3547
3601
  for (let d = 0; d < n; d++) {
3548
3602
  const c = r.getRowByIndex(d);
3549
3603
  if (c)
@@ -3556,7 +3610,7 @@ class he extends dt {
3556
3610
  i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h));
3557
3611
  }
3558
3612
  }
3559
- l.recalcVisibleTreeRows();
3613
+ a.recalcVisibleTreeRows();
3560
3614
  }
3561
3615
  }
3562
3616
  }
@@ -3568,7 +3622,7 @@ class he extends dt {
3568
3622
  const o = new Array(t).fill(0);
3569
3623
  for (let i = 0; i < s; i++)
3570
3624
  for (let r = 0; r < t; r++) {
3571
- const l = e.getValueAt(i, r), n = (l == null ? void 0 : l.toString().length) || 0;
3625
+ const a = e.getValueAt(i, r), n = (a == null ? void 0 : a.toString().length) || 0;
3572
3626
  n > o[r] && (o[r] = n);
3573
3627
  }
3574
3628
  return o.map((i) => Math.max(i * 10, 50));
@@ -3829,16 +3883,16 @@ Y.themes = ["light", "combat", "paper", "blackboard"], Y.vars = {
3829
3883
  --ge-table-drop-zone-bg: #758129;
3830
3884
  }`
3831
3885
  };
3832
- let me = Y;
3886
+ let be = Y;
3833
3887
  const J = class J {
3834
- constructor(e = new Re()) {
3888
+ constructor(e = new Te()) {
3835
3889
  this.headerGroupOptions = e;
3836
3890
  }
3837
- render(e, t, s, o, i, r, l) {
3891
+ render(e, t, s, o, i, r, a) {
3838
3892
  const n = r != null && r.data ? r.data : "";
3839
3893
  if (r) {
3840
3894
  const { toggle: d, visibility: c, closed: h } = r, p = d ? J.toggleHeaderGroup : "";
3841
- this.addText(e, o, t, s, n, p), d && c !== "always" && this.addArrowDiv(l, e, !h, t, s, o, p);
3895
+ this.addText(e, o, t, s, n, p), d && c !== "always" && this.addArrowDiv(a, e, !h, t, s, o, p);
3842
3896
  } else
3843
3897
  this.addText(e, o, t, s, n, "");
3844
3898
  }
@@ -3850,9 +3904,9 @@ const J = class J {
3850
3904
  data-col-index="${o}"
3851
3905
  >${i}</span>`;
3852
3906
  }
3853
- addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", l) {
3907
+ addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", a) {
3854
3908
  const n = e.createElement("div");
3855
- e.addClass(n, "ge-table-toggle-icon-div"), e.setStyle(n, "display", "inline-block"), e.setStyle(n, "position", ""), e.setStyle(n, "width", "20px"), e.setStyle(n, "background", "transparent"), e.setStyle(n, "cursor", "pointer"), e.setAttribute(n, "data-row-index", `${o}`), e.setAttribute(n, "data-col-index", `${i}`), e.setAttribute(n, "data-area", `${r}`), e.setAttribute(n, "data-ge-action", `${l}`);
3909
+ e.addClass(n, "ge-table-toggle-icon-div"), e.setStyle(n, "display", "inline-block"), e.setStyle(n, "position", ""), e.setStyle(n, "width", "20px"), e.setStyle(n, "background", "transparent"), e.setStyle(n, "cursor", "pointer"), e.setAttribute(n, "data-row-index", `${o}`), e.setAttribute(n, "data-col-index", `${i}`), e.setAttribute(n, "data-area", `${r}`), e.setAttribute(n, "data-ge-action", `${a}`);
3856
3910
  let d;
3857
3911
  s ? d = this.headerGroupOptions.iconExpanded : d = this.headerGroupOptions.iconCollapsed;
3858
3912
  const c = d.content, h = e.createText(c);
@@ -3864,86 +3918,86 @@ const J = class J {
3864
3918
  applyStyleString(e, t, s) {
3865
3919
  const o = s.split(";").map((i) => i.trim()).filter((i) => i);
3866
3920
  for (const i of o) {
3867
- const [r, l] = i.split(":");
3868
- e.setStyle(t, r.trim(), l.trim());
3921
+ const [r, a] = i.split(":");
3922
+ e.setStyle(t, r.trim(), a.trim());
3869
3923
  }
3870
3924
  }
3871
3925
  };
3872
3926
  J.toggleHeaderGroup = "toggleHeaderGroup";
3873
- let be = J;
3874
- var At = /* @__PURE__ */ je("<div>");
3875
- const Tt = (a) => {
3927
+ let Se = J;
3928
+ var Rt = /* @__PURE__ */ Xe("<div>");
3929
+ const kt = (l) => {
3876
3930
  let e;
3877
- const t = Ce({
3931
+ const t = Ee({
3878
3932
  tableModel: null,
3879
- tableOptions: new Te()
3880
- }, a);
3881
- return Be(() => {
3933
+ tableOptions: new De()
3934
+ }, l);
3935
+ return Pe(() => {
3882
3936
  const s = {
3883
3937
  onSelectionChanged(r) {
3884
- const l = new CustomEvent("selectionChanged", {
3938
+ const a = new CustomEvent("selectionChanged", {
3885
3939
  detail: r,
3886
3940
  bubbles: !0
3887
3941
  });
3888
- e && e.dispatchEvent(l);
3942
+ e && e.dispatchEvent(a);
3889
3943
  },
3890
3944
  onFocusChanged(r) {
3891
- const l = new CustomEvent("focusChanged", {
3945
+ const a = new CustomEvent("focusChanged", {
3892
3946
  detail: r,
3893
3947
  bubbles: !0
3894
3948
  });
3895
- e && e.dispatchEvent(l);
3949
+ e && e.dispatchEvent(a);
3896
3950
  },
3897
3951
  onCheckboxChanged: (r) => {
3898
- const l = new CustomEvent("checkboxChanged", {
3952
+ const a = new CustomEvent("checkboxChanged", {
3899
3953
  detail: r,
3900
3954
  bubbles: !0
3901
3955
  });
3902
- e && e.dispatchEvent(l);
3956
+ e && e.dispatchEvent(a);
3903
3957
  },
3904
3958
  onContextmenu: (r) => {
3905
- const l = new CustomEvent("contextmenu", {
3959
+ const a = new CustomEvent("contextmenu", {
3906
3960
  detail: r,
3907
3961
  bubbles: !0
3908
3962
  });
3909
- e && e.dispatchEvent(l);
3963
+ e && e.dispatchEvent(a);
3910
3964
  },
3911
3965
  onModelChanged: (r) => {
3912
- const l = new CustomEvent("modelChanged", {
3966
+ const a = new CustomEvent("modelChanged", {
3913
3967
  detail: r,
3914
3968
  bubbles: !0
3915
3969
  });
3916
- e && e.dispatchEvent(l);
3970
+ e && e.dispatchEvent(a);
3917
3971
  },
3918
3972
  onMouseClicked: (r) => {
3919
- const l = new CustomEvent("mouseClicked", {
3973
+ const a = new CustomEvent("mouseClicked", {
3920
3974
  detail: r,
3921
3975
  bubbles: !0
3922
3976
  });
3923
- e && e.dispatchEvent(l);
3977
+ e && e.dispatchEvent(a);
3924
3978
  },
3925
3979
  onMouseDragging: (r) => {
3926
- const l = new CustomEvent("mouseDragging", {
3980
+ const a = new CustomEvent("mouseDragging", {
3927
3981
  detail: r,
3928
3982
  bubbles: !0
3929
3983
  });
3930
- e && e.dispatchEvent(l);
3984
+ e && e.dispatchEvent(a);
3931
3985
  },
3932
3986
  onMouseDraggingEnd: (r) => {
3933
- const l = new CustomEvent("mouseDraggingEnd", {
3987
+ const a = new CustomEvent("mouseDraggingEnd", {
3934
3988
  detail: r,
3935
3989
  bubbles: !0
3936
3990
  });
3937
- e && e.dispatchEvent(l);
3991
+ e && e.dispatchEvent(a);
3938
3992
  },
3939
3993
  onMouseMoved: (r) => {
3940
- const l = new CustomEvent("mouseMoved", {
3994
+ const a = new CustomEvent("mouseMoved", {
3941
3995
  detail: r,
3942
3996
  bubbles: !0
3943
3997
  });
3944
- e && e.dispatchEvent(l);
3998
+ e && e.dispatchEvent(a);
3945
3999
  }
3946
- }, o = new he(e, t.tableModel, new Me(), t.tableOptions, s);
4000
+ }, o = new he(e, t.tableModel, new Re(), t.tableOptions, s);
3947
4001
  o.firstInit();
3948
4002
  const i = new CustomEvent("tableReady", {
3949
4003
  detail: o.getApi(),
@@ -3951,12 +4005,12 @@ const Tt = (a) => {
3951
4005
  });
3952
4006
  e && e.dispatchEvent(i), t.licenseKey && B.getInstance().setLicenseKey(t.licenseKey);
3953
4007
  }), (() => {
3954
- var s = At(), o = e;
3955
- return typeof o == "function" ? Xe(o, s) : e = s, s;
4008
+ var s = Rt(), o = e;
4009
+ return typeof o == "function" ? Ke(o, s) : e = s, s;
3956
4010
  })();
3957
4011
  };
3958
4012
  export {
3959
- Mt as ComponentRendererWrapper,
3960
- Tt as GuiexpertTable,
3961
- Rt as GuiexpertTableProps
4013
+ Tt as ComponentRendererWrapper,
4014
+ kt as GuiexpertTable,
4015
+ Dt as GuiexpertTableProps
3962
4016
  };