@magda/org-tree 3.0.1 → 3.0.2-alpha.0
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/getNodeIdFromNameOrId.js +8 -0
- package/dist/getUserIdFromNameOrId.js +8 -0
- package/dist/index.js +52 -15
- package/dist/org-tree-assign.js +267 -106
- package/dist/org-tree-create.js +265 -106
- package/dist/org-tree-delete.js +266 -106
- package/dist/org-tree-insert.js +266 -106
- package/dist/org-tree-move.js +266 -106
- package/dist/org-tree-unassign.js +58 -15
- package/dist/org-tree-view.js +265 -106
- package/package.json +4 -4
package/dist/org-tree-create.js
CHANGED
|
@@ -12,6 +12,9 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
12
12
|
return require.apply(this, arguments);
|
|
13
13
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
14
|
});
|
|
15
|
+
var __esm = (fn, res) => function __init() {
|
|
16
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
17
|
+
};
|
|
15
18
|
var __commonJS = (cb, mod) => function __require2() {
|
|
16
19
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
20
|
};
|
|
@@ -32,9 +35,22 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
35
|
mod
|
|
33
36
|
));
|
|
34
37
|
|
|
38
|
+
// ../cjs-shim.js
|
|
39
|
+
import { createRequire } from "module";
|
|
40
|
+
import path from "path";
|
|
41
|
+
import url from "url";
|
|
42
|
+
var init_cjs_shim = __esm({
|
|
43
|
+
"../cjs-shim.js"() {
|
|
44
|
+
globalThis.require = createRequire(import.meta.url);
|
|
45
|
+
globalThis.__filename = url.fileURLToPath(import.meta.url);
|
|
46
|
+
globalThis.__dirname = path.dirname(__filename);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
35
50
|
// ../../node_modules/commander/lib/error.js
|
|
36
51
|
var require_error = __commonJS({
|
|
37
52
|
"../../node_modules/commander/lib/error.js"(exports) {
|
|
53
|
+
init_cjs_shim();
|
|
38
54
|
var CommanderError2 = class extends Error {
|
|
39
55
|
/**
|
|
40
56
|
* Constructs the CommanderError class
|
|
@@ -72,6 +88,7 @@ var require_error = __commonJS({
|
|
|
72
88
|
// ../../node_modules/commander/lib/argument.js
|
|
73
89
|
var require_argument = __commonJS({
|
|
74
90
|
"../../node_modules/commander/lib/argument.js"(exports) {
|
|
91
|
+
init_cjs_shim();
|
|
75
92
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
76
93
|
var Argument2 = class {
|
|
77
94
|
/**
|
|
@@ -193,6 +210,7 @@ var require_argument = __commonJS({
|
|
|
193
210
|
// ../../node_modules/commander/lib/help.js
|
|
194
211
|
var require_help = __commonJS({
|
|
195
212
|
"../../node_modules/commander/lib/help.js"(exports) {
|
|
213
|
+
init_cjs_shim();
|
|
196
214
|
var { humanReadableArgName } = require_argument();
|
|
197
215
|
var Help2 = class {
|
|
198
216
|
constructor() {
|
|
@@ -580,6 +598,7 @@ var require_help = __commonJS({
|
|
|
580
598
|
// ../../node_modules/commander/lib/option.js
|
|
581
599
|
var require_option = __commonJS({
|
|
582
600
|
"../../node_modules/commander/lib/option.js"(exports) {
|
|
601
|
+
init_cjs_shim();
|
|
583
602
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
584
603
|
var Option2 = class {
|
|
585
604
|
/**
|
|
@@ -853,6 +872,7 @@ var require_option = __commonJS({
|
|
|
853
872
|
// ../../node_modules/commander/lib/suggestSimilar.js
|
|
854
873
|
var require_suggestSimilar = __commonJS({
|
|
855
874
|
"../../node_modules/commander/lib/suggestSimilar.js"(exports) {
|
|
875
|
+
init_cjs_shim();
|
|
856
876
|
var maxDistance = 3;
|
|
857
877
|
function editDistance(a, b) {
|
|
858
878
|
if (Math.abs(a.length - b.length) > maxDistance)
|
|
@@ -935,9 +955,10 @@ var require_suggestSimilar = __commonJS({
|
|
|
935
955
|
// ../../node_modules/commander/lib/command.js
|
|
936
956
|
var require_command = __commonJS({
|
|
937
957
|
"../../node_modules/commander/lib/command.js"(exports) {
|
|
958
|
+
init_cjs_shim();
|
|
938
959
|
var EventEmitter = __require("events").EventEmitter;
|
|
939
960
|
var childProcess = __require("child_process");
|
|
940
|
-
var
|
|
961
|
+
var path2 = __require("path");
|
|
941
962
|
var fs = __require("fs");
|
|
942
963
|
var process2 = __require("process");
|
|
943
964
|
var { Argument: Argument2, humanReadableArgName } = require_argument();
|
|
@@ -1770,10 +1791,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1770
1791
|
let launchWithNode = false;
|
|
1771
1792
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
1772
1793
|
function findFile(baseDir, baseName) {
|
|
1773
|
-
const localBin =
|
|
1794
|
+
const localBin = path2.resolve(baseDir, baseName);
|
|
1774
1795
|
if (fs.existsSync(localBin))
|
|
1775
1796
|
return localBin;
|
|
1776
|
-
if (sourceExt.includes(
|
|
1797
|
+
if (sourceExt.includes(path2.extname(baseName)))
|
|
1777
1798
|
return void 0;
|
|
1778
1799
|
const foundExt = sourceExt.find((ext) => fs.existsSync(`${localBin}${ext}`));
|
|
1779
1800
|
if (foundExt)
|
|
@@ -1791,19 +1812,19 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1791
1812
|
} catch (err) {
|
|
1792
1813
|
resolvedScriptPath = this._scriptPath;
|
|
1793
1814
|
}
|
|
1794
|
-
executableDir =
|
|
1815
|
+
executableDir = path2.resolve(path2.dirname(resolvedScriptPath), executableDir);
|
|
1795
1816
|
}
|
|
1796
1817
|
if (executableDir) {
|
|
1797
1818
|
let localFile = findFile(executableDir, executableFile);
|
|
1798
1819
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
1799
|
-
const legacyName =
|
|
1820
|
+
const legacyName = path2.basename(this._scriptPath, path2.extname(this._scriptPath));
|
|
1800
1821
|
if (legacyName !== this._name) {
|
|
1801
1822
|
localFile = findFile(executableDir, `${legacyName}-${subcommand._name}`);
|
|
1802
1823
|
}
|
|
1803
1824
|
}
|
|
1804
1825
|
executableFile = localFile || executableFile;
|
|
1805
1826
|
}
|
|
1806
|
-
launchWithNode = sourceExt.includes(
|
|
1827
|
+
launchWithNode = sourceExt.includes(path2.extname(executableFile));
|
|
1807
1828
|
let proc;
|
|
1808
1829
|
if (process2.platform !== "win32") {
|
|
1809
1830
|
if (launchWithNode) {
|
|
@@ -2605,7 +2626,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2605
2626
|
* @return {Command}
|
|
2606
2627
|
*/
|
|
2607
2628
|
nameFromFilename(filename) {
|
|
2608
|
-
this._name =
|
|
2629
|
+
this._name = path2.basename(filename, path2.extname(filename));
|
|
2609
2630
|
return this;
|
|
2610
2631
|
}
|
|
2611
2632
|
/**
|
|
@@ -2619,10 +2640,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2619
2640
|
* @param {string} [path]
|
|
2620
2641
|
* @return {string|null|Command}
|
|
2621
2642
|
*/
|
|
2622
|
-
executableDir(
|
|
2623
|
-
if (
|
|
2643
|
+
executableDir(path3) {
|
|
2644
|
+
if (path3 === void 0)
|
|
2624
2645
|
return this._executableDir;
|
|
2625
|
-
this._executableDir =
|
|
2646
|
+
this._executableDir = path3;
|
|
2626
2647
|
return this;
|
|
2627
2648
|
}
|
|
2628
2649
|
/**
|
|
@@ -2795,6 +2816,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2795
2816
|
// ../../node_modules/commander/index.js
|
|
2796
2817
|
var require_commander = __commonJS({
|
|
2797
2818
|
"../../node_modules/commander/index.js"(exports, module) {
|
|
2819
|
+
init_cjs_shim();
|
|
2798
2820
|
var { Argument: Argument2 } = require_argument();
|
|
2799
2821
|
var { Command: Command2 } = require_command();
|
|
2800
2822
|
var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
@@ -2816,6 +2838,7 @@ var require_commander = __commonJS({
|
|
|
2816
2838
|
var require_escape_string_regexp = __commonJS({
|
|
2817
2839
|
"../../node_modules/escape-string-regexp/index.js"(exports, module) {
|
|
2818
2840
|
"use strict";
|
|
2841
|
+
init_cjs_shim();
|
|
2819
2842
|
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
2820
2843
|
module.exports = function(str) {
|
|
2821
2844
|
if (typeof str !== "string") {
|
|
@@ -2830,6 +2853,7 @@ var require_escape_string_regexp = __commonJS({
|
|
|
2830
2853
|
var require_color_name = __commonJS({
|
|
2831
2854
|
"../../node_modules/color-convert/node_modules/color-name/index.js"(exports, module) {
|
|
2832
2855
|
"use strict";
|
|
2856
|
+
init_cjs_shim();
|
|
2833
2857
|
module.exports = {
|
|
2834
2858
|
"aliceblue": [240, 248, 255],
|
|
2835
2859
|
"antiquewhite": [250, 235, 215],
|
|
@@ -2986,6 +3010,7 @@ var require_color_name = __commonJS({
|
|
|
2986
3010
|
// ../../node_modules/color-convert/conversions.js
|
|
2987
3011
|
var require_conversions = __commonJS({
|
|
2988
3012
|
"../../node_modules/color-convert/conversions.js"(exports, module) {
|
|
3013
|
+
init_cjs_shim();
|
|
2989
3014
|
var cssKeywords = require_color_name();
|
|
2990
3015
|
var reverseKeywords = {};
|
|
2991
3016
|
for (key in cssKeywords) {
|
|
@@ -3699,6 +3724,7 @@ var require_conversions = __commonJS({
|
|
|
3699
3724
|
// ../../node_modules/color-convert/route.js
|
|
3700
3725
|
var require_route = __commonJS({
|
|
3701
3726
|
"../../node_modules/color-convert/route.js"(exports, module) {
|
|
3727
|
+
init_cjs_shim();
|
|
3702
3728
|
var conversions = require_conversions();
|
|
3703
3729
|
function buildGraph() {
|
|
3704
3730
|
var graph = {};
|
|
@@ -3738,15 +3764,15 @@ var require_route = __commonJS({
|
|
|
3738
3764
|
};
|
|
3739
3765
|
}
|
|
3740
3766
|
function wrapConversion(toModel, graph) {
|
|
3741
|
-
var
|
|
3767
|
+
var path2 = [graph[toModel].parent, toModel];
|
|
3742
3768
|
var fn = conversions[graph[toModel].parent][toModel];
|
|
3743
3769
|
var cur = graph[toModel].parent;
|
|
3744
3770
|
while (graph[cur].parent) {
|
|
3745
|
-
|
|
3771
|
+
path2.unshift(graph[cur].parent);
|
|
3746
3772
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
3747
3773
|
cur = graph[cur].parent;
|
|
3748
3774
|
}
|
|
3749
|
-
fn.conversion =
|
|
3775
|
+
fn.conversion = path2;
|
|
3750
3776
|
return fn;
|
|
3751
3777
|
}
|
|
3752
3778
|
module.exports = function(fromModel) {
|
|
@@ -3769,6 +3795,7 @@ var require_route = __commonJS({
|
|
|
3769
3795
|
// ../../node_modules/color-convert/index.js
|
|
3770
3796
|
var require_color_convert = __commonJS({
|
|
3771
3797
|
"../../node_modules/color-convert/index.js"(exports, module) {
|
|
3798
|
+
init_cjs_shim();
|
|
3772
3799
|
var conversions = require_conversions();
|
|
3773
3800
|
var route = require_route();
|
|
3774
3801
|
var convert = {};
|
|
@@ -3829,6 +3856,7 @@ var require_color_convert = __commonJS({
|
|
|
3829
3856
|
var require_ansi_styles = __commonJS({
|
|
3830
3857
|
"../../node_modules/ansi-styles/index.js"(exports, module) {
|
|
3831
3858
|
"use strict";
|
|
3859
|
+
init_cjs_shim();
|
|
3832
3860
|
var colorConvert = require_color_convert();
|
|
3833
3861
|
var wrapAnsi16 = (fn, offset) => function() {
|
|
3834
3862
|
const code = fn.apply(colorConvert, arguments);
|
|
@@ -3972,6 +4000,7 @@ var require_ansi_styles = __commonJS({
|
|
|
3972
4000
|
var require_has_flag = __commonJS({
|
|
3973
4001
|
"../../node_modules/supports-color/node_modules/has-flag/index.js"(exports, module) {
|
|
3974
4002
|
"use strict";
|
|
4003
|
+
init_cjs_shim();
|
|
3975
4004
|
module.exports = (flag, argv) => {
|
|
3976
4005
|
argv = argv || process.argv;
|
|
3977
4006
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
@@ -3986,6 +4015,7 @@ var require_has_flag = __commonJS({
|
|
|
3986
4015
|
var require_supports_color = __commonJS({
|
|
3987
4016
|
"../../node_modules/supports-color/index.js"(exports, module) {
|
|
3988
4017
|
"use strict";
|
|
4018
|
+
init_cjs_shim();
|
|
3989
4019
|
var os = __require("os");
|
|
3990
4020
|
var hasFlag = require_has_flag();
|
|
3991
4021
|
var env = process.env;
|
|
@@ -4081,6 +4111,7 @@ var require_supports_color = __commonJS({
|
|
|
4081
4111
|
var require_templates = __commonJS({
|
|
4082
4112
|
"../../scripts/node_modules/chalk/templates.js"(exports, module) {
|
|
4083
4113
|
"use strict";
|
|
4114
|
+
init_cjs_shim();
|
|
4084
4115
|
var TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
4085
4116
|
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
4086
4117
|
var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
@@ -4192,6 +4223,7 @@ var require_templates = __commonJS({
|
|
|
4192
4223
|
var require_chalk = __commonJS({
|
|
4193
4224
|
"../../scripts/node_modules/chalk/index.js"(exports, module) {
|
|
4194
4225
|
"use strict";
|
|
4226
|
+
init_cjs_shim();
|
|
4195
4227
|
var escapeStringRegexp = require_escape_string_regexp();
|
|
4196
4228
|
var ansiStyles = require_ansi_styles();
|
|
4197
4229
|
var stdoutColor = require_supports_color().stdout;
|
|
@@ -4358,6 +4390,7 @@ var require_chalk = __commonJS({
|
|
|
4358
4390
|
// ../../node_modules/lodash/lodash.js
|
|
4359
4391
|
var require_lodash = __commonJS({
|
|
4360
4392
|
"../../node_modules/lodash/lodash.js"(exports, module) {
|
|
4393
|
+
init_cjs_shim();
|
|
4361
4394
|
(function() {
|
|
4362
4395
|
var undefined2;
|
|
4363
4396
|
var VERSION = "4.17.21";
|
|
@@ -5685,11 +5718,11 @@ var require_lodash = __commonJS({
|
|
|
5685
5718
|
return isFunction(object[key]);
|
|
5686
5719
|
});
|
|
5687
5720
|
}
|
|
5688
|
-
function baseGet(object,
|
|
5689
|
-
|
|
5690
|
-
var index = 0, length =
|
|
5721
|
+
function baseGet(object, path2) {
|
|
5722
|
+
path2 = castPath(path2, object);
|
|
5723
|
+
var index = 0, length = path2.length;
|
|
5691
5724
|
while (object != null && index < length) {
|
|
5692
|
-
object = object[toKey(
|
|
5725
|
+
object = object[toKey(path2[index++])];
|
|
5693
5726
|
}
|
|
5694
5727
|
return index && index == length ? object : undefined2;
|
|
5695
5728
|
}
|
|
@@ -5753,10 +5786,10 @@ var require_lodash = __commonJS({
|
|
|
5753
5786
|
});
|
|
5754
5787
|
return accumulator;
|
|
5755
5788
|
}
|
|
5756
|
-
function baseInvoke(object,
|
|
5757
|
-
|
|
5758
|
-
object = parent(object,
|
|
5759
|
-
var func = object == null ? object : object[toKey(last(
|
|
5789
|
+
function baseInvoke(object, path2, args) {
|
|
5790
|
+
path2 = castPath(path2, object);
|
|
5791
|
+
object = parent(object, path2);
|
|
5792
|
+
var func = object == null ? object : object[toKey(last(path2))];
|
|
5760
5793
|
return func == null ? undefined2 : apply(func, object, args);
|
|
5761
5794
|
}
|
|
5762
5795
|
function baseIsArguments(value) {
|
|
@@ -5912,13 +5945,13 @@ var require_lodash = __commonJS({
|
|
|
5912
5945
|
return object === source || baseIsMatch(object, source, matchData);
|
|
5913
5946
|
};
|
|
5914
5947
|
}
|
|
5915
|
-
function baseMatchesProperty(
|
|
5916
|
-
if (isKey(
|
|
5917
|
-
return matchesStrictComparable(toKey(
|
|
5948
|
+
function baseMatchesProperty(path2, srcValue) {
|
|
5949
|
+
if (isKey(path2) && isStrictComparable(srcValue)) {
|
|
5950
|
+
return matchesStrictComparable(toKey(path2), srcValue);
|
|
5918
5951
|
}
|
|
5919
5952
|
return function(object) {
|
|
5920
|
-
var objValue = get(object,
|
|
5921
|
-
return objValue === undefined2 && objValue === srcValue ? hasIn(object,
|
|
5953
|
+
var objValue = get(object, path2);
|
|
5954
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn(object, path2) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
5922
5955
|
};
|
|
5923
5956
|
}
|
|
5924
5957
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
@@ -6015,23 +6048,23 @@ var require_lodash = __commonJS({
|
|
|
6015
6048
|
});
|
|
6016
6049
|
}
|
|
6017
6050
|
function basePick(object, paths) {
|
|
6018
|
-
return basePickBy(object, paths, function(value,
|
|
6019
|
-
return hasIn(object,
|
|
6051
|
+
return basePickBy(object, paths, function(value, path2) {
|
|
6052
|
+
return hasIn(object, path2);
|
|
6020
6053
|
});
|
|
6021
6054
|
}
|
|
6022
6055
|
function basePickBy(object, paths, predicate) {
|
|
6023
6056
|
var index = -1, length = paths.length, result2 = {};
|
|
6024
6057
|
while (++index < length) {
|
|
6025
|
-
var
|
|
6026
|
-
if (predicate(value,
|
|
6027
|
-
baseSet(result2, castPath(
|
|
6058
|
+
var path2 = paths[index], value = baseGet(object, path2);
|
|
6059
|
+
if (predicate(value, path2)) {
|
|
6060
|
+
baseSet(result2, castPath(path2, object), value);
|
|
6028
6061
|
}
|
|
6029
6062
|
}
|
|
6030
6063
|
return result2;
|
|
6031
6064
|
}
|
|
6032
|
-
function basePropertyDeep(
|
|
6065
|
+
function basePropertyDeep(path2) {
|
|
6033
6066
|
return function(object) {
|
|
6034
|
-
return baseGet(object,
|
|
6067
|
+
return baseGet(object, path2);
|
|
6035
6068
|
};
|
|
6036
6069
|
}
|
|
6037
6070
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
@@ -6105,14 +6138,14 @@ var require_lodash = __commonJS({
|
|
|
6105
6138
|
var array = values(collection);
|
|
6106
6139
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
|
6107
6140
|
}
|
|
6108
|
-
function baseSet(object,
|
|
6141
|
+
function baseSet(object, path2, value, customizer) {
|
|
6109
6142
|
if (!isObject(object)) {
|
|
6110
6143
|
return object;
|
|
6111
6144
|
}
|
|
6112
|
-
|
|
6113
|
-
var index = -1, length =
|
|
6145
|
+
path2 = castPath(path2, object);
|
|
6146
|
+
var index = -1, length = path2.length, lastIndex = length - 1, nested = object;
|
|
6114
6147
|
while (nested != null && ++index < length) {
|
|
6115
|
-
var key = toKey(
|
|
6148
|
+
var key = toKey(path2[index]), newValue = value;
|
|
6116
6149
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
6117
6150
|
return object;
|
|
6118
6151
|
}
|
|
@@ -6120,7 +6153,7 @@ var require_lodash = __commonJS({
|
|
|
6120
6153
|
var objValue = nested[key];
|
|
6121
6154
|
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
|
6122
6155
|
if (newValue === undefined2) {
|
|
6123
|
-
newValue = isObject(objValue) ? objValue : isIndex(
|
|
6156
|
+
newValue = isObject(objValue) ? objValue : isIndex(path2[index + 1]) ? [] : {};
|
|
6124
6157
|
}
|
|
6125
6158
|
}
|
|
6126
6159
|
assignValue(nested, key, newValue);
|
|
@@ -6286,13 +6319,13 @@ var require_lodash = __commonJS({
|
|
|
6286
6319
|
}
|
|
6287
6320
|
return result2;
|
|
6288
6321
|
}
|
|
6289
|
-
function baseUnset(object,
|
|
6290
|
-
|
|
6291
|
-
object = parent(object,
|
|
6292
|
-
return object == null || delete object[toKey(last(
|
|
6322
|
+
function baseUnset(object, path2) {
|
|
6323
|
+
path2 = castPath(path2, object);
|
|
6324
|
+
object = parent(object, path2);
|
|
6325
|
+
return object == null || delete object[toKey(last(path2))];
|
|
6293
6326
|
}
|
|
6294
|
-
function baseUpdate(object,
|
|
6295
|
-
return baseSet(object,
|
|
6327
|
+
function baseUpdate(object, path2, updater, customizer) {
|
|
6328
|
+
return baseSet(object, path2, updater(baseGet(object, path2)), customizer);
|
|
6296
6329
|
}
|
|
6297
6330
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
6298
6331
|
var length = array.length, index = fromRight ? length : -1;
|
|
@@ -7175,11 +7208,11 @@ var require_lodash = __commonJS({
|
|
|
7175
7208
|
var match = source.match(reWrapDetails);
|
|
7176
7209
|
return match ? match[1].split(reSplitDetails) : [];
|
|
7177
7210
|
}
|
|
7178
|
-
function hasPath(object,
|
|
7179
|
-
|
|
7180
|
-
var index = -1, length =
|
|
7211
|
+
function hasPath(object, path2, hasFunc) {
|
|
7212
|
+
path2 = castPath(path2, object);
|
|
7213
|
+
var index = -1, length = path2.length, result2 = false;
|
|
7181
7214
|
while (++index < length) {
|
|
7182
|
-
var key = toKey(
|
|
7215
|
+
var key = toKey(path2[index]);
|
|
7183
7216
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
7184
7217
|
break;
|
|
7185
7218
|
}
|
|
@@ -7381,8 +7414,8 @@ var require_lodash = __commonJS({
|
|
|
7381
7414
|
return apply(func, this, otherArgs);
|
|
7382
7415
|
};
|
|
7383
7416
|
}
|
|
7384
|
-
function parent(object,
|
|
7385
|
-
return
|
|
7417
|
+
function parent(object, path2) {
|
|
7418
|
+
return path2.length < 2 ? object : baseGet(object, baseSlice(path2, 0, -1));
|
|
7386
7419
|
}
|
|
7387
7420
|
function reorder(array, indexes) {
|
|
7388
7421
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
@@ -8017,10 +8050,10 @@ var require_lodash = __commonJS({
|
|
|
8017
8050
|
}
|
|
8018
8051
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
8019
8052
|
}
|
|
8020
|
-
var invokeMap = baseRest(function(collection,
|
|
8021
|
-
var index = -1, isFunc = typeof
|
|
8053
|
+
var invokeMap = baseRest(function(collection, path2, args) {
|
|
8054
|
+
var index = -1, isFunc = typeof path2 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
8022
8055
|
baseEach(collection, function(value) {
|
|
8023
|
-
result2[++index] = isFunc ? apply(
|
|
8056
|
+
result2[++index] = isFunc ? apply(path2, value, args) : baseInvoke(value, path2, args);
|
|
8024
8057
|
});
|
|
8025
8058
|
return result2;
|
|
8026
8059
|
});
|
|
@@ -8672,15 +8705,15 @@ var require_lodash = __commonJS({
|
|
|
8672
8705
|
function functionsIn(object) {
|
|
8673
8706
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
8674
8707
|
}
|
|
8675
|
-
function get(object,
|
|
8676
|
-
var result2 = object == null ? undefined2 : baseGet(object,
|
|
8708
|
+
function get(object, path2, defaultValue) {
|
|
8709
|
+
var result2 = object == null ? undefined2 : baseGet(object, path2);
|
|
8677
8710
|
return result2 === undefined2 ? defaultValue : result2;
|
|
8678
8711
|
}
|
|
8679
|
-
function has(object,
|
|
8680
|
-
return object != null && hasPath(object,
|
|
8712
|
+
function has(object, path2) {
|
|
8713
|
+
return object != null && hasPath(object, path2, baseHas);
|
|
8681
8714
|
}
|
|
8682
|
-
function hasIn(object,
|
|
8683
|
-
return object != null && hasPath(object,
|
|
8715
|
+
function hasIn(object, path2) {
|
|
8716
|
+
return object != null && hasPath(object, path2, baseHasIn);
|
|
8684
8717
|
}
|
|
8685
8718
|
var invert = createInverter(function(result2, value, key) {
|
|
8686
8719
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -8733,10 +8766,10 @@ var require_lodash = __commonJS({
|
|
|
8733
8766
|
return result2;
|
|
8734
8767
|
}
|
|
8735
8768
|
var isDeep = false;
|
|
8736
|
-
paths = arrayMap(paths, function(
|
|
8737
|
-
|
|
8738
|
-
isDeep || (isDeep =
|
|
8739
|
-
return
|
|
8769
|
+
paths = arrayMap(paths, function(path2) {
|
|
8770
|
+
path2 = castPath(path2, object);
|
|
8771
|
+
isDeep || (isDeep = path2.length > 1);
|
|
8772
|
+
return path2;
|
|
8740
8773
|
});
|
|
8741
8774
|
copyObject(object, getAllKeysIn(object), result2);
|
|
8742
8775
|
if (isDeep) {
|
|
@@ -8762,19 +8795,19 @@ var require_lodash = __commonJS({
|
|
|
8762
8795
|
return [prop];
|
|
8763
8796
|
});
|
|
8764
8797
|
predicate = getIteratee(predicate);
|
|
8765
|
-
return basePickBy(object, props, function(value,
|
|
8766
|
-
return predicate(value,
|
|
8798
|
+
return basePickBy(object, props, function(value, path2) {
|
|
8799
|
+
return predicate(value, path2[0]);
|
|
8767
8800
|
});
|
|
8768
8801
|
}
|
|
8769
|
-
function result(object,
|
|
8770
|
-
|
|
8771
|
-
var index = -1, length =
|
|
8802
|
+
function result(object, path2, defaultValue) {
|
|
8803
|
+
path2 = castPath(path2, object);
|
|
8804
|
+
var index = -1, length = path2.length;
|
|
8772
8805
|
if (!length) {
|
|
8773
8806
|
length = 1;
|
|
8774
8807
|
object = undefined2;
|
|
8775
8808
|
}
|
|
8776
8809
|
while (++index < length) {
|
|
8777
|
-
var value = object == null ? undefined2 : object[toKey(
|
|
8810
|
+
var value = object == null ? undefined2 : object[toKey(path2[index])];
|
|
8778
8811
|
if (value === undefined2) {
|
|
8779
8812
|
index = length;
|
|
8780
8813
|
value = defaultValue;
|
|
@@ -8783,12 +8816,12 @@ var require_lodash = __commonJS({
|
|
|
8783
8816
|
}
|
|
8784
8817
|
return object;
|
|
8785
8818
|
}
|
|
8786
|
-
function set(object,
|
|
8787
|
-
return object == null ? object : baseSet(object,
|
|
8819
|
+
function set(object, path2, value) {
|
|
8820
|
+
return object == null ? object : baseSet(object, path2, value);
|
|
8788
8821
|
}
|
|
8789
|
-
function setWith(object,
|
|
8822
|
+
function setWith(object, path2, value, customizer) {
|
|
8790
8823
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
8791
|
-
return object == null ? object : baseSet(object,
|
|
8824
|
+
return object == null ? object : baseSet(object, path2, value, customizer);
|
|
8792
8825
|
}
|
|
8793
8826
|
var toPairs = createToPairs(keys);
|
|
8794
8827
|
var toPairsIn = createToPairs(keysIn);
|
|
@@ -8810,15 +8843,15 @@ var require_lodash = __commonJS({
|
|
|
8810
8843
|
});
|
|
8811
8844
|
return accumulator;
|
|
8812
8845
|
}
|
|
8813
|
-
function unset(object,
|
|
8814
|
-
return object == null ? true : baseUnset(object,
|
|
8846
|
+
function unset(object, path2) {
|
|
8847
|
+
return object == null ? true : baseUnset(object, path2);
|
|
8815
8848
|
}
|
|
8816
|
-
function update(object,
|
|
8817
|
-
return object == null ? object : baseUpdate(object,
|
|
8849
|
+
function update(object, path2, updater) {
|
|
8850
|
+
return object == null ? object : baseUpdate(object, path2, castFunction(updater));
|
|
8818
8851
|
}
|
|
8819
|
-
function updateWith(object,
|
|
8852
|
+
function updateWith(object, path2, updater, customizer) {
|
|
8820
8853
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
8821
|
-
return object == null ? object : baseUpdate(object,
|
|
8854
|
+
return object == null ? object : baseUpdate(object, path2, castFunction(updater), customizer);
|
|
8822
8855
|
}
|
|
8823
8856
|
function values(object) {
|
|
8824
8857
|
return object == null ? [] : baseValues(object, keys(object));
|
|
@@ -9199,17 +9232,17 @@ var require_lodash = __commonJS({
|
|
|
9199
9232
|
function matches(source) {
|
|
9200
9233
|
return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
|
|
9201
9234
|
}
|
|
9202
|
-
function matchesProperty(
|
|
9203
|
-
return baseMatchesProperty(
|
|
9235
|
+
function matchesProperty(path2, srcValue) {
|
|
9236
|
+
return baseMatchesProperty(path2, baseClone(srcValue, CLONE_DEEP_FLAG));
|
|
9204
9237
|
}
|
|
9205
|
-
var method = baseRest(function(
|
|
9238
|
+
var method = baseRest(function(path2, args) {
|
|
9206
9239
|
return function(object) {
|
|
9207
|
-
return baseInvoke(object,
|
|
9240
|
+
return baseInvoke(object, path2, args);
|
|
9208
9241
|
};
|
|
9209
9242
|
});
|
|
9210
9243
|
var methodOf = baseRest(function(object, args) {
|
|
9211
|
-
return function(
|
|
9212
|
-
return baseInvoke(object,
|
|
9244
|
+
return function(path2) {
|
|
9245
|
+
return baseInvoke(object, path2, args);
|
|
9213
9246
|
};
|
|
9214
9247
|
});
|
|
9215
9248
|
function mixin(object, source, options) {
|
|
@@ -9256,12 +9289,12 @@ var require_lodash = __commonJS({
|
|
|
9256
9289
|
var over = createOver(arrayMap);
|
|
9257
9290
|
var overEvery = createOver(arrayEvery);
|
|
9258
9291
|
var overSome = createOver(arraySome);
|
|
9259
|
-
function property(
|
|
9260
|
-
return isKey(
|
|
9292
|
+
function property(path2) {
|
|
9293
|
+
return isKey(path2) ? baseProperty(toKey(path2)) : basePropertyDeep(path2);
|
|
9261
9294
|
}
|
|
9262
9295
|
function propertyOf(object) {
|
|
9263
|
-
return function(
|
|
9264
|
-
return object == null ? undefined2 : baseGet(object,
|
|
9296
|
+
return function(path2) {
|
|
9297
|
+
return object == null ? undefined2 : baseGet(object, path2);
|
|
9265
9298
|
};
|
|
9266
9299
|
}
|
|
9267
9300
|
var range = createRange();
|
|
@@ -9714,12 +9747,12 @@ var require_lodash = __commonJS({
|
|
|
9714
9747
|
LazyWrapper.prototype.findLast = function(predicate) {
|
|
9715
9748
|
return this.reverse().find(predicate);
|
|
9716
9749
|
};
|
|
9717
|
-
LazyWrapper.prototype.invokeMap = baseRest(function(
|
|
9718
|
-
if (typeof
|
|
9750
|
+
LazyWrapper.prototype.invokeMap = baseRest(function(path2, args) {
|
|
9751
|
+
if (typeof path2 == "function") {
|
|
9719
9752
|
return new LazyWrapper(this);
|
|
9720
9753
|
}
|
|
9721
9754
|
return this.map(function(value) {
|
|
9722
|
-
return baseInvoke(value,
|
|
9755
|
+
return baseInvoke(value, path2, args);
|
|
9723
9756
|
});
|
|
9724
9757
|
});
|
|
9725
9758
|
LazyWrapper.prototype.reject = function(predicate) {
|
|
@@ -9838,6 +9871,7 @@ var require_lodash = __commonJS({
|
|
|
9838
9871
|
// ../../node_modules/lodash/_freeGlobal.js
|
|
9839
9872
|
var require_freeGlobal = __commonJS({
|
|
9840
9873
|
"../../node_modules/lodash/_freeGlobal.js"(exports, module) {
|
|
9874
|
+
init_cjs_shim();
|
|
9841
9875
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
9842
9876
|
module.exports = freeGlobal;
|
|
9843
9877
|
}
|
|
@@ -9846,6 +9880,7 @@ var require_freeGlobal = __commonJS({
|
|
|
9846
9880
|
// ../../node_modules/lodash/_root.js
|
|
9847
9881
|
var require_root = __commonJS({
|
|
9848
9882
|
"../../node_modules/lodash/_root.js"(exports, module) {
|
|
9883
|
+
init_cjs_shim();
|
|
9849
9884
|
var freeGlobal = require_freeGlobal();
|
|
9850
9885
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
9851
9886
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
@@ -9856,6 +9891,7 @@ var require_root = __commonJS({
|
|
|
9856
9891
|
// ../../node_modules/lodash/_Symbol.js
|
|
9857
9892
|
var require_Symbol = __commonJS({
|
|
9858
9893
|
"../../node_modules/lodash/_Symbol.js"(exports, module) {
|
|
9894
|
+
init_cjs_shim();
|
|
9859
9895
|
var root = require_root();
|
|
9860
9896
|
var Symbol2 = root.Symbol;
|
|
9861
9897
|
module.exports = Symbol2;
|
|
@@ -9865,6 +9901,7 @@ var require_Symbol = __commonJS({
|
|
|
9865
9901
|
// ../../node_modules/lodash/_arrayMap.js
|
|
9866
9902
|
var require_arrayMap = __commonJS({
|
|
9867
9903
|
"../../node_modules/lodash/_arrayMap.js"(exports, module) {
|
|
9904
|
+
init_cjs_shim();
|
|
9868
9905
|
function arrayMap(array, iteratee) {
|
|
9869
9906
|
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
9870
9907
|
while (++index < length) {
|
|
@@ -9879,6 +9916,7 @@ var require_arrayMap = __commonJS({
|
|
|
9879
9916
|
// ../../node_modules/lodash/isArray.js
|
|
9880
9917
|
var require_isArray = __commonJS({
|
|
9881
9918
|
"../../node_modules/lodash/isArray.js"(exports, module) {
|
|
9919
|
+
init_cjs_shim();
|
|
9882
9920
|
var isArray = Array.isArray;
|
|
9883
9921
|
module.exports = isArray;
|
|
9884
9922
|
}
|
|
@@ -9887,6 +9925,7 @@ var require_isArray = __commonJS({
|
|
|
9887
9925
|
// ../../node_modules/lodash/_getRawTag.js
|
|
9888
9926
|
var require_getRawTag = __commonJS({
|
|
9889
9927
|
"../../node_modules/lodash/_getRawTag.js"(exports, module) {
|
|
9928
|
+
init_cjs_shim();
|
|
9890
9929
|
var Symbol2 = require_Symbol();
|
|
9891
9930
|
var objectProto = Object.prototype;
|
|
9892
9931
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
@@ -9916,6 +9955,7 @@ var require_getRawTag = __commonJS({
|
|
|
9916
9955
|
// ../../node_modules/lodash/_objectToString.js
|
|
9917
9956
|
var require_objectToString = __commonJS({
|
|
9918
9957
|
"../../node_modules/lodash/_objectToString.js"(exports, module) {
|
|
9958
|
+
init_cjs_shim();
|
|
9919
9959
|
var objectProto = Object.prototype;
|
|
9920
9960
|
var nativeObjectToString = objectProto.toString;
|
|
9921
9961
|
function objectToString(value) {
|
|
@@ -9928,6 +9968,7 @@ var require_objectToString = __commonJS({
|
|
|
9928
9968
|
// ../../node_modules/lodash/_baseGetTag.js
|
|
9929
9969
|
var require_baseGetTag = __commonJS({
|
|
9930
9970
|
"../../node_modules/lodash/_baseGetTag.js"(exports, module) {
|
|
9971
|
+
init_cjs_shim();
|
|
9931
9972
|
var Symbol2 = require_Symbol();
|
|
9932
9973
|
var getRawTag = require_getRawTag();
|
|
9933
9974
|
var objectToString = require_objectToString();
|
|
@@ -9947,6 +9988,7 @@ var require_baseGetTag = __commonJS({
|
|
|
9947
9988
|
// ../../node_modules/lodash/isObjectLike.js
|
|
9948
9989
|
var require_isObjectLike = __commonJS({
|
|
9949
9990
|
"../../node_modules/lodash/isObjectLike.js"(exports, module) {
|
|
9991
|
+
init_cjs_shim();
|
|
9950
9992
|
function isObjectLike(value) {
|
|
9951
9993
|
return value != null && typeof value == "object";
|
|
9952
9994
|
}
|
|
@@ -9957,6 +9999,7 @@ var require_isObjectLike = __commonJS({
|
|
|
9957
9999
|
// ../../node_modules/lodash/isSymbol.js
|
|
9958
10000
|
var require_isSymbol = __commonJS({
|
|
9959
10001
|
"../../node_modules/lodash/isSymbol.js"(exports, module) {
|
|
10002
|
+
init_cjs_shim();
|
|
9960
10003
|
var baseGetTag = require_baseGetTag();
|
|
9961
10004
|
var isObjectLike = require_isObjectLike();
|
|
9962
10005
|
var symbolTag = "[object Symbol]";
|
|
@@ -9970,6 +10013,7 @@ var require_isSymbol = __commonJS({
|
|
|
9970
10013
|
// ../../node_modules/lodash/_baseToString.js
|
|
9971
10014
|
var require_baseToString = __commonJS({
|
|
9972
10015
|
"../../node_modules/lodash/_baseToString.js"(exports, module) {
|
|
10016
|
+
init_cjs_shim();
|
|
9973
10017
|
var Symbol2 = require_Symbol();
|
|
9974
10018
|
var arrayMap = require_arrayMap();
|
|
9975
10019
|
var isArray = require_isArray();
|
|
@@ -9997,6 +10041,7 @@ var require_baseToString = __commonJS({
|
|
|
9997
10041
|
// ../../node_modules/lodash/toString.js
|
|
9998
10042
|
var require_toString = __commonJS({
|
|
9999
10043
|
"../../node_modules/lodash/toString.js"(exports, module) {
|
|
10044
|
+
init_cjs_shim();
|
|
10000
10045
|
var baseToString = require_baseToString();
|
|
10001
10046
|
function toString(value) {
|
|
10002
10047
|
return value == null ? "" : baseToString(value);
|
|
@@ -10008,6 +10053,7 @@ var require_toString = __commonJS({
|
|
|
10008
10053
|
// ../../node_modules/lodash/_baseSlice.js
|
|
10009
10054
|
var require_baseSlice = __commonJS({
|
|
10010
10055
|
"../../node_modules/lodash/_baseSlice.js"(exports, module) {
|
|
10056
|
+
init_cjs_shim();
|
|
10011
10057
|
function baseSlice(array, start, end) {
|
|
10012
10058
|
var index = -1, length = array.length;
|
|
10013
10059
|
if (start < 0) {
|
|
@@ -10032,6 +10078,7 @@ var require_baseSlice = __commonJS({
|
|
|
10032
10078
|
// ../../node_modules/lodash/_castSlice.js
|
|
10033
10079
|
var require_castSlice = __commonJS({
|
|
10034
10080
|
"../../node_modules/lodash/_castSlice.js"(exports, module) {
|
|
10081
|
+
init_cjs_shim();
|
|
10035
10082
|
var baseSlice = require_baseSlice();
|
|
10036
10083
|
function castSlice(array, start, end) {
|
|
10037
10084
|
var length = array.length;
|
|
@@ -10045,6 +10092,7 @@ var require_castSlice = __commonJS({
|
|
|
10045
10092
|
// ../../node_modules/lodash/_hasUnicode.js
|
|
10046
10093
|
var require_hasUnicode = __commonJS({
|
|
10047
10094
|
"../../node_modules/lodash/_hasUnicode.js"(exports, module) {
|
|
10095
|
+
init_cjs_shim();
|
|
10048
10096
|
var rsAstralRange = "\\ud800-\\udfff";
|
|
10049
10097
|
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
10050
10098
|
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
@@ -10063,6 +10111,7 @@ var require_hasUnicode = __commonJS({
|
|
|
10063
10111
|
// ../../node_modules/lodash/_asciiToArray.js
|
|
10064
10112
|
var require_asciiToArray = __commonJS({
|
|
10065
10113
|
"../../node_modules/lodash/_asciiToArray.js"(exports, module) {
|
|
10114
|
+
init_cjs_shim();
|
|
10066
10115
|
function asciiToArray(string) {
|
|
10067
10116
|
return string.split("");
|
|
10068
10117
|
}
|
|
@@ -10073,6 +10122,7 @@ var require_asciiToArray = __commonJS({
|
|
|
10073
10122
|
// ../../node_modules/lodash/_unicodeToArray.js
|
|
10074
10123
|
var require_unicodeToArray = __commonJS({
|
|
10075
10124
|
"../../node_modules/lodash/_unicodeToArray.js"(exports, module) {
|
|
10125
|
+
init_cjs_shim();
|
|
10076
10126
|
var rsAstralRange = "\\ud800-\\udfff";
|
|
10077
10127
|
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
10078
10128
|
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
@@ -10103,6 +10153,7 @@ var require_unicodeToArray = __commonJS({
|
|
|
10103
10153
|
// ../../node_modules/lodash/_stringToArray.js
|
|
10104
10154
|
var require_stringToArray = __commonJS({
|
|
10105
10155
|
"../../node_modules/lodash/_stringToArray.js"(exports, module) {
|
|
10156
|
+
init_cjs_shim();
|
|
10106
10157
|
var asciiToArray = require_asciiToArray();
|
|
10107
10158
|
var hasUnicode = require_hasUnicode();
|
|
10108
10159
|
var unicodeToArray = require_unicodeToArray();
|
|
@@ -10116,6 +10167,7 @@ var require_stringToArray = __commonJS({
|
|
|
10116
10167
|
// ../../node_modules/lodash/_createCaseFirst.js
|
|
10117
10168
|
var require_createCaseFirst = __commonJS({
|
|
10118
10169
|
"../../node_modules/lodash/_createCaseFirst.js"(exports, module) {
|
|
10170
|
+
init_cjs_shim();
|
|
10119
10171
|
var castSlice = require_castSlice();
|
|
10120
10172
|
var hasUnicode = require_hasUnicode();
|
|
10121
10173
|
var stringToArray = require_stringToArray();
|
|
@@ -10136,6 +10188,7 @@ var require_createCaseFirst = __commonJS({
|
|
|
10136
10188
|
// ../../node_modules/lodash/upperFirst.js
|
|
10137
10189
|
var require_upperFirst = __commonJS({
|
|
10138
10190
|
"../../node_modules/lodash/upperFirst.js"(exports, module) {
|
|
10191
|
+
init_cjs_shim();
|
|
10139
10192
|
var createCaseFirst = require_createCaseFirst();
|
|
10140
10193
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
10141
10194
|
module.exports = upperFirst;
|
|
@@ -10145,6 +10198,7 @@ var require_upperFirst = __commonJS({
|
|
|
10145
10198
|
// ../../node_modules/lodash/capitalize.js
|
|
10146
10199
|
var require_capitalize = __commonJS({
|
|
10147
10200
|
"../../node_modules/lodash/capitalize.js"(exports, module) {
|
|
10201
|
+
init_cjs_shim();
|
|
10148
10202
|
var toString = require_toString();
|
|
10149
10203
|
var upperFirst = require_upperFirst();
|
|
10150
10204
|
function capitalize(string) {
|
|
@@ -10157,6 +10211,7 @@ var require_capitalize = __commonJS({
|
|
|
10157
10211
|
// ../../node_modules/lodash/_arrayReduce.js
|
|
10158
10212
|
var require_arrayReduce = __commonJS({
|
|
10159
10213
|
"../../node_modules/lodash/_arrayReduce.js"(exports, module) {
|
|
10214
|
+
init_cjs_shim();
|
|
10160
10215
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
10161
10216
|
var index = -1, length = array == null ? 0 : array.length;
|
|
10162
10217
|
if (initAccum && length) {
|
|
@@ -10174,6 +10229,7 @@ var require_arrayReduce = __commonJS({
|
|
|
10174
10229
|
// ../../node_modules/lodash/_basePropertyOf.js
|
|
10175
10230
|
var require_basePropertyOf = __commonJS({
|
|
10176
10231
|
"../../node_modules/lodash/_basePropertyOf.js"(exports, module) {
|
|
10232
|
+
init_cjs_shim();
|
|
10177
10233
|
function basePropertyOf(object) {
|
|
10178
10234
|
return function(key) {
|
|
10179
10235
|
return object == null ? void 0 : object[key];
|
|
@@ -10186,6 +10242,7 @@ var require_basePropertyOf = __commonJS({
|
|
|
10186
10242
|
// ../../node_modules/lodash/_deburrLetter.js
|
|
10187
10243
|
var require_deburrLetter = __commonJS({
|
|
10188
10244
|
"../../node_modules/lodash/_deburrLetter.js"(exports, module) {
|
|
10245
|
+
init_cjs_shim();
|
|
10189
10246
|
var basePropertyOf = require_basePropertyOf();
|
|
10190
10247
|
var deburredLetters = {
|
|
10191
10248
|
// Latin-1 Supplement block.
|
|
@@ -10389,6 +10446,7 @@ var require_deburrLetter = __commonJS({
|
|
|
10389
10446
|
// ../../node_modules/lodash/deburr.js
|
|
10390
10447
|
var require_deburr = __commonJS({
|
|
10391
10448
|
"../../node_modules/lodash/deburr.js"(exports, module) {
|
|
10449
|
+
init_cjs_shim();
|
|
10392
10450
|
var deburrLetter = require_deburrLetter();
|
|
10393
10451
|
var toString = require_toString();
|
|
10394
10452
|
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
@@ -10409,6 +10467,7 @@ var require_deburr = __commonJS({
|
|
|
10409
10467
|
// ../../node_modules/lodash/_asciiWords.js
|
|
10410
10468
|
var require_asciiWords = __commonJS({
|
|
10411
10469
|
"../../node_modules/lodash/_asciiWords.js"(exports, module) {
|
|
10470
|
+
init_cjs_shim();
|
|
10412
10471
|
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
10413
10472
|
function asciiWords(string) {
|
|
10414
10473
|
return string.match(reAsciiWord) || [];
|
|
@@ -10420,6 +10479,7 @@ var require_asciiWords = __commonJS({
|
|
|
10420
10479
|
// ../../node_modules/lodash/_hasUnicodeWord.js
|
|
10421
10480
|
var require_hasUnicodeWord = __commonJS({
|
|
10422
10481
|
"../../node_modules/lodash/_hasUnicodeWord.js"(exports, module) {
|
|
10482
|
+
init_cjs_shim();
|
|
10423
10483
|
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
10424
10484
|
function hasUnicodeWord(string) {
|
|
10425
10485
|
return reHasUnicodeWord.test(string);
|
|
@@ -10431,6 +10491,7 @@ var require_hasUnicodeWord = __commonJS({
|
|
|
10431
10491
|
// ../../node_modules/lodash/_unicodeWords.js
|
|
10432
10492
|
var require_unicodeWords = __commonJS({
|
|
10433
10493
|
"../../node_modules/lodash/_unicodeWords.js"(exports, module) {
|
|
10494
|
+
init_cjs_shim();
|
|
10434
10495
|
var rsAstralRange = "\\ud800-\\udfff";
|
|
10435
10496
|
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
10436
10497
|
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
@@ -10490,6 +10551,7 @@ var require_unicodeWords = __commonJS({
|
|
|
10490
10551
|
// ../../node_modules/lodash/words.js
|
|
10491
10552
|
var require_words = __commonJS({
|
|
10492
10553
|
"../../node_modules/lodash/words.js"(exports, module) {
|
|
10554
|
+
init_cjs_shim();
|
|
10493
10555
|
var asciiWords = require_asciiWords();
|
|
10494
10556
|
var hasUnicodeWord = require_hasUnicodeWord();
|
|
10495
10557
|
var toString = require_toString();
|
|
@@ -10509,6 +10571,7 @@ var require_words = __commonJS({
|
|
|
10509
10571
|
// ../../node_modules/lodash/_createCompounder.js
|
|
10510
10572
|
var require_createCompounder = __commonJS({
|
|
10511
10573
|
"../../node_modules/lodash/_createCompounder.js"(exports, module) {
|
|
10574
|
+
init_cjs_shim();
|
|
10512
10575
|
var arrayReduce = require_arrayReduce();
|
|
10513
10576
|
var deburr = require_deburr();
|
|
10514
10577
|
var words = require_words();
|
|
@@ -10526,6 +10589,7 @@ var require_createCompounder = __commonJS({
|
|
|
10526
10589
|
// ../../node_modules/lodash/camelCase.js
|
|
10527
10590
|
var require_camelCase = __commonJS({
|
|
10528
10591
|
"../../node_modules/lodash/camelCase.js"(exports, module) {
|
|
10592
|
+
init_cjs_shim();
|
|
10529
10593
|
var capitalize = require_capitalize();
|
|
10530
10594
|
var createCompounder = require_createCompounder();
|
|
10531
10595
|
var camelCase2 = createCompounder(function(result, word, index) {
|
|
@@ -10539,6 +10603,7 @@ var require_camelCase = __commonJS({
|
|
|
10539
10603
|
// ../../node_modules/lodash/isObject.js
|
|
10540
10604
|
var require_isObject = __commonJS({
|
|
10541
10605
|
"../../node_modules/lodash/isObject.js"(exports, module) {
|
|
10606
|
+
init_cjs_shim();
|
|
10542
10607
|
function isObject(value) {
|
|
10543
10608
|
var type = typeof value;
|
|
10544
10609
|
return value != null && (type == "object" || type == "function");
|
|
@@ -10550,6 +10615,7 @@ var require_isObject = __commonJS({
|
|
|
10550
10615
|
// ../../node_modules/lodash/isFunction.js
|
|
10551
10616
|
var require_isFunction = __commonJS({
|
|
10552
10617
|
"../../node_modules/lodash/isFunction.js"(exports, module) {
|
|
10618
|
+
init_cjs_shim();
|
|
10553
10619
|
var baseGetTag = require_baseGetTag();
|
|
10554
10620
|
var isObject = require_isObject();
|
|
10555
10621
|
var asyncTag = "[object AsyncFunction]";
|
|
@@ -10570,6 +10636,7 @@ var require_isFunction = __commonJS({
|
|
|
10570
10636
|
// ../../node_modules/lodash/_coreJsData.js
|
|
10571
10637
|
var require_coreJsData = __commonJS({
|
|
10572
10638
|
"../../node_modules/lodash/_coreJsData.js"(exports, module) {
|
|
10639
|
+
init_cjs_shim();
|
|
10573
10640
|
var root = require_root();
|
|
10574
10641
|
var coreJsData = root["__core-js_shared__"];
|
|
10575
10642
|
module.exports = coreJsData;
|
|
@@ -10579,6 +10646,7 @@ var require_coreJsData = __commonJS({
|
|
|
10579
10646
|
// ../../node_modules/lodash/_isMasked.js
|
|
10580
10647
|
var require_isMasked = __commonJS({
|
|
10581
10648
|
"../../node_modules/lodash/_isMasked.js"(exports, module) {
|
|
10649
|
+
init_cjs_shim();
|
|
10582
10650
|
var coreJsData = require_coreJsData();
|
|
10583
10651
|
var maskSrcKey = function() {
|
|
10584
10652
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
@@ -10594,6 +10662,7 @@ var require_isMasked = __commonJS({
|
|
|
10594
10662
|
// ../../node_modules/lodash/_toSource.js
|
|
10595
10663
|
var require_toSource = __commonJS({
|
|
10596
10664
|
"../../node_modules/lodash/_toSource.js"(exports, module) {
|
|
10665
|
+
init_cjs_shim();
|
|
10597
10666
|
var funcProto = Function.prototype;
|
|
10598
10667
|
var funcToString = funcProto.toString;
|
|
10599
10668
|
function toSource(func) {
|
|
@@ -10616,6 +10685,7 @@ var require_toSource = __commonJS({
|
|
|
10616
10685
|
// ../../node_modules/lodash/_baseIsNative.js
|
|
10617
10686
|
var require_baseIsNative = __commonJS({
|
|
10618
10687
|
"../../node_modules/lodash/_baseIsNative.js"(exports, module) {
|
|
10688
|
+
init_cjs_shim();
|
|
10619
10689
|
var isFunction = require_isFunction();
|
|
10620
10690
|
var isMasked = require_isMasked();
|
|
10621
10691
|
var isObject = require_isObject();
|
|
@@ -10643,6 +10713,7 @@ var require_baseIsNative = __commonJS({
|
|
|
10643
10713
|
// ../../node_modules/lodash/_getValue.js
|
|
10644
10714
|
var require_getValue = __commonJS({
|
|
10645
10715
|
"../../node_modules/lodash/_getValue.js"(exports, module) {
|
|
10716
|
+
init_cjs_shim();
|
|
10646
10717
|
function getValue(object, key) {
|
|
10647
10718
|
return object == null ? void 0 : object[key];
|
|
10648
10719
|
}
|
|
@@ -10653,6 +10724,7 @@ var require_getValue = __commonJS({
|
|
|
10653
10724
|
// ../../node_modules/lodash/_getNative.js
|
|
10654
10725
|
var require_getNative = __commonJS({
|
|
10655
10726
|
"../../node_modules/lodash/_getNative.js"(exports, module) {
|
|
10727
|
+
init_cjs_shim();
|
|
10656
10728
|
var baseIsNative = require_baseIsNative();
|
|
10657
10729
|
var getValue = require_getValue();
|
|
10658
10730
|
function getNative(object, key) {
|
|
@@ -10666,6 +10738,7 @@ var require_getNative = __commonJS({
|
|
|
10666
10738
|
// ../../node_modules/lodash/_nativeCreate.js
|
|
10667
10739
|
var require_nativeCreate = __commonJS({
|
|
10668
10740
|
"../../node_modules/lodash/_nativeCreate.js"(exports, module) {
|
|
10741
|
+
init_cjs_shim();
|
|
10669
10742
|
var getNative = require_getNative();
|
|
10670
10743
|
var nativeCreate = getNative(Object, "create");
|
|
10671
10744
|
module.exports = nativeCreate;
|
|
@@ -10675,6 +10748,7 @@ var require_nativeCreate = __commonJS({
|
|
|
10675
10748
|
// ../../node_modules/lodash/_hashClear.js
|
|
10676
10749
|
var require_hashClear = __commonJS({
|
|
10677
10750
|
"../../node_modules/lodash/_hashClear.js"(exports, module) {
|
|
10751
|
+
init_cjs_shim();
|
|
10678
10752
|
var nativeCreate = require_nativeCreate();
|
|
10679
10753
|
function hashClear() {
|
|
10680
10754
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
@@ -10687,6 +10761,7 @@ var require_hashClear = __commonJS({
|
|
|
10687
10761
|
// ../../node_modules/lodash/_hashDelete.js
|
|
10688
10762
|
var require_hashDelete = __commonJS({
|
|
10689
10763
|
"../../node_modules/lodash/_hashDelete.js"(exports, module) {
|
|
10764
|
+
init_cjs_shim();
|
|
10690
10765
|
function hashDelete(key) {
|
|
10691
10766
|
var result = this.has(key) && delete this.__data__[key];
|
|
10692
10767
|
this.size -= result ? 1 : 0;
|
|
@@ -10699,6 +10774,7 @@ var require_hashDelete = __commonJS({
|
|
|
10699
10774
|
// ../../node_modules/lodash/_hashGet.js
|
|
10700
10775
|
var require_hashGet = __commonJS({
|
|
10701
10776
|
"../../node_modules/lodash/_hashGet.js"(exports, module) {
|
|
10777
|
+
init_cjs_shim();
|
|
10702
10778
|
var nativeCreate = require_nativeCreate();
|
|
10703
10779
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
10704
10780
|
var objectProto = Object.prototype;
|
|
@@ -10718,6 +10794,7 @@ var require_hashGet = __commonJS({
|
|
|
10718
10794
|
// ../../node_modules/lodash/_hashHas.js
|
|
10719
10795
|
var require_hashHas = __commonJS({
|
|
10720
10796
|
"../../node_modules/lodash/_hashHas.js"(exports, module) {
|
|
10797
|
+
init_cjs_shim();
|
|
10721
10798
|
var nativeCreate = require_nativeCreate();
|
|
10722
10799
|
var objectProto = Object.prototype;
|
|
10723
10800
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
@@ -10732,6 +10809,7 @@ var require_hashHas = __commonJS({
|
|
|
10732
10809
|
// ../../node_modules/lodash/_hashSet.js
|
|
10733
10810
|
var require_hashSet = __commonJS({
|
|
10734
10811
|
"../../node_modules/lodash/_hashSet.js"(exports, module) {
|
|
10812
|
+
init_cjs_shim();
|
|
10735
10813
|
var nativeCreate = require_nativeCreate();
|
|
10736
10814
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
10737
10815
|
function hashSet(key, value) {
|
|
@@ -10747,6 +10825,7 @@ var require_hashSet = __commonJS({
|
|
|
10747
10825
|
// ../../node_modules/lodash/_Hash.js
|
|
10748
10826
|
var require_Hash = __commonJS({
|
|
10749
10827
|
"../../node_modules/lodash/_Hash.js"(exports, module) {
|
|
10828
|
+
init_cjs_shim();
|
|
10750
10829
|
var hashClear = require_hashClear();
|
|
10751
10830
|
var hashDelete = require_hashDelete();
|
|
10752
10831
|
var hashGet = require_hashGet();
|
|
@@ -10772,6 +10851,7 @@ var require_Hash = __commonJS({
|
|
|
10772
10851
|
// ../../node_modules/lodash/_listCacheClear.js
|
|
10773
10852
|
var require_listCacheClear = __commonJS({
|
|
10774
10853
|
"../../node_modules/lodash/_listCacheClear.js"(exports, module) {
|
|
10854
|
+
init_cjs_shim();
|
|
10775
10855
|
function listCacheClear() {
|
|
10776
10856
|
this.__data__ = [];
|
|
10777
10857
|
this.size = 0;
|
|
@@ -10783,6 +10863,7 @@ var require_listCacheClear = __commonJS({
|
|
|
10783
10863
|
// ../../node_modules/lodash/eq.js
|
|
10784
10864
|
var require_eq = __commonJS({
|
|
10785
10865
|
"../../node_modules/lodash/eq.js"(exports, module) {
|
|
10866
|
+
init_cjs_shim();
|
|
10786
10867
|
function eq2(value, other) {
|
|
10787
10868
|
return value === other || value !== value && other !== other;
|
|
10788
10869
|
}
|
|
@@ -10793,6 +10874,7 @@ var require_eq = __commonJS({
|
|
|
10793
10874
|
// ../../node_modules/lodash/_assocIndexOf.js
|
|
10794
10875
|
var require_assocIndexOf = __commonJS({
|
|
10795
10876
|
"../../node_modules/lodash/_assocIndexOf.js"(exports, module) {
|
|
10877
|
+
init_cjs_shim();
|
|
10796
10878
|
var eq2 = require_eq();
|
|
10797
10879
|
function assocIndexOf(array, key) {
|
|
10798
10880
|
var length = array.length;
|
|
@@ -10810,6 +10892,7 @@ var require_assocIndexOf = __commonJS({
|
|
|
10810
10892
|
// ../../node_modules/lodash/_listCacheDelete.js
|
|
10811
10893
|
var require_listCacheDelete = __commonJS({
|
|
10812
10894
|
"../../node_modules/lodash/_listCacheDelete.js"(exports, module) {
|
|
10895
|
+
init_cjs_shim();
|
|
10813
10896
|
var assocIndexOf = require_assocIndexOf();
|
|
10814
10897
|
var arrayProto = Array.prototype;
|
|
10815
10898
|
var splice = arrayProto.splice;
|
|
@@ -10834,6 +10917,7 @@ var require_listCacheDelete = __commonJS({
|
|
|
10834
10917
|
// ../../node_modules/lodash/_listCacheGet.js
|
|
10835
10918
|
var require_listCacheGet = __commonJS({
|
|
10836
10919
|
"../../node_modules/lodash/_listCacheGet.js"(exports, module) {
|
|
10920
|
+
init_cjs_shim();
|
|
10837
10921
|
var assocIndexOf = require_assocIndexOf();
|
|
10838
10922
|
function listCacheGet(key) {
|
|
10839
10923
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
@@ -10846,6 +10930,7 @@ var require_listCacheGet = __commonJS({
|
|
|
10846
10930
|
// ../../node_modules/lodash/_listCacheHas.js
|
|
10847
10931
|
var require_listCacheHas = __commonJS({
|
|
10848
10932
|
"../../node_modules/lodash/_listCacheHas.js"(exports, module) {
|
|
10933
|
+
init_cjs_shim();
|
|
10849
10934
|
var assocIndexOf = require_assocIndexOf();
|
|
10850
10935
|
function listCacheHas(key) {
|
|
10851
10936
|
return assocIndexOf(this.__data__, key) > -1;
|
|
@@ -10857,6 +10942,7 @@ var require_listCacheHas = __commonJS({
|
|
|
10857
10942
|
// ../../node_modules/lodash/_listCacheSet.js
|
|
10858
10943
|
var require_listCacheSet = __commonJS({
|
|
10859
10944
|
"../../node_modules/lodash/_listCacheSet.js"(exports, module) {
|
|
10945
|
+
init_cjs_shim();
|
|
10860
10946
|
var assocIndexOf = require_assocIndexOf();
|
|
10861
10947
|
function listCacheSet(key, value) {
|
|
10862
10948
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
@@ -10875,6 +10961,7 @@ var require_listCacheSet = __commonJS({
|
|
|
10875
10961
|
// ../../node_modules/lodash/_ListCache.js
|
|
10876
10962
|
var require_ListCache = __commonJS({
|
|
10877
10963
|
"../../node_modules/lodash/_ListCache.js"(exports, module) {
|
|
10964
|
+
init_cjs_shim();
|
|
10878
10965
|
var listCacheClear = require_listCacheClear();
|
|
10879
10966
|
var listCacheDelete = require_listCacheDelete();
|
|
10880
10967
|
var listCacheGet = require_listCacheGet();
|
|
@@ -10900,6 +10987,7 @@ var require_ListCache = __commonJS({
|
|
|
10900
10987
|
// ../../node_modules/lodash/_Map.js
|
|
10901
10988
|
var require_Map = __commonJS({
|
|
10902
10989
|
"../../node_modules/lodash/_Map.js"(exports, module) {
|
|
10990
|
+
init_cjs_shim();
|
|
10903
10991
|
var getNative = require_getNative();
|
|
10904
10992
|
var root = require_root();
|
|
10905
10993
|
var Map2 = getNative(root, "Map");
|
|
@@ -10910,6 +10998,7 @@ var require_Map = __commonJS({
|
|
|
10910
10998
|
// ../../node_modules/lodash/_mapCacheClear.js
|
|
10911
10999
|
var require_mapCacheClear = __commonJS({
|
|
10912
11000
|
"../../node_modules/lodash/_mapCacheClear.js"(exports, module) {
|
|
11001
|
+
init_cjs_shim();
|
|
10913
11002
|
var Hash = require_Hash();
|
|
10914
11003
|
var ListCache = require_ListCache();
|
|
10915
11004
|
var Map2 = require_Map();
|
|
@@ -10928,6 +11017,7 @@ var require_mapCacheClear = __commonJS({
|
|
|
10928
11017
|
// ../../node_modules/lodash/_isKeyable.js
|
|
10929
11018
|
var require_isKeyable = __commonJS({
|
|
10930
11019
|
"../../node_modules/lodash/_isKeyable.js"(exports, module) {
|
|
11020
|
+
init_cjs_shim();
|
|
10931
11021
|
function isKeyable(value) {
|
|
10932
11022
|
var type = typeof value;
|
|
10933
11023
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
@@ -10939,6 +11029,7 @@ var require_isKeyable = __commonJS({
|
|
|
10939
11029
|
// ../../node_modules/lodash/_getMapData.js
|
|
10940
11030
|
var require_getMapData = __commonJS({
|
|
10941
11031
|
"../../node_modules/lodash/_getMapData.js"(exports, module) {
|
|
11032
|
+
init_cjs_shim();
|
|
10942
11033
|
var isKeyable = require_isKeyable();
|
|
10943
11034
|
function getMapData(map, key) {
|
|
10944
11035
|
var data = map.__data__;
|
|
@@ -10951,6 +11042,7 @@ var require_getMapData = __commonJS({
|
|
|
10951
11042
|
// ../../node_modules/lodash/_mapCacheDelete.js
|
|
10952
11043
|
var require_mapCacheDelete = __commonJS({
|
|
10953
11044
|
"../../node_modules/lodash/_mapCacheDelete.js"(exports, module) {
|
|
11045
|
+
init_cjs_shim();
|
|
10954
11046
|
var getMapData = require_getMapData();
|
|
10955
11047
|
function mapCacheDelete(key) {
|
|
10956
11048
|
var result = getMapData(this, key)["delete"](key);
|
|
@@ -10964,6 +11056,7 @@ var require_mapCacheDelete = __commonJS({
|
|
|
10964
11056
|
// ../../node_modules/lodash/_mapCacheGet.js
|
|
10965
11057
|
var require_mapCacheGet = __commonJS({
|
|
10966
11058
|
"../../node_modules/lodash/_mapCacheGet.js"(exports, module) {
|
|
11059
|
+
init_cjs_shim();
|
|
10967
11060
|
var getMapData = require_getMapData();
|
|
10968
11061
|
function mapCacheGet(key) {
|
|
10969
11062
|
return getMapData(this, key).get(key);
|
|
@@ -10975,6 +11068,7 @@ var require_mapCacheGet = __commonJS({
|
|
|
10975
11068
|
// ../../node_modules/lodash/_mapCacheHas.js
|
|
10976
11069
|
var require_mapCacheHas = __commonJS({
|
|
10977
11070
|
"../../node_modules/lodash/_mapCacheHas.js"(exports, module) {
|
|
11071
|
+
init_cjs_shim();
|
|
10978
11072
|
var getMapData = require_getMapData();
|
|
10979
11073
|
function mapCacheHas(key) {
|
|
10980
11074
|
return getMapData(this, key).has(key);
|
|
@@ -10986,6 +11080,7 @@ var require_mapCacheHas = __commonJS({
|
|
|
10986
11080
|
// ../../node_modules/lodash/_mapCacheSet.js
|
|
10987
11081
|
var require_mapCacheSet = __commonJS({
|
|
10988
11082
|
"../../node_modules/lodash/_mapCacheSet.js"(exports, module) {
|
|
11083
|
+
init_cjs_shim();
|
|
10989
11084
|
var getMapData = require_getMapData();
|
|
10990
11085
|
function mapCacheSet(key, value) {
|
|
10991
11086
|
var data = getMapData(this, key), size = data.size;
|
|
@@ -11000,6 +11095,7 @@ var require_mapCacheSet = __commonJS({
|
|
|
11000
11095
|
// ../../node_modules/lodash/_MapCache.js
|
|
11001
11096
|
var require_MapCache = __commonJS({
|
|
11002
11097
|
"../../node_modules/lodash/_MapCache.js"(exports, module) {
|
|
11098
|
+
init_cjs_shim();
|
|
11003
11099
|
var mapCacheClear = require_mapCacheClear();
|
|
11004
11100
|
var mapCacheDelete = require_mapCacheDelete();
|
|
11005
11101
|
var mapCacheGet = require_mapCacheGet();
|
|
@@ -11025,6 +11121,7 @@ var require_MapCache = __commonJS({
|
|
|
11025
11121
|
// ../../node_modules/lodash/_setCacheAdd.js
|
|
11026
11122
|
var require_setCacheAdd = __commonJS({
|
|
11027
11123
|
"../../node_modules/lodash/_setCacheAdd.js"(exports, module) {
|
|
11124
|
+
init_cjs_shim();
|
|
11028
11125
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
11029
11126
|
function setCacheAdd(value) {
|
|
11030
11127
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
@@ -11037,6 +11134,7 @@ var require_setCacheAdd = __commonJS({
|
|
|
11037
11134
|
// ../../node_modules/lodash/_setCacheHas.js
|
|
11038
11135
|
var require_setCacheHas = __commonJS({
|
|
11039
11136
|
"../../node_modules/lodash/_setCacheHas.js"(exports, module) {
|
|
11137
|
+
init_cjs_shim();
|
|
11040
11138
|
function setCacheHas(value) {
|
|
11041
11139
|
return this.__data__.has(value);
|
|
11042
11140
|
}
|
|
@@ -11047,6 +11145,7 @@ var require_setCacheHas = __commonJS({
|
|
|
11047
11145
|
// ../../node_modules/lodash/_SetCache.js
|
|
11048
11146
|
var require_SetCache = __commonJS({
|
|
11049
11147
|
"../../node_modules/lodash/_SetCache.js"(exports, module) {
|
|
11148
|
+
init_cjs_shim();
|
|
11050
11149
|
var MapCache = require_MapCache();
|
|
11051
11150
|
var setCacheAdd = require_setCacheAdd();
|
|
11052
11151
|
var setCacheHas = require_setCacheHas();
|
|
@@ -11066,6 +11165,7 @@ var require_SetCache = __commonJS({
|
|
|
11066
11165
|
// ../../node_modules/lodash/_baseFindIndex.js
|
|
11067
11166
|
var require_baseFindIndex = __commonJS({
|
|
11068
11167
|
"../../node_modules/lodash/_baseFindIndex.js"(exports, module) {
|
|
11168
|
+
init_cjs_shim();
|
|
11069
11169
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
11070
11170
|
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
11071
11171
|
while (fromRight ? index-- : ++index < length) {
|
|
@@ -11082,6 +11182,7 @@ var require_baseFindIndex = __commonJS({
|
|
|
11082
11182
|
// ../../node_modules/lodash/_baseIsNaN.js
|
|
11083
11183
|
var require_baseIsNaN = __commonJS({
|
|
11084
11184
|
"../../node_modules/lodash/_baseIsNaN.js"(exports, module) {
|
|
11185
|
+
init_cjs_shim();
|
|
11085
11186
|
function baseIsNaN(value) {
|
|
11086
11187
|
return value !== value;
|
|
11087
11188
|
}
|
|
@@ -11092,6 +11193,7 @@ var require_baseIsNaN = __commonJS({
|
|
|
11092
11193
|
// ../../node_modules/lodash/_strictIndexOf.js
|
|
11093
11194
|
var require_strictIndexOf = __commonJS({
|
|
11094
11195
|
"../../node_modules/lodash/_strictIndexOf.js"(exports, module) {
|
|
11196
|
+
init_cjs_shim();
|
|
11095
11197
|
function strictIndexOf(array, value, fromIndex) {
|
|
11096
11198
|
var index = fromIndex - 1, length = array.length;
|
|
11097
11199
|
while (++index < length) {
|
|
@@ -11108,6 +11210,7 @@ var require_strictIndexOf = __commonJS({
|
|
|
11108
11210
|
// ../../node_modules/lodash/_baseIndexOf.js
|
|
11109
11211
|
var require_baseIndexOf = __commonJS({
|
|
11110
11212
|
"../../node_modules/lodash/_baseIndexOf.js"(exports, module) {
|
|
11213
|
+
init_cjs_shim();
|
|
11111
11214
|
var baseFindIndex = require_baseFindIndex();
|
|
11112
11215
|
var baseIsNaN = require_baseIsNaN();
|
|
11113
11216
|
var strictIndexOf = require_strictIndexOf();
|
|
@@ -11121,6 +11224,7 @@ var require_baseIndexOf = __commonJS({
|
|
|
11121
11224
|
// ../../node_modules/lodash/_arrayIncludes.js
|
|
11122
11225
|
var require_arrayIncludes = __commonJS({
|
|
11123
11226
|
"../../node_modules/lodash/_arrayIncludes.js"(exports, module) {
|
|
11227
|
+
init_cjs_shim();
|
|
11124
11228
|
var baseIndexOf = require_baseIndexOf();
|
|
11125
11229
|
function arrayIncludes(array, value) {
|
|
11126
11230
|
var length = array == null ? 0 : array.length;
|
|
@@ -11133,6 +11237,7 @@ var require_arrayIncludes = __commonJS({
|
|
|
11133
11237
|
// ../../node_modules/lodash/_arrayIncludesWith.js
|
|
11134
11238
|
var require_arrayIncludesWith = __commonJS({
|
|
11135
11239
|
"../../node_modules/lodash/_arrayIncludesWith.js"(exports, module) {
|
|
11240
|
+
init_cjs_shim();
|
|
11136
11241
|
function arrayIncludesWith(array, value, comparator) {
|
|
11137
11242
|
var index = -1, length = array == null ? 0 : array.length;
|
|
11138
11243
|
while (++index < length) {
|
|
@@ -11149,6 +11254,7 @@ var require_arrayIncludesWith = __commonJS({
|
|
|
11149
11254
|
// ../../node_modules/lodash/_baseUnary.js
|
|
11150
11255
|
var require_baseUnary = __commonJS({
|
|
11151
11256
|
"../../node_modules/lodash/_baseUnary.js"(exports, module) {
|
|
11257
|
+
init_cjs_shim();
|
|
11152
11258
|
function baseUnary(func) {
|
|
11153
11259
|
return function(value) {
|
|
11154
11260
|
return func(value);
|
|
@@ -11161,6 +11267,7 @@ var require_baseUnary = __commonJS({
|
|
|
11161
11267
|
// ../../node_modules/lodash/_cacheHas.js
|
|
11162
11268
|
var require_cacheHas = __commonJS({
|
|
11163
11269
|
"../../node_modules/lodash/_cacheHas.js"(exports, module) {
|
|
11270
|
+
init_cjs_shim();
|
|
11164
11271
|
function cacheHas(cache, key) {
|
|
11165
11272
|
return cache.has(key);
|
|
11166
11273
|
}
|
|
@@ -11171,6 +11278,7 @@ var require_cacheHas = __commonJS({
|
|
|
11171
11278
|
// ../../node_modules/lodash/_baseDifference.js
|
|
11172
11279
|
var require_baseDifference = __commonJS({
|
|
11173
11280
|
"../../node_modules/lodash/_baseDifference.js"(exports, module) {
|
|
11281
|
+
init_cjs_shim();
|
|
11174
11282
|
var SetCache = require_SetCache();
|
|
11175
11283
|
var arrayIncludes = require_arrayIncludes();
|
|
11176
11284
|
var arrayIncludesWith = require_arrayIncludesWith();
|
|
@@ -11219,6 +11327,7 @@ var require_baseDifference = __commonJS({
|
|
|
11219
11327
|
// ../../node_modules/lodash/_arrayPush.js
|
|
11220
11328
|
var require_arrayPush = __commonJS({
|
|
11221
11329
|
"../../node_modules/lodash/_arrayPush.js"(exports, module) {
|
|
11330
|
+
init_cjs_shim();
|
|
11222
11331
|
function arrayPush(array, values) {
|
|
11223
11332
|
var index = -1, length = values.length, offset = array.length;
|
|
11224
11333
|
while (++index < length) {
|
|
@@ -11233,6 +11342,7 @@ var require_arrayPush = __commonJS({
|
|
|
11233
11342
|
// ../../node_modules/lodash/_baseIsArguments.js
|
|
11234
11343
|
var require_baseIsArguments = __commonJS({
|
|
11235
11344
|
"../../node_modules/lodash/_baseIsArguments.js"(exports, module) {
|
|
11345
|
+
init_cjs_shim();
|
|
11236
11346
|
var baseGetTag = require_baseGetTag();
|
|
11237
11347
|
var isObjectLike = require_isObjectLike();
|
|
11238
11348
|
var argsTag = "[object Arguments]";
|
|
@@ -11246,6 +11356,7 @@ var require_baseIsArguments = __commonJS({
|
|
|
11246
11356
|
// ../../node_modules/lodash/isArguments.js
|
|
11247
11357
|
var require_isArguments = __commonJS({
|
|
11248
11358
|
"../../node_modules/lodash/isArguments.js"(exports, module) {
|
|
11359
|
+
init_cjs_shim();
|
|
11249
11360
|
var baseIsArguments = require_baseIsArguments();
|
|
11250
11361
|
var isObjectLike = require_isObjectLike();
|
|
11251
11362
|
var objectProto = Object.prototype;
|
|
@@ -11263,6 +11374,7 @@ var require_isArguments = __commonJS({
|
|
|
11263
11374
|
// ../../node_modules/lodash/_isFlattenable.js
|
|
11264
11375
|
var require_isFlattenable = __commonJS({
|
|
11265
11376
|
"../../node_modules/lodash/_isFlattenable.js"(exports, module) {
|
|
11377
|
+
init_cjs_shim();
|
|
11266
11378
|
var Symbol2 = require_Symbol();
|
|
11267
11379
|
var isArguments = require_isArguments();
|
|
11268
11380
|
var isArray = require_isArray();
|
|
@@ -11277,6 +11389,7 @@ var require_isFlattenable = __commonJS({
|
|
|
11277
11389
|
// ../../node_modules/lodash/_baseFlatten.js
|
|
11278
11390
|
var require_baseFlatten = __commonJS({
|
|
11279
11391
|
"../../node_modules/lodash/_baseFlatten.js"(exports, module) {
|
|
11392
|
+
init_cjs_shim();
|
|
11280
11393
|
var arrayPush = require_arrayPush();
|
|
11281
11394
|
var isFlattenable = require_isFlattenable();
|
|
11282
11395
|
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
@@ -11304,6 +11417,7 @@ var require_baseFlatten = __commonJS({
|
|
|
11304
11417
|
// ../../node_modules/lodash/identity.js
|
|
11305
11418
|
var require_identity = __commonJS({
|
|
11306
11419
|
"../../node_modules/lodash/identity.js"(exports, module) {
|
|
11420
|
+
init_cjs_shim();
|
|
11307
11421
|
function identity(value) {
|
|
11308
11422
|
return value;
|
|
11309
11423
|
}
|
|
@@ -11314,6 +11428,7 @@ var require_identity = __commonJS({
|
|
|
11314
11428
|
// ../../node_modules/lodash/_apply.js
|
|
11315
11429
|
var require_apply = __commonJS({
|
|
11316
11430
|
"../../node_modules/lodash/_apply.js"(exports, module) {
|
|
11431
|
+
init_cjs_shim();
|
|
11317
11432
|
function apply(func, thisArg, args) {
|
|
11318
11433
|
switch (args.length) {
|
|
11319
11434
|
case 0:
|
|
@@ -11334,6 +11449,7 @@ var require_apply = __commonJS({
|
|
|
11334
11449
|
// ../../node_modules/lodash/_overRest.js
|
|
11335
11450
|
var require_overRest = __commonJS({
|
|
11336
11451
|
"../../node_modules/lodash/_overRest.js"(exports, module) {
|
|
11452
|
+
init_cjs_shim();
|
|
11337
11453
|
var apply = require_apply();
|
|
11338
11454
|
var nativeMax = Math.max;
|
|
11339
11455
|
function overRest(func, start, transform) {
|
|
@@ -11359,6 +11475,7 @@ var require_overRest = __commonJS({
|
|
|
11359
11475
|
// ../../node_modules/lodash/constant.js
|
|
11360
11476
|
var require_constant = __commonJS({
|
|
11361
11477
|
"../../node_modules/lodash/constant.js"(exports, module) {
|
|
11478
|
+
init_cjs_shim();
|
|
11362
11479
|
function constant(value) {
|
|
11363
11480
|
return function() {
|
|
11364
11481
|
return value;
|
|
@@ -11371,6 +11488,7 @@ var require_constant = __commonJS({
|
|
|
11371
11488
|
// ../../node_modules/lodash/_defineProperty.js
|
|
11372
11489
|
var require_defineProperty = __commonJS({
|
|
11373
11490
|
"../../node_modules/lodash/_defineProperty.js"(exports, module) {
|
|
11491
|
+
init_cjs_shim();
|
|
11374
11492
|
var getNative = require_getNative();
|
|
11375
11493
|
var defineProperty = function() {
|
|
11376
11494
|
try {
|
|
@@ -11387,6 +11505,7 @@ var require_defineProperty = __commonJS({
|
|
|
11387
11505
|
// ../../node_modules/lodash/_baseSetToString.js
|
|
11388
11506
|
var require_baseSetToString = __commonJS({
|
|
11389
11507
|
"../../node_modules/lodash/_baseSetToString.js"(exports, module) {
|
|
11508
|
+
init_cjs_shim();
|
|
11390
11509
|
var constant = require_constant();
|
|
11391
11510
|
var defineProperty = require_defineProperty();
|
|
11392
11511
|
var identity = require_identity();
|
|
@@ -11405,6 +11524,7 @@ var require_baseSetToString = __commonJS({
|
|
|
11405
11524
|
// ../../node_modules/lodash/_shortOut.js
|
|
11406
11525
|
var require_shortOut = __commonJS({
|
|
11407
11526
|
"../../node_modules/lodash/_shortOut.js"(exports, module) {
|
|
11527
|
+
init_cjs_shim();
|
|
11408
11528
|
var HOT_COUNT = 800;
|
|
11409
11529
|
var HOT_SPAN = 16;
|
|
11410
11530
|
var nativeNow = Date.now;
|
|
@@ -11430,6 +11550,7 @@ var require_shortOut = __commonJS({
|
|
|
11430
11550
|
// ../../node_modules/lodash/_setToString.js
|
|
11431
11551
|
var require_setToString = __commonJS({
|
|
11432
11552
|
"../../node_modules/lodash/_setToString.js"(exports, module) {
|
|
11553
|
+
init_cjs_shim();
|
|
11433
11554
|
var baseSetToString = require_baseSetToString();
|
|
11434
11555
|
var shortOut = require_shortOut();
|
|
11435
11556
|
var setToString = shortOut(baseSetToString);
|
|
@@ -11440,6 +11561,7 @@ var require_setToString = __commonJS({
|
|
|
11440
11561
|
// ../../node_modules/lodash/_baseRest.js
|
|
11441
11562
|
var require_baseRest = __commonJS({
|
|
11442
11563
|
"../../node_modules/lodash/_baseRest.js"(exports, module) {
|
|
11564
|
+
init_cjs_shim();
|
|
11443
11565
|
var identity = require_identity();
|
|
11444
11566
|
var overRest = require_overRest();
|
|
11445
11567
|
var setToString = require_setToString();
|
|
@@ -11453,6 +11575,7 @@ var require_baseRest = __commonJS({
|
|
|
11453
11575
|
// ../../node_modules/lodash/isLength.js
|
|
11454
11576
|
var require_isLength = __commonJS({
|
|
11455
11577
|
"../../node_modules/lodash/isLength.js"(exports, module) {
|
|
11578
|
+
init_cjs_shim();
|
|
11456
11579
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
11457
11580
|
function isLength(value) {
|
|
11458
11581
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
@@ -11464,6 +11587,7 @@ var require_isLength = __commonJS({
|
|
|
11464
11587
|
// ../../node_modules/lodash/isArrayLike.js
|
|
11465
11588
|
var require_isArrayLike = __commonJS({
|
|
11466
11589
|
"../../node_modules/lodash/isArrayLike.js"(exports, module) {
|
|
11590
|
+
init_cjs_shim();
|
|
11467
11591
|
var isFunction = require_isFunction();
|
|
11468
11592
|
var isLength = require_isLength();
|
|
11469
11593
|
function isArrayLike(value) {
|
|
@@ -11476,6 +11600,7 @@ var require_isArrayLike = __commonJS({
|
|
|
11476
11600
|
// ../../node_modules/lodash/isArrayLikeObject.js
|
|
11477
11601
|
var require_isArrayLikeObject = __commonJS({
|
|
11478
11602
|
"../../node_modules/lodash/isArrayLikeObject.js"(exports, module) {
|
|
11603
|
+
init_cjs_shim();
|
|
11479
11604
|
var isArrayLike = require_isArrayLike();
|
|
11480
11605
|
var isObjectLike = require_isObjectLike();
|
|
11481
11606
|
function isArrayLikeObject(value) {
|
|
@@ -11488,6 +11613,7 @@ var require_isArrayLikeObject = __commonJS({
|
|
|
11488
11613
|
// ../../node_modules/lodash/difference.js
|
|
11489
11614
|
var require_difference = __commonJS({
|
|
11490
11615
|
"../../node_modules/lodash/difference.js"(exports, module) {
|
|
11616
|
+
init_cjs_shim();
|
|
11491
11617
|
var baseDifference = require_baseDifference();
|
|
11492
11618
|
var baseFlatten = require_baseFlatten();
|
|
11493
11619
|
var baseRest = require_baseRest();
|
|
@@ -11499,8 +11625,12 @@ var require_difference = __commonJS({
|
|
|
11499
11625
|
}
|
|
11500
11626
|
});
|
|
11501
11627
|
|
|
11628
|
+
// ../../scripts/org-tree/org-tree-create.js
|
|
11629
|
+
init_cjs_shim();
|
|
11630
|
+
|
|
11502
11631
|
// ../../node_modules/@magda/esm-utils/dist/esmUtils.js
|
|
11503
|
-
|
|
11632
|
+
init_cjs_shim();
|
|
11633
|
+
import { createRequire as createRequire2 } from "module";
|
|
11504
11634
|
function callsites() {
|
|
11505
11635
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
11506
11636
|
try {
|
|
@@ -11536,11 +11666,12 @@ function callerpath({ depth = 0 } = {}) {
|
|
|
11536
11666
|
return callsite && callsite.getFileName();
|
|
11537
11667
|
}
|
|
11538
11668
|
function require2(id) {
|
|
11539
|
-
const requireFrom =
|
|
11669
|
+
const requireFrom = createRequire2(callerpath({ depth: 1 }));
|
|
11540
11670
|
return requireFrom(id);
|
|
11541
11671
|
}
|
|
11542
11672
|
|
|
11543
11673
|
// ../../node_modules/commander/esm.mjs
|
|
11674
|
+
init_cjs_shim();
|
|
11544
11675
|
var import_index = __toESM(require_commander(), 1);
|
|
11545
11676
|
var {
|
|
11546
11677
|
program,
|
|
@@ -11561,9 +11692,17 @@ var {
|
|
|
11561
11692
|
var import_chalk = __toESM(require_chalk(), 1);
|
|
11562
11693
|
|
|
11563
11694
|
// ../../magda-authorization-api/dist/NestedSetModelQueryer.js
|
|
11695
|
+
init_cjs_shim();
|
|
11564
11696
|
var import_lodash = __toESM(require_lodash(), 1);
|
|
11565
11697
|
|
|
11698
|
+
// ../../node_modules/@magda/tsmonad/dist/index.js
|
|
11699
|
+
init_cjs_shim();
|
|
11700
|
+
|
|
11701
|
+
// ../../node_modules/@magda/tsmonad/dist/either.js
|
|
11702
|
+
init_cjs_shim();
|
|
11703
|
+
|
|
11566
11704
|
// ../../node_modules/@magda/tsmonad/dist/monad.js
|
|
11705
|
+
init_cjs_shim();
|
|
11567
11706
|
function eq(a, b) {
|
|
11568
11707
|
var idx = 0;
|
|
11569
11708
|
if (a === b) {
|
|
@@ -11591,6 +11730,7 @@ var EitherType;
|
|
|
11591
11730
|
})(EitherType || (EitherType = {}));
|
|
11592
11731
|
|
|
11593
11732
|
// ../../node_modules/@magda/tsmonad/dist/maybe.js
|
|
11733
|
+
init_cjs_shim();
|
|
11594
11734
|
var MaybeType;
|
|
11595
11735
|
(function(MaybeType2) {
|
|
11596
11736
|
MaybeType2[MaybeType2["Nothing"] = 0] = "Nothing";
|
|
@@ -11681,7 +11821,11 @@ var Maybe = class _Maybe {
|
|
|
11681
11821
|
}
|
|
11682
11822
|
};
|
|
11683
11823
|
|
|
11824
|
+
// ../../node_modules/@magda/tsmonad/dist/writer.js
|
|
11825
|
+
init_cjs_shim();
|
|
11826
|
+
|
|
11684
11827
|
// ../../node_modules/sql-syntax/dist/index.js
|
|
11828
|
+
init_cjs_shim();
|
|
11685
11829
|
var SQLSyntax = class _SQLSyntax {
|
|
11686
11830
|
rawSqlParts;
|
|
11687
11831
|
rawValues;
|
|
@@ -12084,7 +12228,14 @@ function sqls(sqlParts, ...values) {
|
|
|
12084
12228
|
}
|
|
12085
12229
|
var dist_default = SQLSyntax;
|
|
12086
12230
|
|
|
12231
|
+
// ../../magda-typescript-common/dist/SQLUtils.js
|
|
12232
|
+
init_cjs_shim();
|
|
12233
|
+
|
|
12234
|
+
// ../../magda-typescript-common/dist/opa/AuthDecision.js
|
|
12235
|
+
init_cjs_shim();
|
|
12236
|
+
|
|
12087
12237
|
// ../../magda-typescript-common/dist/opa/AspectQuery.js
|
|
12238
|
+
init_cjs_shim();
|
|
12088
12239
|
var AspectQueryValue = class {
|
|
12089
12240
|
value;
|
|
12090
12241
|
postgresType;
|
|
@@ -12109,9 +12260,9 @@ var AspectQuery = class {
|
|
|
12109
12260
|
aspectId;
|
|
12110
12261
|
path;
|
|
12111
12262
|
negated;
|
|
12112
|
-
constructor(aspectId,
|
|
12263
|
+
constructor(aspectId, path2 = [], negated = false) {
|
|
12113
12264
|
this.aspectId = aspectId;
|
|
12114
|
-
this.path =
|
|
12265
|
+
this.path = path2;
|
|
12115
12266
|
this.negated = negated;
|
|
12116
12267
|
}
|
|
12117
12268
|
/**
|
|
@@ -12172,8 +12323,8 @@ var AspectQueryWithValue = class extends AspectQuery {
|
|
|
12172
12323
|
value;
|
|
12173
12324
|
operator;
|
|
12174
12325
|
placeReferenceFirst;
|
|
12175
|
-
constructor(value, operator, placeReferenceFirst, aspectId,
|
|
12176
|
-
super(aspectId,
|
|
12326
|
+
constructor(value, operator, placeReferenceFirst, aspectId, path2 = [], negated = false) {
|
|
12327
|
+
super(aspectId, path2, negated);
|
|
12177
12328
|
this.value = value;
|
|
12178
12329
|
this.operator = operator;
|
|
12179
12330
|
this.placeReferenceFirst = placeReferenceFirst;
|
|
@@ -12193,8 +12344,8 @@ var AspectQueryArrayNotEmpty = class extends AspectQuery {
|
|
|
12193
12344
|
};
|
|
12194
12345
|
var AspectQueryValueInArray = class extends AspectQuery {
|
|
12195
12346
|
value;
|
|
12196
|
-
constructor(value, aspectId,
|
|
12197
|
-
super(aspectId,
|
|
12347
|
+
constructor(value, aspectId, path2 = [], negated = false) {
|
|
12348
|
+
super(aspectId, path2, negated);
|
|
12198
12349
|
this.value = value;
|
|
12199
12350
|
}
|
|
12200
12351
|
sqlQueries(config) {
|
|
@@ -12375,11 +12526,11 @@ var ConciseExpression = class _ConciseExpression {
|
|
|
12375
12526
|
}
|
|
12376
12527
|
toAspectQuery(prefixes) {
|
|
12377
12528
|
if (this.operands?.length == 1) {
|
|
12378
|
-
const [aspectId,
|
|
12529
|
+
const [aspectId, path2, isCollection] = this.operands[0].extractAspectIdAndPath(prefixes);
|
|
12379
12530
|
if (isCollection) {
|
|
12380
|
-
return new AspectQueryArrayNotEmpty(aspectId,
|
|
12531
|
+
return new AspectQueryArrayNotEmpty(aspectId, path2, this.negated);
|
|
12381
12532
|
} else {
|
|
12382
|
-
return new AspectQueryExists(aspectId,
|
|
12533
|
+
return new AspectQueryExists(aspectId, path2, this.negated);
|
|
12383
12534
|
}
|
|
12384
12535
|
} else if (this.operands?.length == 2) {
|
|
12385
12536
|
const refOperand = this.operands.find((item) => item.isRef);
|
|
@@ -12390,14 +12541,14 @@ var ConciseExpression = class _ConciseExpression {
|
|
|
12390
12541
|
if (!refOperand) {
|
|
12391
12542
|
throw new Error(`Failed to convert auth decision expression to AspectQuery: Terms shouldn't be both value. Expression: ${this}`);
|
|
12392
12543
|
}
|
|
12393
|
-
const [aspectId,
|
|
12544
|
+
const [aspectId, path2, isCollection] = refOperand.extractAspectIdAndPath(prefixes);
|
|
12394
12545
|
if (isCollection && this.operator != "=") {
|
|
12395
12546
|
throw new Error(`Failed to convert auth decision expression to AspectQuery: Only \`=\` operator is supported for collection reference. Expression: ${this}`);
|
|
12396
12547
|
}
|
|
12397
12548
|
if (isCollection && this.operator == "=") {
|
|
12398
|
-
return new AspectQueryValueInArray(valOperand.toAspectQueryValue(), aspectId,
|
|
12549
|
+
return new AspectQueryValueInArray(valOperand.toAspectQueryValue(), aspectId, path2, this.negated);
|
|
12399
12550
|
} else {
|
|
12400
|
-
return new AspectQueryWithValue(valOperand.toAspectQueryValue(), this.getSqlOperator(), this.operands[0].isRef, aspectId,
|
|
12551
|
+
return new AspectQueryWithValue(valOperand.toAspectQueryValue(), this.getSqlOperator(), this.operands[0].isRef, aspectId, path2, this.negated);
|
|
12401
12552
|
}
|
|
12402
12553
|
} else {
|
|
12403
12554
|
throw new Error(`Failed to convert auth decision expression to AspectQuery: more than 2 operands found. Expression: ${this}`);
|
|
@@ -12468,6 +12619,11 @@ var ConciseOperand = class _ConciseOperand {
|
|
|
12468
12619
|
// ../../magda-typescript-common/dist/SQLUtils.js
|
|
12469
12620
|
var import_camelCase = __toESM(require_camelCase(), 1);
|
|
12470
12621
|
var import_difference = __toESM(require_difference(), 1);
|
|
12622
|
+
|
|
12623
|
+
// ../../magda-typescript-common/dist/ServerError.js
|
|
12624
|
+
init_cjs_shim();
|
|
12625
|
+
|
|
12626
|
+
// ../../magda-typescript-common/dist/SQLUtils.js
|
|
12471
12627
|
function escapeIdentifierStr(idStr) {
|
|
12472
12628
|
return '"' + idStr.replace(/[^\x20-\x7e]/g, "").replace(/"/g, `"'`) + '"';
|
|
12473
12629
|
}
|
|
@@ -12486,6 +12642,7 @@ function getTableColumnName(columnName, tableRef = "", useLowerCaseColumnName =
|
|
|
12486
12642
|
}
|
|
12487
12643
|
|
|
12488
12644
|
// ../../magda-typescript-common/dist/util/isUuid.js
|
|
12645
|
+
init_cjs_shim();
|
|
12489
12646
|
var uuidRegEx = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
12490
12647
|
var isUuid = (id) => typeof id === "string" && uuidRegEx.test(id);
|
|
12491
12648
|
var isUuid_default = isUuid;
|
|
@@ -13452,9 +13609,11 @@ var NestedSetModelQueryer = class {
|
|
|
13452
13609
|
var NestedSetModelQueryer_default = NestedSetModelQueryer;
|
|
13453
13610
|
|
|
13454
13611
|
// ../../scripts/db/getDBPool.js
|
|
13612
|
+
init_cjs_shim();
|
|
13455
13613
|
import pg from "pg";
|
|
13456
13614
|
|
|
13457
13615
|
// ../../scripts/db/getDBConfig.js
|
|
13616
|
+
init_cjs_shim();
|
|
13458
13617
|
function getDBConfig() {
|
|
13459
13618
|
const {
|
|
13460
13619
|
POSTGRES_HOST: host,
|