@timardex/cluemart-server-shared 1.1.39 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Affiliate-CBp0M850.d.ts → Affiliate-CMJdECzs.d.mts} +28 -28
- package/dist/{Affiliate-BLh0EcNI.d.mts → Affiliate-VLZdlt5K.d.ts} +28 -28
- package/dist/chunk-3QS3WKRC.mjs +31 -0
- package/dist/chunk-3QS3WKRC.mjs.map +1 -0
- package/dist/{chunk-6RUQHYTK.mjs → chunk-EGUFWI7R.mjs} +1682 -112
- package/dist/chunk-EGUFWI7R.mjs.map +1 -0
- package/dist/{index-zC8a3adw.d.mts → index-Bq-lT7a2.d.mts} +2 -2
- package/dist/{index-zC8a3adw.d.ts → index-Bq-lT7a2.d.ts} +2 -2
- package/dist/index.cjs +1681 -113
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +49 -29
- package/dist/index.d.ts +49 -29
- package/dist/index.mjs +1704 -113
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +1679 -111
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +28 -8
- package/dist/mongoose/index.d.ts +28 -8
- package/dist/mongoose/index.mjs +2 -1
- package/dist/service/index.cjs +1681 -113
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +2 -2
- package/dist/service/index.d.ts +2 -2
- package/dist/service/index.mjs +4 -3
- package/dist/service/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -0
- package/package.json +2 -2
- package/dist/chunk-6RUQHYTK.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
8
11
|
var __export = (target, all) => {
|
|
9
12
|
for (var name in all)
|
|
10
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -27,6 +30,1467 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
30
|
));
|
|
28
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
32
|
|
|
33
|
+
// node_modules/react/cjs/react.production.js
|
|
34
|
+
var require_react_production = __commonJS({
|
|
35
|
+
"node_modules/react/cjs/react.production.js"(exports2) {
|
|
36
|
+
"use strict";
|
|
37
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
38
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
39
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
40
|
+
var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
|
|
41
|
+
var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
|
|
42
|
+
var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
|
|
43
|
+
var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
|
|
44
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
45
|
+
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
|
|
46
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
47
|
+
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
48
|
+
var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
|
|
49
|
+
var REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition");
|
|
50
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
51
|
+
function getIteratorFn(maybeIterable) {
|
|
52
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
53
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
54
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
55
|
+
}
|
|
56
|
+
var ReactNoopUpdateQueue = {
|
|
57
|
+
isMounted: function() {
|
|
58
|
+
return false;
|
|
59
|
+
},
|
|
60
|
+
enqueueForceUpdate: function() {
|
|
61
|
+
},
|
|
62
|
+
enqueueReplaceState: function() {
|
|
63
|
+
},
|
|
64
|
+
enqueueSetState: function() {
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
var assign = Object.assign;
|
|
68
|
+
var emptyObject = {};
|
|
69
|
+
function Component(props, context, updater) {
|
|
70
|
+
this.props = props;
|
|
71
|
+
this.context = context;
|
|
72
|
+
this.refs = emptyObject;
|
|
73
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
74
|
+
}
|
|
75
|
+
Component.prototype.isReactComponent = {};
|
|
76
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
77
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
78
|
+
throw Error(
|
|
79
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
80
|
+
);
|
|
81
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
82
|
+
};
|
|
83
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
84
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
85
|
+
};
|
|
86
|
+
function ComponentDummy() {
|
|
87
|
+
}
|
|
88
|
+
ComponentDummy.prototype = Component.prototype;
|
|
89
|
+
function PureComponent(props, context, updater) {
|
|
90
|
+
this.props = props;
|
|
91
|
+
this.context = context;
|
|
92
|
+
this.refs = emptyObject;
|
|
93
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
94
|
+
}
|
|
95
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
96
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
97
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
98
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
99
|
+
var isArrayImpl = Array.isArray;
|
|
100
|
+
function noop() {
|
|
101
|
+
}
|
|
102
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null };
|
|
103
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
104
|
+
function ReactElement(type, key, props) {
|
|
105
|
+
var refProp = props.ref;
|
|
106
|
+
return {
|
|
107
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
108
|
+
type,
|
|
109
|
+
key,
|
|
110
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
111
|
+
props
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
115
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
116
|
+
}
|
|
117
|
+
function isValidElement(object) {
|
|
118
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
119
|
+
}
|
|
120
|
+
function escape(key) {
|
|
121
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
122
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
123
|
+
return escaperLookup[match];
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
127
|
+
function getElementKey(element, index) {
|
|
128
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
129
|
+
}
|
|
130
|
+
function resolveThenable(thenable) {
|
|
131
|
+
switch (thenable.status) {
|
|
132
|
+
case "fulfilled":
|
|
133
|
+
return thenable.value;
|
|
134
|
+
case "rejected":
|
|
135
|
+
throw thenable.reason;
|
|
136
|
+
default:
|
|
137
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
138
|
+
function(fulfilledValue) {
|
|
139
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
140
|
+
},
|
|
141
|
+
function(error) {
|
|
142
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
143
|
+
}
|
|
144
|
+
)), thenable.status) {
|
|
145
|
+
case "fulfilled":
|
|
146
|
+
return thenable.value;
|
|
147
|
+
case "rejected":
|
|
148
|
+
throw thenable.reason;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
throw thenable;
|
|
152
|
+
}
|
|
153
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
154
|
+
var type = typeof children;
|
|
155
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
156
|
+
var invokeCallback = false;
|
|
157
|
+
if (null === children) invokeCallback = true;
|
|
158
|
+
else
|
|
159
|
+
switch (type) {
|
|
160
|
+
case "bigint":
|
|
161
|
+
case "string":
|
|
162
|
+
case "number":
|
|
163
|
+
invokeCallback = true;
|
|
164
|
+
break;
|
|
165
|
+
case "object":
|
|
166
|
+
switch (children.$$typeof) {
|
|
167
|
+
case REACT_ELEMENT_TYPE:
|
|
168
|
+
case REACT_PORTAL_TYPE:
|
|
169
|
+
invokeCallback = true;
|
|
170
|
+
break;
|
|
171
|
+
case REACT_LAZY_TYPE:
|
|
172
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
173
|
+
invokeCallback(children._payload),
|
|
174
|
+
array,
|
|
175
|
+
escapedPrefix,
|
|
176
|
+
nameSoFar,
|
|
177
|
+
callback
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (invokeCallback)
|
|
182
|
+
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
183
|
+
return c;
|
|
184
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
185
|
+
callback,
|
|
186
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
187
|
+
userProvidedKeyEscapeRegex,
|
|
188
|
+
"$&/"
|
|
189
|
+
) + "/") + invokeCallback
|
|
190
|
+
)), array.push(callback)), 1;
|
|
191
|
+
invokeCallback = 0;
|
|
192
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
193
|
+
if (isArrayImpl(children))
|
|
194
|
+
for (var i = 0; i < children.length; i++)
|
|
195
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
196
|
+
nameSoFar,
|
|
197
|
+
array,
|
|
198
|
+
escapedPrefix,
|
|
199
|
+
type,
|
|
200
|
+
callback
|
|
201
|
+
);
|
|
202
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
203
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
204
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
205
|
+
nameSoFar,
|
|
206
|
+
array,
|
|
207
|
+
escapedPrefix,
|
|
208
|
+
type,
|
|
209
|
+
callback
|
|
210
|
+
);
|
|
211
|
+
else if ("object" === type) {
|
|
212
|
+
if ("function" === typeof children.then)
|
|
213
|
+
return mapIntoArray(
|
|
214
|
+
resolveThenable(children),
|
|
215
|
+
array,
|
|
216
|
+
escapedPrefix,
|
|
217
|
+
nameSoFar,
|
|
218
|
+
callback
|
|
219
|
+
);
|
|
220
|
+
array = String(children);
|
|
221
|
+
throw Error(
|
|
222
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
return invokeCallback;
|
|
226
|
+
}
|
|
227
|
+
function mapChildren(children, func, context) {
|
|
228
|
+
if (null == children) return children;
|
|
229
|
+
var result = [], count = 0;
|
|
230
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
231
|
+
return func.call(context, child, count++);
|
|
232
|
+
});
|
|
233
|
+
return result;
|
|
234
|
+
}
|
|
235
|
+
function lazyInitializer(payload) {
|
|
236
|
+
if (-1 === payload._status) {
|
|
237
|
+
var ctor = payload._result, thenable = ctor();
|
|
238
|
+
thenable.then(
|
|
239
|
+
function(moduleObject) {
|
|
240
|
+
if (0 === payload._status || -1 === payload._status)
|
|
241
|
+
payload._status = 1, payload._result = moduleObject, void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
242
|
+
},
|
|
243
|
+
function(error) {
|
|
244
|
+
if (0 === payload._status || -1 === payload._status)
|
|
245
|
+
payload._status = 2, payload._result = error, void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
249
|
+
}
|
|
250
|
+
if (1 === payload._status) return payload._result.default;
|
|
251
|
+
throw payload._result;
|
|
252
|
+
}
|
|
253
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
254
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
255
|
+
var event = new window.ErrorEvent("error", {
|
|
256
|
+
bubbles: true,
|
|
257
|
+
cancelable: true,
|
|
258
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
259
|
+
error
|
|
260
|
+
});
|
|
261
|
+
if (!window.dispatchEvent(event)) return;
|
|
262
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
263
|
+
process.emit("uncaughtException", error);
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
console.error(error);
|
|
267
|
+
};
|
|
268
|
+
function startTransition(scope) {
|
|
269
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
270
|
+
currentTransition.types = null !== prevTransition ? prevTransition.types : null;
|
|
271
|
+
ReactSharedInternals.T = currentTransition;
|
|
272
|
+
try {
|
|
273
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
274
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
275
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
276
|
+
} catch (error) {
|
|
277
|
+
reportGlobalError(error);
|
|
278
|
+
} finally {
|
|
279
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function addTransitionType(type) {
|
|
283
|
+
var transition = ReactSharedInternals.T;
|
|
284
|
+
if (null !== transition) {
|
|
285
|
+
var transitionTypes = transition.types;
|
|
286
|
+
null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
|
|
287
|
+
} else startTransition(addTransitionType.bind(null, type));
|
|
288
|
+
}
|
|
289
|
+
var Children = {
|
|
290
|
+
map: mapChildren,
|
|
291
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
292
|
+
mapChildren(
|
|
293
|
+
children,
|
|
294
|
+
function() {
|
|
295
|
+
forEachFunc.apply(this, arguments);
|
|
296
|
+
},
|
|
297
|
+
forEachContext
|
|
298
|
+
);
|
|
299
|
+
},
|
|
300
|
+
count: function(children) {
|
|
301
|
+
var n = 0;
|
|
302
|
+
mapChildren(children, function() {
|
|
303
|
+
n++;
|
|
304
|
+
});
|
|
305
|
+
return n;
|
|
306
|
+
},
|
|
307
|
+
toArray: function(children) {
|
|
308
|
+
return mapChildren(children, function(child) {
|
|
309
|
+
return child;
|
|
310
|
+
}) || [];
|
|
311
|
+
},
|
|
312
|
+
only: function(children) {
|
|
313
|
+
if (!isValidElement(children))
|
|
314
|
+
throw Error(
|
|
315
|
+
"React.Children.only expected to receive a single React element child."
|
|
316
|
+
);
|
|
317
|
+
return children;
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
exports2.Activity = REACT_ACTIVITY_TYPE;
|
|
321
|
+
exports2.Children = Children;
|
|
322
|
+
exports2.Component = Component;
|
|
323
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
324
|
+
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
325
|
+
exports2.PureComponent = PureComponent;
|
|
326
|
+
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
327
|
+
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
328
|
+
exports2.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
329
|
+
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
330
|
+
exports2.__COMPILER_RUNTIME = {
|
|
331
|
+
__proto__: null,
|
|
332
|
+
c: function(size) {
|
|
333
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
exports2.addTransitionType = addTransitionType;
|
|
337
|
+
exports2.cache = function(fn) {
|
|
338
|
+
return function() {
|
|
339
|
+
return fn.apply(null, arguments);
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
exports2.cacheSignal = function() {
|
|
343
|
+
return null;
|
|
344
|
+
};
|
|
345
|
+
exports2.cloneElement = function(element, config, children) {
|
|
346
|
+
if (null === element || void 0 === element)
|
|
347
|
+
throw Error(
|
|
348
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
349
|
+
);
|
|
350
|
+
var props = assign({}, element.props), key = element.key;
|
|
351
|
+
if (null != config)
|
|
352
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
353
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
354
|
+
var propName = arguments.length - 2;
|
|
355
|
+
if (1 === propName) props.children = children;
|
|
356
|
+
else if (1 < propName) {
|
|
357
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
358
|
+
childArray[i] = arguments[i + 2];
|
|
359
|
+
props.children = childArray;
|
|
360
|
+
}
|
|
361
|
+
return ReactElement(element.type, key, props);
|
|
362
|
+
};
|
|
363
|
+
exports2.createContext = function(defaultValue) {
|
|
364
|
+
defaultValue = {
|
|
365
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
366
|
+
_currentValue: defaultValue,
|
|
367
|
+
_currentValue2: defaultValue,
|
|
368
|
+
_threadCount: 0,
|
|
369
|
+
Provider: null,
|
|
370
|
+
Consumer: null
|
|
371
|
+
};
|
|
372
|
+
defaultValue.Provider = defaultValue;
|
|
373
|
+
defaultValue.Consumer = {
|
|
374
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
375
|
+
_context: defaultValue
|
|
376
|
+
};
|
|
377
|
+
return defaultValue;
|
|
378
|
+
};
|
|
379
|
+
exports2.createElement = function(type, config, children) {
|
|
380
|
+
var propName, props = {}, key = null;
|
|
381
|
+
if (null != config)
|
|
382
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
383
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
384
|
+
var childrenLength = arguments.length - 2;
|
|
385
|
+
if (1 === childrenLength) props.children = children;
|
|
386
|
+
else if (1 < childrenLength) {
|
|
387
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
388
|
+
childArray[i] = arguments[i + 2];
|
|
389
|
+
props.children = childArray;
|
|
390
|
+
}
|
|
391
|
+
if (type && type.defaultProps)
|
|
392
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
393
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
394
|
+
return ReactElement(type, key, props);
|
|
395
|
+
};
|
|
396
|
+
exports2.createRef = function() {
|
|
397
|
+
return { current: null };
|
|
398
|
+
};
|
|
399
|
+
exports2.forwardRef = function(render) {
|
|
400
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
401
|
+
};
|
|
402
|
+
exports2.isValidElement = isValidElement;
|
|
403
|
+
exports2.lazy = function(ctor) {
|
|
404
|
+
return {
|
|
405
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
406
|
+
_payload: { _status: -1, _result: ctor },
|
|
407
|
+
_init: lazyInitializer
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
exports2.memo = function(type, compare) {
|
|
411
|
+
return {
|
|
412
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
413
|
+
type,
|
|
414
|
+
compare: void 0 === compare ? null : compare
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
exports2.startTransition = startTransition;
|
|
418
|
+
exports2.unstable_useCacheRefresh = function() {
|
|
419
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
420
|
+
};
|
|
421
|
+
exports2.use = function(usable) {
|
|
422
|
+
return ReactSharedInternals.H.use(usable);
|
|
423
|
+
};
|
|
424
|
+
exports2.useActionState = function(action, initialState, permalink) {
|
|
425
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
426
|
+
};
|
|
427
|
+
exports2.useCallback = function(callback, deps) {
|
|
428
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
429
|
+
};
|
|
430
|
+
exports2.useContext = function(Context) {
|
|
431
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
432
|
+
};
|
|
433
|
+
exports2.useDebugValue = function() {
|
|
434
|
+
};
|
|
435
|
+
exports2.useDeferredValue = function(value, initialValue) {
|
|
436
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
437
|
+
};
|
|
438
|
+
exports2.useEffect = function(create, deps) {
|
|
439
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
440
|
+
};
|
|
441
|
+
exports2.useEffectEvent = function(callback) {
|
|
442
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
443
|
+
};
|
|
444
|
+
exports2.useId = function() {
|
|
445
|
+
return ReactSharedInternals.H.useId();
|
|
446
|
+
};
|
|
447
|
+
exports2.useImperativeHandle = function(ref, create, deps) {
|
|
448
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
449
|
+
};
|
|
450
|
+
exports2.useInsertionEffect = function(create, deps) {
|
|
451
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
452
|
+
};
|
|
453
|
+
exports2.useLayoutEffect = function(create, deps) {
|
|
454
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
455
|
+
};
|
|
456
|
+
exports2.useMemo = function(create, deps) {
|
|
457
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
458
|
+
};
|
|
459
|
+
exports2.useOptimistic = function(passthrough, reducer) {
|
|
460
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
461
|
+
};
|
|
462
|
+
exports2.useReducer = function(reducer, initialArg, init) {
|
|
463
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
464
|
+
};
|
|
465
|
+
exports2.useRef = function(initialValue) {
|
|
466
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
467
|
+
};
|
|
468
|
+
exports2.useState = function(initialState) {
|
|
469
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
470
|
+
};
|
|
471
|
+
exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
472
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
473
|
+
subscribe,
|
|
474
|
+
getSnapshot,
|
|
475
|
+
getServerSnapshot
|
|
476
|
+
);
|
|
477
|
+
};
|
|
478
|
+
exports2.useTransition = function() {
|
|
479
|
+
return ReactSharedInternals.H.useTransition();
|
|
480
|
+
};
|
|
481
|
+
exports2.version = "19.3.0";
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
// node_modules/react/cjs/react.development.js
|
|
486
|
+
var require_react_development = __commonJS({
|
|
487
|
+
"node_modules/react/cjs/react.development.js"(exports2, module2) {
|
|
488
|
+
"use strict";
|
|
489
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
490
|
+
function defineDeprecationWarning(methodName, info) {
|
|
491
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
492
|
+
get: function() {
|
|
493
|
+
console.warn(
|
|
494
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
495
|
+
info[0],
|
|
496
|
+
info[1]
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
function getIteratorFn(maybeIterable) {
|
|
502
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
503
|
+
return null;
|
|
504
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
505
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
506
|
+
}
|
|
507
|
+
function warnNoop(publicInstance, callerName) {
|
|
508
|
+
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
509
|
+
var warningKey = publicInstance + "." + callerName;
|
|
510
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
511
|
+
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
512
|
+
callerName,
|
|
513
|
+
publicInstance
|
|
514
|
+
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
515
|
+
}
|
|
516
|
+
function Component(props, context, updater) {
|
|
517
|
+
this.props = props;
|
|
518
|
+
this.context = context;
|
|
519
|
+
this.refs = emptyObject;
|
|
520
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
521
|
+
}
|
|
522
|
+
function ComponentDummy() {
|
|
523
|
+
}
|
|
524
|
+
function PureComponent(props, context, updater) {
|
|
525
|
+
this.props = props;
|
|
526
|
+
this.context = context;
|
|
527
|
+
this.refs = emptyObject;
|
|
528
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
529
|
+
}
|
|
530
|
+
function noop() {
|
|
531
|
+
}
|
|
532
|
+
function testStringCoercion(value) {
|
|
533
|
+
return "" + value;
|
|
534
|
+
}
|
|
535
|
+
function checkKeyStringCoercion(value) {
|
|
536
|
+
try {
|
|
537
|
+
testStringCoercion(value);
|
|
538
|
+
var JSCompiler_inline_result = false;
|
|
539
|
+
} catch (e) {
|
|
540
|
+
JSCompiler_inline_result = true;
|
|
541
|
+
}
|
|
542
|
+
if (JSCompiler_inline_result) {
|
|
543
|
+
JSCompiler_inline_result = console;
|
|
544
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
545
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
546
|
+
JSCompiler_temp_const.call(
|
|
547
|
+
JSCompiler_inline_result,
|
|
548
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
549
|
+
JSCompiler_inline_result$jscomp$0
|
|
550
|
+
);
|
|
551
|
+
return testStringCoercion(value);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
function getComponentNameFromType(type) {
|
|
555
|
+
if (null == type) return null;
|
|
556
|
+
if ("function" === typeof type)
|
|
557
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
558
|
+
if ("string" === typeof type) return type;
|
|
559
|
+
switch (type) {
|
|
560
|
+
case REACT_FRAGMENT_TYPE:
|
|
561
|
+
return "Fragment";
|
|
562
|
+
case REACT_PROFILER_TYPE:
|
|
563
|
+
return "Profiler";
|
|
564
|
+
case REACT_STRICT_MODE_TYPE:
|
|
565
|
+
return "StrictMode";
|
|
566
|
+
case REACT_SUSPENSE_TYPE:
|
|
567
|
+
return "Suspense";
|
|
568
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
569
|
+
return "SuspenseList";
|
|
570
|
+
case REACT_ACTIVITY_TYPE:
|
|
571
|
+
return "Activity";
|
|
572
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
573
|
+
return "ViewTransition";
|
|
574
|
+
}
|
|
575
|
+
if ("object" === typeof type)
|
|
576
|
+
switch ("number" === typeof type.tag && console.error(
|
|
577
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
578
|
+
), type.$$typeof) {
|
|
579
|
+
case REACT_PORTAL_TYPE:
|
|
580
|
+
return "Portal";
|
|
581
|
+
case REACT_CONTEXT_TYPE:
|
|
582
|
+
return type.displayName || "Context";
|
|
583
|
+
case REACT_CONSUMER_TYPE:
|
|
584
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
585
|
+
case REACT_FORWARD_REF_TYPE:
|
|
586
|
+
var innerType = type.render;
|
|
587
|
+
type = type.displayName;
|
|
588
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
589
|
+
return type;
|
|
590
|
+
case REACT_MEMO_TYPE:
|
|
591
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
592
|
+
case REACT_LAZY_TYPE:
|
|
593
|
+
innerType = type._payload;
|
|
594
|
+
type = type._init;
|
|
595
|
+
try {
|
|
596
|
+
return getComponentNameFromType(type(innerType));
|
|
597
|
+
} catch (x) {
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
return null;
|
|
601
|
+
}
|
|
602
|
+
function getTaskName(type) {
|
|
603
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
604
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
605
|
+
return "<...>";
|
|
606
|
+
try {
|
|
607
|
+
var name = getComponentNameFromType(type);
|
|
608
|
+
return name ? "<" + name + ">" : "<...>";
|
|
609
|
+
} catch (x) {
|
|
610
|
+
return "<...>";
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
function getOwner() {
|
|
614
|
+
var dispatcher = ReactSharedInternals.A;
|
|
615
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
616
|
+
}
|
|
617
|
+
function UnknownOwner() {
|
|
618
|
+
return Error("react-stack-top-frame");
|
|
619
|
+
}
|
|
620
|
+
function hasValidKey(config) {
|
|
621
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
622
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
623
|
+
if (getter && getter.isReactWarning) return false;
|
|
624
|
+
}
|
|
625
|
+
return void 0 !== config.key;
|
|
626
|
+
}
|
|
627
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
628
|
+
function warnAboutAccessingKey() {
|
|
629
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
630
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
631
|
+
displayName
|
|
632
|
+
));
|
|
633
|
+
}
|
|
634
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
635
|
+
Object.defineProperty(props, "key", {
|
|
636
|
+
get: warnAboutAccessingKey,
|
|
637
|
+
configurable: true
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
641
|
+
var componentName = getComponentNameFromType(this.type);
|
|
642
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
643
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
644
|
+
));
|
|
645
|
+
componentName = this.props.ref;
|
|
646
|
+
return void 0 !== componentName ? componentName : null;
|
|
647
|
+
}
|
|
648
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
649
|
+
var refProp = props.ref;
|
|
650
|
+
type = {
|
|
651
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
652
|
+
type,
|
|
653
|
+
key,
|
|
654
|
+
props,
|
|
655
|
+
_owner: owner
|
|
656
|
+
};
|
|
657
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
658
|
+
enumerable: false,
|
|
659
|
+
get: elementRefGetterWithDeprecationWarning
|
|
660
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
661
|
+
type._store = {};
|
|
662
|
+
Object.defineProperty(type._store, "validated", {
|
|
663
|
+
configurable: false,
|
|
664
|
+
enumerable: false,
|
|
665
|
+
writable: true,
|
|
666
|
+
value: 0
|
|
667
|
+
});
|
|
668
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
669
|
+
configurable: false,
|
|
670
|
+
enumerable: false,
|
|
671
|
+
writable: true,
|
|
672
|
+
value: null
|
|
673
|
+
});
|
|
674
|
+
Object.defineProperty(type, "_debugStack", {
|
|
675
|
+
configurable: false,
|
|
676
|
+
enumerable: false,
|
|
677
|
+
writable: true,
|
|
678
|
+
value: debugStack
|
|
679
|
+
});
|
|
680
|
+
Object.defineProperty(type, "_debugTask", {
|
|
681
|
+
configurable: false,
|
|
682
|
+
enumerable: false,
|
|
683
|
+
writable: true,
|
|
684
|
+
value: debugTask
|
|
685
|
+
});
|
|
686
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
687
|
+
return type;
|
|
688
|
+
}
|
|
689
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
690
|
+
newKey = ReactElement(
|
|
691
|
+
oldElement.type,
|
|
692
|
+
newKey,
|
|
693
|
+
oldElement.props,
|
|
694
|
+
oldElement._owner,
|
|
695
|
+
oldElement._debugStack,
|
|
696
|
+
oldElement._debugTask
|
|
697
|
+
);
|
|
698
|
+
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
699
|
+
return newKey;
|
|
700
|
+
}
|
|
701
|
+
function validateChildKeys(node) {
|
|
702
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
703
|
+
}
|
|
704
|
+
function isValidElement(object) {
|
|
705
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
706
|
+
}
|
|
707
|
+
function escape(key) {
|
|
708
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
709
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
710
|
+
return escaperLookup[match];
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
function getElementKey(element, index) {
|
|
714
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
715
|
+
}
|
|
716
|
+
function resolveThenable(thenable) {
|
|
717
|
+
switch (thenable.status) {
|
|
718
|
+
case "fulfilled":
|
|
719
|
+
return thenable.value;
|
|
720
|
+
case "rejected":
|
|
721
|
+
throw thenable.reason;
|
|
722
|
+
default:
|
|
723
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
724
|
+
function(fulfilledValue) {
|
|
725
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
726
|
+
},
|
|
727
|
+
function(error) {
|
|
728
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
729
|
+
}
|
|
730
|
+
)), thenable.status) {
|
|
731
|
+
case "fulfilled":
|
|
732
|
+
return thenable.value;
|
|
733
|
+
case "rejected":
|
|
734
|
+
throw thenable.reason;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
throw thenable;
|
|
738
|
+
}
|
|
739
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
740
|
+
var type = typeof children;
|
|
741
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
742
|
+
var invokeCallback = false;
|
|
743
|
+
if (null === children) invokeCallback = true;
|
|
744
|
+
else
|
|
745
|
+
switch (type) {
|
|
746
|
+
case "bigint":
|
|
747
|
+
case "string":
|
|
748
|
+
case "number":
|
|
749
|
+
invokeCallback = true;
|
|
750
|
+
break;
|
|
751
|
+
case "object":
|
|
752
|
+
switch (children.$$typeof) {
|
|
753
|
+
case REACT_ELEMENT_TYPE:
|
|
754
|
+
case REACT_PORTAL_TYPE:
|
|
755
|
+
invokeCallback = true;
|
|
756
|
+
break;
|
|
757
|
+
case REACT_LAZY_TYPE:
|
|
758
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
759
|
+
invokeCallback(children._payload),
|
|
760
|
+
array,
|
|
761
|
+
escapedPrefix,
|
|
762
|
+
nameSoFar,
|
|
763
|
+
callback
|
|
764
|
+
);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
if (invokeCallback) {
|
|
768
|
+
invokeCallback = children;
|
|
769
|
+
callback = callback(invokeCallback);
|
|
770
|
+
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
771
|
+
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
772
|
+
return c;
|
|
773
|
+
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
774
|
+
callback,
|
|
775
|
+
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
776
|
+
userProvidedKeyEscapeRegex,
|
|
777
|
+
"$&/"
|
|
778
|
+
) + "/") + childKey
|
|
779
|
+
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
780
|
+
return 1;
|
|
781
|
+
}
|
|
782
|
+
invokeCallback = 0;
|
|
783
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
784
|
+
if (isArrayImpl(children))
|
|
785
|
+
for (var i = 0; i < children.length; i++)
|
|
786
|
+
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
787
|
+
nameSoFar,
|
|
788
|
+
array,
|
|
789
|
+
escapedPrefix,
|
|
790
|
+
type,
|
|
791
|
+
callback
|
|
792
|
+
);
|
|
793
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
794
|
+
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
795
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
796
|
+
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
797
|
+
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
798
|
+
nameSoFar,
|
|
799
|
+
array,
|
|
800
|
+
escapedPrefix,
|
|
801
|
+
type,
|
|
802
|
+
callback
|
|
803
|
+
);
|
|
804
|
+
else if ("object" === type) {
|
|
805
|
+
if ("function" === typeof children.then)
|
|
806
|
+
return mapIntoArray(
|
|
807
|
+
resolveThenable(children),
|
|
808
|
+
array,
|
|
809
|
+
escapedPrefix,
|
|
810
|
+
nameSoFar,
|
|
811
|
+
callback
|
|
812
|
+
);
|
|
813
|
+
array = String(children);
|
|
814
|
+
throw Error(
|
|
815
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
816
|
+
);
|
|
817
|
+
}
|
|
818
|
+
return invokeCallback;
|
|
819
|
+
}
|
|
820
|
+
function mapChildren(children, func, context) {
|
|
821
|
+
if (null == children) return children;
|
|
822
|
+
var result = [], count = 0;
|
|
823
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
824
|
+
return func.call(context, child, count++);
|
|
825
|
+
});
|
|
826
|
+
return result;
|
|
827
|
+
}
|
|
828
|
+
function lazyInitializer(payload) {
|
|
829
|
+
if (-1 === payload._status) {
|
|
830
|
+
var resolveDebugValue = null, rejectDebugValue = null, ioInfo = payload._ioInfo;
|
|
831
|
+
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now(), ioInfo.value = new Promise(function(resolve, reject) {
|
|
832
|
+
resolveDebugValue = resolve;
|
|
833
|
+
rejectDebugValue = reject;
|
|
834
|
+
}));
|
|
835
|
+
ioInfo = payload._result;
|
|
836
|
+
var thenable = ioInfo();
|
|
837
|
+
thenable.then(
|
|
838
|
+
function(moduleObject) {
|
|
839
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
840
|
+
payload._status = 1;
|
|
841
|
+
payload._result = moduleObject;
|
|
842
|
+
var _ioInfo = payload._ioInfo;
|
|
843
|
+
if (null != _ioInfo) {
|
|
844
|
+
_ioInfo.end = performance.now();
|
|
845
|
+
var debugValue = null == moduleObject ? void 0 : moduleObject.default;
|
|
846
|
+
resolveDebugValue(debugValue);
|
|
847
|
+
_ioInfo.value.status = "fulfilled";
|
|
848
|
+
_ioInfo.value.value = debugValue;
|
|
849
|
+
}
|
|
850
|
+
void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
function(error) {
|
|
854
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
855
|
+
payload._status = 2;
|
|
856
|
+
payload._result = error;
|
|
857
|
+
var _ioInfo2 = payload._ioInfo;
|
|
858
|
+
null != _ioInfo2 && (_ioInfo2.end = performance.now(), _ioInfo2.value.then(noop, noop), rejectDebugValue(error), _ioInfo2.value.status = "rejected", _ioInfo2.value.reason = error);
|
|
859
|
+
void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
);
|
|
863
|
+
ioInfo = payload._ioInfo;
|
|
864
|
+
if (null != ioInfo) {
|
|
865
|
+
var displayName = thenable.displayName;
|
|
866
|
+
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
867
|
+
}
|
|
868
|
+
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
869
|
+
}
|
|
870
|
+
if (1 === payload._status)
|
|
871
|
+
return ioInfo = payload._result, void 0 === ioInfo && console.error(
|
|
872
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
873
|
+
ioInfo
|
|
874
|
+
), "default" in ioInfo || console.error(
|
|
875
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
876
|
+
ioInfo
|
|
877
|
+
), ioInfo.default;
|
|
878
|
+
throw payload._result;
|
|
879
|
+
}
|
|
880
|
+
function resolveDispatcher() {
|
|
881
|
+
var dispatcher = ReactSharedInternals.H;
|
|
882
|
+
null === dispatcher && console.error(
|
|
883
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
884
|
+
);
|
|
885
|
+
return dispatcher;
|
|
886
|
+
}
|
|
887
|
+
function releaseAsyncTransition() {
|
|
888
|
+
ReactSharedInternals.asyncTransitions--;
|
|
889
|
+
}
|
|
890
|
+
function startTransition(scope) {
|
|
891
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
892
|
+
currentTransition.types = null !== prevTransition ? prevTransition.types : null;
|
|
893
|
+
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
894
|
+
ReactSharedInternals.T = currentTransition;
|
|
895
|
+
try {
|
|
896
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
897
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
898
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
|
|
899
|
+
} catch (error) {
|
|
900
|
+
reportGlobalError(error);
|
|
901
|
+
} finally {
|
|
902
|
+
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
903
|
+
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
904
|
+
)), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
|
|
905
|
+
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
906
|
+
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
function addTransitionType(type) {
|
|
910
|
+
var transition = ReactSharedInternals.T;
|
|
911
|
+
if (null !== transition) {
|
|
912
|
+
var transitionTypes = transition.types;
|
|
913
|
+
null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
|
|
914
|
+
} else
|
|
915
|
+
0 === ReactSharedInternals.asyncTransitions && console.error(
|
|
916
|
+
"addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
|
|
917
|
+
), startTransition(addTransitionType.bind(null, type));
|
|
918
|
+
}
|
|
919
|
+
function enqueueTask(task) {
|
|
920
|
+
if (null === enqueueTaskImpl)
|
|
921
|
+
try {
|
|
922
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
923
|
+
enqueueTaskImpl = (module2 && module2[requireString]).call(
|
|
924
|
+
module2,
|
|
925
|
+
"timers"
|
|
926
|
+
).setImmediate;
|
|
927
|
+
} catch (_err) {
|
|
928
|
+
enqueueTaskImpl = function(callback) {
|
|
929
|
+
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
930
|
+
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
931
|
+
));
|
|
932
|
+
var channel = new MessageChannel();
|
|
933
|
+
channel.port1.onmessage = callback;
|
|
934
|
+
channel.port2.postMessage(void 0);
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
return enqueueTaskImpl(task);
|
|
938
|
+
}
|
|
939
|
+
function aggregateErrors(errors) {
|
|
940
|
+
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
941
|
+
}
|
|
942
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
943
|
+
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
944
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
945
|
+
);
|
|
946
|
+
actScopeDepth = prevActScopeDepth;
|
|
947
|
+
}
|
|
948
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
949
|
+
var queue = ReactSharedInternals.actQueue;
|
|
950
|
+
if (null !== queue)
|
|
951
|
+
if (0 !== queue.length)
|
|
952
|
+
try {
|
|
953
|
+
flushActQueue(queue);
|
|
954
|
+
enqueueTask(function() {
|
|
955
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
956
|
+
});
|
|
957
|
+
return;
|
|
958
|
+
} catch (error) {
|
|
959
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
960
|
+
}
|
|
961
|
+
else ReactSharedInternals.actQueue = null;
|
|
962
|
+
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
963
|
+
}
|
|
964
|
+
function flushActQueue(queue) {
|
|
965
|
+
if (!isFlushing) {
|
|
966
|
+
isFlushing = true;
|
|
967
|
+
var i = 0;
|
|
968
|
+
try {
|
|
969
|
+
for (; i < queue.length; i++) {
|
|
970
|
+
var callback = queue[i];
|
|
971
|
+
do {
|
|
972
|
+
ReactSharedInternals.didUsePromise = false;
|
|
973
|
+
var continuation = callback(false);
|
|
974
|
+
if (null !== continuation) {
|
|
975
|
+
if (ReactSharedInternals.didUsePromise) {
|
|
976
|
+
queue[i] = callback;
|
|
977
|
+
queue.splice(0, i);
|
|
978
|
+
return;
|
|
979
|
+
}
|
|
980
|
+
callback = continuation;
|
|
981
|
+
} else break;
|
|
982
|
+
} while (1);
|
|
983
|
+
}
|
|
984
|
+
queue.length = 0;
|
|
985
|
+
} catch (error) {
|
|
986
|
+
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
987
|
+
} finally {
|
|
988
|
+
isFlushing = false;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
993
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
994
|
+
isMounted: function() {
|
|
995
|
+
return false;
|
|
996
|
+
},
|
|
997
|
+
enqueueForceUpdate: function(publicInstance) {
|
|
998
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
999
|
+
},
|
|
1000
|
+
enqueueReplaceState: function(publicInstance) {
|
|
1001
|
+
warnNoop(publicInstance, "replaceState");
|
|
1002
|
+
},
|
|
1003
|
+
enqueueSetState: function(publicInstance) {
|
|
1004
|
+
warnNoop(publicInstance, "setState");
|
|
1005
|
+
}
|
|
1006
|
+
}, assign = Object.assign, emptyObject = {};
|
|
1007
|
+
Object.freeze(emptyObject);
|
|
1008
|
+
Component.prototype.isReactComponent = {};
|
|
1009
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
1010
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
1011
|
+
throw Error(
|
|
1012
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1013
|
+
);
|
|
1014
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1015
|
+
};
|
|
1016
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
1017
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1018
|
+
};
|
|
1019
|
+
var deprecatedAPIs = {
|
|
1020
|
+
isMounted: [
|
|
1021
|
+
"isMounted",
|
|
1022
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1023
|
+
],
|
|
1024
|
+
replaceState: [
|
|
1025
|
+
"replaceState",
|
|
1026
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1027
|
+
]
|
|
1028
|
+
};
|
|
1029
|
+
for (fnName in deprecatedAPIs)
|
|
1030
|
+
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1031
|
+
ComponentDummy.prototype = Component.prototype;
|
|
1032
|
+
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1033
|
+
deprecatedAPIs.constructor = PureComponent;
|
|
1034
|
+
assign(deprecatedAPIs, Component.prototype);
|
|
1035
|
+
deprecatedAPIs.isPureReactComponent = true;
|
|
1036
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
1037
|
+
H: null,
|
|
1038
|
+
A: null,
|
|
1039
|
+
T: null,
|
|
1040
|
+
S: null,
|
|
1041
|
+
actQueue: null,
|
|
1042
|
+
asyncTransitions: 0,
|
|
1043
|
+
isBatchingLegacy: false,
|
|
1044
|
+
didScheduleLegacyUpdate: false,
|
|
1045
|
+
didUsePromise: false,
|
|
1046
|
+
thrownErrors: [],
|
|
1047
|
+
getCurrentStack: null,
|
|
1048
|
+
recentlyCreatedOwnerStacks: 0
|
|
1049
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1050
|
+
return null;
|
|
1051
|
+
};
|
|
1052
|
+
deprecatedAPIs = {
|
|
1053
|
+
react_stack_bottom_frame: function(callStackForError) {
|
|
1054
|
+
return callStackForError();
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
1057
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1058
|
+
var didWarnAboutElementRef = {};
|
|
1059
|
+
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
1060
|
+
deprecatedAPIs,
|
|
1061
|
+
UnknownOwner
|
|
1062
|
+
)();
|
|
1063
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1064
|
+
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1065
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1066
|
+
var event = new window.ErrorEvent("error", {
|
|
1067
|
+
bubbles: true,
|
|
1068
|
+
cancelable: true,
|
|
1069
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1070
|
+
error
|
|
1071
|
+
});
|
|
1072
|
+
if (!window.dispatchEvent(event)) return;
|
|
1073
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1074
|
+
process.emit("uncaughtException", error);
|
|
1075
|
+
return;
|
|
1076
|
+
}
|
|
1077
|
+
console.error(error);
|
|
1078
|
+
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1079
|
+
queueMicrotask(function() {
|
|
1080
|
+
return queueMicrotask(callback);
|
|
1081
|
+
});
|
|
1082
|
+
} : enqueueTask;
|
|
1083
|
+
deprecatedAPIs = Object.freeze({
|
|
1084
|
+
__proto__: null,
|
|
1085
|
+
c: function(size) {
|
|
1086
|
+
return resolveDispatcher().useMemoCache(size);
|
|
1087
|
+
}
|
|
1088
|
+
});
|
|
1089
|
+
var fnName = {
|
|
1090
|
+
map: mapChildren,
|
|
1091
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
1092
|
+
mapChildren(
|
|
1093
|
+
children,
|
|
1094
|
+
function() {
|
|
1095
|
+
forEachFunc.apply(this, arguments);
|
|
1096
|
+
},
|
|
1097
|
+
forEachContext
|
|
1098
|
+
);
|
|
1099
|
+
},
|
|
1100
|
+
count: function(children) {
|
|
1101
|
+
var n = 0;
|
|
1102
|
+
mapChildren(children, function() {
|
|
1103
|
+
n++;
|
|
1104
|
+
});
|
|
1105
|
+
return n;
|
|
1106
|
+
},
|
|
1107
|
+
toArray: function(children) {
|
|
1108
|
+
return mapChildren(children, function(child) {
|
|
1109
|
+
return child;
|
|
1110
|
+
}) || [];
|
|
1111
|
+
},
|
|
1112
|
+
only: function(children) {
|
|
1113
|
+
if (!isValidElement(children))
|
|
1114
|
+
throw Error(
|
|
1115
|
+
"React.Children.only expected to receive a single React element child."
|
|
1116
|
+
);
|
|
1117
|
+
return children;
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1120
|
+
exports2.Activity = REACT_ACTIVITY_TYPE;
|
|
1121
|
+
exports2.Children = fnName;
|
|
1122
|
+
exports2.Component = Component;
|
|
1123
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
1124
|
+
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
1125
|
+
exports2.PureComponent = PureComponent;
|
|
1126
|
+
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1127
|
+
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
1128
|
+
exports2.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
1129
|
+
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1130
|
+
exports2.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1131
|
+
exports2.act = function(callback) {
|
|
1132
|
+
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1133
|
+
actScopeDepth++;
|
|
1134
|
+
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1135
|
+
try {
|
|
1136
|
+
var result = callback();
|
|
1137
|
+
} catch (error) {
|
|
1138
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
1139
|
+
}
|
|
1140
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1141
|
+
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1142
|
+
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1143
|
+
var thenable = result;
|
|
1144
|
+
queueSeveralMicrotasks(function() {
|
|
1145
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1146
|
+
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
1147
|
+
));
|
|
1148
|
+
});
|
|
1149
|
+
return {
|
|
1150
|
+
then: function(resolve, reject) {
|
|
1151
|
+
didAwaitActCall = true;
|
|
1152
|
+
thenable.then(
|
|
1153
|
+
function(returnValue) {
|
|
1154
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1155
|
+
if (0 === prevActScopeDepth) {
|
|
1156
|
+
try {
|
|
1157
|
+
flushActQueue(queue), enqueueTask(function() {
|
|
1158
|
+
return recursivelyFlushAsyncActWork(
|
|
1159
|
+
returnValue,
|
|
1160
|
+
resolve,
|
|
1161
|
+
reject
|
|
1162
|
+
);
|
|
1163
|
+
});
|
|
1164
|
+
} catch (error$0) {
|
|
1165
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1166
|
+
}
|
|
1167
|
+
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1168
|
+
var _thrownError = aggregateErrors(
|
|
1169
|
+
ReactSharedInternals.thrownErrors
|
|
1170
|
+
);
|
|
1171
|
+
ReactSharedInternals.thrownErrors.length = 0;
|
|
1172
|
+
reject(_thrownError);
|
|
1173
|
+
}
|
|
1174
|
+
} else resolve(returnValue);
|
|
1175
|
+
},
|
|
1176
|
+
function(error) {
|
|
1177
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1178
|
+
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
1179
|
+
ReactSharedInternals.thrownErrors
|
|
1180
|
+
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
1181
|
+
}
|
|
1182
|
+
);
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
var returnValue$jscomp$0 = result;
|
|
1187
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1188
|
+
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1189
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1190
|
+
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1191
|
+
));
|
|
1192
|
+
}), ReactSharedInternals.actQueue = null);
|
|
1193
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1194
|
+
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1195
|
+
return {
|
|
1196
|
+
then: function(resolve, reject) {
|
|
1197
|
+
didAwaitActCall = true;
|
|
1198
|
+
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1199
|
+
return recursivelyFlushAsyncActWork(
|
|
1200
|
+
returnValue$jscomp$0,
|
|
1201
|
+
resolve,
|
|
1202
|
+
reject
|
|
1203
|
+
);
|
|
1204
|
+
})) : resolve(returnValue$jscomp$0);
|
|
1205
|
+
}
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
exports2.addTransitionType = addTransitionType;
|
|
1209
|
+
exports2.cache = function(fn) {
|
|
1210
|
+
return function() {
|
|
1211
|
+
return fn.apply(null, arguments);
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
exports2.cacheSignal = function() {
|
|
1215
|
+
return null;
|
|
1216
|
+
};
|
|
1217
|
+
exports2.captureOwnerStack = function() {
|
|
1218
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1219
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
1220
|
+
};
|
|
1221
|
+
exports2.cloneElement = function(element, config, children) {
|
|
1222
|
+
if (null === element || void 0 === element)
|
|
1223
|
+
throw Error(
|
|
1224
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
1225
|
+
);
|
|
1226
|
+
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1227
|
+
if (null != config) {
|
|
1228
|
+
var JSCompiler_inline_result;
|
|
1229
|
+
a: {
|
|
1230
|
+
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1231
|
+
config,
|
|
1232
|
+
"ref"
|
|
1233
|
+
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1234
|
+
JSCompiler_inline_result = false;
|
|
1235
|
+
break a;
|
|
1236
|
+
}
|
|
1237
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1238
|
+
}
|
|
1239
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
1240
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1241
|
+
for (propName in config)
|
|
1242
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1243
|
+
}
|
|
1244
|
+
var propName = arguments.length - 2;
|
|
1245
|
+
if (1 === propName) props.children = children;
|
|
1246
|
+
else if (1 < propName) {
|
|
1247
|
+
JSCompiler_inline_result = Array(propName);
|
|
1248
|
+
for (var i = 0; i < propName; i++)
|
|
1249
|
+
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1250
|
+
props.children = JSCompiler_inline_result;
|
|
1251
|
+
}
|
|
1252
|
+
props = ReactElement(
|
|
1253
|
+
element.type,
|
|
1254
|
+
key,
|
|
1255
|
+
props,
|
|
1256
|
+
owner,
|
|
1257
|
+
element._debugStack,
|
|
1258
|
+
element._debugTask
|
|
1259
|
+
);
|
|
1260
|
+
for (key = 2; key < arguments.length; key++)
|
|
1261
|
+
validateChildKeys(arguments[key]);
|
|
1262
|
+
return props;
|
|
1263
|
+
};
|
|
1264
|
+
exports2.createContext = function(defaultValue) {
|
|
1265
|
+
defaultValue = {
|
|
1266
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1267
|
+
_currentValue: defaultValue,
|
|
1268
|
+
_currentValue2: defaultValue,
|
|
1269
|
+
_threadCount: 0,
|
|
1270
|
+
Provider: null,
|
|
1271
|
+
Consumer: null
|
|
1272
|
+
};
|
|
1273
|
+
defaultValue.Provider = defaultValue;
|
|
1274
|
+
defaultValue.Consumer = {
|
|
1275
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
1276
|
+
_context: defaultValue
|
|
1277
|
+
};
|
|
1278
|
+
defaultValue._currentRenderer = null;
|
|
1279
|
+
defaultValue._currentRenderer2 = null;
|
|
1280
|
+
return defaultValue;
|
|
1281
|
+
};
|
|
1282
|
+
exports2.createElement = function(type, config, children) {
|
|
1283
|
+
for (var i = 2; i < arguments.length; i++)
|
|
1284
|
+
validateChildKeys(arguments[i]);
|
|
1285
|
+
var propName;
|
|
1286
|
+
i = {};
|
|
1287
|
+
var key = null;
|
|
1288
|
+
if (null != config)
|
|
1289
|
+
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1290
|
+
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1291
|
+
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
|
|
1292
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1293
|
+
var childrenLength = arguments.length - 2;
|
|
1294
|
+
if (1 === childrenLength) i.children = children;
|
|
1295
|
+
else if (1 < childrenLength) {
|
|
1296
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1297
|
+
childArray[_i] = arguments[_i + 2];
|
|
1298
|
+
Object.freeze && Object.freeze(childArray);
|
|
1299
|
+
i.children = childArray;
|
|
1300
|
+
}
|
|
1301
|
+
if (type && type.defaultProps)
|
|
1302
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1303
|
+
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1304
|
+
key && defineKeyPropWarningGetter(
|
|
1305
|
+
i,
|
|
1306
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1307
|
+
);
|
|
1308
|
+
(propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) ? (childArray = Error.stackTraceLimit, Error.stackTraceLimit = 10, childrenLength = Error("react-stack-top-frame"), Error.stackTraceLimit = childArray) : childrenLength = unknownOwnerDebugStack;
|
|
1309
|
+
return ReactElement(
|
|
1310
|
+
type,
|
|
1311
|
+
key,
|
|
1312
|
+
i,
|
|
1313
|
+
getOwner(),
|
|
1314
|
+
childrenLength,
|
|
1315
|
+
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1316
|
+
);
|
|
1317
|
+
};
|
|
1318
|
+
exports2.createRef = function() {
|
|
1319
|
+
var refObject = { current: null };
|
|
1320
|
+
Object.seal(refObject);
|
|
1321
|
+
return refObject;
|
|
1322
|
+
};
|
|
1323
|
+
exports2.forwardRef = function(render) {
|
|
1324
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1325
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1326
|
+
) : "function" !== typeof render ? console.error(
|
|
1327
|
+
"forwardRef requires a render function but was given %s.",
|
|
1328
|
+
null === render ? "null" : typeof render
|
|
1329
|
+
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1330
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1331
|
+
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1332
|
+
);
|
|
1333
|
+
null != render && null != render.defaultProps && console.error(
|
|
1334
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1335
|
+
);
|
|
1336
|
+
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1337
|
+
Object.defineProperty(elementType, "displayName", {
|
|
1338
|
+
enumerable: false,
|
|
1339
|
+
configurable: true,
|
|
1340
|
+
get: function() {
|
|
1341
|
+
return ownName;
|
|
1342
|
+
},
|
|
1343
|
+
set: function(name) {
|
|
1344
|
+
ownName = name;
|
|
1345
|
+
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
1348
|
+
return elementType;
|
|
1349
|
+
};
|
|
1350
|
+
exports2.isValidElement = isValidElement;
|
|
1351
|
+
exports2.lazy = function(ctor) {
|
|
1352
|
+
ctor = { _status: -1, _result: ctor };
|
|
1353
|
+
var lazyType = {
|
|
1354
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1355
|
+
_payload: ctor,
|
|
1356
|
+
_init: lazyInitializer
|
|
1357
|
+
}, ioInfo = {
|
|
1358
|
+
name: "lazy",
|
|
1359
|
+
start: -1,
|
|
1360
|
+
end: -1,
|
|
1361
|
+
value: null,
|
|
1362
|
+
owner: null,
|
|
1363
|
+
debugStack: Error("react-stack-top-frame"),
|
|
1364
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1365
|
+
};
|
|
1366
|
+
ctor._ioInfo = ioInfo;
|
|
1367
|
+
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
1368
|
+
return lazyType;
|
|
1369
|
+
};
|
|
1370
|
+
exports2.memo = function(type, compare) {
|
|
1371
|
+
null == type && console.error(
|
|
1372
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
1373
|
+
null === type ? "null" : typeof type
|
|
1374
|
+
);
|
|
1375
|
+
compare = {
|
|
1376
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1377
|
+
type,
|
|
1378
|
+
compare: void 0 === compare ? null : compare
|
|
1379
|
+
};
|
|
1380
|
+
var ownName;
|
|
1381
|
+
Object.defineProperty(compare, "displayName", {
|
|
1382
|
+
enumerable: false,
|
|
1383
|
+
configurable: true,
|
|
1384
|
+
get: function() {
|
|
1385
|
+
return ownName;
|
|
1386
|
+
},
|
|
1387
|
+
set: function(name) {
|
|
1388
|
+
ownName = name;
|
|
1389
|
+
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
1390
|
+
}
|
|
1391
|
+
});
|
|
1392
|
+
return compare;
|
|
1393
|
+
};
|
|
1394
|
+
exports2.startTransition = startTransition;
|
|
1395
|
+
exports2.unstable_useCacheRefresh = function() {
|
|
1396
|
+
return resolveDispatcher().useCacheRefresh();
|
|
1397
|
+
};
|
|
1398
|
+
exports2.use = function(usable) {
|
|
1399
|
+
return resolveDispatcher().use(usable);
|
|
1400
|
+
};
|
|
1401
|
+
exports2.useActionState = function(action, initialState, permalink) {
|
|
1402
|
+
return resolveDispatcher().useActionState(
|
|
1403
|
+
action,
|
|
1404
|
+
initialState,
|
|
1405
|
+
permalink
|
|
1406
|
+
);
|
|
1407
|
+
};
|
|
1408
|
+
exports2.useCallback = function(callback, deps) {
|
|
1409
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
1410
|
+
};
|
|
1411
|
+
exports2.useContext = function(Context) {
|
|
1412
|
+
var dispatcher = resolveDispatcher();
|
|
1413
|
+
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1414
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1415
|
+
);
|
|
1416
|
+
return dispatcher.useContext(Context);
|
|
1417
|
+
};
|
|
1418
|
+
exports2.useDebugValue = function(value, formatterFn) {
|
|
1419
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1420
|
+
};
|
|
1421
|
+
exports2.useDeferredValue = function(value, initialValue) {
|
|
1422
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1423
|
+
};
|
|
1424
|
+
exports2.useEffect = function(create, deps) {
|
|
1425
|
+
null == create && console.warn(
|
|
1426
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1427
|
+
);
|
|
1428
|
+
return resolveDispatcher().useEffect(create, deps);
|
|
1429
|
+
};
|
|
1430
|
+
exports2.useEffectEvent = function(callback) {
|
|
1431
|
+
return resolveDispatcher().useEffectEvent(callback);
|
|
1432
|
+
};
|
|
1433
|
+
exports2.useId = function() {
|
|
1434
|
+
return resolveDispatcher().useId();
|
|
1435
|
+
};
|
|
1436
|
+
exports2.useImperativeHandle = function(ref, create, deps) {
|
|
1437
|
+
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1438
|
+
};
|
|
1439
|
+
exports2.useInsertionEffect = function(create, deps) {
|
|
1440
|
+
null == create && console.warn(
|
|
1441
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1442
|
+
);
|
|
1443
|
+
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1444
|
+
};
|
|
1445
|
+
exports2.useLayoutEffect = function(create, deps) {
|
|
1446
|
+
null == create && console.warn(
|
|
1447
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1448
|
+
);
|
|
1449
|
+
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1450
|
+
};
|
|
1451
|
+
exports2.useMemo = function(create, deps) {
|
|
1452
|
+
return resolveDispatcher().useMemo(create, deps);
|
|
1453
|
+
};
|
|
1454
|
+
exports2.useOptimistic = function(passthrough, reducer) {
|
|
1455
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1456
|
+
};
|
|
1457
|
+
exports2.useReducer = function(reducer, initialArg, init) {
|
|
1458
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1459
|
+
};
|
|
1460
|
+
exports2.useRef = function(initialValue) {
|
|
1461
|
+
return resolveDispatcher().useRef(initialValue);
|
|
1462
|
+
};
|
|
1463
|
+
exports2.useState = function(initialState) {
|
|
1464
|
+
return resolveDispatcher().useState(initialState);
|
|
1465
|
+
};
|
|
1466
|
+
exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1467
|
+
return resolveDispatcher().useSyncExternalStore(
|
|
1468
|
+
subscribe,
|
|
1469
|
+
getSnapshot,
|
|
1470
|
+
getServerSnapshot
|
|
1471
|
+
);
|
|
1472
|
+
};
|
|
1473
|
+
exports2.useTransition = function() {
|
|
1474
|
+
return resolveDispatcher().useTransition();
|
|
1475
|
+
};
|
|
1476
|
+
exports2.version = "19.3.0";
|
|
1477
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1478
|
+
})();
|
|
1479
|
+
}
|
|
1480
|
+
});
|
|
1481
|
+
|
|
1482
|
+
// node_modules/react/index.js
|
|
1483
|
+
var require_react = __commonJS({
|
|
1484
|
+
"node_modules/react/index.js"(exports2, module2) {
|
|
1485
|
+
"use strict";
|
|
1486
|
+
if (process.env.NODE_ENV === "production") {
|
|
1487
|
+
module2.exports = require_react_production();
|
|
1488
|
+
} else {
|
|
1489
|
+
module2.exports = require_react_development();
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
});
|
|
1493
|
+
|
|
30
1494
|
// src/index.ts
|
|
31
1495
|
var index_exports = {};
|
|
32
1496
|
__export(index_exports, {
|
|
@@ -353,6 +1817,7 @@ setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
|
|
|
353
1817
|
|
|
354
1818
|
// node_modules/@timardex/cluemart-shared/dist/index.mjs
|
|
355
1819
|
var import_graphql2 = require("graphql");
|
|
1820
|
+
var import_react = __toESM(require_react(), 1);
|
|
356
1821
|
var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus22) => {
|
|
357
1822
|
EnumInviteStatus22["ACCEPTED"] = "Accepted";
|
|
358
1823
|
EnumInviteStatus22["COMPLETED"] = "Completed";
|
|
@@ -2636,8 +4101,11 @@ var EVENT = gql`
|
|
|
2636
4101
|
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
2637
4102
|
`;
|
|
2638
4103
|
var GET_EVENTS = gql`
|
|
2639
|
-
query getEvents(
|
|
2640
|
-
|
|
4104
|
+
query getEvents(
|
|
4105
|
+
$dateStatus: EventDateStatusEnumType
|
|
4106
|
+
$options: PaginationOptions
|
|
4107
|
+
) {
|
|
4108
|
+
events(dateStatus: $dateStatus, options: $options) {
|
|
2641
4109
|
...EventListItemFields
|
|
2642
4110
|
}
|
|
2643
4111
|
}
|
|
@@ -2939,8 +4407,8 @@ var UNREGISTERED_VENDOR = gql`
|
|
|
2939
4407
|
${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
|
|
2940
4408
|
`;
|
|
2941
4409
|
var GET_VENDORS = gql`
|
|
2942
|
-
query getVendors {
|
|
2943
|
-
vendors {
|
|
4410
|
+
query getVendors($options: PaginationOptions) {
|
|
4411
|
+
vendors(options: $options) {
|
|
2944
4412
|
...VendorFields
|
|
2945
4413
|
}
|
|
2946
4414
|
}
|
|
@@ -3177,8 +4645,8 @@ var PARTNER = gql`
|
|
|
3177
4645
|
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
3178
4646
|
`;
|
|
3179
4647
|
var GET_PARTNERS = gql`
|
|
3180
|
-
query getPartners {
|
|
3181
|
-
partners {
|
|
4648
|
+
query getPartners($options: PaginationOptions) {
|
|
4649
|
+
partners(options: $options) {
|
|
3182
4650
|
...PartnerFields
|
|
3183
4651
|
}
|
|
3184
4652
|
}
|
|
@@ -3383,8 +4851,8 @@ var POST_FIELDS_FRAGMENT = gql`
|
|
|
3383
4851
|
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
3384
4852
|
`;
|
|
3385
4853
|
var GET_POSTS = gql`
|
|
3386
|
-
query getPosts {
|
|
3387
|
-
posts {
|
|
4854
|
+
query getPosts($options: PaginationOptions) {
|
|
4855
|
+
posts(options: $options) {
|
|
3388
4856
|
...PostFields
|
|
3389
4857
|
}
|
|
3390
4858
|
}
|
|
@@ -3399,13 +4867,114 @@ var GET_POST = gql`
|
|
|
3399
4867
|
${POST_FIELDS_FRAGMENT}
|
|
3400
4868
|
`;
|
|
3401
4869
|
var GET_POSTS_BY_TYPE = gql`
|
|
3402
|
-
query getPostsByType($postType: PostTypeEnum
|
|
3403
|
-
postsByType(postType: $postType) {
|
|
4870
|
+
query getPostsByType($postType: PostTypeEnum!, $options: PaginationOptions) {
|
|
4871
|
+
postsByType(postType: $postType, options: $options) {
|
|
3404
4872
|
...PostFields
|
|
3405
4873
|
}
|
|
3406
4874
|
}
|
|
3407
4875
|
${POST_FIELDS_FRAGMENT}
|
|
3408
4876
|
`;
|
|
4877
|
+
var GET_USERS = gql`
|
|
4878
|
+
query getUsers($options: PaginationOptions) {
|
|
4879
|
+
users(options: $options) {
|
|
4880
|
+
...UserFields
|
|
4881
|
+
}
|
|
4882
|
+
}
|
|
4883
|
+
${USER_FIELDS_FRAGMENT}
|
|
4884
|
+
`;
|
|
4885
|
+
var GET_USER = gql`
|
|
4886
|
+
query getUser($_id: ID!) {
|
|
4887
|
+
user(_id: $_id) {
|
|
4888
|
+
...UserFields
|
|
4889
|
+
}
|
|
4890
|
+
}
|
|
4891
|
+
${USER_FIELDS_FRAGMENT}
|
|
4892
|
+
`;
|
|
4893
|
+
var GET_USER_EVENTS = gql`
|
|
4894
|
+
query getUserEvents {
|
|
4895
|
+
userEvents {
|
|
4896
|
+
...EventFields
|
|
4897
|
+
}
|
|
4898
|
+
}
|
|
4899
|
+
${EVENT}
|
|
4900
|
+
`;
|
|
4901
|
+
var GET_USER_VENDORS = gql`
|
|
4902
|
+
query getUserVendors {
|
|
4903
|
+
userVendors {
|
|
4904
|
+
...VendorFields
|
|
4905
|
+
}
|
|
4906
|
+
}
|
|
4907
|
+
${VENDOR}
|
|
4908
|
+
`;
|
|
4909
|
+
var GET_USER_PARTNERS = gql`
|
|
4910
|
+
query getUserPartners {
|
|
4911
|
+
userPartners {
|
|
4912
|
+
...PartnerFields
|
|
4913
|
+
}
|
|
4914
|
+
}
|
|
4915
|
+
${PARTNER}
|
|
4916
|
+
`;
|
|
4917
|
+
var GET_USER_ACTIVITIES = gql`
|
|
4918
|
+
query getUserActivities {
|
|
4919
|
+
userActivities {
|
|
4920
|
+
favourites {
|
|
4921
|
+
events {
|
|
4922
|
+
...EventListItemFields
|
|
4923
|
+
}
|
|
4924
|
+
partners {
|
|
4925
|
+
...PartnerFields
|
|
4926
|
+
}
|
|
4927
|
+
vendors {
|
|
4928
|
+
...VendorFields
|
|
4929
|
+
}
|
|
4930
|
+
}
|
|
4931
|
+
going {
|
|
4932
|
+
events {
|
|
4933
|
+
...EventListItemFields
|
|
4934
|
+
}
|
|
4935
|
+
}
|
|
4936
|
+
interested {
|
|
4937
|
+
events {
|
|
4938
|
+
...EventListItemFields
|
|
4939
|
+
}
|
|
4940
|
+
}
|
|
4941
|
+
present {
|
|
4942
|
+
events {
|
|
4943
|
+
...EventListItemFields
|
|
4944
|
+
}
|
|
4945
|
+
}
|
|
4946
|
+
}
|
|
4947
|
+
}
|
|
4948
|
+
${EVENT_LIST_ITEM}
|
|
4949
|
+
${VENDOR}
|
|
4950
|
+
${PARTNER}
|
|
4951
|
+
`;
|
|
4952
|
+
var GET_USER_RESOURCES = gql`
|
|
4953
|
+
query getUserResources($userId: ID!) {
|
|
4954
|
+
userResources(userId: $userId) {
|
|
4955
|
+
resources {
|
|
4956
|
+
_id
|
|
4957
|
+
logo
|
|
4958
|
+
name
|
|
4959
|
+
resourceType
|
|
4960
|
+
}
|
|
4961
|
+
}
|
|
4962
|
+
}
|
|
4963
|
+
`;
|
|
4964
|
+
var GET_USERS_BY_PROMO_CODE = gql`
|
|
4965
|
+
query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
|
|
4966
|
+
usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
|
|
4967
|
+
active
|
|
4968
|
+
avatar {
|
|
4969
|
+
...ResourceImageFields
|
|
4970
|
+
}
|
|
4971
|
+
deletedAt
|
|
4972
|
+
nickName
|
|
4973
|
+
userId
|
|
4974
|
+
}
|
|
4975
|
+
}
|
|
4976
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
4977
|
+
`;
|
|
3409
4978
|
var GET_EVENT_BY_SLUG = gql`
|
|
3410
4979
|
query getEventBySlug($slug: String!) {
|
|
3411
4980
|
eventBySlug(slug: $slug) {
|
|
@@ -3870,107 +5439,6 @@ var UPDATE_EVENT_INFO_MUTATION = gql`
|
|
|
3870
5439
|
}
|
|
3871
5440
|
${EVENT_INFO}
|
|
3872
5441
|
`;
|
|
3873
|
-
var GET_USERS = gql`
|
|
3874
|
-
query getUsers {
|
|
3875
|
-
users {
|
|
3876
|
-
...UserFields
|
|
3877
|
-
}
|
|
3878
|
-
}
|
|
3879
|
-
${USER_FIELDS_FRAGMENT}
|
|
3880
|
-
`;
|
|
3881
|
-
var GET_USER = gql`
|
|
3882
|
-
query getUser($_id: ID!) {
|
|
3883
|
-
user(_id: $_id) {
|
|
3884
|
-
...UserFields
|
|
3885
|
-
}
|
|
3886
|
-
}
|
|
3887
|
-
${USER_FIELDS_FRAGMENT}
|
|
3888
|
-
`;
|
|
3889
|
-
var GET_USER_EVENTS = gql`
|
|
3890
|
-
query getUserEvents {
|
|
3891
|
-
userEvents {
|
|
3892
|
-
...EventFields
|
|
3893
|
-
}
|
|
3894
|
-
}
|
|
3895
|
-
${EVENT}
|
|
3896
|
-
`;
|
|
3897
|
-
var GET_USER_VENDORS = gql`
|
|
3898
|
-
query getUserVendors {
|
|
3899
|
-
userVendors {
|
|
3900
|
-
...VendorFields
|
|
3901
|
-
}
|
|
3902
|
-
}
|
|
3903
|
-
${VENDOR}
|
|
3904
|
-
`;
|
|
3905
|
-
var GET_USER_PARTNERS = gql`
|
|
3906
|
-
query getUserPartners {
|
|
3907
|
-
userPartners {
|
|
3908
|
-
...PartnerFields
|
|
3909
|
-
}
|
|
3910
|
-
}
|
|
3911
|
-
${PARTNER}
|
|
3912
|
-
`;
|
|
3913
|
-
var GET_USER_ACTIVITIES = gql`
|
|
3914
|
-
query getUserActivities {
|
|
3915
|
-
userActivities {
|
|
3916
|
-
favourites {
|
|
3917
|
-
events {
|
|
3918
|
-
...EventListItemFields
|
|
3919
|
-
}
|
|
3920
|
-
partners {
|
|
3921
|
-
...PartnerFields
|
|
3922
|
-
}
|
|
3923
|
-
vendors {
|
|
3924
|
-
...VendorFields
|
|
3925
|
-
}
|
|
3926
|
-
}
|
|
3927
|
-
going {
|
|
3928
|
-
events {
|
|
3929
|
-
...EventListItemFields
|
|
3930
|
-
}
|
|
3931
|
-
}
|
|
3932
|
-
interested {
|
|
3933
|
-
events {
|
|
3934
|
-
...EventListItemFields
|
|
3935
|
-
}
|
|
3936
|
-
}
|
|
3937
|
-
present {
|
|
3938
|
-
events {
|
|
3939
|
-
...EventListItemFields
|
|
3940
|
-
}
|
|
3941
|
-
}
|
|
3942
|
-
}
|
|
3943
|
-
}
|
|
3944
|
-
${EVENT_LIST_ITEM}
|
|
3945
|
-
${VENDOR}
|
|
3946
|
-
${PARTNER}
|
|
3947
|
-
`;
|
|
3948
|
-
var GET_USER_RESOURCES = gql`
|
|
3949
|
-
query getUserResources($userId: ID!) {
|
|
3950
|
-
userResources(userId: $userId) {
|
|
3951
|
-
resources {
|
|
3952
|
-
_id
|
|
3953
|
-
logo
|
|
3954
|
-
name
|
|
3955
|
-
resourceType
|
|
3956
|
-
}
|
|
3957
|
-
}
|
|
3958
|
-
}
|
|
3959
|
-
`;
|
|
3960
|
-
var GET_USERS_BY_PROMO_CODE = gql`
|
|
3961
|
-
query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
|
|
3962
|
-
usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
|
|
3963
|
-
active
|
|
3964
|
-
avatar {
|
|
3965
|
-
...ResourceImageFields
|
|
3966
|
-
}
|
|
3967
|
-
deletedAt
|
|
3968
|
-
nickName
|
|
3969
|
-
userId
|
|
3970
|
-
}
|
|
3971
|
-
}
|
|
3972
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3973
|
-
`;
|
|
3974
5442
|
var NOTIFICATION_FRAGMENT = gql`
|
|
3975
5443
|
fragment NotificationFields on Notification {
|
|
3976
5444
|
_id
|
|
@@ -5892,6 +7360,7 @@ var schema3 = new MongooseSchema5(
|
|
|
5892
7360
|
},
|
|
5893
7361
|
{ timestamps: true }
|
|
5894
7362
|
);
|
|
7363
|
+
schema3.index({ eventId: 1 });
|
|
5895
7364
|
var EventInfoModel = import_mongoose5.default.models.EventInfo || import_mongoose5.default.model("EventInfo", schema3);
|
|
5896
7365
|
|
|
5897
7366
|
// src/mongoose/Relation.ts
|
|
@@ -6194,6 +7663,61 @@ var baseResourceFields = {
|
|
|
6194
7663
|
|
|
6195
7664
|
// src/mongoose/GoogleImportedMarket.ts
|
|
6196
7665
|
var import_mongoose8 = __toESM(require("mongoose"));
|
|
7666
|
+
|
|
7667
|
+
// src/mongoose/searchNamePlugin.ts
|
|
7668
|
+
function deriveSearchName(name) {
|
|
7669
|
+
return typeof name === "string" ? name.trim().toLowerCase() : "";
|
|
7670
|
+
}
|
|
7671
|
+
function searchNamePlugin(schema20) {
|
|
7672
|
+
schema20.add({ searchName: { default: "", required: false, type: String } });
|
|
7673
|
+
schema20.index({ searchName: 1 });
|
|
7674
|
+
schema20.pre("save", function syncSearchNameOnSave(next) {
|
|
7675
|
+
const doc = this;
|
|
7676
|
+
doc.searchName = deriveSearchName(doc.name);
|
|
7677
|
+
next();
|
|
7678
|
+
});
|
|
7679
|
+
schema20.pre("insertMany", function syncSearchNameOnInsertMany(next, docs) {
|
|
7680
|
+
const list = Array.isArray(docs) ? docs : [docs];
|
|
7681
|
+
for (const doc of list) {
|
|
7682
|
+
if (doc && typeof doc.name === "string") {
|
|
7683
|
+
doc.searchName = deriveSearchName(doc.name);
|
|
7684
|
+
}
|
|
7685
|
+
}
|
|
7686
|
+
next();
|
|
7687
|
+
});
|
|
7688
|
+
schema20.pre("bulkWrite", function syncSearchNameOnBulkWrite(next, ops) {
|
|
7689
|
+
for (const op of ops) {
|
|
7690
|
+
const doc = op.insertOne?.document ?? op.replaceOne?.replacement;
|
|
7691
|
+
if (doc && typeof doc.name === "string") {
|
|
7692
|
+
doc.searchName = deriveSearchName(doc.name);
|
|
7693
|
+
}
|
|
7694
|
+
const $set = op.updateOne?.update?.$set;
|
|
7695
|
+
if ($set && typeof $set.name === "string") {
|
|
7696
|
+
$set.searchName = deriveSearchName($set.name);
|
|
7697
|
+
}
|
|
7698
|
+
}
|
|
7699
|
+
next();
|
|
7700
|
+
});
|
|
7701
|
+
const syncSearchNameOnUpdate = function(next) {
|
|
7702
|
+
const update = this.getUpdate();
|
|
7703
|
+
if (update && typeof update === "object" && "$set" in update) {
|
|
7704
|
+
const $set = update.$set;
|
|
7705
|
+
if ($set && typeof $set.name === "string") {
|
|
7706
|
+
this.setUpdate({
|
|
7707
|
+
...update,
|
|
7708
|
+
$set: { ...$set, searchName: deriveSearchName($set.name) }
|
|
7709
|
+
});
|
|
7710
|
+
}
|
|
7711
|
+
}
|
|
7712
|
+
next();
|
|
7713
|
+
};
|
|
7714
|
+
schema20.pre(
|
|
7715
|
+
["findOneAndUpdate", "updateOne", "updateMany"],
|
|
7716
|
+
syncSearchNameOnUpdate
|
|
7717
|
+
);
|
|
7718
|
+
}
|
|
7719
|
+
|
|
7720
|
+
// src/mongoose/GoogleImportedMarket.ts
|
|
6197
7721
|
var MongooseSchema8 = import_mongoose8.default.Schema;
|
|
6198
7722
|
var addressComponentSchema = new MongooseSchema8(
|
|
6199
7723
|
{
|
|
@@ -6272,6 +7796,8 @@ schema4.index({ region: 1 });
|
|
|
6272
7796
|
schema4.index({ deletedAt: 1 });
|
|
6273
7797
|
schema4.index({ "dateTime.dateStatus": 1 });
|
|
6274
7798
|
schema4.index({ slug: 1 });
|
|
7799
|
+
schema4.index({ name: "text", description: "text" });
|
|
7800
|
+
schema4.plugin(searchNamePlugin);
|
|
6275
7801
|
var GoogleImportedMarketModel = import_mongoose8.default.models.GoogleImportedMarket || import_mongoose8.default.model("GoogleImportedMarket", schema4);
|
|
6276
7802
|
|
|
6277
7803
|
// src/mongoose/Notification.ts
|
|
@@ -6690,6 +8216,7 @@ var schema8 = new MongooseSchema12(
|
|
|
6690
8216
|
);
|
|
6691
8217
|
schema8.index({ "licences.expiryDate": 1 });
|
|
6692
8218
|
schema8.index({ "licences.licenceType": 1 });
|
|
8219
|
+
schema8.index({ promoCodes: 1, active: 1, deletedAt: 1 });
|
|
6693
8220
|
var UserModel = import_mongoose12.default.models.User || import_mongoose12.default.model("User", schema8);
|
|
6694
8221
|
|
|
6695
8222
|
// src/mongoose/VerificationToken.ts
|
|
@@ -6775,6 +8302,7 @@ var schema10 = new MongooseSchema14(
|
|
|
6775
8302
|
type: calendarWrapperSchema
|
|
6776
8303
|
},
|
|
6777
8304
|
categories: { required: true, type: [CategorySchema] },
|
|
8305
|
+
categoriesNames: { default: [], required: false, type: [String] },
|
|
6778
8306
|
claimed: { default: true, required: false, type: Boolean },
|
|
6779
8307
|
foodTruck: { required: true, type: Boolean },
|
|
6780
8308
|
products: { required: false, type: productWrapperSchema },
|
|
@@ -6807,6 +8335,13 @@ schema10.index({ description: 1 });
|
|
|
6807
8335
|
schema10.index({ region: 1 });
|
|
6808
8336
|
schema10.index({ "categories.name": 1 });
|
|
6809
8337
|
schema10.index({ slug: 1 });
|
|
8338
|
+
schema10.index({
|
|
8339
|
+
name: "text",
|
|
8340
|
+
description: "text",
|
|
8341
|
+
categoriesNames: "text"
|
|
8342
|
+
});
|
|
8343
|
+
schema10.index({ "owner.userId": 1, deletedAt: 1 });
|
|
8344
|
+
schema10.plugin(searchNamePlugin);
|
|
6810
8345
|
var VendorModel = import_mongoose14.default.models.Vendor || import_mongoose14.default.model("Vendor", schema10);
|
|
6811
8346
|
|
|
6812
8347
|
// src/mongoose/vendor/VendorInfo.ts
|
|
@@ -6859,6 +8394,7 @@ var schema11 = new MongooseSchema15(
|
|
|
6859
8394
|
},
|
|
6860
8395
|
{ timestamps: true }
|
|
6861
8396
|
);
|
|
8397
|
+
schema11.index({ vendorId: 1 });
|
|
6862
8398
|
var VendorInfoModel = import_mongoose15.default.models.VendorInfo || import_mongoose15.default.model("VendorInfo", schema11);
|
|
6863
8399
|
|
|
6864
8400
|
// src/mongoose/vendor/UnregisteredVendor.ts
|
|
@@ -6950,6 +8486,9 @@ schema13.index({ tags: 1 });
|
|
|
6950
8486
|
schema13.index({ deletedAt: 1 });
|
|
6951
8487
|
schema13.index({ "dateTime.dateStatus": 1 });
|
|
6952
8488
|
schema13.index({ slug: 1 });
|
|
8489
|
+
schema13.index({ name: "text", description: "text", tags: "text" });
|
|
8490
|
+
schema13.index({ "owner.userId": 1, deletedAt: 1 });
|
|
8491
|
+
schema13.plugin(searchNamePlugin);
|
|
6953
8492
|
var EventModel = import_mongoose17.default.models.Event || import_mongoose17.default.model("Event", schema13);
|
|
6954
8493
|
|
|
6955
8494
|
// src/mongoose/Partner.ts
|
|
@@ -6976,6 +8515,9 @@ schema14.index({ description: 1 });
|
|
|
6976
8515
|
schema14.index({ region: 1 });
|
|
6977
8516
|
schema14.index({ "location.geo": "2dsphere" });
|
|
6978
8517
|
schema14.index({ slug: 1 });
|
|
8518
|
+
schema14.index({ name: "text", description: "text" });
|
|
8519
|
+
schema14.index({ "owner.userId": 1, deletedAt: 1 });
|
|
8520
|
+
schema14.plugin(searchNamePlugin);
|
|
6979
8521
|
var PartnerModel = import_mongoose18.default.models.Partner || import_mongoose18.default.model("Partner", schema14);
|
|
6980
8522
|
|
|
6981
8523
|
// src/mongoose/Post.ts
|
|
@@ -7509,6 +9051,8 @@ var schema19 = new MongooseSchema27(
|
|
|
7509
9051
|
},
|
|
7510
9052
|
{ timestamps: true }
|
|
7511
9053
|
);
|
|
9054
|
+
schema19.index({ active: 1, deletedAt: 1, "owner.userId": 1 });
|
|
9055
|
+
schema19.index({ "couponData.participantUsers.userId": 1 });
|
|
7512
9056
|
var CouponModel = import_mongoose27.default.models.Coupon || import_mongoose27.default.model("Coupon", schema19);
|
|
7513
9057
|
|
|
7514
9058
|
// src/service/promoCode/constants.ts
|
|
@@ -7599,7 +9143,7 @@ var SHARE_RESOURCE_LABEL2 = {
|
|
|
7599
9143
|
school: "School"
|
|
7600
9144
|
};
|
|
7601
9145
|
|
|
7602
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
9146
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-JJQL6LZE.mjs
|
|
7603
9147
|
var PROMO_CODE_PREFIX2 = "CM-";
|
|
7604
9148
|
var OBJECT_ID_PATH_SEGMENT2 = "[a-f0-9]{24}";
|
|
7605
9149
|
var OBJECT_ID_PATH_SEGMENT_END2 = `${OBJECT_ID_PATH_SEGMENT2}$`;
|
|
@@ -7711,7 +9255,7 @@ var gameScreenIdentifierList2 = [
|
|
|
7711
9255
|
}
|
|
7712
9256
|
];
|
|
7713
9257
|
|
|
7714
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
9258
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-L3SNS6OJ.mjs
|
|
7715
9259
|
var import_dayjs4 = __toESM(require("dayjs"), 1);
|
|
7716
9260
|
var statusOptions2 = [
|
|
7717
9261
|
...Object.values(EnumInviteStatus2).map((status) => ({
|
|
@@ -10565,4 +12109,28 @@ async function remindUsersAboutLicenseExpiration() {
|
|
|
10565
12109
|
vendorOwnerHasProLicence,
|
|
10566
12110
|
vendorProductTypeSchema
|
|
10567
12111
|
});
|
|
12112
|
+
/*! Bundled license information:
|
|
12113
|
+
|
|
12114
|
+
react/cjs/react.production.js:
|
|
12115
|
+
(**
|
|
12116
|
+
* @license React
|
|
12117
|
+
* react.production.js
|
|
12118
|
+
*
|
|
12119
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12120
|
+
*
|
|
12121
|
+
* This source code is licensed under the MIT license found in the
|
|
12122
|
+
* LICENSE file in the root directory of this source tree.
|
|
12123
|
+
*)
|
|
12124
|
+
|
|
12125
|
+
react/cjs/react.development.js:
|
|
12126
|
+
(**
|
|
12127
|
+
* @license React
|
|
12128
|
+
* react.development.js
|
|
12129
|
+
*
|
|
12130
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12131
|
+
*
|
|
12132
|
+
* This source code is licensed under the MIT license found in the
|
|
12133
|
+
* LICENSE file in the root directory of this source tree.
|
|
12134
|
+
*)
|
|
12135
|
+
*/
|
|
10568
12136
|
//# sourceMappingURL=index.cjs.map
|