@telicent-oss/ds 0.27.2-TELFE-644.0 → 0.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ds.umd.cjs CHANGED
@@ -2465,8 +2465,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2465
2465
  }) => /* @__PURE__ */ jsx$1("header", { ...headerProps, children: /* @__PURE__ */ jsx$1("nav", { ...navProps, children: children2 }) });
2466
2466
  var util;
2467
2467
  (function(util2) {
2468
- util2.assertEqual = (_2) => {
2469
- };
2468
+ util2.assertEqual = (val) => val;
2470
2469
  function assertIs(_arg) {
2471
2470
  }
2472
2471
  util2.assertIs = assertIs;
@@ -2510,7 +2509,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2510
2509
  }
2511
2510
  return void 0;
2512
2511
  };
2513
- util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
2512
+ util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
2514
2513
  function joinValues(array2, separator = " | ") {
2515
2514
  return array2.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
2516
2515
  }
@@ -2562,7 +2561,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2562
2561
  case "string":
2563
2562
  return ZodParsedType.string;
2564
2563
  case "number":
2565
- return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
2564
+ return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
2566
2565
  case "boolean":
2567
2566
  return ZodParsedType.boolean;
2568
2567
  case "function":
@@ -2923,11 +2922,24 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2923
2922
  const isDirty = (x2) => x2.status === "dirty";
2924
2923
  const isValid = (x2) => x2.status === "valid";
2925
2924
  const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
2925
+ function __classPrivateFieldGet(receiver, state, kind, f) {
2926
+ if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2927
+ return state.get(receiver);
2928
+ }
2929
+ function __classPrivateFieldSet(receiver, state, value2, kind, f) {
2930
+ if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
2931
+ return state.set(receiver, value2), value2;
2932
+ }
2933
+ typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
2934
+ var e = new Error(message);
2935
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2936
+ };
2926
2937
  var errorUtil;
2927
2938
  (function(errorUtil2) {
2928
2939
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
2929
- errorUtil2.toString = (message) => typeof message === "string" ? message : message == null ? void 0 : message.message;
2940
+ errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
2930
2941
  })(errorUtil || (errorUtil = {}));
