impact-nova 2.5.13 → 2.5.15

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 (141) hide show
  1. package/dist/components/data/data-table/build-column-tree-from-grid.d.ts +0 -1
  2. package/dist/components/data/data-table/build-column-tree-from-grid.js +50 -55
  3. package/dist/components/data/data-table/data-table-column-apply.d.ts +0 -2
  4. package/dist/components/data/data-table/data-table-column-apply.js +73 -84
  5. package/dist/components/data/data-table/data-table-column-list.js +64 -94
  6. package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +6 -12
  7. package/dist/components/data/data-table/data-table-column-tree-cache.js +131 -250
  8. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +0 -5
  9. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +11 -28
  10. package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +0 -10
  11. package/dist/components/data/data-table/use-data-table-column-list-sync.js +196 -250
  12. package/dist/components/data/nested-list/components/NestedListContent.d.ts +2 -10
  13. package/dist/components/data/nested-list/components/NestedListContent.js +138 -253
  14. package/dist/components/data/nested-list/components/SortableItem.d.ts +1 -2
  15. package/dist/components/data/nested-list/components/SortableItem.js +60 -62
  16. package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +20 -10
  17. package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +233 -44
  18. package/dist/components/data/nested-list/nested-list-constants.d.ts +1 -4
  19. package/dist/components/data/nested-list/nested-list-constants.js +4 -10
  20. package/dist/components/data/nested-list/nested-list.js +336 -322
  21. package/dist/components/data/nested-list/nested-list.types.d.ts +0 -17
  22. package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +2 -0
  23. package/dist/components/data-display/calendar/calendar-apply-validation.js +64 -67
  24. package/dist/components/data-display/calendar/calendar-available-view.d.ts +27 -0
  25. package/dist/components/data-display/calendar/calendar-available-view.js +85 -0
  26. package/dist/components/data-display/calendar/calendar-config.js +1 -1
  27. package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +4 -2
  28. package/dist/components/data-display/calendar/calendar-day-picker-components.js +234 -164
  29. package/dist/components/data-display/calendar/calendar-day-picker-view.js +77 -76
  30. package/dist/components/data-display/calendar/calendar-fiscal-day-cell.d.ts +9 -0
  31. package/dist/components/data-display/calendar/calendar-fiscal-day-cell.js +45 -0
  32. package/dist/components/data-display/calendar/calendar-fiscal-period-nav.d.ts +6 -0
  33. package/dist/components/data-display/calendar/calendar-fiscal-period-nav.js +34 -18
  34. package/dist/components/data-display/calendar/calendar-footer.js +21 -21
  35. package/dist/components/data-display/calendar/calendar-injected-week-row.d.ts +5 -0
  36. package/dist/components/data-display/calendar/calendar-injected-week-row.js +92 -0
  37. package/dist/components/data-display/calendar/calendar-leading-week.utils.d.ts +16 -0
  38. package/dist/components/data-display/calendar/calendar-leading-week.utils.js +51 -0
  39. package/dist/components/data-display/calendar/calendar-month-picker-panel.js +50 -49
  40. package/dist/components/data-display/calendar/calendar-month-utils.d.ts +5 -0
  41. package/dist/components/data-display/calendar/calendar-month-utils.js +85 -64
  42. package/dist/components/data-display/calendar/calendar-orphan-week.d.ts +23 -0
  43. package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +3 -1
  44. package/dist/components/data-display/calendar/calendar-padding-week.utils.js +7 -5
  45. package/dist/components/data-display/calendar/calendar-period-cell.js +45 -46
  46. package/dist/components/data-display/calendar/calendar-quarter-panes.js +33 -31
  47. package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +10 -0
  48. package/dist/components/data-display/calendar/calendar-selection-appearance.js +53 -39
  49. package/dist/components/data-display/calendar/calendar-selection.d.ts +25 -0
  50. package/dist/components/data-display/calendar/calendar-selection.js +52 -23
  51. package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +2 -1
  52. package/dist/components/data-display/calendar/calendar-week-number-cell.js +59 -45
  53. package/dist/components/data-display/calendar/calendar-week-utils.d.ts +15 -4
  54. package/dist/components/data-display/calendar/calendar-week-utils.js +59 -50
  55. package/dist/components/data-display/calendar/calendar-year-panes.d.ts +3 -0
  56. package/dist/components/data-display/calendar/calendar-year-panes.js +53 -49
  57. package/dist/components/data-display/calendar/calendar.js +146 -143
  58. package/dist/components/data-display/calendar/calendar.types.d.ts +5 -0
  59. package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +2 -1
  60. package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +79 -74
  61. package/dist/components/data-display/calendar/use-calendar-state.d.ts +3 -1
  62. package/dist/components/data-display/calendar/use-calendar-state.js +394 -314
  63. package/dist/components/forms/date-picker/date-picker.js +60 -58
  64. package/dist/components/forms/date-picker/date-picker.types.d.ts +5 -0
  65. package/dist/components/forms/date-picker/date-range-picker.js +66 -64
  66. package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +1 -0
  67. package/dist/components/forms/date-picker/fiscal-pass-through.js +3 -2
  68. package/dist/components/forms/date-picker/fiscal-picker-fixtures.d.ts +17 -0
  69. package/dist/components/forms/date-picker/month-picker.js +61 -59
  70. package/dist/components/forms/date-picker/month-range-picker.js +63 -61
  71. package/dist/components/forms/date-picker/multi-date-picker.js +51 -49
  72. package/dist/components/forms/date-picker/multi-month-picker.js +49 -47
  73. package/dist/components/forms/date-picker/multi-quarter-picker.js +51 -47
  74. package/dist/components/forms/date-picker/multi-week-picker.js +53 -51
  75. package/dist/components/forms/date-picker/multi-year-picker.js +53 -49
  76. package/dist/components/forms/date-picker/quarter-picker.js +51 -47
  77. package/dist/components/forms/date-picker/quarter-range-picker.js +50 -46
  78. package/dist/components/forms/date-picker/week-picker.js +130 -126
  79. package/dist/components/forms/date-picker/week-range-picker.js +159 -155
  80. package/dist/components/forms/date-picker/year-picker.js +52 -48
  81. package/dist/components/forms/date-picker/year-range-picker.js +52 -48
  82. package/dist/form-react/Fields/DateInputField.js +51 -50
  83. package/dist/form-react/Fields/DateRangeField.js +14 -13
  84. package/dist/form-react/Fields/MonthRangeField.js +29 -28
  85. package/dist/form-react/Fields/MultiMonthPickerField.js +13 -12
  86. package/dist/form-react/Fields/MultiWeekPickerField.js +35 -27
  87. package/dist/form-react/Fields/MultiYearPickerField.d.ts +8 -0
  88. package/dist/form-react/Fields/MultiYearPickerField.js +58 -0
  89. package/dist/form-react/Fields/WeekRangePicker.js +33 -32
  90. package/dist/form-react/Fields/YearPickerField.d.ts +8 -0
  91. package/dist/form-react/Fields/YearPickerField.js +58 -0
  92. package/dist/form-react/Fields/YearRangePickerField.d.ts +8 -0
  93. package/dist/form-react/Fields/YearRangePickerField.js +58 -0
  94. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  95. package/dist/form-react/registry/defaultFieldRegistrations.js +16 -13
  96. package/dist/form-react/types/fields.types.d.ts +72 -1
  97. package/dist/form-react/types/fieldsOutput.types.d.ts +8 -2
  98. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  99. package/dist/impact-nova-components.css +13 -6
  100. package/dist/impact-nova.css +1 -1
  101. package/dist/lib/fiscal-calendar/index.d.ts +2 -2
  102. package/dist/lib/fiscal-calendar/index.js +26 -28
  103. package/dist/lib/fiscal-calendar/types.d.ts +0 -7
  104. package/dist/lib/fiscal-calendar/week-selection.d.ts +3 -4
  105. package/dist/lib/fiscal-calendar/week-selection.js +52 -79
  106. package/dist/llms/rules/ag-grid.js +1 -1
  107. package/dist/llms/rules/installation.js +1 -1
  108. package/dist/llms/rules/requirements.js +1 -1
  109. package/package.json +1 -1
  110. package/dist/components/data/data-table/column-picker-authority.d.ts +0 -34
  111. package/dist/components/data/data-table/column-picker-authority.js +0 -116
  112. package/dist/components/data/data-table/column-picker-drop-validation.d.ts +0 -7
  113. package/dist/components/data/data-table/column-picker-drop-validation.js +0 -37
  114. package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +0 -10
  115. package/dist/components/data/data-table/data-table-column-list-tree-apply.js +0 -79
  116. package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +0 -26
  117. package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +0 -195
  118. package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +0 -1
  119. package/dist/components/data/data-table/data-table-picker-column-eligibility.js +0 -7
  120. package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +0 -12
  121. package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +0 -12
  122. package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +0 -24
  123. package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +0 -128
  124. package/dist/components/data/nested-list/nested-list-display-utils.d.ts +0 -11
  125. package/dist/components/data/nested-list/nested-list-display-utils.js +0 -74
  126. package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +0 -31
  127. package/dist/components/data/nested-list/nested-list-drop-engine.js +0 -209
  128. package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +0 -26
  129. package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +0 -67
  130. package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +0 -4
  131. package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +0 -43
  132. package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +0 -3
  133. package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +0 -34
  134. package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +0 -9
  135. package/dist/components/data/nested-list/nested-list-row-estimates.js +0 -14
  136. package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +0 -36
  137. package/dist/components/data/nested-list/nested-list-scroll-anchor.js +0 -47
  138. package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +0 -59
  139. package/dist/components/data/nested-list/nested-list-virtual-drop.js +0 -341
  140. package/dist/lib/hash/fnv1a128.d.ts +0 -16
  141. package/dist/lib/hash/fnv1a128.js +0 -21
