@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.
@@ -1,3 +1,1469 @@
1
+ import {
2
+ __commonJS,
3
+ __toESM
4
+ } from "./chunk-3QS3WKRC.mjs";
5
+
6
+ // node_modules/react/cjs/react.production.js
7
+ var require_react_production = __commonJS({
8
+ "node_modules/react/cjs/react.production.js"(exports) {
9
+ "use strict";
10
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
11
+ var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
12
+ var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
13
+ var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
14
+ var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
15
+ var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
16
+ var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
17
+ var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
18
+ var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
19
+ var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
20
+ var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
21
+ var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
22
+ var REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition");
23
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
24
+ function getIteratorFn(maybeIterable) {
25
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
26
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
27
+ return "function" === typeof maybeIterable ? maybeIterable : null;
28
+ }
29
+ var ReactNoopUpdateQueue = {
30
+ isMounted: function() {
31
+ return false;
32
+ },
33
+ enqueueForceUpdate: function() {
34
+ },
35
+ enqueueReplaceState: function() {
36
+ },
37
+ enqueueSetState: function() {
38
+ }
39
+ };
40
+ var assign = Object.assign;
41
+ var emptyObject = {};
42
+ function Component(props, context, updater) {
43
+ this.props = props;
44
+ this.context = context;
45
+ this.refs = emptyObject;
46
+ this.updater = updater || ReactNoopUpdateQueue;
47
+ }
48
+ Component.prototype.isReactComponent = {};
49
+ Component.prototype.setState = function(partialState, callback) {
50
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
51
+ throw Error(
52
+ "takes an object of state variables to update or a function which returns an object of state variables."
53
+ );
54
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
55
+ };
56
+ Component.prototype.forceUpdate = function(callback) {
57
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
58
+ };
59
+ function ComponentDummy() {
60
+ }
61
+ ComponentDummy.prototype = Component.prototype;
62
+ function PureComponent(props, context, updater) {
63
+ this.props = props;
64
+ this.context = context;
65
+ this.refs = emptyObject;
66
+ this.updater = updater || ReactNoopUpdateQueue;
67
+ }
68
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
69
+ pureComponentPrototype.constructor = PureComponent;
70
+ assign(pureComponentPrototype, Component.prototype);
71
+ pureComponentPrototype.isPureReactComponent = true;
72
+ var isArrayImpl = Array.isArray;
73
+ function noop() {
74
+ }
75
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null };
76
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
77
+ function ReactElement(type, key, props) {
78
+ var refProp = props.ref;
79
+ return {
80
+ $$typeof: REACT_ELEMENT_TYPE,
81
+ type,
82
+ key,
83
+ ref: void 0 !== refProp ? refProp : null,
84
+ props
85
+ };
86
+ }
87
+ function cloneAndReplaceKey(oldElement, newKey) {
88
+ return ReactElement(oldElement.type, newKey, oldElement.props);
89
+ }
90
+ function isValidElement(object) {
91
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
92
+ }
93
+ function escape(key) {
94
+ var escaperLookup = { "=": "=0", ":": "=2" };
95
+ return "$" + key.replace(/[=:]/g, function(match) {
96
+ return escaperLookup[match];
97
+ });
98
+ }
99
+ var userProvidedKeyEscapeRegex = /\/+/g;
100
+ function getElementKey(element, index) {
101
+ return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
102
+ }
103
+ function resolveThenable(thenable) {
104
+ switch (thenable.status) {
105
+ case "fulfilled":
106
+ return thenable.value;
107
+ case "rejected":
108
+ throw thenable.reason;
109
+ default:
110
+ switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
111
+ function(fulfilledValue) {
112
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
113
+ },
114
+ function(error) {
115
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
116
+ }
117
+ )), thenable.status) {
118
+ case "fulfilled":
119
+ return thenable.value;
120
+ case "rejected":
121
+ throw thenable.reason;
122
+ }
123
+ }
124
+ throw thenable;
125
+ }
126
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
127
+ var type = typeof children;
128
+ if ("undefined" === type || "boolean" === type) children = null;
129
+ var invokeCallback = false;
130
+ if (null === children) invokeCallback = true;
131
+ else
132
+ switch (type) {
133
+ case "bigint":
134
+ case "string":
135
+ case "number":
136
+ invokeCallback = true;
137
+ break;
138
+ case "object":
139
+ switch (children.$$typeof) {
140
+ case REACT_ELEMENT_TYPE:
141
+ case REACT_PORTAL_TYPE:
142
+ invokeCallback = true;
143
+ break;
144
+ case REACT_LAZY_TYPE:
145
+ return invokeCallback = children._init, mapIntoArray(
146
+ invokeCallback(children._payload),
147
+ array,
148
+ escapedPrefix,
149
+ nameSoFar,
150
+ callback
151
+ );
152
+ }
153
+ }
154
+ if (invokeCallback)
155
+ 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) {
156
+ return c;
157
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
158
+ callback,
159
+ escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
160
+ userProvidedKeyEscapeRegex,
161
+ "$&/"
162
+ ) + "/") + invokeCallback
163
+ )), array.push(callback)), 1;
164
+ invokeCallback = 0;
165
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
166
+ if (isArrayImpl(children))
167
+ for (var i = 0; i < children.length; i++)
168
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
169
+ nameSoFar,
170
+ array,
171
+ escapedPrefix,
172
+ type,
173
+ callback
174
+ );
175
+ else if (i = getIteratorFn(children), "function" === typeof i)
176
+ for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
177
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
178
+ nameSoFar,
179
+ array,
180
+ escapedPrefix,
181
+ type,
182
+ callback
183
+ );
184
+ else if ("object" === type) {
185
+ if ("function" === typeof children.then)
186
+ return mapIntoArray(
187
+ resolveThenable(children),
188
+ array,
189
+ escapedPrefix,
190
+ nameSoFar,
191
+ callback
192
+ );
193
+ array = String(children);
194
+ throw Error(
195
+ "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."
196
+ );
197
+ }
198
+ return invokeCallback;
199
+ }
200
+ function mapChildren(children, func, context) {
201
+ if (null == children) return children;
202
+ var result = [], count = 0;
203
+ mapIntoArray(children, result, "", "", function(child) {
204
+ return func.call(context, child, count++);
205
+ });
206
+ return result;
207
+ }
208
+ function lazyInitializer(payload) {
209
+ if (-1 === payload._status) {
210
+ var ctor = payload._result, thenable = ctor();
211
+ thenable.then(
212
+ function(moduleObject) {
213
+ if (0 === payload._status || -1 === payload._status)
214
+ payload._status = 1, payload._result = moduleObject, void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
215
+ },
216
+ function(error) {
217
+ if (0 === payload._status || -1 === payload._status)
218
+ payload._status = 2, payload._result = error, void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
219
+ }
220
+ );
221
+ -1 === payload._status && (payload._status = 0, payload._result = thenable);
222
+ }
223
+ if (1 === payload._status) return payload._result.default;
224
+ throw payload._result;
225
+ }
226
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
227
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
228
+ var event = new window.ErrorEvent("error", {
229
+ bubbles: true,
230
+ cancelable: true,
231
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
232
+ error
233
+ });
234
+ if (!window.dispatchEvent(event)) return;
235
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
236
+ process.emit("uncaughtException", error);
237
+ return;
238
+ }
239
+ console.error(error);
240
+ };
241
+ function startTransition(scope) {
242
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
243
+ currentTransition.types = null !== prevTransition ? prevTransition.types : null;
244
+ ReactSharedInternals.T = currentTransition;
245
+ try {
246
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
247
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
248
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
249
+ } catch (error) {
250
+ reportGlobalError(error);
251
+ } finally {
252
+ null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
253
+ }
254
+ }
255
+ function addTransitionType(type) {
256
+ var transition = ReactSharedInternals.T;
257
+ if (null !== transition) {
258
+ var transitionTypes = transition.types;
259
+ null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
260
+ } else startTransition(addTransitionType.bind(null, type));
261
+ }
262
+ var Children = {
263
+ map: mapChildren,
264
+ forEach: function(children, forEachFunc, forEachContext) {
265
+ mapChildren(
266
+ children,
267
+ function() {
268
+ forEachFunc.apply(this, arguments);
269
+ },
270
+ forEachContext
271
+ );
272
+ },
273
+ count: function(children) {
274
+ var n = 0;
275
+ mapChildren(children, function() {
276
+ n++;
277
+ });
278
+ return n;
279
+ },
280
+ toArray: function(children) {
281
+ return mapChildren(children, function(child) {
282
+ return child;
283
+ }) || [];
284
+ },
285
+ only: function(children) {
286
+ if (!isValidElement(children))
287
+ throw Error(
288
+ "React.Children.only expected to receive a single React element child."
289
+ );
290
+ return children;
291
+ }
292
+ };
293
+ exports.Activity = REACT_ACTIVITY_TYPE;
294
+ exports.Children = Children;
295
+ exports.Component = Component;
296
+ exports.Fragment = REACT_FRAGMENT_TYPE;
297
+ exports.Profiler = REACT_PROFILER_TYPE;
298
+ exports.PureComponent = PureComponent;
299
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
300
+ exports.Suspense = REACT_SUSPENSE_TYPE;
301
+ exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
302
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
303
+ exports.__COMPILER_RUNTIME = {
304
+ __proto__: null,
305
+ c: function(size) {
306
+ return ReactSharedInternals.H.useMemoCache(size);
307
+ }
308
+ };
309
+ exports.addTransitionType = addTransitionType;
310
+ exports.cache = function(fn) {
311
+ return function() {
312
+ return fn.apply(null, arguments);
313
+ };
314
+ };
315
+ exports.cacheSignal = function() {
316
+ return null;
317
+ };
318
+ exports.cloneElement = function(element, config, children) {
319
+ if (null === element || void 0 === element)
320
+ throw Error(
321
+ "The argument must be a React element, but you passed " + element + "."
322
+ );
323
+ var props = assign({}, element.props), key = element.key;
324
+ if (null != config)
325
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
326
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
327
+ var propName = arguments.length - 2;
328
+ if (1 === propName) props.children = children;
329
+ else if (1 < propName) {
330
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
331
+ childArray[i] = arguments[i + 2];
332
+ props.children = childArray;
333
+ }
334
+ return ReactElement(element.type, key, props);
335
+ };
336
+ exports.createContext = function(defaultValue) {
337
+ defaultValue = {
338
+ $$typeof: REACT_CONTEXT_TYPE,
339
+ _currentValue: defaultValue,
340
+ _currentValue2: defaultValue,
341
+ _threadCount: 0,
342
+ Provider: null,
343
+ Consumer: null
344
+ };
345
+ defaultValue.Provider = defaultValue;
346
+ defaultValue.Consumer = {
347
+ $$typeof: REACT_CONSUMER_TYPE,
348
+ _context: defaultValue
349
+ };
350
+ return defaultValue;
351
+ };
352
+ exports.createElement = function(type, config, children) {
353
+ var propName, props = {}, key = null;
354
+ if (null != config)
355
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
356
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
357
+ var childrenLength = arguments.length - 2;
358
+ if (1 === childrenLength) props.children = children;
359
+ else if (1 < childrenLength) {
360
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
361
+ childArray[i] = arguments[i + 2];
362
+ props.children = childArray;
363
+ }
364
+ if (type && type.defaultProps)
365
+ for (propName in childrenLength = type.defaultProps, childrenLength)
366
+ void 0 === props[propName] && (props[propName] = childrenLength[propName]);
367
+ return ReactElement(type, key, props);
368
+ };
369
+ exports.createRef = function() {
370
+ return { current: null };
371
+ };
372
+ exports.forwardRef = function(render) {
373
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
374
+ };
375
+ exports.isValidElement = isValidElement;
376
+ exports.lazy = function(ctor) {
377
+ return {
378
+ $$typeof: REACT_LAZY_TYPE,
379
+ _payload: { _status: -1, _result: ctor },
380
+ _init: lazyInitializer
381
+ };
382
+ };
383
+ exports.memo = function(type, compare) {
384
+ return {
385
+ $$typeof: REACT_MEMO_TYPE,
386
+ type,
387
+ compare: void 0 === compare ? null : compare
388
+ };
389
+ };
390
+ exports.startTransition = startTransition;
391
+ exports.unstable_useCacheRefresh = function() {
392
+ return ReactSharedInternals.H.useCacheRefresh();
393
+ };
394
+ exports.use = function(usable) {
395
+ return ReactSharedInternals.H.use(usable);
396
+ };
397
+ exports.useActionState = function(action, initialState, permalink) {
398
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
399
+ };
400
+ exports.useCallback = function(callback, deps) {
401
+ return ReactSharedInternals.H.useCallback(callback, deps);
402
+ };
403
+ exports.useContext = function(Context) {
404
+ return ReactSharedInternals.H.useContext(Context);
405
+ };
406
+ exports.useDebugValue = function() {
407
+ };
408
+ exports.useDeferredValue = function(value, initialValue) {
409
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
410
+ };
411
+ exports.useEffect = function(create, deps) {
412
+ return ReactSharedInternals.H.useEffect(create, deps);
413
+ };
414
+ exports.useEffectEvent = function(callback) {
415
+ return ReactSharedInternals.H.useEffectEvent(callback);
416
+ };
417
+ exports.useId = function() {
418
+ return ReactSharedInternals.H.useId();
419
+ };
420
+ exports.useImperativeHandle = function(ref, create, deps) {
421
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
422
+ };
423
+ exports.useInsertionEffect = function(create, deps) {
424
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
425
+ };
426
+ exports.useLayoutEffect = function(create, deps) {
427
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
428
+ };
429
+ exports.useMemo = function(create, deps) {
430
+ return ReactSharedInternals.H.useMemo(create, deps);
431
+ };
432
+ exports.useOptimistic = function(passthrough, reducer) {
433
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
434
+ };
435
+ exports.useReducer = function(reducer, initialArg, init) {
436
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
437
+ };
438
+ exports.useRef = function(initialValue) {
439
+ return ReactSharedInternals.H.useRef(initialValue);
440
+ };
441
+ exports.useState = function(initialState) {
442
+ return ReactSharedInternals.H.useState(initialState);
443
+ };
444
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
445
+ return ReactSharedInternals.H.useSyncExternalStore(
446
+ subscribe,
447
+ getSnapshot,
448
+ getServerSnapshot
449
+ );
450
+ };
451
+ exports.useTransition = function() {
452
+ return ReactSharedInternals.H.useTransition();
453
+ };
454
+ exports.version = "19.3.0";
455
+ }
456
+ });
457
+
458
+ // node_modules/react/cjs/react.development.js
459
+ var require_react_development = __commonJS({
460
+ "node_modules/react/cjs/react.development.js"(exports, module) {
461
+ "use strict";
462
+ "production" !== process.env.NODE_ENV && (function() {
463
+ function defineDeprecationWarning(methodName, info) {
464
+ Object.defineProperty(Component.prototype, methodName, {
465
+ get: function() {
466
+ console.warn(
467
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
468
+ info[0],
469
+ info[1]
470
+ );
471
+ }
472
+ });
473
+ }
474
+ function getIteratorFn(maybeIterable) {
475
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
476
+ return null;
477
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
478
+ return "function" === typeof maybeIterable ? maybeIterable : null;
479
+ }
480
+ function warnNoop(publicInstance, callerName) {
481
+ publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
482
+ var warningKey = publicInstance + "." + callerName;
483
+ didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
484
+ "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.",
485
+ callerName,
486
+ publicInstance
487
+ ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
488
+ }
489
+ function Component(props, context, updater) {
490
+ this.props = props;
491
+ this.context = context;
492
+ this.refs = emptyObject;
493
+ this.updater = updater || ReactNoopUpdateQueue;
494
+ }
495
+ function ComponentDummy() {
496
+ }
497
+ function PureComponent(props, context, updater) {
498
+ this.props = props;
499
+ this.context = context;
500
+ this.refs = emptyObject;
501
+ this.updater = updater || ReactNoopUpdateQueue;
502
+ }
503
+ function noop() {
504
+ }
505
+ function testStringCoercion(value) {
506
+ return "" + value;
507
+ }
508
+ function checkKeyStringCoercion(value) {
509
+ try {
510
+ testStringCoercion(value);
511
+ var JSCompiler_inline_result = false;
512
+ } catch (e) {
513
+ JSCompiler_inline_result = true;
514
+ }
515
+ if (JSCompiler_inline_result) {
516
+ JSCompiler_inline_result = console;
517
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
518
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
519
+ JSCompiler_temp_const.call(
520
+ JSCompiler_inline_result,
521
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
522
+ JSCompiler_inline_result$jscomp$0
523
+ );
524
+ return testStringCoercion(value);
525
+ }
526
+ }
527
+ function getComponentNameFromType(type) {
528
+ if (null == type) return null;
529
+ if ("function" === typeof type)
530
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
531
+ if ("string" === typeof type) return type;
532
+ switch (type) {
533
+ case REACT_FRAGMENT_TYPE:
534
+ return "Fragment";
535
+ case REACT_PROFILER_TYPE:
536
+ return "Profiler";
537
+ case REACT_STRICT_MODE_TYPE:
538
+ return "StrictMode";
539
+ case REACT_SUSPENSE_TYPE:
540
+ return "Suspense";
541
+ case REACT_SUSPENSE_LIST_TYPE:
542
+ return "SuspenseList";
543
+ case REACT_ACTIVITY_TYPE:
544
+ return "Activity";
545
+ case REACT_VIEW_TRANSITION_TYPE:
546
+ return "ViewTransition";
547
+ }
548
+ if ("object" === typeof type)
549
+ switch ("number" === typeof type.tag && console.error(
550
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
551
+ ), type.$$typeof) {
552
+ case REACT_PORTAL_TYPE:
553
+ return "Portal";
554
+ case REACT_CONTEXT_TYPE:
555
+ return type.displayName || "Context";
556
+ case REACT_CONSUMER_TYPE:
557
+ return (type._context.displayName || "Context") + ".Consumer";
558
+ case REACT_FORWARD_REF_TYPE:
559
+ var innerType = type.render;
560
+ type = type.displayName;
561
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
562
+ return type;
563
+ case REACT_MEMO_TYPE:
564
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
565
+ case REACT_LAZY_TYPE:
566
+ innerType = type._payload;
567
+ type = type._init;
568
+ try {
569
+ return getComponentNameFromType(type(innerType));
570
+ } catch (x) {
571
+ }
572
+ }
573
+ return null;
574
+ }
575
+ function getTaskName(type) {
576
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
577
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
578
+ return "<...>";
579
+ try {
580
+ var name = getComponentNameFromType(type);
581
+ return name ? "<" + name + ">" : "<...>";
582
+ } catch (x) {
583
+ return "<...>";
584
+ }
585
+ }
586
+ function getOwner() {
587
+ var dispatcher = ReactSharedInternals.A;
588
+ return null === dispatcher ? null : dispatcher.getOwner();
589
+ }
590
+ function UnknownOwner() {
591
+ return Error("react-stack-top-frame");
592
+ }
593
+ function hasValidKey(config) {
594
+ if (hasOwnProperty.call(config, "key")) {
595
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
596
+ if (getter && getter.isReactWarning) return false;
597
+ }
598
+ return void 0 !== config.key;
599
+ }
600
+ function defineKeyPropWarningGetter(props, displayName) {
601
+ function warnAboutAccessingKey() {
602
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
603
+ "%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)",
604
+ displayName
605
+ ));
606
+ }
607
+ warnAboutAccessingKey.isReactWarning = true;
608
+ Object.defineProperty(props, "key", {
609
+ get: warnAboutAccessingKey,
610
+ configurable: true
611
+ });
612
+ }
613
+ function elementRefGetterWithDeprecationWarning() {
614
+ var componentName = getComponentNameFromType(this.type);
615
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
616
+ "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."
617
+ ));
618
+ componentName = this.props.ref;
619
+ return void 0 !== componentName ? componentName : null;
620
+ }
621
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
622
+ var refProp = props.ref;
623
+ type = {
624
+ $$typeof: REACT_ELEMENT_TYPE,
625
+ type,
626
+ key,
627
+ props,
628
+ _owner: owner
629
+ };
630
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
631
+ enumerable: false,
632
+ get: elementRefGetterWithDeprecationWarning
633
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
634
+ type._store = {};
635
+ Object.defineProperty(type._store, "validated", {
636
+ configurable: false,
637
+ enumerable: false,
638
+ writable: true,
639
+ value: 0
640
+ });
641
+ Object.defineProperty(type, "_debugInfo", {
642
+ configurable: false,
643
+ enumerable: false,
644
+ writable: true,
645
+ value: null
646
+ });
647
+ Object.defineProperty(type, "_debugStack", {
648
+ configurable: false,
649
+ enumerable: false,
650
+ writable: true,
651
+ value: debugStack
652
+ });
653
+ Object.defineProperty(type, "_debugTask", {
654
+ configurable: false,
655
+ enumerable: false,
656
+ writable: true,
657
+ value: debugTask
658
+ });
659
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
660
+ return type;
661
+ }
662
+ function cloneAndReplaceKey(oldElement, newKey) {
663
+ newKey = ReactElement(
664
+ oldElement.type,
665
+ newKey,
666
+ oldElement.props,
667
+ oldElement._owner,
668
+ oldElement._debugStack,
669
+ oldElement._debugTask
670
+ );
671
+ oldElement._store && (newKey._store.validated = oldElement._store.validated);
672
+ return newKey;
673
+ }
674
+ function validateChildKeys(node) {
675
+ 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));
676
+ }
677
+ function isValidElement(object) {
678
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
679
+ }
680
+ function escape(key) {
681
+ var escaperLookup = { "=": "=0", ":": "=2" };
682
+ return "$" + key.replace(/[=:]/g, function(match) {
683
+ return escaperLookup[match];
684
+ });
685
+ }
686
+ function getElementKey(element, index) {
687
+ return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
688
+ }
689
+ function resolveThenable(thenable) {
690
+ switch (thenable.status) {
691
+ case "fulfilled":
692
+ return thenable.value;
693
+ case "rejected":
694
+ throw thenable.reason;
695
+ default:
696
+ switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
697
+ function(fulfilledValue) {
698
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
699
+ },
700
+ function(error) {
701
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
702
+ }
703
+ )), thenable.status) {
704
+ case "fulfilled":
705
+ return thenable.value;
706
+ case "rejected":
707
+ throw thenable.reason;
708
+ }
709
+ }
710
+ throw thenable;
711
+ }
712
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
713
+ var type = typeof children;
714
+ if ("undefined" === type || "boolean" === type) children = null;
715
+ var invokeCallback = false;
716
+ if (null === children) invokeCallback = true;
717
+ else
718
+ switch (type) {
719
+ case "bigint":
720
+ case "string":
721
+ case "number":
722
+ invokeCallback = true;
723
+ break;
724
+ case "object":
725
+ switch (children.$$typeof) {
726
+ case REACT_ELEMENT_TYPE:
727
+ case REACT_PORTAL_TYPE:
728
+ invokeCallback = true;
729
+ break;
730
+ case REACT_LAZY_TYPE:
731
+ return invokeCallback = children._init, mapIntoArray(
732
+ invokeCallback(children._payload),
733
+ array,
734
+ escapedPrefix,
735
+ nameSoFar,
736
+ callback
737
+ );
738
+ }
739
+ }
740
+ if (invokeCallback) {
741
+ invokeCallback = children;
742
+ callback = callback(invokeCallback);
743
+ var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
744
+ isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
745
+ return c;
746
+ })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
747
+ callback,
748
+ escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
749
+ userProvidedKeyEscapeRegex,
750
+ "$&/"
751
+ ) + "/") + childKey
752
+ ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
753
+ return 1;
754
+ }
755
+ invokeCallback = 0;
756
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
757
+ if (isArrayImpl(children))
758
+ for (var i = 0; i < children.length; i++)
759
+ nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
760
+ nameSoFar,
761
+ array,
762
+ escapedPrefix,
763
+ type,
764
+ callback
765
+ );
766
+ else if (i = getIteratorFn(children), "function" === typeof i)
767
+ for (i === children.entries && (didWarnAboutMaps || console.warn(
768
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
769
+ ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
770
+ nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
771
+ nameSoFar,
772
+ array,
773
+ escapedPrefix,
774
+ type,
775
+ callback
776
+ );
777
+ else if ("object" === type) {
778
+ if ("function" === typeof children.then)
779
+ return mapIntoArray(
780
+ resolveThenable(children),
781
+ array,
782
+ escapedPrefix,
783
+ nameSoFar,
784
+ callback
785
+ );
786
+ array = String(children);
787
+ throw Error(
788
+ "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."
789
+ );
790
+ }
791
+ return invokeCallback;
792
+ }
793
+ function mapChildren(children, func, context) {
794
+ if (null == children) return children;
795
+ var result = [], count = 0;
796
+ mapIntoArray(children, result, "", "", function(child) {
797
+ return func.call(context, child, count++);
798
+ });
799
+ return result;
800
+ }
801
+ function lazyInitializer(payload) {
802
+ if (-1 === payload._status) {
803
+ var resolveDebugValue = null, rejectDebugValue = null, ioInfo = payload._ioInfo;
804
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now(), ioInfo.value = new Promise(function(resolve, reject) {
805
+ resolveDebugValue = resolve;
806
+ rejectDebugValue = reject;
807
+ }));
808
+ ioInfo = payload._result;
809
+ var thenable = ioInfo();
810
+ thenable.then(
811
+ function(moduleObject) {
812
+ if (0 === payload._status || -1 === payload._status) {
813
+ payload._status = 1;
814
+ payload._result = moduleObject;
815
+ var _ioInfo = payload._ioInfo;
816
+ if (null != _ioInfo) {
817
+ _ioInfo.end = performance.now();
818
+ var debugValue = null == moduleObject ? void 0 : moduleObject.default;
819
+ resolveDebugValue(debugValue);
820
+ _ioInfo.value.status = "fulfilled";
821
+ _ioInfo.value.value = debugValue;
822
+ }
823
+ void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
824
+ }
825
+ },
826
+ function(error) {
827
+ if (0 === payload._status || -1 === payload._status) {
828
+ payload._status = 2;
829
+ payload._result = error;
830
+ var _ioInfo2 = payload._ioInfo;
831
+ null != _ioInfo2 && (_ioInfo2.end = performance.now(), _ioInfo2.value.then(noop, noop), rejectDebugValue(error), _ioInfo2.value.status = "rejected", _ioInfo2.value.reason = error);
832
+ void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
833
+ }
834
+ }
835
+ );
836
+ ioInfo = payload._ioInfo;
837
+ if (null != ioInfo) {
838
+ var displayName = thenable.displayName;
839
+ "string" === typeof displayName && (ioInfo.name = displayName);
840
+ }
841
+ -1 === payload._status && (payload._status = 0, payload._result = thenable);
842
+ }
843
+ if (1 === payload._status)
844
+ return ioInfo = payload._result, void 0 === ioInfo && console.error(
845
+ "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?",
846
+ ioInfo
847
+ ), "default" in ioInfo || console.error(
848
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
849
+ ioInfo
850
+ ), ioInfo.default;
851
+ throw payload._result;
852
+ }
853
+ function resolveDispatcher() {
854
+ var dispatcher = ReactSharedInternals.H;
855
+ null === dispatcher && console.error(
856
+ "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."
857
+ );
858
+ return dispatcher;
859
+ }
860
+ function releaseAsyncTransition() {
861
+ ReactSharedInternals.asyncTransitions--;
862
+ }
863
+ function startTransition(scope) {
864
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
865
+ currentTransition.types = null !== prevTransition ? prevTransition.types : null;
866
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
867
+ ReactSharedInternals.T = currentTransition;
868
+ try {
869
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
870
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
871
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
872
+ } catch (error) {
873
+ reportGlobalError(error);
874
+ } finally {
875
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
876
+ "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."
877
+ )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
878
+ "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."
879
+ ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
880
+ }
881
+ }
882
+ function addTransitionType(type) {
883
+ var transition = ReactSharedInternals.T;
884
+ if (null !== transition) {
885
+ var transitionTypes = transition.types;
886
+ null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
887
+ } else
888
+ 0 === ReactSharedInternals.asyncTransitions && console.error(
889
+ "addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
890
+ ), startTransition(addTransitionType.bind(null, type));
891
+ }
892
+ function enqueueTask(task) {
893
+ if (null === enqueueTaskImpl)
894
+ try {
895
+ var requireString = ("require" + Math.random()).slice(0, 7);
896
+ enqueueTaskImpl = (module && module[requireString]).call(
897
+ module,
898
+ "timers"
899
+ ).setImmediate;
900
+ } catch (_err) {
901
+ enqueueTaskImpl = function(callback) {
902
+ false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
903
+ "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."
904
+ ));
905
+ var channel = new MessageChannel();
906
+ channel.port1.onmessage = callback;
907
+ channel.port2.postMessage(void 0);
908
+ };
909
+ }
910
+ return enqueueTaskImpl(task);
911
+ }
912
+ function aggregateErrors(errors) {
913
+ return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
914
+ }
915
+ function popActScope(prevActQueue, prevActScopeDepth) {
916
+ prevActScopeDepth !== actScopeDepth - 1 && console.error(
917
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
918
+ );
919
+ actScopeDepth = prevActScopeDepth;
920
+ }
921
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
922
+ var queue = ReactSharedInternals.actQueue;
923
+ if (null !== queue)
924
+ if (0 !== queue.length)
925
+ try {
926
+ flushActQueue(queue);
927
+ enqueueTask(function() {
928
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
929
+ });
930
+ return;
931
+ } catch (error) {
932
+ ReactSharedInternals.thrownErrors.push(error);
933
+ }
934
+ else ReactSharedInternals.actQueue = null;
935
+ 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
936
+ }
937
+ function flushActQueue(queue) {
938
+ if (!isFlushing) {
939
+ isFlushing = true;
940
+ var i = 0;
941
+ try {
942
+ for (; i < queue.length; i++) {
943
+ var callback = queue[i];
944
+ do {
945
+ ReactSharedInternals.didUsePromise = false;
946
+ var continuation = callback(false);
947
+ if (null !== continuation) {
948
+ if (ReactSharedInternals.didUsePromise) {
949
+ queue[i] = callback;
950
+ queue.splice(0, i);
951
+ return;
952
+ }
953
+ callback = continuation;
954
+ } else break;
955
+ } while (1);
956
+ }
957
+ queue.length = 0;
958
+ } catch (error) {
959
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
960
+ } finally {
961
+ isFlushing = false;
962
+ }
963
+ }
964
+ }
965
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
966
+ 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 = {
967
+ isMounted: function() {
968
+ return false;
969
+ },
970
+ enqueueForceUpdate: function(publicInstance) {
971
+ warnNoop(publicInstance, "forceUpdate");
972
+ },
973
+ enqueueReplaceState: function(publicInstance) {
974
+ warnNoop(publicInstance, "replaceState");
975
+ },
976
+ enqueueSetState: function(publicInstance) {
977
+ warnNoop(publicInstance, "setState");
978
+ }
979
+ }, assign = Object.assign, emptyObject = {};
980
+ Object.freeze(emptyObject);
981
+ Component.prototype.isReactComponent = {};
982
+ Component.prototype.setState = function(partialState, callback) {
983
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
984
+ throw Error(
985
+ "takes an object of state variables to update or a function which returns an object of state variables."
986
+ );
987
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
988
+ };
989
+ Component.prototype.forceUpdate = function(callback) {
990
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
991
+ };
992
+ var deprecatedAPIs = {
993
+ isMounted: [
994
+ "isMounted",
995
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
996
+ ],
997
+ replaceState: [
998
+ "replaceState",
999
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1000
+ ]
1001
+ };
1002
+ for (fnName in deprecatedAPIs)
1003
+ deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1004
+ ComponentDummy.prototype = Component.prototype;
1005
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1006
+ deprecatedAPIs.constructor = PureComponent;
1007
+ assign(deprecatedAPIs, Component.prototype);
1008
+ deprecatedAPIs.isPureReactComponent = true;
1009
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
1010
+ H: null,
1011
+ A: null,
1012
+ T: null,
1013
+ S: null,
1014
+ actQueue: null,
1015
+ asyncTransitions: 0,
1016
+ isBatchingLegacy: false,
1017
+ didScheduleLegacyUpdate: false,
1018
+ didUsePromise: false,
1019
+ thrownErrors: [],
1020
+ getCurrentStack: null,
1021
+ recentlyCreatedOwnerStacks: 0
1022
+ }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
1023
+ return null;
1024
+ };
1025
+ deprecatedAPIs = {
1026
+ react_stack_bottom_frame: function(callStackForError) {
1027
+ return callStackForError();
1028
+ }
1029
+ };
1030
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1031
+ var didWarnAboutElementRef = {};
1032
+ var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1033
+ deprecatedAPIs,
1034
+ UnknownOwner
1035
+ )();
1036
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1037
+ var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1038
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1039
+ var event = new window.ErrorEvent("error", {
1040
+ bubbles: true,
1041
+ cancelable: true,
1042
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1043
+ error
1044
+ });
1045
+ if (!window.dispatchEvent(event)) return;
1046
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
1047
+ process.emit("uncaughtException", error);
1048
+ return;
1049
+ }
1050
+ console.error(error);
1051
+ }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1052
+ queueMicrotask(function() {
1053
+ return queueMicrotask(callback);
1054
+ });
1055
+ } : enqueueTask;
1056
+ deprecatedAPIs = Object.freeze({
1057
+ __proto__: null,
1058
+ c: function(size) {
1059
+ return resolveDispatcher().useMemoCache(size);
1060
+ }
1061
+ });
1062
+ var fnName = {
1063
+ map: mapChildren,
1064
+ forEach: function(children, forEachFunc, forEachContext) {
1065
+ mapChildren(
1066
+ children,
1067
+ function() {
1068
+ forEachFunc.apply(this, arguments);
1069
+ },
1070
+ forEachContext
1071
+ );
1072
+ },
1073
+ count: function(children) {
1074
+ var n = 0;
1075
+ mapChildren(children, function() {
1076
+ n++;
1077
+ });
1078
+ return n;
1079
+ },
1080
+ toArray: function(children) {
1081
+ return mapChildren(children, function(child) {
1082
+ return child;
1083
+ }) || [];
1084
+ },
1085
+ only: function(children) {
1086
+ if (!isValidElement(children))
1087
+ throw Error(
1088
+ "React.Children.only expected to receive a single React element child."
1089
+ );
1090
+ return children;
1091
+ }
1092
+ };
1093
+ exports.Activity = REACT_ACTIVITY_TYPE;
1094
+ exports.Children = fnName;
1095
+ exports.Component = Component;
1096
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1097
+ exports.Profiler = REACT_PROFILER_TYPE;
1098
+ exports.PureComponent = PureComponent;
1099
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1100
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1101
+ exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
1102
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1103
+ exports.__COMPILER_RUNTIME = deprecatedAPIs;
1104
+ exports.act = function(callback) {
1105
+ var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1106
+ actScopeDepth++;
1107
+ var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1108
+ try {
1109
+ var result = callback();
1110
+ } catch (error) {
1111
+ ReactSharedInternals.thrownErrors.push(error);
1112
+ }
1113
+ if (0 < ReactSharedInternals.thrownErrors.length)
1114
+ throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1115
+ if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1116
+ var thenable = result;
1117
+ queueSeveralMicrotasks(function() {
1118
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1119
+ "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 () => ...);"
1120
+ ));
1121
+ });
1122
+ return {
1123
+ then: function(resolve, reject) {
1124
+ didAwaitActCall = true;
1125
+ thenable.then(
1126
+ function(returnValue) {
1127
+ popActScope(prevActQueue, prevActScopeDepth);
1128
+ if (0 === prevActScopeDepth) {
1129
+ try {
1130
+ flushActQueue(queue), enqueueTask(function() {
1131
+ return recursivelyFlushAsyncActWork(
1132
+ returnValue,
1133
+ resolve,
1134
+ reject
1135
+ );
1136
+ });
1137
+ } catch (error$0) {
1138
+ ReactSharedInternals.thrownErrors.push(error$0);
1139
+ }
1140
+ if (0 < ReactSharedInternals.thrownErrors.length) {
1141
+ var _thrownError = aggregateErrors(
1142
+ ReactSharedInternals.thrownErrors
1143
+ );
1144
+ ReactSharedInternals.thrownErrors.length = 0;
1145
+ reject(_thrownError);
1146
+ }
1147
+ } else resolve(returnValue);
1148
+ },
1149
+ function(error) {
1150
+ popActScope(prevActQueue, prevActScopeDepth);
1151
+ 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1152
+ ReactSharedInternals.thrownErrors
1153
+ ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1154
+ }
1155
+ );
1156
+ }
1157
+ };
1158
+ }
1159
+ var returnValue$jscomp$0 = result;
1160
+ popActScope(prevActQueue, prevActScopeDepth);
1161
+ 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1162
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1163
+ "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(() => ...)"
1164
+ ));
1165
+ }), ReactSharedInternals.actQueue = null);
1166
+ if (0 < ReactSharedInternals.thrownErrors.length)
1167
+ throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1168
+ return {
1169
+ then: function(resolve, reject) {
1170
+ didAwaitActCall = true;
1171
+ 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1172
+ return recursivelyFlushAsyncActWork(
1173
+ returnValue$jscomp$0,
1174
+ resolve,
1175
+ reject
1176
+ );
1177
+ })) : resolve(returnValue$jscomp$0);
1178
+ }
1179
+ };
1180
+ };
1181
+ exports.addTransitionType = addTransitionType;
1182
+ exports.cache = function(fn) {
1183
+ return function() {
1184
+ return fn.apply(null, arguments);
1185
+ };
1186
+ };
1187
+ exports.cacheSignal = function() {
1188
+ return null;
1189
+ };
1190
+ exports.captureOwnerStack = function() {
1191
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
1192
+ return null === getCurrentStack ? null : getCurrentStack();
1193
+ };
1194
+ exports.cloneElement = function(element, config, children) {
1195
+ if (null === element || void 0 === element)
1196
+ throw Error(
1197
+ "The argument must be a React element, but you passed " + element + "."
1198
+ );
1199
+ var props = assign({}, element.props), key = element.key, owner = element._owner;
1200
+ if (null != config) {
1201
+ var JSCompiler_inline_result;
1202
+ a: {
1203
+ if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1204
+ config,
1205
+ "ref"
1206
+ ).get) && JSCompiler_inline_result.isReactWarning) {
1207
+ JSCompiler_inline_result = false;
1208
+ break a;
1209
+ }
1210
+ JSCompiler_inline_result = void 0 !== config.ref;
1211
+ }
1212
+ JSCompiler_inline_result && (owner = getOwner());
1213
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1214
+ for (propName in config)
1215
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1216
+ }
1217
+ var propName = arguments.length - 2;
1218
+ if (1 === propName) props.children = children;
1219
+ else if (1 < propName) {
1220
+ JSCompiler_inline_result = Array(propName);
1221
+ for (var i = 0; i < propName; i++)
1222
+ JSCompiler_inline_result[i] = arguments[i + 2];
1223
+ props.children = JSCompiler_inline_result;
1224
+ }
1225
+ props = ReactElement(
1226
+ element.type,
1227
+ key,
1228
+ props,
1229
+ owner,
1230
+ element._debugStack,
1231
+ element._debugTask
1232
+ );
1233
+ for (key = 2; key < arguments.length; key++)
1234
+ validateChildKeys(arguments[key]);
1235
+ return props;
1236
+ };
1237
+ exports.createContext = function(defaultValue) {
1238
+ defaultValue = {
1239
+ $$typeof: REACT_CONTEXT_TYPE,
1240
+ _currentValue: defaultValue,
1241
+ _currentValue2: defaultValue,
1242
+ _threadCount: 0,
1243
+ Provider: null,
1244
+ Consumer: null
1245
+ };
1246
+ defaultValue.Provider = defaultValue;
1247
+ defaultValue.Consumer = {
1248
+ $$typeof: REACT_CONSUMER_TYPE,
1249
+ _context: defaultValue
1250
+ };
1251
+ defaultValue._currentRenderer = null;
1252
+ defaultValue._currentRenderer2 = null;
1253
+ return defaultValue;
1254
+ };
1255
+ exports.createElement = function(type, config, children) {
1256
+ for (var i = 2; i < arguments.length; i++)
1257
+ validateChildKeys(arguments[i]);
1258
+ var propName;
1259
+ i = {};
1260
+ var key = null;
1261
+ if (null != config)
1262
+ for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1263
+ "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"
1264
+ )), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
1265
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1266
+ var childrenLength = arguments.length - 2;
1267
+ if (1 === childrenLength) i.children = children;
1268
+ else if (1 < childrenLength) {
1269
+ for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1270
+ childArray[_i] = arguments[_i + 2];
1271
+ Object.freeze && Object.freeze(childArray);
1272
+ i.children = childArray;
1273
+ }
1274
+ if (type && type.defaultProps)
1275
+ for (propName in childrenLength = type.defaultProps, childrenLength)
1276
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1277
+ key && defineKeyPropWarningGetter(
1278
+ i,
1279
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1280
+ );
1281
+ (propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) ? (childArray = Error.stackTraceLimit, Error.stackTraceLimit = 10, childrenLength = Error("react-stack-top-frame"), Error.stackTraceLimit = childArray) : childrenLength = unknownOwnerDebugStack;
1282
+ return ReactElement(
1283
+ type,
1284
+ key,
1285
+ i,
1286
+ getOwner(),
1287
+ childrenLength,
1288
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1289
+ );
1290
+ };
1291
+ exports.createRef = function() {
1292
+ var refObject = { current: null };
1293
+ Object.seal(refObject);
1294
+ return refObject;
1295
+ };
1296
+ exports.forwardRef = function(render) {
1297
+ null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1298
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1299
+ ) : "function" !== typeof render ? console.error(
1300
+ "forwardRef requires a render function but was given %s.",
1301
+ null === render ? "null" : typeof render
1302
+ ) : 0 !== render.length && 2 !== render.length && console.error(
1303
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1304
+ 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1305
+ );
1306
+ null != render && null != render.defaultProps && console.error(
1307
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1308
+ );
1309
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1310
+ Object.defineProperty(elementType, "displayName", {
1311
+ enumerable: false,
1312
+ configurable: true,
1313
+ get: function() {
1314
+ return ownName;
1315
+ },
1316
+ set: function(name) {
1317
+ ownName = name;
1318
+ render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1319
+ }
1320
+ });
1321
+ return elementType;
1322
+ };
1323
+ exports.isValidElement = isValidElement;
1324
+ exports.lazy = function(ctor) {
1325
+ ctor = { _status: -1, _result: ctor };
1326
+ var lazyType = {
1327
+ $$typeof: REACT_LAZY_TYPE,
1328
+ _payload: ctor,
1329
+ _init: lazyInitializer
1330
+ }, ioInfo = {
1331
+ name: "lazy",
1332
+ start: -1,
1333
+ end: -1,
1334
+ value: null,
1335
+ owner: null,
1336
+ debugStack: Error("react-stack-top-frame"),
1337
+ debugTask: console.createTask ? console.createTask("lazy()") : null
1338
+ };
1339
+ ctor._ioInfo = ioInfo;
1340
+ lazyType._debugInfo = [{ awaited: ioInfo }];
1341
+ return lazyType;
1342
+ };
1343
+ exports.memo = function(type, compare) {
1344
+ null == type && console.error(
1345
+ "memo: The first argument must be a component. Instead received: %s",
1346
+ null === type ? "null" : typeof type
1347
+ );
1348
+ compare = {
1349
+ $$typeof: REACT_MEMO_TYPE,
1350
+ type,
1351
+ compare: void 0 === compare ? null : compare
1352
+ };
1353
+ var ownName;
1354
+ Object.defineProperty(compare, "displayName", {
1355
+ enumerable: false,
1356
+ configurable: true,
1357
+ get: function() {
1358
+ return ownName;
1359
+ },
1360
+ set: function(name) {
1361
+ ownName = name;
1362
+ type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1363
+ }
1364
+ });
1365
+ return compare;
1366
+ };
1367
+ exports.startTransition = startTransition;
1368
+ exports.unstable_useCacheRefresh = function() {
1369
+ return resolveDispatcher().useCacheRefresh();
1370
+ };
1371
+ exports.use = function(usable) {
1372
+ return resolveDispatcher().use(usable);
1373
+ };
1374
+ exports.useActionState = function(action, initialState, permalink) {
1375
+ return resolveDispatcher().useActionState(
1376
+ action,
1377
+ initialState,
1378
+ permalink
1379
+ );
1380
+ };
1381
+ exports.useCallback = function(callback, deps) {
1382
+ return resolveDispatcher().useCallback(callback, deps);
1383
+ };
1384
+ exports.useContext = function(Context) {
1385
+ var dispatcher = resolveDispatcher();
1386
+ Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1387
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1388
+ );
1389
+ return dispatcher.useContext(Context);
1390
+ };
1391
+ exports.useDebugValue = function(value, formatterFn) {
1392
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1393
+ };
1394
+ exports.useDeferredValue = function(value, initialValue) {
1395
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1396
+ };
1397
+ exports.useEffect = function(create, deps) {
1398
+ null == create && console.warn(
1399
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1400
+ );
1401
+ return resolveDispatcher().useEffect(create, deps);
1402
+ };
1403
+ exports.useEffectEvent = function(callback) {
1404
+ return resolveDispatcher().useEffectEvent(callback);
1405
+ };
1406
+ exports.useId = function() {
1407
+ return resolveDispatcher().useId();
1408
+ };
1409
+ exports.useImperativeHandle = function(ref, create, deps) {
1410
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1411
+ };
1412
+ exports.useInsertionEffect = function(create, deps) {
1413
+ null == create && console.warn(
1414
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1415
+ );
1416
+ return resolveDispatcher().useInsertionEffect(create, deps);
1417
+ };
1418
+ exports.useLayoutEffect = function(create, deps) {
1419
+ null == create && console.warn(
1420
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1421
+ );
1422
+ return resolveDispatcher().useLayoutEffect(create, deps);
1423
+ };
1424
+ exports.useMemo = function(create, deps) {
1425
+ return resolveDispatcher().useMemo(create, deps);
1426
+ };
1427
+ exports.useOptimistic = function(passthrough, reducer) {
1428
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1429
+ };
1430
+ exports.useReducer = function(reducer, initialArg, init) {
1431
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1432
+ };
1433
+ exports.useRef = function(initialValue) {
1434
+ return resolveDispatcher().useRef(initialValue);
1435
+ };
1436
+ exports.useState = function(initialState) {
1437
+ return resolveDispatcher().useState(initialState);
1438
+ };
1439
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1440
+ return resolveDispatcher().useSyncExternalStore(
1441
+ subscribe,
1442
+ getSnapshot,
1443
+ getServerSnapshot
1444
+ );
1445
+ };
1446
+ exports.useTransition = function() {
1447
+ return resolveDispatcher().useTransition();
1448
+ };
1449
+ exports.version = "19.3.0";
1450
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1451
+ })();
1452
+ }
1453
+ });
1454
+
1455
+ // node_modules/react/index.js
1456
+ var require_react = __commonJS({
1457
+ "node_modules/react/index.js"(exports, module) {
1458
+ "use strict";
1459
+ if (process.env.NODE_ENV === "production") {
1460
+ module.exports = require_react_production();
1461
+ } else {
1462
+ module.exports = require_react_development();
1463
+ }
1464
+ }
1465
+ });
1466
+
1
1467
  // node_modules/@timardex/cluemart-shared/dist/index.mjs
