@amazon-devices/shopify__react-native-performance-lists-profiler 1.1.1758683737 → 1.1.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.
@@ -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
- /* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */
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').substr(2);
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.substr(1, name.length - 2);
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 OBJECT_COLUMN_NAME = '(index)';
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 consoleTablePolyfill(rows) {
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 (!Array.isArray(rows)) {
354
- var data = rows;
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 row = data[key];
359
- row[OBJECT_COLUMN_NAME] = key;
360
- rows.push(row);
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
- var columns = Object.keys(rows[0]).sort();
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][k] || '?').toString();
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
 
@@ -1483,7 +1465,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
1483
1465
  };
1484
1466
  }
1485
1467
  module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
1486
- },"e13c8413f9a5de8e772f",[]);
1468
+ },"277a84013d7e1a1ace05",[]);
1487
1469
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1488
1470
  /**
1489
1471
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -1545,13 +1527,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
1545
1527
  return _$$_REQUIRE(_dependencyMap[0])(r) || _$$_REQUIRE(_dependencyMap[1])(r, e) || _$$_REQUIRE(_dependencyMap[2])(r, e) || _$$_REQUIRE(_dependencyMap[3])();
1546
1528
  }
1547
1529
  module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1548
- },"483ae341f8ec81c793b7",["783a1c105475cee3e6c5","848b0a42822f8876517a","bb86eb755213422b1850","7df430fde83911c4a777"]);
1530
+ },"d73b3a84588342abd1b6",["c18fba4833d885627fc3","db861c9134e305a92464","e7044bb724c5bd68e2cc","d2c95b166a5bd41ca703"]);
1549
1531
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1550
1532
  function _arrayWithHoles(r) {
1551
1533
  if (Array.isArray(r)) return r;
1552
1534
  }
1553
1535
  module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1554
- },"783a1c105475cee3e6c5",[]);
1536
+ },"c18fba4833d885627fc3",[]);
1555
1537
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1556
1538
  function _iterableToArrayLimit(r, l) {
1557
1539
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
@@ -1581,7 +1563,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
1581
1563
  }
1582
1564
  }
1583
1565
  module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
1584
- },"848b0a42822f8876517a",[]);
1566
+ },"db861c9134e305a92464",[]);
1585
1567
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1586
1568
  function _unsupportedIterableToArray(r, a) {
1587
1569
  if (r) {
@@ -1591,7 +1573,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
1591
1573
  }
1592
1574
  }
1593
1575
  module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1594
- },"bb86eb755213422b1850",["790be5d6822a112c9007"]);
1576
+ },"e7044bb724c5bd68e2cc",["378be3062418cfac9327"]);
1595
1577
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1596
1578
  function _arrayLikeToArray(r, a) {
1597
1579
  (null == a || a > r.length) && (a = r.length);
@@ -1599,19 +1581,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
1599
1581
  return n;
1600
1582
  }
1601
1583
  module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1602
- },"790be5d6822a112c9007",[]);
1584
+ },"378be3062418cfac9327",[]);
1603
1585
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1604
1586
  function _nonIterableRest() {
1605
1587
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1606
1588
  }
1607
1589
  module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
1608
- },"7df430fde83911c4a777",[]);
1590
+ },"d2c95b166a5bd41ca703",[]);
1609
1591
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1610
1592
  function _classCallCheck(a, n) {
1611
1593
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
1612
1594
  }
1613
1595
  module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
1614
- },"7ba3d97b9a1c7b5d2869",[]);
1596
+ },"cb664999166f9660a878",[]);
1615
1597
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1616
1598
  function _defineProperties(e, r) {
1617
1599
  for (var t = 0; t < r.length; t++) {
@@ -1625,14 +1607,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
1625
1607
  }), e;
1626
1608
  }
1627
1609
  module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
1628
- },"51a05661f80df8a7ec74",["83653ba9ba6a6acbaf3f"]);
1610
+ },"68819e29ebee24bb0e88",["cbba112244d360ffda7a"]);
1629
1611
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1630
1612
  function toPropertyKey(t) {
1631
1613
  var i = _$$_REQUIRE(_dependencyMap[0])(t, "string");
1632
1614
  return "symbol" == _$$_REQUIRE(_dependencyMap[1])["default"](i) ? i : i + "";
1633
1615
  }
1634
1616
  module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
1635
- },"83653ba9ba6a6acbaf3f",["44d8868b36ed13d4848c","9beefbd2b38f15e68c8e"]);
1617
+ },"cbba112244d360ffda7a",["ad82d340d0b5dc5f0801","e08c69ed06cf526909e3"]);
1636
1618
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1637
1619
  function toPrimitive(t, r) {
1638
1620
  if ("object" != _$$_REQUIRE(_dependencyMap[0])["default"](t) || !t) return t;
@@ -1645,7 +1627,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
1645
1627
  return ("string" === r ? String : Number)(t);
1646
1628
  }
1647
1629
  module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
1648
- },"44d8868b36ed13d4848c",["9beefbd2b38f15e68c8e"]);
1630
+ },"ad82d340d0b5dc5f0801",["e08c69ed06cf526909e3"]);
1649
1631
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1650
1632
  function _typeof(o) {
1651
1633
  "@babel/helpers - typeof";
@@ -1657,31 +1639,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
1657
1639
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
1658
1640
  }
1659
1641
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
1660
- },"9beefbd2b38f15e68c8e",[]);
1642
+ },"e08c69ed06cf526909e3",[]);
1661
1643
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1662
1644
  function _toConsumableArray(r) {
1663
1645
  return _$$_REQUIRE(_dependencyMap[0])(r) || _$$_REQUIRE(_dependencyMap[1])(r) || _$$_REQUIRE(_dependencyMap[2])(r) || _$$_REQUIRE(_dependencyMap[3])();
1664
1646
  }
1665
1647
  module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1666
- },"c8d9faa50529497e8550",["fedf38594225d61ce364","caf268f6252e2825d074","bb86eb755213422b1850","e82afc4c0fee49992755"]);
1648
+ },"838d7a057beeb5db50df",["a425fd4fe3cf47759e99","67d028b72bb61755baea","e7044bb724c5bd68e2cc","b4810fa44dd496b7d9f5"]);
1667
1649
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1668
1650
  function _arrayWithoutHoles(r) {
1669
1651
  if (Array.isArray(r)) return _$$_REQUIRE(_dependencyMap[0])(r);
1670
1652
  }
1671
1653
  module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1672
- },"fedf38594225d61ce364",["790be5d6822a112c9007"]);
1654
+ },"a425fd4fe3cf47759e99",["378be3062418cfac9327"]);
1673
1655
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1674
1656
  function _iterableToArray(r) {
1675
1657
  if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
1676
1658
  }
1677
1659
  module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1678
- },"caf268f6252e2825d074",[]);
1660
+ },"67d028b72bb61755baea",[]);
1679
1661
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1680
1662
  function _nonIterableSpread() {
1681
1663
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1682
1664
  }
1683
1665
  module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
1684
- },"e82afc4c0fee49992755",[]);
1666
+ },"b4810fa44dd496b7d9f5",[]);
1685
1667
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1686
1668
  /**
1687
1669
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -2253,24 +2235,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2253
2235
  }) : e[r] = t, e;
2254
2236
  }
2255
2237
  module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2256
- },"f08cf7e9c32002e6bb9e",["83653ba9ba6a6acbaf3f"]);
2238
+ },"4926d0dbc109dc5bb6c9",["cbba112244d360ffda7a"]);
2257
2239
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2258
- /**
2259
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2260
- *
2261
- * This source code is licensed under the MIT license found in the
2262
- * LICENSE file in the root directory of this source tree.
2263
- *
2264
- *
2265
- * @format
2266
- */
2267
-
2268
2240
  'use strict';
2269
2241
 
2270
2242
  var assets = [];
2271
2243
  function registerAsset(asset) {
2272
- // `push` returns new array length, so the first asset will
2273
- // get id 1 (not 0) to make the value truthy
2274
2244
  return assets.push(asset);
2275
2245
  }
2276
2246
  function getAssetByID(assetId) {
@@ -2282,16 +2252,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2282
2252
  };
2283
2253
  },"05d58bec2a6d939f08d8",[]);
2284
2254
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2285
- /**
2286
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2287
- *
2288
- * This source code is licensed under the MIT license found in the
2289
- * LICENSE file in the root directory of this source tree.
2290
- *
2291
- * @format
2292
- *
2293
- */
2294
-
2295
2255
  'use strict';
2296
2256
 
2297
2257
  var androidScaleSuffix = {
@@ -2303,24 +2263,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2303
2263
  '4': 'xxxhdpi'
2304
2264
  };
2305
2265
  var ANDROID_BASE_DENSITY = 160;
2306
-
2307
- /**
2308
- * FIXME: using number to represent discrete scale numbers is fragile in essence because of
2309
- * floating point numbers imprecision.
2310
- */
2311
2266
  function getAndroidAssetSuffix(scale) {
2312
2267
  if (scale.toString() in androidScaleSuffix) {
2313
2268
  return androidScaleSuffix[scale.toString()];
2314
2269
  }
2315
- // NOTE: Android Gradle Plugin does not fully support the nnndpi format.
2316
- // See https://issuetracker.google.com/issues/72884435
2317
2270
  if (Number.isFinite(scale) && scale > 0) {
2318
2271
  return Math.round(scale * ANDROID_BASE_DENSITY) + 'dpi';
2319
2272
  }
2320
2273
  throw new Error('no such scale ' + scale.toString());
2321
2274
  }
2322
-
2323
- // See https://developer.android.com/guide/topics/resources/drawable-resource.html
2324
2275
  var drawableFileTypes = new Set(['gif', 'jpeg', 'jpg', 'ktx', 'png', 'svg', 'webp', 'xml']);
2325
2276
  function getAndroidResourceFolderName(asset, scale) {
2326
2277
  if (!drawableFileTypes.has(asset.type)) {
@@ -2333,9 +2284,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2333
2284
  return 'drawable-' + suffix;
2334
2285
  }
2335
2286
  function getAndroidResourceIdentifier(asset) {
2336
- return (getBasePath(asset) + '/' + asset.name).toLowerCase().replace(/\//g, '_') // Encode folder structure in file name
2337
- .replace(/([^a-z0-9_])/g, '') // Remove illegal chars
2338
- .replace(/^assets_/, ''); // Remove "assets_" prefix
2287
+ return (getBasePath(asset) + '/' + asset.name).toLowerCase().replace(/\//g, '_').replace(/([^a-z0-9_])/g, '').replace(/^assets_/, '');
2339
2288
  }
2340
2289
  function getBasePath(asset) {
2341
2290
  var basePath = asset.httpServerLocation;
@@ -2372,14 +2321,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2372
2321
  return _$$_REQUIRE(_dependencyMap[1])(t);
2373
2322
  }
2374
2323
  module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
2375
- },"1a2fe3e5fa067fc0a581",["9beefbd2b38f15e68c8e","8fb490053e9935245ab2"]);
2324
+ },"aab42168bb4cb23540ec",["e08c69ed06cf526909e3","0716ce96f45f287fb302"]);
2376
2325
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2377
2326
  function _assertThisInitialized(e) {
2378
2327
  if (undefined === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2379
2328
  return e;
2380
2329
  }
2381
2330
  module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
2382
- },"8fb490053e9935245ab2",[]);
2331
+ },"0716ce96f45f287fb302",[]);
2383
2332
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2384
2333
  function _getPrototypeOf(t) {
2385
2334
  return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
@@ -2387,7 +2336,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2387
2336
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
2388
2337
  }
2389
2338
  module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2390
- },"9f001f493a532727260d",[]);
2339
+ },"ba9efe5c53f1d07f5c9d",[]);
2391
2340
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2392
2341
  function _inherits(t, e) {
2393
2342
  if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
@@ -2402,7 +2351,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2402
2351
  }), e && _$$_REQUIRE(_dependencyMap[0])(t, e);
2403
2352
  }
2404
2353
  module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
2405
- },"106616352dc94f6a631a",["b3795059b892586ade34"]);
2354
+ },"9822a58ca7726d551fe0",["79c731bcf4b10abe8e4d"]);
2406
2355
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2407
2356
  function _setPrototypeOf(t, e) {
2408
2357
  return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -2410,13 +2359,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2410
2359
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
2411
2360
  }
2412
2361
  module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2413
- },"b3795059b892586ade34",[]);
2362
+ },"79c731bcf4b10abe8e4d",[]);
2414
2363
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2415
2364
  function _readOnlyError(r) {
2416
2365
  throw new TypeError('"' + r + '" is read-only');
2417
2366
  }
2418
2367
  module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports;
2419
- },"1ce02919a2278f04e7f0",[]);
2368
+ },"9a3a31f49f0e1fee57b0",[]);
2420
2369
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2421
2370
  function _wrapNativeSuper(t) {
2422
2371
  var r = "function" == typeof Map ? new Map() : undefined;
@@ -2441,7 +2390,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2441
2390
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
2442
2391
  }
2443
2392
  module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
2444
- },"eb04c83a2c7f1c2f7a42",["3ce4e050494cfa1d5417","bc6843521062ed051490","9f001f493a532727260d","b3795059b892586ade34"]);
2393
+ },"66be7ef871ad04671969",["9cf198b81404c8b483b0","20524c8783215c6329fe","ba9efe5c53f1d07f5c9d","79c731bcf4b10abe8e4d"]);
2445
2394
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2446
2395
  function _isNativeFunction(t) {
2447
2396
  try {
@@ -2451,7 +2400,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2451
2400
  }
2452
2401
  }
2453
2402
  module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
2454
- },"3ce4e050494cfa1d5417",[]);
2403
+ },"9cf198b81404c8b483b0",[]);
2455
2404
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2456
2405
  function _construct(t, e, r) {
2457
2406
  if (_$$_REQUIRE(_dependencyMap[0])()) return Reflect.construct.apply(null, arguments);
@@ -2461,7 +2410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2461
2410
  return r && _$$_REQUIRE(_dependencyMap[1])(p, r.prototype), p;
2462
2411
  }
2463
2412
  module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2464
- },"bc6843521062ed051490",["8962e626888f4268c6fc","b3795059b892586ade34"]);
2413
+ },"20524c8783215c6329fe",["df21df9938c0adbd59f1","79c731bcf4b10abe8e4d"]);
2465
2414
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2466
2415
  function _isNativeReflectConstruct() {
2467
2416
  try {
@@ -2472,7 +2421,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2472
2421
  }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2473
2422
  }
2474
2423
  module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2475
- },"8962e626888f4268c6fc",[]);
2424
+ },"df21df9938c0adbd59f1",[]);
2476
2425
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2477
2426
  'use strict';
2478
2427
 
@@ -2495,7 +2444,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2495
2444
  return stack;
2496
2445
  }, []);
2497
2446
  }
