@brytdesigns/shopify-ajax-cart-api 1.0.5 → 1.0.7
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/effect/index.d.ts +366 -124
- package/dist/effect/schema.js +60 -12
- package/dist/effect/schema.js.map +1 -1
- package/dist/esm/index.js +191 -133
- package/dist/esm/index.js.map +1 -1
- package/dist/main/effect/schema.js +60 -12
- package/dist/main/effect/schema.js.map +1 -1
- package/dist/main/index.d.ts +710 -248
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -935,6 +935,7 @@ var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false
|
|
|
935
935
|
var make3 = (...elements) => elements;
|
|
936
936
|
|
|
937
937
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/Record.js
|
|
938
|
+
var empty = () => ({});
|
|
938
939
|
var fromEntries = Object.fromEntries;
|
|
939
940
|
var collect = /* @__PURE__ */ dual(2, (self, f) => {
|
|
940
941
|
const out = [];
|
|
@@ -953,6 +954,15 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
953
954
|
}
|
|
954
955
|
return out;
|
|
955
956
|
});
|
|
957
|
+
var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => {
|
|
958
|
+
const out = empty();
|
|
959
|
+
for (const key of keys(self)) {
|
|
960
|
+
if (predicate(self[key], key)) {
|
|
961
|
+
out[key] = self[key];
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
return out;
|
|
965
|
+
});
|
|
956
966
|
var keys = (self) => Object.keys(self);
|
|
957
967
|
|
|
958
968
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/Array.js
|
|
@@ -1062,7 +1072,7 @@ var unionWith = /* @__PURE__ */ dual(3, (self, that, isEquivalent) => {
|
|
|
1062
1072
|
return b;
|
|
1063
1073
|
});
|
|
1064
1074
|
var union = /* @__PURE__ */ dual(2, (self, that) => unionWith(self, that, _equivalence2));
|
|
1065
|
-
var
|
|
1075
|
+
var empty2 = () => [];
|
|
1066
1076
|
var of = (a) => [a];
|
|
1067
1077
|
var map4 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
|
|
1068
1078
|
var flatMap2 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
@@ -1090,7 +1100,7 @@ var filterMap2 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
1090
1100
|
}
|
|
1091
1101
|
return out;
|
|
1092
1102
|
});
|
|
1093
|
-
var
|
|
1103
|
+
var filter3 = /* @__PURE__ */ dual(2, (self, predicate) => {
|
|
1094
1104
|
const as6 = fromIterable(self);
|
|
1095
1105
|
const out = [];
|
|
1096
1106
|
for (let i = 0; i < as6.length; i++) {
|
|
@@ -1226,7 +1236,7 @@ var isChunk = (u) => hasProperty(u, TypeId3);
|
|
|
1226
1236
|
var _empty = /* @__PURE__ */ makeChunk({
|
|
1227
1237
|
_tag: "IEmpty"
|
|
1228
1238
|
});
|
|
1229
|
-
var
|
|
1239
|
+
var empty3 = () => _empty;
|
|
1230
1240
|
var make4 = (...as6) => unsafeFromNonEmptyArray(as6);
|
|
1231
1241
|
var of2 = (a) => makeChunk({
|
|
1232
1242
|
_tag: "ISingleton",
|
|
@@ -1307,7 +1317,7 @@ var reverseChunk = (self) => {
|
|
|
1307
1317
|
};
|
|
1308
1318
|
var reverse2 = reverseChunk;
|
|
1309
1319
|
var get2 = /* @__PURE__ */ dual(2, (self, index) => index < 0 || index >= self.length ? none2() : some2(unsafeGet2(self, index)));
|
|
1310
|
-
var unsafeFromArray = (self) => self.length === 0 ?
|
|
1320
|
+
var unsafeFromArray = (self) => self.length === 0 ? empty3() : self.length === 1 ? of2(self[0]) : makeChunk({
|
|
1311
1321
|
_tag: "IArray",
|
|
1312
1322
|
array: self
|
|
1313
1323
|
});
|
|
@@ -1459,7 +1469,7 @@ var appendAll2 = /* @__PURE__ */ dual(2, (self, that) => {
|
|
|
1459
1469
|
}
|
|
1460
1470
|
}
|
|
1461
1471
|
});
|
|
1462
|
-
var
|
|
1472
|
+
var filter4 = /* @__PURE__ */ dual(2, (self, predicate) => unsafeFromArray(filter3(self, predicate)));
|
|
1463
1473
|
var isEmpty = (self) => self.length === 0;
|
|
1464
1474
|
var isNonEmpty = (self) => self.length > 0;
|
|
1465
1475
|
var head2 = /* @__PURE__ */ get2(0);
|
|
@@ -1899,9 +1909,9 @@ var visitLazyChildren = (len, children2, i, f, cont) => {
|
|
|
1899
1909
|
return applyCont(cont);
|
|
1900
1910
|
};
|
|
1901
1911
|
var _empty2 = /* @__PURE__ */ makeImpl(false, 0, /* @__PURE__ */ new EmptyNode(), 0);
|
|
1902
|
-
var
|
|
1912
|
+
var empty4 = () => _empty2;
|
|
1903
1913
|
var fromIterable3 = (entries2) => {
|
|
1904
|
-
const map22 = beginMutation(
|
|
1914
|
+
const map22 = beginMutation(empty4());
|
|
1905
1915
|
for (const entry of entries2) {
|
|
1906
1916
|
set(map22, entry[0], entry[1]);
|
|
1907
1917
|
}
|
|
@@ -1984,7 +1994,7 @@ var modifyHash = /* @__PURE__ */ dual(4, (self, key, hash2, f) => {
|
|
|
1984
1994
|
return pipe(self, setTree(newRoot, size12.value));
|
|
1985
1995
|
});
|
|
1986
1996
|
var remove2 = /* @__PURE__ */ dual(2, (self, key) => modifyAt(self, key, none2));
|
|
1987
|
-
var map6 = /* @__PURE__ */ dual(2, (self, f) => reduce3(self,
|
|
1997
|
+
var map6 = /* @__PURE__ */ dual(2, (self, f) => reduce3(self, empty4(), (map22, value2, key) => set(map22, key, f(value2, key))));
|
|
1988
1998
|
var forEach = /* @__PURE__ */ dual(2, (self, f) => reduce3(self, void 0, (_, value2, key) => f(value2, key)));
|
|
1989
1999
|
var reduce3 = /* @__PURE__ */ dual(3, (self, zero2, f) => {
|
|
1990
2000
|
const root = self._root;
|
|
@@ -2052,17 +2062,17 @@ var makeImpl2 = (keyMap) => {
|
|
|
2052
2062
|
return set10;
|
|
2053
2063
|
};
|
|
2054
2064
|
var isHashSet = (u) => hasProperty(u, HashSetTypeId);
|
|
2055
|
-
var _empty3 = /* @__PURE__ */ makeImpl2(/* @__PURE__ */
|
|
2056
|
-
var
|
|
2065
|
+
var _empty3 = /* @__PURE__ */ makeImpl2(/* @__PURE__ */ empty4());
|
|
2066
|
+
var empty5 = () => _empty3;
|
|
2057
2067
|
var fromIterable4 = (elements) => {
|
|
2058
|
-
const set10 = beginMutation2(
|
|
2068
|
+
const set10 = beginMutation2(empty5());
|
|
2059
2069
|
for (const value2 of elements) {
|
|
2060
2070
|
add(set10, value2);
|
|
2061
2071
|
}
|
|
2062
2072
|
return endMutation2(set10);
|
|
2063
2073
|
};
|
|
2064
2074
|
var make6 = (...elements) => {
|
|
2065
|
-
const set10 = beginMutation2(
|
|
2075
|
+
const set10 = beginMutation2(empty5());
|
|
2066
2076
|
for (const value2 of elements) {
|
|
2067
2077
|
add(set10, value2);
|
|
2068
2078
|
}
|
|
@@ -2087,7 +2097,7 @@ var difference2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(self, (set10)
|
|
|
2087
2097
|
remove3(set10, value2);
|
|
2088
2098
|
}
|
|
2089
2099
|
}));
|
|
2090
|
-
var union2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(
|
|
2100
|
+
var union2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(empty5(), (set10) => {
|
|
2091
2101
|
forEach2(self, (value2) => add(set10, value2));
|
|
2092
2102
|
for (const value2 of that) {
|
|
2093
2103
|
add(set10, value2);
|
|
@@ -2097,7 +2107,7 @@ var forEach2 = /* @__PURE__ */ dual(2, (self, f) => forEach(self._keyMap, (_, k)
|
|
|
2097
2107
|
var reduce4 = /* @__PURE__ */ dual(3, (self, zero2, f) => reduce3(self._keyMap, zero2, (z, _, a) => f(z, a)));
|
|
2098
2108
|
|
|
2099
2109
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/HashSet.js
|
|
2100
|
-
var
|
|
2110
|
+
var empty6 = empty5;
|
|
2101
2111
|
var fromIterable5 = fromIterable4;
|
|
2102
2112
|
var make7 = make6;
|
|
2103
2113
|
var has3 = has2;
|
|
@@ -2176,7 +2186,7 @@ var proto = {
|
|
|
2176
2186
|
return this.toJSON();
|
|
2177
2187
|
}
|
|
2178
2188
|
};
|
|
2179
|
-
var
|
|
2189
|
+
var empty7 = /* @__PURE__ */ (() => {
|
|
2180
2190
|
const o = /* @__PURE__ */ Object.create(proto);
|
|
2181
2191
|
o._tag = OP_EMPTY;
|
|
2182
2192
|
return o;
|
|
@@ -2239,9 +2249,9 @@ var isEmpty3 = (self) => {
|
|
|
2239
2249
|
};
|
|
2240
2250
|
var isInterrupted = (self) => isSome2(interruptOption(self));
|
|
2241
2251
|
var isInterruptedOnly = (self) => reduceWithContext(void 0, IsInterruptedOnlyCauseReducer)(self);
|
|
2242
|
-
var failures = (self) => reverse2(reduce6(self,
|
|
2243
|
-
var defects = (self) => reverse2(reduce6(self,
|
|
2244
|
-
var interruptors = (self) => reduce6(self,
|
|
2252
|
+
var failures = (self) => reverse2(reduce6(self, empty3(), (list, cause2) => cause2._tag === OP_FAIL ? some2(pipe(list, prepend2(cause2.error))) : none2()));
|
|
2253
|
+
var defects = (self) => reverse2(reduce6(self, empty3(), (list, cause2) => cause2._tag === OP_DIE ? some2(pipe(list, prepend2(cause2.defect))) : none2()));
|
|
2254
|
+
var interruptors = (self) => reduce6(self, empty6(), (set10, cause2) => cause2._tag === OP_INTERRUPT ? some2(pipe(set10, add2(cause2.fiberId))) : none2());
|
|
2245
2255
|
var failureOption = (self) => find(self, (cause2) => cause2._tag === OP_FAIL ? some2(cause2.error) : none2());
|
|
2246
2256
|
var failureOrCause = (self) => {
|
|
2247
2257
|
const option2 = failureOption(self);
|
|
@@ -2256,15 +2266,15 @@ var failureOrCause = (self) => {
|
|
|
2256
2266
|
};
|
|
2257
2267
|
var interruptOption = (self) => find(self, (cause2) => cause2._tag === OP_INTERRUPT ? some2(cause2.fiberId) : none2());
|
|
2258
2268
|
var stripFailures = (self) => match3(self, {
|
|
2259
|
-
onEmpty:
|
|
2260
|
-
onFail: () =>
|
|
2269
|
+
onEmpty: empty7,
|
|
2270
|
+
onFail: () => empty7,
|
|
2261
2271
|
onDie: die,
|
|
2262
2272
|
onInterrupt: interrupt,
|
|
2263
2273
|
onSequential: sequential,
|
|
2264
2274
|
onParallel: parallel
|
|
2265
2275
|
});
|
|
2266
2276
|
var electFailures = (self) => match3(self, {
|
|
2267
|
-
onEmpty:
|
|
2277
|
+
onEmpty: empty7,
|
|
2268
2278
|
onFail: die,
|
|
2269
2279
|
onDie: die,
|
|
2270
2280
|
onInterrupt: interrupt,
|
|
@@ -2273,7 +2283,7 @@ var electFailures = (self) => match3(self, {
|
|
|
2273
2283
|
});
|
|
2274
2284
|
var map9 = /* @__PURE__ */ dual(2, (self, f) => flatMap5(self, (e) => fail(f(e))));
|
|
2275
2285
|
var flatMap5 = /* @__PURE__ */ dual(2, (self, f) => match3(self, {
|
|
2276
|
-
onEmpty:
|
|
2286
|
+
onEmpty: empty7,
|
|
2277
2287
|
onFail: (error) => f(error),
|
|
2278
2288
|
onDie: (defect) => die(defect),
|
|
2279
2289
|
onInterrupt: (fiberId2) => interrupt(fiberId2),
|
|
@@ -2284,11 +2294,11 @@ var causeEquals = (left3, right3) => {
|
|
|
2284
2294
|
let leftStack = of2(left3);
|
|
2285
2295
|
let rightStack = of2(right3);
|
|
2286
2296
|
while (isNonEmpty(leftStack) && isNonEmpty(rightStack)) {
|
|
2287
|
-
const [leftParallel, leftSequential] = pipe(headNonEmpty2(leftStack), reduce6([
|
|
2297
|
+
const [leftParallel, leftSequential] = pipe(headNonEmpty2(leftStack), reduce6([empty6(), empty3()], ([parallel4, sequential4], cause2) => {
|
|
2288
2298
|
const [par2, seq2] = evaluateCause(cause2);
|
|
2289
2299
|
return some2([pipe(parallel4, union3(par2)), pipe(sequential4, appendAll2(seq2))]);
|
|
2290
2300
|
}));
|
|
2291
|
-
const [rightParallel, rightSequential] = pipe(headNonEmpty2(rightStack), reduce6([
|
|
2301
|
+
const [rightParallel, rightSequential] = pipe(headNonEmpty2(rightStack), reduce6([empty6(), empty3()], ([parallel4, sequential4], cause2) => {
|
|
2292
2302
|
const [par2, seq2] = evaluateCause(cause2);
|
|
2293
2303
|
return some2([pipe(parallel4, union3(par2)), pipe(sequential4, appendAll2(seq2))]);
|
|
2294
2304
|
}));
|
|
@@ -2301,11 +2311,11 @@ var causeEquals = (left3, right3) => {
|
|
|
2301
2311
|
return true;
|
|
2302
2312
|
};
|
|
2303
2313
|
var flattenCause = (cause2) => {
|
|
2304
|
-
return flattenCauseLoop(of2(cause2),
|
|
2314
|
+
return flattenCauseLoop(of2(cause2), empty3());
|
|
2305
2315
|
};
|
|
2306
2316
|
var flattenCauseLoop = (causes, flattened) => {
|
|
2307
2317
|
while (1) {
|
|
2308
|
-
const [parallel4, sequential4] = pipe(causes, reduce([
|
|
2318
|
+
const [parallel4, sequential4] = pipe(causes, reduce([empty6(), empty3()], ([parallel5, sequential5], cause2) => {
|
|
2309
2319
|
const [par2, seq2] = evaluateCause(cause2);
|
|
2310
2320
|
return [pipe(parallel5, union3(par2)), pipe(sequential5, appendAll2(seq2))];
|
|
2311
2321
|
}));
|
|
@@ -2345,8 +2355,8 @@ var find = /* @__PURE__ */ dual(2, (self, pf) => {
|
|
|
2345
2355
|
var evaluateCause = (self) => {
|
|
2346
2356
|
let cause2 = self;
|
|
2347
2357
|
const stack = [];
|
|
2348
|
-
let _parallel =
|
|
2349
|
-
let _sequential =
|
|
2358
|
+
let _parallel = empty6();
|
|
2359
|
+
let _sequential = empty3();
|
|
2350
2360
|
while (cause2 !== void 0) {
|
|
2351
2361
|
switch (cause2._tag) {
|
|
2352
2362
|
case OP_EMPTY: {
|
|
@@ -2803,7 +2813,7 @@ var isContext = (u) => hasProperty(u, TypeId4);
|
|
|
2803
2813
|
var isTag = (u) => hasProperty(u, TagTypeId);
|
|
2804
2814
|
var isReference = (u) => hasProperty(u, ReferenceTypeId);
|
|
2805
2815
|
var _empty4 = /* @__PURE__ */ makeContext(/* @__PURE__ */ new Map());
|
|
2806
|
-
var
|
|
2816
|
+
var empty8 = () => _empty4;
|
|
2807
2817
|
var make8 = (tag2, service2) => makeContext(/* @__PURE__ */ new Map([[tag2.key, service2]]));
|
|
2808
2818
|
var add3 = /* @__PURE__ */ dual(3, (self, tag2, service2) => {
|
|
2809
2819
|
const map22 = new Map(self.unsafeMap);
|
|
@@ -2848,7 +2858,7 @@ var merge2 = /* @__PURE__ */ dual(2, (self, that) => {
|
|
|
2848
2858
|
var GenericTag = makeGenericTag;
|
|
2849
2859
|
var isContext2 = isContext;
|
|
2850
2860
|
var isTag2 = isTag;
|
|
2851
|
-
var
|
|
2861
|
+
var empty9 = empty8;
|
|
2852
2862
|
var make9 = make8;
|
|
2853
2863
|
var add4 = add3;
|
|
2854
2864
|
var get5 = get4;
|
|
@@ -3281,7 +3291,7 @@ var combineAll = (fiberIds) => {
|
|
|
3281
3291
|
var ids = (self) => {
|
|
3282
3292
|
switch (self._tag) {
|
|
3283
3293
|
case OP_NONE: {
|
|
3284
|
-
return
|
|
3294
|
+
return empty6();
|
|
3285
3295
|
}
|
|
3286
3296
|
case OP_RUNTIME: {
|
|
3287
3297
|
return make7(self.id);
|
|
@@ -3311,7 +3321,7 @@ var threadName2 = threadName;
|
|
|
3311
3321
|
var unsafeMake2 = unsafeMake;
|
|
3312
3322
|
|
|
3313
3323
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/HashMap.js
|
|
3314
|
-
var
|
|
3324
|
+
var empty10 = empty4;
|
|
3315
3325
|
var fromIterable6 = fromIterable3;
|
|
3316
3326
|
var isEmpty4 = isEmpty2;
|
|
3317
3327
|
var get7 = get3;
|
|
@@ -3433,7 +3443,7 @@ var isNil = (self) => self._tag === "Nil";
|
|
|
3433
3443
|
var isCons = (self) => self._tag === "Cons";
|
|
3434
3444
|
var nil = () => _Nil;
|
|
3435
3445
|
var cons = (head7, tail) => makeCons(head7, tail);
|
|
3436
|
-
var
|
|
3446
|
+
var empty11 = nil;
|
|
3437
3447
|
var of3 = (value2) => makeCons(value2, _Nil);
|
|
3438
3448
|
var appendAll3 = /* @__PURE__ */ dual(2, (self, that) => prependAll(that, self));
|
|
3439
3449
|
var prepend3 = /* @__PURE__ */ dual(2, (self, element) => cons(element, self));
|
|
@@ -3465,7 +3475,7 @@ var reduce8 = /* @__PURE__ */ dual(3, (self, zero2, f) => {
|
|
|
3465
3475
|
return acc;
|
|
3466
3476
|
});
|
|
3467
3477
|
var reverse3 = (self) => {
|
|
3468
|
-
let result =
|
|
3478
|
+
let result = empty11();
|
|
3469
3479
|
let these = self;
|
|
3470
3480
|
while (!isNil(these)) {
|
|
3471
3481
|
result = prepend3(result, these.head);
|
|
@@ -3500,7 +3510,7 @@ var EmptyProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(Pat
|
|
|
3500
3510
|
_tag: "Empty"
|
|
3501
3511
|
});
|
|
3502
3512
|
var _empty5 = /* @__PURE__ */ Object.create(EmptyProto);
|
|
3503
|
-
var
|
|
3513
|
+
var empty12 = () => _empty5;
|
|
3504
3514
|
var AndThenProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(PatchProto), {
|
|
3505
3515
|
_tag: "AndThen"
|
|
3506
3516
|
});
|
|
@@ -3538,7 +3548,7 @@ var makeUpdateService = (key, update6) => {
|
|
|
3538
3548
|
};
|
|
3539
3549
|
var diff = (oldValue, newValue) => {
|
|
3540
3550
|
const missingServices = new Map(oldValue.unsafeMap);
|
|
3541
|
-
let patch11 =
|
|
3551
|
+
let patch11 = empty12();
|
|
3542
3552
|
for (const [tag2, newService] of newValue.unsafeMap.entries()) {
|
|
3543
3553
|
if (missingServices.has(tag2)) {
|
|
3544
3554
|
const old = missingServices.get(tag2);
|
|
@@ -3627,7 +3637,7 @@ var EmptyProto2 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(Pa
|
|
|
3627
3637
|
_tag: "Empty"
|
|
3628
3638
|
});
|
|
3629
3639
|
var _empty6 = /* @__PURE__ */ Object.create(EmptyProto2);
|
|
3630
|
-
var
|
|
3640
|
+
var empty13 = () => _empty6;
|
|
3631
3641
|
var AndThenProto2 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(PatchProto2), {
|
|
3632
3642
|
_tag: "AndThen"
|
|
3633
3643
|
});
|
|
@@ -3654,7 +3664,7 @@ var makeRemove = (value2) => {
|
|
|
3654
3664
|
return o;
|
|
3655
3665
|
};
|
|
3656
3666
|
var diff2 = (oldValue, newValue) => {
|
|
3657
|
-
const [removed, patch11] = reduce5([oldValue,
|
|
3667
|
+
const [removed, patch11] = reduce5([oldValue, empty13()], ([set10, patch12], value2) => {
|
|
3658
3668
|
if (has3(value2)(set10)) {
|
|
3659
3669
|
return [remove4(value2)(set10), patch12];
|
|
3660
3670
|
}
|
|
@@ -3711,7 +3721,7 @@ var EmptyProto3 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(Pa
|
|
|
3711
3721
|
_tag: "Empty"
|
|
3712
3722
|
});
|
|
3713
3723
|
var _empty7 = /* @__PURE__ */ Object.create(EmptyProto3);
|
|
3714
|
-
var
|
|
3724
|
+
var empty14 = () => _empty7;
|
|
3715
3725
|
var AndThenProto3 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(PatchProto3), {
|
|
3716
3726
|
_tag: "AndThen"
|
|
3717
3727
|
});
|
|
@@ -3749,7 +3759,7 @@ var makeUpdate = (index, patch11) => {
|
|
|
3749
3759
|
};
|
|
3750
3760
|
var diff3 = (options3) => {
|
|
3751
3761
|
let i = 0;
|
|
3752
|
-
let patch11 =
|
|
3762
|
+
let patch11 = empty14();
|
|
3753
3763
|
while (i < options3.oldValue.length && i < options3.newValue.length) {
|
|
3754
3764
|
const oldElement = options3.oldValue[i];
|
|
3755
3765
|
const newElement = options3.newValue[i];
|
|
@@ -3829,19 +3839,19 @@ var make14 = (params) => {
|
|
|
3829
3839
|
return differ3;
|
|
3830
3840
|
};
|
|
3831
3841
|
var environment = () => make14({
|
|
3832
|
-
empty:
|
|
3842
|
+
empty: empty12(),
|
|
3833
3843
|
combine: (first2, second) => combine4(second)(first2),
|
|
3834
3844
|
diff: (oldValue, newValue) => diff(oldValue, newValue),
|
|
3835
3845
|
patch: (patch11, oldValue) => patch(oldValue)(patch11)
|
|
3836
3846
|
});
|
|
3837
3847
|
var hashSet = () => make14({
|
|
3838
|
-
empty:
|
|
3848
|
+
empty: empty13(),
|
|
3839
3849
|
combine: (first2, second) => combine5(second)(first2),
|
|
3840
3850
|
diff: (oldValue, newValue) => diff2(oldValue, newValue),
|
|
3841
3851
|
patch: (patch11, oldValue) => patch2(oldValue)(patch11)
|
|
3842
3852
|
});
|
|
3843
3853
|
var readonlyArray = (differ3) => make14({
|
|
3844
|
-
empty:
|
|
3854
|
+
empty: empty14(),
|
|
3845
3855
|
combine: (first2, second) => combine6(first2, second),
|
|
3846
3856
|
diff: (oldValue, newValue) => diff3({
|
|
3847
3857
|
oldValue,
|
|
@@ -3877,7 +3887,7 @@ var BIT_SHIFT = 8;
|
|
|
3877
3887
|
var active = (patch11) => patch11 & BIT_MASK;
|
|
3878
3888
|
var enabled = (patch11) => patch11 >> BIT_SHIFT & BIT_MASK;
|
|
3879
3889
|
var make15 = (active2, enabled2) => (active2 & BIT_MASK) + ((enabled2 & active2 & BIT_MASK) << BIT_SHIFT);
|
|
3880
|
-
var
|
|
3890
|
+
var empty15 = /* @__PURE__ */ make15(0, 0);
|
|
3881
3891
|
var enable = (flag) => make15(flag, flag);
|
|
3882
3892
|
var disable = (flag) => make15(flag, 0);
|
|
3883
3893
|
var exclude = /* @__PURE__ */ dual(2, (self, flag) => make15(active(self) & ~flag, enabled(self)));
|
|
@@ -3903,7 +3913,7 @@ var windDown = (self) => isEnabled(self, WindDown);
|
|
|
3903
3913
|
var diff4 = /* @__PURE__ */ dual(2, (self, that) => make15(self ^ that, that));
|
|
3904
3914
|
var patch4 = /* @__PURE__ */ dual(2, (self, patch11) => self & (invert(active(patch11)) | enabled(patch11)) | active(patch11) & enabled(patch11));
|
|
3905
3915
|
var differ = /* @__PURE__ */ make14({
|
|
3906
|
-
empty:
|
|
3916
|
+
empty: empty15,
|
|
3907
3917
|
diff: (oldValue, newValue) => diff4(oldValue, newValue),
|
|
3908
3918
|
combine: (first2, second) => andThen(second)(first2),
|
|
3909
3919
|
patch: (_patch, oldValue) => patch4(oldValue, _patch)
|
|
@@ -3927,9 +3937,9 @@ var seq = (self, that) => ({
|
|
|
3927
3937
|
});
|
|
3928
3938
|
var flatten2 = (self) => {
|
|
3929
3939
|
let current = of3(self);
|
|
3930
|
-
let updated =
|
|
3940
|
+
let updated = empty11();
|
|
3931
3941
|
while (1) {
|
|
3932
|
-
const [parallel4, sequential4] = reduce8(current, [parallelCollectionEmpty(),
|
|
3942
|
+
const [parallel4, sequential4] = reduce8(current, [parallelCollectionEmpty(), empty11()], ([parallel5, sequential5], blockedRequest) => {
|
|
3933
3943
|
const [par2, seq2] = step(blockedRequest);
|
|
3934
3944
|
return [parallelCollectionCombine(parallel5, par2), appendAll3(sequential5, seq2)];
|
|
3935
3945
|
});
|
|
@@ -3944,8 +3954,8 @@ var flatten2 = (self) => {
|
|
|
3944
3954
|
var step = (requests) => {
|
|
3945
3955
|
let current = requests;
|
|
3946
3956
|
let parallel4 = parallelCollectionEmpty();
|
|
3947
|
-
let stack =
|
|
3948
|
-
let sequential4 =
|
|
3957
|
+
let stack = empty11();
|
|
3958
|
+
let sequential4 = empty11();
|
|
3949
3959
|
while (1) {
|
|
3950
3960
|
switch (current._tag) {
|
|
3951
3961
|
case "Empty": {
|
|
@@ -4028,7 +4038,7 @@ var ParallelImpl = class {
|
|
|
4028
4038
|
this.map = map22;
|
|
4029
4039
|
}
|
|
4030
4040
|
};
|
|
4031
|
-
var parallelCollectionEmpty = () => new ParallelImpl(
|
|
4041
|
+
var parallelCollectionEmpty = () => new ParallelImpl(empty10());
|
|
4032
4042
|
var parallelCollectionAdd = (self, blockedRequest) => new ParallelImpl(modifyAt2(self.map, blockedRequest.dataSource, (_) => orElseSome(map2(_, append2(blockedRequest.blockedRequest)), () => of2(blockedRequest.blockedRequest))));
|
|
4033
4043
|
var parallelCollectionCombine = (self, that) => new ParallelImpl(reduce7(self.map, that.map, (map22, value2, key) => set3(map22, key, match2(get7(map22, key), {
|
|
4034
4044
|
onNone: () => value2,
|
|
@@ -4051,7 +4061,7 @@ var SequentialImpl = class {
|
|
|
4051
4061
|
};
|
|
4052
4062
|
var sequentialCollectionMake = (map22) => new SequentialImpl(map22);
|
|
4053
4063
|
var sequentialCollectionCombine = (self, that) => new SequentialImpl(reduce7(that.map, self.map, (map22, value2, key) => set3(map22, key, match2(get7(map22, key), {
|
|
4054
|
-
onNone: () =>
|
|
4064
|
+
onNone: () => empty3(),
|
|
4055
4065
|
onSome: (a) => appendAll2(a, value2)
|
|
4056
4066
|
}))));
|
|
4057
4067
|
var sequentialCollectionKeys = (self) => Array.from(keys3(self.map));
|
|
@@ -4743,29 +4753,29 @@ var fiberRefUnsafeMakeRuntimeFlags = (initial) => fiberRefUnsafeMakePatch(initia
|
|
|
4743
4753
|
differ,
|
|
4744
4754
|
fork: differ.empty
|
|
4745
4755
|
});
|
|
4746
|
-
var currentContext = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentContext"), () => fiberRefUnsafeMakeContext(
|
|
4756
|
+
var currentContext = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentContext"), () => fiberRefUnsafeMakeContext(empty9()));
|
|
4747
4757
|
var currentSchedulingPriority = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentSchedulingPriority"), () => fiberRefUnsafeMake(0));
|
|
4748
4758
|
var currentMaxOpsBeforeYield = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentMaxOpsBeforeYield"), () => fiberRefUnsafeMake(2048));
|
|
4749
|
-
var currentLogAnnotations = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLogAnnotation"), () => fiberRefUnsafeMake(
|
|
4759
|
+
var currentLogAnnotations = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLogAnnotation"), () => fiberRefUnsafeMake(empty10()));
|
|
4750
4760
|
var currentLogLevel = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLogLevel"), () => fiberRefUnsafeMake(logLevelInfo));
|
|
4751
|
-
var currentLogSpan = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLogSpan"), () => fiberRefUnsafeMake(
|
|
4761
|
+
var currentLogSpan = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLogSpan"), () => fiberRefUnsafeMake(empty11()));
|
|
4752
4762
|
var withSchedulingPriority = /* @__PURE__ */ dual(2, (self, scheduler) => fiberRefLocally(self, currentSchedulingPriority, scheduler));
|
|
4753
4763
|
var currentConcurrency = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentConcurrency"), () => fiberRefUnsafeMake("unbounded"));
|
|
4754
4764
|
var currentRequestBatching = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentRequestBatching"), () => fiberRefUnsafeMake(true));
|
|
4755
4765
|
var currentUnhandledErrorLogLevel = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentUnhandledErrorLogLevel"), () => fiberRefUnsafeMake(some2(logLevelDebug)));
|
|
4756
|
-
var currentMetricLabels = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentMetricLabels"), () => fiberRefUnsafeMakeReadonlyArray(
|
|
4766
|
+
var currentMetricLabels = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentMetricLabels"), () => fiberRefUnsafeMakeReadonlyArray(empty2()));
|
|
4757
4767
|
var currentForkScopeOverride = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentForkScopeOverride"), () => fiberRefUnsafeMake(none2(), {
|
|
4758
4768
|
fork: () => none2(),
|
|
4759
4769
|
join: (parent, _) => parent
|
|
4760
4770
|
}));
|
|
4761
|
-
var currentInterruptedCause = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentInterruptedCause"), () => fiberRefUnsafeMake(
|
|
4762
|
-
fork: () =>
|
|
4771
|
+
var currentInterruptedCause = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentInterruptedCause"), () => fiberRefUnsafeMake(empty7, {
|
|
4772
|
+
fork: () => empty7,
|
|
4763
4773
|
join: (parent, _) => parent
|
|
4764
4774
|
}));
|
|
4765
4775
|
var currentTracerEnabled = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentTracerEnabled"), () => fiberRefUnsafeMake(true));
|
|
4766
4776
|
var currentTracerTimingEnabled = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentTracerTiming"), () => fiberRefUnsafeMake(true));
|
|
4767
|
-
var currentTracerSpanAnnotations = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentTracerSpanAnnotations"), () => fiberRefUnsafeMake(
|
|
4768
|
-
var currentTracerSpanLinks = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentTracerSpanLinks"), () => fiberRefUnsafeMake(
|
|
4777
|
+
var currentTracerSpanAnnotations = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentTracerSpanAnnotations"), () => fiberRefUnsafeMake(empty10()));
|
|
4778
|
+
var currentTracerSpanLinks = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentTracerSpanLinks"), () => fiberRefUnsafeMake(empty3()));
|
|
4769
4779
|
var ScopeTypeId = /* @__PURE__ */ Symbol.for("effect/Scope");
|
|
4770
4780
|
var CloseableScopeTypeId = /* @__PURE__ */ Symbol.for("effect/CloseableScope");
|
|
4771
4781
|
var scopeAddFinalizer = (self, finalizer2) => self.addFinalizer(() => asVoid(finalizer2));
|
|
@@ -5296,7 +5306,7 @@ var prefixed = /* @__PURE__ */ dual(2, (self, prefix) => {
|
|
|
5296
5306
|
});
|
|
5297
5307
|
|
|
5298
5308
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/internal/configProvider/pathPatch.js
|
|
5299
|
-
var
|
|
5309
|
+
var empty16 = {
|
|
5300
5310
|
_tag: "Empty"
|
|
5301
5311
|
};
|
|
5302
5312
|
var patch5 = /* @__PURE__ */ dual(2, (path, patch11) => {
|
|
@@ -5372,8 +5382,8 @@ var makeFlat = (options3) => ({
|
|
|
5372
5382
|
enumerateChildren: options3.enumerateChildren
|
|
5373
5383
|
});
|
|
5374
5384
|
var fromFlat = (flat) => make20({
|
|
5375
|
-
load: (config) => flatMap7(fromFlatLoop(flat,
|
|
5376
|
-
onNone: () => fail2(MissingData(
|
|
5385
|
+
load: (config) => flatMap7(fromFlatLoop(flat, empty2(), config, false), (chunk2) => match2(head(chunk2), {
|
|
5386
|
+
onNone: () => fail2(MissingData(empty2(), `Expected a single value having structure: ${config}`)),
|
|
5377
5387
|
onSome: succeed
|
|
5378
5388
|
})),
|
|
5379
5389
|
flattened: flat
|
|
@@ -5414,7 +5424,7 @@ var fromEnv = (options3) => {
|
|
|
5414
5424
|
return fromFlat(makeFlat({
|
|
5415
5425
|
load,
|
|
5416
5426
|
enumerateChildren,
|
|
5417
|
-
patch:
|
|
5427
|
+
patch: empty16
|
|
5418
5428
|
}));
|
|
5419
5429
|
};
|
|
5420
5430
|
var extend = (leftDef, rightDef, left3, right3) => {
|
|
@@ -5482,7 +5492,7 @@ var fromFlatLoop = (flat, prefix, config, split2) => {
|
|
|
5482
5492
|
return pipe(forEachSequential(indices, (index) => fromFlatLoop(flat, append(prefix, `[${index}]`), op.config, true)), map11((chunkChunk) => {
|
|
5483
5493
|
const flattened = flatten(chunkChunk);
|
|
5484
5494
|
if (flattened.length === 0) {
|
|
5485
|
-
return of(
|
|
5495
|
+
return of(empty2());
|
|
5486
5496
|
}
|
|
5487
5497
|
return of(flattened);
|
|
5488
5498
|
}));
|
|
@@ -5492,7 +5502,7 @@ var fromFlatLoop = (flat, prefix, config, split2) => {
|
|
|
5492
5502
|
return suspend(() => pipe(patch5(prefix, flat.patch), flatMap7((prefix2) => pipe(flat.enumerateChildren(prefix2), flatMap7((keys6) => {
|
|
5493
5503
|
return pipe(keys6, forEachSequential((key) => fromFlatLoop(flat, concat(prefix2, of(key)), op.valueConfig, split2)), map11((matrix) => {
|
|
5494
5504
|
if (matrix.length === 0) {
|
|
5495
|
-
return of(
|
|
5505
|
+
return of(empty10());
|
|
5496
5506
|
}
|
|
5497
5507
|
return pipe(transpose(matrix), map4((values3) => fromIterable6(zip(fromIterable(keys6), values3))));
|
|
5498
5508
|
}));
|
|
@@ -5538,7 +5548,7 @@ var transpose = (array3) => {
|
|
|
5538
5548
|
return Object.keys(array3[0]).map((column) => array3.map((row) => row[column]));
|
|
5539
5549
|
};
|
|
5540
5550
|
var indicesFrom = (quotedIndices) => pipe(forEachSequential(quotedIndices, parseQuotedIndex), mapBoth2({
|
|
5541
|
-
onFailure: () =>
|
|
5551
|
+
onFailure: () => empty2(),
|
|
5542
5552
|
onSuccess: sort(Order)
|
|
5543
5553
|
}), either2, map11(merge));
|
|
5544
5554
|
var QUOTED_INDEX_REGEX = /^(\[(\d+)\])$/;
|
|
@@ -5793,7 +5803,7 @@ var DisablePropagation = /* @__PURE__ */ Reference2()("effect/Tracer/DisableProp
|
|
|
5793
5803
|
});
|
|
5794
5804
|
|
|
5795
5805
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/internal/defaultServices.js
|
|
5796
|
-
var liveServices = /* @__PURE__ */ pipe(/* @__PURE__ */
|
|
5806
|
+
var liveServices = /* @__PURE__ */ pipe(/* @__PURE__ */ empty9(), /* @__PURE__ */ add4(clockTag, /* @__PURE__ */ make18()), /* @__PURE__ */ add4(consoleTag, defaultConsole), /* @__PURE__ */ add4(randomTag, /* @__PURE__ */ make21(/* @__PURE__ */ Math.random())), /* @__PURE__ */ add4(configProviderTag, /* @__PURE__ */ fromEnv()), /* @__PURE__ */ add4(tracerTag, nativeTracer));
|
|
5797
5807
|
var currentServices = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/DefaultServices/currentServices"), () => fiberRefUnsafeMakeContext(liveServices));
|
|
5798
5808
|
var sleep = (duration) => {
|
|
5799
5809
|
const decodedDuration = decode(duration);
|
|
@@ -5842,7 +5852,7 @@ var parallelN2 = parallelN;
|
|
|
5842
5852
|
function unsafeMake3(fiberRefLocals) {
|
|
5843
5853
|
return new FiberRefsImpl(fiberRefLocals);
|
|
5844
5854
|
}
|
|
5845
|
-
function
|
|
5855
|
+
function empty17() {
|
|
5846
5856
|
return unsafeMake3(/* @__PURE__ */ new Map());
|
|
5847
5857
|
}
|
|
5848
5858
|
var FiberRefsSym = /* @__PURE__ */ Symbol.for("effect/FiberRefs");
|
|
@@ -6009,7 +6019,7 @@ var updateManyAs = /* @__PURE__ */ dual(2, (self, {
|
|
|
6009
6019
|
var get9 = get8;
|
|
6010
6020
|
var getOrDefault2 = getOrDefault;
|
|
6011
6021
|
var updateManyAs2 = updateManyAs;
|
|
6012
|
-
var
|
|
6022
|
+
var empty18 = empty17;
|
|
6013
6023
|
|
|
6014
6024
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/internal/fiberRefs/patch.js
|
|
6015
6025
|
var OP_EMPTY2 = "Empty";
|
|
@@ -6017,12 +6027,12 @@ var OP_ADD = "Add";
|
|
|
6017
6027
|
var OP_REMOVE = "Remove";
|
|
6018
6028
|
var OP_UPDATE = "Update";
|
|
6019
6029
|
var OP_AND_THEN = "AndThen";
|
|
6020
|
-
var
|
|
6030
|
+
var empty19 = {
|
|
6021
6031
|
_tag: OP_EMPTY2
|
|
6022
6032
|
};
|
|
6023
6033
|
var diff5 = (oldValue, newValue) => {
|
|
6024
6034
|
const missingLocals = new Map(oldValue.locals);
|
|
6025
|
-
let patch11 =
|
|
6035
|
+
let patch11 = empty19;
|
|
6026
6036
|
for (const [fiberRef, pairs] of newValue.locals.entries()) {
|
|
6027
6037
|
const newValue2 = headNonEmpty(pairs)[1];
|
|
6028
6038
|
const old = missingLocals.get(fiberRef);
|
|
@@ -6925,7 +6935,7 @@ var logWithLevel = (level) => (...message) => {
|
|
|
6925
6935
|
}
|
|
6926
6936
|
}
|
|
6927
6937
|
if (cause2 === void 0) {
|
|
6928
|
-
cause2 =
|
|
6938
|
+
cause2 = empty7;
|
|
6929
6939
|
}
|
|
6930
6940
|
return withFiberRuntime((fiberState) => {
|
|
6931
6941
|
fiberState.log(message, cause2, levelOption);
|
|
@@ -7016,7 +7026,7 @@ var unsafeMakeSpan = (fiber, name, options3) => {
|
|
|
7016
7026
|
span2 = noopSpan({
|
|
7017
7027
|
name,
|
|
7018
7028
|
parent,
|
|
7019
|
-
context: add4(options3.context ??
|
|
7029
|
+
context: add4(options3.context ?? empty9(), DisablePropagation, true)
|
|
7020
7030
|
});
|
|
7021
7031
|
} else {
|
|
7022
7032
|
const services = fiber.getFiberRef(currentServices);
|
|
@@ -7026,8 +7036,8 @@ var unsafeMakeSpan = (fiber, name, options3) => {
|
|
|
7026
7036
|
const fiberRefs3 = fiber.getFiberRefs();
|
|
7027
7037
|
const annotationsFromEnv = get9(fiberRefs3, currentTracerSpanAnnotations);
|
|
7028
7038
|
const linksFromEnv = get9(fiberRefs3, currentTracerSpanLinks);
|
|
7029
|
-
const links = linksFromEnv._tag === "Some" ? options3.links !== void 0 ? [...toReadonlyArray(linksFromEnv.value), ...options3.links ?? []] : toReadonlyArray(linksFromEnv.value) : options3.links ??
|
|
7030
|
-
span2 = tracer2.span(name, parent, options3.context ??
|
|
7039
|
+
const links = linksFromEnv._tag === "Some" ? options3.links !== void 0 ? [...toReadonlyArray(linksFromEnv.value), ...options3.links ?? []] : toReadonlyArray(linksFromEnv.value) : options3.links ?? empty2();
|
|
7040
|
+
span2 = tracer2.span(name, parent, options3.context ?? empty9(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal");
|
|
7031
7041
|
if (annotationsFromEnv._tag === "Some") {
|
|
7032
7042
|
forEach3(annotationsFromEnv.value, (value2, key) => span2.attribute(key, value2));
|
|
7033
7043
|
}
|
|
@@ -7597,7 +7607,7 @@ var BucketIterator = class {
|
|
|
7597
7607
|
return result;
|
|
7598
7608
|
}
|
|
7599
7609
|
};
|
|
7600
|
-
var
|
|
7610
|
+
var empty20 = () => {
|
|
7601
7611
|
const self = Object.create(MutableHashMapProto);
|
|
7602
7612
|
self.referential = /* @__PURE__ */ new Map();
|
|
7603
7613
|
self.buckets = /* @__PURE__ */ new Map();
|
|
@@ -7974,7 +7984,7 @@ var summary3 = (key) => {
|
|
|
7974
7984
|
var calculateQuantiles = (error, sortedQuantiles, sortedSamples) => {
|
|
7975
7985
|
const sampleCount = sortedSamples.length;
|
|
7976
7986
|
if (!isNonEmptyReadonlyArray(sortedQuantiles)) {
|
|
7977
|
-
return
|
|
7987
|
+
return empty2();
|
|
7978
7988
|
}
|
|
7979
7989
|
const head7 = sortedQuantiles[0];
|
|
7980
7990
|
const tail = sortedQuantiles.slice(1);
|
|
@@ -8113,7 +8123,7 @@ var MetricRegistrySymbolKey = "effect/MetricRegistry";
|
|
|
8113
8123
|
var MetricRegistryTypeId = /* @__PURE__ */ Symbol.for(MetricRegistrySymbolKey);
|
|
8114
8124
|
var MetricRegistryImpl = class {
|
|
8115
8125
|
[MetricRegistryTypeId] = MetricRegistryTypeId;
|
|
8116
|
-
map = /* @__PURE__ */
|
|
8126
|
+
map = /* @__PURE__ */ empty20();
|
|
8117
8127
|
snapshot() {
|
|
8118
8128
|
const result = [];
|
|
8119
8129
|
for (const [key, hook] of this.map) {
|
|
@@ -8395,7 +8405,7 @@ var OP_EMPTY3 = "Empty";
|
|
|
8395
8405
|
var OP_ADD_SUPERVISOR = "AddSupervisor";
|
|
8396
8406
|
var OP_REMOVE_SUPERVISOR = "RemoveSupervisor";
|
|
8397
8407
|
var OP_AND_THEN2 = "AndThen";
|
|
8398
|
-
var
|
|
8408
|
+
var empty23 = {
|
|
8399
8409
|
_tag: OP_EMPTY3
|
|
8400
8410
|
};
|
|
8401
8411
|
var combine8 = (self, that) => {
|
|
@@ -8449,7 +8459,7 @@ var removeSupervisor = (self, that) => {
|
|
|
8449
8459
|
};
|
|
8450
8460
|
var toSet2 = (self) => {
|
|
8451
8461
|
if (equals(self, none7)) {
|
|
8452
|
-
return
|
|
8462
|
+
return empty6();
|
|
8453
8463
|
} else {
|
|
8454
8464
|
if (isZip(self)) {
|
|
8455
8465
|
return pipe(toSet2(self.left), union3(toSet2(self.right)));
|
|
@@ -8460,22 +8470,22 @@ var toSet2 = (self) => {
|
|
|
8460
8470
|
};
|
|
8461
8471
|
var diff7 = (oldValue, newValue) => {
|
|
8462
8472
|
if (equals(oldValue, newValue)) {
|
|
8463
|
-
return
|
|
8473
|
+
return empty23;
|
|
8464
8474
|
}
|
|
8465
8475
|
const oldSupervisors = toSet2(oldValue);
|
|
8466
8476
|
const newSupervisors = toSet2(newValue);
|
|
8467
|
-
const added = pipe(newSupervisors, difference3(oldSupervisors), reduce5(
|
|
8477
|
+
const added = pipe(newSupervisors, difference3(oldSupervisors), reduce5(empty23, (patch11, supervisor) => combine8(patch11, {
|
|
8468
8478
|
_tag: OP_ADD_SUPERVISOR,
|
|
8469
8479
|
supervisor
|
|
8470
8480
|
})));
|
|
8471
|
-
const removed = pipe(oldSupervisors, difference3(newSupervisors), reduce5(
|
|
8481
|
+
const removed = pipe(oldSupervisors, difference3(newSupervisors), reduce5(empty23, (patch11, supervisor) => combine8(patch11, {
|
|
8472
8482
|
_tag: OP_REMOVE_SUPERVISOR,
|
|
8473
8483
|
supervisor
|
|
8474
8484
|
})));
|
|
8475
8485
|
return combine8(added, removed);
|
|
8476
8486
|
};
|
|
8477
8487
|
var differ2 = /* @__PURE__ */ make33({
|
|
8478
|
-
empty:
|
|
8488
|
+
empty: empty23,
|
|
8479
8489
|
patch: patch8,
|
|
8480
8490
|
combine: combine8,
|
|
8481
8491
|
diff: diff7
|
|
@@ -10020,7 +10030,7 @@ var scopeExtend = /* @__PURE__ */ dual(2, (effect3, scope4) => mapInputContext(
|
|
|
10020
10030
|
var scopeUse = /* @__PURE__ */ dual(2, (effect3, scope4) => pipe(effect3, scopeExtend(scope4), onExit((exit4) => scope4.close(exit4))));
|
|
10021
10031
|
var fiberRefUnsafeMakeSupervisor = (initial) => fiberRefUnsafeMakePatch(initial, {
|
|
10022
10032
|
differ: differ2,
|
|
10023
|
-
fork:
|
|
10033
|
+
fork: empty23
|
|
10024
10034
|
});
|
|
10025
10035
|
var fiberRefLocallyScoped = /* @__PURE__ */ dual(2, (self, value2) => asVoid(acquireRelease(flatMap7(fiberRefGet(self), (oldValue) => as(fiberRefSet(self, value2), oldValue)), (oldValue) => fiberRefSet(self, oldValue))));
|
|
10026
10036
|
var fiberRefLocallyScopedWith = /* @__PURE__ */ dual(2, (self, f) => fiberRefGetWith(self, (a) => fiberRefLocallyScoped(self, f(a))));
|
|
@@ -10143,14 +10153,14 @@ var pretty2 = pretty;
|
|
|
10143
10153
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/internal/schedule/interval.js
|
|
10144
10154
|
var IntervalSymbolKey = "effect/ScheduleInterval";
|
|
10145
10155
|
var IntervalTypeId = /* @__PURE__ */ Symbol.for(IntervalSymbolKey);
|
|
10146
|
-
var
|
|
10156
|
+
var empty25 = {
|
|
10147
10157
|
[IntervalTypeId]: IntervalTypeId,
|
|
10148
10158
|
startMillis: 0,
|
|
10149
10159
|
endMillis: 0
|
|
10150
10160
|
};
|
|
10151
10161
|
var make34 = (startMillis, endMillis) => {
|
|
10152
10162
|
if (startMillis > endMillis) {
|
|
10153
|
-
return
|
|
10163
|
+
return empty25;
|
|
10154
10164
|
}
|
|
10155
10165
|
return {
|
|
10156
10166
|
[IntervalTypeId]: IntervalTypeId,
|
|
@@ -10180,7 +10190,7 @@ var after = (startMilliseconds) => {
|
|
|
10180
10190
|
};
|
|
10181
10191
|
|
|
10182
10192
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/ScheduleInterval.js
|
|
10183
|
-
var
|
|
10193
|
+
var empty26 = empty25;
|
|
10184
10194
|
var lessThan3 = lessThan2;
|
|
10185
10195
|
var isEmpty7 = isEmpty6;
|
|
10186
10196
|
var intersect2 = intersect;
|
|
@@ -10195,7 +10205,7 @@ var make36 = (intervals) => {
|
|
|
10195
10205
|
intervals
|
|
10196
10206
|
};
|
|
10197
10207
|
};
|
|
10198
|
-
var intersect3 = /* @__PURE__ */ dual(2, (self, that) => intersectLoop(self.intervals, that.intervals,
|
|
10208
|
+
var intersect3 = /* @__PURE__ */ dual(2, (self, that) => intersectLoop(self.intervals, that.intervals, empty3()));
|
|
10199
10209
|
var intersectLoop = (_left, _right, _acc) => {
|
|
10200
10210
|
let left3 = _left;
|
|
10201
10211
|
let right3 = _right;
|
|
@@ -10213,10 +10223,10 @@ var intersectLoop = (_left, _right, _acc) => {
|
|
|
10213
10223
|
return make36(reverse2(acc));
|
|
10214
10224
|
};
|
|
10215
10225
|
var start = (self) => {
|
|
10216
|
-
return pipe(self.intervals, head2, getOrElse(() =>
|
|
10226
|
+
return pipe(self.intervals, head2, getOrElse(() => empty26)).startMillis;
|
|
10217
10227
|
};
|
|
10218
10228
|
var end = (self) => {
|
|
10219
|
-
return pipe(self.intervals, head2, getOrElse(() =>
|
|
10229
|
+
return pipe(self.intervals, head2, getOrElse(() => empty26)).endMillis;
|
|
10220
10230
|
};
|
|
10221
10231
|
var lessThan4 = /* @__PURE__ */ dual(2, (self, that) => start(self) < start(that));
|
|
10222
10232
|
var isNonEmpty3 = (self) => {
|
|
@@ -10866,9 +10876,9 @@ var make39 = (options3) => new RuntimeImpl(options3.context, options3.runtimeFla
|
|
|
10866
10876
|
var runtime2 = () => withFiberRuntime((state, status2) => succeed(new RuntimeImpl(state.getFiberRef(currentContext), status2.runtimeFlags, state.getFiberRefs())));
|
|
10867
10877
|
var defaultRuntimeFlags = /* @__PURE__ */ make16(Interruption, CooperativeYielding, RuntimeMetrics);
|
|
10868
10878
|
var defaultRuntime = /* @__PURE__ */ make39({
|
|
10869
|
-
context: /* @__PURE__ */
|
|
10879
|
+
context: /* @__PURE__ */ empty9(),
|
|
10870
10880
|
runtimeFlags: defaultRuntimeFlags,
|
|
10871
|
-
fiberRefs: /* @__PURE__ */
|
|
10881
|
+
fiberRefs: /* @__PURE__ */ empty18()
|
|
10872
10882
|
});
|
|
10873
10883
|
var unsafeForkEffect = /* @__PURE__ */ unsafeFork3(defaultRuntime);
|
|
10874
10884
|
var unsafeRunPromiseEffect = /* @__PURE__ */ unsafeRunPromise(defaultRuntime);
|
|
@@ -11044,7 +11054,7 @@ var mergeAll2 = (...layers) => {
|
|
|
11044
11054
|
}
|
|
11045
11055
|
return final;
|
|
11046
11056
|
};
|
|
11047
|
-
var scopedDiscard = (effect3) => scopedContext(pipe(effect3, as(
|
|
11057
|
+
var scopedDiscard = (effect3) => scopedContext(pipe(effect3, as(empty9())));
|
|
11048
11058
|
var scopedContext = (effect3) => {
|
|
11049
11059
|
const scoped5 = Object.create(proto3);
|
|
11050
11060
|
scoped5._op_layer = OP_SCOPED;
|
|
@@ -11054,7 +11064,7 @@ var scopedContext = (effect3) => {
|
|
|
11054
11064
|
var succeedContext = (context5) => {
|
|
11055
11065
|
return fromEffectContext(succeed(context5));
|
|
11056
11066
|
};
|
|
11057
|
-
var
|
|
11067
|
+
var empty28 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty9());
|
|
11058
11068
|
var suspend3 = (evaluate2) => {
|
|
11059
11069
|
const suspend8 = Object.create(proto3);
|
|
11060
11070
|
suspend8._op_layer = OP_SUSPEND;
|
|
@@ -11160,7 +11170,7 @@ var makeNode = (value2) => ({
|
|
|
11160
11170
|
prev: void 0,
|
|
11161
11171
|
next: void 0
|
|
11162
11172
|
});
|
|
11163
|
-
var
|
|
11173
|
+
var empty29 = () => {
|
|
11164
11174
|
const list = Object.create(MutableListProto);
|
|
11165
11175
|
list.head = void 0;
|
|
11166
11176
|
list.tail = void 0;
|
|
@@ -11241,7 +11251,7 @@ var MutableQueueProto = {
|
|
|
11241
11251
|
};
|
|
11242
11252
|
var make40 = (capacity3) => {
|
|
11243
11253
|
const queue = Object.create(MutableQueueProto);
|
|
11244
|
-
queue.queue =
|
|
11254
|
+
queue.queue = empty29();
|
|
11245
11255
|
queue.capacity = capacity3;
|
|
11246
11256
|
return queue;
|
|
11247
11257
|
};
|
|
@@ -11261,7 +11271,7 @@ var offer = /* @__PURE__ */ dual(2, (self, value2) => {
|
|
|
11261
11271
|
var offerAll = /* @__PURE__ */ dual(2, (self, values3) => {
|
|
11262
11272
|
const iterator = values3[Symbol.iterator]();
|
|
11263
11273
|
let next;
|
|
11264
|
-
let remainder2 =
|
|
11274
|
+
let remainder2 = empty3();
|
|
11265
11275
|
let offering = true;
|
|
11266
11276
|
while (offering && (next = iterator.next()) && !next.done) {
|
|
11267
11277
|
offering = offer(next.value)(self);
|
|
@@ -11279,7 +11289,7 @@ var poll2 = /* @__PURE__ */ dual(2, (self, def) => {
|
|
|
11279
11289
|
return shift(self.queue);
|
|
11280
11290
|
});
|
|
11281
11291
|
var pollUpTo = /* @__PURE__ */ dual(2, (self, n) => {
|
|
11282
|
-
let result =
|
|
11292
|
+
let result = empty3();
|
|
11283
11293
|
let count2 = 0;
|
|
11284
11294
|
while (count2 < n) {
|
|
11285
11295
|
const element = poll2(EmptyMutableQueue)(self);
|
|
@@ -11379,7 +11389,7 @@ var pretty4 = /* @__PURE__ */ replace(defaultLogger, prettyLogger2);
|
|
|
11379
11389
|
|
|
11380
11390
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/Layer.js
|
|
11381
11391
|
var effect = fromEffect3;
|
|
11382
|
-
var
|
|
11392
|
+
var empty30 = empty28;
|
|
11383
11393
|
var mergeAll4 = mergeAll2;
|
|
11384
11394
|
|
|
11385
11395
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/internal/redacted.js
|
|
@@ -12313,9 +12323,9 @@ var Refinement = class {
|
|
|
12313
12323
|
* @since 3.10.0
|
|
12314
12324
|
*/
|
|
12315
12325
|
_tag = "Refinement";
|
|
12316
|
-
constructor(from,
|
|
12326
|
+
constructor(from, filter12, annotations2 = {}) {
|
|
12317
12327
|
this.from = from;
|
|
12318
|
-
this.filter =
|
|
12328
|
+
this.filter = filter12;
|
|
12319
12329
|
this.annotations = annotations2;
|
|
12320
12330
|
}
|
|
12321
12331
|
/**
|
|
@@ -14454,14 +14464,14 @@ var intersectUnionMembers = (xs, ys, path) => flatMap2(xs, (x) => flatMap2(ys, (
|
|
|
14454
14464
|
}));
|
|
14455
14465
|
var extend3 = /* @__PURE__ */ dual(2, (self, that) => make43(extendAST(self.ast, that.ast, [])));
|
|
14456
14466
|
var RefineSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/Refine");
|
|
14457
|
-
function makeRefineClass(from,
|
|
14467
|
+
function makeRefineClass(from, filter12, ast) {
|
|
14458
14468
|
return class RefineClass extends make43(ast) {
|
|
14459
14469
|
static annotations(annotations2) {
|
|
14460
14470
|
return makeRefineClass(this.from, this.filter, mergeSchemaAnnotations(this.ast, annotations2));
|
|
14461
14471
|
}
|
|
14462
14472
|
static [RefineSchemaId] = from;
|
|
14463
14473
|
static from = from;
|
|
14464
|
-
static filter =
|
|
14474
|
+
static filter = filter12;
|
|
14465
14475
|
static make = (a, options3) => {
|
|
14466
14476
|
return getDisableValidationMakeOption(options3) ? a : validateSync(this)(a);
|
|
14467
14477
|
};
|
|
@@ -14495,13 +14505,13 @@ var toFilterParseIssue = (out, ast, input) => {
|
|
|
14495
14505
|
}
|
|
14496
14506
|
return none2();
|
|
14497
14507
|
};
|
|
14498
|
-
function
|
|
14508
|
+
function filter9(predicate, annotations2) {
|
|
14499
14509
|
return (self) => {
|
|
14500
|
-
function
|
|
14510
|
+
function filter12(input, options3, ast2) {
|
|
14501
14511
|
return toFilterParseIssue(predicate(input, options3, ast2), ast2, input);
|
|
14502
14512
|
}
|
|
14503
|
-
const ast = new Refinement(self.ast,
|
|
14504
|
-
return makeRefineClass(self,
|
|
14513
|
+
const ast = new Refinement(self.ast, filter12, toASTAnnotations(annotations2));
|
|
14514
|
+
return makeRefineClass(self, filter12, ast);
|
|
14505
14515
|
};
|
|
14506
14516
|
}
|
|
14507
14517
|
function makeTransformationClass(from, to, ast) {
|
|
@@ -14520,7 +14530,7 @@ var transform2 = /* @__PURE__ */ dual((args2) => isSchema(args2[0]) && isSchema(
|
|
|
14520
14530
|
encode: (toI, _options, _ast, toA) => succeed8(options3.encode(toI, toA))
|
|
14521
14531
|
}));
|
|
14522
14532
|
var MinLengthSchemaId2 = MinLengthSchemaId;
|
|
14523
|
-
var minLength = (minLength2, annotations2) => (self) => self.pipe(
|
|
14533
|
+
var minLength = (minLength2, annotations2) => (self) => self.pipe(filter9((a) => a.length >= minLength2, {
|
|
14524
14534
|
schemaId: MinLengthSchemaId2,
|
|
14525
14535
|
title: `minLength(${minLength2})`,
|
|
14526
14536
|
description: `a string at least ${minLength2} character(s) long`,
|
|
@@ -14532,7 +14542,7 @@ var minLength = (minLength2, annotations2) => (self) => self.pipe(filter8((a) =>
|
|
|
14532
14542
|
var StartsWithSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/StartsWith");
|
|
14533
14543
|
var startsWith = (startsWith2, annotations2) => (self) => {
|
|
14534
14544
|
const formatted = JSON.stringify(startsWith2);
|
|
14535
|
-
return self.pipe(
|
|
14545
|
+
return self.pipe(filter9((a) => a.startsWith(startsWith2), {
|
|
14536
14546
|
schemaId: StartsWithSchemaId,
|
|
14537
14547
|
[StartsWithSchemaId]: {
|
|
14538
14548
|
startsWith: startsWith2
|
|
@@ -14909,7 +14919,7 @@ var QueueImpl = class extends Class2 {
|
|
|
14909
14919
|
return interrupt2;
|
|
14910
14920
|
}
|
|
14911
14921
|
const values3 = fromIterable(iterable);
|
|
14912
|
-
const pTakers = this.queue.length() === 0 ? fromIterable(unsafePollN(this.takers, values3.length)) :
|
|
14922
|
+
const pTakers = this.queue.length() === 0 ? fromIterable(unsafePollN(this.takers, values3.length)) : empty2;
|
|
14913
14923
|
const [forTakers, remaining] = pipe(values3, splitAt(pTakers.length));
|
|
14914
14924
|
for (let i = 0; i < pTakers.length; i++) {
|
|
14915
14925
|
const taker = pTakers[i];
|
|
@@ -14962,7 +14972,7 @@ var QueueImpl = class extends Class2 {
|
|
|
14962
14972
|
}));
|
|
14963
14973
|
}
|
|
14964
14974
|
takeBetween(min3, max5) {
|
|
14965
|
-
return suspend(() => takeRemainderLoop(this, min3, max5,
|
|
14975
|
+
return suspend(() => takeRemainderLoop(this, min3, max5, empty3()));
|
|
14966
14976
|
}
|
|
14967
14977
|
};
|
|
14968
14978
|
var takeRemainderLoop = (self, min3, max5, acc) => {
|
|
@@ -15078,7 +15088,7 @@ var BackPressureStrategy = class {
|
|
|
15078
15088
|
}
|
|
15079
15089
|
}
|
|
15080
15090
|
unsafeRemove(deferred) {
|
|
15081
|
-
unsafeOfferAll(this.putters, pipe(unsafePollAll(this.putters),
|
|
15091
|
+
unsafeOfferAll(this.putters, pipe(unsafePollAll(this.putters), filter4(([, _]) => _ !== deferred)));
|
|
15082
15092
|
}
|
|
15083
15093
|
};
|
|
15084
15094
|
var DroppingStrategy = class {
|
|
@@ -15110,7 +15120,7 @@ var unsafePollN = (queue, max5) => {
|
|
|
15110
15120
|
return pipe(queue, pollUpTo(max5));
|
|
15111
15121
|
};
|
|
15112
15122
|
var unsafeRemove = (queue, a) => {
|
|
15113
|
-
unsafeOfferAll(queue, pipe(unsafePollAll(queue),
|
|
15123
|
+
unsafeOfferAll(queue, pipe(unsafePollAll(queue), filter4((b) => a !== b)));
|
|
15114
15124
|
};
|
|
15115
15125
|
var unsafeCompleteTakers = (strategy, queue, takers) => {
|
|
15116
15126
|
let keepPolling = true;
|
|
@@ -16849,8 +16859,31 @@ var BaseAttributes = Record({
|
|
|
16849
16859
|
key: String$,
|
|
16850
16860
|
value: BaseAttributeValue
|
|
16851
16861
|
});
|
|
16852
|
-
var
|
|
16853
|
-
|
|
16862
|
+
var BasePrivateAttributes = transform2(BaseAttributes, BaseAttributes, {
|
|
16863
|
+
decode: filter2((value2, key) => key.startsWith("_")),
|
|
16864
|
+
encode: identity
|
|
16865
|
+
});
|
|
16866
|
+
var BasePublicAttributes = transform2(BaseAttributes, BaseAttributes, {
|
|
16867
|
+
decode: filter2((value2, key) => !key.startsWith("_")),
|
|
16868
|
+
encode: identity
|
|
16869
|
+
});
|
|
16870
|
+
var BasePrivateAttributesArray = transform2(
|
|
16871
|
+
BasePrivateAttributes,
|
|
16872
|
+
Array$(
|
|
16873
|
+
Struct({ key: String$, value: BaseAttributeValue })
|
|
16874
|
+
),
|
|
16875
|
+
{
|
|
16876
|
+
decode: (record2) => toEntries(record2).map(([key, value2]) => ({ key, value: value2 })),
|
|
16877
|
+
encode: (array3) => fromEntries(
|
|
16878
|
+
pipe(
|
|
16879
|
+
array3,
|
|
16880
|
+
map4(({ key, value: value2 }) => [key, value2])
|
|
16881
|
+
)
|
|
16882
|
+
)
|
|
16883
|
+
}
|
|
16884
|
+
);
|
|
16885
|
+
var BasePublicAttributesArray = transform2(
|
|
16886
|
+
BasePrivateAttributes,
|
|
16854
16887
|
Array$(
|
|
16855
16888
|
Struct({ key: String$, value: BaseAttributeValue })
|
|
16856
16889
|
),
|
|
@@ -16867,16 +16900,29 @@ var BaseAttributesArray = transform2(
|
|
|
16867
16900
|
var Attributes = transform2(
|
|
16868
16901
|
BaseAttributes,
|
|
16869
16902
|
Struct({
|
|
16870
|
-
|
|
16871
|
-
|
|
16903
|
+
private: Struct({
|
|
16904
|
+
array: BasePrivateAttributesArray,
|
|
16905
|
+
record: BasePrivateAttributes
|
|
16906
|
+
}),
|
|
16907
|
+
public: Struct({
|
|
16908
|
+
array: BasePublicAttributesArray,
|
|
16909
|
+
record: BasePublicAttributes
|
|
16910
|
+
})
|
|
16872
16911
|
}),
|
|
16873
16912
|
{
|
|
16874
16913
|
decode: (attributes) => ({
|
|
16875
|
-
|
|
16876
|
-
|
|
16914
|
+
private: {
|
|
16915
|
+
array: attributes,
|
|
16916
|
+
record: attributes
|
|
16917
|
+
},
|
|
16918
|
+
public: {
|
|
16919
|
+
array: attributes,
|
|
16920
|
+
record: attributes
|
|
16921
|
+
}
|
|
16877
16922
|
}),
|
|
16878
16923
|
encode: (attributes) => ({
|
|
16879
|
-
...attributes.record
|
|
16924
|
+
...attributes.private.record,
|
|
16925
|
+
...attributes.public.record
|
|
16880
16926
|
})
|
|
16881
16927
|
}
|
|
16882
16928
|
);
|
|
@@ -16978,8 +17024,14 @@ var LineItem = Struct({
|
|
|
16978
17024
|
id: Resource_exports.ID,
|
|
16979
17025
|
properties: optionalWith(Attributes, {
|
|
16980
17026
|
default: () => ({
|
|
16981
|
-
|
|
16982
|
-
|
|
17027
|
+
private: {
|
|
17028
|
+
array: [],
|
|
17029
|
+
record: {}
|
|
17030
|
+
},
|
|
17031
|
+
public: {
|
|
17032
|
+
array: [],
|
|
17033
|
+
record: {}
|
|
17034
|
+
}
|
|
16983
17035
|
}),
|
|
16984
17036
|
nullable: true
|
|
16985
17037
|
}),
|
|
@@ -17030,8 +17082,14 @@ var Cart = Struct({
|
|
|
17030
17082
|
note: NullOr(String$),
|
|
17031
17083
|
attributes: optionalWith(Attributes, {
|
|
17032
17084
|
default: () => ({
|
|
17033
|
-
|
|
17034
|
-
|
|
17085
|
+
private: {
|
|
17086
|
+
array: [],
|
|
17087
|
+
record: {}
|
|
17088
|
+
},
|
|
17089
|
+
public: {
|
|
17090
|
+
array: [],
|
|
17091
|
+
record: {}
|
|
17092
|
+
}
|
|
17035
17093
|
}),
|
|
17036
17094
|
nullable: true
|
|
17037
17095
|
}),
|
|
@@ -17349,10 +17407,10 @@ var Proto3 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null),
|
|
|
17349
17407
|
}
|
|
17350
17408
|
});
|
|
17351
17409
|
var make49 = (input) => Object.assign(Object.create(Proto3), input);
|
|
17352
|
-
var
|
|
17410
|
+
var empty32 = /* @__PURE__ */ Object.create(Proto3);
|
|
17353
17411
|
var fromInput2 = (input) => {
|
|
17354
17412
|
if (input === void 0) {
|
|
17355
|
-
return
|
|
17413
|
+
return empty32;
|
|
17356
17414
|
} else if (Symbol.iterator in input) {
|
|
17357
17415
|
const out2 = Object.create(Proto3);
|
|
17358
17416
|
for (const [k, v] of input) {
|
|
@@ -17497,11 +17555,11 @@ var fromInputNested = (input) => {
|
|
|
17497
17555
|
}
|
|
17498
17556
|
return out;
|
|
17499
17557
|
};
|
|
17500
|
-
var
|
|
17558
|
+
var empty33 = [];
|
|
17501
17559
|
var setAll4 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
17502
17560
|
const toSet3 = fromInput3(input);
|
|
17503
17561
|
const keys6 = toSet3.map(([k]) => k);
|
|
17504
|
-
return appendAll(
|
|
17562
|
+
return appendAll(filter3(self, ([k]) => keys6.includes(k)), toSet3);
|
|
17505
17563
|
});
|
|
17506
17564
|
var makeUrl = (url, params, hash2) => {
|
|
17507
17565
|
try {
|
|
@@ -17593,7 +17651,7 @@ var EmptyImpl = class extends BodyBase {
|
|
|
17593
17651
|
};
|
|
17594
17652
|
}
|
|
17595
17653
|
};
|
|
17596
|
-
var
|
|
17654
|
+
var empty34 = /* @__PURE__ */ new EmptyImpl();
|
|
17597
17655
|
var Uint8ArrayImpl = class extends BodyBase {
|
|
17598
17656
|
body;
|
|
17599
17657
|
contentType;
|
|
@@ -17659,8 +17717,8 @@ function makeInternal(method, url, urlParams, hash2, headers, body) {
|
|
|
17659
17717
|
self.body = body;
|
|
17660
17718
|
return self;
|
|
17661
17719
|
}
|
|
17662
|
-
var
|
|
17663
|
-
var make50 = (method) => (url, options3) => modify4(
|
|
17720
|
+
var empty35 = /* @__PURE__ */ makeInternal("GET", "", empty33, /* @__PURE__ */ none2(), empty32, empty34);
|
|
17721
|
+
var make50 = (method) => (url, options3) => modify4(empty35, {
|
|
17664
17722
|
method,
|
|
17665
17723
|
url,
|
|
17666
17724
|
...options3 ?? void 0
|
|
@@ -18300,7 +18358,7 @@ var update5 = make57;
|
|
|
18300
18358
|
// src/index.ts
|
|
18301
18359
|
var validateCart = (cart) => runSync(decodeUnknown2(Cart)(cart));
|
|
18302
18360
|
var createAjaxCartApi = ({ debug = false }) => {
|
|
18303
|
-
let baseLayer =
|
|
18361
|
+
let baseLayer = empty30;
|
|
18304
18362
|
let minimumLogLevel2 = None3;
|
|
18305
18363
|
let loggerLayer = pretty4;
|
|
18306
18364
|
if (debug) {
|