@vitessce/csv 3.1.1 → 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.
Files changed (2) hide show
  1. package/dist/index.js +360 -0
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1418,6 +1418,9 @@ function createRange(fromRight) {
1418
1418
  var range$1 = createRange();
1419
1419
  const range$2 = range$1;
1420
1420
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1421
+ function getDefaultExportFromCjs(x) {
1422
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1423
+ }
1421
1424
  function getAugmentedNamespace(n) {
1422
1425
  if (n.__esModule)
1423
1426
  return n;
@@ -2156,6 +2159,363 @@ function convexHull(points) {
2156
2159
  lower.pop();
2157
2160
  return lower.concat(upper);
2158
2161
  }
2162
+ function commonjsRequire(path) {
2163
+ 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.');
2164
+ }
2165
+ var pluralize = { exports: {} };
2166
+ (function(module2, exports2) {
2167
+ (function(root2, pluralize2) {
2168
+ if (typeof commonjsRequire === "function" && true && true) {
2169
+ module2.exports = pluralize2();
2170
+ } else {
2171
+ root2.pluralize = pluralize2();
2172
+ }
2173
+ })(commonjsGlobal, function() {
2174
+ var pluralRules = [];
2175
+ var singularRules = [];
2176
+ var uncountables = {};
2177
+ var irregularPlurals = {};
2178
+ var irregularSingles = {};
2179
+ function sanitizeRule(rule) {
2180
+ if (typeof rule === "string") {
2181
+ return new RegExp("^" + rule + "$", "i");
2182
+ }
2183
+ return rule;
2184
+ }
2185
+ function restoreCase(word, token) {
2186
+ if (word === token)
2187
+ return token;
2188
+ if (word === word.toLowerCase())
2189
+ return token.toLowerCase();
2190
+ if (word === word.toUpperCase())
2191
+ return token.toUpperCase();
2192
+ if (word[0] === word[0].toUpperCase()) {
2193
+ return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
2194
+ }
2195
+ return token.toLowerCase();
2196
+ }
2197
+ function interpolate(str, args) {
2198
+ return str.replace(/\$(\d{1,2})/g, function(match, index) {
2199
+ return args[index] || "";
2200
+ });
2201
+ }
2202
+ function replace(word, rule) {
2203
+ return word.replace(rule[0], function(match, index) {
2204
+ var result = interpolate(rule[1], arguments);
2205
+ if (match === "") {
2206
+ return restoreCase(word[index - 1], result);
2207
+ }
2208
+ return restoreCase(match, result);
2209
+ });
2210
+ }
2211
+ function sanitizeWord(token, word, rules) {
2212
+ if (!token.length || uncountables.hasOwnProperty(token)) {
2213
+ return word;
2214
+ }
2215
+ var len = rules.length;
2216
+ while (len--) {
2217
+ var rule = rules[len];
2218
+ if (rule[0].test(word))
2219
+ return replace(word, rule);
2220
+ }
2221
+ return word;
2222
+ }
2223
+ function replaceWord(replaceMap, keepMap, rules) {
2224
+ return function(word) {
2225
+ var token = word.toLowerCase();
2226
+ if (keepMap.hasOwnProperty(token)) {
2227
+ return restoreCase(word, token);
2228
+ }
2229
+ if (replaceMap.hasOwnProperty(token)) {
2230
+ return restoreCase(word, replaceMap[token]);
2231
+ }
2232
+ return sanitizeWord(token, word, rules);
2233
+ };
2234
+ }
2235
+ function checkWord(replaceMap, keepMap, rules, bool) {
2236
+ return function(word) {
2237
+ var token = word.toLowerCase();
2238
+ if (keepMap.hasOwnProperty(token))
2239
+ return true;
2240
+ if (replaceMap.hasOwnProperty(token))
2241
+ return false;
2242
+ return sanitizeWord(token, token, rules) === token;
2243
+ };
2244
+ }
2245
+ function pluralize2(word, count, inclusive) {
2246
+ var pluralized = count === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
2247
+ return (inclusive ? count + " " : "") + pluralized;
2248
+ }
2249
+ pluralize2.plural = replaceWord(
2250
+ irregularSingles,
2251
+ irregularPlurals,
2252
+ pluralRules
2253
+ );
2254
+ pluralize2.isPlural = checkWord(
2255
+ irregularSingles,
2256
+ irregularPlurals,
2257
+ pluralRules
2258
+ );
2259
+ pluralize2.singular = replaceWord(
2260
+ irregularPlurals,
2261
+ irregularSingles,
2262
+ singularRules
2263
+ );
2264
+ pluralize2.isSingular = checkWord(
2265
+ irregularPlurals,
2266
+ irregularSingles,
2267
+ singularRules
2268
+ );
2269
+ pluralize2.addPluralRule = function(rule, replacement) {
2270
+ pluralRules.push([sanitizeRule(rule), replacement]);
2271
+ };
2272
+ pluralize2.addSingularRule = function(rule, replacement) {
2273
+ singularRules.push([sanitizeRule(rule), replacement]);
2274
+ };
2275
+ pluralize2.addUncountableRule = function(word) {
2276
+ if (typeof word === "string") {
2277
+ uncountables[word.toLowerCase()] = true;
2278
+ return;
2279
+ }
2280
+ pluralize2.addPluralRule(word, "$0");
2281
+ pluralize2.addSingularRule(word, "$0");
2282
+ };
2283
+ pluralize2.addIrregularRule = function(single, plural) {
2284
+ plural = plural.toLowerCase();
2285
+ single = single.toLowerCase();
2286
+ irregularSingles[single] = plural;
2287
+ irregularPlurals[plural] = single;
2288
+ };
2289
+ [
2290
+ // Pronouns.
2291
+ ["I", "we"],
2292
+ ["me", "us"],
2293
+ ["he", "they"],
2294
+ ["she", "they"],
2295
+ ["them", "them"],
2296
+ ["myself", "ourselves"],
2297
+ ["yourself", "yourselves"],
2298
+ ["itself", "themselves"],
2299
+ ["herself", "themselves"],
2300
+ ["himself", "themselves"],
2301
+ ["themself", "themselves"],
2302
+ ["is", "are"],
2303
+ ["was", "were"],
2304
+ ["has", "have"],
2305
+ ["this", "these"],
2306
+ ["that", "those"],
2307
+ // Words ending in with a consonant and `o`.
2308
+ ["echo", "echoes"],
2309
+ ["dingo", "dingoes"],
2310
+ ["volcano", "volcanoes"],
2311
+ ["tornado", "tornadoes"],
2312
+ ["torpedo", "torpedoes"],
2313
+ // Ends with `us`.
2314
+ ["genus", "genera"],
2315
+ ["viscus", "viscera"],
2316
+ // Ends with `ma`.
2317
+ ["stigma", "stigmata"],
2318
+ ["stoma", "stomata"],
2319
+ ["dogma", "dogmata"],
2320
+ ["lemma", "lemmata"],
2321
+ ["schema", "schemata"],
2322
+ ["anathema", "anathemata"],
2323
+ // Other irregular rules.
2324
+ ["ox", "oxen"],
2325
+ ["axe", "axes"],
2326
+ ["die", "dice"],
2327
+ ["yes", "yeses"],
2328
+ ["foot", "feet"],
2329
+ ["eave", "eaves"],
2330
+ ["goose", "geese"],
2331
+ ["tooth", "teeth"],
2332
+ ["quiz", "quizzes"],
2333
+ ["human", "humans"],
2334
+ ["proof", "proofs"],
2335
+ ["carve", "carves"],
2336
+ ["valve", "valves"],
2337
+ ["looey", "looies"],
2338
+ ["thief", "thieves"],
2339
+ ["groove", "grooves"],
2340
+ ["pickaxe", "pickaxes"],
2341
+ ["passerby", "passersby"]
2342
+ ].forEach(function(rule) {
2343
+ return pluralize2.addIrregularRule(rule[0], rule[1]);
2344
+ });
2345
+ [
2346
+ [/s?$/i, "s"],
2347
+ [/[^\u0000-\u007F]$/i, "$0"],
2348
+ [/([^aeiou]ese)$/i, "$1"],
2349
+ [/(ax|test)is$/i, "$1es"],
2350
+ [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
2351
+ [/(e[mn]u)s?$/i, "$1s"],
2352
+ [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
2353
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
2354
+ [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
2355
+ [/(seraph|cherub)(?:im)?$/i, "$1im"],
2356
+ [/(her|at|gr)o$/i, "$1oes"],
2357
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
2358
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
2359
+ [/sis$/i, "ses"],
2360
+ [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
2361
+ [/([^aeiouy]|qu)y$/i, "$1ies"],
2362
+ [/([^ch][ieo][ln])ey$/i, "$1ies"],
2363
+ [/(x|ch|ss|sh|zz)$/i, "$1es"],
2364
+ [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
2365
+ [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
2366
+ [/(pe)(?:rson|ople)$/i, "$1ople"],
2367
+ [/(child)(?:ren)?$/i, "$1ren"],
2368
+ [/eaux$/i, "$0"],
2369
+ [/m[ae]n$/i, "men"],
2370
+ ["thou", "you"]
2371
+ ].forEach(function(rule) {
2372
+ return pluralize2.addPluralRule(rule[0], rule[1]);
2373
+ });
2374
+ [
2375
+ [/s$/i, ""],
2376
+ [/(ss)$/i, "$1"],
2377
+ [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
2378
+ [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
2379
+ [/ies$/i, "y"],
2380
+ [/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
2381
+ [/\b(mon|smil)ies$/i, "$1ey"],
2382
+ [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
2383
+ [/(seraph|cherub)im$/i, "$1"],
2384
+ [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
2385
+ [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
2386
+ [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
2387
+ [/(test)(?:is|es)$/i, "$1is"],
2388
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
2389
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
2390
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
2391
+ [/(alumn|alg|vertebr)ae$/i, "$1a"],
2392
+ [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
2393
+ [/(matr|append)ices$/i, "$1ix"],
2394
+ [/(pe)(rson|ople)$/i, "$1rson"],
2395
+ [/(child)ren$/i, "$1"],
2396
+ [/(eau)x?$/i, "$1"],
2397
+ [/men$/i, "man"]
2398
+ ].forEach(function(rule) {
2399
+ return pluralize2.addSingularRule(rule[0], rule[1]);
2400
+ });
2401
+ [
2402
+ // Singular words with no plurals.
2403
+ "adulthood",
2404
+ "advice",
2405
+ "agenda",
2406
+ "aid",
2407
+ "aircraft",
2408
+ "alcohol",
2409
+ "ammo",
2410
+ "analytics",
2411
+ "anime",
2412
+ "athletics",
2413
+ "audio",
2414
+ "bison",
2415
+ "blood",
2416
+ "bream",
2417
+ "buffalo",
2418
+ "butter",
2419
+ "carp",
2420
+ "cash",
2421
+ "chassis",
2422
+ "chess",
2423
+ "clothing",
2424
+ "cod",
2425
+ "commerce",
2426
+ "cooperation",
2427
+ "corps",
2428
+ "debris",
2429
+ "diabetes",
2430
+ "digestion",
2431
+ "elk",
2432
+ "energy",
2433
+ "equipment",
2434
+ "excretion",
2435
+ "expertise",
2436
+ "firmware",
2437
+ "flounder",
2438
+ "fun",
2439
+ "gallows",
2440
+ "garbage",
2441
+ "graffiti",
2442
+ "hardware",
2443
+ "headquarters",
2444
+ "health",
2445
+ "herpes",
2446
+ "highjinks",
2447
+ "homework",
2448
+ "housework",
2449
+ "information",
2450
+ "jeans",
2451
+ "justice",
2452
+ "kudos",
2453
+ "labour",
2454
+ "literature",
2455
+ "machinery",
2456
+ "mackerel",
2457
+ "mail",
2458
+ "media",
2459
+ "mews",
2460
+ "moose",
2461
+ "music",
2462
+ "mud",
2463
+ "manga",
2464
+ "news",
2465
+ "only",
2466
+ "personnel",
2467
+ "pike",
2468
+ "plankton",
2469
+ "pliers",
2470
+ "police",
2471
+ "pollution",
2472
+ "premises",
2473
+ "rain",
2474
+ "research",
2475
+ "rice",
2476
+ "salmon",
2477
+ "scissors",
2478
+ "series",
2479
+ "sewage",
2480
+ "shambles",
2481
+ "shrimp",
2482
+ "software",
2483
+ "species",
2484
+ "staff",
2485
+ "swine",
2486
+ "tennis",
2487
+ "traffic",
2488
+ "transportation",
2489
+ "trout",
2490
+ "tuna",
2491
+ "wealth",
2492
+ "welfare",
2493
+ "whiting",
2494
+ "wildebeest",
2495
+ "wildlife",
2496
+ "you",
2497
+ /pok[eé]mon$/i,
2498
+ // Regexes.
2499
+ /[^aeiou]ese$/i,
2500
+ // "chinese", "japanese"
2501
+ /deer$/i,
2502
+ // "deer", "reindeer"
2503
+ /fish$/i,
2504
+ // "fish", "blowfish", "angelfish"
2505
+ /measles$/i,
2506
+ /o[iu]s$/i,
2507
+ // "carnivorous"
2508
+ /pox$/i,
2509
+ // "chickpox", "smallpox"
2510
+ /sheep$/i
2511
+ ].forEach(pluralize2.addUncountableRule);
2512
+ return pluralize2;
2513
+ });
2514
+ })(pluralize);
2515
+ var pluralizeExports = pluralize.exports;
2516
+ const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
2517
+ plur.addPluralRule("glomerulus", "glomeruli");
2518
+ plur.addPluralRule("interstitium", "interstitia");
2159
2519
  function fromEntries(iterable) {
2160
2520
  return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
2161
2521
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/csv",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "d3-array": "^2.4.0",
20
20
  "d3-dsv": "^1.1.1",
21
- "@vitessce/constants-internal": "3.1.1",
22
- "@vitessce/sets-utils": "3.1.1",
23
- "@vitessce/vit-s": "3.1.1"
21
+ "@vitessce/constants-internal": "3.1.2",
22
+ "@vitessce/sets-utils": "3.1.2",
23
+ "@vitessce/vit-s": "3.1.2"
24
24
  },
25
25
  "scripts": {
26
26
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",