2498
- var chromeRe = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
2447
+ var chromeRe = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|rsc|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
2499
2448
  var chromeEvalRe = /\((\S*)(?::(\d+))(?::(\d+))\)/;
2500
2449
  function parseChrome(line) {
2501
2450
  var parts = chromeRe.exec(line);
@@ -2523,7 +2472,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2523
2472
  column: parts[4] ? +parts[4] : null
2524
2473
  };
2525
2474
  }
2526
- var winjsRe = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
2475
+ var winjsRe = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|rsc|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
2527
2476
  function parseWinjs(line) {
2528
2477
  var parts = winjsRe.exec(line);
2529
2478
  if (!parts) {
@@ -2537,7 +2486,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2537
2486
  column: parts[4] ? +parts[4] : null
2538
2487
  };
2539
2488
  }
2540
- var geckoRe = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i;
2489
+ var geckoRe = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|rsc|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i;
2541
2490
  var geckoEvalRe = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
2542
2491
  function parseGecko(line) {
2543
2492
  var parts = geckoRe.exec(line);
@@ -2589,7 +2538,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
2589
2538
  };
2590
2539
  }
2591
2540
  exports.parse = parse;
2592
- },"189d72d0eb41570f5e74",[]);
2541
+ },"aa725aa4c0b37e1add33",[]);
2593
2542
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
2594
2543
  'use strict';
2595
2544
 
@@ -3657,14 +3606,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
3657
3606
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
3658
3607
  }
3659
3608
  module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
3660
- },"4b1a4e373780ac89a3a3",["b7261b01f9f721400840"]);
3609
+ },"55062adb34159de0ea92",["d53f05ad44723a08f608"]);
3661
3610
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
3662
3611
  function _superPropBase(t, o) {
3663
3612
  for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _$$_REQUIRE(_dependencyMap[0])(t)););
3664
3613
  return t;
3665
3614
  }
3666
3615
  module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
3667
- },"b7261b01f9f721400840",["9f001f493a532727260d"]);
3616
+ },"d53f05ad44723a08f608",["ba9efe5c53f1d07f5c9d"]);
3668
3617
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
3669
3618
  /**
3670
3619
  * @author Toru Nagashima <https://github.com/mysticatea>
@@ -5136,25 +5085,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
5136
5085
  r,
5137
5086
  i = _$$_REQUIRE(_dependencyMap[0])(e, t);
5138
5087
  if (Object.getOwnPropertySymbols) {
5139
- var s = Object.getOwnPropertySymbols(e);
5140
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5088
+ var n = Object.getOwnPropertySymbols(e);
5089
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5141
5090
  }
5142
5091
  return i;
5143
5092
  }
5144
5093
  module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
5145
- },"288fc9023aadbf916360",["227b8be7a5ddac0008f4"]);
5094
+ },"a2c8e692f78bae5b8b98",["5927789db7c756c318ed"]);
5146
5095
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
5147
5096
  function _objectWithoutPropertiesLoose(r, e) {
5148
5097
  if (null == r) return {};
5149
5098
  var t = {};
5150
5099
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5151
- if (e.includes(n)) continue;
5100
+ if (-1 !== e.indexOf(n)) continue;
5152
5101
  t[n] = r[n];
5153
5102
  }
5154
5103
  return t;
5155
5104
  }
5156
5105
  module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
5157
- },"227b8be7a5ddac0008f4",[]);
5106
+ },"5927789db7c756c318ed",[]);
5158
5107
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
5159
5108
  /**
5160
5109
  * @author Toru Nagashima <https://github.com/mysticatea>
@@ -5302,7 +5251,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
5302
5251
  module.exports = AbortController;
5303
5252
  module.exports.AbortController = module.exports["default"] = AbortController;
5304
5253
  module.exports.AbortSignal = AbortSignal;
5305
- },"ea8fcbd647aab1cfcdaa",["9f001f493a532727260d","1a2fe3e5fa067fc0a581","7ba3d97b9a1c7b5d2869","106616352dc94f6a631a","51a05661f80df8a7ec74","2bd3f165b1ed6b916de7"]);
5254
+ },"ea8fcbd647aab1cfcdaa",["ba9efe5c53f1d07f5c9d","aab42168bb4cb23540ec","cb664999166f9660a878","9822a58ca7726d551fe0","68819e29ebee24bb0e88","2bd3f165b1ed6b916de7"]);
5306
5255
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
5307
5256
  'use strict';
5308
5257
 
@@ -5537,16 +5486,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
5537
5486
  exports.unstable_wrapCallback = Z;
5538
5487
  },"9daefd1335ff675770cb",[]);
5539
5488
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
5540
- /**
5541
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5542
- *
5543
- * This source code is licensed under the MIT license found in the
5544
- * LICENSE file in the root directory of this source tree.
5545
- *
5546
- * @format
5547
- *
5548
- */
5549
-
5550
5489
  'use strict';
5551
5490
 
5552
5491
  module.exports = {
@@ -6573,16 +6512,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6573
6512
  module.exports = memoizeOne;
6574
6513
  },"d381691ed29bec5a2050",[]);
6575
6514
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
6576
- /**
6577
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6578
- *
6579
- * This source code is licensed under the MIT license found in the
6580
- * LICENSE file in the root directory of this source tree.
6581
- *
6582
- * @format
6583
- *
6584
- */
6585
-
6586
6515
  'use strict';
6587
6516
 
6588
6517
  module.exports = {
@@ -6606,16 +6535,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6606
6535
  };
6607
6536
  },"27b237d1799650306cb9",["a26dbe2a3afa21c3cf22","c4b46015e44050527820","d2355175ff6609a3def1","e6b1ef1f5b720d640981","8bafab90a37cab64b100","3e01a5bc929e85870fe5"]);
6608
6537
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
6609
- /**
6610
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6611
- *
6612
- * This source code is licensed under the MIT license found in the
6613
- * LICENSE file in the root directory of this source tree.
6614
- *
6615
- *
6616
- * @format
6617
- */
6618
-
6619
6538
  'use strict';
6620
6539
 
6621
6540
  Object.defineProperty(exports, "__esModule", {
@@ -6626,11 +6545,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6626
6545
  exports.keyExtractor = keyExtractor;
6627
6546
  exports.newRangeCount = newRangeCount;
6628
6547
  var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
6629
- /**
6630
- * Used to find the indices of the frames that overlap the given offsets. Useful for finding the
6631
- * items that bound different windows of content, such as the visible area or the buffered overscan
6632
- * area.
6633
- */
6634
6548
  function elementsThatOverlapOffsets(offsets, props, getFrameMetrics) {
6635
6549
  var zoomScale = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
6636
6550
  var itemCount = props.getItemCount(props.data);
@@ -6640,14 +6554,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6640
6554
  var left = 0;
6641
6555
  var right = itemCount - 1;
6642
6556
  while (left <= right) {
6643
- // eslint-disable-next-line no-bitwise
6644
6557
  var mid = left + (right - left >>> 1);
6645
6558
  var frame = getFrameMetrics(mid, props);
6646
6559
  var scaledOffsetStart = frame.offset * zoomScale;
6647
6560
  var scaledOffsetEnd = (frame.offset + frame.length) * zoomScale;
6648
-
6649
- // We want the first frame that contains the offset, with inclusive bounds. Thus, for the
6650
- // first frame the scaledOffsetStart is inclusive, while for other frames it is exclusive.
6651
6561
  if (mid === 0 && currentOffset < scaledOffsetStart || mid !== 0 && currentOffset <= scaledOffsetStart) {
6652
6562
  right = mid - 1;
6653
6563
  } else if (currentOffset > scaledOffsetEnd) {
@@ -6660,23 +6570,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6660
6570
  }
6661
6571
  return result;
6662
6572
  }
6663
-
6664
- /**
6665
- * Computes the number of elements in the `next` range that are new compared to the `prev` range.
6666
- * Handy for calculating how many new items will be rendered when the render window changes so we
6667
- * can restrict the number of new items render at once so that content can appear on the screen
6668
- * faster.
6669
- */
6670
6573
  function newRangeCount(prev, next) {
6671
6574
  return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first));
6672
6575
  }
6673
-
6674
- /**
6675
- * Custom logic for determining which items should be rendered given the current frame and scroll
6676
- * metrics, as well as the previous render state. The algorithm may evolve over time, but generally
6677
- * prioritizes the visible area first, then expands that with overscan regions ahead and behind,
6678
- * biased in the direction of scroll.
6679
- */
6680
6576
  function computeWindowedRenderLimits(props, maxToRenderPerBatch, windowSize, prev, getFrameMetricsApprox, scrollMetrics) {
6681
6577
  var itemCount = props.getItemCount(props.data);
6682
6578
  if (itemCount === 0) {
@@ -6690,30 +6586,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6690
6586
  visibleLength = scrollMetrics.visibleLength,
6691
6587
  _scrollMetrics$zoomSc = scrollMetrics.zoomScale,
6692
6588
  zoomScale = _scrollMetrics$zoomSc === undefined ? 1 : _scrollMetrics$zoomSc;
6693
-
6694
- // Start with visible area, then compute maximum overscan region by expanding from there, biased
6695
- // in the direction of scroll. Total overscan area is capped, which should cap memory consumption
6696
- // too.
6697
6589
  var visibleBegin = Math.max(0, offset);
6698
6590
  var visibleEnd = visibleBegin + visibleLength;
6699
6591
  var overscanLength = (windowSize - 1) * visibleLength;
6700
-
6701
- // Considering velocity seems to introduce more churn than it's worth.
6702
- var leadFactor = 0.5; // Math.max(0, Math.min(1, velocity / 25 + 0.5));
6703
-
6592
+ var leadFactor = 0.5;
6704
6593
  var fillPreference = velocity > 1 ? 'after' : velocity < -1 ? 'before' : 'none';
6705
6594
  var overscanBegin = Math.max(0, visibleBegin - 0.5 * overscanLength);
6706
6595
  var overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength);
6707
6596
  var lastItemOffset = getFrameMetricsApprox(itemCount - 1, props).offset * zoomScale;
6708
6597
  if (lastItemOffset < overscanBegin) {
6709
- // Entire list is before our overscan window
6710
6598
  return {
6711
6599
  first: Math.max(0, itemCount - 1 - maxToRenderPerBatch),
6712
6600
  last: itemCount - 1
6713
6601
  };
6714
6602
  }
6715
-
6716
- // Find the indices that correspond to the items at the render boundaries we're targeting.
6717
6603
  var _elementsThatOverlapO = elementsThatOverlapOffsets([overscanBegin, visibleBegin, visibleEnd, overscanEnd], props, getFrameMetricsApprox, zoomScale),
6718
6604
  _elementsThatOverlapO2 = (0, _slicedToArray2.default)(_elementsThatOverlapO, 4),
6719
6605
  overscanFirst = _elementsThatOverlapO2[0],
@@ -6728,15 +6614,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6728
6614
  first: first,
6729
6615
  last: last
6730
6616
  };
6731
-
6732
- // We want to limit the number of new cells we're rendering per batch so that we can fill the
6733
- // content on the screen quickly. If we rendered the entire overscan window at once, the user
6734
- // could be staring at white space for a long time waiting for a bunch of offscreen content to
6735
- // render.
6736
6617
  var newCellCount = newRangeCount(prev, visible);
6737
6618
  while (true) {
6738
6619
  if (first <= overscanFirst && last >= overscanLast) {
6739
- // If we fill the entire overscan range, we're done.
6740
6620
  break;
6741
6621
  }
6742
6622
  var maxNewCells = newCellCount >= maxToRenderPerBatch;
@@ -6745,10 +6625,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6745
6625
  var lastWillAddMore = last >= prev.last || last < prev.first;
6746
6626
  var lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore);
6747
6627
  if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) {
6748
- // We only want to stop if we've hit maxNewCells AND we cannot increment first or last
6749
- // without rendering new items. This let's us preserve as many already rendered items as
6750
- // possible, reducing render churn and keeping the rendered overscan range as large as
6751
- // possible.
6752
6628
  break;
6753
6629
  }
6754
6630
  if (firstShouldIncrement && !(fillPreference === 'after' && lastShouldIncrement && lastWillAddMore)) {
@@ -6788,7 +6664,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6788
6664
  }
6789
6665
  return String(index);
6790
6666
  }
6791
- },"a26dbe2a3afa21c3cf22",["e13c8413f9a5de8e772f","483ae341f8ec81c793b7"]);
6667
+ },"a26dbe2a3afa21c3cf22",["277a84013d7e1a1ace05","d73b3a84588342abd1b6"]);
6792
6668
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
6793
6669
  var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
6794
6670
  var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
@@ -6809,62 +6685,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6809
6685
  var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17]));
6810
6686
  var _nullthrows = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18]));
6811
6687
  var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[19]));
6812
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
6813
- 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; }
6688
+ 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); }
6814
6689
  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)); }
6815
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
6816
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6817
- *
6818
- * This source code is licensed under the MIT license found in the
6819
- * LICENSE file in the root directory of this source tree.
6820
- *
6821
- *
6822
- * @format
6823
- */
6690
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
6824
6691
  var ON_EDGE_REACHED_EPSILON = 0.001;
6825
6692
  var _usedIndexForKey = false;
6826
6693
  var _keylessItemComponentName = '';
6827
- /**
6828
- * Default Props Helper Functions
6829
- * Use the following helper functions for default values
6830
- */
6831
-
6832
- // horizontalOrDefault(this.props.horizontal)
6833
6694
  function horizontalOrDefault(horizontal) {
6834
6695
  return horizontal != null ? horizontal : false;
6835
6696
  }
6836
-
6837
- // initialNumToRenderOrDefault(this.props.initialNumToRender)
6838
6697
  function initialNumToRenderOrDefault(initialNumToRender) {
6839
6698
  return initialNumToRender != null ? initialNumToRender : 10;
6840
6699
  }
6841
-
6842
- // maxToRenderPerBatchOrDefault(this.props.maxToRenderPerBatch)
6843
6700
  function maxToRenderPerBatchOrDefault(maxToRenderPerBatch) {
6844
6701
  return maxToRenderPerBatch != null ? maxToRenderPerBatch : 10;
6845
6702
  }
6846
-
6847
- // onStartReachedThresholdOrDefault(this.props.onStartReachedThreshold)
6848
6703
  function onStartReachedThresholdOrDefault(onStartReachedThreshold) {
6849
6704
  return onStartReachedThreshold != null ? onStartReachedThreshold : 2;
6850
6705
  }
6851
-
6852
- // onEndReachedThresholdOrDefault(this.props.onEndReachedThreshold)
6853
6706
  function onEndReachedThresholdOrDefault(onEndReachedThreshold) {
6854
6707
  return onEndReachedThreshold != null ? onEndReachedThreshold : 2;
6855
6708
  }
