@updog/data-editor-wc 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,353 @@
1
+ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
2
+
3
+ This package (@updog/data-editor-wc) includes or depends on third-party software. The notices below are provided to comply with the licensing terms of those packages.
4
+ ================================================================================
5
+ Package: @floating-ui/react
6
+ Version: 0.27.18
7
+ License: MIT
8
+ Homepage: https://floating-ui.com/docs/react
9
+ ================================================================================
10
+ MIT License
11
+
12
+ Copyright (c) 2021-present Floating UI contributors
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
15
+ this software and associated documentation files (the "Software"), to deal in
16
+ the Software without restriction, including without limitation the rights to
17
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
18
+ the Software, and to permit persons to whom the Software is furnished to do so,
19
+ subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
26
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
27
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
28
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
+
31
+ ================================================================================
32
+ Package: @lexical/react
33
+ Version: 0.42.0
34
+ License: MIT
35
+ ================================================================================
36
+ MIT License
37
+
38
+ Copyright (c) Meta Platforms, Inc. and affiliates.
39
+
40
+ Permission is hereby granted, free of charge, to any person obtaining a copy
41
+ of this software and associated documentation files (the "Software"), to deal
42
+ in the Software without restriction, including without limitation the rights
43
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
44
+ copies of the Software, and to permit persons to whom the Software is
45
+ furnished to do so, subject to the following conditions:
46
+
47
+ The above copyright notice and this permission notice shall be included in all
48
+ copies or substantial portions of the Software.
49
+
50
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
51
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
52
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
53
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
54
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
55
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
56
+ SOFTWARE.
57
+
58
+ ================================================================================
59
+ Package: chardet
60
+ Version: 2.1.1
61
+ License: MIT
62
+ Homepage: https://github.com/runk/node-chardet
63
+ ================================================================================
64
+ Copyright (C) 2024 Dmitry Shirokov
65
+
66
+ Permission is hereby granted, free of charge, to any person obtaining a copy
67
+ of this software and associated documentation files (the "Software"), to deal
68
+ in the Software without restriction, including without limitation the rights
69
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
70
+ copies of the Software, and to permit persons to whom the Software is
71
+ furnished to do so, subject to the following conditions:
72
+
73
+ The above copyright notice and this permission notice shall be included in
74
+ all copies or substantial portions of the Software.
75
+
76
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
77
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
78
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
79
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
80
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
81
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
82
+ THE SOFTWARE.
83
+
84
+ ================================================================================
85
+ Package: clsx
86
+ Version: 2.1.1
87
+ License: MIT
88
+ ================================================================================
89
+ MIT License
90
+
91
+ Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
92
+
93
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
94
+
95
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
96
+
97
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
98
+
99
+ ================================================================================
100
+ Package: lexical
101
+ Version: 0.42.0
102
+ License: MIT
103
+ ================================================================================
104
+ MIT License
105
+
106
+ Copyright (c) Meta Platforms, Inc. and affiliates.
107
+
108
+ Permission is hereby granted, free of charge, to any person obtaining a copy
109
+ of this software and associated documentation files (the "Software"), to deal
110
+ in the Software without restriction, including without limitation the rights
111
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
112
+ copies of the Software, and to permit persons to whom the Software is
113
+ furnished to do so, subject to the following conditions:
114
+
115
+ The above copyright notice and this permission notice shall be included in all
116
+ copies or substantial portions of the Software.
117
+
118
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
119
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
120
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
121
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
122
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
123
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
124
+ SOFTWARE.
125
+
126
+ ================================================================================
127
+ Package: lucide-react
128
+ Version: 0.564.0
129
+ License: ISC
130
+ Homepage: https://lucide.dev
131
+ ================================================================================
132
+ ISC License
133
+
134
+ Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
135
+
136
+ Permission to use, copy, modify, and/or distribute this software for any
137
+ purpose with or without fee is hereby granted, provided that the above
138
+ copyright notice and this permission notice appear in all copies.
139
+
140
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
141
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
142
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
143
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
144
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
145
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
146
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
147
+
148
+ ---
149
+
150
+ The MIT License (MIT) (for portions derived from Feather)
151
+
152
+ Copyright (c) 2013-2026 Cole Bemis
153
+
154
+ Permission is hereby granted, free of charge, to any person obtaining a copy
155
+ of this software and associated documentation files (the "Software"), to deal
156
+ in the Software without restriction, including without limitation the rights
157
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
158
+ copies of the Software, and to permit persons to whom the Software is
159
+ furnished to do so, subject to the following conditions:
160
+
161
+ The above copyright notice and this permission notice shall be included in all
162
+ copies or substantial portions of the Software.
163
+
164
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
165
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
166
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
167
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
168
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
169
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
170
+ SOFTWARE.
171
+
172
+ ================================================================================
173
+ Package: papaparse
174
+ Version: 5.5.3
175
+ License: MIT
176
+ Homepage: https://www.papaparse.com/
177
+ ================================================================================
178
+ The MIT License (MIT)
179
+
180
+ Copyright (c) 2015 Matthew Holt
181
+
182
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
183
+ this software and associated documentation files (the "Software"), to deal in
184
+ the Software without restriction, including without limitation the rights to
185
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
186
+ the Software, and to permit persons to whom the Software is furnished to do so,
187
+ subject to the following conditions:
188
+
189
+ The above copyright notice and this permission notice shall be included in all
190
+ copies or substantial portions of the Software.
191
+
192
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
193
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
194
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
195
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
196
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
197
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
198
+
199
+ ================================================================================
200
+ Package: react-dropzone
201
+ Version: 15.0.0
202
+ License: MIT
203
+ Homepage: https://github.com/react-dropzone/react-dropzone
204
+ ================================================================================
205
+ The MIT License (MIT)
206
+
207
+ Copyright (c) 2018 Param Aggarwal
208
+
209
+ Permission is hereby granted, free of charge, to any person obtaining a copy
210
+ of this software and associated documentation files (the "Software"), to deal
211
+ in the Software without restriction, including without limitation the rights
212
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
213
+ copies of the Software, and to permit persons to whom the Software is
214
+ furnished to do so, subject to the following conditions:
215
+
216
+ The above copyright notice and this permission notice shall be included in all
217
+ copies or substantial portions of the Software.
218
+
219
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
220
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
221
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
222
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
223
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
224
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
225
+ SOFTWARE.
226
+
227
+
228
+ ================================================================================
229
+ Package: read-excel-file
230
+ Version: 6.0.3
231
+ License: MIT
232
+ Homepage: https://gitlab.com/catamphetamine/read-excel-file#readme
233
+ ================================================================================
234
+ MIT License
235
+
236
+ Copyright (c) 2018 gitlab.com/catamphetamine
237
+
238
+ Permission is hereby granted, free of charge, to any person obtaining a copy
239
+ of this software and associated documentation files (the "Software"), to deal
240
+ in the Software without restriction, including without limitation the rights
241
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
242
+ copies of the Software, and to permit persons to whom the Software is
243
+ furnished to do so, subject to the following conditions:
244
+
245
+ The above copyright notice and this permission notice shall be included in all
246
+ copies or substantial portions of the Software.
247
+
248
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
249
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
250
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
251
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
252
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
253
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
254
+ SOFTWARE.
255
+
256
+ ================================================================================
257
+ Package: uuid
258
+ Version: 13.0.0
259
+ License: MIT
260
+ ================================================================================
261
+ The MIT License (MIT)
262
+
263
+ Copyright (c) 2010-2020 Robert Kieffer and other contributors
264
+
265
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
266
+
267
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
268
+
269
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
270
+
271
+ ================================================================================
272
+ Package: write-excel-file
273
+ Version: 3.0.5
274
+ License: MIT
275
+ Homepage: https://gitlab.com/catamphetamine/write-excel-file#readme
276
+ ================================================================================
277
+ MIT License
278
+
279
+ Copyright (c) 2018 gitlab.com/catamphetamine
280
+
281
+ Permission is hereby granted, free of charge, to any person obtaining a copy
282
+ of this software and associated documentation files (the "Software"), to deal
283
+ in the Software without restriction, including without limitation the rights
284
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
285
+ copies of the Software, and to permit persons to whom the Software is
286
+ furnished to do so, subject to the following conditions:
287
+
288
+ The above copyright notice and this permission notice shall be included in all
289
+ copies or substantial portions of the Software.
290
+
291
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
292
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
293
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
294
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
295
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
296
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
297
+ SOFTWARE.
298
+
299
+ ================================================================================
300
+ Package: react
301
+ Version: 19.2.4
302
+ License: MIT
303
+ Homepage: https://react.dev/
304
+ ================================================================================
305
+ MIT License
306
+
307
+ Copyright (c) Meta Platforms, Inc. and affiliates.
308
+
309
+ Permission is hereby granted, free of charge, to any person obtaining a copy
310
+ of this software and associated documentation files (the "Software"), to deal
311
+ in the Software without restriction, including without limitation the rights
312
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
313
+ copies of the Software, and to permit persons to whom the Software is
314
+ furnished to do so, subject to the following conditions:
315
+
316
+ The above copyright notice and this permission notice shall be included in all
317
+ copies or substantial portions of the Software.
318
+
319
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
320
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
321
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
322
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
323
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
324
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
325
+ SOFTWARE.
326
+
327
+ ================================================================================
328
+ Package: react-dom
329
+ Version: 19.2.4
330
+ License: MIT
331
+ Homepage: https://react.dev/
332
+ ================================================================================
333
+ MIT License
334
+
335
+ Copyright (c) Meta Platforms, Inc. and affiliates.
336
+
337
+ Permission is hereby granted, free of charge, to any person obtaining a copy
338
+ of this software and associated documentation files (the "Software"), to deal
339
+ in the Software without restriction, including without limitation the rights
340
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
341
+ copies of the Software, and to permit persons to whom the Software is
342
+ furnished to do so, subject to the following conditions:
343
+
344
+ The above copyright notice and this permission notice shall be included in all
345
+ copies or substantial portions of the Software.
346
+
347
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
348
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
349
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
350
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
351
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
352
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
353
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ (function(){let e=self;self.addEventListener(`message`,t=>{let{fnString:n,ctx:r,rows:i,fields:a}=t.data;try{let t={};for(let[e,n]of Object.entries(r.opts))t[e]=new Set(n);let o={opts:t},s=Function(`return `+n)(),c=new Map,l=i.length;for(let t=0;t<l;t++){let[n,r]=i[t],u={...r},d;try{d=s(u,o)}catch{continue}if(d){for(let e of a){let t=r[e],i=d[e];if(i!==t){let r=c.get(e);r||(r=[],c.set(e,r)),r.push([n,t,i])}}(t+1)%1e4==0&&e.postMessage({type:`PROGRESS`,processed:t+1,total:l})}}let u=[];for(let[e,t]of c)u.push({field:e,changes:t});e.postMessage({type:`RESULT`,deltas:u})}catch(t){e.postMessage({type:`ERROR`,message:t instanceof Error?t.message:`Transform worker error`})}})})();
@@ -0,0 +1 @@
1
+ (function(){let e=[],t=[],n=[],r=new Uint32Array,i=new Uint8Array,a=new Uint32Array,o=new Uint8Array,s=[],c=new Set,l=[],u=[],d=new Set,f=2,p=self;self.addEventListener(`message`,m=>{let h=m.data;switch(h.type){case`APPEND`:{let c=e.length,u=h.rowIds.length,d=c+u,p=new Uint32Array(d*f);p.set(r),p.set(h.errorBitmask,c*f),r=p;let m=new Uint8Array(d);m.set(i),m.set(h.newFlags,c),i=m;let g=new Uint32Array(d*f);g.set(a),g.set(h.editedBitmask,c*f),a=g;let _=new Uint8Array(d);_.set(o),_.set(h.deletedFlags,c),o=_;for(let r=0;r<u;r++)l[h.rowIds[r]]=c+r,e.push(h.rowIds[r]),t.push(h.rowTexts[r]),n.push(h.rowRawTexts[r]),s.push(h.sourceIds[r]);break}case`UPDATE_TEXT`:{let e=l[h.rowId];e!==void 0&&(t[e]=h.rowText,n[e]=h.rowRawText);break}case`UPDATE_TEXT_BATCH`:for(let e=0;e<h.rowIds.length;e++){let r=l[h.rowIds[e]];r!==void 0&&(t[r]=h.rowTexts[e],n[r]=h.rowRawTexts[e])}break;case`DELETE`:{let c=new Set;for(let e of h.rowIds){let t=l[e];t!==void 0&&(c.add(t),l[e]=void 0)}if(c.size===0)break;let u=e.length-c.size,d=[],p=[],m=[],g=new Uint32Array(u*f),_=new Uint8Array(u),v=new Uint32Array(u*f),y=new Uint8Array(u),b=[],x=[],S=0;for(let l=0;l<e.length;l++)if(!c.has(l)){d[S]=e[l],p[S]=t[l],m[S]=n[l];for(let e=0;e<f;e++)g[S*f+e]=r[l*f+e],v[S*f+e]=a[l*f+e];_[S]=i[l],y[S]=o[l],b[S]=s[l],x[e[l]]=S,S++}e=d,t=p,n=m,r=g,i=_,a=v,o=y,s=b,l=x;break}case`INSERT`:{let c=h.positions.length;if(c===0)break;let u=e.length+c,d=Array(u),p=Array(u),m=Array(u),g=new Uint32Array(u*f),_=new Uint8Array(u),v=new Uint32Array(u*f),y=new Uint8Array(u),b=Array(u);l=[];let x=0,S=0;for(let C=0;C<u;C++){if(x<c&&h.positions[x]===C){d[C]=h.rowIds[x],p[C]=h.rowTexts[x],m[C]=h.rowRawTexts[x];for(let e=0;e<f;e++)g[C*f+e]=h.errorBitmask[x*f+e],v[C*f+e]=h.editedBitmask[x*f+e];_[C]=h.newFlags[x],b[C]=h.sourceIds[x],x++}else{d[C]=e[S],p[C]=t[S],m[C]=n[S];for(let e=0;e<f;e++)g[C*f+e]=r[S*f+e],v[C*f+e]=a[S*f+e];_[C]=i[S],y[C]=o[S],b[C]=s[S],S++}l[d[C]]=C}e=d,t=p,n=m,r=g,i=_,a=v,o=y,s=b;break}case`UPDATE_SOURCE_VIS`:h.isVisible?c.delete(h.sourceId):c.add(h.sourceId);break;case`SET_ALL_FLAGS`:r=h.errorBitmask,i=h.newFlags,a=h.editedBitmask,o=h.deletedFlags;break;case`SET_FIELD_ORDER`:{let t=f;if(u=h.fieldOrder,f=h.wordsPerRow,d=new Set(h.formatterFieldIndices??[]),f>t&&e.length>0){let n=e.length,i=new Uint32Array(n*f),o=new Uint32Array(n*f);for(let e=0;e<n;e++)for(let n=0;n<t;n++)i[e*f+n]=r[e*t+n],o[e*f+n]=a[e*t+n];r=i,a=o}break}case`FILTER`:try{p.postMessage(y(h.filters,h.generation,h.sort,h.selectedErrorRowIds))}catch{p.postMessage({type:`RESULT`,filteredIds:null,baseFilteredIds:null,generation:h.generation})}break;case`SORT_ALL`:try{let t=v([...e],h.sort);p.postMessage({type:`SORT_RESULT`,sortedIds:t,generation:h.generation})}catch{p.postMessage({type:`SORT_RESULT`,sortedIds:[...e],generation:h.generation})}break;case`DEBUG_DUMP`:{let l={};for(let t=0;t<e.length;t++)l[e[t]]=t;p.postMessage({type:`DEBUG_DUMP_RESULT`,rowIds:[...e],rowIndexMap:l,rowTextsLen:t.length,rowRawTextsLen:n.length,sourceIdsLen:s.length,errorBitmaskLen:r.length,newFlagsLen:i.length,editedBitmaskLen:a.length,deletedFlagsLen:o.length,wordsPerRow:f,fieldOrder:[...u],hiddenSourceIds:[...c]});break}case`CLEAR`:e=[],t=[],n=[],r=new Uint32Array,i=new Uint8Array,a=new Uint32Array,o=new Uint8Array,s=[],c.clear(),l=[];break}});function m(e,t,n){if(u.length===0)return e;let r=[],i=0,a=1;for(;a<e.length;){let n=e.indexOf(`\0`,a);if(n===-1)break;i<u.length&&t.has(u[i])&&r.push(e.substring(a,n)),i++,a=n+1}return r.length===0?``:n?`\0`+r.join(`\0`)+`\0`:r.join(` `)}function h(e,t){let n=0,r=1;for(;r<e.length;){let i=e.indexOf(`\0`,r);if(i===-1)break;if(n===t)return e.substring(r,i);n++,r=i+1}return``}function g(e,r){return h(d.has(r)?n[e]:t[e],r)}function _(e){let t=e.direction===`asc`?1:-1;switch(e.sortType){case`number`:return(e,n)=>{let r=parseFloat(e),i=parseFloat(n),a=e===``||Number.isNaN(r),o=n===``||Number.isNaN(i);return a&&o?0:a?1:o?-1:(r-i)*t};case`date`:return(e,n)=>!e&&!n?0:e?n?e<n?-1*t:e>n?1*t:0:-1:1;default:{let n=new Intl.Collator(e.locales,{numeric:!0,sensitivity:`variant`});return(e,r)=>!e&&!r?0:e?r?n.compare(e,r)*t:-1:1}}}function v(e,n){let r=n.sortType!==`text`,i=_(n),a=e.length,o=Array(a);for(let i=0;i<a;i++){let a=l[e[i]];a!==void 0&&(o[i]=r?g(a,n.fieldIdx):h(t[a],n.fieldIdx))}let s=Array.from({length:a},(e,t)=>t);s.sort((e,t)=>i(o[e],o[t]));let c=Array(a);for(let t=0;t<a;t++)c[t]=e[s[t]];return c}function y(n,r,l,d){let{search:p,matchCase:_,matchEntireCell:y,errorMessageFilters:b,showOnlyNewRows:x,showOnlyEditedRows:S,showOnlyEmptyCells:C,showOnlyDeletedRows:w,filterColumns:T,columnValueFilters:E,columnRangeFilters:D,columnDateRangeFilters:O}=n,k=_?p.trim():p.toLowerCase().trim(),A=!!k,j=b.length>0,M=x||S,N=C,P=d?new Set(d):null,F=[];for(let[e,t]of Object.entries(E))if(t.length>0){let n=u.indexOf(e);n!==-1&&F.push({fieldIdx:n,allowed:new Set(t)})}let I=F.length>0,L=[];for(let[e,t]of Object.entries(D))if(t.min!==void 0||t.max!==void 0){let n=u.indexOf(e);n!==-1&&L.push({fieldIdx:n,...t})}let R=L.length>0,z=[];for(let[e,t]of Object.entries(O))if(t.min!==void 0||t.max!==void 0){let n=u.indexOf(e);n!==-1&&z.push({fieldIdx:n,...t})}let B=z.length>0,V=c.size>0,H=o.some(e=>e),U=new Uint32Array(f);if(T)for(let e of T){let t=u.indexOf(e);if(t>=0){let e=t>>>5;e<f&&(U[e]|=1<<(t&31))}}else U.fill(4294967295);let W=A||j||M||N||V||I||R||B||w||H;if(!W&&!l)return{type:`RESULT`,filteredIds:null,baseFilteredIds:null,generation:r};if(!W&&l){let t=v([...e],l);return{type:`RESULT`,filteredIds:t,baseFilteredIds:t,generation:r}}let G=A&&!y?k.split(/\s+/):[],K=[],q=j?[]:K,J=A&&T?new Set(T):null;for(let n=0;n<e.length;n++){if(w){if(!o[n])continue}else if(o[n])continue;if(!(V&&c.has(s[n]))&&!(x&&!i[n])){if(S){let e=!1,t=n*f;for(let n=0;n<f;n++)if(a[t+n]&U[n]){e=!0;break}if(!e)continue}if(N){let e=!1,r=0,i=1,a=t[n];for(;i<a.length&&r<u.length;){let t=a.indexOf(`\0`,i);if(t===-1)break;let n=r>>>5;if(n<f&&U[n]&1<<(r&31)&&i===t){e=!0;break}r++,i=t+1}if(!e)continue}if(I){let e=!0;for(let{fieldIdx:r,allowed:i}of F){let a=h(t[n],r);if(!i.has(a)){e=!1;break}}if(!e)continue}if(R){let e=!0;for(let{fieldIdx:t,min:r,max:i}of L){let a=Number(g(n,t));if(!Number.isFinite(a)){e=!1;break}if(r!==void 0&&a<r){e=!1;break}if(i!==void 0&&a>i){e=!1;break}}if(!e)continue}if(B){let e=!0;for(let{fieldIdx:t,min:r,max:i}of z){let a=g(n,t);if(!a){e=!1;break}if(r!==void 0&&a<r){e=!1;break}if(i!==void 0&&a>i){e=!1;break}}if(!e)continue}if(A){let e=_?t[n]:t[n].toLowerCase(),r=J?m(e,J,y):e;if(y){if(!r.includes(`\0`+k+`\0`))continue}else{let e=!0;for(let t of G)if(!r.includes(t)){e=!1;break}if(!e)continue}}K.push(e[n]),j&&P&&P.has(e[n])&&q.push(e[n])}}return{type:`RESULT`,filteredIds:l?v(q,l):q,baseFilteredIds:A||M||N||V||I||R||B||H?K:null,generation:r}}})();