2
1468
  import dayjs from "dayjs";
3
1469
  import customParseFormat from "dayjs/plugin/customParseFormat.js";
@@ -207,6 +1673,7 @@ setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
207
1673
 
208
1674
  // node_modules/@timardex/cluemart-shared/dist/index.mjs
209
1675
  import { print } from "graphql";
1676
+ var import_react = __toESM(require_react(), 1);
210
1677
  var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus22) => {
211
1678
  EnumInviteStatus22["ACCEPTED"] = "Accepted";
212
1679
  EnumInviteStatus22["COMPLETED"] = "Completed";
@@ -2490,8 +3957,11 @@ var EVENT = gql`
2490
3957
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
2491
3958
  `;
2492
3959
  var GET_EVENTS = gql`
2493
- query getEvents($dateStatus: EventDateStatusEnumType) {
2494
- events(dateStatus: $dateStatus) {
3960
+ query getEvents(
3961
+ $dateStatus: EventDateStatusEnumType
3962
+ $options: PaginationOptions
3963
+ ) {
3964
+ events(dateStatus: $dateStatus, options: $options) {
2495
3965
  ...EventListItemFields
2496
3966
  }
2497
3967
  }
@@ -2793,8 +4263,8 @@ var UNREGISTERED_VENDOR = gql`
2793
4263
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
2794
4264
  `;
2795
4265
  var GET_VENDORS = gql`
2796
- query getVendors {
2797
- vendors {
4266
+ query getVendors($options: PaginationOptions) {
4267
+ vendors(options: $options) {
2798
4268
  ...VendorFields
2799
4269
  }
2800
4270
  }
@@ -3031,8 +4501,8 @@ var PARTNER = gql`
3031
4501
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
3032
4502
  `;
3033
4503
  var GET_PARTNERS = gql`
3034
- query getPartners {
3035
- partners {
4504
+ query getPartners($options: PaginationOptions) {
4505
+ partners(options: $options) {
3036
4506
  ...PartnerFields
3037
4507
  }
3038
4508
  }
@@ -3237,8 +4707,8 @@ var POST_FIELDS_FRAGMENT = gql`
3237
4707
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
3238
4708
  `;
3239
4709
  var GET_POSTS = gql`
3240
- query getPosts {
3241
- posts {
4710
+ query getPosts($options: PaginationOptions) {
4711
+ posts(options: $options) {
3242
4712
  ...PostFields
3243
4713
  }
3244
4714
  }
@@ -3253,13 +4723,114 @@ var GET_POST = gql`
3253
4723
  ${POST_FIELDS_FRAGMENT}
3254
4724
  `;
3255
4725
  var GET_POSTS_BY_TYPE = gql`
3256
- query getPostsByType($postType: PostTypeEnum!) {
3257
- postsByType(postType: $postType) {
4726
+ query getPostsByType($postType: PostTypeEnum!, $options: PaginationOptions) {
4727
+ postsByType(postType: $postType, options: $options) {
3258
4728
  ...PostFields
3259
4729
  }
3260
4730
  }
3261
4731
  ${POST_FIELDS_FRAGMENT}
3262
4732
  `;
4733
+ var GET_USERS = gql`
4734
+ query getUsers($options: PaginationOptions) {
4735
+ users(options: $options) {
4736
+ ...UserFields
4737
+ }
4738
+ }
4739
+ ${USER_FIELDS_FRAGMENT}
4740
+ `;
4741
+ var GET_USER = gql`
4742
+ query getUser($_id: ID!) {
4743
+ user(_id: $_id) {
4744
+ ...UserFields
4745
+ }
4746
+ }
4747
+ ${USER_FIELDS_FRAGMENT}
4748
+ `;
4749
+ var GET_USER_EVENTS = gql`
4750
+ query getUserEvents {
4751
+ userEvents {
4752
+ ...EventFields
4753
+ }
4754
+ }
4755
+ ${EVENT}
4756
+ `;
4757
+ var GET_USER_VENDORS = gql`
4758
+ query getUserVendors {
4759
+ userVendors {
4760
+ ...VendorFields
4761
+ }
4762
+ }
4763
+ ${VENDOR}
4764
+ `;
4765
+ var GET_USER_PARTNERS = gql`
4766
+ query getUserPartners {
4767
+ userPartners {
4768
+ ...PartnerFields
4769
+ }
4770
+ }
4771
+ ${PARTNER}
4772
+ `;
4773
+ var GET_USER_ACTIVITIES = gql`
4774
+ query getUserActivities {
4775
+ userActivities {
4776
+ favourites {
4777
+ events {
4778
+ ...EventListItemFields
4779
+ }
4780
+ partners {
4781
+ ...PartnerFields
4782
+ }
4783
+ vendors {
4784
+ ...VendorFields
4785
+ }
4786
+ }
4787
+ going {
4788
+ events {
4789
+ ...EventListItemFields
4790
+ }
4791
+ }
4792
+ interested {
4793
+ events {
4794
+ ...EventListItemFields
4795
+ }
4796
+ }
4797
+ present {
4798
+ events {
4799
+ ...EventListItemFields
4800
+ }
4801
+ }
4802
+ }
4803
+ }
4804
+ ${EVENT_LIST_ITEM}
4805
+ ${VENDOR}
4806
+ ${PARTNER}
4807
+ `;
4808
+ var GET_USER_RESOURCES = gql`
4809
+ query getUserResources($userId: ID!) {
4810
+ userResources(userId: $userId) {
4811
+ resources {
4812
+ _id
4813
+ logo
4814
+ name
4815
+ resourceType
4816
+ }
4817
+ }
4818
+ }
4819
+ `;
4820
+ var GET_USERS_BY_PROMO_CODE = gql`
4821
+ query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
4822
+ usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
4823
+ active
4824
+ avatar {
4825
+ ...ResourceImageFields
4826
+ }
4827
+ deletedAt
4828
+ nickName
4829
+ userId
4830
+ }
4831
+ }
4832
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4833
+ `;
3263
4834
  var GET_EVENT_BY_SLUG = gql`
3264
4835
  query getEventBySlug($slug: String!) {
3265
4836
  eventBySlug(slug: $slug) {
@@ -3724,107 +5295,6 @@ var UPDATE_EVENT_INFO_MUTATION = gql`
3724
5295
  }
3725
5296
  ${EVENT_INFO}
3726
5297
  `;
3727
- var GET_USERS = gql`
3728
- query getUsers {
3729
- users {
3730
- ...UserFields
3731
- }
3732
- }
3733
- ${USER_FIELDS_FRAGMENT}
3734
- `;
3735
- var GET_USER = gql`
3736
- query getUser($_id: ID!) {
3737
- user(_id: $_id) {
3738
- ...UserFields
3739
- }
3740
- }
3741
- ${USER_FIELDS_FRAGMENT}
3742
- `;
3743
- var GET_USER_EVENTS = gql`
3744
- query getUserEvents {
3745
- userEvents {
3746
- ...EventFields
3747
- }
3748
- }
3749
- ${EVENT}
3750
- `;
3751
- var GET_USER_VENDORS = gql`
3752
- query getUserVendors {
3753
- userVendors {
3754
- ...VendorFields
3755
- }
3756
- }
3757
- ${VENDOR}
3758
- `;
3759
- var GET_USER_PARTNERS = gql`
3760
- query getUserPartners {
3761
- userPartners {
3762
- ...PartnerFields
3763
- }
3764
- }
3765
- ${PARTNER}
3766
- `;
3767
- var GET_USER_ACTIVITIES = gql`
3768
- query getUserActivities {
3769
- userActivities {
3770
- favourites {
3771
- events {
3772
- ...EventListItemFields
3773
- }
3774
- partners {
3775
- ...PartnerFields
3776
- }
3777
- vendors {
3778
- ...VendorFields
3779
- }
3780
- }
3781
- going {
3782
- events {
3783
- ...EventListItemFields
3784
- }
3785
- }
3786
- interested {
3787
- events {
3788
- ...EventListItemFields
3789
- }
3790
- }
3791
- present {
3792
- events {
3793
- ...EventListItemFields
3794
- }
3795
- }
3796
- }
3797
- }
3798
- ${EVENT_LIST_ITEM}
3799
- ${VENDOR}
3800
- ${PARTNER}
3801
- `;
3802
- var GET_USER_RESOURCES = gql`
3803
- query getUserResources($userId: ID!) {
3804
- userResources(userId: $userId) {
3805
- resources {
3806
- _id
3807
- logo
3808
- name
3809
- resourceType
3810
- }
3811
- }
3812
- }
3813
- `;
3814
- var GET_USERS_BY_PROMO_CODE = gql`
3815
- query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
3816
- usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
3817
- active
3818
- avatar {
3819
- ...ResourceImageFields
3820
- }
3821
- deletedAt
3822
- nickName
3823
- userId
3824
- }
3825
- }
3826
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3827
- `;
3828
5298
  var NOTIFICATION_FRAGMENT = gql`
3829
5299
  fragment NotificationFields on Notification {
3830
5300
  _id
@@ -5746,6 +7216,7 @@ var schema3 = new MongooseSchema5(
5746
7216
  },
5747
7217
  { timestamps: true }
5748
7218
  );
7219
+ schema3.index({ eventId: 1 });
5749
7220
  var EventInfoModel = mongoose5.models.EventInfo || mongoose5.model("EventInfo", schema3);
5750
7221
 
5751
7222
  // src/mongoose/Relation.ts
@@ -6048,6 +7519,61 @@ var baseResourceFields = {
6048
7519
 
6049
7520
  // src/mongoose/GoogleImportedMarket.ts
6050
7521
  import mongoose8 from "mongoose";
7522
+
7523
+ // src/mongoose/searchNamePlugin.ts
7524
+ function deriveSearchName(name) {
7525
+ return typeof name === "string" ? name.trim().toLowerCase() : "";
7526
+ }
7527
+ function searchNamePlugin(schema20) {
7528
+ schema20.add({ searchName: { default: "", required: false, type: String } });
7529
+ schema20.index({ searchName: 1 });
7530
+ schema20.pre("save", function syncSearchNameOnSave(next) {
7531
+ const doc = this;
7532
+ doc.searchName = deriveSearchName(doc.name);
7533
+ next();
7534
+ });
7535
+ schema20.pre("insertMany", function syncSearchNameOnInsertMany(next, docs) {
7536
+ const list = Array.isArray(docs) ? docs : [docs];
7537
+ for (const doc of list) {
7538
+ if (doc && typeof doc.name === "string") {
7539
+ doc.searchName = deriveSearchName(doc.name);
7540
+ }
7541
+ }
7542
+ next();
7543
+ });
7544
+ schema20.pre("bulkWrite", function syncSearchNameOnBulkWrite(next, ops) {
7545
+ for (const op of ops) {
7546
+ const doc = op.insertOne?.document ?? op.replaceOne?.replacement;
7547
+ if (doc && typeof doc.name === "string") {
7548
+ doc.searchName = deriveSearchName(doc.name);
7549
+ }
7550
+ const $set = op.updateOne?.update?.$set;
7551
+ if ($set && typeof $set.name === "string") {
7552
+ $set.searchName = deriveSearchName($set.name);
7553
+ }
7554
+ }
7555
+ next();
7556
+ });
7557
+ const syncSearchNameOnUpdate = function(next) {
7558
+ const update = this.getUpdate();
7559
+ if (update && typeof update === "object" && "$set" in update) {
7560
+ const $set = update.$set;
7561
+ if ($set && typeof $set.name === "string") {
7562
+ this.setUpdate({
7563
+ ...update,
7564
+ $set: { ...$set, searchName: deriveSearchName($set.name) }
7565
+ });
7566
+ }
7567
+ }
7568
+ next();
7569
+ };
7570
+ schema20.pre(
7571
+ ["findOneAndUpdate", "updateOne", "updateMany"],
7572
+ syncSearchNameOnUpdate
7573
+ );
7574
+ }
7575
+
7576
+ // src/mongoose/GoogleImportedMarket.ts
6051
7577
  var MongooseSchema8 = mongoose8.Schema;
6052
7578
  var addressComponentSchema = new MongooseSchema8(
6053
7579
  {
@@ -6126,6 +7652,8 @@ schema4.index({ region: 1 });
6126
7652
  schema4.index({ deletedAt: 1 });
6127
7653
  schema4.index({ "dateTime.dateStatus": 1 });
6128
7654
  schema4.index({ slug: 1 });
7655
+ schema4.index({ name: "text", description: "text" });
7656
+ schema4.plugin(searchNamePlugin);
6129
7657
  var GoogleImportedMarketModel = mongoose8.models.GoogleImportedMarket || mongoose8.model("GoogleImportedMarket", schema4);
6130
7658
 
6131
7659
  // src/mongoose/Notification.ts
@@ -6544,6 +8072,7 @@ var schema8 = new MongooseSchema12(
6544
8072
  );
6545
8073
  schema8.index({ "licences.expiryDate": 1 });
6546
8074
  schema8.index({ "licences.licenceType": 1 });
8075
+ schema8.index({ promoCodes: 1, active: 1, deletedAt: 1 });
6547
8076
  var UserModel = mongoose12.models.User || mongoose12.model("User", schema8);
6548
8077
 
6549
8078
  // src/mongoose/VerificationToken.ts
@@ -6629,6 +8158,7 @@ var schema10 = new MongooseSchema14(
6629
8158
  type: calendarWrapperSchema
6630
8159
  },
6631
8160
  categories: { required: true, type: [CategorySchema] },
8161
+ categoriesNames: { default: [], required: false, type: [String] },
6632
8162
  claimed: { default: true, required: false, type: Boolean },
6633
8163
  foodTruck: { required: true, type: Boolean },
6634
8164
  products: { required: false, type: productWrapperSchema },
@@ -6661,6 +8191,13 @@ schema10.index({ description: 1 });
6661
8191
  schema10.index({ region: 1 });
6662
8192
  schema10.index({ "categories.name": 1 });
6663
8193
  schema10.index({ slug: 1 });
8194
+ schema10.index({
8195
+ name: "text",
8196
+ description: "text",
8197
+ categoriesNames: "text"
8198
+ });
8199
+ schema10.index({ "owner.userId": 1, deletedAt: 1 });
8200
+ schema10.plugin(searchNamePlugin);
6664
8201
  var VendorModel = mongoose14.models.Vendor || mongoose14.model("Vendor", schema10);
6665
8202
 
6666
8203
  // src/mongoose/vendor/VendorInfo.ts
@@ -6713,6 +8250,7 @@ var schema11 = new MongooseSchema15(
6713
8250
  },
6714
8251
  { timestamps: true }
6715
8252
  );
8253
+ schema11.index({ vendorId: 1 });
6716
8254
  var VendorInfoModel = mongoose15.models.VendorInfo || mongoose15.model("VendorInfo", schema11);
6717
8255
 
6718
8256
  // src/mongoose/vendor/UnregisteredVendor.ts
@@ -6804,6 +8342,9 @@ schema13.index({ tags: 1 });
6804
8342
  schema13.index({ deletedAt: 1 });
6805
8343
  schema13.index({ "dateTime.dateStatus": 1 });
6806
8344
  schema13.index({ slug: 1 });
8345
+ schema13.index({ name: "text", description: "text", tags: "text" });
8346
+ schema13.index({ "owner.userId": 1, deletedAt: 1 });
8347
+ schema13.plugin(searchNamePlugin);
6807
8348
  var EventModel = mongoose17.models.Event || mongoose17.model("Event", schema13);
6808
8349
 
6809
8350
  // src/mongoose/Partner.ts
@@ -6830,6 +8371,9 @@ schema14.index({ description: 1 });
6830
8371
  schema14.index({ region: 1 });
6831
8372
  schema14.index({ "location.geo": "2dsphere" });
6832
8373
  schema14.index({ slug: 1 });
8374
+ schema14.index({ name: "text", description: "text" });
8375
+ schema14.index({ "owner.userId": 1, deletedAt: 1 });
8376
+ schema14.plugin(searchNamePlugin);
6833
8377
  var PartnerModel = mongoose18.models.Partner || mongoose18.model("Partner", schema14);
6834
8378
 
6835
8379
  // src/mongoose/Post.ts
@@ -7363,6 +8907,8 @@ var schema19 = new MongooseSchema27(
7363
8907
  },
7364
8908
  { timestamps: true }
7365
8909
  );
8910
+ schema19.index({ active: 1, deletedAt: 1, "owner.userId": 1 });
8911
+ schema19.index({ "couponData.participantUsers.userId": 1 });
7366
8912
  var CouponModel = mongoose27.models.Coupon || mongoose27.model("Coupon", schema19);
7367
8913
 
7368
8914
  export {
@@ -7432,4 +8978,28 @@ export {
7432
8978
  AffiliateModel,
7433
8979
  CouponModel
7434
8980
  };
7435
- //# sourceMappingURL=chunk-6RUQHYTK.mjs.map
8981
+ /*! Bundled license information:
8982
+
8983
+ react/cjs/react.production.js:
8984
+ (**
8985
+ * @license React
8986
+ * react.production.js
8987
+ *
8988
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8989
+ *
8990
+ * This source code is licensed under the MIT license found in the
8991
+ * LICENSE file in the root directory of this source tree.
8992
+ *)
8993
+
8994
+ react/cjs/react.development.js:
8995
+ (**
8996
+ * @license React
8997
+ * react.development.js
8998
+ *
8999
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9000
+ *
9001
+ * This source code is licensed under the MIT license found in the
9002
+ * LICENSE file in the root directory of this source tree.
9003
+ *)
9004
+ */
9005
+ //# sourceMappingURL=chunk-EGUFWI7R.mjs.map