ysyt-react-agent-lib 1.1.20 → 1.1.21

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,9 +4,9 @@ var Ng = (e) => {
4
4
  };
5
5
  var PE = (e, A, t) => A in e ? JE(e, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[A] = t;
6
6
  var Ar = (e, A, t) => PE(e, typeof A != "symbol" ? A + "" : A, t), gc = (e, A, t) => A.has(e) || Ng("Cannot " + t);
7
- var zA = (e, A, t) => (gc(e, A, "read from private field"), t ? t.call(e) : A.get(e)), tn = (e, A, t) => A.has(e) ? Ng("Cannot add the same private member more than once") : A instanceof WeakSet ? A.add(e) : A.set(e, t), cn = (e, A, t, n) => (gc(e, A, "write to private field"), n ? n.call(e, t) : A.set(e, t), t), za = (e, A, t) => (gc(e, A, "access private method"), t);
7
+ var zA = (e, A, t) => (gc(e, A, "read from private field"), t ? t.call(e) : A.get(e)), en = (e, A, t) => A.has(e) ? Ng("Cannot add the same private member more than once") : A instanceof WeakSet ? A.add(e) : A.set(e, t), yn = (e, A, t, n) => (gc(e, A, "write to private field"), n ? n.call(e, t) : A.set(e, t), t), za = (e, A, t) => (gc(e, A, "access private method"), t);
8
8
  import * as c from "react";
9
- import nA, { useContext as pt, isValidElement as WE, version as zE, createContext as vl, useRef as BA, useLayoutEffect as XE, useEffect as Je, useDebugValue as Zg, createElement as _E, forwardRef as On, useImperativeHandle as So, useState as we, useMemo as xn, cloneElement as $E, Children as A1, useCallback as pn, memo as e1, lazy as cq, Suspense as Kg } from "react";
9
+ import nA, { useContext as pt, isValidElement as WE, version as zE, createContext as vl, useRef as BA, useLayoutEffect as XE, useEffect as Je, useDebugValue as Zg, createElement as _E, forwardRef as On, useImperativeHandle as So, useState as we, useMemo as xn, cloneElement as $E, Children as A1, useCallback as hn, memo as e1, lazy as cq, Suspense as Kg } from "react";
10
10
  import * as uq from "react-dom";
11
11
  import uu, { createPortal as Vq, unstable_batchedUpdates as t1, flushSync as Vu } from "react-dom";
12
12
  function dq(e) {
@@ -135,7 +135,7 @@ function Va(e) {
135
135
  return A ^= A >>> 13, A = /* Math.imul(h, m): */
136
136
  (A & 65535) * 1540483477 + ((A >>> 16) * 59797 << 16), ((A ^ A >>> 15) >>> 0).toString(36);
137
137
  }
138
- function Xt() {
138
+ function zt() {
139
139
  return !!(typeof window < "u" && window.document && window.document.createElement);
140
140
  }
141
141
  function a1(e, A) {
@@ -171,7 +171,7 @@ function wd(e) {
171
171
  }
172
172
  function mq(e) {
173
173
  var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
174
- if (!Xt())
174
+ if (!zt())
175
175
  return null;
176
176
  var t = A.csp, n = A.prepend, r = A.priority, i = r === void 0 ? 0 : r, o = l1(n), a = o === "prependQueue", s = document.createElement("style");
177
177
  s.setAttribute(Lg, o), a && i && s.setAttribute(Hg, "".concat(i)), t != null && t.nonce && (s.nonce = t == null ? void 0 : t.nonce), s.innerHTML = e;
@@ -572,7 +572,7 @@ function na(e) {
572
572
  function zg(e, A) {
573
573
  return Va("".concat(A, "_").concat(na(e)));
574
574
  }
575
- var qu = Xt();
575
+ var qu = zt();
576
576
  function mA(e) {
577
577
  return typeof e == "number" ? "".concat(e, "px") : e;
578
578
  }
@@ -609,7 +609,7 @@ var qs = function(A) {
609
609
  }), [i, E1(r, t, {
610
610
  scope: n == null ? void 0 : n.scope
611
611
  })];
612
- }, Xg = process.env.NODE_ENV !== "test" && Xt() ? c.useLayoutEffect : c.useEffect, rt = function(A, t) {
612
+ }, Xg = process.env.NODE_ENV !== "test" && zt() ? c.useLayoutEffect : c.useEffect, rt = function(A, t) {
613
613
  var n = c.useRef(!0);
614
614
  Xg(function() {
615
615
  return A(n.current);
@@ -1136,7 +1136,7 @@ var sI = function(A, t, n) {
1136
1136
  A === "animation" && n.hashId && t !== "none" && Rq("You seem to be using hashed animation '".concat(t, "', in which case 'animationName' with Keyframe as value is recommended."), n);
1137
1137
  }, th = "data-ant-cssinjs-cache-path", Dq = "_FILE_STYLE__", ui, xq = !0;
1138
1138
  function cI() {
1139
- if (!ui && (ui = {}, Xt())) {
1139
+ if (!ui && (ui = {}, zt())) {
1140
1140
  var e = document.createElement("div");
1141
1141
  e.className = th, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
1142
1142
  var A = getComputedStyle(e).content || "";
@@ -1157,7 +1157,7 @@ function uI(e) {
1157
1157
  }
1158
1158
  function VI(e) {
1159
1159
  var A = ui[e], t = null;
1160
- if (A && Xt())
1160
+ if (A && zt())
1161
1161
  if (xq)
1162
1162
  t = Dq;
1163
1163
  else {
@@ -3416,7 +3416,7 @@ const t0 = {
3416
3416
  rangeWeekPlaceholder: ["Start week", "End week"]
3417
3417
  }, my),
3418
3418
  timePickerLocale: Object.assign({}, t0)
3419
- }, un = "${label} is not a valid ${type}", Vo = {
3419
+ }, cn = "${label} is not a valid ${type}", Vo = {
3420
3420
  locale: "en",
3421
3421
  Pagination: py,
3422
3422
  DatePicker: Ch,
@@ -3504,19 +3504,19 @@ const t0 = {
3504
3504
  invalid: "${label} is an invalid date"
3505
3505
  },
3506
3506
  types: {
3507
- string: un,
3508
- method: un,
3509
- array: un,
3510
- object: un,
3511
- number: un,
3512
- date: un,
3513
- boolean: un,
3514
- integer: un,
3515
- float: un,
3516
- regexp: un,
3517
- email: un,
3518
- url: un,
3519
- hex: un
3507
+ string: cn,
3508
+ method: cn,
3509
+ array: cn,
3510
+ object: cn,
3511
+ number: cn,
3512
+ date: cn,
3513
+ boolean: cn,
3514
+ integer: cn,
3515
+ float: cn,
3516
+ regexp: cn,
3517
+ email: cn,
3518
+ url: cn,
3519
+ hex: cn
3520
3520
  },
3521
3521
  string: {
3522
3522
  len: "${label} must be ${len} characters",
@@ -3626,7 +3626,7 @@ function vy(e, A) {
3626
3626
  }
3627
3627
  function Ey(e, A) {
3628
3628
  const t = vy(e, A);
3629
- Xt() ? Cr(t, `${Cy}-dynamic-theme`) : process.env.NODE_ENV !== "production" && Ei(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
3629
+ zt() ? Cr(t, `${Cy}-dynamic-theme`) : process.env.NODE_ENV !== "production" && Ei(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
3630
3630
  }
3631
3631
  const Er = /* @__PURE__ */ c.createContext(!1), Iy = (e) => {
3632
3632
  let {
@@ -3789,8 +3789,8 @@ function Uy(e, A) {
3789
3789
  };
3790
3790
  return e && ("AnimationEvent" in A || delete t.animationend.animation, "TransitionEvent" in A || delete t.transitionend.transition), t;
3791
3791
  }
3792
- var Gy = Uy(Xt(), typeof window < "u" ? window : {}), a0 = {};
3793
- if (Xt()) {
3792
+ var Gy = Uy(zt(), typeof window < "u" ? window : {}), a0 = {};
3793
+ if (zt()) {
3794
3794
  var ky = document.createElement("div");
3795
3795
  a0 = ky.style;
3796
3796
  }
@@ -3832,7 +3832,7 @@ const Yy = function(e) {
3832
3832
  };
3833
3833
  }, []), [n, t];
3834
3834
  };
3835
- var V0 = Xt() ? XE : Je, d0 = function(A) {
3835
+ var V0 = zt() ? XE : Je, d0 = function(A) {
3836
3836
  return +setTimeout(A, 16);
3837
3837
  }, g0 = function(A) {
3838
3838
  return clearTimeout(A);
@@ -7714,7 +7714,7 @@ class bl extends D0 {
7714
7714
  this.user.onRequestTimeout && this.user.onRequestTimeout();
7715
7715
  }
7716
7716
  }
7717
- class Cn extends bl {
7717
+ class qn extends bl {
7718
7718
  constructor(A, t, n) {
7719
7719
  super(A, t, n, rA.Trying, "sip.transaction.nict"), this.F = setTimeout(() => this.timerF(), xt.TIMER_F), this.send(A.toString()).catch((r) => {
7720
7720
  this.logTransportError(r, "Failed to send initial outgoing request.");
@@ -8013,8 +8013,8 @@ class Zt {
8013
8013
  if (!this.message.to) throw new Error("To undefined.");
8014
8014
  if (!this.message.from) throw new Error("From undefined.");
8015
8015
  const n = this.core.makeOutgoingRequestMessage(JA.CANCEL, this.message.ruri, this.message.from.uri, this.message.to.uri, { toTag: this.message.toTag, fromTag: this.message.fromTag, callId: this.message.callId, cseq: this.message.cseq }, t.extraHeaders);
8016
- return n.branch = this.message.branch, this.message.headers.Route && (n.headers.Route = this.message.headers.Route), A && n.setHeader("Reason", A), this.transaction.state === rA.Proceeding ? new Zt(Cn, this.core, n) : this.transaction.addStateChangeListener(() => {
8017
- this.transaction && this.transaction.state === rA.Proceeding && new Zt(Cn, this.core, n);
8016
+ return n.branch = this.message.branch, this.message.headers.Route && (n.headers.Route = this.message.headers.Route), A && n.setHeader("Reason", A), this.transaction.state === rA.Proceeding ? new Zt(qn, this.core, n) : this.transaction.addStateChangeListener(() => {
8017
+ this.transaction && this.transaction.state === rA.Proceeding && new Zt(qn, this.core, n);
8018
8018
  }, { once: !0 }), n;
8019
8019
  }
8020
8020
  authenticationGuard(A, t) {
@@ -8076,10 +8076,10 @@ class Zt {
8076
8076
  class ww extends Zt {
8077
8077
  constructor(A, t, n) {
8078
8078
  const r = A.createOutgoingRequestMessage(JA.BYE, n);
8079
- super(Cn, A.userAgentCore, r, t), A.dispose();
8079
+ super(qn, A.userAgentCore, r, t), A.dispose();
8080
8080
  }
8081
8081
  }
8082
- class fn extends x0 {
8082
+ class pn extends x0 {
8083
8083
  constructor(A, t, n) {
8084
8084
  super(A, t, n, rA.Trying, "sip.transaction.nist");
8085
8085
  }
@@ -8218,27 +8218,27 @@ class sr {
8218
8218
  }
8219
8219
  get acceptable() {
8220
8220
  if (this.transaction instanceof rn) return this.transaction.state === rA.Proceeding || this.transaction.state === rA.Accepted;
8221
- if (this.transaction instanceof fn) return this.transaction.state === rA.Trying || this.transaction.state === rA.Proceeding;
8221
+ if (this.transaction instanceof pn) return this.transaction.state === rA.Trying || this.transaction.state === rA.Proceeding;
8222
8222
  throw new Error("Unknown transaction type.");
8223
8223
  }
8224
8224
  get progressable() {
8225
8225
  if (this.transaction instanceof rn) return this.transaction.state === rA.Proceeding;
8226
- if (this.transaction instanceof fn) return !1;
8226
+ if (this.transaction instanceof pn) return !1;
8227
8227
  throw new Error("Unknown transaction type.");
8228
8228
  }
8229
8229
  get redirectable() {
8230
8230
  if (this.transaction instanceof rn) return this.transaction.state === rA.Proceeding;
8231
- if (this.transaction instanceof fn) return this.transaction.state === rA.Trying || this.transaction.state === rA.Proceeding;
8231
+ if (this.transaction instanceof pn) return this.transaction.state === rA.Trying || this.transaction.state === rA.Proceeding;
8232
8232
  throw new Error("Unknown transaction type.");
8233
8233
  }
8234
8234
  get rejectable() {
8235
8235
  if (this.transaction instanceof rn) return this.transaction.state === rA.Proceeding;
8236
- if (this.transaction instanceof fn) return this.transaction.state === rA.Trying || this.transaction.state === rA.Proceeding;
8236
+ if (this.transaction instanceof pn) return this.transaction.state === rA.Trying || this.transaction.state === rA.Proceeding;
8237
8237
  throw new Error("Unknown transaction type.");
8238
8238
  }
8239
8239
  get tryingable() {
8240
8240
  if (this.transaction instanceof rn) return this.transaction.state === rA.Proceeding;
8241
- if (this.transaction instanceof fn) return this.transaction.state === rA.Trying;
8241
+ if (this.transaction instanceof pn) return this.transaction.state === rA.Trying;
8242
8242
  throw new Error("Unknown transaction type.");
8243
8243
  }
8244
8244
  reply(A) {
@@ -8259,51 +8259,51 @@ class sr {
8259
8259
  }
8260
8260
  class Mw extends sr {
8261
8261
  constructor(A, t, n) {
8262
- super(fn, A.userAgentCore, t, n);
8262
+ super(pn, A.userAgentCore, t, n);
8263
8263
  }
8264
8264
  }
8265
8265
  class Sw extends Zt {
8266
8266
  constructor(A, t, n) {
8267
8267
  const r = A.createOutgoingRequestMessage(JA.INFO, n);
8268
- super(Cn, A.userAgentCore, r, t);
8268
+ super(qn, A.userAgentCore, r, t);
8269
8269
  }
8270
8270
  }
8271
8271
  class Bw extends sr {
8272
8272
  constructor(A, t, n) {
8273
- super(fn, A.userAgentCore, t, n);
8273
+ super(pn, A.userAgentCore, t, n);
8274
8274
  }
8275
8275
  }
8276
8276
  class T0 extends Zt {
8277
8277
  constructor(A, t, n) {
8278
- super(Cn, A, t, n);
8278
+ super(qn, A, t, n);
8279
8279
  }
8280
8280
  }
8281
8281
  class F0 extends sr {
8282
8282
  constructor(A, t, n) {
8283
- super(fn, A, t, n);
8283
+ super(pn, A, t, n);
8284
8284
  }
8285
8285
  }
8286
8286
  class Qw extends Zt {
8287
8287
  constructor(A, t, n) {
8288
8288
  const r = A.createOutgoingRequestMessage(JA.NOTIFY, n);
8289
- super(Cn, A.userAgentCore, r, t);
8289
+ super(qn, A.userAgentCore, r, t);
8290
8290
  }
8291
8291
  }
8292
8292
  class Ls extends sr {
8293
8293
  constructor(A, t, n) {
8294
8294
  const r = A.userAgentCore !== void 0 ? A.userAgentCore : A;
8295
- super(fn, r, t, n);
8295
+ super(pn, r, t, n);
8296
8296
  }
8297
8297
  }
8298
8298
  class bw extends Zt {
8299
8299
  constructor(A, t, n) {
8300
8300
  const r = A.createOutgoingRequestMessage(JA.PRACK, n);
8301
- super(Cn, A.userAgentCore, r, t), A.signalingStateTransition(r);
8301
+ super(qn, A.userAgentCore, r, t), A.signalingStateTransition(r);
8302
8302
  }
8303
8303
  }
8304
8304
  class Rw extends sr {
8305
8305
  constructor(A, t, n) {
8306
- super(fn, A.userAgentCore, t, n), A.signalingStateTransition(t), this.dialog = A;
8306
+ super(pn, A.userAgentCore, t, n), A.signalingStateTransition(t), this.dialog = A;
8307
8307
  }
8308
8308
  accept(A = { statusCode: 200 }) {
8309
8309
  return A.body && this.dialog.signalingStateTransition(A.body), super.accept(A);
@@ -8364,13 +8364,13 @@ class xw extends sr {
8364
8364
  class Tw extends Zt {
8365
8365
  constructor(A, t, n) {
8366
8366
  const r = A.createOutgoingRequestMessage(JA.REFER, n);
8367
- super(Cn, A.userAgentCore, r, t);
8367
+ super(qn, A.userAgentCore, r, t);
8368
8368
  }
8369
8369
  }
8370
8370
  class O0 extends sr {
8371
8371
  constructor(A, t, n) {
8372
8372
  const r = A.userAgentCore !== void 0 ? A.userAgentCore : A;
8373
- super(fn, r, t, n);
8373
+ super(pn, r, t, n);
8374
8374
  }
8375
8375
  }
8376
8376
  class Hs extends ho {
@@ -8755,23 +8755,23 @@ class bc extends sr {
8755
8755
  }
8756
8756
  class Ow extends Zt {
8757
8757
  constructor(A, t, n) {
8758
- super(Cn, A, t, n);
8758
+ super(qn, A, t, n);
8759
8759
  }
8760
8760
  }
8761
8761
  class Uw extends Zt {
8762
8762
  constructor(A, t, n) {
8763
- super(Cn, A, t, n);
8763
+ super(qn, A, t, n);
8764
8764
  }
8765
8765
  }
8766
8766
  class Gw extends sr {
8767
8767
  constructor(A, t, n) {
8768
- super(fn, A, t, n), this.core = A;
8768
+ super(pn, A, t, n), this.core = A;
8769
8769
  }
8770
8770
  }
8771
8771
  class kw extends Zt {
8772
8772
  constructor(A, t, n) {
8773
8773
  const r = A.createOutgoingRequestMessage(JA.SUBSCRIBE, n);
8774
- super(Cn, A.userAgentCore, r, t), this.dialog = A;
8774
+ super(qn, A.userAgentCore, r, t), this.dialog = A;
8775
8775
  }
8776
8776
  waitNotifyStop() {
8777
8777
  }
@@ -8927,7 +8927,7 @@ class Yw extends Zt {
8927
8927
  if (!r) throw new Error("Event undefined");
8928
8928
  const i = t.getHeader("Expires");
8929
8929
  if (!i) throw new Error("Expires undefined");
8930
- super(Cn, A, t, n), this.delegate = n, this.subscriberId = t.callId + t.fromTag + r, this.subscriptionExpiresRequested = this.subscriptionExpires = Number(i), this.subscriptionEvent = r, this.subscriptionState = We.NotifyWait, this.waitNotifyStart();
8930
+ super(qn, A, t, n), this.delegate = n, this.subscriberId = t.callId + t.fromTag + r, this.subscriptionExpiresRequested = this.subscriptionExpires = Number(i), this.subscriptionEvent = r, this.subscriptionState = We.NotifyWait, this.waitNotifyStart();
8931
8931
  }
8932
8932
  dispose() {
8933
8933
  super.dispose();
@@ -8996,7 +8996,7 @@ class Yw extends Zt {
8996
8996
  }
8997
8997
  class Nw extends sr {
8998
8998
  constructor(A, t, n) {
8999
- super(fn, A, t, n), this.core = A;
8999
+ super(pn, A, t, n), this.core = A;
9000
9000
  }
9001
9001
  }
9002
9002
  const Gh = ["application/sdp", "application/dtmf-relay"];
@@ -9034,7 +9034,7 @@ class Zw {
9034
9034
  return new Yw(this, A, t);
9035
9035
  }
9036
9036
  request(A, t) {
9037
- return new Zt(Cn, this, A, t);
9037
+ return new Zt(qn, this, A, t);
9038
9038
  }
9039
9039
  makeOutgoingRequestMessage(A, t, n, r, i, o, a) {
9040
9040
  const s = this.configuration.sipjsId, l = this.configuration.displayName, u = this.configuration.viaForceRport, V = this.configuration.hackViaTcp, d = this.configuration.supportedOptionTags.slice();
@@ -10158,7 +10158,7 @@ let jw = class {
10158
10158
  async start() {
10159
10159
  const A = Wi.makeURI(`sip:${this.config.user}@${this.config.server}`);
10160
10160
  if (!A) throw new Error("无效的SIP配置");
10161
- const t = { uri: A, authorizationUsername: this.config.user, authorizationPassword: this.config.password, transportOptions: { server: this.config.webSocket, connectionTimeout: 30, keepAliveInterval: 20 }, contactName: this.config.user, contactParams: { transport: "wss" }, userAgentString: "SwiftSIP/1.0.74", sessionDescriptionHandlerFactoryOptions: { alwaysAcquireMediaFirst: !0, peerConnectionConfiguration: { iceServers: [{ urls: "stun:stun.qq.com:3478" }, { urls: "stun:stun.agora.io:3478" }] }, iceGatheringTimeout: 1500 }, logBuiltinEnabled: $.logBuiltinEnabled };
10161
+ const t = { uri: A, authorizationUsername: this.config.user, authorizationPassword: this.config.password, transportOptions: { server: this.config.webSocket, connectionTimeout: 30, keepAliveInterval: 20 }, contactName: this.config.user, contactParams: { transport: "wss" }, userAgentString: "SwiftSIP/1.1.19", sessionDescriptionHandlerFactoryOptions: { alwaysAcquireMediaFirst: !0, peerConnectionConfiguration: { iceServers: [{ urls: "stun:stun.qq.com:3478" }, { urls: "stun:stun.agora.io:3478" }] }, iceGatheringTimeout: 800 }, logBuiltinEnabled: $.logBuiltinEnabled };
10162
10162
  this.userAgent = new Wi(t), this.setupEventListeners(), await this.userAgent.start(), await this.register();
10163
10163
  }
10164
10164
  setupEventListeners() {
@@ -10311,7 +10311,7 @@ let jw = class {
10311
10311
  this.activeSession instanceof Wu && (await this.activeSession.reject(), this.activeSession = null);
10312
10312
  }
10313
10313
  async destroy() {
10314
- if (this.isManuallyStopped = !0, clearTimeout(this.callTimeoutTimer), this.activeSession && await this.hangup(), this.registerIntervalTimer && (clearInterval(this.registerIntervalTimer), this.registerIntervalTimer = null), this.registerer) {
10314
+ if (this.isManuallyStopped = !0, clearTimeout(this.callTimeoutTimer), clearInterval(this.registerIntervalTimer), this.activeSession && await this.hangup(), this.registerIntervalTimer && (clearInterval(this.registerIntervalTimer), this.registerIntervalTimer = null), this.registerer) {
10315
10315
  try {
10316
10316
  await this.registerer.unregister();
10317
10317
  } catch (A) {
@@ -10866,7 +10866,7 @@ const ni = (e, A, t) => {
10866
10866
  * SPDX-License-Identifier: BSD-3-Clause
10867
10867
  */
10868
10868
  }, Vi = globalThis;
10869
- class qn extends Ni {
10869
+ class mn extends Ni {
10870
10870
  constructor() {
10871
10871
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
10872
10872
  }
@@ -10892,9 +10892,9 @@ class qn extends Ni {
10892
10892
  }
10893
10893
  }
10894
10894
  var lq;
10895
- qn._$litElement$ = !0, qn.finalized = !0, (lq = Vi.litElementHydrateSupport) == null || lq.call(Vi, { LitElement: qn });
10895
+ mn._$litElement$ = !0, mn.finalized = !0, (lq = Vi.litElementHydrateSupport) == null || lq.call(Vi, { LitElement: mn });
10896
10896
  const Tc = Vi.litElementPolyfillSupport;
10897
- Tc == null || Tc({ LitElement: qn }), (Vi.litElementVersions ?? (Vi.litElementVersions = [])).push("4.2.1");
10897
+ Tc == null || Tc({ LitElement: mn }), (Vi.litElementVersions ?? (Vi.litElementVersions = [])).push("4.2.1");
10898
10898
  const iM = { statusColor: { [Ee.IDLE]: "#1D92E9", [Ee.BUSY]: "#F5212D", [Ee.OFFLINE]: "#8c8c8c", [Ee.RINGING]: "#e9b91d" } }, oM = [], Wt = ["call_number"], _u = ["call_number"], aM = ["hangup"], Qi = ["hold", "hangup", "mute", "transfer", "consult", "satisfaction", "dtmf"], sM = ["consult_transfer", "conference", "consult_retrieve"], lM = ["hangup"], cM = ["hangup"], os = ["answer", "reject"], Lo = ["hangup", "consult", "transfer", "hold", "mute", "satisfaction", "dtmf"], Wh = ["hangup", "whisper", "force_insert", "force_disconnect"], uM = ["hangup"], VM = ["hangup", "cancel_whisper", "force_insert"], dM = ["hangup"], gM = ["hangup"];
10899
10899
  function Be(e, A, t, n) {
10900
10900
  var r, i = arguments.length, o = i < 3 ? A : n;
@@ -10963,7 +10963,7 @@ const fM = (e, A, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorat
10963
10963
  * SPDX-License-Identifier: BSD-3-Clause
10964
10964
  */
10965
10965
  var _i;
10966
- let Fc = (_i = class extends qn {
10966
+ let Fc = (_i = class extends mn {
10967
10967
  constructor() {
10968
10968
  super(), this.intervalId = null, this.elapsedSeconds = 0, this.displayTime = "00:00:00", this.start();
10969
10969
  }
@@ -10995,7 +10995,7 @@ let Fc = (_i = class extends qn {
10995
10995
  `, _i);
10996
10996
  Be([vr()], Fc.prototype, "displayTime", void 0), Fc = Be([Qr("timer-component")], Fc);
10997
10997
  var $i;
10998
- let xr = ($i = class extends qn {
10998
+ let xr = ($i = class extends mn {
10999
10999
  constructor() {
11000
11000
  super(...arguments), this.content = "", this.placement = "bottom", this.delay = 0, this.color = "#3356ec", this.visible = !1, this.showTooltip = () => {
11001
11001
  this.delay > 0 ? this.timeoutId = window.setTimeout(() => {
@@ -11074,7 +11074,7 @@ Be([st({ type: String })], xr.prototype, "content", void 0), Be([st({ type: Stri
11074
11074
  };
11075
11075
  }("slot")], xr.prototype, "slotElement", void 0), xr = Be([Qr("my-tooltip")], xr);
11076
11076
  var Ao;
11077
- let Ho = (Ao = class extends qn {
11077
+ let Ho = (Ao = class extends mn {
11078
11078
  constructor() {
11079
11079
  super(...arguments), this.placement = "bottom", this.triggerType = "click", this.visible = !1, this.hideTimer = null, this.onTogglePopover = (A) => {
11080
11080
  A.stopPropagation(), this.visible = !this.visible, this.visible && this.updatePosition();
@@ -11213,7 +11213,7 @@ let Ho = (Ao = class extends qn {
11213
11213
  `, Ao);
11214
11214
  Be([st({ type: String })], Ho.prototype, "placement", void 0), Be([st({ type: String })], Ho.prototype, "triggerType", void 0), Be([vr()], Ho.prototype, "visible", void 0), Ho = Be([Qr("my-popover")], Ho);
11215
11215
  var eo;
11216
- let Tr = (eo = class extends qn {
11216
+ let Tr = (eo = class extends mn {
11217
11217
  constructor() {
11218
11218
  super(...arguments), this.placeholder = "", this.disabled = !1, this.allowClear = !1, this.value = "", this.focused = !1;
11219
11219
  }
@@ -11324,7 +11324,7 @@ let Tr = (eo = class extends qn {
11324
11324
  `, eo);
11325
11325
  Be([st({ type: String })], Tr.prototype, "placeholder", void 0), Be([st({ type: Boolean })], Tr.prototype, "disabled", void 0), Be([st({ type: Boolean })], Tr.prototype, "allowClear", void 0), Be([st({ type: String })], Tr.prototype, "value", void 0), Be([st({ attribute: !1 })], Tr.prototype, "onPressEnter", void 0), Be([vr()], Tr.prototype, "focused", void 0), Tr = Be([Qr("my-input")], Tr);
11326
11326
  var to;
11327
- let Fr = (to = class extends qn {
11327
+ let Fr = (to = class extends mn {
11328
11328
  constructor() {
11329
11329
  super(...arguments), this.placeholder = "请选择", this.value = null, this.width = "200px", this.open = !1, this.animating = !1, this.selectedContent = null, this.handleOutsideClick = (A) => {
11330
11330
  this.contains(A.target) || this.closeDropdown();
@@ -11446,7 +11446,7 @@ let Fr = (to = class extends qn {
11446
11446
  `, to);
11447
11447
  Be([st({ type: String })], Fr.prototype, "placeholder", void 0), Be([st({ type: String })], Fr.prototype, "value", void 0), Be([st({ type: String })], Fr.prototype, "width", void 0), Be([vr()], Fr.prototype, "open", void 0), Be([vr()], Fr.prototype, "animating", void 0), Be([vr()], Fr.prototype, "selectedContent", void 0), Fr = Be([Qr("my-select")], Fr);
11448
11448
  var no;
11449
- let as = (no = class extends qn {
11449
+ let as = (no = class extends mn {
11450
11450
  constructor() {
11451
11451
  super(...arguments), this.isDialerVisible = !1, this.inputValue = "", this.keys = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "0", "#"], this.handleDocumentClick = (A) => {
11452
11452
  var t;
@@ -11530,7 +11530,7 @@ let as = (no = class extends qn {
11530
11530
  `, no);
11531
11531
  Be([vr()], as.prototype, "isDialerVisible", void 0), Be([vr()], as.prototype, "inputValue", void 0), as = Be([Qr("my-phone-dialer")], as);
11532
11532
  var ro;
11533
- let bi = (ro = class extends qn {
11533
+ let bi = (ro = class extends mn {
11534
11534
  constructor() {
11535
11535
  super(...arguments), this.visible = !1, this.showFooter = !0, this.width = "520px", this.title = "";
11536
11536
  }
@@ -11623,7 +11623,7 @@ let bi = (ro = class extends qn {
11623
11623
  `, ro);
11624
11624
  Be([st({ type: Boolean })], bi.prototype, "visible", void 0), Be([st({ type: Boolean })], bi.prototype, "showFooter", void 0), Be([st({ type: String })], bi.prototype, "width", void 0), Be([st({ type: String })], bi.prototype, "title", void 0), bi = Be([Qr("my-modal-wrapper")], bi);
11625
11625
  var io;
11626
- let Oc = (io = class extends qn {
11626
+ let Oc = (io = class extends mn {
11627
11627
  constructor() {
11628
11628
  super(...arguments), this.open = !1, this.onDocumentClick = (A) => {
11629
11629
  this.contains(A.target) || (this.open = !1);
@@ -12275,7 +12275,7 @@ class Hd {
12275
12275
  }
12276
12276
  }
12277
12277
  var oo;
12278
- let Jo = (oo = class extends qn {
12278
+ let Jo = (oo = class extends mn {
12279
12279
  constructor() {
12280
12280
  super(...arguments), this.type = "info", this.content = "", this.duration = 3e3;
12281
12281
  }
@@ -12357,7 +12357,7 @@ const Jd = (e, A, t = 3e3) => {
12357
12357
  n || (n = document.createElement("div"), n.id = "message-container", Object.assign(n.style, { position: "fixed", top: "14px", left: "50%", transform: "translateX(-50%)", zIndex: "9999" }), document.body.appendChild(n));
12358
12358
  const r = document.createElement("my-message");
12359
12359
  r.setAttribute("type", e), r.setAttribute("content", A), r.setAttribute("duration", String(t)), r.style.setProperty("--fade-delay", t / 1e3 + "s"), n.appendChild(r);
12360
- }, tp = (e, A = 3e3) => Jd("success", e, A), gn = (e, A = 3e3) => Jd("error", e, A), kc = (e, A = 3e3) => Jd("warning", e, A);
12360
+ }, tp = (e, A = 3e3) => Jd("success", e, A), dn = (e, A = 3e3) => Jd("error", e, A), kc = (e, A = 3e3) => Jd("warning", e, A);
12361
12361
  class xM {
12362
12362
  constructor({ container: A, rttHTML: t, statusParams: n }, r, i) {
12363
12363
  this.VoiceSDKInstance = r, this.callApi = i, this.apiClient = new Hd(), this.isOpenSelect = !1, this.statusParams = { state: Ee.IDLE, statusName: "空闲" }, this.consultShow = !1, this.modalRoot = null, this.agentStateData = [], this.default_device = 1, this.customerInfo = void 0, this.transferType = "1", this.selectNumber = "", this.isLoad = !0, this.handleNetworkInfoChange = (u) => {
@@ -12387,7 +12387,7 @@ class xM {
12387
12387
  V === 0 && (u !== 1 && this.VoiceSDKInstance.destroyRtc(), tp("切换成功"), this.default_device = u, this.render());
12388
12388
  } });
12389
12389
  } catch (V) {
12390
- gn(JSON.parse(V.message).msg), this.render();
12390
+ dn(JSON.parse(V.message).msg), this.render();
12391
12391
  }
12392
12392
  }, this.ruleCall = async (u) => {
12393
12393
  if (u) try {
@@ -12536,17 +12536,17 @@ class xM {
12536
12536
  hA.on(tA.AGENT_STATE, (A) => {
12537
12537
  this.statusParams = { state: A.state, statusName: A.state_name }, this.render();
12538
12538
  }), hA.on(tA.CONSULT_FAILED, () => {
12539
- gn("咨询失败");
12539
+ dn("咨询失败");
12540
12540
  }).on(tA.OUT_FAILED, (A) => {
12541
- gn(`外呼失败: ${A}`);
12541
+ dn(`外呼失败: ${A}`);
12542
12542
  }).on(tA.SATISFACTION_EVALUATION_FAILED, (A) => {
12543
- gn(`满意度评价失败: ${A}`);
12543
+ dn(`满意度评价失败: ${A}`);
12544
12544
  }).on(tA.CUSTOMER_INFO, (A) => {
12545
12545
  this.customerInfo = A, this.render();
12546
12546
  }).on(KA.SELECT_EXTERNAL_NUMBER, (A) => {
12547
12547
  this.selectNumber = A;
12548
12548
  }).on(KA.FAIL_NOTIFICATION, (A) => {
12549
- gn(A);
12549
+ dn(A);
12550
12550
  }).on(KA.KICK_OFF, () => {
12551
12551
  kc("您的座席账号已在别处登录,请重新登录。如非您本人操作,请及时修改密码。"), this.isLoad = !1, this.render();
12552
12552
  }), hA.on(KA.EVENT_ALL, ({ event: A }) => {
@@ -12584,13 +12584,13 @@ class xM {
12584
12584
  tp(`设置[${A}]外显号码成功`), this.render();
12585
12585
  } });
12586
12586
  } catch {
12587
- gn("设置外显号码失败");
12587
+ dn("设置外显号码失败");
12588
12588
  }
12589
12589
  }
12590
12590
  async getAgentStateList() {
12591
12591
  try {
12592
12592
  await this.apiClient.getAgentState({ success: ({ data: A, code: t }) => {
12593
- t === 0 ? (this.agentStateData = A, this.render()) : gn("获取状态列表失败");
12593
+ t === 0 ? (this.agentStateData = A, this.render()) : dn("获取状态列表失败");
12594
12594
  } });
12595
12595
  } catch {
12596
12596
  }
@@ -12622,7 +12622,7 @@ class xM {
12622
12622
  style="color: #1777FF;cursor: pointer"
12623
12623
  @click="${() => {
12624
12624
  this.callApi.consultCall(i.agent_no).catch((o) => {
12625
- gn(o.message);
12625
+ dn(o.message);
12626
12626
  }), this.consultShow = !1, this.renderConsultModalToBody();
12627
12627
  }}"
12628
12628
  ></i>
@@ -12635,7 +12635,7 @@ class xM {
12635
12635
  ni(r, this.modalRoot);
12636
12636
  } });
12637
12637
  } catch (A) {
12638
- gn(A);
12638
+ dn(A);
12639
12639
  }
12640
12640
  }
12641
12641
  async renderTransferModalToBody() {
@@ -12687,7 +12687,7 @@ class xM {
12687
12687
  style="color: #1777FF;cursor: pointer"
12688
12688
  @click="${() => {
12689
12689
  this.callApi.transferAgent(i.agent_no).catch((o) => {
12690
- gn(o.message);
12690
+ dn(o.message);
12691
12691
  }), this.consultShow = !1, this.renderTransferModalToBody();
12692
12692
  }}"
12693
12693
  ></i>
@@ -12702,7 +12702,7 @@ class xM {
12702
12702
  value=""
12703
12703
  .onPressEnter="${(i) => {
12704
12704
  this.callApi.transferOutline(i).catch((o) => {
12705
- gn(o.message);
12705
+ dn(o.message);
12706
12706
  }), this.consultShow = !1, this.renderTransferModalToBody();
12707
12707
  }}"
12708
12708
  >
@@ -12715,7 +12715,7 @@ class xM {
12715
12715
  ni(r, this.modalRoot);
12716
12716
  } });
12717
12717
  } catch (A) {
12718
- gn(A);
12718
+ dn(A);
12719
12719
  }
12720
12720
  }
12721
12721
  getActionConfigs() {
@@ -13193,48 +13193,48 @@ class FM {
13193
13193
  gt.__internalSend({ type: ae.TRANSFER, data: { session_id: n, transfer_type: 2, transfer_dest: A } });
13194
13194
  }
13195
13195
  }
13196
- var hn, zt, ct, ut, ao, Zr, Da, xa, so, mr, fl, ml, Xr, X0, _0, ql, $0;
13196
+ var gn, tn, ct, ut, ao, Zr, Da, xa, so, mr, fl, ml, Xr, X0, _0, ql, $0;
13197
13197
  const Cl = class Cl {
13198
13198
  constructor() {
13199
- tn(this, Xr);
13200
- tn(this, zt, null);
13201
- tn(this, ct, new Hd());
13202
- tn(this, ut);
13203
- tn(this, ao, null);
13204
- tn(this, Zr, !1);
13205
- tn(this, Da);
13206
- tn(this, xa);
13207
- tn(this, so, !1);
13208
- tn(this, mr, null);
13209
- tn(this, fl, () => {
13199
+ en(this, Xr);
13200
+ en(this, tn, null);
13201
+ en(this, ct, new Hd());
13202
+ en(this, ut);
13203
+ en(this, ao, null);
13204
+ en(this, Zr, !1);
13205
+ en(this, Da);
13206
+ en(this, xa);
13207
+ en(this, so, !1);
13208
+ en(this, mr, null);
13209
+ en(this, fl, () => {
13210
13210
  j.updateIsNextState(!0);
13211
13211
  });
13212
- tn(this, ml, () => {
13212
+ en(this, ml, () => {
13213
13213
  j.updateIsNextState(!1);
13214
13214
  });
13215
- tn(this, ql, (A) => {
13215
+ en(this, ql, (A) => {
13216
13216
  const { type: t, data: n } = A;
13217
13217
  hA.emit(t, n);
13218
13218
  });
13219
- if (!hn._creatingInstance) throw new Error("请使用 YSYTAgentSdk.getInstance() 获取实例");
13220
- clearInterval(zA(this, ao)), cn(this, ao, setInterval(async () => {
13219
+ if (!gn._creatingInstance) throw new Error("请使用 YSYTAgentSdk.getInstance() 获取实例");
13220
+ clearInterval(zA(this, ao)), yn(this, ao, setInterval(async () => {
13221
13221
  const A = await za(this, Xr, $0).call(this);
13222
13222
  kd.updateRttObject(A);
13223
- }, 2e3)), Hi.requestMediaPermissions(), cn(this, Da, j.subscribeKey("answerDevice", async (A) => {
13224
- A === 1 ? (await this.initWebRtc(), $.stateObject.state === Ee.UNREGISTERED && await zA(this, ct)._changeState({ data: { ...$.stateBeforeChange, state_name: $.stateBeforeChange.state === Ee.IDLE ? "空闲" : "忙碌" } })) : cn(this, zt, null);
13225
- })), cn(this, xa, j.subscribeKey("isNextState", async (A) => {
13223
+ }, 2e3)), Hi.requestMediaPermissions(), yn(this, Da, j.subscribeKey("answerDevice", async (A) => {
13224
+ A === 1 ? (await this.initWebRtc(), $.stateObject.state === Ee.UNREGISTERED && await zA(this, ct)._changeState({ data: { ...$.stateBeforeChange, state_name: $.stateBeforeChange.state === Ee.IDLE ? "空闲" : "忙碌" } })) : await this.destroyRtc();
13225
+ })), yn(this, xa, j.subscribeKey("isNextState", async (A) => {
13226
13226
  if (A) {
13227
- await zA(this, ct)._agentLogin(Gc), j.get("answerDevice") === 1 && await zA(this, zt).reconnect();
13227
+ await zA(this, ct)._agentLogin(Gc), j.get("answerDevice") === 1 && await zA(this, tn).reconnect();
13228
13228
  let t = "";
13229
13229
  const n = new URL(Zi).host;
13230
13230
  t = Zi.includes("https") ? `wss://${n}` : `ws://${n}`;
13231
13231
  const { agent_no: r } = $.agentInfo;
13232
- gt.getInstance({ url: `${t}/ccs-ws/api/v1/ws/call/${r}?Authorization=`, sipClient: zA(this, zt) }), $.stateObject.state === Ee.OFFLINE && setTimeout(() => {
13232
+ gt.getInstance({ url: `${t}/ccs-ws/api/v1/ws/call/${r}?Authorization=`, sipClient: zA(this, tn) }), $.stateObject.state === Ee.OFFLINE && setTimeout(() => {
13233
13233
  zA(this, ct)._changeState({ data: { ...zA(this, mr), state_name: zA(this, mr).state === Ee.BUSY && zA(this, mr).state_name === "整理" ? "忙碌" : zA(this, mr).state_name }, success: () => {
13234
13234
  j.updateDisplayText(""), hA.emit(tA.AGENT_STATE, zA(this, mr));
13235
13235
  } });
13236
13236
  }, 10);
13237
- } else cn(this, mr, $.stateObject), gt.__internalClose(), j.updateDisplayText("离线");
13237
+ } else yn(this, mr, $.stateObject), gt.__internalClose(), j.updateDisplayText("离线");
13238
13238
  })), this.on(KA.KICK_OFF, () => {
13239
13239
  this.destroy();
13240
13240
  }), window.addEventListener("online", zA(this, fl)), window.addEventListener("offline", zA(this, ml));
@@ -13249,7 +13249,7 @@ const Cl = class Cl {
13249
13249
  if (!this._instance) {
13250
13250
  if (!A) throw new Error("首次调用必须传入配置参数");
13251
13251
  const { url: t, appKey: n, appSecret: r, agentNo: i } = A;
13252
- Zi = t || "https://aicc-api.yescloudy.com", jd = n, Ld = r, Gc = i, hn._creatingInstance = !0, this._instance = new hn(), delete hn._creatingInstance, window.addEventListener("beforeunload", () => {
13252
+ Zi = t || "https://aicc-api.yescloudy.com", jd = n, Ld = r, Gc = i, gn._creatingInstance = !0, this._instance = new gn(), delete gn._creatingInstance, window.addEventListener("beforeunload", () => {
13253
13253
  var o;
13254
13254
  (o = this._instance) == null || o.destroy();
13255
13255
  });
@@ -13260,12 +13260,12 @@ const Cl = class Cl {
13260
13260
  return zA(this, so);
13261
13261
  }
13262
13262
  async initWebRtc() {
13263
- if (zA(this, zt)) return;
13263
+ if (zA(this, tn)) return;
13264
13264
  const A = $.agentInfo.sip_account_list.find((t) => t.device_type === 1);
13265
13265
  if (!A) throw new Error(JSON.stringify({ code: 1, msg: "未找到 sip_account_list" }));
13266
13266
  {
13267
13267
  const t = A.sip_register_addr;
13268
- cn(this, zt, new jw({ server: t.split(":")[0], user: A.sip_account, password: A.sip_password, webSocket: `wss://${t}`, callTimeout: 3e4 }, zA(this, ql))), await zA(this, zt).start();
13268
+ yn(this, tn, new jw({ server: t.split(":")[0], user: A.sip_account, password: A.sip_password, webSocket: `wss://${t}`, callTimeout: 3e4 }, zA(this, ql))), await zA(this, tn).start();
13269
13269
  }
13270
13270
  }
13271
13271
  async init({ actionNodeParams: A, enableBrowserAlert: t, logBuiltinEnabled: n, browserAlertTime: r, initialState: i, initDevice: o }) {
@@ -13278,9 +13278,9 @@ const Cl = class Cl {
13278
13278
  const C = new URL(Zi).host;
13279
13279
  m = Zi.includes("https") ? `wss://${C}` : `ws://${C}`, j.updateAnswerDevice(o || u), (o || u) === 1 && await this.initWebRtc(), setTimeout(() => {
13280
13280
  zA(this, ct)._changeState({ data: $.stateObject }), zA(this, ct).changeDevice({ data: { device: o || u } });
13281
- }, 500), gt.getInstance({ url: `${m}/ccs-ws/api/v1/ws/call/${l}?Authorization=`, sipClient: zA(this, zt) }), cn(this, ut, new FM(zA(this, zt))), A && a && (cn(this, Zr, !0), new xM({ container: a, rttHTML: s, statusParams: { state: Ee.IDLE, statusName: "空闲" } }, this, zA(this, ut))), $.enableBrowserAlert = t, t && Hi.requestPermission(), hA.emit(KA.AGENT_INIT_STATUS, !0), cn(this, so, !0), clearInterval(hn._timer), hn._timer = null, za(this, Xr, _0).call(this);
13281
+ }, 500), gt.getInstance({ url: `${m}/ccs-ws/api/v1/ws/call/${l}?Authorization=`, sipClient: zA(this, tn) }), yn(this, ut, new FM(zA(this, tn))), A && a && (yn(this, Zr, !0), new xM({ container: a, rttHTML: s, statusParams: { state: Ee.IDLE, statusName: "空闲" } }, this, zA(this, ut))), $.enableBrowserAlert = t, t && Hi.requestPermission(), hA.emit(KA.AGENT_INIT_STATUS, !0), yn(this, so, !0), clearInterval(gn._timer), gn._timer = null, za(this, Xr, _0).call(this);
13282
13282
  } catch {
13283
- zA(this, Zr) && gn("初始化失败"), hA.emit(KA.AGENT_INIT_STATUS, !1), cn(this, so, !1);
13283
+ zA(this, Zr) && dn("初始化失败"), hA.emit(KA.AGENT_INIT_STATUS, !1), yn(this, so, !1);
13284
13284
  }
13285
13285
  }
13286
13286
  on(A, t) {
@@ -13294,11 +13294,11 @@ const Cl = class Cl {
13294
13294
  }
13295
13295
  async destroyRtc() {
13296
13296
  var A;
13297
- await ((A = zA(this, zt)) == null ? void 0 : A.destroy()), cn(this, zt, null);
13297
+ await ((A = zA(this, tn)) == null ? void 0 : A.destroy()), yn(this, tn, null);
13298
13298
  }
13299
13299
  async destroy() {
13300
13300
  var A, t;
13301
- hn._instance && (await this.destroyRtc(), clearInterval(zA(this, ao)), gt.__internalClose(), hA.emit(KA.DESTROY), this.offAll(), (A = zA(this, Da)) == null || A.call(this), (t = zA(this, xa)) == null || t.call(this), cn(this, Zr, !1), hn._instance = null, j.reset(), j.updateSelectOutNumber(""), clearInterval(hn._timer), hn._timer = null);
13301
+ gn._instance && (await this.destroyRtc(), clearInterval(zA(this, ao)), gt.__internalClose(), hA.emit(KA.DESTROY), this.offAll(), (A = zA(this, Da)) == null || A.call(this), (t = zA(this, xa)) == null || t.call(this), yn(this, Zr, !1), gn._instance = null, j.reset(), j.updateSelectOutNumber(""), clearInterval(gn._timer), gn._timer = null);
13302
13302
  }
13303
13303
  get call_api() {
13304
13304
  const A = (t) => (...n) => {
@@ -13341,7 +13341,7 @@ const Cl = class Cl {
13341
13341
  $.browserAlertTime = A || 3e3;
13342
13342
  }
13343
13343
  };
13344
- zt = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), ao = new WeakMap(), Zr = new WeakMap(), Da = new WeakMap(), xa = new WeakMap(), so = new WeakMap(), mr = new WeakMap(), fl = new WeakMap(), ml = new WeakMap(), Xr = new WeakSet(), X0 = async function() {
13344
+ tn = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), ao = new WeakMap(), Zr = new WeakMap(), Da = new WeakMap(), xa = new WeakMap(), so = new WeakMap(), mr = new WeakMap(), fl = new WeakMap(), ml = new WeakMap(), Xr = new WeakSet(), X0 = async function() {
13345
13345
  const A = j.get("isNextState");
13346
13346
  try {
13347
13347
  await DM(), A || j.updateIsNextState(!0);
@@ -13349,12 +13349,12 @@ zt = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), ao = new WeakMap(),
13349
13349
  A && j.updateIsNextState(!1);
13350
13350
  }
13351
13351
  }, _0 = function() {
13352
- hn._timer || (hn._timer = setInterval(() => za(this, Xr, X0).call(this), 3e3));
13352
+ gn._timer || (gn._timer = setInterval(() => za(this, Xr, X0).call(this), 3e3));
13353
13353
  }, ql = new WeakMap(), $0 = async function() {
13354
- return zA(this, zt) ? zA(this, zt).getNetworkStats() : {};
13354
+ return zA(this, tn) ? zA(this, tn).getNetworkStats() : {};
13355
13355
  }, Cl._instance = null, Cl._timer = null;
13356
13356
  let Ut = Cl;
13357
- hn = Ut;
13357
+ gn = Ut;
13358
13358
  var on = function() {
13359
13359
  return on = Object.assign || function(A) {
13360
13360
  for (var t, n = 1, r = arguments.length; n < r; n++) {
@@ -20742,7 +20742,7 @@ function ed(e) {
20742
20742
  A[n] = A[n] || [], A[n].push(t);
20743
20743
  }), A;
20744
20744
  }
20745
- function mn(e) {
20745
+ function fn(e) {
20746
20746
  for (var A = arguments.length, t = new Array(A > 1 ? A - 1 : 0), n = 1; n < A; n++)
20747
20747
  t[n - 1] = arguments[n];
20748
20748
  var r = 0, i = t.length;
@@ -20874,23 +20874,23 @@ function Xf(e, A) {
20874
20874
  return e;
20875
20875
  }
20876
20876
  var Di = "enum", uR = function(A, t, n, r, i) {
20877
- A[Di] = Array.isArray(A[Di]) ? A[Di] : [], A[Di].indexOf(t) === -1 && r.push(mn(i.messages[Di], A.fullField, A[Di].join(", ")));
20877
+ A[Di] = Array.isArray(A[Di]) ? A[Di] : [], A[Di].indexOf(t) === -1 && r.push(fn(i.messages[Di], A.fullField, A[Di].join(", ")));
20878
20878
  }, VR = function(A, t, n, r, i) {
20879
20879
  if (A.pattern) {
20880
20880
  if (A.pattern instanceof RegExp)
20881
- A.pattern.lastIndex = 0, A.pattern.test(t) || r.push(mn(i.messages.pattern.mismatch, A.fullField, t, A.pattern));
20881
+ A.pattern.lastIndex = 0, A.pattern.test(t) || r.push(fn(i.messages.pattern.mismatch, A.fullField, t, A.pattern));
20882
20882
  else if (typeof A.pattern == "string") {
20883
20883
  var o = new RegExp(A.pattern);
20884
- o.test(t) || r.push(mn(i.messages.pattern.mismatch, A.fullField, t, A.pattern));
20884
+ o.test(t) || r.push(fn(i.messages.pattern.mismatch, A.fullField, t, A.pattern));
20885
20885
  }
20886
20886
  }
20887
20887
  }, dR = function(A, t, n, r, i) {
20888
20888
  var o = typeof A.len == "number", a = typeof A.min == "number", s = typeof A.max == "number", l = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, u = t, V = null, d = typeof t == "number", p = typeof t == "string", m = Array.isArray(t);
20889
20889
  if (d ? V = "number" : p ? V = "string" : m && (V = "array"), !V)
20890
20890
  return !1;
20891
- m && (u = t.length), p && (u = t.replace(l, "_").length), o ? u !== A.len && r.push(mn(i.messages[V].len, A.fullField, A.len)) : a && !s && u < A.min ? r.push(mn(i.messages[V].min, A.fullField, A.min)) : s && !a && u > A.max ? r.push(mn(i.messages[V].max, A.fullField, A.max)) : a && s && (u < A.min || u > A.max) && r.push(mn(i.messages[V].range, A.fullField, A.min, A.max));
20891
+ m && (u = t.length), p && (u = t.replace(l, "_").length), o ? u !== A.len && r.push(fn(i.messages[V].len, A.fullField, A.len)) : a && !s && u < A.min ? r.push(fn(i.messages[V].min, A.fullField, A.min)) : s && !a && u > A.max ? r.push(fn(i.messages[V].max, A.fullField, A.max)) : a && s && (u < A.min || u > A.max) && r.push(fn(i.messages[V].range, A.fullField, A.min, A.max));
20892
20892
  }, $C = function(A, t, n, r, i, o) {
20893
- A.required && (!n.hasOwnProperty(A.field) || St(t, o || A.type)) && r.push(mn(i.messages.required, A.fullField));
20893
+ A.required && (!n.hasOwnProperty(A.field) || St(t, o || A.type)) && r.push(fn(i.messages.required, A.fullField));
20894
20894
  }, ps;
20895
20895
  const gR = function() {
20896
20896
  if (ps)
@@ -20979,9 +20979,9 @@ var _f = {
20979
20979
  return;
20980
20980
  }
20981
20981
  var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], a = A.type;
20982
- o.indexOf(a) > -1 ? ea[a](t) || r.push(mn(i.messages.types[a], A.fullField, A.type)) : a && ne(t) !== A.type && r.push(mn(i.messages.types[a], A.fullField, A.type));
20982
+ o.indexOf(a) > -1 ? ea[a](t) || r.push(fn(i.messages.types[a], A.fullField, A.type)) : a && ne(t) !== A.type && r.push(fn(i.messages.types[a], A.fullField, A.type));
20983
20983
  }, pR = function(A, t, n, r, i) {
20984
- (/^\s+$/.test(t) || t === "") && r.push(mn(i.messages.whitespace, A.fullField));
20984
+ (/^\s+$/.test(t) || t === "") && r.push(fn(i.messages.whitespace, A.fullField));
20985
20985
  };
20986
20986
  const Oe = {
20987
20987
  required: $C,
@@ -21211,7 +21211,7 @@ var ka = /* @__PURE__ */ function() {
21211
21211
  C(E);
21212
21212
  else {
21213
21213
  if (f.required && !m.value)
21214
- return f.message !== void 0 ? E = [].concat(f.message).map(zf(f, o)) : a.error && (E = [a.error(f, mn(a.messages.required, f.field))]), C(E);
21214
+ return f.message !== void 0 ? E = [].concat(f.message).map(zf(f, o)) : a.error && (E = [a.error(f, fn(a.messages.required, f.field))]), C(E);
21215
21215
  var h = {};
21216
21216
  f.defaultField && Object.keys(m.value).map(function(S) {
21217
21217
  h[S] = f.defaultField;
@@ -21255,7 +21255,7 @@ var ka = /* @__PURE__ */ function() {
21255
21255
  key: "getType",
21256
21256
  value: function(t) {
21257
21257
  if (t.type === void 0 && t.pattern instanceof RegExp && (t.type = "pattern"), typeof t.validator != "function" && t.type && !sa.hasOwnProperty(t.type))
21258
- throw new Error(mn("Unknown rule type %s", t.type));
21258
+ throw new Error(fn("Unknown rule type %s", t.type));
21259
21259
  return t.type || "string";
21260
21260
  }
21261
21261
  }, {
@@ -21276,7 +21276,7 @@ O(ka, "register", function(A, t) {
21276
21276
  O(ka, "warning", _C);
21277
21277
  O(ka, "messages", $V);
21278
21278
  O(ka, "validators", sa);
21279
- var Vn = "'${name}' is not a valid ${type}", Av = {
21279
+ var un = "'${name}' is not a valid ${type}", Av = {
21280
21280
  default: "Validation error on field '${name}'",
21281
21281
  required: "'${name}' is required",
21282
21282
  enum: "'${name}' must be one of [${enum}]",
@@ -21287,19 +21287,19 @@ var Vn = "'${name}' is not a valid ${type}", Av = {
21287
21287
  invalid: "'${name}' is invalid date"
21288
21288
  },
21289
21289
  types: {
21290
- string: Vn,
21291
- method: Vn,
21292
- array: Vn,
21293
- object: Vn,
21294
- number: Vn,
21295
- date: Vn,
21296
- boolean: Vn,
21297
- integer: Vn,
21298
- float: Vn,
21299
- regexp: Vn,
21300
- email: Vn,
21301
- url: Vn,
21302
- hex: Vn
21290
+ string: un,
21291
+ method: un,
21292
+ array: un,
21293
+ object: un,
21294
+ number: un,
21295
+ date: un,
21296
+ boolean: un,
21297
+ integer: un,
21298
+ float: un,
21299
+ regexp: un,
21300
+ email: un,
21301
+ url: un,
21302
+ hex: un
21303
21303
  },
21304
21304
  string: {
21305
21305
  len: "'${name}' must be exactly ${len} characters",
@@ -22644,7 +22644,7 @@ Ya.Field = tv;
22644
22644
  Ya.List = kR;
22645
22645
  Ya.useForm = rv;
22646
22646
  Ya.useWatch = JR;
22647
- function vn(e, A) {
22647
+ function Cn(e, A) {
22648
22648
  var t = Object.assign({}, e);
22649
22649
  return Array.isArray(A) && A.forEach(function(n) {
22650
22650
  delete t[n];
@@ -23072,7 +23072,7 @@ var lD = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
23072
23072
  }, fA = function(dA) {
23073
23073
  G(""), k(), T.current && nl(T.current, dA, n);
23074
23074
  }, bA = lA && "".concat(u, "-out-of-range"), TA = function() {
23075
- var dA = vn(e, [
23075
+ var dA = Cn(e, [
23076
23076
  "prefixCls",
23077
23077
  "onPressEnter",
23078
23078
  "addonBefore",
@@ -23845,7 +23845,7 @@ const kD = (e) => e ? /* @__PURE__ */ c.createElement(pv, null) : /* @__PURE__ *
23845
23845
  getPrefixCls: B
23846
23846
  } = c.useContext(Ze), M = B("input", q), g = B("input-password", f), Q = r && m(g), v = oA(g, C, {
23847
23847
  [`${g}-${y}`]: !!y
23848
- }), E = Object.assign(Object.assign({}, vn(w, ["suffix", "iconRender", "visibilityToggle"])), {
23848
+ }), E = Object.assign(Object.assign({}, Cn(w, ["suffix", "iconRender", "visibilityToggle"])), {
23849
23849
  type: l ? "text" : "password",
23850
23850
  className: v,
23851
23851
  prefixCls: M,
@@ -25389,7 +25389,7 @@ const Kx = {
25389
25389
  }, dA = $r((wA) => {
25390
25390
  var le, ce;
25391
25391
  return (ce = (le = V ?? TA) !== null && le !== void 0 ? le : aA) !== null && ce !== void 0 ? ce : wA;
25392
- }), SA = dA && (n = EA[dA]) !== null && n !== void 0 ? n : "", jA = eA ? "loading" : q, XA = vn(h, ["navigate"]), _A = oA(H, P, AA, {
25392
+ }), SA = dA && (n = EA[dA]) !== null && n !== void 0 ? n : "", jA = eA ? "loading" : q, XA = Cn(h, ["navigate"]), _A = oA(H, P, AA, {
25393
25393
  [`${H}-${u}`]: u !== "default" && u,
25394
25394
  // line(253 - 254): Compatible with versions earlier than 5.21.0
25395
25395
  [`${H}-${I}`]: I,
@@ -25951,7 +25951,7 @@ var fT = `
25951
25951
  top:0 !important;
25952
25952
  right:0 !important;
25953
25953
  pointer-events: none !important;
25954
- `, mT = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "font-variant", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing", "word-break", "white-space"], nu = {}, dn;
25954
+ `, mT = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "font-variant", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing", "word-break", "white-space"], nu = {}, Vn;
25955
25955
  function qT(e) {
25956
25956
  var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = e.getAttribute("id") || e.getAttribute("data-reactid") || e.getAttribute("name");
25957
25957
  if (A && nu[t])
@@ -25968,13 +25968,13 @@ function qT(e) {
25968
25968
  }
25969
25969
  function CT(e) {
25970
25970
  var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
25971
- dn || (dn = document.createElement("textarea"), dn.setAttribute("tab-index", "-1"), dn.setAttribute("aria-hidden", "true"), dn.setAttribute("name", "hiddenTextarea"), document.body.appendChild(dn)), e.getAttribute("wrap") ? dn.setAttribute("wrap", e.getAttribute("wrap")) : dn.removeAttribute("wrap");
25971
+ Vn || (Vn = document.createElement("textarea"), Vn.setAttribute("tab-index", "-1"), Vn.setAttribute("aria-hidden", "true"), Vn.setAttribute("name", "hiddenTextarea"), document.body.appendChild(Vn)), e.getAttribute("wrap") ? Vn.setAttribute("wrap", e.getAttribute("wrap")) : Vn.removeAttribute("wrap");
25972
25972
  var r = qT(e, A), i = r.paddingSize, o = r.borderSize, a = r.boxSizing, s = r.sizingStyle;
25973
- dn.setAttribute("style", "".concat(s, ";").concat(fT)), dn.value = e.value || e.placeholder || "";
25974
- var l = void 0, u = void 0, V, d = dn.scrollHeight;
25973
+ Vn.setAttribute("style", "".concat(s, ";").concat(fT)), Vn.value = e.value || e.placeholder || "";
25974
+ var l = void 0, u = void 0, V, d = Vn.scrollHeight;
25975
25975
  if (a === "border-box" ? d += o : a === "content-box" && (d -= i), t !== null || n !== null) {
25976
- dn.value = " ";
25977
- var p = dn.scrollHeight - i;
25976
+ Vn.value = " ";
25977
+ var p = Vn.scrollHeight - i;
25978
25978
  t !== null && (l = p * t, a === "border-box" && (l = l + i + o), d = Math.max(l, d)), n !== null && (u = p * n, a === "border-box" && (u = u + i + o), V = d > u ? "" : "hidden", d = Math.min(u, d));
25979
25979
  }
25980
25980
  var m = {
@@ -26334,7 +26334,7 @@ wi.OTP = xD;
26334
26334
  var Uv = /* @__PURE__ */ c.createContext(null), hm = [];
26335
26335
  function QT(e, A) {
26336
26336
  var t = c.useState(function() {
26337
- if (!Xt())
26337
+ if (!zt())
26338
26338
  return null;
26339
26339
  var m = document.createElement("div");
26340
26340
  return process.env.NODE_ENV !== "production" && A && m.setAttribute("data-debug", A), m;
@@ -26421,10 +26421,10 @@ function OT(e) {
26421
26421
  return FT;
26422
26422
  }
26423
26423
  var fm = function(A) {
26424
- return A === !1 ? !1 : !Xt() || !A ? null : typeof A == "string" ? document.querySelector(A) : typeof A == "function" ? A() : A;
26424
+ return A === !1 ? !1 : !zt() || !A ? null : typeof A == "string" ? document.querySelector(A) : typeof A == "function" ? A() : A;
26425
26425
  }, qg = /* @__PURE__ */ c.forwardRef(function(e, A) {
26426
26426
  var t = e.open, n = e.autoLock, r = e.getContainer, i = e.debug, o = e.autoDestroy, a = o === void 0 ? !0 : o, s = e.children, l = c.useState(t), u = _(l, 2), V = u[0], d = u[1], p = V || t;
26427
- process.env.NODE_ENV !== "production" && ve(Xt() || !t, "Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."), c.useEffect(function() {
26427
+ process.env.NODE_ENV !== "production" && ve(zt() || !t, "Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."), c.useEffect(function() {
26428
26428
  (a || t) && d(t);
26429
26429
  }, [t, a]);
26430
26430
  var m = c.useState(function() {
@@ -26435,14 +26435,14 @@ var fm = function(A) {
26435
26435
  q(R ?? null);
26436
26436
  });
26437
26437
  var y = QT(p && !f, i), w = _(y, 2), B = w[0], M = w[1], g = f ?? B;
26438
- TT(n && t && Xt() && (g === B || g === document.body));
26438
+ TT(n && t && zt() && (g === B || g === document.body));
26439
26439
  var Q = null;
26440
26440
  if (s && _r(s) && A) {
26441
26441
  var v = s;
26442
26442
  Q = v.ref;
26443
26443
  }
26444
26444
  var E = Ci(Q, A);
26445
- if (!p || !Xt() || f === void 0)
26445
+ if (!p || !zt() || f === void 0)
26446
26446
  return null;
26447
26447
  var h = g === !1 || OT(), I = s;
26448
26448
  return A && (I = /* @__PURE__ */ c.cloneElement(s, {
@@ -26696,7 +26696,7 @@ function ZT(e, A, t, n, r, i, o) {
26696
26696
  e || m();
26697
26697
  var C = at(function() {
26698
26698
  if (A && t && e) {
26699
- let yn = function(Oo, Vr) {
26699
+ let In = function(Oo, Vr) {
26700
26700
  var Rr = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : SA, Uo = G.x + Oo, Ja = G.y + Vr, cc = Uo + J, uc = Ja + gA, Vc = Math.max(Uo, Rr.left), WA = Math.max(Ja, Rr.top), fe = Math.min(cc, Rr.right), ot = Math.min(uc, Rr.bottom);
26701
26701
  return Math.max(0, (fe - Vc) * (ot - WA));
26702
26702
  }, Si = function() {
@@ -26744,7 +26744,7 @@ function ZT(e, A, t, n, r, i, o) {
26744
26744
  return;
26745
26745
  var GA = T.offset, $A = T.targetOffset, Ve = Im(G, GA), te = _(Ve, 2), RA = te[0], wA = te[1], le = Im(k, $A), ce = _(le, 2), Ce = ce[0], Fe = ce[1];
26746
26746
  k.x -= Ce, k.y -= Fe;
26747
- var At = T.points || [], $e = _(At, 2), it = $e[0], et = $e[1], Pe = ym(et), Re = ym(it), me = Ti(k, Pe), HA = Ti(G, Re), Ae = U({}, T), MA = me.x - HA.x + RA, ie = me.y - HA.y + wA, qe = yn(MA, ie), DA = yn(MA, ie, dA), vA = Ti(k, ["t", "l"]), YA = Ti(G, ["t", "l"]), ZA = Ti(k, ["b", "r"]), UA = Ti(G, ["b", "r"]), b = T.overflow || {}, Z = b.adjustX, K = b.adjustY, pA = b.shiftX, NA = b.shiftY, re = function(Vr) {
26747
+ var At = T.points || [], $e = _(At, 2), it = $e[0], et = $e[1], Pe = ym(et), Re = ym(it), me = Ti(k, Pe), HA = Ti(G, Re), Ae = U({}, T), MA = me.x - HA.x + RA, ie = me.y - HA.y + wA, qe = In(MA, ie), DA = In(MA, ie, dA), vA = Ti(k, ["t", "l"]), YA = Ti(G, ["t", "l"]), ZA = Ti(k, ["b", "r"]), UA = Ti(G, ["b", "r"]), b = T.overflow || {}, Z = b.adjustX, K = b.adjustY, pA = b.shiftX, NA = b.shiftY, re = function(Vr) {
26748
26748
  return typeof Vr == "boolean" ? Vr : Vr >= 0;
26749
26749
  }, PA, oe, ke, he;
26750
26750
  Si();
@@ -26752,7 +26752,7 @@ function ZT(e, A, t, n, r, i, o) {
26752
26752
  if (Me && Re[0] === "t" && (oe > jA.bottom || p.current.bt)) {
26753
26753
  var QA = ie;
26754
26754
  qA ? QA -= gA - cA : QA = vA.y - UA.y - wA;
26755
- var ue = yn(MA, QA), de = yn(MA, QA, dA);
26755
+ var ue = In(MA, QA), de = In(MA, QA, dA);
26756
26756
  // Of course use larger one
26757
26757
  ue > qe || ue === qe && (!OA || // Choose recommend one
26758
26758
  de >= DA) ? (p.current.bt = !0, ie = QA, wA = -wA, Ae.points = [Or(Re, 0), Or(Pe, 0)]) : p.current.bt = !1;
@@ -26760,24 +26760,24 @@ function ZT(e, A, t, n, r, i, o) {
26760
26760
  if (Me && Re[0] === "b" && (PA < jA.top || p.current.tb)) {
26761
26761
  var Ge = ie;
26762
26762
  qA ? Ge += gA - cA : Ge = ZA.y - YA.y - wA;
26763
- var kt = yn(MA, Ge), dt = yn(MA, Ge, dA);
26763
+ var kt = In(MA, Ge), dt = In(MA, Ge, dA);
26764
26764
  // Of course use larger one
26765
26765
  kt > qe || kt === qe && (!OA || // Choose recommend one
26766
26766
  dt >= DA) ? (p.current.tb = !0, ie = Ge, wA = -wA, Ae.points = [Or(Re, 0), Or(Pe, 0)]) : p.current.tb = !1;
26767
26767
  }
26768
- var _t = re(Z), _n = Re[1] === Pe[1];
26769
- if (_t && Re[1] === "l" && (he > jA.right || p.current.rl)) {
26768
+ var Xt = re(Z), _n = Re[1] === Pe[1];
26769
+ if (Xt && Re[1] === "l" && (he > jA.right || p.current.rl)) {
26770
26770
  var jt = MA;
26771
26771
  _n ? jt -= J - sA : jt = vA.x - UA.x - RA;
26772
- var Lt = yn(jt, ie), Gn = yn(jt, ie, dA);
26772
+ var Lt = In(jt, ie), Gn = In(jt, ie, dA);
26773
26773
  // Of course use larger one
26774
26774
  Lt > qe || Lt === qe && (!OA || // Choose recommend one
26775
26775
  Gn >= DA) ? (p.current.rl = !0, MA = jt, RA = -RA, Ae.points = [Or(Re, 1), Or(Pe, 1)]) : p.current.rl = !1;
26776
26776
  }
26777
- if (_t && Re[1] === "r" && (ke < jA.left || p.current.lr)) {
26777
+ if (Xt && Re[1] === "r" && (ke < jA.left || p.current.lr)) {
26778
26778
  var Ht = MA;
26779
26779
  _n ? Ht += J - sA : Ht = ZA.x - YA.x - RA;
26780
- var cr = yn(Ht, ie), kn = yn(Ht, ie, dA);
26780
+ var cr = In(Ht, ie), kn = In(Ht, ie, dA);
26781
26781
  // Of course use larger one
26782
26782
  cr > qe || cr === qe && (!OA || // Choose recommend one
26783
26783
  kn >= DA) ? (p.current.lr = !0, MA = Ht, RA = -RA, Ae.points = [Or(Re, 1), Or(Pe, 1)]) : p.current.lr = !1;
@@ -26787,7 +26787,7 @@ function ZT(e, A, t, n, r, i, o) {
26787
26787
  typeof Jt == "number" && (ke < dA.left && (MA -= ke - dA.left - RA, k.x + sA < dA.left + Jt && (MA += k.x - dA.left + sA - Jt)), he > dA.right && (MA -= he - dA.right - RA, k.x > dA.right - Jt && (MA += k.x - dA.right + Jt)));
26788
26788
  var sn = NA === !0 ? 0 : NA;
26789
26789
  typeof sn == "number" && (PA < dA.top && (ie -= PA - dA.top - wA, k.y + cA < dA.top + sn && (ie += k.y - dA.top + cA - sn)), oe > dA.bottom && (ie -= oe - dA.bottom - wA, k.y > dA.bottom - sn && (ie += k.y - dA.bottom + sn)));
26790
- var En = G.x + MA, In = En + J, $n = G.y + ie, ur = $n + gA, Se = k.x, kA = Se + sA, pe = k.y, ye = pe + cA, Te = Math.max(En, Se), Ue = Math.min(In, kA), Bt = (Te + Ue) / 2, Qt = Bt - En, $t = Math.max($n, pe), ln = Math.min(ur, ye), An = ($t + ln) / 2, en = An - $n;
26790
+ var vn = G.x + MA, En = vn + J, $n = G.y + ie, ur = $n + gA, Se = k.x, kA = Se + sA, pe = k.y, ye = pe + cA, Te = Math.max(vn, Se), Ue = Math.min(En, kA), Bt = (Te + Ue) / 2, Qt = Bt - vn, _t = Math.max($n, pe), ln = Math.min(ur, ye), $t = (_t + ln) / 2, An = $t - $n;
26791
26791
  o == null || o(A, Ae);
26792
26792
  var yt = XA.right - G.x - (MA + G.width), Ai = XA.bottom - G.y - (ie + G.height);
26793
26793
  _A === 1 && (MA = Math.round(MA), yt = Math.round(yt)), LA === 1 && (ie = Math.round(ie), Ai = Math.round(Ai));
@@ -26798,7 +26798,7 @@ function ZT(e, A, t, n, r, i, o) {
26798
26798
  offsetR: yt / _A,
26799
26799
  offsetB: Ai / LA,
26800
26800
  arrowX: Qt / _A,
26801
- arrowY: en / LA,
26801
+ arrowY: An / LA,
26802
26802
  scaleX: _A,
26803
26803
  scaleY: LA,
26804
26804
  align: Ae
@@ -26923,15 +26923,15 @@ function HT() {
26923
26923
  }, [me]);
26924
26924
  var Z = c.useState(null), K = _(Z, 2), pA = K[0], NA = K[1], re = c.useState(null), PA = _(re, 2), oe = PA[0], ke = PA[1], he = function(fe) {
26925
26925
  ke([fe.clientX, fe.clientY]);
26926
- }, Me = ZT(me, jA, G && oe !== null ? oe : Ve, D, T, F, H), qA = _(Me, 11), QA = qA[0], ue = qA[1], de = qA[2], Ge = qA[3], kt = qA[4], dt = qA[5], _t = qA[6], _n = qA[7], jt = qA[8], Lt = qA[9], Gn = qA[10], Ht = kT(IA, s, l, u), cr = _(Ht, 2), kn = cr[0], Jt = cr[1], sn = kn.has("click"), En = Jt.has("click") || Jt.has("contextMenu"), In = at(function() {
26926
+ }, Me = ZT(me, jA, G && oe !== null ? oe : Ve, D, T, F, H), qA = _(Me, 11), QA = qA[0], ue = qA[1], de = qA[2], Ge = qA[3], kt = qA[4], dt = qA[5], Xt = qA[6], _n = qA[7], jt = qA[8], Lt = qA[9], Gn = qA[10], Ht = kT(IA, s, l, u), cr = _(Ht, 2), kn = cr[0], Jt = cr[1], sn = kn.has("click"), vn = Jt.has("click") || Jt.has("contextMenu"), En = at(function() {
26927
26927
  UA || Gn();
26928
26928
  }), $n = function() {
26929
- Ae.current && G && En && vA(!1);
26929
+ Ae.current && G && vn && vA(!1);
26930
26930
  };
26931
- KT(me, Ve, jA, In, $n), rt(function() {
26932
- In();
26931
+ KT(me, Ve, jA, En, $n), rt(function() {
26932
+ En();
26933
26933
  }, [oe, D]), rt(function() {
26934
- me && !(T != null && T[D]) && In();
26934
+ me && !(T != null && T[D]) && En();
26935
26935
  }, [JSON.stringify(F)]);
26936
26936
  var ur = c.useMemo(function() {
26937
26937
  var WA = NT(T, i, Lt, G);
@@ -26941,21 +26941,21 @@ function HT() {
26941
26941
  return {
26942
26942
  nativeElement: RA.current,
26943
26943
  popupElement: _A.current,
26944
- forceAlign: In
26944
+ forceAlign: En
26945
26945
  };
26946
26946
  });
26947
- var Se = c.useState(0), kA = _(Se, 2), pe = kA[0], ye = kA[1], Te = c.useState(0), Ue = _(Te, 2), Bt = Ue[0], Qt = Ue[1], $t = function() {
26947
+ var Se = c.useState(0), kA = _(Se, 2), pe = kA[0], ye = kA[1], Te = c.useState(0), Ue = _(Te, 2), Bt = Ue[0], Qt = Ue[1], _t = function() {
26948
26948
  if (N && Ve) {
26949
26949
  var fe = Ve.getBoundingClientRect();
26950
26950
  ye(fe.width), Qt(fe.height);
26951
26951
  }
26952
26952
  }, ln = function() {
26953
- $t(), In();
26954
- }, An = function(fe) {
26953
+ _t(), En();
26954
+ }, $t = function(fe) {
26955
26955
  b(!1), Gn(), m == null || m(fe);
26956
- }, en = function() {
26956
+ }, An = function() {
26957
26957
  return new Promise(function(fe) {
26958
- $t(), NA(function() {
26958
+ _t(), NA(function() {
26959
26959
  return fe;
26960
26960
  });
26961
26961
  });
@@ -26972,14 +26972,14 @@ function HT() {
26972
26972
  (Pa = ce[WA]) === null || Pa === void 0 || Pa.call.apply(Pa, [ce, lt].concat(Yg));
26973
26973
  };
26974
26974
  }
26975
- (sn || En) && (Ce.onClick = function(WA) {
26975
+ (sn || vn) && (Ce.onClick = function(WA) {
26976
26976
  var fe;
26977
- Ae.current && En ? vA(!1) : !Ae.current && sn && (he(WA), vA(!0));
26977
+ Ae.current && vn ? vA(!1) : !Ae.current && sn && (he(WA), vA(!0));
26978
26978
  for (var ot = arguments.length, wt = new Array(ot > 1 ? ot - 1 : 0), lt = 1; lt < ot; lt++)
26979
26979
  wt[lt - 1] = arguments[lt];
26980
26980
  (fe = ce.onClick) === null || fe === void 0 || fe.call.apply(fe, [ce, WA].concat(wt));
26981
26981
  });
26982
- var Ai = jT(me, En, Ve, jA, B, g, Fe, vA), lc = kn.has("hover"), yn = Jt.has("hover"), Si, Oo;
26982
+ var Ai = jT(me, vn, Ve, jA, B, g, Fe, vA), lc = kn.has("hover"), In = Jt.has("hover"), Si, Oo;
26983
26983
  lc && (yt("onMouseEnter", !0, C, function(WA) {
26984
26984
  he(WA);
26985
26985
  }), yt("onPointerEnter", !0, C, function(WA) {
@@ -26989,7 +26989,7 @@ function HT() {
26989
26989
  }, G && (Ce.onMouseMove = function(WA) {
26990
26990
  var fe;
26991
26991
  (fe = ce.onMouseMove) === null || fe === void 0 || fe.call(ce, WA);
26992
- })), yn && (yt("onMouseLeave", !1, q), yt("onPointerLeave", !1, q), Oo = function() {
26992
+ })), In && (yt("onMouseLeave", !1, q), yt("onPointerLeave", !1, q), Oo = function() {
26993
26993
  vA(!1, q);
26994
26994
  }), kn.has("focus") && yt("onFocus", !0, y), Jt.has("focus") && yt("onBlur", !1, w), kn.has("contextMenu") && (Ce.onContextMenu = function(WA) {
26995
26995
  var fe;
@@ -27010,7 +27010,7 @@ function HT() {
27010
27010
  });
27011
27011
  var cc = /* @__PURE__ */ c.cloneElement(le, U(U({}, Rr), Uo)), uc = {
27012
27012
  x: dt,
27013
- y: _t
27013
+ y: Xt
27014
27014
  }, Vc = W ? U({}, W !== !0 ? W : {}) : null;
27015
27015
  return /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement(br, {
27016
27016
  disabled: !me,
@@ -27040,8 +27040,8 @@ function HT() {
27040
27040
  mask: B,
27041
27041
  motion: At,
27042
27042
  maskMotion: $e,
27043
- onVisibleChanged: An,
27044
- onPrepare: en,
27043
+ onVisibleChanged: $t,
27044
+ onPrepare: An,
27045
27045
  forceRender: v,
27046
27046
  autoDestroy: cA,
27047
27047
  getPopupContainer: Q,
@@ -27053,7 +27053,7 @@ function HT() {
27053
27053
  offsetY: de,
27054
27054
  offsetR: Ge,
27055
27055
  offsetB: kt,
27056
- onAlign: In,
27056
+ onAlign: En,
27057
27057
  stretch: N,
27058
27058
  targetWidth: pe / _n,
27059
27059
  targetHeight: Bt / jt
@@ -27507,10 +27507,10 @@ function p4(e, A) {
27507
27507
  return jA ? I === null && Q ? HA = i : HA = i.slice(0, Math.min(i.length, S / u)) : typeof m == "number" && (HA = i.slice(0, m)), HA;
27508
27508
  }, [i, u, I, m, jA]), GA = xn(function() {
27509
27509
  return jA ? i.slice(IA + 1) : i.slice(LA.length);
27510
- }, [i, LA, jA, IA]), $A = pn(function(HA, Ae) {
27510
+ }, [i, LA, jA, IA]), $A = hn(function(HA, Ae) {
27511
27511
  var MA;
27512
27512
  return typeof s == "function" ? s(HA) : (MA = s && (HA == null ? void 0 : HA[s])) !== null && MA !== void 0 ? MA : Ae;
27513
- }, [s]), Ve = pn(o || function(HA) {
27513
+ }, [s]), Ve = hn(o || function(HA) {
27514
27514
  return HA;
27515
27515
  }, [o]);
27516
27516
  function te(HA, Ae, MA) {
@@ -27822,7 +27822,7 @@ var Eg = "__RC_UTIL_PATH_SPLIT__", Qm = function(A) {
27822
27822
  function S4() {
27823
27823
  var e = c.useState({}), A = _(e, 2), t = A[1], n = BA(/* @__PURE__ */ new Map()), r = BA(/* @__PURE__ */ new Map()), i = c.useState([]), o = _(i, 2), a = o[0], s = o[1], l = BA(0), u = BA(!1), V = function() {
27824
27824
  u.current || t({});
27825
- }, d = pn(function(w, B) {
27825
+ }, d = hn(function(w, B) {
27826
27826
  process.env.NODE_ENV !== "production" && ve(!n.current.has(w), "Duplicated key '".concat(w, "' used in Menu by path [").concat(B.join(" > "), "]"));
27827
27827
  var M = Qm(B);
27828
27828
  r.current.set(M, w), n.current.set(w, M), l.current += 1;
@@ -27830,15 +27830,15 @@ function S4() {
27830
27830
  w4(function() {
27831
27831
  g === l.current && V();
27832
27832
  });
27833
- }, []), p = pn(function(w, B) {
27833
+ }, []), p = hn(function(w, B) {
27834
27834
  var M = Qm(B);
27835
27835
  r.current.delete(M), n.current.delete(w);
27836
- }, []), m = pn(function(w) {
27836
+ }, []), m = hn(function(w) {
27837
27837
  s(w);
27838
- }, []), C = pn(function(w, B) {
27838
+ }, []), C = hn(function(w, B) {
27839
27839
  var M = n.current.get(w) || "", g = M4(M);
27840
27840
  return B && a.includes(g[0]) && g.unshift(fd), g;
27841
- }, [a]), f = pn(function(w, B) {
27841
+ }, [a]), f = hn(function(w, B) {
27842
27842
  return w.filter(function(M) {
27843
27843
  return M !== void 0;
27844
27844
  }).some(function(M) {
@@ -27848,7 +27848,7 @@ function S4() {
27848
27848
  }, [C]), q = function() {
27849
27849
  var B = yA(n.current.keys());
27850
27850
  return a.length && B.push(fd), B;
27851
- }, y = pn(function(w) {
27851
+ }, y = hn(function(w) {
27852
27852
  var B = "".concat(n.current.get(w)).concat(Eg), M = /* @__PURE__ */ new Set();
27853
27853
  return yA(r.current.keys()).forEach(function(g) {
27854
27854
  g.startsWith(B) && M.add(r.current.get(g));
@@ -27940,7 +27940,7 @@ var R4 = ["title", "attribute", "elementRef"], D4 = ["style", "className", "even
27940
27940
  return It(t, [{
27941
27941
  key: "render",
27942
27942
  value: function() {
27943
- var r = this.props, i = r.title, o = r.attribute, a = r.elementRef, s = Ie(r, R4), l = vn(s, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
27943
+ var r = this.props, i = r.title, o = r.attribute, a = r.elementRef, s = Ie(r, R4), l = Cn(s, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
27944
27944
  return ve(!o, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ c.createElement(ar.Item, FA({}, o, {
27945
27945
  title: typeof i == "string" ? i : void 0
27946
27946
  }, l, {
@@ -27979,7 +27979,7 @@ var R4 = ["title", "attribute", "elementRef"], D4 = ["style", "className", "even
27979
27979
  role: l === null ? "none" : l || "menuitem",
27980
27980
  tabIndex: o ? null : -1,
27981
27981
  "data-menu-id": M && f ? null : f
27982
- }, vn(C, ["extra"]), Y, AA, {
27982
+ }, Cn(C, ["extra"]), Y, AA, {
27983
27983
  component: "li",
27984
27984
  "aria-disabled": o,
27985
27985
  style: U(U({}, X), t),
@@ -28332,7 +28332,7 @@ var J4 = ["className", "title", "eventKey", "children"], P4 = /* @__PURE__ */ c.
28332
28332
  var t = e.eventKey, n = e.children, r = To(t), i = yg(n, r), o = rc();
28333
28333
  return o ? i : /* @__PURE__ */ c.createElement(P4, FA({
28334
28334
  ref: A
28335
- }, vn(e, ["warnKey"])), i);
28335
+ }, Cn(e, ["warnKey"])), i);
28336
28336
  });
28337
28337
  process.env.NODE_ENV !== "production" && (oc.displayName = "MenuItemGroup");
28338
28338
  var W4 = ["label", "children", "key", "type", "extra"];
@@ -28420,21 +28420,21 @@ var z4 = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
28420
28420
  }, [K, NA]);
28421
28421
  var Ge = Ot(I || R && ((t = SA[0]) === null || t === void 0 ? void 0 : t.key), {
28422
28422
  value: I
28423
- }), kt = _(Ge, 2), dt = kt[0], _t = kt[1], _n = ta(function(kA) {
28424
- _t(kA);
28423
+ }), kt = _(Ge, 2), dt = kt[0], Xt = kt[1], _n = ta(function(kA) {
28424
+ Xt(kA);
28425
28425
  }), jt = ta(function() {
28426
- _t(void 0);
28426
+ Xt(void 0);
28427
28427
  });
28428
28428
  So(A, function() {
28429
28429
  return {
28430
28430
  list: $A.current,
28431
28431
  focus: function(pe) {
28432
- var ye, Te = qA(), Ue = pd(Te, Ve), Bt = Ue.elements, Qt = Ue.key2element, $t = Ue.element2key, ln = vg($A.current, Bt), An = dt ?? (ln[0] ? $t.get(ln[0]) : (ye = SA.find(function(Ai) {
28432
+ var ye, Te = qA(), Ue = pd(Te, Ve), Bt = Ue.elements, Qt = Ue.key2element, _t = Ue.element2key, ln = vg($A.current, Bt), $t = dt ?? (ln[0] ? _t.get(ln[0]) : (ye = SA.find(function(Ai) {
28433
28433
  return !Ai.props.disabled;
28434
- })) === null || ye === void 0 ? void 0 : ye.key), en = Qt.get(An);
28435
- if (An && en) {
28434
+ })) === null || ye === void 0 ? void 0 : ye.key), An = Qt.get($t);
28435
+ if ($t && An) {
28436
28436
  var yt;
28437
- en == null || (yt = en.focus) === null || yt === void 0 || yt.call(en, pe);
28437
+ An == null || (yt = An.focus) === null || yt === void 0 || yt.call(An, pe);
28438
28438
  }
28439
28439
  }
28440
28440
  };
@@ -28472,10 +28472,10 @@ var z4 = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
28472
28472
  });
28473
28473
  }
28474
28474
  ga(le, ye, !0) || Ce(ye, !0);
28475
- }), En = function(pe, ye) {
28475
+ }), vn = function(pe, ye) {
28476
28476
  var Te = ye ?? !le.includes(pe);
28477
28477
  sn(pe, Te);
28478
- }, In = y4(qe, dt, te, Ve, $A, qA, Me, _t, En, sA);
28478
+ }, En = y4(qe, dt, te, Ve, $A, qA, Me, Xt, vn, sA);
28479
28479
  c.useEffect(function() {
28480
28480
  GA(!0);
28481
28481
  }, []);
@@ -28526,7 +28526,7 @@ var z4 = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
28526
28526
  onVisibleChange: function(pe) {
28527
28527
  pA(pe);
28528
28528
  },
28529
- onKeyDown: In
28529
+ onKeyDown: En
28530
28530
  }, OA));
28531
28531
  return /* @__PURE__ */ c.createElement(Cg.Provider, {
28532
28532
  value: $n
@@ -28891,7 +28891,7 @@ const Dm = {
28891
28891
  }, []);
28892
28892
  const x = () => {
28893
28893
  Q(!w, "clickTrigger");
28894
- }, T = vn(q, ["collapsed"]), F = w ? d : V, k = a2(F) ? `${F}px` : String(F), N = parseFloat(String(d || 0)) === 0 ? /* @__PURE__ */ c.createElement("span", {
28894
+ }, T = Cn(q, ["collapsed"]), F = w ? d : V, k = a2(F) ? `${F}px` : String(F), N = parseFloat(String(d || 0)) === 0 ? /* @__PURE__ */ c.createElement("span", {
28895
28895
  onClick: x,
28896
28896
  className: oA(`${h}-zero-width-trigger`, `${h}-zero-width-trigger-${u ? "right" : "left"}`),
28897
28897
  style: p
@@ -29296,7 +29296,7 @@ const lE = (e) => {
29296
29296
  };
29297
29297
  !m && !d && (f.title = null, f.open = !1);
29298
29298
  const q = Pn(n).length;
29299
- let y = /* @__PURE__ */ c.createElement(ic, Object.assign({}, vn(e, ["title", "icon", "danger"]), {
29299
+ let y = /* @__PURE__ */ c.createElement(ic, Object.assign({}, Cn(e, ["title", "icon", "danger"]), {
29300
29300
  className: oA({
29301
29301
  [`${s}-item-danger`]: o,
29302
29302
  [`${s}-item-only-child`]: (r ? q + 1 : q) === 1
@@ -30342,7 +30342,7 @@ const dl = /* @__PURE__ */ c.createContext(null), y2 = /* @__PURE__ */ c.forward
30342
30342
  }), [o]), [p] = jl("Menu");
30343
30343
  return /* @__PURE__ */ c.createElement(Vl.Provider, {
30344
30344
  value: d
30345
- }, /* @__PURE__ */ c.createElement(Ka, Object.assign({}, vn(e, ["icon"]), {
30345
+ }, /* @__PURE__ */ c.createElement(Ka, Object.assign({}, Cn(e, ["icon"]), {
30346
30346
  title: V,
30347
30347
  popupClassName: oA(a, t, `${a}-${i || l}`),
30348
30348
  popupStyle: Object.assign({
@@ -30385,7 +30385,7 @@ const D2 = {
30385
30385
  selectable: B,
30386
30386
  onClick: M,
30387
30387
  overflowedIndicatorPopupClassName: g
30388
- } = e, Q = R2(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), v = vn(Q, ["collapsedWidth"]);
30388
+ } = e, Q = R2(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), v = Cn(Q, ["collapsedWidth"]);
30389
30389
  if (process.env.NODE_ENV !== "production") {
30390
30390
  const G = ft("Menu");
30391
30391
  process.env.NODE_ENV !== "production" && G(!("inlineCollapsed" in e && w !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), G.deprecated("items" in e && !e.children, "children", "items");
@@ -30560,7 +30560,7 @@ const Ha = (e) => {
30560
30560
  }, [lA, eA] = jl("Dropdown", d == null ? void 0 : d.zIndex);
30561
30561
  let gA = /* @__PURE__ */ c.createElement(A4, Object.assign({
30562
30562
  alignPoint: X
30563
- }, vn(e, ["rootClassName"]), {
30563
+ }, Cn(e, ["rootClassName"]), {
30564
30564
  mouseEnterDelay: q,
30565
30565
  mouseLeaveDelay: y,
30566
30566
  visible: H,
@@ -32261,9 +32261,9 @@ var z6 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
32261
32261
  var pe = NA(), ye = kA.key, Te = ye === "Enter";
32262
32262
  if (Te && (f !== "combobox" && kA.preventDefault(), MA || DA(!0)), re(!!ce), ye === "Backspace" && !pe && fA && !ce && u.length) {
32263
32263
  for (var Ue = yA(u), Bt = null, Qt = Ue.length - 1; Qt >= 0; Qt -= 1) {
32264
- var $t = Ue[Qt];
32265
- if (!$t.disabled) {
32266
- Ue.splice(Qt, 1), Bt = $t;
32264
+ var _t = Ue[Qt];
32265
+ if (!_t.disabled) {
32266
+ Ue.splice(Qt, 1), Bt = _t;
32267
32267
  break;
32268
32268
  }
32269
32269
  }
@@ -32272,13 +32272,13 @@ var z6 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
32272
32272
  values: [Bt]
32273
32273
  });
32274
32274
  }
32275
- for (var ln = arguments.length, An = new Array(ln > 1 ? ln - 1 : 0), en = 1; en < ln; en++)
32276
- An[en - 1] = arguments[en];
32275
+ for (var ln = arguments.length, $t = new Array(ln > 1 ? ln - 1 : 0), An = 1; An < ln; An++)
32276
+ $t[An - 1] = arguments[An];
32277
32277
  if (MA && (!Te || !PA.current)) {
32278
32278
  var yt;
32279
- Te && (PA.current = !0), (yt = GA.current) === null || yt === void 0 || yt.onKeyDown.apply(yt, [kA].concat(An));
32279
+ Te && (PA.current = !0), (yt = GA.current) === null || yt === void 0 || yt.onKeyDown.apply(yt, [kA].concat($t));
32280
32280
  }
32281
- sA == null || sA.apply(void 0, [kA].concat(An));
32281
+ sA == null || sA.apply(void 0, [kA].concat($t));
32282
32282
  }, ke = function(kA) {
32283
32283
  for (var pe = arguments.length, ye = new Array(pe > 1 ? pe - 1 : 0), Te = 1; Te < pe; Te++)
32284
32284
  ye[Te - 1] = arguments[Te];
@@ -32321,18 +32321,18 @@ var z6 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
32321
32321
  var Ue = setTimeout(function() {
32322
32322
  var ln = de.indexOf(Ue);
32323
32323
  if (ln !== -1 && de.splice(ln, 1), le(), !dA && !Te.contains(document.activeElement)) {
32324
- var An;
32325
- (An = LA.current) === null || An === void 0 || An.focus();
32324
+ var $t;
32325
+ ($t = LA.current) === null || $t === void 0 || $t.focus();
32326
32326
  }
32327
32327
  });
32328
32328
  de.push(Ue);
32329
32329
  }
32330
- for (var Bt = arguments.length, Qt = new Array(Bt > 1 ? Bt - 1 : 0), $t = 1; $t < Bt; $t++)
32331
- Qt[$t - 1] = arguments[$t];
32330
+ for (var Bt = arguments.length, Qt = new Array(Bt > 1 ? Bt - 1 : 0), _t = 1; _t < Bt; _t++)
32331
+ Qt[_t - 1] = arguments[_t];
32332
32332
  CA == null || CA.apply(void 0, [kA].concat(Qt));
32333
- }, kt = c.useState({}), dt = _(kt, 2), _t = dt[1];
32333
+ }, kt = c.useState({}), dt = _(kt, 2), Xt = dt[1];
32334
32334
  function _n() {
32335
- _t({});
32335
+ Xt({});
32336
32336
  }
32337
32337
  var jt;
32338
32338
  Fe && (jt = function(kA) {
@@ -32369,14 +32369,14 @@ var z6 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
32369
32369
  type: "clear",
32370
32370
  values: u
32371
32371
  }), b("", !1, !1);
32372
- }, kn = S6(r, cr, u, T, N, q, ce, f), Jt = kn.allowClear, sn = kn.clearIcon, En = /* @__PURE__ */ c.createElement(L, {
32372
+ }, kn = S6(r, cr, u, T, N, q, ce, f), Jt = kn.allowClear, sn = kn.clearIcon, vn = /* @__PURE__ */ c.createElement(L, {
32373
32373
  ref: GA
32374
- }), In = oA(r, i, O(O(O(O(O(O(O(O(O(O({}, "".concat(r, "-focused"), RA), "".concat(r, "-multiple"), fA), "".concat(r, "-single"), !fA), "".concat(r, "-allow-clear"), T), "".concat(r, "-show-arrow"), Gn), "".concat(r, "-disabled"), q), "".concat(r, "-loading"), y), "".concat(r, "-open"), MA), "".concat(r, "-customize-input"), Ce), "".concat(r, "-show-search"), bA)), $n = /* @__PURE__ */ c.createElement(BE, {
32374
+ }), En = oA(r, i, O(O(O(O(O(O(O(O(O(O({}, "".concat(r, "-focused"), RA), "".concat(r, "-multiple"), fA), "".concat(r, "-single"), !fA), "".concat(r, "-allow-clear"), T), "".concat(r, "-show-arrow"), Gn), "".concat(r, "-disabled"), q), "".concat(r, "-loading"), y), "".concat(r, "-open"), MA), "".concat(r, "-customize-input"), Ce), "".concat(r, "-show-search"), bA)), $n = /* @__PURE__ */ c.createElement(BE, {
32375
32375
  ref: _A,
32376
32376
  disabled: q,
32377
32377
  prefixCls: r,
32378
32378
  visible: qe,
32379
- popupElement: En,
32379
+ popupElement: vn,
32380
32380
  animation: Y,
32381
32381
  transitionName: G,
32382
32382
  dropdownStyle: X,
@@ -32425,7 +32425,7 @@ var z6 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
32425
32425
  onInputBlur: Me
32426
32426
  }))), ur;
32427
32427
  return Fe ? ur = $n : ur = /* @__PURE__ */ c.createElement("div", FA({
32428
- className: In
32428
+ className: En
32429
32429
  }, TA, {
32430
32430
  ref: jA,
32431
32431
  onMouseDown: Ge,
@@ -33000,7 +33000,7 @@ function dF(e, A) {
33000
33000
  };
33001
33001
  }
33002
33002
  for (var QA = 0, ue, de, Ge, kt = X.length, dt = 0; dt < kt; dt += 1) {
33003
- var _t = X[dt], _n = I(_t), jt = T.get(_n), Lt = QA + (jt === void 0 ? o : jt);
33003
+ var Xt = X[dt], _n = I(Xt), jt = T.get(_n), Lt = QA + (jt === void 0 ? o : jt);
33004
33004
  Lt >= iA && ue === void 0 && (ue = dt, de = QA), Lt > iA + i && Ge === void 0 && (Ge = dt), QA = Lt;
33005
33005
  }
33006
33006
  return ue === void 0 && (ue = 0, de = 0, Ge = Math.ceil(i / o)), Ge === void 0 && (Ge = X.length - 1), Ge = Math.min(Ge + 1, X.length - 1), {
@@ -33018,8 +33018,8 @@ function dF(e, A) {
33018
33018
  var Ge = I(de);
33019
33019
  if (Ge === QA) {
33020
33020
  var kt = T.get(QA), dt = kt - o;
33021
- OA(function(_t) {
33022
- return _t + dt;
33021
+ OA(function(Xt) {
33022
+ return Xt + dt;
33023
33023
  });
33024
33024
  }
33025
33025
  }
@@ -33378,7 +33378,7 @@ var pF = function(A, t) {
33378
33378
  }
33379
33379
  var TA = cA.disabled, OA = cA.title;
33380
33380
  cA.children;
33381
- var EA = cA.style, dA = cA.className, SA = Ie(cA, hF), jA = vn(SA, P), XA = F(CA), _A = TA || !XA && D, LA = "".concat(I, "-option"), GA = oA(I, LA, dA, O(O(O(O({}, "".concat(LA, "-grouped"), J), "".concat(LA, "-active"), Y === eA && !_A), "".concat(LA, "-disabled"), _A), "".concat(LA, "-selected"), XA)), $A = AA(lA), Ve = !w || typeof w == "function" || XA, te = typeof $A == "number" ? $A : $A || CA, RA = eq(te) ? te.toString() : void 0;
33381
+ var EA = cA.style, dA = cA.className, SA = Ie(cA, hF), jA = Cn(SA, P), XA = F(CA), _A = TA || !XA && D, LA = "".concat(I, "-option"), GA = oA(I, LA, dA, O(O(O(O({}, "".concat(LA, "-grouped"), J), "".concat(LA, "-active"), Y === eA && !_A), "".concat(LA, "-disabled"), _A), "".concat(LA, "-selected"), XA)), $A = AA(lA), Ve = !w || typeof w == "function" || XA, te = typeof $A == "number" ? $A : $A || CA, RA = eq(te) ? te.toString() : void 0;
33382
33382
  return OA !== void 0 && (RA = OA), /* @__PURE__ */ c.createElement("div", FA({}, qi(jA), g ? {} : z(lA, eA), {
33383
33383
  "aria-selected": H(CA),
33384
33384
  className: GA,
@@ -33459,7 +33459,7 @@ const mF = function(e, A, t, n, r) {
33459
33459
  }), s;
33460
33460
  }, [e, n, r, t, A]);
33461
33461
  };
33462
- var tq = 0, qF = process.env.NODE_ENV !== "test" && Xt();
33462
+ var tq = 0, qF = process.env.NODE_ENV !== "test" && zt();
33463
33463
  function CF() {
33464
33464
  var e;
33465
33465
  return qF ? (e = tq, tq += 1) : e = "TEST_OR_SSR", e;
@@ -34160,7 +34160,7 @@ const ZE = "SECRET_COMBOBOX_MODE_DO_NOT_USE", KE = (e, A) => {
34160
34160
  componentName: "Select"
34161
34161
  })), LA = g === !0 ? {
34162
34162
  clearIcon: _A
34163
- } : g, GA = vn(S, ["suffixIcon", "itemIcon"]), $A = oA(s || l, {
34163
+ } : g, GA = Cn(S, ["suffixIcon", "itemIcon"]), $A = oA(s || l, {
34164
34164
  [`${H}-dropdown-${P}`]: P === "rtl"
34165
34165
  }, o, J, lA, gA), Ve = $r((Ce) => {
34166
34166
  var Fe;
@@ -34528,18 +34528,18 @@ const _F = ({ onPressEnter: e }) => {
34528
34528
  const A = Math.floor(e / 3600), t = Math.floor(e % 3600 / 60), n = e % 60, r = (i) => String(i).padStart(2, "0");
34529
34529
  return `${r(A)}:${r(t)}:${r(n)}`;
34530
34530
  }, AO = () => {
34531
- const [e, A] = we(0), [t, n] = we(!1), r = BA(null), i = BA(0), o = BA(null), a = pn(() => {
34531
+ const [e, A] = we(0), [t, n] = we(!1), r = BA(null), i = BA(0), o = BA(null), a = hn(() => {
34532
34532
  if (r.current != null) {
34533
34533
  const d = Date.now(), p = Math.floor((d - r.current) / 1e3) + i.current;
34534
34534
  A(p);
34535
34535
  }
34536
- }, []), s = pn(() => {
34536
+ }, []), s = hn(() => {
34537
34537
  t || (n(!0), r.current = Date.now(), o.current = setInterval(a, 1e3));
34538
- }, [t, a]), l = pn(() => {
34538
+ }, [t, a]), l = hn(() => {
34539
34539
  t && (n(!1), r.current != null && (i.current += Math.floor((Date.now() - r.current) / 1e3)), o.current && (clearInterval(o.current), o.current = null), r.current = null);
34540
- }, [t]), u = pn(() => {
34540
+ }, [t]), u = hn(() => {
34541
34541
  n(!1), A(0), r.current = null, i.current = 0, o.current && (clearInterval(o.current), o.current = null);
34542
- }, []), V = pn(() => {
34542
+ }, []), V = hn(() => {
34543
34543
  u(), n(!0), r.current = Date.now(), o.current = setInterval(a, 1e3);
34544
34544
  }, [u, a]);
34545
34545
  return Je(() => () => {
@@ -34686,7 +34686,7 @@ const dO = {
34686
34686
  空闲: 1,
34687
34687
  离线: 0,
34688
34688
  未注册: 4
34689
- }, pO = cq(() => import("./ConsultModel-BcSrp0rZ.mjs")), fO = cq(() => import("./TransferModel-C4EzgW-A.mjs")), cu = Vt.div`
34689
+ }, pO = cq(() => import("./ConsultModel-CaFvB87C.mjs")), fO = cq(() => import("./TransferModel-Bb0DvH-1.mjs")), cu = Vt.div`
34690
34690
  width: 25px;
34691
34691
  height: 25px;
34692
34692
  background: ${({
@@ -35232,24 +35232,6 @@ const dO = {
35232
35232
  size: 25
35233
35233
  })
35234
35234
  },
35235
- {
35236
- name: "reject",
35237
- icon: /* @__PURE__ */ uA.jsx(Qe, {
35238
- name: "jujie",
35239
- color: "red",
35240
- onClick: wA,
35241
- size: 25
35242
- })
35243
- },
35244
- {
35245
- name: "hangup",
35246
- icon: /* @__PURE__ */ uA.jsx(Qe, {
35247
- name: "guaji",
35248
- color: "red",
35249
- onClick: le,
35250
- size: 25
35251
- })
35252
- },
35253
35235
  {
35254
35236
  name: "hold",
35255
35237
  icon: /* @__PURE__ */ uA.jsx(Qe, {
@@ -35383,6 +35365,24 @@ const dO = {
35383
35365
  onClick: qe,
35384
35366
  size: 25
35385
35367
  })
35368
+ },
35369
+ {
35370
+ name: "reject",
35371
+ icon: /* @__PURE__ */ uA.jsx(Qe, {
35372
+ name: "jujie",
35373
+ color: "red",
35374
+ onClick: wA,
35375
+ size: 25
35376
+ })
35377
+ },
35378
+ {
35379
+ name: "hangup",
35380
+ icon: /* @__PURE__ */ uA.jsx(Qe, {
35381
+ name: "guaji",
35382
+ color: "red",
35383
+ onClick: le,
35384
+ size: 25
35385
+ })
35386
35386
  }
35387
35387
  ].filter(({
35388
35388
  name: Z
@@ -35788,7 +35788,7 @@ export {
35788
35788
  se as D,
35789
35789
  Nr as E,
35790
35790
  ze as F,
35791
- Xt as G,
35791
+ zt as G,
35792
35792
  yA as H,
35793
35793
  wi as I,
35794
35794
  Mr as J,
@@ -35850,7 +35850,7 @@ export {
35850
35850
  Tb as l,
35851
35851
  _e as m,
35852
35852
  ma as n,
35853
- vn as o,
35853
+ Cn as o,
35854
35854
  qi as p,
35855
35855
  NO as q,
35856
35856
  an as r,