@vitessce/json 3.3.4 → 3.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{deflate-4d52bdec.js → deflate-dab09517.js} +1 -1
- package/dist/{index-cd2c00d9.js → index-5ec82f0b.js} +459 -457
- package/dist/index.js +1 -1
- package/dist/{jpeg-69e005b7.js → jpeg-ce1ae43d.js} +1 -1
- package/dist/{lerc-cc95d8a0.js → lerc-0726fca8.js} +1 -1
- package/dist/{lzw-893f4756.js → lzw-95e1c960.js} +1 -1
- package/dist/{packbits-b1b1628c.js → packbits-fc3d8a5d.js} +1 -1
- package/dist/{raw-6807a7ef.js → raw-5c61ad08.js} +1 -1
- package/dist/{webimage-1e5d733c.js → webimage-1320968a.js} +1 -1
- package/package.json +10 -10
|
@@ -116,6 +116,7 @@ const FileType$1 = {
|
|
|
116
116
|
OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
|
|
117
117
|
// AnnData
|
|
118
118
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
|
|
119
|
+
OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
|
|
119
120
|
OBS_SETS_ANNDATA_ZARR: "obsSets.anndata.zarr",
|
|
120
121
|
OBS_EMBEDDING_ANNDATA_ZARR: "obsEmbedding.anndata.zarr",
|
|
121
122
|
OBS_SPOTS_ANNDATA_ZARR: "obsSpots.anndata.zarr",
|
|
@@ -3969,452 +3970,6 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3969
3970
|
quotelessJson,
|
|
3970
3971
|
ZodError
|
|
3971
3972
|
});
|
|
3972
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
3973
|
-
function getDefaultExportFromCjs(x2) {
|
|
3974
|
-
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
3975
|
-
}
|
|
3976
|
-
function getAugmentedNamespace(n3) {
|
|
3977
|
-
if (n3.__esModule)
|
|
3978
|
-
return n3;
|
|
3979
|
-
var f2 = n3.default;
|
|
3980
|
-
if (typeof f2 == "function") {
|
|
3981
|
-
var a2 = function a3() {
|
|
3982
|
-
if (this instanceof a3) {
|
|
3983
|
-
var args = [null];
|
|
3984
|
-
args.push.apply(args, arguments);
|
|
3985
|
-
var Ctor = Function.bind.apply(f2, args);
|
|
3986
|
-
return new Ctor();
|
|
3987
|
-
}
|
|
3988
|
-
return f2.apply(this, arguments);
|
|
3989
|
-
};
|
|
3990
|
-
a2.prototype = f2.prototype;
|
|
3991
|
-
} else
|
|
3992
|
-
a2 = {};
|
|
3993
|
-
Object.defineProperty(a2, "__esModule", { value: true });
|
|
3994
|
-
Object.keys(n3).forEach(function(k) {
|
|
3995
|
-
var d = Object.getOwnPropertyDescriptor(n3, k);
|
|
3996
|
-
Object.defineProperty(a2, k, d.get ? d : {
|
|
3997
|
-
enumerable: true,
|
|
3998
|
-
get: function() {
|
|
3999
|
-
return n3[k];
|
|
4000
|
-
}
|
|
4001
|
-
});
|
|
4002
|
-
});
|
|
4003
|
-
return a2;
|
|
4004
|
-
}
|
|
4005
|
-
function commonjsRequire(path) {
|
|
4006
|
-
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.');
|
|
4007
|
-
}
|
|
4008
|
-
var pluralize = { exports: {} };
|
|
4009
|
-
(function(module2, exports2) {
|
|
4010
|
-
(function(root2, pluralize2) {
|
|
4011
|
-
if (typeof commonjsRequire === "function" && true && true) {
|
|
4012
|
-
module2.exports = pluralize2();
|
|
4013
|
-
} else {
|
|
4014
|
-
root2.pluralize = pluralize2();
|
|
4015
|
-
}
|
|
4016
|
-
})(commonjsGlobal, function() {
|
|
4017
|
-
var pluralRules = [];
|
|
4018
|
-
var singularRules = [];
|
|
4019
|
-
var uncountables = {};
|
|
4020
|
-
var irregularPlurals = {};
|
|
4021
|
-
var irregularSingles = {};
|
|
4022
|
-
function sanitizeRule(rule) {
|
|
4023
|
-
if (typeof rule === "string") {
|
|
4024
|
-
return new RegExp("^" + rule + "$", "i");
|
|
4025
|
-
}
|
|
4026
|
-
return rule;
|
|
4027
|
-
}
|
|
4028
|
-
function restoreCase(word, token) {
|
|
4029
|
-
if (word === token)
|
|
4030
|
-
return token;
|
|
4031
|
-
if (word === word.toLowerCase())
|
|
4032
|
-
return token.toLowerCase();
|
|
4033
|
-
if (word === word.toUpperCase())
|
|
4034
|
-
return token.toUpperCase();
|
|
4035
|
-
if (word[0] === word[0].toUpperCase()) {
|
|
4036
|
-
return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
|
4037
|
-
}
|
|
4038
|
-
return token.toLowerCase();
|
|
4039
|
-
}
|
|
4040
|
-
function interpolate2(str, args) {
|
|
4041
|
-
return str.replace(/\$(\d{1,2})/g, function(match, index2) {
|
|
4042
|
-
return args[index2] || "";
|
|
4043
|
-
});
|
|
4044
|
-
}
|
|
4045
|
-
function replace(word, rule) {
|
|
4046
|
-
return word.replace(rule[0], function(match, index2) {
|
|
4047
|
-
var result = interpolate2(rule[1], arguments);
|
|
4048
|
-
if (match === "") {
|
|
4049
|
-
return restoreCase(word[index2 - 1], result);
|
|
4050
|
-
}
|
|
4051
|
-
return restoreCase(match, result);
|
|
4052
|
-
});
|
|
4053
|
-
}
|
|
4054
|
-
function sanitizeWord(token, word, rules) {
|
|
4055
|
-
if (!token.length || uncountables.hasOwnProperty(token)) {
|
|
4056
|
-
return word;
|
|
4057
|
-
}
|
|
4058
|
-
var len2 = rules.length;
|
|
4059
|
-
while (len2--) {
|
|
4060
|
-
var rule = rules[len2];
|
|
4061
|
-
if (rule[0].test(word))
|
|
4062
|
-
return replace(word, rule);
|
|
4063
|
-
}
|
|
4064
|
-
return word;
|
|
4065
|
-
}
|
|
4066
|
-
function replaceWord(replaceMap, keepMap, rules) {
|
|
4067
|
-
return function(word) {
|
|
4068
|
-
var token = word.toLowerCase();
|
|
4069
|
-
if (keepMap.hasOwnProperty(token)) {
|
|
4070
|
-
return restoreCase(word, token);
|
|
4071
|
-
}
|
|
4072
|
-
if (replaceMap.hasOwnProperty(token)) {
|
|
4073
|
-
return restoreCase(word, replaceMap[token]);
|
|
4074
|
-
}
|
|
4075
|
-
return sanitizeWord(token, word, rules);
|
|
4076
|
-
};
|
|
4077
|
-
}
|
|
4078
|
-
function checkWord(replaceMap, keepMap, rules, bool) {
|
|
4079
|
-
return function(word) {
|
|
4080
|
-
var token = word.toLowerCase();
|
|
4081
|
-
if (keepMap.hasOwnProperty(token))
|
|
4082
|
-
return true;
|
|
4083
|
-
if (replaceMap.hasOwnProperty(token))
|
|
4084
|
-
return false;
|
|
4085
|
-
return sanitizeWord(token, token, rules) === token;
|
|
4086
|
-
};
|
|
4087
|
-
}
|
|
4088
|
-
function pluralize2(word, count2, inclusive) {
|
|
4089
|
-
var pluralized = count2 === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
|
|
4090
|
-
return (inclusive ? count2 + " " : "") + pluralized;
|
|
4091
|
-
}
|
|
4092
|
-
pluralize2.plural = replaceWord(
|
|
4093
|
-
irregularSingles,
|
|
4094
|
-
irregularPlurals,
|
|
4095
|
-
pluralRules
|
|
4096
|
-
);
|
|
4097
|
-
pluralize2.isPlural = checkWord(
|
|
4098
|
-
irregularSingles,
|
|
4099
|
-
irregularPlurals,
|
|
4100
|
-
pluralRules
|
|
4101
|
-
);
|
|
4102
|
-
pluralize2.singular = replaceWord(
|
|
4103
|
-
irregularPlurals,
|
|
4104
|
-
irregularSingles,
|
|
4105
|
-
singularRules
|
|
4106
|
-
);
|
|
4107
|
-
pluralize2.isSingular = checkWord(
|
|
4108
|
-
irregularPlurals,
|
|
4109
|
-
irregularSingles,
|
|
4110
|
-
singularRules
|
|
4111
|
-
);
|
|
4112
|
-
pluralize2.addPluralRule = function(rule, replacement) {
|
|
4113
|
-
pluralRules.push([sanitizeRule(rule), replacement]);
|
|
4114
|
-
};
|
|
4115
|
-
pluralize2.addSingularRule = function(rule, replacement) {
|
|
4116
|
-
singularRules.push([sanitizeRule(rule), replacement]);
|
|
4117
|
-
};
|
|
4118
|
-
pluralize2.addUncountableRule = function(word) {
|
|
4119
|
-
if (typeof word === "string") {
|
|
4120
|
-
uncountables[word.toLowerCase()] = true;
|
|
4121
|
-
return;
|
|
4122
|
-
}
|
|
4123
|
-
pluralize2.addPluralRule(word, "$0");
|
|
4124
|
-
pluralize2.addSingularRule(word, "$0");
|
|
4125
|
-
};
|
|
4126
|
-
pluralize2.addIrregularRule = function(single, plural) {
|
|
4127
|
-
plural = plural.toLowerCase();
|
|
4128
|
-
single = single.toLowerCase();
|
|
4129
|
-
irregularSingles[single] = plural;
|
|
4130
|
-
irregularPlurals[plural] = single;
|
|
4131
|
-
};
|
|
4132
|
-
[
|
|
4133
|
-
// Pronouns.
|
|
4134
|
-
["I", "we"],
|
|
4135
|
-
["me", "us"],
|
|
4136
|
-
["he", "they"],
|
|
4137
|
-
["she", "they"],
|
|
4138
|
-
["them", "them"],
|
|
4139
|
-
["myself", "ourselves"],
|
|
4140
|
-
["yourself", "yourselves"],
|
|
4141
|
-
["itself", "themselves"],
|
|
4142
|
-
["herself", "themselves"],
|
|
4143
|
-
["himself", "themselves"],
|
|
4144
|
-
["themself", "themselves"],
|
|
4145
|
-
["is", "are"],
|
|
4146
|
-
["was", "were"],
|
|
4147
|
-
["has", "have"],
|
|
4148
|
-
["this", "these"],
|
|
4149
|
-
["that", "those"],
|
|
4150
|
-
// Words ending in with a consonant and `o`.
|
|
4151
|
-
["echo", "echoes"],
|
|
4152
|
-
["dingo", "dingoes"],
|
|
4153
|
-
["volcano", "volcanoes"],
|
|
4154
|
-
["tornado", "tornadoes"],
|
|
4155
|
-
["torpedo", "torpedoes"],
|
|
4156
|
-
// Ends with `us`.
|
|
4157
|
-
["genus", "genera"],
|
|
4158
|
-
["viscus", "viscera"],
|
|
4159
|
-
// Ends with `ma`.
|
|
4160
|
-
["stigma", "stigmata"],
|
|
4161
|
-
["stoma", "stomata"],
|
|
4162
|
-
["dogma", "dogmata"],
|
|
4163
|
-
["lemma", "lemmata"],
|
|
4164
|
-
["schema", "schemata"],
|
|
4165
|
-
["anathema", "anathemata"],
|
|
4166
|
-
// Other irregular rules.
|
|
4167
|
-
["ox", "oxen"],
|
|
4168
|
-
["axe", "axes"],
|
|
4169
|
-
["die", "dice"],
|
|
4170
|
-
["yes", "yeses"],
|
|
4171
|
-
["foot", "feet"],
|
|
4172
|
-
["eave", "eaves"],
|
|
4173
|
-
["goose", "geese"],
|
|
4174
|
-
["tooth", "teeth"],
|
|
4175
|
-
["quiz", "quizzes"],
|
|
4176
|
-
["human", "humans"],
|
|
4177
|
-
["proof", "proofs"],
|
|
4178
|
-
["carve", "carves"],
|
|
4179
|
-
["valve", "valves"],
|
|
4180
|
-
["looey", "looies"],
|
|
4181
|
-
["thief", "thieves"],
|
|
4182
|
-
["groove", "grooves"],
|
|
4183
|
-
["pickaxe", "pickaxes"],
|
|
4184
|
-
["passerby", "passersby"]
|
|
4185
|
-
].forEach(function(rule) {
|
|
4186
|
-
return pluralize2.addIrregularRule(rule[0], rule[1]);
|
|
4187
|
-
});
|
|
4188
|
-
[
|
|
4189
|
-
[/s?$/i, "s"],
|
|
4190
|
-
[/[^\u0000-\u007F]$/i, "$0"],
|
|
4191
|
-
[/([^aeiou]ese)$/i, "$1"],
|
|
4192
|
-
[/(ax|test)is$/i, "$1es"],
|
|
4193
|
-
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
|
|
4194
|
-
[/(e[mn]u)s?$/i, "$1s"],
|
|
4195
|
-
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
|
|
4196
|
-
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
|
|
4197
|
-
[/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
|
|
4198
|
-
[/(seraph|cherub)(?:im)?$/i, "$1im"],
|
|
4199
|
-
[/(her|at|gr)o$/i, "$1oes"],
|
|
4200
|
-
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
|
|
4201
|
-
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
|
|
4202
|
-
[/sis$/i, "ses"],
|
|
4203
|
-
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
|
|
4204
|
-
[/([^aeiouy]|qu)y$/i, "$1ies"],
|
|
4205
|
-
[/([^ch][ieo][ln])ey$/i, "$1ies"],
|
|
4206
|
-
[/(x|ch|ss|sh|zz)$/i, "$1es"],
|
|
4207
|
-
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
|
|
4208
|
-
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
|
|
4209
|
-
[/(pe)(?:rson|ople)$/i, "$1ople"],
|
|
4210
|
-
[/(child)(?:ren)?$/i, "$1ren"],
|
|
4211
|
-
[/eaux$/i, "$0"],
|
|
4212
|
-
[/m[ae]n$/i, "men"],
|
|
4213
|
-
["thou", "you"]
|
|
4214
|
-
].forEach(function(rule) {
|
|
4215
|
-
return pluralize2.addPluralRule(rule[0], rule[1]);
|
|
4216
|
-
});
|
|
4217
|
-
[
|
|
4218
|
-
[/s$/i, ""],
|
|
4219
|
-
[/(ss)$/i, "$1"],
|
|
4220
|
-
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
|
|
4221
|
-
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
|
|
4222
|
-
[/ies$/i, "y"],
|
|
4223
|
-
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
|
|
4224
|
-
[/\b(mon|smil)ies$/i, "$1ey"],
|
|
4225
|
-
[/\b((?:tit)?m|l)ice$/i, "$1ouse"],
|
|
4226
|
-
[/(seraph|cherub)im$/i, "$1"],
|
|
4227
|
-
[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
|
|
4228
|
-
[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
|
|
4229
|
-
[/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
|
|
4230
|
-
[/(test)(?:is|es)$/i, "$1is"],
|
|
4231
|
-
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
|
|
4232
|
-
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
|
|
4233
|
-
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
|
|
4234
|
-
[/(alumn|alg|vertebr)ae$/i, "$1a"],
|
|
4235
|
-
[/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
|
|
4236
|
-
[/(matr|append)ices$/i, "$1ix"],
|
|
4237
|
-
[/(pe)(rson|ople)$/i, "$1rson"],
|
|
4238
|
-
[/(child)ren$/i, "$1"],
|
|
4239
|
-
[/(eau)x?$/i, "$1"],
|
|
4240
|
-
[/men$/i, "man"]
|
|
4241
|
-
].forEach(function(rule) {
|
|
4242
|
-
return pluralize2.addSingularRule(rule[0], rule[1]);
|
|
4243
|
-
});
|
|
4244
|
-
[
|
|
4245
|
-
// Singular words with no plurals.
|
|
4246
|
-
"adulthood",
|
|
4247
|
-
"advice",
|
|
4248
|
-
"agenda",
|
|
4249
|
-
"aid",
|
|
4250
|
-
"aircraft",
|
|
4251
|
-
"alcohol",
|
|
4252
|
-
"ammo",
|
|
4253
|
-
"analytics",
|
|
4254
|
-
"anime",
|
|
4255
|
-
"athletics",
|
|
4256
|
-
"audio",
|
|
4257
|
-
"bison",
|
|
4258
|
-
"blood",
|
|
4259
|
-
"bream",
|
|
4260
|
-
"buffalo",
|
|
4261
|
-
"butter",
|
|
4262
|
-
"carp",
|
|
4263
|
-
"cash",
|
|
4264
|
-
"chassis",
|
|
4265
|
-
"chess",
|
|
4266
|
-
"clothing",
|
|
4267
|
-
"cod",
|
|
4268
|
-
"commerce",
|
|
4269
|
-
"cooperation",
|
|
4270
|
-
"corps",
|
|
4271
|
-
"debris",
|
|
4272
|
-
"diabetes",
|
|
4273
|
-
"digestion",
|
|
4274
|
-
"elk",
|
|
4275
|
-
"energy",
|
|
4276
|
-
"equipment",
|
|
4277
|
-
"excretion",
|
|
4278
|
-
"expertise",
|
|
4279
|
-
"firmware",
|
|
4280
|
-
"flounder",
|
|
4281
|
-
"fun",
|
|
4282
|
-
"gallows",
|
|
4283
|
-
"garbage",
|
|
4284
|
-
"graffiti",
|
|
4285
|
-
"hardware",
|
|
4286
|
-
"headquarters",
|
|
4287
|
-
"health",
|
|
4288
|
-
"herpes",
|
|
4289
|
-
"highjinks",
|
|
4290
|
-
"homework",
|
|
4291
|
-
"housework",
|
|
4292
|
-
"information",
|
|
4293
|
-
"jeans",
|
|
4294
|
-
"justice",
|
|
4295
|
-
"kudos",
|
|
4296
|
-
"labour",
|
|
4297
|
-
"literature",
|
|
4298
|
-
"machinery",
|
|
4299
|
-
"mackerel",
|
|
4300
|
-
"mail",
|
|
4301
|
-
"media",
|
|
4302
|
-
"mews",
|
|
4303
|
-
"moose",
|
|
4304
|
-
"music",
|
|
4305
|
-
"mud",
|
|
4306
|
-
"manga",
|
|
4307
|
-
"news",
|
|
4308
|
-
"only",
|
|
4309
|
-
"personnel",
|
|
4310
|
-
"pike",
|
|
4311
|
-
"plankton",
|
|
4312
|
-
"pliers",
|
|
4313
|
-
"police",
|
|
4314
|
-
"pollution",
|
|
4315
|
-
"premises",
|
|
4316
|
-
"rain",
|
|
4317
|
-
"research",
|
|
4318
|
-
"rice",
|
|
4319
|
-
"salmon",
|
|
4320
|
-
"scissors",
|
|
4321
|
-
"series",
|
|
4322
|
-
"sewage",
|
|
4323
|
-
"shambles",
|
|
4324
|
-
"shrimp",
|
|
4325
|
-
"software",
|
|
4326
|
-
"species",
|
|
4327
|
-
"staff",
|
|
4328
|
-
"swine",
|
|
4329
|
-
"tennis",
|
|
4330
|
-
"traffic",
|
|
4331
|
-
"transportation",
|
|
4332
|
-
"trout",
|
|
4333
|
-
"tuna",
|
|
4334
|
-
"wealth",
|
|
4335
|
-
"welfare",
|
|
4336
|
-
"whiting",
|
|
4337
|
-
"wildebeest",
|
|
4338
|
-
"wildlife",
|
|
4339
|
-
"you",
|
|
4340
|
-
/pok[eé]mon$/i,
|
|
4341
|
-
// Regexes.
|
|
4342
|
-
/[^aeiou]ese$/i,
|
|
4343
|
-
// "chinese", "japanese"
|
|
4344
|
-
/deer$/i,
|
|
4345
|
-
// "deer", "reindeer"
|
|
4346
|
-
/fish$/i,
|
|
4347
|
-
// "fish", "blowfish", "angelfish"
|
|
4348
|
-
/measles$/i,
|
|
4349
|
-
/o[iu]s$/i,
|
|
4350
|
-
// "carnivorous"
|
|
4351
|
-
/pox$/i,
|
|
4352
|
-
// "chickpox", "smallpox"
|
|
4353
|
-
/sheep$/i
|
|
4354
|
-
].forEach(pluralize2.addUncountableRule);
|
|
4355
|
-
return pluralize2;
|
|
4356
|
-
});
|
|
4357
|
-
})(pluralize);
|
|
4358
|
-
var pluralizeExports = pluralize.exports;
|
|
4359
|
-
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
4360
|
-
plur.addPluralRule("glomerulus", "glomeruli");
|
|
4361
|
-
plur.addPluralRule("interstitium", "interstitia");
|
|
4362
|
-
function fromEntries(iterable) {
|
|
4363
|
-
return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
|
|
4364
|
-
}
|
|
4365
|
-
function capitalize(word) {
|
|
4366
|
-
return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
|
|
4367
|
-
}
|
|
4368
|
-
function getNextScope(prevScopes) {
|
|
4369
|
-
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
4370
|
-
const nextCharIndices = [0];
|
|
4371
|
-
function next3() {
|
|
4372
|
-
const r2 = [];
|
|
4373
|
-
nextCharIndices.forEach((charIndex) => {
|
|
4374
|
-
r2.unshift(chars[charIndex]);
|
|
4375
|
-
});
|
|
4376
|
-
let increment = true;
|
|
4377
|
-
for (let i2 = 0; i2 < nextCharIndices.length; i2++) {
|
|
4378
|
-
const val = ++nextCharIndices[i2];
|
|
4379
|
-
if (val >= chars.length) {
|
|
4380
|
-
nextCharIndices[i2] = 0;
|
|
4381
|
-
} else {
|
|
4382
|
-
increment = false;
|
|
4383
|
-
break;
|
|
4384
|
-
}
|
|
4385
|
-
}
|
|
4386
|
-
if (increment) {
|
|
4387
|
-
nextCharIndices.push(0);
|
|
4388
|
-
}
|
|
4389
|
-
return r2.join("");
|
|
4390
|
-
}
|
|
4391
|
-
let nextScope;
|
|
4392
|
-
do {
|
|
4393
|
-
nextScope = next3();
|
|
4394
|
-
} while (prevScopes.includes(nextScope));
|
|
4395
|
-
return nextScope;
|
|
4396
|
-
}
|
|
4397
|
-
const PALETTE = [
|
|
4398
|
-
[68, 119, 170],
|
|
4399
|
-
[136, 204, 238],
|
|
4400
|
-
[68, 170, 153],
|
|
4401
|
-
[17, 119, 51],
|
|
4402
|
-
[153, 153, 51],
|
|
4403
|
-
[221, 204, 119],
|
|
4404
|
-
[204, 102, 119],
|
|
4405
|
-
[136, 34, 85],
|
|
4406
|
-
[170, 68, 153]
|
|
4407
|
-
];
|
|
4408
|
-
const VIEWER_PALETTE = [
|
|
4409
|
-
[0, 0, 255],
|
|
4410
|
-
[0, 255, 0],
|
|
4411
|
-
[255, 0, 255],
|
|
4412
|
-
[255, 255, 0],
|
|
4413
|
-
[0, 255, 255],
|
|
4414
|
-
[255, 255, 255],
|
|
4415
|
-
[255, 128, 0],
|
|
4416
|
-
[255, 0, 0]
|
|
4417
|
-
];
|
|
4418
3973
|
const coordinationTypeName = z.string();
|
|
4419
3974
|
const coordinationScopeName = z.string();
|
|
4420
3975
|
const stringOrStringArray = z.union([
|
|
@@ -5830,6 +5385,449 @@ const range$6 = range$5;
|
|
|
5830
5385
|
function sum$3(array) {
|
|
5831
5386
|
return array && array.length ? baseSum(array, identity$6) : 0;
|
|
5832
5387
|
}
|
|
5388
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
5389
|
+
function getDefaultExportFromCjs(x2) {
|
|
5390
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
5391
|
+
}
|
|
5392
|
+
function getAugmentedNamespace(n3) {
|
|
5393
|
+
if (n3.__esModule)
|
|
5394
|
+
return n3;
|
|
5395
|
+
var f2 = n3.default;
|
|
5396
|
+
if (typeof f2 == "function") {
|
|
5397
|
+
var a2 = function a3() {
|
|
5398
|
+
if (this instanceof a3) {
|
|
5399
|
+
var args = [null];
|
|
5400
|
+
args.push.apply(args, arguments);
|
|
5401
|
+
var Ctor = Function.bind.apply(f2, args);
|
|
5402
|
+
return new Ctor();
|
|
5403
|
+
}
|
|
5404
|
+
return f2.apply(this, arguments);
|
|
5405
|
+
};
|
|
5406
|
+
a2.prototype = f2.prototype;
|
|
5407
|
+
} else
|
|
5408
|
+
a2 = {};
|
|
5409
|
+
Object.defineProperty(a2, "__esModule", { value: true });
|
|
5410
|
+
Object.keys(n3).forEach(function(k) {
|
|
5411
|
+
var d = Object.getOwnPropertyDescriptor(n3, k);
|
|
5412
|
+
Object.defineProperty(a2, k, d.get ? d : {
|
|
5413
|
+
enumerable: true,
|
|
5414
|
+
get: function() {
|
|
5415
|
+
return n3[k];
|
|
5416
|
+
}
|
|
5417
|
+
});
|
|
5418
|
+
});
|
|
5419
|
+
return a2;
|
|
5420
|
+
}
|
|
5421
|
+
function commonjsRequire(path) {
|
|
5422
|
+
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.');
|
|
5423
|
+
}
|
|
5424
|
+
var pluralize = { exports: {} };
|
|
5425
|
+
(function(module2, exports2) {
|
|
5426
|
+
(function(root2, pluralize2) {
|
|
5427
|
+
if (typeof commonjsRequire === "function" && true && true) {
|
|
5428
|
+
module2.exports = pluralize2();
|
|
5429
|
+
} else {
|
|
5430
|
+
root2.pluralize = pluralize2();
|
|
5431
|
+
}
|
|
5432
|
+
})(commonjsGlobal, function() {
|
|
5433
|
+
var pluralRules = [];
|
|
5434
|
+
var singularRules = [];
|
|
5435
|
+
var uncountables = {};
|
|
5436
|
+
var irregularPlurals = {};
|
|
5437
|
+
var irregularSingles = {};
|
|
5438
|
+
function sanitizeRule(rule) {
|
|
5439
|
+
if (typeof rule === "string") {
|
|
5440
|
+
return new RegExp("^" + rule + "$", "i");
|
|
5441
|
+
}
|
|
5442
|
+
return rule;
|
|
5443
|
+
}
|
|
5444
|
+
function restoreCase(word, token) {
|
|
5445
|
+
if (word === token)
|
|
5446
|
+
return token;
|
|
5447
|
+
if (word === word.toLowerCase())
|
|
5448
|
+
return token.toLowerCase();
|
|
5449
|
+
if (word === word.toUpperCase())
|
|
5450
|
+
return token.toUpperCase();
|
|
5451
|
+
if (word[0] === word[0].toUpperCase()) {
|
|
5452
|
+
return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
|
5453
|
+
}
|
|
5454
|
+
return token.toLowerCase();
|
|
5455
|
+
}
|
|
5456
|
+
function interpolate2(str, args) {
|
|
5457
|
+
return str.replace(/\$(\d{1,2})/g, function(match, index2) {
|
|
5458
|
+
return args[index2] || "";
|
|
5459
|
+
});
|
|
5460
|
+
}
|
|
5461
|
+
function replace(word, rule) {
|
|
5462
|
+
return word.replace(rule[0], function(match, index2) {
|
|
5463
|
+
var result = interpolate2(rule[1], arguments);
|
|
5464
|
+
if (match === "") {
|
|
5465
|
+
return restoreCase(word[index2 - 1], result);
|
|
5466
|
+
}
|
|
5467
|
+
return restoreCase(match, result);
|
|
5468
|
+
});
|
|
5469
|
+
}
|
|
5470
|
+
function sanitizeWord(token, word, rules) {
|
|
5471
|
+
if (!token.length || uncountables.hasOwnProperty(token)) {
|
|
5472
|
+
return word;
|
|
5473
|
+
}
|
|
5474
|
+
var len2 = rules.length;
|
|
5475
|
+
while (len2--) {
|
|
5476
|
+
var rule = rules[len2];
|
|
5477
|
+
if (rule[0].test(word))
|
|
5478
|
+
return replace(word, rule);
|
|
5479
|
+
}
|
|
5480
|
+
return word;
|
|
5481
|
+
}
|
|
5482
|
+
function replaceWord(replaceMap, keepMap, rules) {
|
|
5483
|
+
return function(word) {
|
|
5484
|
+
var token = word.toLowerCase();
|
|
5485
|
+
if (keepMap.hasOwnProperty(token)) {
|
|
5486
|
+
return restoreCase(word, token);
|
|
5487
|
+
}
|
|
5488
|
+
if (replaceMap.hasOwnProperty(token)) {
|
|
5489
|
+
return restoreCase(word, replaceMap[token]);
|
|
5490
|
+
}
|
|
5491
|
+
return sanitizeWord(token, word, rules);
|
|
5492
|
+
};
|
|
5493
|
+
}
|
|
5494
|
+
function checkWord(replaceMap, keepMap, rules, bool) {
|
|
5495
|
+
return function(word) {
|
|
5496
|
+
var token = word.toLowerCase();
|
|
5497
|
+
if (keepMap.hasOwnProperty(token))
|
|
5498
|
+
return true;
|
|
5499
|
+
if (replaceMap.hasOwnProperty(token))
|
|
5500
|
+
return false;
|
|
5501
|
+
return sanitizeWord(token, token, rules) === token;
|
|
5502
|
+
};
|
|
5503
|
+
}
|
|
5504
|
+
function pluralize2(word, count2, inclusive) {
|
|
5505
|
+
var pluralized = count2 === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
|
|
5506
|
+
return (inclusive ? count2 + " " : "") + pluralized;
|
|
5507
|
+
}
|
|
5508
|
+
pluralize2.plural = replaceWord(
|
|
5509
|
+
irregularSingles,
|
|
5510
|
+
irregularPlurals,
|
|
5511
|
+
pluralRules
|
|
5512
|
+
);
|
|
5513
|
+
pluralize2.isPlural = checkWord(
|
|
5514
|
+
irregularSingles,
|
|
5515
|
+
irregularPlurals,
|
|
5516
|
+
pluralRules
|
|
5517
|
+
);
|
|
5518
|
+
pluralize2.singular = replaceWord(
|
|
5519
|
+
irregularPlurals,
|
|
5520
|
+
irregularSingles,
|
|
5521
|
+
singularRules
|
|
5522
|
+
);
|
|
5523
|
+
pluralize2.isSingular = checkWord(
|
|
5524
|
+
irregularPlurals,
|
|
5525
|
+
irregularSingles,
|
|
5526
|
+
singularRules
|
|
5527
|
+
);
|
|
5528
|
+
pluralize2.addPluralRule = function(rule, replacement) {
|
|
5529
|
+
pluralRules.push([sanitizeRule(rule), replacement]);
|
|
5530
|
+
};
|
|
5531
|
+
pluralize2.addSingularRule = function(rule, replacement) {
|
|
5532
|
+
singularRules.push([sanitizeRule(rule), replacement]);
|
|
5533
|
+
};
|
|
5534
|
+
pluralize2.addUncountableRule = function(word) {
|
|
5535
|
+
if (typeof word === "string") {
|
|
5536
|
+
uncountables[word.toLowerCase()] = true;
|
|
5537
|
+
return;
|
|
5538
|
+
}
|
|
5539
|
+
pluralize2.addPluralRule(word, "$0");
|
|
5540
|
+
pluralize2.addSingularRule(word, "$0");
|
|
5541
|
+
};
|
|
5542
|
+
pluralize2.addIrregularRule = function(single, plural) {
|
|
5543
|
+
plural = plural.toLowerCase();
|
|
5544
|
+
single = single.toLowerCase();
|
|
5545
|
+
irregularSingles[single] = plural;
|
|
5546
|
+
irregularPlurals[plural] = single;
|
|
5547
|
+
};
|
|
5548
|
+
[
|
|
5549
|
+
// Pronouns.
|
|
5550
|
+
["I", "we"],
|
|
5551
|
+
["me", "us"],
|
|
5552
|
+
["he", "they"],
|
|
5553
|
+
["she", "they"],
|
|
5554
|
+
["them", "them"],
|
|
5555
|
+
["myself", "ourselves"],
|
|
5556
|
+
["yourself", "yourselves"],
|
|
5557
|
+
["itself", "themselves"],
|
|
5558
|
+
["herself", "themselves"],
|
|
5559
|
+
["himself", "themselves"],
|
|
5560
|
+
["themself", "themselves"],
|
|
5561
|
+
["is", "are"],
|
|
5562
|
+
["was", "were"],
|
|
5563
|
+
["has", "have"],
|
|
5564
|
+
["this", "these"],
|
|
5565
|
+
["that", "those"],
|
|
5566
|
+
// Words ending in with a consonant and `o`.
|
|
5567
|
+
["echo", "echoes"],
|
|
5568
|
+
["dingo", "dingoes"],
|
|
5569
|
+
["volcano", "volcanoes"],
|
|
5570
|
+
["tornado", "tornadoes"],
|
|
5571
|
+
["torpedo", "torpedoes"],
|
|
5572
|
+
// Ends with `us`.
|
|
5573
|
+
["genus", "genera"],
|
|
5574
|
+
["viscus", "viscera"],
|
|
5575
|
+
// Ends with `ma`.
|
|
5576
|
+
["stigma", "stigmata"],
|
|
5577
|
+
["stoma", "stomata"],
|
|
5578
|
+
["dogma", "dogmata"],
|
|
5579
|
+
["lemma", "lemmata"],
|
|
5580
|
+
["schema", "schemata"],
|
|
5581
|
+
["anathema", "anathemata"],
|
|
5582
|
+
// Other irregular rules.
|
|
5583
|
+
["ox", "oxen"],
|
|
5584
|
+
["axe", "axes"],
|
|
5585
|
+
["die", "dice"],
|
|
5586
|
+
["yes", "yeses"],
|
|
5587
|
+
["foot", "feet"],
|
|
5588
|
+
["eave", "eaves"],
|
|
5589
|
+
["goose", "geese"],
|
|
5590
|
+
["tooth", "teeth"],
|
|
5591
|
+
["quiz", "quizzes"],
|
|
5592
|
+
["human", "humans"],
|
|
5593
|
+
["proof", "proofs"],
|
|
5594
|
+
["carve", "carves"],
|
|
5595
|
+
["valve", "valves"],
|
|
5596
|
+
["looey", "looies"],
|
|
5597
|
+
["thief", "thieves"],
|
|
5598
|
+
["groove", "grooves"],
|
|
5599
|
+
["pickaxe", "pickaxes"],
|
|
5600
|
+
["passerby", "passersby"]
|
|
5601
|
+
].forEach(function(rule) {
|
|
5602
|
+
return pluralize2.addIrregularRule(rule[0], rule[1]);
|
|
5603
|
+
});
|
|
5604
|
+
[
|
|
5605
|
+
[/s?$/i, "s"],
|
|
5606
|
+
[/[^\u0000-\u007F]$/i, "$0"],
|
|
5607
|
+
[/([^aeiou]ese)$/i, "$1"],
|
|
5608
|
+
[/(ax|test)is$/i, "$1es"],
|
|
5609
|
+
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
|
|
5610
|
+
[/(e[mn]u)s?$/i, "$1s"],
|
|
5611
|
+
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
|
|
5612
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
|
|
5613
|
+
[/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
|
|
5614
|
+
[/(seraph|cherub)(?:im)?$/i, "$1im"],
|
|
5615
|
+
[/(her|at|gr)o$/i, "$1oes"],
|
|
5616
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
|
|
5617
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
|
|
5618
|
+
[/sis$/i, "ses"],
|
|
5619
|
+
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
|
|
5620
|
+
[/([^aeiouy]|qu)y$/i, "$1ies"],
|
|
5621
|
+
[/([^ch][ieo][ln])ey$/i, "$1ies"],
|
|
5622
|
+
[/(x|ch|ss|sh|zz)$/i, "$1es"],
|
|
5623
|
+
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
|
|
5624
|
+
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
|
|
5625
|
+
[/(pe)(?:rson|ople)$/i, "$1ople"],
|
|
5626
|
+
[/(child)(?:ren)?$/i, "$1ren"],
|
|
5627
|
+
[/eaux$/i, "$0"],
|
|
5628
|
+
[/m[ae]n$/i, "men"],
|
|
5629
|
+
["thou", "you"]
|
|
5630
|
+
].forEach(function(rule) {
|
|
5631
|
+
return pluralize2.addPluralRule(rule[0], rule[1]);
|
|
5632
|
+
});
|
|
5633
|
+
[
|
|
5634
|
+
[/s$/i, ""],
|
|
5635
|
+
[/(ss)$/i, "$1"],
|
|
5636
|
+
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
|
|
5637
|
+
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
|
|
5638
|
+
[/ies$/i, "y"],
|
|
5639
|
+
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
|
|
5640
|
+
[/\b(mon|smil)ies$/i, "$1ey"],
|
|
5641
|
+
[/\b((?:tit)?m|l)ice$/i, "$1ouse"],
|
|
5642
|
+
[/(seraph|cherub)im$/i, "$1"],
|
|
5643
|
+
[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
|
|
5644
|
+
[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
|
|
5645
|
+
[/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
|
|
5646
|
+
[/(test)(?:is|es)$/i, "$1is"],
|
|
5647
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
|
|
5648
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
|
|
5649
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
|
|
5650
|
+
[/(alumn|alg|vertebr)ae$/i, "$1a"],
|
|
5651
|
+
[/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
|
|
5652
|
+
[/(matr|append)ices$/i, "$1ix"],
|
|
5653
|
+
[/(pe)(rson|ople)$/i, "$1rson"],
|
|
5654
|
+
[/(child)ren$/i, "$1"],
|
|
5655
|
+
[/(eau)x?$/i, "$1"],
|
|
5656
|
+
[/men$/i, "man"]
|
|
5657
|
+
].forEach(function(rule) {
|
|
5658
|
+
return pluralize2.addSingularRule(rule[0], rule[1]);
|
|
5659
|
+
});
|
|
5660
|
+
[
|
|
5661
|
+
// Singular words with no plurals.
|
|
5662
|
+
"adulthood",
|
|
5663
|
+
"advice",
|
|
5664
|
+
"agenda",
|
|
5665
|
+
"aid",
|
|
5666
|
+
"aircraft",
|
|
5667
|
+
"alcohol",
|
|
5668
|
+
"ammo",
|
|
5669
|
+
"analytics",
|
|
5670
|
+
"anime",
|
|
5671
|
+
"athletics",
|
|
5672
|
+
"audio",
|
|
5673
|
+
"bison",
|
|
5674
|
+
"blood",
|
|
5675
|
+
"bream",
|
|
5676
|
+
"buffalo",
|
|
5677
|
+
"butter",
|
|
5678
|
+
"carp",
|
|
5679
|
+
"cash",
|
|
5680
|
+
"chassis",
|
|
5681
|
+
"chess",
|
|
5682
|
+
"clothing",
|
|
5683
|
+
"cod",
|
|
5684
|
+
"commerce",
|
|
5685
|
+
"cooperation",
|
|
5686
|
+
"corps",
|
|
5687
|
+
"debris",
|
|
5688
|
+
"diabetes",
|
|
5689
|
+
"digestion",
|
|
5690
|
+
"elk",
|
|
5691
|
+
"energy",
|
|
5692
|
+
"equipment",
|
|
5693
|
+
"excretion",
|
|
5694
|
+
"expertise",
|
|
5695
|
+
"firmware",
|
|
5696
|
+
"flounder",
|
|
5697
|
+
"fun",
|
|
5698
|
+
"gallows",
|
|
5699
|
+
"garbage",
|
|
5700
|
+
"graffiti",
|
|
5701
|
+
"hardware",
|
|
5702
|
+
"headquarters",
|
|
5703
|
+
"health",
|
|
5704
|
+
"herpes",
|
|
5705
|
+
"highjinks",
|
|
5706
|
+
"homework",
|
|
5707
|
+
"housework",
|
|
5708
|
+
"information",
|
|
5709
|
+
"jeans",
|
|
5710
|
+
"justice",
|
|
5711
|
+
"kudos",
|
|
5712
|
+
"labour",
|
|
5713
|
+
"literature",
|
|
5714
|
+
"machinery",
|
|
5715
|
+
"mackerel",
|
|
5716
|
+
"mail",
|
|
5717
|
+
"media",
|
|
5718
|
+
"mews",
|
|
5719
|
+
"moose",
|
|
5720
|
+
"music",
|
|
5721
|
+
"mud",
|
|
5722
|
+
"manga",
|
|
5723
|
+
"news",
|
|
5724
|
+
"only",
|
|
5725
|
+
"personnel",
|
|
5726
|
+
"pike",
|
|
5727
|
+
"plankton",
|
|
5728
|
+
"pliers",
|
|
5729
|
+
"police",
|
|
5730
|
+
"pollution",
|
|
5731
|
+
"premises",
|
|
5732
|
+
"rain",
|
|
5733
|
+
"research",
|
|
5734
|
+
"rice",
|
|
5735
|
+
"salmon",
|
|
5736
|
+
"scissors",
|
|
5737
|
+
"series",
|
|
5738
|
+
"sewage",
|
|
5739
|
+
"shambles",
|
|
5740
|
+
"shrimp",
|
|
5741
|
+
"software",
|
|
5742
|
+
"species",
|
|
5743
|
+
"staff",
|
|
5744
|
+
"swine",
|
|
5745
|
+
"tennis",
|
|
5746
|
+
"traffic",
|
|
5747
|
+
"transportation",
|
|
5748
|
+
"trout",
|
|
5749
|
+
"tuna",
|
|
5750
|
+
"wealth",
|
|
5751
|
+
"welfare",
|
|
5752
|
+
"whiting",
|
|
5753
|
+
"wildebeest",
|
|
5754
|
+
"wildlife",
|
|
5755
|
+
"you",
|
|
5756
|
+
/pok[eé]mon$/i,
|
|
5757
|
+
// Regexes.
|
|
5758
|
+
/[^aeiou]ese$/i,
|
|
5759
|
+
// "chinese", "japanese"
|
|
5760
|
+
/deer$/i,
|
|
5761
|
+
// "deer", "reindeer"
|
|
5762
|
+
/fish$/i,
|
|
5763
|
+
// "fish", "blowfish", "angelfish"
|
|
5764
|
+
/measles$/i,
|
|
5765
|
+
/o[iu]s$/i,
|
|
5766
|
+
// "carnivorous"
|
|
5767
|
+
/pox$/i,
|
|
5768
|
+
// "chickpox", "smallpox"
|
|
5769
|
+
/sheep$/i
|
|
5770
|
+
].forEach(pluralize2.addUncountableRule);
|
|
5771
|
+
return pluralize2;
|
|
5772
|
+
});
|
|
5773
|
+
})(pluralize);
|
|
5774
|
+
var pluralizeExports = pluralize.exports;
|
|
5775
|
+
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
5776
|
+
plur.addPluralRule("glomerulus", "glomeruli");
|
|
5777
|
+
plur.addPluralRule("interstitium", "interstitia");
|
|
5778
|
+
function capitalize(word) {
|
|
5779
|
+
return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
|
|
5780
|
+
}
|
|
5781
|
+
function getNextScope(prevScopes) {
|
|
5782
|
+
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
5783
|
+
const nextCharIndices = [0];
|
|
5784
|
+
function next3() {
|
|
5785
|
+
const r2 = [];
|
|
5786
|
+
nextCharIndices.forEach((charIndex) => {
|
|
5787
|
+
r2.unshift(chars[charIndex]);
|
|
5788
|
+
});
|
|
5789
|
+
let increment = true;
|
|
5790
|
+
for (let i2 = 0; i2 < nextCharIndices.length; i2++) {
|
|
5791
|
+
const val = ++nextCharIndices[i2];
|
|
5792
|
+
if (val >= chars.length) {
|
|
5793
|
+
nextCharIndices[i2] = 0;
|
|
5794
|
+
} else {
|
|
5795
|
+
increment = false;
|
|
5796
|
+
break;
|
|
5797
|
+
}
|
|
5798
|
+
}
|
|
5799
|
+
if (increment) {
|
|
5800
|
+
nextCharIndices.push(0);
|
|
5801
|
+
}
|
|
5802
|
+
return r2.join("");
|
|
5803
|
+
}
|
|
5804
|
+
let nextScope;
|
|
5805
|
+
do {
|
|
5806
|
+
nextScope = next3();
|
|
5807
|
+
} while (prevScopes.includes(nextScope));
|
|
5808
|
+
return nextScope;
|
|
5809
|
+
}
|
|
5810
|
+
const PALETTE = [
|
|
5811
|
+
[68, 119, 170],
|
|
5812
|
+
[136, 204, 238],
|
|
5813
|
+
[68, 170, 153],
|
|
5814
|
+
[17, 119, 51],
|
|
5815
|
+
[153, 153, 51],
|
|
5816
|
+
[221, 204, 119],
|
|
5817
|
+
[204, 102, 119],
|
|
5818
|
+
[136, 34, 85],
|
|
5819
|
+
[170, 68, 153]
|
|
5820
|
+
];
|
|
5821
|
+
const VIEWER_PALETTE = [
|
|
5822
|
+
[0, 0, 255],
|
|
5823
|
+
[0, 255, 0],
|
|
5824
|
+
[255, 0, 255],
|
|
5825
|
+
[255, 255, 0],
|
|
5826
|
+
[0, 255, 255],
|
|
5827
|
+
[255, 255, 255],
|
|
5828
|
+
[255, 128, 0],
|
|
5829
|
+
[255, 0, 0]
|
|
5830
|
+
];
|
|
5833
5831
|
configSchema1_0_0.shape.coordinationSpace.unwrap();
|
|
5834
5832
|
configSchema1_0_0.shape.layout.element.shape.coordinationScopes.unwrap();
|
|
5835
5833
|
function upgradeReplaceViewProp(prefix, view, coordinationSpace) {
|
|
@@ -8609,7 +8607,7 @@ function configSchemaToVersion(zodSchema) {
|
|
|
8609
8607
|
return zodSchema.shape.version._def.value;
|
|
8610
8608
|
}
|
|
8611
8609
|
({
|
|
8612
|
-
...fromEntries(SCHEMA_HANDLERS.map(([zodSchema]) => {
|
|
8610
|
+
...Object.fromEntries(SCHEMA_HANDLERS.map(([zodSchema]) => {
|
|
8613
8611
|
const version2 = configSchemaToVersion(zodSchema);
|
|
8614
8612
|
return [version2, zodSchema];
|
|
8615
8613
|
})),
|
|
@@ -8685,6 +8683,9 @@ const annDataObsSets = z.array(z.object({
|
|
|
8685
8683
|
]),
|
|
8686
8684
|
scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
|
|
8687
8685
|
}));
|
|
8686
|
+
z.array(z.object({
|
|
8687
|
+
path: z.string()
|
|
8688
|
+
}));
|
|
8688
8689
|
const annDataObsSpots = annDataObsm;
|
|
8689
8690
|
const annDataObsPoints = annDataObsm;
|
|
8690
8691
|
const annDataObsLocations = annDataObsm;
|
|
@@ -132935,7 +132936,8 @@ const AXIS_TITLE_TEXT_SIZE = 15;
|
|
|
132935
132936
|
const AXIS_MARGIN = 3;
|
|
132936
132937
|
const THEME_TO_TEXT_COLOR = {
|
|
132937
132938
|
dark: [224, 224, 224],
|
|
132938
|
-
light: [64, 64, 64]
|
|
132939
|
+
light: [64, 64, 64],
|
|
132940
|
+
light2: [64, 64, 64]
|
|
132939
132941
|
};
|
|
132940
132942
|
const AXIS_FONT_FAMILY = "-apple-system, 'Helvetica Neue', Arial, sans-serif";
|
|
132941
132943
|
const PIXELATED_TEXTURE_PARAMETERS = {
|
|
@@ -134717,16 +134719,16 @@ async function getDecoder(fileDirectory) {
|
|
|
134717
134719
|
const Decoder = await importFn();
|
|
134718
134720
|
return new Decoder(fileDirectory);
|
|
134719
134721
|
}
|
|
134720
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
134721
|
-
addDecoder(5, () => import("./lzw-
|
|
134722
|
+
addDecoder([void 0, 1], () => import("./raw-5c61ad08.js").then((m) => m.default));
|
|
134723
|
+
addDecoder(5, () => import("./lzw-95e1c960.js").then((m) => m.default));
|
|
134722
134724
|
addDecoder(6, () => {
|
|
134723
134725
|
throw new Error("old style JPEG compression is not supported.");
|
|
134724
134726
|
});
|
|
134725
|
-
addDecoder(7, () => import("./jpeg-
|
|
134726
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
134727
|
-
addDecoder(32773, () => import("./packbits-
|
|
134728
|
-
addDecoder(34887, () => import("./lerc-
|
|
134729
|
-
addDecoder(50001, () => import("./webimage-
|
|
134727
|
+
addDecoder(7, () => import("./jpeg-ce1ae43d.js").then((m) => m.default));
|
|
134728
|
+
addDecoder([8, 32946], () => import("./deflate-dab09517.js").then((m) => m.default));
|
|
134729
|
+
addDecoder(32773, () => import("./packbits-fc3d8a5d.js").then((m) => m.default));
|
|
134730
|
+
addDecoder(34887, () => import("./lerc-0726fca8.js").then((m) => m.default));
|
|
134731
|
+
addDecoder(50001, () => import("./webimage-1320968a.js").then((m) => m.default));
|
|
134730
134732
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
134731
134733
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
134732
134734
|
}
|
|
@@ -149219,7 +149221,7 @@ class BitmaskLayer2 extends XRLayer {
|
|
|
149219
149221
|
} = this.state;
|
|
149220
149222
|
if (textures && model) {
|
|
149221
149223
|
const scaleFactor = 1 / 2 ** (maxZoom - zoom);
|
|
149222
|
-
const colors = fromEntries(range$6(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
|
|
149224
|
+
const colors = Object.fromEntries(range$6(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
|
|
149223
149225
|
model.setUniforms(Object.assign({}, uniforms, {
|
|
149224
149226
|
...colors,
|
|
149225
149227
|
// Bitmask image channel data textures
|
|
@@ -149376,7 +149378,7 @@ function filterSelection(loader, selection) {
|
|
|
149376
149378
|
}
|
|
149377
149379
|
const data = Array.isArray(loader) ? loader[loader.length - 1] : loader;
|
|
149378
149380
|
const { labels } = data;
|
|
149379
|
-
return fromEntries(Object.entries(selection).filter(([key]) => labels.includes(key)));
|
|
149381
|
+
return Object.fromEntries(Object.entries(selection).filter(([key]) => labels.includes(key)));
|
|
149380
149382
|
}
|
|
149381
149383
|
async function getSingleSelectionStats2D({ loader, selection }) {
|
|
149382
149384
|
const data = Array.isArray(loader) ? loader[loader.length - 1] : loader;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-5ec82f0b.js";
|
|
3
3
|
import "@vitessce/vit-s";
|
|
4
4
|
import "react";
|
|
5
5
|
var LercDecode = { exports: {} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/json",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.5",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"zarrita": "0.4.0-next.4",
|
|
22
22
|
"zod": "^3.21.4",
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/sets-utils": "3.3.
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/utils": "3.3.
|
|
29
|
-
"@vitessce/vit-s": "3.3.
|
|
30
|
-
"@vitessce/config": "3.3.
|
|
31
|
-
"@vitessce/zarr-utils": "3.3.
|
|
23
|
+
"@vitessce/constants-internal": "3.3.5",
|
|
24
|
+
"@vitessce/gl": "3.3.5",
|
|
25
|
+
"@vitessce/schemas": "3.3.5",
|
|
26
|
+
"@vitessce/sets-utils": "3.3.5",
|
|
27
|
+
"@vitessce/spatial-utils": "3.3.5",
|
|
28
|
+
"@vitessce/utils": "3.3.5",
|
|
29
|
+
"@vitessce/vit-s": "3.3.5",
|
|
30
|
+
"@vitessce/config": "3.3.5",
|
|
31
|
+
"@vitessce/zarr-utils": "3.3.5"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|