@@ -1,341 +0,0 @@
1
- import { getSectionIdFromDroppable as w } from "./nested-list-drop-engine.js";
2
- import { NESTED_LIST_SECTION_IDS as p } from "./nested-list-constants.js";
3
- function z(t, e) {
4
- for (let n = e + 1; n < t.length; n += 1) {
5
- const r = t[n];
6
- if (p.has(r.item.id))
7
- return !1;
8
- if (r.item.category !== "structure")
9
- return !0;
10
- }
11
- return !1;
12
- }
13
- function A(t, e) {
14
- const n = t.findIndex((o) => o.item.id === e);
15
- if (n === -1)
16
- return null;
17
- if (!z(t, n))
18
- return { overId: `droppable-${e}`, insertAfter: !1 };
19
- for (let o = n + 1; o < t.length; o += 1) {
20
- const i = t[o];
21
- if (p.has(i.item.id))
22
- break;
23
- if (i.item.category !== "structure")
24
- return { overId: i.item.id, insertAfter: !1 };
25
- }
26
- const r = t.slice(0, n).filter(
27
- (o) => !p.has(o.item.id)
28
- );
29
- return r.length > 0 ? {
30
- overId: r[r.length - 1].item.id,
31
- insertAfter: !0
32
- } : null;
33
- }
34
- function M(t, e) {
35
- const n = t[e].level;
36
- for (let r = e + 1; r < t.length; r += 1) {
37
- const o = t[r];
38
- if (o.level <= n)
39
- return !1;
40
- if (o.item.category !== "structure")
41
- return !0;
42
- }
43
- return !1;
44
- }
45
- function R(t, e, n, r = {}) {
46
- if (!n)
47
- return { overId: e, insertAfter: n };
48
- if (r[e] === !0)
49
- return { overId: e, insertAfter: !0 };
50
- const o = t.findIndex((s) => s.item.id === e);
51
- if (o === -1 || !M(t, o))
52
- return { overId: e, insertAfter: n };
53
- const i = t[o].level;
54
- for (let s = o + 1; s < t.length; s += 1) {
55
- const l = t[s];
56
- if (l.level <= i)
57
- break;
58
- if (l.item.category !== "structure")
59
- return { overId: l.item.id, insertAfter: !1 };
60
- }
61
- return { overId: e, insertAfter: !0 };
62
- }
63
- function y(t, e, n) {
64
- const r = document.elementFromPoint(t, e);
65
- if (!r || !n.contains(r))
66
- return null;
67
- const o = r.closest("[data-section-droppable]");
68
- if (!(o instanceof HTMLElement) || !n.contains(o))
69
- return null;
70
- const i = o.getAttribute("data-section-droppable");
71
- return !i || !p.has(i) ? null : `droppable-${i}`;
72
- }
73
- function D(t, e, n, r) {
74
- if (e <= 0)
75
- return 0;
76
- let o = 0, i = e - 1;
77
- for (; o < i; ) {
78
- const s = Math.floor((o + i) / 2), l = n(s), u = Math.max(r(s), 1), f = l + u;
79
- if (t < l)
80
- i = s - 1;
81
- else if (t >= f)
82
- o = s + 1;
83
- else
84
- return s;
85
- }
86
- return Math.max(0, Math.min(o, e - 1));
87
- }
88
- function E(t, e, n, r, o, i) {
89
- const s = e.querySelector(`[data-index="${r}"]`);
90
- if (s instanceof HTMLElement) {
91
- const c = s.getBoundingClientRect(), d = c.top + c.height / 2;
92
- return t >= d;
93
- }
94
- const l = e.querySelector(`[data-item-id="${n}"]`);
95
- if (l instanceof HTMLElement) {
96
- const c = l.getBoundingClientRect(), d = c.top + c.height / 2;
97
- return t >= d;
98
- }
99
- const f = e.getBoundingClientRect().top + o(r) - e.scrollTop, h = i(r), a = f + h / 2;
100
- return t >= a;
101
- }
102
- function O(t) {
103
- let e = 0;
104
- for (let n = 0; n < t.measurementsCache.length; n += 1)
105
- e = e * 31 + t.measurementsCache[n].size | 0;
106
- return e;
107
- }
108
- function H(t, e, n, r) {
109
- const o = e.measurementsCache.some(
110
- (u) => u.size > 0
111
- ), i = O(e), s = r?.current;
112
- if (s && s.rowCount === t && s.measurementFingerprint === i)
113
- return {
114
- offsets: s.offsets,
115
- sizes: s.sizes
116
- };
117
- const l = o ? L(e, t, n) : C(t, n);
118
- return r && (r.current = {
119
- rowCount: t,
120
- measurementFingerprint: i,
121
- offsets: l.offsets,
122
- sizes: l.sizes
123
- }), l;
124
- }
125
- function C(t, e) {
126
- const n = new Array(t), r = new Array(t);
127
- let o = 0;
128
- for (let i = 0; i < t; i += 1) {
129
- const s = e(i);
130
- n[i] = o, r[i] = s, o += s;
131
- }
132
- return { offsets: n, sizes: r };
133
- }
134
- function L(t, e, n) {
135
- const r = t.measurementsCache, o = new Array(e), i = new Array(e);
136
- let s = 0;
137
- for (let l = 0; l < e; l += 1) {
138
- const u = r[l]?.size, f = u && u > 0 ? u : n(l);
139
- o[l] = s, i[l] = f, s += f;
140
- }
141
- return { offsets: o, sizes: i };
142
- }
143
- function B(t) {
144
- for (let e = t.length - 1; e >= 0; e -= 1) {
145
- const n = t[e];
146
- if (!(!n || p.has(n.item.id)) && n.item.category !== "structure")
147
- return e;
148
- }
149
- return Math.max(0, t.length - 1);
150
- }
151
- function V(t, e, n) {
152
- const r = document.elementFromPoint(t, e);
153
- if (!r || !n.contains(r) || r.closest('[data-slot="drag-drop-tail"]'))
154
- return null;
155
- const o = r.closest("[data-index]");
156
- if (!(o instanceof HTMLElement) || !n.contains(o))
157
- return null;
158
- const i = Number(o.getAttribute("data-index"));
159
- return Number.isFinite(i) ? i : null;
160
- }
161
- function P(t, e, n, r) {
162
- const o = r.getTotalSize();
163
- if (o > 0)
164
- return o;
165
- if (t <= 0)
166
- return 0;
167
- const i = t - 1;
168
- return e(i) + n(i);
169
- }
170
- function N(t, e, n, r) {
171
- if (document.elementFromPoint(t, e)?.closest('[data-slot="drag-drop-tail"]'))
172
- return !0;
173
- const i = n.getBoundingClientRect();
174
- return e - i.top + n.scrollTop >= r;
175
- }
176
- function v(t) {
177
- const {
178
- clientY: e,
179
- scrollElement: n,
180
- items: r,
181
- flatIndex: o,
182
- getRowOffset: i,
183
- getRowSize: s,
184
- forceInsertAfter: l = !1,
185
- collapsedItems: u = {}
186
- } = t, f = Math.max(0, Math.min(o, r.length - 1)), h = r[f];
187
- if (!h)
188
- return null;
189
- let a = h.item.id, c = l || E(
190
- e,
191
- n,
192
- a,
193
- f,
194
- i,
195
- s
196
- ), d = f;
197
- if (p.has(a)) {
198
- const g = A(r, a);
199
- if (!g)
200
- return null;
201
- a = g.overId, c = g.insertAfter;
202
- const I = r.findIndex((x) => x.item.id === a);
203
- d = I === -1 ? f : I;
204
- } else if (h.item.category === "group") {
205
- const g = R(
206
- r,
207
- a,
208
- c,
209
- u
210
- );
211
- a = g.overId, c = g.insertAfter;
212
- const I = r.findIndex((x) => x.item.id === a);
213
- d = I === -1 ? f : I;
214
- }
215
- return {
216
- overId: a,
217
- insertAfter: c,
218
- flatIndex: d
219
- };
220
- }
221
- function _(t) {
222
- const {
223
- clientX: e,
224
- clientY: n,
225
- scrollElement: r,
226
- items: o,
227
- virtualizer: i,
228
- estimateRowSize: s,
229
- offsetCacheHolder: l,
230
- collapsedItems: u = {}
231
- } = t;
232
- if (o.length === 0)
233
- return null;
234
- const f = y(
235
- e,
236
- n,
237
- r
238
- );
239
- if (f) {
240
- const m = w(f), S = m ? o.findIndex((b) => b.item.id === m) : -1;
241
- return {
242
- overId: f,
243
- insertAfter: !1,
244
- flatIndex: S === -1 ? 0 : S
245
- };
246
- }
247
- const { offsets: h, sizes: a } = H(
248
- o.length,
249
- i,
250
- s,
251
- l
252
- ), c = (m) => h[m] ?? 0, d = (m) => a[m] ?? s(m), g = P(
253
- o.length,
254
- c,
255
- d,
256
- i
257
- );
258
- if (N(e, n, r, g)) {
259
- const m = B(o);
260
- return v({
261
- clientY: n,
262
- scrollElement: r,
263
- items: o,
264
- flatIndex: m,
265
- getRowOffset: c,
266
- getRowSize: d,
267
- forceInsertAfter: !0,
268
- collapsedItems: u
269
- });
270
- }
271
- const I = V(e, n, r);
272
- if (I !== null)
273
- return v({
274
- clientY: n,
275
- scrollElement: r,
276
- items: o,
277
- flatIndex: I,
278
- getRowOffset: c,
279
- getRowSize: d,
280
- collapsedItems: u
281
- });
282
- const x = r.getBoundingClientRect(), F = n - x.top + r.scrollTop, T = D(
283
- F,
284
- o.length,
285
- c,
286
- d
287
- );
288
- return v({
289
- clientY: n,
290
- scrollElement: r,
291
- items: o,
292
- flatIndex: T,
293
- getRowOffset: c,
294
- getRowSize: d,
295
- collapsedItems: u
296
- });
297
- }
298
- function k(t, e) {
299
- const n = w(e.overId);
300
- if (n) {
301
- const o = t.findIndex((i) => i.item.id === n);
302
- return o === -1 ? null : e.insertAfter ? o + 1 : o;
303
- }
304
- const r = t.findIndex((o) => o.item.id === e.overId);
305
- return r === -1 ? null : e.insertAfter ? r + 1 : r;
306
- }
307
- function q(t, e, n, r) {
308
- if (t <= 0)
309
- return 0;
310
- if (t >= r)
311
- return e.getTotalSize();
312
- const o = e.measurementsCache[t]?.start;
313
- if (o !== void 0)
314
- return o;
315
- let i = 0;
316
- for (let s = 0; s < t; s += 1) {
317
- const l = e.measurementsCache[s]?.size;
318
- i += l && l > 0 ? l : n(s);
319
- }
320
- return i;
321
- }
322
- function G(t, e, n) {
323
- return t < n ? e.includes(t) : t === n ? e.includes(n - 1) : !1;
324
- }
325
- function Z(t, e, n) {
326
- return t >= n.left && t <= n.right && e >= n.top && e <= n.bottom ? { pointerX: t, pointerY: e, isInsideScrollContainer: !0 } : {
327
- pointerX: Math.min(Math.max(t, n.left + 12), n.right - 12),
328
- pointerY: Math.min(Math.max(e, n.top + 12), n.bottom - 12),
329
- isInsideScrollContainer: !1
330
- };
331
- }
332
- export {
333
- Z as clampPointerToScrollBounds,
334
- q as getInsertGapOffsetY,
335
- k as insertGapIndexFromDropTarget,
336
- G as isInsertGapVisibleOnMountedRows,
337
- R as resolveGroupHeaderDropTarget,
338
- y as resolveSectionDroppableFromDomHit,
339
- A as resolveSectionHeaderDropTarget,
340
- _ as resolveVirtualDropTarget
341
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * FNV-1a 128-bit hash implemented as two independent 64-bit halves.
3
- * Produces a 32-char hex string deterministically from a stream of string tokens.
4
- *
5
- * Used for column-tree fingerprints where O(N) CPU is acceptable but multi-MB
6
- * string allocations are not. The 128-bit width makes collision probability
7
- * negligible (~1 in 2^128) while keeping output fixed at 32 bytes.
8
- */
9
- export declare class Fnv1a128Hasher {
10
- private high;
11
- private low;
12
- update(input: string): this;
13
- digest(): string;
14
- reset(): this;
15
- }
16
- export declare function fnv1a128(input: string): string;
@@ -1,21 +0,0 @@
1
- const s = BigInt("0x6c62272e07bb0142"), n = BigInt("0x62b821756295c58d"), o = BigInt("0x0000000001000000"), r = BigInt("0x000000000000013b"), f = BigInt("0xffffffffffffffff");
2
- class g {
3
- high = s;
4
- low = n;
5
- update(h) {
6
- for (let t = 0; t < h.length; t++) {
7
- const i = BigInt(h.charCodeAt(t) & 255);
8
- this.high = (this.high ^ i) * o & f, this.low = (this.low ^ i) * r & f;
9
- }
10
- return this;
11
- }
12
- digest() {
13
- return this.high.toString(16).padStart(16, "0") + this.low.toString(16).padStart(16, "0");
14
- }
15
- reset() {
16
- return this.high = s, this.low = n, this;
17
- }
18
- }
19
- export {
20
- g as Fnv1a128Hasher
21
- };