dccxx-s3-explorer 1.0.92 → 1.0.93

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.
@@ -4,7 +4,7 @@ import mt, { useState as ye, createContext as F1, useRef as vn, useEffect as gt,
4
4
  import * as Ns from "react-dom";
5
5
  import px from "react-dom";
6
6
  /*! @azure/msal-common v15.6.0 2025-05-06 */
7
- const de = {
7
+ const fe = {
8
8
  LIBRARY_NAME: "MSAL.JS",
9
9
  SKU: "msal.js.common",
10
10
  // Prefix for all library cache entries
@@ -63,10 +63,10 @@ const de = {
63
63
  SERVER_ERROR_RANGE_START: 500,
64
64
  SERVER_ERROR_RANGE_END: 599
65
65
  }, pl = [
66
- de.OPENID_SCOPE,
67
- de.PROFILE_SCOPE,
68
- de.OFFLINE_ACCESS_SCOPE
69
- ], qw = [...pl, de.EMAIL_SCOPE], Vn = {
66
+ fe.OPENID_SCOPE,
67
+ fe.PROFILE_SCOPE,
68
+ fe.OFFLINE_ACCESS_SCOPE
69
+ ], qw = [...pl, fe.EMAIL_SCOPE], Vn = {
70
70
  CONTENT_TYPE: "Content-Type",
71
71
  CONTENT_LENGTH: "Content-Length",
72
72
  RETRY_AFTER: "Retry-After",
@@ -190,7 +190,7 @@ const Xw = {
190
190
  class Ut extends Error {
191
191
  constructor(e, n, r) {
192
192
  const o = n ? `${e}: ${n}` : e;
193
- super(o), Object.setPrototypeOf(this, Ut.prototype), this.errorCode = e || de.EMPTY_STRING, this.errorMessage = n || de.EMPTY_STRING, this.subError = r || de.EMPTY_STRING, this.name = "AuthError";
193
+ super(o), Object.setPrototypeOf(this, Ut.prototype), this.errorCode = e || fe.EMPTY_STRING, this.errorMessage = n || fe.EMPTY_STRING, this.subError = r || fe.EMPTY_STRING, this.name = "AuthError";
194
194
  }
195
195
  setCorrelationId(e) {
196
196
  this.correlationId = e;
@@ -299,7 +299,7 @@ class Pi {
299
299
  this.level = Kt.Info;
300
300
  const o = () => {
301
301
  }, a = e || Pi.createDefaultLoggerOptions();
302
- this.localCallback = a.loggerCallback || o, this.piiLoggingEnabled = a.piiLoggingEnabled || !1, this.level = typeof a.logLevel == "number" ? a.logLevel : Kt.Info, this.correlationId = a.correlationId || de.EMPTY_STRING, this.packageName = n || de.EMPTY_STRING, this.packageVersion = r || de.EMPTY_STRING;
302
+ this.localCallback = a.loggerCallback || o, this.piiLoggingEnabled = a.piiLoggingEnabled || !1, this.level = typeof a.logLevel == "number" ? a.logLevel : Kt.Info, this.correlationId = a.correlationId || fe.EMPTY_STRING, this.packageName = n || fe.EMPTY_STRING, this.packageVersion = r || fe.EMPTY_STRING;
303
303
  }
304
304
  static createDefaultLoggerOptions() {
305
305
  return {
@@ -342,7 +342,7 @@ class Pi {
342
342
  this.logMessage(e, {
343
343
  logLevel: Kt.Error,
344
344
  containsPii: !1,
345
- correlationId: n || de.EMPTY_STRING
345
+ correlationId: n || fe.EMPTY_STRING
346
346
  });
347
347
  }
348
348
  /**
@@ -352,7 +352,7 @@ class Pi {
352
352
  this.logMessage(e, {
353
353
  logLevel: Kt.Error,
354
354
  containsPii: !0,
355
- correlationId: n || de.EMPTY_STRING
355
+ correlationId: n || fe.EMPTY_STRING
356
356
  });
357
357
  }
358
358
  /**
@@ -362,7 +362,7 @@ class Pi {
362
362
  this.logMessage(e, {
363
363
  logLevel: Kt.Warning,
364
364
  containsPii: !1,
365
- correlationId: n || de.EMPTY_STRING
365
+ correlationId: n || fe.EMPTY_STRING
366
366
  });
367
367
  }
368
368
  /**
@@ -372,7 +372,7 @@ class Pi {
372
372
  this.logMessage(e, {
373
373
  logLevel: Kt.Warning,
374
374
  containsPii: !0,
375
- correlationId: n || de.EMPTY_STRING
375
+ correlationId: n || fe.EMPTY_STRING
376
376
  });
377
377
  }
378
378
  /**
@@ -382,7 +382,7 @@ class Pi {
382
382
  this.logMessage(e, {
383
383
  logLevel: Kt.Info,
384
384
  containsPii: !1,
385
- correlationId: n || de.EMPTY_STRING
385
+ correlationId: n || fe.EMPTY_STRING
386
386
  });
387
387
  }
388
388
  /**
@@ -392,7 +392,7 @@ class Pi {
392
392
  this.logMessage(e, {
393
393
  logLevel: Kt.Info,
394
394
  containsPii: !0,
395
- correlationId: n || de.EMPTY_STRING
395
+ correlationId: n || fe.EMPTY_STRING
396
396
  });
397
397
  }
398
398
  /**
@@ -402,7 +402,7 @@ class Pi {
402
402
  this.logMessage(e, {
403
403
  logLevel: Kt.Verbose,
404
404
  containsPii: !1,
405
- correlationId: n || de.EMPTY_STRING
405
+ correlationId: n || fe.EMPTY_STRING
406
406
  });
407
407
  }
408
408
  /**
@@ -412,7 +412,7 @@ class Pi {
412
412
  this.logMessage(e, {
413
413
  logLevel: Kt.Verbose,
414
414
  containsPii: !0,
415
- correlationId: n || de.EMPTY_STRING
415
+ correlationId: n || fe.EMPTY_STRING
416
416
  });
417
417
  }
418
418
  /**
@@ -422,7 +422,7 @@ class Pi {
422
422
  this.logMessage(e, {
423
423
  logLevel: Kt.Trace,
424
424
  containsPii: !1,
425
- correlationId: n || de.EMPTY_STRING
425
+ correlationId: n || fe.EMPTY_STRING
426
426
  });
427
427
  }
428
428
  /**
@@ -432,7 +432,7 @@ class Pi {
432
432
  this.logMessage(e, {
433
433
  logLevel: Kt.Trace,
434
434
  containsPii: !0,
435
- correlationId: n || de.EMPTY_STRING
435
+ correlationId: n || fe.EMPTY_STRING
436
436
  });
437
437
  }
438
438
  /**
@@ -737,7 +737,7 @@ class nn {
737
737
  * @param scopesRequired
738
738
  */
739
739
  static fromString(e) {
740
- const r = (e || de.EMPTY_STRING).split(" ");
740
+ const r = (e || fe.EMPTY_STRING).split(" ");
741
741
  return new nn(r);
742
742
  }
743
743
  /**
@@ -747,7 +747,7 @@ class nn {
747
747
  */
748
748
  static createSearchScopes(e) {
749
749
  const n = new nn(e);
750
- return n.containsOnlyOIDCScopes() ? n.removeScope(de.OFFLINE_ACCESS_SCOPE) : n.removeOIDCScopes(), n;
750
+ return n.containsOnlyOIDCScopes() ? n.removeScope(fe.OFFLINE_ACCESS_SCOPE) : n.removeOIDCScopes(), n;
751
751
  }
752
752
  /**
753
753
  * Check if a given scope is present in this set of scopes.
@@ -847,7 +847,7 @@ class nn {
847
847
  * Prints scopes into a space-delimited string
848
848
  */
849
849
  printScopes() {
850
- return this.scopes ? this.asArray().join(" ") : de.EMPTY_STRING;
850
+ return this.scopes ? this.asArray().join(" ") : fe.EMPTY_STRING;
851
851
  }
852
852
  /**
853
853
  * Prints scopes into a space-delimited lower-case string (used for caching)
@@ -873,7 +873,7 @@ function bs(t) {
873
873
  const e = t.split(Pn.CLIENT_INFO_SEPARATOR, 2);
874
874
  return {
875
875
  uid: e[0],
876
- utid: e.length < 2 ? de.EMPTY_STRING : e[1]
876
+ utid: e.length < 2 ? fe.EMPTY_STRING : e[1]
877
877
  };
878
878
  }
879
879
  /*! @azure/msal-common v15.6.0 2025-05-06 */
@@ -1178,7 +1178,7 @@ class vt {
1178
1178
  return r[2];
1179
1179
  }
1180
1180
  static getAbsoluteUrl(e, n) {
1181
- if (e[0] === de.FORWARD_SLASH) {
1181
+ if (e[0] === fe.FORWARD_SLASH) {
1182
1182
  const o = new vt(n).getUrlComponents();
1183
1183
  return o.Protocol + "//" + o.HostNameAndPort + e;
1184
1184
  }
@@ -2031,7 +2031,7 @@ const r_ = {
2031
2031
  },
2032
2032
  piiLoggingEnabled: !1,
2033
2033
  logLevel: Kt.Info,
2034
- correlationId: de.EMPTY_STRING
2034
+ correlationId: fe.EMPTY_STRING
2035
2035
  }, RM = {
2036
2036
  claimsBasedCachingEnabled: !1
2037
2037
  }, kM = {
@@ -2042,16 +2042,16 @@ const r_ = {
2042
2042
  throw Ee(ut);
2043
2043
  }
2044
2044
  }, NM = {
2045
- sku: de.SKU,
2045
+ sku: fe.SKU,
2046
2046
  version: pm,
2047
- cpu: de.EMPTY_STRING,
2048
- os: de.EMPTY_STRING
2047
+ cpu: fe.EMPTY_STRING,
2048
+ os: fe.EMPTY_STRING
2049
2049
  }, PM = {
2050
- clientSecret: de.EMPTY_STRING,
2050
+ clientSecret: fe.EMPTY_STRING,
2051
2051
  clientAssertion: void 0
2052
2052
  }, OM = {
2053
2053
  azureCloudInstance: gm.None,
2054
- tenant: `${de.DEFAULT_COMMON_TENANT}`
2054
+ tenant: `${fe.DEFAULT_COMMON_TENANT}`
2055
2055
  }, MM = {
2056
2056
  application: {
2057
2057
  appName: "",
@@ -2576,7 +2576,7 @@ class nf {
2576
2576
  else {
2577
2577
  const a = nf.IMDS_OPTIONS;
2578
2578
  try {
2579
- const s = await me(this.getRegionFromIMDS.bind(this), B.RegionDiscoveryGetRegionFromIMDS, this.logger, this.performanceClient, this.correlationId)(de.IMDS_VERSION, a);
2579
+ const s = await me(this.getRegionFromIMDS.bind(this), B.RegionDiscoveryGetRegionFromIMDS, this.logger, this.performanceClient, this.correlationId)(fe.IMDS_VERSION, a);
2580
2580
  if (s.status === Mu.httpSuccess && (r = s.body, n.region_source = ls.IMDS), s.status === Mu.httpBadRequest) {
2581
2581
  const l = await me(this.getCurrentVersion.bind(this), B.RegionDiscoveryGetCurrentVersion, this.logger, this.performanceClient, this.correlationId)(a);
2582
2582
  if (!l)
@@ -2598,7 +2598,7 @@ class nf {
2598
2598
  */
2599
2599
  async getRegionFromIMDS(e, n) {
2600
2600
  var r;
2601
- return (r = this.performanceClient) == null || r.addQueueMeasurement(B.RegionDiscoveryGetRegionFromIMDS, this.correlationId), this.networkInterface.sendGetRequestAsync(`${de.IMDS_ENDPOINT}?api-version=${e}&format=text`, n, de.IMDS_TIMEOUT);
2601
+ return (r = this.performanceClient) == null || r.addQueueMeasurement(B.RegionDiscoveryGetRegionFromIMDS, this.correlationId), this.networkInterface.sendGetRequestAsync(`${fe.IMDS_ENDPOINT}?api-version=${e}&format=text`, n, fe.IMDS_TIMEOUT);
2602
2602
  }
2603
2603
  /**
2604
2604
  * Get the most recent version of the IMDS endpoint available
@@ -2609,7 +2609,7 @@ class nf {
2609
2609
  var n;
2610
2610
  (n = this.performanceClient) == null || n.addQueueMeasurement(B.RegionDiscoveryGetCurrentVersion, this.correlationId);
2611
2611
  try {
2612
- const r = await this.networkInterface.sendGetRequestAsync(`${de.IMDS_ENDPOINT}?format=json`, e);
2612
+ const r = await this.networkInterface.sendGetRequestAsync(`${fe.IMDS_ENDPOINT}?format=json`, e);
2613
2613
  return r.status === Mu.httpBadRequest && r.body && r.body["newest-versions"] && r.body["newest-versions"].length > 0 ? r.body["newest-versions"][0] : null;
2614
2614
  } catch {
2615
2615
  return null;
@@ -2636,14 +2636,14 @@ class Nn {
2636
2636
  * @private
2637
2637
  */
2638
2638
  getAuthorityType(e) {
2639
- if (e.HostNameAndPort.endsWith(de.CIAM_AUTH_URL))
2639
+ if (e.HostNameAndPort.endsWith(fe.CIAM_AUTH_URL))
2640
2640
  return qr.Ciam;
2641
2641
  const n = e.PathSegments;
2642
2642
  if (n.length)
2643
2643
  switch (n[0].toLowerCase()) {
2644
- case de.ADFS:
2644
+ case fe.ADFS:
2645
2645
  return qr.Adfs;
2646
- case de.DSTS:
2646
+ case fe.DSTS:
2647
2647
  return qr.Dsts;
2648
2648
  }
2649
2649
  return qr.Default;
@@ -2937,7 +2937,7 @@ class Nn {
2937
2937
  (r = this.performanceClient) == null || r.addQueueMeasurement(B.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
2938
2938
  const n = (o = this.authorityOptions.azureRegionConfiguration) == null ? void 0 : o.azureRegion;
2939
2939
  if (n) {
2940
- if (n !== de.AZURE_REGION_AUTO_DISCOVER_FLAG)
2940
+ if (n !== fe.AZURE_REGION_AUTO_DISCOVER_FLAG)
2941
2941
  return this.regionDiscoveryMetadata.region_outcome = ap.CONFIGURED_NO_AUTO_DETECTION, this.regionDiscoveryMetadata.region_used = n, Nn.replaceWithRegionalInformation(e, n);
2942
2942
  const s = await me(this.regionDiscovery.detectRegion.bind(this.regionDiscovery), B.RegionDiscoveryDetectRegion, this.logger, this.performanceClient, this.correlationId)((a = this.authorityOptions.azureRegionConfiguration) == null ? void 0 : a.environmentRegion, this.regionDiscoveryMetadata);
2943
2943
  if (s)
@@ -2964,7 +2964,7 @@ class Nn {
2964
2964
  throw kt(Wx);
2965
2965
  }
2966
2966
  updateCloudDiscoveryMetadataFromLocalSources(e) {
2967
- this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"), this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities || de.NOT_APPLICABLE}`), this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata || de.NOT_APPLICABLE}`), this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority || de.NOT_APPLICABLE}`);
2967
+ this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"), this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities || fe.NOT_APPLICABLE}`), this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata || fe.NOT_APPLICABLE}`), this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority || fe.NOT_APPLICABLE}`);
2968
2968
  const n = this.getCloudDiscoveryMetadataFromConfig();
2969
2969
  if (n)
2970
2970
  return this.logger.verbose("Found cloud discovery metadata in authority configuration"), sp(e, n, !1), vr.CONFIG;
@@ -3007,7 +3007,7 @@ class Nn {
3007
3007
  async getCloudDiscoveryMetadataFromNetwork() {
3008
3008
  var o;
3009
3009
  (o = this.performanceClient) == null || o.addQueueMeasurement(B.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);
3010
- const e = `${de.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`, n = {};
3010
+ const e = `${fe.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`, n = {};
3011
3011
  let r = null;
3012
3012
  try {
3013
3013
  const a = await this.networkInterface.sendGetRequestAsync(e, n);
@@ -3015,7 +3015,7 @@ class Nn {
3015
3015
  if (MD(a.body))
3016
3016
  s = a.body, l = s.metadata, this.logger.verbosePii(`tenant_discovery_endpoint is: ${s.tenant_discovery_endpoint}`);
3017
3017
  else if (DD(a.body)) {
3018
- if (this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${a.status}`), s = a.body, s.error === de.INVALID_INSTANCE)
3018
+ if (this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${a.status}`), s = a.body, s.error === fe.INVALID_INSTANCE)
3019
3019
  return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."), null;
3020
3020
  this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${s.error}`), this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${s.error_description}`), this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"), l = [];
3021
3021
  } else
@@ -3050,7 +3050,7 @@ Error Description: ${s.message}`);
3050
3050
  static generateAuthority(e, n) {
3051
3051
  let r;
3052
3052
  if (n && n.azureCloudInstance !== gm.None) {
3053
- const o = n.tenant ? n.tenant : de.DEFAULT_COMMON_TENANT;
3053
+ const o = n.tenant ? n.tenant : fe.DEFAULT_COMMON_TENANT;
3054
3054
  r = `${n.azureCloudInstance}/${o}/`;
3055
3055
  }
3056
3056
  return r || e;
@@ -3071,7 +3071,7 @@ Error Description: ${s.message}`);
3071
3071
  */
3072
3072
  getPreferredCache() {
3073
3073
  if (this.managedIdentity)
3074
- return de.DEFAULT_AUTHORITY_HOST;
3074
+ return fe.DEFAULT_AUTHORITY_HOST;
3075
3075
  if (this.discoveryComplete())
3076
3076
  return this.metadata.preferred_cache;
3077
3077
  throw Ee(ei);
@@ -3097,7 +3097,7 @@ Error Description: ${s.message}`);
3097
3097
  * @returns bool
3098
3098
  */
3099
3099
  static isPublicCloudAuthority(e) {
3100
- return de.KNOWN_PUBLIC_CLOUDS.indexOf(e) >= 0;
3100
+ return fe.KNOWN_PUBLIC_CLOUDS.indexOf(e) >= 0;
3101
3101
  }
3102
3102
  /**
3103
3103
  * Rebuild the authority string with the region
@@ -3110,7 +3110,7 @@ Error Description: ${s.message}`);
3110
3110
  o.validateAsUri();
3111
3111
  const a = o.getUrlComponents();
3112
3112
  let s = `${n}.${a.HostNameAndPort}`;
3113
- this.isPublicCloudAuthority(a.HostNameAndPort) && (s = `${n}.${de.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);
3113
+ this.isPublicCloudAuthority(a.HostNameAndPort) && (s = `${n}.${fe.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);
3114
3114
  const l = vt.constructAuthorityUriFromObject({
3115
3115
  ...o.getUrlComponents(),
3116
3116
  HostNameAndPort: s
@@ -3139,9 +3139,9 @@ Error Description: ${s.message}`);
3139
3139
  static transformCIAMAuthority(e) {
3140
3140
  let n = e;
3141
3141
  const o = new vt(e).getUrlComponents();
3142
- if (o.PathSegments.length === 0 && o.HostNameAndPort.endsWith(de.CIAM_AUTH_URL)) {
3142
+ if (o.PathSegments.length === 0 && o.HostNameAndPort.endsWith(fe.CIAM_AUTH_URL)) {
3143
3143
  const a = o.HostNameAndPort.split(".")[0];
3144
- n = `${n}${a}${de.AAD_TENANT_DOMAIN_SUFFIX}`;
3144
+ n = `${n}${a}${fe.AAD_TENANT_DOMAIN_SUFFIX}`;
3145
3145
  }
3146
3146
  return n;
3147
3147
  }
@@ -3166,7 +3166,7 @@ function FD(t) {
3166
3166
  }
3167
3167
  }
3168
3168
  function y_(t) {
3169
- return t.endsWith(de.FORWARD_SLASH) ? t : `${t}${de.FORWARD_SLASH}`;
3169
+ return t.endsWith(fe.FORWARD_SLASH) ? t : `${t}${fe.FORWARD_SLASH}`;
3170
3170
  }
3171
3171
  function $D(t) {
3172
3172
  const e = t.cloudDiscoveryMetadata;
@@ -3238,7 +3238,7 @@ class So {
3238
3238
  e.removeItem(r);
3239
3239
  return;
3240
3240
  }
3241
- throw new Na(((a = o.errorCodes) == null ? void 0 : a.join(" ")) || de.EMPTY_STRING, o.errorMessage, o.subError);
3241
+ throw new Na(((a = o.errorCodes) == null ? void 0 : a.join(" ")) || fe.EMPTY_STRING, o.errorMessage, o.subError);
3242
3242
  }
3243
3243
  }
3244
3244
  /**
@@ -3305,7 +3305,7 @@ class Pm {
3305
3305
  */
3306
3306
  createTokenRequestHeaders(e) {
3307
3307
  const n = {};
3308
- if (n[Vn.CONTENT_TYPE] = de.URL_FORM_CONTENT_TYPE, !this.config.systemOptions.preventCorsPreflight && e)
3308
+ if (n[Vn.CONTENT_TYPE] = fe.URL_FORM_CONTENT_TYPE, !this.config.systemOptions.preventCorsPreflight && e)
3309
3309
  switch (e.type) {
3310
3310
  case Xr.HOME_ACCOUNT_ID:
3311
3311
  try {
@@ -3410,7 +3410,7 @@ const cC = [
3410
3410
  };
3411
3411
  class oo extends Ut {
3412
3412
  constructor(e, n, r, o, a, s, l, u) {
3413
- super(e, n, r), Object.setPrototypeOf(this, oo.prototype), this.timestamp = o || de.EMPTY_STRING, this.traceId = a || de.EMPTY_STRING, this.correlationId = s || de.EMPTY_STRING, this.claims = l || de.EMPTY_STRING, this.name = "InteractionRequiredAuthError", this.errorNo = u;
3413
+ super(e, n, r), Object.setPrototypeOf(this, oo.prototype), this.timestamp = o || fe.EMPTY_STRING, this.traceId = a || fe.EMPTY_STRING, this.correlationId = s || fe.EMPTY_STRING, this.claims = l || fe.EMPTY_STRING, this.name = "InteractionRequiredAuthError", this.errorNo = u;
3414
3414
  }
3415
3415
  }
3416
3416
  function b_(t, e, n) {
@@ -3429,7 +3429,7 @@ class Os {
3429
3429
  */
3430
3430
  static setRequestState(e, n, r) {
3431
3431
  const o = Os.generateLibraryState(e, r);
3432
- return n ? `${o}${de.RESOURCE_DELIM}${n}` : o;
3432
+ return n ? `${o}${fe.RESOURCE_DELIM}${n}` : o;
3433
3433
  }
3434
3434
  /**
3435
3435
  * Generates the state value used by the common library.
@@ -3457,9 +3457,9 @@ class Os {
3457
3457
  if (!n)
3458
3458
  throw Ee(Ts);
3459
3459
  try {
3460
- const r = n.split(de.RESOURCE_DELIM), o = r[0], a = r.length > 1 ? r.slice(1).join(de.RESOURCE_DELIM) : de.EMPTY_STRING, s = e.base64Decode(o), l = JSON.parse(s);
3460
+ const r = n.split(fe.RESOURCE_DELIM), o = r[0], a = r.length > 1 ? r.slice(1).join(fe.RESOURCE_DELIM) : fe.EMPTY_STRING, s = e.base64Decode(o), l = JSON.parse(s);
3461
3461
  return {
3462
- userRequestState: a || de.EMPTY_STRING,
3462
+ userRequestState: a || fe.EMPTY_STRING,
3463
3463
  libraryState: l
3464
3464
  };
3465
3465
  } catch {
@@ -3565,7 +3565,7 @@ class _a {
3565
3565
  validateTokenResponse(e, n) {
3566
3566
  var r;
3567
3567
  if (e.error || e.error_description || e.suberror) {
3568
- const o = `Error(s): ${e.error_codes || de.NOT_AVAILABLE} - Timestamp: ${e.timestamp || de.NOT_AVAILABLE} - Description: ${e.error_description || de.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id || de.NOT_AVAILABLE} - Trace ID: ${e.trace_id || de.NOT_AVAILABLE}`, a = (r = e.error_codes) != null && r.length ? e.error_codes[0] : void 0, s = new Na(e.error, o, e.suberror, a, e.status);
3568
+ const o = `Error(s): ${e.error_codes || fe.NOT_AVAILABLE} - Timestamp: ${e.timestamp || fe.NOT_AVAILABLE} - Description: ${e.error_description || fe.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id || fe.NOT_AVAILABLE} - Trace ID: ${e.trace_id || fe.NOT_AVAILABLE}`, a = (r = e.error_codes) != null && r.length ? e.error_codes[0] : void 0, s = new Na(e.error, o, e.suberror, a, e.status);
3569
3569
  if (n && e.status && e.status >= Nu.SERVER_ERROR_RANGE_START && e.status <= Nu.SERVER_ERROR_RANGE_END) {
3570
3570
  this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.
3571
3571
  ${s}`);
@@ -3575,7 +3575,7 @@ ${s}`);
3575
3575
  ${s}`);
3576
3576
  return;
3577
3577
  }
3578
- throw b_(e.error, e.error_description, e.suberror) ? new oo(e.error, e.error_description, e.suberror, e.timestamp || de.EMPTY_STRING, e.trace_id || de.EMPTY_STRING, e.correlation_id || de.EMPTY_STRING, e.claims || de.EMPTY_STRING, a) : s;
3578
+ throw b_(e.error, e.error_description, e.suberror) ? new oo(e.error, e.error_description, e.suberror, e.timestamp || fe.EMPTY_STRING, e.trace_id || fe.EMPTY_STRING, e.correlation_id || fe.EMPTY_STRING, e.claims || fe.EMPTY_STRING, a) : s;
3579
3579
  }
3580
3580
  }
3581
3581
  /**
@@ -3588,7 +3588,7 @@ ${s}`);
3588
3588
  (x = this.performanceClient) == null || x.addQueueMeasurement(B.HandleServerTokenResponse, e.correlation_id);
3589
3589
  let p;
3590
3590
  if (e.id_token) {
3591
- if (p = Ps(e.id_token || de.EMPTY_STRING, this.cryptoObj.base64Decode), a && a.nonce && p.nonce !== a.nonce)
3591
+ if (p = Ps(e.id_token || fe.EMPTY_STRING, this.cryptoObj.base64Decode), a && a.nonce && p.nonce !== a.nonce)
3592
3592
  throw Ee(Sx);
3593
3593
  if (o.maxAge || o.maxAge === 0) {
3594
3594
  const v = p.auth_time;
@@ -3597,7 +3597,7 @@ ${s}`);
3597
3597
  Lx(v, o.maxAge);
3598
3598
  }
3599
3599
  }
3600
- this.homeAccountIdentifier = Gn.generateHomeAccountId(e.client_info || de.EMPTY_STRING, n.authorityType, this.logger, this.cryptoObj, p);
3600
+ this.homeAccountIdentifier = Gn.generateHomeAccountId(e.client_info || fe.EMPTY_STRING, n.authorityType, this.logger, this.cryptoObj, p);
3601
3601
  let g;
3602
3602
  a && a.state && (g = Os.parseRequestState(this.cryptoObj, a.state)), e.key_id = e.key_id || o.sshKid || void 0;
3603
3603
  const w = this.generateCacheRecord(e, n, r, o, p, s, a);
@@ -3679,7 +3679,7 @@ ${s}`);
3679
3679
  */
3680
3680
  static async generateAuthenticationResult(e, n, r, o, a, s, l, u, f) {
3681
3681
  var k, N, S, D, H;
3682
- let p = de.EMPTY_STRING, g = [], w = null, y, x, v = de.EMPTY_STRING;
3682
+ let p = fe.EMPTY_STRING, g = [], w = null, y, x, v = fe.EMPTY_STRING;
3683
3683
  if (r.accessToken) {
3684
3684
  if (r.accessToken.tokenType === Pt.POP && !a.popKid) {
3685
3685
  const K = new As(e), { secret: ee, keyId: W } = r.accessToken;
@@ -3714,12 +3714,12 @@ ${s}`);
3714
3714
  extExpiresOn: y,
3715
3715
  refreshOn: x,
3716
3716
  correlationId: a.correlationId,
3717
- requestId: f || de.EMPTY_STRING,
3717
+ requestId: f || fe.EMPTY_STRING,
3718
3718
  familyId: v,
3719
- tokenType: ((S = r.accessToken) == null ? void 0 : S.tokenType) || de.EMPTY_STRING,
3720
- state: l ? l.userRequestState : de.EMPTY_STRING,
3721
- cloudGraphHostName: ((D = r.account) == null ? void 0 : D.cloudGraphHostName) || de.EMPTY_STRING,
3722
- msGraphHost: ((H = r.account) == null ? void 0 : H.msGraphHost) || de.EMPTY_STRING,
3719
+ tokenType: ((S = r.accessToken) == null ? void 0 : S.tokenType) || fe.EMPTY_STRING,
3720
+ state: l ? l.userRequestState : fe.EMPTY_STRING,
3721
+ cloudGraphHostName: ((D = r.account) == null ? void 0 : D.cloudGraphHostName) || fe.EMPTY_STRING,
3722
+ msGraphHost: ((H = r.account) == null ? void 0 : H.msGraphHost) || fe.EMPTY_STRING,
3723
3723
  code: u == null ? void 0 : u.spa_code,
3724
3724
  fromNativeBroker: !1
3725
3725
  };
@@ -4212,7 +4212,7 @@ function rL(t) {
4212
4212
  }
4213
4213
  class rl {
4214
4214
  constructor(e, n) {
4215
- this.cacheOutcome = fa.NOT_APPLICABLE, this.cacheManager = n, this.apiId = e.apiId, this.correlationId = e.correlationId, this.wrapperSKU = e.wrapperSKU || de.EMPTY_STRING, this.wrapperVer = e.wrapperVer || de.EMPTY_STRING, this.telemetryCacheKey = Cn.CACHE_KEY + Pn.CACHE_KEY_SEPARATOR + e.clientId;
4215
+ this.cacheOutcome = fa.NOT_APPLICABLE, this.cacheManager = n, this.apiId = e.apiId, this.correlationId = e.correlationId, this.wrapperSKU = e.wrapperSKU || fe.EMPTY_STRING, this.wrapperVer = e.wrapperVer || fe.EMPTY_STRING, this.telemetryCacheKey = Cn.CACHE_KEY + Pn.CACHE_KEY_SEPARATOR + e.clientId;
4216
4216
  }
4217
4217
  /**
4218
4218
  * API to add MSER Telemetry to request
@@ -4293,7 +4293,7 @@ class rl {
4293
4293
  let n, r = 0, o = 0;
4294
4294
  const a = e.errors.length;
4295
4295
  for (n = 0; n < a; n++) {
4296
- const s = e.failedRequests[2 * n] || de.EMPTY_STRING, l = e.failedRequests[2 * n + 1] || de.EMPTY_STRING, u = e.errors[n] || de.EMPTY_STRING;
4296
+ const s = e.failedRequests[2 * n] || fe.EMPTY_STRING, l = e.failedRequests[2 * n + 1] || fe.EMPTY_STRING, u = e.errors[n] || fe.EMPTY_STRING;
4297
4297
  if (o += s.toString().length + l.toString().length + u.length + 3, o < Cn.MAX_LAST_HEADER_BYTES)
4298
4298
  r += 1;
4299
4299
  else
@@ -4308,7 +4308,7 @@ class rl {
4308
4308
  */
4309
4309
  getRegionDiscoveryFields() {
4310
4310
  const e = [];
4311
- return e.push(this.regionUsed || de.EMPTY_STRING), e.push(this.regionSource || de.EMPTY_STRING), e.push(this.regionOutcome || de.EMPTY_STRING), e.join(",");
4311
+ return e.push(this.regionUsed || fe.EMPTY_STRING), e.push(this.regionSource || fe.EMPTY_STRING), e.push(this.regionOutcome || fe.EMPTY_STRING), e.join(",");
4312
4312
  }
4313
4313
  /**
4314
4314
  * Update the region discovery metadata
@@ -4981,27 +4981,27 @@ function wC(t) {
4981
4981
  const HL = 6e4, pg = 1e4, UL = 3e4, BL = 2e3;
4982
4982
  function zL({ auth: t, cache: e, system: n, telemetry: r }, o) {
4983
4983
  const a = {
4984
- clientId: de.EMPTY_STRING,
4985
- authority: `${de.DEFAULT_AUTHORITY}`,
4984
+ clientId: fe.EMPTY_STRING,
4985
+ authority: `${fe.DEFAULT_AUTHORITY}`,
4986
4986
  knownAuthorities: [],
4987
- cloudDiscoveryMetadata: de.EMPTY_STRING,
4988
- authorityMetadata: de.EMPTY_STRING,
4987
+ cloudDiscoveryMetadata: fe.EMPTY_STRING,
4988
+ authorityMetadata: fe.EMPTY_STRING,
4989
4989
  redirectUri: typeof window < "u" ? ni() : "",
4990
- postLogoutRedirectUri: de.EMPTY_STRING,
4990
+ postLogoutRedirectUri: fe.EMPTY_STRING,
4991
4991
  navigateToLoginRequestUrl: !0,
4992
4992
  clientCapabilities: [],
4993
4993
  protocolMode: br.AAD,
4994
4994
  OIDCOptions: {
4995
4995
  serverResponseType: qd.FRAGMENT,
4996
4996
  defaultScopes: [
4997
- de.OPENID_SCOPE,
4998
- de.PROFILE_SCOPE,
4999
- de.OFFLINE_ACCESS_SCOPE
4997
+ fe.OPENID_SCOPE,
4998
+ fe.PROFILE_SCOPE,
4999
+ fe.OFFLINE_ACCESS_SCOPE
5000
5000
  ]
5001
5001
  },
5002
5002
  azureCloudOptions: {
5003
5003
  azureCloudInstance: gm.None,
5004
- tenant: de.EMPTY_STRING
5004
+ tenant: fe.EMPTY_STRING
5005
5005
  },
5006
5006
  skipAuthorityMetadataCache: !1,
5007
5007
  supportsNestedAppAuth: !1,
@@ -5043,8 +5043,8 @@ function zL({ auth: t, cache: e, system: n, telemetry: r }, o) {
5043
5043
  loggerOptions: (n == null ? void 0 : n.loggerOptions) || l
5044
5044
  }, p = {
5045
5045
  application: {
5046
- appName: de.EMPTY_STRING,
5047
- appVersion: de.EMPTY_STRING
5046
+ appName: fe.EMPTY_STRING,
5047
+ appVersion: fe.EMPTY_STRING
5048
5048
  },
5049
5049
  client: new iL()
5050
5050
  };
@@ -5685,7 +5685,7 @@ class YL {
5685
5685
  this.memoryStorage.clear(), mg(this).forEach((r) => this.removeItem(r));
5686
5686
  const n = vg(this.clientId, this);
5687
5687
  n.idToken.forEach((r) => this.removeItem(r)), n.accessToken.forEach((r) => this.removeItem(r)), n.refreshToken.forEach((r) => this.removeItem(r)), this.getKeys().forEach((r) => {
5688
- (r.startsWith(de.CACHE_PREFIX) || r.indexOf(this.clientId) !== -1) && this.removeItem(r);
5688
+ (r.startsWith(fe.CACHE_PREFIX) || r.indexOf(this.clientId) !== -1) && this.removeItem(r);
5689
5689
  });
5690
5690
  }
5691
5691
  /**
@@ -6111,7 +6111,7 @@ class yg extends cg {
6111
6111
  * Returns wrapper metadata from in-memory storage
6112
6112
  */
6113
6113
  getWrapperMetadata() {
6114
- const e = this.internalStorage.getItem(Fu.WRAPPER_SKU) || de.EMPTY_STRING, n = this.internalStorage.getItem(Fu.WRAPPER_VER) || de.EMPTY_STRING;
6114
+ const e = this.internalStorage.getItem(Fu.WRAPPER_SKU) || fe.EMPTY_STRING, n = this.internalStorage.getItem(Fu.WRAPPER_VER) || fe.EMPTY_STRING;
6115
6115
  return [e, n];
6116
6116
  }
6117
6117
  /**
@@ -6232,9 +6232,9 @@ class yg extends cg {
6232
6232
  */
6233
6233
  async clear() {
6234
6234
  await this.removeAllAccounts(), this.removeAppMetadata(), this.temporaryCacheStorage.getKeys().forEach((e) => {
6235
- (e.indexOf(de.CACHE_PREFIX) !== -1 || e.indexOf(this.clientId) !== -1) && this.removeTemporaryItem(e);
6235
+ (e.indexOf(fe.CACHE_PREFIX) !== -1 || e.indexOf(this.clientId) !== -1) && this.removeTemporaryItem(e);
6236
6236
  }), this.browserStorage.getKeys().forEach((e) => {
6237
- (e.indexOf(de.CACHE_PREFIX) !== -1 || e.indexOf(this.clientId) !== -1) && this.browserStorage.removeItem(e);
6237
+ (e.indexOf(fe.CACHE_PREFIX) !== -1 || e.indexOf(this.clientId) !== -1) && this.browserStorage.removeItem(e);
6238
6238
  }), this.internalStorage.clear();
6239
6239
  }
6240
6240
  /**
@@ -6257,7 +6257,7 @@ class yg extends cg {
6257
6257
  * @param addInstanceId
6258
6258
  */
6259
6259
  generateCacheKey(e) {
6260
- return this.validateAndParseJson(e) ? JSON.stringify(e) : ko.startsWith(e, de.CACHE_PREFIX) ? e : `${de.CACHE_PREFIX}.${this.clientId}.${e}`;
6260
+ return this.validateAndParseJson(e) ? JSON.stringify(e) : ko.startsWith(e, fe.CACHE_PREFIX) ? e : `${fe.CACHE_PREFIX}.${this.clientId}.${e}`;
6261
6261
  }
6262
6262
  /**
6263
6263
  * Reset all temporary cache items
@@ -6308,7 +6308,7 @@ class yg extends cg {
6308
6308
  return e ? n === this.clientId : !!n;
6309
6309
  }
6310
6310
  getInteractionInProgress() {
6311
- const e = `${de.CACHE_PREFIX}.${an.INTERACTION_STATUS_KEY}`, n = this.getTemporaryCache(e, !1);
6311
+ const e = `${fe.CACHE_PREFIX}.${an.INTERACTION_STATUS_KEY}`, n = this.getTemporaryCache(e, !1);
6312
6312
  try {
6313
6313
  return n ? JSON.parse(n) : null;
6314
6314
  } catch {
@@ -6317,7 +6317,7 @@ class yg extends cg {
6317
6317
  }
6318
6318
  setInteractionInProgress(e, n = Si.SIGNIN) {
6319
6319
  var o;
6320
- const r = `${de.CACHE_PREFIX}.${an.INTERACTION_STATUS_KEY}`;
6320
+ const r = `${fe.CACHE_PREFIX}.${an.INTERACTION_STATUS_KEY}`;
6321
6321
  if (e) {
6322
6322
  if (this.getInteractionInProgress())
6323
6323
  throw Le(M_);
@@ -6743,8 +6743,8 @@ class Ds extends yS {
6743
6743
  libraryInfo: {
6744
6744
  sku: cr.MSAL_SKU,
6745
6745
  version: ml,
6746
- cpu: de.EMPTY_STRING,
6747
- os: de.EMPTY_STRING
6746
+ cpu: fe.EMPTY_STRING,
6747
+ os: fe.EMPTY_STRING
6748
6748
  },
6749
6749
  telemetry: this.config.telemetry
6750
6750
  };
@@ -6758,7 +6758,7 @@ class Ds extends yS {
6758
6758
  this.performanceClient.addQueueMeasurement(B.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId);
6759
6759
  const r = this.getRedirectUri(e.redirectUri), o = {
6760
6760
  interactionType: n
6761
- }, a = Os.setRequestState(this.browserCrypto, e && e.state || de.EMPTY_STRING, o), l = {
6761
+ }, a = Os.setRequestState(this.browserCrypto, e && e.state || fe.EMPTY_STRING, o), l = {
6762
6762
  ...await me(ev, B.InitializeBaseRequest, this.logger, this.performanceClient, this.correlationId)({ ...e, correlationId: this.correlationId }, this.config, this.performanceClient, this.logger),
6763
6763
  redirectUri: r,
6764
6764
  state: a,
@@ -7287,7 +7287,7 @@ class ed extends yS {
7287
7287
  * @returns
7288
7288
  */
7289
7289
  createHomeAccountIdentifier(e, n) {
7290
- return Gn.generateHomeAccountId(e.client_info || de.EMPTY_STRING, qr.Default, this.logger, this.browserCrypto, n);
7290
+ return Gn.generateHomeAccountId(e.client_info || fe.EMPTY_STRING, qr.Default, this.logger, this.browserCrypto, n);
7291
7291
  }
7292
7292
  /**
7293
7293
  * Helper to generate scopes
@@ -7330,7 +7330,7 @@ class ed extends yS {
7330
7330
  * @returns
7331
7331
  */
7332
7332
  async generateAuthenticationResult(e, n, r, o, a, s) {
7333
- const l = this.addTelemetryFromNativeResponse(e), u = e.scope ? nn.fromString(e.scope) : nn.fromString(n.scope), f = e.account.properties || {}, p = f.UID || r.oid || r.sub || de.EMPTY_STRING, g = f.TenantId || r.tid || de.EMPTY_STRING, w = Cm(
7333
+ const l = this.addTelemetryFromNativeResponse(e), u = e.scope ? nn.fromString(e.scope) : nn.fromString(n.scope), f = e.account.properties || {}, p = f.UID || r.oid || r.sub || fe.EMPTY_STRING, g = f.TenantId || r.tid || fe.EMPTY_STRING, w = Cm(
7334
7334
  o.getAccountInfo(),
7335
7335
  void 0,
7336
7336
  // tenantProfile optional
@@ -7377,7 +7377,7 @@ class ed extends yS {
7377
7377
  * @param reqTimestamp
7378
7378
  */
7379
7379
  cacheNativeTokens(e, n, r, o, a, s, l) {
7380
- const u = Yd(r, n.authority, e.id_token || "", n.clientId, o.tid || ""), f = n.tokenType === Pt.POP ? de.SHR_NONCE_VALIDITY : (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, p = l + f, g = this.generateScopes(e, n), w = Jd(r, n.authority, a, n.clientId, o.tid || s, g.printScopes(), p, 0, to, void 0, n.tokenType, void 0, n.keyId), y = {
7380
+ const u = Yd(r, n.authority, e.id_token || "", n.clientId, o.tid || ""), f = n.tokenType === Pt.POP ? fe.SHR_NONCE_VALIDITY : (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, p = l + f, g = this.generateScopes(e, n), w = Jd(r, n.authority, a, n.clientId, o.tid || s, g.printScopes(), p, 0, to, void 0, n.tokenType, void 0, n.keyId), y = {
7381
7381
  idToken: u,
7382
7382
  accessToken: w
7383
7383
  };
@@ -7546,7 +7546,7 @@ async function tv(t, e, n, r, o) {
7546
7546
  if (!n.codeChallenge)
7547
7547
  throw kt(Xd);
7548
7548
  const a = await me(xS, B.GetStandardParams, r, o, n.correlationId)(t, e, n, r, o);
7549
- return c_(a, gx.CODE), TD(a, n.codeChallenge, de.S256_CODE_CHALLENGE_METHOD), Ca(a, n.extraQueryParameters || {}), S_(e, a, t.auth.encodeExtraQueryParams, n.extraQueryParameters);
7549
+ return c_(a, gx.CODE), TD(a, n.codeChallenge, fe.S256_CODE_CHALLENGE_METHOD), Ca(a, n.extraQueryParameters || {}), S_(e, a, t.auth.encodeExtraQueryParams, n.extraQueryParameters);
7550
7550
  }
7551
7551
  async function nv(t, e, n, r, o, a) {
7552
7552
  if (!r.earJwk)
@@ -7975,7 +7975,7 @@ class EF extends Ds {
7975
7975
  const [s, l] = this.getRedirectResponse(e || "");
7976
7976
  if (!s)
7977
7977
  return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."), this.browserStorage.resetRequestCache(), SF() !== "back_forward" ? o.event.errorCode = "no_server_response" : this.logger.verbose("Back navigation event detected. Muting no_server_response error"), null;
7978
- const u = this.browserStorage.getTemporaryCache(an.ORIGIN_URI, !0) || de.EMPTY_STRING, f = vt.removeHashFromUrl(u), p = vt.removeHashFromUrl(window.location.href);
7978
+ const u = this.browserStorage.getTemporaryCache(an.ORIGIN_URI, !0) || fe.EMPTY_STRING, f = vt.removeHashFromUrl(u), p = vt.removeHashFromUrl(window.location.href);
7979
7979
  if (f === p && this.config.auth.navigateToLoginRequestUrl)
7980
7980
  return this.logger.verbose("Current page is loginRequestUrl, handling response"), u.indexOf("#") > -1 && NL(u), await this.handleResponse(s, n, r, a);
7981
7981
  if (this.config.auth.navigateToLoginRequestUrl) {
@@ -9270,7 +9270,7 @@ class hf {
9270
9270
  * @returns {string}
9271
9271
  */
9272
9272
  getRequestCorrelationId(e) {
9273
- return e != null && e.correlationId ? e.correlationId : this.isBrowserEnvironment ? io() : de.EMPTY_STRING;
9273
+ return e != null && e.correlationId ? e.correlationId : this.isBrowserEnvironment ? io() : fe.EMPTY_STRING;
9274
9274
  }
9275
9275
  // #endregion
9276
9276
  /**
@@ -15525,9 +15525,9 @@ var YE = { exports: {} };
15525
15525
  }, Z.toString = function() {
15526
15526
  return this.$d.toUTCString();
15527
15527
  }, q;
15528
- }(), fe = se.prototype;
15529
- return W.prototype = fe, [["$ms", a], ["$s", s], ["$m", l], ["$H", u], ["$W", f], ["$M", g], ["$y", y], ["$D", x]].forEach(function(q) {
15530
- fe[q[1]] = function(Z) {
15528
+ }(), he = se.prototype;
15529
+ return W.prototype = he, [["$ms", a], ["$s", s], ["$m", l], ["$H", u], ["$W", f], ["$M", g], ["$y", y], ["$D", x]].forEach(function(q) {
15530
+ he[q[1]] = function(Z) {
15531
15531
  return this.$g(Z, q[0], q[1]);
15532
15532
  };
15533
15533
  }), W.extend = function(q, Z) {
@@ -15551,7 +15551,7 @@ var Od = { exports: {} };
15551
15551
  Od.exports;
15552
15552
  (function(t, e) {
15553
15553
  (function() {
15554
- var n, r = "4.17.21", o = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", l = "Invalid `variable` option passed into `_.template`", u = "__lodash_hash_undefined__", f = 500, p = "__lodash_placeholder__", g = 1, w = 2, y = 4, x = 1, v = 2, b = 1, E = 2, T = 4, k = 8, N = 16, S = 32, D = 64, H = 128, K = 256, ee = 512, W = 30, ue = "...", se = 800, fe = 16, q = 1, Z = 2, Y = 3, oe = 1 / 0, Q = 9007199254740991, X = 17976931348623157e292, $ = NaN, te = 4294967295, Se = te - 1, ke = te >>> 1, _e = [
15554
+ var n, r = "4.17.21", o = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", l = "Invalid `variable` option passed into `_.template`", u = "__lodash_hash_undefined__", f = 500, p = "__lodash_placeholder__", g = 1, w = 2, y = 4, x = 1, v = 2, b = 1, E = 2, T = 4, k = 8, N = 16, S = 32, D = 64, H = 128, K = 256, ee = 512, W = 30, ue = "...", se = 800, he = 16, q = 1, Z = 2, Y = 3, oe = 1 / 0, Q = 9007199254740991, X = 17976931348623157e292, $ = NaN, te = 4294967295, Se = te - 1, ke = te >>> 1, _e = [
15555
15555
  ["ary", H],
15556
15556
  ["bind", b],
15557
15557
  ["bindKey", E],
@@ -15561,7 +15561,7 @@ Od.exports;
15561
15561
  ["partial", S],
15562
15562
  ["partialRight", D],
15563
15563
  ["rearg", K]
15564
- ], Pe = "[object Arguments]", Ae = "[object Array]", z = "[object AsyncFunction]", ce = "[object Boolean]", Ie = "[object Date]", be = "[object DOMException]", Ne = "[object Error]", ne = "[object Function]", Ke = "[object GeneratorFunction]", Xe = "[object Map]", xt = "[object Number]", Qt = "[object Null]", _t = "[object Object]", on = "[object Promise]", Gt = "[object Proxy]", Dn = "[object RegExp]", qt = "[object Set]", L = "[object String]", J = "[object Symbol]", U = "[object Undefined]", ae = "[object WeakMap]", we = "[object WeakSet]", he = "[object ArrayBuffer]", Te = "[object DataView]", Ze = "[object Float32Array]", ht = "[object Float64Array]", St = "[object Int8Array]", uo = "[object Int16Array]", Xt = "[object Int32Array]", yn = "[object Uint8Array]", Mr = "[object Uint8ClampedArray]", Yt = "[object Uint16Array]", dr = "[object Uint32Array]", Dr = /\b__p \+= '';/g, Bi = /\b(__p \+=) '' \+/g, Ye = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Do = /&(?:amp|lt|gt|quot|#39);/g, Vs = /[&<>"']/g, fo = RegExp(Do.source), zi = RegExp(Vs.source), Vi = /<%-([\s\S]+?)%>/g, Oa = /<%([\s\S]+?)%>/g, Tl = /<%=([\s\S]+?)%>/g, Ki = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ma = /^\w*$/, Al = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Ks = /[\\^$.*+?()[\]{}|]/g, Il = RegExp(Ks.source), Gs = /^\s+/, Rl = /\s/, Da = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, kl = /\{\n\/\* \[wrapped with (.+)\] \*/, Gi = /,? & /, Nl = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, La = /[()=,{}\[\]\/\s]/, Yf = /\\(\\)?/g, Lo = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, js = /\w*$/, Ws = /^[-+]0x[0-9a-f]+$/i, Jf = /^0b[01]+$/i, Ot = /^\[object .+?Constructor\]$/, qs = /^0o[0-7]+$/i, ty = /^(?:0|[1-9]\d*)$/, Qf = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ys = /($^)/, Js = /['\n\r\u2028\u2029\\]/g, ji = "\\ud800-\\udfff", Fa = "\\u0300-\\u036f", Pl = "\\ufe20-\\ufe2f", Ol = "\\u20d0-\\u20ff", Qs = Fa + Pl + Ol, Xs = "\\u2700-\\u27bf", Wi = "a-z\\xdf-\\xf6\\xf8-\\xff", Zs = "\\xac\\xb1\\xd7\\xf7", Xf = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", $a = "\\u2000-\\u206f", Ha = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ec = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ml = "\\ufe0e\\ufe0f", Fo = Zs + Xf + $a + Ha, Ua = "['’]", tc = "[" + ji + "]", nc = "[" + Fo + "]", Ba = "[" + Qs + "]", za = "\\d+", Dl = "[" + Xs + "]", rc = "[" + Wi + "]", qi = "[^" + ji + Fo + za + Xs + Wi + ec + "]", ho = "\\ud83c[\\udffb-\\udfff]", Yi = "(?:" + Ba + "|" + ho + ")", oc = "[^" + ji + "]", ic = "(?:\\ud83c[\\udde6-\\uddff]){2}", yt = "[\\ud800-\\udbff][\\udc00-\\udfff]", Lr = "[" + ec + "]", Ll = "\\u200d", Va = "(?:" + rc + "|" + qi + ")", Zf = "(?:" + Lr + "|" + qi + ")", Ji = "(?:" + Ua + "(?:d|ll|m|re|s|t|ve))?", $o = "(?:" + Ua + "(?:D|LL|M|RE|S|T|VE))?", ac = Yi + "?", eh = "[" + Ml + "]?", ny = "(?:" + Ll + "(?:" + [oc, ic, yt].join("|") + ")" + eh + ac + ")*", th = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ry = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Fl = eh + ac + ny, En = "(?:" + [Dl, ic, yt].join("|") + ")" + Fl, Ka = "(?:" + [oc + Ba + "?", Ba, ic, yt, tc].join("|") + ")", nh = RegExp(Ua, "g"), Qi = RegExp(Ba, "g"), ln = RegExp(ho + "(?=" + ho + ")|" + Ka + Fl, "g"), sc = RegExp([
15564
+ ], Pe = "[object Arguments]", Ae = "[object Array]", z = "[object AsyncFunction]", ce = "[object Boolean]", Ie = "[object Date]", be = "[object DOMException]", Ne = "[object Error]", ne = "[object Function]", Ke = "[object GeneratorFunction]", Ze = "[object Map]", xt = "[object Number]", Qt = "[object Null]", _t = "[object Object]", on = "[object Promise]", Gt = "[object Proxy]", Dn = "[object RegExp]", qt = "[object Set]", L = "[object String]", J = "[object Symbol]", U = "[object Undefined]", ae = "[object WeakMap]", we = "[object WeakSet]", pe = "[object ArrayBuffer]", Te = "[object DataView]", Xe = "[object Float32Array]", ht = "[object Float64Array]", St = "[object Int8Array]", uo = "[object Int16Array]", Xt = "[object Int32Array]", yn = "[object Uint8Array]", Mr = "[object Uint8ClampedArray]", Yt = "[object Uint16Array]", dr = "[object Uint32Array]", Dr = /\b__p \+= '';/g, Bi = /\b(__p \+=) '' \+/g, Ye = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Do = /&(?:amp|lt|gt|quot|#39);/g, Vs = /[&<>"']/g, fo = RegExp(Do.source), zi = RegExp(Vs.source), Vi = /<%-([\s\S]+?)%>/g, Oa = /<%([\s\S]+?)%>/g, Tl = /<%=([\s\S]+?)%>/g, Ki = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ma = /^\w*$/, Al = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Ks = /[\\^$.*+?()[\]{}|]/g, Il = RegExp(Ks.source), Gs = /^\s+/, Rl = /\s/, Da = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, kl = /\{\n\/\* \[wrapped with (.+)\] \*/, Gi = /,? & /, Nl = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, La = /[()=,{}\[\]\/\s]/, Yf = /\\(\\)?/g, Lo = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, js = /\w*$/, Ws = /^[-+]0x[0-9a-f]+$/i, Jf = /^0b[01]+$/i, Ot = /^\[object .+?Constructor\]$/, qs = /^0o[0-7]+$/i, ty = /^(?:0|[1-9]\d*)$/, Qf = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ys = /($^)/, Js = /['\n\r\u2028\u2029\\]/g, ji = "\\ud800-\\udfff", Fa = "\\u0300-\\u036f", Pl = "\\ufe20-\\ufe2f", Ol = "\\u20d0-\\u20ff", Qs = Fa + Pl + Ol, Xs = "\\u2700-\\u27bf", Wi = "a-z\\xdf-\\xf6\\xf8-\\xff", Zs = "\\xac\\xb1\\xd7\\xf7", Xf = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", $a = "\\u2000-\\u206f", Ha = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ec = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ml = "\\ufe0e\\ufe0f", Fo = Zs + Xf + $a + Ha, Ua = "['’]", tc = "[" + ji + "]", nc = "[" + Fo + "]", Ba = "[" + Qs + "]", za = "\\d+", Dl = "[" + Xs + "]", rc = "[" + Wi + "]", qi = "[^" + ji + Fo + za + Xs + Wi + ec + "]", ho = "\\ud83c[\\udffb-\\udfff]", Yi = "(?:" + Ba + "|" + ho + ")", oc = "[^" + ji + "]", ic = "(?:\\ud83c[\\udde6-\\uddff]){2}", yt = "[\\ud800-\\udbff][\\udc00-\\udfff]", Lr = "[" + ec + "]", Ll = "\\u200d", Va = "(?:" + rc + "|" + qi + ")", Zf = "(?:" + Lr + "|" + qi + ")", Ji = "(?:" + Ua + "(?:d|ll|m|re|s|t|ve))?", $o = "(?:" + Ua + "(?:D|LL|M|RE|S|T|VE))?", ac = Yi + "?", eh = "[" + Ml + "]?", ny = "(?:" + Ll + "(?:" + [oc, ic, yt].join("|") + ")" + eh + ac + ")*", th = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ry = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Fl = eh + ac + ny, En = "(?:" + [Dl, ic, yt].join("|") + ")" + Fl, Ka = "(?:" + [oc + Ba + "?", Ba, ic, yt, tc].join("|") + ")", nh = RegExp(Ua, "g"), Qi = RegExp(Ba, "g"), ln = RegExp(ho + "(?=" + ho + ")|" + Ka + Fl, "g"), sc = RegExp([
15565
15565
  Lr + "?" + rc + "+" + Ji + "(?=" + [nc, Lr, "$"].join("|") + ")",
15566
15566
  Zf + "+" + $o + "(?=" + [nc, Lr + Va, "$"].join("|") + ")",
15567
15567
  Lr + "?" + Va + "+" + Ji,
@@ -15602,9 +15602,9 @@ Od.exports;
15602
15602
  "parseInt",
15603
15603
  "setTimeout"
15604
15604
  ], Bt = -1, Mt = {};
15605
- Mt[Ze] = Mt[ht] = Mt[St] = Mt[uo] = Mt[Xt] = Mt[yn] = Mt[Mr] = Mt[Yt] = Mt[dr] = !0, Mt[Pe] = Mt[Ae] = Mt[he] = Mt[ce] = Mt[Te] = Mt[Ie] = Mt[Ne] = Mt[ne] = Mt[Xe] = Mt[xt] = Mt[_t] = Mt[Dn] = Mt[qt] = Mt[L] = Mt[ae] = !1;
15605
+ Mt[Xe] = Mt[ht] = Mt[St] = Mt[uo] = Mt[Xt] = Mt[yn] = Mt[Mr] = Mt[Yt] = Mt[dr] = !0, Mt[Pe] = Mt[Ae] = Mt[pe] = Mt[ce] = Mt[Te] = Mt[Ie] = Mt[Ne] = Mt[ne] = Mt[Ze] = Mt[xt] = Mt[_t] = Mt[Dn] = Mt[qt] = Mt[L] = Mt[ae] = !1;
15606
15606
  var Nt = {};
15607
- Nt[Pe] = Nt[Ae] = Nt[he] = Nt[Te] = Nt[ce] = Nt[Ie] = Nt[Ze] = Nt[ht] = Nt[St] = Nt[uo] = Nt[Xt] = Nt[Xe] = Nt[xt] = Nt[_t] = Nt[Dn] = Nt[qt] = Nt[L] = Nt[J] = Nt[yn] = Nt[Mr] = Nt[Yt] = Nt[dr] = !0, Nt[Ne] = Nt[ne] = Nt[ae] = !1;
15607
+ Nt[Pe] = Nt[Ae] = Nt[pe] = Nt[Te] = Nt[ce] = Nt[Ie] = Nt[Xe] = Nt[ht] = Nt[St] = Nt[uo] = Nt[Xt] = Nt[Ze] = Nt[xt] = Nt[_t] = Nt[Dn] = Nt[qt] = Nt[L] = Nt[J] = Nt[yn] = Nt[Mr] = Nt[Yt] = Nt[dr] = !0, Nt[Ne] = Nt[ne] = Nt[ae] = !1;
15608
15608
  var $l = {
15609
15609
  // Latin-1 Supplement block.
15610
15610
  À: "A",
@@ -16010,7 +16010,7 @@ Od.exports;
16010
16010
  V[re] === le && ++De;
16011
16011
  return De;
16012
16012
  }
16013
- var pe = pc($l), xe = pc(rh);
16013
+ var de = pc($l), xe = pc(rh);
16014
16014
  function Re(V) {
16015
16015
  return "\\" + Ga[V];
16016
16016
  }
@@ -16591,7 +16591,7 @@ Od.exports;
16591
16591
  return Jt(i) && Fn(i) == Pe;
16592
16592
  }
16593
16593
  function PR(i) {
16594
- return Jt(i) && Fn(i) == he;
16594
+ return Jt(i) && Fn(i) == pe;
16595
16595
  }
16596
16596
  function OR(i) {
16597
16597
  return Jt(i) && Fn(i) == Ie;
@@ -16620,7 +16620,7 @@ Od.exports;
16620
16620
  return Oe ? (R || (R = new Vr()), ck(i, c, d, m, _, R)) : !1;
16621
16621
  }
16622
16622
  function DR(i) {
16623
- return Jt(i) && In(i) == Xe;
16623
+ return Jt(i) && In(i) == Ze;
16624
16624
  }
16625
16625
  function xh(i, c, d, m) {
16626
16626
  var _ = d.length, R = _, M = !m;
@@ -17319,7 +17319,7 @@ Od.exports;
17319
17319
  function Xy(i) {
17320
17320
  return function(c) {
17321
17321
  var d = In(c);
17322
- return d == Xe ? Xa(c) : d == qt ? Bo(c) : Ho(c, i(c));
17322
+ return d == Ze ? Xa(c) : d == qt ? Bo(c) : Ho(c, i(c));
17323
17323
  };
17324
17324
  }
17325
17325
  function Go(i, c, d, m, _, R, M, F) {
@@ -17397,7 +17397,7 @@ Od.exports;
17397
17397
  if (i.byteLength != c.byteLength || i.byteOffset != c.byteOffset)
17398
17398
  return !1;
17399
17399
  i = i.buffer, c = c.buffer;
17400
- case he:
17400
+ case pe:
17401
17401
  return !(i.byteLength != c.byteLength || !R(new eu(i), new eu(c)));
17402
17402
  case ce:
17403
17403
  case Ie:
@@ -17408,7 +17408,7 @@ Od.exports;
17408
17408
  case Dn:
17409
17409
  case L:
17410
17410
  return i == c + "";
17411
- case Xe:
17411
+ case Ze:
17412
17412
  var F = Xa;
17413
17413
  case qt:
17414
17414
  var j = m & x;
@@ -17519,14 +17519,14 @@ Od.exports;
17519
17519
  go(c, Uh(i)), i = tu(i);
17520
17520
  return c;
17521
17521
  } : op, In = Fn;
17522
- (ph && In(new ph(new ArrayBuffer(1))) != Te || Cc && In(new Cc()) != Xe || gh && In(gh.resolve()) != on || ts && In(new ts()) != qt || bc && In(new bc()) != ae) && (In = function(i) {
17522
+ (ph && In(new ph(new ArrayBuffer(1))) != Te || Cc && In(new Cc()) != Ze || gh && In(gh.resolve()) != on || ts && In(new ts()) != qt || bc && In(new bc()) != ae) && (In = function(i) {
17523
17523
  var c = Fn(i), d = c == _t ? i.constructor : n, m = d ? ca(d) : "";
17524
17524
  if (m)
17525
17525
  switch (m) {
17526
17526
  case GI:
17527
17527
  return Te;
17528
17528
  case jI:
17529
- return Xe;
17529
+ return Ze;
17530
17530
  case WI:
17531
17531
  return on;
17532
17532
  case qI:
@@ -17580,14 +17580,14 @@ Od.exports;
17580
17580
  function hk(i, c, d) {
17581
17581
  var m = i.constructor;
17582
17582
  switch (c) {
17583
- case he:
17583
+ case pe:
17584
17584
  return Oh(i);
17585
17585
  case ce:
17586
17586
  case Ie:
17587
17587
  return new m(+i);
17588
17588
  case Te:
17589
17589
  return JR(i, d);
17590
- case Ze:
17590
+ case Xe:
17591
17591
  case ht:
17592
17592
  case St:
17593
17593
  case uo:
@@ -17597,7 +17597,7 @@ Od.exports;
17597
17597
  case Yt:
17598
17598
  case dr:
17599
17599
  return Uy(i, d);
17600
- case Xe:
17600
+ case Ze:
17601
17601
  return new m();
17602
17602
  case xt:
17603
17603
  case L:
@@ -17729,7 +17729,7 @@ Od.exports;
17729
17729
  function dw(i) {
17730
17730
  var c = 0, d = 0;
17731
17731
  return function() {
17732
- var m = zI(), _ = fe - (m - d);
17732
+ var m = zI(), _ = he - (m - d);
17733
17733
  if (d = m, _ > 0) {
17734
17734
  if (++c >= se)
17735
17735
  return arguments[0];
@@ -18201,7 +18201,7 @@ Od.exports;
18201
18201
  if (Qn(i))
18202
18202
  return Ru(i) ? Er(i) : i.length;
18203
18203
  var c = In(i);
18204
- return c == Xe || c == qt ? i.size : _h(i).length;
18204
+ return c == Ze || c == qt ? i.size : _h(i).length;
18205
18205
  }
18206
18206
  function nP(i, c, d) {
18207
18207
  var m = tt(i) ? qa : qR;
@@ -18444,7 +18444,7 @@ Od.exports;
18444
18444
  if (Qn(i) && (tt(i) || typeof i == "string" || typeof i.splice == "function" || vi(i) || ss(i) || la(i)))
18445
18445
  return !i.length;
18446
18446
  var c = In(i);
18447
- if (c == Xe || c == qt)
18447
+ if (c == Ze || c == qt)
18448
18448
  return !i.size;
18449
18449
  if (kc(i))
18450
18450
  return !_h(i).length;
@@ -18553,7 +18553,7 @@ Od.exports;
18553
18553
  return Ru(i) ? zr(i) : Jn(i);
18554
18554
  if (wc && i[wc])
18555
18555
  return ta(i[wc]());
18556
- var c = In(i), d = c == Xe ? Xa : c == qt ? Uo : cs;
18556
+ var c = In(i), d = c == Ze ? Xa : c == qt ? Uo : cs;
18557
18557
  return d(i);
18558
18558
  }
18559
18559
  function Yo(i) {
@@ -18780,7 +18780,7 @@ Od.exports;
18780
18780
  return Zh(Et(i).toLowerCase());
18781
18781
  }
18782
18782
  function Vw(i) {
18783
- return i = Et(i), i && i.replace(Qf, pe).replace(Qi, "");
18783
+ return i = Et(i), i && i.replace(Qf, de).replace(Qi, "");
18784
18784
  }
18785
18785
  function AO(i, c, d) {
18786
18786
  i = Et(i), c = fr(c);
@@ -19883,7 +19883,7 @@ const zt = (t) => {
19883
19883
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
19884
19884
  b3.test(t) && !x3.test(t)
19885
19885
  ), dT = () => !1, O3 = (t) => _3.test(t), M3 = (t) => S3.test(t), D3 = () => {
19886
- const t = zt("colors"), e = zt("spacing"), n = zt("blur"), r = zt("brightness"), o = zt("borderColor"), a = zt("borderRadius"), s = zt("borderSpacing"), l = zt("borderWidth"), u = zt("contrast"), f = zt("grayscale"), p = zt("hueRotate"), g = zt("invert"), w = zt("gap"), y = zt("gradientColorStops"), x = zt("gradientColorStopPositions"), v = zt("inset"), b = zt("margin"), E = zt("opacity"), T = zt("padding"), k = zt("saturate"), N = zt("scale"), S = zt("sepia"), D = zt("skew"), H = zt("space"), K = zt("translate"), ee = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], ue = () => ["auto", it, e], se = () => [it, e], fe = () => ["", Xo, wi], q = () => ["auto", Ss, it], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], X = () => ["", "0", it], $ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], te = () => [Ss, it];
19886
+ const t = zt("colors"), e = zt("spacing"), n = zt("blur"), r = zt("brightness"), o = zt("borderColor"), a = zt("borderRadius"), s = zt("borderSpacing"), l = zt("borderWidth"), u = zt("contrast"), f = zt("grayscale"), p = zt("hueRotate"), g = zt("invert"), w = zt("gap"), y = zt("gradientColorStops"), x = zt("gradientColorStopPositions"), v = zt("inset"), b = zt("margin"), E = zt("opacity"), T = zt("padding"), k = zt("saturate"), N = zt("scale"), S = zt("sepia"), D = zt("skew"), H = zt("space"), K = zt("translate"), ee = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], ue = () => ["auto", it, e], se = () => [it, e], he = () => ["", Xo, wi], q = () => ["auto", Ss, it], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], X = () => ["", "0", it], $ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], te = () => [Ss, it];
19887
19887
  return {
19888
19888
  cacheSize: 500,
19889
19889
  separator: ":",
@@ -19895,7 +19895,7 @@ const zt = (t) => {
19895
19895
  borderColor: [t],
19896
19896
  borderRadius: ["none", "", "full", Ci, it],
19897
19897
  borderSpacing: se(),
19898
- borderWidth: fe(),
19898
+ borderWidth: he(),
19899
19899
  contrast: te(),
19900
19900
  grayscale: X(),
19901
19901
  hueRotate: te(),
@@ -21215,7 +21215,7 @@ const zt = (t) => {
21215
21215
  * @see https://tailwindcss.com/docs/ring-width
21216
21216
  */
21217
21217
  "ring-w": [{
21218
- ring: fe()
21218
+ ring: he()
21219
21219
  }],
21220
21220
  /**
21221
21221
  * Ring Width Inset
@@ -22796,7 +22796,7 @@ var i5 = C.forwardRef((t, e) => {
22796
22796
  if (K.target === K.currentTarget && ee && !E) {
22797
22797
  const W = new CustomEvent(Mp, e5);
22798
22798
  if (K.currentTarget.dispatchEvent(W), !W.defaultPrevented) {
22799
- const ue = N().filter((Y) => Y.focusable), se = ue.find((Y) => Y.active), fe = ue.find((Y) => Y.id === v), Z = [se, fe, ...ue].filter(
22799
+ const ue = N().filter((Y) => Y.focusable), se = ue.find((Y) => Y.active), he = ue.find((Y) => Y.id === v), Z = [se, he, ...ue].filter(
22800
22800
  Boolean
22801
22801
  ).map((Y) => Y.ref.current);
22802
22802
  RT(Z, p);
@@ -23284,8 +23284,8 @@ var GT = "ToastViewport", T5 = ["F8"], $g = "toast.viewportPause", Hg = "toast.v
23284
23284
  (S = f.current) == null || S.focus();
23285
23285
  return;
23286
23286
  }
23287
- const se = v({ tabbingDirection: ee ? "backwards" : "forwards" }), fe = se.findIndex((q) => q === K);
23288
- Dp(se.slice(fe + 1)) ? T.preventDefault() : ee ? (D = f.current) == null || D.focus() : (H = p.current) == null || H.focus();
23287
+ const se = v({ tabbingDirection: ee ? "backwards" : "forwards" }), he = se.findIndex((q) => q === K);
23288
+ Dp(se.slice(he + 1)) ? T.preventDefault() : ee ? (D = f.current) == null || D.focus() : (H = p.current) == null || H.focus();
23289
23289
  }
23290
23290
  };
23291
23291
  return b.addEventListener("keydown", E), () => b.removeEventListener("keydown", E);
@@ -23431,16 +23431,16 @@ var [N5, P5] = VT(bl, {
23431
23431
  }, [v.viewport, S, u, f, se]), C.useEffect(() => {
23432
23432
  a && !v.isClosePausedRef.current && se(S);
23433
23433
  }, [a, S, v.isClosePausedRef, se]), C.useEffect(() => (ee(), () => W()), [ee, W]);
23434
- const fe = C.useMemo(() => b ? t0(b) : null, [b]);
23434
+ const he = C.useMemo(() => b ? t0(b) : null, [b]);
23435
23435
  return v.viewport ? /* @__PURE__ */ P(wt, { children: [
23436
- fe && /* @__PURE__ */ h(
23436
+ he && /* @__PURE__ */ h(
23437
23437
  M5,
23438
23438
  {
23439
23439
  __scopeToast: n,
23440
23440
  role: "status",
23441
23441
  "aria-live": r === "foreground" ? "assertive" : "polite",
23442
23442
  "aria-atomic": !0,
23443
- children: fe
23443
+ children: he
23444
23444
  }
23445
23445
  ),
23446
23446
  /* @__PURE__ */ h(N5, { scope: n, onClose: ue, children: Ns.createPortal(
@@ -23788,7 +23788,19 @@ function h0() {
23788
23788
  return /* @__PURE__ */ P(l0, { ...a, className: `s3-explr-ui-toast ${a.className || ""}`, children: [
23789
23789
  /* @__PURE__ */ P("div", { className: "s3-explr-ui-toast-content grid gap-1", children: [
23790
23790
  n && /* @__PURE__ */ h(d0, { className: "s3-explr-ui-toast-title", children: n }),
23791
- r && /* @__PURE__ */ h(f0, { className: "s3-explr-ui-toast-description", children: r })
23791
+ r && /* @__PURE__ */ h(
23792
+ f0,
23793
+ {
23794
+ className: "s3-explr-ui-toast-description",
23795
+ style: {
23796
+ wordBreak: "break-all",
23797
+ whiteSpace: "pre-line",
23798
+ maxWidth: 400,
23799
+ overflowWrap: "break-word"
23800
+ },
23801
+ children: r
23802
+ }
23803
+ )
23792
23804
  ] }),
23793
23805
  o && /* @__PURE__ */ h("div", { className: "s3-explr-ui-toast-action", children: o }),
23794
23806
  /* @__PURE__ */ h(u0, { className: "s3-explr-ui-toast-close" })
@@ -24080,7 +24092,7 @@ const o4 = (t) => ({
24080
24092
  }, y = Lv(o), x = Dv(y), v = await s.getDimensions(f), b = y === "y", E = b ? "top" : "left", T = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", N = a.reference[x] + a.reference[y] - w[y] - a.floating[x], S = w[y] - a.reference[y], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
24081
24093
  let H = D ? D[k] : 0;
24082
24094
  (!H || !await (s.isElement == null ? void 0 : s.isElement(D))) && (H = l.floating[k] || a.floating[x]);
24083
- const K = N / 2 - S / 2, ee = H / 2 - v[x] / 2 - 1, W = Fi(g[E], ee), ue = Fi(g[T], ee), se = W, fe = H - v[x] - ue, q = H / 2 - v[x] / 2 + K, Z = Bg(se, q, fe), Y = !u.arrow && Us(o) != null && q !== Z && a.reference[x] / 2 - (q < se ? W : ue) - v[x] / 2 < 0, oe = Y ? q < se ? q - se : q - fe : 0;
24095
+ const K = N / 2 - S / 2, ee = H / 2 - v[x] / 2 - 1, W = Fi(g[E], ee), ue = Fi(g[T], ee), se = W, he = H - v[x] - ue, q = H / 2 - v[x] / 2 + K, Z = Bg(se, q, he), Y = !u.arrow && Us(o) != null && q !== Z && a.reference[x] / 2 - (q < se ? W : ue) - v[x] / 2 < 0, oe = Y ? q < se ? q - se : q - he : 0;
24084
24096
  return {
24085
24097
  [y]: w[y] + oe,
24086
24098
  data: {
@@ -24132,8 +24144,8 @@ const o4 = (t) => ({
24132
24144
  var ue, se;
24133
24145
  const Z = (((ue = a.flip) == null ? void 0 : ue.index) || 0) + 1, Y = H[Z];
24134
24146
  if (Y) {
24135
- var fe;
24136
- const Q = g === "alignment" ? T !== oi(Y) : !1, X = ((fe = W[0]) == null ? void 0 : fe.overflows[0]) > 0;
24147
+ var he;
24148
+ const Q = g === "alignment" ? T !== oi(Y) : !1, X = ((he = W[0]) == null ? void 0 : he.overflows[0]) > 0;
24137
24149
  if (!Q || X)
24138
24150
  return {
24139
24151
  data: {
@@ -24401,8 +24413,8 @@ const c4 = function(t) {
24401
24413
  const T = v - p.top - p.bottom, k = x - p.left - p.right, N = Fi(v - p[b], T), S = Fi(x - p[E], k), D = !e.middlewareData.shift;
24402
24414
  let H = N, K = S;
24403
24415
  if ((n = e.middlewareData.shift) != null && n.enabled.x && (K = k), (r = e.middlewareData.shift) != null && r.enabled.y && (H = T), D && !w) {
24404
- const W = Cr(p.left, 0), ue = Cr(p.right, 0), se = Cr(p.top, 0), fe = Cr(p.bottom, 0);
24405
- y ? K = x - 2 * (W !== 0 || ue !== 0 ? W + ue : Cr(p.left, p.right)) : H = v - 2 * (se !== 0 || fe !== 0 ? se + fe : Cr(p.top, p.bottom));
24416
+ const W = Cr(p.left, 0), ue = Cr(p.right, 0), se = Cr(p.top, 0), he = Cr(p.bottom, 0);
24417
+ y ? K = x - 2 * (W !== 0 || ue !== 0 ? W + ue : Cr(p.left, p.right)) : H = v - 2 * (se !== 0 || he !== 0 ? se + he : Cr(p.top, p.bottom));
24406
24418
  }
24407
24419
  await u({
24408
24420
  ...e,
@@ -24981,7 +24993,7 @@ function E0(t) {
24981
24993
  Q !== D.current && (D.current = Q, v(Q));
24982
24994
  }, []), k = C.useCallback((Q) => {
24983
24995
  Q !== H.current && (H.current = Q, E(Q));
24984
- }, []), N = a || x, S = s || b, D = C.useRef(null), H = C.useRef(null), K = C.useRef(p), ee = u != null, W = Hp(u), ue = Hp(o), se = Hp(f), fe = C.useCallback(() => {
24996
+ }, []), N = a || x, S = s || b, D = C.useRef(null), H = C.useRef(null), K = C.useRef(p), ee = u != null, W = Hp(u), ue = Hp(o), se = Hp(f), he = C.useCallback(() => {
24985
24997
  if (!D.current || !H.current)
24986
24998
  return;
24987
24999
  const Q = {
@@ -25015,10 +25027,10 @@ function E0(t) {
25015
25027
  }), []), dd(() => {
25016
25028
  if (N && (D.current = N), S && (H.current = S), N && S) {
25017
25029
  if (W.current)
25018
- return W.current(N, S, fe);
25019
- fe();
25030
+ return W.current(N, S, he);
25031
+ he();
25020
25032
  }
25021
- }, [N, S, fe, W, ee]);
25033
+ }, [N, S, he, W, ee]);
25022
25034
  const Z = C.useMemo(() => ({
25023
25035
  reference: D,
25024
25036
  floating: H,
@@ -25050,11 +25062,11 @@ function E0(t) {
25050
25062
  }, [n, l, Y.floating, p.x, p.y]);
25051
25063
  return C.useMemo(() => ({
25052
25064
  ...p,
25053
- update: fe,
25065
+ update: he,
25054
25066
  refs: Z,
25055
25067
  elements: Y,
25056
25068
  floatingStyles: oe
25057
- }), [p, fe, Z, Y, oe]);
25069
+ }), [p, he, Z, Y, oe]);
25058
25070
  }
25059
25071
  const L4 = (t) => {
25060
25072
  function e(n) {
@@ -25147,7 +25159,7 @@ var zv = "PopperContent", [U4, B4] = M0(zv), U0 = C.forwardRef(
25147
25159
  updatePositionStrategy: y = "optimized",
25148
25160
  onPlaced: x,
25149
25161
  ...v
25150
- } = t, b = L0(zv, n), [E, T] = C.useState(null), k = at(e, (Ke) => T(Ke)), [N, S] = C.useState(null), D = Ev(N), H = (D == null ? void 0 : D.width) ?? 0, K = (D == null ? void 0 : D.height) ?? 0, ee = r + (a !== "center" ? "-" + a : ""), W = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, ue = Array.isArray(f) ? f : [f], se = ue.length > 0, fe = {
25162
+ } = t, b = L0(zv, n), [E, T] = C.useState(null), k = at(e, (Ke) => T(Ke)), [N, S] = C.useState(null), D = Ev(N), H = (D == null ? void 0 : D.width) ?? 0, K = (D == null ? void 0 : D.height) ?? 0, ee = r + (a !== "center" ? "-" + a : ""), W = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, ue = Array.isArray(f) ? f : [f], se = ue.length > 0, he = {
25151
25163
  padding: W,
25152
25164
  boundary: ue.filter(V4),
25153
25165
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -25168,19 +25180,19 @@ var zv = "PopperContent", [U4, B4] = M0(zv), U0 = C.forwardRef(
25168
25180
  mainAxis: !0,
25169
25181
  crossAxis: !1,
25170
25182
  limiter: g === "partial" ? I0() : void 0,
25171
- ...fe
25183
+ ...he
25172
25184
  }),
25173
- u && R0({ ...fe }),
25185
+ u && R0({ ...he }),
25174
25186
  k0({
25175
- ...fe,
25176
- apply: ({ elements: Ke, rects: Xe, availableWidth: xt, availableHeight: Qt }) => {
25177
- const { width: _t, height: on } = Xe.reference, Gt = Ke.floating.style;
25187
+ ...he,
25188
+ apply: ({ elements: Ke, rects: Ze, availableWidth: xt, availableHeight: Qt }) => {
25189
+ const { width: _t, height: on } = Ze.reference, Gt = Ke.floating.style;
25178
25190
  Gt.setProperty("--radix-popper-available-width", `${xt}px`), Gt.setProperty("--radix-popper-available-height", `${Qt}px`), Gt.setProperty("--radix-popper-anchor-width", `${_t}px`), Gt.setProperty("--radix-popper-anchor-height", `${on}px`);
25179
25191
  }
25180
25192
  }),
25181
25193
  N && P0({ element: N, padding: l }),
25182
25194
  K4({ arrowWidth: H, arrowHeight: K }),
25183
- w && N0({ strategy: "referenceHidden", ...fe })
25195
+ w && N0({ strategy: "referenceHidden", ...he })
25184
25196
  ]
25185
25197
  }), [X, $] = V0(Y), te = _n(x);
25186
25198
  cn(() => {
@@ -26231,17 +26243,17 @@ function PV() {
26231
26243
  var Ke = ne.$$typeof;
26232
26244
  switch (Ke) {
26233
26245
  case e:
26234
- var Xe = ne.type;
26235
- switch (Xe) {
26246
+ var Ze = ne.type;
26247
+ switch (Ze) {
26236
26248
  case u:
26237
26249
  case f:
26238
26250
  case r:
26239
26251
  case a:
26240
26252
  case o:
26241
26253
  case g:
26242
- return Xe;
26254
+ return Ze;
26243
26255
  default:
26244
- var xt = Xe && Xe.$$typeof;
26256
+ var xt = Ze && Ze.$$typeof;
26245
26257
  switch (xt) {
26246
26258
  case l:
26247
26259
  case p:
@@ -26258,7 +26270,7 @@ function PV() {
26258
26270
  }
26259
26271
  }
26260
26272
  }
26261
- var S = u, D = f, H = l, K = s, ee = e, W = p, ue = r, se = x, fe = y, q = n, Z = a, Y = o, oe = g, Q = !1;
26273
+ var S = u, D = f, H = l, K = s, ee = e, W = p, ue = r, se = x, he = y, q = n, Z = a, Y = o, oe = g, Q = !1;
26262
26274
  function X(ne) {
26263
26275
  return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), $(ne) || N(ne) === u;
26264
26276
  }
@@ -26298,7 +26310,7 @@ function PV() {
26298
26310
  function Ne(ne) {
26299
26311
  return N(ne) === g;
26300
26312
  }
26301
- At.AsyncMode = S, At.ConcurrentMode = D, At.ContextConsumer = H, At.ContextProvider = K, At.Element = ee, At.ForwardRef = W, At.Fragment = ue, At.Lazy = se, At.Memo = fe, At.Portal = q, At.Profiler = Z, At.StrictMode = Y, At.Suspense = oe, At.isAsyncMode = X, At.isConcurrentMode = $, At.isContextConsumer = te, At.isContextProvider = Se, At.isElement = ke, At.isForwardRef = _e, At.isFragment = Pe, At.isLazy = Ae, At.isMemo = z, At.isPortal = ce, At.isProfiler = Ie, At.isStrictMode = be, At.isSuspense = Ne, At.isValidElementType = k, At.typeOf = N;
26313
+ At.AsyncMode = S, At.ConcurrentMode = D, At.ContextConsumer = H, At.ContextProvider = K, At.Element = ee, At.ForwardRef = W, At.Fragment = ue, At.Lazy = se, At.Memo = he, At.Portal = q, At.Profiler = Z, At.StrictMode = Y, At.Suspense = oe, At.isAsyncMode = X, At.isConcurrentMode = $, At.isContextConsumer = te, At.isContextProvider = Se, At.isElement = ke, At.isForwardRef = _e, At.isFragment = Pe, At.isLazy = Ae, At.isMemo = z, At.isPortal = ce, At.isProfiler = Ie, At.isStrictMode = be, At.isSuspense = Ne, At.isValidElementType = k, At.typeOf = N;
26302
26314
  }()), At;
26303
26315
  }
26304
26316
  var Ab;
@@ -26459,7 +26471,7 @@ function DV() {
26459
26471
  oneOf: H,
26460
26472
  oneOfType: ee,
26461
26473
  shape: se,
26462
- exact: fe
26474
+ exact: he
26463
26475
  };
26464
26476
  function x($, te) {
26465
26477
  return $ === te ? $ !== 0 || 1 / $ === 1 / te : $ !== $ && te !== te;
@@ -26642,7 +26654,7 @@ function DV() {
26642
26654
  }
26643
26655
  return b(te);
26644
26656
  }
26645
- function fe($) {
26657
+ function he($) {
26646
26658
  function te(Se, ke, _e, Pe, Ae) {
26647
26659
  var z = Se[ke], ce = Y(z);
26648
26660
  if (ce !== "object")
@@ -28664,7 +28676,7 @@ function wA() {
28664
28676
  return mK(n);
28665
28677
  }, [n]), se = wr(function() {
28666
28678
  return typeof b == "function" ? b : Kb;
28667
- }, [b]), fe = wr(function() {
28679
+ }, [b]), he = wr(function() {
28668
28680
  return typeof v == "function" ? v : Kb;
28669
28681
  }, [v]), q = vn(null), Z = vn(null), Y = B1(PK, Qg), oe = qp(Y, 2), Q = oe[0], X = oe[1], $ = Q.isFocused, te = Q.isFileDialogActive, Se = vn(typeof window < "u" && window.isSecureContext && E && gK()), ke = function() {
28670
28682
  !Se.current && te && setTimeout(function() {
@@ -28672,7 +28684,7 @@ function wA() {
28672
28684
  var ae = Z.current.files;
28673
28685
  ae.length || (X({
28674
28686
  type: "closeDialog"
28675
- }), fe());
28687
+ }), he());
28676
28688
  }
28677
28689
  }, 300);
28678
28690
  };
@@ -28680,7 +28692,7 @@ function wA() {
28680
28692
  return window.addEventListener("focus", ke, !1), function() {
28681
28693
  window.removeEventListener("focus", ke, !1);
28682
28694
  };
28683
- }, [Z, te, fe, Se]);
28695
+ }, [Z, te, he, Se]);
28684
28696
  var _e = vn([]), Pe = function(ae) {
28685
28697
  q.current && q.current.contains(ae.target) || (ae.preventDefault(), _e.current = []);
28686
28698
  };
@@ -28697,7 +28709,7 @@ function wA() {
28697
28709
  }, [K]), z = pn(function(U) {
28698
28710
  U.preventDefault(), U.persist(), Dn(U), _e.current = [].concat(SK(_e.current), [U.target]), Qu(U) && Promise.resolve(o(U)).then(function(ae) {
28699
28711
  if (!(Bd(U) && !H)) {
28700
- var we = ae.length, he = we > 0 && dK({
28712
+ var we = ae.length, pe = we > 0 && dK({
28701
28713
  files: ae,
28702
28714
  accept: W,
28703
28715
  minSize: s,
@@ -28705,9 +28717,9 @@ function wA() {
28705
28717
  multiple: l,
28706
28718
  maxFiles: u,
28707
28719
  validator: ee
28708
- }), Te = we > 0 && !he;
28720
+ }), Te = we > 0 && !pe;
28709
28721
  X({
28710
- isDragAccept: he,
28722
+ isDragAccept: pe,
28711
28723
  isDragReject: Te,
28712
28724
  isDragActive: !0,
28713
28725
  type: "setDraggedFiles"
@@ -28727,8 +28739,8 @@ function wA() {
28727
28739
  return ae && g && g(U), !1;
28728
28740
  }, [g, H]), Ie = pn(function(U) {
28729
28741
  U.preventDefault(), U.persist(), Dn(U);
28730
- var ae = _e.current.filter(function(he) {
28731
- return q.current && q.current.contains(he);
28742
+ var ae = _e.current.filter(function(pe) {
28743
+ return q.current && q.current.contains(pe);
28732
28744
  }), we = ae.indexOf(U.target);
28733
28745
  we !== -1 && ae.splice(we, 1), _e.current = ae, !(ae.length > 0) && (X({
28734
28746
  type: "setDraggedFiles",
@@ -28737,14 +28749,14 @@ function wA() {
28737
28749
  isDragReject: !1
28738
28750
  }), Qu(U) && p && p(U));
28739
28751
  }, [q, p, H]), be = pn(function(U, ae) {
28740
- var we = [], he = [];
28752
+ var we = [], pe = [];
28741
28753
  U.forEach(function(Te) {
28742
- var Ze = hA(Te, W), ht = qp(Ze, 2), St = ht[0], uo = ht[1], Xt = pA(Te, s, a), yn = qp(Xt, 2), Mr = yn[0], Yt = yn[1], dr = ee ? ee(Te) : null;
28754
+ var Xe = hA(Te, W), ht = qp(Xe, 2), St = ht[0], uo = ht[1], Xt = pA(Te, s, a), yn = qp(Xt, 2), Mr = yn[0], Yt = yn[1], dr = ee ? ee(Te) : null;
28743
28755
  if (St && Mr && !dr)
28744
28756
  we.push(Te);
28745
28757
  else {
28746
28758
  var Dr = [uo, Yt];
28747
- dr && (Dr = Dr.concat(dr)), he.push({
28759
+ dr && (Dr = Dr.concat(dr)), pe.push({
28748
28760
  file: Te,
28749
28761
  errors: Dr.filter(function(Bi) {
28750
28762
  return Bi;
@@ -28752,16 +28764,16 @@ function wA() {
28752
28764
  });
28753
28765
  }
28754
28766
  }), (!l && we.length > 1 || l && u >= 1 && we.length > u) && (we.forEach(function(Te) {
28755
- he.push({
28767
+ pe.push({
28756
28768
  file: Te,
28757
28769
  errors: [uK]
28758
28770
  });
28759
28771
  }), we.splice(0)), X({
28760
28772
  acceptedFiles: we,
28761
- fileRejections: he,
28762
- isDragReject: he.length > 0,
28773
+ fileRejections: pe,
28774
+ isDragReject: pe.length > 0,
28763
28775
  type: "setFiles"
28764
- }), w && w(we, he, ae), he.length > 0 && x && x(he, ae), we.length > 0 && y && y(we, ae);
28776
+ }), w && w(we, pe, ae), pe.length > 0 && x && x(pe, ae), we.length > 0 && y && y(we, ae);
28765
28777
  }, [X, l, W, s, a, u, w, y, x, ee]), Ne = pn(function(U) {
28766
28778
  U.preventDefault(), U.persist(), Dn(U), _e.current = [], Qu(U) && Promise.resolve(o(U)).then(function(ae) {
28767
28779
  Bd(U) && !H || be(ae, U);
@@ -28786,7 +28798,7 @@ function wA() {
28786
28798
  type: "closeDialog"
28787
28799
  });
28788
28800
  }).catch(function(ae) {
28789
- yK(ae) ? (fe(ae), X({
28801
+ yK(ae) ? (he(ae), X({
28790
28802
  type: "closeDialog"
28791
28803
  })) : wK(ae) ? (Se.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : Ae(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : Ae(ae);
28792
28804
  });
@@ -28795,9 +28807,9 @@ function wA() {
28795
28807
  Z.current && (X({
28796
28808
  type: "openDialog"
28797
28809
  }), se(), Z.current.value = null, Z.current.click());
28798
- }, [X, se, fe, E, be, Ae, ue, l]), Ke = pn(function(U) {
28810
+ }, [X, se, he, E, be, Ae, ue, l]), Ke = pn(function(U) {
28799
28811
  !q.current || !q.current.isEqualNode(U.target) || (U.key === " " || U.key === "Enter" || U.keyCode === 32 || U.keyCode === 13) && (U.preventDefault(), ne());
28800
- }, [q, ne]), Xe = pn(function() {
28812
+ }, [q, ne]), Ze = pn(function() {
28801
28813
  X({
28802
28814
  type: "focus"
28803
28815
  });
@@ -28817,26 +28829,26 @@ function wA() {
28817
28829
  H && ae.stopPropagation();
28818
28830
  }, qt = wr(function() {
28819
28831
  return function() {
28820
- var U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ae = U.refKey, we = ae === void 0 ? "ref" : ae, he = U.role, Te = U.onKeyDown, Ze = U.onFocus, ht = U.onBlur, St = U.onClick, uo = U.onDragEnter, Xt = U.onDragOver, yn = U.onDragLeave, Mr = U.onDrop, Yt = zd(U, xK);
28832
+ var U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ae = U.refKey, we = ae === void 0 ? "ref" : ae, pe = U.role, Te = U.onKeyDown, Xe = U.onFocus, ht = U.onBlur, St = U.onClick, uo = U.onDragEnter, Xt = U.onDragOver, yn = U.onDragLeave, Mr = U.onDrop, Yt = zd(U, xK);
28821
28833
  return Wt(Wt(Jg({
28822
28834
  onKeyDown: on(bo(Te, Ke)),
28823
- onFocus: on(bo(Ze, Xe)),
28835
+ onFocus: on(bo(Xe, Ze)),
28824
28836
  onBlur: on(bo(ht, xt)),
28825
28837
  onClick: _t(bo(St, Qt)),
28826
28838
  onDragEnter: Gt(bo(uo, z)),
28827
28839
  onDragOver: Gt(bo(Xt, ce)),
28828
28840
  onDragLeave: Gt(bo(yn, Ie)),
28829
28841
  onDrop: Gt(bo(Mr, Ne)),
28830
- role: typeof he == "string" && he !== "" ? he : "presentation"
28842
+ role: typeof pe == "string" && pe !== "" ? pe : "presentation"
28831
28843
  }, we, q), !r && !S ? {
28832
28844
  tabIndex: 0
28833
28845
  } : {}), Yt);
28834
28846
  };
28835
- }, [q, Ke, Xe, xt, Qt, z, ce, Ie, Ne, S, D, r]), L = pn(function(U) {
28847
+ }, [q, Ke, Ze, xt, Qt, z, ce, Ie, Ne, S, D, r]), L = pn(function(U) {
28836
28848
  U.stopPropagation();
28837
28849
  }, []), J = wr(function() {
28838
28850
  return function() {
28839
- var U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ae = U.refKey, we = ae === void 0 ? "ref" : ae, he = U.onChange, Te = U.onClick, Ze = zd(U, _K), ht = Jg({
28851
+ var U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ae = U.refKey, we = ae === void 0 ? "ref" : ae, pe = U.onChange, Te = U.onClick, Xe = zd(U, _K), ht = Jg({
28840
28852
  accept: W,
28841
28853
  multiple: l,
28842
28854
  type: "file",
@@ -28852,11 +28864,11 @@ function wA() {
28852
28864
  width: "1px",
28853
28865
  whiteSpace: "nowrap"
28854
28866
  },
28855
- onChange: _t(bo(he, Ne)),
28867
+ onChange: _t(bo(pe, Ne)),
28856
28868
  onClick: _t(bo(Te, L)),
28857
28869
  tabIndex: -1
28858
28870
  }, we, Z);
28859
- return Wt(Wt({}, ht), Ze);
28871
+ return Wt(Wt({}, ht), Xe);
28860
28872
  };
28861
28873
  }, [Z, n, l, Ne, r]);
28862
28874
  return Wt(Wt({}, Q), {}, {
@@ -29478,7 +29490,7 @@ var qv = "PopperContent", [oG, iG] = AA(qv), OA = C.forwardRef(
29478
29490
  updatePositionStrategy: y = "optimized",
29479
29491
  onPlaced: x,
29480
29492
  ...v
29481
- } = t, b = RA(qv, n), [E, T] = C.useState(null), k = at(e, (Ke) => T(Ke)), [N, S] = C.useState(null), D = Ev(N), H = (D == null ? void 0 : D.width) ?? 0, K = (D == null ? void 0 : D.height) ?? 0, ee = r + (a !== "center" ? "-" + a : ""), W = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, ue = Array.isArray(f) ? f : [f], se = ue.length > 0, fe = {
29493
+ } = t, b = RA(qv, n), [E, T] = C.useState(null), k = at(e, (Ke) => T(Ke)), [N, S] = C.useState(null), D = Ev(N), H = (D == null ? void 0 : D.width) ?? 0, K = (D == null ? void 0 : D.height) ?? 0, ee = r + (a !== "center" ? "-" + a : ""), W = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, ue = Array.isArray(f) ? f : [f], se = ue.length > 0, he = {
29482
29494
  padding: W,
29483
29495
  boundary: ue.filter(sG),
29484
29496
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -29499,19 +29511,19 @@ var qv = "PopperContent", [oG, iG] = AA(qv), OA = C.forwardRef(
29499
29511
  mainAxis: !0,
29500
29512
  crossAxis: !1,
29501
29513
  limiter: g === "partial" ? I0() : void 0,
29502
- ...fe
29514
+ ...he
29503
29515
  }),
29504
- u && R0({ ...fe }),
29516
+ u && R0({ ...he }),
29505
29517
  k0({
29506
- ...fe,
29507
- apply: ({ elements: Ke, rects: Xe, availableWidth: xt, availableHeight: Qt }) => {
29508
- const { width: _t, height: on } = Xe.reference, Gt = Ke.floating.style;
29518
+ ...he,
29519
+ apply: ({ elements: Ke, rects: Ze, availableWidth: xt, availableHeight: Qt }) => {
29520
+ const { width: _t, height: on } = Ze.reference, Gt = Ke.floating.style;
29509
29521
  Gt.setProperty("--radix-popper-available-width", `${xt}px`), Gt.setProperty("--radix-popper-available-height", `${Qt}px`), Gt.setProperty("--radix-popper-anchor-width", `${_t}px`), Gt.setProperty("--radix-popper-anchor-height", `${on}px`);
29510
29522
  }
29511
29523
  }),
29512
29524
  N && P0({ element: N, padding: l }),
29513
29525
  cG({ arrowWidth: H, arrowHeight: K }),
29514
- w && N0({ strategy: "referenceHidden", ...fe })
29526
+ w && N0({ strategy: "referenceHidden", ...he })
29515
29527
  ]
29516
29528
  }), [X, $] = LA(Y), te = _n(x);
29517
29529
  cn(() => {
@@ -29727,7 +29739,7 @@ var yG = [" ", "Enter", "ArrowUp", "ArrowDown"], wG = [" ", "Enter"], Ra = "Sele
29727
29739
  defaultProp: l,
29728
29740
  onChange: u,
29729
29741
  caller: Ra
29730
- }), ue = C.useRef(null), se = b ? x || !!b.closest("form") : !0, [fe, q] = C.useState(/* @__PURE__ */ new Set()), Z = Array.from(fe).map((Y) => Y.props.value).join(";");
29742
+ }), ue = C.useRef(null), se = b ? x || !!b.closest("form") : !0, [he, q] = C.useState(/* @__PURE__ */ new Set()), Z = Array.from(he).map((Y) => Y.props.value).join(";");
29731
29743
  return /* @__PURE__ */ h(lG, { ...v, children: /* @__PURE__ */ P(
29732
29744
  bG,
29733
29745
  {
@@ -29778,7 +29790,7 @@ var yG = [" ", "Enter", "ArrowUp", "ArrowDown"], wG = [" ", "Enter"], Ra = "Sele
29778
29790
  form: x,
29779
29791
  children: [
29780
29792
  ee === void 0 ? /* @__PURE__ */ h("option", { value: "" }) : null,
29781
- Array.from(fe)
29793
+ Array.from(he)
29782
29794
  ]
29783
29795
  },
29784
29796
  Z
@@ -29898,7 +29910,7 @@ var jr = 10, [WA, Ui] = zs(ka), TG = "SelectContentImpl", AG = /* @__PURE__ */ L
29898
29910
  ...E
29899
29911
  } = t, T = Hi(ka, n), [k, N] = C.useState(null), [S, D] = C.useState(null), H = at(e, (z) => N(z)), [K, ee] = C.useState(null), [W, ue] = C.useState(
29900
29912
  null
29901
- ), se = jf(n), [fe, q] = C.useState(!1), Z = C.useRef(!1);
29913
+ ), se = jf(n), [he, q] = C.useState(!1), Z = C.useRef(!1);
29902
29914
  C.useEffect(() => {
29903
29915
  if (k) return VS(k);
29904
29916
  }, [k]), PS();
@@ -29914,8 +29926,8 @@ var jr = 10, [WA, Ui] = zs(ka), TG = "SelectContentImpl", AG = /* @__PURE__ */ L
29914
29926
  [Y, K, k]
29915
29927
  );
29916
29928
  C.useEffect(() => {
29917
- fe && oe();
29918
- }, [fe, oe]);
29929
+ he && oe();
29930
+ }, [he, oe]);
29919
29931
  const { onOpenChange: Q, triggerPointerDownPosRef: X } = T;
29920
29932
  C.useEffect(() => {
29921
29933
  if (k) {
@@ -29980,7 +29992,7 @@ var jr = 10, [WA, Ui] = zs(ka), TG = "SelectContentImpl", AG = /* @__PURE__ */ L
29980
29992
  focusSelectedItem: oe,
29981
29993
  selectedItemText: W,
29982
29994
  position: r,
29983
- isPositioned: fe,
29995
+ isPositioned: he,
29984
29996
  searchRef: $,
29985
29997
  children: /* @__PURE__ */ h(sv, { as: AG, allowPinchZoom: !0, children: /* @__PURE__ */ h(
29986
29998
  _A,
@@ -30050,7 +30062,7 @@ var IG = "SelectItemAlignedPosition", YA = C.forwardRef((t, e) => {
30050
30062
  if (a.trigger && a.valueNode && l && f && v && b && E) {
30051
30063
  const H = a.trigger.getBoundingClientRect(), K = f.getBoundingClientRect(), ee = a.valueNode.getBoundingClientRect(), W = E.getBoundingClientRect();
30052
30064
  if (a.dir !== "rtl") {
30053
- const Ne = W.left - K.left, ne = ee.left - Ne, Ke = H.left - ne, Xe = H.width + Ke, xt = Math.max(Xe, K.width), Qt = window.innerWidth - jr, _t = Gb(ne, [
30065
+ const Ne = W.left - K.left, ne = ee.left - Ne, Ke = H.left - ne, Ze = H.width + Ke, xt = Math.max(Ze, K.width), Qt = window.innerWidth - jr, _t = Gb(ne, [
30054
30066
  jr,
30055
30067
  // Prevents the content from going off the starting edge of the
30056
30068
  // viewport. It may still go off the ending edge, but this can be
@@ -30059,15 +30071,15 @@ var IG = "SelectItemAlignedPosition", YA = C.forwardRef((t, e) => {
30059
30071
  // https://github.com/radix-ui/primitives/issues/2049
30060
30072
  Math.max(jr, Qt - xt)
30061
30073
  ]);
30062
- l.style.minWidth = Xe + "px", l.style.left = _t + "px";
30074
+ l.style.minWidth = Ze + "px", l.style.left = _t + "px";
30063
30075
  } else {
30064
- const Ne = K.right - W.right, ne = window.innerWidth - ee.right - Ne, Ke = window.innerWidth - H.right - ne, Xe = H.width + Ke, xt = Math.max(Xe, K.width), Qt = window.innerWidth - jr, _t = Gb(ne, [
30076
+ const Ne = K.right - W.right, ne = window.innerWidth - ee.right - Ne, Ke = window.innerWidth - H.right - ne, Ze = H.width + Ke, xt = Math.max(Ze, K.width), Qt = window.innerWidth - jr, _t = Gb(ne, [
30065
30077
  jr,
30066
30078
  Math.max(jr, Qt - xt)
30067
30079
  ]);
30068
- l.style.minWidth = Xe + "px", l.style.right = _t + "px";
30080
+ l.style.minWidth = Ze + "px", l.style.right = _t + "px";
30069
30081
  }
30070
- const ue = w(), se = window.innerHeight - jr * 2, fe = v.scrollHeight, q = window.getComputedStyle(f), Z = parseInt(q.borderTopWidth, 10), Y = parseInt(q.paddingTop, 10), oe = parseInt(q.borderBottomWidth, 10), Q = parseInt(q.paddingBottom, 10), X = Z + Y + fe + Q + oe, $ = Math.min(b.offsetHeight * 5, X), te = window.getComputedStyle(v), Se = parseInt(te.paddingTop, 10), ke = parseInt(te.paddingBottom, 10), _e = H.top + H.height / 2 - jr, Pe = se - _e, Ae = b.offsetHeight / 2, z = b.offsetTop + Ae, ce = Z + Y + z, Ie = X - ce;
30082
+ const ue = w(), se = window.innerHeight - jr * 2, he = v.scrollHeight, q = window.getComputedStyle(f), Z = parseInt(q.borderTopWidth, 10), Y = parseInt(q.paddingTop, 10), oe = parseInt(q.borderBottomWidth, 10), Q = parseInt(q.paddingBottom, 10), X = Z + Y + he + Q + oe, $ = Math.min(b.offsetHeight * 5, X), te = window.getComputedStyle(v), Se = parseInt(te.paddingTop, 10), ke = parseInt(te.paddingBottom, 10), _e = H.top + H.height / 2 - jr, Pe = se - _e, Ae = b.offsetHeight / 2, z = b.offsetTop + Ae, ce = Z + Y + z, Ie = X - ce;
30071
30083
  if (ce <= _e) {
30072
30084
  const Ne = ue.length > 0 && b === ue[ue.length - 1].ref.current;
30073
30085
  l.style.bottom = "0px";
@@ -30075,8 +30087,8 @@ var IG = "SelectItemAlignedPosition", YA = C.forwardRef((t, e) => {
30075
30087
  Pe,
30076
30088
  Ae + // viewport might have padding bottom, include it to avoid a scrollable viewport
30077
30089
  (Ne ? ke : 0) + ne + oe
30078
- ), Xe = ce + Ke;
30079
- l.style.height = Xe + "px";
30090
+ ), Ze = ce + Ke;
30091
+ l.style.height = Ze + "px";
30080
30092
  } else {
30081
30093
  const Ne = ue.length > 0 && b === ue[0].ref.current;
30082
30094
  l.style.top = "0px";
@@ -30602,10 +30614,10 @@ function JG({
30602
30614
  loadingGrandted: W,
30603
30615
  setSharedGroups: ue,
30604
30616
  setSharedUsers: se
30605
- } = RV(r, o), fe = Aa(), q = n ? n.key : "", Z = k.filter(
30617
+ } = RV(r, o), he = Aa(), q = n ? n.key : "", Z = k.filter(
30606
30618
  (z) => {
30607
30619
  var ce;
30608
- return (fe == null ? void 0 : fe.id) !== z.id && (z.username.toLowerCase().includes(l.toLowerCase()) || ((ce = z.email) == null ? void 0 : ce.toLowerCase().includes(l.toLowerCase())));
30620
+ return (he == null ? void 0 : he.id) !== z.id && (z.username.toLowerCase().includes(l.toLowerCase()) || ((ce = z.email) == null ? void 0 : ce.toLowerCase().includes(l.toLowerCase())));
30609
30621
  }
30610
30622
  ), Y = N.filter(
30611
30623
  (z) => z.groupname.toLowerCase().includes(f.toLowerCase())
@@ -30637,7 +30649,7 @@ function JG({
30637
30649
  path: n.key + n.name,
30638
30650
  permissions: v,
30639
30651
  userId: z,
30640
- grandtedBy: fe == null ? void 0 : fe.id
30652
+ grandtedBy: he == null ? void 0 : he.id
30641
30653
  };
30642
30654
  return [...ce, Ne];
30643
30655
  });
@@ -30652,7 +30664,7 @@ function JG({
30652
30664
  permissions: v,
30653
30665
  groupname: ce,
30654
30666
  groupId: z.id,
30655
- grandtedBy: fe == null ? void 0 : fe.id,
30667
+ grandtedBy: he == null ? void 0 : he.id,
30656
30668
  users: z.users
30657
30669
  };
30658
30670
  return [...Ie, ne];
@@ -30660,12 +30672,12 @@ function JG({
30660
30672
  }, _e = async (z, ce, Ie) => {
30661
30673
  const be = { ...z, permissions: ce };
30662
30674
  T((Ne) => {
30663
- const ne = Ne.map((Xe) => Xe.id === be.id ? be : Xe);
30664
- return Ne.some((Xe) => Xe.id === be.id) || ne.push(be), ne;
30675
+ const ne = Ne.map((Ze) => Ze.id === be.id ? be : Ze);
30676
+ return Ne.some((Ze) => Ze.id === be.id) || ne.push(be), ne;
30665
30677
  }), Ie === "users" ? se((Ne) => Ne.map((ne) => ne.id === z.id ? be : ne)) : ue((Ne) => Ne.map((ne) => ne.id === z.id ? be : ne));
30666
30678
  }, Pe = async () => {
30667
30679
  if (n) {
30668
- const z = (n == null ? void 0 : n.key) || "" + (n == null ? void 0 : n.name), ce = await ee(z, fe == null ? void 0 : fe.id, E);
30680
+ const z = (n == null ? void 0 : n.key) || "" + (n == null ? void 0 : n.name), ce = await ee(z, he == null ? void 0 : he.id, E);
30669
30681
  (ce == null ? void 0 : ce.status) == 200 && T([]);
30670
30682
  }
30671
30683
  }, Ae = "flex-1 min-h-0 overflow-y-auto border rounded-lg px-3 py-2 bg-background shadow-sm";
@@ -31038,7 +31050,7 @@ const mr = {
31038
31050
  idCreator: u
31039
31051
  }) => {
31040
31052
  var di;
31041
- const [f, p] = ye([]), [g, w] = ye(""), [y, x] = ye(new Set(l)), [v, b] = ye(n), [E, T] = ye(""), [k, N] = ye(!1), [S, D] = ye(""), [H, K] = ye(!1), [ee, W] = ye(null), [ue, se] = ye(null), [fe, q] = ye(!1), [Z, Y] = ye(!1), [, oe] = ye(null), Q = vn(null), { toast: X } = xl(), [$, te] = ye(null), [Se, ke] = ye(null), [_e, Pe] = ye(null), [Ae, z] = ye(""), [ce, Ie] = ye(!1), [be, Ne] = ye(!1), [ne, Ke] = ye(/* @__PURE__ */ new Set()), [Xe, xt] = ye(""), [Qt, _t] = ye(!1), [on, Gt] = ye(!1), [Dn, qt] = ye("rename"), [L, J] = ye(!1), [U, ae] = ye(""), [we, he] = ye("1"), [Te, Ze] = ye(!1), [ht, St] = ye(!1), [uo, Xt] = ye(!1), [yn, Mr] = ye(!1), [Yt, dr] = ye(1), [Dr, Bi] = ye(!1), { currentJob: Ye, elapsedTime: Do, setCurrentJob: Vs } = tj(e), [fo, zi] = ye(null), [Vi, Oa] = ye(""), [Tl, Ki] = ye(!1), [Ma, Al] = ye(""), [Ks, Il] = ye(!1), [Gs, Rl] = ye(!1), [Da, kl] = ye([]), [Gi, Nl] = ye(!1), [La, Yf] = ye(""), Lo = vn({}), [js, Ws] = ye(null), Jf = async (A) => {
31053
+ const [f, p] = ye([]), [g, w] = ye(""), [y, x] = ye(new Set(l)), [v, b] = ye(n), [E, T] = ye(""), [k, N] = ye(!1), [S, D] = ye(""), [H, K] = ye(!1), [ee, W] = ye(null), [ue, se] = ye(null), [he, q] = ye(!1), [Z, Y] = ye(!1), [, oe] = ye(null), Q = vn(null), { toast: X } = xl(), [$, te] = ye(null), [Se, ke] = ye(null), [_e, Pe] = ye(null), [Ae, z] = ye(""), [ce, Ie] = ye(!1), [be, Ne] = ye(!1), [ne, Ke] = ye(/* @__PURE__ */ new Set()), [Ze, xt] = ye(""), [Qt, _t] = ye(!1), [on, Gt] = ye(!1), [Dn, qt] = ye("rename"), [L, J] = ye(!1), [U, ae] = ye(""), [we, pe] = ye("1"), [Te, Xe] = ye(!1), [ht, St] = ye(!1), [uo, Xt] = ye(!1), [yn, Mr] = ye(!1), [Yt, dr] = ye(1), [Dr, Bi] = ye(!1), { currentJob: Ye, elapsedTime: Do, setCurrentJob: Vs } = tj(e), [fo, zi] = ye(null), [Vi, Oa] = ye(""), [Tl, Ki] = ye(!1), [Ma, Al] = ye(""), [Ks, Il] = ye(!1), [Gs, Rl] = ye(!1), [Da, kl] = ye([]), [Gi, Nl] = ye(!1), [La, Yf] = ye(""), Lo = vn({}), [js, Ws] = ye(null), Jf = async (A) => {
31042
31054
  Rl(!0);
31043
31055
  try {
31044
31056
  const O = await Fe.get(
@@ -31110,16 +31122,16 @@ const mr = {
31110
31122
  const A = await Fe.get(`${e}/api/login-sharepoint`), { loginUrl: O } = A.data, G = window.open(O, "SharePoint Login", "width=600,height=600");
31111
31123
  if (!G) throw new Error("Không thể mở cửa sổ pop-up");
31112
31124
  G.focus();
31113
- const pe = setInterval(() => {
31125
+ const de = setInterval(() => {
31114
31126
  try {
31115
31127
  if (G.closed) {
31116
- clearInterval(pe);
31128
+ clearInterval(de);
31117
31129
  return;
31118
31130
  }
31119
31131
  const xe = G.location.href;
31120
31132
  if (xe.includes("code=")) {
31121
31133
  const Re = new URL(xe).searchParams.get("code");
31122
- Re && ($l(Re), G.close(), clearInterval(pe));
31134
+ Re && ($l(Re), G.close(), clearInterval(de));
31123
31135
  }
31124
31136
  } catch (xe) {
31125
31137
  xe instanceof Error && !xe.message.includes("cross-origin") && console.error("SharePoint login error:", xe);
@@ -31148,8 +31160,8 @@ const mr = {
31148
31160
  const O = await Fe.post(`${e}/api/get-sharepoint-access-token`, {
31149
31161
  code: A,
31150
31162
  userId: "1"
31151
- }), { accessToken: G, refreshToken: pe } = O.data;
31152
- localStorage.setItem("sharepoint_access_token", G), localStorage.setItem("refresh_sharepoint_access_token", pe), Js(!0), Yi(!0);
31163
+ }), { accessToken: G, refreshToken: de } = O.data;
31164
+ localStorage.setItem("sharepoint_access_token", G), localStorage.setItem("refresh_sharepoint_access_token", de), Js(!0), Yi(!0);
31153
31165
  } catch (O) {
31154
31166
  console.error("❌ Error fetching SharePoint access token:", O), X({
31155
31167
  title: "Error",
@@ -31163,13 +31175,13 @@ const mr = {
31163
31175
  const O = (await Fe.post(`${e}/api/list-site-sharepoint`, {
31164
31176
  userId: "1"
31165
31177
  })).data.sites.map((G) => {
31166
- const pe = new URL(G.webUrl);
31178
+ const de = new URL(G.webUrl);
31167
31179
  return {
31168
31180
  id: G.id,
31169
31181
  name: G.name,
31170
31182
  description: G.description,
31171
- hostname: G.hostname || pe.hostname,
31172
- sitePath: G.sitePath || pe.pathname.replace(/^\/+/, "")
31183
+ hostname: G.hostname || de.hostname,
31184
+ sitePath: G.sitePath || de.pathname.replace(/^\/+/, "")
31173
31185
  };
31174
31186
  });
31175
31187
  console.log("data", O), ic(O), Fo(!1);
@@ -31182,14 +31194,14 @@ const mr = {
31182
31194
  }
31183
31195
  }, oh = async (A) => {
31184
31196
  Lr(A), console.log(A), await Ga("root", A.name, A.hostname || "", A.sitePath || "");
31185
- }, Ga = async (A, O, G, pe) => {
31197
+ }, Ga = async (A, O, G, de) => {
31186
31198
  try {
31187
31199
  Fo(!0);
31188
31200
  const Re = (await Fe.post(`${e}/api/list-file-sharepoint`, {
31189
31201
  folderId: A,
31190
31202
  userId: "1",
31191
31203
  hostname: G,
31192
- sitePath: pe
31204
+ sitePath: de
31193
31205
  })).data.files.map(
31194
31206
  (Me) => ({
31195
31207
  id: Me.id,
@@ -31213,7 +31225,7 @@ const mr = {
31213
31225
  }), Fo(!1);
31214
31226
  }
31215
31227
  }, ih = (A) => {
31216
- Dl((O) => O.some((pe) => pe.id === A.id) ? O.filter((pe) => pe.id !== A.id) : [
31228
+ Dl((O) => O.some((de) => de.id === A.id) ? O.filter((de) => de.id !== A.id) : [
31217
31229
  ...O,
31218
31230
  {
31219
31231
  id: A.id,
@@ -31227,7 +31239,7 @@ const mr = {
31227
31239
  ]);
31228
31240
  }, ah = (A) => {
31229
31241
  var G;
31230
- qi((pe) => pe.slice(0, A + 1));
31242
+ qi((de) => de.slice(0, A + 1));
31231
31243
  const O = (G = rc[A]) == null ? void 0 : G.id;
31232
31244
  O && Ga(
31233
31245
  O,
@@ -31241,7 +31253,7 @@ const mr = {
31241
31253
  lt.error("Không tìm thấy access token. Vui lòng đăng nhập lại.");
31242
31254
  return;
31243
31255
  }
31244
- const pe = lt.loading("Đang đồng bộ SharePoint...", {
31256
+ const de = lt.loading("Đang đồng bộ SharePoint...", {
31245
31257
  position: "bottom-right",
31246
31258
  autoClose: !1
31247
31259
  });
@@ -31261,7 +31273,7 @@ const mr = {
31261
31273
  const Re = await Fe.post(`${e}/api/sync-sharepoint-to-s3`, xe, {
31262
31274
  headers: { Authorization: `Bearer ${G}` }
31263
31275
  });
31264
- ln(), lt.update(pe, {
31276
+ ln(), lt.update(de, {
31265
31277
  render: `Đồng bộ thành công! Đã tải lên ${Re.data.uploadedKeys.length} file.`,
31266
31278
  type: "success",
31267
31279
  isLoading: !1,
@@ -31269,7 +31281,7 @@ const mr = {
31269
31281
  position: "bottom-right"
31270
31282
  }), Yi(!1);
31271
31283
  } catch (xe) {
31272
- console.error("Lỗi khi đồng bộ file từ SharePoint:", xe), lt.update(pe, {
31284
+ console.error("Lỗi khi đồng bộ file từ SharePoint:", xe), lt.update(de, {
31273
31285
  render: "Không thể đồng bộ file từ SharePoint.",
31274
31286
  type: "error",
31275
31287
  isLoading: !1,
@@ -31296,7 +31308,7 @@ const mr = {
31296
31308
  localStorage.getItem("onedrive_access_token") && Js(!0);
31297
31309
  }
31298
31310
  const ja = (A) => {
31299
- ec((O) => O.some((pe) => pe.id === A.id) ? O.filter((pe) => pe.id !== A.id) : [
31311
+ ec((O) => O.some((de) => de.id === A.id) ? O.filter((de) => de.id !== A.id) : [
31300
31312
  ...O,
31301
31313
  {
31302
31314
  id: A.id,
@@ -31311,8 +31323,8 @@ const mr = {
31311
31323
  };
31312
31324
  function Fr(A) {
31313
31325
  if (A === 0) return "0 B";
31314
- const O = 1024, G = ["B", "KB", "MB", "GB", "TB"], pe = Math.floor(Math.log(A) / Math.log(O));
31315
- return parseFloat((A / Math.pow(O, pe)).toFixed(1)) + " " + G[pe];
31326
+ const O = 1024, G = ["B", "KB", "MB", "GB", "TB"], de = Math.floor(Math.log(A) / Math.log(O));
31327
+ return parseFloat((A / Math.pow(O, de)).toFixed(1)) + " " + G[de];
31316
31328
  }
31317
31329
  function Bl(A) {
31318
31330
  const O = new Date(A);
@@ -31323,16 +31335,16 @@ const mr = {
31323
31335
  const A = await Fe.get(`${e}/api/login-one-drive`), { loginUrl: O } = A.data, G = window.open(O, "OneDrive Login", "width=600,height=600");
31324
31336
  if (!G) throw new Error("Không thể mở cửa sổ pop-up");
31325
31337
  G.focus();
31326
- const pe = setInterval(() => {
31338
+ const de = setInterval(() => {
31327
31339
  try {
31328
31340
  if (G.closed) {
31329
- clearInterval(pe);
31341
+ clearInterval(de);
31330
31342
  return;
31331
31343
  }
31332
31344
  const xe = G.location.href;
31333
31345
  if (xe.includes("code=")) {
31334
31346
  const Re = new URL(xe).searchParams.get("code");
31335
- Re && (zl(Re), G.close(), clearInterval(pe));
31347
+ Re && (zl(Re), G.close(), clearInterval(de));
31336
31348
  }
31337
31349
  } catch (xe) {
31338
31350
  xe instanceof Error && !xe.message.includes("cross-origin") && console.error("OneDrive login error:", xe);
@@ -31356,8 +31368,8 @@ const mr = {
31356
31368
  const G = await Fe.post(`${e}/api/get-one-drive-access-token`, {
31357
31369
  authorizationCode: A,
31358
31370
  userId: "1"
31359
- }), { accessToken: pe } = G.data;
31360
- localStorage.setItem("onedrive_access_token", pe), Js(!0), Fa(!0), await Xi("root", "One Drive");
31371
+ }), { accessToken: de } = G.data;
31372
+ localStorage.setItem("onedrive_access_token", de), Js(!0), Fa(!0), await Xi("root", "One Drive");
31361
31373
  } catch (O) {
31362
31374
  console.error("❌ Lỗi khi lấy Access Token:", O);
31363
31375
  }
@@ -31392,7 +31404,7 @@ const mr = {
31392
31404
  lt.error("Không tìm thấy access token. Vui lòng đăng nhập lại.");
31393
31405
  return;
31394
31406
  }
31395
- const pe = lt.loading("Đang đồng bộ OneDrive...", {
31407
+ const de = lt.loading("Đang đồng bộ OneDrive...", {
31396
31408
  position: "bottom-right",
31397
31409
  autoClose: !1
31398
31410
  });
@@ -31408,7 +31420,7 @@ const mr = {
31408
31420
  const Re = await Fe.post(`${e}/api/sync-one-drive-to-s3`, xe, {
31409
31421
  headers: { Authorization: `Bearer ${G}` }
31410
31422
  });
31411
- ln(), lt.update(pe, {
31423
+ ln(), lt.update(de, {
31412
31424
  render: `Đồng bộ thành công! Đã tải lên ${Re.data.uploadedKeys.length} file.`,
31413
31425
  type: "success",
31414
31426
  isLoading: !1,
@@ -31416,7 +31428,7 @@ const mr = {
31416
31428
  position: "bottom-right"
31417
31429
  });
31418
31430
  } catch (xe) {
31419
- console.error("Lỗi khi đồng bộ file từ OneDrive:", xe), lt.update(pe, {
31431
+ console.error("Lỗi khi đồng bộ file từ OneDrive:", xe), lt.update(de, {
31420
31432
  render: "Không thể đồng bộ file từ OneDrive.",
31421
31433
  type: "error",
31422
31434
  isLoading: !1,
@@ -31459,7 +31471,7 @@ const mr = {
31459
31471
  });
31460
31472
  return;
31461
31473
  }
31462
- const pe = lt.loading("Đang đồng bộ...", {
31474
+ const de = lt.loading("Đang đồng bộ...", {
31463
31475
  position: "bottom-right",
31464
31476
  autoClose: !1
31465
31477
  });
@@ -31476,7 +31488,7 @@ const mr = {
31476
31488
  const Re = await Fe.post(`${e}/api/sync-drive-to-s3`, xe, {
31477
31489
  headers: { Authorization: `Bearer ${G}` }
31478
31490
  });
31479
- mr.current = !0, ln(), lt.update(pe, {
31491
+ mr.current = !0, ln(), lt.update(de, {
31480
31492
  render: `Đồng bộ thành công! Đã tải lên ${Re.data.uploadedKeys.length} file.`,
31481
31493
  type: "success",
31482
31494
  isLoading: !1,
@@ -31484,7 +31496,7 @@ const mr = {
31484
31496
  position: "bottom-right"
31485
31497
  });
31486
31498
  } catch (xe) {
31487
- console.error("❌ Lỗi khi đồng bộ file từ Google Drive:", xe), lt.update(pe, {
31499
+ console.error("❌ Lỗi khi đồng bộ file từ Google Drive:", xe), lt.update(de, {
31488
31500
  render: "Không thể đồng bộ file từ Google Drive.",
31489
31501
  type: "error",
31490
31502
  isLoading: !1,
@@ -31526,15 +31538,15 @@ const mr = {
31526
31538
  const O = pd(En, A);
31527
31539
  if (O.length === 0)
31528
31540
  return y.has(A) ? "all" : "none";
31529
- const G = O.filter((pe) => y.has(pe)).length;
31541
+ const G = O.filter((de) => y.has(de)).length;
31530
31542
  return G === 0 ? "none" : G === O.length ? "all" : "partial";
31531
31543
  }, Hr = (A, O = !0) => {
31532
31544
  if (v !== A) {
31533
31545
  if (u && !v)
31534
31546
  Bi(!0), T(A + u), b(A + u);
31535
31547
  else if (Bi(!0), T(A), b(A), O && !o) {
31536
- const G = window.location.pathname === "/" ? "" : window.location.pathname, pe = A ? `${window.location.origin}${G}?prefix=${encodeURIComponent(A)}` : `${window.location.origin}${G}`;
31537
- window.history.pushState({ path: pe }, "", pe);
31548
+ const G = window.location.pathname === "/" ? "" : window.location.pathname, de = A ? `${window.location.origin}${G}?prefix=${encodeURIComponent(A)}` : `${window.location.origin}${G}`;
31549
+ window.history.pushState({ path: de }, "", de);
31538
31550
  }
31539
31551
  }
31540
31552
  }, Ht = (A) => {
@@ -31547,7 +31559,7 @@ const mr = {
31547
31559
  Dr && (mr.current = !0, ln().finally(() => Bi(!1)));
31548
31560
  }, [Dr]);
31549
31561
  const go = async (A, O) => {
31550
- var G, pe;
31562
+ var G, de;
31551
31563
  K(!0);
31552
31564
  try {
31553
31565
  if ($r.some(
@@ -31578,7 +31590,7 @@ const mr = {
31578
31590
  }), D(""), N(!1);
31579
31591
  } catch (xe) {
31580
31592
  console.error("Error creating folder:", xe);
31581
- const Re = ((pe = (G = xe == null ? void 0 : xe.response) == null ? void 0 : G.data) == null ? void 0 : pe.error) || "Không thể tạo thư mục";
31593
+ const Re = ((de = (G = xe == null ? void 0 : xe.response) == null ? void 0 : G.data) == null ? void 0 : de.error) || "Không thể tạo thư mục";
31582
31594
  X({
31583
31595
  title: "Lỗi",
31584
31596
  description: Re,
@@ -31588,7 +31600,7 @@ const mr = {
31588
31600
  K(!1);
31589
31601
  }
31590
31602
  }, Zi = async (A, O, G) => {
31591
- var pe, xe, Re, Me, Dt, Br, ta, Xa, yc;
31603
+ var de, xe, Re, Me, Dt, Br, ta, Xa, yc;
31592
31604
  oe(G), Xt(!0);
31593
31605
  try {
31594
31606
  if (Array.from(A).reduce((Tn, Er) => Tn + Er.size, 0) >= 100 * 1024 * 1024) {
@@ -31625,7 +31637,7 @@ const mr = {
31625
31637
  const Zt = await Fe.post(`${e}/api/check-files-existed`, Bo, {
31626
31638
  headers: { "Content-Type": "multipart/form-data" }
31627
31639
  });
31628
- if (((pe = Zt == null ? void 0 : Zt.data) == null ? void 0 : pe.status) === 200)
31640
+ if (((de = Zt == null ? void 0 : Zt.data) == null ? void 0 : de.status) === 200)
31629
31641
  await Fe.post(`${e}/api/upload`, Bo, {
31630
31642
  headers: { "Content-Type": "multipart/form-data" },
31631
31643
  timeout: 0
@@ -31658,11 +31670,11 @@ const mr = {
31658
31670
  const G = new FormData();
31659
31671
  if (fo) {
31660
31672
  oe(Vi ? "folder" : "files"), Ki(!1);
31661
- let pe = localStorage.getItem("dataLogin"), xe;
31673
+ let de = localStorage.getItem("dataLogin"), xe;
31662
31674
  try {
31663
- pe && (pe = JSON.parse(pe), xe = pe.user);
31675
+ de && (de = JSON.parse(de), xe = de.user);
31664
31676
  } catch {
31665
- pe = null;
31677
+ de = null;
31666
31678
  }
31667
31679
  if (Vi && fo[0]) {
31668
31680
  const Re = fo[0].webkitRelativePath.split("/")[0];
@@ -31683,10 +31695,10 @@ const mr = {
31683
31695
  }
31684
31696
  } catch (G) {
31685
31697
  console.error("Lỗi tải lên:", G);
31686
- const pe = ((O = (A = G == null ? void 0 : G.response) == null ? void 0 : A.data) == null ? void 0 : O.error) || "Không thể tải lên tập tin";
31698
+ const de = ((O = (A = G == null ? void 0 : G.response) == null ? void 0 : A.data) == null ? void 0 : O.error) || "Không thể tải lên tập tin";
31687
31699
  X({
31688
31700
  title: "Lỗi",
31689
- description: pe,
31701
+ description: de,
31690
31702
  variant: "destructive"
31691
31703
  });
31692
31704
  } finally {
@@ -31702,10 +31714,10 @@ const mr = {
31702
31714
  paths: [A.key]
31703
31715
  }
31704
31716
  }), y.has(A.key)) {
31705
- const pe = new Set(y);
31706
- pe.delete(A.key), x(pe);
31717
+ const de = new Set(y);
31718
+ de.delete(A.key), x(de);
31707
31719
  }
31708
- const G = ((O = A.key) == null ? void 0 : O.replace(/^(.*?)(\/.*)?$/, (pe, xe, Re) => !Re || Re === "/" ? "" : xe + "/")) || "";
31720
+ const G = ((O = A.key) == null ? void 0 : O.replace(/^(.*?)(\/.*)?$/, (de, xe, Re) => !Re || Re === "/" ? "" : xe + "/")) || "";
31709
31721
  T(G), mr.current = !0, X({
31710
31722
  title: "Đã xóa tập tin",
31711
31723
  description: `Đã xóa thành công "${A.name}"`
@@ -31748,8 +31760,8 @@ const mr = {
31748
31760
  await Fe.delete(`${e}/api/files`, {
31749
31761
  data: { paths: O }
31750
31762
  });
31751
- const pe = ((A = G[0]) == null ? void 0 : A.key.replace(/^(.*?)(\/.*)?$/, (xe, Re, Me) => !Me || Me === "/" ? "" : Re + "/")) || "";
31752
- T(pe), mr.current = !0, ln(), X({
31763
+ const de = ((A = G[0]) == null ? void 0 : A.key.replace(/^(.*?)(\/.*)?$/, (xe, Re, Me) => !Me || Me === "/" ? "" : Re + "/")) || "";
31764
+ T(de), mr.current = !0, ln(), X({
31753
31765
  title: "Đã xóa tập tin",
31754
31766
  description: `Đã xóa thành công ${G.length} mục`
31755
31767
  }), Y(!1), x(/* @__PURE__ */ new Set()), await Ho("bulk-delete");
@@ -31774,9 +31786,9 @@ const mr = {
31774
31786
  Ne(!0);
31775
31787
  try {
31776
31788
  const G = A.key;
31777
- let pe;
31778
- A.isFolder ? pe = G.split("/").slice(0, -2).join("/") + "/" : pe = G.substring(0, G.lastIndexOf("/") + 1);
31779
- const xe = pe + O + (A.isFolder ? "/" : "");
31789
+ let de;
31790
+ A.isFolder ? de = G.split("/").slice(0, -2).join("/") + "/" : de = G.substring(0, G.lastIndexOf("/") + 1);
31791
+ const xe = de + O + (A.isFolder ? "/" : "");
31780
31792
  await Fe.post(`${e}/api/rename`, {
31781
31793
  oldPath: G,
31782
31794
  newPath: xe
@@ -31800,10 +31812,10 @@ const mr = {
31800
31812
  `${e}/api/download`,
31801
31813
  { paths: A },
31802
31814
  { responseType: "blob" }
31803
- ), G = window.URL.createObjectURL(O.data), pe = document.createElement("a");
31804
- pe.href = G;
31815
+ ), G = window.URL.createObjectURL(O.data), de = document.createElement("a");
31816
+ de.href = G;
31805
31817
  const xe = O.headers["Content-Disposition"] || O.headers["content-disposition"], Re = xe == null ? void 0 : xe.match(/filename="(.+)"/), Me = Re ? decodeURIComponent(Re[1]) : "download.zip";
31806
- pe.setAttribute("download", Me), document.body.appendChild(pe), pe.click(), document.body.removeChild(pe), window.URL.revokeObjectURL(G), X({
31818
+ de.setAttribute("download", Me), document.body.appendChild(de), de.click(), document.body.removeChild(de), window.URL.revokeObjectURL(G), X({
31807
31819
  title: "Bắt đầu tải xuống",
31808
31820
  description: `Đã bắt đầu tải xuống ${A.length} mục${A.length > 1, ""}`
31809
31821
  });
@@ -31816,7 +31828,7 @@ const mr = {
31816
31828
  } finally {
31817
31829
  Ke((O) => {
31818
31830
  const G = new Set(O);
31819
- return A.forEach((pe) => G.delete(pe)), G;
31831
+ return A.forEach((de) => G.delete(de)), G;
31820
31832
  });
31821
31833
  }
31822
31834
  }, ea = v ? v.replace(n, "").split("/").filter(Boolean) : [], ui = () => {
@@ -31824,7 +31836,7 @@ const mr = {
31824
31836
  A.length > 1 && (A = A.filter((G) => G.key !== n));
31825
31837
  const O = (G) => Md.findIndex(
31826
31838
  A,
31827
- (pe) => !pe.key.endsWith("/") && pe.key.startsWith(G)
31839
+ (de) => !de.key.endsWith("/") && de.key.startsWith(G)
31828
31840
  ) !== -1;
31829
31841
  return A = A.filter((G) => G.key.endsWith("/") ? !O(G.key) : !0), A;
31830
31842
  }, ql = wr(() => {
@@ -31833,11 +31845,11 @@ const mr = {
31833
31845
  {
31834
31846
  id: "select",
31835
31847
  header: () => {
31836
- const O = nj(En, v), G = O.length > 0 && O.every((xe) => y.has(xe)), pe = O.some((xe) => y.has(xe));
31848
+ const O = nj(En, v), G = O.length > 0 && O.every((xe) => y.has(xe)), de = O.some((xe) => y.has(xe));
31837
31849
  return /* @__PURE__ */ h(
31838
31850
  cl,
31839
31851
  {
31840
- checked: G ? !0 : pe ? "indeterminate" : !1,
31852
+ checked: G ? !0 : de ? "indeterminate" : !1,
31841
31853
  onCheckedChange: (xe) => {
31842
31854
  if (xe) {
31843
31855
  const Re = $r.reduce(
@@ -31901,7 +31913,7 @@ const mr = {
31901
31913
  ),
31902
31914
  accessorKey: "name",
31903
31915
  cell: ({ row: O }) => {
31904
- const G = O.original, pe = G.key.substring(0, G.key.lastIndexOf("/")) || "/", xe = g.trim() !== "" && pe !== v, Re = pe.split("/").filter(Boolean);
31916
+ const G = O.original, de = G.key.substring(0, G.key.lastIndexOf("/")) || "/", xe = g.trim() !== "" && de !== v, Re = de.split("/").filter(Boolean);
31905
31917
  return /* @__PURE__ */ P("div", { className: "flex flex-col group", children: [
31906
31918
  /* @__PURE__ */ P("div", { className: "flex items-center", children: [
31907
31919
  /* @__PURE__ */ P(
@@ -31998,8 +32010,8 @@ const mr = {
31998
32010
  ),
31999
32011
  accessorKey: "size",
32000
32012
  cell: ({ getValue: O, row: G }) => {
32001
- const pe = O();
32002
- return /* @__PURE__ */ h("span", { children: G.original.isFolder ? "-" : Fr(pe) });
32013
+ const de = O();
32014
+ return /* @__PURE__ */ h("span", { children: G.original.isFolder ? "-" : Fr(de) });
32003
32015
  }
32004
32016
  },
32005
32017
  {
@@ -32152,21 +32164,21 @@ const mr = {
32152
32164
  _t(!0);
32153
32165
  try {
32154
32166
  if (ua(A)) {
32155
- const pe = await Fe.get(`${e}/api/read-text`, {
32167
+ const de = await Fe.get(`${e}/api/read-text`, {
32156
32168
  params: { path: A.key }
32157
32169
  });
32158
- xt(pe.data.content);
32170
+ xt(de.data.content);
32159
32171
  }
32160
32172
  try {
32161
- const pe = await Fe.get(`${e}/api/read-json`, {
32173
+ const de = await Fe.get(`${e}/api/read-json`, {
32162
32174
  params: { path: A.key + ".metadata.json" }
32163
- }), xe = ((G = (O = pe == null ? void 0 : pe.data) == null ? void 0 : O.content) == null ? void 0 : G.metadataAttributes) || null;
32175
+ }), xe = ((G = (O = de == null ? void 0 : de.data) == null ? void 0 : O.content) == null ? void 0 : G.metadataAttributes) || null;
32164
32176
  return Pe({ fullPath: $ == null ? void 0 : $.key, ...xe });
32165
32177
  } catch {
32166
32178
  return Pe("Lỗi phân tích siêu dữ liệu");
32167
32179
  }
32168
- } catch (pe) {
32169
- console.error("Error loading file content:", pe), X({
32180
+ } catch (de) {
32181
+ console.error("Error loading file content:", de), X({
32170
32182
  title: "Lỗi",
32171
32183
  description: "Không thể tải nội dung tập tin",
32172
32184
  variant: "destructive"
@@ -32228,42 +32240,59 @@ const mr = {
32228
32240
  });
32229
32241
  return;
32230
32242
  }
32231
- Ze(!0);
32243
+ Xe(!0);
32244
+ try {
32245
+ if ((await Fe.get(A)).status !== 200) {
32246
+ X({
32247
+ title: "Lỗi",
32248
+ description: "Không thể lấy dữ liệu. Vui lòng kiểm tra lại đường dẫn.",
32249
+ variant: "destructive"
32250
+ }), Xe(!1);
32251
+ return;
32252
+ }
32253
+ } catch {
32254
+ X({
32255
+ title: "Lỗi",
32256
+ description: "Đường dẫn không hợp lệ. Vui lòng kiểm tra lại.",
32257
+ variant: "destructive"
32258
+ }), Xe(!1);
32259
+ return;
32260
+ }
32232
32261
  try {
32233
- const { data: pe } = await Fe.post(`${e}/api/crawl`, {
32262
+ const { data: de } = await Fe.post(`${e}/api/crawl`, {
32234
32263
  url: A,
32235
32264
  limit: O,
32236
32265
  prefix: v,
32237
32266
  isAutoUpdateKB: $o
32238
32267
  });
32239
- if (pe.id) {
32268
+ if (de.id) {
32240
32269
  Vs({
32241
- id: pe.id,
32270
+ id: de.id,
32242
32271
  url: A,
32243
32272
  limit: O,
32244
32273
  prefix: v,
32245
- taskId: ((G = pe.task) == null ? void 0 : G.id) || ""
32274
+ taskId: ((G = de.task) == null ? void 0 : G.id) || ""
32246
32275
  });
32247
32276
  const xe = localStorage.getItem(Xb), Re = xe ? JSON.parse(xe) : [];
32248
- Re.some((Me) => Me.id === pe.id) || (Re.unshift({
32277
+ Re.some((Me) => Me.id === de.id) || (Re.unshift({
32249
32278
  url: A,
32250
- id: pe.id,
32279
+ id: de.id,
32251
32280
  limit: O,
32252
32281
  prefix: v,
32253
32282
  timestamp: Date.now()
32254
32283
  }), Re.length > 20 && (Re.length = 20), localStorage.setItem(Xb, JSON.stringify(Re))), X({
32255
32284
  title: "Bắt đầu thu thập website",
32256
32285
  description: `Đã thêm nhiệm vụ thu thập ${A} với giới hạn ${O}. Dữ liệu sẽ có sẵn sau khi thu thập hoàn tất.`
32257
- }), J(!1), ae(""), he("1");
32286
+ }), J(!1), ae(""), pe("1");
32258
32287
  }
32259
- } catch (pe) {
32260
- console.error("Error crawling website:", pe), X({
32288
+ } catch (de) {
32289
+ console.error("Error crawling website:", de), X({
32261
32290
  title: "Lỗi",
32262
32291
  description: "Không thể bắt đầu thu thập website",
32263
32292
  variant: "destructive"
32264
32293
  });
32265
32294
  } finally {
32266
- Ze(!1);
32295
+ Xe(!1);
32267
32296
  }
32268
32297
  }, dh = async () => {
32269
32298
  try {
@@ -32283,8 +32312,8 @@ const mr = {
32283
32312
  gt(() => {
32284
32313
  if (o) return;
32285
32314
  const A = (O = !0) => {
32286
- const pe = new URL(window.location.href).searchParams.get("prefix") || "";
32287
- pe ? Hr(pe, !1) : (O && !l && x(/* @__PURE__ */ new Set()), T(n), b(n), mr.current = !0, setTimeout(() => {
32315
+ const de = new URL(window.location.href).searchParams.get("prefix") || "";
32316
+ de ? Hr(de, !1) : (O && !l && x(/* @__PURE__ */ new Set()), T(n), b(n), mr.current = !0, setTimeout(() => {
32288
32317
  ln();
32289
32318
  }, 0));
32290
32319
  };
@@ -32881,9 +32910,9 @@ const mr = {
32881
32910
  {
32882
32911
  variant: "destructive",
32883
32912
  onClick: lh,
32884
- disabled: fe,
32913
+ disabled: he,
32885
32914
  className: "s3-explr-confirm-delete-btn",
32886
- children: fe ? /* @__PURE__ */ P(wt, { children: [
32915
+ children: he ? /* @__PURE__ */ P(wt, { children: [
32887
32916
  /* @__PURE__ */ h(Rt, { className: "mr-2 h-4 w-4 animate-spin s3-explr-loader" }),
32888
32917
  "Đang xóa..."
32889
32918
  ] }) : "Xóa đã chọn"
@@ -33026,7 +33055,7 @@ const mr = {
33026
33055
  value: we,
33027
33056
  onChange: (A) => {
33028
33057
  const O = A.target.value;
33029
- /^\d*$/.test(O) && he(O);
33058
+ /^\d*$/.test(O) && pe(O);
33030
33059
  },
33031
33060
  placeholder: "1",
33032
33061
  type: "text",
@@ -33043,7 +33072,7 @@ const mr = {
33043
33072
  {
33044
33073
  variant: "outline",
33045
33074
  onClick: () => {
33046
- J(!1), ae(""), he("1");
33075
+ J(!1), ae(""), pe("1");
33047
33076
  },
33048
33077
  disabled: Te,
33049
33078
  className: "s3-explr-cancel-btn",
@@ -33151,7 +33180,7 @@ const mr = {
33151
33180
  value: we,
33152
33181
  onChange: (A) => {
33153
33182
  const O = A.target.value;
33154
- /^\d*$/.test(O) && he(O);
33183
+ /^\d*$/.test(O) && pe(O);
33155
33184
  },
33156
33185
  placeholder: "1",
33157
33186
  type: "text",
@@ -33204,7 +33233,7 @@ const mr = {
33204
33233
  {
33205
33234
  variant: "outline",
33206
33235
  onClick: () => {
33207
- J(!1), ae(""), he("1");
33236
+ J(!1), ae(""), pe("1");
33208
33237
  },
33209
33238
  disabled: Te,
33210
33239
  className: "s3-explr-cancel-btn",
@@ -33790,13 +33819,13 @@ const mr = {
33790
33819
  ll,
33791
33820
  {
33792
33821
  id: "content",
33793
- value: Xe,
33822
+ value: Ze,
33794
33823
  onChange: (A) => xt(A.target.value),
33795
33824
  placeholder: "Nhập nội dung tập tin",
33796
33825
  className: "font-mono text-sm resize-none min-h-[200px] w-full",
33797
33826
  disabled: on,
33798
33827
  style: { height: "auto", maxHeight: "60vh" },
33799
- rows: Math.max(10, Xe.split(`
33828
+ rows: Math.max(10, Ze.split(`
33800
33829
  `).length + 1)
33801
33830
  }
33802
33831
  )
@@ -33818,10 +33847,10 @@ const mr = {
33818
33847
  {
33819
33848
  id: A,
33820
33849
  value: typeof O == "string" ? O : JSON.stringify(O),
33821
- onChange: (pe) => {
33850
+ onChange: (de) => {
33822
33851
  const xe = {
33823
33852
  ..._e,
33824
- [A]: pe.target.value
33853
+ [A]: de.target.value
33825
33854
  };
33826
33855
  Pe(xe);
33827
33856
  },
@@ -33834,10 +33863,10 @@ const mr = {
33834
33863
  {
33835
33864
  id: A,
33836
33865
  value: typeof O == "string" ? O : JSON.stringify(O),
33837
- onChange: (pe) => {
33866
+ onChange: (de) => {
33838
33867
  const xe = {
33839
33868
  ..._e,
33840
- [A]: pe.target.value
33869
+ [A]: de.target.value
33841
33870
  };
33842
33871
  Pe(xe);
33843
33872
  },
@@ -33866,7 +33895,7 @@ const mr = {
33866
33895
  Dn === "edit" ? /* @__PURE__ */ h(
33867
33896
  Ue,
33868
33897
  {
33869
- onClick: () => $ && hc($, Xe),
33898
+ onClick: () => $ && hc($, Ze),
33870
33899
  disabled: on || Qt,
33871
33900
  className: "s3-explr-save-btn",
33872
33901
  children: on ? /* @__PURE__ */ P(wt, { children: [
@@ -33914,7 +33943,7 @@ const mr = {
33914
33943
  /* @__PURE__ */ h(or, { className: "s3-explr-dialog-header", children: /* @__PURE__ */ h(ir, { className: "s3-explr-dialog-title", children: "Xem tập tin" }) }),
33915
33944
  Se && /* @__PURE__ */ P(Fg, { value: "view", children: [
33916
33945
  /* @__PURE__ */ h(Dd, { className: "grid w-full grid-cols-1 ", children: !Se.isFolder && ua(Se) && /* @__PURE__ */ h(va, { value: "view", children: "Nội dung" }) }),
33917
- !Se.isFolder && ua(Se) && /* @__PURE__ */ h(ya, { value: "view", children: /* @__PURE__ */ h("div", { className: "space-y-4 py-4", children: Qt ? /* @__PURE__ */ h("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ h(Rt, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ h("div", { className: "overflow-hidden overflow-y-auto pb-3 px-1", children: /* @__PURE__ */ h("div", { className: "rounded-md bg-muted p-4 font-mono text-sm overflow-auto max-h-[60vh] border", children: /* @__PURE__ */ h("pre", { className: "whitespace-pre-wrap break-words", children: Xe }) }) }) }) })
33946
+ !Se.isFolder && ua(Se) && /* @__PURE__ */ h(ya, { value: "view", children: /* @__PURE__ */ h("div", { className: "space-y-4 py-4", children: Qt ? /* @__PURE__ */ h("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ h(Rt, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ h("div", { className: "overflow-hidden overflow-y-auto pb-3 px-1", children: /* @__PURE__ */ h("div", { className: "rounded-md bg-muted p-4 font-mono text-sm overflow-auto max-h-[60vh] border", children: /* @__PURE__ */ h("pre", { className: "whitespace-pre-wrap break-words", children: Ze }) }) }) }) })
33918
33947
  ] }),
33919
33948
  /* @__PURE__ */ h(Wr, { className: "s3-explr-dialog-footer", children: /* @__PURE__ */ h(
33920
33949
  Ue,
@@ -33984,8 +34013,8 @@ const mr = {
33984
34013
  }
33985
34014
  ),
33986
34015
  Array.from({ length: Math.ceil(Qi / 20) }, (A, O) => {
33987
- const G = O + 1, pe = Math.ceil(Qi / 20);
33988
- return pe > 7 && !(G === 1 || G === pe || G >= Yt - 1 && G <= Yt + 1) ? G === Yt - 2 && Yt > 4 || G === Yt + 2 && Yt < pe - 3 ? /* @__PURE__ */ h(Mf, { className: "pointer-events-none", children: "..." }, O) : null : /* @__PURE__ */ h(Zr, { className: "cursor-pointer", children: /* @__PURE__ */ h(
34016
+ const G = O + 1, de = Math.ceil(Qi / 20);
34017
+ return de > 7 && !(G === 1 || G === de || G >= Yt - 1 && G <= Yt + 1) ? G === Yt - 2 && Yt > 4 || G === Yt + 2 && Yt < de - 3 ? /* @__PURE__ */ h(Mf, { className: "pointer-events-none", children: "..." }, O) : null : /* @__PURE__ */ h(Zr, { className: "cursor-pointer", children: /* @__PURE__ */ h(
33989
34018
  Hs,
33990
34019
  {
33991
34020
  isActive: Yt === G,
@@ -34318,8 +34347,8 @@ var hs = (t) => rn(t) && !jd(t) ? t : {
34318
34347
  return {};
34319
34348
  const k = l ? l[0] : s, N = (se) => {
34320
34349
  o && k.reportValidity && (k.setCustomValidity(_o(se) ? "" : se || ""), k.reportValidity());
34321
- }, S = {}, D = ey(s), H = El(s), K = D || H, ee = (b || Zv(s)) && sn(s.value) && sn(T) || Kd(s) && s.value === "" || T === "" || Array.isArray(T) && !T.length, W = mj.bind(null, v, r, S), ue = (se, fe, q, Z = Zo.maxLength, Y = Zo.minLength) => {
34322
- const oe = se ? fe : q;
34350
+ }, S = {}, D = ey(s), H = El(s), K = D || H, ee = (b || Zv(s)) && sn(s.value) && sn(T) || Kd(s) && s.value === "" || T === "" || Array.isArray(T) && !T.length, W = mj.bind(null, v, r, S), ue = (se, he, q, Z = Zo.maxLength, Y = Zo.minLength) => {
34351
+ const oe = se ? he : q;
34323
34352
  S[v] = {
34324
34353
  type: se ? Z : Y,
34325
34354
  message: oe,
@@ -34328,60 +34357,60 @@ var hs = (t) => rn(t) && !jd(t) ? t : {
34328
34357
  };
34329
34358
  };
34330
34359
  if (a ? !Array.isArray(T) || !T.length : u && (!K && (ee || Kn(T)) || _o(T) && !T || H && !bI(l).isValid || D && !_I(l).isValid)) {
34331
- const { value: se, message: fe } = gd(u) ? { value: !!u, message: u } : hs(u);
34360
+ const { value: se, message: he } = gd(u) ? { value: !!u, message: u } : hs(u);
34332
34361
  if (se && (S[v] = {
34333
34362
  type: Zo.required,
34334
- message: fe,
34363
+ message: he,
34335
34364
  ref: k,
34336
- ...W(Zo.required, fe)
34365
+ ...W(Zo.required, he)
34337
34366
  }, !r))
34338
- return N(fe), S;
34367
+ return N(he), S;
34339
34368
  }
34340
34369
  if (!ee && (!Kn(g) || !Kn(w))) {
34341
- let se, fe;
34370
+ let se, he;
34342
34371
  const q = hs(w), Z = hs(g);
34343
34372
  if (!Kn(T) && !isNaN(T)) {
34344
34373
  const Y = s.valueAsNumber || T && +T;
34345
- Kn(q.value) || (se = Y > q.value), Kn(Z.value) || (fe = Y < Z.value);
34374
+ Kn(q.value) || (se = Y > q.value), Kn(Z.value) || (he = Y < Z.value);
34346
34375
  } else {
34347
34376
  const Y = s.valueAsDate || new Date(T), oe = ($) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + $), Q = s.type == "time", X = s.type == "week";
34348
- Ro(q.value) && T && (se = Q ? oe(T) > oe(q.value) : X ? T > q.value : Y > new Date(q.value)), Ro(Z.value) && T && (fe = Q ? oe(T) < oe(Z.value) : X ? T < Z.value : Y < new Date(Z.value));
34377
+ Ro(q.value) && T && (se = Q ? oe(T) > oe(q.value) : X ? T > q.value : Y > new Date(q.value)), Ro(Z.value) && T && (he = Q ? oe(T) < oe(Z.value) : X ? T < Z.value : Y < new Date(Z.value));
34349
34378
  }
34350
- if ((se || fe) && (ue(!!se, q.message, Z.message, Zo.max, Zo.min), !r))
34379
+ if ((se || he) && (ue(!!se, q.message, Z.message, Zo.max, Zo.min), !r))
34351
34380
  return N(S[v].message), S;
34352
34381
  }
34353
34382
  if ((f || p) && !ee && (Ro(T) || a && Array.isArray(T))) {
34354
- const se = hs(f), fe = hs(p), q = !Kn(se.value) && T.length > +se.value, Z = !Kn(fe.value) && T.length < +fe.value;
34355
- if ((q || Z) && (ue(q, se.message, fe.message), !r))
34383
+ const se = hs(f), he = hs(p), q = !Kn(se.value) && T.length > +se.value, Z = !Kn(he.value) && T.length < +he.value;
34384
+ if ((q || Z) && (ue(q, se.message, he.message), !r))
34356
34385
  return N(S[v].message), S;
34357
34386
  }
34358
34387
  if (y && !ee && Ro(T)) {
34359
- const { value: se, message: fe } = hs(y);
34388
+ const { value: se, message: he } = hs(y);
34360
34389
  if (jd(se) && !T.match(se) && (S[v] = {
34361
34390
  type: Zo.pattern,
34362
- message: fe,
34391
+ message: he,
34363
34392
  ref: s,
34364
- ...W(Zo.pattern, fe)
34393
+ ...W(Zo.pattern, he)
34365
34394
  }, !r))
34366
- return N(fe), S;
34395
+ return N(he), S;
34367
34396
  }
34368
34397
  if (x) {
34369
34398
  if (Qr(x)) {
34370
- const se = await x(T, n), fe = lx(se, k);
34371
- if (fe && (S[v] = {
34372
- ...fe,
34373
- ...W(Zo.validate, fe.message)
34399
+ const se = await x(T, n), he = lx(se, k);
34400
+ if (he && (S[v] = {
34401
+ ...he,
34402
+ ...W(Zo.validate, he.message)
34374
34403
  }, !r))
34375
- return N(fe.message), S;
34404
+ return N(he.message), S;
34376
34405
  } else if (rn(x)) {
34377
34406
  let se = {};
34378
- for (const fe in x) {
34407
+ for (const he in x) {
34379
34408
  if (!zn(se) && !r)
34380
34409
  break;
34381
- const q = lx(await x[fe](T, n), k, fe);
34410
+ const q = lx(await x[he](T, n), k, he);
34382
34411
  q && (se = {
34383
34412
  ...q,
34384
- ...W(fe, q.message)
34413
+ ...W(he, q.message)
34385
34414
  }, N(q.message), r && (S[v] = se));
34386
34415
  }
34387
34416
  if (!zn(se) && (S[v] = {
@@ -34461,23 +34490,23 @@ function Rj(t = {}) {
34461
34490
  validatingFields: n.validatingFields,
34462
34491
  isValidating: !zn(n.validatingFields)
34463
34492
  }));
34464
- }, k = (L, J = [], U, ae, we = !0, he = !0) => {
34493
+ }, k = (L, J = [], U, ae, we = !0, pe = !0) => {
34465
34494
  if (ae && U && !e.disabled) {
34466
- if (s.action = !0, he && Array.isArray($e(r, L))) {
34495
+ if (s.action = !0, pe && Array.isArray($e(r, L))) {
34467
34496
  const Te = U($e(r, L), ae.argA, ae.argB);
34468
34497
  we && Vt(r, L, Te);
34469
34498
  }
34470
- if (he && Array.isArray($e(n.errors, L))) {
34499
+ if (pe && Array.isArray($e(n.errors, L))) {
34471
34500
  const Te = U($e(n.errors, L), ae.argA, ae.argB);
34472
34501
  we && Vt(n.errors, L, Te), Tj(n.errors, L);
34473
34502
  }
34474
- if ((p.touchedFields || g.touchedFields) && he && Array.isArray($e(n.touchedFields, L))) {
34503
+ if ((p.touchedFields || g.touchedFields) && pe && Array.isArray($e(n.touchedFields, L))) {
34475
34504
  const Te = U($e(n.touchedFields, L), ae.argA, ae.argB);
34476
34505
  we && Vt(n.touchedFields, L, Te);
34477
34506
  }
34478
34507
  (p.dirtyFields || g.dirtyFields) && (n.dirtyFields = Hc(o, a)), w.state.next({
34479
34508
  name: L,
34480
- isDirty: fe(L, J),
34509
+ isDirty: he(L, J),
34481
34510
  dirtyFields: n.dirtyFields,
34482
34511
  errors: n.errors,
34483
34512
  isValid: n.isValid
@@ -34496,33 +34525,33 @@ function Rj(t = {}) {
34496
34525
  }, D = (L, J, U, ae) => {
34497
34526
  const we = $e(r, L);
34498
34527
  if (we) {
34499
- const he = $e(a, L, sn(U) ? $e(o, L) : U);
34500
- sn(he) || ae && ae.defaultChecked || J ? Vt(a, L, J ? he : ox(we._f)) : Y(L, he), s.mount && E();
34528
+ const pe = $e(a, L, sn(U) ? $e(o, L) : U);
34529
+ sn(pe) || ae && ae.defaultChecked || J ? Vt(a, L, J ? pe : ox(we._f)) : Y(L, pe), s.mount && E();
34501
34530
  }
34502
34531
  }, H = (L, J, U, ae, we) => {
34503
- let he = !1, Te = !1;
34504
- const Ze = {
34532
+ let pe = !1, Te = !1;
34533
+ const Xe = {
34505
34534
  name: L
34506
34535
  };
34507
34536
  if (!e.disabled) {
34508
34537
  if (!U || ae) {
34509
- (p.isDirty || g.isDirty) && (Te = n.isDirty, n.isDirty = Ze.isDirty = fe(), he = Te !== Ze.isDirty);
34538
+ (p.isDirty || g.isDirty) && (Te = n.isDirty, n.isDirty = Xe.isDirty = he(), pe = Te !== Xe.isDirty);
34510
34539
  const ht = Ei($e(o, L), J);
34511
- Te = !!$e(n.dirtyFields, L), ht ? hn(n.dirtyFields, L) : Vt(n.dirtyFields, L, !0), Ze.dirtyFields = n.dirtyFields, he = he || (p.dirtyFields || g.dirtyFields) && Te !== !ht;
34540
+ Te = !!$e(n.dirtyFields, L), ht ? hn(n.dirtyFields, L) : Vt(n.dirtyFields, L, !0), Xe.dirtyFields = n.dirtyFields, pe = pe || (p.dirtyFields || g.dirtyFields) && Te !== !ht;
34512
34541
  }
34513
34542
  if (U) {
34514
34543
  const ht = $e(n.touchedFields, L);
34515
- ht || (Vt(n.touchedFields, L, U), Ze.touchedFields = n.touchedFields, he = he || (p.touchedFields || g.touchedFields) && ht !== U);
34544
+ ht || (Vt(n.touchedFields, L, U), Xe.touchedFields = n.touchedFields, pe = pe || (p.touchedFields || g.touchedFields) && ht !== U);
34516
34545
  }
34517
- he && we && w.state.next(Ze);
34546
+ pe && we && w.state.next(Xe);
34518
34547
  }
34519
- return he ? Ze : {};
34548
+ return pe ? Xe : {};
34520
34549
  }, K = (L, J, U, ae) => {
34521
- const we = $e(n.errors, L), he = (p.isValid || g.isValid) && _o(J) && n.isValid !== J;
34522
- if (e.delayError && U ? (u = b(() => N(L, U)), u(e.delayError)) : (clearTimeout(f), u = null, U ? Vt(n.errors, L, U) : hn(n.errors, L)), (U ? !Ei(we, U) : we) || !zn(ae) || he) {
34550
+ const we = $e(n.errors, L), pe = (p.isValid || g.isValid) && _o(J) && n.isValid !== J;
34551
+ if (e.delayError && U ? (u = b(() => N(L, U)), u(e.delayError)) : (clearTimeout(f), u = null, U ? Vt(n.errors, L, U) : hn(n.errors, L)), (U ? !Ei(we, U) : we) || !zn(ae) || pe) {
34523
34552
  const Te = {
34524
34553
  ...ae,
34525
- ...he && _o(J) ? { isValid: J } : {},
34554
+ ...pe && _o(J) ? { isValid: J } : {},
34526
34555
  errors: n.errors,
34527
34556
  name: L
34528
34557
  };
@@ -34551,14 +34580,14 @@ function Rj(t = {}) {
34551
34580
  for (const ae in L) {
34552
34581
  const we = L[ae];
34553
34582
  if (we) {
34554
- const { _f: he, ...Te } = we;
34555
- if (he) {
34556
- const Ze = l.array.has(he.name), ht = we._f && bj(we._f);
34583
+ const { _f: pe, ...Te } = we;
34584
+ if (pe) {
34585
+ const Xe = l.array.has(pe.name), ht = we._f && bj(we._f);
34557
34586
  ht && p.validatingFields && T([ae], !0);
34558
- const St = await ux(we, l.disabled, a, v, e.shouldUseNativeValidation && !J, Ze);
34559
- if (ht && p.validatingFields && T([ae]), St[he.name] && (U.valid = !1, J))
34587
+ const St = await ux(we, l.disabled, a, v, e.shouldUseNativeValidation && !J, Xe);
34588
+ if (ht && p.validatingFields && T([ae]), St[pe.name] && (U.valid = !1, J))
34560
34589
  break;
34561
- !J && ($e(St, he.name) ? Ze ? Aj(n.errors, St, he.name) : Vt(n.errors, he.name, St[he.name]) : hn(n.errors, he.name));
34590
+ !J && ($e(St, pe.name) ? Xe ? Aj(n.errors, St, pe.name) : Vt(n.errors, pe.name, St[pe.name]) : hn(n.errors, pe.name));
34562
34591
  }
34563
34592
  !zn(Te) && await ue(Te, J, U);
34564
34593
  }
@@ -34570,14 +34599,14 @@ function Rj(t = {}) {
34570
34599
  J && (J._f.refs ? J._f.refs.every((U) => !eg(U)) : !eg(J._f.ref)) && Ie(L);
34571
34600
  }
34572
34601
  l.unMount = /* @__PURE__ */ new Set();
34573
- }, fe = (L, J) => !e.disabled && (L && J && Vt(a, L, J), !Ei(Se(), o)), q = (L, J, U) => gj(L, l, {
34602
+ }, he = (L, J) => !e.disabled && (L && J && Vt(a, L, J), !Ei(Se(), o)), q = (L, J, U) => gj(L, l, {
34574
34603
  ...s.mount ? a : sn(J) ? o : Ro(L) ? { [L]: J } : J
34575
34604
  }, U, J), Z = (L) => qf($e(s.mount ? a : o, L, e.shouldUnregister ? $e(o, L, []) : [])), Y = (L, J, U = {}) => {
34576
34605
  const ae = $e(r, L);
34577
34606
  let we = J;
34578
34607
  if (ae) {
34579
- const he = ae._f;
34580
- he && (!he.disabled && Vt(a, L, xI(J, he)), we = Kd(he.ref) && Kn(J) ? "" : J, yI(he.ref) ? [...he.ref.options].forEach((Te) => Te.selected = we.includes(Te.value)) : he.refs ? El(he.ref) ? he.refs.length > 1 ? he.refs.forEach((Te) => (!Te.defaultChecked || !Te.disabled) && (Te.checked = Array.isArray(we) ? !!we.find((Ze) => Ze === Te.value) : we === Te.value)) : he.refs[0] && (he.refs[0].checked = !!we) : he.refs.forEach((Te) => Te.checked = Te.value === we) : Zv(he.ref) ? he.ref.value = "" : (he.ref.value = we, he.ref.type || w.state.next({
34608
+ const pe = ae._f;
34609
+ pe && (!pe.disabled && Vt(a, L, xI(J, pe)), we = Kd(pe.ref) && Kn(J) ? "" : J, yI(pe.ref) ? [...pe.ref.options].forEach((Te) => Te.selected = we.includes(Te.value)) : pe.refs ? El(pe.ref) ? pe.refs.length > 1 ? pe.refs.forEach((Te) => (!Te.defaultChecked || !Te.disabled) && (Te.checked = Array.isArray(we) ? !!we.find((Xe) => Xe === Te.value) : we === Te.value)) : pe.refs[0] && (pe.refs[0].checked = !!we) : pe.refs.forEach((Te) => Te.checked = Te.value === we) : Zv(pe.ref) ? pe.ref.value = "" : (pe.ref.value = we, pe.ref.type || w.state.next({
34581
34610
  name: L,
34582
34611
  values: kn(a)
34583
34612
  })));
@@ -34585,19 +34614,19 @@ function Rj(t = {}) {
34585
34614
  (U.shouldDirty || U.shouldTouch) && H(L, we, U.shouldTouch, U.shouldDirty, !0), U.shouldValidate && te(L);
34586
34615
  }, oe = (L, J, U) => {
34587
34616
  for (const ae in J) {
34588
- const we = J[ae], he = `${L}.${ae}`, Te = $e(r, he);
34589
- (l.array.has(L) || rn(we) || Te && !Te._f) && !wa(we) ? oe(he, we, U) : Y(he, we, U);
34617
+ const we = J[ae], pe = `${L}.${ae}`, Te = $e(r, pe);
34618
+ (l.array.has(L) || rn(we) || Te && !Te._f) && !wa(we) ? oe(pe, we, U) : Y(pe, we, U);
34590
34619
  }
34591
34620
  }, Q = (L, J, U = {}) => {
34592
- const ae = $e(r, L), we = l.array.has(L), he = kn(J);
34593
- Vt(a, L, he), we ? (w.array.next({
34621
+ const ae = $e(r, L), we = l.array.has(L), pe = kn(J);
34622
+ Vt(a, L, pe), we ? (w.array.next({
34594
34623
  name: L,
34595
34624
  values: kn(a)
34596
34625
  }), (p.isDirty || p.dirtyFields || g.isDirty || g.dirtyFields) && U.shouldDirty && w.state.next({
34597
34626
  name: L,
34598
34627
  dirtyFields: Hc(o, a),
34599
- isDirty: fe(L, he)
34600
- })) : ae && !ae._f && !Kn(he) ? oe(L, he, U) : Y(L, he, U), sx(L, l) && w.state.next({ ...n }), w.state.next({
34628
+ isDirty: he(L, pe)
34629
+ })) : ae && !ae._f && !Kn(pe) ? oe(L, pe, U) : Y(L, pe, U), sx(L, l) && w.state.next({ ...n }), w.state.next({
34601
34630
  name: s.mount ? L : void 0,
34602
34631
  values: kn(a)
34603
34632
  });
@@ -34605,11 +34634,11 @@ function Rj(t = {}) {
34605
34634
  s.mount = !0;
34606
34635
  const J = L.target;
34607
34636
  let U = J.name, ae = !0;
34608
- const we = $e(r, U), he = (Te) => {
34637
+ const we = $e(r, U), pe = (Te) => {
34609
34638
  ae = Number.isNaN(Te) || wa(Te) && isNaN(Te.getTime()) || Ei(Te, $e(a, U, Te));
34610
34639
  };
34611
34640
  if (we) {
34612
- let Te, Ze;
34641
+ let Te, Xe;
34613
34642
  const ht = J.type ? ox(we._f) : lj(L), St = L.type === Zb.BLUR || L.type === Zb.FOCUS_OUT, uo = !xj(we._f) && !e.resolver && !$e(n.errors, U) && !we._f.deps || Ej(St, $e(n.touchedFields, U), n.isSubmitted, x, y), Xt = sx(U, l, St);
34614
34643
  Vt(a, U, ht), St ? (we._f.onBlur && we._f.onBlur(L), u && u(0)) : we._f.onChange && we._f.onChange(L);
34615
34644
  const yn = H(U, ht, St), Mr = !zn(yn) || Xt;
@@ -34621,13 +34650,13 @@ function Rj(t = {}) {
34621
34650
  return (p.isValid || g.isValid) && (e.mode === "onBlur" ? St && E() : St || E()), Mr && w.state.next({ name: U, ...Xt ? {} : yn });
34622
34651
  if (!St && Xt && w.state.next({ ...n }), e.resolver) {
34623
34652
  const { errors: Yt } = await ee([U]);
34624
- if (he(ht), ae) {
34653
+ if (pe(ht), ae) {
34625
34654
  const dr = cx(n.errors, r, U), Dr = cx(Yt, r, dr.name || U);
34626
- Te = Dr.error, U = Dr.name, Ze = zn(Yt);
34655
+ Te = Dr.error, U = Dr.name, Xe = zn(Yt);
34627
34656
  }
34628
34657
  } else
34629
- T([U], !0), Te = (await ux(we, l.disabled, a, v, e.shouldUseNativeValidation))[U], T([U]), he(ht), ae && (Te ? Ze = !1 : (p.isValid || g.isValid) && (Ze = await ue(r, !0)));
34630
- ae && (we._f.deps && te(we._f.deps), K(U, Ze, Te, yn));
34658
+ T([U], !0), Te = (await ux(we, l.disabled, a, v, e.shouldUseNativeValidation))[U], T([U]), pe(ht), ae && (Te ? Xe = !1 : (p.isValid || g.isValid) && (Xe = await ue(r, !0)));
34659
+ ae && (we._f.deps && te(we._f.deps), K(U, Xe, Te, yn));
34631
34660
  }
34632
34661
  }, $ = (L, J) => {
34633
34662
  if ($e(n.errors, J) && L.focus)
@@ -34636,11 +34665,11 @@ function Rj(t = {}) {
34636
34665
  let U, ae;
34637
34666
  const we = el(L);
34638
34667
  if (e.resolver) {
34639
- const he = await W(sn(L) ? L : we);
34640
- U = zn(he), ae = L ? !we.some((Te) => $e(he, Te)) : U;
34641
- } else L ? (ae = (await Promise.all(we.map(async (he) => {
34642
- const Te = $e(r, he);
34643
- return await ue(Te && Te._f ? { [he]: Te } : Te);
34668
+ const pe = await W(sn(L) ? L : we);
34669
+ U = zn(pe), ae = L ? !we.some((Te) => $e(pe, Te)) : U;
34670
+ } else L ? (ae = (await Promise.all(we.map(async (pe) => {
34671
+ const Te = $e(r, pe);
34672
+ return await ue(Te && Te._f ? { [pe]: Te } : Te);
34644
34673
  }))).every(Boolean), !(!ae && !n.isValid) && E()) : ae = U = await ue(r);
34645
34674
  return w.state.next({
34646
34675
  ...!Ro(L) || (p.isValid || g.isValid) && U !== n.isValid ? {} : { name: L },
@@ -34663,7 +34692,7 @@ function Rj(t = {}) {
34663
34692
  errors: L ? n.errors : {}
34664
34693
  });
34665
34694
  }, Pe = (L, J, U) => {
34666
- const ae = ($e(r, L, { _f: {} })._f || {}).ref, we = $e(n.errors, L) || {}, { ref: he, message: Te, type: Ze, ...ht } = we;
34695
+ const ae = ($e(r, L, { _f: {} })._f || {}).ref, we = $e(n.errors, L) || {}, { ref: pe, message: Te, type: Xe, ...ht } = we;
34667
34696
  Vt(n.errors, L, {
34668
34697
  ...ht,
34669
34698
  ...J,
@@ -34696,7 +34725,7 @@ function Rj(t = {}) {
34696
34725
  values: kn(a)
34697
34726
  }), w.state.next({
34698
34727
  ...n,
34699
- ...J.keepDirty ? { isDirty: fe() } : {}
34728
+ ...J.keepDirty ? { isDirty: he() } : {}
34700
34729
  }), !J.keepIsValid && E();
34701
34730
  }, be = ({ disabled: L, name: J }) => {
34702
34731
  (_o(L) && s.mount || L || l.disabled.has(J)) && (L ? l.disabled.add(J) : l.disabled.delete(J));
@@ -34730,22 +34759,22 @@ function Rj(t = {}) {
34730
34759
  ref: (we) => {
34731
34760
  if (we) {
34732
34761
  Ne(L, J), U = $e(r, L);
34733
- const he = sn(we.value) && we.querySelectorAll && we.querySelectorAll("input,select,textarea")[0] || we, Te = vj(he), Ze = U._f.refs || [];
34734
- if (Te ? Ze.find((ht) => ht === he) : he === U._f.ref)
34762
+ const pe = sn(we.value) && we.querySelectorAll && we.querySelectorAll("input,select,textarea")[0] || we, Te = vj(pe), Xe = U._f.refs || [];
34763
+ if (Te ? Xe.find((ht) => ht === pe) : pe === U._f.ref)
34735
34764
  return;
34736
34765
  Vt(r, L, {
34737
34766
  _f: {
34738
34767
  ...U._f,
34739
34768
  ...Te ? {
34740
34769
  refs: [
34741
- ...Ze.filter(eg),
34742
- he,
34770
+ ...Xe.filter(eg),
34771
+ pe,
34743
34772
  ...Array.isArray($e(o, L)) ? [{}] : []
34744
34773
  ],
34745
- ref: { type: he.type, name: L }
34746
- } : { ref: he }
34774
+ ref: { type: pe.type, name: L }
34775
+ } : { ref: pe }
34747
34776
  }
34748
- }), D(L, !1, void 0, he);
34777
+ }), D(L, !1, void 0, pe);
34749
34778
  } else
34750
34779
  U = $e(r, L, {}), U._f && (U._f.mount = !1), (e.shouldUnregister || J.shouldUnregister) && !(dj(l.array, L) && s.action) && l.unMount.add(L);
34751
34780
  }
@@ -34757,28 +34786,28 @@ function Rj(t = {}) {
34757
34786
  we.disabled = ae._f.disabled || L;
34758
34787
  }));
34759
34788
  }, 0, !1));
34760
- }, Xe = (L, J) => async (U) => {
34789
+ }, Ze = (L, J) => async (U) => {
34761
34790
  let ae;
34762
34791
  U && (U.preventDefault && U.preventDefault(), U.persist && U.persist());
34763
34792
  let we = kn(a);
34764
34793
  if (w.state.next({
34765
34794
  isSubmitting: !0
34766
34795
  }), e.resolver) {
34767
- const { errors: he, values: Te } = await ee();
34768
- n.errors = he, we = Te;
34796
+ const { errors: pe, values: Te } = await ee();
34797
+ n.errors = pe, we = Te;
34769
34798
  } else
34770
34799
  await ue(r);
34771
34800
  if (l.disabled.size)
34772
- for (const he of l.disabled)
34773
- Vt(we, he, void 0);
34801
+ for (const pe of l.disabled)
34802
+ Vt(we, pe, void 0);
34774
34803
  if (hn(n.errors, "root"), zn(n.errors)) {
34775
34804
  w.state.next({
34776
34805
  errors: {}
34777
34806
  });
34778
34807
  try {
34779
34808
  await L(we, U);
34780
- } catch (he) {
34781
- ae = he;
34809
+ } catch (pe) {
34810
+ ae = pe;
34782
34811
  }
34783
34812
  } else
34784
34813
  J && await J({ ...n.errors }, U), ne(), setTimeout(ne);
@@ -34791,23 +34820,23 @@ function Rj(t = {}) {
34791
34820
  }), ae)
34792
34821
  throw ae;
34793
34822
  }, xt = (L, J = {}) => {
34794
- $e(r, L) && (sn(J.defaultValue) ? Q(L, kn($e(o, L))) : (Q(L, J.defaultValue), Vt(o, L, kn(J.defaultValue))), J.keepTouched || hn(n.touchedFields, L), J.keepDirty || (hn(n.dirtyFields, L), n.isDirty = J.defaultValue ? fe(L, kn($e(o, L))) : fe()), J.keepError || (hn(n.errors, L), p.isValid && E()), w.state.next({ ...n }));
34823
+ $e(r, L) && (sn(J.defaultValue) ? Q(L, kn($e(o, L))) : (Q(L, J.defaultValue), Vt(o, L, kn(J.defaultValue))), J.keepTouched || hn(n.touchedFields, L), J.keepDirty || (hn(n.dirtyFields, L), n.isDirty = J.defaultValue ? he(L, kn($e(o, L))) : he()), J.keepError || (hn(n.errors, L), p.isValid && E()), w.state.next({ ...n }));
34795
34824
  }, Qt = (L, J = {}) => {
34796
- const U = L ? kn(L) : o, ae = kn(U), we = zn(L), he = we ? o : ae;
34825
+ const U = L ? kn(L) : o, ae = kn(U), we = zn(L), pe = we ? o : ae;
34797
34826
  if (J.keepDefaultValues || (o = U), !J.keepValues) {
34798
34827
  if (J.keepDirtyValues) {
34799
34828
  const Te = /* @__PURE__ */ new Set([
34800
34829
  ...l.mount,
34801
34830
  ...Object.keys(Hc(o, a))
34802
34831
  ]);
34803
- for (const Ze of Array.from(Te))
34804
- $e(n.dirtyFields, Ze) ? Vt(he, Ze, $e(a, Ze)) : Q(Ze, $e(he, Ze));
34832
+ for (const Xe of Array.from(Te))
34833
+ $e(n.dirtyFields, Xe) ? Vt(pe, Xe, $e(a, Xe)) : Q(Xe, $e(pe, Xe));
34805
34834
  } else {
34806
34835
  if (Qv && sn(L))
34807
34836
  for (const Te of l.mount) {
34808
- const Ze = $e(r, Te);
34809
- if (Ze && Ze._f) {
34810
- const ht = Array.isArray(Ze._f.refs) ? Ze._f.refs[0] : Ze._f.ref;
34837
+ const Xe = $e(r, Te);
34838
+ if (Xe && Xe._f) {
34839
+ const ht = Array.isArray(Xe._f.refs) ? Xe._f.refs[0] : Xe._f.ref;
34811
34840
  if (Kd(ht)) {
34812
34841
  const St = ht.closest("form");
34813
34842
  if (St) {
@@ -34818,12 +34847,12 @@ function Rj(t = {}) {
34818
34847
  }
34819
34848
  }
34820
34849
  for (const Te of l.mount)
34821
- Q(Te, $e(he, Te));
34850
+ Q(Te, $e(pe, Te));
34822
34851
  }
34823
- a = kn(he), w.array.next({
34824
- values: { ...he }
34852
+ a = kn(pe), w.array.next({
34853
+ values: { ...pe }
34825
34854
  }), w.state.next({
34826
- values: { ...he }
34855
+ values: { ...pe }
34827
34856
  });
34828
34857
  }
34829
34858
  l = {
@@ -34860,12 +34889,12 @@ function Rj(t = {}) {
34860
34889
  register: Ne,
34861
34890
  unregister: Ie,
34862
34891
  getFieldState: ke,
34863
- handleSubmit: Xe,
34892
+ handleSubmit: Ze,
34864
34893
  setError: Pe,
34865
34894
  _subscribe: z,
34866
34895
  _runSchema: ee,
34867
34896
  _getWatch: q,
34868
- _getDirty: fe,
34897
+ _getDirty: he,
34869
34898
  _setValid: E,
34870
34899
  _setFieldArray: k,
34871
34900
  _setDisabledField: be,
@@ -34918,7 +34947,7 @@ function Rj(t = {}) {
34918
34947
  subscribe: ce,
34919
34948
  trigger: te,
34920
34949
  register: Ne,
34921
- handleSubmit: Xe,
34950
+ handleSubmit: Ze,
34922
34951
  watch: Ae,
34923
34952
  setValue: Q,
34924
34953
  getValues: Se,
@@ -35029,8 +35058,8 @@ const SI = ({ className: t, children: e, content: n, side: r }) => {
35029
35058
  }, E = (K) => K.map((W) => {
35030
35059
  let ue = (W == null ? void 0 : W.month) || "", se = (W == null ? void 0 : W.year) || "";
35031
35060
  if ((!ue || !se) && (W != null && W.file_name)) {
35032
- const fe = b(W.file_name);
35033
- ue = ue || fe.month, se = se || fe.year;
35061
+ const he = b(W.file_name);
35062
+ ue = ue || he.month, se = se || he.year;
35034
35063
  }
35035
35064
  return {
35036
35065
  id: W == null ? void 0 : W.id,
@@ -35123,15 +35152,15 @@ const SI = ({ className: t, children: e, content: n, side: r }) => {
35123
35152
  header: "Cập nhật",
35124
35153
  accessorKey: "last-update",
35125
35154
  cell: ({ row: ee }) => {
35126
- const W = new Date(ee.original.lastUpdate), ue = W.getDate(), se = W.getMonth() + 1, fe = `ngày ${ue} tháng ${se}`;
35127
- return /* @__PURE__ */ h("span", { className: "flex flex-col", children: fe });
35155
+ const W = new Date(ee.original.lastUpdate), ue = W.getDate(), se = W.getMonth() + 1, he = `ngày ${ue} tháng ${se}`;
35156
+ return /* @__PURE__ */ h("span", { className: "flex flex-col", children: he });
35128
35157
  }
35129
35158
  },
35130
35159
  {
35131
35160
  accessorKey: "actions",
35132
35161
  header: () => /* @__PURE__ */ h("div", { className: "font-medium text-right", children: "Hành động" }),
35133
35162
  cell: ({ row: ee }) => {
35134
- const [W, ue] = ye(!1), [se, fe] = ye(!1), [q, Z] = ye(!1), { handleSubmit: Y, register: oe, reset: Q } = kj(), X = ee.original.id, $ = ee.getValue("status"), te = ee.getValue("content"), [Se, ke] = ye(!1), _e = async () => {
35163
+ const [W, ue] = ye(!1), [se, he] = ye(!1), [q, Z] = ye(!1), { handleSubmit: Y, register: oe, reset: Q } = kj(), X = ee.original.id, $ = ee.getValue("status"), te = ee.getValue("content"), [Se, ke] = ye(!1), _e = async () => {
35135
35164
  try {
35136
35165
  ke(!0);
35137
35166
  const Ae = $ === "unpublish" ? "published" : "unpublish", z = await Fe.patch(`${t}/api/toggle-publish/${X}`, {
@@ -35174,7 +35203,7 @@ const SI = ({ className: t, children: e, content: n, side: r }) => {
35174
35203
  {
35175
35204
  open: se,
35176
35205
  onOpenChange: (Ae) => {
35177
- fe(Ae), Ae ? Q({
35206
+ he(Ae), Ae ? Q({
35178
35207
  content: ee.original.content,
35179
35208
  note: ee.original.note
35180
35209
  }) : Q();
@@ -35185,7 +35214,7 @@ const SI = ({ className: t, children: e, content: n, side: r }) => {
35185
35214
  {
35186
35215
  variant: "outline",
35187
35216
  size: "sm",
35188
- onClick: () => fe(!0),
35217
+ onClick: () => he(!0),
35189
35218
  className: "px-2 py-0.5 h-7",
35190
35219
  children: "Sửa"
35191
35220
  }
@@ -35204,7 +35233,7 @@ const SI = ({ className: t, children: e, content: n, side: r }) => {
35204
35233
  text_summary: Ae.content,
35205
35234
  id: X
35206
35235
  });
35207
- z.status === 200 ? (await k(l), fe(!1)) : console.error("Failed to update summary:", z);
35236
+ z.status === 200 ? (await k(l), he(!1)) : console.error("Failed to update summary:", z);
35208
35237
  } catch (z) {
35209
35238
  console.error("Error updating summary:", z);
35210
35239
  }