@amazon-devices/lottie-react-native 2.0.1758683737 → 2.0.9000000000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SystemBundles/{90296ccfe5ff2db2f9fe68a18eca092f8b7c17d1125cfafc612d18788fe9bce6.bundle → 0f9a823a0428769691985a052cfca6c63d74d3743f6ae4264266f0c4e2f9c458.bundle} +306 -962
- package/SystemBundles/0f9a823a0428769691985a052cfca6c63d74d3743f6ae4264266f0c4e2f9c458.map +3805 -0
- package/SystemModules/amzn__lottie-react-native-2.private.modules.txt +39 -40
- package/THIRD_PARTY_NOTICES.txt +1 -637
- package/kepler-compatibility.json +1 -3
- package/package.json +1 -1
- package/SystemBundles/90296ccfe5ff2db2f9fe68a18eca092f8b7c17d1125cfafc612d18788fe9bce6.map +0 -1
|
@@ -6,12 +6,15 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*
|
|
9
|
-
* @polyfill
|
|
10
|
-
* @nolint
|
|
11
9
|
* @format
|
|
10
|
+
*
|
|
11
|
+
* @nolint
|
|
12
|
+
* @polyfill
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
'use client';
|
|
16
|
+
|
|
17
|
+
/* eslint-disable no-shadow, eqeqeq, no-unused-vars, no-control-regex */
|
|
15
18
|
|
|
16
19
|
/**
|
|
17
20
|
* This pipes all of our console logging functions to native logging so that
|
|
@@ -209,7 +212,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
209
212
|
if (array) {
|
|
210
213
|
str = str.split('\n').map(function (line) {
|
|
211
214
|
return ' ' + line;
|
|
212
|
-
}).join('\n').
|
|
215
|
+
}).join('\n').slice(2);
|
|
213
216
|
} else {
|
|
214
217
|
str = '\n' + str.split('\n').map(function (line) {
|
|
215
218
|
return ' ' + line;
|
|
@@ -226,7 +229,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
226
229
|
}
|
|
227
230
|
name = JSON.stringify('' + key);
|
|
228
231
|
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
229
|
-
name = name.
|
|
232
|
+
name = name.slice(1, name.length - 1);
|
|
230
233
|
name = ctx.stylize(name, 'name');
|
|
231
234
|
} else {
|
|
232
235
|
name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
@@ -291,22 +294,13 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
291
294
|
}
|
|
292
295
|
return inspect;
|
|
293
296
|
}();
|
|
294
|
-
var
|
|
297
|
+
var INDEX_COLUMN_NAME = '(index)';
|
|
295
298
|
var LOG_LEVELS = {
|
|
296
299
|
trace: 0,
|
|
297
300
|
info: 1,
|
|
298
301
|
warn: 2,
|
|
299
302
|
error: 3
|
|
300
303
|
};
|
|
301
|
-
var INSPECTOR_LEVELS = [];
|
|
302
|
-
INSPECTOR_LEVELS[LOG_LEVELS.trace] = 'debug';
|
|
303
|
-
INSPECTOR_LEVELS[LOG_LEVELS.info] = 'log';
|
|
304
|
-
INSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning';
|
|
305
|
-
INSPECTOR_LEVELS[LOG_LEVELS.error] = 'error';
|
|
306
|
-
|
|
307
|
-
// Strip the inner function in getNativeLogFunction(), if in dev also
|
|
308
|
-
// strip method printing to originalConsole.
|
|
309
|
-
var INSPECTOR_FRAMES_TO_SKIP = 1;
|
|
310
304
|
function getNativeLogFunction(level) {
|
|
311
305
|
return function () {
|
|
312
306
|
var str;
|
|
@@ -334,9 +328,6 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
334
328
|
// (Note: Logic duplicated in ExceptionsManager.js.)
|
|
335
329
|
logLevel = LOG_LEVELS.warn;
|
|
336
330
|
}
|
|
337
|
-
if (global.__inspectorLog) {
|
|
338
|
-
global.__inspectorLog(INSPECTOR_LEVELS[logLevel], str, [].slice.call(arguments), INSPECTOR_FRAMES_TO_SKIP);
|
|
339
|
-
}
|
|
340
331
|
if (groupStack.length) {
|
|
341
332
|
str = groupFormat('', str);
|
|
342
333
|
}
|
|
@@ -348,16 +339,43 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
348
339
|
return element;
|
|
349
340
|
});
|
|
350
341
|
}
|
|
351
|
-
function
|
|
342
|
+
function formatCellValue(cell, key) {
|
|
343
|
+
if (key === INDEX_COLUMN_NAME) {
|
|
344
|
+
return cell[key];
|
|
345
|
+
}
|
|
346
|
+
if (cell.hasOwnProperty(key)) {
|
|
347
|
+
var cellValue = cell[key];
|
|
348
|
+
switch (typeof cellValue) {
|
|
349
|
+
case 'function':
|
|
350
|
+
return 'ƒ';
|
|
351
|
+
case 'string':
|
|
352
|
+
return "'" + cellValue + "'";
|
|
353
|
+
case 'object':
|
|
354
|
+
return cellValue == null ? 'null' : '{…}';
|
|
355
|
+
}
|
|
356
|
+
return String(cellValue);
|
|
357
|
+
}
|
|
358
|
+
return '';
|
|
359
|
+
}
|
|
360
|
+
function consoleTablePolyfill(data, columns) {
|
|
361
|
+
var rows;
|
|
362
|
+
|
|
352
363
|
// convert object -> array
|
|
353
|
-
if (
|
|
354
|
-
|
|
364
|
+
if (Array.isArray(data)) {
|
|
365
|
+
rows = data.map(function (row, index) {
|
|
366
|
+
var processedRow = {};
|
|
367
|
+
processedRow[INDEX_COLUMN_NAME] = String(index);
|
|
368
|
+
Object.assign(processedRow, row);
|
|
369
|
+
return processedRow;
|
|
370
|
+
});
|
|
371
|
+
} else {
|
|
355
372
|
rows = [];
|
|
356
373
|
for (var key in data) {
|
|
357
374
|
if (data.hasOwnProperty(key)) {
|
|
358
|
-
var
|
|
359
|
-
|
|
360
|
-
|
|
375
|
+
var processedRow = {};
|
|
376
|
+
processedRow[INDEX_COLUMN_NAME] = key;
|
|
377
|
+
Object.assign(processedRow, data[key]);
|
|
378
|
+
rows.push(processedRow);
|
|
361
379
|
}
|
|
362
380
|
}
|
|
363
381
|
}
|
|
@@ -365,7 +383,16 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
365
383
|
global.nativeLoggingHook('', LOG_LEVELS.info);
|
|
366
384
|
return;
|
|
367
385
|
}
|
|
368
|
-
|
|
386
|
+
if (Array.isArray(columns)) {
|
|
387
|
+
columns = [INDEX_COLUMN_NAME].concat(columns);
|
|
388
|
+
} else {
|
|
389
|
+
columns = Array.from(rows.reduce(function (columnSet, row) {
|
|
390
|
+
Object.keys(row).forEach(function (key) {
|
|
391
|
+
return columnSet.add(key);
|
|
392
|
+
});
|
|
393
|
+
return columnSet;
|
|
394
|
+
}, new Set()));
|
|
395
|
+
}
|
|
369
396
|
var stringRows = [];
|
|
370
397
|
var columnWidths = [];
|
|
371
398
|
|
|
@@ -374,7 +401,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
374
401
|
columns.forEach(function (k, i) {
|
|
375
402
|
columnWidths[i] = k.length;
|
|
376
403
|
for (var j = 0; j < rows.length; j++) {
|
|
377
|
-
var cellStr = (rows[j]
|
|
404
|
+
var cellStr = formatCellValue(rows[j], k);
|
|
378
405
|
stringRows[j] = stringRows[j] || [];
|
|
379
406
|
stringRows[j][i] = cellStr;
|
|
380
407
|
columnWidths[i] = Math.max(columnWidths[i], cellStr.length);
|
|
@@ -389,12 +416,12 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
389
416
|
return cell + extraSpaces;
|
|
390
417
|
});
|
|
391
418
|
space = space || ' ';
|
|
392
|
-
return cells.join(space + '|' + space);
|
|
419
|
+
return '| ' + cells.join(space + '|' + space) + ' |';
|
|
393
420
|
}
|
|
394
421
|
var separators = columnWidths.map(function (columnWidth) {
|
|
395
422
|
return repeat('-', columnWidth).join('');
|
|
396
423
|
});
|
|
397
|
-
var separatorRow = joinRow(separators
|
|
424
|
+
var separatorRow = joinRow(separators);
|
|
398
425
|
var header = joinRow(columns);
|
|
399
426
|
var table = [header, separatorRow];
|
|
400
427
|
for (var i = 0; i < rows.length; i++) {
|
|
@@ -433,11 +460,18 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
433
460
|
global.nativeLoggingHook('Assertion failed: ' + label, LOG_LEVELS.error);
|
|
434
461
|
}
|
|
435
462
|
}
|
|
463
|
+
function stub() {}
|
|
436
464
|
if (global.nativeLoggingHook) {
|
|
437
465
|
var originalConsole = global.console;
|
|
438
466
|
// Preserve the original `console` as `originalConsole`
|
|
439
467
|
|
|
440
|
-
global.console = {
|
|
468
|
+
global.console = Object.assign({
|
|
469
|
+
time: stub,
|
|
470
|
+
timeEnd: stub,
|
|
471
|
+
timeStamp: stub,
|
|
472
|
+
count: stub,
|
|
473
|
+
countReset: stub
|
|
474
|
+
}, originalConsole != null ? originalConsole : {}, {
|
|
441
475
|
error: getNativeLogFunction(LOG_LEVELS.error),
|
|
442
476
|
info: getNativeLogFunction(LOG_LEVELS.info),
|
|
443
477
|
log: getNativeLogFunction(LOG_LEVELS.info),
|
|
@@ -449,7 +483,51 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
449
483
|
groupEnd: consoleGroupEndPolyfill,
|
|
450
484
|
groupCollapsed: consoleGroupCollapsedPolyfill,
|
|
451
485
|
assert: consoleAssertPolyfill
|
|
452
|
-
};
|
|
486
|
+
});
|
|
487
|
+
|
|
488
|
+
// TODO(T206796580): This was copy-pasted from ExceptionsManager.js
|
|
489
|
+
// Delete the copy there after the c++ pipeline is rolled out everywhere.
|
|
490
|
+
if (global.RN$useAlwaysAvailableJSErrorHandling === true) {
|
|
491
|
+
var stringifySafe = function stringifySafe(arg) {
|
|
492
|
+
return inspect(arg, {
|
|
493
|
+
depth: 10
|
|
494
|
+
}).replace(/\n\s*/g, ' ');
|
|
495
|
+
};
|
|
496
|
+
var originalConsoleError = console.error;
|
|
497
|
+
console.reportErrorsAsExceptions = true;
|
|
498
|
+
console.error = function () {
|
|
499
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
500
|
+
args[_key] = arguments[_key];
|
|
501
|
+
}
|
|
502
|
+
originalConsoleError.apply(this, args);
|
|
503
|
+
if (!console.reportErrorsAsExceptions) {
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
if (global.RN$inExceptionHandler != null && global.RN$inExceptionHandler()) {
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
var error;
|
|
510
|
+
var firstArg = args[0];
|
|
511
|
+
if (firstArg != null && firstArg.stack) {
|
|
512
|
+
// RN$handleException will console.error this with high enough fidelity.
|
|
513
|
+
error = firstArg;
|
|
514
|
+
} else {
|
|
515
|
+
if (typeof firstArg === 'string' && firstArg.startsWith('Warning: ')) {
|
|
516
|
+
// React warnings use console.error so that a stack trace is shown, but
|
|
517
|
+
// we don't (currently) want these to show a redbox
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
var message = args.map(function (arg) {
|
|
521
|
+
return typeof arg === 'string' ? arg : stringifySafe(arg);
|
|
522
|
+
}).join(' ');
|
|
523
|
+
error = new Error(message);
|
|
524
|
+
error.name = 'console.error';
|
|
525
|
+
}
|
|
526
|
+
var isFatal = false;
|
|
527
|
+
var reportToConsole = false;
|
|
528
|
+
global.RN$handleException(error, isFatal, reportToConsole);
|
|
529
|
+
};
|
|
530
|
+
}
|
|
453
531
|
Object.defineProperty(console, '_isPolyfilled', {
|
|
454
532
|
value: true,
|
|
455
533
|
enumerable: false
|
|
@@ -459,7 +537,6 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
459
537
|
// sometimes useful. Ex: on OS X, this will let you see rich output in
|
|
460
538
|
// the Safari Web Inspector console.
|
|
461
539
|
} else if (!global.console) {
|
|
462
|
-
var stub = function stub() {};
|
|
463
540
|
var log = global.print || stub;
|
|
464
541
|
global.console = {
|
|
465
542
|
debug: log,
|
|
@@ -474,6 +551,8 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
474
551
|
}
|
|
475
552
|
},
|
|
476
553
|
clear: stub,
|
|
554
|
+
count: stub,
|
|
555
|
+
countReset: stub,
|
|
477
556
|
dir: stub,
|
|
478
557
|
dirxml: stub,
|
|
479
558
|
group: stub,
|
|
@@ -481,7 +560,10 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
481
560
|
groupEnd: stub,
|
|
482
561
|
profile: stub,
|
|
483
562
|
profileEnd: stub,
|
|
484
|
-
table: stub
|
|
563
|
+
table: stub,
|
|
564
|
+
time: stub,
|
|
565
|
+
timeEnd: stub,
|
|
566
|
+
timeStamp: stub
|
|
485
567
|
};
|
|
486
568
|
Object.defineProperty(console, '_isPolyfilled', {
|
|
487
569
|
value: true,
|
|
@@ -490,35 +572,10 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
490
572
|
}
|
|
491
573
|
})(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
|
|
492
574
|
(function (global) {
|
|
493
|
-
/**
|
|
494
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
495
|
-
*
|
|
496
|
-
* This source code is licensed under the MIT license found in the
|
|
497
|
-
* LICENSE file in the root directory of this source tree.
|
|
498
|
-
*
|
|
499
|
-
* @format
|
|
500
|
-
*
|
|
501
|
-
* @polyfill
|
|
502
|
-
*/
|
|
503
|
-
|
|
504
575
|
var _inGuard = 0;
|
|
505
|
-
|
|
506
|
-
* This is the error handler that is called when we encounter an exception
|
|
507
|
-
* when loading a module. This will report any errors encountered before
|
|
508
|
-
* ExceptionsManager is configured.
|
|
509
|
-
*/
|
|
510
|
-
var _globalHandler = function onError(e, isFatal) {
|
|
576
|
+
var _globalHandler = global.RN$useAlwaysAvailableJSErrorHandling === true ? global.RN$handleException : function (e, isFatal) {
|
|
511
577
|
throw e;
|
|
512
578
|
};
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* The particular require runtime that we are using looks for a global
|
|
516
|
-
* `ErrorUtils` object and if it exists, then it requires modules with the
|
|
517
|
-
* error handler specified via ErrorUtils.setGlobalHandler by calling the
|
|
518
|
-
* require function with applyWithGuard. Since the require module is loaded
|
|
519
|
-
* before any of the modules, this ErrorUtils must be defined (and the handler
|
|
520
|
-
* set) globally before requiring anything.
|
|
521
|
-
*/
|
|
522
579
|
var ErrorUtils = {
|
|
523
580
|
setGlobalHandler: function setGlobalHandler(fun) {
|
|
524
581
|
_globalHandler = fun;
|
|
@@ -530,20 +587,11 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
530
587
|
_globalHandler && _globalHandler(error, false);
|
|
531
588
|
},
|
|
532
589
|
reportFatalError: function reportFatalError(error) {
|
|
533
|
-
// NOTE: This has an untyped call site in Metro.
|
|
534
590
|
_globalHandler && _globalHandler(error, true);
|
|
535
591
|
},
|
|
536
|
-
applyWithGuard: function applyWithGuard(fun, context, args,
|
|
537
|
-
// Unused, but some code synced from www sets it to null.
|
|
538
|
-
unused_onError,
|
|
539
|
-
// Some callers pass a name here, which we ignore.
|
|
540
|
-
unused_name) {
|
|
592
|
+
applyWithGuard: function applyWithGuard(fun, context, args, unused_onError, unused_name) {
|
|
541
593
|
try {
|
|
542
594
|
_inGuard++;
|
|
543
|
-
/* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context,
|
|
544
|
-
* null) is fine. (2) array -> rest array should work */
|
|
545
|
-
/* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context,
|
|
546
|
-
* null) is fine. (2) array -> rest array should work */
|
|
547
595
|
return fun.apply(context, args);
|
|
548
596
|
} catch (e) {
|
|
549
597
|
ErrorUtils.reportError(e);
|
|
@@ -554,10 +602,6 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
554
602
|
},
|
|
555
603
|
applyWithGuardIfNeeded: function applyWithGuardIfNeeded(fun, context, args) {
|
|
556
604
|
if (ErrorUtils.inGuard()) {
|
|
557
|
-
/* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context,
|
|
558
|
-
* null) is fine. (2) array -> rest array should work */
|
|
559
|
-
/* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context,
|
|
560
|
-
* null) is fine. (2) array -> rest array should work */
|
|
561
605
|
return fun.apply(context, args);
|
|
562
606
|
} else {
|
|
563
607
|
ErrorUtils.applyWithGuard(fun, context, args);
|
|
@@ -569,15 +613,11 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
569
613
|
},
|
|
570
614
|
guard: function guard(fun, name, context) {
|
|
571
615
|
var _ref;
|
|
572
|
-
// TODO: (moti) T48204753 Make sure this warning is never hit and remove it - types
|
|
573
|
-
// should be sufficient.
|
|
574
616
|
if (typeof fun !== 'function') {
|
|
575
617
|
console.warn('A function must be passed to ErrorUtils.guard, got ', fun);
|
|
576
618
|
return null;
|
|
577
619
|
}
|
|
578
620
|
var guardName = (_ref = name != null ? name : fun.name) != null ? _ref : '<generated guard>';
|
|
579
|
-
/* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by
|
|
580
|
-
* Flow's LTI update could not be added via codemod */
|
|
581
621
|
function guarded() {
|
|
582
622
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
583
623
|
args[_key] = arguments[_key];
|
|
@@ -589,64 +629,6 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
589
629
|
};
|
|
590
630
|
global.ErrorUtils = ErrorUtils;
|
|
591
631
|
})(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
|
|
592
|
-
(function (global) {
|
|
593
|
-
/**
|
|
594
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
595
|
-
*
|
|
596
|
-
* This source code is licensed under the MIT license found in the
|
|
597
|
-
* LICENSE file in the root directory of this source tree.
|
|
598
|
-
*
|
|
599
|
-
* @format
|
|
600
|
-
* @polyfill
|
|
601
|
-
* @nolint
|
|
602
|
-
*/
|
|
603
|
-
|
|
604
|
-
(function () {
|
|
605
|
-
'use strict';
|
|
606
|
-
|
|
607
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* Returns an array of the given object's own enumerable entries.
|
|
611
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries
|
|
612
|
-
*/
|
|
613
|
-
if (typeof Object.entries !== 'function') {
|
|
614
|
-
Object.entries = function (object) {
|
|
615
|
-
// `null` and `undefined` values are not allowed.
|
|
616
|
-
if (object == null) {
|
|
617
|
-
throw new TypeError('Object.entries called on non-object');
|
|
618
|
-
}
|
|
619
|
-
var entries = [];
|
|
620
|
-
for (var key in object) {
|
|
621
|
-
if (hasOwnProperty.call(object, key)) {
|
|
622
|
-
entries.push([key, object[key]]);
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
return entries;
|
|
626
|
-
};
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* Returns an array of the given object's own enumerable entries.
|
|
631
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values
|
|
632
|
-
*/
|
|
633
|
-
if (typeof Object.values !== 'function') {
|
|
634
|
-
Object.values = function (object) {
|
|
635
|
-
// `null` and `undefined` values are not allowed.
|
|
636
|
-
if (object == null) {
|
|
637
|
-
throw new TypeError('Object.values called on non-object');
|
|
638
|
-
}
|
|
639
|
-
var values = [];
|
|
640
|
-
for (var key in object) {
|
|
641
|
-
if (hasOwnProperty.call(object, key)) {
|
|
642
|
-
values.push(object[key]);
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
return values;
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
})();
|
|
649
|
-
})(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
|
|
650
632
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
651
633
|
"use strict";
|
|
652
634
|
|
|
@@ -932,7 +914,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
932
914
|
}(_react.default.PureComponent);
|
|
933
915
|
exports.AnimatedLottieView = AnimatedLottieView;
|
|
934
916
|
_defineProperty(AnimatedLottieView, "defaultProps", defaultProps);
|
|
935
|
-
},"807579f3d54647a8dea9",["
|
|
917
|
+
},"807579f3d54647a8dea9",["ba9efe5c53f1d07f5c9d","aab42168bb4cb23540ec","6ed0e34da2b23bd3554f","26ef620f86acf7f6932a","111c4abba135854cb047","cb664999166f9660a878","9822a58ca7726d551fe0","68819e29ebee24bb0e88","a2c8e692f78bae5b8b98"]);
|
|
936
918
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
937
919
|
function _getPrototypeOf(t) {
|
|
938
920
|
return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
@@ -940,7 +922,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
940
922
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
|
|
941
923
|
}
|
|
942
924
|
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
943
|
-
},"
|
|
925
|
+
},"ba9efe5c53f1d07f5c9d",[]);
|
|
944
926
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
945
927
|
function _possibleConstructorReturn(t, e) {
|
|
946
928
|
if (e && ("object" == _$$_REQUIRE(_dependencyMap[0])["default"](e) || "function" == typeof e)) return e;
|
|
@@ -948,7 +930,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
948
930
|
return _$$_REQUIRE(_dependencyMap[1])(t);
|
|
949
931
|
}
|
|
950
932
|
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
951
|
-
},"
|
|
933
|
+
},"aab42168bb4cb23540ec",["e08c69ed06cf526909e3","0716ce96f45f287fb302"]);
|
|
952
934
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
953
935
|
function _typeof(o) {
|
|
954
936
|
"@babel/helpers - typeof";
|
|
@@ -960,14 +942,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
960
942
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
961
943
|
}
|
|
962
944
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
963
|
-
},"
|
|
945
|
+
},"e08c69ed06cf526909e3",[]);
|
|
964
946
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
965
947
|
function _assertThisInitialized(e) {
|
|
966
948
|
if (undefined === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
967
949
|
return e;
|
|
968
950
|
}
|
|
969
951
|
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
970
|
-
},"
|
|
952
|
+
},"0716ce96f45f287fb302",[]);
|
|
971
953
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
972
954
|
function _interopRequireDefault(e) {
|
|
973
955
|
return e && e.__esModule ? e : {
|
|
@@ -975,19 +957,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
975
957
|
};
|
|
976
958
|
}
|
|
977
959
|
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
978
|
-
},"
|
|
960
|
+
},"277a84013d7e1a1ace05",[]);
|
|
979
961
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
980
962
|
function _toConsumableArray(r) {
|
|
981
963
|
return _$$_REQUIRE(_dependencyMap[0])(r) || _$$_REQUIRE(_dependencyMap[1])(r) || _$$_REQUIRE(_dependencyMap[2])(r) || _$$_REQUIRE(_dependencyMap[3])();
|
|
982
964
|
}
|
|
983
965
|
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
984
|
-
},"
|
|
966
|
+
},"838d7a057beeb5db50df",["a425fd4fe3cf47759e99","67d028b72bb61755baea","e7044bb724c5bd68e2cc","b4810fa44dd496b7d9f5"]);
|
|
985
967
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
986
968
|
function _arrayWithoutHoles(r) {
|
|
987
969
|
if (Array.isArray(r)) return _$$_REQUIRE(_dependencyMap[0])(r);
|
|
988
970
|
}
|
|
989
971
|
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
990
|
-
},"
|
|
972
|
+
},"a425fd4fe3cf47759e99",["378be3062418cfac9327"]);
|
|
991
973
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
992
974
|
function _arrayLikeToArray(r, a) {
|
|
993
975
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -995,13 +977,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
995
977
|
return n;
|
|
996
978
|
}
|
|
997
979
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
998
|
-
},"
|
|
980
|
+
},"378be3062418cfac9327",[]);
|
|
999
981
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1000
982
|
function _iterableToArray(r) {
|
|
1001
983
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
1002
984
|
}
|
|
1003
985
|
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1004
|
-
},"
|
|
986
|
+
},"67d028b72bb61755baea",[]);
|
|
1005
987
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1006
988
|
function _unsupportedIterableToArray(r, a) {
|
|
1007
989
|
if (r) {
|
|
@@ -1011,19 +993,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1011
993
|
}
|
|
1012
994
|
}
|
|
1013
995
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1014
|
-
},"
|
|
996
|
+
},"e7044bb724c5bd68e2cc",["378be3062418cfac9327"]);
|
|
1015
997
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1016
998
|
function _nonIterableSpread() {
|
|
1017
999
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1018
1000
|
}
|
|
1019
1001
|
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1020
|
-
},"
|
|
1002
|
+
},"b4810fa44dd496b7d9f5",[]);
|
|
1021
1003
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1022
1004
|
function _classCallCheck(a, n) {
|
|
1023
1005
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
1024
1006
|
}
|
|
1025
1007
|
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1026
|
-
},"
|
|
1008
|
+
},"cb664999166f9660a878",[]);
|
|
1027
1009
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1028
1010
|
function _defineProperties(e, r) {
|
|
1029
1011
|
for (var t = 0; t < r.length; t++) {
|
|
@@ -1037,14 +1019,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1037
1019
|
}), e;
|
|
1038
1020
|
}
|
|
1039
1021
|
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1040
|
-
},"
|
|
1022
|
+
},"68819e29ebee24bb0e88",["cbba112244d360ffda7a"]);
|
|
1041
1023
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1042
1024
|
function toPropertyKey(t) {
|
|
1043
1025
|
var i = _$$_REQUIRE(_dependencyMap[0])(t, "string");
|
|
1044
1026
|
return "symbol" == _$$_REQUIRE(_dependencyMap[1])["default"](i) ? i : i + "";
|
|
1045
1027
|
}
|
|
1046
1028
|
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1047
|
-
},"
|
|
1029
|
+
},"cbba112244d360ffda7a",["ad82d340d0b5dc5f0801","e08c69ed06cf526909e3"]);
|
|
1048
1030
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1049
1031
|
function toPrimitive(t, r) {
|
|
1050
1032
|
if ("object" != _$$_REQUIRE(_dependencyMap[0])["default"](t) || !t) return t;
|
|
@@ -1057,7 +1039,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1057
1039
|
return ("string" === r ? String : Number)(t);
|
|
1058
1040
|
}
|
|
1059
1041
|
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1060
|
-
},"
|
|
1042
|
+
},"ad82d340d0b5dc5f0801",["e08c69ed06cf526909e3"]);
|
|
1061
1043
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1062
1044
|
/**
|
|
1063
1045
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -1102,13 +1084,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1102
1084
|
return _$$_REQUIRE(_dependencyMap[0])(r) || _$$_REQUIRE(_dependencyMap[1])(r, e) || _$$_REQUIRE(_dependencyMap[2])(r, e) || _$$_REQUIRE(_dependencyMap[3])();
|
|
1103
1085
|
}
|
|
1104
1086
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1105
|
-
},"
|
|
1087
|
+
},"d73b3a84588342abd1b6",["c18fba4833d885627fc3","db861c9134e305a92464","e7044bb724c5bd68e2cc","d2c95b166a5bd41ca703"]);
|
|
1106
1088
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1107
1089
|
function _arrayWithHoles(r) {
|
|
1108
1090
|
if (Array.isArray(r)) return r;
|
|
1109
1091
|
}
|
|
1110
1092
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1111
|
-
},"
|
|
1093
|
+
},"c18fba4833d885627fc3",[]);
|
|
1112
1094
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1113
1095
|
function _iterableToArrayLimit(r, l) {
|
|
1114
1096
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -1138,13 +1120,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1138
1120
|
}
|
|
1139
1121
|
}
|
|
1140
1122
|
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1141
|
-
},"
|
|
1123
|
+
},"db861c9134e305a92464",[]);
|
|
1142
1124
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1143
1125
|
function _nonIterableRest() {
|
|
1144
1126
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1145
1127
|
}
|
|
1146
1128
|
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1147
|
-
},"
|
|
1129
|
+
},"d2c95b166a5bd41ca703",[]);
|
|
1148
1130
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1149
1131
|
'use strict';
|
|
1150
1132
|
|
|
@@ -1176,7 +1158,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1176
1158
|
}), e && _$$_REQUIRE(_dependencyMap[0])(t, e);
|
|
1177
1159
|
}
|
|
1178
1160
|
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1179
|
-
},"
|
|
1161
|
+
},"9822a58ca7726d551fe0",["79c731bcf4b10abe8e4d"]);
|
|
1180
1162
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1181
1163
|
function _setPrototypeOf(t, e) {
|
|
1182
1164
|
return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1184,13 +1166,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1184
1166
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
|
|
1185
1167
|
}
|
|
1186
1168
|
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1187
|
-
},"
|
|
1169
|
+
},"79c731bcf4b10abe8e4d",[]);
|
|
1188
1170
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1189
1171
|
function _readOnlyError(r) {
|
|
1190
1172
|
throw new TypeError('"' + r + '" is read-only');
|
|
1191
1173
|
}
|
|
1192
1174
|
module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1193
|
-
},"
|
|
1175
|
+
},"9a3a31f49f0e1fee57b0",[]);
|
|
1194
1176
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1195
1177
|
function _wrapNativeSuper(t) {
|
|
1196
1178
|
var r = "function" == typeof Map ? new Map() : undefined;
|
|
@@ -1215,7 +1197,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1215
1197
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
|
|
1216
1198
|
}
|
|
1217
1199
|
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1218
|
-
},"
|
|
1200
|
+
},"66be7ef871ad04671969",["9cf198b81404c8b483b0","20524c8783215c6329fe","ba9efe5c53f1d07f5c9d","79c731bcf4b10abe8e4d"]);
|
|
1219
1201
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1220
1202
|
function _isNativeFunction(t) {
|
|
1221
1203
|
try {
|
|
@@ -1225,7 +1207,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1225
1207
|
}
|
|
1226
1208
|
}
|
|
1227
1209
|
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1228
|
-
},"
|
|
1210
|
+
},"9cf198b81404c8b483b0",[]);
|
|
1229
1211
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1230
1212
|
function _construct(t, e, r) {
|
|
1231
1213
|
if (_$$_REQUIRE(_dependencyMap[0])()) return Reflect.construct.apply(null, arguments);
|
|
@@ -1235,7 +1217,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1235
1217
|
return r && _$$_REQUIRE(_dependencyMap[1])(p, r.prototype), p;
|
|
1236
1218
|
}
|
|
1237
1219
|
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1238
|
-
},"
|
|
1220
|
+
},"20524c8783215c6329fe",["df21df9938c0adbd59f1","79c731bcf4b10abe8e4d"]);
|
|
1239
1221
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1240
1222
|
function _isNativeReflectConstruct() {
|
|
1241
1223
|
try {
|
|
@@ -1246,7 +1228,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1246
1228
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports)();
|
|
1247
1229
|
}
|
|
1248
1230
|
module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1249
|
-
},"
|
|
1231
|
+
},"df21df9938c0adbd59f1",[]);
|
|
1250
1232
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1251
1233
|
'use strict';
|
|
1252
1234
|
|
|
@@ -1269,7 +1251,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1269
1251
|
return stack;
|
|
1270
1252
|
}, []);
|
|
1271
1253
|
}
|
|
1272
|
-
var chromeRe = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
|
|
1254
|
+
var chromeRe = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|rsc|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
|
|
1273
1255
|
var chromeEvalRe = /\((\S*)(?::(\d+))(?::(\d+))\)/;
|
|
1274
1256
|
function parseChrome(line) {
|
|
1275
1257
|
var parts = chromeRe.exec(line);
|
|
@@ -1297,7 +1279,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1297
1279
|
column: parts[4] ? +parts[4] : null
|
|
1298
1280
|
};
|
|
1299
1281
|
}
|
|
1300
|
-
var winjsRe = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
1282
|
+
var winjsRe = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|rsc|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
1301
1283
|
function parseWinjs(line) {
|
|
1302
1284
|
var parts = winjsRe.exec(line);
|
|
1303
1285
|
if (!parts) {
|
|
@@ -1311,7 +1293,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1311
1293
|
column: parts[4] ? +parts[4] : null
|
|
1312
1294
|
};
|
|
1313
1295
|
}
|
|
1314
|
-
var geckoRe = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
1296
|
+
var geckoRe = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|rsc|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
1315
1297
|
var geckoEvalRe = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
1316
1298
|
function parseGecko(line) {
|
|
1317
1299
|
var parts = geckoRe.exec(line);
|
|
@@ -1363,7 +1345,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1363
1345
|
};
|
|
1364
1346
|
}
|
|
1365
1347
|
exports.parse = parse;
|
|
1366
|
-
},"
|
|
1348
|
+
},"aa725aa4c0b37e1add33",[]);
|
|
1367
1349
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1368
1350
|
'use strict';
|
|
1369
1351
|
|
|
@@ -2431,14 +2413,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2431
2413
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
|
|
2432
2414
|
}
|
|
2433
2415
|
module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2434
|
-
},"
|
|
2416
|
+
},"55062adb34159de0ea92",["d53f05ad44723a08f608"]);
|
|
2435
2417
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
2436
2418
|
function _superPropBase(t, o) {
|
|
2437
2419
|
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _$$_REQUIRE(_dependencyMap[0])(t)););
|
|
2438
2420
|
return t;
|
|
2439
2421
|
}
|
|
2440
2422
|
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2441
|
-
},"
|
|
2423
|
+
},"d53f05ad44723a08f608",["ba9efe5c53f1d07f5c9d"]);
|
|
2442
2424
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
2443
2425
|
/**
|
|
2444
2426
|
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
@@ -3910,25 +3892,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3910
3892
|
r,
|
|
3911
3893
|
i = _$$_REQUIRE(_dependencyMap[0])(e, t);
|
|
3912
3894
|
if (Object.getOwnPropertySymbols) {
|
|
3913
|
-
var
|
|
3914
|
-
for (r = 0; r <
|
|
3895
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
3896
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
3915
3897
|
}
|
|
3916
3898
|
return i;
|
|
3917
3899
|
}
|
|
3918
3900
|
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3919
|
-
},"
|
|
3901
|
+
},"a2c8e692f78bae5b8b98",["5927789db7c756c318ed"]);
|
|
3920
3902
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
3921
3903
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3922
3904
|
if (null == r) return {};
|
|
3923
3905
|
var t = {};
|
|
3924
3906
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
3925
|
-
if (e.
|
|
3907
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
3926
3908
|
t[n] = r[n];
|
|
3927
3909
|
}
|
|
3928
3910
|
return t;
|
|
3929
3911
|
}
|
|
3930
3912
|
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3931
|
-
},"
|
|
3913
|
+
},"5927789db7c756c318ed",[]);
|
|
3932
3914
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
3933
3915
|
/**
|
|
3934
3916
|
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
@@ -4076,7 +4058,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4076
4058
|
module.exports = AbortController;
|
|
4077
4059
|
module.exports.AbortController = module.exports["default"] = AbortController;
|
|
4078
4060
|
module.exports.AbortSignal = AbortSignal;
|
|
4079
|
-
},"ea8fcbd647aab1cfcdaa",["
|
|
4061
|
+
},"ea8fcbd647aab1cfcdaa",["ba9efe5c53f1d07f5c9d","aab42168bb4cb23540ec","cb664999166f9660a878","9822a58ca7726d551fe0","68819e29ebee24bb0e88","2bd3f165b1ed6b916de7"]);
|
|
4080
4062
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
4081
4063
|
/**
|
|
4082
4064
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -4648,24 +4630,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4648
4630
|
}) : e[r] = t, e;
|
|
4649
4631
|
}
|
|
4650
4632
|
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4651
|
-
},"
|
|
4633
|
+
},"4926d0dbc109dc5bb6c9",["cbba112244d360ffda7a"]);
|
|
4652
4634
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
4653
|
-
/**
|
|
4654
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4655
|
-
*
|
|
4656
|
-
* This source code is licensed under the MIT license found in the
|
|
4657
|
-
* LICENSE file in the root directory of this source tree.
|
|
4658
|
-
*
|
|
4659
|
-
*
|
|
4660
|
-
* @format
|
|
4661
|
-
*/
|
|
4662
|
-
|
|
4663
4635
|
'use strict';
|
|
4664
4636
|
|
|
4665
4637
|
var assets = [];
|
|
4666
4638
|
function registerAsset(asset) {
|
|
4667
|
-
// `push` returns new array length, so the first asset will
|
|
4668
|
-
// get id 1 (not 0) to make the value truthy
|
|
4669
4639
|
return assets.push(asset);
|
|
4670
4640
|
}
|
|
4671
4641
|
function getAssetByID(assetId) {
|
|
@@ -4677,16 +4647,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4677
4647
|
};
|
|
4678
4648
|
},"05d58bec2a6d939f08d8",[]);
|
|
4679
4649
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
4680
|
-
/**
|
|
4681
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4682
|
-
*
|
|
4683
|
-
* This source code is licensed under the MIT license found in the
|
|
4684
|
-
* LICENSE file in the root directory of this source tree.
|
|
4685
|
-
*
|
|
4686
|
-
* @format
|
|
4687
|
-
*
|
|
4688
|
-
*/
|
|
4689
|
-
|
|
4690
4650
|
'use strict';
|
|
4691
4651
|
|
|
4692
4652
|
var androidScaleSuffix = {
|
|
@@ -4698,24 +4658,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4698
4658
|
'4': 'xxxhdpi'
|
|
4699
4659
|
};
|
|
4700
4660
|
var ANDROID_BASE_DENSITY = 160;
|
|
4701
|
-
|
|
4702
|
-
/**
|
|
4703
|
-
* FIXME: using number to represent discrete scale numbers is fragile in essence because of
|
|
4704
|
-
* floating point numbers imprecision.
|
|
4705
|
-
*/
|
|
4706
4661
|
function getAndroidAssetSuffix(scale) {
|
|
4707
4662
|
if (scale.toString() in androidScaleSuffix) {
|
|
4708
4663
|
return androidScaleSuffix[scale.toString()];
|
|
4709
4664
|
}
|
|
4710
|
-
// NOTE: Android Gradle Plugin does not fully support the nnndpi format.
|
|
4711
|
-
// See https://issuetracker.google.com/issues/72884435
|
|
4712
4665
|
if (Number.isFinite(scale) && scale > 0) {
|
|
4713
4666
|
return Math.round(scale * ANDROID_BASE_DENSITY) + 'dpi';
|
|
4714
4667
|
}
|
|
4715
4668
|
throw new Error('no such scale ' + scale.toString());
|
|
4716
4669
|
}
|
|
4717
|
-
|
|
4718
|
-
// See https://developer.android.com/guide/topics/resources/drawable-resource.html
|
|
4719
4670
|
var drawableFileTypes = new Set(['gif', 'jpeg', 'jpg', 'ktx', 'png', 'svg', 'webp', 'xml']);
|
|
4720
4671
|
function getAndroidResourceFolderName(asset, scale) {
|
|
4721
4672
|
if (!drawableFileTypes.has(asset.type)) {
|
|
@@ -4728,9 +4679,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4728
4679
|
return 'drawable-' + suffix;
|
|
4729
4680
|
}
|
|
4730
4681
|
function getAndroidResourceIdentifier(asset) {
|
|
4731
|
-
return (getBasePath(asset) + '/' + asset.name).toLowerCase().replace(/\//g, '_')
|
|
4732
|
-
.replace(/([^a-z0-9_])/g, '') // Remove illegal chars
|
|
4733
|
-
.replace(/^assets_/, ''); // Remove "assets_" prefix
|
|
4682
|
+
return (getBasePath(asset) + '/' + asset.name).toLowerCase().replace(/\//g, '_').replace(/([^a-z0-9_])/g, '').replace(/^assets_/, '');
|
|
4734
4683
|
}
|
|
4735
4684
|
function getBasePath(asset) {
|
|
4736
4685
|
var basePath = asset.httpServerLocation;
|
|
@@ -4976,16 +4925,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4976
4925
|
exports.unstable_wrapCallback = Z;
|
|
4977
4926
|
},"9daefd1335ff675770cb",[]);
|
|
4978
4927
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
4979
|
-
/**
|
|
4980
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4981
|
-
*
|
|
4982
|
-
* This source code is licensed under the MIT license found in the
|
|
4983
|
-
* LICENSE file in the root directory of this source tree.
|
|
4984
|
-
*
|
|
4985
|
-
* @format
|
|
4986
|
-
*
|
|
4987
|
-
*/
|
|
4988
|
-
|
|
4989
4928
|
'use strict';
|
|
4990
4929
|
|
|
4991
4930
|
module.exports = {
|
|
@@ -6012,16 +5951,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6012
5951
|
module.exports = memoizeOne;
|
|
6013
5952
|
},"d381691ed29bec5a2050",[]);
|
|
6014
5953
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
6015
|
-
/**
|
|
6016
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6017
|
-
*
|
|
6018
|
-
* This source code is licensed under the MIT license found in the
|
|
6019
|
-
* LICENSE file in the root directory of this source tree.
|
|
6020
|
-
*
|
|
6021
|
-
* @format
|
|
6022
|
-
*
|
|
6023
|
-
*/
|
|
6024
|
-
|
|
6025
5954
|
'use strict';
|
|
6026
5955
|
|
|
6027
5956
|
module.exports = {
|
|
@@ -6045,16 +5974,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6045
5974
|
};
|
|
6046
5975
|
},"27b237d1799650306cb9",["a26dbe2a3afa21c3cf22","c4b46015e44050527820","d2355175ff6609a3def1","e6b1ef1f5b720d640981","8bafab90a37cab64b100","3e01a5bc929e85870fe5"]);
|
|
6047
5976
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
6048
|
-
/**
|
|
6049
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6050
|
-
*
|
|
6051
|
-
* This source code is licensed under the MIT license found in the
|
|
6052
|
-
* LICENSE file in the root directory of this source tree.
|
|
6053
|
-
*
|
|
6054
|
-
*
|
|
6055
|
-
* @format
|
|
6056
|
-
*/
|
|
6057
|
-
|
|
6058
5977
|
'use strict';
|
|
6059
5978
|
|
|
6060
5979
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -6065,11 +5984,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6065
5984
|
exports.keyExtractor = keyExtractor;
|
|
6066
5985
|
exports.newRangeCount = newRangeCount;
|
|
6067
5986
|
var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
|
|
6068
|
-
/**
|
|
6069
|
-
* Used to find the indices of the frames that overlap the given offsets. Useful for finding the
|
|
6070
|
-
* items that bound different windows of content, such as the visible area or the buffered overscan
|
|
6071
|
-
* area.
|
|
6072
|
-
*/
|
|
6073
5987
|
function elementsThatOverlapOffsets(offsets, props, getFrameMetrics) {
|
|
6074
5988
|
var zoomScale = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
6075
5989
|
var itemCount = props.getItemCount(props.data);
|
|
@@ -6079,14 +5993,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6079
5993
|
var left = 0;
|
|
6080
5994
|
var right = itemCount - 1;
|
|
6081
5995
|
while (left <= right) {
|
|
6082
|
-
// eslint-disable-next-line no-bitwise
|
|
6083
5996
|
var mid = left + (right - left >>> 1);
|
|
6084
5997
|
var frame = getFrameMetrics(mid, props);
|
|
6085
5998
|
var scaledOffsetStart = frame.offset * zoomScale;
|
|
6086
5999
|
var scaledOffsetEnd = (frame.offset + frame.length) * zoomScale;
|
|
6087
|
-
|
|
6088
|
-
// We want the first frame that contains the offset, with inclusive bounds. Thus, for the
|
|
6089
|
-
// first frame the scaledOffsetStart is inclusive, while for other frames it is exclusive.
|
|
6090
6000
|
if (mid === 0 && currentOffset < scaledOffsetStart || mid !== 0 && currentOffset <= scaledOffsetStart) {
|
|
6091
6001
|
right = mid - 1;
|
|
6092
6002
|
} else if (currentOffset > scaledOffsetEnd) {
|
|
@@ -6099,23 +6009,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6099
6009
|
}
|
|
6100
6010
|
return result;
|
|
6101
6011
|
}
|
|
6102
|
-
|
|
6103
|
-
/**
|
|
6104
|
-
* Computes the number of elements in the `next` range that are new compared to the `prev` range.
|
|
6105
|
-
* Handy for calculating how many new items will be rendered when the render window changes so we
|
|
6106
|
-
* can restrict the number of new items render at once so that content can appear on the screen
|
|
6107
|
-
* faster.
|
|
6108
|
-
*/
|
|
6109
6012
|
function newRangeCount(prev, next) {
|
|
6110
6013
|
return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first));
|
|
6111
6014
|
}
|
|
6112
|
-
|
|
6113
|
-
/**
|
|
6114
|
-
* Custom logic for determining which items should be rendered given the current frame and scroll
|
|
6115
|
-
* metrics, as well as the previous render state. The algorithm may evolve over time, but generally
|
|
6116
|
-
* prioritizes the visible area first, then expands that with overscan regions ahead and behind,
|
|
6117
|
-
* biased in the direction of scroll.
|
|
6118
|
-
*/
|
|
6119
6015
|
function computeWindowedRenderLimits(props, maxToRenderPerBatch, windowSize, prev, getFrameMetricsApprox, scrollMetrics) {
|
|
6120
6016
|
var itemCount = props.getItemCount(props.data);
|
|
6121
6017
|
if (itemCount === 0) {
|
|
@@ -6129,30 +6025,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6129
6025
|
visibleLength = scrollMetrics.visibleLength,
|
|
6130
6026
|
_scrollMetrics$zoomSc = scrollMetrics.zoomScale,
|
|
6131
6027
|
zoomScale = _scrollMetrics$zoomSc === undefined ? 1 : _scrollMetrics$zoomSc;
|
|
6132
|
-
|
|
6133
|
-
// Start with visible area, then compute maximum overscan region by expanding from there, biased
|
|
6134
|
-
// in the direction of scroll. Total overscan area is capped, which should cap memory consumption
|
|
6135
|
-
// too.
|
|
6136
6028
|
var visibleBegin = Math.max(0, offset);
|
|
6137
6029
|
var visibleEnd = visibleBegin + visibleLength;
|
|
6138
6030
|
var overscanLength = (windowSize - 1) * visibleLength;
|
|
6139
|
-
|
|
6140
|
-
// Considering velocity seems to introduce more churn than it's worth.
|
|
6141
|
-
var leadFactor = 0.5; // Math.max(0, Math.min(1, velocity / 25 + 0.5));
|
|
6142
|
-
|
|
6031
|
+
var leadFactor = 0.5;
|
|
6143
6032
|
var fillPreference = velocity > 1 ? 'after' : velocity < -1 ? 'before' : 'none';
|
|
6144
6033
|
var overscanBegin = Math.max(0, visibleBegin - 0.5 * overscanLength);
|
|
6145
6034
|
var overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength);
|
|
6146
6035
|
var lastItemOffset = getFrameMetricsApprox(itemCount - 1, props).offset * zoomScale;
|
|
6147
6036
|
if (lastItemOffset < overscanBegin) {
|
|
6148
|
-
// Entire list is before our overscan window
|
|
6149
6037
|
return {
|
|
6150
6038
|
first: Math.max(0, itemCount - 1 - maxToRenderPerBatch),
|
|
6151
6039
|
last: itemCount - 1
|
|
6152
6040
|
};
|
|
6153
6041
|
}
|
|
6154
|
-
|
|
6155
|
-
// Find the indices that correspond to the items at the render boundaries we're targeting.
|
|
6156
6042
|
var _elementsThatOverlapO = elementsThatOverlapOffsets([overscanBegin, visibleBegin, visibleEnd, overscanEnd], props, getFrameMetricsApprox, zoomScale),
|
|
6157
6043
|
_elementsThatOverlapO2 = (0, _slicedToArray2.default)(_elementsThatOverlapO, 4),
|
|
6158
6044
|
overscanFirst = _elementsThatOverlapO2[0],
|
|
@@ -6167,15 +6053,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6167
6053
|
first: first,
|
|
6168
6054
|
last: last
|
|
6169
6055
|
};
|
|
6170
|
-
|
|
6171
|
-
// We want to limit the number of new cells we're rendering per batch so that we can fill the
|
|
6172
|
-
// content on the screen quickly. If we rendered the entire overscan window at once, the user
|
|
6173
|
-
// could be staring at white space for a long time waiting for a bunch of offscreen content to
|
|
6174
|
-
// render.
|
|
6175
6056
|
var newCellCount = newRangeCount(prev, visible);
|
|
6176
6057
|
while (true) {
|
|
6177
6058
|
if (first <= overscanFirst && last >= overscanLast) {
|
|
6178
|
-
// If we fill the entire overscan range, we're done.
|
|
6179
6059
|
break;
|
|
6180
6060
|
}
|
|
6181
6061
|
var maxNewCells = newCellCount >= maxToRenderPerBatch;
|
|
@@ -6184,10 +6064,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6184
6064
|
var lastWillAddMore = last >= prev.last || last < prev.first;
|
|
6185
6065
|
var lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore);
|
|
6186
6066
|
if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) {
|
|
6187
|
-
// We only want to stop if we've hit maxNewCells AND we cannot increment first or last
|
|
6188
|
-
// without rendering new items. This let's us preserve as many already rendered items as
|
|
6189
|
-
// possible, reducing render churn and keeping the rendered overscan range as large as
|
|
6190
|
-
// possible.
|
|
6191
6067
|
break;
|
|
6192
6068
|
}
|
|
6193
6069
|
if (firstShouldIncrement && !(fillPreference === 'after' && lastShouldIncrement && lastWillAddMore)) {
|
|
@@ -6227,7 +6103,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6227
6103
|
}
|
|
6228
6104
|
return String(index);
|
|
6229
6105
|
}
|
|
6230
|
-
},"a26dbe2a3afa21c3cf22",["
|
|
6106
|
+
},"a26dbe2a3afa21c3cf22",["277a84013d7e1a1ace05","d73b3a84588342abd1b6"]);
|
|
6231
6107
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
6232
6108
|
var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
|
|
6233
6109
|
var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
|
|
@@ -6248,62 +6124,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6248
6124
|
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17]));
|
|
6249
6125
|
var _nullthrows = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18]));
|
|
6250
6126
|
var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[19]));
|
|
6251
|
-
function
|
|
6252
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
6127
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
6253
6128
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
6254
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
6255
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6256
|
-
*
|
|
6257
|
-
* This source code is licensed under the MIT license found in the
|
|
6258
|
-
* LICENSE file in the root directory of this source tree.
|
|
6259
|
-
*
|
|
6260
|
-
*
|
|
6261
|
-
* @format
|
|
6262
|
-
*/
|
|
6129
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
6263
6130
|
var ON_EDGE_REACHED_EPSILON = 0.001;
|
|
6264
6131
|
var _usedIndexForKey = false;
|
|
6265
6132
|
var _keylessItemComponentName = '';
|
|
6266
|
-
/**
|
|
6267
|
-
* Default Props Helper Functions
|
|
6268
|
-
* Use the following helper functions for default values
|
|
6269
|
-
*/
|
|
6270
|
-
|
|
6271
|
-
// horizontalOrDefault(this.props.horizontal)
|
|
6272
6133
|
function horizontalOrDefault(horizontal) {
|
|
6273
6134
|
return horizontal != null ? horizontal : false;
|
|
6274
6135
|
}
|
|
6275
|
-
|
|
6276
|
-
// initialNumToRenderOrDefault(this.props.initialNumToRender)
|
|
6277
6136
|
function initialNumToRenderOrDefault(initialNumToRender) {
|
|
6278
6137
|
return initialNumToRender != null ? initialNumToRender : 10;
|
|
6279
6138
|
}
|
|
6280
|
-
|
|
6281
|
-
// maxToRenderPerBatchOrDefault(this.props.maxToRenderPerBatch)
|
|
6282
6139
|
function maxToRenderPerBatchOrDefault(maxToRenderPerBatch) {
|
|
6283
6140
|
return maxToRenderPerBatch != null ? maxToRenderPerBatch : 10;
|
|
6284
6141
|
}
|
|
6285
|
-
|
|
6286
|
-
// onStartReachedThresholdOrDefault(this.props.onStartReachedThreshold)
|
|
6287
6142
|
function onStartReachedThresholdOrDefault(onStartReachedThreshold) {
|
|
6288
6143
|
return onStartReachedThreshold != null ? onStartReachedThreshold : 2;
|
|
6289
6144
|
}
|
|
6290
|
-
|
|
6291
|
-
// onEndReachedThresholdOrDefault(this.props.onEndReachedThreshold)
|
|
6292
6145
|
function onEndReachedThresholdOrDefault(onEndReachedThreshold) {
|
|
6293
6146
|
return onEndReachedThreshold != null ? onEndReachedThreshold : 2;
|
|
6294
6147
|
}
|
|
6295
|
-
|
|
6296
|
-
// getScrollingThreshold(visibleLength, onEndReachedThreshold)
|
|
6297
6148
|
function getScrollingThreshold(threshold, visibleLength) {
|
|
6298
6149
|
return threshold * visibleLength / 2;
|
|
6299
6150
|
}
|
|
6300
|
-
|
|
6301
|
-
// scrollEventThrottleOrDefault(this.props.scrollEventThrottle)
|
|
6302
6151
|
function scrollEventThrottleOrDefault(scrollEventThrottle) {
|
|
6303
6152
|
return scrollEventThrottle != null ? scrollEventThrottle : 50;
|
|
6304
6153
|
}
|
|
6305
|
-
|
|
6306
|
-
// windowSizeOrDefault(this.props.windowSize)
|
|
6307
6154
|
function windowSizeOrDefault(windowSize) {
|
|
6308
6155
|
return windowSize != null ? windowSize : 21;
|
|
6309
6156
|
}
|
|
@@ -6315,47 +6162,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6315
6162
|
}
|
|
6316
6163
|
return null;
|
|
6317
6164
|
}
|
|
6318
|
-
|
|
6319
|
-
/**
|
|
6320
|
-
* Base implementation for the more convenient [`<FlatList>`](https://reactnative.dev/docs/flatlist)
|
|
6321
|
-
* and [`<SectionList>`](https://reactnative.dev/docs/sectionlist) components, which are also better
|
|
6322
|
-
* documented. In general, this should only really be used if you need more flexibility than
|
|
6323
|
-
* `FlatList` provides, e.g. for use with immutable data instead of plain arrays.
|
|
6324
|
-
*
|
|
6325
|
-
* Virtualization massively improves memory consumption and performance of large lists by
|
|
6326
|
-
* maintaining a finite render window of active items and replacing all items outside of the render
|
|
6327
|
-
* window with appropriately sized blank space. The window adapts to scrolling behavior, and items
|
|
6328
|
-
* are rendered incrementally with low-pri (after any running interactions) if they are far from the
|
|
6329
|
-
* visible area, or with hi-pri otherwise to minimize the potential of seeing blank space.
|
|
6330
|
-
*
|
|
6331
|
-
* Some caveats:
|
|
6332
|
-
*
|
|
6333
|
-
* - Internal state is not preserved when content scrolls out of the render window. Make sure all
|
|
6334
|
-
* your data is captured in the item data or external stores like Flux, Redux, or Relay.
|
|
6335
|
-
* - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-
|
|
6336
|
-
* equal. Make sure that everything your `renderItem` function depends on is passed as a prop
|
|
6337
|
-
* (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on
|
|
6338
|
-
* changes. This includes the `data` prop and parent component state.
|
|
6339
|
-
* - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously
|
|
6340
|
-
* offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see
|
|
6341
|
-
* blank content. This is a tradeoff that can be adjusted to suit the needs of each application,
|
|
6342
|
-
* and we are working on improving it behind the scenes.
|
|
6343
|
-
* - By default, the list looks for a `key` or `id` prop on each item and uses that for the React key.
|
|
6344
|
-
* Alternatively, you can provide a custom `keyExtractor` prop.
|
|
6345
|
-
* - As an effort to remove defaultProps, use helper functions when referencing certain props
|
|
6346
|
-
*
|
|
6347
|
-
*/
|
|
6348
6165
|
var VirtualizedList = /*#__PURE__*/function (_StateSafePureCompone) {
|
|
6349
6166
|
function VirtualizedList(_props) {
|
|
6350
6167
|
var _this$props$updateCel, _this$props$maintainV, _this$props$maintainV2;
|
|
6351
6168
|
var _this;
|
|
6352
6169
|
(0, _classCallCheck2.default)(this, VirtualizedList);
|
|
6353
6170
|
_this = _callSuper(this, VirtualizedList, [_props]);
|
|
6354
|
-
// $FlowFixMe[missing-local-annot]
|
|
6355
6171
|
_this._getScrollMetrics = function () {
|
|
6356
6172
|
return _this._scrollMetrics;
|
|
6357
6173
|
};
|
|
6358
|
-
// $FlowFixMe[missing-local-annot]
|
|
6359
6174
|
_this._getOutermostParentListRef = function () {
|
|
6360
6175
|
if (_this._isNestedWithSameOrientation()) {
|
|
6361
6176
|
return _this.context.getOutermostParentListRef();
|
|
@@ -6385,21 +6200,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6385
6200
|
_this._cellRefs = {};
|
|
6386
6201
|
_this._frames = {};
|
|
6387
6202
|
_this._footerLength = 0;
|
|
6388
|
-
// Used for preventing scrollToIndex from being called multiple times for initialScrollIndex
|
|
6389
6203
|
_this._hasTriggeredInitialScrollToIndex = false;
|
|
6390
6204
|
_this._hasInteracted = false;
|
|
6391
6205
|
_this._hasMore = false;
|
|
6392
6206
|
_this._hasWarned = {};
|
|
6393
6207
|
_this._headerLength = 0;
|
|
6394
6208
|
_this._hiPriInProgress = false;
|
|
6395
|
-
// flag to prevent infinite hiPri cell limit update
|
|
6396
6209
|
_this._highestMeasuredFrameIndex = 0;
|
|
6397
6210
|
_this._indicesToKeys = new Map();
|
|
6398
6211
|
_this._lastFocusedCellKey = null;
|
|
6399
6212
|
_this._nestedChildLists = new _ChildListCollection.default();
|
|
6400
6213
|
_this._offsetFromParentVirtualizedList = 0;
|
|
6401
6214
|
_this._prevParentOffset = 0;
|
|
6402
|
-
// $FlowFixMe[missing-local-annot]
|
|
6403
6215
|
_this._scrollMetrics = {
|
|
6404
6216
|
contentLength: 0,
|
|
6405
6217
|
dOffset: 0,
|
|
@@ -6416,38 +6228,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6416
6228
|
_this._totalCellLength = 0;
|
|
6417
6229
|
_this._totalCellsMeasured = 0;
|
|
6418
6230
|
_this._viewabilityTuples = [];
|
|
6419
|
-
/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
|
|
6420
|
-
* LTI update could not be added via codemod */
|
|
6421
6231
|
_this._captureScrollRef = function (ref) {
|
|
6422
6232
|
_this._scrollRef = ref;
|
|
6423
6233
|
};
|
|
6424
|
-
/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
|
|
6425
|
-
* LTI update could not be added via codemod */
|
|
6426
6234
|
_this._defaultRenderScrollComponent = function (props) {
|
|
6427
6235
|
var onRefresh = props.onRefresh;
|
|
6428
6236
|
if (_this._isNestedWithSameOrientation()) {
|
|
6429
|
-
// $FlowFixMe[prop-missing] - Typing ReactNativeComponent revealed errors
|
|
6430
6237
|
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, Object.assign({}, props));
|
|
6431
6238
|
} else if (onRefresh) {
|
|
6432
6239
|
var _props$refreshing;
|
|
6433
6240
|
(0, _invariant.default)(typeof props.refreshing === 'boolean', '`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' + JSON.stringify((_props$refreshing = props.refreshing) != null ? _props$refreshing : 'undefined') + '`');
|
|
6434
|
-
return (
|
|
6435
|
-
/*#__PURE__*/
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
, {
|
|
6442
|
-
refreshing: props.refreshing,
|
|
6443
|
-
onRefresh: onRefresh,
|
|
6444
|
-
progressViewOffset: props.progressViewOffset
|
|
6445
|
-
}) : props.refreshControl
|
|
6446
|
-
}))
|
|
6447
|
-
);
|
|
6241
|
+
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.ScrollView, Object.assign({}, props, {
|
|
6242
|
+
refreshControl: props.refreshControl == null ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.RefreshControl, {
|
|
6243
|
+
refreshing: props.refreshing,
|
|
6244
|
+
onRefresh: onRefresh,
|
|
6245
|
+
progressViewOffset: props.progressViewOffset
|
|
6246
|
+
}) : props.refreshControl
|
|
6247
|
+
}));
|
|
6448
6248
|
} else {
|
|
6449
|
-
// $FlowFixMe[prop-missing] Invalid prop usage
|
|
6450
|
-
// $FlowFixMe[incompatible-use]
|
|
6451
6249
|
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.ScrollView, Object.assign({}, props));
|
|
6452
6250
|
}
|
|
6453
6251
|
};
|
|
@@ -6485,8 +6283,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6485
6283
|
};
|
|
6486
6284
|
_this._onLayout = function (e) {
|
|
6487
6285
|
if (_this._isNestedWithSameOrientation()) {
|
|
6488
|
-
// Need to adjust our scroll metrics to be relative to our containing
|
|
6489
|
-
// VirtualizedList before we can make claims about list item viewability
|
|
6490
6286
|
_this.measureLayoutRelativeToContainingList();
|
|
6491
6287
|
} else {
|
|
6492
6288
|
_this._scrollMetrics.visibleLength = _this._selectLength(e.nativeEvent.layout);
|
|
@@ -6531,13 +6327,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6531
6327
|
_this._scheduleCellsToRenderUpdate();
|
|
6532
6328
|
_this._maybeCallOnEdgeReached();
|
|
6533
6329
|
};
|
|
6534
|
-
/* Translates metrics from a scroll event in a parent VirtualizedList into
|
|
6535
|
-
* coordinates relative to the child list.
|
|
6536
|
-
*/
|
|
6537
6330
|
_this._convertParentScrollMetrics = function (metrics) {
|
|
6538
|
-
// Offset of the top of the nested list relative to the top of its parent's viewport
|
|
6539
6331
|
var offset = metrics.offset - _this._offsetFromParentVirtualizedList;
|
|
6540
|
-
// Child's visible length is the same as its parent's
|
|
6541
6332
|
var visibleLength = metrics.visibleLength;
|
|
6542
6333
|
var dOffset = offset - _this._scrollMetrics.offset;
|
|
6543
6334
|
var contentLength = _this._scrollMetrics.contentLength;
|
|
@@ -6562,8 +6353,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6562
6353
|
var dOffset = offset - _this._scrollMetrics.offset;
|
|
6563
6354
|
if (_this._isNestedWithSameOrientation()) {
|
|
6564
6355
|
if (_this._scrollMetrics.contentLength === 0) {
|
|
6565
|
-
// Ignore scroll events until onLayout has been called and we
|
|
6566
|
-
// know our offset from our offset from our parent
|
|
6567
6356
|
return;
|
|
6568
6357
|
}
|
|
6569
6358
|
var _this$_convertParentS = _this._convertParentScrollMetrics({
|
|
@@ -6585,8 +6374,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6585
6374
|
});
|
|
6586
6375
|
_this._hasWarned.perf = true;
|
|
6587
6376
|
}
|
|
6588
|
-
|
|
6589
|
-
// For invalid negative values (w/ RTL), set this to 1.
|
|
6590
6377
|
var zoomScale = e.nativeEvent.zoomScale < 0 ? 1 : e.nativeEvent.zoomScale;
|
|
6591
6378
|
_this._scrollMetrics = {
|
|
6592
6379
|
contentLength: contentLength,
|
|
@@ -6665,9 +6452,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6665
6452
|
};
|
|
6666
6453
|
});
|
|
6667
6454
|
};
|
|
6668
|
-
_this._createViewToken = function (index, isViewable, props
|
|
6669
|
-
// $FlowFixMe[missing-local-annot]
|
|
6670
|
-
) {
|
|
6455
|
+
_this._createViewToken = function (index, isViewable, props) {
|
|
6671
6456
|
var data = props.data,
|
|
6672
6457
|
getItem = props.getItem;
|
|
6673
6458
|
var item = getItem(data, index);
|
|
@@ -6678,10 +6463,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6678
6463
|
isViewable: isViewable
|
|
6679
6464
|
};
|
|
6680
6465
|
};
|
|
6681
|
-
/**
|
|
6682
|
-
* Gets an approximate offset to an item at a given index. Supports
|
|
6683
|
-
* fractional indices.
|
|
6684
|
-
*/
|
|
6685
6466
|
_this._getOffsetApprox = function (index, props) {
|
|
6686
6467
|
if (Number.isInteger(index)) {
|
|
6687
6468
|
return _this.__getFrameMetricsApprox(index, props).offset;
|
|
@@ -6694,7 +6475,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6694
6475
|
_this.__getFrameMetricsApprox = function (index, props) {
|
|
6695
6476
|
var frame = _this._getFrameMetrics(index, props);
|
|
6696
6477
|
if (frame && frame.index === index) {
|
|
6697
|
-
// check for invalid frames due to row re-ordering
|
|
6698
6478
|
return frame;
|
|
6699
6479
|
} else {
|
|
6700
6480
|
var data = props.data,
|
|
@@ -6716,27 +6496,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6716
6496
|
var frame = _this._frames[VirtualizedList._getItemKey(props, index)];
|
|
6717
6497
|
if (!frame || frame.index !== index) {
|
|
6718
6498
|
if (getItemLayout) {
|
|
6719
|
-
/* $FlowFixMe[prop-missing] (>=0.63.0 site=react_native_fb) This comment
|
|
6720
|
-
* suppresses an error found when Flow v0.63 was deployed. To see the error
|
|
6721
|
-
* delete this comment and run Flow. */
|
|
6722
6499
|
return getItemLayout(data, index);
|
|
6723
6500
|
}
|
|
6724
6501
|
}
|
|
6725
6502
|
return frame;
|
|
6726
6503
|
};
|
|
6727
6504
|
_this._getNonViewportRenderRegions = function (props) {
|
|
6728
|
-
// Keep a viewport's worth of content around the last focused cell to allow
|
|
6729
|
-
// random navigation around it without any blanking. E.g. tabbing from one
|
|
6730
|
-
// focused item out of viewport to another.
|
|
6731
6505
|
if (!(_this._lastFocusedCellKey && _this._cellRefs[_this._lastFocusedCellKey])) {
|
|
6732
6506
|
return [];
|
|
6733
6507
|
}
|
|
6734
6508
|
var lastFocusedCellRenderer = _this._cellRefs[_this._lastFocusedCellKey];
|
|
6735
6509
|
var focusedCellIndex = lastFocusedCellRenderer.props.index;
|
|
6736
6510
|
var itemCount = props.getItemCount(props.data);
|
|
6737
|
-
|
|
6738
|
-
// The last cell we rendered may be at a new index. Bail if we don't know
|
|
6739
|
-
// where it is.
|
|
6740
6511
|
if (focusedCellIndex >= itemCount || VirtualizedList._getItemKey(props, focusedCellIndex) !== _this._lastFocusedCellKey) {
|
|
6741
6512
|
return [];
|
|
6742
6513
|
}
|
|
@@ -6784,9 +6555,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6784
6555
|
cellsAroundViewport: initialRenderRegion,
|
|
6785
6556
|
renderMask: VirtualizedList._createRenderMask(_props, initialRenderRegion),
|
|
6786
6557
|
firstVisibleItemKey: _this.props.getItemCount(_this.props.data) > minIndexForVisible ? VirtualizedList._getItemKey(_this.props, minIndexForVisible) : null,
|
|
6787
|
-
// When we have a non-zero initialScrollIndex, we will receive a
|
|
6788
|
-
// scroll event later so this will prevent the window from updating
|
|
6789
|
-
// until we get a valid offset.
|
|
6790
6558
|
pendingScrollUpdateCount: _this.props.initialScrollIndex != null && _this.props.initialScrollIndex > 0 ? 1 : 0
|
|
6791
6559
|
};
|
|
6792
6560
|
return _this;
|
|
@@ -6794,9 +6562,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6794
6562
|
(0, _inherits2.default)(VirtualizedList, _StateSafePureCompone);
|
|
6795
6563
|
return (0, _createClass2.default)(VirtualizedList, [{
|
|
6796
6564
|
key: "scrollToEnd",
|
|
6797
|
-
value:
|
|
6798
|
-
// scrollToEnd may be janky without getItemLayout prop
|
|
6799
|
-
function scrollToEnd(params) {
|
|
6565
|
+
value: function scrollToEnd(params) {
|
|
6800
6566
|
var animated = params ? params.animated : true;
|
|
6801
6567
|
var veryLast = this.props.getItemCount(this.props.data) - 1;
|
|
6802
6568
|
if (veryLast < 0) {
|
|
@@ -6819,8 +6585,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6819
6585
|
animated: animated
|
|
6820
6586
|
});
|
|
6821
6587
|
}
|
|
6822
|
-
|
|
6823
|
-
// scrollToIndex may be janky without getItemLayout prop
|
|
6824
6588
|
}, {
|
|
6825
6589
|
key: "scrollToIndex",
|
|
6826
6590
|
value: function scrollToIndex(params) {
|
|
@@ -6863,9 +6627,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6863
6627
|
animated: animated
|
|
6864
6628
|
});
|
|
6865
6629
|
}
|
|
6866
|
-
|
|
6867
|
-
// scrollToItem may be janky without getItemLayout prop. Required linear scan through items -
|
|
6868
|
-
// use scrollToIndex instead if possible.
|
|
6869
6630
|
}, {
|
|
6870
6631
|
key: "scrollToItem",
|
|
6871
6632
|
value: function scrollToItem(params) {
|
|
@@ -6884,17 +6645,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6884
6645
|
}
|
|
6885
6646
|
}
|
|
6886
6647
|
}
|
|
6887
|
-
|
|
6888
|
-
/**
|
|
6889
|
-
* Scroll to a specific content pixel offset in the list.
|
|
6890
|
-
*
|
|
6891
|
-
* Param `offset` expects the offset to scroll to.
|
|
6892
|
-
* In case of `horizontal` is true, the offset is the x-value,
|
|
6893
|
-
* in any other case the offset is the y-value.
|
|
6894
|
-
*
|
|
6895
|
-
* Param `animated` (`true` by default) defines whether the list
|
|
6896
|
-
* should do an animation while scrolling.
|
|
6897
|
-
*/
|
|
6898
6648
|
}, {
|
|
6899
6649
|
key: "scrollToOffset",
|
|
6900
6650
|
value: function scrollToOffset(params) {
|
|
@@ -6934,12 +6684,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6934
6684
|
}
|
|
6935
6685
|
this._scrollRef.flashScrollIndicators();
|
|
6936
6686
|
}
|
|
6937
|
-
|
|
6938
|
-
/**
|
|
6939
|
-
* Provides a handle to the underlying scroll responder.
|
|
6940
|
-
* Note that `this._scrollRef` might not be a `ScrollView`, so we
|
|
6941
|
-
* need to check that it responds to `getScrollResponder` before calling it.
|
|
6942
|
-
*/
|
|
6943
6687
|
}, {
|
|
6944
6688
|
key: "getScrollResponder",
|
|
6945
6689
|
value: function getScrollResponder() {
|
|
@@ -6991,9 +6735,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6991
6735
|
getItemCount = props.getItemCount,
|
|
6992
6736
|
data = props.data,
|
|
6993
6737
|
initialScrollIndex = props.initialScrollIndex;
|
|
6994
|
-
(0, _invariant.default)(
|
|
6995
|
-
// $FlowFixMe[prop-missing]
|
|
6996
|
-
!onScroll || !onScroll.__isNative, "Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver");
|
|
6738
|
+
(0, _invariant.default)(!onScroll || !onScroll.__isNative, "Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver");
|
|
6997
6739
|
(0, _invariant.default)(windowSizeOrDefault(windowSize) > 0, 'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.');
|
|
6998
6740
|
(0, _invariant.default)(getItemCount, 'VirtualizedList: The "getItemCount" prop must be provided');
|
|
6999
6741
|
var itemCount = getItemCount(data);
|
|
@@ -7013,9 +6755,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7013
6755
|
offset = _this$_scrollMetrics.offset,
|
|
7014
6756
|
visibleLength = _this$_scrollMetrics.visibleLength;
|
|
7015
6757
|
var distanceFromEnd = contentLength - visibleLength - offset;
|
|
7016
|
-
|
|
7017
|
-
// Wait until the scroll view metrics have been set up. And until then,
|
|
7018
|
-
// we will trust the initialNumToRender suggestion
|
|
7019
6758
|
if (visibleLength <= 0 || contentLength <= 0) {
|
|
7020
6759
|
return cellsAroundViewport.last >= getItemCount(data) ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props) : cellsAroundViewport;
|
|
7021
6760
|
}
|
|
@@ -7027,8 +6766,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7027
6766
|
last: Math.min(cellsAroundViewport.last + renderAhead, getItemCount(data) - 1)
|
|
7028
6767
|
};
|
|
7029
6768
|
} else {
|
|
7030
|
-
// If we have a pending scroll update, we should not adjust the render window as it
|
|
7031
|
-
// might override the correct window.
|
|
7032
6769
|
if (pendingScrollUpdateCount > 0) {
|
|
7033
6770
|
return cellsAroundViewport.last >= getItemCount(data) ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props) : cellsAroundViewport;
|
|
7034
6771
|
}
|
|
@@ -7036,12 +6773,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7036
6773
|
(0, _invariant.default)(newCellsAroundViewport.last < getItemCount(data), 'computeWindowedRenderLimits() should return range in-bounds');
|
|
7037
6774
|
}
|
|
7038
6775
|
if (this._nestedChildLists.size() > 0) {
|
|
7039
|
-
// If some cell in the new state has a child list in it, we should only render
|
|
7040
|
-
// up through that item, so that we give that list a chance to render.
|
|
7041
|
-
// Otherwise there's churn from multiple child lists mounting and un-mounting
|
|
7042
|
-
// their items.
|
|
7043
|
-
|
|
7044
|
-
// Will this prevent rendering if the nested list doesn't realize the end?
|
|
7045
6776
|
var childIdx = this._findFirstChildWithMore(newCellsAroundViewport.first, newCellsAroundViewport.last);
|
|
7046
6777
|
newCellsAroundViewport.last = childIdx != null ? childIdx : newCellsAroundViewport.last;
|
|
7047
6778
|
}
|
|
@@ -7164,42 +6895,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7164
6895
|
var cells = [];
|
|
7165
6896
|
var stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices);
|
|
7166
6897
|
var stickyHeaderIndices = [];
|
|
7167
|
-
|
|
7168
|
-
// 1. Add cell for ListHeaderComponent
|
|
7169
6898
|
if (ListHeaderComponent) {
|
|
7170
6899
|
if (stickyIndicesFromProps.has(0)) {
|
|
7171
6900
|
stickyHeaderIndices.push(0);
|
|
7172
6901
|
}
|
|
7173
|
-
var _element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent :
|
|
7174
|
-
/*#__PURE__*/
|
|
7175
|
-
// $FlowFixMe[not-a-component]
|
|
7176
|
-
// $FlowFixMe[incompatible-type-arg]
|
|
7177
|
-
(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListHeaderComponent, {});
|
|
6902
|
+
var _element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListHeaderComponent, {});
|
|
7178
6903
|
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VirtualizedListCellContextProvider, {
|
|
7179
6904
|
cellKey: this._getCellKey() + '-header',
|
|
7180
|
-
children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View
|
|
7181
|
-
// We expect that header component will be a single native view so make it
|
|
7182
|
-
// not collapsable to avoid this view being flattened and make this assumption
|
|
7183
|
-
// no longer true.
|
|
7184
|
-
, {
|
|
6905
|
+
children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, {
|
|
7185
6906
|
collapsable: false,
|
|
7186
6907
|
onLayout: this._onLayoutHeader,
|
|
7187
6908
|
style: _reactNative.StyleSheet.compose(inversionStyle, this.props.ListHeaderComponentStyle),
|
|
7188
|
-
children:
|
|
7189
|
-
// $FlowFixMe[incompatible-type] - Typing ReactNativeComponent revealed errors
|
|
7190
|
-
_element
|
|
6909
|
+
children: _element
|
|
7191
6910
|
})
|
|
7192
6911
|
}, "$header"));
|
|
7193
6912
|
}
|
|
7194
|
-
|
|
7195
|
-
// 2a. Add a cell for ListEmptyComponent if applicable
|
|
7196
6913
|
var itemCount = this.props.getItemCount(data);
|
|
7197
6914
|
if (itemCount === 0 && ListEmptyComponent) {
|
|
7198
|
-
var _element2 = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent :
|
|
7199
|
-
/*#__PURE__*/
|
|
7200
|
-
// $FlowFixMe[not-a-component]
|
|
7201
|
-
// $FlowFixMe[incompatible-type-arg]
|
|
7202
|
-
(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListEmptyComponent, {});
|
|
6915
|
+
var _element2 = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListEmptyComponent, {});
|
|
7203
6916
|
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VirtualizedListCellContextProvider, {
|
|
7204
6917
|
cellKey: this._getCellKey() + '-empty',
|
|
7205
6918
|
children: React.cloneElement(_element2, {
|
|
@@ -7213,8 +6926,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7213
6926
|
})
|
|
7214
6927
|
}, "$empty"));
|
|
7215
6928
|
}
|
|
7216
|
-
|
|
7217
|
-
// 2b. Add cells and spacers for each item
|
|
7218
6929
|
if (itemCount > 0) {
|
|
7219
6930
|
_usedIndexForKey = false;
|
|
7220
6931
|
_keylessItemComponentName = '';
|
|
@@ -7225,15 +6936,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7225
6936
|
});
|
|
7226
6937
|
for (var section of renderRegions) {
|
|
7227
6938
|
if (section.isSpacer) {
|
|
7228
|
-
// Legacy behavior is to avoid spacers when virtualization is
|
|
7229
|
-
// disabled (including head spacers on initial render).
|
|
7230
6939
|
if (this.props.disableVirtualization) {
|
|
7231
6940
|
continue;
|
|
7232
6941
|
}
|
|
7233
|
-
|
|
7234
|
-
// Without getItemLayout, we limit our tail spacer to the _highestMeasuredFrameIndex to
|
|
7235
|
-
// prevent the user for hyperscrolling into un-measured area because otherwise content will
|
|
7236
|
-
// likely jump around as it renders in above the viewport.
|
|
7237
6942
|
var isLastSpacer = section === lastSpacer;
|
|
7238
6943
|
var constrainToMeasured = isLastSpacer && !this.props.getItemLayout;
|
|
7239
6944
|
var last = constrainToMeasured ? (0, _clamp.default)(section.first - 1, section.last, this._highestMeasuredFrameIndex) : section.last;
|
|
@@ -7252,27 +6957,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7252
6957
|
this._hasWarned.keys = true;
|
|
7253
6958
|
}
|
|
7254
6959
|
}
|
|
7255
|
-
|
|
7256
|
-
// 3. Add cell for ListFooterComponent
|
|
7257
6960
|
if (ListFooterComponent) {
|
|
7258
|
-
var _element3 = React.isValidElement(ListFooterComponent) ? ListFooterComponent :
|
|
7259
|
-
/*#__PURE__*/
|
|
7260
|
-
// $FlowFixMe[not-a-component]
|
|
7261
|
-
// $FlowFixMe[incompatible-type-arg]
|
|
7262
|
-
(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListFooterComponent, {});
|
|
6961
|
+
var _element3 = React.isValidElement(ListFooterComponent) ? ListFooterComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListFooterComponent, {});
|
|
7263
6962
|
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VirtualizedListCellContextProvider, {
|
|
7264
6963
|
cellKey: this._getFooterCellKey(),
|
|
7265
6964
|
children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, {
|
|
7266
6965
|
onLayout: this._onLayoutFooter,
|
|
7267
6966
|
style: _reactNative.StyleSheet.compose(inversionStyle, this.props.ListFooterComponentStyle),
|
|
7268
|
-
children:
|
|
7269
|
-
// $FlowFixMe[incompatible-type] - Typing ReactNativeComponent revealed errors
|
|
7270
|
-
_element3
|
|
6967
|
+
children: _element3
|
|
7271
6968
|
})
|
|
7272
6969
|
}, "$footer"));
|
|
7273
6970
|
}
|
|
7274
|
-
|
|
7275
|
-
// 4. Render the ScrollView
|
|
7276
6971
|
var scrollProps = Object.assign({}, this.props, {
|
|
7277
6972
|
onContentSizeChange: this._onContentSizeChange,
|
|
7278
6973
|
onLayout: this._onLayout,
|
|
@@ -7282,13 +6977,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7282
6977
|
onMomentumScrollBegin: this._onMomentumScrollBegin,
|
|
7283
6978
|
onMomentumScrollEnd: this._onMomentumScrollEnd,
|
|
7284
6979
|
scrollEventThrottle: scrollEventThrottleOrDefault(this.props.scrollEventThrottle),
|
|
7285
|
-
// TODO: Android support
|
|
7286
6980
|
invertStickyHeaders: this.props.invertStickyHeaders !== undefined ? this.props.invertStickyHeaders : this.props.inverted,
|
|
7287
6981
|
stickyHeaderIndices: stickyHeaderIndices,
|
|
7288
6982
|
style: inversionStyle ? [inversionStyle, this.props.style] : this.props.style,
|
|
7289
6983
|
isInvertedVirtualizedList: this.props.inverted,
|
|
7290
6984
|
maintainVisibleContentPosition: this.props.maintainVisibleContentPosition != null ? Object.assign({}, this.props.maintainVisibleContentPosition, {
|
|
7291
|
-
// Adjust index to account for ListHeaderComponent.
|
|
7292
6985
|
minIndexForVisible: this.props.maintainVisibleContentPosition.minIndexForVisible + (this.props.ListHeaderComponent ? 1 : 0)
|
|
7293
6986
|
}) : undefined
|
|
7294
6987
|
});
|
|
@@ -7323,22 +7016,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7323
7016
|
data = _this$props7.data,
|
|
7324
7017
|
extraData = _this$props7.extraData;
|
|
7325
7018
|
if (data !== prevProps.data || extraData !== prevProps.extraData) {
|
|
7326
|
-
// clear the viewableIndices cache to also trigger
|
|
7327
|
-
// the onViewableItemsChanged callback with the new data
|
|
7328
7019
|
this._viewabilityTuples.forEach(function (tuple) {
|
|
7329
7020
|
tuple.viewabilityHelper.resetViewableIndices();
|
|
7330
7021
|
});
|
|
7331
7022
|
}
|
|
7332
|
-
// The `this._hiPriInProgress` is guaranteeing a hiPri cell update will only happen
|
|
7333
|
-
// once per fiber update. The `_scheduleCellsToRenderUpdate` will set it to true
|
|
7334
|
-
// if a hiPri update needs to perform. If `componentDidUpdate` is triggered with
|
|
7335
|
-
// `this._hiPriInProgress=true`, means it's triggered by the hiPri update. The
|
|
7336
|
-
// `_scheduleCellsToRenderUpdate` will check this condition and not perform
|
|
7337
|
-
// another hiPri update.
|
|
7338
7023
|
var hiPriInProgress = this._hiPriInProgress;
|
|
7339
7024
|
this._scheduleCellsToRenderUpdate();
|
|
7340
|
-
// Make sure setting `this._hiPriInProgress` back to false after `componentDidUpdate`
|
|
7341
|
-
// is triggered with `this._hiPriInProgress = true`
|
|
7342
7025
|
if (hiPriInProgress) {
|
|
7343
7026
|
this._hiPriInProgress = false;
|
|
7344
7027
|
}
|
|
@@ -7365,14 +7048,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7365
7048
|
key: "measureLayoutRelativeToContainingList",
|
|
7366
7049
|
value: function measureLayoutRelativeToContainingList() {
|
|
7367
7050
|
var _this4 = this;
|
|
7368
|
-
// TODO (T35574538): findNodeHandle sometimes crashes with "Unable to find
|
|
7369
|
-
// node on an unmounted component" during scrolling
|
|
7370
7051
|
try {
|
|
7371
7052
|
if (!this._scrollRef) {
|
|
7372
7053
|
return;
|
|
7373
7054
|
}
|
|
7374
|
-
// We are assuming that getOutermostParentListRef().getScrollRef()
|
|
7375
|
-
// is a non-null reference to a ScrollView
|
|
7376
7055
|
this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(), function (x, y, width, height) {
|
|
7377
7056
|
_this4._offsetFromParentVirtualizedList = _this4._selectOffset({
|
|
7378
7057
|
x: x,
|
|
@@ -7387,9 +7066,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7387
7066
|
if (metricsChanged) {
|
|
7388
7067
|
_this4._scrollMetrics.visibleLength = scrollMetrics.visibleLength;
|
|
7389
7068
|
_this4._scrollMetrics.offset = scrollMetrics.offset;
|
|
7390
|
-
|
|
7391
|
-
// If metrics of the scrollView changed, then we triggered remeasure for child list
|
|
7392
|
-
// to ensure VirtualizedList has the right information.
|
|
7393
7069
|
_this4._nestedChildLists.forEach(function (childList) {
|
|
7394
7070
|
childList.measureLayoutRelativeToContainingList();
|
|
7395
7071
|
});
|
|
@@ -7408,17 +7084,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7408
7084
|
}
|
|
7409
7085
|
}, {
|
|
7410
7086
|
key: "_renderDebugOverlay",
|
|
7411
|
-
value:
|
|
7412
|
-
// $FlowFixMe[missing-local-annot]
|
|
7413
|
-
function _renderDebugOverlay() {
|
|
7087
|
+
value: function _renderDebugOverlay() {
|
|
7414
7088
|
var normalize = this._scrollMetrics.visibleLength / (this._scrollMetrics.contentLength || 1);
|
|
7415
7089
|
var framesInLayout = [];
|
|
7416
7090
|
var itemCount = this.props.getItemCount(this.props.data);
|
|
7417
7091
|
for (var ii = 0; ii < itemCount; ii++) {
|
|
7418
7092
|
var frame = this.__getFrameMetricsApprox(ii, this.props);
|
|
7419
|
-
/* $FlowFixMe[prop-missing] (>=0.68.0 site=react_native_fb) This comment
|
|
7420
|
-
* suppresses an error found when Flow v0.68 was deployed. To see the
|
|
7421
|
-
* error delete this comment and run Flow. */
|
|
7422
7093
|
if (frame.inLayout) {
|
|
7423
7094
|
framesInLayout.push(frame);
|
|
7424
7095
|
}
|
|
@@ -7470,8 +7141,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7470
7141
|
onStartReachedThreshold = _this$props8.onStartReachedThreshold,
|
|
7471
7142
|
onEndReached = _this$props8.onEndReached,
|
|
7472
7143
|
onEndReachedThreshold = _this$props8.onEndReachedThreshold;
|
|
7473
|
-
// If we have any pending scroll updates it means that the scroll metrics
|
|
7474
|
-
// are out of date and we should not call any of the edge reached callbacks.
|
|
7475
7144
|
if (this.state.pendingScrollUpdateCount > 0) {
|
|
7476
7145
|
return;
|
|
7477
7146
|
}
|
|
@@ -7481,48 +7150,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7481
7150
|
offset = _this$_scrollMetrics2.offset;
|
|
7482
7151
|
var distanceFromStart = offset;
|
|
7483
7152
|
var distanceFromEnd = contentLength - visibleLength - offset;
|
|
7484
|
-
|
|
7485
|
-
// Especially when oERT is zero it's necessary to 'floor' very small distance values to be 0
|
|
7486
|
-
// since debouncing causes us to not fire this event for every single "pixel" we scroll and can thus
|
|
7487
|
-
// be at the edge of the list with a distance approximating 0 but not quite there.
|
|
7488
7153
|
if (distanceFromStart < ON_EDGE_REACHED_EPSILON) {
|
|
7489
7154
|
distanceFromStart = 0;
|
|
7490
7155
|
}
|
|
7491
7156
|
if (distanceFromEnd < ON_EDGE_REACHED_EPSILON) {
|
|
7492
7157
|
distanceFromEnd = 0;
|
|
7493
7158
|
}
|
|
7494
|
-
|
|
7495
|
-
// TODO: T121172172 Look into why we're "defaulting" to a threshold of 2px
|
|
7496
|
-
// when oERT is not present (different from 2 viewports used elsewhere)
|
|
7497
7159
|
var DEFAULT_THRESHOLD_PX = 2;
|
|
7498
7160
|
var startThreshold = onStartReachedThreshold != null ? onStartReachedThreshold * visibleLength : DEFAULT_THRESHOLD_PX;
|
|
7499
7161
|
var endThreshold = onEndReachedThreshold != null ? onEndReachedThreshold * visibleLength : DEFAULT_THRESHOLD_PX;
|
|
7500
7162
|
var isWithinStartThreshold = distanceFromStart <= startThreshold;
|
|
7501
7163
|
var isWithinEndThreshold = distanceFromEnd <= endThreshold;
|
|
7502
|
-
|
|
7503
|
-
// First check if the user just scrolled within the end threshold
|
|
7504
|
-
// and call onEndReached only once for a given content length,
|
|
7505
|
-
// and only if onStartReached is not being executed
|
|
7506
7164
|
if (onEndReached && this.state.cellsAroundViewport.last === getItemCount(data) - 1 && isWithinEndThreshold && this._scrollMetrics.contentLength !== this._sentEndForContentLength) {
|
|
7507
7165
|
this._sentEndForContentLength = this._scrollMetrics.contentLength;
|
|
7508
7166
|
onEndReached({
|
|
7509
7167
|
distanceFromEnd: distanceFromEnd
|
|
7510
7168
|
});
|
|
7511
|
-
}
|
|
7512
|
-
|
|
7513
|
-
// Next check if the user just scrolled within the start threshold
|
|
7514
|
-
// and call onStartReached only once for a given content length,
|
|
7515
|
-
// and only if onEndReached is not being executed
|
|
7516
|
-
else if (onStartReached != null && this.state.cellsAroundViewport.first === 0 && isWithinStartThreshold && this._scrollMetrics.contentLength !== this._sentStartForContentLength) {
|
|
7169
|
+
} else if (onStartReached != null && this.state.cellsAroundViewport.first === 0 && isWithinStartThreshold && this._scrollMetrics.contentLength !== this._sentStartForContentLength) {
|
|
7517
7170
|
this._sentStartForContentLength = this._scrollMetrics.contentLength;
|
|
7518
7171
|
onStartReached({
|
|
7519
7172
|
distanceFromStart: distanceFromStart
|
|
7520
7173
|
});
|
|
7521
|
-
}
|
|
7522
|
-
|
|
7523
|
-
// If the user scrolls away from the start or end and back again,
|
|
7524
|
-
// cause onStartReached or onEndReached to be triggered again
|
|
7525
|
-
else {
|
|
7174
|
+
} else {
|
|
7526
7175
|
this._sentStartForContentLength = isWithinStartThreshold ? this._sentStartForContentLength : 0;
|
|
7527
7176
|
this._sentEndForContentLength = isWithinEndThreshold ? this._sentEndForContentLength : 0;
|
|
7528
7177
|
}
|
|
@@ -7541,29 +7190,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7541
7190
|
var hiPri = false;
|
|
7542
7191
|
var onStartReachedThreshold = onStartReachedThresholdOrDefault(this.props.onStartReachedThreshold);
|
|
7543
7192
|
var onEndReachedThreshold = onEndReachedThresholdOrDefault(this.props.onEndReachedThreshold);
|
|
7544
|
-
// Mark as high priority if we're close to the start of the first item
|
|
7545
|
-
// But only if there are items before the first rendered item
|
|
7546
7193
|
if (first > 0) {
|
|
7547
7194
|
var distTop = offset - this.__getFrameMetricsApprox(first, this.props).offset;
|
|
7548
7195
|
hiPri = distTop < 0 || velocity < -2 && distTop < getScrollingThreshold(onStartReachedThreshold, visibleLength);
|
|
7549
7196
|
}
|
|
7550
|
-
// Mark as high priority if we're close to the end of the last item
|
|
7551
|
-
// But only if there are items after the last rendered item
|
|
7552
7197
|
if (!hiPri && last >= 0 && last < itemCount - 1) {
|
|
7553
7198
|
var distBottom = this.__getFrameMetricsApprox(last, this.props).offset - (offset + visibleLength);
|
|
7554
7199
|
hiPri = distBottom < 0 || velocity > 2 && distBottom < getScrollingThreshold(onEndReachedThreshold, visibleLength);
|
|
7555
7200
|
}
|
|
7556
|
-
// Only trigger high-priority updates if we've actually rendered cells,
|
|
7557
|
-
// and with that size estimate, accurately compute how many cells we should render.
|
|
7558
|
-
// Otherwise, it would just render as many cells as it can (of zero dimension),
|
|
7559
|
-
// each time through attempting to render more (limited by maxToRenderPerBatch),
|
|
7560
|
-
// starving the renderer from actually laying out the objects and computing _averageCellLength.
|
|
7561
|
-
// If this is triggered in an `componentDidUpdate` followed by a hiPri cellToRenderUpdate
|
|
7562
|
-
// We shouldn't do another hipri cellToRenderUpdate
|
|
7563
7201
|
if (hiPri && (this._averageCellLength || this.props.getItemLayout) && !this._hiPriInProgress) {
|
|
7564
7202
|
this._hiPriInProgress = true;
|
|
7565
|
-
// Don't worry about interactions when scrolling quickly; focus on filling content as fast
|
|
7566
|
-
// as possible.
|
|
7567
7203
|
this._updateCellsToRenderBatcher.dispose({
|
|
7568
7204
|
abort: true
|
|
7569
7205
|
});
|
|
@@ -7577,8 +7213,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7577
7213
|
key: "_updateViewableItems",
|
|
7578
7214
|
value: function _updateViewableItems(props, cellsAroundViewport) {
|
|
7579
7215
|
var _this5 = this;
|
|
7580
|
-
// If we have any pending scroll updates it means that the scroll metrics
|
|
7581
|
-
// are out of date and we should not call any of the visibility callbacks.
|
|
7582
7216
|
if (this.state.pendingScrollUpdateCount > 0) {
|
|
7583
7217
|
return;
|
|
7584
7218
|
}
|
|
@@ -7621,17 +7255,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7621
7255
|
for (var region of allRegions) {
|
|
7622
7256
|
renderMask.addCells(region);
|
|
7623
7257
|
}
|
|
7624
|
-
|
|
7625
|
-
// The initially rendered cells are retained as part of the
|
|
7626
|
-
// "scroll-to-top" optimization
|
|
7627
7258
|
if (props.initialScrollIndex == null || props.initialScrollIndex <= 0) {
|
|
7628
7259
|
var initialRegion = VirtualizedList._initialRenderRegion(props);
|
|
7629
7260
|
renderMask.addCells(initialRegion);
|
|
7630
7261
|
}
|
|
7631
|
-
|
|
7632
|
-
// The layout coordinates of sticker headers may be off-screen while the
|
|
7633
|
-
// actual header is on-screen. Keep the most recent before the viewport
|
|
7634
|
-
// rendered, even if its layout coordinates are not in viewport.
|
|
7635
7262
|
var stickyIndicesSet = new Set(props.stickyHeaderIndices);
|
|
7636
7263
|
VirtualizedList._ensureClosestStickyHeader(props, stickyIndicesSet, renderMask, cellsAroundViewport.first);
|
|
7637
7264
|
}
|
|
@@ -7667,8 +7294,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7667
7294
|
key: "getDerivedStateFromProps",
|
|
7668
7295
|
value: function getDerivedStateFromProps(newProps, prevState) {
|
|
7669
7296
|
var _newProps$maintainVis, _newProps$maintainVis2;
|
|
7670
|
-
// first and last could be stale (e.g. if a new, shorter items props is passed in), so we make
|
|
7671
|
-
// sure we're rendering a reasonable range here.
|
|
7672
7297
|
var itemCount = newProps.getItemCount(newProps.data);
|
|
7673
7298
|
if (itemCount === prevState.renderMask.numCells()) {
|
|
7674
7299
|
return prevState;
|
|
@@ -7679,7 +7304,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7679
7304
|
var newFirstVisibleItemKey = newProps.getItemCount(newProps.data) > minIndexForVisible ? VirtualizedList._getItemKey(newProps, minIndexForVisible) : null;
|
|
7680
7305
|
if (newProps.maintainVisibleContentPosition != null && prevFirstVisibleItemKey != null && newFirstVisibleItemKey != null) {
|
|
7681
7306
|
if (newFirstVisibleItemKey !== prevFirstVisibleItemKey) {
|
|
7682
|
-
// Fast path if items were added at the start of the list.
|
|
7683
7307
|
var hint = itemCount - prevState.renderMask.numCells() + minIndexForVisible;
|
|
7684
7308
|
var firstVisibleItemIndex = VirtualizedList._findItemIndexWithKey(newProps, prevFirstVisibleItemKey, hint);
|
|
7685
7309
|
maintainVisibleContentPositionAdjustment = firstVisibleItemIndex != null ? firstVisibleItemIndex - minIndexForVisible : null;
|
|
@@ -7772,57 +7396,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7772
7396
|
}
|
|
7773
7397
|
});
|
|
7774
7398
|
module.exports = VirtualizedList;
|
|
7775
|
-
},"c4b46015e44050527820",["
|
|
7399
|
+
},"c4b46015e44050527820",["277a84013d7e1a1ace05","838d7a057beeb5db50df","4926d0dbc109dc5bb6c9","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","9822a58ca7726d551fe0","26ef620f86acf7f6932a","1953ac0cbf7ac32b33d6","a30729068ebd0dea58f8","4fd7218f700134f011e9","718d6cdfb3fb081a232d","3e01a5bc929e85870fe5","04ffc79d4da370644bce","8bafab90a37cab64b100","ce5f423367f40f3628a8","fd099686726b2dfb6f66","afd4874b36ccd4e13961","6ed0e34da2b23bd3554f","048fed5a64a04bdb7fed","a26dbe2a3afa21c3cf22","e6b1ef1f5b720d640981","de5ab026f9499640d730"]);
|
|
7776
7400
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7777
|
-
/**
|
|
7778
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7779
|
-
*
|
|
7780
|
-
* This source code is licensed under the MIT license found in the
|
|
7781
|
-
* LICENSE file in the root directory of this source tree.
|
|
7782
|
-
*
|
|
7783
|
-
* @format
|
|
7784
|
-
*
|
|
7785
|
-
*/
|
|
7786
|
-
|
|
7787
7401
|
'use strict';
|
|
7788
7402
|
|
|
7789
7403
|
var _require = _$$_REQUIRE(_dependencyMap[0]),
|
|
7790
7404
|
InteractionManager = _require.InteractionManager;
|
|
7791
|
-
|
|
7792
|
-
/**
|
|
7793
|
-
* A simple class for batching up invocations of a low-pri callback. A timeout is set to run the
|
|
7794
|
-
* callback once after a delay, no matter how many times it's scheduled. Once the delay is reached,
|
|
7795
|
-
* InteractionManager.runAfterInteractions is used to invoke the callback after any hi-pri
|
|
7796
|
-
* interactions are done running.
|
|
7797
|
-
*
|
|
7798
|
-
* Make sure to cleanup with dispose(). Example:
|
|
7799
|
-
*
|
|
7800
|
-
* class Widget extends React.Component {
|
|
7801
|
-
* _batchedSave: new Batchinator(() => this._saveState, 1000);
|
|
7802
|
-
* _saveSate() {
|
|
7803
|
-
* // save this.state to disk
|
|
7804
|
-
* }
|
|
7805
|
-
* componentDidUpdate() {
|
|
7806
|
-
* this._batchedSave.schedule();
|
|
7807
|
-
* }
|
|
7808
|
-
* componentWillUnmount() {
|
|
7809
|
-
* this._batchedSave.dispose();
|
|
7810
|
-
* }
|
|
7811
|
-
* ...
|
|
7812
|
-
* }
|
|
7813
|
-
*/
|
|
7814
7405
|
var Batchinator = /*#__PURE__*/function () {
|
|
7815
7406
|
function Batchinator(callback, delayMS) {
|
|
7816
7407
|
_$$_REQUIRE(_dependencyMap[1])(this, Batchinator);
|
|
7817
7408
|
this._delay = delayMS;
|
|
7818
7409
|
this._callback = callback;
|
|
7819
7410
|
}
|
|
7820
|
-
/*
|
|
7821
|
-
* Cleanup any pending tasks.
|
|
7822
|
-
*
|
|
7823
|
-
* By default, if there is a pending task the callback is run immediately. Set the option abort to
|
|
7824
|
-
* true to not call the callback if it was pending.
|
|
7825
|
-
*/
|
|
7826
7411
|
return _$$_REQUIRE(_dependencyMap[2])(Batchinator, [{
|
|
7827
7412
|
key: "dispose",
|
|
7828
7413
|
value: function dispose() {
|
|
@@ -7846,8 +7431,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7846
7431
|
}
|
|
7847
7432
|
var timeoutHandle = setTimeout(function () {
|
|
7848
7433
|
_this._taskHandle = InteractionManager.runAfterInteractions(function () {
|
|
7849
|
-
// Note that we clear the handle before invoking the callback so that if the callback calls
|
|
7850
|
-
// schedule again, it will actually schedule another task.
|
|
7851
7434
|
_this._taskHandle = null;
|
|
7852
7435
|
_this._callback();
|
|
7853
7436
|
});
|
|
@@ -7861,18 +7444,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7861
7444
|
}]);
|
|
7862
7445
|
}();
|
|
7863
7446
|
module.exports = Batchinator;
|
|
7864
|
-
},"1953ac0cbf7ac32b33d6",["26ef620f86acf7f6932a","
|
|
7447
|
+
},"1953ac0cbf7ac32b33d6",["26ef620f86acf7f6932a","cb664999166f9660a878","68819e29ebee24bb0e88"]);
|
|
7865
7448
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7866
|
-
/**
|
|
7867
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7868
|
-
*
|
|
7869
|
-
* This source code is licensed under the MIT license found in the
|
|
7870
|
-
* LICENSE file in the root directory of this source tree.
|
|
7871
|
-
*
|
|
7872
|
-
* @format
|
|
7873
|
-
*
|
|
7874
|
-
*/
|
|
7875
|
-
|
|
7876
7449
|
'use strict';
|
|
7877
7450
|
|
|
7878
7451
|
function clamp(min, value, max) {
|
|
@@ -7887,21 +7460,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7887
7460
|
module.exports = clamp;
|
|
7888
7461
|
},"a30729068ebd0dea58f8",[]);
|
|
7889
7462
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7890
|
-
/**
|
|
7891
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7892
|
-
*
|
|
7893
|
-
* This source code is licensed under the MIT license found in the
|
|
7894
|
-
* LICENSE file in the root directory of this source tree.
|
|
7895
|
-
*
|
|
7896
|
-
* @format
|
|
7897
|
-
*
|
|
7898
|
-
*/
|
|
7899
|
-
|
|
7900
7463
|
'use strict';
|
|
7901
7464
|
|
|
7902
|
-
/**
|
|
7903
|
-
* Intentional info-level logging for clear separation from ad-hoc console debug logging.
|
|
7904
|
-
*/
|
|
7905
7465
|
function infoLog() {
|
|
7906
7466
|
var _console;
|
|
7907
7467
|
return (_console = console).log.apply(_console, arguments);
|
|
@@ -7916,15 +7476,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7916
7476
|
var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
|
|
7917
7477
|
var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
|
|
7918
7478
|
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3]));
|
|
7919
|
-
/**
|
|
7920
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7921
|
-
*
|
|
7922
|
-
* This source code is licensed under the MIT license found in the
|
|
7923
|
-
* LICENSE file in the root directory of this source tree.
|
|
7924
|
-
*
|
|
7925
|
-
*
|
|
7926
|
-
* @format
|
|
7927
|
-
*/
|
|
7928
7479
|
var ChildListCollection = exports.default = /*#__PURE__*/function () {
|
|
7929
7480
|
function ChildListCollection() {
|
|
7930
7481
|
(0, _classCallCheck2.default)(this, ChildListCollection);
|
|
@@ -7991,18 +7542,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7991
7542
|
}
|
|
7992
7543
|
}]);
|
|
7993
7544
|
}();
|
|
7994
|
-
},"718d6cdfb3fb081a232d",["
|
|
7545
|
+
},"718d6cdfb3fb081a232d",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","fd099686726b2dfb6f66"]);
|
|
7995
7546
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7996
|
-
/**
|
|
7997
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7998
|
-
*
|
|
7999
|
-
* This source code is licensed under the MIT license found in the
|
|
8000
|
-
* LICENSE file in the root directory of this source tree.
|
|
8001
|
-
*
|
|
8002
|
-
*
|
|
8003
|
-
* @format
|
|
8004
|
-
*/
|
|
8005
|
-
|
|
8006
7547
|
'use strict';
|
|
8007
7548
|
|
|
8008
7549
|
var Info = /*#__PURE__*/_$$_REQUIRE(_dependencyMap[0])(function Info() {
|
|
@@ -8022,15 +7563,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8022
7563
|
var _listeners = [];
|
|
8023
7564
|
var _minSampleCount = 10;
|
|
8024
7565
|
var _sampleRate = null;
|
|
8025
|
-
|
|
8026
|
-
/**
|
|
8027
|
-
* A helper class for detecting when the maximem fill rate of `VirtualizedList` is exceeded.
|
|
8028
|
-
* By default the sampling rate is set to zero and this will do nothing. If you want to collect
|
|
8029
|
-
* samples (e.g. to log them), make sure to call `FillRateHelper.setSampleRate(0.0-1.0)`.
|
|
8030
|
-
*
|
|
8031
|
-
* Listeners and sample rate are global for all `VirtualizedList`s - typical usage will combine with
|
|
8032
|
-
* `SceneTracker.getActiveScene` to determine the context of the events.
|
|
8033
|
-
*/
|
|
8034
7566
|
var FillRateHelper = /*#__PURE__*/function () {
|
|
8035
7567
|
function FillRateHelper(getFrameMetrics) {
|
|
8036
7568
|
_$$_REQUIRE(_dependencyMap[1])(this, FillRateHelper);
|
|
@@ -8057,13 +7589,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8057
7589
|
if (!this._enabled) {
|
|
8058
7590
|
return;
|
|
8059
7591
|
}
|
|
8060
|
-
var start = this._samplesStartTime;
|
|
7592
|
+
var start = this._samplesStartTime;
|
|
8061
7593
|
if (start == null) {
|
|
8062
7594
|
DEBUG;
|
|
8063
7595
|
return;
|
|
8064
7596
|
}
|
|
8065
7597
|
if (this._info.sample_count < _minSampleCount) {
|
|
8066
|
-
// Don't bother with under-sampled events.
|
|
8067
7598
|
this._resetData();
|
|
8068
7599
|
return;
|
|
8069
7600
|
}
|
|
@@ -8086,15 +7617,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8086
7617
|
offset = scrollMetrics.offset,
|
|
8087
7618
|
velocity = scrollMetrics.velocity,
|
|
8088
7619
|
visibleLength = scrollMetrics.visibleLength;
|
|
8089
|
-
|
|
8090
|
-
// Denominator metrics that we track for all events - most of the time there is no blankness and
|
|
8091
|
-
// we want to capture that.
|
|
8092
7620
|
this._info.sample_count++;
|
|
8093
7621
|
this._info.pixels_sampled += Math.round(visibleLength);
|
|
8094
7622
|
this._info.pixels_scrolled += Math.round(Math.abs(dOffset));
|
|
8095
|
-
var scrollSpeed = Math.round(Math.abs(velocity) * 1000);
|
|
8096
|
-
|
|
8097
|
-
// Whether blank now or not, record the elapsed time blank if we were blank last time.
|
|
7623
|
+
var scrollSpeed = Math.round(Math.abs(velocity) * 1000);
|
|
8098
7624
|
var now = global.performance.now();
|
|
8099
7625
|
if (this._anyBlankStartTime != null) {
|
|
8100
7626
|
this._info.any_blank_ms += now - this._anyBlankStartTime;
|
|
@@ -8111,8 +7637,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8111
7637
|
firstFrame = this._getFrameMetrics(first, props);
|
|
8112
7638
|
first++;
|
|
8113
7639
|
}
|
|
8114
|
-
// Only count blankTop if we aren't rendering the first item, otherwise we will count the header
|
|
8115
|
-
// as blank.
|
|
8116
7640
|
if (firstFrame && first > 0) {
|
|
8117
7641
|
blankTop = Math.min(visibleLength, Math.max(0, firstFrame.offset - offset));
|
|
8118
7642
|
}
|
|
@@ -8123,8 +7647,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8123
7647
|
lastFrame = this._getFrameMetrics(last, props);
|
|
8124
7648
|
last--;
|
|
8125
7649
|
}
|
|
8126
|
-
// Only count blankBottom if we aren't rendering the last item, otherwise we will count the
|
|
8127
|
-
// footer as blank.
|
|
8128
7650
|
if (lastFrame && last < props.getItemCount(props.data) - 1) {
|
|
8129
7651
|
var bottomEdge = lastFrame.offset + lastFrame.length;
|
|
8130
7652
|
blankBottom = Math.min(visibleLength, Math.max(0, offset + visibleLength - bottomEdge));
|
|
@@ -8186,7 +7708,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8186
7708
|
}]);
|
|
8187
7709
|
}();
|
|
8188
7710
|
module.exports = FillRateHelper;
|
|
8189
|
-
},"3e01a5bc929e85870fe5",["
|
|
7711
|
+
},"3e01a5bc929e85870fe5",["68819e29ebee24bb0e88","cb664999166f9660a878"]);
|
|
8190
7712
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8191
7713
|
Object.defineProperty(exports, "__esModule", {
|
|
8192
7714
|
value: true
|
|
@@ -8200,28 +7722,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8200
7722
|
var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6]));
|
|
8201
7723
|
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7]));
|
|
8202
7724
|
var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8]));
|
|
8203
|
-
function
|
|
8204
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
7725
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
8205
7726
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
8206
7727
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8207
|
-
function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
8208
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8209
|
-
*
|
|
8210
|
-
* This source code is licensed under the MIT license found in the
|
|
8211
|
-
* LICENSE file in the root directory of this source tree.
|
|
8212
|
-
*
|
|
8213
|
-
*
|
|
8214
|
-
* @format
|
|
8215
|
-
*/
|
|
8216
|
-
/**
|
|
8217
|
-
* `setState` is called asynchronously, and should not rely on the value of
|
|
8218
|
-
* `this.props` or `this.state`:
|
|
8219
|
-
* https://reactjs.org/docs/state-and-lifecycle.html#state-updates-may-be-asynchronous
|
|
8220
|
-
*
|
|
8221
|
-
* SafePureComponent adds runtime enforcement, to catch cases where these
|
|
8222
|
-
* variables are read in a state updater function, instead of the ones passed
|
|
8223
|
-
* in.
|
|
8224
|
-
*/
|
|
7728
|
+
function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
8225
7729
|
var StateSafePureComponent = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
8226
7730
|
function StateSafePureComponent(props) {
|
|
8227
7731
|
var _this;
|
|
@@ -8280,32 +7784,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8280
7784
|
}
|
|
8281
7785
|
}]);
|
|
8282
7786
|
}(React.PureComponent);
|
|
8283
|
-
},"04ffc79d4da370644bce",["
|
|
7787
|
+
},"04ffc79d4da370644bce",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","55062adb34159de0ea92","9822a58ca7726d551fe0","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f"]);
|
|
8284
7788
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8285
|
-
/**
|
|
8286
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8287
|
-
*
|
|
8288
|
-
* This source code is licensed under the MIT license found in the
|
|
8289
|
-
* LICENSE file in the root directory of this source tree.
|
|
8290
|
-
*
|
|
8291
|
-
*
|
|
8292
|
-
* @format
|
|
8293
|
-
*/
|
|
8294
|
-
|
|
8295
7789
|
'use strict';
|
|
8296
7790
|
|
|
8297
|
-
/**
|
|
8298
|
-
* A Utility class for calculating viewable items based on current metrics like scroll position and
|
|
8299
|
-
* layout.
|
|
8300
|
-
*
|
|
8301
|
-
* An item is said to be in a "viewable" state when any of the following
|
|
8302
|
-
* is true for longer than `minimumViewTime` milliseconds (after an interaction if `waitForInteraction`
|
|
8303
|
-
* is true):
|
|
8304
|
-
*
|
|
8305
|
-
* - Occupying >= `viewAreaCoveragePercentThreshold` of the view area XOR fraction of the item
|
|
8306
|
-
* visible in the view area >= `itemVisiblePercentThreshold`.
|
|
8307
|
-
* - Entirely visible on screen
|
|
8308
|
-
*/
|
|
8309
7791
|
var ViewabilityHelper = /*#__PURE__*/function () {
|
|
8310
7792
|
function ViewabilityHelper() {
|
|
8311
7793
|
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
@@ -8318,27 +7800,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8318
7800
|
this._viewableItems = new Map();
|
|
8319
7801
|
this._config = config;
|
|
8320
7802
|
}
|
|
8321
|
-
|
|
8322
|
-
/**
|
|
8323
|
-
* Cleanup, e.g. on unmount. Clears any pending timers.
|
|
8324
|
-
*/
|
|
8325
7803
|
return _$$_REQUIRE(_dependencyMap[1])(ViewabilityHelper, [{
|
|
8326
7804
|
key: "dispose",
|
|
8327
7805
|
value: function dispose() {
|
|
8328
|
-
/* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This
|
|
8329
|
-
* comment suppresses an error found when Flow v0.63 was deployed. To see
|
|
8330
|
-
* the error delete this comment and run Flow. */
|
|
8331
7806
|
this._timers.forEach(clearTimeout);
|
|
8332
7807
|
}
|
|
8333
|
-
|
|
8334
|
-
/**
|
|
8335
|
-
* Determines which items are viewable based on the current metrics and config.
|
|
8336
|
-
*/
|
|
8337
7808
|
}, {
|
|
8338
7809
|
key: "computeViewableItems",
|
|
8339
|
-
value: function computeViewableItems(props, scrollOffset, viewportHeight, getFrameMetrics,
|
|
8340
|
-
// Optional optimization to reduce the scan size
|
|
8341
|
-
renderRange) {
|
|
7810
|
+
value: function computeViewableItems(props, scrollOffset, viewportHeight, getFrameMetrics, renderRange) {
|
|
8342
7811
|
var itemCount = props.getItemCount(props.data);
|
|
8343
7812
|
var _this$_config = this._config,
|
|
8344
7813
|
itemVisiblePercentThreshold = _this$_config.itemVisiblePercentThreshold,
|
|
@@ -8382,16 +7851,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8382
7851
|
}
|
|
8383
7852
|
return viewableIndices;
|
|
8384
7853
|
}
|
|
8385
|
-
|
|
8386
|
-
/**
|
|
8387
|
-
* Figures out which items are viewable and how that has changed from before and calls
|
|
8388
|
-
* `onViewableItemsChanged` as appropriate.
|
|
8389
|
-
*/
|
|
8390
7854
|
}, {
|
|
8391
7855
|
key: "onUpdate",
|
|
8392
|
-
value: function onUpdate(props, scrollOffset, viewportHeight, getFrameMetrics, createViewToken, onViewableItemsChanged,
|
|
8393
|
-
// Optional optimization to reduce the scan size
|
|
8394
|
-
renderRange) {
|
|
7856
|
+
value: function onUpdate(props, scrollOffset, viewportHeight, getFrameMetrics, createViewToken, onViewableItemsChanged, renderRange) {
|
|
8395
7857
|
var _this = this;
|
|
8396
7858
|
var itemCount = props.getItemCount(props.data);
|
|
8397
7859
|
if (this._config.waitForInteraction && !this._hasInteracted || itemCount === 0 || !getFrameMetrics(0, props)) {
|
|
@@ -8404,40 +7866,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8404
7866
|
if (this._viewableIndices.length === viewableIndices.length && this._viewableIndices.every(function (v, ii) {
|
|
8405
7867
|
return v === viewableIndices[ii];
|
|
8406
7868
|
})) {
|
|
8407
|
-
// We might get a lot of scroll events where visibility doesn't change and we don't want to do
|
|
8408
|
-
// extra work in those cases.
|
|
8409
7869
|
return;
|
|
8410
7870
|
}
|
|
8411
7871
|
this._viewableIndices = viewableIndices;
|
|
8412
7872
|
if (this._config.minimumViewTime) {
|
|
8413
7873
|
var handle = setTimeout(function () {
|
|
8414
|
-
/* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This
|
|
8415
|
-
* comment suppresses an error found when Flow v0.63 was deployed. To
|
|
8416
|
-
* see the error delete this comment and run Flow. */
|
|
8417
7874
|
_this._timers.delete(handle);
|
|
8418
7875
|
_this._onUpdateSync(props, viewableIndices, onViewableItemsChanged, createViewToken);
|
|
8419
7876
|
}, this._config.minimumViewTime);
|
|
8420
|
-
/* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This
|
|
8421
|
-
* comment suppresses an error found when Flow v0.63 was deployed. To see
|
|
8422
|
-
* the error delete this comment and run Flow. */
|
|
8423
7877
|
this._timers.add(handle);
|
|
8424
7878
|
} else {
|
|
8425
7879
|
this._onUpdateSync(props, viewableIndices, onViewableItemsChanged, createViewToken);
|
|
8426
7880
|
}
|
|
8427
7881
|
}
|
|
8428
|
-
|
|
8429
|
-
/**
|
|
8430
|
-
* clean-up cached _viewableIndices to evaluate changed items on next update
|
|
8431
|
-
*/
|
|
8432
7882
|
}, {
|
|
8433
7883
|
key: "resetViewableIndices",
|
|
8434
7884
|
value: function resetViewableIndices() {
|
|
8435
7885
|
this._viewableIndices = [];
|
|
8436
7886
|
}
|
|
8437
|
-
|
|
8438
|
-
/**
|
|
8439
|
-
* Records that an interaction has happened even if there has been no scroll.
|
|
8440
|
-
*/
|
|
8441
7887
|
}, {
|
|
8442
7888
|
key: "recordInteraction",
|
|
8443
7889
|
value: function recordInteraction() {
|
|
@@ -8447,7 +7893,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8447
7893
|
key: "_onUpdateSync",
|
|
8448
7894
|
value: function _onUpdateSync(props, viewableIndicesToCheck, onViewableItemsChanged, createViewToken) {
|
|
8449
7895
|
var _this2 = this;
|
|
8450
|
-
// Filter out indices that have gone out of view since this call was scheduled.
|
|
8451
7896
|
viewableIndicesToCheck = viewableIndicesToCheck.filter(function (ii) {
|
|
8452
7897
|
return _this2._viewableIndices.includes(ii);
|
|
8453
7898
|
});
|
|
@@ -8503,7 +7948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8503
7948
|
return top >= 0 && bottom <= viewportHeight && bottom > top;
|
|
8504
7949
|
}
|
|
8505
7950
|
module.exports = ViewabilityHelper;
|
|
8506
|
-
},"8bafab90a37cab64b100",["
|
|
7951
|
+
},"8bafab90a37cab64b100",["cb664999166f9660a878","68819e29ebee24bb0e88","fd099686726b2dfb6f66","d73b3a84588342abd1b6"]);
|
|
8507
7952
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8508
7953
|
Object.defineProperty(exports, "__esModule", {
|
|
8509
7954
|
value: true
|
|
@@ -8517,18 +7962,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8517
7962
|
var _reactNative = _$$_REQUIRE(_dependencyMap[6]);
|
|
8518
7963
|
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7]));
|
|
8519
7964
|
var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8]));
|
|
8520
|
-
function
|
|
8521
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
7965
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
8522
7966
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
8523
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8524
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8525
|
-
*
|
|
8526
|
-
* This source code is licensed under the MIT license found in the
|
|
8527
|
-
* LICENSE file in the root directory of this source tree.
|
|
8528
|
-
*
|
|
8529
|
-
*
|
|
8530
|
-
* @format
|
|
8531
|
-
*/
|
|
7967
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8532
7968
|
var CellRenderer = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
8533
7969
|
function CellRenderer() {
|
|
8534
7970
|
var _this;
|
|
@@ -8543,9 +7979,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8543
7979
|
leadingItem: _this.props.item
|
|
8544
7980
|
}
|
|
8545
7981
|
};
|
|
8546
|
-
// TODO: consider factoring separator stuff out of VirtualizedList into FlatList since it's not
|
|
8547
|
-
// reused by SectionList and we can keep VirtualizedList simpler.
|
|
8548
|
-
// $FlowFixMe[missing-local-annot]
|
|
8549
7982
|
_this._separators = {
|
|
8550
7983
|
highlight: function highlight() {
|
|
8551
7984
|
var _this$props = _this.props,
|
|
@@ -8597,12 +8030,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8597
8030
|
console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem.");
|
|
8598
8031
|
}
|
|
8599
8032
|
if (ListItemComponent) {
|
|
8600
|
-
/* $FlowFixMe[not-a-component] (>=0.108.0 site=react_native_fb) This
|
|
8601
|
-
* comment suppresses an error found when Flow v0.108 was deployed. To
|
|
8602
|
-
* see the error, delete this comment and run Flow. */
|
|
8603
|
-
/* $FlowFixMe[incompatible-type-arg] (>=0.108.0 site=react_native_fb)
|
|
8604
|
-
* This comment suppresses an error found when Flow v0.108 was deployed.
|
|
8605
|
-
* To see the error, delete this comment and run Flow. */
|
|
8606
8033
|
return React.createElement(ListItemComponent, {
|
|
8607
8034
|
item: item,
|
|
8608
8035
|
index: index,
|
|
@@ -8634,14 +8061,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8634
8061
|
onCellLayout = _this$props4.onCellLayout,
|
|
8635
8062
|
renderItem = _this$props4.renderItem;
|
|
8636
8063
|
var element = this._renderElement(renderItem, ListItemComponent, item, index);
|
|
8637
|
-
|
|
8638
|
-
// NOTE: that when this is a sticky header, `onLayout` will get automatically extracted and
|
|
8639
|
-
// called explicitly by `ScrollViewStickyHeader`.
|
|
8640
|
-
var itemSeparator = React.isValidElement(ItemSeparatorComponent) ?
|
|
8641
|
-
// $FlowFixMe[incompatible-type]
|
|
8642
|
-
ItemSeparatorComponent :
|
|
8643
|
-
// $FlowFixMe[incompatible-type]
|
|
8644
|
-
ItemSeparatorComponent && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(ItemSeparatorComponent, Object.assign({}, this.state.separatorProps));
|
|
8064
|
+
var itemSeparator = React.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(ItemSeparatorComponent, Object.assign({}, this.state.separatorProps));
|
|
8645
8065
|
var cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle] : [styles.columnReverse, inversionStyle] : horizontal ? [styles.row, inversionStyle] : inversionStyle;
|
|
8646
8066
|
var result = !CellRendererComponent ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, Object.assign({
|
|
8647
8067
|
style: cellStyle,
|
|
@@ -8688,7 +8108,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8688
8108
|
flexDirection: 'column-reverse'
|
|
8689
8109
|
}
|
|
8690
8110
|
});
|
|
8691
|
-
},"ce5f423367f40f3628a8",["
|
|
8111
|
+
},"ce5f423367f40f3628a8",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","9822a58ca7726d551fe0","26ef620f86acf7f6932a","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f","048fed5a64a04bdb7fed","e6b1ef1f5b720d640981"]);
|
|
8692
8112
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8693
8113
|
Object.defineProperty(exports, "__esModule", {
|
|
8694
8114
|
value: true
|
|
@@ -8699,22 +8119,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8699
8119
|
exports.VirtualizedListContextResetter = VirtualizedListContextResetter;
|
|
8700
8120
|
var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0]));
|
|
8701
8121
|
var React = _react;
|
|
8702
|
-
function
|
|
8703
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
8704
|
-
/**
|
|
8705
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8706
|
-
*
|
|
8707
|
-
* This source code is licensed under the MIT license found in the
|
|
8708
|
-
* LICENSE file in the root directory of this source tree.
|
|
8709
|
-
*
|
|
8710
|
-
*
|
|
8711
|
-
* @format
|
|
8712
|
-
*/
|
|
8713
|
-
|
|
8122
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
8714
8123
|
var VirtualizedListContext = exports.VirtualizedListContext = React.createContext(null);
|
|
8715
|
-
/**
|
|
8716
|
-
* Resets the context. Intended for use by portal-like components (e.g. Modal).
|
|
8717
|
-
*/
|
|
8718
8124
|
function VirtualizedListContextResetter(_ref) {
|
|
8719
8125
|
var children = _ref.children;
|
|
8720
8126
|
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[1]).jsx)(VirtualizedListContext.Provider, {
|
|
@@ -8722,14 +8128,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8722
8128
|
children: children
|
|
8723
8129
|
});
|
|
8724
8130
|
}
|
|
8725
|
-
|
|
8726
|
-
/**
|
|
8727
|
-
* Sets the context with memoization. Intended to be used by `VirtualizedList`.
|
|
8728
|
-
*/
|
|
8729
8131
|
function VirtualizedListContextProvider(_ref2) {
|
|
8730
8132
|
var children = _ref2.children,
|
|
8731
8133
|
value = _ref2.value;
|
|
8732
|
-
// Avoid setting a newly created context object if the values are identical.
|
|
8733
8134
|
var context = (0, _react.useMemo)(function () {
|
|
8734
8135
|
return {
|
|
8735
8136
|
cellKey: null,
|
|
@@ -8745,14 +8146,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8745
8146
|
children: children
|
|
8746
8147
|
});
|
|
8747
8148
|
}
|
|
8748
|
-
|
|
8749
|
-
/**
|
|
8750
|
-
* Sets the `cellKey`. Intended to be used by `VirtualizedList` for each cell.
|
|
8751
|
-
*/
|
|
8752
8149
|
function VirtualizedListCellContextProvider(_ref3) {
|
|
8753
8150
|
var cellKey = _ref3.cellKey,
|
|
8754
8151
|
children = _ref3.children;
|
|
8755
|
-
// Avoid setting a newly created context object if the values are identical.
|
|
8756
8152
|
var currContext = (0, _react.useContext)(VirtualizedListContext);
|
|
8757
8153
|
var context = (0, _react.useMemo)(function () {
|
|
8758
8154
|
return currContext == null ? null : Object.assign({}, currContext, {
|
|
@@ -8775,15 +8171,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8775
8171
|
var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3]));
|
|
8776
8172
|
var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4]));
|
|
8777
8173
|
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5]));
|
|
8778
|
-
/**
|
|
8779
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8780
|
-
*
|
|
8781
|
-
* This source code is licensed under the MIT license found in the
|
|
8782
|
-
* LICENSE file in the root directory of this source tree.
|
|
8783
|
-
*
|
|
8784
|
-
*
|
|
8785
|
-
* @format
|
|
8786
|
-
*/
|
|
8787
8174
|
var CellRenderMask = exports.CellRenderMask = /*#__PURE__*/function () {
|
|
8788
8175
|
function CellRenderMask(numCells) {
|
|
8789
8176
|
(0, _classCallCheck2.default)(this, CellRenderMask);
|
|
@@ -8809,9 +8196,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8809
8196
|
value: function addCells(cells) {
|
|
8810
8197
|
var _this$_regions;
|
|
8811
8198
|
(0, _invariant.default)(cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1, 'CellRenderMask.addCells called with invalid cell range');
|
|
8812
|
-
|
|
8813
|
-
// VirtualizedList uses inclusive ranges, where zero-count states are
|
|
8814
|
-
// possible. E.g. [0, -1] for no cells, starting at 0.
|
|
8815
8199
|
if (cells.last < cells.first) {
|
|
8816
8200
|
return;
|
|
8817
8201
|
}
|
|
@@ -8823,15 +8207,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8823
8207
|
_this$_findRegion4 = (0, _slicedToArray2.default)(_this$_findRegion3, 2),
|
|
8824
8208
|
lastIntersect = _this$_findRegion4[0],
|
|
8825
8209
|
lastIntersectIdx = _this$_findRegion4[1];
|
|
8826
|
-
|
|
8827
|
-
// Fast-path if the cells to add are already all present in the mask. We
|
|
8828
|
-
// will otherwise need to do some mutation.
|
|
8829
8210
|
if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer) {
|
|
8830
8211
|
return;
|
|
8831
8212
|
}
|
|
8832
|
-
|
|
8833
|
-
// We need to replace the existing covered regions with 1-3 new regions
|
|
8834
|
-
// depending whether we need to split spacers out of overlapping regions.
|
|
8835
8213
|
var newLeadRegion = [];
|
|
8836
8214
|
var newTailRegion = [];
|
|
8837
8215
|
var newMainRegion = Object.assign({}, cells, {
|
|
@@ -8895,7 +8273,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8895
8273
|
}
|
|
8896
8274
|
}]);
|
|
8897
8275
|
}();
|
|
8898
|
-
},"de5ab026f9499640d730",["
|
|
8276
|
+
},"de5ab026f9499640d730",["277a84013d7e1a1ace05","838d7a057beeb5db50df","d73b3a84588342abd1b6","cb664999166f9660a878","68819e29ebee24bb0e88","fd099686726b2dfb6f66"]);
|
|
8899
8277
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8900
8278
|
var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
|
|
8901
8279
|
var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
|
|
@@ -8909,23 +8287,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8909
8287
|
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10]));
|
|
8910
8288
|
var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11]));
|
|
8911
8289
|
var _excluded = ["ItemSeparatorComponent", "SectionSeparatorComponent", "renderItem", "renderSectionFooter", "renderSectionHeader", "sections", "stickySectionHeadersEnabled"];
|
|
8912
|
-
function
|
|
8913
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
8290
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
8914
8291
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
8915
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8916
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8917
|
-
*
|
|
8918
|
-
* This source code is licensed under the MIT license found in the
|
|
8919
|
-
* LICENSE file in the root directory of this source tree.
|
|
8920
|
-
*
|
|
8921
|
-
*
|
|
8922
|
-
* @format
|
|
8923
|
-
*/
|
|
8924
|
-
/**
|
|
8925
|
-
* Right now this just flattens everything into one list and uses VirtualizedList under the
|
|
8926
|
-
* hood. The only operation that might not scale well is concatting the data arrays of all the
|
|
8927
|
-
* sections when new props are received, which should be plenty fast for up to ~10,000 items.
|
|
8928
|
-
*/
|
|
8292
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8929
8293
|
var VirtualizedSectionList = /*#__PURE__*/function (_React$PureComponent) {
|
|
8930
8294
|
function VirtualizedSectionList() {
|
|
8931
8295
|
var _this;
|
|
@@ -8934,7 +8298,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8934
8298
|
args[_key] = arguments[_key];
|
|
8935
8299
|
}
|
|
8936
8300
|
_this = _callSuper(this, VirtualizedSectionList, [].concat(args));
|
|
8937
|
-
// $FlowFixMe[missing-local-annot]
|
|
8938
8301
|
_this._keyExtractor = function (item, index) {
|
|
8939
8302
|
var info = _this._subExtractor(index);
|
|
8940
8303
|
return info && info.key || String(index);
|
|
@@ -8967,59 +8330,52 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8967
8330
|
}
|
|
8968
8331
|
};
|
|
8969
8332
|
_this._renderItem = function (listItemCount) {
|
|
8970
|
-
return (
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
var
|
|
8980
|
-
if (
|
|
8981
|
-
var
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
section: section
|
|
8986
|
-
}) : null;
|
|
8987
|
-
} else {
|
|
8988
|
-
var renderSectionFooter = _this.props.renderSectionFooter;
|
|
8989
|
-
return renderSectionFooter ? renderSectionFooter({
|
|
8990
|
-
section: section
|
|
8991
|
-
}) : null;
|
|
8992
|
-
}
|
|
8333
|
+
return function (_ref2) {
|
|
8334
|
+
var item = _ref2.item,
|
|
8335
|
+
index = _ref2.index;
|
|
8336
|
+
var info = _this._subExtractor(index);
|
|
8337
|
+
if (!info) {
|
|
8338
|
+
return null;
|
|
8339
|
+
}
|
|
8340
|
+
var infoIndex = info.index;
|
|
8341
|
+
if (infoIndex == null) {
|
|
8342
|
+
var section = info.section;
|
|
8343
|
+
if (info.header === true) {
|
|
8344
|
+
var renderSectionHeader = _this.props.renderSectionHeader;
|
|
8345
|
+
return renderSectionHeader ? renderSectionHeader({
|
|
8346
|
+
section: section
|
|
8347
|
+
}) : null;
|
|
8993
8348
|
} else {
|
|
8994
|
-
var
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
SeparatorComponent: SeparatorComponent,
|
|
8999
|
-
LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined,
|
|
9000
|
-
cellKey: info.key,
|
|
9001
|
-
index: infoIndex,
|
|
9002
|
-
item: item,
|
|
9003
|
-
leadingItem: info.leadingItem,
|
|
9004
|
-
leadingSection: info.leadingSection,
|
|
9005
|
-
prevCellKey: (_this._subExtractor(index - 1) || {}).key
|
|
9006
|
-
// Callback to provide updateHighlight for this item
|
|
9007
|
-
,
|
|
9008
|
-
setSelfHighlightCallback: _this._setUpdateHighlightFor,
|
|
9009
|
-
setSelfUpdatePropsCallback: _this._setUpdatePropsFor
|
|
9010
|
-
// Provide child ability to set highlight/updateProps for previous item using prevCellKey
|
|
9011
|
-
,
|
|
9012
|
-
updateHighlightFor: _this._updateHighlightFor,
|
|
9013
|
-
updatePropsFor: _this._updatePropsFor,
|
|
9014
|
-
renderItem: renderItem,
|
|
9015
|
-
section: info.section,
|
|
9016
|
-
trailingItem: info.trailingItem,
|
|
9017
|
-
trailingSection: info.trailingSection,
|
|
9018
|
-
inverted: !!_this.props.inverted
|
|
9019
|
-
});
|
|
8349
|
+
var renderSectionFooter = _this.props.renderSectionFooter;
|
|
8350
|
+
return renderSectionFooter ? renderSectionFooter({
|
|
8351
|
+
section: section
|
|
8352
|
+
}) : null;
|
|
9020
8353
|
}
|
|
8354
|
+
} else {
|
|
8355
|
+
var renderItem = info.section.renderItem || _this.props.renderItem;
|
|
8356
|
+
var SeparatorComponent = _this._getSeparatorComponent(index, info, listItemCount);
|
|
8357
|
+
(0, _invariant.default)(renderItem, 'no renderItem!');
|
|
8358
|
+
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(ItemWithSeparator, {
|
|
8359
|
+
SeparatorComponent: SeparatorComponent,
|
|
8360
|
+
LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined,
|
|
8361
|
+
cellKey: info.key,
|
|
8362
|
+
index: infoIndex,
|
|
8363
|
+
item: item,
|
|
8364
|
+
leadingItem: info.leadingItem,
|
|
8365
|
+
leadingSection: info.leadingSection,
|
|
8366
|
+
prevCellKey: (_this._subExtractor(index - 1) || {}).key,
|
|
8367
|
+
setSelfHighlightCallback: _this._setUpdateHighlightFor,
|
|
8368
|
+
setSelfUpdatePropsCallback: _this._setUpdatePropsFor,
|
|
8369
|
+
updateHighlightFor: _this._updateHighlightFor,
|
|
8370
|
+
updatePropsFor: _this._updatePropsFor,
|
|
8371
|
+
renderItem: renderItem,
|
|
8372
|
+
section: info.section,
|
|
8373
|
+
trailingItem: info.trailingItem,
|
|
8374
|
+
trailingSection: info.trailingSection,
|
|
8375
|
+
inverted: !!_this.props.inverted
|
|
8376
|
+
});
|
|
9021
8377
|
}
|
|
9022
|
-
|
|
8378
|
+
};
|
|
9023
8379
|
};
|
|
9024
8380
|
_this._updatePropsFor = function (cellKey, value) {
|
|
9025
8381
|
var updateProps = _this._updatePropsMap[cellKey];
|
|
@@ -9037,7 +8393,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9037
8393
|
if (updateHighlightFn != null) {
|
|
9038
8394
|
_this._updateHighlightMap[cellKey] = updateHighlightFn;
|
|
9039
8395
|
} else {
|
|
9040
|
-
// $FlowFixMe[prop-missing]
|
|
9041
8396
|
delete _this._updateHighlightFor[cellKey];
|
|
9042
8397
|
}
|
|
9043
8398
|
};
|
|
@@ -9075,7 +8430,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9075
8430
|
viewOffset: viewOffset,
|
|
9076
8431
|
index: index
|
|
9077
8432
|
});
|
|
9078
|
-
// $FlowFixMe[incompatible-use]
|
|
9079
8433
|
this._listRef.scrollToIndex(toIndexParams);
|
|
9080
8434
|
}
|
|
9081
8435
|
}, {
|
|
@@ -9100,12 +8454,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9100
8454
|
var stickyHeaderIndices = this.props.stickySectionHeadersEnabled ? [] : undefined;
|
|
9101
8455
|
var itemCount = 0;
|
|
9102
8456
|
for (var section of this.props.sections) {
|
|
9103
|
-
// Track the section header indices
|
|
9104
8457
|
if (stickyHeaderIndices != null) {
|
|
9105
8458
|
stickyHeaderIndices.push(itemCount + listHeaderOffset);
|
|
9106
8459
|
}
|
|
9107
|
-
|
|
9108
|
-
// Add two for the section header and footer.
|
|
9109
8460
|
itemCount += 2;
|
|
9110
8461
|
itemCount += this.props.getItemCount(section.data);
|
|
9111
8462
|
}
|
|
@@ -9137,15 +8488,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9137
8488
|
var sectionData = section.data;
|
|
9138
8489
|
var itemCount = props.getItemCount(sectionData);
|
|
9139
8490
|
if (itemIdx === -1 || itemIdx === itemCount) {
|
|
9140
|
-
// We intend for there to be overflow by one on both ends of the list.
|
|
9141
|
-
// This will be for headers and footers. When returning a header or footer
|
|
9142
|
-
// item the section itself is the item.
|
|
9143
8491
|
return section;
|
|
9144
8492
|
} else if (itemIdx < itemCount) {
|
|
9145
|
-
// If we are in the bounds of the list's data then return the item.
|
|
9146
8493
|
return props.getItem(sectionData, itemIdx);
|
|
9147
8494
|
} else {
|
|
9148
|
-
itemIdx -= itemCount + 2;
|
|
8495
|
+
itemIdx -= itemCount + 2;
|
|
9149
8496
|
}
|
|
9150
8497
|
}
|
|
9151
8498
|
return null;
|
|
@@ -9163,9 +8510,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9163
8510
|
var section = sections[i];
|
|
9164
8511
|
var sectionData = section.data;
|
|
9165
8512
|
var key = section.key || String(i);
|
|
9166
|
-
itemIndex -= 1;
|
|
8513
|
+
itemIndex -= 1;
|
|
9167
8514
|
if (itemIndex >= getItemCount(sectionData) + 1) {
|
|
9168
|
-
itemIndex -= getItemCount(sectionData) + 1;
|
|
8515
|
+
itemIndex -= getItemCount(sectionData) + 1;
|
|
9169
8516
|
} else if (itemIndex === -1) {
|
|
9170
8517
|
return {
|
|
9171
8518
|
section: section,
|
|
@@ -9260,7 +8607,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9260
8607
|
setSeparatorProps = _React$useState8[1];
|
|
9261
8608
|
React.useEffect(function () {
|
|
9262
8609
|
setSelfHighlightCallback(cellKey, setSeparatorHighlighted);
|
|
9263
|
-
// $FlowFixMe[incompatible-call]
|
|
9264
8610
|
setSelfUpdatePropsCallback(cellKey, setSeparatorProps);
|
|
9265
8611
|
return function () {
|
|
9266
8612
|
setSelfUpdatePropsCallback(cellKey, null);
|
|
@@ -9287,7 +8633,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9287
8633
|
if (LeadingSeparatorComponent != null) {
|
|
9288
8634
|
setLeadingSeparatorProps(Object.assign({}, leadingSeparatorProps, newProps));
|
|
9289
8635
|
} else if (prevCellKey != null) {
|
|
9290
|
-
// update the previous item's separator
|
|
9291
8636
|
updatePropsFor(prevCellKey, Object.assign({}, leadingSeparatorProps, newProps));
|
|
9292
8637
|
}
|
|
9293
8638
|
} else if (select === 'trailing' && SeparatorComponent != null) {
|
|
@@ -9311,12 +8656,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9311
8656
|
children: [inverted === false ? leadingSeparator : separator, element, inverted === false ? separator : leadingSeparator]
|
|
9312
8657
|
}) : element;
|
|
9313
8658
|
}
|
|
9314
|
-
|
|
9315
|
-
/* $FlowFixMe[class-object-subtyping] added when improving typing for this
|
|
9316
|
-
* parameters */
|
|
9317
|
-
// $FlowFixMe[method-unbinding]
|
|
9318
8659
|
module.exports = VirtualizedSectionList;
|
|
9319
|
-
},"d2355175ff6609a3def1",["
|
|
8660
|
+
},"d2355175ff6609a3def1",["277a84013d7e1a1ace05","d73b3a84588342abd1b6","a2c8e692f78bae5b8b98","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","9822a58ca7726d551fe0","26ef620f86acf7f6932a","c4b46015e44050527820","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f","a26dbe2a3afa21c3cf22","048fed5a64a04bdb7fed"]);
|
|
9320
8661
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9321
8662
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
9322
8663
|
try {
|
|
@@ -9344,91 +8685,92 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9344
8685
|
};
|
|
9345
8686
|
}
|
|
9346
8687
|
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9347
|
-
},"
|
|
8688
|
+
},"77f56f33f638c3751138",[]);
|
|
9348
8689
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9349
8690
|
'use strict';
|
|
9350
8691
|
|
|
9351
8692
|
{
|
|
9352
8693
|
module.exports = _$$_REQUIRE(_dependencyMap[0]);
|
|
9353
8694
|
}
|
|
9354
|
-
},"
|
|
8695
|
+
},"962cceb83a0665e556b0",["882f173eeacafe179433"]);
|
|
9355
8696
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9356
8697
|
/**
|
|
9357
8698
|
* @license React
|
|
9358
|
-
* use-sync-external-store-shim.native.production.
|
|
8699
|
+
* use-sync-external-store-shim.native.production.js
|
|
9359
8700
|
*
|
|
9360
|
-
* Copyright (c)
|
|
8701
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9361
8702
|
*
|
|
9362
8703
|
* This source code is licensed under the MIT license found in the
|
|
9363
8704
|
* LICENSE file in the root directory of this source tree.
|
|
9364
8705
|
*/
|
|
9365
|
-
'use strict';
|
|
9366
8706
|
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
8707
|
+
"use strict";
|
|
8708
|
+
|
|
8709
|
+
var React = _$$_REQUIRE(_dependencyMap[0]);
|
|
8710
|
+
function is(x, y) {
|
|
8711
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
8712
|
+
}
|
|
8713
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
8714
|
+
useState = React.useState,
|
|
8715
|
+
useEffect = React.useEffect,
|
|
8716
|
+
useLayoutEffect = React.useLayoutEffect,
|
|
8717
|
+
useDebugValue = React.useDebugValue;
|
|
8718
|
+
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
8719
|
+
var value = getSnapshot(),
|
|
8720
|
+
_useState = useState({
|
|
9379
8721
|
inst: {
|
|
9380
|
-
value:
|
|
9381
|
-
getSnapshot:
|
|
8722
|
+
value: value,
|
|
8723
|
+
getSnapshot: getSnapshot
|
|
9382
8724
|
}
|
|
9383
8725
|
}),
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
inst:
|
|
8726
|
+
inst = _useState[0].inst,
|
|
8727
|
+
forceUpdate = _useState[1];
|
|
8728
|
+
useLayoutEffect(function () {
|
|
8729
|
+
inst.value = value;
|
|
8730
|
+
inst.getSnapshot = getSnapshot;
|
|
8731
|
+
checkIfSnapshotChanged(inst) && forceUpdate({
|
|
8732
|
+
inst: inst
|
|
9391
8733
|
});
|
|
9392
|
-
}, [
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
inst:
|
|
8734
|
+
}, [subscribe, value, getSnapshot]);
|
|
8735
|
+
useEffect(function () {
|
|
8736
|
+
checkIfSnapshotChanged(inst) && forceUpdate({
|
|
8737
|
+
inst: inst
|
|
9396
8738
|
});
|
|
9397
|
-
return
|
|
9398
|
-
|
|
9399
|
-
inst:
|
|
8739
|
+
return subscribe(function () {
|
|
8740
|
+
checkIfSnapshotChanged(inst) && forceUpdate({
|
|
8741
|
+
inst: inst
|
|
9400
8742
|
});
|
|
9401
8743
|
});
|
|
9402
|
-
}, [
|
|
9403
|
-
|
|
9404
|
-
return
|
|
8744
|
+
}, [subscribe]);
|
|
8745
|
+
useDebugValue(value);
|
|
8746
|
+
return value;
|
|
9405
8747
|
}
|
|
9406
|
-
function
|
|
9407
|
-
var
|
|
9408
|
-
|
|
8748
|
+
function checkIfSnapshotChanged(inst) {
|
|
8749
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
8750
|
+
inst = inst.value;
|
|
9409
8751
|
try {
|
|
9410
|
-
var
|
|
9411
|
-
return !
|
|
9412
|
-
} catch (
|
|
8752
|
+
var nextValue = latestGetSnapshot();
|
|
8753
|
+
return !objectIs(inst, nextValue);
|
|
8754
|
+
} catch (error) {
|
|
9413
8755
|
return true;
|
|
9414
8756
|
}
|
|
9415
8757
|
}
|
|
9416
|
-
exports.useSyncExternalStore = undefined !==
|
|
9417
|
-
},"
|
|
8758
|
+
exports.useSyncExternalStore = undefined !== React.useSyncExternalStore ? React.useSyncExternalStore : useSyncExternalStore$1;
|
|
8759
|
+
},"882f173eeacafe179433",["6ed0e34da2b23bd3554f"]);
|
|
9418
8760
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9419
8761
|
var id = 0;
|
|
9420
8762
|
function _classPrivateFieldKey(e) {
|
|
9421
8763
|
return "__private_" + id++ + "_" + e;
|
|
9422
8764
|
}
|
|
9423
8765
|
module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9424
|
-
},"
|
|
8766
|
+
},"cb8ece4f72f02a959885",[]);
|
|
9425
8767
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9426
8768
|
function _classPrivateFieldBase(e, t) {
|
|
9427
8769
|
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
|
|
9428
8770
|
return e;
|
|
9429
8771
|
}
|
|
9430
8772
|
module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9431
|
-
},"
|
|
8773
|
+
},"39eb90fd8fb300b049c2",[]);
|
|
9432
8774
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9433
8775
|
"use strict";
|
|
9434
8776
|
|
|
@@ -9562,8 +8904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9562
8904
|
var _reactNative = _$$_REQUIRE(_dependencyMap[8]);
|
|
9563
8905
|
var _LottieAnimationViewNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9]));
|
|
9564
8906
|
var _excluded = ["style", "source", "autoSize", "autoPlay", "duration", "textFiltersAndroid", "textFiltersIOS", "textFiltersKepler"];
|
|
9565
|
-
function
|
|
9566
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
8907
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
9567
8908
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
9568
8909
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9569
8910
|
function _extends() {
|
|
@@ -9811,7 +9152,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9811
9152
|
}]);
|
|
9812
9153
|
}(_react.default.PureComponent);
|
|
9813
9154
|
_defineProperty(AnimatedLottieView, "defaultProps", defaultProps);
|
|
9814
|
-
},"ba078774c948795ab18d",["
|
|
9155
|
+
},"ba078774c948795ab18d",["277a84013d7e1a1ace05","a2c8e692f78bae5b8b98","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","9822a58ca7726d551fe0","6ed0e34da2b23bd3554f","26ef620f86acf7f6932a","88a5bc5265d21ae1c180"]);
|
|
9815
9156
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9816
9157
|
Object.defineProperty(exports, "__esModule", {
|
|
9817
9158
|
value: true
|
|
@@ -9906,7 +9247,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9906
9247
|
bubblingEventTypes: bubblingEventTypes
|
|
9907
9248
|
});
|
|
9908
9249
|
var _default = exports.default = LottieNativeComponent;
|
|
9909
|
-
},"88a5bc5265d21ae1c180",["
|
|
9250
|
+
},"88a5bc5265d21ae1c180",["277a84013d7e1a1ace05","276fdf93b5bf06f5ed62","76b52edafd968705fff3"]);
|
|
9910
9251
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9911
9252
|
Object.defineProperty(exports, "__esModule", {
|
|
9912
9253
|
value: true
|
|
@@ -9950,7 +9291,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9950
9291
|
}
|
|
9951
9292
|
}
|
|
9952
9293
|
};
|
|
9953
|
-
},"a142cc095c158160c29a",["247fb6437636250c8b98","
|
|
9294
|
+
},"a142cc095c158160c29a",["247fb6437636250c8b98","d73b3a84588342abd1b6"]);
|
|
9954
9295
|
__d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) {
|
|
9955
9296
|
module.exports = {
|
|
9956
9297
|
"name": "@react-native-community/cli-platform-android",
|
|
@@ -10004,8 +9345,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
10004
9345
|
var _reactNative = _$$_REQUIRE(_dependencyMap[8]);
|
|
10005
9346
|
var _LottieAnimationViewNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9]));
|
|
10006
9347
|
var _excluded = ["style", "source", "autoSize", "autoPlay", "duration", "textFiltersAndroid", "textFiltersIOS", "textFiltersKepler"];
|
|
10007
|
-
function
|
|
10008
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
9348
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
10009
9349
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
10010
9350
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*
|
|
10011
9351
|
* Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its affiliates. All rights reserved.
|
|
@@ -10216,7 +9556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
10216
9556
|
}]);
|
|
10217
9557
|
}(_react.default.PureComponent);
|
|
10218
9558
|
AnimatedLottieView.defaultProps = defaultProps;
|
|
10219
|
-
},"0de81493c38c4bab7674",["
|
|
9559
|
+
},"0de81493c38c4bab7674",["277a84013d7e1a1ace05","a2c8e692f78bae5b8b98","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","9822a58ca7726d551fe0","6ed0e34da2b23bd3554f","26ef620f86acf7f6932a","6c63b2c71102f268734d","048fed5a64a04bdb7fed"]);
|
|
10220
9560
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
10221
9561
|
Object.defineProperty(exports, "__esModule", {
|
|
10222
9562
|
value: true
|
|
@@ -10311,8 +9651,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
10311
9651
|
bubblingEventTypes: bubblingEventTypes
|
|
10312
9652
|
});
|
|
10313
9653
|
var _default = exports.default = LottieNativeComponent;
|
|
10314
|
-
},"6c63b2c71102f268734d",["
|
|
10315
|
-
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9654
|
+
},"6c63b2c71102f268734d",["277a84013d7e1a1ace05","276fdf93b5bf06f5ed62","76b52edafd968705fff3"]);
|
|
9655
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9656
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9657
|
+
value: true
|
|
9658
|
+
});
|
|
9659
|
+
},"498b9e4796ab5dcb2286",[]);
|
|
10316
9660
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
10317
9661
|
Object.defineProperty(exports, "__esModule", {
|
|
10318
9662
|
value: true
|