6856
-
6857
- // getScrollingThreshold(visibleLength, onEndReachedThreshold)
6858
6709
  function getScrollingThreshold(threshold, visibleLength) {
6859
6710
  return threshold * visibleLength / 2;
6860
6711
  }
6861
-
6862
- // scrollEventThrottleOrDefault(this.props.scrollEventThrottle)
6863
6712
  function scrollEventThrottleOrDefault(scrollEventThrottle) {
6864
6713
  return scrollEventThrottle != null ? scrollEventThrottle : 50;
6865
6714
  }
6866
-
6867
- // windowSizeOrDefault(this.props.windowSize)
6868
6715
  function windowSizeOrDefault(windowSize) {
6869
6716
  return windowSize != null ? windowSize : 21;
6870
6717
  }
@@ -6876,47 +6723,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6876
6723
  }
6877
6724
  return null;
6878
6725
  }
6879
-
6880
- /**
6881
- * Base implementation for the more convenient [`<FlatList>`](https://reactnative.dev/docs/flatlist)
6882
- * and [`<SectionList>`](https://reactnative.dev/docs/sectionlist) components, which are also better
6883
- * documented. In general, this should only really be used if you need more flexibility than
6884
- * `FlatList` provides, e.g. for use with immutable data instead of plain arrays.
6885
- *
6886
- * Virtualization massively improves memory consumption and performance of large lists by
6887
- * maintaining a finite render window of active items and replacing all items outside of the render
6888
- * window with appropriately sized blank space. The window adapts to scrolling behavior, and items
6889
- * are rendered incrementally with low-pri (after any running interactions) if they are far from the
6890
- * visible area, or with hi-pri otherwise to minimize the potential of seeing blank space.
6891
- *
6892
- * Some caveats:
6893
- *
6894
- * - Internal state is not preserved when content scrolls out of the render window. Make sure all
6895
- * your data is captured in the item data or external stores like Flux, Redux, or Relay.
6896
- * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-
6897
- * equal. Make sure that everything your `renderItem` function depends on is passed as a prop
6898
- * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on
6899
- * changes. This includes the `data` prop and parent component state.
6900
- * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously
6901
- * offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see
6902
- * blank content. This is a tradeoff that can be adjusted to suit the needs of each application,
6903
- * and we are working on improving it behind the scenes.
6904
- * - By default, the list looks for a `key` or `id` prop on each item and uses that for the React key.
6905
- * Alternatively, you can provide a custom `keyExtractor` prop.
6906
- * - As an effort to remove defaultProps, use helper functions when referencing certain props
6907
- *
6908
- */
6909
6726
  var VirtualizedList = /*#__PURE__*/function (_StateSafePureCompone) {
6910
6727
  function VirtualizedList(_props) {
6911
6728
  var _this$props$updateCel, _this$props$maintainV, _this$props$maintainV2;
6912
6729
  var _this;
6913
6730
  (0, _classCallCheck2.default)(this, VirtualizedList);
6914
6731
  _this = _callSuper(this, VirtualizedList, [_props]);
6915
- // $FlowFixMe[missing-local-annot]
6916
6732
  _this._getScrollMetrics = function () {
6917
6733
  return _this._scrollMetrics;
6918
6734
  };
6919
- // $FlowFixMe[missing-local-annot]
6920
6735
  _this._getOutermostParentListRef = function () {
6921
6736
  if (_this._isNestedWithSameOrientation()) {
6922
6737
  return _this.context.getOutermostParentListRef();
@@ -6946,21 +6761,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6946
6761
  _this._cellRefs = {};
6947
6762
  _this._frames = {};
6948
6763
  _this._footerLength = 0;
6949
- // Used for preventing scrollToIndex from being called multiple times for initialScrollIndex
6950
6764
  _this._hasTriggeredInitialScrollToIndex = false;
6951
6765
  _this._hasInteracted = false;
6952
6766
  _this._hasMore = false;
6953
6767
  _this._hasWarned = {};
6954
6768
  _this._headerLength = 0;
6955
6769
  _this._hiPriInProgress = false;
6956
- // flag to prevent infinite hiPri cell limit update
6957
6770
  _this._highestMeasuredFrameIndex = 0;
6958
6771
  _this._indicesToKeys = new Map();
6959
6772
  _this._lastFocusedCellKey = null;
6960
6773
  _this._nestedChildLists = new _ChildListCollection.default();
6961
6774
  _this._offsetFromParentVirtualizedList = 0;
6962
6775
  _this._prevParentOffset = 0;
6963
- // $FlowFixMe[missing-local-annot]
6964
6776
  _this._scrollMetrics = {
6965
6777
  contentLength: 0,
6966
6778
  dOffset: 0,
@@ -6977,38 +6789,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
6977
6789
  _this._totalCellLength = 0;
6978
6790
  _this._totalCellsMeasured = 0;
6979
6791
  _this._viewabilityTuples = [];
6980
- /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
6981
- * LTI update could not be added via codemod */
6982
6792
  _this._captureScrollRef = function (ref) {
6983
6793
  _this._scrollRef = ref;
6984
6794
  };
6985
- /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
6986
- * LTI update could not be added via codemod */
6987
6795
  _this._defaultRenderScrollComponent = function (props) {
6988
6796
  var onRefresh = props.onRefresh;
6989
6797
  if (_this._isNestedWithSameOrientation()) {
6990
- // $FlowFixMe[prop-missing] - Typing ReactNativeComponent revealed errors
6991
6798
  return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, Object.assign({}, props));
6992
6799
  } else if (onRefresh) {
6993
6800
  var _props$refreshing;
6994
6801
  (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') + '`');
6995
- return (
6996
- /*#__PURE__*/
6997
- // $FlowFixMe[prop-missing] Invalid prop usage
6998
- // $FlowFixMe[incompatible-use]
6999
- (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.ScrollView, Object.assign({}, props, {
7000
- refreshControl: props.refreshControl == null ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.RefreshControl
7001
- // $FlowFixMe[incompatible-type]
7002
- , {
7003
- refreshing: props.refreshing,
7004
- onRefresh: onRefresh,
7005
- progressViewOffset: props.progressViewOffset
7006
- }) : props.refreshControl
7007
- }))
7008
- );
6802
+ return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.ScrollView, Object.assign({}, props, {
6803
+ refreshControl: props.refreshControl == null ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.RefreshControl, {
6804
+ refreshing: props.refreshing,
6805
+ onRefresh: onRefresh,
6806
+ progressViewOffset: props.progressViewOffset
6807
+ }) : props.refreshControl
6808
+ }));
7009
6809
  } else {
7010
- // $FlowFixMe[prop-missing] Invalid prop usage
7011
- // $FlowFixMe[incompatible-use]
7012
6810
  return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.ScrollView, Object.assign({}, props));
7013
6811
  }
7014
6812
  };
@@ -7046,8 +6844,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7046
6844
  };
7047
6845
  _this._onLayout = function (e) {
7048
6846
  if (_this._isNestedWithSameOrientation()) {
7049
- // Need to adjust our scroll metrics to be relative to our containing
7050
- // VirtualizedList before we can make claims about list item viewability
7051
6847
  _this.measureLayoutRelativeToContainingList();
7052
6848
  } else {
7053
6849
  _this._scrollMetrics.visibleLength = _this._selectLength(e.nativeEvent.layout);
@@ -7092,13 +6888,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7092
6888
  _this._scheduleCellsToRenderUpdate();
7093
6889
  _this._maybeCallOnEdgeReached();
7094
6890
  };
7095
- /* Translates metrics from a scroll event in a parent VirtualizedList into
7096
- * coordinates relative to the child list.
7097
- */
7098
6891
  _this._convertParentScrollMetrics = function (metrics) {
7099
- // Offset of the top of the nested list relative to the top of its parent's viewport
7100
6892
  var offset = metrics.offset - _this._offsetFromParentVirtualizedList;
7101
- // Child's visible length is the same as its parent's
7102
6893
  var visibleLength = metrics.visibleLength;
7103
6894
  var dOffset = offset - _this._scrollMetrics.offset;
7104
6895
  var contentLength = _this._scrollMetrics.contentLength;
@@ -7123,8 +6914,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7123
6914
  var dOffset = offset - _this._scrollMetrics.offset;
7124
6915
  if (_this._isNestedWithSameOrientation()) {
7125
6916
  if (_this._scrollMetrics.contentLength === 0) {
7126
- // Ignore scroll events until onLayout has been called and we
7127
- // know our offset from our offset from our parent
7128
6917
  return;
7129
6918
  }
7130
6919
  var _this$_convertParentS = _this._convertParentScrollMetrics({
@@ -7146,8 +6935,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7146
6935
  });
7147
6936
  _this._hasWarned.perf = true;
7148
6937
  }
7149
-
7150
- // For invalid negative values (w/ RTL), set this to 1.
7151
6938
  var zoomScale = e.nativeEvent.zoomScale < 0 ? 1 : e.nativeEvent.zoomScale;
7152
6939
  _this._scrollMetrics = {
7153
6940
  contentLength: contentLength,
@@ -7226,9 +7013,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7226
7013
  };
7227
7014
  });
7228
7015
  };
7229
- _this._createViewToken = function (index, isViewable, props
7230
- // $FlowFixMe[missing-local-annot]
7231
- ) {
7016
+ _this._createViewToken = function (index, isViewable, props) {
7232
7017
  var data = props.data,
7233
7018
  getItem = props.getItem;
7234
7019
  var item = getItem(data, index);
@@ -7239,10 +7024,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7239
7024
  isViewable: isViewable
7240
7025
  };
7241
7026
  };
7242
- /**
7243
- * Gets an approximate offset to an item at a given index. Supports
7244
- * fractional indices.
7245
- */
7246
7027
  _this._getOffsetApprox = function (index, props) {
7247
7028
  if (Number.isInteger(index)) {
7248
7029
  return _this.__getFrameMetricsApprox(index, props).offset;
@@ -7255,7 +7036,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7255
7036
  _this.__getFrameMetricsApprox = function (index, props) {
7256
7037
  var frame = _this._getFrameMetrics(index, props);
7257
7038
  if (frame && frame.index === index) {
7258
- // check for invalid frames due to row re-ordering
7259
7039
  return frame;
7260
7040
  } else {
7261
7041
  var data = props.data,
@@ -7277,27 +7057,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7277
7057
  var frame = _this._frames[VirtualizedList._getItemKey(props, index)];
7278
7058
  if (!frame || frame.index !== index) {
7279
7059
  if (getItemLayout) {
7280
- /* $FlowFixMe[prop-missing] (>=0.63.0 site=react_native_fb) This comment
7281
- * suppresses an error found when Flow v0.63 was deployed. To see the error
7282
- * delete this comment and run Flow. */
7283
7060
  return getItemLayout(data, index);
7284
7061
  }
7285
7062
  }
7286
7063
  return frame;
7287
7064
  };
7288
7065
  _this._getNonViewportRenderRegions = function (props) {
7289
- // Keep a viewport's worth of content around the last focused cell to allow
7290
- // random navigation around it without any blanking. E.g. tabbing from one
7291
- // focused item out of viewport to another.
7292
7066
  if (!(_this._lastFocusedCellKey && _this._cellRefs[_this._lastFocusedCellKey])) {
7293
7067
  return [];
7294
7068
  }
7295
7069
  var lastFocusedCellRenderer = _this._cellRefs[_this._lastFocusedCellKey];
7296
7070
  var focusedCellIndex = lastFocusedCellRenderer.props.index;
7297
7071
  var itemCount = props.getItemCount(props.data);
7298
-
7299
- // The last cell we rendered may be at a new index. Bail if we don't know
7300
- // where it is.
7301
7072
  if (focusedCellIndex >= itemCount || VirtualizedList._getItemKey(props, focusedCellIndex) !== _this._lastFocusedCellKey) {
7302
7073
  return [];
7303
7074
  }
@@ -7345,9 +7116,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7345
7116
  cellsAroundViewport: initialRenderRegion,
7346
7117
  renderMask: VirtualizedList._createRenderMask(_props, initialRenderRegion),
7347
7118
  firstVisibleItemKey: _this.props.getItemCount(_this.props.data) > minIndexForVisible ? VirtualizedList._getItemKey(_this.props, minIndexForVisible) : null,
7348
- // When we have a non-zero initialScrollIndex, we will receive a
7349
- // scroll event later so this will prevent the window from updating
7350
- // until we get a valid offset.
7351
7119
  pendingScrollUpdateCount: _this.props.initialScrollIndex != null && _this.props.initialScrollIndex > 0 ? 1 : 0
7352
7120
  };
7353
7121
  return _this;
@@ -7355,9 +7123,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7355
7123
  (0, _inherits2.default)(VirtualizedList, _StateSafePureCompone);
7356
7124
  return (0, _createClass2.default)(VirtualizedList, [{
7357
7125
  key: "scrollToEnd",
7358
- value:
7359
- // scrollToEnd may be janky without getItemLayout prop
7360
- function scrollToEnd(params) {
7126
+ value: function scrollToEnd(params) {
7361
7127
  var animated = params ? params.animated : true;
7362
7128
  var veryLast = this.props.getItemCount(this.props.data) - 1;
7363
7129
  if (veryLast < 0) {
@@ -7380,8 +7146,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7380
7146
  animated: animated
7381
7147
  });
7382
7148
  }
7383
-
7384
- // scrollToIndex may be janky without getItemLayout prop
7385
7149
  }, {
7386
7150
  key: "scrollToIndex",
7387
7151
  value: function scrollToIndex(params) {
@@ -7424,9 +7188,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7424
7188
  animated: animated
7425
7189
  });
7426
7190
  }
7427
-
7428
- // scrollToItem may be janky without getItemLayout prop. Required linear scan through items -
7429
- // use scrollToIndex instead if possible.
7430
7191
  }, {
7431
7192
  key: "scrollToItem",
7432
7193
  value: function scrollToItem(params) {
@@ -7445,17 +7206,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7445
7206
  }
7446
7207
  }
7447
7208
  }
7448
-
7449
- /**
7450
- * Scroll to a specific content pixel offset in the list.
7451
- *
7452
- * Param `offset` expects the offset to scroll to.
7453
- * In case of `horizontal` is true, the offset is the x-value,
7454
- * in any other case the offset is the y-value.
7455
- *
7456
- * Param `animated` (`true` by default) defines whether the list
7457
- * should do an animation while scrolling.
7458
- */
7459
7209
  }, {
7460
7210
  key: "scrollToOffset",
7461
7211
  value: function scrollToOffset(params) {
@@ -7495,12 +7245,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7495
7245
  }
7496
7246
  this._scrollRef.flashScrollIndicators();
7497
7247
  }
7498
-
7499
- /**
7500
- * Provides a handle to the underlying scroll responder.
7501
- * Note that `this._scrollRef` might not be a `ScrollView`, so we
7502
- * need to check that it responds to `getScrollResponder` before calling it.
7503
- */
7504
7248
  }, {
7505
7249
  key: "getScrollResponder",
7506
7250
  value: function getScrollResponder() {
@@ -7552,9 +7296,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7552
7296
  getItemCount = props.getItemCount,
7553
7297
  data = props.data,
7554
7298
  initialScrollIndex = props.initialScrollIndex;
7555
- (0, _invariant.default)(
7556
- // $FlowFixMe[prop-missing]
7557
- !onScroll || !onScroll.__isNative, "Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver");
7299
+ (0, _invariant.default)(!onScroll || !onScroll.__isNative, "Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver");
7558
7300
  (0, _invariant.default)(windowSizeOrDefault(windowSize) > 0, 'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.');
7559
7301
  (0, _invariant.default)(getItemCount, 'VirtualizedList: The "getItemCount" prop must be provided');
7560
7302
  var itemCount = getItemCount(data);
@@ -7574,9 +7316,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7574
7316
  offset = _this$_scrollMetrics.offset,
7575
7317
  visibleLength = _this$_scrollMetrics.visibleLength;
7576
7318
  var distanceFromEnd = contentLength - visibleLength - offset;
7577
-
7578
- // Wait until the scroll view metrics have been set up. And until then,
7579
- // we will trust the initialNumToRender suggestion
7580
7319
  if (visibleLength <= 0 || contentLength <= 0) {
7581
7320
  return cellsAroundViewport.last >= getItemCount(data) ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props) : cellsAroundViewport;
7582
7321
  }
@@ -7588,8 +7327,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7588
7327
  last: Math.min(cellsAroundViewport.last + renderAhead, getItemCount(data) - 1)
7589
7328
  };
7590
7329
  } else {
7591
- // If we have a pending scroll update, we should not adjust the render window as it
7592
- // might override the correct window.
7593
7330
  if (pendingScrollUpdateCount > 0) {
7594
7331
  return cellsAroundViewport.last >= getItemCount(data) ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props) : cellsAroundViewport;
7595
7332
  }
@@ -7597,12 +7334,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7597
7334
  (0, _invariant.default)(newCellsAroundViewport.last < getItemCount(data), 'computeWindowedRenderLimits() should return range in-bounds');
7598
7335
  }
7599
7336
  if (this._nestedChildLists.size() > 0) {
7600
- // If some cell in the new state has a child list in it, we should only render
7601
- // up through that item, so that we give that list a chance to render.
7602
- // Otherwise there's churn from multiple child lists mounting and un-mounting
7603
- // their items.
7604
-
7605
- // Will this prevent rendering if the nested list doesn't realize the end?
7606
7337
  var childIdx = this._findFirstChildWithMore(newCellsAroundViewport.first, newCellsAroundViewport.last);
7607
7338
  newCellsAroundViewport.last = childIdx != null ? childIdx : newCellsAroundViewport.last;
7608
7339
  }
@@ -7725,42 +7456,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7725
7456
  var cells = [];
7726
7457
  var stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices);
7727
7458
  var stickyHeaderIndices = [];
7728
-
7729
- // 1. Add cell for ListHeaderComponent
7730
7459
  if (ListHeaderComponent) {
7731
7460
  if (stickyIndicesFromProps.has(0)) {
7732
7461
  stickyHeaderIndices.push(0);
7733
7462
  }
7734
- var _element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent :
7735
- /*#__PURE__*/
7736
- // $FlowFixMe[not-a-component]
7737
- // $FlowFixMe[incompatible-type-arg]
7738
- (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListHeaderComponent, {});
7463
+ var _element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListHeaderComponent, {});
7739
7464
  cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VirtualizedListCellContextProvider, {
7740
7465
  cellKey: this._getCellKey() + '-header',
7741
- children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View
7742
- // We expect that header component will be a single native view so make it
7743
- // not collapsable to avoid this view being flattened and make this assumption
7744
- // no longer true.
7745
- , {
7466
+ children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, {
7746
7467
  collapsable: false,
7747
7468
  onLayout: this._onLayoutHeader,
7748
7469
  style: _reactNative.StyleSheet.compose(inversionStyle, this.props.ListHeaderComponentStyle),
7749
- children:
7750
- // $FlowFixMe[incompatible-type] - Typing ReactNativeComponent revealed errors
7751
- _element
7470
+ children: _element
7752
7471
  })
7753
7472
  }, "$header"));
7754
7473
  }
7755
-
7756
- // 2a. Add a cell for ListEmptyComponent if applicable
7757
7474
  var itemCount = this.props.getItemCount(data);
7758
7475
  if (itemCount === 0 && ListEmptyComponent) {
7759
- var _element2 = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent :
7760
- /*#__PURE__*/
7761
- // $FlowFixMe[not-a-component]
7762
- // $FlowFixMe[incompatible-type-arg]
7763
- (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListEmptyComponent, {});
7476
+ var _element2 = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListEmptyComponent, {});
7764
7477
  cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VirtualizedListCellContextProvider, {
7765
7478
  cellKey: this._getCellKey() + '-empty',
7766
7479
  children: React.cloneElement(_element2, {
@@ -7774,8 +7487,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7774
7487
  })
7775
7488
  }, "$empty"));
7776
7489
  }
7777
-
7778
- // 2b. Add cells and spacers for each item
7779
7490
  if (itemCount > 0) {
7780
7491
  _usedIndexForKey = false;
7781
7492
  _keylessItemComponentName = '';
@@ -7786,15 +7497,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7786
7497
  });
7787
7498
  for (var section of renderRegions) {
7788
7499
  if (section.isSpacer) {
7789
- // Legacy behavior is to avoid spacers when virtualization is
7790
- // disabled (including head spacers on initial render).
7791
7500
  if (this.props.disableVirtualization) {
7792
7501
  continue;
7793
7502
  }
7794
-
7795
- // Without getItemLayout, we limit our tail spacer to the _highestMeasuredFrameIndex to
7796
- // prevent the user for hyperscrolling into un-measured area because otherwise content will
7797
- // likely jump around as it renders in above the viewport.
7798
7503
  var isLastSpacer = section === lastSpacer;
7799
7504
  var constrainToMeasured = isLastSpacer && !this.props.getItemLayout;
7800
7505
  var last = constrainToMeasured ? (0, _clamp.default)(section.first - 1, section.last, this._highestMeasuredFrameIndex) : section.last;
@@ -7813,27 +7518,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7813
7518
  this._hasWarned.keys = true;
7814
7519
  }
7815
7520
  }
7816
-
7817
- // 3. Add cell for ListFooterComponent
7818
7521
  if (ListFooterComponent) {
7819
- var _element3 = React.isValidElement(ListFooterComponent) ? ListFooterComponent :
7820
- /*#__PURE__*/
7821
- // $FlowFixMe[not-a-component]
7822
- // $FlowFixMe[incompatible-type-arg]
7823
- (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListFooterComponent, {});
7522
+ var _element3 = React.isValidElement(ListFooterComponent) ? ListFooterComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListFooterComponent, {});
7824
7523
  cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VirtualizedListCellContextProvider, {
7825
7524
  cellKey: this._getFooterCellKey(),
7826
7525
  children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, {
7827
7526
  onLayout: this._onLayoutFooter,
7828
7527
  style: _reactNative.StyleSheet.compose(inversionStyle, this.props.ListFooterComponentStyle),
7829
- children:
7830
- // $FlowFixMe[incompatible-type] - Typing ReactNativeComponent revealed errors
7831
- _element3
7528
+ children: _element3
7832
7529
  })
7833
7530
  }, "$footer"));
7834
7531
  }
7835
-
7836
- // 4. Render the ScrollView
7837
7532
  var scrollProps = Object.assign({}, this.props, {
7838
7533
  onContentSizeChange: this._onContentSizeChange,
7839
7534
  onLayout: this._onLayout,
@@ -7843,13 +7538,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7843
7538
  onMomentumScrollBegin: this._onMomentumScrollBegin,
7844
7539
  onMomentumScrollEnd: this._onMomentumScrollEnd,
7845
7540
  scrollEventThrottle: scrollEventThrottleOrDefault(this.props.scrollEventThrottle),
7846
- // TODO: Android support
7847
7541
  invertStickyHeaders: this.props.invertStickyHeaders !== undefined ? this.props.invertStickyHeaders : this.props.inverted,
7848
7542
  stickyHeaderIndices: stickyHeaderIndices,
7849
7543
  style: inversionStyle ? [inversionStyle, this.props.style] : this.props.style,
7850
7544
  isInvertedVirtualizedList: this.props.inverted,
7851
7545
  maintainVisibleContentPosition: this.props.maintainVisibleContentPosition != null ? Object.assign({}, this.props.maintainVisibleContentPosition, {
7852
- // Adjust index to account for ListHeaderComponent.
7853
7546
  minIndexForVisible: this.props.maintainVisibleContentPosition.minIndexForVisible + (this.props.ListHeaderComponent ? 1 : 0)
7854
7547
  }) : undefined
7855
7548
  });
@@ -7884,22 +7577,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7884
7577
  data = _this$props7.data,
7885
7578
  extraData = _this$props7.extraData;
7886
7579
  if (data !== prevProps.data || extraData !== prevProps.extraData) {
7887
- // clear the viewableIndices cache to also trigger
7888
- // the onViewableItemsChanged callback with the new data
7889
7580
  this._viewabilityTuples.forEach(function (tuple) {
7890
7581
  tuple.viewabilityHelper.resetViewableIndices();
7891
7582
  });
7892
7583
  }
7893
- // The `this._hiPriInProgress` is guaranteeing a hiPri cell update will only happen
7894
- // once per fiber update. The `_scheduleCellsToRenderUpdate` will set it to true
7895
- // if a hiPri update needs to perform. If `componentDidUpdate` is triggered with
7896
- // `this._hiPriInProgress=true`, means it's triggered by the hiPri update. The
7897
- // `_scheduleCellsToRenderUpdate` will check this condition and not perform
7898
- // another hiPri update.
7899
7584
  var hiPriInProgress = this._hiPriInProgress;
7900
7585
  this._scheduleCellsToRenderUpdate();
7901
- // Make sure setting `this._hiPriInProgress` back to false after `componentDidUpdate`
7902
- // is triggered with `this._hiPriInProgress = true`
7903
7586
  if (hiPriInProgress) {
7904
7587
  this._hiPriInProgress = false;
7905
7588
  }
@@ -7926,14 +7609,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7926
7609
  key: "measureLayoutRelativeToContainingList",
7927
7610
  value: function measureLayoutRelativeToContainingList() {
7928
7611
  var _this4 = this;
7929
- // TODO (T35574538): findNodeHandle sometimes crashes with "Unable to find
7930
- // node on an unmounted component" during scrolling
7931
7612
  try {
7932
7613
  if (!this._scrollRef) {
7933
7614
  return;
7934
7615
  }
7935
- // We are assuming that getOutermostParentListRef().getScrollRef()
7936
- // is a non-null reference to a ScrollView
7937
7616
  this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(), function (x, y, width, height) {
7938
7617
  _this4._offsetFromParentVirtualizedList = _this4._selectOffset({
7939
7618
  x: x,
@@ -7948,9 +7627,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7948
7627
  if (metricsChanged) {
7949
7628
  _this4._scrollMetrics.visibleLength = scrollMetrics.visibleLength;
7950
7629
  _this4._scrollMetrics.offset = scrollMetrics.offset;
7951
-
7952
- // If metrics of the scrollView changed, then we triggered remeasure for child list
7953
- // to ensure VirtualizedList has the right information.
7954
7630
  _this4._nestedChildLists.forEach(function (childList) {
7955
7631
  childList.measureLayoutRelativeToContainingList();
7956
7632
  });
@@ -7969,17 +7645,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
7969
7645
  }
7970
7646
  }, {
7971
7647
  key: "_renderDebugOverlay",
7972
- value:
7973
- // $FlowFixMe[missing-local-annot]
7974
- function _renderDebugOverlay() {
7648
+ value: function _renderDebugOverlay() {
7975
7649
  var normalize = this._scrollMetrics.visibleLength / (this._scrollMetrics.contentLength || 1);
7976
7650
  var framesInLayout = [];
7977
7651
  var itemCount = this.props.getItemCount(this.props.data);
7978
7652
  for (var ii = 0; ii < itemCount; ii++) {
7979
7653
  var frame = this.__getFrameMetricsApprox(ii, this.props);
7980
- /* $FlowFixMe[prop-missing] (>=0.68.0 site=react_native_fb) This comment
7981
- * suppresses an error found when Flow v0.68 was deployed. To see the
7982
- * error delete this comment and run Flow. */
7983
7654
  if (frame.inLayout) {
7984
7655
  framesInLayout.push(frame);
7985
7656
  }
@@ -8031,8 +7702,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8031
7702
  onStartReachedThreshold = _this$props8.onStartReachedThreshold,
8032
7703
  onEndReached = _this$props8.onEndReached,
8033
7704
  onEndReachedThreshold = _this$props8.onEndReachedThreshold;
8034
- // If we have any pending scroll updates it means that the scroll metrics
8035
- // are out of date and we should not call any of the edge reached callbacks.
8036
7705
  if (this.state.pendingScrollUpdateCount > 0) {
8037
7706
  return;
8038
7707
  }
@@ -8042,48 +7711,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8042
7711
  offset = _this$_scrollMetrics2.offset;
8043
7712
  var distanceFromStart = offset;
8044
7713
  var distanceFromEnd = contentLength - visibleLength - offset;
8045
-
8046
- // Especially when oERT is zero it's necessary to 'floor' very small distance values to be 0
8047
- // since debouncing causes us to not fire this event for every single "pixel" we scroll and can thus
8048
- // be at the edge of the list with a distance approximating 0 but not quite there.
8049
7714
  if (distanceFromStart < ON_EDGE_REACHED_EPSILON) {
8050
7715
  distanceFromStart = 0;
8051
7716
  }
8052
7717
  if (distanceFromEnd < ON_EDGE_REACHED_EPSILON) {
8053
7718
  distanceFromEnd = 0;
8054
7719
  }
8055
-
8056
- // TODO: T121172172 Look into why we're "defaulting" to a threshold of 2px
8057
- // when oERT is not present (different from 2 viewports used elsewhere)
8058
7720
  var DEFAULT_THRESHOLD_PX = 2;
8059
7721
  var startThreshold = onStartReachedThreshold != null ? onStartReachedThreshold * visibleLength : DEFAULT_THRESHOLD_PX;
8060
7722
  var endThreshold = onEndReachedThreshold != null ? onEndReachedThreshold * visibleLength : DEFAULT_THRESHOLD_PX;
8061
7723
  var isWithinStartThreshold = distanceFromStart <= startThreshold;
8062
7724
  var isWithinEndThreshold = distanceFromEnd <= endThreshold;
8063
-
8064
- // First check if the user just scrolled within the end threshold
8065
- // and call onEndReached only once for a given content length,
8066
- // and only if onStartReached is not being executed
8067
7725
  if (onEndReached && this.state.cellsAroundViewport.last === getItemCount(data) - 1 && isWithinEndThreshold && this._scrollMetrics.contentLength !== this._sentEndForContentLength) {
8068
7726
  this._sentEndForContentLength = this._scrollMetrics.contentLength;
8069
7727
  onEndReached({
8070
7728
  distanceFromEnd: distanceFromEnd
8071
7729
  });
8072
- }
8073
-
8074
- // Next check if the user just scrolled within the start threshold
8075
- // and call onStartReached only once for a given content length,
8076
- // and only if onEndReached is not being executed
8077
- else if (onStartReached != null && this.state.cellsAroundViewport.first === 0 && isWithinStartThreshold && this._scrollMetrics.contentLength !== this._sentStartForContentLength) {
7730
+ } else if (onStartReached != null && this.state.cellsAroundViewport.first === 0 && isWithinStartThreshold && this._scrollMetrics.contentLength !== this._sentStartForContentLength) {
8078
7731
  this._sentStartForContentLength = this._scrollMetrics.contentLength;
8079
7732
  onStartReached({
8080
7733
  distanceFromStart: distanceFromStart
8081
7734
  });
8082
- }
8083
-
8084
- // If the user scrolls away from the start or end and back again,
8085
- // cause onStartReached or onEndReached to be triggered again
8086
- else {
7735
+ } else {
8087
7736
  this._sentStartForContentLength = isWithinStartThreshold ? this._sentStartForContentLength : 0;
8088
7737
  this._sentEndForContentLength = isWithinEndThreshold ? this._sentEndForContentLength : 0;
8089
7738
  }
@@ -8102,29 +7751,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8102
7751
  var hiPri = false;
8103
7752
  var onStartReachedThreshold = onStartReachedThresholdOrDefault(this.props.onStartReachedThreshold);
8104
7753
  var onEndReachedThreshold = onEndReachedThresholdOrDefault(this.props.onEndReachedThreshold);
8105
- // Mark as high priority if we're close to the start of the first item
8106
- // But only if there are items before the first rendered item
8107
7754
  if (first > 0) {
8108
7755
  var distTop = offset - this.__getFrameMetricsApprox(first, this.props).offset;
8109
7756
  hiPri = distTop < 0 || velocity < -2 && distTop < getScrollingThreshold(onStartReachedThreshold, visibleLength);
8110
7757
  }
8111
- // Mark as high priority if we're close to the end of the last item
8112
- // But only if there are items after the last rendered item
8113
7758
  if (!hiPri && last >= 0 && last < itemCount - 1) {
8114
7759
  var distBottom = this.__getFrameMetricsApprox(last, this.props).offset - (offset + visibleLength);
8115
7760
  hiPri = distBottom < 0 || velocity > 2 && distBottom < getScrollingThreshold(onEndReachedThreshold, visibleLength);
8116
7761
  }
8117
- // Only trigger high-priority updates if we've actually rendered cells,
8118
- // and with that size estimate, accurately compute how many cells we should render.
8119
- // Otherwise, it would just render as many cells as it can (of zero dimension),
8120
- // each time through attempting to render more (limited by maxToRenderPerBatch),
8121
- // starving the renderer from actually laying out the objects and computing _averageCellLength.
8122
- // If this is triggered in an `componentDidUpdate` followed by a hiPri cellToRenderUpdate
8123
- // We shouldn't do another hipri cellToRenderUpdate
8124
7762
  if (hiPri && (this._averageCellLength || this.props.getItemLayout) && !this._hiPriInProgress) {
8125
7763
  this._hiPriInProgress = true;
8126
- // Don't worry about interactions when scrolling quickly; focus on filling content as fast
8127
- // as possible.
8128
7764
  this._updateCellsToRenderBatcher.dispose({
8129
7765
  abort: true
8130
7766
  });
@@ -8138,8 +7774,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8138
7774
  key: "_updateViewableItems",
8139
7775
  value: function _updateViewableItems(props, cellsAroundViewport) {
8140
7776
  var _this5 = this;
8141
- // If we have any pending scroll updates it means that the scroll metrics
8142
- // are out of date and we should not call any of the visibility callbacks.
8143
7777
  if (this.state.pendingScrollUpdateCount > 0) {
8144
7778
  return;
8145
7779
  }
@@ -8182,17 +7816,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8182
7816
  for (var region of allRegions) {
8183
7817
  renderMask.addCells(region);
8184
7818
  }
8185
-
8186
- // The initially rendered cells are retained as part of the
8187
- // "scroll-to-top" optimization
8188
7819
  if (props.initialScrollIndex == null || props.initialScrollIndex <= 0) {
8189
7820
  var initialRegion = VirtualizedList._initialRenderRegion(props);
8190
7821
  renderMask.addCells(initialRegion);
8191
7822
  }
8192
-
8193
- // The layout coordinates of sticker headers may be off-screen while the
8194
- // actual header is on-screen. Keep the most recent before the viewport
8195
- // rendered, even if its layout coordinates are not in viewport.
8196
7823
  var stickyIndicesSet = new Set(props.stickyHeaderIndices);
8197
7824
  VirtualizedList._ensureClosestStickyHeader(props, stickyIndicesSet, renderMask, cellsAroundViewport.first);
8198
7825
  }
@@ -8228,8 +7855,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8228
7855
  key: "getDerivedStateFromProps",
8229
7856
  value: function getDerivedStateFromProps(newProps, prevState) {
8230
7857
  var _newProps$maintainVis, _newProps$maintainVis2;
8231
- // first and last could be stale (e.g. if a new, shorter items props is passed in), so we make
8232
- // sure we're rendering a reasonable range here.
8233
7858
  var itemCount = newProps.getItemCount(newProps.data);
8234
7859
  if (itemCount === prevState.renderMask.numCells()) {
8235
7860
  return prevState;
@@ -8240,7 +7865,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8240
7865
  var newFirstVisibleItemKey = newProps.getItemCount(newProps.data) > minIndexForVisible ? VirtualizedList._getItemKey(newProps, minIndexForVisible) : null;
8241
7866
  if (newProps.maintainVisibleContentPosition != null && prevFirstVisibleItemKey != null && newFirstVisibleItemKey != null) {
8242
7867
  if (newFirstVisibleItemKey !== prevFirstVisibleItemKey) {
8243
- // Fast path if items were added at the start of the list.
8244
7868
  var hint = itemCount - prevState.renderMask.numCells() + minIndexForVisible;
8245
7869
  var firstVisibleItemIndex = VirtualizedList._findItemIndexWithKey(newProps, prevFirstVisibleItemKey, hint);
8246
7870
  maintainVisibleContentPositionAdjustment = firstVisibleItemIndex != null ? firstVisibleItemIndex - minIndexForVisible : null;
@@ -8333,57 +7957,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8333
7957
  }
8334
7958
  });
8335
7959
  module.exports = VirtualizedList;
8336
- },"c4b46015e44050527820",["e13c8413f9a5de8e772f","c8d9faa50529497e8550","f08cf7e9c32002e6bb9e","7ba3d97b9a1c7b5d2869","51a05661f80df8a7ec74","1a2fe3e5fa067fc0a581","9f001f493a532727260d","106616352dc94f6a631a","26ef620f86acf7f6932a","1953ac0cbf7ac32b33d6","a30729068ebd0dea58f8","4fd7218f700134f011e9","718d6cdfb3fb081a232d","3e01a5bc929e85870fe5","04ffc79d4da370644bce","8bafab90a37cab64b100","ce5f423367f40f3628a8","fd099686726b2dfb6f66","afd4874b36ccd4e13961","6ed0e34da2b23bd3554f","048fed5a64a04bdb7fed","a26dbe2a3afa21c3cf22","e6b1ef1f5b720d640981","de5ab026f9499640d730"]);
7960
+ },"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"]);
8337
7961
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
8338
- /**
8339
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8340
- *
8341
- * This source code is licensed under the MIT license found in the
8342
- * LICENSE file in the root directory of this source tree.
8343
- *
8344
- * @format
8345
- *
8346
- */
8347
-
8348
7962
  'use strict';
8349
7963
 
8350
7964
  var _require = _$$_REQUIRE(_dependencyMap[0]),
8351
7965
  InteractionManager = _require.InteractionManager;
8352
-
8353
- /**
8354
- * A simple class for batching up invocations of a low-pri callback. A timeout is set to run the
8355
- * callback once after a delay, no matter how many times it's scheduled. Once the delay is reached,
8356
- * InteractionManager.runAfterInteractions is used to invoke the callback after any hi-pri
8357
- * interactions are done running.
8358
- *
8359
- * Make sure to cleanup with dispose(). Example:
8360
- *
8361
- * class Widget extends React.Component {
8362
- * _batchedSave: new Batchinator(() => this._saveState, 1000);
8363
- * _saveSate() {
8364
- * // save this.state to disk
8365
- * }
8366
- * componentDidUpdate() {
8367
- * this._batchedSave.schedule();
8368
- * }
8369
- * componentWillUnmount() {
8370
- * this._batchedSave.dispose();
8371
- * }
8372
- * ...
8373
- * }
8374
- */
8375
7966
  var Batchinator = /*#__PURE__*/function () {
8376
7967
  function Batchinator(callback, delayMS) {
8377
7968
  _$$_REQUIRE(_dependencyMap[1])(this, Batchinator);
8378
7969
  this._delay = delayMS;
8379
7970
  this._callback = callback;
8380
7971
  }
8381
- /*
8382
- * Cleanup any pending tasks.
8383
- *
8384
- * By default, if there is a pending task the callback is run immediately. Set the option abort to
8385
- * true to not call the callback if it was pending.
8386
- */
8387
7972
  return _$$_REQUIRE(_dependencyMap[2])(Batchinator, [{
8388
7973
  key: "dispose",
8389
7974
  value: function dispose() {
@@ -8407,8 +7992,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8407
7992
  }
8408
7993
  var timeoutHandle = setTimeout(function () {
8409
7994
  _this._taskHandle = InteractionManager.runAfterInteractions(function () {
8410
- // Note that we clear the handle before invoking the callback so that if the callback calls
8411
- // schedule again, it will actually schedule another task.
8412
7995
  _this._taskHandle = null;
8413
7996
  _this._callback();
8414
7997
  });
@@ -8422,18 +8005,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8422
8005
  }]);
8423
8006
  }();
8424
8007
  module.exports = Batchinator;
8425
- },"1953ac0cbf7ac32b33d6",["26ef620f86acf7f6932a","7ba3d97b9a1c7b5d2869","51a05661f80df8a7ec74"]);
8008
+ },"1953ac0cbf7ac32b33d6",["26ef620f86acf7f6932a","cb664999166f9660a878","68819e29ebee24bb0e88"]);
8426
8009
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
8427
- /**
8428
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8429
- *
8430
- * This source code is licensed under the MIT license found in the
8431
- * LICENSE file in the root directory of this source tree.
8432
- *
8433
- * @format
8434
- *
8435
- */
8436
-
8437
8010
  'use strict';
8438
8011
 
8439
8012
  function clamp(min, value, max) {
@@ -8448,21 +8021,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8448
8021
  module.exports = clamp;
8449
8022
  },"a30729068ebd0dea58f8",[]);
8450
8023
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
8451
- /**
8452
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8453
- *
8454
- * This source code is licensed under the MIT license found in the
8455
- * LICENSE file in the root directory of this source tree.
8456
- *
8457
- * @format
8458
- *
8459
- */
8460
-
8461
8024
  'use strict';
8462
8025
 
8463
- /**
8464
- * Intentional info-level logging for clear separation from ad-hoc console debug logging.
8465
- */
8466
8026
  function infoLog() {
8467
8027
  var _console;
8468
8028
  return (_console = console).log.apply(_console, arguments);
@@ -8477,15 +8037,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8477
8037
  var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
8478
8038
  var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
8479
8039
  var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3]));
8480
- /**
8481
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8482
- *
8483
- * This source code is licensed under the MIT license found in the
8484
- * LICENSE file in the root directory of this source tree.
8485
- *
8486
- *
8487
- * @format
8488
- */
8489
8040
  var ChildListCollection = exports.default = /*#__PURE__*/function () {
8490
8041
  function ChildListCollection() {
8491
8042
  (0, _classCallCheck2.default)(this, ChildListCollection);
@@ -8552,18 +8103,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8552
8103
  }
8553
8104
  }]);
8554
8105
  }();
8555
- },"718d6cdfb3fb081a232d",["e13c8413f9a5de8e772f","7ba3d97b9a1c7b5d2869","51a05661f80df8a7ec74","fd099686726b2dfb6f66"]);
8106
+ },"718d6cdfb3fb081a232d",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","fd099686726b2dfb6f66"]);
8556
8107
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
8557
- /**
8558
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8559
- *
8560
- * This source code is licensed under the MIT license found in the
8561
- * LICENSE file in the root directory of this source tree.
8562
- *
8563
- *
8564
- * @format
8565
- */
8566
-
8567
8108
  'use strict';
8568
8109
 
8569
8110
  var Info = /*#__PURE__*/_$$_REQUIRE(_dependencyMap[0])(function Info() {
@@ -8583,15 +8124,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8583
8124
  var _listeners = [];
8584
8125
  var _minSampleCount = 10;
8585
8126
  var _sampleRate = null;
8586
-
8587
- /**
8588
- * A helper class for detecting when the maximem fill rate of `VirtualizedList` is exceeded.
8589
- * By default the sampling rate is set to zero and this will do nothing. If you want to collect
8590
- * samples (e.g. to log them), make sure to call `FillRateHelper.setSampleRate(0.0-1.0)`.
8591
- *
8592
- * Listeners and sample rate are global for all `VirtualizedList`s - typical usage will combine with
8593
- * `SceneTracker.getActiveScene` to determine the context of the events.
8594
- */
8595
8127
  var FillRateHelper = /*#__PURE__*/function () {
8596
8128
  function FillRateHelper(getFrameMetrics) {
8597
8129
  _$$_REQUIRE(_dependencyMap[1])(this, FillRateHelper);
@@ -8618,13 +8150,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8618
8150
  if (!this._enabled) {
8619
8151
  return;
8620
8152
  }
8621
- var start = this._samplesStartTime; // const for flow
8153
+ var start = this._samplesStartTime;
8622
8154
  if (start == null) {
8623
8155
  DEBUG;
8624
8156
  return;
8625
8157
  }
8626
8158
  if (this._info.sample_count < _minSampleCount) {
8627
- // Don't bother with under-sampled events.
8628
8159
  this._resetData();
8629
8160
  return;
8630
8161
  }
@@ -8647,15 +8178,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8647
8178
  offset = scrollMetrics.offset,
8648
8179
  velocity = scrollMetrics.velocity,
8649
8180
  visibleLength = scrollMetrics.visibleLength;
8650
-
8651
- // Denominator metrics that we track for all events - most of the time there is no blankness and
8652
- // we want to capture that.
8653
8181
  this._info.sample_count++;
8654
8182
  this._info.pixels_sampled += Math.round(visibleLength);
8655
8183
  this._info.pixels_scrolled += Math.round(Math.abs(dOffset));
8656
- var scrollSpeed = Math.round(Math.abs(velocity) * 1000); // px / sec
8657
-
8658
- // Whether blank now or not, record the elapsed time blank if we were blank last time.
8184
+ var scrollSpeed = Math.round(Math.abs(velocity) * 1000);
8659
8185
  var now = global.performance.now();
8660
8186
  if (this._anyBlankStartTime != null) {
8661
8187
  this._info.any_blank_ms += now - this._anyBlankStartTime;
@@ -8672,8 +8198,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8672
8198
  firstFrame = this._getFrameMetrics(first, props);
8673
8199
  first++;
8674
8200
  }
8675
- // Only count blankTop if we aren't rendering the first item, otherwise we will count the header
8676
- // as blank.
8677
8201
  if (firstFrame && first > 0) {
8678
8202
  blankTop = Math.min(visibleLength, Math.max(0, firstFrame.offset - offset));
8679
8203
  }
@@ -8684,8 +8208,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8684
8208
  lastFrame = this._getFrameMetrics(last, props);
8685
8209
  last--;
8686
8210
  }
8687
- // Only count blankBottom if we aren't rendering the last item, otherwise we will count the
8688
- // footer as blank.
8689
8211
  if (lastFrame && last < props.getItemCount(props.data) - 1) {
8690
8212
  var bottomEdge = lastFrame.offset + lastFrame.length;
8691
8213
  blankBottom = Math.min(visibleLength, Math.max(0, offset + visibleLength - bottomEdge));
@@ -8747,7 +8269,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8747
8269
  }]);
8748
8270
  }();
8749
8271
  module.exports = FillRateHelper;
8750
- },"3e01a5bc929e85870fe5",["51a05661f80df8a7ec74","7ba3d97b9a1c7b5d2869"]);
8272
+ },"3e01a5bc929e85870fe5",["68819e29ebee24bb0e88","cb664999166f9660a878"]);
8751
8273
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
8752
8274
  Object.defineProperty(exports, "__esModule", {
8753
8275
  value: true
@@ -8761,28 +8283,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8761
8283
  var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6]));
8762
8284
  var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7]));
8763
8285
  var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8]));
8764
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
8765
- 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; }
8286
+ 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); }
8766
8287
  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)); }
8767
8288
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8768
- 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; } /**
8769
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8770
- *
8771
- * This source code is licensed under the MIT license found in the
8772
- * LICENSE file in the root directory of this source tree.
8773
- *
8774
- *
8775
- * @format
8776
- */
8777
- /**
8778
- * `setState` is called asynchronously, and should not rely on the value of
8779
- * `this.props` or `this.state`:
8780
- * https://reactjs.org/docs/state-and-lifecycle.html#state-updates-may-be-asynchronous
8781
- *
8782
- * SafePureComponent adds runtime enforcement, to catch cases where these
8783
- * variables are read in a state updater function, instead of the ones passed
8784
- * in.
8785
- */
8289
+ 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; }
8786
8290
  var StateSafePureComponent = exports.default = /*#__PURE__*/function (_React$PureComponent) {
8787
8291
  function StateSafePureComponent(props) {
8788
8292
  var _this;
@@ -8841,32 +8345,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8841
8345
  }
8842
8346
  }]);
8843
8347
  }(React.PureComponent);
8844
- },"04ffc79d4da370644bce",["e13c8413f9a5de8e772f","7ba3d97b9a1c7b5d2869","51a05661f80df8a7ec74","1a2fe3e5fa067fc0a581","9f001f493a532727260d","4b1a4e373780ac89a3a3","106616352dc94f6a631a","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f"]);
8348
+ },"04ffc79d4da370644bce",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","55062adb34159de0ea92","9822a58ca7726d551fe0","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f"]);
8845
8349
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
8846
- /**
8847
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8848
- *
8849
- * This source code is licensed under the MIT license found in the
8850
- * LICENSE file in the root directory of this source tree.
8851
- *
8852
- *
8853
- * @format
8854
- */
8855
-
8856
8350
  'use strict';
8857
8351
 
8858
- /**
8859
- * A Utility class for calculating viewable items based on current metrics like scroll position and
8860
- * layout.
8861
- *
8862
- * An item is said to be in a "viewable" state when any of the following
8863
- * is true for longer than `minimumViewTime` milliseconds (after an interaction if `waitForInteraction`
8864
- * is true):
8865
- *
8866
- * - Occupying >= `viewAreaCoveragePercentThreshold` of the view area XOR fraction of the item
8867
- * visible in the view area >= `itemVisiblePercentThreshold`.
8868
- * - Entirely visible on screen
8869
- */
8870
8352
  var ViewabilityHelper = /*#__PURE__*/function () {
8871
8353
  function ViewabilityHelper() {
8872
8354
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
@@ -8879,27 +8361,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8879
8361
  this._viewableItems = new Map();
8880
8362
  this._config = config;
8881
8363
  }
8882
-
8883
- /**
8884
- * Cleanup, e.g. on unmount. Clears any pending timers.
8885
- */
8886
8364
  return _$$_REQUIRE(_dependencyMap[1])(ViewabilityHelper, [{
8887
8365
  key: "dispose",
8888
8366
  value: function dispose() {
8889
- /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This
8890
- * comment suppresses an error found when Flow v0.63 was deployed. To see
8891
- * the error delete this comment and run Flow. */
8892
8367
  this._timers.forEach(clearTimeout);
8893
8368
  }
8894
-
8895
- /**
8896
- * Determines which items are viewable based on the current metrics and config.
8897
- */
8898
8369
  }, {
8899
8370
  key: "computeViewableItems",
8900
- value: function computeViewableItems(props, scrollOffset, viewportHeight, getFrameMetrics,
8901
- // Optional optimization to reduce the scan size
8902
- renderRange) {
8371
+ value: function computeViewableItems(props, scrollOffset, viewportHeight, getFrameMetrics, renderRange) {
8903
8372
  var itemCount = props.getItemCount(props.data);
8904
8373
  var _this$_config = this._config,
8905
8374
  itemVisiblePercentThreshold = _this$_config.itemVisiblePercentThreshold,
@@ -8943,16 +8412,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8943
8412
  }
8944
8413
  return viewableIndices;
8945
8414
  }
8946
-
8947
- /**
8948
- * Figures out which items are viewable and how that has changed from before and calls
8949
- * `onViewableItemsChanged` as appropriate.
8950
- */
8951
8415
  }, {
8952
8416
  key: "onUpdate",
8953
- value: function onUpdate(props, scrollOffset, viewportHeight, getFrameMetrics, createViewToken, onViewableItemsChanged,
8954
- // Optional optimization to reduce the scan size
8955
- renderRange) {
8417
+ value: function onUpdate(props, scrollOffset, viewportHeight, getFrameMetrics, createViewToken, onViewableItemsChanged, renderRange) {
8956
8418
  var _this = this;
8957
8419
  var itemCount = props.getItemCount(props.data);
8958
8420
  if (this._config.waitForInteraction && !this._hasInteracted || itemCount === 0 || !getFrameMetrics(0, props)) {
@@ -8965,40 +8427,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
8965
8427
  if (this._viewableIndices.length === viewableIndices.length && this._viewableIndices.every(function (v, ii) {
8966
8428
  return v === viewableIndices[ii];
8967
8429
  })) {
8968
- // We might get a lot of scroll events where visibility doesn't change and we don't want to do
8969
- // extra work in those cases.
8970
8430
  return;
8971
8431
  }
8972
8432
  this._viewableIndices = viewableIndices;
8973
8433
  if (this._config.minimumViewTime) {
8974
8434
  var handle = setTimeout(function () {
8975
- /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This
8976
- * comment suppresses an error found when Flow v0.63 was deployed. To
8977
- * see the error delete this comment and run Flow. */
8978
8435
  _this._timers.delete(handle);
8979
8436
  _this._onUpdateSync(props, viewableIndices, onViewableItemsChanged, createViewToken);
8980
8437
  }, this._config.minimumViewTime);
8981
- /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This
8982
- * comment suppresses an error found when Flow v0.63 was deployed. To see
8983
- * the error delete this comment and run Flow. */
8984
8438
  this._timers.add(handle);
8985
8439
  } else {
8986
8440
  this._onUpdateSync(props, viewableIndices, onViewableItemsChanged, createViewToken);
8987
8441
  }
8988
8442
  }
8989
-
8990
- /**
8991
- * clean-up cached _viewableIndices to evaluate changed items on next update
8992
- */
8993
8443
  }, {
8994
8444
  key: "resetViewableIndices",
8995
8445
  value: function resetViewableIndices() {
8996
8446
  this._viewableIndices = [];
8997
8447
  }
8998
-
8999
- /**
9000
- * Records that an interaction has happened even if there has been no scroll.
9001
- */
9002
8448
  }, {
9003
8449
  key: "recordInteraction",
9004
8450
  value: function recordInteraction() {
@@ -9008,7 +8454,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9008
8454
  key: "_onUpdateSync",
9009
8455
  value: function _onUpdateSync(props, viewableIndicesToCheck, onViewableItemsChanged, createViewToken) {
9010
8456
  var _this2 = this;
9011
- // Filter out indices that have gone out of view since this call was scheduled.
9012
8457
  viewableIndicesToCheck = viewableIndicesToCheck.filter(function (ii) {
9013
8458
  return _this2._viewableIndices.includes(ii);
9014
8459
  });
@@ -9064,7 +8509,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9064
8509
  return top >= 0 && bottom <= viewportHeight && bottom > top;
9065
8510
  }
9066
8511
  module.exports = ViewabilityHelper;
9067
- },"8bafab90a37cab64b100",["7ba3d97b9a1c7b5d2869","51a05661f80df8a7ec74","fd099686726b2dfb6f66","483ae341f8ec81c793b7"]);
8512
+ },"8bafab90a37cab64b100",["cb664999166f9660a878","68819e29ebee24bb0e88","fd099686726b2dfb6f66","d73b3a84588342abd1b6"]);
9068
8513
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
9069
8514
  Object.defineProperty(exports, "__esModule", {
9070
8515
  value: true
@@ -9078,18 +8523,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9078
8523
  var _reactNative = _$$_REQUIRE(_dependencyMap[6]);
9079
8524
  var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7]));
9080
8525
  var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8]));
9081
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
9082
- 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; }
8526
+ 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); }
9083
8527
  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)); }
9084
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
9085
- * Copyright (c) Meta Platforms, Inc. and affiliates.
9086
- *
9087
- * This source code is licensed under the MIT license found in the
9088
- * LICENSE file in the root directory of this source tree.
9089
- *
9090
- *
9091
- * @format
9092
- */
8528
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9093
8529
  var CellRenderer = exports.default = /*#__PURE__*/function (_React$Component) {
9094
8530
  function CellRenderer() {
9095
8531
  var _this;
@@ -9104,9 +8540,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9104
8540
  leadingItem: _this.props.item
9105
8541
  }
9106
8542
  };
9107
- // TODO: consider factoring separator stuff out of VirtualizedList into FlatList since it's not
9108
- // reused by SectionList and we can keep VirtualizedList simpler.
9109
- // $FlowFixMe[missing-local-annot]
9110
8543
  _this._separators = {
9111
8544
  highlight: function highlight() {
9112
8545
  var _this$props = _this.props,
@@ -9158,12 +8591,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9158
8591
  console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem.");
9159
8592
  }
9160
8593
  if (ListItemComponent) {
9161
- /* $FlowFixMe[not-a-component] (>=0.108.0 site=react_native_fb) This
9162
- * comment suppresses an error found when Flow v0.108 was deployed. To
9163
- * see the error, delete this comment and run Flow. */
9164
- /* $FlowFixMe[incompatible-type-arg] (>=0.108.0 site=react_native_fb)
9165
- * This comment suppresses an error found when Flow v0.108 was deployed.
9166
- * To see the error, delete this comment and run Flow. */
9167
8594
  return React.createElement(ListItemComponent, {
9168
8595
  item: item,
9169
8596
  index: index,
@@ -9195,14 +8622,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9195
8622
  onCellLayout = _this$props4.onCellLayout,
9196
8623
  renderItem = _this$props4.renderItem;
9197
8624
  var element = this._renderElement(renderItem, ListItemComponent, item, index);
9198
-
9199
- // NOTE: that when this is a sticky header, `onLayout` will get automatically extracted and
9200
- // called explicitly by `ScrollViewStickyHeader`.
9201
- var itemSeparator = React.isValidElement(ItemSeparatorComponent) ?
9202
- // $FlowFixMe[incompatible-type]
9203
- ItemSeparatorComponent :
9204
- // $FlowFixMe[incompatible-type]
9205
- ItemSeparatorComponent && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(ItemSeparatorComponent, Object.assign({}, this.state.separatorProps));
8625
+ var itemSeparator = React.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(ItemSeparatorComponent, Object.assign({}, this.state.separatorProps));
9206
8626
  var cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle] : [styles.columnReverse, inversionStyle] : horizontal ? [styles.row, inversionStyle] : inversionStyle;
9207
8627
  var result = !CellRendererComponent ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, Object.assign({
9208
8628
  style: cellStyle,
@@ -9249,7 +8669,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9249
8669
  flexDirection: 'column-reverse'
9250
8670
  }
9251
8671
  });
9252
- },"ce5f423367f40f3628a8",["e13c8413f9a5de8e772f","7ba3d97b9a1c7b5d2869","51a05661f80df8a7ec74","1a2fe3e5fa067fc0a581","9f001f493a532727260d","106616352dc94f6a631a","26ef620f86acf7f6932a","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f","048fed5a64a04bdb7fed","e6b1ef1f5b720d640981"]);
8672
+ },"ce5f423367f40f3628a8",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","9822a58ca7726d551fe0","26ef620f86acf7f6932a","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f","048fed5a64a04bdb7fed","e6b1ef1f5b720d640981"]);
9253
8673
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
9254
8674
  Object.defineProperty(exports, "__esModule", {
9255
8675
  value: true
@@ -9260,22 +8680,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9260
8680
  exports.VirtualizedListContextResetter = VirtualizedListContextResetter;
9261
8681
  var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0]));
9262
8682
  var React = _react;
9263
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
9264
- 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; }
9265
- /**
9266
- * Copyright (c) Meta Platforms, Inc. and affiliates.
9267
- *
9268
- * This source code is licensed under the MIT license found in the
9269
- * LICENSE file in the root directory of this source tree.
9270
- *
9271
- *
9272
- * @format
9273
- */
9274
-
8683
+ 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); }
9275
8684
  var VirtualizedListContext = exports.VirtualizedListContext = React.createContext(null);
9276
- /**
9277
- * Resets the context. Intended for use by portal-like components (e.g. Modal).
9278
- */
9279
8685
  function VirtualizedListContextResetter(_ref) {
9280
8686
  var children = _ref.children;
9281
8687
  return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[1]).jsx)(VirtualizedListContext.Provider, {
@@ -9283,14 +8689,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9283
8689
  children: children
9284
8690
  });
9285
8691
  }
9286
-
9287
- /**
9288
- * Sets the context with memoization. Intended to be used by `VirtualizedList`.
9289
- */
9290
8692
  function VirtualizedListContextProvider(_ref2) {
9291
8693
  var children = _ref2.children,
9292
8694
  value = _ref2.value;
9293
- // Avoid setting a newly created context object if the values are identical.
9294
8695
  var context = (0, _react.useMemo)(function () {
9295
8696
  return {
9296
8697
  cellKey: null,
@@ -9306,14 +8707,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9306
8707
  children: children
9307
8708
  });
9308
8709
  }
9309
-
9310
- /**
9311
- * Sets the `cellKey`. Intended to be used by `VirtualizedList` for each cell.
9312
- */
9313
8710
  function VirtualizedListCellContextProvider(_ref3) {
9314
8711
  var cellKey = _ref3.cellKey,
9315
8712
  children = _ref3.children;
9316
- // Avoid setting a newly created context object if the values are identical.
9317
8713
  var currContext = (0, _react.useContext)(VirtualizedListContext);
9318
8714
  var context = (0, _react.useMemo)(function () {
9319
8715
  return currContext == null ? null : Object.assign({}, currContext, {
@@ -9336,15 +8732,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9336
8732
  var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3]));
9337
8733
  var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4]));
9338
8734
  var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5]));
9339
- /**
9340
- * Copyright (c) Meta Platforms, Inc. and affiliates.
9341
- *
9342
- * This source code is licensed under the MIT license found in the
9343
- * LICENSE file in the root directory of this source tree.
9344
- *
9345
- *
9346
- * @format
9347
- */
9348
8735
  var CellRenderMask = exports.CellRenderMask = /*#__PURE__*/function () {
9349
8736
  function CellRenderMask(numCells) {
9350
8737
  (0, _classCallCheck2.default)(this, CellRenderMask);
@@ -9370,9 +8757,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9370
8757
  value: function addCells(cells) {
9371
8758
  var _this$_regions;
9372
8759
  (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');
9373
-
9374
- // VirtualizedList uses inclusive ranges, where zero-count states are
9375
- // possible. E.g. [0, -1] for no cells, starting at 0.
9376
8760
  if (cells.last < cells.first) {
9377
8761
  return;
9378
8762
  }
@@ -9384,15 +8768,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9384
8768
  _this$_findRegion4 = (0, _slicedToArray2.default)(_this$_findRegion3, 2),
9385
8769
  lastIntersect = _this$_findRegion4[0],
9386
8770
  lastIntersectIdx = _this$_findRegion4[1];
9387
-
9388
- // Fast-path if the cells to add are already all present in the mask. We
9389
- // will otherwise need to do some mutation.
9390
8771
  if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer) {
9391
8772
  return;
9392
8773
  }
9393
-
9394
- // We need to replace the existing covered regions with 1-3 new regions
9395
- // depending whether we need to split spacers out of overlapping regions.
9396
8774
  var newLeadRegion = [];
9397
8775
  var newTailRegion = [];
9398
8776
  var newMainRegion = Object.assign({}, cells, {
@@ -9456,7 +8834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9456
8834
  }
9457
8835
  }]);
9458
8836
  }();
9459
- },"de5ab026f9499640d730",["e13c8413f9a5de8e772f","c8d9faa50529497e8550","483ae341f8ec81c793b7","7ba3d97b9a1c7b5d2869","51a05661f80df8a7ec74","fd099686726b2dfb6f66"]);
8837
+ },"de5ab026f9499640d730",["277a84013d7e1a1ace05","838d7a057beeb5db50df","d73b3a84588342abd1b6","cb664999166f9660a878","68819e29ebee24bb0e88","fd099686726b2dfb6f66"]);
9460
8838
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
9461
8839
  var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
9462
8840
  var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
@@ -9470,23 +8848,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9470
8848
  var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10]));
9471
8849
  var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11]));
9472
8850
  var _excluded = ["ItemSeparatorComponent", "SectionSeparatorComponent", "renderItem", "renderSectionFooter", "renderSectionHeader", "sections", "stickySectionHeadersEnabled"];
9473
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
9474
- 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; }
8851
+ 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); }
9475
8852
  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)); }
9476
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
9477
- * Copyright (c) Meta Platforms, Inc. and affiliates.
9478
- *
9479
- * This source code is licensed under the MIT license found in the
9480
- * LICENSE file in the root directory of this source tree.
9481
- *
9482
- *
9483
- * @format
9484
- */
9485
- /**
9486
- * Right now this just flattens everything into one list and uses VirtualizedList under the
9487
- * hood. The only operation that might not scale well is concatting the data arrays of all the
9488
- * sections when new props are received, which should be plenty fast for up to ~10,000 items.
9489
- */
8853
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9490
8854
  var VirtualizedSectionList = /*#__PURE__*/function (_React$PureComponent) {
9491
8855
  function VirtualizedSectionList() {
9492
8856
  var _this;
@@ -9495,7 +8859,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9495
8859
  args[_key] = arguments[_key];
9496
8860
  }
9497
8861
  _this = _callSuper(this, VirtualizedSectionList, [].concat(args));
9498
- // $FlowFixMe[missing-local-annot]
9499
8862
  _this._keyExtractor = function (item, index) {
9500
8863
  var info = _this._subExtractor(index);
9501
8864
  return info && info.key || String(index);
@@ -9528,59 +8891,52 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9528
8891
  }
9529
8892
  };
9530
8893
  _this._renderItem = function (listItemCount) {
9531
- return (
9532
- // eslint-disable-next-line react/no-unstable-nested-components
9533
- function (_ref2) {
9534
- var item = _ref2.item,
9535
- index = _ref2.index;
9536
- var info = _this._subExtractor(index);
9537
- if (!info) {
9538
- return null;
9539
- }
9540
- var infoIndex = info.index;
9541
- if (infoIndex == null) {
9542
- var section = info.section;
9543
- if (info.header === true) {
9544
- var renderSectionHeader = _this.props.renderSectionHeader;
9545
- return renderSectionHeader ? renderSectionHeader({
9546
- section: section
9547
- }) : null;
9548
- } else {
9549
- var renderSectionFooter = _this.props.renderSectionFooter;
9550
- return renderSectionFooter ? renderSectionFooter({
9551
- section: section
9552
- }) : null;
9553
- }
8894
+ return function (_ref2) {
8895
+ var item = _ref2.item,
8896
+ index = _ref2.index;
8897
+ var info = _this._subExtractor(index);
8898
+ if (!info) {
8899
+ return null;
8900
+ }
8901
+ var infoIndex = info.index;
8902
+ if (infoIndex == null) {
8903
+ var section = info.section;
8904
+ if (info.header === true) {
8905
+ var renderSectionHeader = _this.props.renderSectionHeader;
8906
+ return renderSectionHeader ? renderSectionHeader({
8907
+ section: section
8908
+ }) : null;
9554
8909
  } else {
9555
- var renderItem = info.section.renderItem || _this.props.renderItem;
9556
- var SeparatorComponent = _this._getSeparatorComponent(index, info, listItemCount);
9557
- (0, _invariant.default)(renderItem, 'no renderItem!');
9558
- return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(ItemWithSeparator, {
9559
- SeparatorComponent: SeparatorComponent,
9560
- LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined,
9561
- cellKey: info.key,
9562
- index: infoIndex,
9563
- item: item,
9564
- leadingItem: info.leadingItem,
9565
- leadingSection: info.leadingSection,
9566
- prevCellKey: (_this._subExtractor(index - 1) || {}).key
9567
- // Callback to provide updateHighlight for this item
9568
- ,
9569
- setSelfHighlightCallback: _this._setUpdateHighlightFor,
9570
- setSelfUpdatePropsCallback: _this._setUpdatePropsFor
9571
- // Provide child ability to set highlight/updateProps for previous item using prevCellKey
9572
- ,
9573
- updateHighlightFor: _this._updateHighlightFor,
9574
- updatePropsFor: _this._updatePropsFor,
9575
- renderItem: renderItem,
9576
- section: info.section,
9577
- trailingItem: info.trailingItem,
9578
- trailingSection: info.trailingSection,
9579
- inverted: !!_this.props.inverted
9580
- });
8910
+ var renderSectionFooter = _this.props.renderSectionFooter;
8911
+ return renderSectionFooter ? renderSectionFooter({
8912
+ section: section
8913
+ }) : null;
9581
8914
  }
8915
+ } else {
8916
+ var renderItem = info.section.renderItem || _this.props.renderItem;
8917
+ var SeparatorComponent = _this._getSeparatorComponent(index, info, listItemCount);
8918
+ (0, _invariant.default)(renderItem, 'no renderItem!');
8919
+ return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(ItemWithSeparator, {
8920
+ SeparatorComponent: SeparatorComponent,
8921
+ LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined,
8922
+ cellKey: info.key,
8923
+ index: infoIndex,
8924
+ item: item,
8925
+ leadingItem: info.leadingItem,
8926
+ leadingSection: info.leadingSection,
8927
+ prevCellKey: (_this._subExtractor(index - 1) || {}).key,
8928
+ setSelfHighlightCallback: _this._setUpdateHighlightFor,
8929
+ setSelfUpdatePropsCallback: _this._setUpdatePropsFor,
8930
+ updateHighlightFor: _this._updateHighlightFor,
8931
+ updatePropsFor: _this._updatePropsFor,
8932
+ renderItem: renderItem,
8933
+ section: info.section,
8934
+ trailingItem: info.trailingItem,
8935
+ trailingSection: info.trailingSection,
8936
+ inverted: !!_this.props.inverted
8937
+ });
9582
8938
  }
9583
- );
8939
+ };
9584
8940
  };
9585
8941
  _this._updatePropsFor = function (cellKey, value) {
9586
8942
  var updateProps = _this._updatePropsMap[cellKey];
@@ -9598,7 +8954,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9598
8954
  if (updateHighlightFn != null) {
9599
8955
  _this._updateHighlightMap[cellKey] = updateHighlightFn;
9600
8956
  } else {
9601
- // $FlowFixMe[prop-missing]
9602
8957
  delete _this._updateHighlightFor[cellKey];
9603
8958
  }
9604
8959
  };
@@ -9636,7 +8991,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9636
8991
  viewOffset: viewOffset,
9637
8992
  index: index
9638
8993
  });
9639
- // $FlowFixMe[incompatible-use]
9640
8994
  this._listRef.scrollToIndex(toIndexParams);
9641
8995
  }
9642
8996
  }, {
@@ -9661,12 +9015,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9661
9015
  var stickyHeaderIndices = this.props.stickySectionHeadersEnabled ? [] : undefined;
9662
9016
  var itemCount = 0;
9663
9017
  for (var section of this.props.sections) {
9664
- // Track the section header indices
9665
9018
  if (stickyHeaderIndices != null) {
9666
9019
  stickyHeaderIndices.push(itemCount + listHeaderOffset);
9667
9020
  }
9668
-
9669
- // Add two for the section header and footer.
9670
9021
  itemCount += 2;
9671
9022
  itemCount += this.props.getItemCount(section.data);
9672
9023
  }
@@ -9698,15 +9049,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9698
9049
  var sectionData = section.data;
9699
9050
  var itemCount = props.getItemCount(sectionData);
9700
9051
  if (itemIdx === -1 || itemIdx === itemCount) {
9701
- // We intend for there to be overflow by one on both ends of the list.
9702
- // This will be for headers and footers. When returning a header or footer
9703
- // item the section itself is the item.
9704
9052
  return section;
9705
9053
  } else if (itemIdx < itemCount) {
9706
- // If we are in the bounds of the list's data then return the item.
9707
9054
  return props.getItem(sectionData, itemIdx);
9708
9055
  } else {
9709
- itemIdx -= itemCount + 2; // Add two for the header and footer
9056
+ itemIdx -= itemCount + 2;
9710
9057
  }
9711
9058
  }
9712
9059
  return null;
@@ -9724,9 +9071,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9724
9071
  var section = sections[i];
9725
9072
  var sectionData = section.data;
9726
9073
  var key = section.key || String(i);
9727
- itemIndex -= 1; // The section adds an item for the header
9074
+ itemIndex -= 1;
9728
9075
  if (itemIndex >= getItemCount(sectionData) + 1) {
9729
- itemIndex -= getItemCount(sectionData) + 1; // The section adds an item for the footer.
9076
+ itemIndex -= getItemCount(sectionData) + 1;
9730
9077
  } else if (itemIndex === -1) {
9731
9078
  return {
9732
9079
  section: section,
@@ -9821,7 +9168,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9821
9168
  setSeparatorProps = _React$useState8[1];
9822
9169
  React.useEffect(function () {
9823
9170
  setSelfHighlightCallback(cellKey, setSeparatorHighlighted);
9824
- // $FlowFixMe[incompatible-call]
9825
9171
  setSelfUpdatePropsCallback(cellKey, setSeparatorProps);
9826
9172
  return function () {
9827
9173
  setSelfUpdatePropsCallback(cellKey, null);
@@ -9848,7 +9194,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9848
9194
  if (LeadingSeparatorComponent != null) {
9849
9195
  setLeadingSeparatorProps(Object.assign({}, leadingSeparatorProps, newProps));
9850
9196
  } else if (prevCellKey != null) {
9851
- // update the previous item's separator
9852
9197
  updatePropsFor(prevCellKey, Object.assign({}, leadingSeparatorProps, newProps));
9853
9198
  }
9854
9199
  } else if (select === 'trailing' && SeparatorComponent != null) {
@@ -9872,12 +9217,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9872
9217
  children: [inverted === false ? leadingSeparator : separator, element, inverted === false ? separator : leadingSeparator]
9873
9218
  }) : element;
9874
9219
  }
9875
-
9876
- /* $FlowFixMe[class-object-subtyping] added when improving typing for this
9877
- * parameters */
9878
- // $FlowFixMe[method-unbinding]
9879
9220
  module.exports = VirtualizedSectionList;
9880
- },"d2355175ff6609a3def1",["e13c8413f9a5de8e772f","483ae341f8ec81c793b7","288fc9023aadbf916360","7ba3d97b9a1c7b5d2869","51a05661f80df8a7ec74","1a2fe3e5fa067fc0a581","9f001f493a532727260d","106616352dc94f6a631a","26ef620f86acf7f6932a","c4b46015e44050527820","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f","a26dbe2a3afa21c3cf22","048fed5a64a04bdb7fed"]);
9221
+ },"d2355175ff6609a3def1",["277a84013d7e1a1ace05","d73b3a84588342abd1b6","a2c8e692f78bae5b8b98","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","9822a58ca7726d551fe0","26ef620f86acf7f6932a","c4b46015e44050527820","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f","a26dbe2a3afa21c3cf22","048fed5a64a04bdb7fed"]);
9881
9222
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
9882
9223
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
9883
9224
  try {
@@ -9905,91 +9246,92 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
9905
9246
  };
9906
9247
  }
9907
9248
  module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
9908
- },"ea48108a6867e7ab71ad",[]);
9249
+ },"77f56f33f638c3751138",[]);
9909
9250
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
9910
9251
  'use strict';
9911
9252
 
9912
9253
  {
9913
9254
  module.exports = _$$_REQUIRE(_dependencyMap[0]);
9914
9255
  }
9915
- },"f1b3855a69d8eff82434",["5d8c3034f885ee036c2b"]);
9256
+ },"962cceb83a0665e556b0",["882f173eeacafe179433"]);
9916
9257
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
9917
9258
  /**
9918
9259
  * @license React
9919
- * use-sync-external-store-shim.native.production.min.js
9260
+ * use-sync-external-store-shim.native.production.js
9920
9261
  *
9921
- * Copyright (c) Facebook, Inc. and its affiliates.
9262
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9922
9263
  *
9923
9264
  * This source code is licensed under the MIT license found in the
9924
9265
  * LICENSE file in the root directory of this source tree.
9925
9266
  */
9926
- 'use strict';
9927
9267
 
9928
- var e = _$$_REQUIRE(_dependencyMap[0]);
9929
- function h(a, b) {
9930
- return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
9931
- }
9932
- var k = "function" === typeof Object.is ? Object.is : h,
9933
- l = e.useState,
9934
- m = e.useEffect,
9935
- n = e.useLayoutEffect,
9936
- p = e.useDebugValue;
9937
- function q(a, b) {
9938
- var d = b(),
9939
- f = l({
9268
+ "use strict";
9269
+
9270
+ var React = _$$_REQUIRE(_dependencyMap[0]);
9271
+ function is(x, y) {
9272
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
9273
+ }
9274
+ var objectIs = "function" === typeof Object.is ? Object.is : is,
9275
+ useState = React.useState,
9276
+ useEffect = React.useEffect,
9277
+ useLayoutEffect = React.useLayoutEffect,
9278
+ useDebugValue = React.useDebugValue;
9279
+ function useSyncExternalStore$1(subscribe, getSnapshot) {
9280
+ var value = getSnapshot(),
9281
+ _useState = useState({
9940
9282
  inst: {
9941
- value: d,
9942
- getSnapshot: b
9283
+ value: value,
9284
+ getSnapshot: getSnapshot
9943
9285
  }
9944
9286
  }),
9945
- c = f[0].inst,
9946
- g = f[1];
9947
- n(function () {
9948
- c.value = d;
9949
- c.getSnapshot = b;
9950
- r(c) && g({
9951
- inst: c
9287
+ inst = _useState[0].inst,
9288
+ forceUpdate = _useState[1];
9289
+ useLayoutEffect(function () {
9290
+ inst.value = value;
9291
+ inst.getSnapshot = getSnapshot;
9292
+ checkIfSnapshotChanged(inst) && forceUpdate({
9293
+ inst: inst
9952
9294
  });
9953
- }, [a, d, b]);
9954
- m(function () {
9955
- r(c) && g({
9956
- inst: c
9295
+ }, [subscribe, value, getSnapshot]);
9296
+ useEffect(function () {
9297
+ checkIfSnapshotChanged(inst) && forceUpdate({
9298
+ inst: inst
9957
9299
  });
9958
- return a(function () {
9959
- r(c) && g({
9960
- inst: c
9300
+ return subscribe(function () {
9301
+ checkIfSnapshotChanged(inst) && forceUpdate({
9302
+ inst: inst
9961
9303
  });
9962
9304
  });
9963
- }, [a]);
9964
- p(d);
9965
- return d;
9305
+ }, [subscribe]);
9306
+ useDebugValue(value);
9307
+ return value;
9966
9308
  }
9967
- function r(a) {
9968
- var b = a.getSnapshot;
9969
- a = a.value;
9309
+ function checkIfSnapshotChanged(inst) {
9310
+ var latestGetSnapshot = inst.getSnapshot;
9311
+ inst = inst.value;
9970
9312
  try {
9971
- var d = b();
9972
- return !k(a, d);
9973
- } catch (f) {
9313
+ var nextValue = latestGetSnapshot();
9314
+ return !objectIs(inst, nextValue);
9315
+ } catch (error) {
9974
9316
  return true;
9975
9317
  }
9976
9318
  }
9977
- exports.useSyncExternalStore = undefined !== e.useSyncExternalStore ? e.useSyncExternalStore : q;
9978
- },"5d8c3034f885ee036c2b",["6ed0e34da2b23bd3554f"]);
9319
+ exports.useSyncExternalStore = undefined !== React.useSyncExternalStore ? React.useSyncExternalStore : useSyncExternalStore$1;
9320
+ },"882f173eeacafe179433",["6ed0e34da2b23bd3554f"]);
9979
9321
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
9980
9322
  var id = 0;
9981
9323
  function _classPrivateFieldKey(e) {
9982
9324
  return "__private_" + id++ + "_" + e;
9983
9325
  }
9984
9326
  module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
9985
- },"7f66c94a6a95aa0d133b",[]);
9327
+ },"cb8ece4f72f02a959885",[]);
9986
9328
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
9987
9329
  function _classPrivateFieldBase(e, t) {
9988
9330
  if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
9989
9331
  return e;
9990
9332
  }
9991
9333
  module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
9992
- },"ad166880e439eedd808a",[]);
9334
+ },"39eb90fd8fb300b049c2",[]);
9993
9335
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
9994
9336
  "use strict";
9995
9337
 
@@ -10162,7 +9504,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10162
9504
  }, children);
10163
9505
  };
10164
9506
  exports.default = ListsProfiler;
10165
- },"ebefa6a306102a191388",["b315a84be841b96ec849","6ed0e34da2b23bd3554f","0884337eea774c48aa24","97c078610d0d00604266"]);
9507
+ },"ebefa6a306102a191388",["b315a84be841b96ec849","6ed0e34da2b23bd3554f","009c5b3393756c881893","97c078610d0d00604266"]);
10166
9508
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
10167
9509
  Object.defineProperty(exports, "__esModule", {
10168
9510
  value: true
@@ -10308,7 +9650,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10308
9650
  if (Flipper) {
10309
9651
  startEventListeners();
10310
9652
  }
10311
- },"0884337eea774c48aa24",["e13c8413f9a5de8e772f","7ba3d97b9a1c7b5d2869","51a05661f80df8a7ec74","26ef620f86acf7f6932a"]);
9653
+ },"009c5b3393756c881893",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","26ef620f86acf7f6932a"]);
10312
9654
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
10313
9655
  "use strict";
10314
9656
 
@@ -10354,8 +9696,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10354
9696
  exports.default = undefined;
10355
9697
  var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0]));
10356
9698
  var _ListsProfilerModule = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2]));
10357
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10358
- 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; }
9699
+ 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); }
10359
9700
  // @amznmod_react - Add import for the turbomodule
10360
9701
 
10361
9702
  /**
@@ -10384,13 +9725,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10384
9725
  if (children != null && (_children$props = children.props) != null && _children$props.onScroll) {
10385
9726
  children.props.onScroll();
10386
9727
  }
10387
- _ListsProfilerModule.default == null ? undefined : _ListsProfilerModule.default.invokeCallback();
9728
+ _ListsProfilerModule.default == null || _ListsProfilerModule.default.invokeCallback();
10388
9729
  }
10389
9730
  })
10390
9731
  });
10391
9732
  };
10392
9733
  var _default = exports.default = FlashListPerformanceView;
10393
- },"f7c649769e37ee38416a",["6ed0e34da2b23bd3554f","e13c8413f9a5de8e772f","82c156b157a1551ae933","f657a38ddc7dad0bdcde","048fed5a64a04bdb7fed","b476c1614bb053516d93"]);
9734
+ },"f7c649769e37ee38416a",["6ed0e34da2b23bd3554f","277a84013d7e1a1ace05","82c156b157a1551ae933","f657a38ddc7dad0bdcde","048fed5a64a04bdb7fed","b476c1614bb053516d93"]);
10394
9735
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
10395
9736
  Object.defineProperty(exports, "__esModule", {
10396
9737
  value: true
@@ -10418,7 +9759,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10418
9759
  onBlankArea: function onBlankArea() {}
10419
9760
  });
10420
9761
  var ListsProfilerContextProvider = exports.ListsProfilerContextProvider = ListsProfilerContext.Provider;
10421
- },"f657a38ddc7dad0bdcde",["e13c8413f9a5de8e772f","6ed0e34da2b23bd3554f"]);
9762
+ },"f657a38ddc7dad0bdcde",["277a84013d7e1a1ace05","6ed0e34da2b23bd3554f"]);
10422
9763
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
10423
9764
  Object.defineProperty(exports, "__esModule", {
10424
9765
  value: true
@@ -10455,7 +9796,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10455
9796
  }
10456
9797
  });
10457
9798
  var FlashListPerformanceViewNativeComponent = exports.FlashListPerformanceViewNativeComponent = FlashListPerformanceView;
10458
- },"b476c1614bb053516d93",["e13c8413f9a5de8e772f","76b52edafd968705fff3"]);
9799
+ },"b476c1614bb053516d93",["277a84013d7e1a1ace05","76b52edafd968705fff3"]);
10459
9800
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
10460
9801
  Object.defineProperty(exports, "__esModule", {
10461
9802
  value: true
@@ -10476,8 +9817,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10476
9817
  exports.default = undefined;
10477
9818
  var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0]));
10478
9819
  var _ListsProfilerModule = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2]));
10479
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10480
- 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; }
9820
+ 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); }
10481
9821
  // @amznmod_react - Add import for the turbomodule
10482
9822
 
10483
9823
  /**
@@ -10512,13 +9852,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10512
9852
  if (children != null && (_children$props = children.props) != null && _children$props.onScroll) {
10513
9853
  children.props.onScroll();
10514
9854
  }
10515
- _ListsProfilerModule.default == null ? undefined : _ListsProfilerModule.default.invokeCallback();
9855
+ _ListsProfilerModule.default == null || _ListsProfilerModule.default.invokeCallback();
10516
9856
  }
10517
9857
  })
10518
9858
  });
10519
9859
  };
10520
9860
  var _default = exports.default = FlatListPerformanceView;
10521
- },"b5b357b642aec35f0ce8",["6ed0e34da2b23bd3554f","e13c8413f9a5de8e772f","82c156b157a1551ae933","f657a38ddc7dad0bdcde","048fed5a64a04bdb7fed","0e6b2b579cc6e3be19da"]);
9861
+ },"b5b357b642aec35f0ce8",["6ed0e34da2b23bd3554f","277a84013d7e1a1ace05","82c156b157a1551ae933","f657a38ddc7dad0bdcde","048fed5a64a04bdb7fed","0e6b2b579cc6e3be19da"]);
10522
9862
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
10523
9863
  Object.defineProperty(exports, "__esModule", {
10524
9864
  value: true
@@ -10555,7 +9895,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10555
9895
  }
10556
9896
  });
10557
9897
  var FlatListPerformanceViewNativeComponent = exports.FlatListPerformanceViewNativeComponent = FlatListPerformanceView;
10558
- },"0e6b2b579cc6e3be19da",["e13c8413f9a5de8e772f","76b52edafd968705fff3"]);
9898
+ },"0e6b2b579cc6e3be19da",["277a84013d7e1a1ace05","76b52edafd968705fff3"]);
10559
9899
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},"7bd71be4c569ea6344c9",[]);
10560
9900
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
10561
9901
  Object.defineProperty(exports, "__esModule", {
@@ -10571,8 +9911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10571
9911
  });
10572
9912
  exports.default = undefined;
10573
9913
  var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0]));
10574
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10575
- 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; }
9914
+ 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); }
10576
9915
  var bootstrapPlugin = function bootstrapPlugin() {
10577
9916
  return new Promise(function (resolve) {
10578
9917
  (0, _$$_REQUIRE(_dependencyMap[1]).addPlugin)({
@@ -10609,7 +9948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10609
9948
  var onInteractiveCallback = (0, _react.useCallback)(function (TTI, listName) {
10610
9949
  var _connection;
10611
9950
  onInteractive(TTI, listName);
10612
- (_connection = connection) == null ? undefined : _connection.send('newListTTIData', {
9951
+ (_connection = connection) == null || _connection.send('newListTTIData', {
10613
9952
  TTI: TTI,
10614
9953
  listName: listName
10615
9954
  });
@@ -10618,7 +9957,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10618
9957
  var _connection2;
10619
9958
  onBlankArea(offsetStart, offsetEnd, listName);
10620
9959
  var blankArea = Math.max(Math.max(offsetStart, offsetEnd), 0);
10621
- (_connection2 = connection) == null ? undefined : _connection2.send('newBlankData', {
9960
+ (_connection2 = connection) == null || _connection2.send('newBlankData', {
10622
9961
  offset: blankArea,
10623
9962
  listName: listName
10624
9963
  });
@@ -10632,7 +9971,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10632
9971
  });
10633
9972
  };
10634
9973
  var _default = exports.default = ListsProfiler;
10635
- },"3a5f2d2eabadd5b74fe0",["6ed0e34da2b23bd3554f","0884337eea774c48aa24","048fed5a64a04bdb7fed","f657a38ddc7dad0bdcde"]);
9974
+ },"3a5f2d2eabadd5b74fe0",["6ed0e34da2b23bd3554f","009c5b3393756c881893","048fed5a64a04bdb7fed","f657a38ddc7dad0bdcde"]);
10636
9975
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
10637
9976
  Object.defineProperty(exports, "__esModule", {
10638
9977
  value: true
@@ -10663,4 +10002,4 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
10663
10002
  var _FlatListPerformanceView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
10664
10003
  var _FlashListPerformanceView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
10665
10004
  var _ListsProfiler = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3]));
10666
- },"8609ce5d599b91023a98",["e13c8413f9a5de8e772f","b5b357b642aec35f0ce8","f7c649769e37ee38416a","3a5f2d2eabadd5b74fe0"]);
10005
+ },"8609ce5d599b91023a98",["277a84013d7e1a1ace05","b5b357b642aec35f0ce8","f7c649769e37ee38416a","3a5f2d2eabadd5b74fe0"]);