@vitessce/scatterplot-gating 3.1.0 → 3.1.2

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.
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React__default, { useLayoutEffect, useEffect, cloneElement, createElement, forwardRef, useState, useRef, useMemo, useImperativeHandle, Children, isValidElement, PureComponent, useCallback } from "react";
2
+ import React__default, { useLayoutEffect, useEffect, cloneElement, createElement, forwardRef, useState, useRef, useMemo, useImperativeHandle, Children, isValidElement, PureComponent, useId, useCallback } from "react";
3
3
  import { usePlotOptionsStyles, OptionsContainer, CellColorEncodingOption, OptionSelect, useVitessceContainer, useComponentHover, useComponentViewInfo, useLoaders, useSetComponentHover, useSetComponentViewInfo, useCoordination, useDeckCanvasSize, useObsSetsData, useFeatureSelection, useObsFeatureMatrixIndices, useReady, useUrls, useUint8FeatureSelection, useExpressionValueGetter, TitleInfo } from "@vitessce/vit-s";
4
4
  import * as ReactDOM from "react-dom";
5
5
  import ReactDOM__default from "react-dom";
@@ -788,9 +788,9 @@ var reactJsxRuntime_development = {};
788
788
  }
789
789
  if (isArray2(node)) {
790
790
  for (var i2 = 0; i2 < node.length; i2++) {
791
- var child2 = node[i2];
792
- if (isValidElement2(child2)) {
793
- validateExplicitKey(child2, parentType);
791
+ var child = node[i2];
792
+ if (isValidElement2(child)) {
793
+ validateExplicitKey(child, parentType);
794
794
  }
795
795
  }
796
796
  } else if (isValidElement2(node)) {
@@ -940,332 +940,6 @@ var reactJsxRuntime_development = {};
940
940
  jsxRuntime.exports = reactJsxRuntime_development;
941
941
  }
942
942
  var jsxRuntimeExports = jsxRuntime.exports;
943
- var irregularPlurals$1 = { exports: {} };
944
- const addendum = "addenda";
945
- const aircraft = "aircraft";
946
- const alga = "algae";
947
- const alumna = "alumnae";
948
- const alumnus = "alumni";
949
- const amoeba = "amoebae";
950
- const analysis = "analyses";
951
- const antenna = "antennae";
952
- const antithesis = "antitheses";
953
- const apex = "apices";
954
- const appendix = "appendices";
955
- const automaton = "automata";
956
- const axis = "axes";
957
- const bacillus = "bacilli";
958
- const bacterium = "bacteria";
959
- const barracks = "barracks";
960
- const basis$1 = "bases";
961
- const beau = "beaux";
962
- const bison = "bison";
963
- const buffalo = "buffalo";
964
- const bureau = "bureaus";
965
- const cactus = "cacti";
966
- const calf = "calves";
967
- const carp = "carp";
968
- const census = "censuses";
969
- const chassis = "chassis";
970
- const cherub = "cherubim";
971
- const child = "children";
972
- const cod = "cod";
973
- const codex = "codices";
974
- const concerto = "concerti";
975
- const corpus = "corpora";
976
- const crisis = "crises";
977
- const criterion = "criteria";
978
- const curriculum = "curricula";
979
- const datum = "data";
980
- const deer = "deer";
981
- const diagnosis = "diagnoses";
982
- const die = "dice";
983
- const dwarf = "dwarfs";
984
- const echo = "echoes";
985
- const elf = "elves";
986
- const elk = "elk";
987
- const ellipsis = "ellipses";
988
- const embargo = "embargoes";
989
- const emphasis = "emphases";
990
- const erratum = "errata";
991
- const fez = "fezes";
992
- const firmware = "firmware";
993
- const fish = "fish";
994
- const focus = "foci";
995
- const foot = "feet";
996
- const formula = "formulae";
997
- const fungus = "fungi";
998
- const gallows = "gallows";
999
- const genus = "genera";
1000
- const goose = "geese";
1001
- const graffito = "graffiti";
1002
- const grouse = "grouse";
1003
- const half = "halves";
1004
- const hero = "heroes";
1005
- const hoof = "hooves";
1006
- const hovercraft = "hovercraft";
1007
- const hypothesis = "hypotheses";
1008
- const index$1 = "indices";
1009
- const kakapo = "kakapo";
1010
- const knife = "knives";
1011
- const larva = "larvae";
1012
- const leaf = "leaves";
1013
- const libretto = "libretti";
1014
- const life = "lives";
1015
- const loaf = "loaves";
1016
- const locus = "loci";
1017
- const louse = "lice";
1018
- const man = "men";
1019
- const matrix = "matrices";
1020
- const means = "means";
1021
- const medium = "media";
1022
- const media = "media";
1023
- const memorandum = "memoranda";
1024
- const millennium = "millennia";
1025
- const minutia = "minutiae";
1026
- const moose = "moose";
1027
- const mouse = "mice";
1028
- const nebula$1 = "nebulae";
1029
- const nemesis = "nemeses";
1030
- const neurosis = "neuroses";
1031
- const news = "news";
1032
- const nucleus = "nuclei";
1033
- const oasis = "oases";
1034
- const offspring = "offspring";
1035
- const opus = "opera";
1036
- const ovum = "ova";
1037
- const ox = "oxen";
1038
- const paralysis = "paralyses";
1039
- const parenthesis = "parentheses";
1040
- const person = "people";
1041
- const phenomenon = "phenomena";
1042
- const phylum = "phyla";
1043
- const pike = "pike";
1044
- const polyhedron = "polyhedra";
1045
- const potato = "potatoes";
1046
- const prognosis = "prognoses";
1047
- const quiz = "quizzes";
1048
- const radius = "radii";
1049
- const referendum = "referenda";
1050
- const salmon = "salmon";
1051
- const scarf = "scarves";
1052
- const self$1 = "selves";
1053
- const series = "series";
1054
- const sheep = "sheep";
1055
- const shelf = "shelves";
1056
- const shrimp = "shrimp";
1057
- const soliloquy = "soliloquies";
1058
- const spacecraft = "spacecraft";
1059
- const species = "species";
1060
- const spectrum = "spectra";
1061
- const squid = "squid";
1062
- const stimulus = "stimuli";
1063
- const stratum = "strata";
1064
- const swine = "swine";
1065
- const syllabus = "syllabi";
1066
- const symposium = "symposia";
1067
- const synopsis = "synopses";
1068
- const synthesis = "syntheses";
1069
- const tableau = "tableaus";
1070
- const that = "those";
1071
- const thesis = "theses";
1072
- const thief = "thieves";
1073
- const tomato = "tomatoes";
1074
- const tooth = "teeth";
1075
- const trout = "trout";
1076
- const tuna = "tuna";
1077
- const vertebra = "vertebrae";
1078
- const vertex = "vertices";
1079
- const veto = "vetoes";
1080
- const vita = "vitae";
1081
- const vortex = "vortices";
1082
- const watercraft = "watercraft";
1083
- const wharf = "wharves";
1084
- const wife = "wives";
1085
- const wolf = "wolves";
1086
- const woman = "women";
1087
- const require$$0$7 = {
1088
- addendum,
1089
- aircraft,
1090
- alga,
1091
- alumna,
1092
- alumnus,
1093
- amoeba,
1094
- analysis,
1095
- antenna,
1096
- antithesis,
1097
- apex,
1098
- appendix,
1099
- automaton,
1100
- axis,
1101
- bacillus,
1102
- bacterium,
1103
- barracks,
1104
- basis: basis$1,
1105
- beau,
1106
- bison,
1107
- buffalo,
1108
- bureau,
1109
- cactus,
1110
- calf,
1111
- carp,
1112
- census,
1113
- chassis,
1114
- cherub,
1115
- child,
1116
- "château": "châteaus",
1117
- cod,
1118
- codex,
1119
- concerto,
1120
- corpus,
1121
- crisis,
1122
- criterion,
1123
- curriculum,
1124
- datum,
1125
- deer,
1126
- diagnosis,
1127
- die,
1128
- dwarf,
1129
- echo,
1130
- elf,
1131
- elk,
1132
- ellipsis,
1133
- embargo,
1134
- emphasis,
1135
- erratum,
1136
- "faux pas": "faux pas",
1137
- fez,
1138
- firmware,
1139
- fish,
1140
- focus,
1141
- foot,
1142
- formula,
1143
- fungus,
1144
- gallows,
1145
- genus,
1146
- goose,
1147
- graffito,
1148
- grouse,
1149
- half,
1150
- hero,
1151
- hoof,
1152
- hovercraft,
1153
- hypothesis,
1154
- index: index$1,
1155
- kakapo,
1156
- knife,
1157
- larva,
1158
- leaf,
1159
- libretto,
1160
- life,
1161
- loaf,
1162
- locus,
1163
- louse,
1164
- man,
1165
- matrix,
1166
- means,
1167
- medium,
1168
- media,
1169
- memorandum,
1170
- millennium,
1171
- minutia,
1172
- moose,
1173
- mouse,
1174
- nebula: nebula$1,
1175
- nemesis,
1176
- neurosis,
1177
- news,
1178
- nucleus,
1179
- oasis,
1180
- offspring,
1181
- opus,
1182
- ovum,
1183
- ox,
1184
- paralysis,
1185
- parenthesis,
1186
- person,
1187
- phenomenon,
1188
- phylum,
1189
- pike,
1190
- polyhedron,
1191
- potato,
1192
- prognosis,
1193
- quiz,
1194
- radius,
1195
- referendum,
1196
- salmon,
1197
- scarf,
1198
- self: self$1,
1199
- series,
1200
- sheep,
1201
- shelf,
1202
- shrimp,
1203
- soliloquy,
1204
- spacecraft,
1205
- species,
1206
- spectrum,
1207
- squid,
1208
- stimulus,
1209
- stratum,
1210
- swine,
1211
- syllabus,
1212
- symposium,
1213
- synopsis,
1214
- synthesis,
1215
- tableau,
1216
- that,
1217
- thesis,
1218
- thief,
1219
- "this": "these",
1220
- tomato,
1221
- tooth,
1222
- trout,
1223
- tuna,
1224
- vertebra,
1225
- vertex,
1226
- veto,
1227
- vita,
1228
- vortex,
1229
- watercraft,
1230
- wharf,
1231
- wife,
1232
- wolf,
1233
- woman
1234
- };
1235
- irregularPlurals$1.exports;
1236
- (function(module2) {
1237
- const irregularPlurals2 = require$$0$7;
1238
- Object.defineProperty(module2, "exports", {
1239
- get() {
1240
- return new Map(Object.entries(irregularPlurals2));
1241
- }
1242
- });
1243
- })(irregularPlurals$1);
1244
- var irregularPluralsExports = irregularPlurals$1.exports;
1245
- const irregularPlurals = /* @__PURE__ */ getDefaultExportFromCjs(irregularPluralsExports);
1246
- function plur(word, plural, count2) {
1247
- if (typeof plural === "number") {
1248
- count2 = plural;
1249
- }
1250
- if (irregularPlurals.has(word.toLowerCase())) {
1251
- plural = irregularPlurals.get(word.toLowerCase());
1252
- const firstLetter = word.charAt(0);
1253
- const isFirstLetterUpperCase = firstLetter === firstLetter.toUpperCase();
1254
- if (isFirstLetterUpperCase) {
1255
- plural = firstLetter + plural.slice(1);
1256
- }
1257
- const isWholeWordUpperCase = word === word.toUpperCase();
1258
- if (isWholeWordUpperCase) {
1259
- plural = plural.toUpperCase();
1260
- }
1261
- } else if (typeof plural !== "string") {
1262
- plural = (word.replace(/(?:s|x|z|ch|sh)$/i, "$&e").replace(/([^aeiou])y$/i, "$1ie") + "s").replace(/i?e?s$/i, (match) => {
1263
- const isTailLowerCase = word.slice(-1) === word.slice(-1).toLowerCase();
1264
- return isTailLowerCase ? match.toLowerCase() : match.toUpperCase();
1265
- });
1266
- }
1267
- return Math.abs(count2) === 1 ? word : plural;
1268
- }
1269
943
  function extent$1(values2, valueof) {
1270
944
  let min;
1271
945
  let max;
@@ -2531,6 +2205,363 @@ function createRange(fromRight) {
2531
2205
  }
2532
2206
  var range$4 = createRange();
2533
2207
  const range$5 = range$4;
2208
+ function commonjsRequire(path) {
2209
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2210
+ }
2211
+ var pluralize$1 = { exports: {} };
2212
+ (function(module2, exports2) {
2213
+ (function(root2, pluralize2) {
2214
+ if (typeof commonjsRequire === "function" && true && true) {
2215
+ module2.exports = pluralize2();
2216
+ } else {
2217
+ root2.pluralize = pluralize2();
2218
+ }
2219
+ })(commonjsGlobal, function() {
2220
+ var pluralRules = [];
2221
+ var singularRules = [];
2222
+ var uncountables = {};
2223
+ var irregularPlurals = {};
2224
+ var irregularSingles = {};
2225
+ function sanitizeRule(rule) {
2226
+ if (typeof rule === "string") {
2227
+ return new RegExp("^" + rule + "$", "i");
2228
+ }
2229
+ return rule;
2230
+ }
2231
+ function restoreCase(word, token) {
2232
+ if (word === token)
2233
+ return token;
2234
+ if (word === word.toLowerCase())
2235
+ return token.toLowerCase();
2236
+ if (word === word.toUpperCase())
2237
+ return token.toUpperCase();
2238
+ if (word[0] === word[0].toUpperCase()) {
2239
+ return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
2240
+ }
2241
+ return token.toLowerCase();
2242
+ }
2243
+ function interpolate2(str, args) {
2244
+ return str.replace(/\$(\d{1,2})/g, function(match, index2) {
2245
+ return args[index2] || "";
2246
+ });
2247
+ }
2248
+ function replace(word, rule) {
2249
+ return word.replace(rule[0], function(match, index2) {
2250
+ var result = interpolate2(rule[1], arguments);
2251
+ if (match === "") {
2252
+ return restoreCase(word[index2 - 1], result);
2253
+ }
2254
+ return restoreCase(match, result);
2255
+ });
2256
+ }
2257
+ function sanitizeWord(token, word, rules) {
2258
+ if (!token.length || uncountables.hasOwnProperty(token)) {
2259
+ return word;
2260
+ }
2261
+ var len2 = rules.length;
2262
+ while (len2--) {
2263
+ var rule = rules[len2];
2264
+ if (rule[0].test(word))
2265
+ return replace(word, rule);
2266
+ }
2267
+ return word;
2268
+ }
2269
+ function replaceWord(replaceMap, keepMap, rules) {
2270
+ return function(word) {
2271
+ var token = word.toLowerCase();
2272
+ if (keepMap.hasOwnProperty(token)) {
2273
+ return restoreCase(word, token);
2274
+ }
2275
+ if (replaceMap.hasOwnProperty(token)) {
2276
+ return restoreCase(word, replaceMap[token]);
2277
+ }
2278
+ return sanitizeWord(token, word, rules);
2279
+ };
2280
+ }
2281
+ function checkWord(replaceMap, keepMap, rules, bool) {
2282
+ return function(word) {
2283
+ var token = word.toLowerCase();
2284
+ if (keepMap.hasOwnProperty(token))
2285
+ return true;
2286
+ if (replaceMap.hasOwnProperty(token))
2287
+ return false;
2288
+ return sanitizeWord(token, token, rules) === token;
2289
+ };
2290
+ }
2291
+ function pluralize2(word, count2, inclusive) {
2292
+ var pluralized = count2 === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
2293
+ return (inclusive ? count2 + " " : "") + pluralized;
2294
+ }
2295
+ pluralize2.plural = replaceWord(
2296
+ irregularSingles,
2297
+ irregularPlurals,
2298
+ pluralRules
2299
+ );
2300
+ pluralize2.isPlural = checkWord(
2301
+ irregularSingles,
2302
+ irregularPlurals,
2303
+ pluralRules
2304
+ );
2305
+ pluralize2.singular = replaceWord(
2306
+ irregularPlurals,
2307
+ irregularSingles,
2308
+ singularRules
2309
+ );
2310
+ pluralize2.isSingular = checkWord(
2311
+ irregularPlurals,
2312
+ irregularSingles,
2313
+ singularRules
2314
+ );
2315
+ pluralize2.addPluralRule = function(rule, replacement) {
2316
+ pluralRules.push([sanitizeRule(rule), replacement]);
2317
+ };
2318
+ pluralize2.addSingularRule = function(rule, replacement) {
2319
+ singularRules.push([sanitizeRule(rule), replacement]);
2320
+ };
2321
+ pluralize2.addUncountableRule = function(word) {
2322
+ if (typeof word === "string") {
2323
+ uncountables[word.toLowerCase()] = true;
2324
+ return;
2325
+ }
2326
+ pluralize2.addPluralRule(word, "$0");
2327
+ pluralize2.addSingularRule(word, "$0");
2328
+ };
2329
+ pluralize2.addIrregularRule = function(single, plural) {
2330
+ plural = plural.toLowerCase();
2331
+ single = single.toLowerCase();
2332
+ irregularSingles[single] = plural;
2333
+ irregularPlurals[plural] = single;
2334
+ };
2335
+ [
2336
+ // Pronouns.
2337
+ ["I", "we"],
2338
+ ["me", "us"],
2339
+ ["he", "they"],
2340
+ ["she", "they"],
2341
+ ["them", "them"],
2342
+ ["myself", "ourselves"],
2343
+ ["yourself", "yourselves"],
2344
+ ["itself", "themselves"],
2345
+ ["herself", "themselves"],
2346
+ ["himself", "themselves"],
2347
+ ["themself", "themselves"],
2348
+ ["is", "are"],
2349
+ ["was", "were"],
2350
+ ["has", "have"],
2351
+ ["this", "these"],
2352
+ ["that", "those"],
2353
+ // Words ending in with a consonant and `o`.
2354
+ ["echo", "echoes"],
2355
+ ["dingo", "dingoes"],
2356
+ ["volcano", "volcanoes"],
2357
+ ["tornado", "tornadoes"],
2358
+ ["torpedo", "torpedoes"],
2359
+ // Ends with `us`.
2360
+ ["genus", "genera"],
2361
+ ["viscus", "viscera"],
2362
+ // Ends with `ma`.
2363
+ ["stigma", "stigmata"],
2364
+ ["stoma", "stomata"],
2365
+ ["dogma", "dogmata"],
2366
+ ["lemma", "lemmata"],
2367
+ ["schema", "schemata"],
2368
+ ["anathema", "anathemata"],
2369
+ // Other irregular rules.
2370
+ ["ox", "oxen"],
2371
+ ["axe", "axes"],
2372
+ ["die", "dice"],
2373
+ ["yes", "yeses"],
2374
+ ["foot", "feet"],
2375
+ ["eave", "eaves"],
2376
+ ["goose", "geese"],
2377
+ ["tooth", "teeth"],
2378
+ ["quiz", "quizzes"],
2379
+ ["human", "humans"],
2380
+ ["proof", "proofs"],
2381
+ ["carve", "carves"],
2382
+ ["valve", "valves"],
2383
+ ["looey", "looies"],
2384
+ ["thief", "thieves"],
2385
+ ["groove", "grooves"],
2386
+ ["pickaxe", "pickaxes"],
2387
+ ["passerby", "passersby"]
2388
+ ].forEach(function(rule) {
2389
+ return pluralize2.addIrregularRule(rule[0], rule[1]);
2390
+ });
2391
+ [
2392
+ [/s?$/i, "s"],
2393
+ [/[^\u0000-\u007F]$/i, "$0"],
2394
+ [/([^aeiou]ese)$/i, "$1"],
2395
+ [/(ax|test)is$/i, "$1es"],
2396
+ [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
2397
+ [/(e[mn]u)s?$/i, "$1s"],
2398
+ [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
2399
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
2400
+ [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
2401
+ [/(seraph|cherub)(?:im)?$/i, "$1im"],
2402
+ [/(her|at|gr)o$/i, "$1oes"],
2403
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
2404
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
2405
+ [/sis$/i, "ses"],
2406
+ [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
2407
+ [/([^aeiouy]|qu)y$/i, "$1ies"],
2408
+ [/([^ch][ieo][ln])ey$/i, "$1ies"],
2409
+ [/(x|ch|ss|sh|zz)$/i, "$1es"],
2410
+ [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
2411
+ [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
2412
+ [/(pe)(?:rson|ople)$/i, "$1ople"],
2413
+ [/(child)(?:ren)?$/i, "$1ren"],
2414
+ [/eaux$/i, "$0"],
2415
+ [/m[ae]n$/i, "men"],
2416
+ ["thou", "you"]
2417
+ ].forEach(function(rule) {
2418
+ return pluralize2.addPluralRule(rule[0], rule[1]);
2419
+ });
2420
+ [
2421
+ [/s$/i, ""],
2422
+ [/(ss)$/i, "$1"],
2423
+ [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
2424
+ [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
2425
+ [/ies$/i, "y"],
2426
+ [/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
2427
+ [/\b(mon|smil)ies$/i, "$1ey"],
2428
+ [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
2429
+ [/(seraph|cherub)im$/i, "$1"],
2430
+ [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
2431
+ [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
2432
+ [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
2433
+ [/(test)(?:is|es)$/i, "$1is"],
2434
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
2435
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
2436
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
2437
+ [/(alumn|alg|vertebr)ae$/i, "$1a"],
2438
+ [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
2439
+ [/(matr|append)ices$/i, "$1ix"],
2440
+ [/(pe)(rson|ople)$/i, "$1rson"],
2441
+ [/(child)ren$/i, "$1"],
2442
+ [/(eau)x?$/i, "$1"],
2443
+ [/men$/i, "man"]
2444
+ ].forEach(function(rule) {
2445
+ return pluralize2.addSingularRule(rule[0], rule[1]);
2446
+ });
2447
+ [
2448
+ // Singular words with no plurals.
2449
+ "adulthood",
2450
+ "advice",
2451
+ "agenda",
2452
+ "aid",
2453
+ "aircraft",
2454
+ "alcohol",
2455
+ "ammo",
2456
+ "analytics",
2457
+ "anime",
2458
+ "athletics",
2459
+ "audio",
2460
+ "bison",
2461
+ "blood",
2462
+ "bream",
2463
+ "buffalo",
2464
+ "butter",
2465
+ "carp",
2466
+ "cash",
2467
+ "chassis",
2468
+ "chess",
2469
+ "clothing",
2470
+ "cod",
2471
+ "commerce",
2472
+ "cooperation",
2473
+ "corps",
2474
+ "debris",
2475
+ "diabetes",
2476
+ "digestion",
2477
+ "elk",
2478
+ "energy",
2479
+ "equipment",
2480
+ "excretion",
2481
+ "expertise",
2482
+ "firmware",
2483
+ "flounder",
2484
+ "fun",
2485
+ "gallows",
2486
+ "garbage",
2487
+ "graffiti",
2488
+ "hardware",
2489
+ "headquarters",
2490
+ "health",
2491
+ "herpes",
2492
+ "highjinks",
2493
+ "homework",
2494
+ "housework",
2495
+ "information",
2496
+ "jeans",
2497
+ "justice",
2498
+ "kudos",
2499
+ "labour",
2500
+ "literature",
2501
+ "machinery",
2502
+ "mackerel",
2503
+ "mail",
2504
+ "media",
2505
+ "mews",
2506
+ "moose",
2507
+ "music",
2508
+ "mud",
2509
+ "manga",
2510
+ "news",
2511
+ "only",
2512
+ "personnel",
2513
+ "pike",
2514
+ "plankton",
2515
+ "pliers",
2516
+ "police",
2517
+ "pollution",
2518
+ "premises",
2519
+ "rain",
2520
+ "research",
2521
+ "rice",
2522
+ "salmon",
2523
+ "scissors",
2524
+ "series",
2525
+ "sewage",
2526
+ "shambles",
2527
+ "shrimp",
2528
+ "software",
2529
+ "species",
2530
+ "staff",
2531
+ "swine",
2532
+ "tennis",
2533
+ "traffic",
2534
+ "transportation",
2535
+ "trout",
2536
+ "tuna",
2537
+ "wealth",
2538
+ "welfare",
2539
+ "whiting",
2540
+ "wildebeest",
2541
+ "wildlife",
2542
+ "you",
2543
+ /pok[eé]mon$/i,
2544
+ // Regexes.
2545
+ /[^aeiou]ese$/i,
2546
+ // "chinese", "japanese"
2547
+ /deer$/i,
2548
+ // "deer", "reindeer"
2549
+ /fish$/i,
2550
+ // "fish", "blowfish", "angelfish"
2551
+ /measles$/i,
2552
+ /o[iu]s$/i,
2553
+ // "carnivorous"
2554
+ /pox$/i,
2555
+ // "chickpox", "smallpox"
2556
+ /sheep$/i
2557
+ ].forEach(pluralize2.addUncountableRule);
2558
+ return pluralize2;
2559
+ });
2560
+ })(pluralize$1);
2561
+ var pluralizeExports = pluralize$1.exports;
2562
+ const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
2563
+ plur.addPluralRule("glomerulus", "glomeruli");
2564
+ plur.addPluralRule("interstitium", "interstitia");
2534
2565
  function fromEntries(iterable) {
2535
2566
  return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
2536
2567
  }
@@ -2541,6 +2572,9 @@ function commaNumber(n2) {
2541
2572
  function capitalize$1(word) {
2542
2573
  return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
2543
2574
  }
2575
+ function pluralize(word, count2 = null) {
2576
+ return plur(word, count2);
2577
+ }
2544
2578
  function getNextScope(prevScopes) {
2545
2579
  const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
2546
2580
  const nextCharIndices = [0];
@@ -4109,12 +4143,12 @@ function findCandidate(tree, a2, b, c2, d, maxDist, segTree) {
4109
4143
  var node = tree.data;
4110
4144
  while (node) {
4111
4145
  for (var i2 = 0; i2 < node.children.length; i2++) {
4112
- var child2 = node.children[i2];
4113
- var dist = node.leaf ? sqSegDist(child2, b, c2) : sqSegBoxDist(b, c2, child2);
4146
+ var child = node.children[i2];
4147
+ var dist = node.leaf ? sqSegDist(child, b, c2) : sqSegBoxDist(b, c2, child);
4114
4148
  if (dist > maxDist)
4115
4149
  continue;
4116
4150
  queue.push({
4117
- node: child2,
4151
+ node: child,
4118
4152
  dist
4119
4153
  });
4120
4154
  }
@@ -8065,7 +8099,7 @@ function nodeTransform(node, predicate, transform2, transformedPaths, currPath =
8065
8099
  if ("children" in node) {
8066
8100
  return {
8067
8101
  ...node,
8068
- children: node.children.map((child2) => nodeTransform(child2, predicate, transform2, transformedPaths, newPath.concat([child2.name])))
8102
+ children: node.children.map((child) => nodeTransform(child, predicate, transform2, transformedPaths, newPath.concat([child.name])))
8069
8103
  };
8070
8104
  }
8071
8105
  return node;
@@ -12642,7 +12676,7 @@ function nodeFindNodeByNamePath(node, path, currLevelIndex) {
12642
12676
  return node;
12643
12677
  }
12644
12678
  if (node.children) {
12645
- const foundNodes = node.children.map((child2) => nodeFindNodeByNamePath(child2, path, currLevelIndex + 1)).filter(Boolean);
12679
+ const foundNodes = node.children.map((child) => nodeFindNodeByNamePath(child, path, currLevelIndex + 1)).filter(Boolean);
12646
12680
  if (foundNodes.length === 1) {
12647
12681
  return foundNodes[0];
12648
12682
  }
@@ -12761,10 +12795,10 @@ var json2csv_umd = { exports: {} };
12761
12795
  this._maxListeners = n2;
12762
12796
  return this;
12763
12797
  };
12764
- function $getMaxListeners(that2) {
12765
- if (that2._maxListeners === void 0)
12798
+ function $getMaxListeners(that) {
12799
+ if (that._maxListeners === void 0)
12766
12800
  return EventEmitter2.defaultMaxListeners;
12767
- return that2._maxListeners;
12801
+ return that._maxListeners;
12768
12802
  }
12769
12803
  EventEmitter2.prototype.getMaxListeners = function getMaxListeners2() {
12770
12804
  return $getMaxListeners(this);
@@ -13268,20 +13302,20 @@ var json2csv_umd = { exports: {} };
13268
13302
  function kMaxLength() {
13269
13303
  return Buffer3.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
13270
13304
  }
13271
- function createBuffer(that2, length2) {
13305
+ function createBuffer(that, length2) {
13272
13306
  if (kMaxLength() < length2) {
13273
13307
  throw new RangeError("Invalid typed array length");
13274
13308
  }
13275
13309
  if (Buffer3.TYPED_ARRAY_SUPPORT) {
13276
- that2 = new Uint8Array(length2);
13277
- that2.__proto__ = Buffer3.prototype;
13310
+ that = new Uint8Array(length2);
13311
+ that.__proto__ = Buffer3.prototype;
13278
13312
  } else {
13279
- if (that2 === null) {
13280
- that2 = new Buffer3(length2);
13313
+ if (that === null) {
13314
+ that = new Buffer3(length2);
13281
13315
  }
13282
- that2.length = length2;
13316
+ that.length = length2;
13283
13317
  }
13284
- return that2;
13318
+ return that;
13285
13319
  }
13286
13320
  function Buffer3(arg, encodingOrOffset, length2) {
13287
13321
  if (!Buffer3.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer3)) {
@@ -13302,17 +13336,17 @@ var json2csv_umd = { exports: {} };
13302
13336
  arr.__proto__ = Buffer3.prototype;
13303
13337
  return arr;
13304
13338
  };
13305
- function from(that2, value, encodingOrOffset, length2) {
13339
+ function from(that, value, encodingOrOffset, length2) {
13306
13340
  if (typeof value === "number") {
13307
13341
  throw new TypeError('"value" argument must not be a number');
13308
13342
  }
13309
13343
  if (typeof ArrayBuffer !== "undefined" && value instanceof ArrayBuffer) {
13310
- return fromArrayBuffer(that2, value, encodingOrOffset, length2);
13344
+ return fromArrayBuffer(that, value, encodingOrOffset, length2);
13311
13345
  }
13312
13346
  if (typeof value === "string") {
13313
- return fromString(that2, value, encodingOrOffset);
13347
+ return fromString(that, value, encodingOrOffset);
13314
13348
  }
13315
- return fromObject(that2, value);
13349
+ return fromObject(that, value);
13316
13350
  }
13317
13351
  Buffer3.from = function(value, encodingOrOffset, length2) {
13318
13352
  return from(null, value, encodingOrOffset, length2);
@@ -13328,28 +13362,28 @@ var json2csv_umd = { exports: {} };
13328
13362
  throw new RangeError('"size" argument must not be negative');
13329
13363
  }
13330
13364
  }
13331
- function alloc(that2, size, fill, encoding) {
13365
+ function alloc(that, size, fill, encoding) {
13332
13366
  assertSize(size);
13333
13367
  if (size <= 0) {
13334
- return createBuffer(that2, size);
13368
+ return createBuffer(that, size);
13335
13369
  }
13336
13370
  if (fill !== void 0) {
13337
- return typeof encoding === "string" ? createBuffer(that2, size).fill(fill, encoding) : createBuffer(that2, size).fill(fill);
13371
+ return typeof encoding === "string" ? createBuffer(that, size).fill(fill, encoding) : createBuffer(that, size).fill(fill);
13338
13372
  }
13339
- return createBuffer(that2, size);
13373
+ return createBuffer(that, size);
13340
13374
  }
13341
13375
  Buffer3.alloc = function(size, fill, encoding) {
13342
13376
  return alloc(null, size, fill, encoding);
13343
13377
  };
13344
- function allocUnsafe2(that2, size) {
13378
+ function allocUnsafe2(that, size) {
13345
13379
  assertSize(size);
13346
- that2 = createBuffer(that2, size < 0 ? 0 : checked(size) | 0);
13380
+ that = createBuffer(that, size < 0 ? 0 : checked(size) | 0);
13347
13381
  if (!Buffer3.TYPED_ARRAY_SUPPORT) {
13348
13382
  for (var i2 = 0; i2 < size; ++i2) {
13349
- that2[i2] = 0;
13383
+ that[i2] = 0;
13350
13384
  }
13351
13385
  }
13352
- return that2;
13386
+ return that;
13353
13387
  }
13354
13388
  Buffer3.allocUnsafe = function(size) {
13355
13389
  return allocUnsafe2(null, size);
@@ -13357,7 +13391,7 @@ var json2csv_umd = { exports: {} };
13357
13391
  Buffer3.allocUnsafeSlow = function(size) {
13358
13392
  return allocUnsafe2(null, size);
13359
13393
  };
13360
- function fromString(that2, string, encoding) {
13394
+ function fromString(that, string, encoding) {
13361
13395
  if (typeof encoding !== "string" || encoding === "") {
13362
13396
  encoding = "utf8";
13363
13397
  }
@@ -13365,22 +13399,22 @@ var json2csv_umd = { exports: {} };
13365
13399
  throw new TypeError('"encoding" must be a valid string encoding');
13366
13400
  }
13367
13401
  var length2 = byteLength(string, encoding) | 0;
13368
- that2 = createBuffer(that2, length2);
13369
- var actual = that2.write(string, encoding);
13402
+ that = createBuffer(that, length2);
13403
+ var actual = that.write(string, encoding);
13370
13404
  if (actual !== length2) {
13371
- that2 = that2.slice(0, actual);
13405
+ that = that.slice(0, actual);
13372
13406
  }
13373
- return that2;
13407
+ return that;
13374
13408
  }
13375
- function fromArrayLike(that2, array) {
13409
+ function fromArrayLike(that, array) {
13376
13410
  var length2 = array.length < 0 ? 0 : checked(array.length) | 0;
13377
- that2 = createBuffer(that2, length2);
13411
+ that = createBuffer(that, length2);
13378
13412
  for (var i2 = 0; i2 < length2; i2 += 1) {
13379
- that2[i2] = array[i2] & 255;
13413
+ that[i2] = array[i2] & 255;
13380
13414
  }
13381
- return that2;
13415
+ return that;
13382
13416
  }
13383
- function fromArrayBuffer(that2, array, byteOffset, length2) {
13417
+ function fromArrayBuffer(that, array, byteOffset, length2) {
13384
13418
  array.byteLength;
13385
13419
  if (byteOffset < 0 || array.byteLength < byteOffset) {
13386
13420
  throw new RangeError("'offset' is out of bounds");
@@ -13396,32 +13430,32 @@ var json2csv_umd = { exports: {} };
13396
13430
  array = new Uint8Array(array, byteOffset, length2);
13397
13431
  }
13398
13432
  if (Buffer3.TYPED_ARRAY_SUPPORT) {
13399
- that2 = array;
13400
- that2.__proto__ = Buffer3.prototype;
13433
+ that = array;
13434
+ that.__proto__ = Buffer3.prototype;
13401
13435
  } else {
13402
- that2 = fromArrayLike(that2, array);
13436
+ that = fromArrayLike(that, array);
13403
13437
  }
13404
- return that2;
13438
+ return that;
13405
13439
  }
13406
- function fromObject(that2, obj) {
13440
+ function fromObject(that, obj) {
13407
13441
  if (internalIsBuffer(obj)) {
13408
13442
  var len2 = checked(obj.length) | 0;
13409
- that2 = createBuffer(that2, len2);
13410
- if (that2.length === 0) {
13411
- return that2;
13443
+ that = createBuffer(that, len2);
13444
+ if (that.length === 0) {
13445
+ return that;
13412
13446
  }
13413
- obj.copy(that2, 0, 0, len2);
13414
- return that2;
13447
+ obj.copy(that, 0, 0, len2);
13448
+ return that;
13415
13449
  }
13416
13450
  if (obj) {
13417
13451
  if (typeof ArrayBuffer !== "undefined" && obj.buffer instanceof ArrayBuffer || "length" in obj) {
13418
13452
  if (typeof obj.length !== "number" || isnan(obj.length)) {
13419
- return createBuffer(that2, 0);
13453
+ return createBuffer(that, 0);
13420
13454
  }
13421
- return fromArrayLike(that2, obj);
13455
+ return fromArrayLike(that, obj);
13422
13456
  }
13423
13457
  if (obj.type === "Buffer" && isArray2(obj.data)) {
13424
- return fromArrayLike(that2, obj.data);
13458
+ return fromArrayLike(that, obj.data);
13425
13459
  }
13426
13460
  }
13427
13461
  throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
@@ -18306,9 +18340,9 @@ function tree_add(d) {
18306
18340
  function add$6(tree, x2, y2, d) {
18307
18341
  if (isNaN(x2) || isNaN(y2))
18308
18342
  return tree;
18309
- var parent, node = tree._root, leaf2 = { data: d }, x02 = tree._x0, y02 = tree._y0, x12 = tree._x1, y12 = tree._y1, xm, ym, xp, yp, right, bottom, i2, j;
18343
+ var parent, node = tree._root, leaf = { data: d }, x02 = tree._x0, y02 = tree._y0, x12 = tree._x1, y12 = tree._y1, xm, ym, xp, yp, right, bottom, i2, j;
18310
18344
  if (!node)
18311
- return tree._root = leaf2, tree;
18345
+ return tree._root = leaf, tree;
18312
18346
  while (node.length) {
18313
18347
  if (right = x2 >= (xm = (x02 + x12) / 2))
18314
18348
  x02 = xm;
@@ -18319,12 +18353,12 @@ function add$6(tree, x2, y2, d) {
18319
18353
  else
18320
18354
  y12 = ym;
18321
18355
  if (parent = node, !(node = node[i2 = bottom << 1 | right]))
18322
- return parent[i2] = leaf2, tree;
18356
+ return parent[i2] = leaf, tree;
18323
18357
  }
18324
18358
  xp = +tree._x.call(null, node.data);
18325
18359
  yp = +tree._y.call(null, node.data);
18326
18360
  if (x2 === xp && y2 === yp)
18327
- return leaf2.next = node, parent ? parent[i2] = leaf2 : tree._root = leaf2, tree;
18361
+ return leaf.next = node, parent ? parent[i2] = leaf : tree._root = leaf, tree;
18328
18362
  do {
18329
18363
  parent = parent ? parent[i2] = new Array(4) : tree._root = new Array(4);
18330
18364
  if (right = x2 >= (xm = (x02 + x12) / 2))
@@ -18336,7 +18370,7 @@ function add$6(tree, x2, y2, d) {
18336
18370
  else
18337
18371
  y12 = ym;
18338
18372
  } while ((i2 = bottom << 1 | right) === (j = (yp >= ym) << 1 | xp >= xm));
18339
- return parent[j] = node, parent[i2] = leaf2, tree;
18373
+ return parent[j] = node, parent[i2] = leaf, tree;
18340
18374
  }
18341
18375
  function addAll(data) {
18342
18376
  var d, i2, n2 = data.length, x2, y2, xz = new Array(n2), yz = new Array(n2), x02 = Infinity, y02 = Infinity, x12 = -Infinity, y12 = -Infinity;
@@ -18418,16 +18452,16 @@ function Quad(node, x02, y02, x12, y12) {
18418
18452
  this.x1 = x12;
18419
18453
  this.y1 = y12;
18420
18454
  }
18421
- function tree_find(x2, y2, radius2) {
18455
+ function tree_find(x2, y2, radius) {
18422
18456
  var data, x02 = this._x0, y02 = this._y0, x12, y12, x22, y22, x3 = this._x1, y3 = this._y1, quads = [], node = this._root, q, i2;
18423
18457
  if (node)
18424
18458
  quads.push(new Quad(node, x02, y02, x3, y3));
18425
- if (radius2 == null)
18426
- radius2 = Infinity;
18459
+ if (radius == null)
18460
+ radius = Infinity;
18427
18461
  else {
18428
- x02 = x2 - radius2, y02 = y2 - radius2;
18429
- x3 = x2 + radius2, y3 = y2 + radius2;
18430
- radius2 *= radius2;
18462
+ x02 = x2 - radius, y02 = y2 - radius;
18463
+ x3 = x2 + radius, y3 = y2 + radius;
18464
+ radius *= radius;
18431
18465
  }
18432
18466
  while (q = quads.pop()) {
18433
18467
  if (!(node = q.node) || (x12 = q.x0) > x3 || (y12 = q.y0) > y3 || (x22 = q.x1) < x02 || (y22 = q.y1) < y02)
@@ -18447,8 +18481,8 @@ function tree_find(x2, y2, radius2) {
18447
18481
  }
18448
18482
  } else {
18449
18483
  var dx = x2 - +this._x.call(null, node.data), dy = y2 - +this._y.call(null, node.data), d2 = dx * dx + dy * dy;
18450
- if (d2 < radius2) {
18451
- var d = Math.sqrt(radius2 = d2);
18484
+ if (d2 < radius) {
18485
+ var d = Math.sqrt(radius = d2);
18452
18486
  x02 = x2 - d, y02 = y2 - d;
18453
18487
  x3 = x2 + d, y3 = y2 + d;
18454
18488
  data = node.data;
@@ -18517,20 +18551,20 @@ function tree_size() {
18517
18551
  return size;
18518
18552
  }
18519
18553
  function tree_visit(callback) {
18520
- var quads = [], q, node = this._root, child2, x02, y02, x12, y12;
18554
+ var quads = [], q, node = this._root, child, x02, y02, x12, y12;
18521
18555
  if (node)
18522
18556
  quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1));
18523
18557
  while (q = quads.pop()) {
18524
18558
  if (!callback(node = q.node, x02 = q.x0, y02 = q.y0, x12 = q.x1, y12 = q.y1) && node.length) {
18525
18559
  var xm = (x02 + x12) / 2, ym = (y02 + y12) / 2;
18526
- if (child2 = node[3])
18527
- quads.push(new Quad(child2, xm, ym, x12, y12));
18528
- if (child2 = node[2])
18529
- quads.push(new Quad(child2, x02, ym, xm, y12));
18530
- if (child2 = node[1])
18531
- quads.push(new Quad(child2, xm, y02, x12, ym));
18532
- if (child2 = node[0])
18533
- quads.push(new Quad(child2, x02, y02, xm, ym));
18560
+ if (child = node[3])
18561
+ quads.push(new Quad(child, xm, ym, x12, y12));
18562
+ if (child = node[2])
18563
+ quads.push(new Quad(child, x02, ym, xm, y12));
18564
+ if (child = node[1])
18565
+ quads.push(new Quad(child, xm, y02, x12, ym));
18566
+ if (child = node[0])
18567
+ quads.push(new Quad(child, x02, y02, xm, ym));
18534
18568
  }
18535
18569
  }
18536
18570
  return this;
@@ -18542,15 +18576,15 @@ function tree_visitAfter(callback) {
18542
18576
  while (q = quads.pop()) {
18543
18577
  var node = q.node;
18544
18578
  if (node.length) {
18545
- var child2, x02 = q.x0, y02 = q.y0, x12 = q.x1, y12 = q.y1, xm = (x02 + x12) / 2, ym = (y02 + y12) / 2;
18546
- if (child2 = node[0])
18547
- quads.push(new Quad(child2, x02, y02, xm, ym));
18548
- if (child2 = node[1])
18549
- quads.push(new Quad(child2, xm, y02, x12, ym));
18550
- if (child2 = node[2])
18551
- quads.push(new Quad(child2, x02, ym, xm, y12));
18552
- if (child2 = node[3])
18553
- quads.push(new Quad(child2, xm, ym, x12, y12));
18579
+ var child, x02 = q.x0, y02 = q.y0, x12 = q.x1, y12 = q.y1, xm = (x02 + x12) / 2, ym = (y02 + y12) / 2;
18580
+ if (child = node[0])
18581
+ quads.push(new Quad(child, x02, y02, xm, ym));
18582
+ if (child = node[1])
18583
+ quads.push(new Quad(child, xm, y02, x12, ym));
18584
+ if (child = node[2])
18585
+ quads.push(new Quad(child, x02, ym, xm, y12));
18586
+ if (child = node[3])
18587
+ quads.push(new Quad(child, xm, ym, x12, y12));
18554
18588
  }
18555
18589
  next.push(q);
18556
18590
  }
@@ -18584,15 +18618,15 @@ function Quadtree(x2, y2, x02, y02, x12, y12) {
18584
18618
  this._y1 = y12;
18585
18619
  this._root = void 0;
18586
18620
  }
18587
- function leaf_copy(leaf2) {
18588
- var copy2 = { data: leaf2.data }, next = copy2;
18589
- while (leaf2 = leaf2.next)
18590
- next = next.next = { data: leaf2.data };
18621
+ function leaf_copy(leaf) {
18622
+ var copy2 = { data: leaf.data }, next = copy2;
18623
+ while (leaf = leaf.next)
18624
+ next = next.next = { data: leaf.data };
18591
18625
  return copy2;
18592
18626
  }
18593
18627
  var treeProto = quadtree.prototype = Quadtree.prototype;
18594
18628
  treeProto.copy = function() {
18595
- var copy2 = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1), node = this._root, nodes, child2;
18629
+ var copy2 = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1), node = this._root, nodes, child;
18596
18630
  if (!node)
18597
18631
  return copy2;
18598
18632
  if (!node.length)
@@ -18600,11 +18634,11 @@ treeProto.copy = function() {
18600
18634
  nodes = [{ source: node, target: copy2._root = new Array(4) }];
18601
18635
  while (node = nodes.pop()) {
18602
18636
  for (var i2 = 0; i2 < 4; ++i2) {
18603
- if (child2 = node.source[i2]) {
18604
- if (child2.length)
18605
- nodes.push({ source: child2, target: node.target[i2] = new Array(4) });
18637
+ if (child = node.source[i2]) {
18638
+ if (child.length)
18639
+ nodes.push({ source: child, target: node.target[i2] = new Array(4) });
18606
18640
  else
18607
- node.target[i2] = leaf_copy(child2);
18641
+ node.target[i2] = leaf_copy(child);
18608
18642
  }
18609
18643
  }
18610
18644
  }
@@ -18674,20 +18708,20 @@ Dispatch.prototype = dispatch.prototype = {
18674
18708
  copy2[t2] = _[t2].slice();
18675
18709
  return new Dispatch(copy2);
18676
18710
  },
18677
- call: function(type, that2) {
18711
+ call: function(type, that) {
18678
18712
  if ((n2 = arguments.length - 2) > 0)
18679
18713
  for (var args = new Array(n2), i2 = 0, n2, t2; i2 < n2; ++i2)
18680
18714
  args[i2] = arguments[i2 + 2];
18681
18715
  if (!this._.hasOwnProperty(type))
18682
18716
  throw new Error("unknown type: " + type);
18683
18717
  for (t2 = this._[type], i2 = 0, n2 = t2.length; i2 < n2; ++i2)
18684
- t2[i2].value.apply(that2, args);
18718
+ t2[i2].value.apply(that, args);
18685
18719
  },
18686
- apply: function(type, that2, args) {
18720
+ apply: function(type, that, args) {
18687
18721
  if (!this._.hasOwnProperty(type))
18688
18722
  throw new Error("unknown type: " + type);
18689
18723
  for (var t2 = this._[type], i2 = 0, n2 = t2.length; i2 < n2; ++i2)
18690
- t2[i2].value.apply(that2, args);
18724
+ t2[i2].value.apply(that, args);
18691
18725
  }
18692
18726
  };
18693
18727
  function get(type, name2) {
@@ -18860,9 +18894,9 @@ function forceSimulation(nodes) {
18860
18894
  if (node.fy != null)
18861
18895
  node.y = node.fy;
18862
18896
  if (isNaN(node.x) || isNaN(node.y)) {
18863
- var radius2 = initialRadius * Math.sqrt(0.5 + i2), angle2 = i2 * initialAngle;
18864
- node.x = radius2 * Math.cos(angle2);
18865
- node.y = radius2 * Math.sin(angle2);
18897
+ var radius = initialRadius * Math.sqrt(0.5 + i2), angle2 = i2 * initialAngle;
18898
+ node.x = radius * Math.cos(angle2);
18899
+ node.y = radius * Math.sin(angle2);
18866
18900
  }
18867
18901
  if (isNaN(node.vx) || isNaN(node.vy)) {
18868
18902
  node.vx = node.vy = 0;
@@ -18907,19 +18941,19 @@ function forceSimulation(nodes) {
18907
18941
  force: function(name2, _) {
18908
18942
  return arguments.length > 1 ? (_ == null ? forces.delete(name2) : forces.set(name2, initializeForce(_)), simulation) : forces.get(name2);
18909
18943
  },
18910
- find: function(x2, y2, radius2) {
18944
+ find: function(x2, y2, radius) {
18911
18945
  var i2 = 0, n2 = nodes.length, dx, dy, d2, node, closest;
18912
- if (radius2 == null)
18913
- radius2 = Infinity;
18946
+ if (radius == null)
18947
+ radius = Infinity;
18914
18948
  else
18915
- radius2 *= radius2;
18949
+ radius *= radius;
18916
18950
  for (i2 = 0; i2 < n2; ++i2) {
18917
18951
  node = nodes[i2];
18918
18952
  dx = x2 - node.x;
18919
18953
  dy = y2 - node.y;
18920
18954
  d2 = dx * dx + dy * dy;
18921
- if (d2 < radius2)
18922
- closest = node, radius2 = d2;
18955
+ if (d2 < radius)
18956
+ closest = node, radius = d2;
18923
18957
  }
18924
18958
  return closest;
18925
18959
  },
@@ -23476,7 +23510,7 @@ let Resource$1 = class Resource {
23476
23510
  }
23477
23511
  this._handle = null;
23478
23512
  if (children && deleteChildren) {
23479
- children.filter(Boolean).forEach((child2) => child2.delete());
23513
+ children.filter(Boolean).forEach((child) => child.delete());
23480
23514
  }
23481
23515
  return this;
23482
23516
  }
@@ -29579,12 +29613,12 @@ function fp64ify(a2) {
29579
29613
  function fp64LowPart$1(a2) {
29580
29614
  return a2 - Math.fround(a2);
29581
29615
  }
29582
- function fp64ifyMatrix4(matrix2) {
29616
+ function fp64ifyMatrix4(matrix) {
29583
29617
  const matrixFP64 = new Float32Array(32);
29584
29618
  for (let i2 = 0; i2 < 4; ++i2) {
29585
29619
  for (let j = 0; j < 4; ++j) {
29586
29620
  const index2 = i2 * 4 + j;
29587
- fp64ify(matrix2[j * 4 + i2], matrixFP64, index2 * 2);
29621
+ fp64ify(matrix[j * 4 + i2], matrixFP64, index2 * 2);
29588
29622
  }
29589
29623
  }
29590
29624
  return matrixFP64;
@@ -31290,8 +31324,8 @@ function scale$3(out, a2, v) {
31290
31324
  out[15] = a2[15];
31291
31325
  return out;
31292
31326
  }
31293
- function rotate(out, a2, rad2, axis2) {
31294
- var x2 = axis2[0], y2 = axis2[1], z2 = axis2[2];
31327
+ function rotate(out, a2, rad2, axis) {
31328
+ var x2 = axis[0], y2 = axis[1], z2 = axis[2];
31295
31329
  var len2 = Math.hypot(x2, y2, z2);
31296
31330
  var s2, c2, t2;
31297
31331
  var a00, a01, a02, a03;
@@ -32050,8 +32084,8 @@ class Matrix4 extends Matrix {
32050
32084
  rotateXYZ(angleXYZ) {
32051
32085
  return this.rotateX(angleXYZ[0]).rotateY(angleXYZ[1]).rotateZ(angleXYZ[2]);
32052
32086
  }
32053
- rotateAxis(radians2, axis2) {
32054
- rotate(this, this, radians2, axis2);
32087
+ rotateAxis(radians2, axis) {
32088
+ rotate(this, this, radians2, axis);
32055
32089
  return this.check();
32056
32090
  }
32057
32091
  scale(factor) {
@@ -32183,12 +32217,12 @@ function identity$3(out) {
32183
32217
  out[3] = 1;
32184
32218
  return out;
32185
32219
  }
32186
- function setAxisAngle(out, axis2, rad2) {
32220
+ function setAxisAngle(out, axis, rad2) {
32187
32221
  rad2 = rad2 * 0.5;
32188
32222
  var s2 = Math.sin(rad2);
32189
- out[0] = s2 * axis2[0];
32190
- out[1] = s2 * axis2[1];
32191
- out[2] = s2 * axis2[2];
32223
+ out[0] = s2 * axis[0];
32224
+ out[1] = s2 * axis[1];
32225
+ out[2] = s2 * axis[2];
32192
32226
  out[3] = Math.cos(rad2);
32193
32227
  return out;
32194
32228
  }
@@ -32406,16 +32440,16 @@ class Quaternion extends MathArray {
32406
32440
  fromMat3(this, m2);
32407
32441
  return this.check();
32408
32442
  }
32409
- fromAxisRotation(axis2, rad2) {
32410
- setAxisAngle(this, axis2, rad2);
32443
+ fromAxisRotation(axis, rad2) {
32444
+ setAxisAngle(this, axis, rad2);
32411
32445
  return this.check();
32412
32446
  }
32413
32447
  identity() {
32414
32448
  identity$3(this);
32415
32449
  return this.check();
32416
32450
  }
32417
- setAxisAngle(axis2, rad2) {
32418
- return this.fromAxisRotation(axis2, rad2);
32451
+ setAxisAngle(axis, rad2) {
32452
+ return this.fromAxisRotation(axis, rad2);
32419
32453
  }
32420
32454
  get ELEMENTS() {
32421
32455
  return 4;
@@ -32548,8 +32582,8 @@ class Quaternion extends MathArray {
32548
32582
  lengthSq() {
32549
32583
  return this.lengthSquared();
32550
32584
  }
32551
- setFromAxisAngle(axis2, rad2) {
32552
- return this.setAxisAngle(axis2, rad2);
32585
+ setFromAxisAngle(axis, rad2) {
32586
+ return this.setAxisAngle(axis, rad2);
32553
32587
  }
32554
32588
  premultiply(a2) {
32555
32589
  return this.multiplyLeft(a2);
@@ -32564,7 +32598,7 @@ class SphericalCoordinates {
32564
32598
  constructor({
32565
32599
  phi = 0,
32566
32600
  theta = 0,
32567
- radius: radius2 = 1,
32601
+ radius = 1,
32568
32602
  bearing: bearing2,
32569
32603
  pitch,
32570
32604
  altitude,
@@ -32576,7 +32610,7 @@ class SphericalCoordinates {
32576
32610
  _defineProperty$e(this, "radiusScale", void 0);
32577
32611
  this.phi = phi;
32578
32612
  this.theta = theta;
32579
- this.radius = radius2 || altitude || 1;
32613
+ this.radius = radius || altitude || 1;
32580
32614
  this.radiusScale = radiusScale || 1;
32581
32615
  if (bearing2 !== void 0) {
32582
32616
  this.bearing = bearing2;
@@ -32628,8 +32662,8 @@ class SphericalCoordinates {
32628
32662
  get z() {
32629
32663
  return (this.radius - 1) * this.radiusScale;
32630
32664
  }
32631
- set(radius2, phi, theta) {
32632
- this.radius = radius2;
32665
+ set(radius, phi, theta) {
32666
+ this.radius = radius;
32633
32667
  this.phi = phi;
32634
32668
  this.theta = theta;
32635
32669
  return this.check();
@@ -35127,7 +35161,7 @@ class ConeGeometry extends TruncatedConeGeometry {
35127
35161
  let props2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
35128
35162
  const {
35129
35163
  id = uid("cone-geometry"),
35130
- radius: radius2 = 1,
35164
+ radius = 1,
35131
35165
  cap = true
35132
35166
  } = props2;
35133
35167
  super({
@@ -35136,7 +35170,7 @@ class ConeGeometry extends TruncatedConeGeometry {
35136
35170
  topRadius: 0,
35137
35171
  topCap: Boolean(cap),
35138
35172
  bottomCap: Boolean(cap),
35139
- bottomRadius: radius2
35173
+ bottomRadius: radius
35140
35174
  });
35141
35175
  }
35142
35176
  }
@@ -35183,13 +35217,13 @@ class CylinderGeometry extends TruncatedConeGeometry {
35183
35217
  let props2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
35184
35218
  const {
35185
35219
  id = uid("cylinder-geometry"),
35186
- radius: radius2 = 1
35220
+ radius = 1
35187
35221
  } = props2;
35188
35222
  super({
35189
35223
  ...props2,
35190
35224
  id,
35191
- bottomRadius: radius2,
35192
- topRadius: radius2
35225
+ bottomRadius: radius,
35226
+ topRadius: radius
35193
35227
  });
35194
35228
  }
35195
35229
  }
@@ -35537,7 +35571,7 @@ function tesselateSphere(props2) {
35537
35571
  nlong = 10
35538
35572
  } = props2;
35539
35573
  let {
35540
- radius: radius2 = 1
35574
+ radius = 1
35541
35575
  } = props2;
35542
35576
  const startLat = 0;
35543
35577
  const endLat = Math.PI;
@@ -35546,9 +35580,9 @@ function tesselateSphere(props2) {
35546
35580
  const endLong = 2 * Math.PI;
35547
35581
  const longRange = endLong - startLong;
35548
35582
  const numVertices = (nlat + 1) * (nlong + 1);
35549
- if (typeof radius2 === "number") {
35550
- const value = radius2;
35551
- radius2 = (n1, n2, n3, u, v) => value;
35583
+ if (typeof radius === "number") {
35584
+ const value = radius;
35585
+ radius = (n1, n2, n3, u, v) => value;
35552
35586
  }
35553
35587
  const positions = new Float32Array(numVertices * 3);
35554
35588
  const normals = new Float32Array(numVertices * 3);
@@ -35571,7 +35605,7 @@ function tesselateSphere(props2) {
35571
35605
  const ux = cosTheta * sinPhi;
35572
35606
  const uy = cosPhi;
35573
35607
  const uz = sinTheta * sinPhi;
35574
- const r2 = radius2(ux, uy, uz, u, v);
35608
+ const r2 = radius(ux, uy, uz, u, v);
35575
35609
  positions[i3 + 0] = r2 * ux;
35576
35610
  positions[i3 + 1] = r2 * uy;
35577
35611
  positions[i3 + 2] = r2 * uz;
@@ -36090,8 +36124,8 @@ const project32 = {
36090
36124
  function createMat4$1() {
36091
36125
  return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
36092
36126
  }
36093
- function transformVector$1(matrix2, vector) {
36094
- const result = transformMat4([], vector, matrix2);
36127
+ function transformVector$1(matrix, vector) {
36128
+ const result = transformMat4([], vector, matrix);
36095
36129
  scale$2(result, result, 1 / result[3]);
36096
36130
  return result;
36097
36131
  }
@@ -37578,7 +37612,7 @@ function createProjectionMatrix({
37578
37612
  far
37579
37613
  }) {
37580
37614
  const aspect = width / height;
37581
- const matrix2 = orthographic2 ? new Matrix4().orthographic({
37615
+ const matrix = orthographic2 ? new Matrix4().orthographic({
37582
37616
  fovy: fovyRadians,
37583
37617
  aspect,
37584
37618
  focalDistance,
@@ -37599,10 +37633,10 @@ function createProjectionMatrix({
37599
37633
  } = padding;
37600
37634
  const offsetX = clamp$3((left + width - right) / 2, 0, width) - width / 2;
37601
37635
  const offsetY = clamp$3((top + height - bottom) / 2, 0, height) - height / 2;
37602
- matrix2[8] -= offsetX * 2 / width;
37603
- matrix2[9] += offsetY * 2 / height;
37636
+ matrix[8] -= offsetX * 2 / width;
37637
+ matrix[9] += offsetY * 2 / height;
37604
37638
  }
37605
- return matrix2;
37639
+ return matrix;
37606
37640
  }
37607
37641
  class Viewport {
37608
37642
  constructor(opts2 = {}) {
@@ -41992,7 +42026,7 @@ class DeckPicker {
41992
42026
  viewports,
41993
42027
  x: x2,
41994
42028
  y: y2,
41995
- radius: radius2 = 0,
42029
+ radius = 0,
41996
42030
  depth = 1,
41997
42031
  mode = "query",
41998
42032
  unproject3D,
@@ -42015,7 +42049,7 @@ class DeckPicker {
42015
42049
  this._resizeBuffer();
42016
42050
  const devicePixelRange = cssToDevicePixels(this.gl, [x2, y2], true);
42017
42051
  const devicePixel = [devicePixelRange.x + Math.floor(devicePixelRange.width / 2), devicePixelRange.y + Math.floor(devicePixelRange.height / 2)];
42018
- const deviceRadius = Math.round(radius2 * pixelRatio);
42052
+ const deviceRadius = Math.round(radius * pixelRatio);
42019
42053
  const {
42020
42054
  width,
42021
42055
  height
@@ -42028,10 +42062,10 @@ class DeckPicker {
42028
42062
  deviceHeight: height
42029
42063
  });
42030
42064
  const cullRect = {
42031
- x: x2 - radius2,
42032
- y: y2 - radius2,
42033
- width: radius2 * 2 + 1,
42034
- height: radius2 * 2 + 1
42065
+ x: x2 - radius,
42066
+ y: y2 - radius,
42067
+ width: radius * 2 + 1,
42068
+ height: radius * 2 + 1
42035
42069
  };
42036
42070
  let infos;
42037
42071
  const result = [];
@@ -42402,10 +42436,10 @@ var hammer$1 = { exports: {} };
42402
42436
  var merge2 = deprecate(function merge3(dest, src2) {
42403
42437
  return extend(dest, src2, true);
42404
42438
  }, "merge", "Use `assign`.");
42405
- function inherit(child2, base, properties) {
42439
+ function inherit(child, base, properties) {
42406
42440
  var baseP = base.prototype, childP;
42407
- childP = child2.prototype = Object.create(baseP);
42408
- childP.constructor = child2;
42441
+ childP = child.prototype = Object.create(baseP);
42442
+ childP.constructor = child;
42409
42443
  childP._super = baseP;
42410
42444
  if (properties) {
42411
42445
  assign2(childP, properties);
@@ -46163,9 +46197,9 @@ function padArrayChunk(options) {
46163
46197
  }
46164
46198
  let i2 = sourceLength;
46165
46199
  while (i2 < targetLength) {
46166
- const datum2 = getData(i2, source);
46200
+ const datum = getData(i2, source);
46167
46201
  for (let j = 0; j < size; j++) {
46168
- target[start + i2] = datum2[j] || 0;
46202
+ target[start + i2] = datum[j] || 0;
46169
46203
  i2++;
46170
46204
  }
46171
46205
  }
@@ -49532,8 +49566,8 @@ class GlobeViewport extends Viewport {
49532
49566
  };
49533
49567
  }
49534
49568
  }
49535
- function transformVector(matrix2, vector) {
49536
- const result = transformMat4([], vector, matrix2);
49569
+ function transformVector(matrix, vector) {
49570
+ const result = transformMat4([], vector, matrix);
49537
49571
  scale$2(result, result, 1 / result[3]);
49538
49572
  return result;
49539
49573
  }
@@ -50505,27 +50539,27 @@ function createMesh(bounds2, resolution) {
50505
50539
  const indices = new Uint32Array(vertexCount);
50506
50540
  const texCoords = new Float32Array(uCount * vCount * 2);
50507
50541
  const positions = new Float64Array(uCount * vCount * 3);
50508
- let vertex2 = 0;
50542
+ let vertex = 0;
50509
50543
  let index2 = 0;
50510
50544
  for (let u = 0; u < uCount; u++) {
50511
50545
  const ut = u / (uCount - 1);
50512
50546
  for (let v = 0; v < vCount; v++) {
50513
50547
  const vt = v / (vCount - 1);
50514
50548
  const p = interpolateQuad(bounds2, ut, vt);
50515
- positions[vertex2 * 3 + 0] = p[0];
50516
- positions[vertex2 * 3 + 1] = p[1];
50517
- positions[vertex2 * 3 + 2] = p[2] || 0;
50518
- texCoords[vertex2 * 2 + 0] = ut;
50519
- texCoords[vertex2 * 2 + 1] = 1 - vt;
50549
+ positions[vertex * 3 + 0] = p[0];
50550
+ positions[vertex * 3 + 1] = p[1];
50551
+ positions[vertex * 3 + 2] = p[2] || 0;
50552
+ texCoords[vertex * 2 + 0] = ut;
50553
+ texCoords[vertex * 2 + 1] = 1 - vt;
50520
50554
  if (u > 0 && v > 0) {
50521
- indices[index2++] = vertex2 - vCount;
50522
- indices[index2++] = vertex2 - vCount - 1;
50523
- indices[index2++] = vertex2 - 1;
50524
- indices[index2++] = vertex2 - vCount;
50525
- indices[index2++] = vertex2 - 1;
50526
- indices[index2++] = vertex2;
50555
+ indices[index2++] = vertex - vCount;
50556
+ indices[index2++] = vertex - vCount - 1;
50557
+ indices[index2++] = vertex - 1;
50558
+ indices[index2++] = vertex - vCount;
50559
+ indices[index2++] = vertex - 1;
50560
+ indices[index2++] = vertex;
50527
50561
  }
50528
- vertex2++;
50562
+ vertex++;
50529
50563
  }
50530
50564
  }
50531
50565
  return {
@@ -52723,7 +52757,7 @@ class ColumnGeometry extends Geometry {
52723
52757
  }
52724
52758
  function tesselateColumn(props2) {
52725
52759
  const {
52726
- radius: radius2,
52760
+ radius,
52727
52761
  height = 1,
52728
52762
  nradial = 10
52729
52763
  } = props2;
@@ -52750,8 +52784,8 @@ function tesselateColumn(props2) {
52750
52784
  const sin2 = Math.sin(a2);
52751
52785
  const cos2 = Math.cos(a2);
52752
52786
  for (let k = 0; k < 2; k++) {
52753
- positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 * radius2;
52754
- positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 * radius2;
52787
+ positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 * radius;
52788
+ positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 * radius;
52755
52789
  positions[i2 + 2] = (1 / 2 - k) * height;
52756
52790
  normals[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2;
52757
52791
  normals[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2;
@@ -52769,8 +52803,8 @@ function tesselateColumn(props2) {
52769
52803
  const vertexIndex = (v + nradial) % nradial;
52770
52804
  const sin2 = Math.sin(a2);
52771
52805
  const cos2 = Math.cos(a2);
52772
- positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 * radius2;
52773
- positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 * radius2;
52806
+ positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 * radius;
52807
+ positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 * radius;
52774
52808
  positions[i2 + 2] = height / 2;
52775
52809
  normals[i2 + 2] = 1;
52776
52810
  i2 += 3;
@@ -53006,7 +53040,7 @@ class ColumnLayer extends Layer {
53006
53040
  wireframe,
53007
53041
  offset: offset5,
53008
53042
  coverage,
53009
- radius: radius2,
53043
+ radius,
53010
53044
  angle: angle2
53011
53045
  } = this.props;
53012
53046
  const {
@@ -53016,7 +53050,7 @@ class ColumnLayer extends Layer {
53016
53050
  edgeDistance
53017
53051
  } = this.state;
53018
53052
  model.setUniforms(uniforms).setUniforms({
53019
- radius: radius2,
53053
+ radius,
53020
53054
  angle: angle2 / 180 * Math.PI,
53021
53055
  offset: offset5,
53022
53056
  extruded,
@@ -55048,13 +55082,13 @@ var tinySdf = { exports: {} };
55048
55082
  tinySdf.exports = TinySDF;
55049
55083
  tinySdf.exports.default = TinySDF;
55050
55084
  var INF = 1e20;
55051
- function TinySDF(fontSize, buffer2, radius2, cutoff, fontFamily, fontWeight) {
55085
+ function TinySDF(fontSize, buffer2, radius, cutoff, fontFamily, fontWeight) {
55052
55086
  this.fontSize = fontSize || 24;
55053
55087
  this.buffer = buffer2 === void 0 ? 3 : buffer2;
55054
55088
  this.cutoff = cutoff || 0.25;
55055
55089
  this.fontFamily = fontFamily || "sans-serif";
55056
55090
  this.fontWeight = fontWeight || "normal";
55057
- this.radius = radius2 || 8;
55091
+ this.radius = radius || 8;
55058
55092
  var size = this.size = this.fontSize + this.buffer * 2;
55059
55093
  var gridSize = size + this.buffer * 2;
55060
55094
  this.canvas = document.createElement("canvas");
@@ -55094,10 +55128,10 @@ function prepareGrids(imgData, width, height, glyphWidth, glyphHeight, gridOuter
55094
55128
  }
55095
55129
  }
55096
55130
  }
55097
- function extractAlpha(alphaChannel, width, height, gridOuter, gridInner, radius2, cutoff) {
55131
+ function extractAlpha(alphaChannel, width, height, gridOuter, gridInner, radius, cutoff) {
55098
55132
  for (var i2 = 0; i2 < width * height; i2++) {
55099
55133
  var d = Math.sqrt(gridOuter[i2]) - Math.sqrt(gridInner[i2]);
55100
- alphaChannel[i2] = Math.round(255 - 255 * (d / radius2 + cutoff));
55134
+ alphaChannel[i2] = Math.round(255 - 255 * (d / radius + cutoff));
55101
55135
  }
55102
55136
  }
55103
55137
  TinySDF.prototype._draw = function(char, getMetrics) {
@@ -55550,7 +55584,7 @@ class FontAtlasManager {
55550
55584
  fontSize,
55551
55585
  buffer: buffer2,
55552
55586
  sdf,
55553
- radius: radius2,
55587
+ radius,
55554
55588
  cutoff
55555
55589
  } = this.props;
55556
55590
  let canvas = cachedFontAtlas && cachedFontAtlas.data;
@@ -55584,7 +55618,7 @@ class FontAtlasManager {
55584
55618
  }
55585
55619
  setTextStyle(ctx, fontFamily, fontSize, fontWeight);
55586
55620
  if (sdf) {
55587
- const tinySDF = new TinySDF$1(fontSize, buffer2, radius2, cutoff, fontFamily, fontWeight);
55621
+ const tinySDF = new TinySDF$1(fontSize, buffer2, radius, cutoff, fontFamily, fontWeight);
55588
55622
  const imageData = ctx.getImageData(0, 0, tinySDF.size, tinySDF.size);
55589
55623
  for (const char of characterSet) {
55590
55624
  populateAlphaChannel(tinySDF.draw(char), imageData);
@@ -55611,11 +55645,11 @@ class FontAtlasManager {
55611
55645
  fontSize,
55612
55646
  buffer: buffer2,
55613
55647
  sdf,
55614
- radius: radius2,
55648
+ radius,
55615
55649
  cutoff
55616
55650
  } = this.props;
55617
55651
  if (sdf) {
55618
- return "".concat(fontFamily, " ").concat(fontWeight, " ").concat(fontSize, " ").concat(buffer2, " ").concat(radius2, " ").concat(cutoff);
55652
+ return "".concat(fontFamily, " ").concat(fontWeight, " ").concat(fontSize, " ").concat(buffer2, " ").concat(radius, " ").concat(cutoff);
55619
55653
  }
55620
55654
  return "".concat(fontFamily, " ").concat(fontWeight, " ").concat(fontSize, " ").concat(buffer2);
55621
55655
  }
@@ -56923,9 +56957,6 @@ class GeoCellLayer extends CompositeLayer {
56923
56957
  }
56924
56958
  _defineProperty$f(GeoCellLayer, "layerName", "GeoCellLayer");
56925
56959
  _defineProperty$f(GeoCellLayer, "defaultProps", defaultProps$t);
56926
- function commonjsRequire(path) {
56927
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
56928
- }
56929
56960
  var long = { exports: {} };
56930
56961
  (function(module2) {
56931
56962
  /**
@@ -57898,16 +57929,16 @@ class AxisAlignedBoundingBox {
57898
57929
  const scratchVector$5 = new Vector3();
57899
57930
  const scratchVector2$2 = new Vector3();
57900
57931
  class BoundingSphere {
57901
- constructor(center2 = [0, 0, 0], radius2 = 0) {
57932
+ constructor(center2 = [0, 0, 0], radius = 0) {
57902
57933
  _defineProperty$f(this, "center", void 0);
57903
57934
  _defineProperty$f(this, "radius", void 0);
57904
57935
  this.radius = -0;
57905
57936
  this.center = new Vector3();
57906
- this.fromCenterRadius(center2, radius2);
57937
+ this.fromCenterRadius(center2, radius);
57907
57938
  }
57908
- fromCenterRadius(center2, radius2) {
57939
+ fromCenterRadius(center2, radius) {
57909
57940
  this.center.from(center2);
57910
- this.radius = radius2;
57941
+ this.radius = radius;
57911
57942
  return this;
57912
57943
  }
57913
57944
  fromCornerPoints(corner, oppositeCorner) {
@@ -57943,9 +57974,9 @@ class BoundingSphere {
57943
57974
  }
57944
57975
  expand(point2) {
57945
57976
  const scratchPoint = scratchVector$5.from(point2);
57946
- const radius2 = scratchPoint.subtract(this.center).magnitude();
57947
- if (radius2 > this.radius) {
57948
- this.radius = radius2;
57977
+ const radius = scratchPoint.subtract(this.center).magnitude();
57978
+ if (radius > this.radius) {
57979
+ this.radius = radius;
57949
57980
  }
57950
57981
  return this;
57951
57982
  }
@@ -57966,13 +57997,13 @@ class BoundingSphere {
57966
57997
  }
57967
57998
  intersectPlane(plane) {
57968
57999
  const center2 = this.center;
57969
- const radius2 = this.radius;
58000
+ const radius = this.radius;
57970
58001
  const normal = plane.normal;
57971
58002
  const distanceToPlane = normal.dot(center2) + plane.distance;
57972
- if (distanceToPlane < -radius2) {
58003
+ if (distanceToPlane < -radius) {
57973
58004
  return INTERSECTION.OUTSIDE;
57974
58005
  }
57975
- if (distanceToPlane < radius2) {
58006
+ if (distanceToPlane < radius) {
57976
58007
  return INTERSECTION.INTERSECTING;
57977
58008
  }
57978
58009
  return INTERSECTION.INSIDE;
@@ -58226,7 +58257,7 @@ class CullingVolume {
58226
58257
  fromBoundingSphere(boundingSphere) {
58227
58258
  this.planes.length = 2 * faces.length;
58228
58259
  const center2 = boundingSphere.center;
58229
- const radius2 = boundingSphere.radius;
58260
+ const radius = boundingSphere.radius;
58230
58261
  let planeIndex = 0;
58231
58262
  for (const faceNormal of faces) {
58232
58263
  let plane0 = this.planes[planeIndex];
@@ -58237,10 +58268,10 @@ class CullingVolume {
58237
58268
  if (!plane1) {
58238
58269
  plane1 = this.planes[planeIndex + 1] = new Plane();
58239
58270
  }
58240
- const plane0Center = scratchPlaneCenter.copy(faceNormal).scale(-radius2).add(center2);
58271
+ const plane0Center = scratchPlaneCenter.copy(faceNormal).scale(-radius).add(center2);
58241
58272
  -faceNormal.dot(plane0Center);
58242
58273
  plane0.fromPointNormal(plane0Center, faceNormal);
58243
- const plane1Center = scratchPlaneCenter.copy(faceNormal).scale(radius2).add(center2);
58274
+ const plane1Center = scratchPlaneCenter.copy(faceNormal).scale(radius).add(center2);
58244
58275
  const negatedFaceNormal = scratchPlaneNormal.copy(faceNormal).negate();
58245
58276
  -negatedFaceNormal.dot(plane1Center);
58246
58277
  plane1.fromPointNormal(plane1Center, negatedFaceNormal);
@@ -58310,7 +58341,7 @@ const scratchUnitary = new Matrix3();
58310
58341
  const scratchDiagonal = new Matrix3();
58311
58342
  const jMatrix = new Matrix3();
58312
58343
  const jMatrixTranspose = new Matrix3();
58313
- function computeEigenDecomposition(matrix2, result = {}) {
58344
+ function computeEigenDecomposition(matrix, result = {}) {
58314
58345
  const EIGEN_TOLERANCE = _MathUtils.EPSILON20;
58315
58346
  const EIGEN_MAX_SWEEPS = 10;
58316
58347
  let count2 = 0;
@@ -58318,7 +58349,7 @@ function computeEigenDecomposition(matrix2, result = {}) {
58318
58349
  const unitaryMatrix = scratchUnitary;
58319
58350
  const diagonalMatrix = scratchDiagonal;
58320
58351
  unitaryMatrix.identity();
58321
- diagonalMatrix.copy(matrix2);
58352
+ diagonalMatrix.copy(matrix);
58322
58353
  const epsilon3 = EIGEN_TOLERANCE * computeFrobeniusNorm(diagonalMatrix);
58323
58354
  while (sweep < EIGEN_MAX_SWEEPS && offDiagonalFrobeniusNorm(diagonalMatrix) > epsilon3) {
58324
58355
  shurDecomposition(diagonalMatrix, jMatrix);
@@ -58335,30 +58366,30 @@ function computeEigenDecomposition(matrix2, result = {}) {
58335
58366
  result.diagonal = diagonalMatrix.toTarget(result.diagonal);
58336
58367
  return result;
58337
58368
  }
58338
- function computeFrobeniusNorm(matrix2) {
58369
+ function computeFrobeniusNorm(matrix) {
58339
58370
  let norm = 0;
58340
58371
  for (let i2 = 0; i2 < 9; ++i2) {
58341
- const temp2 = matrix2[i2];
58372
+ const temp2 = matrix[i2];
58342
58373
  norm += temp2 * temp2;
58343
58374
  }
58344
58375
  return Math.sqrt(norm);
58345
58376
  }
58346
58377
  const rowVal = [1, 0, 0];
58347
58378
  const colVal = [2, 2, 1];
58348
- function offDiagonalFrobeniusNorm(matrix2) {
58379
+ function offDiagonalFrobeniusNorm(matrix) {
58349
58380
  let norm = 0;
58350
58381
  for (let i2 = 0; i2 < 3; ++i2) {
58351
- const temp2 = matrix2[scratchMatrix.getElementIndex(colVal[i2], rowVal[i2])];
58382
+ const temp2 = matrix[scratchMatrix.getElementIndex(colVal[i2], rowVal[i2])];
58352
58383
  norm += 2 * temp2 * temp2;
58353
58384
  }
58354
58385
  return Math.sqrt(norm);
58355
58386
  }
58356
- function shurDecomposition(matrix2, result) {
58387
+ function shurDecomposition(matrix, result) {
58357
58388
  const tolerance = _MathUtils.EPSILON15;
58358
58389
  let maxDiagonal = 0;
58359
58390
  let rotAxis = 1;
58360
58391
  for (let i2 = 0; i2 < 3; ++i2) {
58361
- const temp2 = Math.abs(matrix2[scratchMatrix.getElementIndex(colVal[i2], rowVal[i2])]);
58392
+ const temp2 = Math.abs(matrix[scratchMatrix.getElementIndex(colVal[i2], rowVal[i2])]);
58362
58393
  if (temp2 > maxDiagonal) {
58363
58394
  rotAxis = i2;
58364
58395
  maxDiagonal = temp2;
@@ -58368,10 +58399,10 @@ function shurDecomposition(matrix2, result) {
58368
58399
  const q = colVal[rotAxis];
58369
58400
  let c2 = 1;
58370
58401
  let s2 = 0;
58371
- if (Math.abs(matrix2[scratchMatrix.getElementIndex(q, p)]) > tolerance) {
58372
- const qq = matrix2[scratchMatrix.getElementIndex(q, q)];
58373
- const pp = matrix2[scratchMatrix.getElementIndex(p, p)];
58374
- const qp = matrix2[scratchMatrix.getElementIndex(q, p)];
58402
+ if (Math.abs(matrix[scratchMatrix.getElementIndex(q, p)]) > tolerance) {
58403
+ const qq = matrix[scratchMatrix.getElementIndex(q, q)];
58404
+ const pp = matrix[scratchMatrix.getElementIndex(p, p)];
58405
+ const qp = matrix[scratchMatrix.getElementIndex(q, p)];
58375
58406
  const tau2 = (qq - pp) / 2 / qp;
58376
58407
  let t2;
58377
58408
  if (tau2 < 0) {
@@ -58533,8 +58564,8 @@ class OSMNode {
58533
58564
  }
58534
58565
  this.selected = false;
58535
58566
  this.childVisible = true;
58536
- for (const child2 of this.children) {
58537
- child2.update(params);
58567
+ for (const child of this.children) {
58568
+ child.update(params);
58538
58569
  }
58539
58570
  return true;
58540
58571
  }
@@ -59176,8 +59207,8 @@ function updateTileStateReplace(allTiles) {
59176
59207
  for (const tile of sortedTiles) {
59177
59208
  tile.isVisible = Boolean(tile.state & TILE_STATE_VISIBLE);
59178
59209
  if (tile.children && (tile.isVisible || tile.state & TILE_STATE_VISITED)) {
59179
- for (const child2 of tile.children) {
59180
- child2.state = TILE_STATE_VISITED;
59210
+ for (const child of tile.children) {
59211
+ child.state = TILE_STATE_VISITED;
59181
59212
  }
59182
59213
  } else if (tile.isSelected) {
59183
59214
  getPlaceholderInChildren(tile);
@@ -59196,11 +59227,11 @@ function getPlaceholderInAncestors(startTile) {
59196
59227
  return false;
59197
59228
  }
59198
59229
  function getPlaceholderInChildren(tile) {
59199
- for (const child2 of tile.children) {
59200
- if (child2.isLoaded || child2.content) {
59201
- child2.state |= TILE_STATE_VISIBLE;
59230
+ for (const child of tile.children) {
59231
+ if (child.isLoaded || child.content) {
59232
+ child.state |= TILE_STATE_VISIBLE;
59202
59233
  } else {
59203
- getPlaceholderInChildren(child2);
59234
+ getPlaceholderInChildren(child);
59204
59235
  }
59205
59236
  }
59206
59237
  }
@@ -71458,18 +71489,18 @@ const MATRIX_ATTRIBUTES = {
71458
71489
  }
71459
71490
  const instanceModelMatrixData = attribute.value;
71460
71491
  if (attribute.constant) {
71461
- let matrix2;
71492
+ let matrix;
71462
71493
  if (hasMatrix) {
71463
71494
  modelMatrix.set(getTransformMatrix);
71464
- matrix2 = getExtendedMat3FromMat4(modelMatrix);
71495
+ matrix = getExtendedMat3FromMat4(modelMatrix);
71465
71496
  } else {
71466
- matrix2 = valueArray;
71497
+ matrix = valueArray;
71467
71498
  const orientation = getOrientation;
71468
71499
  const scale2 = getScale2;
71469
- calculateTransformMatrix(matrix2, orientation, scale2);
71470
- matrix2.set(getTranslation, 9);
71500
+ calculateTransformMatrix(matrix, orientation, scale2);
71501
+ matrix.set(getTranslation, 9);
71471
71502
  }
71472
- attribute.value = new Float32Array(matrix2);
71503
+ attribute.value = new Float32Array(matrix);
71473
71504
  } else {
71474
71505
  let i2 = startRow * attribute.size;
71475
71506
  const {
@@ -71478,29 +71509,29 @@ const MATRIX_ATTRIBUTES = {
71478
71509
  } = createIterable(data, startRow, endRow);
71479
71510
  for (const object2 of iterable) {
71480
71511
  objectInfo.index++;
71481
- let matrix2;
71512
+ let matrix;
71482
71513
  if (hasMatrix) {
71483
71514
  modelMatrix.set(constantMatrix ? getTransformMatrix : getTransformMatrix(object2, objectInfo));
71484
- matrix2 = getExtendedMat3FromMat4(modelMatrix);
71515
+ matrix = getExtendedMat3FromMat4(modelMatrix);
71485
71516
  } else {
71486
- matrix2 = valueArray;
71517
+ matrix = valueArray;
71487
71518
  const orientation = constantOrientation ? getOrientation : getOrientation(object2, objectInfo);
71488
71519
  const scale2 = constantScale ? getScale2 : getScale2(object2, objectInfo);
71489
- calculateTransformMatrix(matrix2, orientation, scale2);
71490
- matrix2.set(constantTranslation ? getTranslation : getTranslation(object2, objectInfo), 9);
71520
+ calculateTransformMatrix(matrix, orientation, scale2);
71521
+ matrix.set(constantTranslation ? getTranslation : getTranslation(object2, objectInfo), 9);
71491
71522
  }
71492
- instanceModelMatrixData[i2++] = matrix2[0];
71493
- instanceModelMatrixData[i2++] = matrix2[1];
71494
- instanceModelMatrixData[i2++] = matrix2[2];
71495
- instanceModelMatrixData[i2++] = matrix2[3];
71496
- instanceModelMatrixData[i2++] = matrix2[4];
71497
- instanceModelMatrixData[i2++] = matrix2[5];
71498
- instanceModelMatrixData[i2++] = matrix2[6];
71499
- instanceModelMatrixData[i2++] = matrix2[7];
71500
- instanceModelMatrixData[i2++] = matrix2[8];
71501
- instanceModelMatrixData[i2++] = matrix2[9];
71502
- instanceModelMatrixData[i2++] = matrix2[10];
71503
- instanceModelMatrixData[i2++] = matrix2[11];
71523
+ instanceModelMatrixData[i2++] = matrix[0];
71524
+ instanceModelMatrixData[i2++] = matrix[1];
71525
+ instanceModelMatrixData[i2++] = matrix[2];
71526
+ instanceModelMatrixData[i2++] = matrix[3];
71527
+ instanceModelMatrixData[i2++] = matrix[4];
71528
+ instanceModelMatrixData[i2++] = matrix[5];
71529
+ instanceModelMatrixData[i2++] = matrix[6];
71530
+ instanceModelMatrixData[i2++] = matrix[7];
71531
+ instanceModelMatrixData[i2++] = matrix[8];
71532
+ instanceModelMatrixData[i2++] = matrix[9];
71533
+ instanceModelMatrixData[i2++] = matrix[10];
71534
+ instanceModelMatrixData[i2++] = matrix[11];
71504
71535
  }
71505
71536
  }
71506
71537
  }
@@ -71757,12 +71788,12 @@ class ScenegraphNode {
71757
71788
  this.scale = scale2;
71758
71789
  return this;
71759
71790
  }
71760
- setMatrix(matrix2) {
71791
+ setMatrix(matrix) {
71761
71792
  let copyMatrix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
71762
71793
  if (copyMatrix) {
71763
- this.matrix.copy(matrix2);
71794
+ this.matrix.copy(matrix);
71764
71795
  } else {
71765
- this.matrix = matrix2;
71796
+ this.matrix = matrix;
71766
71797
  }
71767
71798
  }
71768
71799
  setMatrixComponents(_ref3) {
@@ -71858,7 +71889,7 @@ class GroupNode extends ScenegraphNode {
71858
71889
  const {
71859
71890
  children = []
71860
71891
  } = props2;
71861
- log$2.assert(children.every((child2) => child2 instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
71892
+ log$2.assert(children.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
71862
71893
  super(props2);
71863
71894
  this.children = children;
71864
71895
  }
@@ -71866,18 +71897,18 @@ class GroupNode extends ScenegraphNode {
71866
71897
  for (var _len = arguments.length, children = new Array(_len), _key = 0; _key < _len; _key++) {
71867
71898
  children[_key] = arguments[_key];
71868
71899
  }
71869
- for (const child2 of children) {
71870
- if (Array.isArray(child2)) {
71871
- this.add(...child2);
71900
+ for (const child of children) {
71901
+ if (Array.isArray(child)) {
71902
+ this.add(...child);
71872
71903
  } else {
71873
- this.children.push(child2);
71904
+ this.children.push(child);
71874
71905
  }
71875
71906
  }
71876
71907
  return this;
71877
71908
  }
71878
- remove(child2) {
71909
+ remove(child) {
71879
71910
  const children = this.children;
71880
- const indexOf = children.indexOf(child2);
71911
+ const indexOf = children.indexOf(child);
71881
71912
  if (indexOf > -1) {
71882
71913
  children.splice(indexOf, 1);
71883
71914
  }
@@ -71888,7 +71919,7 @@ class GroupNode extends ScenegraphNode {
71888
71919
  return this;
71889
71920
  }
71890
71921
  delete() {
71891
- this.children.forEach((child2) => child2.delete());
71922
+ this.children.forEach((child) => child.delete());
71892
71923
  this.removeAll();
71893
71924
  super.delete();
71894
71925
  }
@@ -71897,13 +71928,13 @@ class GroupNode extends ScenegraphNode {
71897
71928
  worldMatrix = new Matrix4()
71898
71929
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
71899
71930
  const modelMatrix2 = new Matrix4(worldMatrix).multiplyRight(this.matrix);
71900
- for (const child2 of this.children) {
71901
- if (child2 instanceof GroupNode) {
71902
- child2.traverse(visitor, {
71931
+ for (const child of this.children) {
71932
+ if (child instanceof GroupNode) {
71933
+ child.traverse(visitor, {
71903
71934
  worldMatrix: modelMatrix2
71904
71935
  });
71905
71936
  } else {
71906
- visitor(child2, {
71937
+ visitor(child, {
71907
71938
  worldMatrix: modelMatrix2
71908
71939
  });
71909
71940
  }
@@ -72394,7 +72425,7 @@ class GLTFInstantiator {
72394
72425
  createNode(gltfNode) {
72395
72426
  if (!gltfNode._node) {
72396
72427
  const gltfChildren = gltfNode.children || [];
72397
- const children = gltfChildren.map((child2) => this.createNode(child2));
72428
+ const children = gltfChildren.map((child) => this.createNode(child));
72398
72429
  if (gltfNode.mesh) {
72399
72430
  children.push(this.createMesh(gltfNode.mesh));
72400
72431
  }
@@ -73229,14 +73260,14 @@ class GLTFScenegraph {
73229
73260
  addNode(node) {
73230
73261
  const {
73231
73262
  meshIndex,
73232
- matrix: matrix2
73263
+ matrix
73233
73264
  } = node;
73234
73265
  this.json.nodes = this.json.nodes || [];
73235
73266
  const nodeData = {
73236
73267
  mesh: meshIndex
73237
73268
  };
73238
- if (matrix2) {
73239
- nodeData.matrix = matrix2;
73269
+ if (matrix) {
73270
+ nodeData.matrix = matrix;
73240
73271
  }
73241
73272
  this.json.nodes.push(nodeData);
73242
73273
  return this.json.nodes.length - 1;
@@ -73937,12 +73968,12 @@ class Float64 extends Float {
73937
73968
  }
73938
73969
  _Symbol$toStringTag7 = Symbol.toStringTag;
73939
73970
  class FixedSizeList extends DataType {
73940
- constructor(listSize, child2) {
73971
+ constructor(listSize, child) {
73941
73972
  super();
73942
73973
  _defineProperty$f(this, "listSize", void 0);
73943
73974
  _defineProperty$f(this, "children", void 0);
73944
73975
  this.listSize = listSize;
73945
- this.children = [child2];
73976
+ this.children = [child];
73946
73977
  }
73947
73978
  get typeId() {
73948
73979
  return Type.FixedSizeList;
@@ -74945,7 +74976,7 @@ class GLTFV1Normalizer {
74945
74976
  }
74946
74977
  _convertNodeIds(node) {
74947
74978
  if (node.children) {
74948
- node.children = node.children.map((child2) => this._convertIdToIndex(child2, "node"));
74979
+ node.children = node.children.map((child) => this._convertIdToIndex(child, "node"));
74949
74980
  }
74950
74981
  if (node.meshes) {
74951
74982
  node.meshes = node.meshes.map((mesh) => this._convertIdToIndex(mesh, "mesh"));
@@ -75161,7 +75192,7 @@ class GLTFPostProcessor {
75161
75192
  _resolveNode(node, index2) {
75162
75193
  node.id = node.id || "node-".concat(index2);
75163
75194
  if (node.children) {
75164
- node.children = node.children.map((child2) => this.getNode(child2));
75195
+ node.children = node.children.map((child) => this.getNode(child));
75165
75196
  }
75166
75197
  if (node.mesh !== void 0) {
75167
75198
  node.mesh = this.getMesh(node.mesh);
@@ -76713,9 +76744,9 @@ function getZoomFromBoundingVolume(boundingVolume, cartorgraphicCenter) {
76713
76744
  return Math.log2(WGS84_RADIUS_Z / (obbSize + cartorgraphicCenter[2]));
76714
76745
  } else if (boundingVolume instanceof BoundingSphere) {
76715
76746
  const {
76716
- radius: radius2
76747
+ radius
76717
76748
  } = boundingVolume;
76718
- return Math.log2(WGS84_RADIUS_Z / (radius2 + cartorgraphicCenter[2]));
76749
+ return Math.log2(WGS84_RADIUS_Z / (radius + cartorgraphicCenter[2]));
76719
76750
  } else if (boundingVolume.width && boundingVolume.height) {
76720
76751
  const {
76721
76752
  width,
@@ -76798,8 +76829,8 @@ function createBoundingVolume(boundingVolumeHeader, transform2, result) {
76798
76829
  const northWest = Ellipsoid.WGS84.cartographicToCartesian([degrees$1(west), degrees$1(north), minHeight], scratchNorthWest);
76799
76830
  const southEast = Ellipsoid.WGS84.cartographicToCartesian([degrees$1(east), degrees$1(south), maxHeight], scratchSouthEast);
76800
76831
  const centerInCartesian = new Vector3().addVectors(northWest, southEast).multiplyScalar(0.5);
76801
- const radius2 = new Vector3().subVectors(northWest, southEast).len() / 2;
76802
- return createSphere([centerInCartesian[0], centerInCartesian[1], centerInCartesian[2], radius2], new Matrix4());
76832
+ const radius = new Vector3().subVectors(northWest, southEast).len() / 2;
76833
+ return createSphere([centerInCartesian[0], centerInCartesian[1], centerInCartesian[2], radius], new Matrix4());
76803
76834
  }
76804
76835
  if (boundingVolumeHeader.sphere) {
76805
76836
  return createSphere(boundingVolumeHeader.sphere, transform2, result);
@@ -76843,13 +76874,13 @@ function createSphere(sphere, transform2, result) {
76843
76874
  transform2.transform(center2, center2);
76844
76875
  const scale2 = transform2.getScale(scratchScale);
76845
76876
  const uniformScale = Math.max(Math.max(scale2[0], scale2[1]), scale2[2]);
76846
- const radius2 = sphere[3] * uniformScale;
76877
+ const radius = sphere[3] * uniformScale;
76847
76878
  if (defined$3(result)) {
76848
76879
  result.center = center2;
76849
- result.radius = radius2;
76880
+ result.radius = radius;
76850
76881
  return result;
76851
76882
  }
76852
- return new BoundingSphere(center2, radius2);
76883
+ return new BoundingSphere(center2, radius);
76853
76884
  }
76854
76885
  new Vector3();
76855
76886
  new Vector3();
@@ -77122,8 +77153,8 @@ class TilesetTraverser {
77122
77153
  }
77123
77154
  updateChildTiles(tile, frameState) {
77124
77155
  const children = tile.children;
77125
- for (const child2 of children) {
77126
- this.updateTile(child2, frameState);
77156
+ for (const child of children) {
77157
+ this.updateTile(child, frameState);
77127
77158
  }
77128
77159
  return true;
77129
77160
  }
@@ -77137,26 +77168,26 @@ class TilesetTraverser {
77137
77168
  const checkRefines = tile.refine === TILE_REFINEMENT.REPLACE && tile.hasRenderContent && !skipLevelOfDetail;
77138
77169
  let hasVisibleChild = false;
77139
77170
  let refines = true;
77140
- for (const child2 of children) {
77141
- child2._selectionDepth = depth;
77142
- if (child2.isVisibleAndInRequestVolume) {
77143
- if (stack2.find(child2)) {
77144
- stack2.delete(child2);
77171
+ for (const child of children) {
77172
+ child._selectionDepth = depth;
77173
+ if (child.isVisibleAndInRequestVolume) {
77174
+ if (stack2.find(child)) {
77175
+ stack2.delete(child);
77145
77176
  }
77146
- stack2.push(child2);
77177
+ stack2.push(child);
77147
77178
  hasVisibleChild = true;
77148
77179
  } else if (checkRefines || loadSiblings) {
77149
- this.loadTile(child2, frameState);
77150
- this.touchTile(child2, frameState);
77180
+ this.loadTile(child, frameState);
77181
+ this.touchTile(child, frameState);
77151
77182
  }
77152
77183
  if (checkRefines) {
77153
77184
  let childRefines;
77154
- if (!child2._inRequestVolume) {
77185
+ if (!child._inRequestVolume) {
77155
77186
  childRefines = false;
77156
- } else if (!child2.hasRenderContent) {
77157
- childRefines = this.executeEmptyTraversal(child2, frameState);
77187
+ } else if (!child.hasRenderContent) {
77188
+ childRefines = this.executeEmptyTraversal(child, frameState);
77158
77189
  } else {
77159
- childRefines = child2.contentAvailable;
77190
+ childRefines = child.contentAvailable;
77160
77191
  }
77161
77192
  refines = refines && childRefines;
77162
77193
  if (!refines) {
@@ -77233,9 +77264,9 @@ class TilesetTraverser {
77233
77264
  }
77234
77265
  anyChildrenVisible(tile, frameState) {
77235
77266
  let anyVisible = false;
77236
- for (const child2 of tile.children) {
77237
- child2.updateVisibility(frameState);
77238
- anyVisible = anyVisible || child2.isVisibleAndInRequestVolume;
77267
+ for (const child of tile.children) {
77268
+ child.updateVisibility(frameState);
77269
+ anyVisible = anyVisible || child.isVisibleAndInRequestVolume;
77239
77270
  }
77240
77271
  return anyVisible;
77241
77272
  }
@@ -77253,11 +77284,11 @@ class TilesetTraverser {
77253
77284
  const traverse = !tile.hasRenderContent && this.canTraverse(tile, frameState, false, true);
77254
77285
  if (traverse) {
77255
77286
  const children = tile.children;
77256
- for (const child2 of children) {
77257
- if (stack2.find(child2)) {
77258
- stack2.delete(child2);
77287
+ for (const child of children) {
77288
+ if (stack2.find(child)) {
77289
+ stack2.delete(child);
77259
77290
  }
77260
- stack2.push(child2);
77291
+ stack2.push(child);
77261
77292
  }
77262
77293
  } else if (!tile.contentAvailable) {
77263
77294
  allDescendantsLoaded = false;
@@ -77825,15 +77856,15 @@ class I3STilesetTraverser extends TilesetTraverser {
77825
77856
  const children = tile.header.children || [];
77826
77857
  const childTiles = tile.children;
77827
77858
  const tileset = tile.tileset;
77828
- for (const child2 of children) {
77829
- const extendedId = "".concat(child2.id, "-").concat(frameState.viewport.id);
77859
+ for (const child of children) {
77860
+ const extendedId = "".concat(child.id, "-").concat(frameState.viewport.id);
77830
77861
  const childTile = childTiles && childTiles.find((t2) => t2.id === extendedId);
77831
77862
  if (!childTile) {
77832
- let request = () => this._loadTile(child2.id, tileset);
77863
+ let request = () => this._loadTile(child.id, tileset);
77833
77864
  const cachedRequest = this._tileManager.find(extendedId);
77834
77865
  if (!cachedRequest) {
77835
77866
  if (tileset.tileset.nodePages) {
77836
- request = () => tileset.tileset.nodePagesTile.formTileFromNodePages(child2.id);
77867
+ request = () => tileset.tileset.nodePagesTile.formTileFromNodePages(child.id);
77837
77868
  }
77838
77869
  this._tileManager.add(request, extendedId, (header) => this._onTileLoad(header, tile, extendedId), frameState);
77839
77870
  } else {
@@ -78389,8 +78420,8 @@ class Tileset3D {
78389
78420
  }
78390
78421
  while (stack2.length > 0) {
78391
78422
  const tile = stack2.pop();
78392
- for (const child2 of tile.children) {
78393
- stack2.push(child2);
78423
+ for (const child of tile.children) {
78424
+ stack2.push(child);
78394
78425
  }
78395
78426
  this._destroyTile(tile);
78396
78427
  }
@@ -78402,8 +78433,8 @@ class Tileset3D {
78402
78433
  stack2.push(root2);
78403
78434
  while (stack2.length > 0) {
78404
78435
  tile = stack2.pop();
78405
- for (const child2 of tile.children) {
78406
- stack2.push(child2);
78436
+ for (const child of tile.children) {
78437
+ stack2.push(child);
78407
78438
  }
78408
78439
  if (tile !== root2) {
78409
78440
  this._destroyTile(tile);
@@ -84209,7 +84240,7 @@ function evaluateChildren(children, childProps) {
84209
84240
  return children(childProps);
84210
84241
  }
84211
84242
  if (Array.isArray(children)) {
84212
- return children.map((child2) => evaluateChildren(child2, childProps));
84243
+ return children.map((child) => evaluateChildren(child, childProps));
84213
84244
  }
84214
84245
  if (isComponent(children)) {
84215
84246
  if (isReactMap(children)) {
@@ -84222,16 +84253,16 @@ function evaluateChildren(children, childProps) {
84222
84253
  }
84223
84254
  return children;
84224
84255
  }
84225
- function isComponent(child2) {
84226
- return child2 && typeof child2 === "object" && "type" in child2 || false;
84256
+ function isComponent(child) {
84257
+ return child && typeof child === "object" && "type" in child || false;
84227
84258
  }
84228
- function isReactMap(child2) {
84229
- const componentClass = child2.type;
84259
+ function isReactMap(child) {
84260
+ const componentClass = child.type;
84230
84261
  const componentProps = componentClass && componentClass.defaultProps;
84231
84262
  return componentProps && componentProps.mapStyle;
84232
84263
  }
84233
- function needsDeckGLViewProps(child2) {
84234
- const componentClass = child2.type;
84264
+ function needsDeckGLViewProps(child) {
84265
+ const componentClass = child.type;
84235
84266
  return componentClass && componentClass.deckGLViewProps;
84236
84267
  }
84237
84268
  function wrapInView(node) {
@@ -84316,12 +84347,12 @@ function positionChildrenUnderViews({
84316
84347
  }
84317
84348
  const views = {};
84318
84349
  const defaultViewId = viewManager.views[0].id;
84319
- for (const child2 of children) {
84350
+ for (const child of children) {
84320
84351
  let viewId = defaultViewId;
84321
- let viewChildren = child2;
84322
- if (isComponent(child2) && inheritsFrom(child2.type, View)) {
84323
- viewId = child2.props.id || defaultViewId;
84324
- viewChildren = child2.props.children;
84352
+ let viewChildren = child;
84353
+ if (isComponent(child) && inheritsFrom(child.type, View)) {
84354
+ viewId = child.props.id || defaultViewId;
84355
+ viewChildren = child.props.children;
84325
84356
  }
84326
84357
  const viewport = viewManager.getViewport(viewId);
84327
84358
  const viewState = viewManager.getViewState(viewId);
@@ -86850,7 +86881,7 @@ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
86850
86881
  var slice = Array.prototype.slice;
86851
86882
  var toStr$2 = Object.prototype.toString;
86852
86883
  var funcType = "[object Function]";
86853
- var implementation$7 = function bind2(that2) {
86884
+ var implementation$7 = function bind2(that) {
86854
86885
  var target = this;
86855
86886
  if (typeof target !== "function" || toStr$2.call(target) !== funcType) {
86856
86887
  throw new TypeError(ERROR_MESSAGE + target);
@@ -86869,7 +86900,7 @@ var implementation$7 = function bind2(that2) {
86869
86900
  return this;
86870
86901
  } else {
86871
86902
  return target.apply(
86872
- that2,
86903
+ that,
86873
86904
  args.concat(slice.call(arguments))
86874
86905
  );
86875
86906
  }
@@ -98581,13 +98612,13 @@ function rotation(rotate2) {
98581
98612
  };
98582
98613
  return forward;
98583
98614
  }
98584
- function circleStream(stream, radius2, delta, direction, t0, t1) {
98615
+ function circleStream(stream, radius, delta, direction, t0, t1) {
98585
98616
  if (!delta)
98586
98617
  return;
98587
- var cosRadius = cos(radius2), sinRadius = sin(radius2), step = direction * delta;
98618
+ var cosRadius = cos(radius), sinRadius = sin(radius), step = direction * delta;
98588
98619
  if (t0 == null) {
98589
- t0 = radius2 + direction * tau;
98590
- t1 = radius2 - step / 2;
98620
+ t0 = radius + direction * tau;
98621
+ t1 = radius - step / 2;
98591
98622
  } else {
98592
98623
  t0 = circleRadius(cosRadius, t0);
98593
98624
  t1 = circleRadius(cosRadius, t1);
@@ -98602,17 +98633,17 @@ function circleStream(stream, radius2, delta, direction, t0, t1) {
98602
98633
  function circleRadius(cosRadius, point2) {
98603
98634
  point2 = cartesian(point2), point2[0] -= cosRadius;
98604
98635
  cartesianNormalizeInPlace(point2);
98605
- var radius2 = acos(-point2[1]);
98606
- return ((-point2[2] < 0 ? -radius2 : radius2) + tau - epsilon) % tau;
98636
+ var radius = acos(-point2[1]);
98637
+ return ((-point2[2] < 0 ? -radius : radius) + tau - epsilon) % tau;
98607
98638
  }
98608
98639
  function circle$2() {
98609
- var center2 = constant$1([0, 0]), radius2 = constant$1(90), precision = constant$1(6), ring, rotate2, stream = { point: point2 };
98640
+ var center2 = constant$1([0, 0]), radius = constant$1(90), precision = constant$1(6), ring, rotate2, stream = { point: point2 };
98610
98641
  function point2(x2, y2) {
98611
98642
  ring.push(x2 = rotate2(x2, y2));
98612
98643
  x2[0] *= degrees, x2[1] *= degrees;
98613
98644
  }
98614
98645
  function circle2() {
98615
- var c2 = center2.apply(this, arguments), r2 = radius2.apply(this, arguments) * radians, p = precision.apply(this, arguments) * radians;
98646
+ var c2 = center2.apply(this, arguments), r2 = radius.apply(this, arguments) * radians, p = precision.apply(this, arguments) * radians;
98616
98647
  ring = [];
98617
98648
  rotate2 = rotateRadians(-c2[0] * radians, -c2[1] * radians, 0).invert;
98618
98649
  circleStream(stream, r2, p, 1);
@@ -98624,7 +98655,7 @@ function circle$2() {
98624
98655
  return arguments.length ? (center2 = typeof _ === "function" ? _ : constant$1([+_[0], +_[1]]), circle2) : center2;
98625
98656
  };
98626
98657
  circle2.radius = function(_) {
98627
- return arguments.length ? (radius2 = typeof _ === "function" ? _ : constant$1(+_), circle2) : radius2;
98658
+ return arguments.length ? (radius = typeof _ === "function" ? _ : constant$1(+_), circle2) : radius;
98628
98659
  };
98629
98660
  circle2.precision = function(_) {
98630
98661
  return arguments.length ? (precision = typeof _ === "function" ? _ : constant$1(+_), circle2) : precision;
@@ -99519,8 +99550,8 @@ PathString.prototype = {
99519
99550
  }
99520
99551
  }
99521
99552
  };
99522
- function circle$1(radius2) {
99523
- return "m0," + radius2 + "a" + radius2 + "," + radius2 + " 0 1,1 0," + -2 * radius2 + "a" + radius2 + "," + radius2 + " 0 1,1 0," + 2 * radius2 + "z";
99553
+ function circle$1(radius) {
99554
+ return "m0," + radius + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius + "a" + radius + "," + radius + " 0 1,1 0," + 2 * radius + "z";
99524
99555
  }
99525
99556
  function index(projection2, context) {
99526
99557
  var pointRadius = 4.5, projectionStream, contextStream;
@@ -99746,10 +99777,10 @@ function clipAntimeridianInterpolate(from, to, direction, stream) {
99746
99777
  stream.point(to[0], to[1]);
99747
99778
  }
99748
99779
  }
99749
- function clipCircle(radius2, delta) {
99750
- var cr = cos(radius2), smallRadius = cr > 0, notHemisphere = abs(cr) > epsilon;
99780
+ function clipCircle(radius, delta) {
99781
+ var cr = cos(radius), smallRadius = cr > 0, notHemisphere = abs(cr) > epsilon;
99751
99782
  function interpolate2(from, to, direction, stream) {
99752
- circleStream(stream, radius2, delta, direction, from, to);
99783
+ circleStream(stream, radius, delta, direction, from, to);
99753
99784
  }
99754
99785
  function visible(lambda, phi) {
99755
99786
  return cos(lambda) * cos(phi) > cr;
@@ -99847,7 +99878,7 @@ function clipCircle(radius2, delta) {
99847
99878
  }
99848
99879
  }
99849
99880
  function code(lambda, phi) {
99850
- var r2 = smallRadius ? radius2 : pi - radius2, code2 = 0;
99881
+ var r2 = smallRadius ? radius : pi - radius, code2 = 0;
99851
99882
  if (lambda < -r2)
99852
99883
  code2 |= 1;
99853
99884
  else if (lambda > r2)
@@ -99858,7 +99889,7 @@ function clipCircle(radius2, delta) {
99858
99889
  code2 |= 8;
99859
99890
  return code2;
99860
99891
  }
99861
- return clip(visible, clipLine2, interpolate2, smallRadius ? [0, -radius2] : [-pi, radius2 - pi]);
99892
+ return clip(visible, clipLine2, interpolate2, smallRadius ? [0, -radius] : [-pi, radius - pi]);
99862
99893
  }
99863
99894
  function transform$1(methods) {
99864
99895
  return {
@@ -100451,7 +100482,7 @@ function _interopDefaultLegacy$6(e2) {
100451
100482
  return e2 && typeof e2 === "object" && "default" in e2 ? e2 : { "default": e2 };
100452
100483
  }
100453
100484
  var center__default$1 = /* @__PURE__ */ _interopDefaultLegacy$6(center$1);
100454
- function buffer(geojson, radius2, options) {
100485
+ function buffer(geojson, radius, options) {
100455
100486
  options = options || {};
100456
100487
  var units2 = options.units || "kilometers";
100457
100488
  var steps = options.steps || 8;
@@ -100461,7 +100492,7 @@ function buffer(geojson, radius2, options) {
100461
100492
  throw new Error("options must be an object");
100462
100493
  if (typeof steps !== "number")
100463
100494
  throw new Error("steps must be an number");
100464
- if (radius2 === void 0)
100495
+ if (radius === void 0)
100465
100496
  throw new Error("radius is required");
100466
100497
  if (steps <= 0)
100467
100498
  throw new Error("steps must be greater than 0");
@@ -100469,14 +100500,14 @@ function buffer(geojson, radius2, options) {
100469
100500
  switch (geojson.type) {
100470
100501
  case "GeometryCollection":
100471
100502
  meta$4.geomEach(geojson, function(geometry2) {
100472
- var buffered = bufferFeature(geometry2, radius2, units2, steps);
100503
+ var buffered = bufferFeature(geometry2, radius, units2, steps);
100473
100504
  if (buffered)
100474
100505
  results.push(buffered);
100475
100506
  });
100476
100507
  return helpers$6.featureCollection(results);
100477
100508
  case "FeatureCollection":
100478
100509
  meta$4.featureEach(geojson, function(feature2) {
100479
- var multiBuffered = bufferFeature(feature2, radius2, units2, steps);
100510
+ var multiBuffered = bufferFeature(feature2, radius, units2, steps);
100480
100511
  if (multiBuffered) {
100481
100512
  meta$4.featureEach(multiBuffered, function(buffered) {
100482
100513
  if (buffered)
@@ -100486,15 +100517,15 @@ function buffer(geojson, radius2, options) {
100486
100517
  });
100487
100518
  return helpers$6.featureCollection(results);
100488
100519
  }
100489
- return bufferFeature(geojson, radius2, units2, steps);
100520
+ return bufferFeature(geojson, radius, units2, steps);
100490
100521
  }
100491
- function bufferFeature(geojson, radius2, units2, steps) {
100522
+ function bufferFeature(geojson, radius, units2, steps) {
100492
100523
  var properties = geojson.properties || {};
100493
100524
  var geometry2 = geojson.type === "Feature" ? geojson.geometry : geojson;
100494
100525
  if (geometry2.type === "GeometryCollection") {
100495
100526
  var results = [];
100496
100527
  meta$4.geomEach(geojson, function(geometry3) {
100497
- var buffered2 = bufferFeature(geometry3, radius2, units2, steps);
100528
+ var buffered2 = bufferFeature(geometry3, radius, units2, steps);
100498
100529
  if (buffered2)
100499
100530
  results.push(buffered2);
100500
100531
  });
@@ -100507,7 +100538,7 @@ function bufferFeature(geojson, radius2, units2, steps) {
100507
100538
  };
100508
100539
  var reader = new turfJsts.GeoJSONReader();
100509
100540
  var geom = reader.read(projected);
100510
- var distance2 = helpers$6.radiansToLength(helpers$6.lengthToRadians(radius2, units2), "meters");
100541
+ var distance2 = helpers$6.radiansToLength(helpers$6.lengthToRadians(radius, units2), "meters");
100511
100542
  var buffered = turfJsts.BufferOp.bufferOp(geom, distance2, steps);
100512
100543
  var writer = new turfJsts.GeoJSONWriter();
100513
100544
  buffered = writer.write(buffered);
@@ -103212,10 +103243,10 @@ EventEmitter.prototype.setMaxListeners = function setMaxListeners(n2) {
103212
103243
  this._maxListeners = n2;
103213
103244
  return this;
103214
103245
  };
103215
- function _getMaxListeners(that2) {
103216
- if (that2._maxListeners === void 0)
103246
+ function _getMaxListeners(that) {
103247
+ if (that._maxListeners === void 0)
103217
103248
  return EventEmitter.defaultMaxListeners;
103218
- return that2._maxListeners;
103249
+ return that._maxListeners;
103219
103250
  }
103220
103251
  EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
103221
103252
  return _getMaxListeners(this);
@@ -104360,9 +104391,9 @@ function rhumbDistance$2(from, to, options) {
104360
104391
  var distance2 = helpers_1$9.convertLength(distanceInMeters, "meters", options.units);
104361
104392
  return distance2;
104362
104393
  }
104363
- function calculateRhumbDistance(origin, destination2, radius2) {
104364
- radius2 = radius2 === void 0 ? helpers_1$9.earthRadius : Number(radius2);
104365
- var R2 = radius2;
104394
+ function calculateRhumbDistance(origin, destination2, radius) {
104395
+ radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
104396
+ var R2 = radius;
104366
104397
  var phi12 = origin[1] * Math.PI / 180;
104367
104398
  var phi2 = destination2[1] * Math.PI / 180;
104368
104399
  var DeltaPhi = phi2 - phi12;
@@ -106050,7 +106081,7 @@ var __importDefault$2 = commonjsGlobal && commonjsGlobal.__importDefault || func
106050
106081
  Object.defineProperty(js$d, "__esModule", { value: true });
106051
106082
  var destination_1$1 = __importDefault$2(js$i);
106052
106083
  var helpers_1$6 = js$w;
106053
- function circle(center2, radius2, options) {
106084
+ function circle(center2, radius, options) {
106054
106085
  if (options === void 0) {
106055
106086
  options = {};
106056
106087
  }
@@ -106058,7 +106089,7 @@ function circle(center2, radius2, options) {
106058
106089
  var properties = options.properties ? options.properties : !Array.isArray(center2) && center2.type === "Feature" && center2.properties ? center2.properties : {};
106059
106090
  var coordinates2 = [];
106060
106091
  for (var i2 = 0; i2 < steps; i2++) {
106061
- coordinates2.push(destination_1$1.default(center2, radius2, i2 * -360 / steps, options).geometry.coordinates);
106092
+ coordinates2.push(destination_1$1.default(center2, radius, i2 * -360 / steps, options).geometry.coordinates);
106062
106093
  }
106063
106094
  coordinates2.push(coordinates2[0]);
106064
106095
  return helpers_1$6.polygon([coordinates2], properties);
@@ -106309,12 +106340,12 @@ var ResizeCircleMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
106309
106340
  var feature2 = this.getSelectedFeature(props2);
106310
106341
  var center2 = (0, _center$1["default"])(feature2).geometry.coordinates;
106311
106342
  var numberOfSteps = Object.entries(feature2.geometry.coordinates[0]).length - 1;
106312
- var radius2 = Math.max((0, _distance$b["default"])(center2, event.mapCoords), 1e-3);
106343
+ var radius = Math.max((0, _distance$b["default"])(center2, event.mapCoords), 1e-3);
106313
106344
  var _ref3 = {}, _ref$steps = _ref3.steps, steps = _ref$steps === void 0 ? numberOfSteps : _ref$steps;
106314
106345
  var options = {
106315
106346
  steps
106316
106347
  };
106317
- var updatedFeature = (0, _circle$2["default"])(center2, radius2, options);
106348
+ var updatedFeature = (0, _circle$2["default"])(center2, radius, options);
106318
106349
  var geometry2 = updatedFeature.geometry;
106319
106350
  var updatedData = new _immutableFeatureCollection$6.ImmutableFeatureCollection(props2.data).replaceGeometry(editHandleProperties.featureIndex, geometry2).getObject();
106320
106351
  props2.onEdit({
@@ -106384,9 +106415,9 @@ function rhumbDestination$4(origin, distance2, bearing2, options) {
106384
106415
  destination2[0] += destination2[0] - coords[0] > 180 ? -360 : coords[0] - destination2[0] > 180 ? 360 : 0;
106385
106416
  return helpers_1$5.point(destination2, options.properties);
106386
106417
  }
106387
- function calculateRhumbDestination(origin, distance2, bearing2, radius2) {
106388
- radius2 = radius2 === void 0 ? helpers_1$5.earthRadius : Number(radius2);
106389
- var delta = distance2 / radius2;
106418
+ function calculateRhumbDestination(origin, distance2, bearing2, radius) {
106419
+ radius = radius === void 0 ? helpers_1$5.earthRadius : Number(radius);
106420
+ var delta = distance2 / radius;
106390
106421
  var lambda12 = origin[0] * Math.PI / 180;
106391
106422
  var phi12 = helpers_1$5.degreesToRadians(origin[1]);
106392
106423
  var theta = helpers_1$5.degreesToRadians(bearing2);
@@ -110808,8 +110839,8 @@ var DrawCircleByDiameterMode = /* @__PURE__ */ function(_TwoClickPolygonMode) {
110808
110839
  options.steps = 4;
110809
110840
  }
110810
110841
  var centerCoordinates = (0, _geojsonEditMode$8.getIntermediatePosition)(coord1, coord2);
110811
- var radius2 = Math.max((0, _distance$5["default"])(coord1, centerCoordinates), 1e-3);
110812
- var geometry2 = (0, _circle$1["default"])(centerCoordinates, radius2, options);
110842
+ var radius = Math.max((0, _distance$5["default"])(coord1, centerCoordinates), 1e-3);
110843
+ var geometry2 = (0, _circle$1["default"])(centerCoordinates, radius, options);
110813
110844
  geometry2.properties = geometry2.properties || {};
110814
110845
  geometry2.properties.shape = "Circle";
110815
110846
  return geometry2;
@@ -110942,8 +110973,8 @@ var DrawCircleFromCenterMode = /* @__PURE__ */ function(_TwoClickPolygonMode) {
110942
110973
  console.warn("Minimum steps to draw a circle is 4 ");
110943
110974
  options.steps = 4;
110944
110975
  }
110945
- var radius2 = Math.max((0, _distance$4["default"])(coord1, coord2), 1e-3);
110946
- var geometry2 = (0, _circle["default"])(coord1, radius2, options);
110976
+ var radius = Math.max((0, _distance$4["default"])(coord1, coord2), 1e-3);
110977
+ var geometry2 = (0, _circle["default"])(coord1, radius, options);
110947
110978
  geometry2.properties = geometry2.properties || {};
110948
110979
  geometry2.properties.shape = "Circle";
110949
110980
  return geometry2;
@@ -113336,13 +113367,13 @@ var MeasureAngleMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
113336
113367
  }
113337
113368
  _this = _super.call.apply(_super, [this].concat(args));
113338
113369
  _defineProperty$1(_assertThisInitialized$3(_this), "_getTooltips", (0, _memoize["default"])(function(_ref3) {
113339
- var modeConfig = _ref3.modeConfig, vertex2 = _ref3.vertex, point1 = _ref3.point1, point2 = _ref3.point2;
113370
+ var modeConfig = _ref3.modeConfig, vertex = _ref3.vertex, point1 = _ref3.point1, point2 = _ref3.point2;
113340
113371
  var tooltips = DEFAULT_TOOLTIPS;
113341
- if (vertex2 && point1 && point2) {
113372
+ if (vertex && point1 && point2) {
113342
113373
  var _ref22 = modeConfig || {}, formatTooltip = _ref22.formatTooltip, measurementCallback = _ref22.measurementCallback;
113343
113374
  var units2 = "deg";
113344
- var angle1 = (0, _bearing$1["default"])(vertex2, point1);
113345
- var angle2 = (0, _bearing$1["default"])(vertex2, point2);
113375
+ var angle1 = (0, _bearing$1["default"])(vertex, point1);
113376
+ var angle2 = (0, _bearing$1["default"])(vertex, point2);
113346
113377
  var angle3 = Math.abs(angle1 - angle2);
113347
113378
  if (angle3 > 180) {
113348
113379
  angle3 = 360 - angle3;
@@ -120450,14 +120481,14 @@ class HeatmapCompositeTextLayer extends CompositeLayer {
120450
120481
  ];
120451
120482
  }
120452
120483
  renderLayers() {
120453
- const { axis: axis2 } = this.props;
120454
- if (axis2 === "left") {
120484
+ const { axis } = this.props;
120485
+ if (axis === "left") {
120455
120486
  return this._renderAxisLeftLayers();
120456
120487
  }
120457
- if (axis2 === "top") {
120488
+ if (axis === "top") {
120458
120489
  return this._renderAxisTopLayers();
120459
120490
  }
120460
- if (axis2 === "corner") {
120491
+ if (axis === "corner") {
120461
120492
  return this._renderCornerLayers();
120462
120493
  }
120463
120494
  return [];
@@ -120866,16 +120897,16 @@ function addDecoder(cases, importFn) {
120866
120897
  }
120867
120898
  cases.forEach((c2) => registry$1.set(c2, importFn));
120868
120899
  }
120869
- addDecoder([void 0, 1], () => import("./raw-2ff96293.js").then((m2) => m2.default));
120870
- addDecoder(5, () => import("./lzw-18e51214.js").then((m2) => m2.default));
120900
+ addDecoder([void 0, 1], () => import("./raw-32c12810.js").then((m2) => m2.default));
120901
+ addDecoder(5, () => import("./lzw-96dab2b2.js").then((m2) => m2.default));
120871
120902
  addDecoder(6, () => {
120872
120903
  throw new Error("old style JPEG compression is not supported.");
120873
120904
  });
120874
- addDecoder(7, () => import("./jpeg-108c168d.js").then((m2) => m2.default));
120875
- addDecoder([8, 32946], () => import("./deflate-13b0fa24.js").then((m2) => m2.default));
120876
- addDecoder(32773, () => import("./packbits-c341c469.js").then((m2) => m2.default));
120877
- addDecoder(34887, () => import("./lerc-d4cf2fcd.js").then((m2) => m2.default));
120878
- addDecoder(50001, () => import("./webimage-51ac6f70.js").then((m2) => m2.default));
120905
+ addDecoder(7, () => import("./jpeg-57e5b50f.js").then((m2) => m2.default));
120906
+ addDecoder([8, 32946], () => import("./deflate-13a7810b.js").then((m2) => m2.default));
120907
+ addDecoder(32773, () => import("./packbits-943e1bc7.js").then((m2) => m2.default));
120908
+ addDecoder(34887, () => import("./lerc-2b818719.js").then((m2) => m2.default));
120909
+ addDecoder(50001, () => import("./webimage-4f5c5831.js").then((m2) => m2.default));
120879
120910
  function decodeRowAcc(row, stride) {
120880
120911
  let length2 = row.length - stride;
120881
120912
  let offset5 = 0;
@@ -121165,11 +121196,11 @@ var xmlNode$1 = function(tagname, parent, val) {
121165
121196
  this.child = {};
121166
121197
  this.attrsMap = {};
121167
121198
  this.val = val;
121168
- this.addChild = function(child2) {
121169
- if (Array.isArray(this.child[child2.tagname])) {
121170
- this.child[child2.tagname].push(child2);
121199
+ this.addChild = function(child) {
121200
+ if (Array.isArray(this.child[child.tagname])) {
121201
+ this.child[child.tagname].push(child);
121171
121202
  } else {
121172
- this.child[child2.tagname] = [child2];
121203
+ this.child[child.tagname] = [child];
121173
121204
  }
121174
121205
  };
121175
121206
  };
@@ -133604,15 +133635,15 @@ function createTheme() {
133604
133635
  var depth = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
133605
133636
  var key;
133606
133637
  for (key in node) {
133607
- var child2 = node[key];
133638
+ var child = node[key];
133608
133639
  if (depth === 1) {
133609
- if (key.indexOf("Mui") === 0 && child2) {
133610
- traverse2(child2, key, depth + 1);
133640
+ if (key.indexOf("Mui") === 0 && child) {
133641
+ traverse2(child, key, depth + 1);
133611
133642
  }
133612
- } else if (pseudoClasses2.indexOf(key) !== -1 && Object.keys(child2).length > 0) {
133643
+ } else if (pseudoClasses2.indexOf(key) !== -1 && Object.keys(child).length > 0) {
133613
133644
  {
133614
133645
  console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), "You can not override it like this: ", JSON.stringify(node, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
133615
- root: _defineProperty$e({}, "&$".concat(key), child2)
133646
+ root: _defineProperty$e({}, "&$".concat(key), child)
133616
133647
  }, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join("\n"));
133617
133648
  }
133618
133649
  node[key] = {};
@@ -134930,11 +134961,11 @@ var DomRenderer = /* @__PURE__ */ function() {
134930
134961
  if (sheet)
134931
134962
  sheets.add(sheet);
134932
134963
  this.sheet = sheet;
134933
- var _ref3 = this.sheet ? this.sheet.options : {}, media2 = _ref3.media, meta2 = _ref3.meta, element = _ref3.element;
134964
+ var _ref3 = this.sheet ? this.sheet.options : {}, media = _ref3.media, meta2 = _ref3.meta, element = _ref3.element;
134934
134965
  this.element = element || createStyle();
134935
134966
  this.element.setAttribute("data-jss", "");
134936
- if (media2)
134937
- this.element.setAttribute("media", media2);
134967
+ if (media)
134968
+ this.element.setAttribute("media", media);
134938
134969
  if (meta2)
134939
134970
  this.element.setAttribute("data-meta", meta2);
134940
134971
  var nonce = getNonce();
@@ -136967,9 +136998,9 @@ function debounce$1(func) {
136967
136998
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
136968
136999
  args[_key] = arguments[_key];
136969
137000
  }
136970
- var that2 = this;
137001
+ var that = this;
136971
137002
  var later = function later2() {
136972
- func.apply(that2, args);
137003
+ func.apply(that, args);
136973
137004
  };
136974
137005
  clearTimeout(timeout3);
136975
137006
  timeout3 = setTimeout(later, wait);
@@ -137605,15 +137636,15 @@ function _assertThisInitialized(self2) {
137605
137636
  return self2;
137606
137637
  }
137607
137638
  function getChildMapping(children, mapFn) {
137608
- var mapper = function mapper2(child2) {
137609
- return mapFn && isValidElement(child2) ? mapFn(child2) : child2;
137639
+ var mapper = function mapper2(child) {
137640
+ return mapFn && isValidElement(child) ? mapFn(child) : child;
137610
137641
  };
137611
137642
  var result = /* @__PURE__ */ Object.create(null);
137612
137643
  if (children)
137613
137644
  Children.map(children, function(c2) {
137614
137645
  return c2;
137615
- }).forEach(function(child2) {
137616
- result[child2.key] = mapper(child2);
137646
+ }).forEach(function(child) {
137647
+ result[child.key] = mapper(child);
137617
137648
  });
137618
137649
  return result;
137619
137650
  }
@@ -137651,17 +137682,17 @@ function mergeChildMappings(prev, next) {
137651
137682
  }
137652
137683
  return childMapping;
137653
137684
  }
137654
- function getProp(child2, prop, props2) {
137655
- return props2[prop] != null ? props2[prop] : child2.props[prop];
137685
+ function getProp(child, prop, props2) {
137686
+ return props2[prop] != null ? props2[prop] : child.props[prop];
137656
137687
  }
137657
137688
  function getInitialChildMapping(props2, onExited) {
137658
- return getChildMapping(props2.children, function(child2) {
137659
- return cloneElement(child2, {
137660
- onExited: onExited.bind(null, child2),
137689
+ return getChildMapping(props2.children, function(child) {
137690
+ return cloneElement(child, {
137691
+ onExited: onExited.bind(null, child),
137661
137692
  in: true,
137662
- appear: getProp(child2, "appear", props2),
137663
- enter: getProp(child2, "enter", props2),
137664
- exit: getProp(child2, "exit", props2)
137693
+ appear: getProp(child, "appear", props2),
137694
+ enter: getProp(child, "enter", props2),
137695
+ exit: getProp(child, "exit", props2)
137665
137696
  });
137666
137697
  });
137667
137698
  }
@@ -137669,30 +137700,30 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
137669
137700
  var nextChildMapping = getChildMapping(nextProps.children);
137670
137701
  var children = mergeChildMappings(prevChildMapping, nextChildMapping);
137671
137702
  Object.keys(children).forEach(function(key) {
137672
- var child2 = children[key];
137673
- if (!isValidElement(child2))
137703
+ var child = children[key];
137704
+ if (!isValidElement(child))
137674
137705
  return;
137675
137706
  var hasPrev = key in prevChildMapping;
137676
137707
  var hasNext = key in nextChildMapping;
137677
137708
  var prevChild = prevChildMapping[key];
137678
137709
  var isLeaving = isValidElement(prevChild) && !prevChild.props.in;
137679
137710
  if (hasNext && (!hasPrev || isLeaving)) {
137680
- children[key] = cloneElement(child2, {
137681
- onExited: onExited.bind(null, child2),
137711
+ children[key] = cloneElement(child, {
137712
+ onExited: onExited.bind(null, child),
137682
137713
  in: true,
137683
- exit: getProp(child2, "exit", nextProps),
137684
- enter: getProp(child2, "enter", nextProps)
137714
+ exit: getProp(child, "exit", nextProps),
137715
+ enter: getProp(child, "enter", nextProps)
137685
137716
  });
137686
137717
  } else if (!hasNext && hasPrev && !isLeaving) {
137687
- children[key] = cloneElement(child2, {
137718
+ children[key] = cloneElement(child, {
137688
137719
  in: false
137689
137720
  });
137690
137721
  } else if (hasNext && hasPrev && isValidElement(prevChild)) {
137691
- children[key] = cloneElement(child2, {
137692
- onExited: onExited.bind(null, child2),
137722
+ children[key] = cloneElement(child, {
137723
+ onExited: onExited.bind(null, child),
137693
137724
  in: prevChild.props.in,
137694
- exit: getProp(child2, "exit", nextProps),
137695
- enter: getProp(child2, "enter", nextProps)
137725
+ exit: getProp(child, "exit", nextProps),
137726
+ enter: getProp(child, "enter", nextProps)
137696
137727
  });
137697
137728
  }
137698
137729
  });
@@ -137705,8 +137736,8 @@ var values = Object.values || function(obj) {
137705
137736
  };
137706
137737
  var defaultProps = {
137707
137738
  component: "div",
137708
- childFactory: function childFactory(child2) {
137709
- return child2;
137739
+ childFactory: function childFactory(child) {
137740
+ return child;
137710
137741
  }
137711
137742
  };
137712
137743
  var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
@@ -137743,17 +137774,17 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
137743
137774
  firstRender: false
137744
137775
  };
137745
137776
  };
137746
- _proto.handleExited = function handleExited(child2, node) {
137777
+ _proto.handleExited = function handleExited(child, node) {
137747
137778
  var currentChildMapping = getChildMapping(this.props.children);
137748
- if (child2.key in currentChildMapping)
137779
+ if (child.key in currentChildMapping)
137749
137780
  return;
137750
- if (child2.props.onExited) {
137751
- child2.props.onExited(node);
137781
+ if (child.props.onExited) {
137782
+ child.props.onExited(node);
137752
137783
  }
137753
137784
  if (this.mounted) {
137754
137785
  this.setState(function(state) {
137755
137786
  var children = _extends$1({}, state.children);
137756
- delete children[child2.key];
137787
+ delete children[child.key];
137757
137788
  return {
137758
137789
  children
137759
137790
  };
@@ -138695,8 +138726,8 @@ IconButton$1.propTypes = {
138695
138726
  * The icon element.
138696
138727
  */
138697
138728
  children: chainPropTypes(PropTypes.node, function(props2) {
138698
- var found = React.Children.toArray(props2.children).some(function(child2) {
138699
- return /* @__PURE__ */ React.isValidElement(child2) && child2.props.onClick;
138729
+ var found = React.Children.toArray(props2.children).some(function(child) {
138730
+ return /* @__PURE__ */ React.isValidElement(child) && child.props.onClick;
138700
138731
  });
138701
138732
  if (found) {
138702
138733
  return new Error(["Material-UI: You are providing an onClick event listener to a child of a button element.", "Firefox will never trigger the event.", "You should move the onClick listener to the parent button element.", "https://github.com/mui-org/material-ui/issues/13957"].join("\n"));
@@ -140822,11 +140853,11 @@ var FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(props2,
140822
140853
  var _React$useState = React.useState(function() {
140823
140854
  var initialAdornedStart = false;
140824
140855
  if (children) {
140825
- React.Children.forEach(children, function(child2) {
140826
- if (!isMuiElement(child2, ["Input", "Select"])) {
140856
+ React.Children.forEach(children, function(child) {
140857
+ if (!isMuiElement(child, ["Input", "Select"])) {
140827
140858
  return;
140828
140859
  }
140829
- var input = isMuiElement(child2, ["Select"]) ? child2.props.input : child2;
140860
+ var input = isMuiElement(child, ["Select"]) ? child.props.input : child;
140830
140861
  if (input && isAdornedStart(input.props)) {
140831
140862
  initialAdornedStart = true;
140832
140863
  }
@@ -140837,11 +140868,11 @@ var FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(props2,
140837
140868
  var _React$useState2 = React.useState(function() {
140838
140869
  var initialFilled = false;
140839
140870
  if (children) {
140840
- React.Children.forEach(children, function(child2) {
140841
- if (!isMuiElement(child2, ["Input", "Select"])) {
140871
+ React.Children.forEach(children, function(child) {
140872
+ if (!isMuiElement(child, ["Input", "Select"])) {
140842
140873
  return;
140843
140874
  }
140844
- if (isFilled(child2.props, true)) {
140875
+ if (isFilled(child.props, true)) {
140845
140876
  initialFilled = true;
140846
140877
  }
140847
140878
  });
@@ -141898,8 +141929,8 @@ function getTransformOriginValue(transformOrigin) {
141898
141929
  return typeof n2 === "number" ? "".concat(n2, "px") : n2;
141899
141930
  }).join(" ");
141900
141931
  }
141901
- function getScrollParent$1(parent, child2) {
141902
- var element = child2;
141932
+ function getScrollParent$1(parent, child) {
141933
+ var element = child;
141903
141934
  var scrollTop = 0;
141904
141935
  while (element && element !== parent) {
141905
141936
  element = element.parentElement;
@@ -142414,35 +142445,35 @@ var MenuList = /* @__PURE__ */ React.forwardRef(function MenuList2(props2, ref)
142414
142445
  }, []);
142415
142446
  var handleRef = useForkRef(handleOwnRef, ref);
142416
142447
  var activeItemIndex = -1;
142417
- React.Children.forEach(children, function(child2, index2) {
142418
- if (!/* @__PURE__ */ React.isValidElement(child2)) {
142448
+ React.Children.forEach(children, function(child, index2) {
142449
+ if (!/* @__PURE__ */ React.isValidElement(child)) {
142419
142450
  return;
142420
142451
  }
142421
142452
  {
142422
- if (reactIsExports.isFragment(child2)) {
142453
+ if (reactIsExports.isFragment(child)) {
142423
142454
  console.error(["Material-UI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join("\n"));
142424
142455
  }
142425
142456
  }
142426
- if (!child2.props.disabled) {
142427
- if (variant === "selectedMenu" && child2.props.selected) {
142457
+ if (!child.props.disabled) {
142458
+ if (variant === "selectedMenu" && child.props.selected) {
142428
142459
  activeItemIndex = index2;
142429
142460
  } else if (activeItemIndex === -1) {
142430
142461
  activeItemIndex = index2;
142431
142462
  }
142432
142463
  }
142433
142464
  });
142434
- var items = React.Children.map(children, function(child2, index2) {
142465
+ var items = React.Children.map(children, function(child, index2) {
142435
142466
  if (index2 === activeItemIndex) {
142436
142467
  var newChildProps = {};
142437
142468
  if (autoFocusItem) {
142438
142469
  newChildProps.autoFocus = true;
142439
142470
  }
142440
- if (child2.props.tabIndex === void 0 && variant === "selectedMenu") {
142471
+ if (child.props.tabIndex === void 0 && variant === "selectedMenu") {
142441
142472
  newChildProps.tabIndex = 0;
142442
142473
  }
142443
- return /* @__PURE__ */ React.cloneElement(child2, newChildProps);
142474
+ return /* @__PURE__ */ React.cloneElement(child, newChildProps);
142444
142475
  }
142445
- return child2;
142476
+ return child;
142446
142477
  });
142447
142478
  return /* @__PURE__ */ React.createElement(List$1, _extends$1({
142448
142479
  role: "menu",
@@ -142548,33 +142579,33 @@ var Menu = /* @__PURE__ */ React.forwardRef(function Menu2(props2, ref) {
142548
142579
  }
142549
142580
  };
142550
142581
  var activeItemIndex = -1;
142551
- React.Children.map(children, function(child2, index2) {
142552
- if (!/* @__PURE__ */ React.isValidElement(child2)) {
142582
+ React.Children.map(children, function(child, index2) {
142583
+ if (!/* @__PURE__ */ React.isValidElement(child)) {
142553
142584
  return;
142554
142585
  }
142555
142586
  {
142556
- if (reactIsExports.isFragment(child2)) {
142587
+ if (reactIsExports.isFragment(child)) {
142557
142588
  console.error(["Material-UI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join("\n"));
142558
142589
  }
142559
142590
  }
142560
- if (!child2.props.disabled) {
142561
- if (variant !== "menu" && child2.props.selected) {
142591
+ if (!child.props.disabled) {
142592
+ if (variant !== "menu" && child.props.selected) {
142562
142593
  activeItemIndex = index2;
142563
142594
  } else if (activeItemIndex === -1) {
142564
142595
  activeItemIndex = index2;
142565
142596
  }
142566
142597
  }
142567
142598
  });
142568
- var items = React.Children.map(children, function(child2, index2) {
142599
+ var items = React.Children.map(children, function(child, index2) {
142569
142600
  if (index2 === activeItemIndex) {
142570
- return /* @__PURE__ */ React.cloneElement(child2, {
142601
+ return /* @__PURE__ */ React.cloneElement(child, {
142571
142602
  ref: function ref2(instance) {
142572
142603
  contentAnchorRef.current = ReactDOM.findDOMNode(instance);
142573
- setRef(child2.ref, instance);
142604
+ setRef(child.ref, instance);
142574
142605
  }
142575
142606
  });
142576
142607
  }
142577
- return child2;
142608
+ return child;
142578
142609
  });
142579
142610
  return /* @__PURE__ */ React.createElement(Popover$1, _extends$1({
142580
142611
  getContentAnchorEl,
@@ -143526,13 +143557,13 @@ function includeScroll(rect, element) {
143526
143557
  rect.right += scrollLeft * modifier;
143527
143558
  return rect;
143528
143559
  }
143529
- function getBordersSize(styles21, axis2) {
143530
- var sideA = axis2 === "x" ? "Left" : "Top";
143560
+ function getBordersSize(styles21, axis) {
143561
+ var sideA = axis === "x" ? "Left" : "Top";
143531
143562
  var sideB = sideA === "Left" ? "Right" : "Bottom";
143532
143563
  return parseFloat(styles21["border" + sideA + "Width"]) + parseFloat(styles21["border" + sideB + "Width"]);
143533
143564
  }
143534
- function getSize(axis2, body, html, computedStyle) {
143535
- return Math.max(body["offset" + axis2], body["scroll" + axis2], html["client" + axis2], html["offset" + axis2], html["scroll" + axis2], isIE(10) ? parseInt(html["offset" + axis2]) + parseInt(computedStyle["margin" + (axis2 === "Height" ? "Top" : "Left")]) + parseInt(computedStyle["margin" + (axis2 === "Height" ? "Bottom" : "Right")]) : 0);
143565
+ function getSize(axis, body, html, computedStyle) {
143566
+ return Math.max(body["offset" + axis], body["scroll" + axis], html["client" + axis], html["offset" + axis], html["scroll" + axis], isIE(10) ? parseInt(html["offset" + axis]) + parseInt(computedStyle["margin" + (axis === "Height" ? "Top" : "Left")]) + parseInt(computedStyle["margin" + (axis === "Height" ? "Bottom" : "Right")]) : 0);
143536
143567
  }
143537
143568
  function getWindowSizes(document2) {
143538
143569
  var body = document2.body;
@@ -145129,7 +145160,7 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props2,
145129
145160
  var handleRef = useForkRef(ref, inputRefProp);
145130
145161
  React.useImperativeHandle(handleRef, function() {
145131
145162
  return {
145132
- focus: function focus2() {
145163
+ focus: function focus() {
145133
145164
  displayNode.focus();
145134
145165
  },
145135
145166
  node: inputRef.current,
@@ -145184,19 +145215,19 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props2,
145184
145215
  };
145185
145216
  var childrenArray = React.Children.toArray(children);
145186
145217
  var handleChange = function handleChange2(event) {
145187
- var index2 = childrenArray.map(function(child3) {
145188
- return child3.props.value;
145218
+ var index2 = childrenArray.map(function(child2) {
145219
+ return child2.props.value;
145189
145220
  }).indexOf(event.target.value);
145190
145221
  if (index2 === -1) {
145191
145222
  return;
145192
145223
  }
145193
- var child2 = childrenArray[index2];
145194
- setValue(child2.props.value);
145224
+ var child = childrenArray[index2];
145225
+ setValue(child.props.value);
145195
145226
  if (onChange) {
145196
- onChange(event, child2);
145227
+ onChange(event, child);
145197
145228
  }
145198
145229
  };
145199
- var handleItemClick = function handleItemClick2(child2) {
145230
+ var handleItemClick = function handleItemClick2(child) {
145200
145231
  return function(event) {
145201
145232
  if (!multiple) {
145202
145233
  update2(false, event);
@@ -145204,17 +145235,17 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props2,
145204
145235
  var newValue;
145205
145236
  if (multiple) {
145206
145237
  newValue = Array.isArray(value) ? value.slice() : [];
145207
- var itemIndex = value.indexOf(child2.props.value);
145238
+ var itemIndex = value.indexOf(child.props.value);
145208
145239
  if (itemIndex === -1) {
145209
- newValue.push(child2.props.value);
145240
+ newValue.push(child.props.value);
145210
145241
  } else {
145211
145242
  newValue.splice(itemIndex, 1);
145212
145243
  }
145213
145244
  } else {
145214
- newValue = child2.props.value;
145245
+ newValue = child.props.value;
145215
145246
  }
145216
- if (child2.props.onClick) {
145217
- child2.props.onClick(event);
145247
+ if (child.props.onClick) {
145248
+ child.props.onClick(event);
145218
145249
  }
145219
145250
  if (value === newValue) {
145220
145251
  return;
@@ -145229,7 +145260,7 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props2,
145229
145260
  name: name2
145230
145261
  }
145231
145262
  });
145232
- onChange(event, child2);
145263
+ onChange(event, child);
145233
145264
  }
145234
145265
  };
145235
145266
  };
@@ -145278,12 +145309,12 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props2,
145278
145309
  computeDisplay = true;
145279
145310
  }
145280
145311
  }
145281
- var items = childrenArray.map(function(child2) {
145282
- if (!/* @__PURE__ */ React.isValidElement(child2)) {
145312
+ var items = childrenArray.map(function(child) {
145313
+ if (!/* @__PURE__ */ React.isValidElement(child)) {
145283
145314
  return null;
145284
145315
  }
145285
145316
  {
145286
- if (reactIsExports.isFragment(child2)) {
145317
+ if (reactIsExports.isFragment(child)) {
145287
145318
  console.error(["Material-UI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join("\n"));
145288
145319
  }
145289
145320
  }
@@ -145293,44 +145324,44 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props2,
145293
145324
  throw new Error("Material-UI: The `value` prop must be an array when using the `Select` component with `multiple`.");
145294
145325
  }
145295
145326
  selected = value.some(function(v) {
145296
- return areEqualValues(v, child2.props.value);
145327
+ return areEqualValues(v, child.props.value);
145297
145328
  });
145298
145329
  if (selected && computeDisplay) {
145299
- displayMultiple.push(child2.props.children);
145330
+ displayMultiple.push(child.props.children);
145300
145331
  }
145301
145332
  } else {
145302
- selected = areEqualValues(value, child2.props.value);
145333
+ selected = areEqualValues(value, child.props.value);
145303
145334
  if (selected && computeDisplay) {
145304
- displaySingle = child2.props.children;
145335
+ displaySingle = child.props.children;
145305
145336
  }
145306
145337
  }
145307
145338
  if (selected) {
145308
145339
  foundMatch = true;
145309
145340
  }
145310
- return /* @__PURE__ */ React.cloneElement(child2, {
145341
+ return /* @__PURE__ */ React.cloneElement(child, {
145311
145342
  "aria-selected": selected ? "true" : void 0,
145312
- onClick: handleItemClick(child2),
145343
+ onClick: handleItemClick(child),
145313
145344
  onKeyUp: function onKeyUp(event) {
145314
145345
  if (event.key === " ") {
145315
145346
  event.preventDefault();
145316
145347
  }
145317
- if (child2.props.onKeyUp) {
145318
- child2.props.onKeyUp(event);
145348
+ if (child.props.onKeyUp) {
145349
+ child.props.onKeyUp(event);
145319
145350
  }
145320
145351
  },
145321
145352
  role: "option",
145322
145353
  selected,
145323
145354
  value: void 0,
145324
145355
  // The value is most likely not a valid HTML attribute.
145325
- "data-value": child2.props.value
145356
+ "data-value": child.props.value
145326
145357
  // Instead, we provide it as a data attribute.
145327
145358
  });
145328
145359
  });
145329
145360
  {
145330
145361
  React.useEffect(function() {
145331
145362
  if (!foundMatch && !multiple && value !== "") {
145332
- var values2 = childrenArray.map(function(child2) {
145333
- return child2.props.value;
145363
+ var values2 = childrenArray.map(function(child) {
145364
+ return child.props.value;
145334
145365
  });
145335
145366
  console.warn(["Material-UI: You have provided an out-of-range value `".concat(value, "` for the select ").concat(name2 ? '(name="'.concat(name2, '") ') : "", "component."), "Consider providing a value that matches one of the available options or ''.", "The available values are ".concat(values2.filter(function(x2) {
145336
145367
  return x2 != null;
@@ -146244,21 +146275,21 @@ var Slider = /* @__PURE__ */ React.forwardRef(function Slider2(props2, ref) {
146244
146275
  }
146245
146276
  });
146246
146277
  var previousIndex = React.useRef();
146247
- var axis2 = orientation;
146278
+ var axis = orientation;
146248
146279
  if (isRtl && orientation !== "vertical") {
146249
- axis2 += "-reverse";
146280
+ axis += "-reverse";
146250
146281
  }
146251
146282
  var getFingerNewValue = function getFingerNewValue2(_ref3) {
146252
146283
  var finger = _ref3.finger, _ref3$move = _ref3.move, move = _ref3$move === void 0 ? false : _ref3$move, values22 = _ref3.values, source = _ref3.source;
146253
146284
  var slider = sliderRef.current;
146254
146285
  var _slider$getBoundingCl = slider.getBoundingClientRect(), width = _slider$getBoundingCl.width, height = _slider$getBoundingCl.height, bottom = _slider$getBoundingCl.bottom, left = _slider$getBoundingCl.left;
146255
146286
  var percent2;
146256
- if (axis2.indexOf("vertical") === 0) {
146287
+ if (axis.indexOf("vertical") === 0) {
146257
146288
  percent2 = (bottom - finger.y) / height;
146258
146289
  } else {
146259
146290
  percent2 = (finger.x - left) / width;
146260
146291
  }
146261
- if (axis2.indexOf("-reverse") !== -1) {
146292
+ if (axis.indexOf("-reverse") !== -1) {
146262
146293
  percent2 = 1 - percent2;
146263
146294
  }
146264
146295
  var newValue;
@@ -146403,7 +146434,7 @@ var Slider = /* @__PURE__ */ React.forwardRef(function Slider2(props2, ref) {
146403
146434
  });
146404
146435
  var trackOffset = valueToPercent(range2 ? values2[0] : min, min, max);
146405
146436
  var trackLeap = valueToPercent(values2[values2.length - 1], min, max) - trackOffset;
146406
- var trackStyle = _extends$1({}, axisProps[axis2].offset(trackOffset), axisProps[axis2].leap(trackLeap));
146437
+ var trackStyle = _extends$1({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap));
146407
146438
  return /* @__PURE__ */ React.createElement(Component2, _extends$1({
146408
146439
  ref: handleRef,
146409
146440
  className: clsx(classes.root, classes["color".concat(capitalize(color))], className, disabled && classes.disabled, marks.length > 0 && marks.some(function(mark) {
@@ -146421,7 +146452,7 @@ var Slider = /* @__PURE__ */ React.forwardRef(function Slider2(props2, ref) {
146421
146452
  type: "hidden"
146422
146453
  }), marks.map(function(mark, index2) {
146423
146454
  var percent2 = valueToPercent(mark.value, min, max);
146424
- var style = axisProps[axis2].offset(percent2);
146455
+ var style = axisProps[axis].offset(percent2);
146425
146456
  var markActive;
146426
146457
  if (track === false) {
146427
146458
  markActive = values2.indexOf(mark.value) !== -1;
@@ -146442,7 +146473,7 @@ var Slider = /* @__PURE__ */ React.forwardRef(function Slider2(props2, ref) {
146442
146473
  }, mark.label) : null);
146443
146474
  }), values2.map(function(value, index2) {
146444
146475
  var percent2 = valueToPercent(value, min, max);
146445
- var style = axisProps[axis2].offset(percent2);
146476
+ var style = axisProps[axis].offset(percent2);
146446
146477
  return /* @__PURE__ */ React.createElement(ValueLabelComponent, {
146447
146478
  key: index2,
146448
146479
  valueLabelFormat,
@@ -147227,7 +147258,7 @@ function ToolMenu(props2) {
147227
147258
  const onRecenterButtonCLick = () => {
147228
147259
  recenterOnClick();
147229
147260
  };
147230
- return jsxRuntimeExports.jsxs("div", { className: classes.tool, children: [visibleTools.pan && jsxRuntimeExports.jsx(IconTool, { alt: "pointer tool", onClick: () => setActiveTool(null), isActive: activeTool === null, children: jsxRuntimeExports.jsx(SvgNearMe, {}) }), visibleTools.selectLasso ? jsxRuntimeExports.jsx(IconTool, { alt: "select lasso", onClick: () => setActiveTool(distEs6$2.SELECTION_TYPE.POLYGON), isActive: activeTool === distEs6$2.SELECTION_TYPE.POLYGON, children: jsxRuntimeExports.jsx(SvgSelectionLasso, {}) }) : null, jsxRuntimeExports.jsx(IconButton2, { alt: "click to recenter", onClick: () => onRecenterButtonCLick(), children: jsxRuntimeExports.jsx(CenterFocusStrong, {}) })] });
147261
+ return jsxRuntimeExports.jsxs("div", { className: classes.tool, children: [visibleTools.pan && jsxRuntimeExports.jsx(IconTool, { alt: "pointer tool", onClick: () => setActiveTool(null), isActive: activeTool === null, children: jsxRuntimeExports.jsx(SvgNearMe, {}) }), visibleTools.selectLasso ? jsxRuntimeExports.jsx(IconTool, { alt: "select lasso", onClick: () => setActiveTool(distEs6$2.SELECTION_TYPE.POLYGON), isActive: activeTool === distEs6$2.SELECTION_TYPE.POLYGON, children: jsxRuntimeExports.jsx(SvgSelectionLasso, {}) }) : null, jsxRuntimeExports.jsx(IconButton2, { alt: "click to recenter", onClick: () => onRecenterButtonCLick(), "aria-label": "Recenter scatterplot view", children: jsxRuntimeExports.jsx(CenterFocusStrong, {}) })] });
147231
147262
  }
147232
147263
  const getCursorWithTool = () => "crosshair";
147233
147264
  const getCursor = (interactionState) => interactionState.isDragging ? "grabbing" : "default";
@@ -147869,6 +147900,7 @@ const ScatterplotWrapper = forwardRef((props2, deckRef) => jsxRuntimeExports.jsx
147869
147900
  ScatterplotWrapper.displayName = "ScatterplotWrapper";
147870
147901
  function ScatterplotOptions(props2) {
147871
147902
  const { children, observationsLabel, cellRadius, setCellRadius, cellRadiusMode, setCellRadiusMode, cellOpacity, setCellOpacity, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, tooltipsVisible, setTooltipsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange } = props2;
147903
+ const scatterplotOptionsId = useId();
147872
147904
  const observationsLabelNice = capitalize$1(observationsLabel);
147873
147905
  const classes = usePlotOptionsStyles();
147874
147906
  function handleCellRadiusModeChange(event) {
@@ -147902,7 +147934,10 @@ function ScatterplotOptions(props2) {
147902
147934
  setGeneExpressionColormapRange(value);
147903
147935
  }
147904
147936
  const handleColormapRangeChangeDebounced = useCallback(debounce$3(handleColormapRangeChange, 5, { trailing: true }), [handleColormapRangeChange]);
147905
- return jsxRuntimeExports.jsxs(OptionsContainer, { children: [children, jsxRuntimeExports.jsx(CellColorEncodingOption, { observationsLabel, cellColorEncoding, setCellColorEncoding }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsxs(TableCell$1, { className: classes.labelCell, children: [observationsLabelNice, " Set Labels Visible"] }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: jsxRuntimeExports.jsx(Checkbox$1, { className: classes.checkbox, checked: cellSetLabelsVisible, onChange: handleLabelVisibilityChange, name: "scatterplot-option-cell-set-labels", color: "default" }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, children: "Tooltips Visible" }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: jsxRuntimeExports.jsx(Checkbox$1, {
147937
+ return jsxRuntimeExports.jsxs(OptionsContainer, { children: [children, jsxRuntimeExports.jsx(CellColorEncodingOption, { observationsLabel, cellColorEncoding, setCellColorEncoding }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-labels-visible-${scatterplotOptionsId}`, children: [observationsLabelNice, " Set Labels Visible"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Checkbox$1, { className: classes.checkbox, checked: cellSetLabelsVisible, onChange: handleLabelVisibilityChange, name: "scatterplot-option-cell-set-labels", color: "default", inputProps: {
147938
+ "aria-label": "Show or hide set labels",
147939
+ id: `scatterplot-set-labels-visible-${scatterplotOptionsId}`
147940
+ } }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-set-tooltips-visible-${scatterplotOptionsId}`, children: "Tooltips Visible" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Checkbox$1, {
147906
147941
  className: classes.checkbox,
147907
147942
  /**
147908
147943
  * We have to use "checked" here, not "value".
@@ -147911,15 +147946,25 @@ function ScatterplotOptions(props2) {
147911
147946
  */
147912
147947
  checked: tooltipsVisible,
147913
147948
  onChange: handleTooltipsVisibilityChange,
147914
- name: "scatterplot-option-toltip-visibility",
147915
- color: "default"
147916
- }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsxs(TableCell$1, { className: classes.labelCell, children: [observationsLabelNice, " Set Label Size"] }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: jsxRuntimeExports.jsx(Slider$1, { disabled: !cellSetLabelsVisible, classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, value: cellSetLabelSize, onChange: handleLabelSizeChange, "aria-labelledby": "cell-set-label-size-slider", valueLabelDisplay: "auto", step: 1, min: 8, max: 36 }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsxs(TableCell$1, { className: classes.labelCell, children: [observationsLabelNice, " Set Polygons Visible"] }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: jsxRuntimeExports.jsx(Checkbox$1, { className: classes.checkbox, checked: cellSetPolygonsVisible, onChange: handlePolygonVisibilityChange, name: "scatterplot-option-cell-set-polygons", color: "default" }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsxs(TableCell$1, { className: classes.labelCell, htmlFor: "cell-radius-mode-select", children: [observationsLabelNice, " Radius Mode"] }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: jsxRuntimeExports.jsxs(OptionSelect, { className: classes.select, value: cellRadiusMode, onChange: handleCellRadiusModeChange, inputProps: {
147917
- id: "cell-radius-mode-select"
147918
- }, children: [jsxRuntimeExports.jsx("option", { value: "auto", children: "Auto" }), jsxRuntimeExports.jsx("option", { value: "manual", children: "Manual" })] }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsxs(TableCell$1, { className: classes.labelCell, children: [observationsLabelNice, " Radius"] }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: jsxRuntimeExports.jsx(Slider$1, { disabled: cellRadiusMode !== "manual", classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, value: cellRadius, onChange: handleRadiusChange, "aria-labelledby": "cell-radius-slider", valueLabelDisplay: "auto", step: 0.01, min: 0.01, max: 10 }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsxs(TableCell$1, { className: classes.labelCell, htmlFor: "cell-opacity-mode-select", children: [observationsLabelNice, " Opacity Mode"] }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: jsxRuntimeExports.jsxs(OptionSelect, { className: classes.select, value: cellOpacityMode, onChange: handleCellOpacityModeChange, inputProps: {
147919
- id: "cell-opacity-mode-select"
147920
- }, children: [jsxRuntimeExports.jsx("option", { value: "auto", children: "Auto" }), jsxRuntimeExports.jsx("option", { value: "manual", children: "Manual" })] }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsxs(TableCell$1, { className: classes.labelCell, children: [observationsLabelNice, " Opacity"] }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: jsxRuntimeExports.jsx(Slider$1, { disabled: cellOpacityMode !== "manual", classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, value: cellOpacity, onChange: handleOpacityChange, "aria-labelledby": "cell-opacity-slider", valueLabelDisplay: "auto", step: 0.05, min: 0, max: 1 }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, htmlFor: "gene-expression-colormap-select", children: "Gene Expression Colormap" }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: jsxRuntimeExports.jsx(OptionSelect, { className: classes.select, value: geneExpressionColormap, onChange: handleGeneExpressionColormapChange, inputProps: {
147921
- id: "gene-expression-colormap-select"
147922
- }, children: GLSL_COLORMAPS.map((cmap) => jsxRuntimeExports.jsx("option", { value: cmap, children: cmap }, cmap)) }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, children: "Gene Expression Colormap Range" }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, value: geneExpressionColormapRange, onChange: handleColormapRangeChangeDebounced, "aria-labelledby": "gene-expression-colormap-range-slider", valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] });
147949
+ name: "scatterplot-option-tooltip-visibility",
147950
+ color: "default",
147951
+ inputProps: {
147952
+ "aria-label": "Show or hide tooltips",
147953
+ id: `scatterplot-set-tooltips-visible-${scatterplotOptionsId}`
147954
+ }
147955
+ }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-label-size-${scatterplotOptionsId}`, children: [observationsLabelNice, " Set Label Size"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, disabled: !cellSetLabelsVisible, value: cellSetLabelSize, onChange: handleLabelSizeChange, "aria-label": "Scatterplot label size slider", id: `scatterplot-set-label-size-${scatterplotOptionsId}`, valueLabelDisplay: "auto", step: 1, min: 8, max: 36 }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-polygons-visible-${scatterplotOptionsId}`, children: [observationsLabelNice, " Set Polygons Visible"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Checkbox$1, { className: classes.checkbox, checked: cellSetPolygonsVisible, onChange: handlePolygonVisibilityChange, name: "scatterplot-option-cell-set-polygons", color: "default", inputProps: {
147956
+ "aria-label": "Show or hide polygons",
147957
+ id: `scatterplot-set-polygons-visible-${scatterplotOptionsId}`
147958
+ } }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-radius-mode-select-${scatterplotOptionsId}`, children: [observationsLabelNice, " Radius Mode"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsxs(OptionSelect, { className: classes.select, value: cellRadiusMode, onChange: handleCellRadiusModeChange, inputProps: {
147959
+ id: `scatterplot-set-radius-mode-select-${scatterplotOptionsId}`
147960
+ }, children: [jsxRuntimeExports.jsx("option", { value: "auto", children: "Auto" }), jsxRuntimeExports.jsx("option", { value: "manual", children: "Manual" })] }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-radius-size-select-${scatterplotOptionsId}`, children: [observationsLabelNice, " Radius Size"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, disabled: cellRadiusMode !== "manual", value: cellRadius, onChange: handleRadiusChange, "aria-label": "Scatterplot radius size slider", id: `scatterplot-set-radius-size-select-${scatterplotOptionsId}`, valueLabelDisplay: "auto", step: 0.01, min: 0.01, max: 10 }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-opacity-mode-${scatterplotOptionsId}`, children: [observationsLabelNice, " Opacity Mode"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsxs(OptionSelect, { className: classes.select, value: cellOpacityMode, onChange: handleCellOpacityModeChange, inputProps: {
147961
+ id: `scatterplot-set-opacity-mode-${scatterplotOptionsId}`
147962
+ }, children: [jsxRuntimeExports.jsx("option", { value: "auto", children: "Auto" }), jsxRuntimeExports.jsx("option", { value: "manual", children: "Manual" })] }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-opacity-level-${scatterplotOptionsId}`, children: [observationsLabelNice, " Opacity Level"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, disabled: cellOpacityMode !== "manual", value: cellOpacity, onChange: handleOpacityChange, "aria-label": "Scatterplot opacity level slider", id: `scatterplot-set-opacity-level-${scatterplotOptionsId}`, valueLabelDisplay: "auto", step: 0.05, min: 0, max: 1 }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-gene-expression-colormap-${scatterplotOptionsId}`, children: "Gene Expression Colormap" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(OptionSelect, { className: classes.select, value: geneExpressionColormap, onChange: handleGeneExpressionColormapChange, inputProps: {
147963
+ id: `scatterplot-gene-expression-colormap-${scatterplotOptionsId}`
147964
+ }, children: GLSL_COLORMAPS.map((cmap) => jsxRuntimeExports.jsx("option", { value: cmap, children: cmap }, cmap)) }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-gene-expression-colormap-range-${scatterplotOptionsId}`, children: "Gene Expression Colormap Range" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, value: geneExpressionColormapRange, onChange: handleColormapRangeChangeDebounced, getAriaLabel: (index2) => {
147965
+ const labelPrefix = index2 === 0 ? "Low value slider" : "High value slider";
147966
+ return `${labelPrefix} for scatterplot gene expression colormap range`;
147967
+ }, id: `scatterplot-gene-expression-colormap-range-${scatterplotOptionsId}`, valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] });
147923
147968
  }
147924
147969
  const styles20 = makeStyles((theme) => ({
147925
147970
  tooltipAnchor: {
@@ -148034,6 +148079,7 @@ function GatingScatterplotOptions(props2) {
148034
148079
  geneSelectOptions,
148035
148080
  transformOptions
148036
148081
  } = props2;
148082
+ const gatingScatterplotOptionsId = useId();
148037
148083
  const classes = usePlotOptionsStyles();
148038
148084
  const handleGeneSelectChange = (event) => {
148039
148085
  const { options } = event.target;
@@ -148066,8 +148112,14 @@ function GatingScatterplotOptions(props2) {
148066
148112
  };
148067
148113
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
148068
148114
  /* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
148069
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, children: capitalize$1(plur(featureType, geneSelectOptions == null ? void 0 : geneSelectOptions.length)) }),
148070
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
148115
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
148116
+ "label",
148117
+ {
148118
+ htmlFor: `scatterplot-gating-gene-select-${gatingScatterplotOptionsId}`,
148119
+ children: capitalize$1(pluralize(featureType, geneSelectOptions == null ? void 0 : geneSelectOptions.length))
148120
+ }
148121
+ ) }),
148122
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
148071
148123
  OptionSelect,
148072
148124
  {
148073
148125
  multiple: true,
@@ -148075,44 +148127,55 @@ function GatingScatterplotOptions(props2) {
148075
148127
  value: [gatingFeatureSelectionX, gatingFeatureSelectionY].filter((v) => v),
148076
148128
  onChange: handleGeneSelectChange,
148077
148129
  inputProps: {
148078
- id: "scatterplot-gene-select"
148130
+ id: `scatterplot-gating-gene-select-${gatingScatterplotOptionsId}`
148079
148131
  },
148080
148132
  children: geneSelectOptions.map((name2) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: name2, children: name2 }, name2))
148081
- },
148082
- "gating-gene-select"
148133
+ }
148083
148134
  ) })
148084
- ] }, "gene-option-row"),
148135
+ ] }),
148085
148136
  /* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
148086
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, children: "Transform" }),
148087
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
148137
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
148138
+ "label",
148139
+ {
148140
+ htmlFor: `scatterplot-gating-transform-select-${gatingScatterplotOptionsId}`,
148141
+ children: "Transform"
148142
+ }
148143
+ ) }),
148144
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
148088
148145
  OptionSelect,
148089
148146
  {
148090
148147
  className: classes.select,
148091
148148
  value: gatingFeatureValueTransform === null ? "" : gatingFeatureValueTransform,
148092
148149
  onChange: handleTransformChange,
148093
148150
  inputProps: {
148094
- id: "scatterplot-transform-select"
148151
+ id: `scatterplot-gating-transform-select-${gatingScatterplotOptionsId}`
148095
148152
  },
148096
148153
  children: transformOptions.map((opt) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: opt.value === null ? "" : opt.value, children: opt.name }, opt.name))
148097
- },
148098
- "gating-transform-select"
148154
+ }
148099
148155
  ) })
148100
- ] }, "transform-option-row"),
148156
+ ] }),
148101
148157
  /* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
148102
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, children: "Transform Coefficient" }),
148103
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
148158
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
148159
+ "label",
148160
+ {
148161
+ htmlFor: `scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}`,
148162
+ children: "Transform Coefficient"
148163
+ }
148164
+ ) }),
148165
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
148104
148166
  TextField$1,
148105
148167
  {
148106
- label: "Number",
148168
+ label: "Transform Coefficient",
148107
148169
  type: "number",
148108
148170
  onChange: handleTransformCoefficientChange,
148109
148171
  value: gatingFeatureValueTransformCoefficient,
148110
148172
  InputLabelProps: {
148111
148173
  shrink: true
148112
- }
148174
+ },
148175
+ id: `scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}`
148113
148176
  }
148114
148177
  ) })
148115
- ] }, "transform-coefficient-option-row")
148178
+ ] })
148116
148179
  ] });
148117
148180
  }
148118
148181
  function GatingSubscriber(props2) {
@@ -148438,7 +148501,7 @@ function GatingSubscriber(props2) {
148438
148501
  TitleInfo,
148439
148502
  {
148440
148503
  title,
148441
- info: `${commaNumber(cellsCount)} ${plur(obsType, cellsCount)}`,
148504
+ info: `${commaNumber(cellsCount)} ${pluralize(obsType, cellsCount)}`,
148442
148505
  removeGridComponent,
148443
148506
  urls,
148444
148507
  theme,
@@ -148495,7 +148558,7 @@ function GatingSubscriber(props2) {
148495
148558
  EmptyMessage,
148496
148559
  {
148497
148560
  visible: !(gatingFeatureSelectionX && gatingFeatureSelectionY),
148498
- message: `Select two ${plur(featureType, 2)} in the plot settings.`
148561
+ message: `Select two ${pluralize(featureType, 2)} in the plot settings.`
148499
148562
  }
148500
148563
  ),
148501
148564
  /* @__PURE__ */ jsxRuntimeExports.jsx(