@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.
@@ -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/mongoose/index.ts
31
1495
  var mongoose_exports = {};
32
1496
  __export(mongoose_exports, {
@@ -288,6 +1752,7 @@ setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
288
1752
 
289
1753
  // node_modules/@timardex/cluemart-shared/dist/index.mjs
290
1754
  var import_graphql2 = require("graphql");
1755
+ var import_react = __toESM(require_react(), 1);
291
1756
  var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus22) => {
292
1757
  EnumInviteStatus22["ACCEPTED"] = "Accepted";
293
1758
  EnumInviteStatus22["COMPLETED"] = "Completed";
@@ -2528,8 +3993,11 @@ var EVENT = gql`
2528
3993
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
2529
3994
  `;
2530
3995
  var GET_EVENTS = gql`
2531
- query getEvents($dateStatus: EventDateStatusEnumType) {
2532
- events(dateStatus: $dateStatus) {
3996
+ query getEvents(
3997
+ $dateStatus: EventDateStatusEnumType
3998
+ $options: PaginationOptions
3999
+ ) {
4000
+ events(dateStatus: $dateStatus, options: $options) {
2533
4001
  ...EventListItemFields
2534
4002
  }
2535
4003
  }
@@ -2831,8 +4299,8 @@ var UNREGISTERED_VENDOR = gql`
2831
4299
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
2832
4300
  `;
2833
4301
  var GET_VENDORS = gql`
2834
- query getVendors {
2835
- vendors {
4302
+ query getVendors($options: PaginationOptions) {
4303
+ vendors(options: $options) {
2836
4304
  ...VendorFields
2837
4305
  }
2838
4306
  }
@@ -3069,8 +4537,8 @@ var PARTNER = gql`
3069
4537
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
3070
4538
  `;
3071
4539
  var GET_PARTNERS = gql`
3072
- query getPartners {
3073
- partners {
4540
+ query getPartners($options: PaginationOptions) {
4541
+ partners(options: $options) {
3074
4542
  ...PartnerFields
3075
4543
  }
3076
4544
  }
@@ -3275,8 +4743,8 @@ var POST_FIELDS_FRAGMENT = gql`
3275
4743
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
3276
4744
  `;
3277
4745
  var GET_POSTS = gql`
3278
- query getPosts {
3279
- posts {
4746
+ query getPosts($options: PaginationOptions) {
4747
+ posts(options: $options) {
3280
4748
  ...PostFields
3281
4749
  }
3282
4750
  }
@@ -3291,13 +4759,114 @@ var GET_POST = gql`
3291
4759
  ${POST_FIELDS_FRAGMENT}
3292
4760
  `;
3293
4761
  var GET_POSTS_BY_TYPE = gql`
3294
- query getPostsByType($postType: PostTypeEnum!) {
3295
- postsByType(postType: $postType) {
4762
+ query getPostsByType($postType: PostTypeEnum!, $options: PaginationOptions) {
4763
+ postsByType(postType: $postType, options: $options) {
3296
4764
  ...PostFields
3297
4765
  }
3298
4766
  }
3299
4767
  ${POST_FIELDS_FRAGMENT}
3300
4768
  `;
4769
+ var GET_USERS = gql`
4770
+ query getUsers($options: PaginationOptions) {
4771
+ users(options: $options) {
4772
+ ...UserFields
4773
+ }
4774
+ }
4775
+ ${USER_FIELDS_FRAGMENT}
4776
+ `;
4777
+ var GET_USER = gql`
4778
+ query getUser($_id: ID!) {
4779
+ user(_id: $_id) {
4780
+ ...UserFields
4781
+ }
4782
+ }
4783
+ ${USER_FIELDS_FRAGMENT}
4784
+ `;
4785
+ var GET_USER_EVENTS = gql`
4786
+ query getUserEvents {
4787
+ userEvents {
4788
+ ...EventFields
4789
+ }
4790
+ }
4791
+ ${EVENT}
4792
+ `;
4793
+ var GET_USER_VENDORS = gql`
4794
+ query getUserVendors {
4795
+ userVendors {
4796
+ ...VendorFields
4797
+ }
4798
+ }
4799
+ ${VENDOR}
4800
+ `;
4801
+ var GET_USER_PARTNERS = gql`
4802
+ query getUserPartners {
4803
+ userPartners {
4804
+ ...PartnerFields
4805
+ }
4806
+ }
4807
+ ${PARTNER}
4808
+ `;
4809
+ var GET_USER_ACTIVITIES = gql`
4810
+ query getUserActivities {
4811
+ userActivities {
4812
+ favourites {
4813
+ events {
4814
+ ...EventListItemFields
4815
+ }
4816
+ partners {
4817
+ ...PartnerFields
4818
+ }
4819
+ vendors {
4820
+ ...VendorFields
4821
+ }
4822
+ }
4823
+ going {
4824
+ events {
4825
+ ...EventListItemFields
4826
+ }
4827
+ }
4828
+ interested {
4829
+ events {
4830
+ ...EventListItemFields
4831
+ }
4832
+ }
4833
+ present {
4834
+ events {
4835
+ ...EventListItemFields
4836
+ }
4837
+ }
4838
+ }
4839
+ }
4840
+ ${EVENT_LIST_ITEM}
4841
+ ${VENDOR}
4842
+ ${PARTNER}
4843
+ `;
4844
+ var GET_USER_RESOURCES = gql`
4845
+ query getUserResources($userId: ID!) {
4846
+ userResources(userId: $userId) {
4847
+ resources {
4848
+ _id
4849
+ logo
4850
+ name
4851
+ resourceType
4852
+ }
4853
+ }
4854
+ }
4855
+ `;
4856
+ var GET_USERS_BY_PROMO_CODE = gql`
4857
+ query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
4858
+ usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
4859
+ active
4860
+ avatar {
4861
+ ...ResourceImageFields
4862
+ }
4863
+ deletedAt
4864
+ nickName
4865
+ userId
4866
+ }
4867
+ }
4868
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4869
+ `;
3301
4870
  var GET_EVENT_BY_SLUG = gql`
3302
4871
  query getEventBySlug($slug: String!) {
3303
4872
  eventBySlug(slug: $slug) {
@@ -3762,107 +5331,6 @@ var UPDATE_EVENT_INFO_MUTATION = gql`
3762
5331
  }
3763
5332
  ${EVENT_INFO}
3764
5333
  `;
3765
- var GET_USERS = gql`
3766
- query getUsers {
3767
- users {
3768
- ...UserFields
3769
- }
3770
- }
3771
- ${USER_FIELDS_FRAGMENT}
3772
- `;
3773
- var GET_USER = gql`
3774
- query getUser($_id: ID!) {
3775
- user(_id: $_id) {
3776
- ...UserFields
3777
- }
3778
- }
3779
- ${USER_FIELDS_FRAGMENT}
3780
- `;
3781
- var GET_USER_EVENTS = gql`
3782
- query getUserEvents {
3783
- userEvents {
3784
- ...EventFields
3785
- }
3786
- }
3787
- ${EVENT}
3788
- `;
3789
- var GET_USER_VENDORS = gql`
3790
- query getUserVendors {
3791
- userVendors {
3792
- ...VendorFields
3793
- }
3794
- }
3795
- ${VENDOR}
3796
- `;
3797
- var GET_USER_PARTNERS = gql`
3798
- query getUserPartners {
3799
- userPartners {
3800
- ...PartnerFields
3801
- }
3802
- }
3803
- ${PARTNER}
3804
- `;
3805
- var GET_USER_ACTIVITIES = gql`
3806
- query getUserActivities {
3807
- userActivities {
3808
- favourites {
3809
- events {
3810
- ...EventListItemFields
3811
- }
3812
- partners {
3813
- ...PartnerFields
3814
- }
3815
- vendors {
3816
- ...VendorFields
3817
- }
3818
- }
3819
- going {
3820
- events {
3821
- ...EventListItemFields
3822
- }
3823
- }
3824
- interested {
3825
- events {
3826
- ...EventListItemFields
3827
- }
3828
- }
3829
- present {
3830
- events {
3831
- ...EventListItemFields
3832
- }
3833
- }
3834
- }
3835
- }
3836
- ${EVENT_LIST_ITEM}
3837
- ${VENDOR}
3838
- ${PARTNER}
3839
- `;
3840
- var GET_USER_RESOURCES = gql`
3841
- query getUserResources($userId: ID!) {
3842
- userResources(userId: $userId) {
3843
- resources {
3844
- _id
3845
- logo
3846
- name
3847
- resourceType
3848
- }
3849
- }
3850
- }
3851
- `;
3852
- var GET_USERS_BY_PROMO_CODE = gql`
3853
- query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
3854
- usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
3855
- active
3856
- avatar {
3857
- ...ResourceImageFields
3858
- }
3859
- deletedAt
3860
- nickName
3861
- userId
3862
- }
3863
- }
3864
- ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3865
- `;
3866
5334
  var NOTIFICATION_FRAGMENT = gql`
3867
5335
  fragment NotificationFields on Notification {
3868
5336
  _id
@@ -5784,6 +7252,7 @@ var schema3 = new MongooseSchema5(
5784
7252
  },
5785
7253
  { timestamps: true }
5786
7254
  );
7255
+ schema3.index({ eventId: 1 });
5787
7256
  var EventInfoModel = import_mongoose5.default.models.EventInfo || import_mongoose5.default.model("EventInfo", schema3);
5788
7257
 
5789
7258
  // src/mongoose/Relation.ts
@@ -6086,6 +7555,61 @@ var baseResourceFields = {
6086
7555
 
6087
7556
  // src/mongoose/GoogleImportedMarket.ts
6088
7557
  var import_mongoose8 = __toESM(require("mongoose"));
7558
+
7559
+ // src/mongoose/searchNamePlugin.ts
7560
+ function deriveSearchName(name) {
7561
+ return typeof name === "string" ? name.trim().toLowerCase() : "";
7562
+ }
7563
+ function searchNamePlugin(schema20) {
7564
+ schema20.add({ searchName: { default: "", required: false, type: String } });
7565
+ schema20.index({ searchName: 1 });
7566
+ schema20.pre("save", function syncSearchNameOnSave(next) {
7567
+ const doc = this;
7568
+ doc.searchName = deriveSearchName(doc.name);
7569
+ next();
7570
+ });
7571
+ schema20.pre("insertMany", function syncSearchNameOnInsertMany(next, docs) {
7572
+ const list = Array.isArray(docs) ? docs : [docs];
7573
+ for (const doc of list) {
7574
+ if (doc && typeof doc.name === "string") {
7575
+ doc.searchName = deriveSearchName(doc.name);
7576
+ }
7577
+ }
7578
+ next();
7579
+ });
7580
+ schema20.pre("bulkWrite", function syncSearchNameOnBulkWrite(next, ops) {
7581
+ for (const op of ops) {
7582
+ const doc = op.insertOne?.document ?? op.replaceOne?.replacement;
7583
+ if (doc && typeof doc.name === "string") {
7584
+ doc.searchName = deriveSearchName(doc.name);
7585
+ }
7586
+ const $set = op.updateOne?.update?.$set;
7587
+ if ($set && typeof $set.name === "string") {
7588
+ $set.searchName = deriveSearchName($set.name);
7589
+ }
7590
+ }
7591
+ next();
7592
+ });
7593
+ const syncSearchNameOnUpdate = function(next) {
7594
+ const update = this.getUpdate();
7595
+ if (update && typeof update === "object" && "$set" in update) {
7596
+ const $set = update.$set;
7597
+ if ($set && typeof $set.name === "string") {
7598
+ this.setUpdate({
7599
+ ...update,
7600
+ $set: { ...$set, searchName: deriveSearchName($set.name) }
7601
+ });
7602
+ }
7603
+ }
7604
+ next();
7605
+ };
7606
+ schema20.pre(
7607
+ ["findOneAndUpdate", "updateOne", "updateMany"],
7608
+ syncSearchNameOnUpdate
7609
+ );
7610
+ }
7611
+
7612
+ // src/mongoose/GoogleImportedMarket.ts
6089
7613
  var MongooseSchema8 = import_mongoose8.default.Schema;
6090
7614
  var addressComponentSchema = new MongooseSchema8(
6091
7615
  {
@@ -6164,6 +7688,8 @@ schema4.index({ region: 1 });
6164
7688
  schema4.index({ deletedAt: 1 });
6165
7689
  schema4.index({ "dateTime.dateStatus": 1 });
6166
7690
  schema4.index({ slug: 1 });
7691
+ schema4.index({ name: "text", description: "text" });
7692
+ schema4.plugin(searchNamePlugin);
6167
7693
  var GoogleImportedMarketModel = import_mongoose8.default.models.GoogleImportedMarket || import_mongoose8.default.model("GoogleImportedMarket", schema4);
6168
7694
 
6169
7695
  // src/mongoose/Notification.ts
@@ -6513,6 +8039,7 @@ var schema8 = new MongooseSchema12(
6513
8039
  );
6514
8040
  schema8.index({ "licences.expiryDate": 1 });
6515
8041
  schema8.index({ "licences.licenceType": 1 });
8042
+ schema8.index({ promoCodes: 1, active: 1, deletedAt: 1 });
6516
8043
  var UserModel = import_mongoose12.default.models.User || import_mongoose12.default.model("User", schema8);
6517
8044
 
6518
8045
  // src/mongoose/VerificationToken.ts
@@ -6598,6 +8125,7 @@ var schema10 = new MongooseSchema14(
6598
8125
  type: calendarWrapperSchema
6599
8126
  },
6600
8127
  categories: { required: true, type: [CategorySchema] },
8128
+ categoriesNames: { default: [], required: false, type: [String] },
6601
8129
  claimed: { default: true, required: false, type: Boolean },
6602
8130
  foodTruck: { required: true, type: Boolean },
6603
8131
  products: { required: false, type: productWrapperSchema },
@@ -6630,6 +8158,13 @@ schema10.index({ description: 1 });
6630
8158
  schema10.index({ region: 1 });
6631
8159
  schema10.index({ "categories.name": 1 });
6632
8160
  schema10.index({ slug: 1 });
8161
+ schema10.index({
8162
+ name: "text",
8163
+ description: "text",
8164
+ categoriesNames: "text"
8165
+ });
8166
+ schema10.index({ "owner.userId": 1, deletedAt: 1 });
8167
+ schema10.plugin(searchNamePlugin);
6633
8168
  var VendorModel = import_mongoose14.default.models.Vendor || import_mongoose14.default.model("Vendor", schema10);
6634
8169
 
6635
8170
  // src/mongoose/vendor/VendorInfo.ts
@@ -6682,6 +8217,7 @@ var schema11 = new MongooseSchema15(
6682
8217
  },
6683
8218
  { timestamps: true }
6684
8219
  );
8220
+ schema11.index({ vendorId: 1 });
6685
8221
  var VendorInfoModel = import_mongoose15.default.models.VendorInfo || import_mongoose15.default.model("VendorInfo", schema11);
6686
8222
 
6687
8223
  // src/mongoose/vendor/UnregisteredVendor.ts
@@ -6773,6 +8309,9 @@ schema13.index({ tags: 1 });
6773
8309
  schema13.index({ deletedAt: 1 });
6774
8310
  schema13.index({ "dateTime.dateStatus": 1 });
6775
8311
  schema13.index({ slug: 1 });
8312
+ schema13.index({ name: "text", description: "text", tags: "text" });
8313
+ schema13.index({ "owner.userId": 1, deletedAt: 1 });
8314
+ schema13.plugin(searchNamePlugin);
6776
8315
  var EventModel = import_mongoose17.default.models.Event || import_mongoose17.default.model("Event", schema13);
6777
8316
 
6778
8317
  // src/mongoose/Partner.ts
@@ -6799,6 +8338,9 @@ schema14.index({ description: 1 });
6799
8338
  schema14.index({ region: 1 });
6800
8339
  schema14.index({ "location.geo": "2dsphere" });
6801
8340
  schema14.index({ slug: 1 });
8341
+ schema14.index({ name: "text", description: "text" });
8342
+ schema14.index({ "owner.userId": 1, deletedAt: 1 });
8343
+ schema14.plugin(searchNamePlugin);
6802
8344
  var PartnerModel = import_mongoose18.default.models.Partner || import_mongoose18.default.model("Partner", schema14);
6803
8345
 
6804
8346
  // src/mongoose/Post.ts
@@ -7332,6 +8874,8 @@ var schema19 = new MongooseSchema27(
7332
8874
  },
7333
8875
  { timestamps: true }
7334
8876
  );
8877
+ schema19.index({ active: 1, deletedAt: 1, "owner.userId": 1 });
8878
+ schema19.index({ "couponData.participantUsers.userId": 1 });
7335
8879
  var CouponModel = import_mongoose27.default.models.Coupon || import_mongoose27.default.model("Coupon", schema19);
7336
8880
  // Annotate the CommonJS export names for ESM import in node:
7337
8881
  0 && (module.exports = {
@@ -7382,4 +8926,28 @@ var CouponModel = import_mongoose27.default.models.Coupon || import_mongoose27.d
7382
8926
  userLicenseSchema,
7383
8927
  vendorProductTypeSchema
7384
8928
  });
8929
+ /*! Bundled license information:
8930
+
8931
+ react/cjs/react.production.js:
8932
+ (**
8933
+ * @license React
8934
+ * react.production.js
8935
+ *
8936
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8937
+ *
8938
+ * This source code is licensed under the MIT license found in the
8939
+ * LICENSE file in the root directory of this source tree.
8940
+ *)
8941
+
8942
+ react/cjs/react.development.js:
8943
+ (**
8944
+ * @license React
8945
+ * react.development.js
8946
+ *
8947
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8948
+ *
8949
+ * This source code is licensed under the MIT license found in the
8950
+ * LICENSE file in the root directory of this source tree.
8951
+ *)
8952
+ */
7385
8953
  //# sourceMappingURL=index.cjs.map