@teselagen/ui 0.3.26 → 0.3.28
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/index.cjs.js +512 -298
- package/index.es.js +512 -298
- package/package.json +1 -1
- package/src/DataTable/index.js +15 -4
- package/src/autoTooltip.js +92 -11
- package/src/style.css +12 -0
- package/style.css +12 -0
package/index.cjs.js
CHANGED
|
@@ -1333,14 +1333,14 @@ function orderModifiers(modifiers) {
|
|
|
1333
1333
|
}, []);
|
|
1334
1334
|
}
|
|
1335
1335
|
__name(orderModifiers, "orderModifiers");
|
|
1336
|
-
function debounce$2(
|
|
1336
|
+
function debounce$2(fn4) {
|
|
1337
1337
|
var pending;
|
|
1338
1338
|
return function() {
|
|
1339
1339
|
if (!pending) {
|
|
1340
1340
|
pending = new Promise(function(resolve) {
|
|
1341
1341
|
Promise.resolve().then(function() {
|
|
1342
1342
|
pending = void 0;
|
|
1343
|
-
resolve(
|
|
1343
|
+
resolve(fn4());
|
|
1344
1344
|
});
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
@@ -1444,9 +1444,9 @@ function popperGenerator(generatorOptions) {
|
|
|
1444
1444
|
index2 = -1;
|
|
1445
1445
|
continue;
|
|
1446
1446
|
}
|
|
1447
|
-
var _state$orderedModifie = state.orderedModifiers[index2],
|
|
1448
|
-
if (typeof
|
|
1449
|
-
state =
|
|
1447
|
+
var _state$orderedModifie = state.orderedModifiers[index2], fn4 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
|
|
1448
|
+
if (typeof fn4 === "function") {
|
|
1449
|
+
state = fn4({
|
|
1450
1450
|
state,
|
|
1451
1451
|
options: _options,
|
|
1452
1452
|
name,
|
|
@@ -1494,8 +1494,8 @@ function popperGenerator(generatorOptions) {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
__name(runModifierEffects, "runModifierEffects");
|
|
1496
1496
|
function cleanupModifierEffects() {
|
|
1497
|
-
effectCleanupFns.forEach(function(
|
|
1498
|
-
return
|
|
1497
|
+
effectCleanupFns.forEach(function(fn4) {
|
|
1498
|
+
return fn4();
|
|
1499
1499
|
});
|
|
1500
1500
|
effectCleanupFns = [];
|
|
1501
1501
|
}
|
|
@@ -1537,15 +1537,15 @@ function invokeWithArgsOrReturn(value, args) {
|
|
|
1537
1537
|
return typeof value === "function" ? value.apply(void 0, args) : value;
|
|
1538
1538
|
}
|
|
1539
1539
|
__name(invokeWithArgsOrReturn, "invokeWithArgsOrReturn");
|
|
1540
|
-
function debounce$1(
|
|
1540
|
+
function debounce$1(fn4, ms) {
|
|
1541
1541
|
if (ms === 0) {
|
|
1542
|
-
return
|
|
1542
|
+
return fn4;
|
|
1543
1543
|
}
|
|
1544
1544
|
var timeout;
|
|
1545
1545
|
return function(arg) {
|
|
1546
1546
|
clearTimeout(timeout);
|
|
1547
1547
|
timeout = setTimeout(function() {
|
|
1548
|
-
|
|
1548
|
+
fn4(arg);
|
|
1549
1549
|
}, ms);
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
@@ -2377,7 +2377,7 @@ function createTippy(reference2, passedProps) {
|
|
|
2377
2377
|
enabled: true,
|
|
2378
2378
|
phase: "beforeWrite",
|
|
2379
2379
|
requires: ["computeStyles"],
|
|
2380
|
-
fn: /* @__PURE__ */ __name(function
|
|
2380
|
+
fn: /* @__PURE__ */ __name(function fn4(_ref2) {
|
|
2381
2381
|
var state2 = _ref2.state;
|
|
2382
2382
|
if (getIsDefaultRenderFn()) {
|
|
2383
2383
|
var _getDefaultTemplateCh = getDefaultTemplateChildren(), box2 = _getDefaultTemplateCh.box;
|
|
@@ -2751,11 +2751,174 @@ Object.assign({}, applyStyles$1, {
|
|
|
2751
2751
|
}
|
|
2752
2752
|
}, "effect")
|
|
2753
2753
|
});
|
|
2754
|
+
var mouseCoords = {
|
|
2755
|
+
clientX: 0,
|
|
2756
|
+
clientY: 0
|
|
2757
|
+
};
|
|
2758
|
+
var activeInstances = [];
|
|
2759
|
+
function storeMouseCoords(_ref) {
|
|
2760
|
+
var clientX = _ref.clientX, clientY = _ref.clientY;
|
|
2761
|
+
mouseCoords = {
|
|
2762
|
+
clientX,
|
|
2763
|
+
clientY
|
|
2764
|
+
};
|
|
2765
|
+
}
|
|
2766
|
+
__name(storeMouseCoords, "storeMouseCoords");
|
|
2767
|
+
function addMouseCoordsListener(doc) {
|
|
2768
|
+
doc.addEventListener("mousemove", storeMouseCoords);
|
|
2769
|
+
}
|
|
2770
|
+
__name(addMouseCoordsListener, "addMouseCoordsListener");
|
|
2771
|
+
function removeMouseCoordsListener(doc) {
|
|
2772
|
+
doc.removeEventListener("mousemove", storeMouseCoords);
|
|
2773
|
+
}
|
|
2774
|
+
__name(removeMouseCoordsListener, "removeMouseCoordsListener");
|
|
2775
|
+
var followCursor = {
|
|
2776
|
+
name: "followCursor",
|
|
2777
|
+
defaultValue: false,
|
|
2778
|
+
fn: /* @__PURE__ */ __name(function fn2(instance) {
|
|
2779
|
+
var reference2 = instance.reference;
|
|
2780
|
+
var doc = getOwnerDocument(instance.props.triggerTarget || reference2);
|
|
2781
|
+
var isInternalUpdate = false;
|
|
2782
|
+
var wasFocusEvent = false;
|
|
2783
|
+
var isUnmounted = true;
|
|
2784
|
+
var prevProps = instance.props;
|
|
2785
|
+
function getIsInitialBehavior() {
|
|
2786
|
+
return instance.props.followCursor === "initial" && instance.state.isVisible;
|
|
2787
|
+
}
|
|
2788
|
+
__name(getIsInitialBehavior, "getIsInitialBehavior");
|
|
2789
|
+
function addListener() {
|
|
2790
|
+
doc.addEventListener("mousemove", onMouseMove);
|
|
2791
|
+
}
|
|
2792
|
+
__name(addListener, "addListener");
|
|
2793
|
+
function removeListener() {
|
|
2794
|
+
doc.removeEventListener("mousemove", onMouseMove);
|
|
2795
|
+
}
|
|
2796
|
+
__name(removeListener, "removeListener");
|
|
2797
|
+
function unsetGetReferenceClientRect() {
|
|
2798
|
+
isInternalUpdate = true;
|
|
2799
|
+
instance.setProps({
|
|
2800
|
+
getReferenceClientRect: null
|
|
2801
|
+
});
|
|
2802
|
+
isInternalUpdate = false;
|
|
2803
|
+
}
|
|
2804
|
+
__name(unsetGetReferenceClientRect, "unsetGetReferenceClientRect");
|
|
2805
|
+
function onMouseMove(event) {
|
|
2806
|
+
var isCursorOverReference = event.target ? reference2.contains(event.target) : true;
|
|
2807
|
+
var followCursor2 = instance.props.followCursor;
|
|
2808
|
+
var clientX = event.clientX, clientY = event.clientY;
|
|
2809
|
+
var rect = reference2.getBoundingClientRect();
|
|
2810
|
+
var relativeX = clientX - rect.left;
|
|
2811
|
+
var relativeY = clientY - rect.top;
|
|
2812
|
+
if (isCursorOverReference || !instance.props.interactive) {
|
|
2813
|
+
instance.setProps({
|
|
2814
|
+
// @ts-ignore - unneeded DOMRect properties
|
|
2815
|
+
getReferenceClientRect: /* @__PURE__ */ __name(function getReferenceClientRect() {
|
|
2816
|
+
var rect2 = reference2.getBoundingClientRect();
|
|
2817
|
+
var x2 = clientX;
|
|
2818
|
+
var y2 = clientY;
|
|
2819
|
+
if (followCursor2 === "initial") {
|
|
2820
|
+
x2 = rect2.left + relativeX;
|
|
2821
|
+
y2 = rect2.top + relativeY;
|
|
2822
|
+
}
|
|
2823
|
+
var top2 = followCursor2 === "horizontal" ? rect2.top : y2;
|
|
2824
|
+
var right2 = followCursor2 === "vertical" ? rect2.right : x2;
|
|
2825
|
+
var bottom2 = followCursor2 === "horizontal" ? rect2.bottom : y2;
|
|
2826
|
+
var left2 = followCursor2 === "vertical" ? rect2.left : x2;
|
|
2827
|
+
return {
|
|
2828
|
+
width: right2 - left2,
|
|
2829
|
+
height: bottom2 - top2,
|
|
2830
|
+
top: top2,
|
|
2831
|
+
right: right2,
|
|
2832
|
+
bottom: bottom2,
|
|
2833
|
+
left: left2
|
|
2834
|
+
};
|
|
2835
|
+
}, "getReferenceClientRect")
|
|
2836
|
+
});
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
__name(onMouseMove, "onMouseMove");
|
|
2840
|
+
function create7() {
|
|
2841
|
+
if (instance.props.followCursor) {
|
|
2842
|
+
activeInstances.push({
|
|
2843
|
+
instance,
|
|
2844
|
+
doc
|
|
2845
|
+
});
|
|
2846
|
+
addMouseCoordsListener(doc);
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
__name(create7, "create");
|
|
2850
|
+
function destroy() {
|
|
2851
|
+
activeInstances = activeInstances.filter(function(data) {
|
|
2852
|
+
return data.instance !== instance;
|
|
2853
|
+
});
|
|
2854
|
+
if (activeInstances.filter(function(data) {
|
|
2855
|
+
return data.doc === doc;
|
|
2856
|
+
}).length === 0) {
|
|
2857
|
+
removeMouseCoordsListener(doc);
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
__name(destroy, "destroy");
|
|
2861
|
+
return {
|
|
2862
|
+
onCreate: create7,
|
|
2863
|
+
onDestroy: destroy,
|
|
2864
|
+
onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
|
|
2865
|
+
prevProps = instance.props;
|
|
2866
|
+
}, "onBeforeUpdate"),
|
|
2867
|
+
onAfterUpdate: /* @__PURE__ */ __name(function onAfterUpdate2(_2, _ref2) {
|
|
2868
|
+
var followCursor2 = _ref2.followCursor;
|
|
2869
|
+
if (isInternalUpdate) {
|
|
2870
|
+
return;
|
|
2871
|
+
}
|
|
2872
|
+
if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
|
|
2873
|
+
destroy();
|
|
2874
|
+
if (followCursor2) {
|
|
2875
|
+
create7();
|
|
2876
|
+
if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
|
|
2877
|
+
addListener();
|
|
2878
|
+
}
|
|
2879
|
+
} else {
|
|
2880
|
+
removeListener();
|
|
2881
|
+
unsetGetReferenceClientRect();
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
}, "onAfterUpdate"),
|
|
2885
|
+
onMount: /* @__PURE__ */ __name(function onMount2() {
|
|
2886
|
+
if (instance.props.followCursor && !wasFocusEvent) {
|
|
2887
|
+
if (isUnmounted) {
|
|
2888
|
+
onMouseMove(mouseCoords);
|
|
2889
|
+
isUnmounted = false;
|
|
2890
|
+
}
|
|
2891
|
+
if (!getIsInitialBehavior()) {
|
|
2892
|
+
addListener();
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
}, "onMount"),
|
|
2896
|
+
onTrigger: /* @__PURE__ */ __name(function onTrigger2(_2, event) {
|
|
2897
|
+
if (isMouseEvent$1(event)) {
|
|
2898
|
+
mouseCoords = {
|
|
2899
|
+
clientX: event.clientX,
|
|
2900
|
+
clientY: event.clientY
|
|
2901
|
+
};
|
|
2902
|
+
}
|
|
2903
|
+
wasFocusEvent = event.type === "focus";
|
|
2904
|
+
}, "onTrigger"),
|
|
2905
|
+
onHidden: /* @__PURE__ */ __name(function onHidden2() {
|
|
2906
|
+
if (instance.props.followCursor) {
|
|
2907
|
+
unsetGetReferenceClientRect();
|
|
2908
|
+
removeListener();
|
|
2909
|
+
isUnmounted = true;
|
|
2910
|
+
}
|
|
2911
|
+
}, "onHidden")
|
|
2912
|
+
};
|
|
2913
|
+
}, "fn")
|
|
2914
|
+
};
|
|
2754
2915
|
tippy$1.setDefaultProps({
|
|
2755
2916
|
render: render$1
|
|
2756
2917
|
});
|
|
2757
2918
|
const tippy = "";
|
|
2758
2919
|
let tippys = [];
|
|
2920
|
+
let recentlyHidden = false;
|
|
2921
|
+
let clearMe;
|
|
2759
2922
|
(function() {
|
|
2760
2923
|
let lastMouseOverElement = null;
|
|
2761
2924
|
document.addEventListener("mouseover", function(event) {
|
|
@@ -2776,21 +2939,63 @@ let tippys = [];
|
|
|
2776
2939
|
lastMouseOverElement = element2;
|
|
2777
2940
|
const id2 = "tippyEllipsizedEl";
|
|
2778
2941
|
let innerRun = false;
|
|
2779
|
-
const inner = /* @__PURE__ */ __name((content2, el2) => {
|
|
2942
|
+
const inner = /* @__PURE__ */ __name((content2, el2, { dataTitle, dataAvoid, dataAvoidBackup }) => {
|
|
2943
|
+
var _a3, _b2;
|
|
2780
2944
|
innerRun = true;
|
|
2781
2945
|
document.querySelectorAll(`.${id2}`).forEach((elem) => {
|
|
2782
2946
|
elem.classList.remove(id2);
|
|
2783
2947
|
});
|
|
2784
2948
|
el2.classList.add(id2);
|
|
2785
|
-
const inst = tippy$1(`.${id2}`, {
|
|
2949
|
+
const inst = tippy$1(`.${id2}`, __spreadValues(__spreadProps(__spreadValues({
|
|
2950
|
+
plugins: [followCursor],
|
|
2786
2951
|
content: content2,
|
|
2787
|
-
delay: [0, 0],
|
|
2952
|
+
delay: dataTitle && !recentlyHidden ? [1300, 1300] : dataTitle ? [150, 150] : [0, 0],
|
|
2788
2953
|
allowHTML: true
|
|
2789
|
-
}
|
|
2954
|
+
}, dataTitle && {
|
|
2955
|
+
followCursor: dataTitle ? "initial" : false
|
|
2956
|
+
}), {
|
|
2957
|
+
onHidden() {
|
|
2958
|
+
recentlyHidden = true;
|
|
2959
|
+
clearMe && clearTimeout(clearMe);
|
|
2960
|
+
clearMe = setTimeout(() => {
|
|
2961
|
+
if (tippys.length === 0)
|
|
2962
|
+
recentlyHidden = false;
|
|
2963
|
+
}, 700);
|
|
2964
|
+
}
|
|
2965
|
+
}), dataAvoid && {
|
|
2966
|
+
popperOptions: {
|
|
2967
|
+
modifiers: [
|
|
2968
|
+
{
|
|
2969
|
+
name: "myModifier",
|
|
2970
|
+
enabled: true,
|
|
2971
|
+
phase: "beforeWrite",
|
|
2972
|
+
requires: ["computeStyles"],
|
|
2973
|
+
requiresIfExists: ["offset"],
|
|
2974
|
+
fn({ state }) {
|
|
2975
|
+
const customBoundary = document.querySelector(dataAvoid) || document.querySelector(dataAvoidBackup);
|
|
2976
|
+
if (!customBoundary)
|
|
2977
|
+
return;
|
|
2978
|
+
const a2 = customBoundary.getBoundingClientRect();
|
|
2979
|
+
if (a2.top < state.rects.reference.y) {
|
|
2980
|
+
const b2 = Math.abs(
|
|
2981
|
+
Math.abs(a2.top - state.rects.reference.y) - 10
|
|
2982
|
+
);
|
|
2983
|
+
state.styles.popper.bottom = b2 + "px";
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
]
|
|
2988
|
+
}
|
|
2989
|
+
}));
|
|
2990
|
+
if (dataTitle) {
|
|
2991
|
+
(_b2 = (_a3 = inst[0]) == null ? void 0 : _a3.popper) == null ? void 0 : _b2.classList.add("isDataTitle");
|
|
2992
|
+
}
|
|
2790
2993
|
clearOldTippys(...inst);
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2994
|
+
if (!dataTitle) {
|
|
2995
|
+
inst.forEach((i) => {
|
|
2996
|
+
i.show();
|
|
2997
|
+
});
|
|
2998
|
+
}
|
|
2794
2999
|
tippys = [...tippys, ...inst];
|
|
2795
3000
|
if (content2 === el2.getAttribute("title")) {
|
|
2796
3001
|
el2.removeAttribute("title");
|
|
@@ -2805,14 +3010,22 @@ let tippys = [];
|
|
|
2805
3010
|
const style2 = window.getComputedStyle(el);
|
|
2806
3011
|
const whiteSpace = style2.getPropertyValue("white-space");
|
|
2807
3012
|
const textOverflow = style2.getPropertyValue("text-overflow");
|
|
2808
|
-
|
|
3013
|
+
const dataTitle = el.getAttribute("data-title");
|
|
3014
|
+
const dataAvoid = el.getAttribute("data-avoid");
|
|
3015
|
+
const dataAvoidBackup = el.getAttribute("data-avoid-backup");
|
|
3016
|
+
dataTip = el.getAttribute("data-tip") || dataTitle;
|
|
2809
3017
|
const isEllipsized = whiteSpace === "nowrap" && textOverflow === "ellipsis";
|
|
3018
|
+
const opts = {
|
|
3019
|
+
dataTitle,
|
|
3020
|
+
dataAvoid,
|
|
3021
|
+
dataAvoidBackup
|
|
3022
|
+
};
|
|
2810
3023
|
if (dataTip) {
|
|
2811
|
-
inner(dataTip, el);
|
|
3024
|
+
inner(dataTip, el, opts);
|
|
2812
3025
|
break;
|
|
2813
3026
|
} else if (isEllipsized && el.offsetWidth < el.scrollWidth - 4 && //the -4 is adding a teeny bit of tolerance to fix issues with the column headers getting tooltips even when fully visible
|
|
2814
3027
|
!el.classList.contains("no-data-tip") && el.textContent && ((_b = (_a2 = el.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b.call(_a2).length) !== 0) {
|
|
2815
|
-
inner(el.textContent, el);
|
|
3028
|
+
inner(el.textContent, el, opts);
|
|
2816
3029
|
break;
|
|
2817
3030
|
} else if (isEllipsized && el.offsetWidth >= el.scrollWidth)
|
|
2818
3031
|
;
|
|
@@ -2876,13 +3089,13 @@ function getAugmentedNamespace(n2) {
|
|
|
2876
3089
|
}
|
|
2877
3090
|
__name(getAugmentedNamespace, "getAugmentedNamespace");
|
|
2878
3091
|
var axios$3 = { exports: {} };
|
|
2879
|
-
var bind$4 = /* @__PURE__ */ __name(function bind(
|
|
3092
|
+
var bind$4 = /* @__PURE__ */ __name(function bind(fn4, thisArg) {
|
|
2880
3093
|
return /* @__PURE__ */ __name(function wrap2() {
|
|
2881
3094
|
var args = new Array(arguments.length);
|
|
2882
3095
|
for (var i = 0; i < args.length; i++) {
|
|
2883
3096
|
args[i] = arguments[i];
|
|
2884
3097
|
}
|
|
2885
|
-
return
|
|
3098
|
+
return fn4.apply(thisArg, args);
|
|
2886
3099
|
}, "wrap");
|
|
2887
3100
|
}, "bind");
|
|
2888
3101
|
var bind$3 = bind$4;
|
|
@@ -2972,7 +3185,7 @@ function isStandardBrowserEnv() {
|
|
|
2972
3185
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
2973
3186
|
}
|
|
2974
3187
|
__name(isStandardBrowserEnv, "isStandardBrowserEnv");
|
|
2975
|
-
function forEach$1(obj,
|
|
3188
|
+
function forEach$1(obj, fn4) {
|
|
2976
3189
|
if (obj === null || typeof obj === "undefined") {
|
|
2977
3190
|
return;
|
|
2978
3191
|
}
|
|
@@ -2981,12 +3194,12 @@ function forEach$1(obj, fn3) {
|
|
|
2981
3194
|
}
|
|
2982
3195
|
if (isArray$o(obj)) {
|
|
2983
3196
|
for (var i = 0, l2 = obj.length; i < l2; i++) {
|
|
2984
|
-
|
|
3197
|
+
fn4.call(null, obj[i], i, obj);
|
|
2985
3198
|
}
|
|
2986
3199
|
} else {
|
|
2987
3200
|
for (var key in obj) {
|
|
2988
3201
|
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
2989
|
-
|
|
3202
|
+
fn4.call(null, obj[key], key, obj);
|
|
2990
3203
|
}
|
|
2991
3204
|
}
|
|
2992
3205
|
}
|
|
@@ -3118,10 +3331,10 @@ InterceptorManager$1.prototype.eject = /* @__PURE__ */ __name(function eject(id2
|
|
|
3118
3331
|
this.handlers[id2] = null;
|
|
3119
3332
|
}
|
|
3120
3333
|
}, "eject");
|
|
3121
|
-
InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(
|
|
3334
|
+
InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(fn4) {
|
|
3122
3335
|
utils$a.forEach(this.handlers, /* @__PURE__ */ __name(function forEachHandler(h2) {
|
|
3123
3336
|
if (h2 !== null) {
|
|
3124
|
-
|
|
3337
|
+
fn4(h2);
|
|
3125
3338
|
}
|
|
3126
3339
|
}, "forEachHandler"));
|
|
3127
3340
|
}, "forEach");
|
|
@@ -3642,8 +3855,8 @@ var utils$7 = utils$c;
|
|
|
3642
3855
|
var defaults$4 = defaults_1;
|
|
3643
3856
|
var transformData$1 = /* @__PURE__ */ __name(function transformData(data, headers, fns) {
|
|
3644
3857
|
var context = this || defaults$4;
|
|
3645
|
-
utils$7.forEach(fns, /* @__PURE__ */ __name(function transform2(
|
|
3646
|
-
data =
|
|
3858
|
+
utils$7.forEach(fns, /* @__PURE__ */ __name(function transform2(fn4) {
|
|
3859
|
+
data = fn4.call(context, data, headers);
|
|
3647
3860
|
}, "transform"));
|
|
3648
3861
|
return data;
|
|
3649
3862
|
}, "transformData");
|
|
@@ -4936,9 +5149,9 @@ function composeEventHandlers() {
|
|
|
4936
5149
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
4937
5150
|
args[_key2 - 1] = arguments[_key2];
|
|
4938
5151
|
}
|
|
4939
|
-
return fns.some(function(
|
|
4940
|
-
if (!isPropagationStopped(event) &&
|
|
4941
|
-
|
|
5152
|
+
return fns.some(function(fn4) {
|
|
5153
|
+
if (!isPropagationStopped(event) && fn4) {
|
|
5154
|
+
fn4.apply(void 0, [event].concat(args));
|
|
4942
5155
|
}
|
|
4943
5156
|
return isPropagationStopped(event);
|
|
4944
5157
|
});
|
|
@@ -5555,14 +5768,14 @@ function useDropzone() {
|
|
|
5555
5768
|
openFileDialog();
|
|
5556
5769
|
}
|
|
5557
5770
|
}, [inputRef, noClick, openFileDialog]);
|
|
5558
|
-
var composeHandler = /* @__PURE__ */ __name(function composeHandler2(
|
|
5559
|
-
return disabled ? null :
|
|
5771
|
+
var composeHandler = /* @__PURE__ */ __name(function composeHandler2(fn4) {
|
|
5772
|
+
return disabled ? null : fn4;
|
|
5560
5773
|
}, "composeHandler");
|
|
5561
|
-
var composeKeyboardHandler = /* @__PURE__ */ __name(function composeKeyboardHandler2(
|
|
5562
|
-
return noKeyboard ? null : composeHandler(
|
|
5774
|
+
var composeKeyboardHandler = /* @__PURE__ */ __name(function composeKeyboardHandler2(fn4) {
|
|
5775
|
+
return noKeyboard ? null : composeHandler(fn4);
|
|
5563
5776
|
}, "composeKeyboardHandler");
|
|
5564
|
-
var composeDragHandler = /* @__PURE__ */ __name(function composeDragHandler2(
|
|
5565
|
-
return noDrag ? null : composeHandler(
|
|
5777
|
+
var composeDragHandler = /* @__PURE__ */ __name(function composeDragHandler2(fn4) {
|
|
5778
|
+
return noDrag ? null : composeHandler(fn4);
|
|
5566
5779
|
}, "composeDragHandler");
|
|
5567
5780
|
var stopPropagation = /* @__PURE__ */ __name(function stopPropagation2(event) {
|
|
5568
5781
|
if (noDragEventsBubbling) {
|
|
@@ -6504,8 +6717,8 @@ function once(func) {
|
|
|
6504
6717
|
__name(once, "once");
|
|
6505
6718
|
var noop$2 = /* @__PURE__ */ __name(function noop() {
|
|
6506
6719
|
}, "noop");
|
|
6507
|
-
function isFunction$5(
|
|
6508
|
-
return typeof
|
|
6720
|
+
function isFunction$5(fn4) {
|
|
6721
|
+
return typeof fn4 === "function";
|
|
6509
6722
|
}
|
|
6510
6723
|
__name(isFunction$5, "isFunction$5");
|
|
6511
6724
|
function isStringish(value) {
|
|
@@ -7311,12 +7524,12 @@ var tmpNameDescriptor = {
|
|
|
7311
7524
|
writable: false,
|
|
7312
7525
|
enumerable: false
|
|
7313
7526
|
};
|
|
7314
|
-
function createAction(actionName,
|
|
7527
|
+
function createAction(actionName, fn4, autoAction2, ref) {
|
|
7315
7528
|
if (autoAction2 === void 0) {
|
|
7316
7529
|
autoAction2 = false;
|
|
7317
7530
|
}
|
|
7318
7531
|
function res() {
|
|
7319
|
-
return executeAction(actionName, autoAction2,
|
|
7532
|
+
return executeAction(actionName, autoAction2, fn4, ref || this, arguments);
|
|
7320
7533
|
}
|
|
7321
7534
|
__name(res, "res");
|
|
7322
7535
|
res.isMobxAction = true;
|
|
@@ -7327,10 +7540,10 @@ function createAction(actionName, fn3, autoAction2, ref) {
|
|
|
7327
7540
|
return res;
|
|
7328
7541
|
}
|
|
7329
7542
|
__name(createAction, "createAction");
|
|
7330
|
-
function executeAction(actionName, canRunAsDerivation,
|
|
7543
|
+
function executeAction(actionName, canRunAsDerivation, fn4, scope, args) {
|
|
7331
7544
|
var runInfo = _startAction(actionName, canRunAsDerivation);
|
|
7332
7545
|
try {
|
|
7333
|
-
return
|
|
7546
|
+
return fn4.apply(scope, args);
|
|
7334
7547
|
} catch (err) {
|
|
7335
7548
|
runInfo.error_ = err;
|
|
7336
7549
|
throw err;
|
|
@@ -8115,7 +8328,7 @@ var Reaction = /* @__PURE__ */ function() {
|
|
|
8115
8328
|
endBatch();
|
|
8116
8329
|
}
|
|
8117
8330
|
}, "runReaction_");
|
|
8118
|
-
_proto.track = /* @__PURE__ */ __name(function track2(
|
|
8331
|
+
_proto.track = /* @__PURE__ */ __name(function track2(fn4) {
|
|
8119
8332
|
if (this.isDisposed_) {
|
|
8120
8333
|
return;
|
|
8121
8334
|
}
|
|
@@ -8123,7 +8336,7 @@ var Reaction = /* @__PURE__ */ function() {
|
|
|
8123
8336
|
this.isRunning_ = true;
|
|
8124
8337
|
var prevReaction = globalState.trackingContext;
|
|
8125
8338
|
globalState.trackingContext = this;
|
|
8126
|
-
var result = trackDerivedFunction(this,
|
|
8339
|
+
var result = trackDerivedFunction(this, fn4, void 0);
|
|
8127
8340
|
globalState.trackingContext = prevReaction;
|
|
8128
8341
|
this.isRunning_ = false;
|
|
8129
8342
|
this.isTrackPending_ = false;
|
|
@@ -8208,10 +8421,10 @@ function runReactionsHelper() {
|
|
|
8208
8421
|
}
|
|
8209
8422
|
__name(runReactionsHelper, "runReactionsHelper");
|
|
8210
8423
|
var isReaction = /* @__PURE__ */ createInstanceofPredicate("Reaction", Reaction);
|
|
8211
|
-
function setReactionScheduler(
|
|
8424
|
+
function setReactionScheduler(fn4) {
|
|
8212
8425
|
var baseScheduler = reactionScheduler;
|
|
8213
8426
|
reactionScheduler = /* @__PURE__ */ __name(function reactionScheduler3(f2) {
|
|
8214
|
-
return
|
|
8427
|
+
return fn4(function() {
|
|
8215
8428
|
return baseScheduler(f2);
|
|
8216
8429
|
});
|
|
8217
8430
|
}, "reactionScheduler");
|
|
@@ -8522,8 +8735,8 @@ function cancelPromise(promise) {
|
|
|
8522
8735
|
}
|
|
8523
8736
|
}
|
|
8524
8737
|
__name(cancelPromise, "cancelPromise");
|
|
8525
|
-
function isFlow(
|
|
8526
|
-
return (
|
|
8738
|
+
function isFlow(fn4) {
|
|
8739
|
+
return (fn4 == null ? void 0 : fn4.isMobXFlow) === true;
|
|
8527
8740
|
}
|
|
8528
8741
|
__name(isFlow, "isFlow");
|
|
8529
8742
|
function _isObservable(value, property2) {
|
|
@@ -10206,9 +10419,9 @@ var LegacyObservableArray = /* @__PURE__ */ function(_StubArray, _Symbol$toStrin
|
|
|
10206
10419
|
return LegacyObservableArray2;
|
|
10207
10420
|
}(StubArray, Symbol.toStringTag, Symbol.iterator);
|
|
10208
10421
|
Object.entries(arrayExtensions).forEach(function(_ref) {
|
|
10209
|
-
var prop = _ref[0],
|
|
10422
|
+
var prop = _ref[0], fn4 = _ref[1];
|
|
10210
10423
|
if (prop !== "concat") {
|
|
10211
|
-
addHiddenProp(LegacyObservableArray.prototype, prop,
|
|
10424
|
+
addHiddenProp(LegacyObservableArray.prototype, prop, fn4);
|
|
10212
10425
|
}
|
|
10213
10426
|
});
|
|
10214
10427
|
function createArrayEntryDescriptor(index2) {
|
|
@@ -10857,13 +11070,13 @@ function wrapper(realMethod, mixins) {
|
|
|
10857
11070
|
}
|
|
10858
11071
|
__name(wrapper, "wrapper");
|
|
10859
11072
|
function wrapFunction(realMethod, mixins) {
|
|
10860
|
-
var
|
|
11073
|
+
var fn4 = /* @__PURE__ */ __name(function fn5() {
|
|
10861
11074
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
10862
11075
|
args[_key2] = arguments[_key2];
|
|
10863
11076
|
}
|
|
10864
11077
|
wrapper.call.apply(wrapper, [this, realMethod, mixins].concat(args));
|
|
10865
11078
|
}, "fn");
|
|
10866
|
-
return
|
|
11079
|
+
return fn4;
|
|
10867
11080
|
}
|
|
10868
11081
|
__name(wrapFunction, "wrapFunction");
|
|
10869
11082
|
function patch$1(target, methodName, mixinMethod) {
|
|
@@ -11544,12 +11757,12 @@ var un = function() {
|
|
|
11544
11757
|
return o2(n3, t2);
|
|
11545
11758
|
});
|
|
11546
11759
|
}, e2;
|
|
11547
|
-
}(), an = new un(),
|
|
11760
|
+
}(), an = new un(), fn3 = an.produce, cn = an.produceWithPatches.bind(an), sn = an.setAutoFreeze.bind(an);
|
|
11548
11761
|
an.setUseProxies.bind(an);
|
|
11549
11762
|
var pn = an.applyPatches.bind(an);
|
|
11550
11763
|
an.createDraft.bind(an);
|
|
11551
11764
|
an.finishDraft.bind(an);
|
|
11552
|
-
const immer =
|
|
11765
|
+
const immer = fn3;
|
|
11553
11766
|
const UploadCsvWizard = "";
|
|
11554
11767
|
var lodash = { exports: {} };
|
|
11555
11768
|
/**
|
|
@@ -13928,8 +14141,8 @@ lodash.exports;
|
|
|
13928
14141
|
function createBind(func, bitmask, thisArg) {
|
|
13929
14142
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
|
13930
14143
|
function wrapper2() {
|
|
13931
|
-
var
|
|
13932
|
-
return
|
|
14144
|
+
var fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
|
|
14145
|
+
return fn4.apply(isBind ? thisArg : this, arguments);
|
|
13933
14146
|
}
|
|
13934
14147
|
__name(wrapper2, "wrapper");
|
|
13935
14148
|
return wrapper2;
|
|
@@ -14000,8 +14213,8 @@ lodash.exports;
|
|
|
14000
14213
|
arity - length
|
|
14001
14214
|
);
|
|
14002
14215
|
}
|
|
14003
|
-
var
|
|
14004
|
-
return apply2(
|
|
14216
|
+
var fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
|
|
14217
|
+
return apply2(fn4, this, args);
|
|
14005
14218
|
}
|
|
14006
14219
|
__name(wrapper2, "wrapper");
|
|
14007
14220
|
return wrapper2;
|
|
@@ -14093,7 +14306,7 @@ lodash.exports;
|
|
|
14093
14306
|
arity - length
|
|
14094
14307
|
);
|
|
14095
14308
|
}
|
|
14096
|
-
var thisBinding = isBind ? thisArg : this,
|
|
14309
|
+
var thisBinding = isBind ? thisArg : this, fn4 = isBindKey ? thisBinding[func] : func;
|
|
14097
14310
|
length = args.length;
|
|
14098
14311
|
if (argPos) {
|
|
14099
14312
|
args = reorder(args, argPos);
|
|
@@ -14104,9 +14317,9 @@ lodash.exports;
|
|
|
14104
14317
|
args.length = ary2;
|
|
14105
14318
|
}
|
|
14106
14319
|
if (this && this !== root2 && this instanceof wrapper2) {
|
|
14107
|
-
|
|
14320
|
+
fn4 = Ctor || createCtor(fn4);
|
|
14108
14321
|
}
|
|
14109
|
-
return
|
|
14322
|
+
return fn4.apply(thisBinding, args);
|
|
14110
14323
|
}
|
|
14111
14324
|
__name(wrapper2, "wrapper");
|
|
14112
14325
|
return wrapper2;
|
|
@@ -14169,14 +14382,14 @@ lodash.exports;
|
|
|
14169
14382
|
function createPartial(func, bitmask, thisArg, partials) {
|
|
14170
14383
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
|
14171
14384
|
function wrapper2() {
|
|
14172
|
-
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength),
|
|
14385
|
+
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
|
|
14173
14386
|
while (++leftIndex < leftLength) {
|
|
14174
14387
|
args[leftIndex] = partials[leftIndex];
|
|
14175
14388
|
}
|
|
14176
14389
|
while (argsLength--) {
|
|
14177
14390
|
args[leftIndex++] = arguments[++argsIndex];
|
|
14178
14391
|
}
|
|
14179
|
-
return apply2(
|
|
14392
|
+
return apply2(fn4, isBind ? thisArg : this, args);
|
|
14180
14393
|
}
|
|
14181
14394
|
__name(wrapper2, "wrapper");
|
|
14182
14395
|
return wrapper2;
|
|
@@ -18005,26 +18218,26 @@ var _aFunction = /* @__PURE__ */ __name(function(it) {
|
|
|
18005
18218
|
return it;
|
|
18006
18219
|
}, "_aFunction");
|
|
18007
18220
|
var aFunction = _aFunction;
|
|
18008
|
-
var _ctx = /* @__PURE__ */ __name(function(
|
|
18009
|
-
aFunction(
|
|
18221
|
+
var _ctx = /* @__PURE__ */ __name(function(fn4, that, length) {
|
|
18222
|
+
aFunction(fn4);
|
|
18010
18223
|
if (that === void 0)
|
|
18011
|
-
return
|
|
18224
|
+
return fn4;
|
|
18012
18225
|
switch (length) {
|
|
18013
18226
|
case 1:
|
|
18014
18227
|
return function(a2) {
|
|
18015
|
-
return
|
|
18228
|
+
return fn4.call(that, a2);
|
|
18016
18229
|
};
|
|
18017
18230
|
case 2:
|
|
18018
18231
|
return function(a2, b2) {
|
|
18019
|
-
return
|
|
18232
|
+
return fn4.call(that, a2, b2);
|
|
18020
18233
|
};
|
|
18021
18234
|
case 3:
|
|
18022
18235
|
return function(a2, b2, c2) {
|
|
18023
|
-
return
|
|
18236
|
+
return fn4.call(that, a2, b2, c2);
|
|
18024
18237
|
};
|
|
18025
18238
|
}
|
|
18026
18239
|
return function() {
|
|
18027
|
-
return
|
|
18240
|
+
return fn4.apply(that, arguments);
|
|
18028
18241
|
};
|
|
18029
18242
|
}, "_ctx");
|
|
18030
18243
|
var _objectDp = {};
|
|
@@ -18073,12 +18286,12 @@ var isObject$d = _isObject;
|
|
|
18073
18286
|
var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
|
|
18074
18287
|
if (!isObject$d(it))
|
|
18075
18288
|
return it;
|
|
18076
|
-
var
|
|
18077
|
-
if (S2 && typeof (
|
|
18289
|
+
var fn4, val;
|
|
18290
|
+
if (S2 && typeof (fn4 = it.toString) == "function" && !isObject$d(val = fn4.call(it)))
|
|
18078
18291
|
return val;
|
|
18079
|
-
if (typeof (
|
|
18292
|
+
if (typeof (fn4 = it.valueOf) == "function" && !isObject$d(val = fn4.call(it)))
|
|
18080
18293
|
return val;
|
|
18081
|
-
if (!S2 && typeof (
|
|
18294
|
+
if (!S2 && typeof (fn4 = it.toString) == "function" && !isObject$d(val = fn4.call(it)))
|
|
18082
18295
|
return val;
|
|
18083
18296
|
throw TypeError("Can't convert object to primitive value");
|
|
18084
18297
|
}, "_toPrimitive");
|
|
@@ -18701,9 +18914,9 @@ var _default$a = function() {
|
|
|
18701
18914
|
};
|
|
18702
18915
|
}();
|
|
18703
18916
|
var anObject$1 = _anObject;
|
|
18704
|
-
var _iterCall = /* @__PURE__ */ __name(function(iterator2,
|
|
18917
|
+
var _iterCall = /* @__PURE__ */ __name(function(iterator2, fn4, value, entries) {
|
|
18705
18918
|
try {
|
|
18706
|
-
return entries ?
|
|
18919
|
+
return entries ? fn4(anObject$1(value)[0], value[1]) : fn4(value);
|
|
18707
18920
|
} catch (e2) {
|
|
18708
18921
|
var ret = iterator2["return"];
|
|
18709
18922
|
if (ret !== void 0)
|
|
@@ -18823,11 +19036,11 @@ var $export$4 = _export;
|
|
|
18823
19036
|
var core$1 = _coreExports;
|
|
18824
19037
|
var fails = _fails;
|
|
18825
19038
|
var _objectSap = /* @__PURE__ */ __name(function(KEY, exec) {
|
|
18826
|
-
var
|
|
19039
|
+
var fn4 = (core$1.Object || {})[KEY] || Object[KEY];
|
|
18827
19040
|
var exp = {};
|
|
18828
|
-
exp[KEY] = exec(
|
|
19041
|
+
exp[KEY] = exec(fn4);
|
|
18829
19042
|
$export$4($export$4.S + $export$4.F * fails(function() {
|
|
18830
|
-
|
|
19043
|
+
fn4(1);
|
|
18831
19044
|
}), "Object", exp);
|
|
18832
19045
|
}, "_objectSap");
|
|
18833
19046
|
var toObject$2 = _toObject;
|
|
@@ -21107,9 +21320,9 @@ var vendorPrefix = function() {
|
|
|
21107
21320
|
return pre && pre.length ? pre[0].toUpperCase() + pre.substr(1) : "";
|
|
21108
21321
|
}
|
|
21109
21322
|
}();
|
|
21110
|
-
function closest(el,
|
|
21323
|
+
function closest(el, fn4) {
|
|
21111
21324
|
while (el) {
|
|
21112
|
-
if (
|
|
21325
|
+
if (fn4(el))
|
|
21113
21326
|
return el;
|
|
21114
21327
|
el = el.parentNode;
|
|
21115
21328
|
}
|
|
@@ -22123,9 +22336,9 @@ var getComputedStyleX;
|
|
|
22123
22336
|
if (typeof window !== "undefined") {
|
|
22124
22337
|
getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
|
|
22125
22338
|
}
|
|
22126
|
-
function each(arr,
|
|
22339
|
+
function each(arr, fn4) {
|
|
22127
22340
|
for (var i = 0; i < arr.length; i++) {
|
|
22128
|
-
|
|
22341
|
+
fn4(arr[i]);
|
|
22129
22342
|
}
|
|
22130
22343
|
}
|
|
22131
22344
|
__name(each, "each");
|
|
@@ -26776,7 +26989,7 @@ function trough() {
|
|
|
26776
26989
|
}
|
|
26777
26990
|
next(null, ...values);
|
|
26778
26991
|
function next(error, ...output) {
|
|
26779
|
-
const
|
|
26992
|
+
const fn4 = fns[++middlewareIndex];
|
|
26780
26993
|
let index2 = -1;
|
|
26781
26994
|
if (error) {
|
|
26782
26995
|
callback(error);
|
|
@@ -26788,8 +27001,8 @@ function trough() {
|
|
|
26788
27001
|
}
|
|
26789
27002
|
}
|
|
26790
27003
|
values = output;
|
|
26791
|
-
if (
|
|
26792
|
-
wrap$1(
|
|
27004
|
+
if (fn4) {
|
|
27005
|
+
wrap$1(fn4, next)(...output);
|
|
26793
27006
|
} else {
|
|
26794
27007
|
callback(null, ...output);
|
|
26795
27008
|
}
|
|
@@ -38176,9 +38389,9 @@ var swizzle$1 = simpleSwizzle.exports = /* @__PURE__ */ __name(function swizzle(
|
|
|
38176
38389
|
}
|
|
38177
38390
|
return results;
|
|
38178
38391
|
}, "swizzle");
|
|
38179
|
-
swizzle$1.wrap = function(
|
|
38392
|
+
swizzle$1.wrap = function(fn4) {
|
|
38180
38393
|
return function() {
|
|
38181
|
-
return
|
|
38394
|
+
return fn4(swizzle$1(arguments));
|
|
38182
38395
|
};
|
|
38183
38396
|
};
|
|
38184
38397
|
var simpleSwizzleExports = simpleSwizzle.exports;
|
|
@@ -39262,15 +39475,15 @@ function link(from3, to) {
|
|
|
39262
39475
|
__name(link, "link");
|
|
39263
39476
|
function wrapConversion(toModel, graph) {
|
|
39264
39477
|
var path2 = [graph[toModel].parent, toModel];
|
|
39265
|
-
var
|
|
39478
|
+
var fn4 = conversions$1[graph[toModel].parent][toModel];
|
|
39266
39479
|
var cur = graph[toModel].parent;
|
|
39267
39480
|
while (graph[cur].parent) {
|
|
39268
39481
|
path2.unshift(graph[cur].parent);
|
|
39269
|
-
|
|
39482
|
+
fn4 = link(conversions$1[graph[cur].parent][cur], fn4);
|
|
39270
39483
|
cur = graph[cur].parent;
|
|
39271
39484
|
}
|
|
39272
|
-
|
|
39273
|
-
return
|
|
39485
|
+
fn4.conversion = path2;
|
|
39486
|
+
return fn4;
|
|
39274
39487
|
}
|
|
39275
39488
|
__name(wrapConversion, "wrapConversion");
|
|
39276
39489
|
var route$1 = /* @__PURE__ */ __name(function(fromModel) {
|
|
@@ -39291,7 +39504,7 @@ var conversions = conversionsExports;
|
|
|
39291
39504
|
var route = route$1;
|
|
39292
39505
|
var convert$1 = {};
|
|
39293
39506
|
var models = Object.keys(conversions);
|
|
39294
|
-
function wrapRaw(
|
|
39507
|
+
function wrapRaw(fn4) {
|
|
39295
39508
|
var wrappedFn = /* @__PURE__ */ __name(function(args) {
|
|
39296
39509
|
if (args === void 0 || args === null) {
|
|
39297
39510
|
return args;
|
|
@@ -39299,15 +39512,15 @@ function wrapRaw(fn3) {
|
|
|
39299
39512
|
if (arguments.length > 1) {
|
|
39300
39513
|
args = Array.prototype.slice.call(arguments);
|
|
39301
39514
|
}
|
|
39302
|
-
return
|
|
39515
|
+
return fn4(args);
|
|
39303
39516
|
}, "wrappedFn");
|
|
39304
|
-
if ("conversion" in
|
|
39305
|
-
wrappedFn.conversion =
|
|
39517
|
+
if ("conversion" in fn4) {
|
|
39518
|
+
wrappedFn.conversion = fn4.conversion;
|
|
39306
39519
|
}
|
|
39307
39520
|
return wrappedFn;
|
|
39308
39521
|
}
|
|
39309
39522
|
__name(wrapRaw, "wrapRaw");
|
|
39310
|
-
function wrapRounded(
|
|
39523
|
+
function wrapRounded(fn4) {
|
|
39311
39524
|
var wrappedFn = /* @__PURE__ */ __name(function(args) {
|
|
39312
39525
|
if (args === void 0 || args === null) {
|
|
39313
39526
|
return args;
|
|
@@ -39315,7 +39528,7 @@ function wrapRounded(fn3) {
|
|
|
39315
39528
|
if (arguments.length > 1) {
|
|
39316
39529
|
args = Array.prototype.slice.call(arguments);
|
|
39317
39530
|
}
|
|
39318
|
-
var result =
|
|
39531
|
+
var result = fn4(args);
|
|
39319
39532
|
if (typeof result === "object") {
|
|
39320
39533
|
for (var len = result.length, i = 0; i < len; i++) {
|
|
39321
39534
|
result[i] = Math.round(result[i]);
|
|
@@ -39323,8 +39536,8 @@ function wrapRounded(fn3) {
|
|
|
39323
39536
|
}
|
|
39324
39537
|
return result;
|
|
39325
39538
|
}, "wrappedFn");
|
|
39326
|
-
if ("conversion" in
|
|
39327
|
-
wrappedFn.conversion =
|
|
39539
|
+
if ("conversion" in fn4) {
|
|
39540
|
+
wrappedFn.conversion = fn4.conversion;
|
|
39328
39541
|
}
|
|
39329
39542
|
return wrappedFn;
|
|
39330
39543
|
}
|
|
@@ -39336,9 +39549,9 @@ models.forEach(function(fromModel) {
|
|
|
39336
39549
|
var routes = route(fromModel);
|
|
39337
39550
|
var routeModels = Object.keys(routes);
|
|
39338
39551
|
routeModels.forEach(function(toModel) {
|
|
39339
|
-
var
|
|
39340
|
-
convert$1[fromModel][toModel] = wrapRounded(
|
|
39341
|
-
convert$1[fromModel][toModel].raw = wrapRaw(
|
|
39552
|
+
var fn4 = routes[toModel];
|
|
39553
|
+
convert$1[fromModel][toModel] = wrapRounded(fn4);
|
|
39554
|
+
convert$1[fromModel][toModel].raw = wrapRaw(fn4);
|
|
39342
39555
|
});
|
|
39343
39556
|
});
|
|
39344
39557
|
var colorConvert = convert$1;
|
|
@@ -40805,9 +41018,9 @@ var doEval = /* @__PURE__ */ __name(function doEval2(name) {
|
|
|
40805
41018
|
} else if (name === "%AsyncGeneratorFunction%") {
|
|
40806
41019
|
value = getEvalledConstructor("async function* () {}");
|
|
40807
41020
|
} else if (name === "%AsyncGenerator%") {
|
|
40808
|
-
var
|
|
40809
|
-
if (
|
|
40810
|
-
value =
|
|
41021
|
+
var fn4 = doEval2("%AsyncGeneratorFunction%");
|
|
41022
|
+
if (fn4) {
|
|
41023
|
+
value = fn4.prototype;
|
|
40811
41024
|
}
|
|
40812
41025
|
} else if (name === "%AsyncIteratorPrototype%") {
|
|
40813
41026
|
var gen = doEval2("%AsyncGenerator%");
|
|
@@ -41863,15 +42076,15 @@ var isBuffer$3 = /* @__PURE__ */ __name(function isBuffer2(obj) {
|
|
|
41863
42076
|
var combine = /* @__PURE__ */ __name(function combine2(a2, b2) {
|
|
41864
42077
|
return [].concat(a2, b2);
|
|
41865
42078
|
}, "combine");
|
|
41866
|
-
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val,
|
|
42079
|
+
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn4) {
|
|
41867
42080
|
if (isArray$8(val)) {
|
|
41868
42081
|
var mapped = [];
|
|
41869
42082
|
for (var i = 0; i < val.length; i += 1) {
|
|
41870
|
-
mapped.push(
|
|
42083
|
+
mapped.push(fn4(val[i]));
|
|
41871
42084
|
}
|
|
41872
42085
|
return mapped;
|
|
41873
42086
|
}
|
|
41874
|
-
return
|
|
42087
|
+
return fn4(val);
|
|
41875
42088
|
}, "maybeMap");
|
|
41876
42089
|
var utils$2 = {
|
|
41877
42090
|
arrayToObject,
|
|
@@ -46495,8 +46708,8 @@ var Saturation = function(_ref) {
|
|
|
46495
46708
|
_this.handleMouseUp = function() {
|
|
46496
46709
|
_this.unbindEventListeners();
|
|
46497
46710
|
};
|
|
46498
|
-
_this.throttle = throttle(function(
|
|
46499
|
-
|
|
46711
|
+
_this.throttle = throttle(function(fn4, data, e2) {
|
|
46712
|
+
fn4(data, e2);
|
|
46500
46713
|
}, 50);
|
|
46501
46714
|
return _this;
|
|
46502
46715
|
}
|
|
@@ -46868,8 +47081,8 @@ tinycolor.prototype = {
|
|
|
46868
47081
|
clone: /* @__PURE__ */ __name(function clone3() {
|
|
46869
47082
|
return tinycolor(this.toString());
|
|
46870
47083
|
}, "clone"),
|
|
46871
|
-
_applyModification: /* @__PURE__ */ __name(function _applyModification(
|
|
46872
|
-
var color2 =
|
|
47084
|
+
_applyModification: /* @__PURE__ */ __name(function _applyModification(fn4, args) {
|
|
47085
|
+
var color2 = fn4.apply(null, [this].concat([].slice.call(args)));
|
|
46873
47086
|
this._r = color2._r;
|
|
46874
47087
|
this._g = color2._g;
|
|
46875
47088
|
this._b = color2._b;
|
|
@@ -46897,8 +47110,8 @@ tinycolor.prototype = {
|
|
|
46897
47110
|
spin: /* @__PURE__ */ __name(function spin() {
|
|
46898
47111
|
return this._applyModification(_spin, arguments);
|
|
46899
47112
|
}, "spin"),
|
|
46900
|
-
_applyCombination: /* @__PURE__ */ __name(function _applyCombination(
|
|
46901
|
-
return
|
|
47113
|
+
_applyCombination: /* @__PURE__ */ __name(function _applyCombination(fn4, args) {
|
|
47114
|
+
return fn4.apply(null, [this].concat([].slice.call(args)));
|
|
46902
47115
|
}, "_applyCombination"),
|
|
46903
47116
|
analogous: /* @__PURE__ */ __name(function analogous() {
|
|
46904
47117
|
return this._applyCombination(_analogous, arguments);
|
|
@@ -47818,8 +48031,8 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
|
|
|
47818
48031
|
}
|
|
47819
48032
|
};
|
|
47820
48033
|
_this.state = _extends$b({}, toState(props.color, 0));
|
|
47821
|
-
_this.debounce = debounce(function(
|
|
47822
|
-
|
|
48034
|
+
_this.debounce = debounce(function(fn4, data, event) {
|
|
48035
|
+
fn4(data, event);
|
|
47823
48036
|
}, 100);
|
|
47824
48037
|
return _this;
|
|
47825
48038
|
}
|
|
@@ -56709,9 +56922,9 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
56709
56922
|
return window.toastr.warning("No text to copy");
|
|
56710
56923
|
this.handleCopyHelper(textToCopy, "Column copied");
|
|
56711
56924
|
}, "handleCopyColumn"));
|
|
56712
|
-
__publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents,
|
|
56925
|
+
__publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn4) => {
|
|
56713
56926
|
const { change, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
|
|
56714
|
-
const [nextState, patches, inversePatches] = cn(ents,
|
|
56927
|
+
const [nextState, patches, inversePatches] = cn(ents, fn4);
|
|
56715
56928
|
if (!inversePatches.length)
|
|
56716
56929
|
return;
|
|
56717
56930
|
const thatNewNew = [...nextState];
|
|
@@ -58483,8 +58696,8 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
58483
58696
|
let updateTableDisplayDensityToUse = updateTableDisplayDensity;
|
|
58484
58697
|
let resetDefaultVisibilityToUse = resetDefaultVisibility;
|
|
58485
58698
|
if (withDisplayOptions && !syncDisplayOptionsToDb) {
|
|
58486
|
-
const wrapUpdate = /* @__PURE__ */ __name((
|
|
58487
|
-
|
|
58699
|
+
const wrapUpdate = /* @__PURE__ */ __name((fn4) => (...args) => {
|
|
58700
|
+
fn4(...args);
|
|
58488
58701
|
change("localStorageForceUpdate", Math.random());
|
|
58489
58702
|
}, "wrapUpdate");
|
|
58490
58703
|
updateColumnVisibilityToUse = wrapUpdate(updateColumnVisibility);
|
|
@@ -58679,12 +58892,13 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
58679
58892
|
tabIndex: -1,
|
|
58680
58893
|
onKeyDown: (e2) => {
|
|
58681
58894
|
var _a2, _b, _c, _d, _e, _f;
|
|
58682
|
-
const
|
|
58683
|
-
|
|
58895
|
+
const isTabKey = e2.keyCode === 9;
|
|
58896
|
+
const isArrowKey = e2.keyCode >= 37 && e2.keyCode <= 40;
|
|
58897
|
+
if (isArrowKey && ((_a2 = e2.target) == null ? void 0 : _a2.tagName) !== "INPUT" || isTabKey) {
|
|
58684
58898
|
const { schema: schema2, entities: entities2 } = computePresets(this.props);
|
|
58685
58899
|
const left2 = e2.keyCode === 37;
|
|
58686
58900
|
const up = e2.keyCode === 38;
|
|
58687
|
-
const down = e2.keyCode === 40;
|
|
58901
|
+
const down = e2.keyCode === 40 || e2.keyCode === 13;
|
|
58688
58902
|
let cellIdToUse = this.getPrimarySelectedCellId();
|
|
58689
58903
|
const pathToIndex = getFieldPathToIndex(schema2);
|
|
58690
58904
|
const entityMap = getEntityIdToEntity(entities2);
|
|
@@ -59355,7 +59569,7 @@ const wrapDialog = /* @__PURE__ */ __name((topLevelDialogProps = {}) => (Compone
|
|
|
59355
59569
|
/* @__PURE__ */ React$1.createElement(Component, __spreadValues({ hideModal }, otherProps))
|
|
59356
59570
|
);
|
|
59357
59571
|
}, "wrapDialog");
|
|
59358
|
-
function renderOnDoc(
|
|
59572
|
+
function renderOnDoc(fn4) {
|
|
59359
59573
|
const elemDiv = document.createElement("div");
|
|
59360
59574
|
elemDiv.style.cssText = "position:absolute;width:100%;height:100%;top:0px;opacity:0.3;z-index:0;";
|
|
59361
59575
|
document.body.appendChild(elemDiv);
|
|
@@ -59365,7 +59579,7 @@ function renderOnDoc(fn3) {
|
|
|
59365
59579
|
document.body.removeChild(elemDiv);
|
|
59366
59580
|
});
|
|
59367
59581
|
}, "handleClose");
|
|
59368
|
-
return ReactDOM.render(
|
|
59582
|
+
return ReactDOM.render(fn4(handleClose), elemDiv);
|
|
59369
59583
|
}
|
|
59370
59584
|
__name(renderOnDoc, "renderOnDoc");
|
|
59371
59585
|
function renderOnDocSimple(el) {
|
|
@@ -64711,9 +64925,9 @@ var bluebird = { exports: {} };
|
|
|
64711
64925
|
this._schedule = schedule;
|
|
64712
64926
|
}
|
|
64713
64927
|
__name(Async, "Async");
|
|
64714
|
-
Async.prototype.setScheduler = function(
|
|
64928
|
+
Async.prototype.setScheduler = function(fn4) {
|
|
64715
64929
|
var prev = this._schedule;
|
|
64716
|
-
this._schedule =
|
|
64930
|
+
this._schedule = fn4;
|
|
64717
64931
|
this._customScheduler = true;
|
|
64718
64932
|
return prev;
|
|
64719
64933
|
};
|
|
@@ -64731,33 +64945,33 @@ var bluebird = { exports: {} };
|
|
|
64731
64945
|
this.throwLater(e2);
|
|
64732
64946
|
}
|
|
64733
64947
|
};
|
|
64734
|
-
Async.prototype.throwLater = function(
|
|
64948
|
+
Async.prototype.throwLater = function(fn4, arg) {
|
|
64735
64949
|
if (arguments.length === 1) {
|
|
64736
|
-
arg =
|
|
64737
|
-
|
|
64950
|
+
arg = fn4;
|
|
64951
|
+
fn4 = /* @__PURE__ */ __name(function() {
|
|
64738
64952
|
throw arg;
|
|
64739
64953
|
}, "fn");
|
|
64740
64954
|
}
|
|
64741
64955
|
if (typeof setTimeout !== "undefined") {
|
|
64742
64956
|
setTimeout(function() {
|
|
64743
|
-
|
|
64957
|
+
fn4(arg);
|
|
64744
64958
|
}, 0);
|
|
64745
64959
|
} else
|
|
64746
64960
|
try {
|
|
64747
64961
|
this._schedule(function() {
|
|
64748
|
-
|
|
64962
|
+
fn4(arg);
|
|
64749
64963
|
});
|
|
64750
64964
|
} catch (e2) {
|
|
64751
64965
|
throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n");
|
|
64752
64966
|
}
|
|
64753
64967
|
};
|
|
64754
|
-
function AsyncInvokeLater(
|
|
64755
|
-
this._lateQueue.push(
|
|
64968
|
+
function AsyncInvokeLater(fn4, receiver, arg) {
|
|
64969
|
+
this._lateQueue.push(fn4, receiver, arg);
|
|
64756
64970
|
this._queueTick();
|
|
64757
64971
|
}
|
|
64758
64972
|
__name(AsyncInvokeLater, "AsyncInvokeLater");
|
|
64759
|
-
function AsyncInvoke(
|
|
64760
|
-
this._normalQueue.push(
|
|
64973
|
+
function AsyncInvoke(fn4, receiver, arg) {
|
|
64974
|
+
this._normalQueue.push(fn4, receiver, arg);
|
|
64761
64975
|
this._queueTick();
|
|
64762
64976
|
}
|
|
64763
64977
|
__name(AsyncInvoke, "AsyncInvoke");
|
|
@@ -64776,13 +64990,13 @@ var bluebird = { exports: {} };
|
|
|
64776
64990
|
}
|
|
64777
64991
|
__name(_drainQueue, "_drainQueue");
|
|
64778
64992
|
function _drainQueueStep(queue) {
|
|
64779
|
-
var
|
|
64780
|
-
if (typeof
|
|
64781
|
-
|
|
64993
|
+
var fn4 = queue.shift();
|
|
64994
|
+
if (typeof fn4 !== "function") {
|
|
64995
|
+
fn4._settlePromises();
|
|
64782
64996
|
} else {
|
|
64783
64997
|
var receiver = queue.shift();
|
|
64784
64998
|
var arg = queue.shift();
|
|
64785
|
-
|
|
64999
|
+
fn4.call(receiver, arg);
|
|
64786
65000
|
}
|
|
64787
65001
|
}
|
|
64788
65002
|
__name(_drainQueueStep, "_drainQueueStep");
|
|
@@ -64898,20 +65112,20 @@ var bluebird = { exports: {} };
|
|
|
64898
65112
|
util2.isIdentifier;
|
|
64899
65113
|
var getGetter;
|
|
64900
65114
|
function ensureMethod(obj, methodName) {
|
|
64901
|
-
var
|
|
65115
|
+
var fn4;
|
|
64902
65116
|
if (obj != null)
|
|
64903
|
-
|
|
64904
|
-
if (typeof
|
|
65117
|
+
fn4 = obj[methodName];
|
|
65118
|
+
if (typeof fn4 !== "function") {
|
|
64905
65119
|
var message = "Object " + util2.classString(obj) + " has no method '" + util2.toString(methodName) + "'";
|
|
64906
65120
|
throw new Promise2.TypeError(message);
|
|
64907
65121
|
}
|
|
64908
|
-
return
|
|
65122
|
+
return fn4;
|
|
64909
65123
|
}
|
|
64910
65124
|
__name(ensureMethod, "ensureMethod");
|
|
64911
65125
|
function caller(obj) {
|
|
64912
65126
|
var methodName = this.pop();
|
|
64913
|
-
var
|
|
64914
|
-
return
|
|
65127
|
+
var fn4 = ensureMethod(obj, methodName);
|
|
65128
|
+
return fn4.apply(obj, this);
|
|
64915
65129
|
}
|
|
64916
65130
|
__name(caller, "caller");
|
|
64917
65131
|
Promise2.prototype.call = function(methodName) {
|
|
@@ -65282,13 +65496,13 @@ var bluebird = { exports: {} };
|
|
|
65282
65496
|
Promise2.prototype._warn = function(message, shouldUseOwnTrace, promise) {
|
|
65283
65497
|
return warn(message, shouldUseOwnTrace, promise || this);
|
|
65284
65498
|
};
|
|
65285
|
-
Promise2.onPossiblyUnhandledRejection = function(
|
|
65499
|
+
Promise2.onPossiblyUnhandledRejection = function(fn4) {
|
|
65286
65500
|
var context = Promise2._getContext();
|
|
65287
|
-
possiblyUnhandledRejection = util2.contextBind(context,
|
|
65501
|
+
possiblyUnhandledRejection = util2.contextBind(context, fn4);
|
|
65288
65502
|
};
|
|
65289
|
-
Promise2.onUnhandledRejectionHandled = function(
|
|
65503
|
+
Promise2.onUnhandledRejectionHandled = function(fn4) {
|
|
65290
65504
|
var context = Promise2._getContext();
|
|
65291
|
-
unhandledRejectionHandled = util2.contextBind(context,
|
|
65505
|
+
unhandledRejectionHandled = util2.contextBind(context, fn4);
|
|
65292
65506
|
};
|
|
65293
65507
|
var disableLongStackTraces = /* @__PURE__ */ __name(function() {
|
|
65294
65508
|
}, "disableLongStackTraces");
|
|
@@ -65327,8 +65541,8 @@ var bluebird = { exports: {} };
|
|
|
65327
65541
|
util2.global.onunhandledrejection = null;
|
|
65328
65542
|
return ret;
|
|
65329
65543
|
},
|
|
65330
|
-
after: function(
|
|
65331
|
-
util2.global.onunhandledrejection =
|
|
65544
|
+
after: function(fn4) {
|
|
65545
|
+
util2.global.onunhandledrejection = fn4;
|
|
65332
65546
|
}
|
|
65333
65547
|
},
|
|
65334
65548
|
rejectionhandled: {
|
|
@@ -65337,20 +65551,20 @@ var bluebird = { exports: {} };
|
|
|
65337
65551
|
util2.global.onrejectionhandled = null;
|
|
65338
65552
|
return ret;
|
|
65339
65553
|
},
|
|
65340
|
-
after: function(
|
|
65341
|
-
util2.global.onrejectionhandled =
|
|
65554
|
+
after: function(fn4) {
|
|
65555
|
+
util2.global.onrejectionhandled = fn4;
|
|
65342
65556
|
}
|
|
65343
65557
|
}
|
|
65344
65558
|
};
|
|
65345
65559
|
var fireDomEvent = function() {
|
|
65346
65560
|
var dispatch = /* @__PURE__ */ __name(function(legacy, e2) {
|
|
65347
65561
|
if (legacy) {
|
|
65348
|
-
var
|
|
65562
|
+
var fn4;
|
|
65349
65563
|
try {
|
|
65350
|
-
|
|
65564
|
+
fn4 = legacy.before();
|
|
65351
65565
|
return !util2.global.dispatchEvent(e2);
|
|
65352
65566
|
} finally {
|
|
65353
|
-
legacy.after(
|
|
65567
|
+
legacy.after(fn4);
|
|
65354
65568
|
}
|
|
65355
65569
|
} else {
|
|
65356
65570
|
return !util2.global.dispatchEvent(e2);
|
|
@@ -66216,18 +66430,18 @@ var bluebird = { exports: {} };
|
|
|
66216
66430
|
return PromiseAll(this);
|
|
66217
66431
|
}
|
|
66218
66432
|
__name(promiseAllThis, "promiseAllThis");
|
|
66219
|
-
function PromiseMapSeries(promises,
|
|
66220
|
-
return PromiseReduce(promises,
|
|
66433
|
+
function PromiseMapSeries(promises, fn4) {
|
|
66434
|
+
return PromiseReduce(promises, fn4, INTERNAL, INTERNAL);
|
|
66221
66435
|
}
|
|
66222
66436
|
__name(PromiseMapSeries, "PromiseMapSeries");
|
|
66223
|
-
Promise2.prototype.each = function(
|
|
66224
|
-
return PromiseReduce(this,
|
|
66437
|
+
Promise2.prototype.each = function(fn4) {
|
|
66438
|
+
return PromiseReduce(this, fn4, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, this, void 0);
|
|
66225
66439
|
};
|
|
66226
|
-
Promise2.prototype.mapSeries = function(
|
|
66227
|
-
return PromiseReduce(this,
|
|
66440
|
+
Promise2.prototype.mapSeries = function(fn4) {
|
|
66441
|
+
return PromiseReduce(this, fn4, INTERNAL, INTERNAL);
|
|
66228
66442
|
};
|
|
66229
|
-
Promise2.each = function(promises,
|
|
66230
|
-
return PromiseReduce(promises,
|
|
66443
|
+
Promise2.each = function(promises, fn4) {
|
|
66444
|
+
return PromiseReduce(promises, fn4, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, promises, void 0);
|
|
66231
66445
|
};
|
|
66232
66446
|
Promise2.mapSeries = PromiseMapSeries;
|
|
66233
66447
|
};
|
|
@@ -66416,11 +66630,11 @@ var bluebird = { exports: {} };
|
|
|
66416
66630
|
}, {}], 14: [function(_dereq_2, module3, exports3) {
|
|
66417
66631
|
module3.exports = function(Promise2, INTERNAL) {
|
|
66418
66632
|
var PromiseMap = Promise2.map;
|
|
66419
|
-
Promise2.prototype.filter = function(
|
|
66420
|
-
return PromiseMap(this,
|
|
66633
|
+
Promise2.prototype.filter = function(fn4, options) {
|
|
66634
|
+
return PromiseMap(this, fn4, options, INTERNAL);
|
|
66421
66635
|
};
|
|
66422
|
-
Promise2.filter = function(promises,
|
|
66423
|
-
return PromiseMap(promises,
|
|
66636
|
+
Promise2.filter = function(promises, fn4, options) {
|
|
66637
|
+
return PromiseMap(promises, fn4, options, INTERNAL);
|
|
66424
66638
|
};
|
|
66425
66639
|
};
|
|
66426
66640
|
}, {}], 15: [function(_dereq_2, module3, exports3) {
|
|
@@ -66766,11 +66980,11 @@ var bluebird = { exports: {} };
|
|
|
66766
66980
|
return ret;
|
|
66767
66981
|
};
|
|
66768
66982
|
};
|
|
66769
|
-
Promise2.coroutine.addYieldHandler = function(
|
|
66770
|
-
if (typeof
|
|
66771
|
-
throw new TypeError2("expecting a function but got " + util2.classString(
|
|
66983
|
+
Promise2.coroutine.addYieldHandler = function(fn4) {
|
|
66984
|
+
if (typeof fn4 !== "function") {
|
|
66985
|
+
throw new TypeError2("expecting a function but got " + util2.classString(fn4));
|
|
66772
66986
|
}
|
|
66773
|
-
yieldHandlers.push(
|
|
66987
|
+
yieldHandlers.push(fn4);
|
|
66774
66988
|
};
|
|
66775
66989
|
Promise2.spawn = function(generatorFunction) {
|
|
66776
66990
|
debug.deprecated("Promise.spawn()", "Promise.coroutine()");
|
|
@@ -66791,16 +67005,16 @@ var bluebird = { exports: {} };
|
|
|
66791
67005
|
util2.errorObj;
|
|
66792
67006
|
Promise2.join = function() {
|
|
66793
67007
|
var last2 = arguments.length - 1;
|
|
66794
|
-
var
|
|
67008
|
+
var fn4;
|
|
66795
67009
|
if (last2 > 0 && typeof arguments[last2] === "function") {
|
|
66796
|
-
|
|
67010
|
+
fn4 = arguments[last2];
|
|
66797
67011
|
var ret;
|
|
66798
67012
|
}
|
|
66799
67013
|
var args = [].slice.call(arguments);
|
|
66800
|
-
if (
|
|
67014
|
+
if (fn4)
|
|
66801
67015
|
args.pop();
|
|
66802
67016
|
var ret = new PromiseArray(args).promise();
|
|
66803
|
-
return
|
|
67017
|
+
return fn4 !== void 0 ? ret.spread(fn4) : ret;
|
|
66804
67018
|
};
|
|
66805
67019
|
};
|
|
66806
67020
|
}, { "./util": 36 }], 18: [function(_dereq_2, module3, exports3) {
|
|
@@ -66809,11 +67023,11 @@ var bluebird = { exports: {} };
|
|
|
66809
67023
|
var tryCatch = util2.tryCatch;
|
|
66810
67024
|
var errorObj = util2.errorObj;
|
|
66811
67025
|
var async = Promise2._async;
|
|
66812
|
-
function MappingPromiseArray(promises,
|
|
67026
|
+
function MappingPromiseArray(promises, fn4, limit2, _filter) {
|
|
66813
67027
|
this.constructor$(promises);
|
|
66814
67028
|
this._promise._captureStackTrace();
|
|
66815
67029
|
var context = Promise2._getContext();
|
|
66816
|
-
this._callback = util2.contextBind(context,
|
|
67030
|
+
this._callback = util2.contextBind(context, fn4);
|
|
66817
67031
|
this._preservedValues = _filter === INTERNAL ? new Array(this.length()) : null;
|
|
66818
67032
|
this._limit = limit2;
|
|
66819
67033
|
this._inFlight = 0;
|
|
@@ -66931,9 +67145,9 @@ var bluebird = { exports: {} };
|
|
|
66931
67145
|
MappingPromiseArray.prototype.preservedValues = function() {
|
|
66932
67146
|
return this._preservedValues;
|
|
66933
67147
|
};
|
|
66934
|
-
function map3(promises,
|
|
66935
|
-
if (typeof
|
|
66936
|
-
return apiRejection("expecting a function but got " + util2.classString(
|
|
67148
|
+
function map3(promises, fn4, options, _filter) {
|
|
67149
|
+
if (typeof fn4 !== "function") {
|
|
67150
|
+
return apiRejection("expecting a function but got " + util2.classString(fn4));
|
|
66937
67151
|
}
|
|
66938
67152
|
var limit2 = 0;
|
|
66939
67153
|
if (options !== void 0) {
|
|
@@ -66951,29 +67165,29 @@ var bluebird = { exports: {} };
|
|
|
66951
67165
|
}
|
|
66952
67166
|
}
|
|
66953
67167
|
limit2 = typeof limit2 === "number" && isFinite(limit2) && limit2 >= 1 ? limit2 : 0;
|
|
66954
|
-
return new MappingPromiseArray(promises,
|
|
67168
|
+
return new MappingPromiseArray(promises, fn4, limit2, _filter).promise();
|
|
66955
67169
|
}
|
|
66956
67170
|
__name(map3, "map");
|
|
66957
|
-
Promise2.prototype.map = function(
|
|
66958
|
-
return map3(this,
|
|
67171
|
+
Promise2.prototype.map = function(fn4, options) {
|
|
67172
|
+
return map3(this, fn4, options, null);
|
|
66959
67173
|
};
|
|
66960
|
-
Promise2.map = function(promises,
|
|
66961
|
-
return map3(promises,
|
|
67174
|
+
Promise2.map = function(promises, fn4, options, _filter) {
|
|
67175
|
+
return map3(promises, fn4, options, _filter);
|
|
66962
67176
|
};
|
|
66963
67177
|
};
|
|
66964
67178
|
}, { "./util": 36 }], 19: [function(_dereq_2, module3, exports3) {
|
|
66965
67179
|
module3.exports = function(Promise2, INTERNAL, tryConvertToPromise, apiRejection, debug) {
|
|
66966
67180
|
var util2 = _dereq_2("./util");
|
|
66967
67181
|
var tryCatch = util2.tryCatch;
|
|
66968
|
-
Promise2.method = function(
|
|
66969
|
-
if (typeof
|
|
66970
|
-
throw new Promise2.TypeError("expecting a function but got " + util2.classString(
|
|
67182
|
+
Promise2.method = function(fn4) {
|
|
67183
|
+
if (typeof fn4 !== "function") {
|
|
67184
|
+
throw new Promise2.TypeError("expecting a function but got " + util2.classString(fn4));
|
|
66971
67185
|
}
|
|
66972
67186
|
return function() {
|
|
66973
67187
|
var ret = new Promise2(INTERNAL);
|
|
66974
67188
|
ret._captureStackTrace();
|
|
66975
67189
|
ret._pushContext();
|
|
66976
|
-
var value = tryCatch(
|
|
67190
|
+
var value = tryCatch(fn4).apply(this, arguments);
|
|
66977
67191
|
var promiseCreated = ret._popContext();
|
|
66978
67192
|
debug.checkForgottenReturns(
|
|
66979
67193
|
value,
|
|
@@ -66985,9 +67199,9 @@ var bluebird = { exports: {} };
|
|
|
66985
67199
|
return ret;
|
|
66986
67200
|
};
|
|
66987
67201
|
};
|
|
66988
|
-
Promise2.attempt = Promise2["try"] = function(
|
|
66989
|
-
if (typeof
|
|
66990
|
-
return apiRejection("expecting a function but got " + util2.classString(
|
|
67202
|
+
Promise2.attempt = Promise2["try"] = function(fn4) {
|
|
67203
|
+
if (typeof fn4 !== "function") {
|
|
67204
|
+
return apiRejection("expecting a function but got " + util2.classString(fn4));
|
|
66991
67205
|
}
|
|
66992
67206
|
var ret = new Promise2(INTERNAL);
|
|
66993
67207
|
ret._captureStackTrace();
|
|
@@ -66997,9 +67211,9 @@ var bluebird = { exports: {} };
|
|
|
66997
67211
|
debug.deprecated("calling Promise.try with more than 1 argument");
|
|
66998
67212
|
var arg = arguments[1];
|
|
66999
67213
|
var ctx2 = arguments[2];
|
|
67000
|
-
value = util2.isArray(arg) ? tryCatch(
|
|
67214
|
+
value = util2.isArray(arg) ? tryCatch(fn4).apply(ctx2, arg) : tryCatch(fn4).call(ctx2, arg);
|
|
67001
67215
|
} else {
|
|
67002
|
-
value = tryCatch(
|
|
67216
|
+
value = tryCatch(fn4)();
|
|
67003
67217
|
}
|
|
67004
67218
|
var promiseCreated = ret._popContext();
|
|
67005
67219
|
debug.checkForgottenReturns(
|
|
@@ -67238,7 +67452,7 @@ var bluebird = { exports: {} };
|
|
|
67238
67452
|
Promise2.prototype.toString = function() {
|
|
67239
67453
|
return "[object Promise]";
|
|
67240
67454
|
};
|
|
67241
|
-
Promise2.prototype.caught = Promise2.prototype["catch"] = function(
|
|
67455
|
+
Promise2.prototype.caught = Promise2.prototype["catch"] = function(fn4) {
|
|
67242
67456
|
var len = arguments.length;
|
|
67243
67457
|
if (len > 1) {
|
|
67244
67458
|
var catchInstances = new Array(len - 1), j = 0, i;
|
|
@@ -67251,13 +67465,13 @@ var bluebird = { exports: {} };
|
|
|
67251
67465
|
}
|
|
67252
67466
|
}
|
|
67253
67467
|
catchInstances.length = j;
|
|
67254
|
-
|
|
67255
|
-
if (typeof
|
|
67256
|
-
throw new TypeError2("The last argument to .catch() must be a function, got " + util2.toString(
|
|
67468
|
+
fn4 = arguments[i];
|
|
67469
|
+
if (typeof fn4 !== "function") {
|
|
67470
|
+
throw new TypeError2("The last argument to .catch() must be a function, got " + util2.toString(fn4));
|
|
67257
67471
|
}
|
|
67258
|
-
return this.then(void 0, catchFilter(catchInstances,
|
|
67472
|
+
return this.then(void 0, catchFilter(catchInstances, fn4, this));
|
|
67259
67473
|
}
|
|
67260
|
-
return this.then(void 0,
|
|
67474
|
+
return this.then(void 0, fn4);
|
|
67261
67475
|
};
|
|
67262
67476
|
Promise2.prototype.reflect = function() {
|
|
67263
67477
|
return this._then(
|
|
@@ -67282,11 +67496,11 @@ var bluebird = { exports: {} };
|
|
|
67282
67496
|
var promise = this._then(didFulfill, didReject, void 0, void 0, void 0);
|
|
67283
67497
|
promise._setIsFinal();
|
|
67284
67498
|
};
|
|
67285
|
-
Promise2.prototype.spread = function(
|
|
67286
|
-
if (typeof
|
|
67287
|
-
return apiRejection("expecting a function but got " + util2.classString(
|
|
67499
|
+
Promise2.prototype.spread = function(fn4) {
|
|
67500
|
+
if (typeof fn4 !== "function") {
|
|
67501
|
+
return apiRejection("expecting a function but got " + util2.classString(fn4));
|
|
67288
67502
|
}
|
|
67289
|
-
return this.all()._then(
|
|
67503
|
+
return this.all()._then(fn4, void 0, void 0, APPLY, void 0);
|
|
67290
67504
|
};
|
|
67291
67505
|
Promise2.prototype.toJSON = function() {
|
|
67292
67506
|
var ret = {
|
|
@@ -67310,18 +67524,18 @@ var bluebird = { exports: {} };
|
|
|
67310
67524
|
}
|
|
67311
67525
|
return new PromiseArray(this).promise();
|
|
67312
67526
|
};
|
|
67313
|
-
Promise2.prototype.error = function(
|
|
67314
|
-
return this.caught(util2.originatesFromRejection,
|
|
67527
|
+
Promise2.prototype.error = function(fn4) {
|
|
67528
|
+
return this.caught(util2.originatesFromRejection, fn4);
|
|
67315
67529
|
};
|
|
67316
67530
|
Promise2.getNewLibraryCopy = module3.exports;
|
|
67317
67531
|
Promise2.is = function(val) {
|
|
67318
67532
|
return val instanceof Promise2;
|
|
67319
67533
|
};
|
|
67320
|
-
Promise2.fromNode = Promise2.fromCallback = function(
|
|
67534
|
+
Promise2.fromNode = Promise2.fromCallback = function(fn4) {
|
|
67321
67535
|
var ret = new Promise2(INTERNAL);
|
|
67322
67536
|
ret._captureStackTrace();
|
|
67323
67537
|
var multiArgs = arguments.length > 1 ? !!Object(arguments[1]).multiArgs : false;
|
|
67324
|
-
var result = tryCatch(
|
|
67538
|
+
var result = tryCatch(fn4)(nodebackForPromise(ret, multiArgs));
|
|
67325
67539
|
if (result === errorObj) {
|
|
67326
67540
|
ret._rejectCallback(result.e, true);
|
|
67327
67541
|
}
|
|
@@ -67349,11 +67563,11 @@ var bluebird = { exports: {} };
|
|
|
67349
67563
|
ret._rejectCallback(reason, true);
|
|
67350
67564
|
return ret;
|
|
67351
67565
|
};
|
|
67352
|
-
Promise2.setScheduler = function(
|
|
67353
|
-
if (typeof
|
|
67354
|
-
throw new TypeError2("expecting a function but got " + util2.classString(
|
|
67566
|
+
Promise2.setScheduler = function(fn4) {
|
|
67567
|
+
if (typeof fn4 !== "function") {
|
|
67568
|
+
throw new TypeError2("expecting a function but got " + util2.classString(fn4));
|
|
67355
67569
|
}
|
|
67356
|
-
return async.setScheduler(
|
|
67570
|
+
return async.setScheduler(fn4);
|
|
67357
67571
|
};
|
|
67358
67572
|
Promise2.prototype._then = function(didFulfill, didReject, _2, receiver, internalData) {
|
|
67359
67573
|
var haveInternalData = internalData !== void 0;
|
|
@@ -68070,9 +68284,9 @@ var bluebird = { exports: {} };
|
|
|
68070
68284
|
return !noCopyPropsPattern.test(key);
|
|
68071
68285
|
}
|
|
68072
68286
|
__name(propsFilter, "propsFilter");
|
|
68073
|
-
function isPromisified(
|
|
68287
|
+
function isPromisified(fn4) {
|
|
68074
68288
|
try {
|
|
68075
|
-
return
|
|
68289
|
+
return fn4.__isPromisified__ === true;
|
|
68076
68290
|
} catch (e2) {
|
|
68077
68291
|
return false;
|
|
68078
68292
|
}
|
|
@@ -68120,13 +68334,13 @@ var bluebird = { exports: {} };
|
|
|
68120
68334
|
return str.replace(/([$])/, "\\$");
|
|
68121
68335
|
}, "escapeIdentRegex");
|
|
68122
68336
|
var makeNodePromisifiedEval;
|
|
68123
|
-
function makeNodePromisifiedClosure(callback, receiver, _2,
|
|
68337
|
+
function makeNodePromisifiedClosure(callback, receiver, _2, fn4, __, multiArgs) {
|
|
68124
68338
|
var defaultThis = function() {
|
|
68125
68339
|
return this;
|
|
68126
68340
|
}();
|
|
68127
68341
|
var method = callback;
|
|
68128
68342
|
if (typeof method === "string") {
|
|
68129
|
-
callback =
|
|
68343
|
+
callback = fn4;
|
|
68130
68344
|
}
|
|
68131
68345
|
function promisified() {
|
|
68132
68346
|
var _receiver = receiver;
|
|
@@ -68135,9 +68349,9 @@ var bluebird = { exports: {} };
|
|
|
68135
68349
|
var promise = new Promise2(INTERNAL);
|
|
68136
68350
|
promise._captureStackTrace();
|
|
68137
68351
|
var cb = typeof method === "string" && this !== defaultThis ? this[method] : callback;
|
|
68138
|
-
var
|
|
68352
|
+
var fn5 = nodebackForPromise(promise, multiArgs);
|
|
68139
68353
|
try {
|
|
68140
|
-
cb.apply(_receiver, withAppended(arguments,
|
|
68354
|
+
cb.apply(_receiver, withAppended(arguments, fn5));
|
|
68141
68355
|
} catch (e2) {
|
|
68142
68356
|
promise._rejectCallback(maybeWrapAsError(e2), true, true);
|
|
68143
68357
|
}
|
|
@@ -68156,17 +68370,17 @@ var bluebird = { exports: {} };
|
|
|
68156
68370
|
var methods = promisifiableMethods(obj, suffix, suffixRegexp, filter);
|
|
68157
68371
|
for (var i = 0, len = methods.length; i < len; i += 2) {
|
|
68158
68372
|
var key = methods[i];
|
|
68159
|
-
var
|
|
68373
|
+
var fn4 = methods[i + 1];
|
|
68160
68374
|
var promisifiedKey = key + suffix;
|
|
68161
68375
|
if (promisifier === makeNodePromisified) {
|
|
68162
|
-
obj[promisifiedKey] = makeNodePromisified(key, THIS, key,
|
|
68376
|
+
obj[promisifiedKey] = makeNodePromisified(key, THIS, key, fn4, suffix, multiArgs);
|
|
68163
68377
|
} else {
|
|
68164
|
-
var promisified = promisifier(
|
|
68378
|
+
var promisified = promisifier(fn4, function() {
|
|
68165
68379
|
return makeNodePromisified(
|
|
68166
68380
|
key,
|
|
68167
68381
|
THIS,
|
|
68168
68382
|
key,
|
|
68169
|
-
|
|
68383
|
+
fn4,
|
|
68170
68384
|
suffix,
|
|
68171
68385
|
multiArgs
|
|
68172
68386
|
);
|
|
@@ -68190,18 +68404,18 @@ var bluebird = { exports: {} };
|
|
|
68190
68404
|
);
|
|
68191
68405
|
}
|
|
68192
68406
|
__name(promisify, "promisify");
|
|
68193
|
-
Promise2.promisify = function(
|
|
68194
|
-
if (typeof
|
|
68195
|
-
throw new TypeError2("expecting a function but got " + util2.classString(
|
|
68407
|
+
Promise2.promisify = function(fn4, options) {
|
|
68408
|
+
if (typeof fn4 !== "function") {
|
|
68409
|
+
throw new TypeError2("expecting a function but got " + util2.classString(fn4));
|
|
68196
68410
|
}
|
|
68197
|
-
if (isPromisified(
|
|
68198
|
-
return
|
|
68411
|
+
if (isPromisified(fn4)) {
|
|
68412
|
+
return fn4;
|
|
68199
68413
|
}
|
|
68200
68414
|
options = Object(options);
|
|
68201
68415
|
var receiver = options.context === void 0 ? THIS : options.context;
|
|
68202
68416
|
var multiArgs = !!options.multiArgs;
|
|
68203
|
-
var ret = promisify(
|
|
68204
|
-
util2.copyDescriptors(
|
|
68417
|
+
var ret = promisify(fn4, receiver, multiArgs);
|
|
68418
|
+
util2.copyDescriptors(fn4, ret, propsFilter);
|
|
68205
68419
|
return ret;
|
|
68206
68420
|
};
|
|
68207
68421
|
Promise2.promisifyAll = function(target, options) {
|
|
@@ -68376,10 +68590,10 @@ var bluebird = { exports: {} };
|
|
|
68376
68590
|
this[i] = arg;
|
|
68377
68591
|
this._length = length + 1;
|
|
68378
68592
|
};
|
|
68379
|
-
Queue.prototype.push = function(
|
|
68593
|
+
Queue.prototype.push = function(fn4, receiver, arg) {
|
|
68380
68594
|
var length = this.length() + 3;
|
|
68381
68595
|
if (this._willBeOverCapacity(length)) {
|
|
68382
|
-
this._pushOne(
|
|
68596
|
+
this._pushOne(fn4);
|
|
68383
68597
|
this._pushOne(receiver);
|
|
68384
68598
|
this._pushOne(arg);
|
|
68385
68599
|
return;
|
|
@@ -68387,7 +68601,7 @@ var bluebird = { exports: {} };
|
|
|
68387
68601
|
var j = this._front + length - 3;
|
|
68388
68602
|
this._checkCapacity(length);
|
|
68389
68603
|
var wrapMask = this._capacity - 1;
|
|
68390
|
-
this[j + 0 & wrapMask] =
|
|
68604
|
+
this[j + 0 & wrapMask] = fn4;
|
|
68391
68605
|
this[j + 1 & wrapMask] = receiver;
|
|
68392
68606
|
this[j + 2 & wrapMask] = arg;
|
|
68393
68607
|
this._length = length;
|
|
@@ -68460,10 +68674,10 @@ var bluebird = { exports: {} };
|
|
|
68460
68674
|
module3.exports = function(Promise2, PromiseArray, apiRejection, tryConvertToPromise, INTERNAL, debug) {
|
|
68461
68675
|
var util2 = _dereq_2("./util");
|
|
68462
68676
|
var tryCatch = util2.tryCatch;
|
|
68463
|
-
function ReductionPromiseArray(promises,
|
|
68677
|
+
function ReductionPromiseArray(promises, fn4, initialValue, _each) {
|
|
68464
68678
|
this.constructor$(promises);
|
|
68465
68679
|
var context = Promise2._getContext();
|
|
68466
|
-
this._fn = util2.contextBind(context,
|
|
68680
|
+
this._fn = util2.contextBind(context, fn4);
|
|
68467
68681
|
if (initialValue !== void 0) {
|
|
68468
68682
|
initialValue = Promise2.resolve(initialValue);
|
|
68469
68683
|
initialValue._attachCancellationCallback(this);
|
|
@@ -68557,11 +68771,11 @@ var bluebird = { exports: {} };
|
|
|
68557
68771
|
}
|
|
68558
68772
|
value._then(completed, completed, void 0, value, this);
|
|
68559
68773
|
};
|
|
68560
|
-
Promise2.prototype.reduce = function(
|
|
68561
|
-
return reduce(this,
|
|
68774
|
+
Promise2.prototype.reduce = function(fn4, initialValue) {
|
|
68775
|
+
return reduce(this, fn4, initialValue, null);
|
|
68562
68776
|
};
|
|
68563
|
-
Promise2.reduce = function(promises,
|
|
68564
|
-
return reduce(promises,
|
|
68777
|
+
Promise2.reduce = function(promises, fn4, initialValue, _each) {
|
|
68778
|
+
return reduce(promises, fn4, initialValue, _each);
|
|
68565
68779
|
};
|
|
68566
68780
|
function completed(valueOrReason, array2) {
|
|
68567
68781
|
if (this.isFulfilled()) {
|
|
@@ -68571,11 +68785,11 @@ var bluebird = { exports: {} };
|
|
|
68571
68785
|
}
|
|
68572
68786
|
}
|
|
68573
68787
|
__name(completed, "completed");
|
|
68574
|
-
function reduce(promises,
|
|
68575
|
-
if (typeof
|
|
68576
|
-
return apiRejection("expecting a function but got " + util2.classString(
|
|
68788
|
+
function reduce(promises, fn4, initialValue, _each) {
|
|
68789
|
+
if (typeof fn4 !== "function") {
|
|
68790
|
+
return apiRejection("expecting a function but got " + util2.classString(fn4));
|
|
68577
68791
|
}
|
|
68578
|
-
var array2 = new ReductionPromiseArray(promises,
|
|
68792
|
+
var array2 = new ReductionPromiseArray(promises, fn4, initialValue, _each);
|
|
68579
68793
|
return array2.promise();
|
|
68580
68794
|
}
|
|
68581
68795
|
__name(reduce, "reduce");
|
|
@@ -68594,13 +68808,13 @@ var bluebird = { exports: {} };
|
|
|
68594
68808
|
function gotValue(value) {
|
|
68595
68809
|
var array2 = this.array;
|
|
68596
68810
|
var promise = array2._promise;
|
|
68597
|
-
var
|
|
68811
|
+
var fn4 = tryCatch(array2._fn);
|
|
68598
68812
|
promise._pushContext();
|
|
68599
68813
|
var ret;
|
|
68600
68814
|
if (array2._eachValues !== void 0) {
|
|
68601
|
-
ret =
|
|
68815
|
+
ret = fn4.call(promise._boundValue(), value, this.index, this.length);
|
|
68602
68816
|
} else {
|
|
68603
|
-
ret =
|
|
68817
|
+
ret = fn4.call(
|
|
68604
68818
|
promise._boundValue(),
|
|
68605
68819
|
this.accum,
|
|
68606
68820
|
value,
|
|
@@ -68632,15 +68846,15 @@ var bluebird = { exports: {} };
|
|
|
68632
68846
|
if (util2.isNode && typeof MutationObserver === "undefined") {
|
|
68633
68847
|
var GlobalSetImmediate = commonjsGlobal.setImmediate;
|
|
68634
68848
|
var ProcessNextTick = process.nextTick;
|
|
68635
|
-
schedule = util2.isRecentNode ? function(
|
|
68636
|
-
GlobalSetImmediate.call(commonjsGlobal,
|
|
68637
|
-
} : function(
|
|
68638
|
-
ProcessNextTick.call(process,
|
|
68849
|
+
schedule = util2.isRecentNode ? function(fn4) {
|
|
68850
|
+
GlobalSetImmediate.call(commonjsGlobal, fn4);
|
|
68851
|
+
} : function(fn4) {
|
|
68852
|
+
ProcessNextTick.call(process, fn4);
|
|
68639
68853
|
};
|
|
68640
68854
|
} else if (typeof NativePromise === "function" && typeof NativePromise.resolve === "function") {
|
|
68641
68855
|
var nativePromise = NativePromise.resolve();
|
|
68642
|
-
schedule = /* @__PURE__ */ __name(function(
|
|
68643
|
-
nativePromise.then(
|
|
68856
|
+
schedule = /* @__PURE__ */ __name(function(fn4) {
|
|
68857
|
+
nativePromise.then(fn4);
|
|
68644
68858
|
}, "schedule");
|
|
68645
68859
|
} else if (typeof MutationObserver !== "undefined" && !(typeof window !== "undefined" && window.navigator && (window.navigator.standalone || window.cordova)) && "classList" in document.documentElement) {
|
|
68646
68860
|
schedule = function() {
|
|
@@ -68659,22 +68873,22 @@ var bluebird = { exports: {} };
|
|
|
68659
68873
|
toggleScheduled = true;
|
|
68660
68874
|
div22.classList.toggle("foo");
|
|
68661
68875
|
}, "scheduleToggle");
|
|
68662
|
-
return /* @__PURE__ */ __name(function schedule2(
|
|
68876
|
+
return /* @__PURE__ */ __name(function schedule2(fn4) {
|
|
68663
68877
|
var o3 = new MutationObserver(function() {
|
|
68664
68878
|
o3.disconnect();
|
|
68665
|
-
|
|
68879
|
+
fn4();
|
|
68666
68880
|
});
|
|
68667
68881
|
o3.observe(div2, opts);
|
|
68668
68882
|
scheduleToggle();
|
|
68669
68883
|
}, "schedule");
|
|
68670
68884
|
}();
|
|
68671
68885
|
} else if (typeof setImmediate !== "undefined") {
|
|
68672
|
-
schedule = /* @__PURE__ */ __name(function(
|
|
68673
|
-
setImmediate(
|
|
68886
|
+
schedule = /* @__PURE__ */ __name(function(fn4) {
|
|
68887
|
+
setImmediate(fn4);
|
|
68674
68888
|
}, "schedule");
|
|
68675
68889
|
} else if (typeof setTimeout !== "undefined") {
|
|
68676
|
-
schedule = /* @__PURE__ */ __name(function(
|
|
68677
|
-
setTimeout(
|
|
68890
|
+
schedule = /* @__PURE__ */ __name(function(fn4) {
|
|
68891
|
+
setTimeout(fn4, 0);
|
|
68678
68892
|
}, "schedule");
|
|
68679
68893
|
} else {
|
|
68680
68894
|
schedule = noAsyncScheduler;
|
|
@@ -69202,14 +69416,14 @@ var bluebird = { exports: {} };
|
|
|
69202
69416
|
Disposer.isDisposer = function(d2) {
|
|
69203
69417
|
return d2 != null && typeof d2.resource === "function" && typeof d2.tryDispose === "function";
|
|
69204
69418
|
};
|
|
69205
|
-
function FunctionDisposer(
|
|
69206
|
-
this.constructor$(
|
|
69419
|
+
function FunctionDisposer(fn4, promise, context) {
|
|
69420
|
+
this.constructor$(fn4, promise, context);
|
|
69207
69421
|
}
|
|
69208
69422
|
__name(FunctionDisposer, "FunctionDisposer");
|
|
69209
69423
|
inherits(FunctionDisposer, Disposer);
|
|
69210
69424
|
FunctionDisposer.prototype.doDispose = function(resource, inspection) {
|
|
69211
|
-
var
|
|
69212
|
-
return
|
|
69425
|
+
var fn4 = this.data();
|
|
69426
|
+
return fn4.call(resource, resource, inspection);
|
|
69213
69427
|
};
|
|
69214
69428
|
function maybeUnwrapDisposer(value) {
|
|
69215
69429
|
if (Disposer.isDisposer(value)) {
|
|
@@ -69240,9 +69454,9 @@ var bluebird = { exports: {} };
|
|
|
69240
69454
|
return apiRejection(
|
|
69241
69455
|
"you must pass at least 2 arguments to Promise.using"
|
|
69242
69456
|
);
|
|
69243
|
-
var
|
|
69244
|
-
if (typeof
|
|
69245
|
-
return apiRejection("expecting a function but got " + util2.classString(
|
|
69457
|
+
var fn4 = arguments[len - 1];
|
|
69458
|
+
if (typeof fn4 !== "function") {
|
|
69459
|
+
return apiRejection("expecting a function but got " + util2.classString(fn4));
|
|
69246
69460
|
}
|
|
69247
69461
|
var input;
|
|
69248
69462
|
var spreadArgs = true;
|
|
@@ -69289,8 +69503,8 @@ var bluebird = { exports: {} };
|
|
|
69289
69503
|
inspections[i2] = inspection.value();
|
|
69290
69504
|
}
|
|
69291
69505
|
promise._pushContext();
|
|
69292
|
-
|
|
69293
|
-
var ret = spreadArgs ?
|
|
69506
|
+
fn4 = tryCatch(fn4);
|
|
69507
|
+
var ret = spreadArgs ? fn4.apply(void 0, inspections) : fn4(inspections);
|
|
69294
69508
|
var promiseCreated = promise._popContext();
|
|
69295
69509
|
debug.checkForgottenReturns(
|
|
69296
69510
|
ret,
|
|
@@ -69322,9 +69536,9 @@ var bluebird = { exports: {} };
|
|
|
69322
69536
|
this._bitField = this._bitField & ~131072;
|
|
69323
69537
|
this._disposer = void 0;
|
|
69324
69538
|
};
|
|
69325
|
-
Promise2.prototype.disposer = function(
|
|
69326
|
-
if (typeof
|
|
69327
|
-
return new FunctionDisposer(
|
|
69539
|
+
Promise2.prototype.disposer = function(fn4) {
|
|
69540
|
+
if (typeof fn4 === "function") {
|
|
69541
|
+
return new FunctionDisposer(fn4, this, createContext());
|
|
69328
69542
|
}
|
|
69329
69543
|
throw new TypeError2();
|
|
69330
69544
|
};
|
|
@@ -69346,8 +69560,8 @@ var bluebird = { exports: {} };
|
|
|
69346
69560
|
}
|
|
69347
69561
|
}
|
|
69348
69562
|
__name(tryCatcher, "tryCatcher");
|
|
69349
|
-
function tryCatch(
|
|
69350
|
-
tryCatchTarget =
|
|
69563
|
+
function tryCatch(fn4) {
|
|
69564
|
+
tryCatchTarget = fn4;
|
|
69351
69565
|
return tryCatcher;
|
|
69352
69566
|
}
|
|
69353
69567
|
__name(tryCatch, "tryCatch");
|
|
@@ -69484,13 +69698,13 @@ var bluebird = { exports: {} };
|
|
|
69484
69698
|
}
|
|
69485
69699
|
}();
|
|
69486
69700
|
var thisAssignmentPattern = /this\s*\.\s*\S+\s*=/;
|
|
69487
|
-
function isClass(
|
|
69701
|
+
function isClass(fn4) {
|
|
69488
69702
|
try {
|
|
69489
|
-
if (typeof
|
|
69490
|
-
var keys3 = es5.names(
|
|
69703
|
+
if (typeof fn4 === "function") {
|
|
69704
|
+
var keys3 = es5.names(fn4.prototype);
|
|
69491
69705
|
var hasMethods = es5.isES5 && keys3.length > 1;
|
|
69492
69706
|
var hasMethodsOtherThanConstructor = keys3.length > 0 && !(keys3.length === 1 && keys3[0] === "constructor");
|
|
69493
|
-
var hasThisAssignmentAndStaticMethods = thisAssignmentPattern.test(
|
|
69707
|
+
var hasThisAssignmentAndStaticMethods = thisAssignmentPattern.test(fn4 + "") && es5.names(fn4).length > 0;
|
|
69494
69708
|
if (hasMethods || hasMethodsOtherThanConstructor || hasThisAssignmentAndStaticMethods) {
|
|
69495
69709
|
return true;
|
|
69496
69710
|
}
|
|
@@ -69662,8 +69876,8 @@ var bluebird = { exports: {} };
|
|
|
69662
69876
|
}
|
|
69663
69877
|
__name(contextBind, "contextBind");
|
|
69664
69878
|
var ret = {
|
|
69665
|
-
setReflectHandler: function(
|
|
69666
|
-
reflectHandler =
|
|
69879
|
+
setReflectHandler: function(fn4) {
|
|
69880
|
+
reflectHandler = fn4;
|
|
69667
69881
|
},
|
|
69668
69882
|
isClass,
|
|
69669
69883
|
isIdentifier,
|
|
@@ -74427,11 +74641,11 @@ var Resizer = (
|
|
|
74427
74641
|
}(React__namespace.PureComponent)
|
|
74428
74642
|
);
|
|
74429
74643
|
var src = { exports: {} };
|
|
74430
|
-
function memoize(
|
|
74644
|
+
function memoize(fn4, options) {
|
|
74431
74645
|
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
74432
74646
|
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
74433
74647
|
var strategy = options && options.strategy ? options.strategy : strategyDefault;
|
|
74434
|
-
return strategy(
|
|
74648
|
+
return strategy(fn4, {
|
|
74435
74649
|
cache,
|
|
74436
74650
|
serializer
|
|
74437
74651
|
});
|
|
@@ -74441,40 +74655,40 @@ function isPrimitive(value) {
|
|
|
74441
74655
|
return value == null || typeof value === "number" || typeof value === "boolean";
|
|
74442
74656
|
}
|
|
74443
74657
|
__name(isPrimitive, "isPrimitive");
|
|
74444
|
-
function monadic(
|
|
74658
|
+
function monadic(fn4, cache, serializer, arg) {
|
|
74445
74659
|
var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
|
|
74446
74660
|
var computedValue = cache.get(cacheKey);
|
|
74447
74661
|
if (typeof computedValue === "undefined") {
|
|
74448
|
-
computedValue =
|
|
74662
|
+
computedValue = fn4.call(this, arg);
|
|
74449
74663
|
cache.set(cacheKey, computedValue);
|
|
74450
74664
|
}
|
|
74451
74665
|
return computedValue;
|
|
74452
74666
|
}
|
|
74453
74667
|
__name(monadic, "monadic");
|
|
74454
|
-
function variadic(
|
|
74668
|
+
function variadic(fn4, cache, serializer) {
|
|
74455
74669
|
var args = Array.prototype.slice.call(arguments, 3);
|
|
74456
74670
|
var cacheKey = serializer(args);
|
|
74457
74671
|
var computedValue = cache.get(cacheKey);
|
|
74458
74672
|
if (typeof computedValue === "undefined") {
|
|
74459
|
-
computedValue =
|
|
74673
|
+
computedValue = fn4.apply(this, args);
|
|
74460
74674
|
cache.set(cacheKey, computedValue);
|
|
74461
74675
|
}
|
|
74462
74676
|
return computedValue;
|
|
74463
74677
|
}
|
|
74464
74678
|
__name(variadic, "variadic");
|
|
74465
|
-
function assemble(
|
|
74679
|
+
function assemble(fn4, context, strategy, cache, serialize2) {
|
|
74466
74680
|
return strategy.bind(
|
|
74467
74681
|
context,
|
|
74468
|
-
|
|
74682
|
+
fn4,
|
|
74469
74683
|
cache,
|
|
74470
74684
|
serialize2
|
|
74471
74685
|
);
|
|
74472
74686
|
}
|
|
74473
74687
|
__name(assemble, "assemble");
|
|
74474
|
-
function strategyDefault(
|
|
74475
|
-
var strategy =
|
|
74688
|
+
function strategyDefault(fn4, options) {
|
|
74689
|
+
var strategy = fn4.length === 1 ? monadic : variadic;
|
|
74476
74690
|
return assemble(
|
|
74477
|
-
|
|
74691
|
+
fn4,
|
|
74478
74692
|
this,
|
|
74479
74693
|
strategy,
|
|
74480
74694
|
options.cache.create(),
|
|
@@ -74482,10 +74696,10 @@ function strategyDefault(fn3, options) {
|
|
|
74482
74696
|
);
|
|
74483
74697
|
}
|
|
74484
74698
|
__name(strategyDefault, "strategyDefault");
|
|
74485
|
-
function strategyVariadic(
|
|
74699
|
+
function strategyVariadic(fn4, options) {
|
|
74486
74700
|
var strategy = variadic;
|
|
74487
74701
|
return assemble(
|
|
74488
|
-
|
|
74702
|
+
fn4,
|
|
74489
74703
|
this,
|
|
74490
74704
|
strategy,
|
|
74491
74705
|
options.cache.create(),
|
|
@@ -74493,10 +74707,10 @@ function strategyVariadic(fn3, options) {
|
|
|
74493
74707
|
);
|
|
74494
74708
|
}
|
|
74495
74709
|
__name(strategyVariadic, "strategyVariadic");
|
|
74496
|
-
function strategyMonadic(
|
|
74710
|
+
function strategyMonadic(fn4, options) {
|
|
74497
74711
|
var strategy = monadic;
|
|
74498
74712
|
return assemble(
|
|
74499
|
-
|
|
74713
|
+
fn4,
|
|
74500
74714
|
this,
|
|
74501
74715
|
strategy,
|
|
74502
74716
|
options.cache.create(),
|