@juo/orion-extensions 0.11.1-staging.1 → 0.11.1
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/extensions.js +1465 -972
- package/package.json +3 -3
package/dist/extensions.js
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __typeError = (msg) => {
|
|
3
|
-
throw TypeError(msg);
|
|
4
|
-
};
|
|
5
2
|
var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
6
|
-
var __publicField = (obj, key2, value) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
var __publicField = (obj, key2, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
var __accessCheck = (obj, member, msg) => {
|
|
8
|
+
if (!member.has(obj))
|
|
9
|
+
throw TypeError("Cannot " + msg);
|
|
10
|
+
};
|
|
11
|
+
var __privateGet = (obj, member, getter) => {
|
|
12
|
+
__accessCheck(obj, member, "read from private field");
|
|
13
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
14
|
+
};
|
|
15
|
+
var __privateAdd = (obj, member, value) => {
|
|
16
|
+
if (member.has(obj))
|
|
17
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
18
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
19
|
+
};
|
|
10
20
|
import { effect, injectContext, createCeRenderer, defineBlock, SubscriptionServiceContext, ProductServiceContext, LoginServiceContext, StateContext, WorkflowServiceContext, registerBlock } from "@juo/orion-core";
|
|
11
21
|
/**
|
|
12
22
|
* @vue/shared v3.5.13
|
|
@@ -17,7 +27,8 @@ import { effect, injectContext, createCeRenderer, defineBlock, SubscriptionServi
|
|
|
17
27
|
// @__NO_SIDE_EFFECTS__
|
|
18
28
|
function makeMap(str) {
|
|
19
29
|
const map = /* @__PURE__ */ Object.create(null);
|
|
20
|
-
for (const key2 of str.split(","))
|
|
30
|
+
for (const key2 of str.split(","))
|
|
31
|
+
map[key2] = 1;
|
|
21
32
|
return (val) => val in map;
|
|
22
33
|
}
|
|
23
34
|
const EMPTY_OBJ = {};
|
|
@@ -167,7 +178,8 @@ function includeBooleanAttr(value) {
|
|
|
167
178
|
return !!value || value === "";
|
|
168
179
|
}
|
|
169
180
|
function looseCompareArrays(a2, b) {
|
|
170
|
-
if (a2.length !== b.length)
|
|
181
|
+
if (a2.length !== b.length)
|
|
182
|
+
return false;
|
|
171
183
|
let equal = true;
|
|
172
184
|
for (let i2 = 0; equal && i2 < a2.length; i2++) {
|
|
173
185
|
equal = looseEqual(a2[i2], b[i2]);
|
|
@@ -175,7 +187,8 @@ function looseCompareArrays(a2, b) {
|
|
|
175
187
|
return equal;
|
|
176
188
|
}
|
|
177
189
|
function looseEqual(a2, b) {
|
|
178
|
-
if (a2 === b)
|
|
190
|
+
if (a2 === b)
|
|
191
|
+
return true;
|
|
179
192
|
let aValidType = isDate(a2);
|
|
180
193
|
let bValidType = isDate(b);
|
|
181
194
|
if (aValidType || bValidType) {
|
|
@@ -504,13 +517,15 @@ function endBatch() {
|
|
|
504
517
|
;
|
|
505
518
|
e2.trigger();
|
|
506
519
|
} catch (err) {
|
|
507
|
-
if (!error)
|
|
520
|
+
if (!error)
|
|
521
|
+
error = err;
|
|
508
522
|
}
|
|
509
523
|
}
|
|
510
524
|
e2 = next;
|
|
511
525
|
}
|
|
512
526
|
}
|
|
513
|
-
if (error)
|
|
527
|
+
if (error)
|
|
528
|
+
throw error;
|
|
514
529
|
}
|
|
515
530
|
function prepareDeps(sub) {
|
|
516
531
|
for (let link = sub.deps; link; link = link.nextDep) {
|
|
@@ -526,7 +541,8 @@ function cleanupDeps(sub) {
|
|
|
526
541
|
while (link) {
|
|
527
542
|
const prev = link.prevDep;
|
|
528
543
|
if (link.version === -1) {
|
|
529
|
-
if (link === tail)
|
|
544
|
+
if (link === tail)
|
|
545
|
+
tail = prev;
|
|
530
546
|
removeSub(link);
|
|
531
547
|
removeDep(link);
|
|
532
548
|
} else {
|
|
@@ -704,7 +720,8 @@ class Dep {
|
|
|
704
720
|
notify(debugInfo) {
|
|
705
721
|
startBatch();
|
|
706
722
|
try {
|
|
707
|
-
if (false)
|
|
723
|
+
if (false)
|
|
724
|
+
;
|
|
708
725
|
for (let link = this.subs; link; link = link.prevSub) {
|
|
709
726
|
if (link.sub.notify()) {
|
|
710
727
|
;
|
|
@@ -729,7 +746,8 @@ function addSub(link) {
|
|
|
729
746
|
const currentTail = link.dep.subs;
|
|
730
747
|
if (currentTail !== link) {
|
|
731
748
|
link.prevSub = currentTail;
|
|
732
|
-
if (currentTail)
|
|
749
|
+
if (currentTail)
|
|
750
|
+
currentTail.nextSub = link;
|
|
733
751
|
}
|
|
734
752
|
link.dep.subs = link;
|
|
735
753
|
}
|
|
@@ -829,7 +847,8 @@ function getDepFromReactive(object, key2) {
|
|
|
829
847
|
}
|
|
830
848
|
function reactiveReadArray(array) {
|
|
831
849
|
const raw = toRaw(array);
|
|
832
|
-
if (raw === array)
|
|
850
|
+
if (raw === array)
|
|
851
|
+
return raw;
|
|
833
852
|
track$1(raw, "iterate", ARRAY_ITERATE_KEY);
|
|
834
853
|
return isShallow(array) ? raw : raw.map(toReactive);
|
|
835
854
|
}
|
|
@@ -1007,7 +1026,8 @@ const builtInSymbols = new Set(
|
|
|
1007
1026
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key2) => key2 !== "arguments" && key2 !== "caller").map((key2) => Symbol[key2]).filter(isSymbol)
|
|
1008
1027
|
);
|
|
1009
1028
|
function hasOwnProperty$2(key2) {
|
|
1010
|
-
if (!isSymbol(key2))
|
|
1029
|
+
if (!isSymbol(key2))
|
|
1030
|
+
key2 = String(key2);
|
|
1011
1031
|
const obj = toRaw(this);
|
|
1012
1032
|
track$1(obj, "has", key2);
|
|
1013
1033
|
return obj.hasOwnProperty(key2);
|
|
@@ -1018,7 +1038,8 @@ class BaseReactiveHandler {
|
|
|
1018
1038
|
this._isShallow = _isShallow;
|
|
1019
1039
|
}
|
|
1020
1040
|
get(target, key2, receiver) {
|
|
1021
|
-
if (key2 === "__v_skip")
|
|
1041
|
+
if (key2 === "__v_skip")
|
|
1042
|
+
return target["__v_skip"];
|
|
1022
1043
|
const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
|
|
1023
1044
|
if (key2 === "__v_isReactive") {
|
|
1024
1045
|
return !isReadonly2;
|
|
@@ -1646,14 +1667,16 @@ let activeWatcher = void 0;
|
|
|
1646
1667
|
function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {
|
|
1647
1668
|
if (owner) {
|
|
1648
1669
|
let cleanups = cleanupMap.get(owner);
|
|
1649
|
-
if (!cleanups)
|
|
1670
|
+
if (!cleanups)
|
|
1671
|
+
cleanupMap.set(owner, cleanups = []);
|
|
1650
1672
|
cleanups.push(cleanupFn);
|
|
1651
1673
|
}
|
|
1652
1674
|
}
|
|
1653
1675
|
function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
1654
1676
|
const { immediate, deep, once, scheduler: scheduler2, augmentJob, call } = options;
|
|
1655
1677
|
const reactiveGetter = (source2) => {
|
|
1656
|
-
if (deep)
|
|
1678
|
+
if (deep)
|
|
1679
|
+
return source2;
|
|
1657
1680
|
if (isShallow(source2) || deep === false || deep === 0)
|
|
1658
1681
|
return traverse(source2, 1);
|
|
1659
1682
|
return traverse(source2);
|
|
@@ -1680,7 +1703,8 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
1680
1703
|
return reactiveGetter(s2);
|
|
1681
1704
|
} else if (isFunction(s2)) {
|
|
1682
1705
|
return call ? call(s2, 2) : s2();
|
|
1683
|
-
} else
|
|
1706
|
+
} else
|
|
1707
|
+
;
|
|
1684
1708
|
});
|
|
1685
1709
|
} else if (isFunction(source)) {
|
|
1686
1710
|
if (cb) {
|
|
@@ -1771,7 +1795,8 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
1771
1795
|
if (call) {
|
|
1772
1796
|
call(cleanups, 4);
|
|
1773
1797
|
} else {
|
|
1774
|
-
for (const cleanup2 of cleanups)
|
|
1798
|
+
for (const cleanup2 of cleanups)
|
|
1799
|
+
cleanup2();
|
|
1775
1800
|
}
|
|
1776
1801
|
cleanupMap.delete(effect2);
|
|
1777
1802
|
}
|
|
@@ -1832,7 +1857,8 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
1832
1857
|
const stack = [];
|
|
1833
1858
|
let isWarning = false;
|
|
1834
1859
|
function warn$1(msg, ...args) {
|
|
1835
|
-
if (isWarning)
|
|
1860
|
+
if (isWarning)
|
|
1861
|
+
return;
|
|
1836
1862
|
isWarning = true;
|
|
1837
1863
|
pauseTracking();
|
|
1838
1864
|
const instance = stack.length ? stack[stack.length - 1].component : null;
|
|
@@ -2091,7 +2117,8 @@ function flushPostFlushCbs(seen) {
|
|
|
2091
2117
|
if (cb.flags & 4) {
|
|
2092
2118
|
cb.flags &= -2;
|
|
2093
2119
|
}
|
|
2094
|
-
if (!(cb.flags & 8))
|
|
2120
|
+
if (!(cb.flags & 8))
|
|
2121
|
+
cb();
|
|
2095
2122
|
cb.flags &= -2;
|
|
2096
2123
|
}
|
|
2097
2124
|
activePostFlushCbs = null;
|
|
@@ -2104,7 +2131,8 @@ function flushJobs(seen) {
|
|
|
2104
2131
|
for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
|
|
2105
2132
|
const job = queue[flushIndex];
|
|
2106
2133
|
if (job && !(job.flags & 8)) {
|
|
2107
|
-
if (false)
|
|
2134
|
+
if (false)
|
|
2135
|
+
;
|
|
2108
2136
|
if (job.flags & 4) {
|
|
2109
2137
|
job.flags &= ~1;
|
|
2110
2138
|
}
|
|
@@ -2143,7 +2171,8 @@ function setCurrentRenderingInstance(instance) {
|
|
|
2143
2171
|
return prev;
|
|
2144
2172
|
}
|
|
2145
2173
|
function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
2146
|
-
if (!ctx)
|
|
2174
|
+
if (!ctx)
|
|
2175
|
+
return fn;
|
|
2147
2176
|
if (fn._n) {
|
|
2148
2177
|
return fn;
|
|
2149
2178
|
}
|
|
@@ -2398,7 +2427,8 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
2398
2427
|
const done = args[1];
|
|
2399
2428
|
callHook2(hook, args);
|
|
2400
2429
|
if (isArray(hook)) {
|
|
2401
|
-
if (hook.every((hook2) => hook2.length <= 1))
|
|
2430
|
+
if (hook.every((hook2) => hook2.length <= 1))
|
|
2431
|
+
done();
|
|
2402
2432
|
} else if (hook.length <= 1) {
|
|
2403
2433
|
done();
|
|
2404
2434
|
}
|
|
@@ -2442,7 +2472,8 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
2442
2472
|
}
|
|
2443
2473
|
let called = false;
|
|
2444
2474
|
const done = el[enterCbKey] = (cancelled) => {
|
|
2445
|
-
if (called)
|
|
2475
|
+
if (called)
|
|
2476
|
+
return;
|
|
2446
2477
|
called = true;
|
|
2447
2478
|
if (cancelled) {
|
|
2448
2479
|
callHook2(cancelHook, [el]);
|
|
@@ -2474,7 +2505,8 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
2474
2505
|
callHook2(onBeforeLeave, [el]);
|
|
2475
2506
|
let called = false;
|
|
2476
2507
|
const done = el[leaveCbKey] = (cancelled) => {
|
|
2477
|
-
if (called)
|
|
2508
|
+
if (called)
|
|
2509
|
+
return;
|
|
2478
2510
|
called = true;
|
|
2479
2511
|
remove2();
|
|
2480
2512
|
if (cancelled) {
|
|
@@ -2502,7 +2534,8 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
2502
2534
|
instance,
|
|
2503
2535
|
postClone
|
|
2504
2536
|
);
|
|
2505
|
-
if (postClone)
|
|
2537
|
+
if (postClone)
|
|
2538
|
+
postClone(hooks2);
|
|
2506
2539
|
return hooks2;
|
|
2507
2540
|
}
|
|
2508
2541
|
};
|
|
@@ -2550,7 +2583,8 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
2550
2583
|
let child = children[i2];
|
|
2551
2584
|
const key2 = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i2);
|
|
2552
2585
|
if (child.type === Fragment) {
|
|
2553
|
-
if (child.patchFlag & 128)
|
|
2586
|
+
if (child.patchFlag & 128)
|
|
2587
|
+
keyedFragmentCount++;
|
|
2554
2588
|
ret = ret.concat(
|
|
2555
2589
|
getTransitionRawChildren(child.children, keepComment, key2)
|
|
2556
2590
|
);
|
|
@@ -2643,7 +2677,8 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2643
2677
|
}
|
|
2644
2678
|
} else {
|
|
2645
2679
|
ref3.value = [refValue];
|
|
2646
|
-
if (rawRef.k)
|
|
2680
|
+
if (rawRef.k)
|
|
2681
|
+
refs[rawRef.k] = ref3.value;
|
|
2647
2682
|
}
|
|
2648
2683
|
} else if (!existing.includes(refValue)) {
|
|
2649
2684
|
existing.push(refValue);
|
|
@@ -2656,8 +2691,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2656
2691
|
}
|
|
2657
2692
|
} else if (_isRef) {
|
|
2658
2693
|
ref3.value = value;
|
|
2659
|
-
if (rawRef.k)
|
|
2660
|
-
|
|
2694
|
+
if (rawRef.k)
|
|
2695
|
+
refs[rawRef.k] = value;
|
|
2696
|
+
} else
|
|
2697
|
+
;
|
|
2661
2698
|
};
|
|
2662
2699
|
if (value) {
|
|
2663
2700
|
doSet.id = -1;
|
|
@@ -2837,7 +2874,8 @@ function renderList(source, renderItem, cache, index2) {
|
|
|
2837
2874
|
}
|
|
2838
2875
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
2839
2876
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
2840
|
-
if (name !== "default")
|
|
2877
|
+
if (name !== "default")
|
|
2878
|
+
props.name = name;
|
|
2841
2879
|
return openBlock(), createBlock(
|
|
2842
2880
|
Fragment,
|
|
2843
2881
|
null,
|
|
@@ -2873,16 +2911,20 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
2873
2911
|
}
|
|
2874
2912
|
function ensureValidVNode(vnodes) {
|
|
2875
2913
|
return vnodes.some((child) => {
|
|
2876
|
-
if (!isVNode(child))
|
|
2877
|
-
|
|
2914
|
+
if (!isVNode(child))
|
|
2915
|
+
return true;
|
|
2916
|
+
if (child.type === Comment)
|
|
2917
|
+
return false;
|
|
2878
2918
|
if (child.type === Fragment && !ensureValidVNode(child.children))
|
|
2879
2919
|
return false;
|
|
2880
2920
|
return true;
|
|
2881
2921
|
}) ? vnodes : null;
|
|
2882
2922
|
}
|
|
2883
2923
|
const getPublicInstance = (i2) => {
|
|
2884
|
-
if (!i2)
|
|
2885
|
-
|
|
2924
|
+
if (!i2)
|
|
2925
|
+
return null;
|
|
2926
|
+
if (isStatefulComponent(i2))
|
|
2927
|
+
return getComponentPublicInstance(i2);
|
|
2886
2928
|
return getPublicInstance(i2.parent);
|
|
2887
2929
|
};
|
|
2888
2930
|
const publicPropertiesMap = (
|
|
@@ -2971,7 +3013,8 @@ const PublicInstanceProxyHandlers = {
|
|
|
2971
3013
|
{
|
|
2972
3014
|
return globalProperties[key2];
|
|
2973
3015
|
}
|
|
2974
|
-
} else
|
|
3016
|
+
} else
|
|
3017
|
+
;
|
|
2975
3018
|
},
|
|
2976
3019
|
set({ _: instance }, key2, value) {
|
|
2977
3020
|
const { data, setupState, ctx } = instance;
|
|
@@ -3022,8 +3065,10 @@ function normalizePropsOrEmits(props) {
|
|
|
3022
3065
|
) : props;
|
|
3023
3066
|
}
|
|
3024
3067
|
function mergeModels(a2, b) {
|
|
3025
|
-
if (!a2 || !b)
|
|
3026
|
-
|
|
3068
|
+
if (!a2 || !b)
|
|
3069
|
+
return a2 || b;
|
|
3070
|
+
if (isArray(a2) && isArray(b))
|
|
3071
|
+
return a2.concat(b);
|
|
3027
3072
|
return extend({}, normalizePropsOrEmits(a2), normalizePropsOrEmits(b));
|
|
3028
3073
|
}
|
|
3029
3074
|
let shouldCacheAccess = true;
|
|
@@ -3084,7 +3129,8 @@ function applyOptions(instance) {
|
|
|
3084
3129
|
}
|
|
3085
3130
|
if (dataOptions) {
|
|
3086
3131
|
const data = dataOptions.call(publicThis, publicThis);
|
|
3087
|
-
if (!isObject$1(data))
|
|
3132
|
+
if (!isObject$1(data))
|
|
3133
|
+
;
|
|
3088
3134
|
else {
|
|
3089
3135
|
instance.data = reactive(data);
|
|
3090
3136
|
}
|
|
@@ -3159,8 +3205,10 @@ function applyOptions(instance) {
|
|
|
3159
3205
|
if (inheritAttrs != null) {
|
|
3160
3206
|
instance.inheritAttrs = inheritAttrs;
|
|
3161
3207
|
}
|
|
3162
|
-
if (components)
|
|
3163
|
-
|
|
3208
|
+
if (components)
|
|
3209
|
+
instance.components = components;
|
|
3210
|
+
if (directives)
|
|
3211
|
+
instance.directives = directives;
|
|
3164
3212
|
if (serverPrefetch) {
|
|
3165
3213
|
markAsyncBoundary(instance);
|
|
3166
3214
|
}
|
|
@@ -3226,7 +3274,8 @@ function createWatcher(raw, ctx, publicThis, key2) {
|
|
|
3226
3274
|
watch(getter, handler, raw);
|
|
3227
3275
|
}
|
|
3228
3276
|
}
|
|
3229
|
-
} else
|
|
3277
|
+
} else
|
|
3278
|
+
;
|
|
3230
3279
|
}
|
|
3231
3280
|
function resolveMergedOptions(instance) {
|
|
3232
3281
|
const base = instance.type;
|
|
@@ -3269,7 +3318,8 @@ function mergeOptions(to, from, strats, asMixin = false) {
|
|
|
3269
3318
|
);
|
|
3270
3319
|
}
|
|
3271
3320
|
for (const key2 in from) {
|
|
3272
|
-
if (asMixin && key2 === "expose")
|
|
3321
|
+
if (asMixin && key2 === "expose")
|
|
3322
|
+
;
|
|
3273
3323
|
else {
|
|
3274
3324
|
const strat = internalOptionMergeStrats[key2] || strats && strats[key2];
|
|
3275
3325
|
to[key2] = strat ? strat(to[key2], from[key2]) : from[key2];
|
|
@@ -3356,8 +3406,10 @@ function mergeEmitsOrPropsOptions(to, from) {
|
|
|
3356
3406
|
}
|
|
3357
3407
|
}
|
|
3358
3408
|
function mergeWatchOptions(to, from) {
|
|
3359
|
-
if (!to)
|
|
3360
|
-
|
|
3409
|
+
if (!to)
|
|
3410
|
+
return from;
|
|
3411
|
+
if (!from)
|
|
3412
|
+
return to;
|
|
3361
3413
|
const merged = extend(/* @__PURE__ */ Object.create(null), to);
|
|
3362
3414
|
for (const key2 in from) {
|
|
3363
3415
|
merged[key2] = mergeAsArray(to[key2], from[key2]);
|
|
@@ -3412,14 +3464,16 @@ function createAppAPI(render2, hydrate) {
|
|
|
3412
3464
|
set config(v2) {
|
|
3413
3465
|
},
|
|
3414
3466
|
use(plugin, ...options) {
|
|
3415
|
-
if (installedPlugins.has(plugin))
|
|
3467
|
+
if (installedPlugins.has(plugin))
|
|
3468
|
+
;
|
|
3416
3469
|
else if (plugin && isFunction(plugin.install)) {
|
|
3417
3470
|
installedPlugins.add(plugin);
|
|
3418
3471
|
plugin.install(app, ...options);
|
|
3419
3472
|
} else if (isFunction(plugin)) {
|
|
3420
3473
|
installedPlugins.add(plugin);
|
|
3421
3474
|
plugin(app, ...options);
|
|
3422
|
-
} else
|
|
3475
|
+
} else
|
|
3476
|
+
;
|
|
3423
3477
|
return app;
|
|
3424
3478
|
},
|
|
3425
3479
|
mixin(mixin) {
|
|
@@ -3495,7 +3549,8 @@ function createAppAPI(render2, hydrate) {
|
|
|
3495
3549
|
}
|
|
3496
3550
|
let currentApp = null;
|
|
3497
3551
|
function provide(key2, value) {
|
|
3498
|
-
if (!currentInstance)
|
|
3552
|
+
if (!currentInstance)
|
|
3553
|
+
;
|
|
3499
3554
|
else {
|
|
3500
3555
|
let provides = currentInstance.provides;
|
|
3501
3556
|
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
@@ -3513,7 +3568,8 @@ function inject(key2, defaultValue, treatDefaultAsFactory = false) {
|
|
|
3513
3568
|
return provides[key2];
|
|
3514
3569
|
} else if (arguments.length > 1) {
|
|
3515
3570
|
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
3516
|
-
} else
|
|
3571
|
+
} else
|
|
3572
|
+
;
|
|
3517
3573
|
}
|
|
3518
3574
|
}
|
|
3519
3575
|
const internalObjectProto = {};
|
|
@@ -3728,7 +3784,8 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
3728
3784
|
hasExtends = true;
|
|
3729
3785
|
const [props, keys] = normalizePropsOptions(raw2, appContext, true);
|
|
3730
3786
|
extend(normalized, props);
|
|
3731
|
-
if (keys)
|
|
3787
|
+
if (keys)
|
|
3788
|
+
needCastKeys.push(...keys);
|
|
3732
3789
|
};
|
|
3733
3790
|
if (!asMixin && appContext.mixins.length) {
|
|
3734
3791
|
appContext.mixins.forEach(extendProps);
|
|
@@ -3809,7 +3866,8 @@ const normalizeSlot = (key2, rawSlot, ctx) => {
|
|
|
3809
3866
|
return rawSlot;
|
|
3810
3867
|
}
|
|
3811
3868
|
const normalized = withCtx((...args) => {
|
|
3812
|
-
if (false)
|
|
3869
|
+
if (false)
|
|
3870
|
+
;
|
|
3813
3871
|
return normalizeSlotValue(rawSlot(...args));
|
|
3814
3872
|
}, ctx);
|
|
3815
3873
|
normalized._c = false;
|
|
@@ -3818,7 +3876,8 @@ const normalizeSlot = (key2, rawSlot, ctx) => {
|
|
|
3818
3876
|
const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
3819
3877
|
const ctx = rawSlots._ctx;
|
|
3820
3878
|
for (const key2 in rawSlots) {
|
|
3821
|
-
if (isInternalKey(key2))
|
|
3879
|
+
if (isInternalKey(key2))
|
|
3880
|
+
continue;
|
|
3822
3881
|
const value = rawSlots[key2];
|
|
3823
3882
|
if (isFunction(value)) {
|
|
3824
3883
|
slots[key2] = normalizeSlot(key2, value, ctx);
|
|
@@ -3995,7 +4054,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3995
4054
|
optimized,
|
|
3996
4055
|
internals
|
|
3997
4056
|
);
|
|
3998
|
-
} else
|
|
4057
|
+
} else
|
|
4058
|
+
;
|
|
3999
4059
|
}
|
|
4000
4060
|
if (ref3 != null && parentComponent) {
|
|
4001
4061
|
setRef(ref3, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
|
|
@@ -4307,7 +4367,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4307
4367
|
}
|
|
4308
4368
|
}
|
|
4309
4369
|
for (const key2 in newProps) {
|
|
4310
|
-
if (isReservedProp(key2))
|
|
4370
|
+
if (isReservedProp(key2))
|
|
4371
|
+
continue;
|
|
4311
4372
|
const next = newProps[key2];
|
|
4312
4373
|
const prev = oldProps[key2];
|
|
4313
4374
|
if (next !== prev && key2 !== "value") {
|
|
@@ -4793,7 +4854,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4793
4854
|
let moved = false;
|
|
4794
4855
|
let maxNewIndexSoFar = 0;
|
|
4795
4856
|
const newIndexToOldIndexMap = new Array(toBePatched);
|
|
4796
|
-
for (i2 = 0; i2 < toBePatched; i2++)
|
|
4857
|
+
for (i2 = 0; i2 < toBePatched; i2++)
|
|
4858
|
+
newIndexToOldIndexMap[i2] = 0;
|
|
4797
4859
|
for (i2 = s1; i2 <= e1; i2++) {
|
|
4798
4860
|
const prevChild = c1[i2];
|
|
4799
4861
|
if (patched >= toBePatched) {
|
|
@@ -5367,7 +5429,8 @@ const getModelModifiers = (props, modelName) => {
|
|
|
5367
5429
|
return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
|
|
5368
5430
|
};
|
|
5369
5431
|
function emit(instance, event, ...rawArgs) {
|
|
5370
|
-
if (instance.isUnmounted)
|
|
5432
|
+
if (instance.isUnmounted)
|
|
5433
|
+
return;
|
|
5371
5434
|
const props = instance.vnode.props || EMPTY_OBJ;
|
|
5372
5435
|
let args = rawArgs;
|
|
5373
5436
|
const isModelListener2 = event.startsWith("update:");
|
|
@@ -5510,7 +5573,8 @@ function renderComponentRoot(instance) {
|
|
|
5510
5573
|
fallthroughAttrs = attrs;
|
|
5511
5574
|
} else {
|
|
5512
5575
|
const render22 = Component2;
|
|
5513
|
-
if (false)
|
|
5576
|
+
if (false)
|
|
5577
|
+
;
|
|
5514
5578
|
result = normalizeVNode(
|
|
5515
5579
|
render22.length > 1 ? render22(
|
|
5516
5580
|
false ? shallowReadonly(props) : props,
|
|
@@ -5839,7 +5903,8 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
5839
5903
|
);
|
|
5840
5904
|
}
|
|
5841
5905
|
function guardReactiveProps(props) {
|
|
5842
|
-
if (!props)
|
|
5906
|
+
if (!props)
|
|
5907
|
+
return null;
|
|
5843
5908
|
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
5844
5909
|
}
|
|
5845
5910
|
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
@@ -6100,11 +6165,14 @@ let setInSSRSetupState;
|
|
|
6100
6165
|
const g2 = getGlobalThis();
|
|
6101
6166
|
const registerGlobalSetter = (key2, setter) => {
|
|
6102
6167
|
let setters;
|
|
6103
|
-
if (!(setters = g2[key2]))
|
|
6168
|
+
if (!(setters = g2[key2]))
|
|
6169
|
+
setters = g2[key2] = [];
|
|
6104
6170
|
setters.push(setter);
|
|
6105
6171
|
return (v2) => {
|
|
6106
|
-
if (setters.length > 1)
|
|
6107
|
-
|
|
6172
|
+
if (setters.length > 1)
|
|
6173
|
+
setters.forEach((set) => set(v2));
|
|
6174
|
+
else
|
|
6175
|
+
setters[0](v2);
|
|
6108
6176
|
};
|
|
6109
6177
|
};
|
|
6110
6178
|
internalSetCurrentInstance = registerGlobalSetter(
|
|
@@ -6194,7 +6262,8 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
6194
6262
|
}
|
|
6195
6263
|
} else if (isObject$1(setupResult)) {
|
|
6196
6264
|
instance.setupState = proxyRefs(setupResult);
|
|
6197
|
-
} else
|
|
6265
|
+
} else
|
|
6266
|
+
;
|
|
6198
6267
|
finishComponentSetup(instance);
|
|
6199
6268
|
}
|
|
6200
6269
|
function finishComponentSetup(instance, isSSR, skipOptions) {
|
|
@@ -6365,7 +6434,8 @@ const nodeOps = {
|
|
|
6365
6434
|
if (start && (start === end || start.nextSibling)) {
|
|
6366
6435
|
while (true) {
|
|
6367
6436
|
parent.insertBefore(start.cloneNode(true), anchor);
|
|
6368
|
-
if (start === end || !(start = start.nextSibling))
|
|
6437
|
+
if (start === end || !(start = start.nextSibling))
|
|
6438
|
+
break;
|
|
6369
6439
|
}
|
|
6370
6440
|
} else {
|
|
6371
6441
|
templateContainer.innerHTML = unsafeToTrustedHTML(
|
|
@@ -6659,7 +6729,8 @@ function getTimeout(delays, durations) {
|
|
|
6659
6729
|
return Math.max(...durations.map((d2, i2) => toMs(d2) + toMs(delays[i2])));
|
|
6660
6730
|
}
|
|
6661
6731
|
function toMs(s2) {
|
|
6662
|
-
if (s2 === "auto")
|
|
6732
|
+
if (s2 === "auto")
|
|
6733
|
+
return 0;
|
|
6663
6734
|
return Number(s2.slice(0, -1).replace(",", ".")) * 1e3;
|
|
6664
6735
|
}
|
|
6665
6736
|
function forceReflow() {
|
|
@@ -6731,7 +6802,8 @@ function setVarsOnVNode(vnode, vars) {
|
|
|
6731
6802
|
let { el, anchor } = vnode;
|
|
6732
6803
|
while (el) {
|
|
6733
6804
|
setVarsOnNode(el, vars);
|
|
6734
|
-
if (el === anchor)
|
|
6805
|
+
if (el === anchor)
|
|
6806
|
+
break;
|
|
6735
6807
|
el = el.nextSibling;
|
|
6736
6808
|
}
|
|
6737
6809
|
}
|
|
@@ -6801,7 +6873,8 @@ function setStyle(style2, name, val) {
|
|
|
6801
6873
|
if (isArray(val)) {
|
|
6802
6874
|
val.forEach((v2) => setStyle(style2, name, v2));
|
|
6803
6875
|
} else {
|
|
6804
|
-
if (val == null)
|
|
6876
|
+
if (val == null)
|
|
6877
|
+
val = "";
|
|
6805
6878
|
if (name.startsWith("--")) {
|
|
6806
6879
|
style2.setProperty(name, val);
|
|
6807
6880
|
} else {
|
|
@@ -7045,7 +7118,8 @@ const REMOVAL = {};
|
|
|
7045
7118
|
// @__NO_SIDE_EFFECTS__
|
|
7046
7119
|
function defineCustomElement(options, extraOptions, _createApp) {
|
|
7047
7120
|
const Comp = /* @__PURE__ */ defineComponent(options, extraOptions);
|
|
7048
|
-
if (isPlainObject(Comp))
|
|
7121
|
+
if (isPlainObject(Comp))
|
|
7122
|
+
extend(Comp, extraOptions);
|
|
7049
7123
|
class VueCustomElement extends VueElement {
|
|
7050
7124
|
constructor(initialProps) {
|
|
7051
7125
|
super(Comp, initialProps, _createApp);
|
|
@@ -7086,7 +7160,8 @@ class VueElement extends BaseClass {
|
|
|
7086
7160
|
}
|
|
7087
7161
|
}
|
|
7088
7162
|
connectedCallback() {
|
|
7089
|
-
if (!this.isConnected)
|
|
7163
|
+
if (!this.isConnected)
|
|
7164
|
+
return;
|
|
7090
7165
|
if (!this.shadowRoot) {
|
|
7091
7166
|
this._parseSlots();
|
|
7092
7167
|
}
|
|
@@ -7129,7 +7204,8 @@ class VueElement extends BaseClass {
|
|
|
7129
7204
|
this._ob = null;
|
|
7130
7205
|
}
|
|
7131
7206
|
this._app && this._app.unmount();
|
|
7132
|
-
if (this._instance)
|
|
7207
|
+
if (this._instance)
|
|
7208
|
+
this._instance.ce = void 0;
|
|
7133
7209
|
this._app = this._instance = null;
|
|
7134
7210
|
}
|
|
7135
7211
|
});
|
|
@@ -7192,7 +7268,8 @@ class VueElement extends BaseClass {
|
|
|
7192
7268
|
this._app._ceVNode = this._createVNode();
|
|
7193
7269
|
this._app.mount(this._root);
|
|
7194
7270
|
const exposed = this._instance && this._instance.exposed;
|
|
7195
|
-
if (!exposed)
|
|
7271
|
+
if (!exposed)
|
|
7272
|
+
return;
|
|
7196
7273
|
for (const key2 in exposed) {
|
|
7197
7274
|
if (!hasOwn(this, key2)) {
|
|
7198
7275
|
Object.defineProperty(this, key2, {
|
|
@@ -7222,7 +7299,8 @@ class VueElement extends BaseClass {
|
|
|
7222
7299
|
}
|
|
7223
7300
|
}
|
|
7224
7301
|
_setAttr(key2) {
|
|
7225
|
-
if (key2.startsWith("data-v-"))
|
|
7302
|
+
if (key2.startsWith("data-v-"))
|
|
7303
|
+
return;
|
|
7226
7304
|
const has = this.hasAttribute(key2);
|
|
7227
7305
|
let value = has ? this.getAttribute(key2) : REMOVAL;
|
|
7228
7306
|
const camelKey = camelize(key2);
|
|
@@ -7301,7 +7379,8 @@ class VueElement extends BaseClass {
|
|
|
7301
7379
|
return vnode;
|
|
7302
7380
|
}
|
|
7303
7381
|
_applyStyles(styles, owner) {
|
|
7304
|
-
if (!styles)
|
|
7382
|
+
if (!styles)
|
|
7383
|
+
return;
|
|
7305
7384
|
if (owner) {
|
|
7306
7385
|
if (owner === this._def || this._styleChildren.has(owner)) {
|
|
7307
7386
|
return;
|
|
@@ -7311,7 +7390,8 @@ class VueElement extends BaseClass {
|
|
|
7311
7390
|
const nonce = this._nonce;
|
|
7312
7391
|
for (let i2 = styles.length - 1; i2 >= 0; i2--) {
|
|
7313
7392
|
const s2 = document.createElement("style");
|
|
7314
|
-
if (nonce)
|
|
7393
|
+
if (nonce)
|
|
7394
|
+
s2.setAttribute("nonce", nonce);
|
|
7315
7395
|
s2.textContent = styles[i2];
|
|
7316
7396
|
this.shadowRoot.prepend(s2);
|
|
7317
7397
|
}
|
|
@@ -7353,7 +7433,8 @@ class VueElement extends BaseClass {
|
|
|
7353
7433
|
parent.insertBefore(n2, o2);
|
|
7354
7434
|
}
|
|
7355
7435
|
} else {
|
|
7356
|
-
while (o2.firstChild)
|
|
7436
|
+
while (o2.firstChild)
|
|
7437
|
+
parent.insertBefore(o2.firstChild, o2);
|
|
7357
7438
|
}
|
|
7358
7439
|
parent.removeChild(o2);
|
|
7359
7440
|
}
|
|
@@ -7398,7 +7479,8 @@ const vModelText = {
|
|
|
7398
7479
|
el[assignKey] = getModelAssigner(vnode);
|
|
7399
7480
|
const castToNumber = number || vnode.props && vnode.props.type === "number";
|
|
7400
7481
|
addEventListener(el, lazy ? "change" : "input", (e2) => {
|
|
7401
|
-
if (e2.target.composing)
|
|
7482
|
+
if (e2.target.composing)
|
|
7483
|
+
return;
|
|
7402
7484
|
let domValue = el.value;
|
|
7403
7485
|
if (trim) {
|
|
7404
7486
|
domValue = domValue.trim();
|
|
@@ -7425,7 +7507,8 @@ const vModelText = {
|
|
|
7425
7507
|
},
|
|
7426
7508
|
beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) {
|
|
7427
7509
|
el[assignKey] = getModelAssigner(vnode);
|
|
7428
|
-
if (el.composing)
|
|
7510
|
+
if (el.composing)
|
|
7511
|
+
return;
|
|
7429
7512
|
const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? looseToNumber(el.value) : el.value;
|
|
7430
7513
|
const newValue = value == null ? "" : value;
|
|
7431
7514
|
if (elValue === newValue) {
|
|
@@ -7496,7 +7579,8 @@ function setSelected(el, value) {
|
|
|
7496
7579
|
option.selected = value.has(optionValue);
|
|
7497
7580
|
}
|
|
7498
7581
|
} else if (looseEqual(getValue(option), value)) {
|
|
7499
|
-
if (el.selectedIndex !== i2)
|
|
7582
|
+
if (el.selectedIndex !== i2)
|
|
7583
|
+
el.selectedIndex = i2;
|
|
7500
7584
|
return;
|
|
7501
7585
|
}
|
|
7502
7586
|
}
|
|
@@ -7527,7 +7611,8 @@ const withModifiers = (fn, modifiers) => {
|
|
|
7527
7611
|
return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
|
|
7528
7612
|
for (let i2 = 0; i2 < modifiers.length; i2++) {
|
|
7529
7613
|
const guard = modifierGuards[modifiers[i2]];
|
|
7530
|
-
if (guard && guard(event, modifiers))
|
|
7614
|
+
if (guard && guard(event, modifiers))
|
|
7615
|
+
return;
|
|
7531
7616
|
}
|
|
7532
7617
|
return fn(event, ...args);
|
|
7533
7618
|
});
|
|
@@ -7569,7 +7654,8 @@ const createApp = (...args) => {
|
|
|
7569
7654
|
const { mount } = app;
|
|
7570
7655
|
app.mount = (containerOrSelector) => {
|
|
7571
7656
|
const container = normalizeContainer(containerOrSelector);
|
|
7572
|
-
if (!container)
|
|
7657
|
+
if (!container)
|
|
7658
|
+
return;
|
|
7573
7659
|
const component = app._component;
|
|
7574
7660
|
if (!isFunction(component) && !component.render && !component.template) {
|
|
7575
7661
|
component.template = container.innerHTML;
|
|
@@ -7786,7 +7872,8 @@ function createEditorBridge() {
|
|
|
7786
7872
|
return;
|
|
7787
7873
|
}
|
|
7788
7874
|
const isOverlay = path.some((node) => {
|
|
7789
|
-
if (!(node instanceof HTMLElement))
|
|
7875
|
+
if (!(node instanceof HTMLElement))
|
|
7876
|
+
return false;
|
|
7790
7877
|
let current = node;
|
|
7791
7878
|
while (current) {
|
|
7792
7879
|
const computedStyle = window.getComputedStyle(current);
|
|
@@ -7801,7 +7888,8 @@ function createEditorBridge() {
|
|
|
7801
7888
|
return false;
|
|
7802
7889
|
});
|
|
7803
7890
|
const isEditorUI = path.some((node) => {
|
|
7804
|
-
if (!(node instanceof HTMLElement))
|
|
7891
|
+
if (!(node instanceof HTMLElement))
|
|
7892
|
+
return false;
|
|
7805
7893
|
let current = node;
|
|
7806
7894
|
const root2 = node.getRootNode();
|
|
7807
7895
|
while (current && current !== root2) {
|
|
@@ -7955,7 +8043,8 @@ function createEditorBridge() {
|
|
|
7955
8043
|
let suppressScrollReport = false;
|
|
7956
8044
|
function reportContentHeight() {
|
|
7957
8045
|
var _a;
|
|
7958
|
-
if (!isEditorMode)
|
|
8046
|
+
if (!isEditorMode)
|
|
8047
|
+
return;
|
|
7959
8048
|
const height = Math.max(
|
|
7960
8049
|
document.documentElement.scrollHeight,
|
|
7961
8050
|
((_a = document.body) == null ? void 0 : _a.scrollHeight) ?? 0
|
|
@@ -7980,9 +8069,11 @@ function createEditorBridge() {
|
|
|
7980
8069
|
}
|
|
7981
8070
|
function onBlockPresetChange(blockId, callback) {
|
|
7982
8071
|
return onMessage((message) => {
|
|
7983
|
-
if (message.type !== "SET_BLOCK_PRESET")
|
|
8072
|
+
if (message.type !== "SET_BLOCK_PRESET")
|
|
8073
|
+
return;
|
|
7984
8074
|
const presetMessage = message;
|
|
7985
|
-
if (presetMessage.payload.blockId !== blockId)
|
|
8075
|
+
if (presetMessage.payload.blockId !== blockId)
|
|
8076
|
+
return;
|
|
7986
8077
|
const preset = presetMessage.payload.preset;
|
|
7987
8078
|
callback(
|
|
7988
8079
|
preset
|
|
@@ -8034,7 +8125,8 @@ function useBridge$2(options) {
|
|
|
8034
8125
|
const isEditorMode = computed(() => blockId.value !== null);
|
|
8035
8126
|
watchEffect((onCleanup) => {
|
|
8036
8127
|
const currentBlockId = blockId.value;
|
|
8037
|
-
if (!currentBlockId)
|
|
8128
|
+
if (!currentBlockId)
|
|
8129
|
+
return;
|
|
8038
8130
|
const unsub = editorBridge.onBlockPresetChange(
|
|
8039
8131
|
currentBlockId,
|
|
8040
8132
|
(preset) => {
|
|
@@ -8407,7 +8499,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8407
8499
|
};
|
|
8408
8500
|
});
|
|
8409
8501
|
const handleCancel = async () => {
|
|
8410
|
-
if (!singleSubscription.value)
|
|
8502
|
+
if (!singleSubscription.value)
|
|
8503
|
+
return;
|
|
8411
8504
|
if (!confirm("Are you sure you want to cancel this subscription?")) {
|
|
8412
8505
|
return;
|
|
8413
8506
|
}
|
|
@@ -8428,7 +8521,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8428
8521
|
}
|
|
8429
8522
|
};
|
|
8430
8523
|
const handleReschedule = async () => {
|
|
8431
|
-
if (!singleSubscription.value)
|
|
8524
|
+
if (!singleSubscription.value)
|
|
8525
|
+
return;
|
|
8432
8526
|
if (!singleSubscription.value.nextDeliveryDate) {
|
|
8433
8527
|
alert("No delivery date available for this subscription");
|
|
8434
8528
|
return;
|
|
@@ -8457,7 +8551,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8457
8551
|
}
|
|
8458
8552
|
};
|
|
8459
8553
|
const handlePause = async () => {
|
|
8460
|
-
if (!singleSubscription.value)
|
|
8554
|
+
if (!singleSubscription.value)
|
|
8555
|
+
return;
|
|
8461
8556
|
if (!confirm("Are you sure you want to pause this subscription?")) {
|
|
8462
8557
|
return;
|
|
8463
8558
|
}
|
|
@@ -8478,7 +8573,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8478
8573
|
}
|
|
8479
8574
|
};
|
|
8480
8575
|
const handleResume = async () => {
|
|
8481
|
-
if (!singleSubscription.value)
|
|
8576
|
+
if (!singleSubscription.value)
|
|
8577
|
+
return;
|
|
8482
8578
|
if (!confirm("Are you sure you want to resume this subscription?")) {
|
|
8483
8579
|
return;
|
|
8484
8580
|
}
|
|
@@ -8499,7 +8595,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8499
8595
|
}
|
|
8500
8596
|
};
|
|
8501
8597
|
const handleReactivate = async () => {
|
|
8502
|
-
if (!singleSubscription.value)
|
|
8598
|
+
if (!singleSubscription.value)
|
|
8599
|
+
return;
|
|
8503
8600
|
if (!confirm("Are you sure you want to reactivate this subscription?")) {
|
|
8504
8601
|
return;
|
|
8505
8602
|
}
|
|
@@ -8520,7 +8617,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8520
8617
|
}
|
|
8521
8618
|
};
|
|
8522
8619
|
const handleAddItem = async () => {
|
|
8523
|
-
if (!singleSubscription.value)
|
|
8620
|
+
if (!singleSubscription.value)
|
|
8621
|
+
return;
|
|
8524
8622
|
try {
|
|
8525
8623
|
const productResults = await productService.search({});
|
|
8526
8624
|
availableProducts.value = productResults.items;
|
|
@@ -8530,9 +8628,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8530
8628
|
}
|
|
8531
8629
|
};
|
|
8532
8630
|
const handleProductSelectedFromPrompt = async () => {
|
|
8533
|
-
if (!singleSubscription.value || !selectedProductId.value)
|
|
8631
|
+
if (!singleSubscription.value || !selectedProductId.value)
|
|
8632
|
+
return;
|
|
8534
8633
|
const product = availableProducts.value.find((p2) => p2.id === selectedProductId.value);
|
|
8535
|
-
if (!product)
|
|
8634
|
+
if (!product)
|
|
8635
|
+
return;
|
|
8536
8636
|
const quantityInput = prompt("Enter quantity (default: 1):");
|
|
8537
8637
|
const quantity = quantityInput ? parseInt(quantityInput, 10) : 1;
|
|
8538
8638
|
if (isNaN(quantity) || quantity < 1) {
|
|
@@ -8573,7 +8673,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8573
8673
|
selectedProductId.value = "";
|
|
8574
8674
|
};
|
|
8575
8675
|
const handleRemoveItem = async (itemId) => {
|
|
8576
|
-
if (!singleSubscription.value)
|
|
8676
|
+
if (!singleSubscription.value)
|
|
8677
|
+
return;
|
|
8577
8678
|
if (singleSubscription.value.items.length <= 1) {
|
|
8578
8679
|
alert("Cannot remove the last item from the subscription");
|
|
8579
8680
|
return;
|
|
@@ -8613,7 +8714,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8613
8714
|
selectedItemIdForDiscount.value = null;
|
|
8614
8715
|
};
|
|
8615
8716
|
const handleDiscountCodeSubmitted = async () => {
|
|
8616
|
-
if (!singleSubscription.value || !discountCode.value.trim())
|
|
8717
|
+
if (!singleSubscription.value || !discountCode.value.trim())
|
|
8718
|
+
return;
|
|
8617
8719
|
isLoading.value = true;
|
|
8618
8720
|
actionType.value = "applyDiscount";
|
|
8619
8721
|
try {
|
|
@@ -8641,7 +8743,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8641
8743
|
}
|
|
8642
8744
|
};
|
|
8643
8745
|
const handleRemoveDiscount = async (discountId) => {
|
|
8644
|
-
if (!singleSubscription.value)
|
|
8746
|
+
if (!singleSubscription.value)
|
|
8747
|
+
return;
|
|
8645
8748
|
if (!confirm("Are you sure you want to remove this discount?")) {
|
|
8646
8749
|
return;
|
|
8647
8750
|
}
|
|
@@ -9167,15 +9270,21 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
9167
9270
|
const UiSuccessIcon = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$1]]);
|
|
9168
9271
|
function r$3(e2) {
|
|
9169
9272
|
var t2, f2, n2 = "";
|
|
9170
|
-
if ("string" == typeof e2 || "number" == typeof e2)
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9273
|
+
if ("string" == typeof e2 || "number" == typeof e2)
|
|
9274
|
+
n2 += e2;
|
|
9275
|
+
else if ("object" == typeof e2)
|
|
9276
|
+
if (Array.isArray(e2)) {
|
|
9277
|
+
var o2 = e2.length;
|
|
9278
|
+
for (t2 = 0; t2 < o2; t2++)
|
|
9279
|
+
e2[t2] && (f2 = r$3(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
|
|
9280
|
+
} else
|
|
9281
|
+
for (f2 in e2)
|
|
9282
|
+
e2[f2] && (n2 && (n2 += " "), n2 += f2);
|
|
9175
9283
|
return n2;
|
|
9176
9284
|
}
|
|
9177
9285
|
function clsx() {
|
|
9178
|
-
for (var e2, t2, f2 = 0, n2 = "", o2 = arguments.length; f2 < o2; f2++)
|
|
9286
|
+
for (var e2, t2, f2 = 0, n2 = "", o2 = arguments.length; f2 < o2; f2++)
|
|
9287
|
+
(e2 = arguments[f2]) && (t2 = r$3(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
9179
9288
|
return n2;
|
|
9180
9289
|
}
|
|
9181
9290
|
const CLASS_PART_SEPARATOR = "-";
|
|
@@ -12856,7 +12965,8 @@ const c$3 = /* @__PURE__ */ function() {
|
|
|
12856
12965
|
return e2 === "string" && n2 === "string" ? t2.localeCompare(r2) : e2 === "number" && n2 === "number" ? t2 - r2 : String.prototype.localeCompare.call(this.serialize(t2, true), this.serialize(r2, true));
|
|
12857
12966
|
}
|
|
12858
12967
|
serialize(t2, r2) {
|
|
12859
|
-
if (t2 === null)
|
|
12968
|
+
if (t2 === null)
|
|
12969
|
+
return "null";
|
|
12860
12970
|
switch (typeof t2) {
|
|
12861
12971
|
case "string":
|
|
12862
12972
|
return r2 ? t2 : `'${t2}'`;
|
|
@@ -12871,9 +12981,11 @@ const c$3 = /* @__PURE__ */ function() {
|
|
|
12871
12981
|
}
|
|
12872
12982
|
serializeObject(t2) {
|
|
12873
12983
|
const r2 = Object.prototype.toString.call(t2);
|
|
12874
|
-
if (r2 !== "[object Object]")
|
|
12984
|
+
if (r2 !== "[object Object]")
|
|
12985
|
+
return this.serializeBuiltInType(r2.length < 10 ? `unknown:${r2}` : r2.slice(8, -1), t2);
|
|
12875
12986
|
const e2 = t2.constructor, n2 = e2 === Object || e2 === void 0 ? "" : e2.name;
|
|
12876
|
-
if (n2 !== "" && globalThis[n2] === e2)
|
|
12987
|
+
if (n2 !== "" && globalThis[n2] === e2)
|
|
12988
|
+
return this.serializeBuiltInType(n2, t2);
|
|
12877
12989
|
if (typeof t2.toJSON == "function") {
|
|
12878
12990
|
const i2 = t2.toJSON();
|
|
12879
12991
|
return n2 + (i2 !== null && typeof i2 == "object" ? this.$object(i2) : `(${this.serialize(i2)})`);
|
|
@@ -12882,8 +12994,10 @@ const c$3 = /* @__PURE__ */ function() {
|
|
|
12882
12994
|
}
|
|
12883
12995
|
serializeBuiltInType(t2, r2) {
|
|
12884
12996
|
const e2 = this["$" + t2];
|
|
12885
|
-
if (e2)
|
|
12886
|
-
|
|
12997
|
+
if (e2)
|
|
12998
|
+
return e2.call(this, r2);
|
|
12999
|
+
if (typeof (r2 == null ? void 0 : r2.entries) == "function")
|
|
13000
|
+
return this.serializeObjectEntries(t2, r2.entries());
|
|
12887
13001
|
throw new Error(`Cannot serialize ${t2}`);
|
|
12888
13002
|
}
|
|
12889
13003
|
serializeObjectEntries(t2, r2) {
|
|
@@ -12905,7 +13019,8 @@ const c$3 = /* @__PURE__ */ function() {
|
|
|
12905
13019
|
}
|
|
12906
13020
|
$Array(t2) {
|
|
12907
13021
|
let r2 = "[";
|
|
12908
|
-
for (let e2 = 0; e2 < t2.length; e2++)
|
|
13022
|
+
for (let e2 = 0; e2 < t2.length; e2++)
|
|
13023
|
+
r2 += this.serialize(t2[e2]), e2 < t2.length - 1 && (r2 += ",");
|
|
12909
13024
|
return r2 + "]";
|
|
12910
13025
|
}
|
|
12911
13026
|
$Date(t2) {
|
|
@@ -12926,15 +13041,18 @@ const c$3 = /* @__PURE__ */ function() {
|
|
|
12926
13041
|
}
|
|
12927
13042
|
}
|
|
12928
13043
|
_t = new WeakMap();
|
|
12929
|
-
for (const s2 of ["Error", "RegExp", "URL"])
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
13044
|
+
for (const s2 of ["Error", "RegExp", "URL"])
|
|
13045
|
+
o2.prototype["$" + s2] = function(t2) {
|
|
13046
|
+
return `${s2}(${t2})`;
|
|
13047
|
+
};
|
|
13048
|
+
for (const s2 of ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array"])
|
|
13049
|
+
o2.prototype["$" + s2] = function(t2) {
|
|
13050
|
+
return `${s2}[${t2.join(",")}]`;
|
|
13051
|
+
};
|
|
13052
|
+
for (const s2 of ["BigInt64Array", "BigUint64Array"])
|
|
13053
|
+
o2.prototype["$" + s2] = function(t2) {
|
|
13054
|
+
return `${s2}[${t2.join("n,")}${t2.length > 0 ? "n" : ""}]`;
|
|
13055
|
+
};
|
|
12938
13056
|
return o2;
|
|
12939
13057
|
}();
|
|
12940
13058
|
function isEqual(object1, object2) {
|
|
@@ -13667,8 +13785,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
13667
13785
|
as: _ctx.as,
|
|
13668
13786
|
"as-child": _ctx.asChild,
|
|
13669
13787
|
onMousedown: _cache[0] || (_cache[0] = (event) => {
|
|
13670
|
-
if (!_ctx.focusable)
|
|
13671
|
-
|
|
13788
|
+
if (!_ctx.focusable)
|
|
13789
|
+
event.preventDefault();
|
|
13790
|
+
else
|
|
13791
|
+
unref(context).onItemFocus(id.value);
|
|
13672
13792
|
}),
|
|
13673
13793
|
onFocus: _cache[1] || (_cache[1] = ($event) => unref(context).onItemFocus(id.value)),
|
|
13674
13794
|
onKeydown: handleKeydown
|
|
@@ -14145,12 +14265,14 @@ const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value
|
|
|
14145
14265
|
const cx = clsx;
|
|
14146
14266
|
const cva = (base, config) => (props) => {
|
|
14147
14267
|
var _config_compoundVariants;
|
|
14148
|
-
if ((config === null || config === void 0 ? void 0 : config.variants) == null)
|
|
14268
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null)
|
|
14269
|
+
return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
14149
14270
|
const { variants, defaultVariants } = config;
|
|
14150
14271
|
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
14151
14272
|
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
14152
14273
|
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
14153
|
-
if (variantProp === null)
|
|
14274
|
+
if (variantProp === null)
|
|
14275
|
+
return null;
|
|
14154
14276
|
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
14155
14277
|
return variants[variant][variantKey];
|
|
14156
14278
|
});
|
|
@@ -14497,9 +14619,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
14497
14619
|
const expanded = ref(false);
|
|
14498
14620
|
const scrollContainer = ref(null);
|
|
14499
14621
|
function onScroll() {
|
|
14500
|
-
if (!props.hasMore || props.loadingMore)
|
|
14622
|
+
if (!props.hasMore || props.loadingMore)
|
|
14623
|
+
return;
|
|
14501
14624
|
const el = scrollContainer.value;
|
|
14502
|
-
if (!el)
|
|
14625
|
+
if (!el)
|
|
14626
|
+
return;
|
|
14503
14627
|
const distanceFromBottom = el.scrollHeight - el.scrollTop - el.clientHeight;
|
|
14504
14628
|
if (distanceFromBottom < SCROLL_THRESHOLD) {
|
|
14505
14629
|
emit2("loadMore");
|
|
@@ -14541,7 +14665,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
14541
14665
|
);
|
|
14542
14666
|
function isVariantSelected(product) {
|
|
14543
14667
|
const defaultVariant = getDefaultVariant(product);
|
|
14544
|
-
if (!defaultVariant)
|
|
14668
|
+
if (!defaultVariant)
|
|
14669
|
+
return false;
|
|
14545
14670
|
return props.modelValue.some(
|
|
14546
14671
|
(s2) => s2.productId === product.id && s2.variantId === defaultVariant.id
|
|
14547
14672
|
);
|
|
@@ -14556,12 +14681,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
14556
14681
|
}
|
|
14557
14682
|
function getFormattedPrice(product) {
|
|
14558
14683
|
const variant = getDefaultVariant(product);
|
|
14559
|
-
if (!variant)
|
|
14684
|
+
if (!variant)
|
|
14685
|
+
return null;
|
|
14560
14686
|
return formatPrice2(variant.price.amount, variant.price.currencyCode);
|
|
14561
14687
|
}
|
|
14562
14688
|
function formatPrice2(amount, currencyCode) {
|
|
14563
14689
|
const num = Number(amount);
|
|
14564
|
-
if (Number.isNaN(num))
|
|
14690
|
+
if (Number.isNaN(num))
|
|
14691
|
+
return "";
|
|
14565
14692
|
const currency = currencyCode && /^[A-Z]{3}$/i.test(currencyCode) ? currencyCode : "USD";
|
|
14566
14693
|
try {
|
|
14567
14694
|
return new Intl.NumberFormat(void 0, {
|
|
@@ -14593,7 +14720,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
14593
14720
|
}
|
|
14594
14721
|
function onProductClick(product) {
|
|
14595
14722
|
const variant = getDefaultVariant(product);
|
|
14596
|
-
if (!variant)
|
|
14723
|
+
if (!variant)
|
|
14724
|
+
return;
|
|
14597
14725
|
toggleVariant(product.id, variant.id);
|
|
14598
14726
|
}
|
|
14599
14727
|
return (_ctx, _cache) => {
|
|
@@ -15251,20 +15379,13 @@ const LoginCe = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["styles", [_style_0$l
|
|
|
15251
15379
|
}
|
|
15252
15380
|
return /* @__PURE__ */ new Map();
|
|
15253
15381
|
})();
|
|
15254
|
-
const __variableDynamicImportRuntimeHelper = (glob, path
|
|
15382
|
+
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
15255
15383
|
const v2 = glob[path];
|
|
15256
15384
|
if (v2) {
|
|
15257
15385
|
return typeof v2 === "function" ? v2() : Promise.resolve(v2);
|
|
15258
15386
|
}
|
|
15259
15387
|
return new Promise((_2, reject) => {
|
|
15260
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
15261
|
-
reject.bind(
|
|
15262
|
-
null,
|
|
15263
|
-
new Error(
|
|
15264
|
-
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
15265
|
-
)
|
|
15266
|
-
)
|
|
15267
|
-
);
|
|
15388
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
|
|
15268
15389
|
});
|
|
15269
15390
|
};
|
|
15270
15391
|
function normalizeLocale(locale) {
|
|
@@ -15274,7 +15395,7 @@ function blockLocales(blockType) {
|
|
|
15274
15395
|
return {
|
|
15275
15396
|
load: async (locale) => {
|
|
15276
15397
|
const normalized = normalizeLocale(locale);
|
|
15277
|
-
const loadFile = async (code) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../locales/cs.json": () => import("./cs-CkBa54eD.js"), "../locales/de.json": () => import("./de-CPRJRab0.js"), "../locales/en.json": () => Promise.resolve().then(() => en), "../locales/es.json": () => import("./es-CQoo17kt.js"), "../locales/fr.json": () => import("./fr-DzCAo5LI.js"), "../locales/hu.json": () => import("./hu-ywN6j-km.js"), "../locales/nl.json": () => import("./nl-BhpUGLYx.js"), "../locales/pl.json": () => import("./pl-sN_bBWgE.js"), "../locales/pt.json": () => import("./pt-BYE93EVG.js"), "../locales/sk.json": () => import("./sk-DQZc55Jx.js"), "../locales/sl.json": () => import("./sl-CUzueLNl.js") }), `../locales/${code}.json
|
|
15398
|
+
const loadFile = async (code) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../locales/cs.json": () => import("./cs-CkBa54eD.js"), "../locales/de.json": () => import("./de-CPRJRab0.js"), "../locales/en.json": () => Promise.resolve().then(() => en), "../locales/es.json": () => import("./es-CQoo17kt.js"), "../locales/fr.json": () => import("./fr-DzCAo5LI.js"), "../locales/hu.json": () => import("./hu-ywN6j-km.js"), "../locales/nl.json": () => import("./nl-BhpUGLYx.js"), "../locales/pl.json": () => import("./pl-sN_bBWgE.js"), "../locales/pt.json": () => import("./pt-BYE93EVG.js"), "../locales/sk.json": () => import("./sk-DQZc55Jx.js"), "../locales/sl.json": () => import("./sl-CUzueLNl.js") }), `../locales/${code}.json`).then((module) => module.default ?? module).catch(() => ({}));
|
|
15278
15399
|
const selected = await loadFile(normalized);
|
|
15279
15400
|
if (selected[blockType] != null) {
|
|
15280
15401
|
return selected[blockType];
|
|
@@ -15447,7 +15568,8 @@ const LoginBlock = defineBlock("Login", {
|
|
|
15447
15568
|
const t$1 = globalThis, i$2 = t$1.trustedTypes, s$2 = i$2 ? i$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$2 = "$lit$", h$3 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$2 = "?" + h$3, n$1 = `<${o$2}>`, r$2 = document, l$2 = () => r$2.createComment(""), c$2 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a$2 = Array.isArray, u$2 = (t2) => a$2(t2) || "function" == typeof (t2 == null ? void 0 : t2[Symbol.iterator]), d$2 = "[ \n\f\r]", f$2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v$2 = /-->/g, _$1 = />/g, m$2 = RegExp(`>|${d$2}(?:([^\\s"'>=/]+)(${d$2}*=${d$2}*(?:[^
|
|
15448
15569
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), p$2 = /'/g, g$1 = /"/g, $$1 = /^(?:script|style|textarea|title)$/i, y$2 = (t2) => (i2, ...s2) => ({ _$litType$: t2, strings: i2, values: s2 }), x$2 = y$2(1), T$2 = Symbol.for("lit-noChange"), E$1 = Symbol.for("lit-nothing"), A$2 = /* @__PURE__ */ new WeakMap(), C$2 = r$2.createTreeWalker(r$2, 129);
|
|
15449
15570
|
function P$1(t2, i2) {
|
|
15450
|
-
if (!a$2(t2) || !t2.hasOwnProperty("raw"))
|
|
15571
|
+
if (!a$2(t2) || !t2.hasOwnProperty("raw"))
|
|
15572
|
+
throw Error("invalid template strings array");
|
|
15451
15573
|
return void 0 !== s$2 ? s$2.createHTML(i2) : i2;
|
|
15452
15574
|
}
|
|
15453
15575
|
const V$1 = (t2, i2) => {
|
|
@@ -15456,7 +15578,8 @@ const V$1 = (t2, i2) => {
|
|
|
15456
15578
|
for (let i3 = 0; i3 < s2; i3++) {
|
|
15457
15579
|
const s3 = t2[i3];
|
|
15458
15580
|
let a2, u2, d2 = -1, y2 = 0;
|
|
15459
|
-
for (; y2 < s3.length && (c2.lastIndex = y2, u2 = c2.exec(s3), null !== u2); )
|
|
15581
|
+
for (; y2 < s3.length && (c2.lastIndex = y2, u2 = c2.exec(s3), null !== u2); )
|
|
15582
|
+
y2 = c2.lastIndex, c2 === f$2 ? "!--" === u2[1] ? c2 = v$2 : void 0 !== u2[1] ? c2 = _$1 : void 0 !== u2[2] ? ($$1.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m$2) : void 0 !== u2[3] && (c2 = m$2) : c2 === m$2 ? ">" === u2[0] ? (c2 = r2 ?? f$2, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m$2 : '"' === u2[3] ? g$1 : p$2) : c2 === g$1 || c2 === p$2 ? c2 = m$2 : c2 === v$2 || c2 === _$1 ? c2 = f$2 : (c2 = m$2, r2 = void 0);
|
|
15460
15583
|
const x2 = c2 === m$2 && t2[i3 + 1].startsWith("/>") ? " " : "";
|
|
15461
15584
|
l2 += c2 === f$2 ? s3 + n$1 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e$2 + s3.slice(d2) + h$3 + x2) : s3 + h$3 + (-2 === d2 ? i3 : x2);
|
|
15462
15585
|
}
|
|
@@ -15474,23 +15597,30 @@ let N$1 = class N {
|
|
|
15474
15597
|
}
|
|
15475
15598
|
for (; null !== (r2 = C$2.nextNode()) && d2.length < u2; ) {
|
|
15476
15599
|
if (1 === r2.nodeType) {
|
|
15477
|
-
if (r2.hasAttributes())
|
|
15478
|
-
const
|
|
15479
|
-
|
|
15480
|
-
|
|
15600
|
+
if (r2.hasAttributes())
|
|
15601
|
+
for (const t3 of r2.getAttributeNames())
|
|
15602
|
+
if (t3.endsWith(e$2)) {
|
|
15603
|
+
const i2 = v2[a2++], s3 = r2.getAttribute(t3).split(h$3), e2 = /([.?@])?(.*)/.exec(i2);
|
|
15604
|
+
d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I$1 : "@" === e2[1] ? L$1 : k$2 }), r2.removeAttribute(t3);
|
|
15605
|
+
} else
|
|
15606
|
+
t3.startsWith(h$3) && (d2.push({ type: 6, index: c2 }), r2.removeAttribute(t3));
|
|
15481
15607
|
if ($$1.test(r2.tagName)) {
|
|
15482
15608
|
const t3 = r2.textContent.split(h$3), s3 = t3.length - 1;
|
|
15483
15609
|
if (s3 > 0) {
|
|
15484
15610
|
r2.textContent = i$2 ? i$2.emptyScript : "";
|
|
15485
|
-
for (let i2 = 0; i2 < s3; i2++)
|
|
15611
|
+
for (let i2 = 0; i2 < s3; i2++)
|
|
15612
|
+
r2.append(t3[i2], l$2()), C$2.nextNode(), d2.push({ type: 2, index: ++c2 });
|
|
15486
15613
|
r2.append(t3[s3], l$2());
|
|
15487
15614
|
}
|
|
15488
15615
|
}
|
|
15489
|
-
} else if (8 === r2.nodeType)
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15616
|
+
} else if (8 === r2.nodeType)
|
|
15617
|
+
if (r2.data === o$2)
|
|
15618
|
+
d2.push({ type: 2, index: c2 });
|
|
15619
|
+
else {
|
|
15620
|
+
let t3 = -1;
|
|
15621
|
+
for (; -1 !== (t3 = r2.data.indexOf(h$3, t3 + 1)); )
|
|
15622
|
+
d2.push({ type: 7, index: c2 }), t3 += h$3.length - 1;
|
|
15623
|
+
}
|
|
15494
15624
|
c2++;
|
|
15495
15625
|
}
|
|
15496
15626
|
}
|
|
@@ -15501,7 +15631,8 @@ let N$1 = class N {
|
|
|
15501
15631
|
};
|
|
15502
15632
|
function S$1(t2, i2, s2 = t2, e2) {
|
|
15503
15633
|
var _a, _b;
|
|
15504
|
-
if (i2 === T$2)
|
|
15634
|
+
if (i2 === T$2)
|
|
15635
|
+
return i2;
|
|
15505
15636
|
let h2 = void 0 !== e2 ? (_a = s2._$Co) == null ? void 0 : _a[e2] : s2._$Cl;
|
|
15506
15637
|
const o2 = c$2(i2) ? void 0 : i2._$litDirective$;
|
|
15507
15638
|
return (h2 == null ? void 0 : h2.constructor) !== o2 && ((_b = h2 == null ? void 0 : h2._$AO) == null ? void 0 : _b.call(h2, false), void 0 === o2 ? h2 = void 0 : (h2 = new o2(t2), h2._$AT(t2, s2, e2)), void 0 !== e2 ? (s2._$Co ?? (s2._$Co = []))[e2] = h2 : s2._$Cl = h2), void 0 !== h2 && (i2 = S$1(t2, h2._$AS(t2, i2.values), h2, e2)), i2;
|
|
@@ -15531,7 +15662,8 @@ let M$1 = class M {
|
|
|
15531
15662
|
}
|
|
15532
15663
|
p(t2) {
|
|
15533
15664
|
let i2 = 0;
|
|
15534
|
-
for (const s2 of this._$AV)
|
|
15665
|
+
for (const s2 of this._$AV)
|
|
15666
|
+
void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i2), i2 += s2.strings.length - 2) : s2._$AI(t2[i2])), i2++;
|
|
15535
15667
|
}
|
|
15536
15668
|
};
|
|
15537
15669
|
class R {
|
|
@@ -15568,7 +15700,8 @@ class R {
|
|
|
15568
15700
|
$(t2) {
|
|
15569
15701
|
var _a;
|
|
15570
15702
|
const { values: i2, _$litType$: s2 } = t2, e2 = "number" == typeof s2 ? this._$AC(t2) : (void 0 === s2.el && (s2.el = N$1.createElement(P$1(s2.h, s2.h[0]), this.options)), s2);
|
|
15571
|
-
if (((_a = this._$AH) == null ? void 0 : _a._$AD) === e2)
|
|
15703
|
+
if (((_a = this._$AH) == null ? void 0 : _a._$AD) === e2)
|
|
15704
|
+
this._$AH.p(i2);
|
|
15572
15705
|
else {
|
|
15573
15706
|
const t3 = new M$1(e2, this), s3 = t3.u(this.options);
|
|
15574
15707
|
t3.p(i2), this.T(s3), this._$AH = t3;
|
|
@@ -15582,7 +15715,8 @@ class R {
|
|
|
15582
15715
|
a$2(this._$AH) || (this._$AH = [], this._$AR());
|
|
15583
15716
|
const i2 = this._$AH;
|
|
15584
15717
|
let s2, e2 = 0;
|
|
15585
|
-
for (const h2 of t2)
|
|
15718
|
+
for (const h2 of t2)
|
|
15719
|
+
e2 === i2.length ? i2.push(s2 = new R(this.O(l$2()), this.O(l$2()), this, this.options)) : s2 = i2[e2], s2._$AI(h2), e2++;
|
|
15586
15720
|
e2 < i2.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i2.length = e2);
|
|
15587
15721
|
}
|
|
15588
15722
|
_$AR(t2 = this._$AA.nextSibling, i2) {
|
|
@@ -15610,11 +15744,13 @@ let k$2 = class k {
|
|
|
15610
15744
|
_$AI(t2, i2 = this, s2, e2) {
|
|
15611
15745
|
const h2 = this.strings;
|
|
15612
15746
|
let o2 = false;
|
|
15613
|
-
if (void 0 === h2)
|
|
15747
|
+
if (void 0 === h2)
|
|
15748
|
+
t2 = S$1(this, t2, i2, 0), o2 = !c$2(t2) || t2 !== this._$AH && t2 !== T$2, o2 && (this._$AH = t2);
|
|
15614
15749
|
else {
|
|
15615
15750
|
const e3 = t2;
|
|
15616
15751
|
let n2, r2;
|
|
15617
|
-
for (t2 = h2[0], n2 = 0; n2 < h2.length - 1; n2++)
|
|
15752
|
+
for (t2 = h2[0], n2 = 0; n2 < h2.length - 1; n2++)
|
|
15753
|
+
r2 = S$1(this, e3[s2 + n2], i2, n2), r2 === T$2 && (r2 = this._$AH[n2]), o2 || (o2 = !c$2(r2) || r2 !== this._$AH[n2]), r2 === E$1 ? t2 = E$1 : t2 !== E$1 && (t2 += (r2 ?? "") + h2[n2 + 1]), this._$AH[n2] = r2;
|
|
15618
15754
|
}
|
|
15619
15755
|
o2 && !e2 && this.j(t2);
|
|
15620
15756
|
}
|
|
@@ -15643,7 +15779,8 @@ let L$1 = class L extends k$2 {
|
|
|
15643
15779
|
super(t2, i2, s2, e2, h2), this.type = 5;
|
|
15644
15780
|
}
|
|
15645
15781
|
_$AI(t2, i2 = this) {
|
|
15646
|
-
if ((t2 = S$1(this, t2, i2, 0) ?? E$1) === T$2)
|
|
15782
|
+
if ((t2 = S$1(this, t2, i2, 0) ?? E$1) === T$2)
|
|
15783
|
+
return;
|
|
15647
15784
|
const s2 = this._$AH, e2 = t2 === E$1 && s2 !== E$1 || t2.capture !== s2.capture || t2.once !== s2.once || t2.passive !== s2.passive, h2 = t2 !== E$1 && (s2 === E$1 || e2);
|
|
15648
15785
|
e2 && this.element.removeEventListener(this.name, this, s2), h2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
15649
15786
|
}
|
|
@@ -16258,7 +16395,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
16258
16395
|
const subscription = ref(null);
|
|
16259
16396
|
const products = ref([]);
|
|
16260
16397
|
const itemsWithProducts = computed(() => {
|
|
16261
|
-
if (!subscription.value)
|
|
16398
|
+
if (!subscription.value)
|
|
16399
|
+
return [];
|
|
16262
16400
|
return subscription.value.items.map((item) => ({
|
|
16263
16401
|
...item,
|
|
16264
16402
|
product: products.value.find(
|
|
@@ -16280,12 +16418,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
16280
16418
|
}
|
|
16281
16419
|
onMounted(async () => {
|
|
16282
16420
|
const subscriptionId = subscriptionService.getCurrentSubscriptionId();
|
|
16283
|
-
if (!subscriptionId)
|
|
16421
|
+
if (!subscriptionId)
|
|
16422
|
+
return;
|
|
16284
16423
|
const result = await subscriptionService.getById(subscriptionId);
|
|
16285
|
-
if (result._tag !== "Success" || !result.data)
|
|
16424
|
+
if (result._tag !== "Success" || !result.data)
|
|
16425
|
+
return;
|
|
16286
16426
|
subscription.value = result.data;
|
|
16287
16427
|
const productIds = result.data.items.map((item) => item.productId);
|
|
16288
|
-
if (productIds.length === 0)
|
|
16428
|
+
if (productIds.length === 0)
|
|
16429
|
+
return;
|
|
16289
16430
|
const productResults = await productService.search({
|
|
16290
16431
|
query: `id:${productIds.join(" OR id:")}`
|
|
16291
16432
|
});
|
|
@@ -16963,7 +17104,8 @@ var react_production = {};
|
|
|
16963
17104
|
*/
|
|
16964
17105
|
var REACT_ELEMENT_TYPE$1 = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE$2 = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE$1 = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE$1 = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE$1 = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE$1 = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE$1 = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE$1 = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE$1 = Symbol.for("react.suspense"), REACT_MEMO_TYPE$1 = Symbol.for("react.memo"), REACT_LAZY_TYPE$1 = Symbol.for("react.lazy"), MAYBE_ITERATOR_SYMBOL$1 = Symbol.iterator;
|
|
16965
17106
|
function getIteratorFn$1(maybeIterable) {
|
|
16966
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
17107
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
17108
|
+
return null;
|
|
16967
17109
|
maybeIterable = MAYBE_ITERATOR_SYMBOL$1 && maybeIterable[MAYBE_ITERATOR_SYMBOL$1] || maybeIterable["@@iterator"];
|
|
16968
17110
|
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
16969
17111
|
}
|
|
@@ -17069,9 +17211,11 @@ function resolveThenable(thenable) {
|
|
|
17069
17211
|
}
|
|
17070
17212
|
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
17071
17213
|
var type = typeof children;
|
|
17072
|
-
if ("undefined" === type || "boolean" === type)
|
|
17214
|
+
if ("undefined" === type || "boolean" === type)
|
|
17215
|
+
children = null;
|
|
17073
17216
|
var invokeCallback = false;
|
|
17074
|
-
if (null === children)
|
|
17217
|
+
if (null === children)
|
|
17218
|
+
invokeCallback = true;
|
|
17075
17219
|
else
|
|
17076
17220
|
switch (type) {
|
|
17077
17221
|
case "bigint":
|
|
@@ -17142,7 +17286,8 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
|
17142
17286
|
return invokeCallback;
|
|
17143
17287
|
}
|
|
17144
17288
|
function mapChildren(children, func, context) {
|
|
17145
|
-
if (null == children)
|
|
17289
|
+
if (null == children)
|
|
17290
|
+
return children;
|
|
17146
17291
|
var result = [], count2 = 0;
|
|
17147
17292
|
mapIntoArray(children, result, "", "", function(child) {
|
|
17148
17293
|
return func.call(context, child, count2++);
|
|
@@ -17165,7 +17310,8 @@ function lazyInitializer(payload) {
|
|
|
17165
17310
|
);
|
|
17166
17311
|
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
17167
17312
|
}
|
|
17168
|
-
if (1 === payload._status)
|
|
17313
|
+
if (1 === payload._status)
|
|
17314
|
+
return payload._result.default;
|
|
17169
17315
|
throw payload._result;
|
|
17170
17316
|
}
|
|
17171
17317
|
var reportGlobalError$1 = "function" === typeof reportError ? reportError : function(error) {
|
|
@@ -17176,7 +17322,8 @@ var reportGlobalError$1 = "function" === typeof reportError ? reportError : func
|
|
|
17176
17322
|
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
17177
17323
|
error
|
|
17178
17324
|
});
|
|
17179
|
-
if (!window.dispatchEvent(event))
|
|
17325
|
+
if (!window.dispatchEvent(event))
|
|
17326
|
+
return;
|
|
17180
17327
|
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
17181
17328
|
process.emit("uncaughtException", error);
|
|
17182
17329
|
return;
|
|
@@ -17244,7 +17391,8 @@ react_production.cloneElement = function(element, config, children) {
|
|
|
17244
17391
|
for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key2 = "" + config.key), config)
|
|
17245
17392
|
!hasOwnProperty$1.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
17246
17393
|
var propName = arguments.length - 2;
|
|
17247
|
-
if (1 === propName)
|
|
17394
|
+
if (1 === propName)
|
|
17395
|
+
props.children = children;
|
|
17248
17396
|
else if (1 < propName) {
|
|
17249
17397
|
for (var childArray = Array(propName), i2 = 0; i2 < propName; i2++)
|
|
17250
17398
|
childArray[i2] = arguments[i2 + 2];
|
|
@@ -17274,7 +17422,8 @@ react_production.createElement = function(type, config, children) {
|
|
|
17274
17422
|
for (propName in void 0 !== config.key && (key2 = "" + config.key), config)
|
|
17275
17423
|
hasOwnProperty$1.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
17276
17424
|
var childrenLength = arguments.length - 2;
|
|
17277
|
-
if (1 === childrenLength)
|
|
17425
|
+
if (1 === childrenLength)
|
|
17426
|
+
props.children = children;
|
|
17278
17427
|
else if (1 < childrenLength) {
|
|
17279
17428
|
for (var childArray = Array(childrenLength), i2 = 0; i2 < childrenLength; i2++)
|
|
17280
17429
|
childArray[i2] = arguments[i2 + 2];
|
|
@@ -17483,29 +17632,34 @@ var scheduler_production = {};
|
|
|
17483
17632
|
function push2(heap, node) {
|
|
17484
17633
|
var index2 = heap.length;
|
|
17485
17634
|
heap.push(node);
|
|
17486
|
-
a:
|
|
17487
|
-
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
|
|
17491
|
-
|
|
17635
|
+
a:
|
|
17636
|
+
for (; 0 < index2; ) {
|
|
17637
|
+
var parentIndex = index2 - 1 >>> 1, parent = heap[parentIndex];
|
|
17638
|
+
if (0 < compare(parent, node))
|
|
17639
|
+
heap[parentIndex] = node, heap[index2] = parent, index2 = parentIndex;
|
|
17640
|
+
else
|
|
17641
|
+
break a;
|
|
17642
|
+
}
|
|
17492
17643
|
}
|
|
17493
17644
|
function peek(heap) {
|
|
17494
17645
|
return 0 === heap.length ? null : heap[0];
|
|
17495
17646
|
}
|
|
17496
17647
|
function pop2(heap) {
|
|
17497
|
-
if (0 === heap.length)
|
|
17648
|
+
if (0 === heap.length)
|
|
17649
|
+
return null;
|
|
17498
17650
|
var first = heap[0], last = heap.pop();
|
|
17499
17651
|
if (last !== first) {
|
|
17500
17652
|
heap[0] = last;
|
|
17501
|
-
a:
|
|
17502
|
-
var
|
|
17503
|
-
|
|
17504
|
-
|
|
17505
|
-
|
|
17506
|
-
|
|
17507
|
-
|
|
17508
|
-
|
|
17653
|
+
a:
|
|
17654
|
+
for (var index2 = 0, length = heap.length, halfLength = length >>> 1; index2 < halfLength; ) {
|
|
17655
|
+
var leftIndex = 2 * (index2 + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
|
|
17656
|
+
if (0 > compare(left, last))
|
|
17657
|
+
rightIndex < length && 0 > compare(right, left) ? (heap[index2] = right, heap[rightIndex] = last, index2 = rightIndex) : (heap[index2] = left, heap[leftIndex] = last, index2 = leftIndex);
|
|
17658
|
+
else if (rightIndex < length && 0 > compare(right, last))
|
|
17659
|
+
heap[index2] = right, heap[rightIndex] = last, index2 = rightIndex;
|
|
17660
|
+
else
|
|
17661
|
+
break a;
|
|
17662
|
+
}
|
|
17509
17663
|
}
|
|
17510
17664
|
return first;
|
|
17511
17665
|
}
|
|
@@ -17528,10 +17682,12 @@ var scheduler_production = {};
|
|
|
17528
17682
|
var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
|
|
17529
17683
|
function advanceTimers(currentTime) {
|
|
17530
17684
|
for (var timer = peek(timerQueue); null !== timer; ) {
|
|
17531
|
-
if (null === timer.callback)
|
|
17685
|
+
if (null === timer.callback)
|
|
17686
|
+
pop2(timerQueue);
|
|
17532
17687
|
else if (timer.startTime <= currentTime)
|
|
17533
17688
|
pop2(timerQueue), timer.sortIndex = timer.expirationTime, push2(taskQueue, timer);
|
|
17534
|
-
else
|
|
17689
|
+
else
|
|
17690
|
+
break;
|
|
17535
17691
|
timer = peek(timerQueue);
|
|
17536
17692
|
}
|
|
17537
17693
|
}
|
|
@@ -17582,10 +17738,12 @@ var scheduler_production = {};
|
|
|
17582
17738
|
}
|
|
17583
17739
|
currentTask === peek(taskQueue) && pop2(taskQueue);
|
|
17584
17740
|
advanceTimers(currentTime);
|
|
17585
|
-
} else
|
|
17741
|
+
} else
|
|
17742
|
+
pop2(taskQueue);
|
|
17586
17743
|
currentTask = peek(taskQueue);
|
|
17587
17744
|
}
|
|
17588
|
-
if (null !== currentTask)
|
|
17745
|
+
if (null !== currentTask)
|
|
17746
|
+
hasMoreWork = true;
|
|
17589
17747
|
else {
|
|
17590
17748
|
var firstTimer = peek(timerQueue);
|
|
17591
17749
|
null !== firstTimer && requestHostTimeout(
|
|
@@ -17784,7 +17942,8 @@ function createPortal$1(children, containerInfo, implementation) {
|
|
|
17784
17942
|
}
|
|
17785
17943
|
var ReactSharedInternals$1 = React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
17786
17944
|
function getCrossOriginStringAs(as, input) {
|
|
17787
|
-
if ("font" === as)
|
|
17945
|
+
if ("font" === as)
|
|
17946
|
+
return "";
|
|
17788
17947
|
if ("string" === typeof input)
|
|
17789
17948
|
return "use-credentials" === input ? input : "";
|
|
17790
17949
|
}
|
|
@@ -17798,7 +17957,8 @@ reactDom_production.createPortal = function(children, container) {
|
|
|
17798
17957
|
reactDom_production.flushSync = function(fn) {
|
|
17799
17958
|
var previousTransition = ReactSharedInternals$1.T, previousUpdatePriority = Internals.p;
|
|
17800
17959
|
try {
|
|
17801
|
-
if (ReactSharedInternals$1.T = null, Internals.p = 2, fn)
|
|
17960
|
+
if (ReactSharedInternals$1.T = null, Internals.p = 2, fn)
|
|
17961
|
+
return fn();
|
|
17802
17962
|
} finally {
|
|
17803
17963
|
ReactSharedInternals$1.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
|
|
17804
17964
|
}
|
|
@@ -17842,7 +18002,8 @@ reactDom_production.preinitModule = function(href, options) {
|
|
|
17842
18002
|
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
17843
18003
|
});
|
|
17844
18004
|
}
|
|
17845
|
-
} else
|
|
18005
|
+
} else
|
|
18006
|
+
null == options && Internals.d.M(href);
|
|
17846
18007
|
};
|
|
17847
18008
|
reactDom_production.preload = function(href, options) {
|
|
17848
18009
|
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
|
@@ -17869,7 +18030,8 @@ reactDom_production.preloadModule = function(href, options) {
|
|
|
17869
18030
|
crossOrigin,
|
|
17870
18031
|
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
17871
18032
|
});
|
|
17872
|
-
} else
|
|
18033
|
+
} else
|
|
18034
|
+
Internals.d.m(href);
|
|
17873
18035
|
};
|
|
17874
18036
|
reactDom_production.requestFormReset = function(form) {
|
|
17875
18037
|
Internals.d.r(form);
|
|
@@ -17923,7 +18085,9 @@ function isValidContainer(node) {
|
|
|
17923
18085
|
}
|
|
17924
18086
|
function getNearestMountedFiber(fiber) {
|
|
17925
18087
|
var node = fiber, nearestMounted = fiber;
|
|
17926
|
-
if (fiber.alternate)
|
|
18088
|
+
if (fiber.alternate)
|
|
18089
|
+
for (; node.return; )
|
|
18090
|
+
node = node.return;
|
|
17927
18091
|
else {
|
|
17928
18092
|
fiber = node;
|
|
17929
18093
|
do
|
|
@@ -17936,7 +18100,8 @@ function getSuspenseInstanceFromFiber(fiber) {
|
|
|
17936
18100
|
if (13 === fiber.tag) {
|
|
17937
18101
|
var suspenseState = fiber.memoizedState;
|
|
17938
18102
|
null === suspenseState && (fiber = fiber.alternate, null !== fiber && (suspenseState = fiber.memoizedState));
|
|
17939
|
-
if (null !== suspenseState)
|
|
18103
|
+
if (null !== suspenseState)
|
|
18104
|
+
return suspenseState.dehydrated;
|
|
17940
18105
|
}
|
|
17941
18106
|
return null;
|
|
17942
18107
|
}
|
|
@@ -17948,12 +18113,14 @@ function findCurrentFiberUsingSlowPath(fiber) {
|
|
|
17948
18113
|
var alternate = fiber.alternate;
|
|
17949
18114
|
if (!alternate) {
|
|
17950
18115
|
alternate = getNearestMountedFiber(fiber);
|
|
17951
|
-
if (null === alternate)
|
|
18116
|
+
if (null === alternate)
|
|
18117
|
+
throw Error(formatProdErrorMessage(188));
|
|
17952
18118
|
return alternate !== fiber ? null : fiber;
|
|
17953
18119
|
}
|
|
17954
18120
|
for (var a2 = fiber, b = alternate; ; ) {
|
|
17955
18121
|
var parentA = a2.return;
|
|
17956
|
-
if (null === parentA)
|
|
18122
|
+
if (null === parentA)
|
|
18123
|
+
break;
|
|
17957
18124
|
var parentB = parentA.alternate;
|
|
17958
18125
|
if (null === parentB) {
|
|
17959
18126
|
b = parentA.return;
|
|
@@ -17965,13 +18132,16 @@ function findCurrentFiberUsingSlowPath(fiber) {
|
|
|
17965
18132
|
}
|
|
17966
18133
|
if (parentA.child === parentB.child) {
|
|
17967
18134
|
for (parentB = parentA.child; parentB; ) {
|
|
17968
|
-
if (parentB === a2)
|
|
17969
|
-
|
|
18135
|
+
if (parentB === a2)
|
|
18136
|
+
return assertIsMounted(parentA), fiber;
|
|
18137
|
+
if (parentB === b)
|
|
18138
|
+
return assertIsMounted(parentA), alternate;
|
|
17970
18139
|
parentB = parentB.sibling;
|
|
17971
18140
|
}
|
|
17972
18141
|
throw Error(formatProdErrorMessage(188));
|
|
17973
18142
|
}
|
|
17974
|
-
if (a2.return !== b.return)
|
|
18143
|
+
if (a2.return !== b.return)
|
|
18144
|
+
a2 = parentA, b = parentB;
|
|
17975
18145
|
else {
|
|
17976
18146
|
for (var didFindChild = false, child$0 = parentA.child; child$0; ) {
|
|
17977
18147
|
if (child$0 === a2) {
|
|
@@ -18004,20 +18174,25 @@ function findCurrentFiberUsingSlowPath(fiber) {
|
|
|
18004
18174
|
}
|
|
18005
18175
|
child$0 = child$0.sibling;
|
|
18006
18176
|
}
|
|
18007
|
-
if (!didFindChild)
|
|
18177
|
+
if (!didFindChild)
|
|
18178
|
+
throw Error(formatProdErrorMessage(189));
|
|
18008
18179
|
}
|
|
18009
18180
|
}
|
|
18010
|
-
if (a2.alternate !== b)
|
|
18181
|
+
if (a2.alternate !== b)
|
|
18182
|
+
throw Error(formatProdErrorMessage(190));
|
|
18011
18183
|
}
|
|
18012
|
-
if (3 !== a2.tag)
|
|
18184
|
+
if (3 !== a2.tag)
|
|
18185
|
+
throw Error(formatProdErrorMessage(188));
|
|
18013
18186
|
return a2.stateNode.current === a2 ? fiber : alternate;
|
|
18014
18187
|
}
|
|
18015
18188
|
function findCurrentHostFiberImpl(node) {
|
|
18016
18189
|
var tag = node.tag;
|
|
18017
|
-
if (5 === tag || 26 === tag || 27 === tag || 6 === tag)
|
|
18190
|
+
if (5 === tag || 26 === tag || 27 === tag || 6 === tag)
|
|
18191
|
+
return node;
|
|
18018
18192
|
for (node = node.child; null !== node; ) {
|
|
18019
18193
|
tag = findCurrentHostFiberImpl(node);
|
|
18020
|
-
if (null !== tag)
|
|
18194
|
+
if (null !== tag)
|
|
18195
|
+
return tag;
|
|
18021
18196
|
node = node.sibling;
|
|
18022
18197
|
}
|
|
18023
18198
|
return null;
|
|
@@ -18027,16 +18202,19 @@ var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
|
18027
18202
|
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
|
18028
18203
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
18029
18204
|
function getIteratorFn(maybeIterable) {
|
|
18030
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
18205
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
18206
|
+
return null;
|
|
18031
18207
|
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
18032
18208
|
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
18033
18209
|
}
|
|
18034
18210
|
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
18035
18211
|
function getComponentNameFromType(type) {
|
|
18036
|
-
if (null == type)
|
|
18212
|
+
if (null == type)
|
|
18213
|
+
return null;
|
|
18037
18214
|
if ("function" === typeof type)
|
|
18038
18215
|
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
18039
|
-
if ("string" === typeof type)
|
|
18216
|
+
if ("string" === typeof type)
|
|
18217
|
+
return type;
|
|
18040
18218
|
switch (type) {
|
|
18041
18219
|
case REACT_FRAGMENT_TYPE:
|
|
18042
18220
|
return "Fragment";
|
|
@@ -18153,7 +18331,8 @@ function clz32Fallback(x2) {
|
|
|
18153
18331
|
var nextTransitionLane = 256, nextRetryLane = 4194304;
|
|
18154
18332
|
function getHighestPriorityLanes(lanes) {
|
|
18155
18333
|
var pendingSyncLanes = lanes & 42;
|
|
18156
|
-
if (0 !== pendingSyncLanes)
|
|
18334
|
+
if (0 !== pendingSyncLanes)
|
|
18335
|
+
return pendingSyncLanes;
|
|
18157
18336
|
switch (lanes & -lanes) {
|
|
18158
18337
|
case 1:
|
|
18159
18338
|
return 1;
|
|
@@ -18207,7 +18386,8 @@ function getHighestPriorityLanes(lanes) {
|
|
|
18207
18386
|
}
|
|
18208
18387
|
function getNextLanes(root2, wipLanes, rootHasPendingCommit) {
|
|
18209
18388
|
var pendingLanes = root2.pendingLanes;
|
|
18210
|
-
if (0 === pendingLanes)
|
|
18389
|
+
if (0 === pendingLanes)
|
|
18390
|
+
return 0;
|
|
18211
18391
|
var nextLanes = 0, suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes;
|
|
18212
18392
|
root2 = root2.warmLanes;
|
|
18213
18393
|
var nonIdlePendingLanes = pendingLanes & 134217727;
|
|
@@ -18271,7 +18451,8 @@ function claimNextRetryLane() {
|
|
|
18271
18451
|
return lane;
|
|
18272
18452
|
}
|
|
18273
18453
|
function createLaneMap(initial) {
|
|
18274
|
-
for (var laneMap = [], i2 = 0; 31 > i2; i2++)
|
|
18454
|
+
for (var laneMap = [], i2 = 0; 31 > i2; i2++)
|
|
18455
|
+
laneMap.push(initial);
|
|
18275
18456
|
return laneMap;
|
|
18276
18457
|
}
|
|
18277
18458
|
function markRootUpdated$1(root2, updateLane) {
|
|
@@ -18364,7 +18545,8 @@ function lanesToEventPriority(lanes) {
|
|
|
18364
18545
|
}
|
|
18365
18546
|
function resolveUpdatePriority() {
|
|
18366
18547
|
var updatePriority = ReactDOMSharedInternals.p;
|
|
18367
|
-
if (0 !== updatePriority)
|
|
18548
|
+
if (0 !== updatePriority)
|
|
18549
|
+
return updatePriority;
|
|
18368
18550
|
updatePriority = window.event;
|
|
18369
18551
|
return void 0 === updatePriority ? 32 : getEventPriority(updatePriority.type);
|
|
18370
18552
|
}
|
|
@@ -18386,13 +18568,15 @@ function detachDeletedInstance(node) {
|
|
|
18386
18568
|
}
|
|
18387
18569
|
function getClosestInstanceFromNode(targetNode) {
|
|
18388
18570
|
var targetInst = targetNode[internalInstanceKey];
|
|
18389
|
-
if (targetInst)
|
|
18571
|
+
if (targetInst)
|
|
18572
|
+
return targetInst;
|
|
18390
18573
|
for (var parentNode = targetNode.parentNode; parentNode; ) {
|
|
18391
18574
|
if (targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey]) {
|
|
18392
18575
|
parentNode = targetInst.alternate;
|
|
18393
18576
|
if (null !== targetInst.child || null !== parentNode && null !== parentNode.child)
|
|
18394
18577
|
for (targetNode = getParentSuspenseInstance(targetNode); null !== targetNode; ) {
|
|
18395
|
-
if (parentNode = targetNode[internalInstanceKey])
|
|
18578
|
+
if (parentNode = targetNode[internalInstanceKey])
|
|
18579
|
+
return parentNode;
|
|
18396
18580
|
targetNode = getParentSuspenseInstance(targetNode);
|
|
18397
18581
|
}
|
|
18398
18582
|
return targetInst;
|
|
@@ -18412,7 +18596,8 @@ function getInstanceFromNode(node) {
|
|
|
18412
18596
|
}
|
|
18413
18597
|
function getNodeFromInstance(inst) {
|
|
18414
18598
|
var tag = inst.tag;
|
|
18415
|
-
if (5 === tag || 26 === tag || 27 === tag || 6 === tag)
|
|
18599
|
+
if (5 === tag || 26 === tag || 27 === tag || 6 === tag)
|
|
18600
|
+
return inst.stateNode;
|
|
18416
18601
|
throw Error(formatProdErrorMessage(33));
|
|
18417
18602
|
}
|
|
18418
18603
|
function getResourcesFromRoot(root2) {
|
|
@@ -18439,7 +18624,8 @@ var VALID_ATTRIBUTE_NAME_REGEX = RegExp(
|
|
|
18439
18624
|
function isAttributeNameSafe(attributeName) {
|
|
18440
18625
|
if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))
|
|
18441
18626
|
return true;
|
|
18442
|
-
if (hasOwnProperty.call(illegalAttributeNameCache, attributeName))
|
|
18627
|
+
if (hasOwnProperty.call(illegalAttributeNameCache, attributeName))
|
|
18628
|
+
return false;
|
|
18443
18629
|
if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
|
|
18444
18630
|
return validatedAttributeNameCache[attributeName] = true;
|
|
18445
18631
|
illegalAttributeNameCache[attributeName] = true;
|
|
@@ -18447,7 +18633,8 @@ function isAttributeNameSafe(attributeName) {
|
|
|
18447
18633
|
}
|
|
18448
18634
|
function setValueForAttribute(node, name, value) {
|
|
18449
18635
|
if (isAttributeNameSafe(name))
|
|
18450
|
-
if (null === value)
|
|
18636
|
+
if (null === value)
|
|
18637
|
+
node.removeAttribute(name);
|
|
18451
18638
|
else {
|
|
18452
18639
|
switch (typeof value) {
|
|
18453
18640
|
case "undefined":
|
|
@@ -18466,7 +18653,8 @@ function setValueForAttribute(node, name, value) {
|
|
|
18466
18653
|
}
|
|
18467
18654
|
}
|
|
18468
18655
|
function setValueForKnownAttribute(node, name, value) {
|
|
18469
|
-
if (null === value)
|
|
18656
|
+
if (null === value)
|
|
18657
|
+
node.removeAttribute(name);
|
|
18470
18658
|
else {
|
|
18471
18659
|
switch (typeof value) {
|
|
18472
18660
|
case "undefined":
|
|
@@ -18480,7 +18668,8 @@ function setValueForKnownAttribute(node, name, value) {
|
|
|
18480
18668
|
}
|
|
18481
18669
|
}
|
|
18482
18670
|
function setValueForNamespacedAttribute(node, namespace, name, value) {
|
|
18483
|
-
if (null === value)
|
|
18671
|
+
if (null === value)
|
|
18672
|
+
node.removeAttribute(name);
|
|
18484
18673
|
else {
|
|
18485
18674
|
switch (typeof value) {
|
|
18486
18675
|
case "undefined":
|
|
@@ -18507,7 +18696,8 @@ function describeBuiltInComponentFrame(name) {
|
|
|
18507
18696
|
}
|
|
18508
18697
|
var reentry = false;
|
|
18509
18698
|
function describeNativeComponentFrame(fn, construct) {
|
|
18510
|
-
if (!fn || reentry)
|
|
18699
|
+
if (!fn || reentry)
|
|
18700
|
+
return "";
|
|
18511
18701
|
reentry = true;
|
|
18512
18702
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
18513
18703
|
Error.prepareStackTrace = void 0;
|
|
@@ -18688,9 +18878,11 @@ function track(node) {
|
|
|
18688
18878
|
node._valueTracker || (node._valueTracker = trackValueOnNode(node));
|
|
18689
18879
|
}
|
|
18690
18880
|
function updateValueIfChanged(node) {
|
|
18691
|
-
if (!node)
|
|
18881
|
+
if (!node)
|
|
18882
|
+
return false;
|
|
18692
18883
|
var tracker = node._valueTracker;
|
|
18693
|
-
if (!tracker)
|
|
18884
|
+
if (!tracker)
|
|
18885
|
+
return true;
|
|
18694
18886
|
var lastValue = tracker.getValue();
|
|
18695
18887
|
var value = "";
|
|
18696
18888
|
node && (value = isCheckable(node) ? node.checked ? "true" : "false" : node.value);
|
|
@@ -18699,7 +18891,8 @@ function updateValueIfChanged(node) {
|
|
|
18699
18891
|
}
|
|
18700
18892
|
function getActiveElement(doc2) {
|
|
18701
18893
|
doc2 = doc2 || ("undefined" !== typeof document ? document : void 0);
|
|
18702
|
-
if ("undefined" === typeof doc2)
|
|
18894
|
+
if ("undefined" === typeof doc2)
|
|
18895
|
+
return null;
|
|
18703
18896
|
try {
|
|
18704
18897
|
return doc2.activeElement || doc2.body;
|
|
18705
18898
|
} catch (e2) {
|
|
@@ -18782,9 +18975,11 @@ function updateTextarea(element, value, defaultValue) {
|
|
|
18782
18975
|
function initTextarea(element, value, defaultValue, children) {
|
|
18783
18976
|
if (null == value) {
|
|
18784
18977
|
if (null != children) {
|
|
18785
|
-
if (null != defaultValue)
|
|
18978
|
+
if (null != defaultValue)
|
|
18979
|
+
throw Error(formatProdErrorMessage(92));
|
|
18786
18980
|
if (isArrayImpl(children)) {
|
|
18787
|
-
if (1 < children.length)
|
|
18981
|
+
if (1 < children.length)
|
|
18982
|
+
throw Error(formatProdErrorMessage(93));
|
|
18788
18983
|
children = children[0];
|
|
18789
18984
|
}
|
|
18790
18985
|
defaultValue = children;
|
|
@@ -18830,7 +19025,8 @@ function setValueForStyles(node, styles, prevStyles) {
|
|
|
18830
19025
|
styles.hasOwnProperty(styleName$17) && setValueForStyle(node, styleName$17, styles[styleName$17]);
|
|
18831
19026
|
}
|
|
18832
19027
|
function isCustomElement(tagName) {
|
|
18833
|
-
if (-1 === tagName.indexOf("-"))
|
|
19028
|
+
if (-1 === tagName.indexOf("-"))
|
|
19029
|
+
return false;
|
|
18834
19030
|
switch (tagName) {
|
|
18835
19031
|
case "annotation-xml":
|
|
18836
19032
|
case "color-profile":
|
|
@@ -18939,58 +19135,62 @@ function restoreStateOfTarget(target) {
|
|
|
18939
19135
|
var internalInstance = getInstanceFromNode(target);
|
|
18940
19136
|
if (internalInstance && (target = internalInstance.stateNode)) {
|
|
18941
19137
|
var props = target[internalPropsKey] || null;
|
|
18942
|
-
a:
|
|
18943
|
-
|
|
18944
|
-
|
|
18945
|
-
|
|
18946
|
-
|
|
18947
|
-
|
|
18948
|
-
|
|
18949
|
-
|
|
18950
|
-
|
|
18951
|
-
|
|
18952
|
-
|
|
18953
|
-
|
|
18954
|
-
internalInstance = props.name;
|
|
18955
|
-
if ("radio" === props.type && null != internalInstance) {
|
|
18956
|
-
for (props = target; props.parentNode; ) props = props.parentNode;
|
|
18957
|
-
props = props.querySelectorAll(
|
|
18958
|
-
'input[name="' + escapeSelectorAttributeValueInsideDoubleQuotes(
|
|
18959
|
-
"" + internalInstance
|
|
18960
|
-
) + '"][type="radio"]'
|
|
19138
|
+
a:
|
|
19139
|
+
switch (target = internalInstance.stateNode, internalInstance.type) {
|
|
19140
|
+
case "input":
|
|
19141
|
+
updateInput(
|
|
19142
|
+
target,
|
|
19143
|
+
props.value,
|
|
19144
|
+
props.defaultValue,
|
|
19145
|
+
props.defaultValue,
|
|
19146
|
+
props.checked,
|
|
19147
|
+
props.defaultChecked,
|
|
19148
|
+
props.type,
|
|
19149
|
+
props.name
|
|
18961
19150
|
);
|
|
18962
|
-
|
|
18963
|
-
|
|
18964
|
-
|
|
18965
|
-
|
|
18966
|
-
|
|
18967
|
-
|
|
18968
|
-
|
|
18969
|
-
|
|
18970
|
-
|
|
18971
|
-
|
|
18972
|
-
|
|
18973
|
-
|
|
18974
|
-
otherProps
|
|
18975
|
-
otherProps
|
|
18976
|
-
|
|
19151
|
+
internalInstance = props.name;
|
|
19152
|
+
if ("radio" === props.type && null != internalInstance) {
|
|
19153
|
+
for (props = target; props.parentNode; )
|
|
19154
|
+
props = props.parentNode;
|
|
19155
|
+
props = props.querySelectorAll(
|
|
19156
|
+
'input[name="' + escapeSelectorAttributeValueInsideDoubleQuotes(
|
|
19157
|
+
"" + internalInstance
|
|
19158
|
+
) + '"][type="radio"]'
|
|
19159
|
+
);
|
|
19160
|
+
for (internalInstance = 0; internalInstance < props.length; internalInstance++) {
|
|
19161
|
+
var otherNode = props[internalInstance];
|
|
19162
|
+
if (otherNode !== target && otherNode.form === target.form) {
|
|
19163
|
+
var otherProps = otherNode[internalPropsKey] || null;
|
|
19164
|
+
if (!otherProps)
|
|
19165
|
+
throw Error(formatProdErrorMessage(90));
|
|
19166
|
+
updateInput(
|
|
19167
|
+
otherNode,
|
|
19168
|
+
otherProps.value,
|
|
19169
|
+
otherProps.defaultValue,
|
|
19170
|
+
otherProps.defaultValue,
|
|
19171
|
+
otherProps.checked,
|
|
19172
|
+
otherProps.defaultChecked,
|
|
19173
|
+
otherProps.type,
|
|
19174
|
+
otherProps.name
|
|
19175
|
+
);
|
|
19176
|
+
}
|
|
18977
19177
|
}
|
|
19178
|
+
for (internalInstance = 0; internalInstance < props.length; internalInstance++)
|
|
19179
|
+
otherNode = props[internalInstance], otherNode.form === target.form && updateValueIfChanged(otherNode);
|
|
18978
19180
|
}
|
|
18979
|
-
|
|
18980
|
-
|
|
18981
|
-
|
|
18982
|
-
|
|
18983
|
-
|
|
18984
|
-
|
|
18985
|
-
|
|
18986
|
-
case "select":
|
|
18987
|
-
internalInstance = props.value, null != internalInstance && updateOptions(target, !!props.multiple, internalInstance, false);
|
|
18988
|
-
}
|
|
19181
|
+
break a;
|
|
19182
|
+
case "textarea":
|
|
19183
|
+
updateTextarea(target, props.value, props.defaultValue);
|
|
19184
|
+
break a;
|
|
19185
|
+
case "select":
|
|
19186
|
+
internalInstance = props.value, null != internalInstance && updateOptions(target, !!props.multiple, internalInstance, false);
|
|
19187
|
+
}
|
|
18989
19188
|
}
|
|
18990
19189
|
}
|
|
18991
19190
|
var isInsideEventHandler = false;
|
|
18992
19191
|
function batchedUpdates$1(fn, a2, b) {
|
|
18993
|
-
if (isInsideEventHandler)
|
|
19192
|
+
if (isInsideEventHandler)
|
|
19193
|
+
return fn(a2, b);
|
|
18994
19194
|
isInsideEventHandler = true;
|
|
18995
19195
|
try {
|
|
18996
19196
|
var JSCompiler_inline_result = fn(a2);
|
|
@@ -18998,35 +19198,40 @@ function batchedUpdates$1(fn, a2, b) {
|
|
|
18998
19198
|
} finally {
|
|
18999
19199
|
if (isInsideEventHandler = false, null !== restoreTarget || null !== restoreQueue) {
|
|
19000
19200
|
if (flushSyncWork$1(), restoreTarget && (a2 = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(a2), fn))
|
|
19001
|
-
for (a2 = 0; a2 < fn.length; a2++)
|
|
19201
|
+
for (a2 = 0; a2 < fn.length; a2++)
|
|
19202
|
+
restoreStateOfTarget(fn[a2]);
|
|
19002
19203
|
}
|
|
19003
19204
|
}
|
|
19004
19205
|
}
|
|
19005
19206
|
function getListener(inst, registrationName) {
|
|
19006
19207
|
var stateNode = inst.stateNode;
|
|
19007
|
-
if (null === stateNode)
|
|
19208
|
+
if (null === stateNode)
|
|
19209
|
+
return null;
|
|
19008
19210
|
var props = stateNode[internalPropsKey] || null;
|
|
19009
|
-
if (null === props)
|
|
19211
|
+
if (null === props)
|
|
19212
|
+
return null;
|
|
19010
19213
|
stateNode = props[registrationName];
|
|
19011
|
-
a:
|
|
19012
|
-
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
|
|
19025
|
-
|
|
19026
|
-
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19214
|
+
a:
|
|
19215
|
+
switch (registrationName) {
|
|
19216
|
+
case "onClick":
|
|
19217
|
+
case "onClickCapture":
|
|
19218
|
+
case "onDoubleClick":
|
|
19219
|
+
case "onDoubleClickCapture":
|
|
19220
|
+
case "onMouseDown":
|
|
19221
|
+
case "onMouseDownCapture":
|
|
19222
|
+
case "onMouseMove":
|
|
19223
|
+
case "onMouseMoveCapture":
|
|
19224
|
+
case "onMouseUp":
|
|
19225
|
+
case "onMouseUpCapture":
|
|
19226
|
+
case "onMouseEnter":
|
|
19227
|
+
(props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst));
|
|
19228
|
+
inst = !props;
|
|
19229
|
+
break a;
|
|
19230
|
+
default:
|
|
19231
|
+
inst = false;
|
|
19232
|
+
}
|
|
19233
|
+
if (inst)
|
|
19234
|
+
return null;
|
|
19030
19235
|
if (stateNode && "function" !== typeof stateNode)
|
|
19031
19236
|
throw Error(
|
|
19032
19237
|
formatProdErrorMessage(231, registrationName, typeof stateNode)
|
|
@@ -19049,11 +19254,14 @@ if (canUseDOM)
|
|
|
19049
19254
|
}
|
|
19050
19255
|
var root = null, startText = null, fallbackText = null;
|
|
19051
19256
|
function getData() {
|
|
19052
|
-
if (fallbackText)
|
|
19257
|
+
if (fallbackText)
|
|
19258
|
+
return fallbackText;
|
|
19053
19259
|
var start, startValue = startText, startLength = startValue.length, end, endValue = "value" in root ? root.value : root.textContent, endLength = endValue.length;
|
|
19054
|
-
for (start = 0; start < startLength && startValue[start] === endValue[start]; start++)
|
|
19260
|
+
for (start = 0; start < startLength && startValue[start] === endValue[start]; start++)
|
|
19261
|
+
;
|
|
19055
19262
|
var minEnd = startLength - start;
|
|
19056
|
-
for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++)
|
|
19263
|
+
for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++)
|
|
19264
|
+
;
|
|
19057
19265
|
return fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0);
|
|
19058
19266
|
}
|
|
19059
19267
|
function getEventCharCode(nativeEvent) {
|
|
@@ -19125,7 +19333,8 @@ var EventInterface = {
|
|
|
19125
19333
|
return void 0 === event.relatedTarget ? event.fromElement === event.srcElement ? event.toElement : event.fromElement : event.relatedTarget;
|
|
19126
19334
|
},
|
|
19127
19335
|
movementX: function(event) {
|
|
19128
|
-
if ("movementX" in event)
|
|
19336
|
+
if ("movementX" in event)
|
|
19337
|
+
return event.movementX;
|
|
19129
19338
|
event !== lastMouseEvent && (lastMouseEvent && "mousemove" === event.type ? (lastMovementX = event.screenX - lastMouseEvent.screenX, lastMovementY = event.screenY - lastMouseEvent.screenY) : lastMovementY = lastMovementX = 0, lastMouseEvent = event);
|
|
19130
19339
|
return lastMovementX;
|
|
19131
19340
|
},
|
|
@@ -19207,7 +19416,8 @@ var KeyboardEventInterface = assign({}, UIEventInterface, {
|
|
|
19207
19416
|
key: function(nativeEvent) {
|
|
19208
19417
|
if (nativeEvent.key) {
|
|
19209
19418
|
var key2 = normalizeKey[nativeEvent.key] || nativeEvent.key;
|
|
19210
|
-
if ("Unidentified" !== key2)
|
|
19419
|
+
if ("Unidentified" !== key2)
|
|
19420
|
+
return key2;
|
|
19211
19421
|
}
|
|
19212
19422
|
return "keypress" === nativeEvent.type ? (nativeEvent = getEventCharCode(nativeEvent), 13 === nativeEvent ? "Enter" : String.fromCharCode(nativeEvent)) : "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : "";
|
|
19213
19423
|
},
|
|
@@ -19292,7 +19502,8 @@ function getNativeBeforeInputChars(domEventName, nativeEvent) {
|
|
|
19292
19502
|
case "compositionend":
|
|
19293
19503
|
return getDataFromCustomEvent(nativeEvent);
|
|
19294
19504
|
case "keypress":
|
|
19295
|
-
if (32 !== nativeEvent.which)
|
|
19505
|
+
if (32 !== nativeEvent.which)
|
|
19506
|
+
return null;
|
|
19296
19507
|
hasSpaceKeypress = true;
|
|
19297
19508
|
return SPACEBAR_CHAR;
|
|
19298
19509
|
case "textInput":
|
|
@@ -19311,7 +19522,8 @@ function getFallbackBeforeInputChars(domEventName, nativeEvent) {
|
|
|
19311
19522
|
if (!(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) || nativeEvent.ctrlKey && nativeEvent.altKey) {
|
|
19312
19523
|
if (nativeEvent.char && 1 < nativeEvent.char.length)
|
|
19313
19524
|
return nativeEvent.char;
|
|
19314
|
-
if (nativeEvent.which)
|
|
19525
|
+
if (nativeEvent.which)
|
|
19526
|
+
return String.fromCharCode(nativeEvent.which);
|
|
19315
19527
|
}
|
|
19316
19528
|
return null;
|
|
19317
19529
|
case "compositionend":
|
|
@@ -19358,10 +19570,12 @@ function runEventInBatch(dispatchQueue) {
|
|
|
19358
19570
|
}
|
|
19359
19571
|
function getInstIfValueChanged(targetInst) {
|
|
19360
19572
|
var targetNode = getNodeFromInstance(targetInst);
|
|
19361
|
-
if (updateValueIfChanged(targetNode))
|
|
19573
|
+
if (updateValueIfChanged(targetNode))
|
|
19574
|
+
return targetInst;
|
|
19362
19575
|
}
|
|
19363
19576
|
function getTargetInstForChangeEvent(domEventName, targetInst) {
|
|
19364
|
-
if ("change" === domEventName)
|
|
19577
|
+
if ("change" === domEventName)
|
|
19578
|
+
return targetInst;
|
|
19365
19579
|
}
|
|
19366
19580
|
var isInputEventSupported = false;
|
|
19367
19581
|
if (canUseDOM) {
|
|
@@ -19374,7 +19588,8 @@ if (canUseDOM) {
|
|
|
19374
19588
|
isSupported$jscomp$inline_417 = "function" === typeof element$jscomp$inline_418.oninput;
|
|
19375
19589
|
}
|
|
19376
19590
|
JSCompiler_inline_result$jscomp$282 = isSupported$jscomp$inline_417;
|
|
19377
|
-
} else
|
|
19591
|
+
} else
|
|
19592
|
+
JSCompiler_inline_result$jscomp$282 = false;
|
|
19378
19593
|
isInputEventSupported = JSCompiler_inline_result$jscomp$282 && (!document.documentMode || 9 < document.documentMode);
|
|
19379
19594
|
}
|
|
19380
19595
|
function stopWatchingForValueChange() {
|
|
@@ -19400,7 +19615,8 @@ function getTargetInstForInputEventPolyfill(domEventName) {
|
|
|
19400
19615
|
return getInstIfValueChanged(activeElementInst$1);
|
|
19401
19616
|
}
|
|
19402
19617
|
function getTargetInstForClickEvent(domEventName, targetInst) {
|
|
19403
|
-
if ("click" === domEventName)
|
|
19618
|
+
if ("click" === domEventName)
|
|
19619
|
+
return getInstIfValueChanged(targetInst);
|
|
19404
19620
|
}
|
|
19405
19621
|
function getTargetInstForInputOrChangeEvent(domEventName, targetInst) {
|
|
19406
19622
|
if ("input" === domEventName || "change" === domEventName)
|
|
@@ -19411,11 +19627,13 @@ function is(x2, y2) {
|
|
|
19411
19627
|
}
|
|
19412
19628
|
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
19413
19629
|
function shallowEqual(objA, objB) {
|
|
19414
|
-
if (objectIs(objA, objB))
|
|
19630
|
+
if (objectIs(objA, objB))
|
|
19631
|
+
return true;
|
|
19415
19632
|
if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB)
|
|
19416
19633
|
return false;
|
|
19417
19634
|
var keysA = Object.keys(objA), keysB = Object.keys(objB);
|
|
19418
|
-
if (keysA.length !== keysB.length)
|
|
19635
|
+
if (keysA.length !== keysB.length)
|
|
19636
|
+
return false;
|
|
19419
19637
|
for (keysB = 0; keysB < keysA.length; keysB++) {
|
|
19420
19638
|
var currentKey = keysA[keysB];
|
|
19421
19639
|
if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey]))
|
|
@@ -19424,7 +19642,8 @@ function shallowEqual(objA, objB) {
|
|
|
19424
19642
|
return true;
|
|
19425
19643
|
}
|
|
19426
19644
|
function getLeafNode(node) {
|
|
19427
|
-
for (; node && node.firstChild; )
|
|
19645
|
+
for (; node && node.firstChild; )
|
|
19646
|
+
node = node.firstChild;
|
|
19428
19647
|
return node;
|
|
19429
19648
|
}
|
|
19430
19649
|
function getNodeForCharacterOffset(root2, offset) {
|
|
@@ -19461,8 +19680,10 @@ function getActiveElementDeep(containerInfo) {
|
|
|
19461
19680
|
} catch (err) {
|
|
19462
19681
|
JSCompiler_inline_result = false;
|
|
19463
19682
|
}
|
|
19464
|
-
if (JSCompiler_inline_result)
|
|
19465
|
-
|
|
19683
|
+
if (JSCompiler_inline_result)
|
|
19684
|
+
containerInfo = element.contentWindow;
|
|
19685
|
+
else
|
|
19686
|
+
break;
|
|
19466
19687
|
element = getActiveElement(containerInfo.document);
|
|
19467
19688
|
}
|
|
19468
19689
|
return element;
|
|
@@ -19505,8 +19726,10 @@ var vendorPrefixes = {
|
|
|
19505
19726
|
}, prefixedEventNames = {}, style = {};
|
|
19506
19727
|
canUseDOM && (style = document.createElement("div").style, "AnimationEvent" in window || (delete vendorPrefixes.animationend.animation, delete vendorPrefixes.animationiteration.animation, delete vendorPrefixes.animationstart.animation), "TransitionEvent" in window || delete vendorPrefixes.transitionend.transition);
|
|
19507
19728
|
function getVendorPrefixedEventName(eventName) {
|
|
19508
|
-
if (prefixedEventNames[eventName])
|
|
19509
|
-
|
|
19729
|
+
if (prefixedEventNames[eventName])
|
|
19730
|
+
return prefixedEventNames[eventName];
|
|
19731
|
+
if (!vendorPrefixes[eventName])
|
|
19732
|
+
return eventName;
|
|
19510
19733
|
var prefixMap = vendorPrefixes[eventName], styleProp;
|
|
19511
19734
|
for (styleProp in prefixMap)
|
|
19512
19735
|
if (prefixMap.hasOwnProperty(styleProp) && styleProp in style)
|
|
@@ -19525,7 +19748,8 @@ var CapturedStacks = /* @__PURE__ */ new WeakMap();
|
|
|
19525
19748
|
function createCapturedValueAtFiber(value, source) {
|
|
19526
19749
|
if ("object" === typeof value && null !== value) {
|
|
19527
19750
|
var existing = CapturedStacks.get(value);
|
|
19528
|
-
if (void 0 !== existing)
|
|
19751
|
+
if (void 0 !== existing)
|
|
19752
|
+
return existing;
|
|
19529
19753
|
source = {
|
|
19530
19754
|
value,
|
|
19531
19755
|
source,
|
|
@@ -19649,7 +19873,8 @@ function resetWorkInProgress(workInProgress2, renderLanes2) {
|
|
|
19649
19873
|
function createFiberFromTypeAndProps(type, key2, pendingProps, owner, mode, lanes) {
|
|
19650
19874
|
var fiberTag = 0;
|
|
19651
19875
|
owner = type;
|
|
19652
|
-
if ("function" === typeof type)
|
|
19876
|
+
if ("function" === typeof type)
|
|
19877
|
+
shouldConstruct(type) && (fiberTag = 1);
|
|
19653
19878
|
else if ("string" === typeof type)
|
|
19654
19879
|
fiberTag = isHostHoistableType(
|
|
19655
19880
|
type,
|
|
@@ -19657,48 +19882,49 @@ function createFiberFromTypeAndProps(type, key2, pendingProps, owner, mode, lane
|
|
|
19657
19882
|
contextStackCursor.current
|
|
19658
19883
|
) ? 26 : "html" === type || "head" === type || "body" === type ? 27 : 5;
|
|
19659
19884
|
else
|
|
19660
|
-
a:
|
|
19661
|
-
|
|
19662
|
-
|
|
19663
|
-
|
|
19664
|
-
|
|
19665
|
-
|
|
19666
|
-
|
|
19667
|
-
|
|
19668
|
-
|
|
19669
|
-
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
|
|
19676
|
-
|
|
19677
|
-
|
|
19678
|
-
|
|
19679
|
-
|
|
19680
|
-
|
|
19681
|
-
|
|
19682
|
-
|
|
19683
|
-
|
|
19684
|
-
|
|
19685
|
-
|
|
19686
|
-
|
|
19687
|
-
|
|
19688
|
-
|
|
19689
|
-
|
|
19690
|
-
|
|
19691
|
-
|
|
19692
|
-
|
|
19693
|
-
|
|
19694
|
-
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
|
|
19698
|
-
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
19885
|
+
a:
|
|
19886
|
+
switch (type) {
|
|
19887
|
+
case REACT_ACTIVITY_TYPE:
|
|
19888
|
+
return type = createFiberImplClass(31, pendingProps, key2, mode), type.elementType = REACT_ACTIVITY_TYPE, type.lanes = lanes, type;
|
|
19889
|
+
case REACT_FRAGMENT_TYPE:
|
|
19890
|
+
return createFiberFromFragment(pendingProps.children, mode, lanes, key2);
|
|
19891
|
+
case REACT_STRICT_MODE_TYPE:
|
|
19892
|
+
fiberTag = 8;
|
|
19893
|
+
mode |= 24;
|
|
19894
|
+
break;
|
|
19895
|
+
case REACT_PROFILER_TYPE:
|
|
19896
|
+
return type = createFiberImplClass(12, pendingProps, key2, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type;
|
|
19897
|
+
case REACT_SUSPENSE_TYPE:
|
|
19898
|
+
return type = createFiberImplClass(13, pendingProps, key2, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type;
|
|
19899
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
19900
|
+
return type = createFiberImplClass(19, pendingProps, key2, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type;
|
|
19901
|
+
default:
|
|
19902
|
+
if ("object" === typeof type && null !== type)
|
|
19903
|
+
switch (type.$$typeof) {
|
|
19904
|
+
case REACT_PROVIDER_TYPE:
|
|
19905
|
+
case REACT_CONTEXT_TYPE:
|
|
19906
|
+
fiberTag = 10;
|
|
19907
|
+
break a;
|
|
19908
|
+
case REACT_CONSUMER_TYPE:
|
|
19909
|
+
fiberTag = 9;
|
|
19910
|
+
break a;
|
|
19911
|
+
case REACT_FORWARD_REF_TYPE:
|
|
19912
|
+
fiberTag = 11;
|
|
19913
|
+
break a;
|
|
19914
|
+
case REACT_MEMO_TYPE:
|
|
19915
|
+
fiberTag = 14;
|
|
19916
|
+
break a;
|
|
19917
|
+
case REACT_LAZY_TYPE:
|
|
19918
|
+
fiberTag = 16;
|
|
19919
|
+
owner = null;
|
|
19920
|
+
break a;
|
|
19921
|
+
}
|
|
19922
|
+
fiberTag = 29;
|
|
19923
|
+
pendingProps = Error(
|
|
19924
|
+
formatProdErrorMessage(130, null === type ? "null" : typeof type, "")
|
|
19925
|
+
);
|
|
19926
|
+
owner = null;
|
|
19927
|
+
}
|
|
19702
19928
|
key2 = createFiberImplClass(fiberTag, pendingProps, key2, mode);
|
|
19703
19929
|
key2.elementType = type;
|
|
19704
19930
|
key2.type = owner;
|
|
@@ -19844,8 +20070,10 @@ function popToNextHostParent(fiber) {
|
|
|
19844
20070
|
}
|
|
19845
20071
|
}
|
|
19846
20072
|
function popHydrationState(fiber) {
|
|
19847
|
-
if (fiber !== hydrationParentFiber)
|
|
19848
|
-
|
|
20073
|
+
if (fiber !== hydrationParentFiber)
|
|
20074
|
+
return false;
|
|
20075
|
+
if (!isHydrating)
|
|
20076
|
+
return popToNextHostParent(fiber), isHydrating = true, false;
|
|
19849
20077
|
var tag = fiber.tag, JSCompiler_temp;
|
|
19850
20078
|
if (JSCompiler_temp = 3 !== tag && 27 !== tag) {
|
|
19851
20079
|
if (JSCompiler_temp = 5 === tag)
|
|
@@ -19857,7 +20085,8 @@ function popHydrationState(fiber) {
|
|
|
19857
20085
|
if (13 === tag) {
|
|
19858
20086
|
fiber = fiber.memoizedState;
|
|
19859
20087
|
fiber = null !== fiber ? fiber.dehydrated : null;
|
|
19860
|
-
if (!fiber)
|
|
20088
|
+
if (!fiber)
|
|
20089
|
+
throw Error(formatProdErrorMessage(317));
|
|
19861
20090
|
a: {
|
|
19862
20091
|
fiber = fiber.nextSibling;
|
|
19863
20092
|
for (tag = 0; fiber; ) {
|
|
@@ -19906,7 +20135,8 @@ function scheduleContextWorkOnParentPath(parent, renderLanes2, propagationRoot)
|
|
|
19906
20135
|
for (; null !== parent; ) {
|
|
19907
20136
|
var alternate = parent.alternate;
|
|
19908
20137
|
(parent.childLanes & renderLanes2) !== renderLanes2 ? (parent.childLanes |= renderLanes2, null !== alternate && (alternate.childLanes |= renderLanes2)) : null !== alternate && (alternate.childLanes & renderLanes2) !== renderLanes2 && (alternate.childLanes |= renderLanes2);
|
|
19909
|
-
if (parent === propagationRoot)
|
|
20138
|
+
if (parent === propagationRoot)
|
|
20139
|
+
break;
|
|
19910
20140
|
parent = parent.return;
|
|
19911
20141
|
}
|
|
19912
20142
|
}
|
|
@@ -19918,34 +20148,38 @@ function propagateContextChanges(workInProgress2, contexts, renderLanes2, forceP
|
|
|
19918
20148
|
if (null !== list) {
|
|
19919
20149
|
var nextFiber = fiber.child;
|
|
19920
20150
|
list = list.firstContext;
|
|
19921
|
-
a:
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19925
|
-
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
|
|
19930
|
-
|
|
19931
|
-
|
|
19932
|
-
|
|
19933
|
-
|
|
19934
|
-
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
|
|
19938
|
-
|
|
20151
|
+
a:
|
|
20152
|
+
for (; null !== list; ) {
|
|
20153
|
+
var dependency = list;
|
|
20154
|
+
list = fiber;
|
|
20155
|
+
for (var i2 = 0; i2 < contexts.length; i2++)
|
|
20156
|
+
if (dependency.context === contexts[i2]) {
|
|
20157
|
+
list.lanes |= renderLanes2;
|
|
20158
|
+
dependency = list.alternate;
|
|
20159
|
+
null !== dependency && (dependency.lanes |= renderLanes2);
|
|
20160
|
+
scheduleContextWorkOnParentPath(
|
|
20161
|
+
list.return,
|
|
20162
|
+
renderLanes2,
|
|
20163
|
+
workInProgress2
|
|
20164
|
+
);
|
|
20165
|
+
forcePropagateEntireTree || (nextFiber = null);
|
|
20166
|
+
break a;
|
|
20167
|
+
}
|
|
20168
|
+
list = dependency.next;
|
|
20169
|
+
}
|
|
19939
20170
|
} else if (18 === fiber.tag) {
|
|
19940
20171
|
nextFiber = fiber.return;
|
|
19941
|
-
if (null === nextFiber)
|
|
20172
|
+
if (null === nextFiber)
|
|
20173
|
+
throw Error(formatProdErrorMessage(341));
|
|
19942
20174
|
nextFiber.lanes |= renderLanes2;
|
|
19943
20175
|
list = nextFiber.alternate;
|
|
19944
20176
|
null !== list && (list.lanes |= renderLanes2);
|
|
19945
20177
|
scheduleContextWorkOnParentPath(nextFiber, renderLanes2, workInProgress2);
|
|
19946
20178
|
nextFiber = null;
|
|
19947
|
-
} else
|
|
19948
|
-
|
|
20179
|
+
} else
|
|
20180
|
+
nextFiber = fiber.child;
|
|
20181
|
+
if (null !== nextFiber)
|
|
20182
|
+
nextFiber.return = fiber;
|
|
19949
20183
|
else
|
|
19950
20184
|
for (nextFiber = fiber; null !== nextFiber; ) {
|
|
19951
20185
|
if (nextFiber === workInProgress2) {
|
|
@@ -19967,12 +20201,15 @@ function propagateParentContextChanges(current, workInProgress2, renderLanes2, f
|
|
|
19967
20201
|
current = null;
|
|
19968
20202
|
for (var parent = workInProgress2, isInsidePropagationBailout = false; null !== parent; ) {
|
|
19969
20203
|
if (!isInsidePropagationBailout) {
|
|
19970
|
-
if (0 !== (parent.flags & 524288))
|
|
19971
|
-
|
|
20204
|
+
if (0 !== (parent.flags & 524288))
|
|
20205
|
+
isInsidePropagationBailout = true;
|
|
20206
|
+
else if (0 !== (parent.flags & 262144))
|
|
20207
|
+
break;
|
|
19972
20208
|
}
|
|
19973
20209
|
if (10 === parent.tag) {
|
|
19974
20210
|
var currentParent = parent.alternate;
|
|
19975
|
-
if (null === currentParent)
|
|
20211
|
+
if (null === currentParent)
|
|
20212
|
+
throw Error(formatProdErrorMessage(387));
|
|
19976
20213
|
currentParent = currentParent.memoizedProps;
|
|
19977
20214
|
if (null !== currentParent) {
|
|
19978
20215
|
var context = parent.type;
|
|
@@ -19980,7 +20217,8 @@ function propagateParentContextChanges(current, workInProgress2, renderLanes2, f
|
|
|
19980
20217
|
}
|
|
19981
20218
|
} else if (parent === hostTransitionProviderCursor.current) {
|
|
19982
20219
|
currentParent = parent.alternate;
|
|
19983
|
-
if (null === currentParent)
|
|
20220
|
+
if (null === currentParent)
|
|
20221
|
+
throw Error(formatProdErrorMessage(387));
|
|
19984
20222
|
currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (null !== current ? current.push(HostTransitionContext) : current = [HostTransitionContext]);
|
|
19985
20223
|
}
|
|
19986
20224
|
parent = parent.return;
|
|
@@ -20021,11 +20259,13 @@ function readContextForConsumer(consumer, context) {
|
|
|
20021
20259
|
var value = context._currentValue;
|
|
20022
20260
|
context = { context, memoizedValue: value, next: null };
|
|
20023
20261
|
if (null === lastContextDependency) {
|
|
20024
|
-
if (null === consumer)
|
|
20262
|
+
if (null === consumer)
|
|
20263
|
+
throw Error(formatProdErrorMessage(308));
|
|
20025
20264
|
lastContextDependency = context;
|
|
20026
20265
|
consumer.dependencies = { lanes: 0, firstContext: context };
|
|
20027
20266
|
consumer.flags |= 524288;
|
|
20028
|
-
} else
|
|
20267
|
+
} else
|
|
20268
|
+
lastContextDependency = lastContextDependency.next = context;
|
|
20029
20269
|
return value;
|
|
20030
20270
|
}
|
|
20031
20271
|
var AbortControllerLocal = "undefined" !== typeof AbortController ? AbortController : function() {
|
|
@@ -20087,7 +20327,8 @@ function pingEngtangledActionScope() {
|
|
|
20087
20327
|
currentEntangledListeners = null;
|
|
20088
20328
|
currentEntangledLane = 0;
|
|
20089
20329
|
currentEntangledActionThenable = null;
|
|
20090
|
-
for (var i2 = 0; i2 < listeners.length; i2++)
|
|
20330
|
+
for (var i2 = 0; i2 < listeners.length; i2++)
|
|
20331
|
+
(0, listeners[i2])();
|
|
20091
20332
|
}
|
|
20092
20333
|
}
|
|
20093
20334
|
function chainThenableValue(thenable, result) {
|
|
@@ -20103,7 +20344,8 @@ function chainThenableValue(thenable, result) {
|
|
|
20103
20344
|
function() {
|
|
20104
20345
|
thenableWithOverride.status = "fulfilled";
|
|
20105
20346
|
thenableWithOverride.value = result;
|
|
20106
|
-
for (var i2 = 0; i2 < listeners.length; i2++)
|
|
20347
|
+
for (var i2 = 0; i2 < listeners.length; i2++)
|
|
20348
|
+
(0, listeners[i2])(result);
|
|
20107
20349
|
},
|
|
20108
20350
|
function(error) {
|
|
20109
20351
|
thenableWithOverride.status = "rejected";
|
|
@@ -20148,7 +20390,8 @@ function trackUsedThenable(thenableState2, thenable, index2) {
|
|
|
20148
20390
|
case "rejected":
|
|
20149
20391
|
throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2;
|
|
20150
20392
|
default:
|
|
20151
|
-
if ("string" === typeof thenable.status)
|
|
20393
|
+
if ("string" === typeof thenable.status)
|
|
20394
|
+
thenable.then(noop$3, noop$3);
|
|
20152
20395
|
else {
|
|
20153
20396
|
thenableState2 = workInProgressRoot;
|
|
20154
20397
|
if (null !== thenableState2 && 100 < thenableState2.shellSuspendCounter)
|
|
@@ -20184,7 +20427,8 @@ function trackUsedThenable(thenableState2, thenable, index2) {
|
|
|
20184
20427
|
}
|
|
20185
20428
|
var suspendedThenable = null;
|
|
20186
20429
|
function getSuspendedThenable() {
|
|
20187
|
-
if (null === suspendedThenable)
|
|
20430
|
+
if (null === suspendedThenable)
|
|
20431
|
+
throw Error(formatProdErrorMessage(459));
|
|
20188
20432
|
var thenable = suspendedThenable;
|
|
20189
20433
|
suspendedThenable = null;
|
|
20190
20434
|
return thenable;
|
|
@@ -20218,7 +20462,8 @@ function createUpdate(lane) {
|
|
|
20218
20462
|
}
|
|
20219
20463
|
function enqueueUpdate(fiber, update, lane) {
|
|
20220
20464
|
var updateQueue = fiber.updateQueue;
|
|
20221
|
-
if (null === updateQueue)
|
|
20465
|
+
if (null === updateQueue)
|
|
20466
|
+
return null;
|
|
20222
20467
|
updateQueue = updateQueue.shared;
|
|
20223
20468
|
if (0 !== (executionContext & 2)) {
|
|
20224
20469
|
var pending = updateQueue.pending;
|
|
@@ -20259,7 +20504,8 @@ function enqueueCapturedUpdate(workInProgress2, capturedUpdate) {
|
|
|
20259
20504
|
queue2 = queue2.next;
|
|
20260
20505
|
} while (null !== queue2);
|
|
20261
20506
|
null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate;
|
|
20262
|
-
} else
|
|
20507
|
+
} else
|
|
20508
|
+
newFirst = newLast = capturedUpdate;
|
|
20263
20509
|
queue2 = {
|
|
20264
20510
|
baseState: current.baseState,
|
|
20265
20511
|
firstBaseUpdate: newFirst,
|
|
@@ -20278,7 +20524,8 @@ var didReadFromEntangledAsyncAction = false;
|
|
|
20278
20524
|
function suspendIfUpdateReadFromEntangledAsyncAction() {
|
|
20279
20525
|
if (didReadFromEntangledAsyncAction) {
|
|
20280
20526
|
var entangledActionThenable = currentEntangledActionThenable;
|
|
20281
|
-
if (null !== entangledActionThenable)
|
|
20527
|
+
if (null !== entangledActionThenable)
|
|
20528
|
+
throw entangledActionThenable;
|
|
20282
20529
|
}
|
|
20283
20530
|
}
|
|
20284
20531
|
function processUpdateQueue(workInProgress$jscomp$0, props, instance$jscomp$0, renderLanes2) {
|
|
@@ -20329,7 +20576,8 @@ function processUpdateQueue(workInProgress$jscomp$0, props, instance$jscomp$0, r
|
|
|
20329
20576
|
case 0:
|
|
20330
20577
|
workInProgress2 = update.payload;
|
|
20331
20578
|
updateLane = "function" === typeof workInProgress2 ? workInProgress2.call(instance, newState, updateLane) : workInProgress2;
|
|
20332
|
-
if (null === updateLane || void 0 === updateLane)
|
|
20579
|
+
if (null === updateLane || void 0 === updateLane)
|
|
20580
|
+
break a;
|
|
20333
20581
|
newState = assign({}, newState, updateLane);
|
|
20334
20582
|
break a;
|
|
20335
20583
|
case 2:
|
|
@@ -20395,9 +20643,11 @@ function throwInvalidHookError() {
|
|
|
20395
20643
|
throw Error(formatProdErrorMessage(321));
|
|
20396
20644
|
}
|
|
20397
20645
|
function areHookInputsEqual(nextDeps, prevDeps) {
|
|
20398
|
-
if (null === prevDeps)
|
|
20646
|
+
if (null === prevDeps)
|
|
20647
|
+
return false;
|
|
20399
20648
|
for (var i2 = 0; i2 < prevDeps.length && i2 < nextDeps.length; i2++)
|
|
20400
|
-
if (!objectIs(nextDeps[i2], prevDeps[i2]))
|
|
20649
|
+
if (!objectIs(nextDeps[i2], prevDeps[i2]))
|
|
20650
|
+
return false;
|
|
20401
20651
|
return true;
|
|
20402
20652
|
}
|
|
20403
20653
|
function renderWithHooks(current, workInProgress2, Component2, props, secondArg, nextRenderLanes) {
|
|
@@ -20427,7 +20677,8 @@ function finishRenderingHooks(current) {
|
|
|
20427
20677
|
didScheduleRenderPhaseUpdate = false;
|
|
20428
20678
|
thenableIndexCounter$1 = 0;
|
|
20429
20679
|
thenableState$1 = null;
|
|
20430
|
-
if (didRenderTooFewHooks)
|
|
20680
|
+
if (didRenderTooFewHooks)
|
|
20681
|
+
throw Error(formatProdErrorMessage(300));
|
|
20431
20682
|
null === current || didReceiveUpdate || (current = current.dependencies, null !== current && checkIfContextChanged(current) && (didReceiveUpdate = true));
|
|
20432
20683
|
}
|
|
20433
20684
|
function renderWithHooksAgain(workInProgress2, Component2, props, secondArg) {
|
|
@@ -20437,7 +20688,8 @@ function renderWithHooksAgain(workInProgress2, Component2, props, secondArg) {
|
|
|
20437
20688
|
didScheduleRenderPhaseUpdateDuringThisPass && (thenableState$1 = null);
|
|
20438
20689
|
thenableIndexCounter$1 = 0;
|
|
20439
20690
|
didScheduleRenderPhaseUpdateDuringThisPass = false;
|
|
20440
|
-
if (25 <= numberOfReRenders)
|
|
20691
|
+
if (25 <= numberOfReRenders)
|
|
20692
|
+
throw Error(formatProdErrorMessage(301));
|
|
20441
20693
|
numberOfReRenders += 1;
|
|
20442
20694
|
workInProgressHook = currentHook = null;
|
|
20443
20695
|
if (null != workInProgress2.updateQueue) {
|
|
@@ -20499,7 +20751,8 @@ function updateWorkInProgressHook() {
|
|
|
20499
20751
|
if (null === currentHook) {
|
|
20500
20752
|
var nextCurrentHook = currentlyRenderingFiber.alternate;
|
|
20501
20753
|
nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null;
|
|
20502
|
-
} else
|
|
20754
|
+
} else
|
|
20755
|
+
nextCurrentHook = currentHook.next;
|
|
20503
20756
|
var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber.memoizedState : workInProgressHook.next;
|
|
20504
20757
|
if (null !== nextWorkInProgressHook)
|
|
20505
20758
|
workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;
|
|
@@ -20535,8 +20788,10 @@ function useThenable(thenable) {
|
|
|
20535
20788
|
}
|
|
20536
20789
|
function use(usable) {
|
|
20537
20790
|
if (null !== usable && "object" === typeof usable) {
|
|
20538
|
-
if ("function" === typeof usable.then)
|
|
20539
|
-
|
|
20791
|
+
if ("function" === typeof usable.then)
|
|
20792
|
+
return useThenable(usable);
|
|
20793
|
+
if (usable.$$typeof === REACT_CONTEXT_TYPE)
|
|
20794
|
+
return readContext(usable);
|
|
20540
20795
|
}
|
|
20541
20796
|
throw Error(formatProdErrorMessage(438, String(usable)));
|
|
20542
20797
|
}
|
|
@@ -20571,7 +20826,8 @@ function updateReducer(reducer) {
|
|
|
20571
20826
|
}
|
|
20572
20827
|
function updateReducerImpl(hook, current, reducer) {
|
|
20573
20828
|
var queue2 = hook.queue;
|
|
20574
|
-
if (null === queue2)
|
|
20829
|
+
if (null === queue2)
|
|
20830
|
+
throw Error(formatProdErrorMessage(311));
|
|
20575
20831
|
queue2.lastRenderedReducer = reducer;
|
|
20576
20832
|
var baseQueue = hook.baseQueue, pendingQueue = queue2.pending;
|
|
20577
20833
|
if (null !== pendingQueue) {
|
|
@@ -20584,7 +20840,8 @@ function updateReducerImpl(hook, current, reducer) {
|
|
|
20584
20840
|
queue2.pending = null;
|
|
20585
20841
|
}
|
|
20586
20842
|
pendingQueue = hook.baseState;
|
|
20587
|
-
if (null === baseQueue)
|
|
20843
|
+
if (null === baseQueue)
|
|
20844
|
+
hook.memoizedState = pendingQueue;
|
|
20588
20845
|
else {
|
|
20589
20846
|
current = baseQueue.next;
|
|
20590
20847
|
var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current, didReadFromEntangledAsyncAction$32 = false;
|
|
@@ -20641,7 +20898,8 @@ function updateReducerImpl(hook, current, reducer) {
|
|
|
20641
20898
|
}
|
|
20642
20899
|
function rerenderReducer(reducer) {
|
|
20643
20900
|
var hook = updateWorkInProgressHook(), queue2 = hook.queue;
|
|
20644
|
-
if (null === queue2)
|
|
20901
|
+
if (null === queue2)
|
|
20902
|
+
throw Error(formatProdErrorMessage(311));
|
|
20645
20903
|
queue2.lastRenderedReducer = reducer;
|
|
20646
20904
|
var dispatch = queue2.dispatch, lastRenderPhaseUpdate = queue2.pending, newState = hook.memoizedState;
|
|
20647
20905
|
if (null !== lastRenderPhaseUpdate) {
|
|
@@ -20660,9 +20918,11 @@ function rerenderReducer(reducer) {
|
|
|
20660
20918
|
function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
20661
20919
|
var fiber = currentlyRenderingFiber, hook = updateWorkInProgressHook(), isHydrating$jscomp$0 = isHydrating;
|
|
20662
20920
|
if (isHydrating$jscomp$0) {
|
|
20663
|
-
if (void 0 === getServerSnapshot)
|
|
20921
|
+
if (void 0 === getServerSnapshot)
|
|
20922
|
+
throw Error(formatProdErrorMessage(407));
|
|
20664
20923
|
getServerSnapshot = getServerSnapshot();
|
|
20665
|
-
} else
|
|
20924
|
+
} else
|
|
20925
|
+
getServerSnapshot = getSnapshot();
|
|
20666
20926
|
var snapshotChanged = !objectIs(
|
|
20667
20927
|
(currentHook || hook).memoizedState,
|
|
20668
20928
|
getServerSnapshot
|
|
@@ -20685,7 +20945,8 @@ function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
|
20685
20945
|
),
|
|
20686
20946
|
null
|
|
20687
20947
|
);
|
|
20688
|
-
if (null === workInProgressRoot)
|
|
20948
|
+
if (null === workInProgressRoot)
|
|
20949
|
+
throw Error(formatProdErrorMessage(349));
|
|
20689
20950
|
isHydrating$jscomp$0 || 0 !== (renderLanes & 124) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
|
|
20690
20951
|
}
|
|
20691
20952
|
return getServerSnapshot;
|
|
@@ -20753,7 +21014,8 @@ function updateOptimisticImpl(hook, current, passthrough, reducer) {
|
|
|
20753
21014
|
);
|
|
20754
21015
|
}
|
|
20755
21016
|
function dispatchActionState(fiber, actionQueue, setPendingState, setState, payload) {
|
|
20756
|
-
if (isRenderPhaseUpdate(fiber))
|
|
21017
|
+
if (isRenderPhaseUpdate(fiber))
|
|
21018
|
+
throw Error(formatProdErrorMessage(485));
|
|
20757
21019
|
fiber = actionQueue.action;
|
|
20758
21020
|
if (null !== fiber) {
|
|
20759
21021
|
var actionNode = {
|
|
@@ -20827,7 +21089,8 @@ function onActionError(actionQueue, actionNode, error) {
|
|
|
20827
21089
|
}
|
|
20828
21090
|
function notifyActionListeners(actionNode) {
|
|
20829
21091
|
actionNode = actionNode.listeners;
|
|
20830
|
-
for (var i2 = 0; i2 < actionNode.length; i2++)
|
|
21092
|
+
for (var i2 = 0; i2 < actionNode.length; i2++)
|
|
21093
|
+
(0, actionNode[i2])();
|
|
20831
21094
|
}
|
|
20832
21095
|
function actionStateReducer(oldState, newState) {
|
|
20833
21096
|
return newState;
|
|
@@ -20930,10 +21193,12 @@ function updateActionStateImpl(stateHook, currentStateHook, action) {
|
|
|
20930
21193
|
try {
|
|
20931
21194
|
var state = useThenable(currentStateHook);
|
|
20932
21195
|
} catch (x2) {
|
|
20933
|
-
if (x2 === SuspenseException)
|
|
21196
|
+
if (x2 === SuspenseException)
|
|
21197
|
+
throw SuspenseActionException;
|
|
20934
21198
|
throw x2;
|
|
20935
21199
|
}
|
|
20936
|
-
else
|
|
21200
|
+
else
|
|
21201
|
+
state = currentStateHook;
|
|
20937
21202
|
currentStateHook = updateWorkInProgressHook();
|
|
20938
21203
|
var actionQueue = currentStateHook.queue, dispatch = actionQueue.dispatch;
|
|
20939
21204
|
action !== currentStateHook.memoizedState && (currentlyRenderingFiber.flags |= 2048, pushSimpleEffect(
|
|
@@ -21062,7 +21327,8 @@ function mountDeferredValueImpl(hook, value, initialValue) {
|
|
|
21062
21327
|
return initialValue;
|
|
21063
21328
|
}
|
|
21064
21329
|
function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
|
|
21065
|
-
if (objectIs(value, prevValue))
|
|
21330
|
+
if (objectIs(value, prevValue))
|
|
21331
|
+
return value;
|
|
21066
21332
|
if (null !== currentTreeHiddenStackCursor.current)
|
|
21067
21333
|
return hook = mountDeferredValueImpl(hook, value, initialValue), objectIs(hook, prevValue) || (didReceiveUpdate = true), hook;
|
|
21068
21334
|
if (0 === (renderLanes & 42))
|
|
@@ -21114,7 +21380,8 @@ function startTransition(fiber, queue2, pendingState, finishedState, callback) {
|
|
|
21114
21380
|
function noop$2() {
|
|
21115
21381
|
}
|
|
21116
21382
|
function startHostTransition(formFiber, pendingState, action, formData) {
|
|
21117
|
-
if (5 !== formFiber.tag)
|
|
21383
|
+
if (5 !== formFiber.tag)
|
|
21384
|
+
throw Error(formatProdErrorMessage(476));
|
|
21118
21385
|
var queue2 = ensureFormComponentIsStateful(formFiber).queue;
|
|
21119
21386
|
startTransition(
|
|
21120
21387
|
formFiber,
|
|
@@ -21129,7 +21396,8 @@ function startHostTransition(formFiber, pendingState, action, formData) {
|
|
|
21129
21396
|
}
|
|
21130
21397
|
function ensureFormComponentIsStateful(formFiber) {
|
|
21131
21398
|
var existingStateHook = formFiber.memoizedState;
|
|
21132
|
-
if (null !== existingStateHook)
|
|
21399
|
+
if (null !== existingStateHook)
|
|
21400
|
+
return existingStateHook;
|
|
21133
21401
|
existingStateHook = {
|
|
21134
21402
|
memoizedState: sharedNotPendingObject,
|
|
21135
21403
|
baseState: sharedNotPendingObject,
|
|
@@ -21216,7 +21484,8 @@ function dispatchSetStateInternal(fiber, queue2, action, lane) {
|
|
|
21216
21484
|
eagerState: null,
|
|
21217
21485
|
next: null
|
|
21218
21486
|
};
|
|
21219
|
-
if (isRenderPhaseUpdate(fiber))
|
|
21487
|
+
if (isRenderPhaseUpdate(fiber))
|
|
21488
|
+
enqueueRenderPhaseUpdate(queue2, update);
|
|
21220
21489
|
else {
|
|
21221
21490
|
var alternate = fiber.alternate;
|
|
21222
21491
|
if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue2.lastRenderedReducer, null !== alternate))
|
|
@@ -21245,7 +21514,8 @@ function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue2, action)
|
|
|
21245
21514
|
next: null
|
|
21246
21515
|
};
|
|
21247
21516
|
if (isRenderPhaseUpdate(fiber)) {
|
|
21248
|
-
if (throwIfDuringRender)
|
|
21517
|
+
if (throwIfDuringRender)
|
|
21518
|
+
throw Error(formatProdErrorMessage(479));
|
|
21249
21519
|
} else
|
|
21250
21520
|
throwIfDuringRender = enqueueConcurrentHookUpdate(
|
|
21251
21521
|
fiber,
|
|
@@ -21351,7 +21621,8 @@ var ContextOnlyDispatcher = {
|
|
|
21351
21621
|
setIsStrictModeForDevtools(false);
|
|
21352
21622
|
}
|
|
21353
21623
|
}
|
|
21354
|
-
} else
|
|
21624
|
+
} else
|
|
21625
|
+
initialState = initialArg;
|
|
21355
21626
|
hook.memoizedState = hook.baseState = initialState;
|
|
21356
21627
|
reducer = {
|
|
21357
21628
|
pending: null,
|
|
@@ -21596,7 +21867,8 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
21596
21867
|
}
|
|
21597
21868
|
}
|
|
21598
21869
|
function deleteRemainingChildren(returnFiber, currentFirstChild) {
|
|
21599
|
-
if (!shouldTrackSideEffects)
|
|
21870
|
+
if (!shouldTrackSideEffects)
|
|
21871
|
+
return null;
|
|
21600
21872
|
for (; null !== currentFirstChild; )
|
|
21601
21873
|
deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling;
|
|
21602
21874
|
return null;
|
|
@@ -21855,7 +22127,8 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
21855
22127
|
return resultingFirstChild;
|
|
21856
22128
|
}
|
|
21857
22129
|
function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes) {
|
|
21858
|
-
if (null == newChildren)
|
|
22130
|
+
if (null == newChildren)
|
|
22131
|
+
throw Error(formatProdErrorMessage(151));
|
|
21859
22132
|
for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, step = newChildren.next()) {
|
|
21860
22133
|
oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling;
|
|
21861
22134
|
var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);
|
|
@@ -21921,7 +22194,8 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
21921
22194
|
}
|
|
21922
22195
|
deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
21923
22196
|
break;
|
|
21924
|
-
} else
|
|
22197
|
+
} else
|
|
22198
|
+
deleteChild(returnFiber, currentFirstChild);
|
|
21925
22199
|
currentFirstChild = currentFirstChild.sibling;
|
|
21926
22200
|
}
|
|
21927
22201
|
newChild.type === REACT_FRAGMENT_TYPE ? (lanes = createFiberFromFragment(
|
|
@@ -21956,7 +22230,8 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
21956
22230
|
deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
21957
22231
|
break;
|
|
21958
22232
|
}
|
|
21959
|
-
else
|
|
22233
|
+
else
|
|
22234
|
+
deleteChild(returnFiber, currentFirstChild);
|
|
21960
22235
|
currentFirstChild = currentFirstChild.sibling;
|
|
21961
22236
|
}
|
|
21962
22237
|
lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes);
|
|
@@ -21981,7 +22256,8 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
21981
22256
|
);
|
|
21982
22257
|
if (getIteratorFn(newChild)) {
|
|
21983
22258
|
key2 = getIteratorFn(newChild);
|
|
21984
|
-
if ("function" !== typeof key2)
|
|
22259
|
+
if ("function" !== typeof key2)
|
|
22260
|
+
throw Error(formatProdErrorMessage(150));
|
|
21985
22261
|
newChild = key2.call(newChild);
|
|
21986
22262
|
return reconcileChildrenIterator(
|
|
21987
22263
|
returnFiber,
|
|
@@ -22020,7 +22296,8 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
22020
22296
|
thenableState = null;
|
|
22021
22297
|
return firstChildFiber;
|
|
22022
22298
|
} catch (x2) {
|
|
22023
|
-
if (x2 === SuspenseException || x2 === SuspenseActionException)
|
|
22299
|
+
if (x2 === SuspenseException || x2 === SuspenseActionException)
|
|
22300
|
+
throw x2;
|
|
22024
22301
|
var fiber = createFiberImplClass(29, x2, null, returnFiber.mode);
|
|
22025
22302
|
fiber.lanes = lanes;
|
|
22026
22303
|
fiber.return = returnFiber;
|
|
@@ -22042,7 +22319,8 @@ function pushOffscreenSuspenseHandler(fiber) {
|
|
|
22042
22319
|
var current = fiber.alternate;
|
|
22043
22320
|
null !== current && null !== current.memoizedState && (shellBoundary = fiber);
|
|
22044
22321
|
}
|
|
22045
|
-
} else
|
|
22322
|
+
} else
|
|
22323
|
+
reuseSuspenseHandlerOnStack();
|
|
22046
22324
|
}
|
|
22047
22325
|
function reuseSuspenseHandlerOnStack() {
|
|
22048
22326
|
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
@@ -22061,15 +22339,18 @@ function findFirstSuspended(row) {
|
|
|
22061
22339
|
if (null !== state && (state = state.dehydrated, null === state || "$?" === state.data || isSuspenseInstanceFallback(state)))
|
|
22062
22340
|
return node;
|
|
22063
22341
|
} else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {
|
|
22064
|
-
if (0 !== (node.flags & 128))
|
|
22342
|
+
if (0 !== (node.flags & 128))
|
|
22343
|
+
return node;
|
|
22065
22344
|
} else if (null !== node.child) {
|
|
22066
22345
|
node.child.return = node;
|
|
22067
22346
|
node = node.child;
|
|
22068
22347
|
continue;
|
|
22069
22348
|
}
|
|
22070
|
-
if (node === row)
|
|
22349
|
+
if (node === row)
|
|
22350
|
+
break;
|
|
22071
22351
|
for (; null === node.sibling; ) {
|
|
22072
|
-
if (null === node.return || node.return === row)
|
|
22352
|
+
if (null === node.return || node.return === row)
|
|
22353
|
+
return null;
|
|
22073
22354
|
node = node.return;
|
|
22074
22355
|
}
|
|
22075
22356
|
node.sibling.return = node.return;
|
|
@@ -22143,7 +22424,8 @@ var reportGlobalError = "function" === typeof reportError ? reportError : functi
|
|
|
22143
22424
|
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
22144
22425
|
error
|
|
22145
22426
|
});
|
|
22146
|
-
if (!window.dispatchEvent(event))
|
|
22427
|
+
if (!window.dispatchEvent(event))
|
|
22428
|
+
return;
|
|
22147
22429
|
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
22148
22430
|
process.emit("uncaughtException", error);
|
|
22149
22431
|
return;
|
|
@@ -22259,7 +22541,8 @@ function throwException(root2, returnFiber, sourceFiber, value, rootRenderLanes)
|
|
|
22259
22541
|
wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);
|
|
22260
22542
|
null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [wrapperError] : workInProgressRootConcurrentErrors.push(wrapperError);
|
|
22261
22543
|
4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);
|
|
22262
|
-
if (null === returnFiber)
|
|
22544
|
+
if (null === returnFiber)
|
|
22545
|
+
return true;
|
|
22263
22546
|
value = createCapturedValueAtFiber(value, sourceFiber);
|
|
22264
22547
|
sourceFiber = returnFiber;
|
|
22265
22548
|
do {
|
|
@@ -22295,7 +22578,8 @@ function updateForwardRef(current, workInProgress2, Component2, nextProps, rende
|
|
|
22295
22578
|
var propsWithoutRef = {};
|
|
22296
22579
|
for (var key2 in nextProps)
|
|
22297
22580
|
"ref" !== key2 && (propsWithoutRef[key2] = nextProps[key2]);
|
|
22298
|
-
} else
|
|
22581
|
+
} else
|
|
22582
|
+
propsWithoutRef = nextProps;
|
|
22299
22583
|
prepareToReadContext(workInProgress2);
|
|
22300
22584
|
nextProps = renderWithHooks(
|
|
22301
22585
|
current,
|
|
@@ -22377,7 +22661,8 @@ function updateOffscreenComponent(current, workInProgress2, renderLanes2) {
|
|
|
22377
22661
|
for (prevState = 0; null !== nextChildren; )
|
|
22378
22662
|
prevState = prevState | nextChildren.lanes | nextChildren.childLanes, nextChildren = nextChildren.sibling;
|
|
22379
22663
|
workInProgress2.childLanes = prevState & ~nextProps;
|
|
22380
|
-
} else
|
|
22664
|
+
} else
|
|
22665
|
+
workInProgress2.childLanes = 0, workInProgress2.child = null;
|
|
22381
22666
|
return deferHiddenOffscreenComponent(
|
|
22382
22667
|
current,
|
|
22383
22668
|
workInProgress2,
|
|
@@ -22703,7 +22988,8 @@ function updateSuspenseComponent(current, workInProgress2, renderLanes2) {
|
|
|
22703
22988
|
), workInProgress2.memoizedState = SUSPENDED_MARKER, workInProgress2 = showFallback);
|
|
22704
22989
|
else if (pushPrimaryTreeSuspenseHandler(workInProgress2), isSuspenseInstanceFallback(nextInstance)) {
|
|
22705
22990
|
JSCompiler_temp = nextInstance.nextSibling && nextInstance.nextSibling.dataset;
|
|
22706
|
-
if (JSCompiler_temp)
|
|
22991
|
+
if (JSCompiler_temp)
|
|
22992
|
+
var digest = JSCompiler_temp.dgst;
|
|
22707
22993
|
JSCompiler_temp = digest;
|
|
22708
22994
|
nextProps = Error(formatProdErrorMessage(419));
|
|
22709
22995
|
nextProps.stack = "";
|
|
@@ -22818,25 +23104,27 @@ function updateSuspenseListComponent(current, workInProgress2, renderLanes2) {
|
|
|
22818
23104
|
nextProps = nextProps & 1 | 2, workInProgress2.flags |= 128;
|
|
22819
23105
|
else {
|
|
22820
23106
|
if (null !== current && 0 !== (current.flags & 128))
|
|
22821
|
-
a:
|
|
22822
|
-
|
|
22823
|
-
|
|
22824
|
-
|
|
22825
|
-
|
|
22826
|
-
|
|
22827
|
-
current.child
|
|
22828
|
-
|
|
22829
|
-
|
|
22830
|
-
|
|
22831
|
-
|
|
22832
|
-
|
|
22833
|
-
if (null === current.return || current.return === workInProgress2)
|
|
23107
|
+
a:
|
|
23108
|
+
for (current = workInProgress2.child; null !== current; ) {
|
|
23109
|
+
if (13 === current.tag)
|
|
23110
|
+
null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
|
|
23111
|
+
else if (19 === current.tag)
|
|
23112
|
+
scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
|
|
23113
|
+
else if (null !== current.child) {
|
|
23114
|
+
current.child.return = current;
|
|
23115
|
+
current = current.child;
|
|
23116
|
+
continue;
|
|
23117
|
+
}
|
|
23118
|
+
if (current === workInProgress2)
|
|
22834
23119
|
break a;
|
|
22835
|
-
|
|
23120
|
+
for (; null === current.sibling; ) {
|
|
23121
|
+
if (null === current.return || current.return === workInProgress2)
|
|
23122
|
+
break a;
|
|
23123
|
+
current = current.return;
|
|
23124
|
+
}
|
|
23125
|
+
current.sibling.return = current.return;
|
|
23126
|
+
current = current.sibling;
|
|
22836
23127
|
}
|
|
22837
|
-
current.sibling.return = current.return;
|
|
22838
|
-
current = current.sibling;
|
|
22839
|
-
}
|
|
22840
23128
|
nextProps &= 1;
|
|
22841
23129
|
}
|
|
22842
23130
|
push(suspenseStackCursor, nextProps);
|
|
@@ -22897,7 +23185,8 @@ function bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2) {
|
|
|
22897
23185
|
false
|
|
22898
23186
|
), 0 === (renderLanes2 & workInProgress2.childLanes))
|
|
22899
23187
|
return null;
|
|
22900
|
-
} else
|
|
23188
|
+
} else
|
|
23189
|
+
return null;
|
|
22901
23190
|
if (null !== current && workInProgress2.child !== current.child)
|
|
22902
23191
|
throw Error(formatProdErrorMessage(153));
|
|
22903
23192
|
if (null !== workInProgress2.child) {
|
|
@@ -22911,7 +23200,8 @@ function bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2) {
|
|
|
22911
23200
|
return workInProgress2.child;
|
|
22912
23201
|
}
|
|
22913
23202
|
function checkScheduledUpdateOrContext(current, renderLanes2) {
|
|
22914
|
-
if (0 !== (current.lanes & renderLanes2))
|
|
23203
|
+
if (0 !== (current.lanes & renderLanes2))
|
|
23204
|
+
return true;
|
|
22915
23205
|
current = current.dependencies;
|
|
22916
23206
|
return null !== current && checkIfContextChanged(current) ? true : false;
|
|
22917
23207
|
}
|
|
@@ -22974,8 +23264,10 @@ function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress2, render
|
|
|
22974
23264
|
didSuspendBefore = workInProgress2.memoizedState;
|
|
22975
23265
|
null !== didSuspendBefore && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null);
|
|
22976
23266
|
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
22977
|
-
if (state)
|
|
22978
|
-
|
|
23267
|
+
if (state)
|
|
23268
|
+
break;
|
|
23269
|
+
else
|
|
23270
|
+
return null;
|
|
22979
23271
|
case 22:
|
|
22980
23272
|
case 23:
|
|
22981
23273
|
return workInProgress2.lanes = 0, updateOffscreenComponent(current, workInProgress2, renderLanes2);
|
|
@@ -23075,7 +23367,8 @@ function beginWork(current, workInProgress2, renderLanes2) {
|
|
|
23075
23367
|
workInProgress2,
|
|
23076
23368
|
workInProgress2.stateNode.containerInfo
|
|
23077
23369
|
);
|
|
23078
|
-
if (null === current)
|
|
23370
|
+
if (null === current)
|
|
23371
|
+
throw Error(formatProdErrorMessage(387));
|
|
23079
23372
|
lazyComponent = workInProgress2.pendingProps;
|
|
23080
23373
|
var prevState = workInProgress2.memoizedState;
|
|
23081
23374
|
init = prevState.element;
|
|
@@ -23487,37 +23780,40 @@ function completeWork(current, workInProgress2, renderLanes2) {
|
|
|
23487
23780
|
}
|
|
23488
23781
|
current[internalInstanceKey] = workInProgress2;
|
|
23489
23782
|
current[internalPropsKey] = newProps;
|
|
23490
|
-
a:
|
|
23491
|
-
|
|
23492
|
-
|
|
23493
|
-
|
|
23494
|
-
type.
|
|
23495
|
-
|
|
23496
|
-
|
|
23497
|
-
|
|
23498
|
-
|
|
23499
|
-
|
|
23500
|
-
if (null === type.return || type.return === workInProgress2)
|
|
23783
|
+
a:
|
|
23784
|
+
for (type = workInProgress2.child; null !== type; ) {
|
|
23785
|
+
if (5 === type.tag || 6 === type.tag)
|
|
23786
|
+
current.appendChild(type.stateNode);
|
|
23787
|
+
else if (4 !== type.tag && 27 !== type.tag && null !== type.child) {
|
|
23788
|
+
type.child.return = type;
|
|
23789
|
+
type = type.child;
|
|
23790
|
+
continue;
|
|
23791
|
+
}
|
|
23792
|
+
if (type === workInProgress2)
|
|
23501
23793
|
break a;
|
|
23502
|
-
|
|
23794
|
+
for (; null === type.sibling; ) {
|
|
23795
|
+
if (null === type.return || type.return === workInProgress2)
|
|
23796
|
+
break a;
|
|
23797
|
+
type = type.return;
|
|
23798
|
+
}
|
|
23799
|
+
type.sibling.return = type.return;
|
|
23800
|
+
type = type.sibling;
|
|
23503
23801
|
}
|
|
23504
|
-
type.sibling.return = type.return;
|
|
23505
|
-
type = type.sibling;
|
|
23506
|
-
}
|
|
23507
23802
|
workInProgress2.stateNode = current;
|
|
23508
|
-
a:
|
|
23509
|
-
|
|
23510
|
-
|
|
23511
|
-
|
|
23512
|
-
|
|
23513
|
-
|
|
23514
|
-
|
|
23515
|
-
|
|
23516
|
-
|
|
23517
|
-
|
|
23518
|
-
|
|
23519
|
-
|
|
23520
|
-
|
|
23803
|
+
a:
|
|
23804
|
+
switch (setInitialProperties(current, renderLanes2, newProps), renderLanes2) {
|
|
23805
|
+
case "button":
|
|
23806
|
+
case "input":
|
|
23807
|
+
case "select":
|
|
23808
|
+
case "textarea":
|
|
23809
|
+
current = !!newProps.autoFocus;
|
|
23810
|
+
break a;
|
|
23811
|
+
case "img":
|
|
23812
|
+
current = true;
|
|
23813
|
+
break a;
|
|
23814
|
+
default:
|
|
23815
|
+
current = false;
|
|
23816
|
+
}
|
|
23521
23817
|
current && markUpdate(workInProgress2);
|
|
23522
23818
|
}
|
|
23523
23819
|
}
|
|
@@ -23558,10 +23854,12 @@ function completeWork(current, workInProgress2, renderLanes2) {
|
|
|
23558
23854
|
type = popHydrationState(workInProgress2);
|
|
23559
23855
|
if (null !== newProps && null !== newProps.dehydrated) {
|
|
23560
23856
|
if (null === current) {
|
|
23561
|
-
if (!type)
|
|
23857
|
+
if (!type)
|
|
23858
|
+
throw Error(formatProdErrorMessage(318));
|
|
23562
23859
|
type = workInProgress2.memoizedState;
|
|
23563
23860
|
type = null !== type ? type.dehydrated : null;
|
|
23564
|
-
if (!type)
|
|
23861
|
+
if (!type)
|
|
23862
|
+
throw Error(formatProdErrorMessage(317));
|
|
23565
23863
|
type[internalInstanceKey] = workInProgress2;
|
|
23566
23864
|
} else
|
|
23567
23865
|
resetHydrationState(), 0 === (workInProgress2.flags & 128) && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
|
|
@@ -23600,11 +23898,13 @@ function completeWork(current, workInProgress2, renderLanes2) {
|
|
|
23600
23898
|
case 19:
|
|
23601
23899
|
pop(suspenseStackCursor);
|
|
23602
23900
|
type = workInProgress2.memoizedState;
|
|
23603
|
-
if (null === type)
|
|
23901
|
+
if (null === type)
|
|
23902
|
+
return bubbleProperties(workInProgress2), null;
|
|
23604
23903
|
newProps = 0 !== (workInProgress2.flags & 128);
|
|
23605
23904
|
cache$127 = type.rendering;
|
|
23606
23905
|
if (null === cache$127)
|
|
23607
|
-
if (newProps)
|
|
23906
|
+
if (newProps)
|
|
23907
|
+
cutOffTailIfNeeded(type, false);
|
|
23608
23908
|
else {
|
|
23609
23909
|
if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128))
|
|
23610
23910
|
for (current = workInProgress2.child; null !== current; ) {
|
|
@@ -23839,21 +24139,23 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
23839
24139
|
} catch (error$143) {
|
|
23840
24140
|
captureCommitPhaseError(current, nearestMountedAncestor, error$143);
|
|
23841
24141
|
}
|
|
23842
|
-
else
|
|
24142
|
+
else
|
|
24143
|
+
ref2.current = null;
|
|
23843
24144
|
}
|
|
23844
24145
|
function commitHostMount(finishedWork) {
|
|
23845
24146
|
var type = finishedWork.type, props = finishedWork.memoizedProps, instance = finishedWork.stateNode;
|
|
23846
24147
|
try {
|
|
23847
|
-
a:
|
|
23848
|
-
|
|
23849
|
-
|
|
23850
|
-
|
|
23851
|
-
|
|
23852
|
-
|
|
23853
|
-
|
|
23854
|
-
|
|
23855
|
-
|
|
23856
|
-
|
|
24148
|
+
a:
|
|
24149
|
+
switch (type) {
|
|
24150
|
+
case "button":
|
|
24151
|
+
case "input":
|
|
24152
|
+
case "select":
|
|
24153
|
+
case "textarea":
|
|
24154
|
+
props.autoFocus && instance.focus();
|
|
24155
|
+
break a;
|
|
24156
|
+
case "img":
|
|
24157
|
+
props.src ? instance.src = props.src : props.srcSet && (instance.srcset = props.srcSet);
|
|
24158
|
+
}
|
|
23857
24159
|
} catch (error) {
|
|
23858
24160
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
23859
24161
|
}
|
|
@@ -23871,20 +24173,27 @@ function isHostParent(fiber) {
|
|
|
23871
24173
|
return 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || 27 === fiber.tag && isSingletonScope(fiber.type) || 4 === fiber.tag;
|
|
23872
24174
|
}
|
|
23873
24175
|
function getHostSibling(fiber) {
|
|
23874
|
-
a:
|
|
23875
|
-
for (;
|
|
23876
|
-
|
|
23877
|
-
|
|
23878
|
-
|
|
23879
|
-
|
|
23880
|
-
|
|
23881
|
-
|
|
23882
|
-
|
|
23883
|
-
|
|
23884
|
-
|
|
24176
|
+
a:
|
|
24177
|
+
for (; ; ) {
|
|
24178
|
+
for (; null === fiber.sibling; ) {
|
|
24179
|
+
if (null === fiber.return || isHostParent(fiber.return))
|
|
24180
|
+
return null;
|
|
24181
|
+
fiber = fiber.return;
|
|
24182
|
+
}
|
|
24183
|
+
fiber.sibling.return = fiber.return;
|
|
24184
|
+
for (fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) {
|
|
24185
|
+
if (27 === fiber.tag && isSingletonScope(fiber.type))
|
|
24186
|
+
continue a;
|
|
24187
|
+
if (fiber.flags & 2)
|
|
24188
|
+
continue a;
|
|
24189
|
+
if (null === fiber.child || 4 === fiber.tag)
|
|
24190
|
+
continue a;
|
|
24191
|
+
else
|
|
24192
|
+
fiber.child.return = fiber, fiber = fiber.child;
|
|
24193
|
+
}
|
|
24194
|
+
if (!(fiber.flags & 2))
|
|
24195
|
+
return fiber.stateNode;
|
|
23885
24196
|
}
|
|
23886
|
-
if (!(fiber.flags & 2)) return fiber.stateNode;
|
|
23887
|
-
}
|
|
23888
24197
|
}
|
|
23889
24198
|
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
|
|
23890
24199
|
var tag = node.tag;
|
|
@@ -23940,30 +24249,36 @@ function commitBeforeMutationEffects(root2, firstChild) {
|
|
|
23940
24249
|
break a;
|
|
23941
24250
|
}
|
|
23942
24251
|
var length = 0, start = -1, end = -1, indexWithinAnchor = 0, indexWithinFocus = 0, node = root2, parentNode = null;
|
|
23943
|
-
b:
|
|
23944
|
-
for (var next; ; ) {
|
|
23945
|
-
node !== JSCompiler_temp || 0 !== anchorOffset && 3 !== node.nodeType || (start = length + anchorOffset);
|
|
23946
|
-
node !== focusNode || 0 !== selection && 3 !== node.nodeType || (end = length + selection);
|
|
23947
|
-
3 === node.nodeType && (length += node.nodeValue.length);
|
|
23948
|
-
if (null === (next = node.firstChild)) break;
|
|
23949
|
-
parentNode = node;
|
|
23950
|
-
node = next;
|
|
23951
|
-
}
|
|
24252
|
+
b:
|
|
23952
24253
|
for (; ; ) {
|
|
23953
|
-
|
|
23954
|
-
|
|
23955
|
-
|
|
23956
|
-
|
|
23957
|
-
|
|
23958
|
-
|
|
24254
|
+
for (var next; ; ) {
|
|
24255
|
+
node !== JSCompiler_temp || 0 !== anchorOffset && 3 !== node.nodeType || (start = length + anchorOffset);
|
|
24256
|
+
node !== focusNode || 0 !== selection && 3 !== node.nodeType || (end = length + selection);
|
|
24257
|
+
3 === node.nodeType && (length += node.nodeValue.length);
|
|
24258
|
+
if (null === (next = node.firstChild))
|
|
24259
|
+
break;
|
|
24260
|
+
parentNode = node;
|
|
24261
|
+
node = next;
|
|
24262
|
+
}
|
|
24263
|
+
for (; ; ) {
|
|
24264
|
+
if (node === root2)
|
|
24265
|
+
break b;
|
|
24266
|
+
parentNode === JSCompiler_temp && ++indexWithinAnchor === anchorOffset && (start = length);
|
|
24267
|
+
parentNode === focusNode && ++indexWithinFocus === selection && (end = length);
|
|
24268
|
+
if (null !== (next = node.nextSibling))
|
|
24269
|
+
break;
|
|
24270
|
+
node = parentNode;
|
|
24271
|
+
parentNode = node.parentNode;
|
|
24272
|
+
}
|
|
24273
|
+
node = next;
|
|
23959
24274
|
}
|
|
23960
|
-
node = next;
|
|
23961
|
-
}
|
|
23962
24275
|
JSCompiler_temp = -1 === start || -1 === end ? null : { start, end };
|
|
23963
|
-
} else
|
|
24276
|
+
} else
|
|
24277
|
+
JSCompiler_temp = null;
|
|
23964
24278
|
}
|
|
23965
24279
|
JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 };
|
|
23966
|
-
} else
|
|
24280
|
+
} else
|
|
24281
|
+
JSCompiler_temp = null;
|
|
23967
24282
|
selectionInformation = { focusedElem: root2, selectionRange: JSCompiler_temp };
|
|
23968
24283
|
_enabled = false;
|
|
23969
24284
|
for (nextEffect = firstChild; null !== nextEffect; )
|
|
@@ -24031,7 +24346,8 @@ function commitBeforeMutationEffects(root2, firstChild) {
|
|
|
24031
24346
|
case 17:
|
|
24032
24347
|
break;
|
|
24033
24348
|
default:
|
|
24034
|
-
if (0 !== (root2 & 1024))
|
|
24349
|
+
if (0 !== (root2 & 1024))
|
|
24350
|
+
throw Error(formatProdErrorMessage(163));
|
|
24035
24351
|
}
|
|
24036
24352
|
root2 = firstChild.sibling;
|
|
24037
24353
|
if (null !== root2) {
|
|
@@ -24329,28 +24645,30 @@ function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
|
|
|
24329
24645
|
if (null !== deletions)
|
|
24330
24646
|
for (var i2 = 0; i2 < deletions.length; i2++) {
|
|
24331
24647
|
var childToDelete = deletions[i2], root2 = root$jscomp$0, returnFiber = parentFiber, parent = returnFiber;
|
|
24332
|
-
a:
|
|
24333
|
-
|
|
24334
|
-
|
|
24335
|
-
|
|
24648
|
+
a:
|
|
24649
|
+
for (; null !== parent; ) {
|
|
24650
|
+
switch (parent.tag) {
|
|
24651
|
+
case 27:
|
|
24652
|
+
if (isSingletonScope(parent.type)) {
|
|
24653
|
+
hostParent = parent.stateNode;
|
|
24654
|
+
hostParentIsContainer = false;
|
|
24655
|
+
break a;
|
|
24656
|
+
}
|
|
24657
|
+
break;
|
|
24658
|
+
case 5:
|
|
24336
24659
|
hostParent = parent.stateNode;
|
|
24337
24660
|
hostParentIsContainer = false;
|
|
24338
24661
|
break a;
|
|
24339
|
-
|
|
24340
|
-
|
|
24341
|
-
|
|
24342
|
-
|
|
24343
|
-
|
|
24344
|
-
|
|
24345
|
-
|
|
24346
|
-
case 4:
|
|
24347
|
-
hostParent = parent.stateNode.containerInfo;
|
|
24348
|
-
hostParentIsContainer = true;
|
|
24349
|
-
break a;
|
|
24662
|
+
case 3:
|
|
24663
|
+
case 4:
|
|
24664
|
+
hostParent = parent.stateNode.containerInfo;
|
|
24665
|
+
hostParentIsContainer = true;
|
|
24666
|
+
break a;
|
|
24667
|
+
}
|
|
24668
|
+
parent = parent.return;
|
|
24350
24669
|
}
|
|
24351
|
-
|
|
24352
|
-
|
|
24353
|
-
if (null === hostParent) throw Error(formatProdErrorMessage(160));
|
|
24670
|
+
if (null === hostParent)
|
|
24671
|
+
throw Error(formatProdErrorMessage(160));
|
|
24354
24672
|
commitDeletionEffectsOnFiber(root2, returnFiber, childToDelete);
|
|
24355
24673
|
hostParent = null;
|
|
24356
24674
|
hostParentIsContainer = false;
|
|
@@ -24395,55 +24713,56 @@ function commitMutationEffectsOnFiber(finishedWork, root2) {
|
|
|
24395
24713
|
flags = finishedWork.type;
|
|
24396
24714
|
current = finishedWork.memoizedProps;
|
|
24397
24715
|
hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
|
|
24398
|
-
b:
|
|
24399
|
-
|
|
24400
|
-
|
|
24401
|
-
|
|
24402
|
-
currentResource
|
|
24403
|
-
currentResource,
|
|
24404
|
-
|
|
24405
|
-
|
|
24406
|
-
|
|
24407
|
-
|
|
24408
|
-
|
|
24409
|
-
|
|
24410
|
-
|
|
24411
|
-
|
|
24412
|
-
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
|
|
24416
|
-
|
|
24417
|
-
|
|
24418
|
-
|
|
24419
|
-
|
|
24420
|
-
maybeNodes
|
|
24421
|
-
|
|
24422
|
-
|
|
24423
|
-
|
|
24424
|
-
|
|
24425
|
-
|
|
24426
|
-
|
|
24427
|
-
|
|
24428
|
-
|
|
24429
|
-
|
|
24430
|
-
|
|
24431
|
-
|
|
24432
|
-
|
|
24433
|
-
|
|
24434
|
-
|
|
24435
|
-
|
|
24436
|
-
maybeNodes
|
|
24437
|
-
|
|
24438
|
-
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
|
|
24442
|
-
|
|
24443
|
-
|
|
24444
|
-
|
|
24445
|
-
|
|
24446
|
-
|
|
24716
|
+
b:
|
|
24717
|
+
switch (flags) {
|
|
24718
|
+
case "title":
|
|
24719
|
+
currentResource = hoistableRoot.getElementsByTagName("title")[0];
|
|
24720
|
+
if (!currentResource || currentResource[internalHoistableMarker] || currentResource[internalInstanceKey] || "http://www.w3.org/2000/svg" === currentResource.namespaceURI || currentResource.hasAttribute("itemprop"))
|
|
24721
|
+
currentResource = hoistableRoot.createElement(flags), hoistableRoot.head.insertBefore(
|
|
24722
|
+
currentResource,
|
|
24723
|
+
hoistableRoot.querySelector("head > title")
|
|
24724
|
+
);
|
|
24725
|
+
setInitialProperties(currentResource, flags, current);
|
|
24726
|
+
currentResource[internalInstanceKey] = finishedWork;
|
|
24727
|
+
markNodeAsHoistable(currentResource);
|
|
24728
|
+
flags = currentResource;
|
|
24729
|
+
break a;
|
|
24730
|
+
case "link":
|
|
24731
|
+
var maybeNodes = getHydratableHoistableCache(
|
|
24732
|
+
"link",
|
|
24733
|
+
"href",
|
|
24734
|
+
hoistableRoot
|
|
24735
|
+
).get(flags + (current.href || ""));
|
|
24736
|
+
if (maybeNodes) {
|
|
24737
|
+
for (var i2 = 0; i2 < maybeNodes.length; i2++)
|
|
24738
|
+
if (currentResource = maybeNodes[i2], currentResource.getAttribute("href") === (null == current.href || "" === current.href ? null : current.href) && currentResource.getAttribute("rel") === (null == current.rel ? null : current.rel) && currentResource.getAttribute("title") === (null == current.title ? null : current.title) && currentResource.getAttribute("crossorigin") === (null == current.crossOrigin ? null : current.crossOrigin)) {
|
|
24739
|
+
maybeNodes.splice(i2, 1);
|
|
24740
|
+
break b;
|
|
24741
|
+
}
|
|
24742
|
+
}
|
|
24743
|
+
currentResource = hoistableRoot.createElement(flags);
|
|
24744
|
+
setInitialProperties(currentResource, flags, current);
|
|
24745
|
+
hoistableRoot.head.appendChild(currentResource);
|
|
24746
|
+
break;
|
|
24747
|
+
case "meta":
|
|
24748
|
+
if (maybeNodes = getHydratableHoistableCache(
|
|
24749
|
+
"meta",
|
|
24750
|
+
"content",
|
|
24751
|
+
hoistableRoot
|
|
24752
|
+
).get(flags + (current.content || ""))) {
|
|
24753
|
+
for (i2 = 0; i2 < maybeNodes.length; i2++)
|
|
24754
|
+
if (currentResource = maybeNodes[i2], currentResource.getAttribute("content") === (null == current.content ? null : "" + current.content) && currentResource.getAttribute("name") === (null == current.name ? null : current.name) && currentResource.getAttribute("property") === (null == current.property ? null : current.property) && currentResource.getAttribute("http-equiv") === (null == current.httpEquiv ? null : current.httpEquiv) && currentResource.getAttribute("charset") === (null == current.charSet ? null : current.charSet)) {
|
|
24755
|
+
maybeNodes.splice(i2, 1);
|
|
24756
|
+
break b;
|
|
24757
|
+
}
|
|
24758
|
+
}
|
|
24759
|
+
currentResource = hoistableRoot.createElement(flags);
|
|
24760
|
+
setInitialProperties(currentResource, flags, current);
|
|
24761
|
+
hoistableRoot.head.appendChild(currentResource);
|
|
24762
|
+
break;
|
|
24763
|
+
default:
|
|
24764
|
+
throw Error(formatProdErrorMessage(468, flags));
|
|
24765
|
+
}
|
|
24447
24766
|
currentResource[internalInstanceKey] = finishedWork;
|
|
24448
24767
|
markNodeAsHoistable(currentResource);
|
|
24449
24768
|
flags = currentResource;
|
|
@@ -24565,46 +24884,49 @@ function commitMutationEffectsOnFiber(finishedWork, root2) {
|
|
|
24565
24884
|
offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
|
|
24566
24885
|
commitReconciliationEffects(finishedWork);
|
|
24567
24886
|
if (flags & 8192)
|
|
24568
|
-
a:
|
|
24569
|
-
|
|
24570
|
-
if (
|
|
24571
|
-
|
|
24572
|
-
|
|
24573
|
-
|
|
24574
|
-
|
|
24575
|
-
|
|
24576
|
-
|
|
24577
|
-
|
|
24578
|
-
|
|
24887
|
+
a:
|
|
24888
|
+
for (root2 = finishedWork.stateNode, root2._visibility = hoistableRoot ? root2._visibility & -2 : root2._visibility | 1, hoistableRoot && (null === current || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), current = null, root2 = finishedWork; ; ) {
|
|
24889
|
+
if (5 === root2.tag || 26 === root2.tag) {
|
|
24890
|
+
if (null === current) {
|
|
24891
|
+
wasHidden = current = root2;
|
|
24892
|
+
try {
|
|
24893
|
+
if (currentResource = wasHidden.stateNode, hoistableRoot)
|
|
24894
|
+
maybeNodes = currentResource.style, "function" === typeof maybeNodes.setProperty ? maybeNodes.setProperty("display", "none", "important") : maybeNodes.display = "none";
|
|
24895
|
+
else {
|
|
24896
|
+
i2 = wasHidden.stateNode;
|
|
24897
|
+
var styleProp = wasHidden.memoizedProps.style, display = void 0 !== styleProp && null !== styleProp && styleProp.hasOwnProperty("display") ? styleProp.display : null;
|
|
24898
|
+
i2.style.display = null == display || "boolean" === typeof display ? "" : ("" + display).trim();
|
|
24899
|
+
}
|
|
24900
|
+
} catch (error) {
|
|
24901
|
+
captureCommitPhaseError(wasHidden, wasHidden.return, error);
|
|
24579
24902
|
}
|
|
24580
|
-
} catch (error) {
|
|
24581
|
-
captureCommitPhaseError(wasHidden, wasHidden.return, error);
|
|
24582
24903
|
}
|
|
24583
|
-
}
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24904
|
+
} else if (6 === root2.tag) {
|
|
24905
|
+
if (null === current) {
|
|
24906
|
+
wasHidden = root2;
|
|
24907
|
+
try {
|
|
24908
|
+
wasHidden.stateNode.nodeValue = hoistableRoot ? "" : wasHidden.memoizedProps;
|
|
24909
|
+
} catch (error) {
|
|
24910
|
+
captureCommitPhaseError(wasHidden, wasHidden.return, error);
|
|
24911
|
+
}
|
|
24591
24912
|
}
|
|
24913
|
+
} else if ((22 !== root2.tag && 23 !== root2.tag || null === root2.memoizedState || root2 === finishedWork) && null !== root2.child) {
|
|
24914
|
+
root2.child.return = root2;
|
|
24915
|
+
root2 = root2.child;
|
|
24916
|
+
continue;
|
|
24917
|
+
}
|
|
24918
|
+
if (root2 === finishedWork)
|
|
24919
|
+
break a;
|
|
24920
|
+
for (; null === root2.sibling; ) {
|
|
24921
|
+
if (null === root2.return || root2.return === finishedWork)
|
|
24922
|
+
break a;
|
|
24923
|
+
current === root2 && (current = null);
|
|
24924
|
+
root2 = root2.return;
|
|
24592
24925
|
}
|
|
24593
|
-
} else if ((22 !== root2.tag && 23 !== root2.tag || null === root2.memoizedState || root2 === finishedWork) && null !== root2.child) {
|
|
24594
|
-
root2.child.return = root2;
|
|
24595
|
-
root2 = root2.child;
|
|
24596
|
-
continue;
|
|
24597
|
-
}
|
|
24598
|
-
if (root2 === finishedWork) break a;
|
|
24599
|
-
for (; null === root2.sibling; ) {
|
|
24600
|
-
if (null === root2.return || root2.return === finishedWork) break a;
|
|
24601
24926
|
current === root2 && (current = null);
|
|
24602
|
-
root2 = root2.return;
|
|
24927
|
+
root2.sibling.return = root2.return;
|
|
24928
|
+
root2 = root2.sibling;
|
|
24603
24929
|
}
|
|
24604
|
-
current === root2 && (current = null);
|
|
24605
|
-
root2.sibling.return = root2.return;
|
|
24606
|
-
root2 = root2.sibling;
|
|
24607
|
-
}
|
|
24608
24930
|
flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (current = flags.retryQueue, null !== current && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current))));
|
|
24609
24931
|
break;
|
|
24610
24932
|
case 19:
|
|
@@ -24631,7 +24953,8 @@ function commitReconciliationEffects(finishedWork) {
|
|
|
24631
24953
|
}
|
|
24632
24954
|
parentFiber = parentFiber.return;
|
|
24633
24955
|
}
|
|
24634
|
-
if (null == hostParentFiber)
|
|
24956
|
+
if (null == hostParentFiber)
|
|
24957
|
+
throw Error(formatProdErrorMessage(160));
|
|
24635
24958
|
switch (hostParentFiber.tag) {
|
|
24636
24959
|
case 27:
|
|
24637
24960
|
var parent = hostParentFiber.stateNode, before = getHostSibling(finishedWork);
|
|
@@ -25161,23 +25484,25 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot
|
|
|
25161
25484
|
releaseCache(fiber.memoizedState.cache);
|
|
25162
25485
|
}
|
|
25163
25486
|
cache = fiber.child;
|
|
25164
|
-
if (null !== cache)
|
|
25487
|
+
if (null !== cache)
|
|
25488
|
+
cache.return = fiber, nextEffect = cache;
|
|
25165
25489
|
else
|
|
25166
|
-
a:
|
|
25167
|
-
|
|
25168
|
-
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
|
|
25172
|
-
|
|
25173
|
-
|
|
25174
|
-
|
|
25175
|
-
sibling
|
|
25176
|
-
|
|
25177
|
-
|
|
25490
|
+
a:
|
|
25491
|
+
for (fiber = deletedSubtreeRoot; null !== nextEffect; ) {
|
|
25492
|
+
cache = nextEffect;
|
|
25493
|
+
var sibling = cache.sibling, returnFiber = cache.return;
|
|
25494
|
+
detachFiberAfterEffects(cache);
|
|
25495
|
+
if (cache === fiber) {
|
|
25496
|
+
nextEffect = null;
|
|
25497
|
+
break a;
|
|
25498
|
+
}
|
|
25499
|
+
if (null !== sibling) {
|
|
25500
|
+
sibling.return = returnFiber;
|
|
25501
|
+
nextEffect = sibling;
|
|
25502
|
+
break a;
|
|
25503
|
+
}
|
|
25504
|
+
nextEffect = returnFiber;
|
|
25178
25505
|
}
|
|
25179
|
-
nextEffect = returnFiber;
|
|
25180
|
-
}
|
|
25181
25506
|
}
|
|
25182
25507
|
}
|
|
25183
25508
|
var DefaultAsyncDispatcher = {
|
|
@@ -25220,7 +25545,8 @@ function scheduleUpdateOnFiber(root2, fiber, lane) {
|
|
|
25220
25545
|
)), ensureRootIsScheduled(root2);
|
|
25221
25546
|
}
|
|
25222
25547
|
function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
25223
|
-
if (0 !== (executionContext & 6))
|
|
25548
|
+
if (0 !== (executionContext & 6))
|
|
25549
|
+
throw Error(formatProdErrorMessage(327));
|
|
25224
25550
|
var shouldTimeSlice = !forceSync && 0 === (lanes & 124) && 0 === (lanes & root$jscomp$0.expiredLanes) || checkIfRootIsPrerendering(root$jscomp$0, lanes), exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, true), renderWasConcurrent = shouldTimeSlice;
|
|
25225
25551
|
do {
|
|
25226
25552
|
if (0 === exitStatus) {
|
|
@@ -25268,7 +25594,8 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
|
25268
25594
|
exitStatus = JSCompiler_inline_result;
|
|
25269
25595
|
}
|
|
25270
25596
|
renderWasConcurrent = false;
|
|
25271
|
-
if (2 !== exitStatus)
|
|
25597
|
+
if (2 !== exitStatus)
|
|
25598
|
+
continue;
|
|
25272
25599
|
}
|
|
25273
25600
|
}
|
|
25274
25601
|
if (1 === exitStatus) {
|
|
@@ -25284,7 +25611,8 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
|
25284
25611
|
case 1:
|
|
25285
25612
|
throw Error(formatProdErrorMessage(345));
|
|
25286
25613
|
case 4:
|
|
25287
|
-
if ((lanes & 4194048) !== lanes)
|
|
25614
|
+
if ((lanes & 4194048) !== lanes)
|
|
25615
|
+
break;
|
|
25288
25616
|
case 6:
|
|
25289
25617
|
markRootSuspended(
|
|
25290
25618
|
shouldTimeSlice,
|
|
@@ -25309,7 +25637,8 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
|
25309
25637
|
workInProgressDeferredLane,
|
|
25310
25638
|
!workInProgressRootDidSkipSuspendedSiblings
|
|
25311
25639
|
);
|
|
25312
|
-
if (0 !== getNextLanes(shouldTimeSlice, 0, true))
|
|
25640
|
+
if (0 !== getNextLanes(shouldTimeSlice, 0, true))
|
|
25641
|
+
break a;
|
|
25313
25642
|
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
|
25314
25643
|
commitRootWhenReady.bind(
|
|
25315
25644
|
null,
|
|
@@ -25401,7 +25730,8 @@ function isRenderConsistentWithExternalStores(finishedWork) {
|
|
|
25401
25730
|
var check = tag[i2], getSnapshot = check.getSnapshot;
|
|
25402
25731
|
check = check.value;
|
|
25403
25732
|
try {
|
|
25404
|
-
if (!objectIs(getSnapshot(), check))
|
|
25733
|
+
if (!objectIs(getSnapshot(), check))
|
|
25734
|
+
return false;
|
|
25405
25735
|
} catch (error) {
|
|
25406
25736
|
return false;
|
|
25407
25737
|
}
|
|
@@ -25410,9 +25740,11 @@ function isRenderConsistentWithExternalStores(finishedWork) {
|
|
|
25410
25740
|
if (node.subtreeFlags & 16384 && null !== tag)
|
|
25411
25741
|
tag.return = node, node = tag;
|
|
25412
25742
|
else {
|
|
25413
|
-
if (node === finishedWork)
|
|
25743
|
+
if (node === finishedWork)
|
|
25744
|
+
break;
|
|
25414
25745
|
for (; null === node.sibling; ) {
|
|
25415
|
-
if (null === node.return || node.return === finishedWork)
|
|
25746
|
+
if (null === node.return || node.return === finishedWork)
|
|
25747
|
+
return true;
|
|
25416
25748
|
node = node.return;
|
|
25417
25749
|
}
|
|
25418
25750
|
node.sibling.return = node.return;
|
|
@@ -25516,40 +25848,41 @@ function renderRootSync(root2, lanes, shouldYieldForPrerendering) {
|
|
|
25516
25848
|
workInProgressTransitions = null, prepareFreshStack(root2, lanes);
|
|
25517
25849
|
lanes = false;
|
|
25518
25850
|
var exitStatus = workInProgressRootExitStatus;
|
|
25519
|
-
a:
|
|
25520
|
-
|
|
25521
|
-
|
|
25522
|
-
|
|
25523
|
-
|
|
25524
|
-
|
|
25525
|
-
|
|
25526
|
-
|
|
25527
|
-
|
|
25528
|
-
case 3:
|
|
25529
|
-
case 2:
|
|
25530
|
-
case 9:
|
|
25531
|
-
case 6:
|
|
25532
|
-
null === suspenseHandlerStackCursor.current && (lanes = true);
|
|
25533
|
-
var reason = workInProgressSuspendedReason;
|
|
25534
|
-
workInProgressSuspendedReason = 0;
|
|
25535
|
-
workInProgressThrownValue = null;
|
|
25536
|
-
throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
|
|
25537
|
-
if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
|
|
25538
|
-
exitStatus = 0;
|
|
25851
|
+
a:
|
|
25852
|
+
do
|
|
25853
|
+
try {
|
|
25854
|
+
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
|
|
25855
|
+
var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue;
|
|
25856
|
+
switch (workInProgressSuspendedReason) {
|
|
25857
|
+
case 8:
|
|
25858
|
+
resetWorkInProgressStack();
|
|
25859
|
+
exitStatus = 6;
|
|
25539
25860
|
break a;
|
|
25540
|
-
|
|
25541
|
-
|
|
25542
|
-
|
|
25543
|
-
|
|
25861
|
+
case 3:
|
|
25862
|
+
case 2:
|
|
25863
|
+
case 9:
|
|
25864
|
+
case 6:
|
|
25865
|
+
null === suspenseHandlerStackCursor.current && (lanes = true);
|
|
25866
|
+
var reason = workInProgressSuspendedReason;
|
|
25867
|
+
workInProgressSuspendedReason = 0;
|
|
25868
|
+
workInProgressThrownValue = null;
|
|
25869
|
+
throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
|
|
25870
|
+
if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
|
|
25871
|
+
exitStatus = 0;
|
|
25872
|
+
break a;
|
|
25873
|
+
}
|
|
25874
|
+
break;
|
|
25875
|
+
default:
|
|
25876
|
+
reason = workInProgressSuspendedReason, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
|
|
25877
|
+
}
|
|
25544
25878
|
}
|
|
25879
|
+
workLoopSync();
|
|
25880
|
+
exitStatus = workInProgressRootExitStatus;
|
|
25881
|
+
break;
|
|
25882
|
+
} catch (thrownValue$167) {
|
|
25883
|
+
handleThrow(root2, thrownValue$167);
|
|
25545
25884
|
}
|
|
25546
|
-
|
|
25547
|
-
exitStatus = workInProgressRootExitStatus;
|
|
25548
|
-
break;
|
|
25549
|
-
} catch (thrownValue$167) {
|
|
25550
|
-
handleThrow(root2, thrownValue$167);
|
|
25551
|
-
}
|
|
25552
|
-
while (1);
|
|
25885
|
+
while (1);
|
|
25553
25886
|
lanes && root2.shellSuspendCounter++;
|
|
25554
25887
|
lastContextDependency = currentlyRenderingFiber$1 = null;
|
|
25555
25888
|
executionContext = prevExecutionContext;
|
|
@@ -25559,7 +25892,8 @@ function renderRootSync(root2, lanes, shouldYieldForPrerendering) {
|
|
|
25559
25892
|
return exitStatus;
|
|
25560
25893
|
}
|
|
25561
25894
|
function workLoopSync() {
|
|
25562
|
-
for (; null !== workInProgress; )
|
|
25895
|
+
for (; null !== workInProgress; )
|
|
25896
|
+
performUnitOfWork(workInProgress);
|
|
25563
25897
|
}
|
|
25564
25898
|
function renderRootConcurrent(root2, lanes) {
|
|
25565
25899
|
var prevExecutionContext = executionContext;
|
|
@@ -25569,88 +25903,92 @@ function renderRootConcurrent(root2, lanes) {
|
|
|
25569
25903
|
root2,
|
|
25570
25904
|
lanes
|
|
25571
25905
|
);
|
|
25572
|
-
a:
|
|
25573
|
-
|
|
25574
|
-
|
|
25575
|
-
|
|
25576
|
-
|
|
25577
|
-
|
|
25578
|
-
|
|
25579
|
-
workInProgressSuspendedReason
|
|
25580
|
-
|
|
25581
|
-
|
|
25582
|
-
|
|
25583
|
-
|
|
25584
|
-
|
|
25585
|
-
|
|
25586
|
-
|
|
25587
|
-
|
|
25588
|
-
replaySuspendedUnitOfWork(lanes);
|
|
25589
|
-
break;
|
|
25590
|
-
}
|
|
25591
|
-
lanes = function() {
|
|
25592
|
-
2 !== workInProgressSuspendedReason && 9 !== workInProgressSuspendedReason || workInProgressRoot !== root2 || (workInProgressSuspendedReason = 7);
|
|
25593
|
-
ensureRootIsScheduled(root2);
|
|
25594
|
-
};
|
|
25595
|
-
thrownValue.then(lanes, lanes);
|
|
25596
|
-
break a;
|
|
25597
|
-
case 3:
|
|
25598
|
-
workInProgressSuspendedReason = 7;
|
|
25599
|
-
break a;
|
|
25600
|
-
case 4:
|
|
25601
|
-
workInProgressSuspendedReason = 5;
|
|
25602
|
-
break a;
|
|
25603
|
-
case 7:
|
|
25604
|
-
isThenableResolved(thrownValue) ? (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 7));
|
|
25605
|
-
break;
|
|
25606
|
-
case 5:
|
|
25607
|
-
var resource = null;
|
|
25608
|
-
switch (workInProgress.tag) {
|
|
25609
|
-
case 26:
|
|
25610
|
-
resource = workInProgress.memoizedState;
|
|
25611
|
-
case 5:
|
|
25612
|
-
case 27:
|
|
25613
|
-
var hostFiber = workInProgress;
|
|
25614
|
-
if (resource ? preloadResource(resource) : 1) {
|
|
25906
|
+
a:
|
|
25907
|
+
do
|
|
25908
|
+
try {
|
|
25909
|
+
if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
|
|
25910
|
+
lanes = workInProgress;
|
|
25911
|
+
var thrownValue = workInProgressThrownValue;
|
|
25912
|
+
b:
|
|
25913
|
+
switch (workInProgressSuspendedReason) {
|
|
25914
|
+
case 1:
|
|
25915
|
+
workInProgressSuspendedReason = 0;
|
|
25916
|
+
workInProgressThrownValue = null;
|
|
25917
|
+
throwAndUnwindWorkLoop(root2, lanes, thrownValue, 1);
|
|
25918
|
+
break;
|
|
25919
|
+
case 2:
|
|
25920
|
+
case 9:
|
|
25921
|
+
if (isThenableResolved(thrownValue)) {
|
|
25615
25922
|
workInProgressSuspendedReason = 0;
|
|
25616
25923
|
workInProgressThrownValue = null;
|
|
25617
|
-
|
|
25618
|
-
|
|
25619
|
-
|
|
25620
|
-
|
|
25621
|
-
|
|
25622
|
-
|
|
25623
|
-
|
|
25924
|
+
replaySuspendedUnitOfWork(lanes);
|
|
25925
|
+
break;
|
|
25926
|
+
}
|
|
25927
|
+
lanes = function() {
|
|
25928
|
+
2 !== workInProgressSuspendedReason && 9 !== workInProgressSuspendedReason || workInProgressRoot !== root2 || (workInProgressSuspendedReason = 7);
|
|
25929
|
+
ensureRootIsScheduled(root2);
|
|
25930
|
+
};
|
|
25931
|
+
thrownValue.then(lanes, lanes);
|
|
25932
|
+
break a;
|
|
25933
|
+
case 3:
|
|
25934
|
+
workInProgressSuspendedReason = 7;
|
|
25935
|
+
break a;
|
|
25936
|
+
case 4:
|
|
25937
|
+
workInProgressSuspendedReason = 5;
|
|
25938
|
+
break a;
|
|
25939
|
+
case 7:
|
|
25940
|
+
isThenableResolved(thrownValue) ? (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 7));
|
|
25941
|
+
break;
|
|
25942
|
+
case 5:
|
|
25943
|
+
var resource = null;
|
|
25944
|
+
switch (workInProgress.tag) {
|
|
25945
|
+
case 26:
|
|
25946
|
+
resource = workInProgress.memoizedState;
|
|
25947
|
+
case 5:
|
|
25948
|
+
case 27:
|
|
25949
|
+
var hostFiber = workInProgress;
|
|
25950
|
+
if (resource ? preloadResource(resource) : 1) {
|
|
25951
|
+
workInProgressSuspendedReason = 0;
|
|
25952
|
+
workInProgressThrownValue = null;
|
|
25953
|
+
var sibling = hostFiber.sibling;
|
|
25954
|
+
if (null !== sibling)
|
|
25955
|
+
workInProgress = sibling;
|
|
25956
|
+
else {
|
|
25957
|
+
var returnFiber = hostFiber.return;
|
|
25958
|
+
null !== returnFiber ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null;
|
|
25959
|
+
}
|
|
25960
|
+
break b;
|
|
25961
|
+
}
|
|
25624
25962
|
}
|
|
25963
|
+
workInProgressSuspendedReason = 0;
|
|
25964
|
+
workInProgressThrownValue = null;
|
|
25965
|
+
throwAndUnwindWorkLoop(root2, lanes, thrownValue, 5);
|
|
25966
|
+
break;
|
|
25967
|
+
case 6:
|
|
25968
|
+
workInProgressSuspendedReason = 0;
|
|
25969
|
+
workInProgressThrownValue = null;
|
|
25970
|
+
throwAndUnwindWorkLoop(root2, lanes, thrownValue, 6);
|
|
25971
|
+
break;
|
|
25972
|
+
case 8:
|
|
25973
|
+
resetWorkInProgressStack();
|
|
25974
|
+
workInProgressRootExitStatus = 6;
|
|
25975
|
+
break a;
|
|
25976
|
+
default:
|
|
25977
|
+
throw Error(formatProdErrorMessage(462));
|
|
25625
25978
|
}
|
|
25626
|
-
workInProgressSuspendedReason = 0;
|
|
25627
|
-
workInProgressThrownValue = null;
|
|
25628
|
-
throwAndUnwindWorkLoop(root2, lanes, thrownValue, 5);
|
|
25629
|
-
break;
|
|
25630
|
-
case 6:
|
|
25631
|
-
workInProgressSuspendedReason = 0;
|
|
25632
|
-
workInProgressThrownValue = null;
|
|
25633
|
-
throwAndUnwindWorkLoop(root2, lanes, thrownValue, 6);
|
|
25634
|
-
break;
|
|
25635
|
-
case 8:
|
|
25636
|
-
resetWorkInProgressStack();
|
|
25637
|
-
workInProgressRootExitStatus = 6;
|
|
25638
|
-
break a;
|
|
25639
|
-
default:
|
|
25640
|
-
throw Error(formatProdErrorMessage(462));
|
|
25641
25979
|
}
|
|
25980
|
+
workLoopConcurrentByScheduler();
|
|
25981
|
+
break;
|
|
25982
|
+
} catch (thrownValue$169) {
|
|
25983
|
+
handleThrow(root2, thrownValue$169);
|
|
25642
25984
|
}
|
|
25643
|
-
|
|
25644
|
-
break;
|
|
25645
|
-
} catch (thrownValue$169) {
|
|
25646
|
-
handleThrow(root2, thrownValue$169);
|
|
25647
|
-
}
|
|
25648
|
-
while (1);
|
|
25985
|
+
while (1);
|
|
25649
25986
|
lastContextDependency = currentlyRenderingFiber$1 = null;
|
|
25650
25987
|
ReactSharedInternals.H = prevDispatcher;
|
|
25651
25988
|
ReactSharedInternals.A = prevAsyncDispatcher;
|
|
25652
25989
|
executionContext = prevExecutionContext;
|
|
25653
|
-
if (null !== workInProgress)
|
|
25990
|
+
if (null !== workInProgress)
|
|
25991
|
+
return 0;
|
|
25654
25992
|
workInProgressRoot = null;
|
|
25655
25993
|
workInProgressRootRenderLanes = 0;
|
|
25656
25994
|
finishQueueingConcurrentUpdates();
|
|
@@ -25721,7 +26059,8 @@ function throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, suspendedReason)
|
|
|
25721
26059
|
return;
|
|
25722
26060
|
}
|
|
25723
26061
|
} catch (error) {
|
|
25724
|
-
if (null !== returnFiber)
|
|
26062
|
+
if (null !== returnFiber)
|
|
26063
|
+
throw workInProgress = returnFiber, error;
|
|
25725
26064
|
workInProgressRootExitStatus = 1;
|
|
25726
26065
|
logUncaughtError(
|
|
25727
26066
|
root2,
|
|
@@ -25731,13 +26070,15 @@ function throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, suspendedReason)
|
|
|
25731
26070
|
return;
|
|
25732
26071
|
}
|
|
25733
26072
|
if (unitOfWork.flags & 32768) {
|
|
25734
|
-
if (isHydrating || 1 === suspendedReason)
|
|
26073
|
+
if (isHydrating || 1 === suspendedReason)
|
|
26074
|
+
root2 = true;
|
|
25735
26075
|
else if (workInProgressRootIsPrerendering || 0 !== (workInProgressRootRenderLanes & 536870912))
|
|
25736
26076
|
root2 = false;
|
|
25737
26077
|
else if (workInProgressRootDidSkipSuspendedSiblings = root2 = true, 2 === suspendedReason || 9 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason)
|
|
25738
26078
|
suspendedReason = suspenseHandlerStackCursor.current, null !== suspendedReason && 13 === suspendedReason.tag && (suspendedReason.flags |= 16384);
|
|
25739
26079
|
unwindUnitOfWork(unitOfWork, root2);
|
|
25740
|
-
} else
|
|
26080
|
+
} else
|
|
26081
|
+
completeUnitOfWork(unitOfWork);
|
|
25741
26082
|
}
|
|
25742
26083
|
function completeUnitOfWork(unitOfWork) {
|
|
25743
26084
|
var completedWork = unitOfWork;
|
|
@@ -25792,9 +26133,11 @@ function commitRoot(root2, finishedWork, lanes, recoverableErrors, transitions,
|
|
|
25792
26133
|
do
|
|
25793
26134
|
flushPendingEffects();
|
|
25794
26135
|
while (0 !== pendingEffectsStatus);
|
|
25795
|
-
if (0 !== (executionContext & 6))
|
|
26136
|
+
if (0 !== (executionContext & 6))
|
|
26137
|
+
throw Error(formatProdErrorMessage(327));
|
|
25796
26138
|
if (null !== finishedWork) {
|
|
25797
|
-
if (finishedWork === root2.current)
|
|
26139
|
+
if (finishedWork === root2.current)
|
|
26140
|
+
throw Error(formatProdErrorMessage(177));
|
|
25798
26141
|
didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes;
|
|
25799
26142
|
didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;
|
|
25800
26143
|
markRootFinished(
|
|
@@ -25980,7 +26323,8 @@ function flushPendingEffects(wasDelayedCommit) {
|
|
|
25980
26323
|
return flushPassiveEffects();
|
|
25981
26324
|
}
|
|
25982
26325
|
function flushPassiveEffects() {
|
|
25983
|
-
if (5 !== pendingEffectsStatus)
|
|
26326
|
+
if (5 !== pendingEffectsStatus)
|
|
26327
|
+
return false;
|
|
25984
26328
|
var root2 = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes;
|
|
25985
26329
|
pendingEffectsRemainingLanes = 0;
|
|
25986
26330
|
var renderPriority = lanesToEventPriority(pendingEffectsLanes), prevTransition = ReactSharedInternals.T, previousPriority = ReactDOMSharedInternals.p;
|
|
@@ -25993,7 +26337,8 @@ function flushPassiveEffects() {
|
|
|
25993
26337
|
pendingEffectsStatus = 0;
|
|
25994
26338
|
pendingFinishedWork = pendingEffectsRoot = null;
|
|
25995
26339
|
pendingEffectsLanes = 0;
|
|
25996
|
-
if (0 !== (executionContext & 6))
|
|
26340
|
+
if (0 !== (executionContext & 6))
|
|
26341
|
+
throw Error(formatProdErrorMessage(331));
|
|
25997
26342
|
var prevExecutionContext = executionContext;
|
|
25998
26343
|
executionContext |= 4;
|
|
25999
26344
|
commitPassiveUnmountOnFiber(root$jscomp$0.current);
|
|
@@ -26116,7 +26461,8 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
|
|
26116
26461
|
for (var root$174 = firstScheduledRoot; null !== root$174; ) {
|
|
26117
26462
|
if (0 !== syncTransitionLanes) {
|
|
26118
26463
|
var pendingLanes = root$174.pendingLanes;
|
|
26119
|
-
if (0 === pendingLanes)
|
|
26464
|
+
if (0 === pendingLanes)
|
|
26465
|
+
var JSCompiler_inline_result = 0;
|
|
26120
26466
|
else {
|
|
26121
26467
|
var suspendedLanes = root$174.suspendedLanes, pingedLanes = root$174.pingedLanes;
|
|
26122
26468
|
JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1;
|
|
@@ -26159,7 +26505,8 @@ function scheduleTaskForRootDuringMicrotask(root2, currentTime) {
|
|
|
26159
26505
|
if (-1 === expirationTime) {
|
|
26160
26506
|
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
|
26161
26507
|
expirationTimes[index$3] = computeExpirationTime(lane, currentTime);
|
|
26162
|
-
} else
|
|
26508
|
+
} else
|
|
26509
|
+
expirationTime <= currentTime && (root2.expiredLanes |= lane);
|
|
26163
26510
|
lanes &= ~lane;
|
|
26164
26511
|
}
|
|
26165
26512
|
currentTime = workInProgressRoot;
|
|
@@ -26174,7 +26521,8 @@ function scheduleTaskForRootDuringMicrotask(root2, currentTime) {
|
|
|
26174
26521
|
return null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes), root2.callbackNode = null, root2.callbackPriority = 0;
|
|
26175
26522
|
if (0 === (suspendedLanes & 3) || checkIfRootIsPrerendering(root2, suspendedLanes)) {
|
|
26176
26523
|
currentTime = suspendedLanes & -suspendedLanes;
|
|
26177
|
-
if (currentTime === root2.callbackPriority)
|
|
26524
|
+
if (currentTime === root2.callbackPriority)
|
|
26525
|
+
return currentTime;
|
|
26178
26526
|
null !== pingedLanes && cancelCallback$1(pingedLanes);
|
|
26179
26527
|
switch (lanesToEventPriority(suspendedLanes)) {
|
|
26180
26528
|
case 2:
|
|
@@ -26213,13 +26561,15 @@ function performWorkOnRootViaSchedulerTask(root2, didTimeout) {
|
|
|
26213
26561
|
root2 === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
|
|
26214
26562
|
null !== root2.cancelPendingCommit || -1 !== root2.timeoutHandle
|
|
26215
26563
|
);
|
|
26216
|
-
if (0 === workInProgressRootRenderLanes$jscomp$0)
|
|
26564
|
+
if (0 === workInProgressRootRenderLanes$jscomp$0)
|
|
26565
|
+
return null;
|
|
26217
26566
|
performWorkOnRoot(root2, workInProgressRootRenderLanes$jscomp$0, didTimeout);
|
|
26218
26567
|
scheduleTaskForRootDuringMicrotask(root2, now());
|
|
26219
26568
|
return null != root2.callbackNode && root2.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root2) : null;
|
|
26220
26569
|
}
|
|
26221
26570
|
function performSyncWorkOnRoot(root2, lanes) {
|
|
26222
|
-
if (flushPendingEffects())
|
|
26571
|
+
if (flushPendingEffects())
|
|
26572
|
+
return null;
|
|
26223
26573
|
performWorkOnRoot(root2, lanes, true);
|
|
26224
26574
|
}
|
|
26225
26575
|
function scheduleImmediateRootScheduleTask() {
|
|
@@ -26454,32 +26804,36 @@ function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags
|
|
|
26454
26804
|
function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst$jscomp$0, targetContainer) {
|
|
26455
26805
|
var ancestorInst = targetInst$jscomp$0;
|
|
26456
26806
|
if (0 === (eventSystemFlags & 1) && 0 === (eventSystemFlags & 2) && null !== targetInst$jscomp$0)
|
|
26457
|
-
a:
|
|
26458
|
-
|
|
26459
|
-
|
|
26460
|
-
|
|
26461
|
-
var
|
|
26462
|
-
if (
|
|
26463
|
-
|
|
26464
|
-
|
|
26465
|
-
|
|
26466
|
-
|
|
26807
|
+
a:
|
|
26808
|
+
for (; ; ) {
|
|
26809
|
+
if (null === targetInst$jscomp$0)
|
|
26810
|
+
return;
|
|
26811
|
+
var nodeTag = targetInst$jscomp$0.tag;
|
|
26812
|
+
if (3 === nodeTag || 4 === nodeTag) {
|
|
26813
|
+
var container = targetInst$jscomp$0.stateNode.containerInfo;
|
|
26814
|
+
if (container === targetContainer)
|
|
26815
|
+
break;
|
|
26816
|
+
if (4 === nodeTag)
|
|
26817
|
+
for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) {
|
|
26818
|
+
var grandTag = nodeTag.tag;
|
|
26819
|
+
if ((3 === grandTag || 4 === grandTag) && nodeTag.stateNode.containerInfo === targetContainer)
|
|
26820
|
+
return;
|
|
26821
|
+
nodeTag = nodeTag.return;
|
|
26822
|
+
}
|
|
26823
|
+
for (; null !== container; ) {
|
|
26824
|
+
nodeTag = getClosestInstanceFromNode(container);
|
|
26825
|
+
if (null === nodeTag)
|
|
26467
26826
|
return;
|
|
26468
|
-
|
|
26469
|
-
|
|
26470
|
-
|
|
26471
|
-
|
|
26472
|
-
|
|
26473
|
-
|
|
26474
|
-
if (5 === grandTag || 6 === grandTag || 26 === grandTag || 27 === grandTag) {
|
|
26475
|
-
targetInst$jscomp$0 = ancestorInst = nodeTag;
|
|
26476
|
-
continue a;
|
|
26827
|
+
grandTag = nodeTag.tag;
|
|
26828
|
+
if (5 === grandTag || 6 === grandTag || 26 === grandTag || 27 === grandTag) {
|
|
26829
|
+
targetInst$jscomp$0 = ancestorInst = nodeTag;
|
|
26830
|
+
continue a;
|
|
26831
|
+
}
|
|
26832
|
+
container = container.parentNode;
|
|
26477
26833
|
}
|
|
26478
|
-
container = container.parentNode;
|
|
26479
26834
|
}
|
|
26835
|
+
targetInst$jscomp$0 = targetInst$jscomp$0.return;
|
|
26480
26836
|
}
|
|
26481
|
-
targetInst$jscomp$0 = targetInst$jscomp$0.return;
|
|
26482
|
-
}
|
|
26483
26837
|
batchedUpdates$1(function() {
|
|
26484
26838
|
var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = [];
|
|
26485
26839
|
a: {
|
|
@@ -26488,7 +26842,8 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
|
|
|
26488
26842
|
var SyntheticEventCtor = SyntheticEvent, reactEventType = domEventName;
|
|
26489
26843
|
switch (domEventName) {
|
|
26490
26844
|
case "keypress":
|
|
26491
|
-
if (0 === getEventCharCode(nativeEvent))
|
|
26845
|
+
if (0 === getEventCharCode(nativeEvent))
|
|
26846
|
+
break a;
|
|
26492
26847
|
case "keydown":
|
|
26493
26848
|
case "keyup":
|
|
26494
26849
|
SyntheticEventCtor = SyntheticKeyboardEvent;
|
|
@@ -26506,7 +26861,8 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
|
|
|
26506
26861
|
SyntheticEventCtor = SyntheticFocusEvent;
|
|
26507
26862
|
break;
|
|
26508
26863
|
case "click":
|
|
26509
|
-
if (2 === nativeEvent.button)
|
|
26864
|
+
if (2 === nativeEvent.button)
|
|
26865
|
+
break a;
|
|
26510
26866
|
case "auxclick":
|
|
26511
26867
|
case "dblclick":
|
|
26512
26868
|
case "mousedown":
|
|
@@ -26576,7 +26932,8 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
|
|
|
26576
26932
|
5 !== _instance && 26 !== _instance && 27 !== _instance || null === lastHostComponent || null === reactEventName || (_instance = getListener(instance, reactEventName), null != _instance && inCapturePhase.push(
|
|
26577
26933
|
createDispatchListener(instance, _instance, lastHostComponent)
|
|
26578
26934
|
));
|
|
26579
|
-
if (accumulateTargetOnly)
|
|
26935
|
+
if (accumulateTargetOnly)
|
|
26936
|
+
break;
|
|
26580
26937
|
instance = instance.return;
|
|
26581
26938
|
}
|
|
26582
26939
|
0 < inCapturePhase.length && (reactName = new SyntheticEventCtor(
|
|
@@ -26599,7 +26956,8 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
|
|
|
26599
26956
|
if (SyntheticEventCtor) {
|
|
26600
26957
|
if (reactEventType = nativeEvent.relatedTarget || nativeEvent.toElement, SyntheticEventCtor = targetInst, reactEventType = reactEventType ? getClosestInstanceFromNode(reactEventType) : null, null !== reactEventType && (accumulateTargetOnly = getNearestMountedFiber(reactEventType), inCapturePhase = reactEventType.tag, reactEventType !== accumulateTargetOnly || 5 !== inCapturePhase && 27 !== inCapturePhase && 6 !== inCapturePhase))
|
|
26601
26958
|
reactEventType = null;
|
|
26602
|
-
} else
|
|
26959
|
+
} else
|
|
26960
|
+
SyntheticEventCtor = null, reactEventType = targetInst;
|
|
26603
26961
|
if (SyntheticEventCtor !== reactEventType) {
|
|
26604
26962
|
inCapturePhase = SyntheticMouseEvent;
|
|
26605
26963
|
_instance = "onMouseLeave";
|
|
@@ -26649,7 +27007,8 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
|
|
|
26649
27007
|
}
|
|
26650
27008
|
inCapturePhase = null;
|
|
26651
27009
|
}
|
|
26652
|
-
else
|
|
27010
|
+
else
|
|
27011
|
+
inCapturePhase = null;
|
|
26653
27012
|
null !== SyntheticEventCtor && accumulateEnterLeaveListenersForEvent(
|
|
26654
27013
|
dispatchQueue,
|
|
26655
27014
|
reactName,
|
|
@@ -26712,7 +27071,8 @@ function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativ
|
|
|
26712
27071
|
constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
|
|
26713
27072
|
break;
|
|
26714
27073
|
case "selectionchange":
|
|
26715
|
-
if (skipSelectionChangeEvent)
|
|
27074
|
+
if (skipSelectionChangeEvent)
|
|
27075
|
+
break;
|
|
26716
27076
|
case "keydown":
|
|
26717
27077
|
case "keyup":
|
|
26718
27078
|
constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
|
|
@@ -26780,13 +27140,15 @@ function accumulateTwoPhaseListeners(targetFiber, reactName) {
|
|
|
26780
27140
|
), _instance2 = getListener(targetFiber, reactName), null != _instance2 && listeners.push(
|
|
26781
27141
|
createDispatchListener(targetFiber, _instance2, stateNode)
|
|
26782
27142
|
));
|
|
26783
|
-
if (3 === targetFiber.tag)
|
|
27143
|
+
if (3 === targetFiber.tag)
|
|
27144
|
+
return listeners;
|
|
26784
27145
|
targetFiber = targetFiber.return;
|
|
26785
27146
|
}
|
|
26786
27147
|
return [];
|
|
26787
27148
|
}
|
|
26788
27149
|
function getParent(inst) {
|
|
26789
|
-
if (null === inst)
|
|
27150
|
+
if (null === inst)
|
|
27151
|
+
return null;
|
|
26790
27152
|
do
|
|
26791
27153
|
inst = inst.return;
|
|
26792
27154
|
while (inst && 5 !== inst.tag && 27 !== inst.tag);
|
|
@@ -26796,7 +27158,8 @@ function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, com
|
|
|
26796
27158
|
for (var registrationName = event._reactName, listeners = []; null !== target && target !== common; ) {
|
|
26797
27159
|
var _instance3 = target, alternate = _instance3.alternate, stateNode = _instance3.stateNode;
|
|
26798
27160
|
_instance3 = _instance3.tag;
|
|
26799
|
-
if (null !== alternate && alternate === common)
|
|
27161
|
+
if (null !== alternate && alternate === common)
|
|
27162
|
+
break;
|
|
26800
27163
|
5 !== _instance3 && 26 !== _instance3 && 27 !== _instance3 || null === stateNode || (alternate = stateNode, inCapturePhase ? (stateNode = getListener(target, registrationName), null != stateNode && listeners.unshift(
|
|
26801
27164
|
createDispatchListener(target, stateNode, alternate)
|
|
26802
27165
|
)) : inCapturePhase || (stateNode = getListener(target, registrationName), null != stateNode && listeners.push(
|
|
@@ -26908,7 +27271,8 @@ function setProp(domElement, tag, key2, value, props, prevValue) {
|
|
|
26908
27271
|
throw Error(formatProdErrorMessage(61));
|
|
26909
27272
|
key2 = value.__html;
|
|
26910
27273
|
if (null != key2) {
|
|
26911
|
-
if (null != props.children)
|
|
27274
|
+
if (null != props.children)
|
|
27275
|
+
throw Error(formatProdErrorMessage(60));
|
|
26912
27276
|
domElement.innerHTML = key2;
|
|
26913
27277
|
}
|
|
26914
27278
|
}
|
|
@@ -27088,7 +27452,8 @@ function setPropOnCustomElement(domElement, tag, key2, value, props, prevValue)
|
|
|
27088
27452
|
throw Error(formatProdErrorMessage(61));
|
|
27089
27453
|
key2 = value.__html;
|
|
27090
27454
|
if (null != key2) {
|
|
27091
|
-
if (null != props.children)
|
|
27455
|
+
if (null != props.children)
|
|
27456
|
+
throw Error(formatProdErrorMessage(60));
|
|
27092
27457
|
domElement.innerHTML = key2;
|
|
27093
27458
|
}
|
|
27094
27459
|
}
|
|
@@ -27246,7 +27611,8 @@ function setInitialProperties(domElement, tag, props) {
|
|
|
27246
27611
|
propKey = defaultValue;
|
|
27247
27612
|
break;
|
|
27248
27613
|
case "dangerouslySetInnerHTML":
|
|
27249
|
-
if (null != defaultValue)
|
|
27614
|
+
if (null != defaultValue)
|
|
27615
|
+
throw Error(formatProdErrorMessage(91));
|
|
27250
27616
|
break;
|
|
27251
27617
|
default:
|
|
27252
27618
|
setProp(domElement, tag, propValue, defaultValue, props, null);
|
|
@@ -27475,7 +27841,8 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
27475
27841
|
case "children":
|
|
27476
27842
|
break;
|
|
27477
27843
|
case "dangerouslySetInnerHTML":
|
|
27478
|
-
if (null != name)
|
|
27844
|
+
if (null != name)
|
|
27845
|
+
throw Error(formatProdErrorMessage(91));
|
|
27479
27846
|
break;
|
|
27480
27847
|
default:
|
|
27481
27848
|
name !== type && setProp(domElement, tag, value, name, nextProps, type);
|
|
@@ -27613,7 +27980,8 @@ var currentPopstateTransitionEvent = null;
|
|
|
27613
27980
|
function shouldAttemptEagerTransition() {
|
|
27614
27981
|
var event = window.event;
|
|
27615
27982
|
if (event && "popstate" === event.type) {
|
|
27616
|
-
if (event === currentPopstateTransitionEvent)
|
|
27983
|
+
if (event === currentPopstateTransitionEvent)
|
|
27984
|
+
return false;
|
|
27617
27985
|
currentPopstateTransitionEvent = event;
|
|
27618
27986
|
return true;
|
|
27619
27987
|
}
|
|
@@ -27658,7 +28026,8 @@ function clearSuspenseBoundary(parentInstance, suspenseInstance) {
|
|
|
27658
28026
|
depth--;
|
|
27659
28027
|
} else
|
|
27660
28028
|
"$" === node || "$?" === node || "$!" === node ? depth++ : possiblePreambleContribution = node.charCodeAt(0) - 48;
|
|
27661
|
-
else
|
|
28029
|
+
else
|
|
28030
|
+
possiblePreambleContribution = 0;
|
|
27662
28031
|
node = nextNode;
|
|
27663
28032
|
} while (node);
|
|
27664
28033
|
retryIfBlockedOn(suspenseInstance);
|
|
@@ -27680,7 +28049,8 @@ function clearContainerSparingly(container) {
|
|
|
27680
28049
|
case "STYLE":
|
|
27681
28050
|
continue;
|
|
27682
28051
|
case "LINK":
|
|
27683
|
-
if ("stylesheet" === node.rel.toLowerCase())
|
|
28052
|
+
if ("stylesheet" === node.rel.toLowerCase())
|
|
28053
|
+
continue;
|
|
27684
28054
|
}
|
|
27685
28055
|
container.removeChild(node);
|
|
27686
28056
|
}
|
|
@@ -27696,11 +28066,13 @@ function canHydrateInstance(instance, type, props, inRootOrSingleton) {
|
|
|
27696
28066
|
var name = null == anyProps.name ? null : "" + anyProps.name;
|
|
27697
28067
|
if ("hidden" === anyProps.type && instance.getAttribute("name") === name)
|
|
27698
28068
|
return instance;
|
|
27699
|
-
} else
|
|
28069
|
+
} else
|
|
28070
|
+
return instance;
|
|
27700
28071
|
else if (!instance[internalHoistableMarker])
|
|
27701
28072
|
switch (type) {
|
|
27702
28073
|
case "meta":
|
|
27703
|
-
if (!instance.hasAttribute("itemprop"))
|
|
28074
|
+
if (!instance.hasAttribute("itemprop"))
|
|
28075
|
+
break;
|
|
27704
28076
|
return instance;
|
|
27705
28077
|
case "link":
|
|
27706
28078
|
name = instance.getAttribute("rel");
|
|
@@ -27710,7 +28082,8 @@ function canHydrateInstance(instance, type, props, inRootOrSingleton) {
|
|
|
27710
28082
|
break;
|
|
27711
28083
|
return instance;
|
|
27712
28084
|
case "style":
|
|
27713
|
-
if (instance.hasAttribute("data-precedence"))
|
|
28085
|
+
if (instance.hasAttribute("data-precedence"))
|
|
28086
|
+
break;
|
|
27714
28087
|
return instance;
|
|
27715
28088
|
case "script":
|
|
27716
28089
|
name = instance.getAttribute("src");
|
|
@@ -27721,17 +28094,20 @@ function canHydrateInstance(instance, type, props, inRootOrSingleton) {
|
|
|
27721
28094
|
return instance;
|
|
27722
28095
|
}
|
|
27723
28096
|
instance = getNextHydratable(instance.nextSibling);
|
|
27724
|
-
if (null === instance)
|
|
28097
|
+
if (null === instance)
|
|
28098
|
+
break;
|
|
27725
28099
|
}
|
|
27726
28100
|
return null;
|
|
27727
28101
|
}
|
|
27728
28102
|
function canHydrateTextInstance(instance, text, inRootOrSingleton) {
|
|
27729
|
-
if ("" === text)
|
|
28103
|
+
if ("" === text)
|
|
28104
|
+
return null;
|
|
27730
28105
|
for (; 3 !== instance.nodeType; ) {
|
|
27731
28106
|
if ((1 !== instance.nodeType || "INPUT" !== instance.nodeName || "hidden" !== instance.type) && !inRootOrSingleton)
|
|
27732
28107
|
return null;
|
|
27733
28108
|
instance = getNextHydratable(instance.nextSibling);
|
|
27734
|
-
if (null === instance)
|
|
28109
|
+
if (null === instance)
|
|
28110
|
+
return null;
|
|
27735
28111
|
}
|
|
27736
28112
|
return instance;
|
|
27737
28113
|
}
|
|
@@ -27754,12 +28130,14 @@ function registerSuspenseInstanceRetry(instance, callback) {
|
|
|
27754
28130
|
function getNextHydratable(node) {
|
|
27755
28131
|
for (; null != node; node = node.nextSibling) {
|
|
27756
28132
|
var nodeType = node.nodeType;
|
|
27757
|
-
if (1 === nodeType || 3 === nodeType)
|
|
28133
|
+
if (1 === nodeType || 3 === nodeType)
|
|
28134
|
+
break;
|
|
27758
28135
|
if (8 === nodeType) {
|
|
27759
28136
|
nodeType = node.data;
|
|
27760
28137
|
if ("$" === nodeType || "$!" === nodeType || "$?" === nodeType || "F!" === nodeType || "F" === nodeType)
|
|
27761
28138
|
break;
|
|
27762
|
-
if ("/$" === nodeType)
|
|
28139
|
+
if ("/$" === nodeType)
|
|
28140
|
+
return null;
|
|
27763
28141
|
}
|
|
27764
28142
|
}
|
|
27765
28143
|
return node;
|
|
@@ -27771,9 +28149,11 @@ function getParentSuspenseInstance(targetInstance) {
|
|
|
27771
28149
|
if (8 === targetInstance.nodeType) {
|
|
27772
28150
|
var data = targetInstance.data;
|
|
27773
28151
|
if ("$" === data || "$!" === data || "$?" === data) {
|
|
27774
|
-
if (0 === depth)
|
|
28152
|
+
if (0 === depth)
|
|
28153
|
+
return targetInstance;
|
|
27775
28154
|
depth--;
|
|
27776
|
-
} else
|
|
28155
|
+
} else
|
|
28156
|
+
"/$" === data && depth++;
|
|
27777
28157
|
}
|
|
27778
28158
|
targetInstance = targetInstance.previousSibling;
|
|
27779
28159
|
}
|
|
@@ -27784,15 +28164,18 @@ function resolveSingletonInstance(type, props, rootContainerInstance) {
|
|
|
27784
28164
|
switch (type) {
|
|
27785
28165
|
case "html":
|
|
27786
28166
|
type = props.documentElement;
|
|
27787
|
-
if (!type)
|
|
28167
|
+
if (!type)
|
|
28168
|
+
throw Error(formatProdErrorMessage(452));
|
|
27788
28169
|
return type;
|
|
27789
28170
|
case "head":
|
|
27790
28171
|
type = props.head;
|
|
27791
|
-
if (!type)
|
|
28172
|
+
if (!type)
|
|
28173
|
+
throw Error(formatProdErrorMessage(453));
|
|
27792
28174
|
return type;
|
|
27793
28175
|
case "body":
|
|
27794
28176
|
type = props.body;
|
|
27795
|
-
if (!type)
|
|
28177
|
+
if (!type)
|
|
28178
|
+
throw Error(formatProdErrorMessage(454));
|
|
27796
28179
|
return type;
|
|
27797
28180
|
default:
|
|
27798
28181
|
throw Error(formatProdErrorMessage(451));
|
|
@@ -27978,7 +28361,8 @@ function preinitModuleScript(src, options) {
|
|
|
27978
28361
|
}
|
|
27979
28362
|
function getResource(type, currentProps, pendingProps, currentResource) {
|
|
27980
28363
|
var JSCompiler_inline_result = (JSCompiler_inline_result = rootInstanceStackCursor.current) ? getHoistableRoot(JSCompiler_inline_result) : null;
|
|
27981
|
-
if (!JSCompiler_inline_result)
|
|
28364
|
+
if (!JSCompiler_inline_result)
|
|
28365
|
+
throw Error(formatProdErrorMessage(446));
|
|
27982
28366
|
switch (type) {
|
|
27983
28367
|
case "meta":
|
|
27984
28368
|
case "title":
|
|
@@ -28137,8 +28521,10 @@ function insertStylesheet(instance, precedence, root2) {
|
|
|
28137
28521
|
'link[rel="stylesheet"][data-precedence],style[data-precedence]'
|
|
28138
28522
|
), last = nodes.length ? nodes[nodes.length - 1] : null, prior = last, i2 = 0; i2 < nodes.length; i2++) {
|
|
28139
28523
|
var node = nodes[i2];
|
|
28140
|
-
if (node.dataset.precedence === precedence)
|
|
28141
|
-
|
|
28524
|
+
if (node.dataset.precedence === precedence)
|
|
28525
|
+
prior = node;
|
|
28526
|
+
else if (prior !== last)
|
|
28527
|
+
break;
|
|
28142
28528
|
}
|
|
28143
28529
|
prior ? prior.parentNode.insertBefore(instance, prior.nextSibling) : (precedence = 9 === root2.nodeType ? root2.head : root2, precedence.insertBefore(instance, precedence.firstChild));
|
|
28144
28530
|
}
|
|
@@ -28160,7 +28546,8 @@ function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
|
|
|
28160
28546
|
caches.set(ownerDocument, cache);
|
|
28161
28547
|
} else
|
|
28162
28548
|
caches = tagCaches, cache = caches.get(ownerDocument), cache || (cache = /* @__PURE__ */ new Map(), caches.set(ownerDocument, cache));
|
|
28163
|
-
if (cache.has(type))
|
|
28549
|
+
if (cache.has(type))
|
|
28550
|
+
return cache;
|
|
28164
28551
|
cache.set(type, null);
|
|
28165
28552
|
ownerDocument = ownerDocument.getElementsByTagName(type);
|
|
28166
28553
|
for (caches = 0; caches < ownerDocument.length; caches++) {
|
|
@@ -28182,7 +28569,8 @@ function mountHoistable(hoistableRoot, type, instance) {
|
|
|
28182
28569
|
);
|
|
28183
28570
|
}
|
|
28184
28571
|
function isHostHoistableType(type, props, hostContext) {
|
|
28185
|
-
if (1 === hostContext || null != props.itemProp)
|
|
28572
|
+
if (1 === hostContext || null != props.itemProp)
|
|
28573
|
+
return false;
|
|
28186
28574
|
switch (type) {
|
|
28187
28575
|
case "meta":
|
|
28188
28576
|
case "title":
|
|
@@ -28213,7 +28601,8 @@ var suspendedState = null;
|
|
|
28213
28601
|
function noop() {
|
|
28214
28602
|
}
|
|
28215
28603
|
function suspendResource(hoistableRoot, resource, props) {
|
|
28216
|
-
if (null === suspendedState)
|
|
28604
|
+
if (null === suspendedState)
|
|
28605
|
+
throw Error(formatProdErrorMessage(475));
|
|
28217
28606
|
var state = suspendedState;
|
|
28218
28607
|
if ("stylesheet" === resource.type && ("string" !== typeof props.media || false !== matchMedia(props.media).matches) && 0 === (resource.state.loading & 4)) {
|
|
28219
28608
|
if (null === resource.instance) {
|
|
@@ -28247,7 +28636,8 @@ function suspendResource(hoistableRoot, resource, props) {
|
|
|
28247
28636
|
}
|
|
28248
28637
|
}
|
|
28249
28638
|
function waitForCommitToBeReady() {
|
|
28250
|
-
if (null === suspendedState)
|
|
28639
|
+
if (null === suspendedState)
|
|
28640
|
+
throw Error(formatProdErrorMessage(475));
|
|
28251
28641
|
var state = suspendedState;
|
|
28252
28642
|
state.stylesheets && 0 === state.count && insertSuspendedStylesheets(state, state.stylesheets);
|
|
28253
28643
|
return 0 < state.count ? function(commit) {
|
|
@@ -28269,7 +28659,8 @@ function waitForCommitToBeReady() {
|
|
|
28269
28659
|
function onUnsuspend() {
|
|
28270
28660
|
this.count--;
|
|
28271
28661
|
if (0 === this.count) {
|
|
28272
|
-
if (this.stylesheets)
|
|
28662
|
+
if (this.stylesheets)
|
|
28663
|
+
insertSuspendedStylesheets(this, this.stylesheets);
|
|
28273
28664
|
else if (this.unsuspend) {
|
|
28274
28665
|
var unsuspend = this.unsuspend;
|
|
28275
28666
|
this.unsuspend = null;
|
|
@@ -28285,7 +28676,8 @@ function insertSuspendedStylesheets(state, resources) {
|
|
|
28285
28676
|
function insertStylesheetIntoRoot(root2, resource) {
|
|
28286
28677
|
if (!(resource.state.loading & 4)) {
|
|
28287
28678
|
var precedences = precedencesByRoot.get(root2);
|
|
28288
|
-
if (precedences)
|
|
28679
|
+
if (precedences)
|
|
28680
|
+
var last = precedences.get(null);
|
|
28289
28681
|
else {
|
|
28290
28682
|
precedences = /* @__PURE__ */ new Map();
|
|
28291
28683
|
precedencesByRoot.set(root2, precedences);
|
|
@@ -28368,7 +28760,8 @@ function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydration
|
|
|
28368
28760
|
return containerInfo;
|
|
28369
28761
|
}
|
|
28370
28762
|
function getContextForSubtree(parentComponent) {
|
|
28371
|
-
if (!parentComponent)
|
|
28763
|
+
if (!parentComponent)
|
|
28764
|
+
return emptyContextObject;
|
|
28372
28765
|
parentComponent = emptyContextObject;
|
|
28373
28766
|
return parentComponent;
|
|
28374
28767
|
}
|
|
@@ -28473,7 +28866,8 @@ function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEv
|
|
|
28473
28866
|
return_targetInst,
|
|
28474
28867
|
targetContainer
|
|
28475
28868
|
);
|
|
28476
|
-
if (fiber === blockedOn)
|
|
28869
|
+
if (fiber === blockedOn)
|
|
28870
|
+
break;
|
|
28477
28871
|
blockedOn = fiber;
|
|
28478
28872
|
}
|
|
28479
28873
|
null !== blockedOn && nativeEvent.stopPropagation();
|
|
@@ -28497,18 +28891,21 @@ function findInstanceBlockingTarget(targetNode) {
|
|
|
28497
28891
|
targetNode = getClosestInstanceFromNode(targetNode);
|
|
28498
28892
|
if (null !== targetNode) {
|
|
28499
28893
|
var nearestMounted = getNearestMountedFiber(targetNode);
|
|
28500
|
-
if (null === nearestMounted)
|
|
28894
|
+
if (null === nearestMounted)
|
|
28895
|
+
targetNode = null;
|
|
28501
28896
|
else {
|
|
28502
28897
|
var tag = nearestMounted.tag;
|
|
28503
28898
|
if (13 === tag) {
|
|
28504
28899
|
targetNode = getSuspenseInstanceFromFiber(nearestMounted);
|
|
28505
|
-
if (null !== targetNode)
|
|
28900
|
+
if (null !== targetNode)
|
|
28901
|
+
return targetNode;
|
|
28506
28902
|
targetNode = null;
|
|
28507
28903
|
} else if (3 === tag) {
|
|
28508
28904
|
if (nearestMounted.stateNode.current.memoizedState.isDehydrated)
|
|
28509
28905
|
return 3 === nearestMounted.tag ? nearestMounted.stateNode.containerInfo : null;
|
|
28510
28906
|
targetNode = null;
|
|
28511
|
-
} else
|
|
28907
|
+
} else
|
|
28908
|
+
nearestMounted !== targetNode && (targetNode = null);
|
|
28512
28909
|
}
|
|
28513
28910
|
}
|
|
28514
28911
|
return_targetInst = targetNode;
|
|
@@ -28733,7 +29130,8 @@ function attemptExplicitHydrationTarget(queuedTarget) {
|
|
|
28733
29130
|
queuedTarget.blockedOn = null;
|
|
28734
29131
|
}
|
|
28735
29132
|
function attemptReplayContinuousQueuedEvent(queuedEvent) {
|
|
28736
|
-
if (null !== queuedEvent.blockedOn)
|
|
29133
|
+
if (null !== queuedEvent.blockedOn)
|
|
29134
|
+
return false;
|
|
28737
29135
|
for (var targetContainers = queuedEvent.targetContainers; 0 < targetContainers.length; ) {
|
|
28738
29136
|
var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent);
|
|
28739
29137
|
if (null === nextBlockedOn) {
|
|
@@ -28779,7 +29177,8 @@ function scheduleReplayQueueIfNeeded(formReplayingQueue) {
|
|
|
28779
29177
|
if ("function" !== typeof submitterOrAction)
|
|
28780
29178
|
if (null === findInstanceBlockingTarget(submitterOrAction || form))
|
|
28781
29179
|
continue;
|
|
28782
|
-
else
|
|
29180
|
+
else
|
|
29181
|
+
break;
|
|
28783
29182
|
var formInst = getInstanceFromNode(form);
|
|
28784
29183
|
null !== formInst && (formReplayingQueue.splice(i2, 3), i2 -= 3, startHostTransition(
|
|
28785
29184
|
formInst,
|
|
@@ -28823,9 +29222,11 @@ function retryIfBlockedOn(unblocked) {
|
|
|
28823
29222
|
if (form = submitterOrAction, formProps = submitterOrAction[internalPropsKey] || null)
|
|
28824
29223
|
action = formProps.formAction;
|
|
28825
29224
|
else {
|
|
28826
|
-
if (null !== findInstanceBlockingTarget(form))
|
|
29225
|
+
if (null !== findInstanceBlockingTarget(form))
|
|
29226
|
+
continue;
|
|
28827
29227
|
}
|
|
28828
|
-
else
|
|
29228
|
+
else
|
|
29229
|
+
action = formProps.action;
|
|
28829
29230
|
"function" === typeof action ? i2[queuedTarget + 1] = action : (i2.splice(queuedTarget, 3), queuedTarget -= 3);
|
|
28830
29231
|
scheduleReplayQueueIfNeeded(i2);
|
|
28831
29232
|
}
|
|
@@ -28836,7 +29237,8 @@ function ReactDOMRoot(internalRoot) {
|
|
|
28836
29237
|
}
|
|
28837
29238
|
ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(children) {
|
|
28838
29239
|
var root2 = this._internalRoot;
|
|
28839
|
-
if (null === root2)
|
|
29240
|
+
if (null === root2)
|
|
29241
|
+
throw Error(formatProdErrorMessage(409));
|
|
28840
29242
|
var current = root2.current, lane = requestUpdateLane();
|
|
28841
29243
|
updateContainerImpl(current, lane, children, root2, null, null);
|
|
28842
29244
|
};
|
|
@@ -28857,7 +29259,8 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function(target) {
|
|
|
28857
29259
|
if (target) {
|
|
28858
29260
|
var updatePriority = resolveUpdatePriority();
|
|
28859
29261
|
target = { blockedOn: null, target, priority: updatePriority };
|
|
28860
|
-
for (var i2 = 0; i2 < queuedExplicitHydrationTargets.length && 0 !== updatePriority && updatePriority < queuedExplicitHydrationTargets[i2].priority; i2++)
|
|
29262
|
+
for (var i2 = 0; i2 < queuedExplicitHydrationTargets.length && 0 !== updatePriority && updatePriority < queuedExplicitHydrationTargets[i2].priority; i2++)
|
|
29263
|
+
;
|
|
28861
29264
|
queuedExplicitHydrationTargets.splice(i2, 0, target);
|
|
28862
29265
|
0 === i2 && attemptExplicitHydrationTarget(target);
|
|
28863
29266
|
}
|
|
@@ -28902,7 +29305,8 @@ if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
|
28902
29305
|
}
|
|
28903
29306
|
}
|
|
28904
29307
|
reactDomClient_production.createRoot = function(container, options) {
|
|
28905
|
-
if (!isValidContainer(container))
|
|
29308
|
+
if (!isValidContainer(container))
|
|
29309
|
+
throw Error(formatProdErrorMessage(299));
|
|
28906
29310
|
var isStrictMode = false, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError, transitionCallbacks = null;
|
|
28907
29311
|
null !== options && void 0 !== options && (true === options.unstable_strictMode && (isStrictMode = true), void 0 !== options.identifierPrefix && (identifierPrefix = options.identifierPrefix), void 0 !== options.onUncaughtError && (onUncaughtError = options.onUncaughtError), void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError), void 0 !== options.onRecoverableError && (onRecoverableError = options.onRecoverableError), void 0 !== options.unstable_transitionCallbacks && (transitionCallbacks = options.unstable_transitionCallbacks));
|
|
28908
29312
|
options = createFiberRoot(
|
|
@@ -28924,7 +29328,8 @@ reactDomClient_production.createRoot = function(container, options) {
|
|
|
28924
29328
|
return new ReactDOMRoot(options);
|
|
28925
29329
|
};
|
|
28926
29330
|
reactDomClient_production.hydrateRoot = function(container, initialChildren, options) {
|
|
28927
|
-
if (!isValidContainer(container))
|
|
29331
|
+
if (!isValidContainer(container))
|
|
29332
|
+
throw Error(formatProdErrorMessage(299));
|
|
28928
29333
|
var isStrictMode = false, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError, transitionCallbacks = null, formState = null;
|
|
28929
29334
|
null !== options && void 0 !== options && (true === options.unstable_strictMode && (isStrictMode = true), void 0 !== options.identifierPrefix && (identifierPrefix = options.identifierPrefix), void 0 !== options.onUncaughtError && (onUncaughtError = options.onUncaughtError), void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError), void 0 !== options.onRecoverableError && (onRecoverableError = options.onRecoverableError), void 0 !== options.unstable_transitionCallbacks && (transitionCallbacks = options.unstable_transitionCallbacks), void 0 !== options.formState && (formState = options.formState));
|
|
28930
29335
|
initialChildren = createFiberRoot(
|
|
@@ -28986,7 +29391,8 @@ function createSlotChildren(block) {
|
|
|
28986
29391
|
const ReactSlotWrapper = ({ block }) => {
|
|
28987
29392
|
const containerRef = React$2.useRef(null);
|
|
28988
29393
|
React$2.useEffect(() => {
|
|
28989
|
-
if (!containerRef.current)
|
|
29394
|
+
if (!containerRef.current)
|
|
29395
|
+
return;
|
|
28990
29396
|
const children = createSlotChildren(block);
|
|
28991
29397
|
containerRef.current.replaceChildren(...children);
|
|
28992
29398
|
}, [block]);
|
|
@@ -29027,7 +29433,8 @@ function useBridge$1(options) {
|
|
|
29027
29433
|
callbackRef.current = options.onPresetChange;
|
|
29028
29434
|
const isEditorMode = blockId !== null;
|
|
29029
29435
|
reactExports.useEffect(() => {
|
|
29030
|
-
if (!isEditorMode || !blockId)
|
|
29436
|
+
if (!isEditorMode || !blockId)
|
|
29437
|
+
return;
|
|
29031
29438
|
return editorBridge.onBlockPresetChange(blockId, (preset) => {
|
|
29032
29439
|
callbackRef.current(preset);
|
|
29033
29440
|
}).unsubscribe;
|
|
@@ -29309,7 +29716,8 @@ const ReactTestBlock = defineBlock("React Test", {
|
|
|
29309
29716
|
});
|
|
29310
29717
|
var n, l$1, u$1, i$1, r$1, o$1, e$1, f$1, c$1, s$1, a$1, h$1, p$1 = {}, v$1 = [], y$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, w$1 = Array.isArray;
|
|
29311
29718
|
function d$1(n2, l2) {
|
|
29312
|
-
for (var u2 in l2)
|
|
29719
|
+
for (var u2 in l2)
|
|
29720
|
+
n2[u2] = l2[u2];
|
|
29313
29721
|
return n2;
|
|
29314
29722
|
}
|
|
29315
29723
|
function g(n2) {
|
|
@@ -29317,8 +29725,11 @@ function g(n2) {
|
|
|
29317
29725
|
}
|
|
29318
29726
|
function _(l2, u2, t2) {
|
|
29319
29727
|
var i2, r2, o2, e2 = {};
|
|
29320
|
-
for (o2 in u2)
|
|
29321
|
-
|
|
29728
|
+
for (o2 in u2)
|
|
29729
|
+
"key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : e2[o2] = u2[o2];
|
|
29730
|
+
if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps)
|
|
29731
|
+
for (o2 in l2.defaultProps)
|
|
29732
|
+
void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
|
|
29322
29733
|
return m$1(l2, e2, i2, r2, null);
|
|
29323
29734
|
}
|
|
29324
29735
|
function m$1(n2, t2, i2, r2, o2) {
|
|
@@ -29332,17 +29743,21 @@ function x$1(n2, l2) {
|
|
|
29332
29743
|
this.props = n2, this.context = l2;
|
|
29333
29744
|
}
|
|
29334
29745
|
function S(n2, l2) {
|
|
29335
|
-
if (null == l2)
|
|
29336
|
-
|
|
29746
|
+
if (null == l2)
|
|
29747
|
+
return n2.__ ? S(n2.__, n2.__i + 1) : null;
|
|
29748
|
+
for (var u2; l2 < n2.__k.length; l2++)
|
|
29749
|
+
if (null != (u2 = n2.__k[l2]) && null != u2.__e)
|
|
29750
|
+
return u2.__e;
|
|
29337
29751
|
return "function" == typeof n2.type ? S(n2) : null;
|
|
29338
29752
|
}
|
|
29339
29753
|
function C$1(n2) {
|
|
29340
29754
|
var l2, u2;
|
|
29341
29755
|
if (null != (n2 = n2.__) && null != n2.__c) {
|
|
29342
|
-
for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++)
|
|
29343
|
-
|
|
29344
|
-
|
|
29345
|
-
|
|
29756
|
+
for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++)
|
|
29757
|
+
if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
|
|
29758
|
+
n2.__e = n2.__c.base = u2.__e;
|
|
29759
|
+
break;
|
|
29760
|
+
}
|
|
29346
29761
|
return C$1(n2);
|
|
29347
29762
|
}
|
|
29348
29763
|
}
|
|
@@ -29350,24 +29765,30 @@ function M2(n2) {
|
|
|
29350
29765
|
(!n2.__d && (n2.__d = true) && i$1.push(n2) && !$.__r++ || r$1 != l$1.debounceRendering) && ((r$1 = l$1.debounceRendering) || o$1)($);
|
|
29351
29766
|
}
|
|
29352
29767
|
function $() {
|
|
29353
|
-
for (var n2, u2, t2, r2, o2, f2, c2, s2 = 1; i$1.length; )
|
|
29768
|
+
for (var n2, u2, t2, r2, o2, f2, c2, s2 = 1; i$1.length; )
|
|
29769
|
+
i$1.length > s2 && i$1.sort(e$1), n2 = i$1.shift(), s2 = i$1.length, n2.__d && (t2 = void 0, o2 = (r2 = (u2 = n2).__v).__e, f2 = [], c2 = [], u2.__P && ((t2 = d$1({}, r2)).__v = r2.__v + 1, l$1.vnode && l$1.vnode(t2), O(u2.__P, t2, r2, u2.__n, u2.__P.namespaceURI, 32 & r2.__u ? [o2] : null, f2, null == o2 ? S(r2) : o2, !!(32 & r2.__u), c2), t2.__v = r2.__v, t2.__.__k[t2.__i] = t2, z$1(f2, t2, c2), t2.__e != o2 && C$1(t2)));
|
|
29354
29770
|
$.__r = 0;
|
|
29355
29771
|
}
|
|
29356
29772
|
function I2(n2, l2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
|
29357
29773
|
var a2, h2, y2, w2, d2, g2, _2 = t2 && t2.__k || v$1, m2 = l2.length;
|
|
29358
|
-
for (f2 = P(u2, l2, _2, f2, m2), a2 = 0; a2 < m2; a2++)
|
|
29774
|
+
for (f2 = P(u2, l2, _2, f2, m2), a2 = 0; a2 < m2; a2++)
|
|
29775
|
+
null != (y2 = u2.__k[a2]) && (h2 = -1 == y2.__i ? p$1 : _2[y2.__i] || p$1, y2.__i = a2, g2 = O(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), w2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && q(h2.ref, null, y2), s2.push(y2.ref, y2.__c || w2, y2)), null == d2 && null != w2 && (d2 = w2), 4 & y2.__u || h2.__k === y2.__k ? f2 = A$1(y2, f2, n2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : w2 && (f2 = w2.nextSibling), y2.__u &= -7);
|
|
29359
29776
|
return u2.__e = d2, f2;
|
|
29360
29777
|
}
|
|
29361
29778
|
function P(n2, l2, u2, t2, i2) {
|
|
29362
29779
|
var r2, o2, e2, f2, c2, s2 = u2.length, a2 = s2, h2 = 0;
|
|
29363
|
-
for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++)
|
|
29364
|
-
|
|
29780
|
+
for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++)
|
|
29781
|
+
null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? (f2 = r2 + h2, (o2 = n2.__k[r2] = "string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? m$1(null, o2, null, null, null) : w$1(o2) ? m$1(k$1, { children: o2 }, null, null, null) : null == o2.constructor && o2.__b > 0 ? m$1(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : o2).__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 != (c2 = o2.__i = L2(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null == e2.__v ? (-1 == c2 && (i2 > s2 ? h2-- : i2 < s2 && h2++), "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
|
|
29782
|
+
if (a2)
|
|
29783
|
+
for (r2 = 0; r2 < s2; r2++)
|
|
29784
|
+
null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), B$1(e2, e2));
|
|
29365
29785
|
return t2;
|
|
29366
29786
|
}
|
|
29367
29787
|
function A$1(n2, l2, u2) {
|
|
29368
29788
|
var t2, i2;
|
|
29369
29789
|
if ("function" == typeof n2.type) {
|
|
29370
|
-
for (t2 = n2.__k, i2 = 0; t2 && i2 < t2.length; i2++)
|
|
29790
|
+
for (t2 = n2.__k, i2 = 0; t2 && i2 < t2.length; i2++)
|
|
29791
|
+
t2[i2] && (t2[i2].__ = n2, l2 = A$1(t2[i2], l2, u2));
|
|
29371
29792
|
return l2;
|
|
29372
29793
|
}
|
|
29373
29794
|
n2.__e != l2 && (l2 && n2.type && !u2.contains(l2) && (l2 = S(n2)), u2.insertBefore(n2.__e, l2 || null), l2 = n2.__e);
|
|
@@ -29378,17 +29799,21 @@ function A$1(n2, l2, u2) {
|
|
|
29378
29799
|
}
|
|
29379
29800
|
function L2(n2, l2, u2, t2) {
|
|
29380
29801
|
var i2, r2, o2 = n2.key, e2 = n2.type, f2 = l2[u2];
|
|
29381
|
-
if (null === f2 && null == n2.key || f2 && o2 == f2.key && e2 == f2.type && 0 == (2 & f2.__u))
|
|
29382
|
-
|
|
29383
|
-
|
|
29384
|
-
|
|
29385
|
-
i2
|
|
29386
|
-
|
|
29387
|
-
|
|
29388
|
-
|
|
29389
|
-
|
|
29802
|
+
if (null === f2 && null == n2.key || f2 && o2 == f2.key && e2 == f2.type && 0 == (2 & f2.__u))
|
|
29803
|
+
return u2;
|
|
29804
|
+
if (t2 > (null != f2 && 0 == (2 & f2.__u) ? 1 : 0))
|
|
29805
|
+
for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; ) {
|
|
29806
|
+
if (i2 >= 0) {
|
|
29807
|
+
if ((f2 = l2[i2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type)
|
|
29808
|
+
return i2;
|
|
29809
|
+
i2--;
|
|
29810
|
+
}
|
|
29811
|
+
if (r2 < l2.length) {
|
|
29812
|
+
if ((f2 = l2[r2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type)
|
|
29813
|
+
return r2;
|
|
29814
|
+
r2++;
|
|
29815
|
+
}
|
|
29390
29816
|
}
|
|
29391
|
-
}
|
|
29392
29817
|
return -1;
|
|
29393
29818
|
}
|
|
29394
29819
|
function T$1(n2, l2, u2) {
|
|
@@ -29396,70 +29821,96 @@ function T$1(n2, l2, u2) {
|
|
|
29396
29821
|
}
|
|
29397
29822
|
function j$1(n2, l2, u2, t2, i2) {
|
|
29398
29823
|
var r2, o2;
|
|
29399
|
-
n:
|
|
29400
|
-
|
|
29401
|
-
|
|
29402
|
-
|
|
29403
|
-
|
|
29404
|
-
|
|
29405
|
-
|
|
29406
|
-
|
|
29407
|
-
|
|
29408
|
-
|
|
29409
|
-
|
|
29410
|
-
|
|
29824
|
+
n:
|
|
29825
|
+
if ("style" == l2)
|
|
29826
|
+
if ("string" == typeof u2)
|
|
29827
|
+
n2.style.cssText = u2;
|
|
29828
|
+
else {
|
|
29829
|
+
if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2)
|
|
29830
|
+
for (l2 in t2)
|
|
29831
|
+
u2 && l2 in u2 || T$1(n2.style, l2, "");
|
|
29832
|
+
if (u2)
|
|
29833
|
+
for (l2 in u2)
|
|
29834
|
+
t2 && u2[l2] == t2[l2] || T$1(n2.style, l2, u2[l2]);
|
|
29835
|
+
}
|
|
29836
|
+
else if ("o" == l2[0] && "n" == l2[1])
|
|
29837
|
+
r2 = l2 != (l2 = l2.replace(f$1, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$1, n2.addEventListener(l2, r2 ? a$1 : s$1, r2)) : n2.removeEventListener(l2, r2 ? a$1 : s$1, r2);
|
|
29838
|
+
else {
|
|
29839
|
+
if ("http://www.w3.org/2000/svg" == i2)
|
|
29840
|
+
l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
29841
|
+
else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2)
|
|
29842
|
+
try {
|
|
29843
|
+
n2[l2] = null == u2 ? "" : u2;
|
|
29844
|
+
break n;
|
|
29845
|
+
} catch (n3) {
|
|
29846
|
+
}
|
|
29847
|
+
"function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
|
|
29411
29848
|
}
|
|
29412
|
-
"function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
|
|
29413
|
-
}
|
|
29414
29849
|
}
|
|
29415
29850
|
function F(n2) {
|
|
29416
29851
|
return function(u2) {
|
|
29417
29852
|
if (this.l) {
|
|
29418
29853
|
var t2 = this.l[u2.type + n2];
|
|
29419
|
-
if (null == u2.t)
|
|
29420
|
-
|
|
29854
|
+
if (null == u2.t)
|
|
29855
|
+
u2.t = c$1++;
|
|
29856
|
+
else if (u2.t < t2.u)
|
|
29857
|
+
return;
|
|
29421
29858
|
return t2(l$1.event ? l$1.event(u2) : u2);
|
|
29422
29859
|
}
|
|
29423
29860
|
};
|
|
29424
29861
|
}
|
|
29425
29862
|
function O(n2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
|
29426
29863
|
var a2, h2, p2, v2, y2, _2, m2, b, S2, C2, M3, $2, P2, A2, H2, L3, T2, j2 = u2.type;
|
|
29427
|
-
if (null != u2.constructor)
|
|
29864
|
+
if (null != u2.constructor)
|
|
29865
|
+
return null;
|
|
29428
29866
|
128 & t2.__u && (c2 = !!(32 & t2.__u), o2 = [f2 = u2.__e = t2.__e]), (a2 = l$1.__b) && a2(u2);
|
|
29429
|
-
n:
|
|
29430
|
-
if (
|
|
29431
|
-
|
|
29432
|
-
|
|
29433
|
-
|
|
29434
|
-
|
|
29435
|
-
|
|
29436
|
-
|
|
29437
|
-
|
|
29438
|
-
|
|
29439
|
-
|
|
29440
|
-
|
|
29441
|
-
|
|
29442
|
-
|
|
29443
|
-
|
|
29444
|
-
|
|
29445
|
-
|
|
29446
|
-
|
|
29447
|
-
|
|
29448
|
-
|
|
29449
|
-
|
|
29450
|
-
|
|
29451
|
-
|
|
29452
|
-
|
|
29453
|
-
|
|
29454
|
-
|
|
29455
|
-
|
|
29456
|
-
|
|
29457
|
-
|
|
29458
|
-
|
|
29867
|
+
n:
|
|
29868
|
+
if ("function" == typeof j2)
|
|
29869
|
+
try {
|
|
29870
|
+
if (b = u2.props, S2 = "prototype" in j2 && j2.prototype.render, C2 = (a2 = j2.contextType) && i2[a2.__c], M3 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? m2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (S2 ? u2.__c = h2 = new j2(b, M3) : (u2.__c = h2 = new x$1(b, M3), h2.constructor = j2, h2.render = D$1), C2 && C2.sub(h2), h2.props = b, h2.state || (h2.state = {}), h2.context = M3, h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), S2 && null == h2.__s && (h2.__s = h2.state), S2 && null != j2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, j2.getDerivedStateFromProps(b, h2.__s))), v2 = h2.props, y2 = h2.state, h2.__v = u2, p2)
|
|
29871
|
+
S2 && null == j2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), S2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
|
|
29872
|
+
else {
|
|
29873
|
+
if (S2 && null == j2.getDerivedStateFromProps && b !== v2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(b, M3), !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(b, h2.__s, M3) || u2.__v == t2.__v) {
|
|
29874
|
+
for (u2.__v != t2.__v && (h2.props = b, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
|
|
29875
|
+
n3 && (n3.__ = u2);
|
|
29876
|
+
}), $2 = 0; $2 < h2._sb.length; $2++)
|
|
29877
|
+
h2.__h.push(h2._sb[$2]);
|
|
29878
|
+
h2._sb = [], h2.__h.length && e2.push(h2);
|
|
29879
|
+
break n;
|
|
29880
|
+
}
|
|
29881
|
+
null != h2.componentWillUpdate && h2.componentWillUpdate(b, h2.__s, M3), S2 && null != h2.componentDidUpdate && h2.__h.push(function() {
|
|
29882
|
+
h2.componentDidUpdate(v2, y2, _2);
|
|
29883
|
+
});
|
|
29884
|
+
}
|
|
29885
|
+
if (h2.context = M3, h2.props = b, h2.__P = n2, h2.__e = false, P2 = l$1.__r, A2 = 0, S2) {
|
|
29886
|
+
for (h2.state = h2.__s, h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++)
|
|
29887
|
+
h2.__h.push(h2._sb[H2]);
|
|
29888
|
+
h2._sb = [];
|
|
29889
|
+
} else
|
|
29890
|
+
do {
|
|
29891
|
+
h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
|
|
29892
|
+
} while (h2.__d && ++A2 < 25);
|
|
29893
|
+
h2.state = h2.__s, null != h2.getChildContext && (i2 = d$1(d$1({}, i2), h2.getChildContext())), S2 && !p2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(v2, y2)), L3 = a2, null != a2 && a2.type === k$1 && null == a2.key && (L3 = N2(a2.props.children)), f2 = I2(n2, w$1(L3) ? L3 : [L3], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), m2 && (h2.__E = h2.__ = null);
|
|
29894
|
+
} catch (n3) {
|
|
29895
|
+
if (u2.__v = null, c2 || null != o2)
|
|
29896
|
+
if (n3.then) {
|
|
29897
|
+
for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; )
|
|
29898
|
+
f2 = f2.nextSibling;
|
|
29899
|
+
o2[o2.indexOf(f2)] = null, u2.__e = f2;
|
|
29900
|
+
} else
|
|
29901
|
+
for (T2 = o2.length; T2--; )
|
|
29902
|
+
g(o2[T2]);
|
|
29903
|
+
else
|
|
29904
|
+
u2.__e = t2.__e, u2.__k = t2.__k;
|
|
29905
|
+
l$1.__e(n3, u2, t2);
|
|
29906
|
+
}
|
|
29907
|
+
else
|
|
29908
|
+
null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = V(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
|
|
29459
29909
|
return (a2 = l$1.diffed) && a2(u2), 128 & u2.__u ? void 0 : f2;
|
|
29460
29910
|
}
|
|
29461
29911
|
function z$1(n2, u2, t2) {
|
|
29462
|
-
for (var i2 = 0; i2 < t2.length; i2++)
|
|
29912
|
+
for (var i2 = 0; i2 < t2.length; i2++)
|
|
29913
|
+
q(t2[i2], t2[++i2], t2[++i2]);
|
|
29463
29914
|
l$1.__c && l$1.__c(u2, n2), n2.some(function(u3) {
|
|
29464
29915
|
try {
|
|
29465
29916
|
n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
|
|
@@ -29476,27 +29927,40 @@ function N2(n2) {
|
|
|
29476
29927
|
function V(u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
|
29477
29928
|
var a2, h2, v2, y2, d2, _2, m2, b = i2.props, k3 = t2.props, x2 = t2.type;
|
|
29478
29929
|
if ("svg" == x2 ? o2 = "http://www.w3.org/2000/svg" : "math" == x2 ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), null != e2) {
|
|
29479
|
-
for (a2 = 0; a2 < e2.length; a2++)
|
|
29480
|
-
|
|
29481
|
-
|
|
29482
|
-
|
|
29930
|
+
for (a2 = 0; a2 < e2.length; a2++)
|
|
29931
|
+
if ((d2 = e2[a2]) && "setAttribute" in d2 == !!x2 && (x2 ? d2.localName == x2 : 3 == d2.nodeType)) {
|
|
29932
|
+
u2 = d2, e2[a2] = null;
|
|
29933
|
+
break;
|
|
29934
|
+
}
|
|
29483
29935
|
}
|
|
29484
29936
|
if (null == u2) {
|
|
29485
|
-
if (null == x2)
|
|
29937
|
+
if (null == x2)
|
|
29938
|
+
return document.createTextNode(k3);
|
|
29486
29939
|
u2 = document.createElementNS(o2, x2, k3.is && k3), c2 && (l$1.__m && l$1.__m(t2, e2), c2 = false), e2 = null;
|
|
29487
29940
|
}
|
|
29488
|
-
if (null == x2)
|
|
29941
|
+
if (null == x2)
|
|
29942
|
+
b === k3 || c2 && u2.data == k3 || (u2.data = k3);
|
|
29489
29943
|
else {
|
|
29490
|
-
if (e2 = e2 && n.call(u2.childNodes), b = i2.props || p$1, !c2 && null != e2)
|
|
29491
|
-
|
|
29492
|
-
|
|
29493
|
-
|
|
29494
|
-
if (
|
|
29495
|
-
|
|
29496
|
-
|
|
29497
|
-
|
|
29498
|
-
|
|
29499
|
-
|
|
29944
|
+
if (e2 = e2 && n.call(u2.childNodes), b = i2.props || p$1, !c2 && null != e2)
|
|
29945
|
+
for (b = {}, a2 = 0; a2 < u2.attributes.length; a2++)
|
|
29946
|
+
b[(d2 = u2.attributes[a2]).name] = d2.value;
|
|
29947
|
+
for (a2 in b)
|
|
29948
|
+
if (d2 = b[a2], "children" == a2)
|
|
29949
|
+
;
|
|
29950
|
+
else if ("dangerouslySetInnerHTML" == a2)
|
|
29951
|
+
v2 = d2;
|
|
29952
|
+
else if (!(a2 in k3)) {
|
|
29953
|
+
if ("value" == a2 && "defaultValue" in k3 || "checked" == a2 && "defaultChecked" in k3)
|
|
29954
|
+
continue;
|
|
29955
|
+
j$1(u2, a2, null, d2, o2);
|
|
29956
|
+
}
|
|
29957
|
+
for (a2 in k3)
|
|
29958
|
+
d2 = k3[a2], "children" == a2 ? y2 = d2 : "dangerouslySetInnerHTML" == a2 ? h2 = d2 : "value" == a2 ? _2 = d2 : "checked" == a2 ? m2 = d2 : c2 && "function" != typeof d2 || b[a2] === d2 || j$1(u2, a2, d2, b[a2], o2);
|
|
29959
|
+
if (h2)
|
|
29960
|
+
c2 || v2 && (h2.__html == v2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
|
|
29961
|
+
else if (v2 && (u2.innerHTML = ""), I2("template" == t2.type ? u2.content : u2, w$1(y2) ? y2 : [y2], t2, i2, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), null != e2)
|
|
29962
|
+
for (a2 = e2.length; a2--; )
|
|
29963
|
+
g(e2[a2]);
|
|
29500
29964
|
c2 || (a2 = "value", "progress" == x2 && null == _2 ? u2.removeAttribute("value") : null != _2 && (_2 !== u2[a2] || "progress" == x2 && !_2 || "option" == x2 && _2 != b[a2]) && j$1(u2, a2, _2, b[a2], o2), a2 = "checked", null != m2 && m2 != u2[a2] && j$1(u2, a2, m2, b[a2], o2));
|
|
29501
29965
|
}
|
|
29502
29966
|
return u2;
|
|
@@ -29506,7 +29970,8 @@ function q(n2, u2, t2) {
|
|
|
29506
29970
|
if ("function" == typeof n2) {
|
|
29507
29971
|
var i2 = "function" == typeof n2.__u;
|
|
29508
29972
|
i2 && n2.__u(), i2 && null == u2 || (n2.__u = n2(u2));
|
|
29509
|
-
} else
|
|
29973
|
+
} else
|
|
29974
|
+
n2.current = u2;
|
|
29510
29975
|
} catch (n3) {
|
|
29511
29976
|
l$1.__e(n3, t2);
|
|
29512
29977
|
}
|
|
@@ -29514,14 +29979,17 @@ function q(n2, u2, t2) {
|
|
|
29514
29979
|
function B$1(n2, u2, t2) {
|
|
29515
29980
|
var i2, r2;
|
|
29516
29981
|
if (l$1.unmount && l$1.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current != n2.__e || q(i2, null, u2)), null != (i2 = n2.__c)) {
|
|
29517
|
-
if (i2.componentWillUnmount)
|
|
29518
|
-
|
|
29519
|
-
|
|
29520
|
-
|
|
29521
|
-
|
|
29982
|
+
if (i2.componentWillUnmount)
|
|
29983
|
+
try {
|
|
29984
|
+
i2.componentWillUnmount();
|
|
29985
|
+
} catch (n3) {
|
|
29986
|
+
l$1.__e(n3, u2);
|
|
29987
|
+
}
|
|
29522
29988
|
i2.base = i2.__P = null;
|
|
29523
29989
|
}
|
|
29524
|
-
if (i2 = n2.__k)
|
|
29990
|
+
if (i2 = n2.__k)
|
|
29991
|
+
for (r2 = 0; r2 < i2.length; r2++)
|
|
29992
|
+
i2[r2] && B$1(i2[r2], u2, t2 || "function" != typeof n2.type);
|
|
29525
29993
|
t2 || g(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
|
|
29526
29994
|
}
|
|
29527
29995
|
function D$1(n2, l2, u2) {
|
|
@@ -29555,11 +30023,14 @@ function K(n2) {
|
|
|
29555
30023
|
}).contextType = l2, l2;
|
|
29556
30024
|
}
|
|
29557
30025
|
n = v$1.slice, l$1 = { __e: function(n2, l2, u2, t2) {
|
|
29558
|
-
for (var i2, r2, o2; l2 = l2.__; )
|
|
29559
|
-
if ((
|
|
29560
|
-
|
|
29561
|
-
|
|
29562
|
-
|
|
30026
|
+
for (var i2, r2, o2; l2 = l2.__; )
|
|
30027
|
+
if ((i2 = l2.__c) && !i2.__)
|
|
30028
|
+
try {
|
|
30029
|
+
if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2)
|
|
30030
|
+
return i2.__E = i2;
|
|
30031
|
+
} catch (l3) {
|
|
30032
|
+
n2 = l3;
|
|
30033
|
+
}
|
|
29563
30034
|
throw n2;
|
|
29564
30035
|
} }, u$1 = 0, x$1.prototype.setState = function(n2, l2) {
|
|
29565
30036
|
var u2;
|
|
@@ -29585,13 +30056,15 @@ function h(n2, u2, i2) {
|
|
|
29585
30056
|
t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
|
|
29586
30057
|
}], o2.__c = r, !r.__f)) {
|
|
29587
30058
|
var f2 = function(n3, t2, r2) {
|
|
29588
|
-
if (!o2.__c.__H)
|
|
30059
|
+
if (!o2.__c.__H)
|
|
30060
|
+
return true;
|
|
29589
30061
|
var u3 = o2.__c.__H.__.filter(function(n4) {
|
|
29590
30062
|
return !!n4.__c;
|
|
29591
30063
|
});
|
|
29592
30064
|
if (u3.every(function(n4) {
|
|
29593
30065
|
return !n4.__N;
|
|
29594
|
-
}))
|
|
30066
|
+
}))
|
|
30067
|
+
return !c2 || c2.call(this, n3, t2, r2);
|
|
29595
30068
|
var i3 = o2.__c.props !== n3;
|
|
29596
30069
|
return u3.forEach(function(n4) {
|
|
29597
30070
|
if (n4.__N) {
|
|
@@ -29630,11 +30103,13 @@ function x(n2) {
|
|
|
29630
30103
|
return i2.c = n2, u2 ? (null == i2.__ && (i2.__ = true, u2.sub(r)), u2.props.value) : n2.__;
|
|
29631
30104
|
}
|
|
29632
30105
|
function j() {
|
|
29633
|
-
for (var n2; n2 = f.shift(); )
|
|
29634
|
-
n2.
|
|
29635
|
-
|
|
29636
|
-
|
|
29637
|
-
|
|
30106
|
+
for (var n2; n2 = f.shift(); )
|
|
30107
|
+
if (n2.__P && n2.__H)
|
|
30108
|
+
try {
|
|
30109
|
+
n2.__H.__h.forEach(z2), n2.__H.__h.forEach(B), n2.__H.__h = [];
|
|
30110
|
+
} catch (t2) {
|
|
30111
|
+
n2.__H.__h = [], c.__e(t2, n2.__v);
|
|
30112
|
+
}
|
|
29638
30113
|
}
|
|
29639
30114
|
c.__b = function(n2) {
|
|
29640
30115
|
r = null, e && e(n2);
|
|
@@ -29761,7 +30236,8 @@ const PreactSlotWrapper = ({
|
|
|
29761
30236
|
}) => {
|
|
29762
30237
|
const containerRef = A(null);
|
|
29763
30238
|
y(() => {
|
|
29764
|
-
if (!containerRef.current)
|
|
30239
|
+
if (!containerRef.current)
|
|
30240
|
+
return;
|
|
29765
30241
|
const children = createSlotChildren(block);
|
|
29766
30242
|
containerRef.current.replaceChildren(...children);
|
|
29767
30243
|
}, [block]);
|
|
@@ -29803,7 +30279,8 @@ function useBridge(options) {
|
|
|
29803
30279
|
callbackRef.current = options.onPresetChange;
|
|
29804
30280
|
const isEditorMode = blockId !== null;
|
|
29805
30281
|
y(() => {
|
|
29806
|
-
if (!isEditorMode || !blockId)
|
|
30282
|
+
if (!isEditorMode || !blockId)
|
|
30283
|
+
return;
|
|
29807
30284
|
if (subscriptionMap.has(blockId)) {
|
|
29808
30285
|
subscriptionMap.get(blockId)();
|
|
29809
30286
|
subscriptionMap.delete(blockId);
|
|
@@ -31307,10 +31784,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31307
31784
|
return ((_a = resolvedProduct.value) == null ? void 0 : _a.imageUrl) ?? "";
|
|
31308
31785
|
});
|
|
31309
31786
|
const formattedPrice = computed(() => {
|
|
31310
|
-
if (!resolvedProduct.value)
|
|
31787
|
+
if (!resolvedProduct.value)
|
|
31788
|
+
return "";
|
|
31311
31789
|
const { price, currencyCode } = resolvedProduct.value;
|
|
31312
31790
|
const amount = Number(price);
|
|
31313
|
-
if (Number.isNaN(amount))
|
|
31791
|
+
if (Number.isNaN(amount))
|
|
31792
|
+
return "";
|
|
31314
31793
|
try {
|
|
31315
31794
|
return new Intl.NumberFormat(void 0, {
|
|
31316
31795
|
style: "currency",
|
|
@@ -31778,11 +32257,14 @@ const OfferFreeGiftActionBlock = defineBlock(
|
|
|
31778
32257
|
async function resolveSubscriptionId(subscriptionService, workflowState) {
|
|
31779
32258
|
var _a;
|
|
31780
32259
|
const fromUrl = subscriptionService.getCurrentSubscriptionId();
|
|
31781
|
-
if (fromUrl)
|
|
32260
|
+
if (fromUrl)
|
|
32261
|
+
return fromUrl;
|
|
31782
32262
|
const fromFlow = (_a = workflowState.value.flowParams) == null ? void 0 : _a.subscriptionId;
|
|
31783
|
-
if (typeof fromFlow === "string")
|
|
32263
|
+
if (typeof fromFlow === "string")
|
|
32264
|
+
return fromFlow;
|
|
31784
32265
|
const result = await subscriptionService.getDefaultSubscriptionId();
|
|
31785
|
-
if (result._tag === "Success" && result.data)
|
|
32266
|
+
if (result._tag === "Success" && result.data)
|
|
32267
|
+
return result.data;
|
|
31786
32268
|
return null;
|
|
31787
32269
|
}
|
|
31788
32270
|
const _hoisted_1$a = { class: "max-w-[500px] flex flex-col items-center gap-xl box-border" };
|
|
@@ -31819,7 +32301,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
31819
32301
|
const selectedPlanIndex = ref(0);
|
|
31820
32302
|
const isLoadingPlans = ref(true);
|
|
31821
32303
|
function formatPlanLabel(plan) {
|
|
31822
|
-
if (plan.name)
|
|
32304
|
+
if (plan.name)
|
|
32305
|
+
return plan.name;
|
|
31823
32306
|
const { intervalCount, interval } = plan.deliveryPolicy;
|
|
31824
32307
|
try {
|
|
31825
32308
|
const rtf = new Intl.RelativeTimeFormat("en");
|
|
@@ -31841,7 +32324,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
31841
32324
|
subscriptionService,
|
|
31842
32325
|
workflowService.state
|
|
31843
32326
|
);
|
|
31844
|
-
if (!subscriptionId)
|
|
32327
|
+
if (!subscriptionId)
|
|
32328
|
+
return;
|
|
31845
32329
|
const result = await subscriptionService.getAvailablePlans(subscriptionId);
|
|
31846
32330
|
if (result._tag === "Success" && result.data.length > 0) {
|
|
31847
32331
|
plans.value = result.data;
|
|
@@ -31853,7 +32337,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
31853
32337
|
});
|
|
31854
32338
|
function handleAccept() {
|
|
31855
32339
|
const plan = plans.value[selectedPlanIndex.value];
|
|
31856
|
-
if (!plan)
|
|
32340
|
+
if (!plan)
|
|
32341
|
+
return;
|
|
31857
32342
|
const { intervalCount, interval } = plan.deliveryPolicy;
|
|
31858
32343
|
workflowService.respond("accepted", {
|
|
31859
32344
|
intervalCount,
|
|
@@ -32234,7 +32719,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
32234
32719
|
const variantId = opt.productVariantId;
|
|
32235
32720
|
try {
|
|
32236
32721
|
const product = await productService.getByVariantId(variantId);
|
|
32237
|
-
if (!product)
|
|
32722
|
+
if (!product)
|
|
32723
|
+
return;
|
|
32238
32724
|
const variant = product.variants.items.find(
|
|
32239
32725
|
(v2) => v2.id === variantId
|
|
32240
32726
|
);
|
|
@@ -33281,7 +33767,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
33281
33767
|
const workflowService = useContext$2(WorkflowServiceContext);
|
|
33282
33768
|
const isLoading = computed(() => workflowService.isLoading.value);
|
|
33283
33769
|
const isVideo = computed(() => {
|
|
33284
|
-
if (props.mediaType)
|
|
33770
|
+
if (props.mediaType)
|
|
33771
|
+
return props.mediaType === "video";
|
|
33285
33772
|
const url = props.mediaUrl ?? "";
|
|
33286
33773
|
return /\.(mp4|webm|ogg)(\?|$)/i.test(url);
|
|
33287
33774
|
});
|
|
@@ -33297,7 +33784,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
33297
33784
|
const items = [];
|
|
33298
33785
|
for (let i2 = 0; i2 < count2; i2++) {
|
|
33299
33786
|
const val = props[benefitProps[i2]];
|
|
33300
|
-
if (val)
|
|
33787
|
+
if (val)
|
|
33788
|
+
items.push(val);
|
|
33301
33789
|
}
|
|
33302
33790
|
return items;
|
|
33303
33791
|
});
|
|
@@ -34127,7 +34615,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
34127
34615
|
const items = [];
|
|
34128
34616
|
for (let i2 = 0; i2 < count2; i2++) {
|
|
34129
34617
|
const val = props[benefitProps[i2]];
|
|
34130
|
-
if (val)
|
|
34618
|
+
if (val)
|
|
34619
|
+
items.push(val);
|
|
34131
34620
|
}
|
|
34132
34621
|
return items;
|
|
34133
34622
|
});
|
|
@@ -34516,8 +35005,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34516
35005
|
}
|
|
34517
35006
|
async function fetchProducts(query, cursor) {
|
|
34518
35007
|
const opts = {};
|
|
34519
|
-
if (query)
|
|
34520
|
-
|
|
35008
|
+
if (query)
|
|
35009
|
+
opts.query = query;
|
|
35010
|
+
if (cursor)
|
|
35011
|
+
opts.pagination = { after: cursor };
|
|
34521
35012
|
return productService.search(Object.keys(opts).length > 0 ? opts : void 0);
|
|
34522
35013
|
}
|
|
34523
35014
|
async function loadFirstPage(query) {
|
|
@@ -34533,7 +35024,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34533
35024
|
}
|
|
34534
35025
|
}
|
|
34535
35026
|
async function onLoadMore() {
|
|
34536
|
-
if (!hasNextPage.value || isLoadingMore.value)
|
|
35027
|
+
if (!hasNextPage.value || isLoadingMore.value)
|
|
35028
|
+
return;
|
|
34537
35029
|
isLoadingMore.value = true;
|
|
34538
35030
|
try {
|
|
34539
35031
|
const result = await fetchProducts(searchQuery.value, endCursor.value);
|
|
@@ -34554,7 +35046,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34554
35046
|
subscriptionService,
|
|
34555
35047
|
workflowService.state
|
|
34556
35048
|
);
|
|
34557
|
-
if (!subscriptionId)
|
|
35049
|
+
if (!subscriptionId)
|
|
35050
|
+
return;
|
|
34558
35051
|
const result = await subscriptionService.getById(subscriptionId);
|
|
34559
35052
|
if (result._tag === "Success" && result.data) {
|
|
34560
35053
|
subscriptionItems.value = result.data.items;
|