@vitessce/schemas 3.3.4 → 3.3.6
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/index.js +693 -688
- package/dist-tsc/file-def-options.d.ts +7 -0
- package/dist-tsc/file-def-options.d.ts.map +1 -1
- package/dist-tsc/file-def-options.js +4 -0
- package/dist-tsc/index.d.ts +1 -1
- package/dist-tsc/index.d.ts.map +1 -1
- package/dist-tsc/index.js +1 -1
- package/dist-tsc/schema-builders.d.ts +5 -5
- package/dist-tsc/schema-builders.d.ts.map +1 -1
- package/dist-tsc/schema-builders.js +1 -2
- package/dist-tsc/view-config-versions.d.ts.map +1 -1
- package/dist-tsc/view-config-versions.js +1 -2
- package/package.json +5 -5
- package/src/file-def-options.ts +7 -0
- package/src/index.ts +1 -0
- package/src/schema-builders.ts +1 -2
- package/src/view-config-versions.ts +1 -2
package/dist/index.js
CHANGED
|
@@ -3678,485 +3678,89 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3678
3678
|
quotelessJson,
|
|
3679
3679
|
ZodError
|
|
3680
3680
|
});
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
return function(word) {
|
|
3748
|
-
var token = word.toLowerCase();
|
|
3749
|
-
if (keepMap.hasOwnProperty(token)) {
|
|
3750
|
-
return restoreCase(word, token);
|
|
3751
|
-
}
|
|
3752
|
-
if (replaceMap.hasOwnProperty(token)) {
|
|
3753
|
-
return restoreCase(word, replaceMap[token]);
|
|
3754
|
-
}
|
|
3755
|
-
return sanitizeWord(token, word, rules);
|
|
3756
|
-
};
|
|
3757
|
-
}
|
|
3758
|
-
function checkWord(replaceMap, keepMap, rules, bool) {
|
|
3759
|
-
return function(word) {
|
|
3760
|
-
var token = word.toLowerCase();
|
|
3761
|
-
if (keepMap.hasOwnProperty(token))
|
|
3762
|
-
return true;
|
|
3763
|
-
if (replaceMap.hasOwnProperty(token))
|
|
3764
|
-
return false;
|
|
3765
|
-
return sanitizeWord(token, token, rules) === token;
|
|
3766
|
-
};
|
|
3767
|
-
}
|
|
3768
|
-
function pluralize2(word, count, inclusive) {
|
|
3769
|
-
var pluralized = count === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
|
|
3770
|
-
return (inclusive ? count + " " : "") + pluralized;
|
|
3771
|
-
}
|
|
3772
|
-
pluralize2.plural = replaceWord(
|
|
3773
|
-
irregularSingles,
|
|
3774
|
-
irregularPlurals,
|
|
3775
|
-
pluralRules
|
|
3776
|
-
);
|
|
3777
|
-
pluralize2.isPlural = checkWord(
|
|
3778
|
-
irregularSingles,
|
|
3779
|
-
irregularPlurals,
|
|
3780
|
-
pluralRules
|
|
3781
|
-
);
|
|
3782
|
-
pluralize2.singular = replaceWord(
|
|
3783
|
-
irregularPlurals,
|
|
3784
|
-
irregularSingles,
|
|
3785
|
-
singularRules
|
|
3786
|
-
);
|
|
3787
|
-
pluralize2.isSingular = checkWord(
|
|
3788
|
-
irregularPlurals,
|
|
3789
|
-
irregularSingles,
|
|
3790
|
-
singularRules
|
|
3791
|
-
);
|
|
3792
|
-
pluralize2.addPluralRule = function(rule, replacement) {
|
|
3793
|
-
pluralRules.push([sanitizeRule(rule), replacement]);
|
|
3794
|
-
};
|
|
3795
|
-
pluralize2.addSingularRule = function(rule, replacement) {
|
|
3796
|
-
singularRules.push([sanitizeRule(rule), replacement]);
|
|
3797
|
-
};
|
|
3798
|
-
pluralize2.addUncountableRule = function(word) {
|
|
3799
|
-
if (typeof word === "string") {
|
|
3800
|
-
uncountables[word.toLowerCase()] = true;
|
|
3801
|
-
return;
|
|
3802
|
-
}
|
|
3803
|
-
pluralize2.addPluralRule(word, "$0");
|
|
3804
|
-
pluralize2.addSingularRule(word, "$0");
|
|
3805
|
-
};
|
|
3806
|
-
pluralize2.addIrregularRule = function(single, plural) {
|
|
3807
|
-
plural = plural.toLowerCase();
|
|
3808
|
-
single = single.toLowerCase();
|
|
3809
|
-
irregularSingles[single] = plural;
|
|
3810
|
-
irregularPlurals[plural] = single;
|
|
3681
|
+
const coordinationTypeName = z.string();
|
|
3682
|
+
const coordinationScopeName = z.string();
|
|
3683
|
+
const stringOrStringArray = z.union([
|
|
3684
|
+
z.string(),
|
|
3685
|
+
z.array(z.string())
|
|
3686
|
+
]);
|
|
3687
|
+
const oneOrMoreCoordinationScopeNames = stringOrStringArray;
|
|
3688
|
+
const componentCoordinationScopes = z.record(
|
|
3689
|
+
coordinationTypeName,
|
|
3690
|
+
oneOrMoreCoordinationScopeNames
|
|
3691
|
+
);
|
|
3692
|
+
const componentCoordinationScopesBy = z.record(
|
|
3693
|
+
coordinationTypeName,
|
|
3694
|
+
z.record(
|
|
3695
|
+
coordinationTypeName,
|
|
3696
|
+
z.record(coordinationScopeName, oneOrMoreCoordinationScopeNames)
|
|
3697
|
+
)
|
|
3698
|
+
);
|
|
3699
|
+
const rgbArray = z.array(z.number()).length(3);
|
|
3700
|
+
const treeNodeBase = z.object({
|
|
3701
|
+
name: z.string(),
|
|
3702
|
+
color: rgbArray.optional()
|
|
3703
|
+
});
|
|
3704
|
+
const treeNodeLeaf = treeNodeBase.extend({
|
|
3705
|
+
set: z.array(z.string())
|
|
3706
|
+
});
|
|
3707
|
+
const treeNodeNonLeaf = treeNodeBase.extend({
|
|
3708
|
+
children: z.lazy(() => z.array(z.union([treeNodeNonLeaf, treeNodeLeaf])))
|
|
3709
|
+
});
|
|
3710
|
+
const cellSets2 = z.object({
|
|
3711
|
+
version: z.literal("0.1.2"),
|
|
3712
|
+
tree: z.array(treeNodeNonLeaf)
|
|
3713
|
+
});
|
|
3714
|
+
const treeNodeLeafProbabilistic = treeNodeBase.extend({
|
|
3715
|
+
set: z.array(z.tuple([z.string(), z.number().nullable()]))
|
|
3716
|
+
});
|
|
3717
|
+
const treeNodeNonLeafProbabilistic = treeNodeBase.extend({
|
|
3718
|
+
children: z.lazy(() => z.array(
|
|
3719
|
+
z.union([treeNodeNonLeafProbabilistic, treeNodeLeafProbabilistic])
|
|
3720
|
+
))
|
|
3721
|
+
});
|
|
3722
|
+
const cellSets3 = z.object({
|
|
3723
|
+
version: z.literal("0.1.3"),
|
|
3724
|
+
tree: z.array(treeNodeNonLeafProbabilistic)
|
|
3725
|
+
});
|
|
3726
|
+
function nodeTransform(node, predicate, transform, transformedPaths, currPath = null) {
|
|
3727
|
+
let newPath;
|
|
3728
|
+
if (!currPath) {
|
|
3729
|
+
newPath = [node.name];
|
|
3730
|
+
} else {
|
|
3731
|
+
newPath = [...currPath];
|
|
3732
|
+
}
|
|
3733
|
+
if (predicate(node, newPath)) {
|
|
3734
|
+
transformedPaths.push(newPath);
|
|
3735
|
+
return transform(node, newPath);
|
|
3736
|
+
}
|
|
3737
|
+
if ("children" in node) {
|
|
3738
|
+
return {
|
|
3739
|
+
...node,
|
|
3740
|
+
children: node.children.map((child) => nodeTransform(
|
|
3741
|
+
child,
|
|
3742
|
+
predicate,
|
|
3743
|
+
transform,
|
|
3744
|
+
transformedPaths,
|
|
3745
|
+
newPath.concat([child.name])
|
|
3746
|
+
))
|
|
3811
3747
|
};
|
|
3812
|
-
[
|
|
3813
|
-
// Pronouns.
|
|
3814
|
-
["I", "we"],
|
|
3815
|
-
["me", "us"],
|
|
3816
|
-
["he", "they"],
|
|
3817
|
-
["she", "they"],
|
|
3818
|
-
["them", "them"],
|
|
3819
|
-
["myself", "ourselves"],
|
|
3820
|
-
["yourself", "yourselves"],
|
|
3821
|
-
["itself", "themselves"],
|
|
3822
|
-
["herself", "themselves"],
|
|
3823
|
-
["himself", "themselves"],
|
|
3824
|
-
["themself", "themselves"],
|
|
3825
|
-
["is", "are"],
|
|
3826
|
-
["was", "were"],
|
|
3827
|
-
["has", "have"],
|
|
3828
|
-
["this", "these"],
|
|
3829
|
-
["that", "those"],
|
|
3830
|
-
// Words ending in with a consonant and `o`.
|
|
3831
|
-
["echo", "echoes"],
|
|
3832
|
-
["dingo", "dingoes"],
|
|
3833
|
-
["volcano", "volcanoes"],
|
|
3834
|
-
["tornado", "tornadoes"],
|
|
3835
|
-
["torpedo", "torpedoes"],
|
|
3836
|
-
// Ends with `us`.
|
|
3837
|
-
["genus", "genera"],
|
|
3838
|
-
["viscus", "viscera"],
|
|
3839
|
-
// Ends with `ma`.
|
|
3840
|
-
["stigma", "stigmata"],
|
|
3841
|
-
["stoma", "stomata"],
|
|
3842
|
-
["dogma", "dogmata"],
|
|
3843
|
-
["lemma", "lemmata"],
|
|
3844
|
-
["schema", "schemata"],
|
|
3845
|
-
["anathema", "anathemata"],
|
|
3846
|
-
// Other irregular rules.
|
|
3847
|
-
["ox", "oxen"],
|
|
3848
|
-
["axe", "axes"],
|
|
3849
|
-
["die", "dice"],
|
|
3850
|
-
["yes", "yeses"],
|
|
3851
|
-
["foot", "feet"],
|
|
3852
|
-
["eave", "eaves"],
|
|
3853
|
-
["goose", "geese"],
|
|
3854
|
-
["tooth", "teeth"],
|
|
3855
|
-
["quiz", "quizzes"],
|
|
3856
|
-
["human", "humans"],
|
|
3857
|
-
["proof", "proofs"],
|
|
3858
|
-
["carve", "carves"],
|
|
3859
|
-
["valve", "valves"],
|
|
3860
|
-
["looey", "looies"],
|
|
3861
|
-
["thief", "thieves"],
|
|
3862
|
-
["groove", "grooves"],
|
|
3863
|
-
["pickaxe", "pickaxes"],
|
|
3864
|
-
["passerby", "passersby"]
|
|
3865
|
-
].forEach(function(rule) {
|
|
3866
|
-
return pluralize2.addIrregularRule(rule[0], rule[1]);
|
|
3867
|
-
});
|
|
3868
|
-
[
|
|
3869
|
-
[/s?$/i, "s"],
|
|
3870
|
-
[/[^\u0000-\u007F]$/i, "$0"],
|
|
3871
|
-
[/([^aeiou]ese)$/i, "$1"],
|
|
3872
|
-
[/(ax|test)is$/i, "$1es"],
|
|
3873
|
-
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
|
|
3874
|
-
[/(e[mn]u)s?$/i, "$1s"],
|
|
3875
|
-
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
|
|
3876
|
-
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
|
|
3877
|
-
[/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
|
|
3878
|
-
[/(seraph|cherub)(?:im)?$/i, "$1im"],
|
|
3879
|
-
[/(her|at|gr)o$/i, "$1oes"],
|
|
3880
|
-
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
|
|
3881
|
-
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
|
|
3882
|
-
[/sis$/i, "ses"],
|
|
3883
|
-
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
|
|
3884
|
-
[/([^aeiouy]|qu)y$/i, "$1ies"],
|
|
3885
|
-
[/([^ch][ieo][ln])ey$/i, "$1ies"],
|
|
3886
|
-
[/(x|ch|ss|sh|zz)$/i, "$1es"],
|
|
3887
|
-
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
|
|
3888
|
-
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
|
|
3889
|
-
[/(pe)(?:rson|ople)$/i, "$1ople"],
|
|
3890
|
-
[/(child)(?:ren)?$/i, "$1ren"],
|
|
3891
|
-
[/eaux$/i, "$0"],
|
|
3892
|
-
[/m[ae]n$/i, "men"],
|
|
3893
|
-
["thou", "you"]
|
|
3894
|
-
].forEach(function(rule) {
|
|
3895
|
-
return pluralize2.addPluralRule(rule[0], rule[1]);
|
|
3896
|
-
});
|
|
3897
|
-
[
|
|
3898
|
-
[/s$/i, ""],
|
|
3899
|
-
[/(ss)$/i, "$1"],
|
|
3900
|
-
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
|
|
3901
|
-
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
|
|
3902
|
-
[/ies$/i, "y"],
|
|
3903
|
-
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
|
|
3904
|
-
[/\b(mon|smil)ies$/i, "$1ey"],
|
|
3905
|
-
[/\b((?:tit)?m|l)ice$/i, "$1ouse"],
|
|
3906
|
-
[/(seraph|cherub)im$/i, "$1"],
|
|
3907
|
-
[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
|
|
3908
|
-
[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
|
|
3909
|
-
[/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
|
|
3910
|
-
[/(test)(?:is|es)$/i, "$1is"],
|
|
3911
|
-
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
|
|
3912
|
-
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
|
|
3913
|
-
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
|
|
3914
|
-
[/(alumn|alg|vertebr)ae$/i, "$1a"],
|
|
3915
|
-
[/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
|
|
3916
|
-
[/(matr|append)ices$/i, "$1ix"],
|
|
3917
|
-
[/(pe)(rson|ople)$/i, "$1rson"],
|
|
3918
|
-
[/(child)ren$/i, "$1"],
|
|
3919
|
-
[/(eau)x?$/i, "$1"],
|
|
3920
|
-
[/men$/i, "man"]
|
|
3921
|
-
].forEach(function(rule) {
|
|
3922
|
-
return pluralize2.addSingularRule(rule[0], rule[1]);
|
|
3923
|
-
});
|
|
3924
|
-
[
|
|
3925
|
-
// Singular words with no plurals.
|
|
3926
|
-
"adulthood",
|
|
3927
|
-
"advice",
|
|
3928
|
-
"agenda",
|
|
3929
|
-
"aid",
|
|
3930
|
-
"aircraft",
|
|
3931
|
-
"alcohol",
|
|
3932
|
-
"ammo",
|
|
3933
|
-
"analytics",
|
|
3934
|
-
"anime",
|
|
3935
|
-
"athletics",
|
|
3936
|
-
"audio",
|
|
3937
|
-
"bison",
|
|
3938
|
-
"blood",
|
|
3939
|
-
"bream",
|
|
3940
|
-
"buffalo",
|
|
3941
|
-
"butter",
|
|
3942
|
-
"carp",
|
|
3943
|
-
"cash",
|
|
3944
|
-
"chassis",
|
|
3945
|
-
"chess",
|
|
3946
|
-
"clothing",
|
|
3947
|
-
"cod",
|
|
3948
|
-
"commerce",
|
|
3949
|
-
"cooperation",
|
|
3950
|
-
"corps",
|
|
3951
|
-
"debris",
|
|
3952
|
-
"diabetes",
|
|
3953
|
-
"digestion",
|
|
3954
|
-
"elk",
|
|
3955
|
-
"energy",
|
|
3956
|
-
"equipment",
|
|
3957
|
-
"excretion",
|
|
3958
|
-
"expertise",
|
|
3959
|
-
"firmware",
|
|
3960
|
-
"flounder",
|
|
3961
|
-
"fun",
|
|
3962
|
-
"gallows",
|
|
3963
|
-
"garbage",
|
|
3964
|
-
"graffiti",
|
|
3965
|
-
"hardware",
|
|
3966
|
-
"headquarters",
|
|
3967
|
-
"health",
|
|
3968
|
-
"herpes",
|
|
3969
|
-
"highjinks",
|
|
3970
|
-
"homework",
|
|
3971
|
-
"housework",
|
|
3972
|
-
"information",
|
|
3973
|
-
"jeans",
|
|
3974
|
-
"justice",
|
|
3975
|
-
"kudos",
|
|
3976
|
-
"labour",
|
|
3977
|
-
"literature",
|
|
3978
|
-
"machinery",
|
|
3979
|
-
"mackerel",
|
|
3980
|
-
"mail",
|
|
3981
|
-
"media",
|
|
3982
|
-
"mews",
|
|
3983
|
-
"moose",
|
|
3984
|
-
"music",
|
|
3985
|
-
"mud",
|
|
3986
|
-
"manga",
|
|
3987
|
-
"news",
|
|
3988
|
-
"only",
|
|
3989
|
-
"personnel",
|
|
3990
|
-
"pike",
|
|
3991
|
-
"plankton",
|
|
3992
|
-
"pliers",
|
|
3993
|
-
"police",
|
|
3994
|
-
"pollution",
|
|
3995
|
-
"premises",
|
|
3996
|
-
"rain",
|
|
3997
|
-
"research",
|
|
3998
|
-
"rice",
|
|
3999
|
-
"salmon",
|
|
4000
|
-
"scissors",
|
|
4001
|
-
"series",
|
|
4002
|
-
"sewage",
|
|
4003
|
-
"shambles",
|
|
4004
|
-
"shrimp",
|
|
4005
|
-
"software",
|
|
4006
|
-
"species",
|
|
4007
|
-
"staff",
|
|
4008
|
-
"swine",
|
|
4009
|
-
"tennis",
|
|
4010
|
-
"traffic",
|
|
4011
|
-
"transportation",
|
|
4012
|
-
"trout",
|
|
4013
|
-
"tuna",
|
|
4014
|
-
"wealth",
|
|
4015
|
-
"welfare",
|
|
4016
|
-
"whiting",
|
|
4017
|
-
"wildebeest",
|
|
4018
|
-
"wildlife",
|
|
4019
|
-
"you",
|
|
4020
|
-
/pok[eé]mon$/i,
|
|
4021
|
-
// Regexes.
|
|
4022
|
-
/[^aeiou]ese$/i,
|
|
4023
|
-
// "chinese", "japanese"
|
|
4024
|
-
/deer$/i,
|
|
4025
|
-
// "deer", "reindeer"
|
|
4026
|
-
/fish$/i,
|
|
4027
|
-
// "fish", "blowfish", "angelfish"
|
|
4028
|
-
/measles$/i,
|
|
4029
|
-
/o[iu]s$/i,
|
|
4030
|
-
// "carnivorous"
|
|
4031
|
-
/pox$/i,
|
|
4032
|
-
// "chickpox", "smallpox"
|
|
4033
|
-
/sheep$/i
|
|
4034
|
-
].forEach(pluralize2.addUncountableRule);
|
|
4035
|
-
return pluralize2;
|
|
4036
|
-
});
|
|
4037
|
-
})(pluralize);
|
|
4038
|
-
var pluralizeExports = pluralize.exports;
|
|
4039
|
-
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
4040
|
-
plur.addPluralRule("glomerulus", "glomeruli");
|
|
4041
|
-
plur.addPluralRule("interstitium", "interstitia");
|
|
4042
|
-
function fromEntries(iterable) {
|
|
4043
|
-
return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
|
|
4044
|
-
}
|
|
4045
|
-
function capitalize(word) {
|
|
4046
|
-
return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
|
|
4047
|
-
}
|
|
4048
|
-
function getNextScope(prevScopes) {
|
|
4049
|
-
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
4050
|
-
const nextCharIndices = [0];
|
|
4051
|
-
function next() {
|
|
4052
|
-
const r = [];
|
|
4053
|
-
nextCharIndices.forEach((charIndex) => {
|
|
4054
|
-
r.unshift(chars[charIndex]);
|
|
4055
|
-
});
|
|
4056
|
-
let increment = true;
|
|
4057
|
-
for (let i = 0; i < nextCharIndices.length; i++) {
|
|
4058
|
-
const val = ++nextCharIndices[i];
|
|
4059
|
-
if (val >= chars.length) {
|
|
4060
|
-
nextCharIndices[i] = 0;
|
|
4061
|
-
} else {
|
|
4062
|
-
increment = false;
|
|
4063
|
-
break;
|
|
4064
|
-
}
|
|
4065
|
-
}
|
|
4066
|
-
if (increment) {
|
|
4067
|
-
nextCharIndices.push(0);
|
|
4068
|
-
}
|
|
4069
|
-
return r.join("");
|
|
4070
3748
|
}
|
|
4071
|
-
|
|
4072
|
-
do {
|
|
4073
|
-
nextScope = next();
|
|
4074
|
-
} while (prevScopes.includes(nextScope));
|
|
4075
|
-
return nextScope;
|
|
3749
|
+
return node;
|
|
4076
3750
|
}
|
|
4077
|
-
const
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
z.record(
|
|
4091
|
-
coordinationTypeName,
|
|
4092
|
-
z.record(coordinationScopeName, oneOrMoreCoordinationScopeNames)
|
|
4093
|
-
)
|
|
4094
|
-
);
|
|
4095
|
-
const rgbArray = z.array(z.number()).length(3);
|
|
4096
|
-
const treeNodeBase = z.object({
|
|
4097
|
-
name: z.string(),
|
|
4098
|
-
color: rgbArray.optional()
|
|
4099
|
-
});
|
|
4100
|
-
const treeNodeLeaf = treeNodeBase.extend({
|
|
4101
|
-
set: z.array(z.string())
|
|
4102
|
-
});
|
|
4103
|
-
const treeNodeNonLeaf = treeNodeBase.extend({
|
|
4104
|
-
children: z.lazy(() => z.array(z.union([treeNodeNonLeaf, treeNodeLeaf])))
|
|
4105
|
-
});
|
|
4106
|
-
const cellSets2 = z.object({
|
|
4107
|
-
version: z.literal("0.1.2"),
|
|
4108
|
-
tree: z.array(treeNodeNonLeaf)
|
|
4109
|
-
});
|
|
4110
|
-
const treeNodeLeafProbabilistic = treeNodeBase.extend({
|
|
4111
|
-
set: z.array(z.tuple([z.string(), z.number().nullable()]))
|
|
4112
|
-
});
|
|
4113
|
-
const treeNodeNonLeafProbabilistic = treeNodeBase.extend({
|
|
4114
|
-
children: z.lazy(() => z.array(
|
|
4115
|
-
z.union([treeNodeNonLeafProbabilistic, treeNodeLeafProbabilistic])
|
|
4116
|
-
))
|
|
4117
|
-
});
|
|
4118
|
-
const cellSets3 = z.object({
|
|
4119
|
-
version: z.literal("0.1.3"),
|
|
4120
|
-
tree: z.array(treeNodeNonLeafProbabilistic)
|
|
4121
|
-
});
|
|
4122
|
-
function nodeTransform(node, predicate, transform, transformedPaths, currPath = null) {
|
|
4123
|
-
let newPath;
|
|
4124
|
-
if (!currPath) {
|
|
4125
|
-
newPath = [node.name];
|
|
4126
|
-
} else {
|
|
4127
|
-
newPath = [...currPath];
|
|
4128
|
-
}
|
|
4129
|
-
if (predicate(node, newPath)) {
|
|
4130
|
-
transformedPaths.push(newPath);
|
|
4131
|
-
return transform(node, newPath);
|
|
4132
|
-
}
|
|
4133
|
-
if ("children" in node) {
|
|
4134
|
-
return {
|
|
4135
|
-
...node,
|
|
4136
|
-
children: node.children.map((child) => nodeTransform(
|
|
4137
|
-
child,
|
|
4138
|
-
predicate,
|
|
4139
|
-
transform,
|
|
4140
|
-
transformedPaths,
|
|
4141
|
-
newPath.concat([child.name])
|
|
4142
|
-
))
|
|
4143
|
-
};
|
|
4144
|
-
}
|
|
4145
|
-
return node;
|
|
4146
|
-
}
|
|
4147
|
-
const obsSetsSchema = z.union([cellSets3, cellSets2]).transform((v) => {
|
|
4148
|
-
if (v.version === "0.1.3")
|
|
4149
|
-
return v;
|
|
4150
|
-
return {
|
|
4151
|
-
...v,
|
|
4152
|
-
version: "0.1.3",
|
|
4153
|
-
tree: v.tree.map((levelZeroNode) => nodeTransform(
|
|
4154
|
-
levelZeroNode,
|
|
4155
|
-
(n) => !("children" in n) && Array.isArray(n.set),
|
|
4156
|
-
(n) => ({ ...n, set: n.set.map((itemId) => [itemId, null]) }),
|
|
4157
|
-
[]
|
|
4158
|
-
))
|
|
4159
|
-
};
|
|
3751
|
+
const obsSetsSchema = z.union([cellSets3, cellSets2]).transform((v) => {
|
|
3752
|
+
if (v.version === "0.1.3")
|
|
3753
|
+
return v;
|
|
3754
|
+
return {
|
|
3755
|
+
...v,
|
|
3756
|
+
version: "0.1.3",
|
|
3757
|
+
tree: v.tree.map((levelZeroNode) => nodeTransform(
|
|
3758
|
+
levelZeroNode,
|
|
3759
|
+
(n) => !("children" in n) && Array.isArray(n.set),
|
|
3760
|
+
(n) => ({ ...n, set: n.set.map((itemId) => [itemId, null]) }),
|
|
3761
|
+
[]
|
|
3762
|
+
))
|
|
3763
|
+
};
|
|
4160
3764
|
});
|
|
4161
3765
|
const obsSetsTabularSchema = z.array(z.object({
|
|
4162
3766
|
groupName: z.string(),
|
|
@@ -4983,221 +4587,614 @@ var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
|
|
|
4983
4587
|
return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
|
|
4984
4588
|
return propertyIsEnumerable.call(object, symbol);
|
|
4985
4589
|
});
|
|
4986
|
-
};
|
|
4987
|
-
const getSymbols$1 = getSymbols;
|
|
4988
|
-
function copySymbols(source, object) {
|
|
4989
|
-
return copyObject(source, getSymbols$1(source), object);
|
|
4990
|
-
}
|
|
4991
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
4992
|
-
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
4993
|
-
var result = [];
|
|
4994
|
-
while (object) {
|
|
4995
|
-
arrayPush(result, getSymbols$1(object));
|
|
4996
|
-
object = getPrototype$1(object);
|
|
4997
|
-
}
|
|
4998
|
-
return result;
|
|
4999
|
-
};
|
|
5000
|
-
const getSymbolsIn$1 = getSymbolsIn;
|
|
5001
|
-
function copySymbolsIn(source, object) {
|
|
5002
|
-
return copyObject(source, getSymbolsIn$1(source), object);
|
|
5003
|
-
}
|
|
5004
|
-
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
5005
|
-
var result = keysFunc(object);
|
|
5006
|
-
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
5007
|
-
}
|
|
5008
|
-
function getAllKeys(object) {
|
|
5009
|
-
return baseGetAllKeys(object, keys, getSymbols$1);
|
|
5010
|
-
}
|
|
5011
|
-
function getAllKeysIn(object) {
|
|
5012
|
-
return baseGetAllKeys(object, keysIn, getSymbolsIn$1);
|
|
4590
|
+
};
|
|
4591
|
+
const getSymbols$1 = getSymbols;
|
|
4592
|
+
function copySymbols(source, object) {
|
|
4593
|
+
return copyObject(source, getSymbols$1(source), object);
|
|
4594
|
+
}
|
|
4595
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
4596
|
+
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
4597
|
+
var result = [];
|
|
4598
|
+
while (object) {
|
|
4599
|
+
arrayPush(result, getSymbols$1(object));
|
|
4600
|
+
object = getPrototype$1(object);
|
|
4601
|
+
}
|
|
4602
|
+
return result;
|
|
4603
|
+
};
|
|
4604
|
+
const getSymbolsIn$1 = getSymbolsIn;
|
|
4605
|
+
function copySymbolsIn(source, object) {
|
|
4606
|
+
return copyObject(source, getSymbolsIn$1(source), object);
|
|
4607
|
+
}
|
|
4608
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
4609
|
+
var result = keysFunc(object);
|
|
4610
|
+
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
4611
|
+
}
|
|
4612
|
+
function getAllKeys(object) {
|
|
4613
|
+
return baseGetAllKeys(object, keys, getSymbols$1);
|
|
4614
|
+
}
|
|
4615
|
+
function getAllKeysIn(object) {
|
|
4616
|
+
return baseGetAllKeys(object, keysIn, getSymbolsIn$1);
|
|
4617
|
+
}
|
|
4618
|
+
var DataView = getNative(root$1, "DataView");
|
|
4619
|
+
const DataView$1 = DataView;
|
|
4620
|
+
var Promise$1 = getNative(root$1, "Promise");
|
|
4621
|
+
const Promise$2 = Promise$1;
|
|
4622
|
+
var Set$1 = getNative(root$1, "Set");
|
|
4623
|
+
const Set$2 = Set$1;
|
|
4624
|
+
var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
4625
|
+
var dataViewTag$2 = "[object DataView]";
|
|
4626
|
+
var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$2), promiseCtorString = toSource(Promise$2), setCtorString = toSource(Set$2), weakMapCtorString = toSource(WeakMap$1);
|
|
4627
|
+
var getTag = baseGetTag;
|
|
4628
|
+
if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$2 || Map$2 && getTag(new Map$2()) != mapTag$3 || Promise$2 && getTag(Promise$2.resolve()) != promiseTag || Set$2 && getTag(new Set$2()) != setTag$3 || WeakMap$1 && getTag(new WeakMap$1()) != weakMapTag$1) {
|
|
4629
|
+
getTag = function(value) {
|
|
4630
|
+
var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
4631
|
+
if (ctorString) {
|
|
4632
|
+
switch (ctorString) {
|
|
4633
|
+
case dataViewCtorString:
|
|
4634
|
+
return dataViewTag$2;
|
|
4635
|
+
case mapCtorString:
|
|
4636
|
+
return mapTag$3;
|
|
4637
|
+
case promiseCtorString:
|
|
4638
|
+
return promiseTag;
|
|
4639
|
+
case setCtorString:
|
|
4640
|
+
return setTag$3;
|
|
4641
|
+
case weakMapCtorString:
|
|
4642
|
+
return weakMapTag$1;
|
|
4643
|
+
}
|
|
4644
|
+
}
|
|
4645
|
+
return result;
|
|
4646
|
+
};
|
|
4647
|
+
}
|
|
4648
|
+
const getTag$1 = getTag;
|
|
4649
|
+
var objectProto = Object.prototype;
|
|
4650
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4651
|
+
function initCloneArray(array) {
|
|
4652
|
+
var length = array.length, result = new array.constructor(length);
|
|
4653
|
+
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
4654
|
+
result.index = array.index;
|
|
4655
|
+
result.input = array.input;
|
|
4656
|
+
}
|
|
4657
|
+
return result;
|
|
4658
|
+
}
|
|
4659
|
+
var Uint8Array$1 = root$1.Uint8Array;
|
|
4660
|
+
const Uint8Array$2 = Uint8Array$1;
|
|
4661
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
4662
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
4663
|
+
new Uint8Array$2(result).set(new Uint8Array$2(arrayBuffer));
|
|
4664
|
+
return result;
|
|
4665
|
+
}
|
|
4666
|
+
function cloneDataView(dataView, isDeep) {
|
|
4667
|
+
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
4668
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
4669
|
+
}
|
|
4670
|
+
var reFlags = /\w*$/;
|
|
4671
|
+
function cloneRegExp(regexp) {
|
|
4672
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
4673
|
+
result.lastIndex = regexp.lastIndex;
|
|
4674
|
+
return result;
|
|
4675
|
+
}
|
|
4676
|
+
var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
4677
|
+
function cloneSymbol(symbol) {
|
|
4678
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
4679
|
+
}
|
|
4680
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
4681
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
4682
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
4683
|
+
}
|
|
4684
|
+
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
|
|
4685
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
4686
|
+
function initCloneByTag(object, tag, isDeep) {
|
|
4687
|
+
var Ctor = object.constructor;
|
|
4688
|
+
switch (tag) {
|
|
4689
|
+
case arrayBufferTag$1:
|
|
4690
|
+
return cloneArrayBuffer(object);
|
|
4691
|
+
case boolTag$1:
|
|
4692
|
+
case dateTag$1:
|
|
4693
|
+
return new Ctor(+object);
|
|
4694
|
+
case dataViewTag$1:
|
|
4695
|
+
return cloneDataView(object, isDeep);
|
|
4696
|
+
case float32Tag$1:
|
|
4697
|
+
case float64Tag$1:
|
|
4698
|
+
case int8Tag$1:
|
|
4699
|
+
case int16Tag$1:
|
|
4700
|
+
case int32Tag$1:
|
|
4701
|
+
case uint8Tag$1:
|
|
4702
|
+
case uint8ClampedTag$1:
|
|
4703
|
+
case uint16Tag$1:
|
|
4704
|
+
case uint32Tag$1:
|
|
4705
|
+
return cloneTypedArray(object, isDeep);
|
|
4706
|
+
case mapTag$2:
|
|
4707
|
+
return new Ctor();
|
|
4708
|
+
case numberTag$1:
|
|
4709
|
+
case stringTag$1:
|
|
4710
|
+
return new Ctor(object);
|
|
4711
|
+
case regexpTag$1:
|
|
4712
|
+
return cloneRegExp(object);
|
|
4713
|
+
case setTag$2:
|
|
4714
|
+
return new Ctor();
|
|
4715
|
+
case symbolTag$1:
|
|
4716
|
+
return cloneSymbol(object);
|
|
4717
|
+
}
|
|
4718
|
+
}
|
|
4719
|
+
function initCloneObject(object) {
|
|
4720
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate$1(getPrototype$1(object)) : {};
|
|
4721
|
+
}
|
|
4722
|
+
var mapTag$1 = "[object Map]";
|
|
4723
|
+
function baseIsMap(value) {
|
|
4724
|
+
return isObjectLike(value) && getTag$1(value) == mapTag$1;
|
|
4725
|
+
}
|
|
4726
|
+
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
4727
|
+
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
4728
|
+
const isMap$1 = isMap;
|
|
4729
|
+
var setTag$1 = "[object Set]";
|
|
4730
|
+
function baseIsSet(value) {
|
|
4731
|
+
return isObjectLike(value) && getTag$1(value) == setTag$1;
|
|
4732
|
+
}
|
|
4733
|
+
var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
|
|
4734
|
+
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
4735
|
+
const isSet$1 = isSet;
|
|
4736
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
4737
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
4738
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
4739
|
+
var cloneableTags = {};
|
|
4740
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
4741
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
4742
|
+
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
4743
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
4744
|
+
if (customizer) {
|
|
4745
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
4746
|
+
}
|
|
4747
|
+
if (result !== void 0) {
|
|
4748
|
+
return result;
|
|
4749
|
+
}
|
|
4750
|
+
if (!isObject(value)) {
|
|
4751
|
+
return value;
|
|
4752
|
+
}
|
|
4753
|
+
var isArr = isArray$1(value);
|
|
4754
|
+
if (isArr) {
|
|
4755
|
+
result = initCloneArray(value);
|
|
4756
|
+
if (!isDeep) {
|
|
4757
|
+
return copyArray(value, result);
|
|
4758
|
+
}
|
|
4759
|
+
} else {
|
|
4760
|
+
var tag = getTag$1(value), isFunc = tag == funcTag || tag == genTag;
|
|
4761
|
+
if (isBuffer$1(value)) {
|
|
4762
|
+
return cloneBuffer(value, isDeep);
|
|
4763
|
+
}
|
|
4764
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
4765
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
4766
|
+
if (!isDeep) {
|
|
4767
|
+
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
4768
|
+
}
|
|
4769
|
+
} else {
|
|
4770
|
+
if (!cloneableTags[tag]) {
|
|
4771
|
+
return object ? value : {};
|
|
4772
|
+
}
|
|
4773
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
4774
|
+
}
|
|
4775
|
+
}
|
|
4776
|
+
stack || (stack = new Stack());
|
|
4777
|
+
var stacked = stack.get(value);
|
|
4778
|
+
if (stacked) {
|
|
4779
|
+
return stacked;
|
|
4780
|
+
}
|
|
4781
|
+
stack.set(value, result);
|
|
4782
|
+
if (isSet$1(value)) {
|
|
4783
|
+
value.forEach(function(subValue) {
|
|
4784
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
4785
|
+
});
|
|
4786
|
+
} else if (isMap$1(value)) {
|
|
4787
|
+
value.forEach(function(subValue, key2) {
|
|
4788
|
+
result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
4789
|
+
});
|
|
4790
|
+
}
|
|
4791
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
|
|
4792
|
+
var props = isArr ? void 0 : keysFunc(value);
|
|
4793
|
+
arrayEach(props || value, function(subValue, key2) {
|
|
4794
|
+
if (props) {
|
|
4795
|
+
key2 = subValue;
|
|
4796
|
+
subValue = value[key2];
|
|
4797
|
+
}
|
|
4798
|
+
assignValue(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
4799
|
+
});
|
|
4800
|
+
return result;
|
|
4801
|
+
}
|
|
4802
|
+
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
4803
|
+
function cloneDeep(value) {
|
|
4804
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
4805
|
+
}
|
|
4806
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
4807
|
+
function getDefaultExportFromCjs(x) {
|
|
4808
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4809
|
+
}
|
|
4810
|
+
function commonjsRequire(path) {
|
|
4811
|
+
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.');
|
|
4812
|
+
}
|
|
4813
|
+
var pluralize = { exports: {} };
|
|
4814
|
+
(function(module2, exports2) {
|
|
4815
|
+
(function(root2, pluralize2) {
|
|
4816
|
+
if (typeof commonjsRequire === "function" && true && true) {
|
|
4817
|
+
module2.exports = pluralize2();
|
|
4818
|
+
} else {
|
|
4819
|
+
root2.pluralize = pluralize2();
|
|
4820
|
+
}
|
|
4821
|
+
})(commonjsGlobal, function() {
|
|
4822
|
+
var pluralRules = [];
|
|
4823
|
+
var singularRules = [];
|
|
4824
|
+
var uncountables = {};
|
|
4825
|
+
var irregularPlurals = {};
|
|
4826
|
+
var irregularSingles = {};
|
|
4827
|
+
function sanitizeRule(rule) {
|
|
4828
|
+
if (typeof rule === "string") {
|
|
4829
|
+
return new RegExp("^" + rule + "$", "i");
|
|
4830
|
+
}
|
|
4831
|
+
return rule;
|
|
4832
|
+
}
|
|
4833
|
+
function restoreCase(word, token) {
|
|
4834
|
+
if (word === token)
|
|
4835
|
+
return token;
|
|
4836
|
+
if (word === word.toLowerCase())
|
|
4837
|
+
return token.toLowerCase();
|
|
4838
|
+
if (word === word.toUpperCase())
|
|
4839
|
+
return token.toUpperCase();
|
|
4840
|
+
if (word[0] === word[0].toUpperCase()) {
|
|
4841
|
+
return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
|
4842
|
+
}
|
|
4843
|
+
return token.toLowerCase();
|
|
4844
|
+
}
|
|
4845
|
+
function interpolate(str, args) {
|
|
4846
|
+
return str.replace(/\$(\d{1,2})/g, function(match, index) {
|
|
4847
|
+
return args[index] || "";
|
|
4848
|
+
});
|
|
4849
|
+
}
|
|
4850
|
+
function replace(word, rule) {
|
|
4851
|
+
return word.replace(rule[0], function(match, index) {
|
|
4852
|
+
var result = interpolate(rule[1], arguments);
|
|
4853
|
+
if (match === "") {
|
|
4854
|
+
return restoreCase(word[index - 1], result);
|
|
4855
|
+
}
|
|
4856
|
+
return restoreCase(match, result);
|
|
4857
|
+
});
|
|
4858
|
+
}
|
|
4859
|
+
function sanitizeWord(token, word, rules) {
|
|
4860
|
+
if (!token.length || uncountables.hasOwnProperty(token)) {
|
|
4861
|
+
return word;
|
|
4862
|
+
}
|
|
4863
|
+
var len = rules.length;
|
|
4864
|
+
while (len--) {
|
|
4865
|
+
var rule = rules[len];
|
|
4866
|
+
if (rule[0].test(word))
|
|
4867
|
+
return replace(word, rule);
|
|
4868
|
+
}
|
|
4869
|
+
return word;
|
|
4870
|
+
}
|
|
4871
|
+
function replaceWord(replaceMap, keepMap, rules) {
|
|
4872
|
+
return function(word) {
|
|
4873
|
+
var token = word.toLowerCase();
|
|
4874
|
+
if (keepMap.hasOwnProperty(token)) {
|
|
4875
|
+
return restoreCase(word, token);
|
|
4876
|
+
}
|
|
4877
|
+
if (replaceMap.hasOwnProperty(token)) {
|
|
4878
|
+
return restoreCase(word, replaceMap[token]);
|
|
4879
|
+
}
|
|
4880
|
+
return sanitizeWord(token, word, rules);
|
|
4881
|
+
};
|
|
4882
|
+
}
|
|
4883
|
+
function checkWord(replaceMap, keepMap, rules, bool) {
|
|
4884
|
+
return function(word) {
|
|
4885
|
+
var token = word.toLowerCase();
|
|
4886
|
+
if (keepMap.hasOwnProperty(token))
|
|
4887
|
+
return true;
|
|
4888
|
+
if (replaceMap.hasOwnProperty(token))
|
|
4889
|
+
return false;
|
|
4890
|
+
return sanitizeWord(token, token, rules) === token;
|
|
4891
|
+
};
|
|
4892
|
+
}
|
|
4893
|
+
function pluralize2(word, count, inclusive) {
|
|
4894
|
+
var pluralized = count === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
|
|
4895
|
+
return (inclusive ? count + " " : "") + pluralized;
|
|
4896
|
+
}
|
|
4897
|
+
pluralize2.plural = replaceWord(
|
|
4898
|
+
irregularSingles,
|
|
4899
|
+
irregularPlurals,
|
|
4900
|
+
pluralRules
|
|
4901
|
+
);
|
|
4902
|
+
pluralize2.isPlural = checkWord(
|
|
4903
|
+
irregularSingles,
|
|
4904
|
+
irregularPlurals,
|
|
4905
|
+
pluralRules
|
|
4906
|
+
);
|
|
4907
|
+
pluralize2.singular = replaceWord(
|
|
4908
|
+
irregularPlurals,
|
|
4909
|
+
irregularSingles,
|
|
4910
|
+
singularRules
|
|
4911
|
+
);
|
|
4912
|
+
pluralize2.isSingular = checkWord(
|
|
4913
|
+
irregularPlurals,
|
|
4914
|
+
irregularSingles,
|
|
4915
|
+
singularRules
|
|
4916
|
+
);
|
|
4917
|
+
pluralize2.addPluralRule = function(rule, replacement) {
|
|
4918
|
+
pluralRules.push([sanitizeRule(rule), replacement]);
|
|
4919
|
+
};
|
|
4920
|
+
pluralize2.addSingularRule = function(rule, replacement) {
|
|
4921
|
+
singularRules.push([sanitizeRule(rule), replacement]);
|
|
4922
|
+
};
|
|
4923
|
+
pluralize2.addUncountableRule = function(word) {
|
|
4924
|
+
if (typeof word === "string") {
|
|
4925
|
+
uncountables[word.toLowerCase()] = true;
|
|
4926
|
+
return;
|
|
4927
|
+
}
|
|
4928
|
+
pluralize2.addPluralRule(word, "$0");
|
|
4929
|
+
pluralize2.addSingularRule(word, "$0");
|
|
4930
|
+
};
|
|
4931
|
+
pluralize2.addIrregularRule = function(single, plural) {
|
|
4932
|
+
plural = plural.toLowerCase();
|
|
4933
|
+
single = single.toLowerCase();
|
|
4934
|
+
irregularSingles[single] = plural;
|
|
4935
|
+
irregularPlurals[plural] = single;
|
|
4936
|
+
};
|
|
4937
|
+
[
|
|
4938
|
+
// Pronouns.
|
|
4939
|
+
["I", "we"],
|
|
4940
|
+
["me", "us"],
|
|
4941
|
+
["he", "they"],
|
|
4942
|
+
["she", "they"],
|
|
4943
|
+
["them", "them"],
|
|
4944
|
+
["myself", "ourselves"],
|
|
4945
|
+
["yourself", "yourselves"],
|
|
4946
|
+
["itself", "themselves"],
|
|
4947
|
+
["herself", "themselves"],
|
|
4948
|
+
["himself", "themselves"],
|
|
4949
|
+
["themself", "themselves"],
|
|
4950
|
+
["is", "are"],
|
|
4951
|
+
["was", "were"],
|
|
4952
|
+
["has", "have"],
|
|
4953
|
+
["this", "these"],
|
|
4954
|
+
["that", "those"],
|
|
4955
|
+
// Words ending in with a consonant and `o`.
|
|
4956
|
+
["echo", "echoes"],
|
|
4957
|
+
["dingo", "dingoes"],
|
|
4958
|
+
["volcano", "volcanoes"],
|
|
4959
|
+
["tornado", "tornadoes"],
|
|
4960
|
+
["torpedo", "torpedoes"],
|
|
4961
|
+
// Ends with `us`.
|
|
4962
|
+
["genus", "genera"],
|
|
4963
|
+
["viscus", "viscera"],
|
|
4964
|
+
// Ends with `ma`.
|
|
4965
|
+
["stigma", "stigmata"],
|
|
4966
|
+
["stoma", "stomata"],
|
|
4967
|
+
["dogma", "dogmata"],
|
|
4968
|
+
["lemma", "lemmata"],
|
|
4969
|
+
["schema", "schemata"],
|
|
4970
|
+
["anathema", "anathemata"],
|
|
4971
|
+
// Other irregular rules.
|
|
4972
|
+
["ox", "oxen"],
|
|
4973
|
+
["axe", "axes"],
|
|
4974
|
+
["die", "dice"],
|
|
4975
|
+
["yes", "yeses"],
|
|
4976
|
+
["foot", "feet"],
|
|
4977
|
+
["eave", "eaves"],
|
|
4978
|
+
["goose", "geese"],
|
|
4979
|
+
["tooth", "teeth"],
|
|
4980
|
+
["quiz", "quizzes"],
|
|
4981
|
+
["human", "humans"],
|
|
4982
|
+
["proof", "proofs"],
|
|
4983
|
+
["carve", "carves"],
|
|
4984
|
+
["valve", "valves"],
|
|
4985
|
+
["looey", "looies"],
|
|
4986
|
+
["thief", "thieves"],
|
|
4987
|
+
["groove", "grooves"],
|
|
4988
|
+
["pickaxe", "pickaxes"],
|
|
4989
|
+
["passerby", "passersby"]
|
|
4990
|
+
].forEach(function(rule) {
|
|
4991
|
+
return pluralize2.addIrregularRule(rule[0], rule[1]);
|
|
4992
|
+
});
|
|
4993
|
+
[
|
|
4994
|
+
[/s?$/i, "s"],
|
|
4995
|
+
[/[^\u0000-\u007F]$/i, "$0"],
|
|
4996
|
+
[/([^aeiou]ese)$/i, "$1"],
|
|
4997
|
+
[/(ax|test)is$/i, "$1es"],
|
|
4998
|
+
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
|
|
4999
|
+
[/(e[mn]u)s?$/i, "$1s"],
|
|
5000
|
+
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
|
|
5001
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
|
|
5002
|
+
[/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
|
|
5003
|
+
[/(seraph|cherub)(?:im)?$/i, "$1im"],
|
|
5004
|
+
[/(her|at|gr)o$/i, "$1oes"],
|
|
5005
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
|
|
5006
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
|
|
5007
|
+
[/sis$/i, "ses"],
|
|
5008
|
+
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
|
|
5009
|
+
[/([^aeiouy]|qu)y$/i, "$1ies"],
|
|
5010
|
+
[/([^ch][ieo][ln])ey$/i, "$1ies"],
|
|
5011
|
+
[/(x|ch|ss|sh|zz)$/i, "$1es"],
|
|
5012
|
+
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
|
|
5013
|
+
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
|
|
5014
|
+
[/(pe)(?:rson|ople)$/i, "$1ople"],
|
|
5015
|
+
[/(child)(?:ren)?$/i, "$1ren"],
|
|
5016
|
+
[/eaux$/i, "$0"],
|
|
5017
|
+
[/m[ae]n$/i, "men"],
|
|
5018
|
+
["thou", "you"]
|
|
5019
|
+
].forEach(function(rule) {
|
|
5020
|
+
return pluralize2.addPluralRule(rule[0], rule[1]);
|
|
5021
|
+
});
|
|
5022
|
+
[
|
|
5023
|
+
[/s$/i, ""],
|
|
5024
|
+
[/(ss)$/i, "$1"],
|
|
5025
|
+
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
|
|
5026
|
+
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
|
|
5027
|
+
[/ies$/i, "y"],
|
|
5028
|
+
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
|
|
5029
|
+
[/\b(mon|smil)ies$/i, "$1ey"],
|
|
5030
|
+
[/\b((?:tit)?m|l)ice$/i, "$1ouse"],
|
|
5031
|
+
[/(seraph|cherub)im$/i, "$1"],
|
|
5032
|
+
[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
|
|
5033
|
+
[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
|
|
5034
|
+
[/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
|
|
5035
|
+
[/(test)(?:is|es)$/i, "$1is"],
|
|
5036
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
|
|
5037
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
|
|
5038
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
|
|
5039
|
+
[/(alumn|alg|vertebr)ae$/i, "$1a"],
|
|
5040
|
+
[/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
|
|
5041
|
+
[/(matr|append)ices$/i, "$1ix"],
|
|
5042
|
+
[/(pe)(rson|ople)$/i, "$1rson"],
|
|
5043
|
+
[/(child)ren$/i, "$1"],
|
|
5044
|
+
[/(eau)x?$/i, "$1"],
|
|
5045
|
+
[/men$/i, "man"]
|
|
5046
|
+
].forEach(function(rule) {
|
|
5047
|
+
return pluralize2.addSingularRule(rule[0], rule[1]);
|
|
5048
|
+
});
|
|
5049
|
+
[
|
|
5050
|
+
// Singular words with no plurals.
|
|
5051
|
+
"adulthood",
|
|
5052
|
+
"advice",
|
|
5053
|
+
"agenda",
|
|
5054
|
+
"aid",
|
|
5055
|
+
"aircraft",
|
|
5056
|
+
"alcohol",
|
|
5057
|
+
"ammo",
|
|
5058
|
+
"analytics",
|
|
5059
|
+
"anime",
|
|
5060
|
+
"athletics",
|
|
5061
|
+
"audio",
|
|
5062
|
+
"bison",
|
|
5063
|
+
"blood",
|
|
5064
|
+
"bream",
|
|
5065
|
+
"buffalo",
|
|
5066
|
+
"butter",
|
|
5067
|
+
"carp",
|
|
5068
|
+
"cash",
|
|
5069
|
+
"chassis",
|
|
5070
|
+
"chess",
|
|
5071
|
+
"clothing",
|
|
5072
|
+
"cod",
|
|
5073
|
+
"commerce",
|
|
5074
|
+
"cooperation",
|
|
5075
|
+
"corps",
|
|
5076
|
+
"debris",
|
|
5077
|
+
"diabetes",
|
|
5078
|
+
"digestion",
|
|
5079
|
+
"elk",
|
|
5080
|
+
"energy",
|
|
5081
|
+
"equipment",
|
|
5082
|
+
"excretion",
|
|
5083
|
+
"expertise",
|
|
5084
|
+
"firmware",
|
|
5085
|
+
"flounder",
|
|
5086
|
+
"fun",
|
|
5087
|
+
"gallows",
|
|
5088
|
+
"garbage",
|
|
5089
|
+
"graffiti",
|
|
5090
|
+
"hardware",
|
|
5091
|
+
"headquarters",
|
|
5092
|
+
"health",
|
|
5093
|
+
"herpes",
|
|
5094
|
+
"highjinks",
|
|
5095
|
+
"homework",
|
|
5096
|
+
"housework",
|
|
5097
|
+
"information",
|
|
5098
|
+
"jeans",
|
|
5099
|
+
"justice",
|
|
5100
|
+
"kudos",
|
|
5101
|
+
"labour",
|
|
5102
|
+
"literature",
|
|
5103
|
+
"machinery",
|
|
5104
|
+
"mackerel",
|
|
5105
|
+
"mail",
|
|
5106
|
+
"media",
|
|
5107
|
+
"mews",
|
|
5108
|
+
"moose",
|
|
5109
|
+
"music",
|
|
5110
|
+
"mud",
|
|
5111
|
+
"manga",
|
|
5112
|
+
"news",
|
|
5113
|
+
"only",
|
|
5114
|
+
"personnel",
|
|
5115
|
+
"pike",
|
|
5116
|
+
"plankton",
|
|
5117
|
+
"pliers",
|
|
5118
|
+
"police",
|
|
5119
|
+
"pollution",
|
|
5120
|
+
"premises",
|
|
5121
|
+
"rain",
|
|
5122
|
+
"research",
|
|
5123
|
+
"rice",
|
|
5124
|
+
"salmon",
|
|
5125
|
+
"scissors",
|
|
5126
|
+
"series",
|
|
5127
|
+
"sewage",
|
|
5128
|
+
"shambles",
|
|
5129
|
+
"shrimp",
|
|
5130
|
+
"software",
|
|
5131
|
+
"species",
|
|
5132
|
+
"staff",
|
|
5133
|
+
"swine",
|
|
5134
|
+
"tennis",
|
|
5135
|
+
"traffic",
|
|
5136
|
+
"transportation",
|
|
5137
|
+
"trout",
|
|
5138
|
+
"tuna",
|
|
5139
|
+
"wealth",
|
|
5140
|
+
"welfare",
|
|
5141
|
+
"whiting",
|
|
5142
|
+
"wildebeest",
|
|
5143
|
+
"wildlife",
|
|
5144
|
+
"you",
|
|
5145
|
+
/pok[eé]mon$/i,
|
|
5146
|
+
// Regexes.
|
|
5147
|
+
/[^aeiou]ese$/i,
|
|
5148
|
+
// "chinese", "japanese"
|
|
5149
|
+
/deer$/i,
|
|
5150
|
+
// "deer", "reindeer"
|
|
5151
|
+
/fish$/i,
|
|
5152
|
+
// "fish", "blowfish", "angelfish"
|
|
5153
|
+
/measles$/i,
|
|
5154
|
+
/o[iu]s$/i,
|
|
5155
|
+
// "carnivorous"
|
|
5156
|
+
/pox$/i,
|
|
5157
|
+
// "chickpox", "smallpox"
|
|
5158
|
+
/sheep$/i
|
|
5159
|
+
].forEach(pluralize2.addUncountableRule);
|
|
5160
|
+
return pluralize2;
|
|
5161
|
+
});
|
|
5162
|
+
})(pluralize);
|
|
5163
|
+
var pluralizeExports = pluralize.exports;
|
|
5164
|
+
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
5165
|
+
plur.addPluralRule("glomerulus", "glomeruli");
|
|
5166
|
+
plur.addPluralRule("interstitium", "interstitia");
|
|
5167
|
+
function capitalize(word) {
|
|
5168
|
+
return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
|
|
5013
5169
|
}
|
|
5014
|
-
|
|
5015
|
-
const
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
return dataViewTag$2;
|
|
5031
|
-
case mapCtorString:
|
|
5032
|
-
return mapTag$3;
|
|
5033
|
-
case promiseCtorString:
|
|
5034
|
-
return promiseTag;
|
|
5035
|
-
case setCtorString:
|
|
5036
|
-
return setTag$3;
|
|
5037
|
-
case weakMapCtorString:
|
|
5038
|
-
return weakMapTag$1;
|
|
5170
|
+
function getNextScope(prevScopes) {
|
|
5171
|
+
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
5172
|
+
const nextCharIndices = [0];
|
|
5173
|
+
function next() {
|
|
5174
|
+
const r = [];
|
|
5175
|
+
nextCharIndices.forEach((charIndex) => {
|
|
5176
|
+
r.unshift(chars[charIndex]);
|
|
5177
|
+
});
|
|
5178
|
+
let increment = true;
|
|
5179
|
+
for (let i = 0; i < nextCharIndices.length; i++) {
|
|
5180
|
+
const val = ++nextCharIndices[i];
|
|
5181
|
+
if (val >= chars.length) {
|
|
5182
|
+
nextCharIndices[i] = 0;
|
|
5183
|
+
} else {
|
|
5184
|
+
increment = false;
|
|
5185
|
+
break;
|
|
5039
5186
|
}
|
|
5040
5187
|
}
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
}
|
|
5044
|
-
const getTag$1 = getTag;
|
|
5045
|
-
var objectProto = Object.prototype;
|
|
5046
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
5047
|
-
function initCloneArray(array) {
|
|
5048
|
-
var length = array.length, result = new array.constructor(length);
|
|
5049
|
-
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
5050
|
-
result.index = array.index;
|
|
5051
|
-
result.input = array.input;
|
|
5052
|
-
}
|
|
5053
|
-
return result;
|
|
5054
|
-
}
|
|
5055
|
-
var Uint8Array$1 = root$1.Uint8Array;
|
|
5056
|
-
const Uint8Array$2 = Uint8Array$1;
|
|
5057
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
5058
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
5059
|
-
new Uint8Array$2(result).set(new Uint8Array$2(arrayBuffer));
|
|
5060
|
-
return result;
|
|
5061
|
-
}
|
|
5062
|
-
function cloneDataView(dataView, isDeep) {
|
|
5063
|
-
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
5064
|
-
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
5065
|
-
}
|
|
5066
|
-
var reFlags = /\w*$/;
|
|
5067
|
-
function cloneRegExp(regexp) {
|
|
5068
|
-
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
5069
|
-
result.lastIndex = regexp.lastIndex;
|
|
5070
|
-
return result;
|
|
5071
|
-
}
|
|
5072
|
-
var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
5073
|
-
function cloneSymbol(symbol) {
|
|
5074
|
-
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
5075
|
-
}
|
|
5076
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
5077
|
-
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
5078
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
5079
|
-
}
|
|
5080
|
-
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
|
|
5081
|
-
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
5082
|
-
function initCloneByTag(object, tag, isDeep) {
|
|
5083
|
-
var Ctor = object.constructor;
|
|
5084
|
-
switch (tag) {
|
|
5085
|
-
case arrayBufferTag$1:
|
|
5086
|
-
return cloneArrayBuffer(object);
|
|
5087
|
-
case boolTag$1:
|
|
5088
|
-
case dateTag$1:
|
|
5089
|
-
return new Ctor(+object);
|
|
5090
|
-
case dataViewTag$1:
|
|
5091
|
-
return cloneDataView(object, isDeep);
|
|
5092
|
-
case float32Tag$1:
|
|
5093
|
-
case float64Tag$1:
|
|
5094
|
-
case int8Tag$1:
|
|
5095
|
-
case int16Tag$1:
|
|
5096
|
-
case int32Tag$1:
|
|
5097
|
-
case uint8Tag$1:
|
|
5098
|
-
case uint8ClampedTag$1:
|
|
5099
|
-
case uint16Tag$1:
|
|
5100
|
-
case uint32Tag$1:
|
|
5101
|
-
return cloneTypedArray(object, isDeep);
|
|
5102
|
-
case mapTag$2:
|
|
5103
|
-
return new Ctor();
|
|
5104
|
-
case numberTag$1:
|
|
5105
|
-
case stringTag$1:
|
|
5106
|
-
return new Ctor(object);
|
|
5107
|
-
case regexpTag$1:
|
|
5108
|
-
return cloneRegExp(object);
|
|
5109
|
-
case setTag$2:
|
|
5110
|
-
return new Ctor();
|
|
5111
|
-
case symbolTag$1:
|
|
5112
|
-
return cloneSymbol(object);
|
|
5113
|
-
}
|
|
5114
|
-
}
|
|
5115
|
-
function initCloneObject(object) {
|
|
5116
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate$1(getPrototype$1(object)) : {};
|
|
5117
|
-
}
|
|
5118
|
-
var mapTag$1 = "[object Map]";
|
|
5119
|
-
function baseIsMap(value) {
|
|
5120
|
-
return isObjectLike(value) && getTag$1(value) == mapTag$1;
|
|
5121
|
-
}
|
|
5122
|
-
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
5123
|
-
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
5124
|
-
const isMap$1 = isMap;
|
|
5125
|
-
var setTag$1 = "[object Set]";
|
|
5126
|
-
function baseIsSet(value) {
|
|
5127
|
-
return isObjectLike(value) && getTag$1(value) == setTag$1;
|
|
5128
|
-
}
|
|
5129
|
-
var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
|
|
5130
|
-
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
5131
|
-
const isSet$1 = isSet;
|
|
5132
|
-
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
5133
|
-
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
5134
|
-
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
5135
|
-
var cloneableTags = {};
|
|
5136
|
-
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
5137
|
-
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
5138
|
-
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
5139
|
-
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
5140
|
-
if (customizer) {
|
|
5141
|
-
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
5142
|
-
}
|
|
5143
|
-
if (result !== void 0) {
|
|
5144
|
-
return result;
|
|
5145
|
-
}
|
|
5146
|
-
if (!isObject(value)) {
|
|
5147
|
-
return value;
|
|
5148
|
-
}
|
|
5149
|
-
var isArr = isArray$1(value);
|
|
5150
|
-
if (isArr) {
|
|
5151
|
-
result = initCloneArray(value);
|
|
5152
|
-
if (!isDeep) {
|
|
5153
|
-
return copyArray(value, result);
|
|
5154
|
-
}
|
|
5155
|
-
} else {
|
|
5156
|
-
var tag = getTag$1(value), isFunc = tag == funcTag || tag == genTag;
|
|
5157
|
-
if (isBuffer$1(value)) {
|
|
5158
|
-
return cloneBuffer(value, isDeep);
|
|
5159
|
-
}
|
|
5160
|
-
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
5161
|
-
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
5162
|
-
if (!isDeep) {
|
|
5163
|
-
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
5164
|
-
}
|
|
5165
|
-
} else {
|
|
5166
|
-
if (!cloneableTags[tag]) {
|
|
5167
|
-
return object ? value : {};
|
|
5168
|
-
}
|
|
5169
|
-
result = initCloneByTag(value, tag, isDeep);
|
|
5188
|
+
if (increment) {
|
|
5189
|
+
nextCharIndices.push(0);
|
|
5170
5190
|
}
|
|
5191
|
+
return r.join("");
|
|
5171
5192
|
}
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
stack.set(value, result);
|
|
5178
|
-
if (isSet$1(value)) {
|
|
5179
|
-
value.forEach(function(subValue) {
|
|
5180
|
-
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
5181
|
-
});
|
|
5182
|
-
} else if (isMap$1(value)) {
|
|
5183
|
-
value.forEach(function(subValue, key2) {
|
|
5184
|
-
result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
5185
|
-
});
|
|
5186
|
-
}
|
|
5187
|
-
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
|
|
5188
|
-
var props = isArr ? void 0 : keysFunc(value);
|
|
5189
|
-
arrayEach(props || value, function(subValue, key2) {
|
|
5190
|
-
if (props) {
|
|
5191
|
-
key2 = subValue;
|
|
5192
|
-
subValue = value[key2];
|
|
5193
|
-
}
|
|
5194
|
-
assignValue(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
5195
|
-
});
|
|
5196
|
-
return result;
|
|
5197
|
-
}
|
|
5198
|
-
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
5199
|
-
function cloneDeep(value) {
|
|
5200
|
-
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
5193
|
+
let nextScope;
|
|
5194
|
+
do {
|
|
5195
|
+
nextScope = next();
|
|
5196
|
+
} while (prevScopes.includes(nextScope));
|
|
5197
|
+
return nextScope;
|
|
5201
5198
|
}
|
|
5202
5199
|
configSchema1_0_0.shape.coordinationSpace.unwrap();
|
|
5203
5200
|
configSchema1_0_0.shape.layout.element.shape.coordinationScopes.unwrap();
|
|
@@ -7857,6 +7854,7 @@ const FileType$1 = {
|
|
|
7857
7854
|
OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
|
|
7858
7855
|
// AnnData
|
|
7859
7856
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
|
|
7857
|
+
OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
|
|
7860
7858
|
OBS_SETS_ANNDATA_ZARR: "obsSets.anndata.zarr",
|
|
7861
7859
|
OBS_EMBEDDING_ANNDATA_ZARR: "obsEmbedding.anndata.zarr",
|
|
7862
7860
|
OBS_SPOTS_ANNDATA_ZARR: "obsSpots.anndata.zarr",
|
|
@@ -8213,7 +8211,7 @@ function configSchemaToVersion(zodSchema) {
|
|
|
8213
8211
|
return zodSchema.shape.version._def.value;
|
|
8214
8212
|
}
|
|
8215
8213
|
const VERSIONED_CONFIG_SCHEMAS = {
|
|
8216
|
-
...fromEntries(SCHEMA_HANDLERS.map(([zodSchema]) => {
|
|
8214
|
+
...Object.fromEntries(SCHEMA_HANDLERS.map(([zodSchema]) => {
|
|
8217
8215
|
const version = configSchemaToVersion(zodSchema);
|
|
8218
8216
|
return [version, zodSchema];
|
|
8219
8217
|
})),
|
|
@@ -8318,7 +8316,7 @@ function buildConfigSchema(pluginFileTypes, pluginJointFileTypes, pluginCoordina
|
|
|
8318
8316
|
// Merge with coordination type schemas.
|
|
8319
8317
|
coordinationSpace: z.object(
|
|
8320
8318
|
// Wrap each value schema in z.record()
|
|
8321
|
-
fromEntries(
|
|
8319
|
+
Object.fromEntries(
|
|
8322
8320
|
pluginCoordinationTypes.map((ct) => [
|
|
8323
8321
|
ct.name,
|
|
8324
8322
|
z.record(
|
|
@@ -8428,6 +8426,11 @@ const annDataObsSets = z.array(
|
|
|
8428
8426
|
scorePath: z.string().optional().describe("The location in the AnnData store for the set confidence scores, like 'obs/celltype_prediction_score.'")
|
|
8429
8427
|
})
|
|
8430
8428
|
);
|
|
8429
|
+
const annDataObsFeatureColumns = z.array(
|
|
8430
|
+
z.object({
|
|
8431
|
+
path: z.string()
|
|
8432
|
+
})
|
|
8433
|
+
);
|
|
8431
8434
|
const annDataObsSpots = annDataObsm;
|
|
8432
8435
|
const annDataObsPoints = annDataObsm;
|
|
8433
8436
|
const annDataObsLocations = annDataObsm;
|
|
@@ -8492,6 +8495,7 @@ const obsSetsAnndataSchema = annDataObsSets;
|
|
|
8492
8495
|
const obsFeatureMatrixAnndataSchema = annDataObsFeatureMatrix;
|
|
8493
8496
|
const obsLabelsAnndataSchema = annDataObsLabels;
|
|
8494
8497
|
const featureLabelsAnndataSchema = annDataFeatureLabels;
|
|
8498
|
+
const obsFeatureColumnsAnndataSchema = annDataObsFeatureColumns;
|
|
8495
8499
|
const obsEmbeddingCsvSchema = z.object({
|
|
8496
8500
|
obsIndex: z.string(),
|
|
8497
8501
|
obsEmbedding: z.array(z.string()).length(2)
|
|
@@ -8669,6 +8673,7 @@ export {
|
|
|
8669
8673
|
neighborhoodsLayerObj,
|
|
8670
8674
|
obsEmbeddingAnndataSchema,
|
|
8671
8675
|
obsEmbeddingCsvSchema,
|
|
8676
|
+
obsFeatureColumnsAnndataSchema,
|
|
8672
8677
|
obsFeatureMatrixAnndataSchema,
|
|
8673
8678
|
obsFeatureMatrixSpatialdataSchema,
|
|
8674
8679
|
obsLabelsAnndataSchema,
|