2942
+ var _ZodEnum_cache, _ZodNativeEnum_cache;
2931
2943
  class ParseInputLazyPath {
2932
2944
  constructor(parent, value2, path, key) {
2933
2945
  this._cachedPath = [];
@@ -2938,7 +2950,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2938
2950
  }
2939
2951
  get path() {
2940
2952
  if (!this._cachedPath.length) {
2941
- if (Array.isArray(this._key)) {
2953
+ if (this._key instanceof Array) {
2942
2954
  this._cachedPath.push(...this._path, ...this._key);
2943
2955
  } else {
2944
2956
  this._cachedPath.push(...this._path, this._key);
@@ -2976,16 +2988,17 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2976
2988
  if (errorMap2)
2977
2989
  return { errorMap: errorMap2, description };
2978
2990
  const customMap = (iss, ctx) => {
2991
+ var _a2, _b2;
2979
2992
  const { message } = params;
2980
2993
  if (iss.code === "invalid_enum_value") {
2981
- return { message: message ?? ctx.defaultError };
2994
+ return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
2982
2995
  }
2983
2996
  if (typeof ctx.data === "undefined") {
2984
- return { message: message ?? required_error ?? ctx.defaultError };
2997
+ return { message: (_a2 = message !== null && message !== void 0 ? message : required_error) !== null && _a2 !== void 0 ? _a2 : ctx.defaultError };
2985
2998
  }
2986
2999
  if (iss.code !== "invalid_type")
2987
3000
  return { message: ctx.defaultError };
2988
- return { message: message ?? invalid_type_error ?? ctx.defaultError };
3001
+ return { message: (_b2 = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b2 !== void 0 ? _b2 : ctx.defaultError };
2989
3002
  };
2990
3003
  return { errorMap: customMap, description };
2991
3004
  }
@@ -3037,13 +3050,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3037
3050
  throw result.error;
3038
3051
  }
3039
3052
  safeParse(data, params) {
3053
+ var _a2;
3040
3054
  const ctx = {
3041
3055
  common: {
3042
3056
  issues: [],
3043
- async: (params == null ? void 0 : params.async) ?? false,
3044
- contextualErrorMap: params == null ? void 0 : params.errorMap
3057
+ async: (_a2 = params === null || params === void 0 ? void 0 : params.async) !== null && _a2 !== void 0 ? _a2 : false,
3058
+ contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
3045
3059
  },
3046
- path: (params == null ? void 0 : params.path) || [],
3060
+ path: (params === null || params === void 0 ? void 0 : params.path) || [],
3047
3061
  schemaErrorMap: this._def.errorMap,
3048
3062
  parent: null,
3049
3063
  data,
@@ -3074,7 +3088,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3074
3088
  issues: ctx.common.issues
3075
3089
  };
3076
3090
  } catch (err) {
3077
- if ((_b2 = (_a2 = err == null ? void 0 : err.message) == null ? void 0 : _a2.toLowerCase()) == null ? void 0 : _b2.includes("encountered")) {
3091
+ if ((_b2 = (_a2 = err === null || err === void 0 ? void 0 : err.message) === null || _a2 === void 0 ? void 0 : _a2.toLowerCase()) === null || _b2 === void 0 ? void 0 : _b2.includes("encountered")) {
3078
3092
  this["~standard"].async = true;
3079
3093
  }
3080
3094
  ctx.common = {
@@ -3099,10 +3113,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3099
3113
  const ctx = {
3100
3114
  common: {
3101
3115
  issues: [],
3102
- contextualErrorMap: params == null ? void 0 : params.errorMap,
3116
+ contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
3103
3117
  async: true
3104
3118
  },
3105
- path: (params == null ? void 0 : params.path) || [],
3119
+ path: (params === null || params === void 0 ? void 0 : params.path) || [],
3106
3120
  schemaErrorMap: this._def.errorMap,
3107
3121
  parent: null,
3108
3122
  data,
@@ -3292,14 +3306,13 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3292
3306
  const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
3293
3307
  const dateRegex = new RegExp(`^${dateRegexSource}$`);
3294
3308
  function timeRegexSource(args) {
3295
- let secondsRegexSource = `[0-5]\\d`;
3309
+ let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
3296
3310
  if (args.precision) {
3297
- secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
3311
+ regex = `${regex}\\.\\d{${args.precision}}`;
3298
3312
  } else if (args.precision == null) {
3299
- secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
3313
+ regex = `${regex}(\\.\\d+)?`;
3300
3314
  }
3301
- const secondsQuantifier = args.precision ? "+" : "?";
3302
- return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
3315
+ return regex;
3303
3316
  }
3304
3317
  function timeRegex(args) {
3305
3318
  return new RegExp(`^${timeRegexSource(args)}$`);
@@ -3331,14 +3344,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3331
3344
  const decoded = JSON.parse(atob(base64));
3332
3345
  if (typeof decoded !== "object" || decoded === null)
3333
3346
  return false;
3334
- if ("typ" in decoded && (decoded == null ? void 0 : decoded.typ) !== "JWT")
3335
- return false;
3336
- if (!decoded.alg)
3347
+ if (!decoded.typ || !decoded.alg)
3337
3348
  return false;
3338
3349
  if (alg && decoded.alg !== alg)
3339
3350
  return false;
3340
3351
  return true;
3341
- } catch {
3352
+ } catch (_a2) {
3342
3353
  return false;
3343
3354
  }
3344
3355
  }
@@ -3497,7 +3508,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3497
3508
  } else if (check.kind === "url") {
3498
3509
  try {
3499
3510
  new URL(input.data);
3500
- } catch {
3511
+ } catch (_a2) {
3501
3512
  ctx = this._getOrReturnCtx(input, ctx);
3502
3513
  addIssueToContext(ctx, {
3503
3514
  validation: "url",
@@ -3709,6 +3720,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3709
3720
  return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
3710
3721
  }
3711
3722
  datetime(options) {
3723
+ var _a2, _b2;
3712
3724
  if (typeof options === "string") {
3713
3725
  return this._addCheck({
3714
3726
  kind: "datetime",
@@ -3720,10 +3732,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3720
3732
  }
3721
3733
  return this._addCheck({
3722
3734
  kind: "datetime",
3723
- precision: typeof (options == null ? void 0 : options.precision) === "undefined" ? null : options == null ? void 0 : options.precision,
3724
- offset: (options == null ? void 0 : options.offset) ?? false,
3725
- local: (options == null ? void 0 : options.local) ?? false,
3726
- ...errorUtil.errToObj(options == null ? void 0 : options.message)
3735
+ precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
3736
+ offset: (_a2 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a2 !== void 0 ? _a2 : false,
3737
+ local: (_b2 = options === null || options === void 0 ? void 0 : options.local) !== null && _b2 !== void 0 ? _b2 : false,
3738
+ ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3727
3739
  });
3728
3740
  }
3729
3741
  date(message) {
@@ -3739,8 +3751,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3739
3751
  }
3740
3752
  return this._addCheck({
3741
3753
  kind: "time",
3742
- precision: typeof (options == null ? void 0 : options.precision) === "undefined" ? null : options == null ? void 0 : options.precision,
3743
- ...errorUtil.errToObj(options == null ? void 0 : options.message)
3754
+ precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
3755
+ ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3744
3756
  });
3745
3757
  }
3746
3758
  duration(message) {
@@ -3757,8 +3769,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3757
3769
  return this._addCheck({
3758
3770
  kind: "includes",
3759
3771
  value: value2,
3760
- position: options == null ? void 0 : options.position,
3761
- ...errorUtil.errToObj(options == null ? void 0 : options.message)
3772
+ position: options === null || options === void 0 ? void 0 : options.position,
3773
+ ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3762
3774
  });
3763
3775
  }
3764
3776
  startsWith(value2, message) {
@@ -3890,10 +3902,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3890
3902
  }
3891
3903
  }
3892
3904
  ZodString.create = (params) => {
3905
+ var _a2;
3893
3906
  return new ZodString({
3894
3907
  checks: [],
3895
3908
  typeName: ZodFirstPartyTypeKind.ZodString,
3896
- coerce: (params == null ? void 0 : params.coerce) ?? false,
3909
+ coerce: (_a2 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a2 !== void 0 ? _a2 : false,
3897
3910
  ...processCreateParams(params)
3898
3911
  });
3899
3912
  };
@@ -3901,9 +3914,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3901
3914
  const valDecCount = (val.toString().split(".")[1] || "").length;
3902
3915
  const stepDecCount = (step.toString().split(".")[1] || "").length;
3903
3916
  const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
3904
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
3905
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
3906
- return valInt % stepInt / 10 ** decCount;
3917
+ const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
3918
+ const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
3919
+ return valInt % stepInt / Math.pow(10, decCount);
3907
3920
  }
3908
3921
  class ZodNumber extends ZodType {
3909
3922
  constructor() {
@@ -4113,8 +4126,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4113
4126
  return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
4114
4127
  }
4115
4128
  get isFinite() {
4116
- let max2 = null;
4117
- let min2 = null;
4129
+ let max2 = null, min2 = null;
4118
4130
  for (const ch of this._def.checks) {
4119
4131
  if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
4120
4132
  return true;
@@ -4133,7 +4145,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4133
4145
  return new ZodNumber({
4134
4146
  checks: [],
4135
4147
  typeName: ZodFirstPartyTypeKind.ZodNumber,
4136
- coerce: (params == null ? void 0 : params.coerce) || false,
4148
+ coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4137
4149
  ...processCreateParams(params)
4138
4150
  });
4139
4151
  };
@@ -4147,7 +4159,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4147
4159
  if (this._def.coerce) {
4148
4160
  try {
4149
4161
  input.data = BigInt(input.data);
4150
- } catch {
4162
+ } catch (_a2) {
4151
4163
  return this._getInvalidInput(input);
4152
4164
  }
4153
4165
  }
@@ -4302,10 +4314,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4302
4314
  }
4303
4315
  }
4304
4316
  ZodBigInt.create = (params) => {
4317
+ var _a2;
4305
4318
  return new ZodBigInt({
4306
4319
  checks: [],
4307
4320
  typeName: ZodFirstPartyTypeKind.ZodBigInt,
4308
- coerce: (params == null ? void 0 : params.coerce) ?? false,
4321
+ coerce: (_a2 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a2 !== void 0 ? _a2 : false,
4309
4322
  ...processCreateParams(params)
4310
4323
  });
4311
4324
  };
@@ -4330,7 +4343,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4330
4343
  ZodBoolean.create = (params) => {
4331
4344
  return new ZodBoolean({
4332
4345
  typeName: ZodFirstPartyTypeKind.ZodBoolean,
4333
- coerce: (params == null ? void 0 : params.coerce) || false,
4346
+ coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4334
4347
  ...processCreateParams(params)
4335
4348
  });
4336
4349
  };
@@ -4349,7 +4362,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4349
4362
  });
4350
4363
  return INVALID;
4351
4364
  }
4352
- if (Number.isNaN(input.data.getTime())) {
4365
+ if (isNaN(input.data.getTime())) {
4353
4366
  const ctx2 = this._getOrReturnCtx(input);
4354
4367
  addIssueToContext(ctx2, {
4355
4368
  code: ZodIssueCode.invalid_date
@@ -4438,7 +4451,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4438
4451
  ZodDate.create = (params) => {
4439
4452
  return new ZodDate({
4440
4453
  checks: [],
4441
- coerce: (params == null ? void 0 : params.coerce) || false,
4454
+ coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4442
4455
  typeName: ZodFirstPartyTypeKind.ZodDate,
4443
4456
  ...processCreateParams(params)
4444
4457
  });
@@ -4713,8 +4726,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4713
4726
  return this._cached;
4714
4727
  const shape2 = this._def.shape();
4715
4728
  const keys = util.objectKeys(shape2);
4716
- this._cached = { shape: shape2, keys };
4717
- return this._cached;
4729
+ return this._cached = { shape: shape2, keys };
4718
4730
  }
4719
4731
  _parse(input) {
4720
4732
  const parsedType = this._getType(input);
@@ -4812,11 +4824,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4812
4824
  unknownKeys: "strict",
4813
4825
  ...message !== void 0 ? {
4814
4826
  errorMap: (issue, ctx) => {
4815
- var _a2, _b2;
4816
- const defaultError = ((_b2 = (_a2 = this._def).errorMap) == null ? void 0 : _b2.call(_a2, issue, ctx).message) ?? ctx.defaultError;
4827
+ var _a2, _b2, _c2, _d2;
4828
+ const defaultError = (_c2 = (_b2 = (_a2 = this._def).errorMap) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, issue, ctx).message) !== null && _c2 !== void 0 ? _c2 : ctx.defaultError;
4817
4829
  if (issue.code === "unrecognized_keys")
4818
4830
  return {
4819
- message: errorUtil.errToObj(message).message ?? defaultError
4831
+ message: (_d2 = errorUtil.errToObj(message).message) !== null && _d2 !== void 0 ? _d2 : defaultError
4820
4832
  };
4821
4833
  return {
4822
4834
  message: defaultError
@@ -4947,11 +4959,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4947
4959
  }
4948
4960
  pick(mask) {
4949
4961
  const shape2 = {};
4950
- for (const key of util.objectKeys(mask)) {
4962
+ util.objectKeys(mask).forEach((key) => {
4951
4963
  if (mask[key] && this.shape[key]) {
4952
4964
  shape2[key] = this.shape[key];
4953
4965
  }
4954
- }
4966
+ });
4955
4967
  return new ZodObject({
4956
4968
  ...this._def,
4957
4969
  shape: () => shape2
@@ -4959,11 +4971,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4959
4971
  }
4960
4972
  omit(mask) {
4961
4973
  const shape2 = {};
4962
- for (const key of util.objectKeys(this.shape)) {
4974
+ util.objectKeys(this.shape).forEach((key) => {
4963
4975
  if (!mask[key]) {
4964
4976
  shape2[key] = this.shape[key];
4965
4977
  }
4966
- }
4978
+ });
4967
4979
  return new ZodObject({
4968
4980
  ...this._def,
4969
4981
  shape: () => shape2
@@ -4977,14 +4989,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4977
4989
  }
4978
4990
  partial(mask) {
4979
4991
  const newShape = {};
4980
- for (const key of util.objectKeys(this.shape)) {
4992
+ util.objectKeys(this.shape).forEach((key) => {
4981
4993
  const fieldSchema = this.shape[key];
4982
4994
  if (mask && !mask[key]) {
4983
4995
  newShape[key] = fieldSchema;
4984
4996
  } else {
4985
4997
  newShape[key] = fieldSchema.optional();
4986
4998
  }
4987
- }
4999
+ });
4988
5000
  return new ZodObject({
4989
5001
  ...this._def,
4990
5002
  shape: () => newShape
@@ -4992,7 +5004,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4992
5004
  }
4993
5005
  required(mask) {
4994
5006
  const newShape = {};
4995
- for (const key of util.objectKeys(this.shape)) {
5007
+ util.objectKeys(this.shape).forEach((key) => {
4996
5008
  if (mask && !mask[key]) {
4997
5009
  newShape[key] = this.shape[key];
4998
5010
  } else {
@@ -5003,7 +5015,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5003
5015
  }
5004
5016
  newShape[key] = newField;
5005
5017
  }
5006
- }
5018
+ });
5007
5019
  return new ZodObject({
5008
5020
  ...this._def,
5009
5021
  shape: () => newShape
@@ -5619,7 +5631,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5619
5631
  return makeIssue({
5620
5632
  data: args,
5621
5633
  path: ctx.path,
5622
- errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), errorMap].filter((x2) => !!x2),
5634
+ errorMaps: [
5635
+ ctx.common.contextualErrorMap,
5636
+ ctx.schemaErrorMap,
5637
+ getErrorMap(),
5638
+ errorMap
5639
+ ].filter((x2) => !!x2),
5623
5640
  issueData: {
5624
5641
  code: ZodIssueCode.invalid_arguments,
5625
5642
  argumentsError: error
@@ -5630,7 +5647,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5630
5647
  return makeIssue({
5631
5648
  data: returns,
5632
5649
  path: ctx.path,
5633
- errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), errorMap].filter((x2) => !!x2),
5650
+ errorMaps: [
5651
+ ctx.common.contextualErrorMap,
5652
+ ctx.schemaErrorMap,
5653
+ getErrorMap(),
5654
+ errorMap
5655
+ ].filter((x2) => !!x2),
5634
5656
  issueData: {
5635
5657
  code: ZodIssueCode.invalid_return_type,
5636
5658
  returnTypeError: error
@@ -5754,6 +5776,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5754
5776
  });
5755
5777
  }
5756
5778
  class ZodEnum extends ZodType {
5779
+ constructor() {
5780
+ super(...arguments);
5781
+ _ZodEnum_cache.set(this, void 0);
5782
+ }
5757
5783
  _parse(input) {
5758
5784
  if (typeof input.data !== "string") {
5759
5785
  const ctx = this._getOrReturnCtx(input);
@@ -5765,10 +5791,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5765
5791
  });
5766
5792
  return INVALID;
5767
5793
  }
5768
- if (!this._cache) {
5769
- this._cache = new Set(this._def.values);
5794
+ if (!__classPrivateFieldGet(this, _ZodEnum_cache)) {
5795
+ __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values));
5770
5796
  }
5771
- if (!this._cache.has(input.data)) {
5797
+ if (!__classPrivateFieldGet(this, _ZodEnum_cache).has(input.data)) {
5772
5798
  const ctx = this._getOrReturnCtx(input);
5773
5799
  const expectedValues = this._def.values;
5774
5800
  addIssueToContext(ctx, {
@@ -5817,8 +5843,13 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5817
5843
  });
5818
5844
  }
5819
5845
  }
5846
+ _ZodEnum_cache = /* @__PURE__ */ new WeakMap();
5820
5847
  ZodEnum.create = createZodEnum;
5821
5848
  class ZodNativeEnum extends ZodType {
5849
+ constructor() {
5850
+ super(...arguments);
5851
+ _ZodNativeEnum_cache.set(this, void 0);
5852
+ }
5822
5853
  _parse(input) {
5823
5854
  const nativeEnumValues = util.getValidEnumValues(this._def.values);
5824
5855
  const ctx = this._getOrReturnCtx(input);
@@ -5831,10 +5862,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5831
5862
  });
5832
5863
  return INVALID;
5833
5864
  }
5834
- if (!this._cache) {
5835
- this._cache = new Set(util.getValidEnumValues(this._def.values));
5865
+ if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache)) {
5866
+ __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)));
5836
5867
  }
5837
- if (!this._cache.has(input.data)) {
5868
+ if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache).has(input.data)) {
5838
5869
  const expectedValues = util.objectValues(nativeEnumValues);
5839
5870
  addIssueToContext(ctx, {
5840
5871
  received: ctx.data,
@@ -5849,6 +5880,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5849
5880
  return this._def.values;
5850
5881
  }
5851
5882
  }
5883
+ _ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
5852
5884
  ZodNativeEnum.create = (values2, params) => {
5853
5885
  return new ZodNativeEnum({
5854
5886
  values: values2,
@@ -5989,7 +6021,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5989
6021
  parent: ctx
5990
6022
  });
5991
6023
  if (!isValid(base))
5992
- return INVALID;
6024
+ return base;
5993
6025
  const result = effect2.transform(base.value, checkCtx);
5994
6026
  if (result instanceof Promise) {
5995
6027
  throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
@@ -5998,11 +6030,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5998
6030
  } else {
5999
6031
  return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
6000
6032
  if (!isValid(base))
6001
- return INVALID;
6002
- return Promise.resolve(effect2.transform(base.value, checkCtx)).then((result) => ({
6003
- status: status.value,
6004
- value: result
6005
- }));
6033
+ return base;
6034
+ return Promise.resolve(effect2.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
6006
6035
  });
6007
6036
  }
6008
6037
  }
@@ -6262,19 +6291,21 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6262
6291
  function custom(check, _params = {}, fatal) {
6263
6292
  if (check)
6264
6293
  return ZodAny.create().superRefine((data, ctx) => {
6294
+ var _a2, _b2;
6265
6295
  const r2 = check(data);
6266
6296
  if (r2 instanceof Promise) {
6267
6297
  return r2.then((r3) => {
6298
+ var _a3, _b3;
6268
6299
  if (!r3) {
6269
6300
  const params = cleanParams(_params, data);
6270
- const _fatal = params.fatal ?? fatal ?? true;
6301
+ const _fatal = (_b3 = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b3 !== void 0 ? _b3 : true;
6271
6302
  ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6272
6303
  }
6273
6304
  });
6274
6305
  }
6275
6306
  if (!r2) {
6276
6307
  const params = cleanParams(_params, data);
6277
- const _fatal = params.fatal ?? fatal ?? true;
6308
+ const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
6278
6309
  ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6279
6310
  }
6280
6311
  return;
@@ -6374,98 +6405,99 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6374
6405
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
6375
6406
  };
6376
6407
  const NEVER = INVALID;
6377
- const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6408
+ var z = /* @__PURE__ */ Object.freeze({
6378
6409
  __proto__: null,
6379
- BRAND,
6380
- DIRTY,
6410
+ defaultErrorMap: errorMap,
6411
+ setErrorMap,
6412
+ getErrorMap,
6413
+ makeIssue,
6381
6414
  EMPTY_PATH,
6415
+ addIssueToContext,
6416
+ ParseStatus,
6382
6417
  INVALID,
6383
- NEVER,
6418
+ DIRTY,
6384
6419
  OK,
6385
- ParseStatus,
6386
- Schema: ZodType,
6387
- ZodAny,
6388
- ZodArray,
6420
+ isAborted,
6421
+ isDirty,
6422
+ isValid,
6423
+ isAsync,
6424
+ get util() {
6425
+ return util;
6426
+ },
6427
+ get objectUtil() {
6428
+ return objectUtil;
6429
+ },
6430
+ ZodParsedType,
6431
+ getParsedType,
6432
+ ZodType,
6433
+ datetimeRegex,
6434
+ ZodString,
6435
+ ZodNumber,
6389
6436
  ZodBigInt,
6390
6437
  ZodBoolean,
6391
- ZodBranded,
6392
- ZodCatch,
6393
6438
  ZodDate,
6394
- ZodDefault,
6439
+ ZodSymbol,
6440
+ ZodUndefined,
6441
+ ZodNull,
6442
+ ZodAny,
6443
+ ZodUnknown,
6444
+ ZodNever,
6445
+ ZodVoid,
6446
+ ZodArray,
6447
+ ZodObject,
6448
+ ZodUnion,
6395
6449
  ZodDiscriminatedUnion,
6396
- ZodEffects,
6397
- ZodEnum,
6398
- ZodError,
6399
- get ZodFirstPartyTypeKind() {
6400
- return ZodFirstPartyTypeKind;
6401
- },
6402
- ZodFunction,
6403
6450
  ZodIntersection,
6404
- ZodIssueCode,
6451
+ ZodTuple,
6452
+ ZodRecord,
6453
+ ZodMap,
6454
+ ZodSet,
6455
+ ZodFunction,
6405
6456
  ZodLazy,
6406
6457
  ZodLiteral,
6407
- ZodMap,
6408
- ZodNaN,
6458
+ ZodEnum,
6409
6459
  ZodNativeEnum,
6410
- ZodNever,
6411
- ZodNull,
6412
- ZodNullable,
6413
- ZodNumber,
6414
- ZodObject,
6460
+ ZodPromise,
6461
+ ZodEffects,
6462
+ ZodTransformer: ZodEffects,
6415
6463
  ZodOptional,
6416
- ZodParsedType,
6464
+ ZodNullable,
6465
+ ZodDefault,
6466
+ ZodCatch,
6467
+ ZodNaN,
6468
+ BRAND,
6469
+ ZodBranded,
6417
6470
  ZodPipeline,
6418
- ZodPromise,
6419
6471
  ZodReadonly,
6420
- ZodRecord,
6472
+ custom,
6473
+ Schema: ZodType,
6421
6474
  ZodSchema: ZodType,
6422
- ZodSet,
6423
- ZodString,
6424
- ZodSymbol,
6425
- ZodTransformer: ZodEffects,
6426
- ZodTuple,
6427
- ZodType,
6428
- ZodUndefined,
6429
- ZodUnion,
6430
- ZodUnknown,
6431
- ZodVoid,
6432
- addIssueToContext,
6475
+ late,
6476
+ get ZodFirstPartyTypeKind() {
6477
+ return ZodFirstPartyTypeKind;
6478
+ },
6479
+ coerce: coerce$1,
6433
6480
  any: anyType,
6434
6481
  array: arrayType,
6435
6482
  bigint: bigIntType,
6436
6483
  boolean: booleanType,
6437
- coerce: coerce$1,
6438
- custom,
6439
6484
  date: dateType,
6440
- datetimeRegex,
6441
- defaultErrorMap: errorMap,
6442
6485
  discriminatedUnion: discriminatedUnionType,
6443
6486
  effect: effectsType,
6444
- enum: enumType,
6445
- function: functionType,
6446
- getErrorMap,
6447
- getParsedType,
6448
- instanceof: instanceOfType,
6487
+ "enum": enumType,
6488
+ "function": functionType,
6489
+ "instanceof": instanceOfType,
6449
6490
  intersection: intersectionType,
6450
- isAborted,
6451
- isAsync,
6452
- isDirty,
6453
- isValid,
6454
- late,
6455
6491
  lazy: lazyType,
6456
6492
  literal: literalType,
6457
- makeIssue,
6458
6493
  map: mapType,
6459
6494
  nan: nanType,
6460
6495
  nativeEnum: nativeEnumType,
6461
6496
  never: neverType,
6462
- null: nullType,
6497
+ "null": nullType,
6463
6498
  nullable: nullableType,
6464
6499
  number: numberType,
6465
6500
  object: objectType,
6466
- get objectUtil() {
6467
- return objectUtil;
6468
- },
6469
6501
  oboolean,
6470
6502
  onumber,
6471
6503
  optional: optionalType,
@@ -6473,23 +6505,22 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6473
6505
  pipeline: pipelineType,
6474
6506
  preprocess: preprocessType,
6475
6507
  promise: promiseType,
6476
- quotelessJson,
6477
6508
  record: recordType,
6478
6509
  set: setType,
6479
- setErrorMap,
6480
6510
  strictObject: strictObjectType,
6481
6511
  string: stringType,
6482
6512
  symbol: symbolType,
6483
6513
  transformer: effectsType,
6484
6514
  tuple: tupleType,
6485
- undefined: undefinedType,
6515
+ "undefined": undefinedType,
6486
6516
  union: unionType,
6487
6517
  unknown: unknownType,
6488
- get util() {
6489
- return util;
6490
- },
6491
- void: voidType
6492
- }, Symbol.toStringTag, { value: "Module" }));
6518
+ "void": voidType,
6519
+ NEVER,
6520
+ ZodIssueCode,
6521
+ quotelessJson,
6522
+ ZodError
6523
+ });
6493
6524
  const TeliBrand = ({
6494
6525
  appName,
6495
6526
  beta,
@@ -6499,7 +6530,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6499
6530
  }) => {
6500
6531
  const isDefaultSize = size === "base";
6501
6532
  const isJumboSize = size === "jumbo";
6502
- const validateAppName = stringType({
6533
+ const validateAppName = z.string({
6503
6534
  required_error: "Provide missing appName prop.",
6504
6535
  invalid_type_error: "appName must be a string"
6505
6536
  }).safeParse(appName);
@@ -6571,14 +6602,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6571
6602
  var i = _toPrimitive$1(t2, "string");
6572
6603
  return "symbol" == typeof i ? i : i + "";
6573
6604
  }
6574
- const noop$4 = () => {
6605
+ const noop$5 = () => {
6575
6606
  };
6576
6607
  let _WINDOW = {};
6577
6608
  let _DOCUMENT = {};
6578
6609
  let _MUTATION_OBSERVER = null;
6579
6610
  let _PERFORMANCE = {
6580
- mark: noop$4,
6581
- measure: noop$4
6611
+ mark: noop$5,
6612
+ measure: noop$5
6582
6613
  };
6583
6614
  try {
6584
6615
  if (typeof window !== "undefined") _WINDOW = window;
@@ -12322,12 +12353,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12322
12353
  private_createBreakpoints: createBreakpoints,
12323
12354
  unstable_applyStyles: applyStyles$2
12324
12355
  }, Symbol.toStringTag, { value: "Module" }));
12325
- function isObjectEmpty$2(obj) {
12356
+ function isObjectEmpty$1(obj) {
12326
12357
  return Object.keys(obj).length === 0;
12327
12358
  }
12328
12359
  function useTheme$4(defaultTheme2 = null) {
12329
12360
  const contextTheme = React__namespace.useContext(ThemeContext$1);
12330
- return !contextTheme || isObjectEmpty$2(contextTheme) ? defaultTheme2 : contextTheme;
12361
+ return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme2 : contextTheme;
12331
12362
  }
12332
12363
  const systemDefaultTheme$2 = createTheme$3();
12333
12364
  function useTheme$3(defaultTheme2 = systemDefaultTheme$2) {
@@ -12508,7 +12539,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12508
12539
  if (hasRequiredReactIs_production) return reactIs_production;
12509
12540
  hasRequiredReactIs_production = 1;
12510
12541
  var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
12511
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12542
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12512
12543
  function typeOf(object) {
12513
12544
  if ("object" === typeof object && null !== object) {
12514
12545
  var $$typeof = object.$$typeof;
@@ -12520,7 +12551,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12520
12551
  case REACT_STRICT_MODE_TYPE:
12521
12552
  case REACT_SUSPENSE_TYPE:
12522
12553
  case REACT_SUSPENSE_LIST_TYPE:
12523
- case REACT_VIEW_TRANSITION_TYPE:
12524
12554
  return object;
12525
12555
  default:
12526
12556
  switch (object = object && object.$$typeof, object) {
@@ -12589,7 +12619,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12589
12619
  return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
12590
12620
  };
12591
12621
  reactIs_production.isValidElementType = function(type) {
12592
- return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12622
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12593
12623
  };
12594
12624
  reactIs_production.typeOf = typeOf;
12595
12625
  return reactIs_production;
@@ -12620,7 +12650,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12620
12650
  case REACT_STRICT_MODE_TYPE:
12621
12651
  case REACT_SUSPENSE_TYPE:
12622
12652
  case REACT_SUSPENSE_LIST_TYPE:
12623
- case REACT_VIEW_TRANSITION_TYPE:
12624
12653
  return object;
12625
12654
  default:
12626
12655
  switch (object = object && object.$$typeof, object) {
@@ -12641,7 +12670,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12641
12670
  }
12642
12671
  }
12643
12672
  var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
12644
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12673
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12645
12674
  reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
12646
12675
  reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
12647
12676
  reactIs_development.Element = REACT_ELEMENT_TYPE;
@@ -12691,7 +12720,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12691
12720
  return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
12692
12721
  };
12693
12722
  reactIs_development.isValidElementType = function(type) {
12694
- return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12723
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12695
12724
  };
12696
12725
  reactIs_development.typeOf = typeOf;
12697
12726
  }();
@@ -13255,7 +13284,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13255
13284
  };
13256
13285
  return requireProp;
13257
13286
  }
13258
- function setRef(ref, value2) {
13287
+ function setRef$1(ref, value2) {
13259
13288
  if (typeof ref === "function") {
13260
13289
  ref(value2);
13261
13290
  } else if (ref) {
@@ -13342,7 +13371,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13342
13371
  }
13343
13372
  return (instance) => {
13344
13373
  refs.forEach((ref) => {
13345
- setRef(ref, instance);
13374
+ setRef$1(ref, instance);
13346
13375
  });
13347
13376
  };
13348
13377
  }, refs);
@@ -15360,9 +15389,7 @@ const theme2 = createTheme({ palette: {
15360
15389
  transitions: transitionsInput = {},
15361
15390
  typography: typographyInput = {}
15362
15391
  } = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$1g);
15363
- if (options.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
15364
- // `generateCssVars` is the closest identifier for checking that the `options` is a result of `extendTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
15365
- options.generateCssVars === void 0) {
15392
+ if (options.vars) {
15366
15393
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
15367
15394
  Please use another name.` : formatMuiErrorMessage$1(18));
15368
15395
  }
@@ -15722,21 +15749,9 @@ Please use another name.` : formatMuiErrorMessage$1(18));
15722
15749
  theme: themeInput
15723
15750
  } = _ref2, props = _objectWithoutPropertiesLoose$1(_ref2, _excluded$1e);
15724
15751
  const scopedTheme = themeInput[THEME_ID];
15725
- let finalTheme = scopedTheme || themeInput;
15726
- if (typeof themeInput !== "function") {
15727
- if (scopedTheme && !scopedTheme.vars) {
15728
- finalTheme = _extends$3({}, scopedTheme, {
15729
- vars: null
15730
- });
15731
- } else if (themeInput && !themeInput.vars) {
15732
- finalTheme = _extends$3({}, themeInput, {
15733
- vars: null
15734
- });
15735
- }
15736
- }
15737
15752
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider$1, _extends$3({}, props, {
15738
15753
  themeId: scopedTheme ? THEME_ID : void 0,
15739
- theme: finalTheme
15754
+ theme: scopedTheme || themeInput
15740
15755
  }));
15741
15756
  }
15742
15757
  process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
@@ -16398,7 +16413,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
16398
16413
  */
16399
16414
  onExited: PropTypes.func
16400
16415
  } : {};
16401
- function noop$3() {
16416
+ function noop$4() {
16402
16417
  }
16403
16418
  Transition$1.defaultProps = {
16404
16419
  in: false,
@@ -16407,12 +16422,12 @@ Please use another name.` : formatMuiErrorMessage$1(18));
16407
16422
  appear: false,
16408
16423
  enter: true,
16409
16424
  exit: true,
16410
- onEnter: noop$3,
16411
- onEntering: noop$3,
16412
- onEntered: noop$3,
16413
- onExit: noop$3,
16414
- onExiting: noop$3,
16415
- onExited: noop$3
16425
+ onEnter: noop$4,
16426
+ onEntering: noop$4,
16427
+ onEntered: noop$4,
16428
+ onExit: noop$4,
16429
+ onExiting: noop$4,
16430
+ onExited: noop$4
16416
16431
  };
16417
16432
  Transition$1.UNMOUNTED = UNMOUNTED;
16418
16433
  Transition$1.EXITED = EXITED;
@@ -18948,7 +18963,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
18948
18963
  multiple
18949
18964
  ]);
18950
18965
  const handleListboxRef = useEventCallback((node2) => {
18951
- setRef(listboxRef, node2);
18966
+ setRef$1(listboxRef, node2);
18952
18967
  if (!node2) {
18953
18968
  return;
18954
18969
  }
@@ -19119,7 +19134,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
19119
19134
  case "PageUp":
19120
19135
  event.preventDefault();
19121
19136
  changeHighlightedIndex({
19122
- diff: -pageSize,
19137
+ diff: -5,
19123
19138
  direction: "previous",
19124
19139
  reason: "keyboard",
19125
19140
  event
@@ -19467,12 +19482,12 @@ Please use another name.` : formatMuiErrorMessage$1(18));
19467
19482
  }
19468
19483
  return n.default = e, t2 && t2.set(e, n), n;
19469
19484
  }
19470
- function isObjectEmpty$1(obj) {
19485
+ function isObjectEmpty(obj) {
19471
19486
  return Object.keys(obj).length === 0;
19472
19487
  }
19473
19488
  function useTheme(defaultTheme2 = null) {
19474
19489
  const contextTheme = React$1.useContext(_styledEngine.ThemeContext);
19475
- return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme2 : contextTheme;
19490
+ return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme2 : contextTheme;
19476
19491
  }
19477
19492
  default_1 = useThemeWithoutDefault.default = useTheme;
19478
19493
  var top = "top";
@@ -20839,9 +20854,9 @@ Please use another name.` : formatMuiErrorMessage$1(18));
20839
20854
  }, [container, disablePortal]);
20840
20855
  useEnhancedEffect(() => {
20841
20856
  if (mountNode && !disablePortal) {
20842
- setRef(forwardedRef, mountNode);
20857
+ setRef$1(forwardedRef, mountNode);
20843
20858
  return () => {
20844
- setRef(forwardedRef, null);
20859
+ setRef$1(forwardedRef, null);
20845
20860
  };
20846
20861
  }
20847
20862
  return void 0;
@@ -22050,14 +22065,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
22050
22065
  transform: "translateZ(0)"
22051
22066
  }
22052
22067
  };
22053
- function isObjectEmpty(object) {
22054
- for (const _2 in object) {
22055
- return false;
22056
- }
22057
- return true;
22058
- }
22059
22068
  function isEmpty$1(obj) {
22060
- return isObjectEmpty(obj) || obj.outerHeightStyle === 0 && !obj.overflowing;
22069
+ return obj === void 0 || obj === null || Object.keys(obj).length === 0 || obj.outerHeightStyle === 0 && !obj.overflowing;
22061
22070
  }
22062
22071
  const TextareaAutosize = /* @__PURE__ */ React__namespace.forwardRef(function TextareaAutosize2(props, forwardedRef) {
22063
22072
  const {
@@ -22070,35 +22079,32 @@ Please use another name.` : formatMuiErrorMessage$1(18));
22070
22079
  const {
22071
22080
  current: isControlled
22072
22081
  } = React__namespace.useRef(value2 != null);
22073
- const textareaRef = React__namespace.useRef(null);
22074
- const handleRef = useForkRef$1(forwardedRef, textareaRef);
22082
+ const inputRef = React__namespace.useRef(null);
22083
+ const handleRef = useForkRef$1(forwardedRef, inputRef);
22075
22084
  const heightRef = React__namespace.useRef(null);
22076
- const hiddenTextareaRef = React__namespace.useRef(null);
22085
+ const shadowRef = React__namespace.useRef(null);
22077
22086
  const calculateTextareaStyles = React__namespace.useCallback(() => {
22078
- const textarea = textareaRef.current;
22079
- const hiddenTextarea = hiddenTextareaRef.current;
22080
- if (!textarea || !hiddenTextarea) {
22081
- return void 0;
22082
- }
22083
- const containerWindow = ownerWindow(textarea);
22084
- const computedStyle = containerWindow.getComputedStyle(textarea);
22087
+ const input = inputRef.current;
22088
+ const containerWindow = ownerWindow(input);
22089
+ const computedStyle = containerWindow.getComputedStyle(input);
22085
22090
  if (computedStyle.width === "0px") {
22086
22091
  return {
22087
22092
  outerHeightStyle: 0,
22088
22093
  overflowing: false
22089
22094
  };
22090
22095
  }
22091
- hiddenTextarea.style.width = computedStyle.width;
22092
- hiddenTextarea.value = textarea.value || props.placeholder || "x";
22093
- if (hiddenTextarea.value.slice(-1) === "\n") {
22094
- hiddenTextarea.value += " ";
22096
+ const inputShallow = shadowRef.current;
22097
+ inputShallow.style.width = computedStyle.width;
22098
+ inputShallow.value = input.value || props.placeholder || "x";
22099
+ if (inputShallow.value.slice(-1) === "\n") {
22100
+ inputShallow.value += " ";
22095
22101
  }
22096
22102
  const boxSizing2 = computedStyle.boxSizing;
22097
22103
  const padding2 = getStyleValue(computedStyle.paddingBottom) + getStyleValue(computedStyle.paddingTop);
22098
22104
  const border2 = getStyleValue(computedStyle.borderBottomWidth) + getStyleValue(computedStyle.borderTopWidth);
22099
- const innerHeight2 = hiddenTextarea.scrollHeight;
22100
- hiddenTextarea.value = "x";
22101
- const singleRowHeight = hiddenTextarea.scrollHeight;
22105
+ const innerHeight2 = inputShallow.scrollHeight;
22106
+ inputShallow.value = "x";
22107
+ const singleRowHeight = inputShallow.scrollHeight;
22102
22108
  let outerHeight2 = innerHeight2;
22103
22109
  if (minRows) {
22104
22110
  outerHeight2 = Math.max(Number(minRows) * singleRowHeight, outerHeight2);
@@ -22114,60 +22120,48 @@ Please use another name.` : formatMuiErrorMessage$1(18));
22114
22120
  overflowing
22115
22121
  };
22116
22122
  }, [maxRows, minRows, props.placeholder]);
22117
- const didHeightChange = useEventCallback(() => {
22118
- const textarea = textareaRef.current;
22119
- const textareaStyles = calculateTextareaStyles();
22120
- if (!textarea || !textareaStyles || isEmpty$1(textareaStyles)) {
22121
- return false;
22122
- }
22123
- const outerHeightStyle = textareaStyles.outerHeightStyle;
22124
- return heightRef.current != null && heightRef.current !== outerHeightStyle;
22125
- });
22126
22123
  const syncHeight = React__namespace.useCallback(() => {
22127
- const textarea = textareaRef.current;
22128
22124
  const textareaStyles = calculateTextareaStyles();
22129
- if (!textarea || !textareaStyles || isEmpty$1(textareaStyles)) {
22125
+ if (isEmpty$1(textareaStyles)) {
22130
22126
  return;
22131
22127
  }
22132
22128
  const outerHeightStyle = textareaStyles.outerHeightStyle;
22129
+ const input = inputRef.current;
22133
22130
  if (heightRef.current !== outerHeightStyle) {
22134
22131
  heightRef.current = outerHeightStyle;
22135
- textarea.style.height = `${outerHeightStyle}px`;
22132
+ input.style.height = `${outerHeightStyle}px`;
22136
22133
  }
22137
- textarea.style.overflow = textareaStyles.overflowing ? "hidden" : "";
22134
+ input.style.overflow = textareaStyles.overflowing ? "hidden" : "";
22138
22135
  }, [calculateTextareaStyles]);
22139
- const frameRef = React__namespace.useRef(-1);
22140
22136
  useEnhancedEffect(() => {
22141
- const debouncedHandleResize = debounce$1(syncHeight);
22142
- const textarea = textareaRef == null ? void 0 : textareaRef.current;
22143
- if (!textarea) {
22144
- return void 0;
22145
- }
22146
- const containerWindow = ownerWindow(textarea);
22147
- containerWindow.addEventListener("resize", debouncedHandleResize);
22137
+ const handleResize = () => {
22138
+ syncHeight();
22139
+ };
22140
+ let rAF;
22141
+ const rAFHandleResize = () => {
22142
+ cancelAnimationFrame(rAF);
22143
+ rAF = requestAnimationFrame(() => {
22144
+ handleResize();
22145
+ });
22146
+ };
22147
+ const debounceHandleResize = debounce$1(handleResize);
22148
+ const input = inputRef.current;
22149
+ const containerWindow = ownerWindow(input);
22150
+ containerWindow.addEventListener("resize", debounceHandleResize);
22148
22151
  let resizeObserver;
22149
22152
  if (typeof ResizeObserver !== "undefined") {
22150
- resizeObserver = new ResizeObserver(() => {
22151
- if (didHeightChange()) {
22152
- resizeObserver.unobserve(textarea);
22153
- cancelAnimationFrame(frameRef.current);
22154
- syncHeight();
22155
- frameRef.current = requestAnimationFrame(() => {
22156
- resizeObserver.observe(textarea);
22157
- });
22158
- }
22159
- });
22160
- resizeObserver.observe(textarea);
22153
+ resizeObserver = new ResizeObserver(process.env.NODE_ENV === "test" ? rAFHandleResize : handleResize);
22154
+ resizeObserver.observe(input);
22161
22155
  }
22162
22156
  return () => {
22163
- debouncedHandleResize.clear();
22164
- cancelAnimationFrame(frameRef.current);
22165
- containerWindow.removeEventListener("resize", debouncedHandleResize);
22157
+ debounceHandleResize.clear();
22158
+ cancelAnimationFrame(rAF);
22159
+ containerWindow.removeEventListener("resize", debounceHandleResize);
22166
22160
  if (resizeObserver) {
22167
22161
  resizeObserver.disconnect();
22168
22162
  }
22169
22163
  };
22170
- }, [calculateTextareaStyles, syncHeight, didHeightChange]);
22164
+ }, [calculateTextareaStyles, syncHeight]);
22171
22165
  useEnhancedEffect(() => {
22172
22166
  syncHeight();
22173
22167
  });
@@ -22190,7 +22184,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
22190
22184
  "aria-hidden": true,
22191
22185
  className: props.className,
22192
22186
  readOnly: true,
22193
- ref: hiddenTextareaRef,
22187
+ ref: shadowRef,
22194
22188
  tabIndex: -1,
22195
22189
  style: _extends$3({}, styles$7.shadow, style2, {
22196
22190
  paddingTop: 0,
@@ -43418,7 +43412,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43418
43412
  };
43419
43413
  const DEFAULT_THEME = "dark";
43420
43414
  const TELICENT_THEME = "telicent-theme";
43421
- const ThemeEnum = enumType(["dark", "light"]);
43415
+ const ThemeEnum = z.enum(["dark", "light"]);
43422
43416
  const useTeliTheme = () => {
43423
43417
  const getTheme = () => {
43424
43418
  const savedTheme = localStorage.getItem(TELICENT_THEME);
@@ -43550,7 +43544,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43550
43544
  }
43551
43545
  };
43552
43546
  var isServer = typeof window === "undefined" || "Deno" in globalThis;
43553
- function noop$2() {
43547
+ function noop$3() {
43554
43548
  }
43555
43549
  function functionalUpdate(updater, input) {
43556
43550
  return typeof updater === "function" ? updater(input) : updater;
@@ -43648,7 +43642,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43648
43642
  return false;
43649
43643
  }
43650
43644
  if (a && b && typeof a === "object" && typeof b === "object") {
43651
- return Object.keys(b).every((key) => partialMatchKey(a[key], b[key]));
43645
+ return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
43652
43646
  }
43653
43647
  return false;
43654
43648
  }
@@ -43663,11 +43657,10 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43663
43657
  const bItems = array2 ? b : Object.keys(b);
43664
43658
  const bSize = bItems.length;
43665
43659
  const copy2 = array2 ? [] : {};
43666
- const aItemsSet = new Set(aItems);
43667
43660
  let equalItems = 0;
43668
43661
  for (let i = 0; i < bSize; i++) {
43669
43662
  const key = array2 ? i : bItems[i];
43670
- if ((!array2 && aItemsSet.has(key) || array2) && a[key] === void 0 && b[key] === void 0) {
43663
+ if ((!array2 && aItems.includes(key) || array2) && a[key] === void 0 && b[key] === void 0) {
43671
43664
  copy2[key] = void 0;
43672
43665
  equalItems++;
43673
43666
  } else {
@@ -43734,7 +43727,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43734
43727
  console.error(
43735
43728
  `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`
43736
43729
  );
43737
- throw error;
43738
43730
  }
43739
43731
  }
43740
43732
  return replaceEqualDeep(prevData, data);
@@ -43766,12 +43758,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43766
43758
  }
43767
43759
  return options.queryFn;
43768
43760
  }
43769
- function shouldThrowError(throwOnError, params) {
43770
- if (typeof throwOnError === "function") {
43771
- return throwOnError(...params);
43772
- }
43773
- return !!throwOnError;
43774
- }
43775
43761
  var FocusManager = (_d = class extends Subscribable {
43776
43762
  constructor() {
43777
43763
  super();
@@ -44047,7 +44033,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44047
44033
  }
44048
44034
  };
44049
44035
  }
44050
- var defaultScheduler = (cb) => setTimeout(cb, 0);
44051
44036
  function createNotifyManager() {
44052
44037
  let queue = [];
44053
44038
  let transactions = 0;
@@ -44057,7 +44042,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44057
44042
  let batchNotifyFn = (callback) => {
44058
44043
  callback();
44059
44044
  };
44060
- let scheduleFn = defaultScheduler;
44045
+ let scheduleFn = (cb) => setTimeout(cb, 0);
44061
44046
  const schedule2 = (callback) => {
44062
44047
  if (transactions) {
44063
44048
  queue.push(callback);
@@ -44209,7 +44194,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44209
44194
  var _a2, _b2;
44210
44195
  const promise = (_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.promise;
44211
44196
  (_b2 = __privateGet(this, _retryer)) == null ? void 0 : _b2.cancel(options);
44212
- return promise ? promise.then(noop$2).catch(noop$2) : Promise.resolve();
44197
+ return promise ? promise.then(noop$3).catch(noop$3) : Promise.resolve();
44213
44198
  }
44214
44199
  destroy() {
44215
44200
  super.destroy();
@@ -44230,33 +44215,19 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44230
44215
  }
44231
44216
  return this.options.queryFn === skipToken || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
44232
44217
  }
44233
- isStatic() {
44234
- if (this.getObserversCount() > 0) {
44235
- return this.observers.some(
44236
- (observer) => resolveStaleTime(observer.options.staleTime, this) === "static"
44237
- );
44238
- }
44239
- return false;
44240
- }
44241
44218
  isStale() {
44219
+ if (this.state.isInvalidated) {
44220
+ return true;
44221
+ }
44242
44222
  if (this.getObserversCount() > 0) {
44243
44223
  return this.observers.some(
44244
44224
  (observer) => observer.getCurrentResult().isStale
44245
44225
  );
44246
44226
  }
44247
- return this.state.data === void 0 || this.state.isInvalidated;
44227
+ return this.state.data === void 0;
44248
44228
  }
44249
44229
  isStaleByTime(staleTime = 0) {
44250
- if (this.state.data === void 0) {
44251
- return true;
44252
- }
44253
- if (staleTime === "static") {
44254
- return false;
44255
- }
44256
- if (this.state.isInvalidated) {
44257
- return true;
44258
- }
44259
- return !timeUntilStale(this.state.dataUpdatedAt, staleTime);
44230
+ return this.state.isInvalidated || this.state.data === void 0 || !timeUntilStale(this.state.dataUpdatedAt, staleTime);
44260
44231
  }
44261
44232
  onFocus() {
44262
44233
  var _a2;
@@ -44339,16 +44310,12 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44339
44310
  };
44340
44311
  const fetchFn = () => {
44341
44312
  const queryFn = ensureQueryFn(this.options, fetchOptions2);
44342
- const createQueryFnContext = () => {
44343
- const queryFnContext2 = {
44344
- client: __privateGet(this, _client),
44345
- queryKey: this.queryKey,
44346
- meta: this.meta
44347
- };
44348
- addSignalProperty(queryFnContext2);
44349
- return queryFnContext2;
44313
+ const queryFnContext = {
44314
+ client: __privateGet(this, _client),
44315
+ queryKey: this.queryKey,
44316
+ meta: this.meta
44350
44317
  };
44351
- const queryFnContext = createQueryFnContext();
44318
+ addSignalProperty(queryFnContext);
44352
44319
  __privateSet(this, _abortSignalConsumed, false);
44353
44320
  if (this.options.persister) {
44354
44321
  return this.options.persister(
@@ -44359,20 +44326,19 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44359
44326
  }
44360
44327
  return queryFn(queryFnContext);
44361
44328
  };
44362
- const createFetchContext = () => {
44363
- const context2 = {
44364
- fetchOptions: fetchOptions2,
44365
- options: this.options,
44366
- queryKey: this.queryKey,
44367
- client: __privateGet(this, _client),
44368
- state: this.state,
44369
- fetchFn
44370
- };
44371
- addSignalProperty(context2);
44372
- return context2;
44329
+ const context = {
44330
+ fetchOptions: fetchOptions2,
44331
+ options: this.options,
44332
+ queryKey: this.queryKey,
44333
+ client: __privateGet(this, _client),
44334
+ state: this.state,
44335
+ fetchFn
44373
44336
  };
44374
- const context = createFetchContext();
44375
- (_a2 = this.options.behavior) == null ? void 0 : _a2.onFetch(context, this);
44337
+ addSignalProperty(context);
44338
+ (_a2 = this.options.behavior) == null ? void 0 : _a2.onFetch(
44339
+ context,
44340
+ this
44341
+ );
44376
44342
  __privateSet(this, _revertState, this.state);
44377
44343
  if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((_b2 = context.fetchOptions) == null ? void 0 : _b2.meta)) {
44378
44344
  __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "fetch", meta: (_c2 = context.fetchOptions) == null ? void 0 : _c2.meta });
@@ -44473,7 +44439,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44473
44439
  fetchMeta: action.meta ?? null
44474
44440
  };
44475
44441
  case "success":
44476
- __privateSet(this, _revertState, void 0);
44477
44442
  return {
44478
44443
  ...state,
44479
44444
  data: action.data,
@@ -44698,9 +44663,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44698
44663
  }
44699
44664
  async execute(variables) {
44700
44665
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p, _q, _r, _s, _t7;
44701
- const onContinue = () => {
44702
- __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "continue" });
44703
- };
44704
44666
  __privateSet(this, _retryer2, createRetryer({
44705
44667
  fn: () => {
44706
44668
  if (!this.options.mutationFn) {
@@ -44714,7 +44676,9 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44714
44676
  onPause: () => {
44715
44677
  __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "pause" });
44716
44678
  },
44717
- onContinue,
44679
+ onContinue: () => {
44680
+ __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "continue" });
44681
+ },
44718
44682
  retry: this.options.retry ?? 0,
44719
44683
  retryDelay: this.options.retryDelay,
44720
44684
  networkMode: this.options.networkMode,
@@ -44723,9 +44687,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44723
44687
  const restored = this.state.status === "pending";
44724
44688
  const isPaused = !__privateGet(this, _retryer2).canStart();
44725
44689
  try {
44726
- if (restored) {
44727
- onContinue();
44728
- } else {
44690
+ if (!restored) {
44729
44691
  __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "pending", variables, isPaused });
44730
44692
  await ((_b2 = (_a2 = __privateGet(this, _mutationCache).config).onMutate) == null ? void 0 : _b2.call(
44731
44693
  _a2,
@@ -44986,7 +44948,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44986
44948
  const pausedMutations = this.getAll().filter((x2) => x2.state.isPaused);
44987
44949
  return notifyManager.batch(
44988
44950
  () => Promise.all(
44989
- pausedMutations.map((mutation) => mutation.continue().catch(noop$2))
44951
+ pausedMutations.map((mutation) => mutation.continue().catch(noop$3))
44990
44952
  )
44991
44953
  );
44992
44954
  }
@@ -45030,19 +44992,17 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45030
44992
  if (param == null && data.pages.length) {
45031
44993
  return Promise.resolve(data);
45032
44994
  }
45033
- const createQueryFnContext = () => {
45034
- const queryFnContext2 = {
45035
- client: context.client,
45036
- queryKey: context.queryKey,
45037
- pageParam: param,
45038
- direction: previous ? "backward" : "forward",
45039
- meta: context.options.meta
45040
- };
45041
- addSignalProperty(queryFnContext2);
45042
- return queryFnContext2;
44995
+ const queryFnContext = {
44996
+ client: context.client,
44997
+ queryKey: context.queryKey,
44998
+ pageParam: param,
44999
+ direction: previous ? "backward" : "forward",
45000
+ meta: context.options.meta
45043
45001
  };
45044
- const queryFnContext = createQueryFnContext();
45045
- const page = await queryFn(queryFnContext);
45002
+ addSignalProperty(queryFnContext);
45003
+ const page = await queryFn(
45004
+ queryFnContext
45005
+ );
45046
45006
  const { maxPages } = context.options;
45047
45007
  const addTo = previous ? addToStart : addToEnd;
45048
45008
  return {
@@ -45125,7 +45085,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45125
45085
  }
45126
45086
  mount() {
45127
45087
  __privateWrapper(this, _mountCount)._++;
45128
- if (__privateGet(this, _mountCount) !== 1) return;
45088
+ if (__privateGet(this, _mountCount) !== 1)
45089
+ return;
45129
45090
  __privateSet(this, _unsubscribeFocus, focusManager.subscribe(async (focused) => {
45130
45091
  if (focused) {
45131
45092
  await this.resumePausedMutations();
@@ -45142,7 +45103,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45142
45103
  unmount() {
45143
45104
  var _a2, _b2;
45144
45105
  __privateWrapper(this, _mountCount)._--;
45145
- if (__privateGet(this, _mountCount) !== 0) return;
45106
+ if (__privateGet(this, _mountCount) !== 0)
45107
+ return;
45146
45108
  (_a2 = __privateGet(this, _unsubscribeFocus)) == null ? void 0 : _a2.call(this);
45147
45109
  __privateSet(this, _unsubscribeFocus, void 0);
45148
45110
  (_b2 = __privateGet(this, _unsubscribeOnline)) == null ? void 0 : _b2.call(this);
@@ -45154,13 +45116,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45154
45116
  isMutating(filters) {
45155
45117
  return __privateGet(this, _mutationCache2).findAll({ ...filters, status: "pending" }).length;
45156
45118
  }
45157
- /**
45158
- * Imperative (non-reactive) way to retrieve data for a QueryKey.
45159
- * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
45160
- *
45161
- * Hint: Do not use this function inside a component, because it won't receive updates.
45162
- * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
45163
- */
45164
45119
  getQueryData(queryKey) {
45165
45120
  var _a2;
45166
45121
  const options = this.defaultQueryOptions({ queryKey });
@@ -45221,17 +45176,15 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45221
45176
  }
45222
45177
  resetQueries(filters, options) {
45223
45178
  const queryCache = __privateGet(this, _queryCache);
45179
+ const refetchFilters = {
45180
+ type: "active",
45181
+ ...filters
45182
+ };
45224
45183
  return notifyManager.batch(() => {
45225
45184
  queryCache.findAll(filters).forEach((query) => {
45226
45185
  query.reset();
45227
45186
  });
45228
- return this.refetchQueries(
45229
- {
45230
- type: "active",
45231
- ...filters
45232
- },
45233
- options
45234
- );
45187
+ return this.refetchQueries(refetchFilters, options);
45235
45188
  });
45236
45189
  }
45237
45190
  cancelQueries(filters, cancelOptions = {}) {
@@ -45239,7 +45192,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45239
45192
  const promises = notifyManager.batch(
45240
45193
  () => __privateGet(this, _queryCache).findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
45241
45194
  );
45242
- return Promise.all(promises).then(noop$2).catch(noop$2);
45195
+ return Promise.all(promises).then(noop$3).catch(noop$3);
45243
45196
  }
45244
45197
  invalidateQueries(filters, options = {}) {
45245
45198
  return notifyManager.batch(() => {
@@ -45249,13 +45202,11 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45249
45202
  if ((filters == null ? void 0 : filters.refetchType) === "none") {
45250
45203
  return Promise.resolve();
45251
45204
  }
45252
- return this.refetchQueries(
45253
- {
45254
- ...filters,
45255
- type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
45256
- },
45257
- options
45258
- );
45205
+ const refetchFilters = {
45206
+ ...filters,
45207
+ type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
45208
+ };
45209
+ return this.refetchQueries(refetchFilters, options);
45259
45210
  });
45260
45211
  }
45261
45212
  refetchQueries(filters, options = {}) {
@@ -45264,15 +45215,15 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45264
45215
  cancelRefetch: options.cancelRefetch ?? true
45265
45216
  };
45266
45217
  const promises = notifyManager.batch(
45267
- () => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled() && !query.isStatic()).map((query) => {
45218
+ () => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
45268
45219
  let promise = query.fetch(void 0, fetchOptions2);
45269
45220
  if (!fetchOptions2.throwOnError) {
45270
- promise = promise.catch(noop$2);
45221
+ promise = promise.catch(noop$3);
45271
45222
  }
45272
45223
  return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
45273
45224
  })
45274
45225
  );
45275
- return Promise.all(promises).then(noop$2);
45226
+ return Promise.all(promises).then(noop$3);
45276
45227
  }
45277
45228
  fetchQuery(options) {
45278
45229
  const defaultedOptions = this.defaultQueryOptions(options);
@@ -45285,14 +45236,14 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45285
45236
  ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
45286
45237
  }
45287
45238
  prefetchQuery(options) {
45288
- return this.fetchQuery(options).then(noop$2).catch(noop$2);
45239
+ return this.fetchQuery(options).then(noop$3).catch(noop$3);
45289
45240
  }
45290
45241
  fetchInfiniteQuery(options) {
45291
45242
  options.behavior = infiniteQueryBehavior(options.pages);
45292
45243
  return this.fetchQuery(options);
45293
45244
  }
45294
45245
  prefetchInfiniteQuery(options) {
45295
- return this.fetchInfiniteQuery(options).then(noop$2).catch(noop$2);
45246
+ return this.fetchInfiniteQuery(options).then(noop$3).catch(noop$3);
45296
45247
  }
45297
45248
  ensureInfiniteQueryData(options) {
45298
45249
  options.behavior = infiniteQueryBehavior(options.pages);
@@ -45340,10 +45291,10 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45340
45291
  }
45341
45292
  getMutationDefaults(mutationKey) {
45342
45293
  const defaults2 = [...__privateGet(this, _mutationDefaults).values()];
45343
- const result = {};
45294
+ let result = {};
45344
45295
  defaults2.forEach((queryDefault) => {
45345
45296
  if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {
45346
- Object.assign(result, queryDefault.defaultOptions);
45297
+ result = { ...result, ...queryDefault.defaultOptions };
45347
45298
  }
45348
45299
  });
45349
45300
  return result;
@@ -45466,7 +45417,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45466
45417
  __privateMethod(this, _QueryObserver_instances, clearRefetchInterval_fn).call(this);
45467
45418
  __privateGet(this, _currentQuery).removeObserver(this);
45468
45419
  }
45469
- setOptions(options) {
45420
+ setOptions(options, notifyOptions) {
45470
45421
  const prevOptions = this.options;
45471
45422
  const prevQuery = __privateGet(this, _currentQuery);
45472
45423
  this.options = __privateGet(this, _client2).defaultQueryOptions(options);
@@ -45493,7 +45444,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45493
45444
  )) {
45494
45445
  __privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this);
45495
45446
  }
45496
- this.updateResult();
45447
+ this.updateResult(notifyOptions);
45497
45448
  if (mounted && (__privateGet(this, _currentQuery) !== prevQuery || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== resolveEnabled(prevOptions.enabled, __privateGet(this, _currentQuery)) || resolveStaleTime(this.options.staleTime, __privateGet(this, _currentQuery)) !== resolveStaleTime(prevOptions.staleTime, __privateGet(this, _currentQuery)))) {
45498
45449
  __privateMethod(this, _QueryObserver_instances, updateStaleTimeout_fn).call(this);
45499
45450
  }
@@ -45516,13 +45467,19 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45516
45467
  return __privateGet(this, _currentResult);
45517
45468
  }
45518
45469
  trackResult(result, onPropTracked) {
45519
- return new Proxy(result, {
45520
- get: (target, key) => {
45521
- this.trackProp(key);
45522
- onPropTracked == null ? void 0 : onPropTracked(key);
45523
- return Reflect.get(target, key);
45524
- }
45470
+ const trackedResult = {};
45471
+ Object.keys(result).forEach((key) => {
45472
+ Object.defineProperty(trackedResult, key, {
45473
+ configurable: false,
45474
+ enumerable: true,
45475
+ get: () => {
45476
+ this.trackProp(key);
45477
+ onPropTracked == null ? void 0 : onPropTracked(key);
45478
+ return result[key];
45479
+ }
45480
+ });
45525
45481
  });
45482
+ return trackedResult;
45526
45483
  }
45527
45484
  trackProp(key) {
45528
45485
  __privateGet(this, _trackedProps).add(key);
@@ -45577,18 +45534,40 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45577
45534
  }
45578
45535
  }
45579
45536
  let { error, errorUpdatedAt, status } = newState;
45580
- data = newState.data;
45581
- let skipSelect = false;
45537
+ if (options.select && newState.data !== void 0) {
45538
+ if (prevResult && newState.data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === __privateGet(this, _selectFn)) {
45539
+ data = __privateGet(this, _selectResult);
45540
+ } else {
45541
+ try {
45542
+ __privateSet(this, _selectFn, options.select);
45543
+ data = options.select(newState.data);
45544
+ data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
45545
+ __privateSet(this, _selectResult, data);
45546
+ __privateSet(this, _selectError, null);
45547
+ } catch (selectError) {
45548
+ __privateSet(this, _selectError, selectError);
45549
+ }
45550
+ }
45551
+ } else {
45552
+ data = newState.data;
45553
+ }
45582
45554
  if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
45583
45555
  let placeholderData;
45584
45556
  if ((prevResult == null ? void 0 : prevResult.isPlaceholderData) && options.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) {
45585
45557
  placeholderData = prevResult.data;
45586
- skipSelect = true;
45587
45558
  } else {
45588
45559
  placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
45589
45560
  (_a2 = __privateGet(this, _lastQueryWithDefinedData)) == null ? void 0 : _a2.state.data,
45590
45561
  __privateGet(this, _lastQueryWithDefinedData)
45591
45562
  ) : options.placeholderData;
45563
+ if (options.select && placeholderData !== void 0) {
45564
+ try {
45565
+ placeholderData = options.select(placeholderData);
45566
+ __privateSet(this, _selectError, null);
45567
+ } catch (selectError) {
45568
+ __privateSet(this, _selectError, selectError);
45569
+ }
45570
+ }
45592
45571
  }
45593
45572
  if (placeholderData !== void 0) {
45594
45573
  status = "success";
@@ -45600,21 +45579,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45600
45579
  isPlaceholderData = true;
45601
45580
  }
45602
45581
  }
45603
- if (options.select && data !== void 0 && !skipSelect) {
45604
- if (prevResult && data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === __privateGet(this, _selectFn)) {
45605
- data = __privateGet(this, _selectResult);
45606
- } else {
45607
- try {
45608
- __privateSet(this, _selectFn, options.select);
45609
- data = options.select(data);
45610
- data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
45611
- __privateSet(this, _selectResult, data);
45612
- __privateSet(this, _selectError, null);
45613
- } catch (selectError) {
45614
- __privateSet(this, _selectError, selectError);
45615
- }
45616
- }
45617
- }
45618
45582
  if (__privateGet(this, _selectError)) {
45619
45583
  error = __privateGet(this, _selectError);
45620
45584
  data = __privateGet(this, _selectResult);
@@ -45687,7 +45651,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45687
45651
  }
45688
45652
  return nextResult;
45689
45653
  }
45690
- updateResult() {
45654
+ updateResult(notifyOptions) {
45691
45655
  const prevResult = __privateGet(this, _currentResult);
45692
45656
  const nextResult = this.createResult(__privateGet(this, _currentQuery), this.options);
45693
45657
  __privateSet(this, _currentResultState, __privateGet(this, _currentQuery).state);
@@ -45699,6 +45663,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45699
45663
  return;
45700
45664
  }
45701
45665
  __privateSet(this, _currentResult, nextResult);
45666
+ const defaultNotifyOptions = {};
45702
45667
  const shouldNotifyListeners = () => {
45703
45668
  if (!prevResult) {
45704
45669
  return true;
@@ -45720,7 +45685,10 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45720
45685
  return changed && includedProps.has(typedKey);
45721
45686
  });
45722
45687
  };
45723
- __privateMethod(this, _QueryObserver_instances, notify_fn).call(this, { listeners: shouldNotifyListeners() });
45688
+ if ((notifyOptions == null ? void 0 : notifyOptions.listeners) !== false && shouldNotifyListeners()) {
45689
+ defaultNotifyOptions.listeners = true;
45690
+ }
45691
+ __privateMethod(this, _QueryObserver_instances, notify_fn).call(this, { ...defaultNotifyOptions, ...notifyOptions });
45724
45692
  }
45725
45693
  onQueryUpdate() {
45726
45694
  this.updateResult();
@@ -45735,7 +45703,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45735
45703
  fetchOptions2
45736
45704
  );
45737
45705
  if (!(fetchOptions2 == null ? void 0 : fetchOptions2.throwOnError)) {
45738
- promise = promise.catch(noop$2);
45706
+ promise = promise.catch(noop$3);
45739
45707
  }
45740
45708
  return promise;
45741
45709
  }, updateStaleTimeout_fn = function() {
@@ -45812,7 +45780,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45812
45780
  return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
45813
45781
  }
45814
45782
  function shouldFetchOn(query, options, field) {
45815
- if (resolveEnabled(options.enabled, query) !== false && resolveStaleTime(options.staleTime, query) !== "static") {
45783
+ if (resolveEnabled(options.enabled, query) !== false) {
45816
45784
  const value2 = typeof field === "function" ? field(query) : field;
45817
45785
  return value2 === "always" || value2 !== false && isStale(query, options);
45818
45786
  }
@@ -45871,6 +45839,14 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45871
45839
  }
45872
45840
  var QueryErrorResetBoundaryContext = React__namespace.createContext(createValue());
45873
45841
  var useQueryErrorResetBoundary = () => React__namespace.useContext(QueryErrorResetBoundaryContext);
45842
+ function shouldThrowError(throwError, params) {
45843
+ if (typeof throwError === "function") {
45844
+ return throwError(...params);
45845
+ }
45846
+ return !!throwError;
45847
+ }
45848
+ function noop$2() {
45849
+ }
45874
45850
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
45875
45851
  if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
45876
45852
  if (!errorResetBoundary.isReset()) {
@@ -45893,10 +45869,9 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45893
45869
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
45894
45870
  };
45895
45871
  var ensureSuspenseTimers = (defaultedOptions) => {
45872
+ const originalStaleTime = defaultedOptions.staleTime;
45896
45873
  if (defaultedOptions.suspense) {
45897
- const clamp2 = (value2) => value2 === "static" ? value2 : Math.max(value2 ?? 1e3, 1e3);
45898
- const originalStaleTime = defaultedOptions.staleTime;
45899
- defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => clamp2(originalStaleTime(...args)) : clamp2(originalStaleTime);
45874
+ defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => Math.max(originalStaleTime(...args), 1e3) : Math.max(originalStaleTime ?? 1e3, 1e3);
45900
45875
  if (typeof defaultedOptions.gcTime === "number") {
45901
45876
  defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, 1e3);
45902
45877
  }
@@ -45916,21 +45891,14 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45916
45891
  );
45917
45892
  }
45918
45893
  }
45894
+ const client = useQueryClient();
45919
45895
  const isRestoring = useIsRestoring();
45920
45896
  const errorResetBoundary = useQueryErrorResetBoundary();
45921
- const client = useQueryClient();
45922
45897
  const defaultedOptions = client.defaultQueryOptions(options);
45923
45898
  (_b2 = (_a2 = client.getDefaultOptions().queries) == null ? void 0 : _a2._experimental_beforeQuery) == null ? void 0 : _b2.call(
45924
45899
  _a2,
45925
45900
  defaultedOptions
45926
45901
  );
45927
- if (process.env.NODE_ENV !== "production") {
45928
- if (!defaultedOptions.queryFn) {
45929
- console.error(
45930
- `[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
45931
- );
45932
- }
45933
- }
45934
45902
  defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
45935
45903
  ensureSuspenseTimers(defaultedOptions);
45936
45904
  ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);
@@ -45957,7 +45925,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45957
45925
  () => observer.getCurrentResult()
45958
45926
  );
45959
45927
  React__namespace.useEffect(() => {
45960
- observer.setOptions(defaultedOptions);
45928
+ observer.setOptions(defaultedOptions, { listeners: false });
45961
45929
  }, [defaultedOptions, observer]);
45962
45930
  if (shouldSuspend(defaultedOptions, result)) {
45963
45931
  throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
@@ -46611,33 +46579,33 @@ Please use another name.` : formatMuiErrorMessage$1(18));
46611
46579
  "Content-Type": "application/json"
46612
46580
  }
46613
46581
  };
46614
- const documentSchema = objectType({
46615
- uri: stringType(),
46616
- primaryName: stringType(),
46617
- types: arrayType(stringType()),
46618
- literals: objectType({
46619
- "telicent:primaryName": arrayType(stringType())
46582
+ const documentSchema = z.object({
46583
+ uri: z.string(),
46584
+ primaryName: z.string(),
46585
+ types: z.array(z.string()),
46586
+ literals: z.object({
46587
+ "telicent:primaryName": z.array(z.string())
46620
46588
  }),
46621
- isState: booleanType(),
46622
- inLocation: stringType(),
46623
- metadata: objectType({
46624
- documentFormat: stringType(),
46625
- generatedBy: stringType(),
46626
- generatorVersion: stringType()
46589
+ isState: z.boolean(),
46590
+ inLocation: z.string(),
46591
+ metadata: z.object({
46592
+ documentFormat: z.string(),
46593
+ generatedBy: z.string(),
46594
+ generatorVersion: z.string()
46627
46595
  })
46628
46596
  });
46629
- const resultSchema = objectType({
46630
- id: stringType().url(),
46631
- score: numberType(),
46597
+ const resultSchema = z.object({
46598
+ id: z.string().url(),
46599
+ score: z.number(),
46632
46600
  document: documentSchema
46633
46601
  });
46634
- const ApiTypeAheadResponseSchema = objectType({
46635
- maybeMore: booleanType(),
46636
- limit: numberType(),
46637
- offset: numberType(),
46638
- query: stringType(),
46639
- type: literalType("phrase"),
46640
- results: arrayType(resultSchema)
46602
+ const ApiTypeAheadResponseSchema = z.object({
46603
+ maybeMore: z.boolean(),
46604
+ limit: z.number(),
46605
+ offset: z.number(),
46606
+ query: z.string(),
46607
+ type: z.literal("phrase"),
46608
+ results: z.array(resultSchema)
46641
46609
  });
46642
46610
  const fetchSearchResults = async (url, queryParamKey, query) => {
46643
46611
  const queryParams = new URLSearchParams({
@@ -51303,7 +51271,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
51303
51271
  return symbolToString ? symbolToString.call(value2) : "";
51304
51272
  }
51305
51273
  var result2 = value2 + "";
51306
- return result2 == "0" && 1 / value2 == -INFINITY ? "-0" : result2;
51274
+ return result2 == "0" && 1 / value2 == -Infinity ? "-0" : result2;
51307
51275
  }
51308
51276
  function baseUniq(array2, iteratee2, comparator) {
51309
51277
  var index = -1, includes2 = arrayIncludes, length2 = array2.length, isCommon = true, result2 = [], seen = result2;
@@ -52510,7 +52478,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
52510
52478
  return value2;
52511
52479
  }
52512
52480
  var result2 = value2 + "";
52513
- return result2 == "0" && 1 / value2 == -INFINITY ? "-0" : result2;
52481
+ return result2 == "0" && 1 / value2 == -Infinity ? "-0" : result2;
52514
52482
  }
52515
52483
  function toSource(func) {
52516
52484
  if (func != null) {
@@ -53574,7 +53542,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
53574
53542
  }
53575
53543
  var isRegExp2 = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
53576
53544
  function isSafeInteger(value2) {
53577
- return isInteger2(value2) && value2 >= -MAX_SAFE_INTEGER && value2 <= MAX_SAFE_INTEGER;
53545
+ return isInteger2(value2) && value2 >= -9007199254740991 && value2 <= MAX_SAFE_INTEGER;
53578
53546
  }
53579
53547
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
53580
53548
  function isString2(value2) {
@@ -53615,7 +53583,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
53615
53583
  return value2 === 0 ? value2 : 0;
53616
53584
  }
53617
53585
  value2 = toNumber(value2);
53618
- if (value2 === INFINITY || value2 === -INFINITY) {
53586
+ if (value2 === INFINITY || value2 === -Infinity) {
53619
53587
  var sign = value2 < 0 ? -1 : 1;
53620
53588
  return sign * MAX_INTEGER;
53621
53589
  }
@@ -53650,7 +53618,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
53650
53618
  return copyObject(value2, keysIn(value2));
53651
53619
  }
53652
53620
  function toSafeInteger(value2) {
53653
- return value2 ? baseClamp(toInteger(value2), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value2 === 0 ? value2 : 0;
53621
+ return value2 ? baseClamp(toInteger(value2), -9007199254740991, MAX_SAFE_INTEGER) : value2 === 0 ? value2 : 0;
53654
53622
  }
53655
53623
  function toString2(value2) {
53656
53624
  return value2 == null ? "" : baseToString(value2);
@@ -54929,7 +54897,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
54929
54897
  return null;
54930
54898
  }
54931
54899
  const renderDefaultColumnCell = (column2, index) => {
54932
- const columnSchema = stringType({
54900
+ const columnSchema = z.string({
54933
54901
  required_error: "Column is required",
54934
54902
  invalid_type_error: "Column must be a string"
54935
54903
  });
@@ -55362,41 +55330,22 @@ Please use another name.` : formatMuiErrorMessage$1(18));
55362
55330
  }
55363
55331
  return componentProps;
55364
55332
  }
55333
+ function setRef(ref, value2) {
55334
+ if (typeof ref === "function") {
55335
+ ref(value2);
55336
+ } else if (ref) {
55337
+ ref.current = value2;
55338
+ }
55339
+ }
55365
55340
  function useForkRef(...refs) {
55366
- const cleanupRef = React__namespace.useRef(void 0);
55367
- const refEffect = React__namespace.useCallback((instance) => {
55368
- const cleanups = refs.map((ref) => {
55369
- if (ref == null) {
55370
- return null;
55371
- }
55372
- if (typeof ref === "function") {
55373
- const refCallback = ref;
55374
- const refCleanup = refCallback(instance);
55375
- return typeof refCleanup === "function" ? refCleanup : () => {
55376
- refCallback(null);
55377
- };
55378
- }
55379
- ref.current = instance;
55380
- return () => {
55381
- ref.current = null;
55382
- };
55383
- });
55384
- return () => {
55385
- cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
55386
- };
55387
- }, refs);
55388
55341
  return React__namespace.useMemo(() => {
55389
55342
  if (refs.every((ref) => ref == null)) {
55390
55343
  return null;
55391
55344
  }
55392
- return (value2) => {
55393
- if (cleanupRef.current) {
55394
- cleanupRef.current();
55395
- cleanupRef.current = void 0;
55396
- }
55397
- if (value2 != null) {
55398
- cleanupRef.current = refEffect(value2);
55399
- }
55345
+ return (instance) => {
55346
+ refs.forEach((ref) => {
55347
+ setRef(ref, instance);
55348
+ });
55400
55349
  };
55401
55350
  }, refs);
55402
55351
  }
@@ -59304,6 +59253,23 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59304
59253
  cjs.exports.DraggableCore = DraggableCore;
59305
59254
  var cjsExports = cjs.exports;
59306
59255
  const Draggable$1 = /* @__PURE__ */ getDefaultExportFromCjs(cjsExports);
59256
+ var __extends$2 = /* @__PURE__ */ function() {
59257
+ var extendStatics2 = function(d, b) {
59258
+ extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
59259
+ d2.__proto__ = b2;
59260
+ } || function(d2, b2) {
59261
+ for (var p2 in b2) if (Object.prototype.hasOwnProperty.call(b2, p2)) d2[p2] = b2[p2];
59262
+ };
59263
+ return extendStatics2(d, b);
59264
+ };
59265
+ return function(d, b) {
59266
+ extendStatics2(d, b);
59267
+ function __() {
59268
+ this.constructor = d;
59269
+ }
59270
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
59271
+ };
59272
+ }();
59307
59273
  var __assign$2 = function() {
59308
59274
  __assign$2 = Object.assign || function(t2) {
59309
59275
  for (var s2, i = 1, n = arguments.length; i < n; i++) {
@@ -59332,8 +59298,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59332
59298
  var edgeBase = {
59333
59299
  width: "20px",
59334
59300
  height: "20px",
59335
- position: "absolute",
59336
- zIndex: 1
59301
+ position: "absolute"
59337
59302
  };
59338
59303
  var styles = {
59339
59304
  top: __assign$2(__assign$2({}, rowSizeBase), { top: "-5px" }),
@@ -59345,19 +59310,26 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59345
59310
  bottomLeft: __assign$2(__assign$2({}, edgeBase), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
59346
59311
  topLeft: __assign$2(__assign$2({}, edgeBase), { left: "-10px", top: "-10px", cursor: "nw-resize" })
59347
59312
  };
59348
- var Resizer = React$2.memo(function(props) {
59349
- var onResizeStart = props.onResizeStart, direction = props.direction, children2 = props.children, replaceStyles = props.replaceStyles, className = props.className;
59350
- var onMouseDown = React$2.useCallback(function(e) {
59351
- onResizeStart(e, direction);
59352
- }, [onResizeStart, direction]);
59353
- var onTouchStart = React$2.useCallback(function(e) {
59354
- onResizeStart(e, direction);
59355
- }, [onResizeStart, direction]);
59356
- var style2 = React$2.useMemo(function() {
59357
- return __assign$2(__assign$2({ position: "absolute", userSelect: "none" }, styles[direction]), replaceStyles !== null && replaceStyles !== void 0 ? replaceStyles : {});
59358
- }, [replaceStyles, direction]);
59359
- return jsxRuntimeExports.jsx("div", { className: className || void 0, style: style2, onMouseDown, onTouchStart, children: children2 });
59360
- });
59313
+ var Resizer = (
59314
+ /** @class */
59315
+ function(_super) {
59316
+ __extends$2(Resizer2, _super);
59317
+ function Resizer2() {
59318
+ var _this = _super !== null && _super.apply(this, arguments) || this;
59319
+ _this.onMouseDown = function(e) {
59320
+ _this.props.onResizeStart(e, _this.props.direction);
59321
+ };
59322
+ _this.onTouchStart = function(e) {
59323
+ _this.props.onResizeStart(e, _this.props.direction);
59324
+ };
59325
+ return _this;
59326
+ }
59327
+ Resizer2.prototype.render = function() {
59328
+ return React__namespace.createElement("div", { className: this.props.className || "", style: __assign$2(__assign$2({ position: "absolute", userSelect: "none" }, styles[this.props.direction]), this.props.replaceStyles || {}), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart }, this.props.children);
59329
+ };
59330
+ return Resizer2;
59331
+ }(React__namespace.PureComponent)
59332
+ );
59361
59333
  var __extends$1 = /* @__PURE__ */ function() {
59362
59334
  var extendStatics2 = function(d, b) {
59363
59335
  extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -59368,8 +59340,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59368
59340
  return extendStatics2(d, b);
59369
59341
  };
59370
59342
  return function(d, b) {
59371
- if (typeof b !== "function" && b !== null)
59372
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
59373
59343
  extendStatics2(d, b);
59374
59344
  function __() {
59375
59345
  this.constructor = d;
@@ -59441,7 +59411,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59441
59411
  if (n.endsWith("vmin")) {
59442
59412
  return n;
59443
59413
  }
59444
- return "".concat(n, "px");
59414
+ return n + "px";
59445
59415
  };
59446
59416
  var getPixelSize = function(size, parentSize, innerWidth2, innerHeight2) {
59447
59417
  if (size && typeof size === "string") {
@@ -59529,10 +59499,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59529
59499
  _this.resizableBottom = 0;
59530
59500
  _this.targetLeft = 0;
59531
59501
  _this.targetTop = 0;
59532
- _this.delta = {
59533
- width: 0,
59534
- height: 0
59535
- };
59536
59502
  _this.appendBase = function() {
59537
59503
  if (!_this.resizable || !_this.window) {
59538
59504
  return null;
@@ -59660,7 +59626,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59660
59626
  var parentSize = _this.getParentSize();
59661
59627
  var value2 = Number(_this.state[key].toString().replace("px", ""));
59662
59628
  var percent = value2 / parentSize[key] * 100;
59663
- return "".concat(percent, "%");
59629
+ return percent + "%";
59664
59630
  }
59665
59631
  return getStringSize(_this.state[key]);
59666
59632
  };
@@ -59957,29 +59923,28 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59957
59923
  width: newWidth - original.width,
59958
59924
  height: newHeight - original.height
59959
59925
  };
59960
- this.delta = delta;
59961
59926
  if (width2 && typeof width2 === "string") {
59962
59927
  if (width2.endsWith("%")) {
59963
59928
  var percent = newWidth / parentSize.width * 100;
59964
- newWidth = "".concat(percent, "%");
59929
+ newWidth = percent + "%";
59965
59930
  } else if (width2.endsWith("vw")) {
59966
59931
  var vw = newWidth / this.window.innerWidth * 100;
59967
- newWidth = "".concat(vw, "vw");
59932
+ newWidth = vw + "vw";
59968
59933
  } else if (width2.endsWith("vh")) {
59969
59934
  var vh = newWidth / this.window.innerHeight * 100;
59970
- newWidth = "".concat(vh, "vh");
59935
+ newWidth = vh + "vh";
59971
59936
  }
59972
59937
  }
59973
59938
  if (height2 && typeof height2 === "string") {
59974
59939
  if (height2.endsWith("%")) {
59975
59940
  var percent = newHeight / parentSize.height * 100;
59976
- newHeight = "".concat(percent, "%");
59941
+ newHeight = percent + "%";
59977
59942
  } else if (height2.endsWith("vw")) {
59978
59943
  var vw = newHeight / this.window.innerWidth * 100;
59979
- newHeight = "".concat(vw, "vw");
59944
+ newHeight = vw + "vw";
59980
59945
  } else if (height2.endsWith("vh")) {
59981
59946
  var vh = newHeight / this.window.innerHeight * 100;
59982
- newHeight = "".concat(vh, "vh");
59947
+ newHeight = vh + "vh";
59983
59948
  }
59984
59949
  }
59985
59950
  var newState = {
@@ -60008,13 +59973,16 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60008
59973
  };
60009
59974
  Resizable2.prototype.onMouseUp = function(event) {
60010
59975
  var _a2, _b2;
60011
- var _c2 = this.state, isResizing = _c2.isResizing, direction = _c2.direction;
60012
- _c2.original;
59976
+ var _c2 = this.state, isResizing = _c2.isResizing, direction = _c2.direction, original = _c2.original;
60013
59977
  if (!isResizing || !this.resizable) {
60014
59978
  return;
60015
59979
  }
59980
+ var delta = {
59981
+ width: this.size.width - original.width,
59982
+ height: this.size.height - original.height
59983
+ };
60016
59984
  if (this.props.onResizeStop) {
60017
- this.props.onResizeStop(event, direction, this.resizable, this.delta);
59985
+ this.props.onResizeStop(event, direction, this.resizable, delta);
60018
59986
  }
60019
59987
  if (this.props.size) {
60020
59988
  this.setState({ width: (_a2 = this.props.size.width) !== null && _a2 !== void 0 ? _a2 : "auto", height: (_b2 = this.props.size.height) !== null && _b2 !== void 0 ? _b2 : "auto" });
@@ -60037,11 +60005,11 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60037
60005
  }
60038
60006
  var resizers = Object.keys(enable).map(function(dir) {
60039
60007
  if (enable[dir] !== false) {
60040
- return jsxRuntimeExports.jsx(Resizer, { direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir], children: handleComponent && handleComponent[dir] ? handleComponent[dir] : null }, dir);
60008
+ return React__namespace.createElement(Resizer, { key: dir, direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir] }, handleComponent && handleComponent[dir] ? handleComponent[dir] : null);
60041
60009
  }
60042
60010
  return null;
60043
60011
  });
60044
- return jsxRuntimeExports.jsx("div", { className: handleWrapperClass, style: handleWrapperStyle, children: resizers });
60012
+ return React__namespace.createElement("div", { className: handleWrapperClass, style: handleWrapperStyle }, resizers);
60045
60013
  };
60046
60014
  Resizable2.prototype.render = function() {
60047
60015
  var _this = this;
@@ -60057,16 +60025,21 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60057
60025
  style2.flexBasis = this.state.flexBasis;
60058
60026
  }
60059
60027
  var Wrapper = this.props.as || "div";
60060
- return jsxRuntimeExports.jsxs(Wrapper, __assign$1({ style: style2, className: this.props.className }, extendsProps, {
60061
- // `ref` is after `extendsProps` to ensure this one wins over a version
60062
- // passed in
60063
- ref: function(c) {
60064
- if (c) {
60065
- _this.resizable = c;
60028
+ return React__namespace.createElement(
60029
+ Wrapper,
60030
+ __assign$1({ style: style2, className: this.props.className }, extendsProps, {
60031
+ // `ref` is after `extendsProps` to ensure this one wins over a version
60032
+ // passed in
60033
+ ref: function(c) {
60034
+ if (c) {
60035
+ _this.resizable = c;
60036
+ }
60066
60037
  }
60067
- },
60068
- children: [this.state.isResizing && jsxRuntimeExports.jsx("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()]
60069
- }));
60038
+ }),
60039
+ this.state.isResizing && React__namespace.createElement("div", { style: this.state.backgroundStyle }),
60040
+ this.props.children,
60041
+ this.renderResizer()
60042
+ );
60070
60043
  };
60071
60044
  Resizable2.defaultProps = {
60072
60045
  as: "div",
@@ -60097,7 +60070,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60097
60070
  snapGap: 0
60098
60071
  };
60099
60072
  return Resizable2;
60100
- }(React$2.PureComponent)
60073
+ }(React__namespace.PureComponent)
60101
60074
  );
60102
60075
  /*! *****************************************************************************
60103
60076
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -60506,7 +60479,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60506
60479
  _a2.onDragStart;
60507
60480
  _a2.onDrag;
60508
60481
  _a2.onDragStop;
60509
- var resizeHandleStyles = _a2.resizeHandleStyles, resizeHandleClasses = _a2.resizeHandleClasses, resizeHandleComponent = _a2.resizeHandleComponent, enableResizing = _a2.enableResizing, resizeGrid = _a2.resizeGrid, resizeHandleWrapperClass = _a2.resizeHandleWrapperClass, resizeHandleWrapperStyle = _a2.resizeHandleWrapperStyle, scale = _a2.scale, allowAnyClick = _a2.allowAnyClick, dragPositionOffset = _a2.dragPositionOffset, resizableProps = __rest(_a2, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick", "dragPositionOffset"]);
60482
+ var resizeHandleStyles = _a2.resizeHandleStyles, resizeHandleClasses = _a2.resizeHandleClasses, resizeHandleComponent = _a2.resizeHandleComponent, enableResizing = _a2.enableResizing, resizeGrid = _a2.resizeGrid, resizeHandleWrapperClass = _a2.resizeHandleWrapperClass, resizeHandleWrapperStyle = _a2.resizeHandleWrapperStyle, scale = _a2.scale, allowAnyClick = _a2.allowAnyClick, resizableProps = __rest(_a2, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick"]);
60510
60483
  var defaultValue = this.props.default ? __assign({}, this.props.default) : void 0;
60511
60484
  delete resizableProps.default;
60512
60485
  var cursorStyle = disableDragging || dragHandleClassName ? { cursor: "auto" } : { cursor: "move" };
@@ -60546,8 +60519,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60546
60519
  cancel,
60547
60520
  scale,
60548
60521
  allowAnyClick,
60549
- nodeRef: this.resizableElement,
60550
- positionOffset: dragPositionOffset
60522
+ nodeRef: this.resizableElement
60551
60523
  },
60552
60524
  React$2.createElement(Resizable, __assign({}, resizableProps, { ref: function(c) {
60553
60525
  if (!c)
@@ -61850,42 +61822,42 @@ Please use another name.` : formatMuiErrorMessage$1(18));
61850
61822
  /* @__PURE__ */ jsx$1(CssBaseline, {}),
61851
61823
  children2
61852
61824
  ] });
61853
- const reactElementSchema = objectType({
61854
- type: unionType([stringType(), functionType(), symbolType(), objectType({}).passthrough()]),
61825
+ const reactElementSchema = z.object({
61826
+ type: z.union([z.string(), z.function(), z.symbol(), z.object({}).passthrough()]),
61855
61827
  // Type can be a string or a function (JSXElementConstructor)
61856
- props: recordType(anyType()),
61828
+ props: z.record(z.any()),
61857
61829
  // Props is an object with any keys
61858
- key: unionType([stringType(), numberType(), nullType()]).optional()
61830
+ key: z.union([z.string(), z.number(), z.null()]).optional()
61859
61831
  // Key is either string, number, or null
61860
61832
  });
61861
- const allModalPropsSchema = objectType({
61862
- open: booleanType(),
61833
+ const allModalPropsSchema = z.object({
61834
+ open: z.boolean(),
61863
61835
  children: reactElementSchema,
61864
- className: stringType().optional(),
61865
- id: stringType().optional(),
61866
- role: stringType().optional(),
61867
- closeAfterTransition: booleanType().optional(),
61868
- components: anyType().optional(),
61869
- componentsProps: anyType().optional(),
61870
- container: anyType().optional(),
61871
- disableAutoFocus: booleanType().optional(),
61872
- disableEnforceFocus: booleanType().optional(),
61873
- disableEscapeKeyDown: booleanType().optional(),
61874
- disablePortal: booleanType().optional(),
61875
- disableRestoreFocus: booleanType().optional(),
61876
- disableScrollLock: booleanType().optional(),
61877
- hideBackdrop: booleanType().optional(),
61878
- keepMounted: booleanType().optional(),
61879
- manager: anyType().optional(),
61880
- onBackdropClick: functionType().optional(),
61881
- onClose: functionType().optional(),
61882
- onTransitionEnter: functionType().optional(),
61883
- onTransitionExit: functionType().optional(),
61884
- sx: anyType().optional(),
61885
- BackdropComponent: anyType().optional(),
61886
- BackdropProps: anyType().optional(),
61887
- slots: anyType().optional(),
61888
- slotProps: anyType().optional()
61836
+ className: z.string().optional(),
61837
+ id: z.string().optional(),
61838
+ role: z.string().optional(),
61839
+ closeAfterTransition: z.boolean().optional(),
61840
+ components: z.any().optional(),
61841
+ componentsProps: z.any().optional(),
61842
+ container: z.any().optional(),
61843
+ disableAutoFocus: z.boolean().optional(),
61844
+ disableEnforceFocus: z.boolean().optional(),
61845
+ disableEscapeKeyDown: z.boolean().optional(),
61846
+ disablePortal: z.boolean().optional(),
61847
+ disableRestoreFocus: z.boolean().optional(),
61848
+ disableScrollLock: z.boolean().optional(),
61849
+ hideBackdrop: z.boolean().optional(),
61850
+ keepMounted: z.boolean().optional(),
61851
+ manager: z.any().optional(),
61852
+ onBackdropClick: z.function().optional(),
61853
+ onClose: z.function().optional(),
61854
+ onTransitionEnter: z.function().optional(),
61855
+ onTransitionExit: z.function().optional(),
61856
+ sx: z.any().optional(),
61857
+ BackdropComponent: z.any().optional(),
61858
+ BackdropProps: z.any().optional(),
61859
+ slots: z.any().optional(),
61860
+ slotProps: z.any().optional()
61889
61861
  });
61890
61862
  const modalPropsSchema = allModalPropsSchema.omit({
61891
61863
  slots: true,
@@ -69285,7 +69257,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
69285
69257
  if (!t3) continue;
69286
69258
  S3 = y4.imageName, e3.iconsInText = e3.iconsInText || true, A4 = t3.paddedRect;
69287
69259
  const r5 = t3.displaySize;
69288
- y4.scale = y4.scale * Vl / p4, b5 = { width: r5[0], height: r5[1], left: lu, top: -su, advance: I2 ? r5[1] : r5[0] }, x5 = l4 + (Vl - r5[1] * y4.scale), k2 = b5.advance;
69260
+ y4.scale = y4.scale * Vl / p4, b5 = { width: r5[0], height: r5[1], left: lu, top: -3, advance: I2 ? r5[1] : r5[0] }, x5 = l4 + (Vl - r5[1] * y4.scale), k2 = b5.advance;
69289
69261
  const n4 = I2 ? r5[0] * y4.scale - Vl * a4 : r5[1] * y4.scale - Vl * a4;
69290
69262
  n4 > 0 && n4 > _5 && (_5 = n4);
69291
69263
  } else {
@@ -70320,7 +70292,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
70320
70292
  return n2;
70321
70293
  }
70322
70294
  function Fc(t3, e2, r3) {
70323
- const n2 = [{ fixed: -Pc, stretch: 0 }];
70295
+ const n2 = [{ fixed: -1, stretch: 0 }];
70324
70296
  for (const [e3, r4] of t3) {
70325
70297
  const t4 = n2[n2.length - 1];
70326
70298
  n2.push({ fixed: e3 - t4.stretch, stretch: t4.stretch }), n2.push({ fixed: e3 - t4.stretch, stretch: t4.stretch + (r4 - e3) });
@@ -72504,7 +72476,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
72504
72476
  for (let h2 = i2; h2 < i2 + a2; h2++) I(t3, h2 * o3 + e2, 1, s3, r3, n2, l2);
72505
72477
  }
72506
72478
  function I(t3, e2, i2, s3, a2, o3, r3) {
72507
- o3[0] = 0, r3[0] = -w2, r3[1] = w2, a2[0] = t3[e2];
72479
+ o3[0] = 0, r3[0] = -1e20, r3[1] = w2, a2[0] = t3[e2];
72508
72480
  for (let n2 = 1, l2 = 0, h2 = 0; n2 < s3; n2++) {
72509
72481
  a2[n2] = t3[e2 + n2 * i2];
72510
72482
  const s4 = n2 * n2;
@@ -78823,7 +78795,7 @@ uniform ${i3} ${s4} u_${a3};
78823
78795
  if (this._popup && (this._popup.remove(), this._popup = null, this._element.removeEventListener("keypress", this._onKeyPress), this._originalTabIndex || this._element.removeAttribute("tabindex")), t3) {
78824
78796
  if (!("offset" in t3.options)) {
78825
78797
  const e2 = 38.1, i2 = 13.5, s3 = Math.abs(i2) / Math.SQRT2;
78826
- t3.options.offset = this._defaultMarker ? { top: [0, 0], "top-left": [0, 0], "top-right": [0, 0], bottom: [0, -e2], "bottom-left": [s3, -1 * (e2 - i2 + s3)], "bottom-right": [-s3, -1 * (e2 - i2 + s3)], left: [i2, -1 * (e2 - i2)], right: [-i2, -1 * (e2 - i2)] } : this._offset;
78798
+ t3.options.offset = this._defaultMarker ? { top: [0, 0], "top-left": [0, 0], "top-right": [0, 0], bottom: [0, -38.1], "bottom-left": [s3, -1 * (e2 - i2 + s3)], "bottom-right": [-s3, -1 * (e2 - i2 + s3)], left: [i2, -1 * (e2 - i2)], right: [-13.5, -1 * (e2 - i2)] } : this._offset;
78827
78799
  }
78828
78800
  this._popup = t3, this._lngLat && this._popup.setLngLat(this._lngLat), this._originalTabIndex = this._element.getAttribute("tabindex"), this._originalTabIndex || this._element.setAttribute("tabindex", "0"), this._element.addEventListener("keypress", this._onKeyPress);
78829
78801
  }
@@ -80229,10 +80201,10 @@ uniform ${i3} ${s4} u_${a3};
80229
80201
  height: "28px"
80230
80202
  }, children: faIcon ? /* @__PURE__ */ jsx$1("i", { "data-icon": faIcon, className: classNames(faIcon, "px-1") }) : /* @__PURE__ */ jsx$1("p", { className: "p-1 font-body", children: labelCharacters }) }, marker.uri) });
80231
80203
  };
80232
- objectType({
80233
- label: stringType(),
80234
- uri: stringType(),
80235
- image: stringType()
80204
+ z.object({
80205
+ label: z.string(),
80206
+ uri: z.string(),
80207
+ image: z.string()
80236
80208
  });
80237
80209
  const useStyleSelector = (initialMapConfig) => {
80238
80210
  const [selected, setSelected] = React$2.useState(null);
@@ -80539,8 +80511,7 @@ uniform ${i3} ${s4} u_${a3};
80539
80511
  m: 2,
80540
80512
  p: 2
80541
80513
  }, open: isOpen, children: /* @__PURE__ */ jsxs(FlexBox, { sx: {
80542
- p: 2,
80543
- overflowY: "auto"
80514
+ p: 2
80544
80515
  }, children: [
80545
80516
  /* @__PURE__ */ jsxs(H3, { children: [
80546
80517
  /* @__PURE__ */ jsx$1("i", { className: "fa-regular fa-circle-exclamation" }),
@@ -83003,7 +82974,7 @@ uniform ${i3} ${s4} u_${a3};
83003
82974
  return uriComponentCodec;
83004
82975
  }
83005
82976
  };
83006
- const ENCODE_SEARCH_PARAMS_MODES_Schema = unionType([literalType("as base64"), literalType("as uri component")]);
82977
+ const ENCODE_SEARCH_PARAMS_MODES_Schema = z.union([z.literal("as base64"), z.literal("as uri component")]);
83007
82978
  /**
83008
82979
  * @remix-run/router v1.23.0
83009
82980
  *
@@ -83250,7 +83221,7 @@ uniform ${i3} ${s4} u_${a3};
83250
83221
  const validRequestMethodsArr = ["get", ...validMutationMethodsArr];
83251
83222
  new Set(validRequestMethodsArr);
83252
83223
  /**
83253
- * React Router v6.30.1
83224
+ * React Router v6.30.0
83254
83225
  *
83255
83226
  * Copyright (c) Remix Software Inc.
83256
83227
  *
@@ -83488,7 +83459,7 @@ uniform ${i3} ${s4} u_${a3};
83488
83459
  new Promise(() => {
83489
83460
  });
83490
83461
  /**
83491
- * React Router DOM v6.30.1
83462
+ * React Router DOM v6.30.0
83492
83463
  *
83493
83464
  * Copyright (c) Remix Software Inc.
83494
83465
  *
@@ -84117,15 +84088,15 @@ uniform ${i3} ${s4} u_${a3};
84117
84088
  set,
84118
84089
  remove
84119
84090
  };
84120
- const WipeOnMessageConfigSchema = objectType({
84121
- register: objectType({
84122
- scriptURL: stringType(),
84091
+ const WipeOnMessageConfigSchema = z.object({
84092
+ register: z.object({
84093
+ scriptURL: z.string(),
84123
84094
  // valid string
84124
- scope: stringType()
84095
+ scope: z.string()
84125
84096
  // service-worker scope
84126
84097
  }),
84127
- fetchStatus: functionType().args().returns(promiseType(objectType({
84128
- status: numberType()
84098
+ fetchStatus: z.function().args().returns(z.promise(z.object({
84099
+ status: z.number()
84129
84100
  })))
84130
84101
  });
84131
84102
  const setupWipeOnMessage = async (triggerWipe, checkUser, config2) => {
@@ -84186,15 +84157,15 @@ uniform ${i3} ${s4} u_${a3};
84186
84157
  const pollInterval = setInterval(() => checkUser("poll"), checkUserPollTime);
84187
84158
  window.addEventListener("beforeunload", () => clearInterval(pollInterval));
84188
84159
  };
84189
- const WipeConfigSchema = objectType({
84190
- onAuthErrorOnLoad: functionType(),
84191
- autoLogoutURL: preprocessType((val) => typeof val === "string" ? new URL(val) : val, instanceOfType(URL)).optional(),
84160
+ const WipeConfigSchema = z.object({
84161
+ onAuthErrorOnLoad: z.function(),
84162
+ autoLogoutURL: z.preprocess((val) => typeof val === "string" ? new URL(val) : val, z.instanceof(URL)).optional(),
84192
84163
  wipeOnMessage: WipeOnMessageConfigSchema.optional(),
84193
- isCheckOnPageVisibility: booleanType().optional(),
84194
- isClickGating: booleanType().optional(),
84195
- checkUserPollTime: numberType().int().positive().optional(),
84196
- verbose: booleanType().optional(),
84197
- fetchCurrentUser: functionType().args().returns(promiseType(unionType([stringType(), voidType()])))
84164
+ isCheckOnPageVisibility: z.boolean().optional(),
84165
+ isClickGating: z.boolean().optional(),
84166
+ checkUserPollTime: z.number().int().positive().optional(),
84167
+ verbose: z.boolean().optional(),
84168
+ fetchCurrentUser: z.function().args().returns(z.promise(z.union([z.string(), z.void()])))
84198
84169
  }).optional();
84199
84170
  let isSetup = false;
84200
84171
  const setupWipe = async (config2) => {