@ezuikit/player-theme 2.1.2-beta.1 → 2.1.2-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.2-beta.1
3
- * Copyright (c) 2026-02-09 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.2-beta.3
3
+ * Copyright (c) 2026-03-10 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
@@ -489,6 +489,7 @@
489
489
  /** 对讲状态变化 */ talkingChange: 'talkingChange',
490
490
  /** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
491
491
  /** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
492
+ /** AI对话框状态变化 */ aichatChange: 'aichatChange',
492
493
  /** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
493
494
  records: 'records',
494
495
  ptzSpeedChange: 'ptzSpeedChange',
@@ -534,6 +535,8 @@
534
535
  /** 对讲控件销毁 */ talkDestroy: 'Control.talkDestroy',
535
536
  /** 语音广播状态变化 */ broadcastChange: 'Control.broadcastChange',
536
537
  /** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
538
+ /** AI对话框状态变化 */ aichatChange: 'Control.aichatChange',
539
+ /** AI对话框控件销毁 */ aichatDestroy: 'Control.aichatDestroy',
537
540
  /** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
538
541
  /** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
539
542
  /** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
@@ -585,7 +588,7 @@
585
588
  if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
586
589
  return Constructor;
587
590
  }
588
- function _inherits$s(subClass, superClass) {
591
+ function _inherits$t(subClass, superClass) {
589
592
  if (typeof superClass !== "function" && superClass !== null) {
590
593
  throw new TypeError("Super expression must either be null or a function");
591
594
  }
@@ -596,14 +599,14 @@
596
599
  configurable: true
597
600
  }
598
601
  });
599
- if (superClass) _set_prototype_of$s(subClass, superClass);
602
+ if (superClass) _set_prototype_of$t(subClass, superClass);
600
603
  }
601
- function _set_prototype_of$s(o, p) {
602
- _set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
604
+ function _set_prototype_of$t(o, p) {
605
+ _set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
603
606
  o.__proto__ = p;
604
607
  return o;
605
608
  };
606
- return _set_prototype_of$s(o, p);
609
+ return _set_prototype_of$t(o, p);
607
610
  }
608
611
  /**
609
612
  * 控件基类
@@ -617,7 +620,7 @@
617
620
  * const myControl = new MyControl({})
618
621
  * ```
619
622
  */ var Control = /*#__PURE__*/ function(EventEmitter) {
620
- _inherits$s(Control, EventEmitter);
623
+ _inherits$t(Control, EventEmitter);
621
624
  function Control(options) {
622
625
  var _this;
623
626
  var _this___options;
@@ -792,8 +795,8 @@
792
795
  return Control;
793
796
  }(EventEmitter);
794
797
 
795
- function _extends$r() {
796
- _extends$r = Object.assign || function(target) {
798
+ function _extends$s() {
799
+ _extends$s = Object.assign || function(target) {
797
800
  for(var i = 1; i < arguments.length; i++){
798
801
  var source = arguments[i];
799
802
  for(var key in source){
@@ -804,9 +807,9 @@
804
807
  }
805
808
  return target;
806
809
  };
807
- return _extends$r.apply(this, arguments);
810
+ return _extends$s.apply(this, arguments);
808
811
  }
809
- function _inherits$r(subClass, superClass) {
812
+ function _inherits$s(subClass, superClass) {
810
813
  if (typeof superClass !== "function" && superClass !== null) {
811
814
  throw new TypeError("Super expression must either be null or a function");
812
815
  }
@@ -817,25 +820,25 @@
817
820
  configurable: true
818
821
  }
819
822
  });
820
- if (superClass) _set_prototype_of$r(subClass, superClass);
823
+ if (superClass) _set_prototype_of$s(subClass, superClass);
821
824
  }
822
- function _set_prototype_of$r(o, p) {
823
- _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
825
+ function _set_prototype_of$s(o, p) {
826
+ _set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
824
827
  o.__proto__ = p;
825
828
  return o;
826
829
  };
827
- return _set_prototype_of$r(o, p);
830
+ return _set_prototype_of$s(o, p);
828
831
  }
829
832
  var LOADING_DEFAULT_OPTIONS = {};
830
833
  /**
831
834
  * 加载动画控件
832
835
  * @category Control
833
836
  */ var Loading = /*#__PURE__*/ function(Control) {
834
- _inherits$r(Loading, Control);
837
+ _inherits$s(Loading, Control);
835
838
  function Loading(options) {
836
839
  if (options === void 0) options = {};
837
840
  var _this;
838
- _this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$r({}, options, {
841
+ _this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$s({}, options, {
839
842
  tagName: 'div',
840
843
  controlType: 'block',
841
844
  classNameSuffix: 'loading'
@@ -873,8 +876,8 @@
873
876
  return Loading;
874
877
  }(Control);
875
878
 
876
- function _extends$q() {
877
- _extends$q = Object.assign || function(target) {
879
+ function _extends$r() {
880
+ _extends$r = Object.assign || function(target) {
878
881
  for(var i = 1; i < arguments.length; i++){
879
882
  var source = arguments[i];
880
883
  for(var key in source){
@@ -885,9 +888,9 @@
885
888
  }
886
889
  return target;
887
890
  };
888
- return _extends$q.apply(this, arguments);
891
+ return _extends$r.apply(this, arguments);
889
892
  }
890
- function _inherits$q(subClass, superClass) {
893
+ function _inherits$r(subClass, superClass) {
891
894
  if (typeof superClass !== "function" && superClass !== null) {
892
895
  throw new TypeError("Super expression must either be null or a function");
893
896
  }
@@ -898,14 +901,14 @@
898
901
  configurable: true
899
902
  }
900
903
  });
901
- if (superClass) _set_prototype_of$q(subClass, superClass);
904
+ if (superClass) _set_prototype_of$r(subClass, superClass);
902
905
  }
903
- function _set_prototype_of$q(o, p) {
904
- _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
906
+ function _set_prototype_of$r(o, p) {
907
+ _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
905
908
  o.__proto__ = p;
906
909
  return o;
907
910
  };
908
- return _set_prototype_of$q(o, p);
911
+ return _set_prototype_of$r(o, p);
909
912
  }
910
913
  // 不放在服务器上 是因为有可能http加载失败
911
914
  // prettier-ignore
@@ -917,11 +920,11 @@
917
920
  * 封面控件
918
921
  * @category Control
919
922
  */ var Poster = /*#__PURE__*/ function(Control) {
920
- _inherits$q(Poster, Control);
923
+ _inherits$r(Poster, Control);
921
924
  function Poster(options) {
922
925
  if (options === void 0) options = {};
923
926
  var _this;
924
- _this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$q({}, options, {
927
+ _this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$r({}, options, {
925
928
  tagName: 'div',
926
929
  controlType: 'block',
927
930
  classNameSuffix: 'poster'
@@ -1017,6 +1020,7 @@
1017
1020
  return '<svg width="1em" height="1em" viewBox="0 0 24 24" focusable="false" aria-hidden="true" data-icon="talk-growth">\n <g fill="currentColor" stroke="currentColor">\n <path stroke="none" d="M9.22313 18.9543C9.6588 18.9543 10.0189 19.2133 10.0759 19.5494L10.0837 19.6428L10.0837 21.7847C10.0837 22.1649 9.69841 22.4732 9.22313 22.4732C8.78745 22.4732 8.42739 22.2142 8.37041 21.8781L8.36255 21.7847L8.36255 19.6428C8.36255 19.2626 8.74784 18.9543 9.22313 18.9543Z" fill-rule="evenodd" />\n <path d="M16.5323 11.3779L16.5323 11.5872C16.5323 15.7472 13.1599 19.1197 8.99981 19.1197C4.83971 19.1197 1.46729 15.7472 1.46729 11.5872L1.46729 11.4335" fill-rule="evenodd" fill="none" stroke-width="1.5" />\n <path stroke="none" d="M4.07861 6.12978C4.07861 3.589 6.30476 1.5293 9.05085 1.5293C11.7969 1.5293 14.0231 3.589 14.0231 6.12978L14.0231 12.075C14.0231 14.6158 11.7969 16.6755 9.05085 16.6755C6.30476 16.6755 4.07861 14.6158 4.07861 12.075L4.07861 6.12978ZM5.57861 12.075L5.57861 6.12978C5.57861 5.94083 5.597 5.75561 5.63376 5.57412C5.67605 5.36539 5.74265 5.16158 5.83357 4.9627C5.86625 4.8912 5.90164 4.82121 5.93974 4.75272C6.09781 4.4685 6.30245 4.21019 6.55365 3.97777C6.64206 3.89597 6.73424 3.81921 6.83019 3.7475C7.0816 3.55959 7.3589 3.40632 7.66207 3.28767C7.79552 3.23545 7.93107 3.19114 8.06871 3.15475C8.38503 3.07111 8.71241 3.0293 9.05085 3.0293C9.38929 3.0293 9.71668 3.07112 10.033 3.15475C10.1706 3.19114 10.3062 3.23545 10.4396 3.28767C10.7428 3.40632 11.0201 3.55959 11.2715 3.74749C11.3675 3.81921 11.4596 3.89596 11.548 3.97777C11.7993 4.2102 12.0039 4.46853 12.162 4.75276C12.2001 4.82124 12.2354 4.89122 12.2681 4.9627C12.359 5.16157 12.4256 5.36536 12.4679 5.57407C12.5047 5.75558 12.5231 5.94082 12.5231 6.12978L12.5231 12.075C12.5231 12.264 12.5047 12.4492 12.4679 12.6307C12.4256 12.8394 12.359 13.0432 12.2681 13.2421C12.2355 13.3136 12.2001 13.3835 12.162 13.452C12.0039 13.7362 11.7993 13.9946 11.548 14.227C11.4596 14.3088 11.3675 14.3856 11.2715 14.4573C11.0201 14.6452 10.7428 14.7985 10.4396 14.9171C10.3062 14.9693 10.1706 15.0136 10.033 15.05C9.71667 15.1337 9.38929 15.1755 9.05085 15.1755C8.71241 15.1755 8.38503 15.1337 8.06871 15.05C7.93107 15.0136 7.79552 14.9693 7.66207 14.9171C7.3589 14.7985 7.0816 14.6452 6.83019 14.4573C6.73424 14.3856 6.64206 14.3088 6.55365 14.227C6.30244 13.9946 6.09779 13.7363 5.93972 13.452C5.90163 13.3836 5.86625 13.3136 5.83357 13.2421C5.74265 13.0432 5.67605 12.8394 5.63377 12.6307C5.597 12.4492 5.57861 12.264 5.57861 12.075Z" fill-rule="evenodd" />\n </g>\n <g class="' + prefix + '-icon-talk-growth-dot">\n <path class="' + prefix + '-icon-talk-growth-dot1" d="M19.1333 6.40039L22.8667 6.40039" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot2" d="M19.1333 10.1338L21.9331 10.1338" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot3" d="M19.1333 13.8672L20.9995 13.8672" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot4" d="M19.1333 17.6001L20.0669 17.6001" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n </g>\n </svg>';
1018
1021
  },
1019
1022
  /** 语音广播 */ broadcast: '\n <svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="broadcast">\n <g>\n <path id="矢量 1" d="m8.52109,6.76609l6.17823,-2.91335c0.2485,-0.11718 0.5027,-0.19531 0.7627,-0.2351c0.2034,-0.03077 0.4104,-0.03809 0.6211,-0.02173c0.2092,0.01636 0.4116,0.05493 0.6069,0.11621c0.2278,0.07129 0.4461,0.1731 0.6548,0.30542c0.2087,0.13232 0.394,0.28638 0.5557,0.46216l0.0002,0l0,0c0.1384,0.15064 0.2598,0.31714 0.3638,0.49951c0.1047,0.18335 0.1865,0.37354 0.2451,0.57081c0.0752,0.25219 0.1128,0.51562 0.1128,0.79004l0,10.64651c0,0.2744 -0.0376,0.5379 -0.1128,0.7901l0,0c-0.0586,0.197 -0.1404,0.3874 -0.2451,0.5708c-0.104,0.1823 -0.2254,0.3488 -0.364,0.4995c-0.1617,0.1758 -0.347,0.3298 -0.5557,0.4621c-0.2087,0.1324 -0.427,0.2342 -0.6548,0.3054c-0.1953,0.0611 -0.3977,0.0999 -0.6069,0.1163c-0.2107,0.0163 -0.4175,0.009 -0.6209,-0.0218c-0.2602,-0.0398 -0.5144,-0.1181 -0.7629,-0.2351l-5.45044,-2.5703l0,2.759c0,0.1036 -0.01831,0.1995 -0.05494,0.2879c-0.03662,0.0886 -0.09155,0.1692 -0.16479,0.2424c-0.14624,0.1465 -0.32324,0.2197 -0.53027,0.2197l-2,0c-0.14209,0 -0.27344,-0.0373 -0.39429,-0.112c-0.12085,-0.0745 -0.21289,-0.1756 -0.27661,-0.3025l-1.99268,-3.9856c-0.06225,-0.0234 -0.12402,-0.0481 -0.18555,-0.074c-0.26953,-0.114 -0.52417,-0.2502 -0.7644,-0.4084c-0.26636,-0.1758 -0.51489,-0.3789 -0.74512,-0.6094c-0.23047,-0.2302 -0.43359,-0.4788 -0.60937,-0.7451c-0.1582,-0.2403 -0.29444,-0.4949 -0.40845,-0.7644c-0.11328,-0.2679 -0.20068,-0.5413 -0.26245,-0.8206l0,0c-0.07398,-0.3347 -0.11108,-0.6775 -0.11108,-1.0286c0,-0.351 0.0371,-0.6938 0.11108,-1.0285c0.06177,-0.2793 0.14917,-0.5528 0.26245,-0.8206c0.11401,-0.26953 0.25025,-0.52417 0.40845,-0.7644c0.17578,-0.26636 0.3789,-0.5149 0.60937,-0.74512c0.23023,-0.23047 0.47876,-0.4336 0.74512,-0.60938l0,0c0.24023,-0.1582 0.49487,-0.29444 0.7644,-0.40845c0.26783,-0.11328 0.54126,-0.20068 0.82056,-0.26245l0,0l0,0l0,0c0.33472,-0.07398 0.67749,-0.11109 1.02857,-0.11109l2.93872,0c0.02636,-0.0166 0.05444,-0.03198 0.08349,-0.04589zm0.72876,8.47948l6.08937,2.8716c0.1287,0.0606 0.2598,0.0987 0.3935,0.114c0.0772,0.0088 0.1551,0.0103 0.2337,0.0042c0.0857,-0.0068 0.1687,-0.0217 0.2495,-0.0452c0.1133,-0.0329 0.2219,-0.0822 0.3257,-0.1479c0.104,-0.0659 0.1948,-0.1431 0.2729,-0.2317c0.0554,-0.063 0.1045,-0.1318 0.147,-0.2063c0.0393,-0.0686 0.0713,-0.1397 0.0962,-0.2131c0.043,-0.1277 0.0647,-0.2625 0.0647,-0.4046l0,-10.64651c0,-0.14209 -0.0217,-0.2771 -0.0647,-0.40454c-0.0249,-0.07349 -0.0569,-0.14454 -0.0962,-0.21314c-0.0425,-0.07471 -0.0916,-0.14331 -0.147,-0.2063c-0.0781,-0.08862 -0.1689,-0.16577 -0.2729,-0.23169c-0.1038,-0.06567 -0.2124,-0.11523 -0.3257,-0.14795c-0.0808,-0.02344 -0.1638,-0.03833 -0.2495,-0.04517c-0.0786,-0.0061 -0.1565,-0.00463 -0.2337,0.00415c-0.1337,0.01539 -0.2648,0.05347 -0.3935,0.11402l-6.09034,2.87208l0.00097,7.16405zm13.58447,-7.9121l-2,1c-0.3757,0.18775 -0.8184,0.04029 -1.0063,-0.33545c-0.0552,-0.11035 -0.0813,-0.22656 -0.0813,-0.34033c0,-0.27344 0.1516,-0.53321 0.4167,-0.66602l2,-1c0.3757,-0.18775 0.8186,-0.04004 1.0064,0.33545c0.0551,0.11035 0.0813,0.22656 0.0813,0.34033c0,0.27368 -0.1514,0.53345 -0.4168,0.66602zm-15.08544,8.9785l-2.08667,0l1.30029,2.6006l0.78638,0l0,-2.6006zm0,-7.99998l-2.25,0c-0.24976,0 -0.49317,0.02734 -0.73023,0.08179c-0.18188,0.04174 -0.36011,0.09961 -0.53467,0.17334c-0.17944,0.07593 -0.34961,0.1665 -0.51049,0.27124c-0.18702,0.12231 -0.36133,0.26416 -0.52271,0.42554c-0.16138,0.16137 -0.30322,0.33569 -0.42554,0.52267c-0.10473,0.1609 -0.19531,0.3311 -0.27124,0.5105c-0.07373,0.1746 -0.13159,0.3528 -0.17334,0.5347c-0.05444,0.2371 -0.08178,0.4805 -0.08178,0.7302c0,0.2498 0.02734,0.4932 0.08178,0.7303c0.04175,0.1818 0.09961,0.3601 0.17334,0.5346c0.07593,0.1795 0.16651,0.3496 0.27124,0.5105c0.12232,0.187 0.26416,0.3614 0.42554,0.5227c0.16138,0.1614 0.33569,0.3033 0.52271,0.4256c0.16088,0.1047 0.33105,0.1953 0.51049,0.2712c0.17456,0.0737 0.35279,0.1316 0.53467,0.1734c0.23706,0.0544 0.48047,0.0817 0.73023,0.0817l2.25097,0l-0.00097,-6.49998zm12.75004,2.60058l2,0c0.4199,0 0.75,0.3301 0.75,0.75c0,0.4199 -0.3301,0.75 -0.75,0.75l-2,0c-0.42,0 -0.75,-0.3301 -0.75,-0.75c0,-0.4199 0.33,-0.75 0.75,-0.75zm0.3354,4.0791l2,1c0.2654,0.1326 0.4168,0.3924 0.4168,0.6661c0,0.1137 -0.0262,0.2299 -0.0813,0.3403c-0.1878,0.3755 -0.6307,0.5232 -1.0064,0.3354l-2,-1c-0.2651,-0.1328 -0.4167,-0.3925 -0.4167,-0.666c0,-0.1138 0.0261,-0.23 0.0813,-0.3403c0.1879,-0.3758 0.6306,-0.5232 1.0063,-0.3355z" fill-rule="evenodd"/>\n </g>\n</svg>',
1023
+ /** AI对话 */ aiChat: '\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none">\n <defs>\n <linearGradient id="gradient0" x1="10.667" x2="10.667" y1="0.667" y2="20.667">\n <stop stop-color="#33D9FF" offset="0.354"/>\n <stop stop-color="#CE77FF" offset="1"/>\n </linearGradient>\n <linearGradient id="gradient1" x1="8.318" x2="8.318" y1="0" y2="18.001">\n <stop stop-color="#33D9FF" offset="0.354"/>\n <stop stop-color="#CE77FF" offset="1"/>\n </linearGradient>\n </defs>\n \n <g transform="scale(1.2) translate(-3, -0.5)">\n <path d="M6.917 0C8.776 0 10.52 0.738 11.808 2.026C12.45 2.668 12.961 3.43 13.309 4.269C13.442 4.588 13.29 4.954 12.971 5.086C12.653 5.218 12.287 5.067 12.155 4.748C11.87 4.061 11.451 3.436 10.925 2.91C9.868 1.854 8.441 1.25 6.917 1.25C3.787 1.25 1.25 3.787 1.25 6.917C1.25 10.047 3.787 12.584 6.917 12.584C8.441 12.584 9.868 11.981 10.925 10.925C11.169 10.681 11.564 10.681 11.808 10.925C12.052 11.169 12.052 11.565 11.808 11.809C10.666 12.951 9.164 13.661 7.542 13.807L7.542 17.376C7.542 17.721 7.262 18.001 6.917 18.001C6.572 18.001 6.292 17.721 6.292 17.376L6.292 13.807C2.765 13.49 0 10.527 0 6.917C0 3.097 3.097 0 6.917 0ZM11.051 6.495C11.295 6.739 11.295 7.135 11.051 7.379L7.547 10.882C7.303 11.126 6.908 11.126 6.664 10.882C6.42 10.638 6.42 10.242 6.664 9.998L10.167 6.495C10.411 6.251 10.807 6.251 11.051 6.495ZM8.566 4.559L6.501 9.5C6.368 9.818 6.002 9.969 5.684 9.836C5.365 9.703 5.215 9.336 5.348 9.018L5.712 8.147L4.094 6.529L3.198 6.884C2.904 7.001 2.575 6.878 2.424 6.61C2.297 6.289 2.418 5.849 2.739 5.722L7.76 3.736C8.274 3.533 8.779 4.049 8.566 4.559ZM16.614 6.171C16.642 6.236 16.642 6.309 16.614 6.373L15.964 7.848C15.936 7.912 15.936 7.986 15.964 8.05L16.614 9.525C16.67 9.651 16.613 9.799 16.486 9.855C16.422 9.883 16.349 9.883 16.285 9.855L14.809 9.205C14.745 9.176 14.672 9.176 14.608 9.205L13.133 9.855C13.006 9.911 12.859 9.853 12.803 9.727C12.775 9.662 12.775 9.589 12.803 9.525L13.453 8.05C13.482 7.986 13.482 7.912 13.453 7.848L12.803 6.373C12.747 6.247 12.805 6.099 12.931 6.043C12.995 6.015 13.068 6.015 13.133 6.043L14.608 6.694C14.672 6.722 14.745 6.722 14.809 6.694L16.285 6.043C16.411 5.988 16.558 6.045 16.614 6.171ZM6.841 5.443L5.361 6.028L6.233 6.9L6.841 5.443Z" fill="url(#gradient1)" transform="matrix(0.707 -0.707 0.707 0.707 0.085 9.868)"/>\n </g>\n </svg>\n ',
1020
1024
  /** 相机/截图 */ capturePicture: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="capture-picture">\n <path d="M6.94 7.51C7.34 7.51 7.7 7.28 7.86 6.91L8.43 5.6C8.59 5.23 8.95 5 9.35 5L14.69 5C15.04 5 15.37 5.18 15.55 5.49L16.45 7.02C16.63 7.33 16.96 7.51 17.31 7.51L18.5 7.51C19.6 7.51 20.5 8.41 20.5 9.51L20.5 17C20.5 18.1 19.6 19 18.5 19L5.5 19C4.39 19 3.5 18.1 3.5 17L3.5 9.51C3.5 8.41 4.39 7.51 5.5 7.51L6.94 7.51Z" stroke-width="1.5"/>\n <circle cx="12" cy="12.525146" r="3.068097" stroke-width="1.5"/>\n </svg>',
1021
1025
  /** 电子放大 */ zoom: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="zoom">\n <ellipse cx="10.914795" cy="11.25" rx="8.004043" ry="8.25" stroke-width="1.5"/>\n <path d="M14.31 11.04L8.05 11.14" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M11.13 14.22L11.23 7.95" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M16.45 17.83L19.36 20.83" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
1022
1026
  /** 隐私遮蔽 */ privacyMasking: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="privacy-masking">\n <path d="M12 19C11.15 19 10.31 18.82 9.49 18.5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M20.88 12.46C18.98 15.96 15.49 19 11.99 19" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M19.07 8.92C19.76 9.72 20.38 10.61 20.88 11.53C21.03 11.82 21.03 12.17 20.88 12.46" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5 19L19 5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M9.77 14.22C8.54 12.99 8.54 11 9.77 9.77C11 8.54 12.99 8.54 14.22 9.77" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M17.04 6.95C15.49 5.75 13.74 5 12 5C8.5 5 5.01 8.03 3.11 11.53C2.96 11.82 2.96 12.17 3.11 12.46C4.06 14.21 5.41 15.84 6.95 17.04" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
@@ -1105,6 +1109,10 @@
1105
1109
  if (attr === void 0) attr = {};
1106
1110
  return createIcon(Icons.broadcast, 'broadcast', attr);
1107
1111
  },
1112
+ aiChat: function(attr) {
1113
+ if (attr === void 0) attr = {};
1114
+ return createIcon(Icons.aiChat, 'aiChat', attr);
1115
+ },
1108
1116
  talkGrowth: function(attr) {
1109
1117
  if (attr === void 0) attr = {};
1110
1118
  return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
@@ -1183,8 +1191,8 @@
1183
1191
  }
1184
1192
  };
1185
1193
 
1186
- function _extends$p() {
1187
- _extends$p = Object.assign || function(target) {
1194
+ function _extends$q() {
1195
+ _extends$q = Object.assign || function(target) {
1188
1196
  for(var i = 1; i < arguments.length; i++){
1189
1197
  var source = arguments[i];
1190
1198
  for(var key in source){
@@ -1195,9 +1203,9 @@
1195
1203
  }
1196
1204
  return target;
1197
1205
  };
1198
- return _extends$p.apply(this, arguments);
1206
+ return _extends$q.apply(this, arguments);
1199
1207
  }
1200
- function _inherits$p(subClass, superClass) {
1208
+ function _inherits$q(subClass, superClass) {
1201
1209
  if (typeof superClass !== "function" && superClass !== null) {
1202
1210
  throw new TypeError("Super expression must either be null or a function");
1203
1211
  }
@@ -1208,25 +1216,25 @@
1208
1216
  configurable: true
1209
1217
  }
1210
1218
  });
1211
- if (superClass) _set_prototype_of$p(subClass, superClass);
1219
+ if (superClass) _set_prototype_of$q(subClass, superClass);
1212
1220
  }
1213
- function _set_prototype_of$p(o, p) {
1214
- _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1221
+ function _set_prototype_of$q(o, p) {
1222
+ _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1215
1223
  o.__proto__ = p;
1216
1224
  return o;
1217
1225
  };
1218
- return _set_prototype_of$p(o, p);
1226
+ return _set_prototype_of$q(o, p);
1219
1227
  }
1220
1228
  var MESSAGE_DEFAULT_OPTIONS = {};
1221
1229
  /**
1222
1230
  * 消息控件
1223
1231
  * @category Control
1224
1232
  */ var Message = /*#__PURE__*/ function(Control) {
1225
- _inherits$p(Message, Control);
1233
+ _inherits$q(Message, Control);
1226
1234
  function Message(options) {
1227
1235
  if (options === void 0) options = {};
1228
1236
  var _this;
1229
- _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$p({}, options, {
1237
+ _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$q({}, options, {
1230
1238
  tagName: 'div',
1231
1239
  controlType: 'block'
1232
1240
  }))) || this;
@@ -1379,8 +1387,8 @@
1379
1387
  if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
1380
1388
  return Constructor;
1381
1389
  }
1382
- function _extends$o() {
1383
- _extends$o = Object.assign || function(target) {
1390
+ function _extends$p() {
1391
+ _extends$p = Object.assign || function(target) {
1384
1392
  for(var i = 1; i < arguments.length; i++){
1385
1393
  var source = arguments[i];
1386
1394
  for(var key in source){
@@ -1391,9 +1399,9 @@
1391
1399
  }
1392
1400
  return target;
1393
1401
  };
1394
- return _extends$o.apply(this, arguments);
1402
+ return _extends$p.apply(this, arguments);
1395
1403
  }
1396
- function _inherits$o(subClass, superClass) {
1404
+ function _inherits$p(subClass, superClass) {
1397
1405
  if (typeof superClass !== "function" && superClass !== null) {
1398
1406
  throw new TypeError("Super expression must either be null or a function");
1399
1407
  }
@@ -1404,23 +1412,23 @@
1404
1412
  configurable: true
1405
1413
  }
1406
1414
  });
1407
- if (superClass) _set_prototype_of$o(subClass, superClass);
1415
+ if (superClass) _set_prototype_of$p(subClass, superClass);
1408
1416
  }
1409
- function _set_prototype_of$o(o, p) {
1410
- _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1417
+ function _set_prototype_of$p(o, p) {
1418
+ _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1411
1419
  o.__proto__ = p;
1412
1420
  return o;
1413
1421
  };
1414
- return _set_prototype_of$o(o, p);
1422
+ return _set_prototype_of$p(o, p);
1415
1423
  }
1416
1424
  /**
1417
1425
  * 播放/暂停控件
1418
1426
  * @category Control
1419
1427
  */ var Play = /*#__PURE__*/ function(Control) {
1420
- _inherits$o(Play, Control);
1428
+ _inherits$p(Play, Control);
1421
1429
  function Play(options) {
1422
1430
  var _this;
1423
- _this = Control.call(this, _extends$o({}, options, {
1431
+ _this = Control.call(this, _extends$p({}, options, {
1424
1432
  tagName: 'span',
1425
1433
  controlType: 'button',
1426
1434
  classNameSuffix: 'play'
@@ -2938,8 +2946,8 @@
2938
2946
  if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
2939
2947
  return Constructor;
2940
2948
  }
2941
- function _extends$n() {
2942
- _extends$n = Object.assign || function(target) {
2949
+ function _extends$o() {
2950
+ _extends$o = Object.assign || function(target) {
2943
2951
  for(var i = 1; i < arguments.length; i++){
2944
2952
  var source = arguments[i];
2945
2953
  for(var key in source){
@@ -2950,9 +2958,9 @@
2950
2958
  }
2951
2959
  return target;
2952
2960
  };
2953
- return _extends$n.apply(this, arguments);
2961
+ return _extends$o.apply(this, arguments);
2954
2962
  }
2955
- function _inherits$n(subClass, superClass) {
2963
+ function _inherits$o(subClass, superClass) {
2956
2964
  if (typeof superClass !== "function" && superClass !== null) {
2957
2965
  throw new TypeError("Super expression must either be null or a function");
2958
2966
  }
@@ -2963,14 +2971,14 @@
2963
2971
  configurable: true
2964
2972
  }
2965
2973
  });
2966
- if (superClass) _set_prototype_of$n(subClass, superClass);
2974
+ if (superClass) _set_prototype_of$o(subClass, superClass);
2967
2975
  }
2968
- function _set_prototype_of$n(o, p) {
2969
- _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2976
+ function _set_prototype_of$o(o, p) {
2977
+ _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2970
2978
  o.__proto__ = p;
2971
2979
  return o;
2972
2980
  };
2973
- return _set_prototype_of$n(o, p);
2981
+ return _set_prototype_of$o(o, p);
2974
2982
  }
2975
2983
  var VOLUME_DEFAULT_OPTIONS = {
2976
2984
  volume: 0.8,
@@ -2984,12 +2992,12 @@
2984
2992
  * 音量调节控件
2985
2993
  * @category Control
2986
2994
  */ var Volume = /*#__PURE__*/ function(Control) {
2987
- _inherits$n(Volume, Control);
2995
+ _inherits$o(Volume, Control);
2988
2996
  function Volume(options) {
2989
2997
  if (options === void 0) options = {};
2990
2998
  var _this;
2991
2999
  var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
2992
- _this = Control.call(this, _extends$n({}, options, {
3000
+ _this = Control.call(this, _extends$o({}, options, {
2993
3001
  tagName: 'span',
2994
3002
  classNameSuffix: 'volume',
2995
3003
  controlType: 'button'
@@ -3404,7 +3412,7 @@
3404
3412
  var screenfullExports = requireScreenfull();
3405
3413
  var screenfull = /*@__PURE__*/getDefaultExportFromCjs(screenfullExports);
3406
3414
 
3407
- function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
3415
+ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
3408
3416
  try {
3409
3417
  var info = gen[key](arg);
3410
3418
  var value = info.value;
@@ -3418,22 +3426,22 @@
3418
3426
  Promise.resolve(value).then(_next, _throw);
3419
3427
  }
3420
3428
  }
3421
- function _async_to_generator$6(fn) {
3429
+ function _async_to_generator$7(fn) {
3422
3430
  return function() {
3423
3431
  var self = this, args = arguments;
3424
3432
  return new Promise(function(resolve, reject) {
3425
3433
  var gen = fn.apply(self, args);
3426
3434
  function _next(value) {
3427
- asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
3435
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
3428
3436
  }
3429
3437
  function _throw(err) {
3430
- asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
3438
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
3431
3439
  }
3432
3440
  _next(undefined);
3433
3441
  });
3434
3442
  };
3435
3443
  }
3436
- function _ts_generator$6(thisArg, body) {
3444
+ function _ts_generator$7(thisArg, body) {
3437
3445
  var f, y, t, _ = {
3438
3446
  label: 0,
3439
3447
  sent: function() {
@@ -3647,8 +3655,8 @@
3647
3655
  * 全屏
3648
3656
  * @returns Promise<void>
3649
3657
  */ _proto.fullscreen = function fullscreen() {
3650
- return _async_to_generator$6(function() {
3651
- return _ts_generator$6(this, function(_state) {
3658
+ return _async_to_generator$7(function() {
3659
+ return _ts_generator$7(this, function(_state) {
3652
3660
  switch(_state.label){
3653
3661
  case 0:
3654
3662
  if (!Utils.isMobile) return [
@@ -3683,8 +3691,8 @@
3683
3691
  * 退出全屏
3684
3692
  * @returns Promise<void>
3685
3693
  */ _proto.exitFullscreen = function exitFullscreen() {
3686
- return _async_to_generator$6(function() {
3687
- return _ts_generator$6(this, function(_state) {
3694
+ return _async_to_generator$7(function() {
3695
+ return _ts_generator$7(this, function(_state) {
3688
3696
  switch(_state.label){
3689
3697
  case 0:
3690
3698
  if (!Utils.isMobile) return [
@@ -3723,8 +3731,8 @@
3723
3731
  * 全屏切换
3724
3732
  * @returns Promise<void>
3725
3733
  */ _proto.toggle = function toggle() {
3726
- return _async_to_generator$6(function() {
3727
- return _ts_generator$6(this, function(_state) {
3734
+ return _async_to_generator$7(function() {
3735
+ return _ts_generator$7(this, function(_state) {
3728
3736
  switch(_state.label){
3729
3737
  case 0:
3730
3738
  if (!Utils.isMobile) return [
@@ -3847,8 +3855,8 @@
3847
3855
  return Fullscreen;
3848
3856
  }();
3849
3857
 
3850
- function _extends$m() {
3851
- _extends$m = Object.assign || function(target) {
3858
+ function _extends$n() {
3859
+ _extends$n = Object.assign || function(target) {
3852
3860
  for(var i = 1; i < arguments.length; i++){
3853
3861
  var source = arguments[i];
3854
3862
  for(var key in source){
@@ -3859,9 +3867,9 @@
3859
3867
  }
3860
3868
  return target;
3861
3869
  };
3862
- return _extends$m.apply(this, arguments);
3870
+ return _extends$n.apply(this, arguments);
3863
3871
  }
3864
- function _inherits$m(subClass, superClass) {
3872
+ function _inherits$n(subClass, superClass) {
3865
3873
  if (typeof superClass !== "function" && superClass !== null) {
3866
3874
  throw new TypeError("Super expression must either be null or a function");
3867
3875
  }
@@ -3872,24 +3880,24 @@
3872
3880
  configurable: true
3873
3881
  }
3874
3882
  });
3875
- if (superClass) _set_prototype_of$m(subClass, superClass);
3883
+ if (superClass) _set_prototype_of$n(subClass, superClass);
3876
3884
  }
3877
- function _set_prototype_of$m(o, p) {
3878
- _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3885
+ function _set_prototype_of$n(o, p) {
3886
+ _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3879
3887
  o.__proto__ = p;
3880
3888
  return o;
3881
3889
  };
3882
- return _set_prototype_of$m(o, p);
3890
+ return _set_prototype_of$n(o, p);
3883
3891
  }
3884
3892
  /**
3885
3893
  * 全屏控件
3886
3894
  * @category Control
3887
3895
  */ var Fullscreen = /*#__PURE__*/ function(Control) {
3888
- _inherits$m(Fullscreen, Control);
3896
+ _inherits$n(Fullscreen, Control);
3889
3897
  function Fullscreen(options) {
3890
3898
  var _this;
3891
3899
  var _options_props, _this_options;
3892
- _this = Control.call(this, _extends$m({
3900
+ _this = Control.call(this, _extends$n({
3893
3901
  tagName: 'span',
3894
3902
  classNameSuffix: 'fullscreen',
3895
3903
  controlType: 'button'
@@ -3954,8 +3962,8 @@
3954
3962
  return Fullscreen;
3955
3963
  }(Control);
3956
3964
 
3957
- function _extends$l() {
3958
- _extends$l = Object.assign || function(target) {
3965
+ function _extends$m() {
3966
+ _extends$m = Object.assign || function(target) {
3959
3967
  for(var i = 1; i < arguments.length; i++){
3960
3968
  var source = arguments[i];
3961
3969
  for(var key in source){
@@ -3966,9 +3974,9 @@
3966
3974
  }
3967
3975
  return target;
3968
3976
  };
3969
- return _extends$l.apply(this, arguments);
3977
+ return _extends$m.apply(this, arguments);
3970
3978
  }
3971
- function _inherits$l(subClass, superClass) {
3979
+ function _inherits$m(subClass, superClass) {
3972
3980
  if (typeof superClass !== "function" && superClass !== null) {
3973
3981
  throw new TypeError("Super expression must either be null or a function");
3974
3982
  }
@@ -3979,24 +3987,24 @@
3979
3987
  configurable: true
3980
3988
  }
3981
3989
  });
3982
- if (superClass) _set_prototype_of$l(subClass, superClass);
3990
+ if (superClass) _set_prototype_of$m(subClass, superClass);
3983
3991
  }
3984
- function _set_prototype_of$l(o, p) {
3985
- _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3992
+ function _set_prototype_of$m(o, p) {
3993
+ _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3986
3994
  o.__proto__ = p;
3987
3995
  return o;
3988
3996
  };
3989
- return _set_prototype_of$l(o, p);
3997
+ return _set_prototype_of$m(o, p);
3990
3998
  }
3991
3999
  /**
3992
4000
  * 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
3993
4001
  * @category Control
3994
4002
  */ var Rec = /*#__PURE__*/ function(Control) {
3995
- _inherits$l(Rec, Control);
4003
+ _inherits$m(Rec, Control);
3996
4004
  function Rec(options) {
3997
4005
  var _this;
3998
4006
  var _options_props;
3999
- _this = Control.call(this, _extends$l({}, options, {
4007
+ _this = Control.call(this, _extends$m({}, options, {
4000
4008
  tagName: 'div',
4001
4009
  controlType: 'block',
4002
4010
  classNameSuffix: 'rec'
@@ -4452,6 +4460,7 @@
4452
4460
  BTN_CAPTURE: '截图',
4453
4461
  BTN_TALK: '对讲',
4454
4462
  BTN_BROADCAST: '语音广播',
4463
+ BTN_AICHAT: 'AI对话',
4455
4464
  BTN_ZOOM: '电子放大',
4456
4465
  BTN_3D_ZOOM: '3D定位',
4457
4466
  BTN_PTZ: '云台控制',
@@ -4723,6 +4732,7 @@
4723
4732
  BTN_CAPTURE: 'Screenshot',
4724
4733
  BTN_TALK: 'Intercom',
4725
4734
  BTN_BROADCAST: 'Voice broadcast',
4735
+ BTN_AICHAT: 'AI Chat',
4726
4736
  BTN_ZOOM: 'Electronic zoom',
4727
4737
  BTN_3D_ZOOM: '3D positioning',
4728
4738
  BTN_PTZ: 'PTZ control',
@@ -5017,6 +5027,12 @@
5017
5027
  defaultActive: 0,
5018
5028
  isrender: 1
5019
5029
  },
5030
+ {
5031
+ iconId: 'aiChat',
5032
+ part: 'left',
5033
+ defaultActive: 0,
5034
+ isrender: 1
5035
+ },
5020
5036
  {
5021
5037
  iconId: 'speed',
5022
5038
  part: 'right',
@@ -5201,6 +5217,12 @@
5201
5217
  defaultActive: 0,
5202
5218
  isrender: 1
5203
5219
  },
5220
+ {
5221
+ iconId: 'aiChat',
5222
+ part: 'left',
5223
+ defaultActive: 0,
5224
+ isrender: 1
5225
+ },
5204
5226
  {
5205
5227
  iconId: 'speed',
5206
5228
  part: 'right',
@@ -5361,7 +5383,7 @@
5361
5383
  voice: voice
5362
5384
  };
5363
5385
 
5364
- function _inherits$k(subClass, superClass) {
5386
+ function _inherits$l(subClass, superClass) {
5365
5387
  if (typeof superClass !== "function" && superClass !== null) {
5366
5388
  throw new TypeError("Super expression must either be null or a function");
5367
5389
  }
@@ -5372,20 +5394,20 @@
5372
5394
  configurable: true
5373
5395
  }
5374
5396
  });
5375
- if (superClass) _set_prototype_of$k(subClass, superClass);
5397
+ if (superClass) _set_prototype_of$l(subClass, superClass);
5376
5398
  }
5377
- function _set_prototype_of$k(o, p) {
5378
- _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5399
+ function _set_prototype_of$l(o, p) {
5400
+ _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5379
5401
  o.__proto__ = p;
5380
5402
  return o;
5381
5403
  };
5382
- return _set_prototype_of$k(o, p);
5404
+ return _set_prototype_of$l(o, p);
5383
5405
  }
5384
5406
  /**
5385
5407
  * 截图控件
5386
5408
  * @category Content
5387
5409
  */ var Content = /*#__PURE__*/ function(EventEmitter) {
5388
- _inherits$k(Content, EventEmitter);
5410
+ _inherits$l(Content, EventEmitter);
5389
5411
  function Content(options) {
5390
5412
  var _this;
5391
5413
  _this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
@@ -5500,8 +5522,8 @@
5500
5522
  return Content;
5501
5523
  }(EventEmitter);
5502
5524
 
5503
- function _extends$k() {
5504
- _extends$k = Object.assign || function(target) {
5525
+ function _extends$l() {
5526
+ _extends$l = Object.assign || function(target) {
5505
5527
  for(var i = 1; i < arguments.length; i++){
5506
5528
  var source = arguments[i];
5507
5529
  for(var key in source){
@@ -5512,9 +5534,9 @@
5512
5534
  }
5513
5535
  return target;
5514
5536
  };
5515
- return _extends$k.apply(this, arguments);
5537
+ return _extends$l.apply(this, arguments);
5516
5538
  }
5517
- function _inherits$j(subClass, superClass) {
5539
+ function _inherits$k(subClass, superClass) {
5518
5540
  if (typeof superClass !== "function" && superClass !== null) {
5519
5541
  throw new TypeError("Super expression must either be null or a function");
5520
5542
  }
@@ -5525,23 +5547,23 @@
5525
5547
  configurable: true
5526
5548
  }
5527
5549
  });
5528
- if (superClass) _set_prototype_of$j(subClass, superClass);
5550
+ if (superClass) _set_prototype_of$k(subClass, superClass);
5529
5551
  }
5530
- function _set_prototype_of$j(o, p) {
5531
- _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5552
+ function _set_prototype_of$k(o, p) {
5553
+ _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5532
5554
  o.__proto__ = p;
5533
5555
  return o;
5534
5556
  };
5535
- return _set_prototype_of$j(o, p);
5557
+ return _set_prototype_of$k(o, p);
5536
5558
  }
5537
5559
  /**
5538
5560
  * 更多控件
5539
5561
  * @category Control
5540
5562
  */ var More = /*#__PURE__*/ function(Control) {
5541
- _inherits$j(More, Control);
5563
+ _inherits$k(More, Control);
5542
5564
  function More(options) {
5543
5565
  var _this;
5544
- _this = Control.call(this, _extends$k({}, options, {
5566
+ _this = Control.call(this, _extends$l({}, options, {
5545
5567
  tagName: 'span',
5546
5568
  controlType: 'button',
5547
5569
  classNameSuffix: 'more'
@@ -5747,6 +5769,16 @@
5747
5769
  }
5748
5770
  });
5749
5771
  // =======================================================
5772
+ // AI对话框
5773
+ // =======================================================
5774
+ theme.on(EVENTS.aichatChange, function(active) {
5775
+ var _theme_controls, _theme_controls_aiChatControl, _theme_controls1;
5776
+ if (((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.aiChatControl) && active !== ((_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_aiChatControl = _theme_controls1.aiChatControl) == null ? void 0 : _theme_controls_aiChatControl.active)) {
5777
+ var _theme_controls_aiChatControl1, _theme_controls2;
5778
+ (_theme_controls2 = theme.controls) == null ? void 0 : (_theme_controls_aiChatControl1 = _theme_controls2.aiChatControl) == null ? void 0 : _theme_controls_aiChatControl1.emit(EVENTS.aichatChange, active);
5779
+ }
5780
+ });
5781
+ // =======================================================
5750
5782
  // 录制
5751
5783
  // =======================================================
5752
5784
  theme.on(EVENTS.recordingChange, function(recording) {
@@ -5842,7 +5874,7 @@
5842
5874
  *
5843
5875
  * @param theme - Theme
5844
5876
  */ function _controlEventemitter(theme) {
5845
- var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15;
5877
+ var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16;
5846
5878
  // Controls
5847
5879
  if (theme._recFooter) {
5848
5880
  theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
@@ -5944,8 +5976,17 @@
5944
5976
  theme.emit(EVENTS.control.broadcastDestroy);
5945
5977
  });
5946
5978
  }
5979
+ // AI对话框
5980
+ if ((_theme_controls6 = theme.controls) == null ? void 0 : _theme_controls6.aiChatControl) {
5981
+ theme.controls.aiChatControl.on(EVENTS.control.aichatChange, function(active) {
5982
+ theme.emit(EVENTS.control.aichatChange, active);
5983
+ });
5984
+ theme.controls.aiChatControl.on(EVENTS.control.aichatDestroy, function() {
5985
+ theme.emit(EVENTS.control.aichatDestroy);
5986
+ });
5987
+ }
5947
5988
  // 缩放控件
5948
- if ((_theme_controls6 = theme.controls) == null ? void 0 : _theme_controls6.zoomControl) {
5989
+ if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.zoomControl) {
5949
5990
  theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
5950
5991
  if (theme.zoom !== value) {
5951
5992
  theme.zoom = value;
@@ -5967,7 +6008,7 @@
5967
6008
  });
5968
6009
  }
5969
6010
  // 清晰度控件
5970
- if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.definitionControl) {
6011
+ if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.definitionControl) {
5971
6012
  theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
5972
6013
  theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
5973
6014
  theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
@@ -5980,7 +6021,7 @@
5980
6021
  });
5981
6022
  }
5982
6023
  // 倍速控件
5983
- if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.speedControl) {
6024
+ if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.speedControl) {
5984
6025
  theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
5985
6026
  theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
5986
6027
  theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
@@ -5993,7 +6034,7 @@
5993
6034
  });
5994
6035
  }
5995
6036
  // 截图控件
5996
- if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.capturePictureControl) {
6037
+ if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.capturePictureControl) {
5997
6038
  theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
5998
6039
  theme.emit(EVENTS.control.capturePicture, options);
5999
6040
  });
@@ -6002,25 +6043,25 @@
6002
6043
  });
6003
6044
  }
6004
6045
  // 全屏控件
6005
- if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.fullscreenControl) {
6046
+ if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.fullscreenControl) {
6006
6047
  theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
6007
6048
  theme.emit(EVENTS.control.fullscreenDestroy);
6008
6049
  });
6009
6050
  }
6010
6051
  // 全局全屏控件
6011
- if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.globalFullscreenControl) {
6052
+ if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.globalFullscreenControl) {
6012
6053
  theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
6013
6054
  theme.emit(EVENTS.control.globalFullscreenDestroy);
6014
6055
  });
6015
6056
  }
6016
6057
  // 设备信息控件
6017
- if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.deviceControl) {
6058
+ if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.deviceControl) {
6018
6059
  theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
6019
6060
  theme.emit(EVENTS.control.deviceDestroy);
6020
6061
  });
6021
6062
  }
6022
6063
  // 回放类型切换控件
6023
- if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.recControl) {
6064
+ if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.recControl) {
6024
6065
  // prettier-ignore
6025
6066
  theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
6026
6067
  if (theme.recType !== type) {
@@ -6041,7 +6082,7 @@
6041
6082
  });
6042
6083
  }
6043
6084
  // 时间轴控件
6044
- if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.timeLineControl) {
6085
+ if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.timeLineControl) {
6045
6086
  theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
6046
6087
  theme.emit(EVENTS.control.timeLineChange, date);
6047
6088
  });
@@ -6058,7 +6099,7 @@
6058
6099
  });
6059
6100
  }
6060
6101
  // 日历控件
6061
- if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.dateControl) {
6102
+ if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.dateControl) {
6062
6103
  theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
6063
6104
  theme.emit(EVENTS.control.datePanelOpenChange, open, date);
6064
6105
  });
@@ -6153,8 +6194,8 @@
6153
6194
  if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
6154
6195
  return Constructor;
6155
6196
  }
6156
- function _extends$j() {
6157
- _extends$j = Object.assign || function(target) {
6197
+ function _extends$k() {
6198
+ _extends$k = Object.assign || function(target) {
6158
6199
  for(var i = 1; i < arguments.length; i++){
6159
6200
  var source = arguments[i];
6160
6201
  for(var key in source){
@@ -6165,9 +6206,9 @@
6165
6206
  }
6166
6207
  return target;
6167
6208
  };
6168
- return _extends$j.apply(this, arguments);
6209
+ return _extends$k.apply(this, arguments);
6169
6210
  }
6170
- function _inherits$i(subClass, superClass) {
6211
+ function _inherits$j(subClass, superClass) {
6171
6212
  if (typeof superClass !== "function" && superClass !== null) {
6172
6213
  throw new TypeError("Super expression must either be null or a function");
6173
6214
  }
@@ -6178,14 +6219,14 @@
6178
6219
  configurable: true
6179
6220
  }
6180
6221
  });
6181
- if (superClass) _set_prototype_of$i(subClass, superClass);
6222
+ if (superClass) _set_prototype_of$j(subClass, superClass);
6182
6223
  }
6183
- function _set_prototype_of$i(o, p) {
6184
- _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6224
+ function _set_prototype_of$j(o, p) {
6225
+ _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6185
6226
  o.__proto__ = p;
6186
6227
  return o;
6187
6228
  };
6188
- return _set_prototype_of$i(o, p);
6229
+ return _set_prototype_of$j(o, p);
6189
6230
  }
6190
6231
  var ZOOM_DEFAULT_OPTIONS = {
6191
6232
  open: false,
@@ -6195,10 +6236,10 @@
6195
6236
  * 电子放大控件
6196
6237
  * @category Control
6197
6238
  */ var Zoom$1 = /*#__PURE__*/ function(Control) {
6198
- _inherits$i(Zoom, Control);
6239
+ _inherits$j(Zoom, Control);
6199
6240
  function Zoom(options) {
6200
6241
  var _this;
6201
- _this = Control.call(this, _extends$j({}, options, {
6242
+ _this = Control.call(this, _extends$k({}, options, {
6202
6243
  tagName: 'span',
6203
6244
  controlType: 'button',
6204
6245
  classNameSuffix: 'zoom'
@@ -7051,8 +7092,8 @@
7051
7092
  var distExports$3 = requireDist$6();
7052
7093
  var Zoom = /*@__PURE__*/getDefaultExportFromCjs(distExports$3);
7053
7094
 
7054
- function _extends$i() {
7055
- _extends$i = Object.assign || function(target) {
7095
+ function _extends$j() {
7096
+ _extends$j = Object.assign || function(target) {
7056
7097
  for(var i = 1; i < arguments.length; i++){
7057
7098
  var source = arguments[i];
7058
7099
  for(var key in source){
@@ -7063,10 +7104,10 @@
7063
7104
  }
7064
7105
  return target;
7065
7106
  };
7066
- return _extends$i.apply(this, arguments);
7107
+ return _extends$j.apply(this, arguments);
7067
7108
  }
7068
7109
  function __zoom(theme, container, options) {
7069
- theme.zoomUtil = new Zoom(container, _extends$i({}, options || {}, {
7110
+ theme.zoomUtil = new Zoom(container, _extends$j({}, options || {}, {
7070
7111
  min: 1,
7071
7112
  onChange: function(zoom, reset) {
7072
7113
  if (zoom !== theme._zoom) {
@@ -7084,7 +7125,7 @@
7084
7125
  }));
7085
7126
  }
7086
7127
 
7087
- function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
7128
+ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
7088
7129
  try {
7089
7130
  var info = gen[key](arg);
7090
7131
  var value = info.value;
@@ -7098,22 +7139,22 @@
7098
7139
  Promise.resolve(value).then(_next, _throw);
7099
7140
  }
7100
7141
  }
7101
- function _async_to_generator$5(fn) {
7142
+ function _async_to_generator$6(fn) {
7102
7143
  return function() {
7103
7144
  var self = this, args = arguments;
7104
7145
  return new Promise(function(resolve, reject) {
7105
7146
  var gen = fn.apply(self, args);
7106
7147
  function _next(value) {
7107
- asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
7148
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
7108
7149
  }
7109
7150
  function _throw(err) {
7110
- asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
7151
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
7111
7152
  }
7112
7153
  _next(undefined);
7113
7154
  });
7114
7155
  };
7115
7156
  }
7116
- function _ts_generator$5(thisArg, body) {
7157
+ function _ts_generator$6(thisArg, body) {
7117
7158
  var f, y, t, _ = {
7118
7159
  label: 0,
7119
7160
  sent: function() {
@@ -7205,9 +7246,9 @@
7205
7246
  }
7206
7247
  }
7207
7248
  function getThemeDataByTemplate(theme, id) {
7208
- return _async_to_generator$5(function() {
7249
+ return _async_to_generator$6(function() {
7209
7250
  var _theme_options_token_httpToken, _theme_options_token, url;
7210
- return _ts_generator$5(this, function(_state) {
7251
+ return _ts_generator$6(this, function(_state) {
7211
7252
  switch(_state.label){
7212
7253
  case 0:
7213
7254
  url = theme.options.env.domain + "/api/service/media/template/getDetail?accessToken=" + (theme.options.accessToken || ((_theme_options_token = theme.options.token) == null ? void 0 : (_theme_options_token_httpToken = _theme_options_token.httpToken) == null ? void 0 : _theme_options_token_httpToken.url)) + "&id=" + id;
@@ -7216,8 +7257,8 @@
7216
7257
  fetch(url, {
7217
7258
  method: 'GET'
7218
7259
  }).then(function(response) {
7219
- return _async_to_generator$5(function() {
7220
- return _ts_generator$5(this, function(_state) {
7260
+ return _async_to_generator$6(function() {
7261
+ return _ts_generator$6(this, function(_state) {
7221
7262
  switch(_state.label){
7222
7263
  case 0:
7223
7264
  return [
@@ -7262,7 +7303,7 @@
7262
7303
  })();
7263
7304
  }
7264
7305
 
7265
- function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
7306
+ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
7266
7307
  try {
7267
7308
  var info = gen[key](arg);
7268
7309
  var value = info.value;
@@ -7276,23 +7317,23 @@
7276
7317
  Promise.resolve(value).then(_next, _throw);
7277
7318
  }
7278
7319
  }
7279
- function _async_to_generator$4(fn) {
7320
+ function _async_to_generator$5(fn) {
7280
7321
  return function() {
7281
7322
  var self = this, args = arguments;
7282
7323
  return new Promise(function(resolve, reject) {
7283
7324
  var gen = fn.apply(self, args);
7284
7325
  function _next(value) {
7285
- asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
7326
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
7286
7327
  }
7287
7328
  function _throw(err) {
7288
- asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
7329
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
7289
7330
  }
7290
7331
  _next(undefined);
7291
7332
  });
7292
7333
  };
7293
7334
  }
7294
- function _extends$h() {
7295
- _extends$h = Object.assign || function(target) {
7335
+ function _extends$i() {
7336
+ _extends$i = Object.assign || function(target) {
7296
7337
  for(var i = 1; i < arguments.length; i++){
7297
7338
  var source = arguments[i];
7298
7339
  for(var key in source){
@@ -7303,9 +7344,9 @@
7303
7344
  }
7304
7345
  return target;
7305
7346
  };
7306
- return _extends$h.apply(this, arguments);
7347
+ return _extends$i.apply(this, arguments);
7307
7348
  }
7308
- function _ts_generator$4(thisArg, body) {
7349
+ function _ts_generator$5(thisArg, body) {
7309
7350
  var f, y, t, _ = {
7310
7351
  label: 0,
7311
7352
  sent: function() {
@@ -7431,7 +7472,7 @@
7431
7472
  }
7432
7473
  if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
7433
7474
  // TODO: 因为回放是一组, 位置以第一个位置为准
7434
- recControls.push(recControls[0] ? _extends$h({}, item, {
7475
+ recControls.push(recControls[0] ? _extends$i({}, item, {
7435
7476
  part: recControls[0].part
7436
7477
  }) : item);
7437
7478
  return false;
@@ -7454,7 +7495,7 @@
7454
7495
  }
7455
7496
  if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
7456
7497
  // TODO: 因为回放是一组, 位置以第一个位置为准
7457
- recControls.push(recControls[0] ? _extends$h({}, item, {
7498
+ recControls.push(recControls[0] ? _extends$i({}, item, {
7458
7499
  part: recControls[0].part
7459
7500
  }) : item);
7460
7501
  return false;
@@ -7516,9 +7557,9 @@
7516
7557
  * @param data
7517
7558
  * @returns
7518
7559
  */ function getThemeData(theme, data) {
7519
- return _async_to_generator$4(function() {
7560
+ return _async_to_generator$5(function() {
7520
7561
  var themeData, _theme_logger, template;
7521
- return _ts_generator$4(this, function(_state) {
7562
+ return _ts_generator$5(this, function(_state) {
7522
7563
  switch(_state.label){
7523
7564
  case 0:
7524
7565
  themeData = data;
@@ -7709,8 +7750,8 @@
7709
7750
  return Component;
7710
7751
  }();
7711
7752
 
7712
- function _extends$g() {
7713
- _extends$g = Object.assign || function(target) {
7753
+ function _extends$h() {
7754
+ _extends$h = Object.assign || function(target) {
7714
7755
  for(var i = 1; i < arguments.length; i++){
7715
7756
  var source = arguments[i];
7716
7757
  for(var key in source){
@@ -7721,9 +7762,9 @@
7721
7762
  }
7722
7763
  return target;
7723
7764
  };
7724
- return _extends$g.apply(this, arguments);
7765
+ return _extends$h.apply(this, arguments);
7725
7766
  }
7726
- function _inherits$h(subClass, superClass) {
7767
+ function _inherits$i(subClass, superClass) {
7727
7768
  if (typeof superClass !== "function" && superClass !== null) {
7728
7769
  throw new TypeError("Super expression must either be null or a function");
7729
7770
  }
@@ -7734,28 +7775,28 @@
7734
7775
  configurable: true
7735
7776
  }
7736
7777
  });
7737
- if (superClass) _set_prototype_of$h(subClass, superClass);
7778
+ if (superClass) _set_prototype_of$i(subClass, superClass);
7738
7779
  }
7739
- function _set_prototype_of$h(o, p) {
7740
- _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7780
+ function _set_prototype_of$i(o, p) {
7781
+ _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7741
7782
  o.__proto__ = p;
7742
7783
  return o;
7743
7784
  };
7744
- return _set_prototype_of$h(o, p);
7785
+ return _set_prototype_of$i(o, p);
7745
7786
  }
7746
7787
  var Footer = /*#__PURE__*/ function(Component) {
7747
- _inherits$h(Footer, Component);
7788
+ _inherits$i(Footer, Component);
7748
7789
  function Footer(options) {
7749
7790
  if (options === void 0) options = {};
7750
- return Component.call(this, _extends$g({}, options, {
7791
+ return Component.call(this, _extends$h({}, options, {
7751
7792
  cType: 'footer'
7752
7793
  })) || this;
7753
7794
  }
7754
7795
  return Footer;
7755
7796
  }(Component);
7756
7797
 
7757
- function _extends$f() {
7758
- _extends$f = Object.assign || function(target) {
7798
+ function _extends$g() {
7799
+ _extends$g = Object.assign || function(target) {
7759
7800
  for(var i = 1; i < arguments.length; i++){
7760
7801
  var source = arguments[i];
7761
7802
  for(var key in source){
@@ -7766,9 +7807,9 @@
7766
7807
  }
7767
7808
  return target;
7768
7809
  };
7769
- return _extends$f.apply(this, arguments);
7810
+ return _extends$g.apply(this, arguments);
7770
7811
  }
7771
- function _inherits$g(subClass, superClass) {
7812
+ function _inherits$h(subClass, superClass) {
7772
7813
  if (typeof superClass !== "function" && superClass !== null) {
7773
7814
  throw new TypeError("Super expression must either be null or a function");
7774
7815
  }
@@ -7779,20 +7820,20 @@
7779
7820
  configurable: true
7780
7821
  }
7781
7822
  });
7782
- if (superClass) _set_prototype_of$g(subClass, superClass);
7823
+ if (superClass) _set_prototype_of$h(subClass, superClass);
7783
7824
  }
7784
- function _set_prototype_of$g(o, p) {
7785
- _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7825
+ function _set_prototype_of$h(o, p) {
7826
+ _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7786
7827
  o.__proto__ = p;
7787
7828
  return o;
7788
7829
  };
7789
- return _set_prototype_of$g(o, p);
7830
+ return _set_prototype_of$h(o, p);
7790
7831
  }
7791
7832
  var Header = /*#__PURE__*/ function(Component) {
7792
- _inherits$g(Header, Component);
7833
+ _inherits$h(Header, Component);
7793
7834
  function Header(options) {
7794
7835
  if (options === void 0) options = {};
7795
- return Component.call(this, _extends$f({}, options, {
7836
+ return Component.call(this, _extends$g({}, options, {
7796
7837
  cType: 'header'
7797
7838
  })) || this;
7798
7839
  }
@@ -7958,8 +7999,8 @@
7958
7999
  };
7959
8000
  }
7960
8001
 
7961
- function _extends$e() {
7962
- _extends$e = Object.assign || function(target) {
8002
+ function _extends$f() {
8003
+ _extends$f = Object.assign || function(target) {
7963
8004
  for(var i = 1; i < arguments.length; i++){
7964
8005
  var source = arguments[i];
7965
8006
  for(var key in source){
@@ -7970,9 +8011,9 @@
7970
8011
  }
7971
8012
  return target;
7972
8013
  };
7973
- return _extends$e.apply(this, arguments);
8014
+ return _extends$f.apply(this, arguments);
7974
8015
  }
7975
- function _inherits$f(subClass, superClass) {
8016
+ function _inherits$g(subClass, superClass) {
7976
8017
  if (typeof superClass !== "function" && superClass !== null) {
7977
8018
  throw new TypeError("Super expression must either be null or a function");
7978
8019
  }
@@ -7983,23 +8024,23 @@
7983
8024
  configurable: true
7984
8025
  }
7985
8026
  });
7986
- if (superClass) _set_prototype_of$f(subClass, superClass);
8027
+ if (superClass) _set_prototype_of$g(subClass, superClass);
7987
8028
  }
7988
- function _set_prototype_of$f(o, p) {
7989
- _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8029
+ function _set_prototype_of$g(o, p) {
8030
+ _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7990
8031
  o.__proto__ = p;
7991
8032
  return o;
7992
8033
  };
7993
- return _set_prototype_of$f(o, p);
8034
+ return _set_prototype_of$g(o, p);
7994
8035
  }
7995
8036
  /**
7996
8037
  * 全局全屏
7997
8038
  * 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
7998
8039
  * @category Control
7999
8040
  */ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
8000
- _inherits$f(GlobalFullscreen, Fullscreen);
8041
+ _inherits$g(GlobalFullscreen, Fullscreen);
8001
8042
  function GlobalFullscreen(options) {
8002
- return Fullscreen.call(this, _extends$e({}, options, {
8043
+ return Fullscreen.call(this, _extends$f({}, options, {
8003
8044
  controlType: 'button',
8004
8045
  classNameSuffix: 'global-fullscreen'
8005
8046
  })) || this;
@@ -8030,8 +8071,8 @@
8030
8071
  return GlobalFullscreen;
8031
8072
  }(Fullscreen);
8032
8073
 
8033
- function _extends$d() {
8034
- _extends$d = Object.assign || function(target) {
8074
+ function _extends$e() {
8075
+ _extends$e = Object.assign || function(target) {
8035
8076
  for(var i = 1; i < arguments.length; i++){
8036
8077
  var source = arguments[i];
8037
8078
  for(var key in source){
@@ -8042,9 +8083,9 @@
8042
8083
  }
8043
8084
  return target;
8044
8085
  };
8045
- return _extends$d.apply(this, arguments);
8086
+ return _extends$e.apply(this, arguments);
8046
8087
  }
8047
- function _inherits$e(subClass, superClass) {
8088
+ function _inherits$f(subClass, superClass) {
8048
8089
  if (typeof superClass !== "function" && superClass !== null) {
8049
8090
  throw new TypeError("Super expression must either be null or a function");
8050
8091
  }
@@ -8055,23 +8096,23 @@
8055
8096
  configurable: true
8056
8097
  }
8057
8098
  });
8058
- if (superClass) _set_prototype_of$e(subClass, superClass);
8099
+ if (superClass) _set_prototype_of$f(subClass, superClass);
8059
8100
  }
8060
- function _set_prototype_of$e(o, p) {
8061
- _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8101
+ function _set_prototype_of$f(o, p) {
8102
+ _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8062
8103
  o.__proto__ = p;
8063
8104
  return o;
8064
8105
  };
8065
- return _set_prototype_of$e(o, p);
8106
+ return _set_prototype_of$f(o, p);
8066
8107
  }
8067
8108
  /**
8068
8109
  * 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
8069
8110
  * @category Control
8070
8111
  */ var CapturePicture = /*#__PURE__*/ function(Control) {
8071
- _inherits$e(CapturePicture, Control);
8112
+ _inherits$f(CapturePicture, Control);
8072
8113
  function CapturePicture(options) {
8073
8114
  var _this;
8074
- _this = Control.call(this, _extends$d({}, options, {
8115
+ _this = Control.call(this, _extends$e({}, options, {
8075
8116
  tagName: 'span',
8076
8117
  classNameSuffix: 'capture-picture'
8077
8118
  })) || this, _this._timer = null;
@@ -9098,8 +9139,8 @@
9098
9139
  if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
9099
9140
  return Constructor;
9100
9141
  }
9101
- function _extends$c() {
9102
- _extends$c = Object.assign || function(target) {
9142
+ function _extends$d() {
9143
+ _extends$d = Object.assign || function(target) {
9103
9144
  for(var i = 1; i < arguments.length; i++){
9104
9145
  var source = arguments[i];
9105
9146
  for(var key in source){
@@ -9110,9 +9151,9 @@
9110
9151
  }
9111
9152
  return target;
9112
9153
  };
9113
- return _extends$c.apply(this, arguments);
9154
+ return _extends$d.apply(this, arguments);
9114
9155
  }
9115
- function _inherits$d(subClass, superClass) {
9156
+ function _inherits$e(subClass, superClass) {
9116
9157
  if (typeof superClass !== "function" && superClass !== null) {
9117
9158
  throw new TypeError("Super expression must either be null or a function");
9118
9159
  }
@@ -9123,23 +9164,23 @@
9123
9164
  configurable: true
9124
9165
  }
9125
9166
  });
9126
- if (superClass) _set_prototype_of$d(subClass, superClass);
9167
+ if (superClass) _set_prototype_of$e(subClass, superClass);
9127
9168
  }
9128
- function _set_prototype_of$d(o, p) {
9129
- _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9169
+ function _set_prototype_of$e(o, p) {
9170
+ _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9130
9171
  o.__proto__ = p;
9131
9172
  return o;
9132
9173
  };
9133
- return _set_prototype_of$d(o, p);
9174
+ return _set_prototype_of$e(o, p);
9134
9175
  }
9135
9176
  /**
9136
9177
  * 云台控件
9137
9178
  * @category Control
9138
9179
  */ var Ptz = /*#__PURE__*/ function(Control) {
9139
- _inherits$d(Ptz, Control);
9180
+ _inherits$e(Ptz, Control);
9140
9181
  function Ptz(options) {
9141
9182
  var _this;
9142
- _this = Control.call(this, _extends$c({}, options, {
9183
+ _this = Control.call(this, _extends$d({}, options, {
9143
9184
  tagName: 'span',
9144
9185
  controlType: 'button',
9145
9186
  classNameSuffix: 'ptz'
@@ -9182,7 +9223,7 @@
9182
9223
  this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
9183
9224
  this.$panel.appendChild(this.$turntable);
9184
9225
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9185
- this._ptzControl = new distExports$2.Ptz(this.$turntable, _extends$c({}, this._options, {
9226
+ this._ptzControl = new distExports$2.Ptz(this.$turntable, _extends$d({}, this._options, {
9186
9227
  onSpeedChange: this._onSpeedChange.bind(this),
9187
9228
  onDirection: this._onDirection.bind(this)
9188
9229
  }));
@@ -9191,7 +9232,7 @@
9191
9232
  };
9192
9233
  _proto.renderMobileExtend = function renderMobileExtend($container) {
9193
9234
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9194
- if (!this._ptzControl1) this._ptzControl1 = new distExports$2.MobilePtz($container, _extends$c({}, this._options, {
9235
+ if (!this._ptzControl1) this._ptzControl1 = new distExports$2.MobilePtz($container, _extends$d({}, this._options, {
9195
9236
  onSpeedChange: this._onSpeedChange.bind(this),
9196
9237
  onDirection: this._onDirection.bind(this)
9197
9238
  }));
@@ -9294,8 +9335,8 @@
9294
9335
  if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
9295
9336
  return Constructor;
9296
9337
  }
9297
- function _extends$b() {
9298
- _extends$b = Object.assign || function(target) {
9338
+ function _extends$c() {
9339
+ _extends$c = Object.assign || function(target) {
9299
9340
  for(var i = 1; i < arguments.length; i++){
9300
9341
  var source = arguments[i];
9301
9342
  for(var key in source){
@@ -9306,9 +9347,9 @@
9306
9347
  }
9307
9348
  return target;
9308
9349
  };
9309
- return _extends$b.apply(this, arguments);
9350
+ return _extends$c.apply(this, arguments);
9310
9351
  }
9311
- function _inherits$c(subClass, superClass) {
9352
+ function _inherits$d(subClass, superClass) {
9312
9353
  if (typeof superClass !== "function" && superClass !== null) {
9313
9354
  throw new TypeError("Super expression must either be null or a function");
9314
9355
  }
@@ -9319,14 +9360,14 @@
9319
9360
  configurable: true
9320
9361
  }
9321
9362
  });
9322
- if (superClass) _set_prototype_of$c(subClass, superClass);
9363
+ if (superClass) _set_prototype_of$d(subClass, superClass);
9323
9364
  }
9324
- function _set_prototype_of$c(o, p) {
9325
- _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9365
+ function _set_prototype_of$d(o, p) {
9366
+ _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9326
9367
  o.__proto__ = p;
9327
9368
  return o;
9328
9369
  };
9329
- return _set_prototype_of$c(o, p);
9370
+ return _set_prototype_of$d(o, p);
9330
9371
  }
9331
9372
  var RECORD_DEFAULT_OPTIONS = {
9332
9373
  maxDuration: 3600
@@ -9340,10 +9381,10 @@
9340
9381
  * 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
9341
9382
  * @category Control
9342
9383
  */ var Record = /*#__PURE__*/ function(Control) {
9343
- _inherits$c(Record, Control);
9384
+ _inherits$d(Record, Control);
9344
9385
  function Record(options) {
9345
9386
  var _this;
9346
- _this = Control.call(this, _extends$b({}, options, {
9387
+ _this = Control.call(this, _extends$c({}, options, {
9347
9388
  tagName: 'span',
9348
9389
  controlType: 'button',
9349
9390
  classNameSuffix: 'record'
@@ -9442,7 +9483,7 @@
9442
9483
  return Record;
9443
9484
  }(Control);
9444
9485
 
9445
- function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
9486
+ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
9446
9487
  try {
9447
9488
  var info = gen[key](arg);
9448
9489
  var value = info.value;
@@ -9456,16 +9497,16 @@
9456
9497
  Promise.resolve(value).then(_next, _throw);
9457
9498
  }
9458
9499
  }
9459
- function _async_to_generator$3(fn) {
9500
+ function _async_to_generator$4(fn) {
9460
9501
  return function() {
9461
9502
  var self = this, args = arguments;
9462
9503
  return new Promise(function(resolve, reject) {
9463
9504
  var gen = fn.apply(self, args);
9464
9505
  function _next(value) {
9465
- asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
9506
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
9466
9507
  }
9467
9508
  function _throw(err) {
9468
- asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
9509
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
9469
9510
  }
9470
9511
  _next(undefined);
9471
9512
  });
@@ -9484,8 +9525,8 @@
9484
9525
  if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
9485
9526
  return Constructor;
9486
9527
  }
9487
- function _extends$a() {
9488
- _extends$a = Object.assign || function(target) {
9528
+ function _extends$b() {
9529
+ _extends$b = Object.assign || function(target) {
9489
9530
  for(var i = 1; i < arguments.length; i++){
9490
9531
  var source = arguments[i];
9491
9532
  for(var key in source){
@@ -9496,9 +9537,9 @@
9496
9537
  }
9497
9538
  return target;
9498
9539
  };
9499
- return _extends$a.apply(this, arguments);
9540
+ return _extends$b.apply(this, arguments);
9500
9541
  }
9501
- function _inherits$b(subClass, superClass) {
9542
+ function _inherits$c(subClass, superClass) {
9502
9543
  if (typeof superClass !== "function" && superClass !== null) {
9503
9544
  throw new TypeError("Super expression must either be null or a function");
9504
9545
  }
@@ -9509,16 +9550,16 @@
9509
9550
  configurable: true
9510
9551
  }
9511
9552
  });
9512
- if (superClass) _set_prototype_of$b(subClass, superClass);
9553
+ if (superClass) _set_prototype_of$c(subClass, superClass);
9513
9554
  }
9514
- function _set_prototype_of$b(o, p) {
9515
- _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9555
+ function _set_prototype_of$c(o, p) {
9556
+ _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9516
9557
  o.__proto__ = p;
9517
9558
  return o;
9518
9559
  };
9519
- return _set_prototype_of$b(o, p);
9560
+ return _set_prototype_of$c(o, p);
9520
9561
  }
9521
- function _ts_generator$3(thisArg, body) {
9562
+ function _ts_generator$4(thisArg, body) {
9522
9563
  var f, y, t, _ = {
9523
9564
  label: 0,
9524
9565
  sent: function() {
@@ -9618,10 +9659,10 @@
9618
9659
  *
9619
9660
  * @category Control
9620
9661
  */ var Talk = /*#__PURE__*/ function(Control) {
9621
- _inherits$b(Talk, Control);
9662
+ _inherits$c(Talk, Control);
9622
9663
  function Talk(options) {
9623
9664
  var _this;
9624
- _this = Control.call(this, _extends$a({}, options, {
9665
+ _this = Control.call(this, _extends$b({}, options, {
9625
9666
  tagName: 'span',
9626
9667
  controlType: 'button',
9627
9668
  classNameSuffix: 'talk'
@@ -9673,8 +9714,8 @@
9673
9714
  var _this = this, _superprop_get__onControlClick = function() {
9674
9715
  return Control.prototype._onControlClick;
9675
9716
  };
9676
- return _async_to_generator$3(function() {
9677
- return _ts_generator$3(this, function(_state) {
9717
+ return _async_to_generator$4(function() {
9718
+ return _ts_generator$4(this, function(_state) {
9678
9719
  _superprop_get__onControlClick().call(_this, e);
9679
9720
  this.active = !this.active;
9680
9721
  this.emit(EVENTS.control.talkingChange, this.active);
@@ -9725,7 +9766,7 @@
9725
9766
  return Talk;
9726
9767
  }(Control);
9727
9768
 
9728
- function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
9769
+ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
9729
9770
  try {
9730
9771
  var info = gen[key](arg);
9731
9772
  var value = info.value;
@@ -9739,23 +9780,23 @@
9739
9780
  Promise.resolve(value).then(_next, _throw);
9740
9781
  }
9741
9782
  }
9742
- function _async_to_generator$2(fn) {
9783
+ function _async_to_generator$3(fn) {
9743
9784
  return function() {
9744
9785
  var self = this, args = arguments;
9745
9786
  return new Promise(function(resolve, reject) {
9746
9787
  var gen = fn.apply(self, args);
9747
9788
  function _next(value) {
9748
- asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
9789
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
9749
9790
  }
9750
9791
  function _throw(err) {
9751
- asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
9792
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
9752
9793
  }
9753
9794
  _next(undefined);
9754
9795
  });
9755
9796
  };
9756
9797
  }
9757
- function _extends$9() {
9758
- _extends$9 = Object.assign || function(target) {
9798
+ function _extends$a() {
9799
+ _extends$a = Object.assign || function(target) {
9759
9800
  for(var i = 1; i < arguments.length; i++){
9760
9801
  var source = arguments[i];
9761
9802
  for(var key in source){
@@ -9766,9 +9807,9 @@
9766
9807
  }
9767
9808
  return target;
9768
9809
  };
9769
- return _extends$9.apply(this, arguments);
9810
+ return _extends$a.apply(this, arguments);
9770
9811
  }
9771
- function _inherits$a(subClass, superClass) {
9812
+ function _inherits$b(subClass, superClass) {
9772
9813
  if (typeof superClass !== "function" && superClass !== null) {
9773
9814
  throw new TypeError("Super expression must either be null or a function");
9774
9815
  }
@@ -9779,16 +9820,16 @@
9779
9820
  configurable: true
9780
9821
  }
9781
9822
  });
9782
- if (superClass) _set_prototype_of$a(subClass, superClass);
9823
+ if (superClass) _set_prototype_of$b(subClass, superClass);
9783
9824
  }
9784
- function _set_prototype_of$a(o, p) {
9785
- _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9825
+ function _set_prototype_of$b(o, p) {
9826
+ _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9786
9827
  o.__proto__ = p;
9787
9828
  return o;
9788
9829
  };
9789
- return _set_prototype_of$a(o, p);
9830
+ return _set_prototype_of$b(o, p);
9790
9831
  }
9791
- function _ts_generator$2(thisArg, body) {
9832
+ function _ts_generator$3(thisArg, body) {
9792
9833
  var f, y, t, _ = {
9793
9834
  label: 0,
9794
9835
  sent: function() {
@@ -9886,10 +9927,10 @@
9886
9927
  *
9887
9928
  * @category Control
9888
9929
  */ var Broadcast = /*#__PURE__*/ function(Control) {
9889
- _inherits$a(Broadcast, Control);
9930
+ _inherits$b(Broadcast, Control);
9890
9931
  function Broadcast(options) {
9891
9932
  var _this;
9892
- _this = Control.call(this, _extends$9({}, options, {
9933
+ _this = Control.call(this, _extends$a({}, options, {
9893
9934
  tagName: 'span',
9894
9935
  controlType: 'button',
9895
9936
  classNameSuffix: 'broadcast'
@@ -9933,9 +9974,9 @@
9933
9974
  var _this = this, _superprop_get__onControlClick = function() {
9934
9975
  return Control.prototype._onControlClick;
9935
9976
  };
9936
- return _async_to_generator$2(function() {
9977
+ return _async_to_generator$3(function() {
9937
9978
  var _this__options_onChange, _this__options;
9938
- return _ts_generator$2(this, function(_state) {
9979
+ return _ts_generator$3(this, function(_state) {
9939
9980
  _superprop_get__onControlClick().call(_this, e);
9940
9981
  this.active = !this.active;
9941
9982
  this.emit(EVENTS.control.broadcastChange, this.active);
@@ -9950,6 +9991,233 @@
9950
9991
  return Broadcast;
9951
9992
  }(Control);
9952
9993
 
9994
+ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
9995
+ try {
9996
+ var info = gen[key](arg);
9997
+ var value = info.value;
9998
+ } catch (error) {
9999
+ reject(error);
10000
+ return;
10001
+ }
10002
+ if (info.done) {
10003
+ resolve(value);
10004
+ } else {
10005
+ Promise.resolve(value).then(_next, _throw);
10006
+ }
10007
+ }
10008
+ function _async_to_generator$2(fn) {
10009
+ return function() {
10010
+ var self = this, args = arguments;
10011
+ return new Promise(function(resolve, reject) {
10012
+ var gen = fn.apply(self, args);
10013
+ function _next(value) {
10014
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
10015
+ }
10016
+ function _throw(err) {
10017
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
10018
+ }
10019
+ _next(undefined);
10020
+ });
10021
+ };
10022
+ }
10023
+ function _extends$9() {
10024
+ _extends$9 = Object.assign || function(target) {
10025
+ for(var i = 1; i < arguments.length; i++){
10026
+ var source = arguments[i];
10027
+ for(var key in source){
10028
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
10029
+ target[key] = source[key];
10030
+ }
10031
+ }
10032
+ }
10033
+ return target;
10034
+ };
10035
+ return _extends$9.apply(this, arguments);
10036
+ }
10037
+ function _inherits$a(subClass, superClass) {
10038
+ if (typeof superClass !== "function" && superClass !== null) {
10039
+ throw new TypeError("Super expression must either be null or a function");
10040
+ }
10041
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
10042
+ constructor: {
10043
+ value: subClass,
10044
+ writable: true,
10045
+ configurable: true
10046
+ }
10047
+ });
10048
+ if (superClass) _set_prototype_of$a(subClass, superClass);
10049
+ }
10050
+ function _set_prototype_of$a(o, p) {
10051
+ _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
10052
+ o.__proto__ = p;
10053
+ return o;
10054
+ };
10055
+ return _set_prototype_of$a(o, p);
10056
+ }
10057
+ function _ts_generator$2(thisArg, body) {
10058
+ var f, y, t, _ = {
10059
+ label: 0,
10060
+ sent: function() {
10061
+ if (t[0] & 1) throw t[1];
10062
+ return t[1];
10063
+ },
10064
+ trys: [],
10065
+ ops: []
10066
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
10067
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
10068
+ return this;
10069
+ }), g;
10070
+ function verb(n) {
10071
+ return function(v) {
10072
+ return step([
10073
+ n,
10074
+ v
10075
+ ]);
10076
+ };
10077
+ }
10078
+ function step(op) {
10079
+ if (f) throw new TypeError("Generator is already executing.");
10080
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
10081
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
10082
+ if (y = 0, t) op = [
10083
+ op[0] & 2,
10084
+ t.value
10085
+ ];
10086
+ switch(op[0]){
10087
+ case 0:
10088
+ case 1:
10089
+ t = op;
10090
+ break;
10091
+ case 4:
10092
+ _.label++;
10093
+ return {
10094
+ value: op[1],
10095
+ done: false
10096
+ };
10097
+ case 5:
10098
+ _.label++;
10099
+ y = op[1];
10100
+ op = [
10101
+ 0
10102
+ ];
10103
+ continue;
10104
+ case 7:
10105
+ op = _.ops.pop();
10106
+ _.trys.pop();
10107
+ continue;
10108
+ default:
10109
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
10110
+ _ = 0;
10111
+ continue;
10112
+ }
10113
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
10114
+ _.label = op[1];
10115
+ break;
10116
+ }
10117
+ if (op[0] === 6 && _.label < t[1]) {
10118
+ _.label = t[1];
10119
+ t = op;
10120
+ break;
10121
+ }
10122
+ if (t && _.label < t[2]) {
10123
+ _.label = t[2];
10124
+ _.ops.push(op);
10125
+ break;
10126
+ }
10127
+ if (t[2]) _.ops.pop();
10128
+ _.trys.pop();
10129
+ continue;
10130
+ }
10131
+ op = body.call(thisArg, _);
10132
+ } catch (e) {
10133
+ op = [
10134
+ 6,
10135
+ e
10136
+ ];
10137
+ y = 0;
10138
+ } finally{
10139
+ f = t = 0;
10140
+ }
10141
+ if (op[0] & 5) throw op[1];
10142
+ return {
10143
+ value: op[0] ? op[1] : void 0,
10144
+ done: true
10145
+ };
10146
+ }
10147
+ }
10148
+ /**
10149
+ * AI对话框控件
10150
+ *
10151
+ * 用于触发AI对话框功能的按钮控件
10152
+ *
10153
+ * @category Control
10154
+ */ var AIChat = /*#__PURE__*/ function(Control) {
10155
+ _inherits$a(AIChat, Control);
10156
+ function AIChat(options) {
10157
+ var _this;
10158
+ _this = Control.call(this, _extends$9({}, options, {
10159
+ tagName: 'span',
10160
+ controlType: 'button',
10161
+ classNameSuffix: 'aichat'
10162
+ })) || this;
10163
+ _this._options = options;
10164
+ if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud") {
10165
+ _this._render();
10166
+ _this.on(EVENTS.aichatChange, function(active) {
10167
+ if (_this.active !== active) {
10168
+ _this.active = active;
10169
+ _this._render();
10170
+ }
10171
+ });
10172
+ }
10173
+ return _this;
10174
+ }
10175
+ var _proto = AIChat.prototype;
10176
+ _proto._render = function _render() {
10177
+ var _this_locale;
10178
+ this.$container.innerHTML = IconComponents.aiChat({
10179
+ title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT
10180
+ });
10181
+ };
10182
+ _proto.reset = function reset(hide) {
10183
+ if (this.active) {
10184
+ this.active = false;
10185
+ this._render();
10186
+ this.emit(EVENTS.control.aichatChange, false);
10187
+ Control.prototype.reset.call(this, hide);
10188
+ }
10189
+ };
10190
+ /**
10191
+ * 销毁AI对话框控件
10192
+ */ _proto.destroy = function destroy() {
10193
+ if (this.active) {
10194
+ this.reset();
10195
+ }
10196
+ Control.prototype.destroy.call(this);
10197
+ };
10198
+ /**
10199
+ * 点击 Control 会触发
10200
+ */ _proto._onControlClick = function _onControlClick(e) {
10201
+ var _this = this, _superprop_get__onControlClick = function() {
10202
+ return Control.prototype._onControlClick;
10203
+ };
10204
+ return _async_to_generator$2(function() {
10205
+ var _this__options_onChange, _this__options;
10206
+ return _ts_generator$2(this, function(_state) {
10207
+ _superprop_get__onControlClick().call(_this, e);
10208
+ this.active = !this.active;
10209
+ this.emit(EVENTS.control.aichatChange, this.active);
10210
+ (_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this.active);
10211
+ this._render();
10212
+ return [
10213
+ 2
10214
+ ];
10215
+ });
10216
+ }).call(this);
10217
+ };
10218
+ return AIChat;
10219
+ }(Control);
10220
+
9953
10221
  function _defineProperties$1(target, props) {
9954
10222
  for(var i = 0; i < props.length; i++){
9955
10223
  var descriptor = props[i];
@@ -11451,6 +11719,7 @@
11451
11719
  record: Record,
11452
11720
  talk: Talk,
11453
11721
  broadcast: Broadcast,
11722
+ aiChat: AIChat,
11454
11723
  zoom: Zoom$1,
11455
11724
  definition: Definition,
11456
11725
  fullscreen: Fullscreen,
@@ -11983,7 +12252,8 @@
11983
12252
  }
11984
12253
  // 需要权限的控件
11985
12254
  var AUTH_KEY = [
11986
- 'ptz'
12255
+ 'ptz',
12256
+ 'aiChat'
11987
12257
  ];
11988
12258
  /**
11989
12259
  * 渲染控件
@@ -12046,7 +12316,8 @@
12046
12316
  accessToken: theme.options.accessToken,
12047
12317
  token: theme.options.token,
12048
12318
  deviceSerial: theme.urlInfo.deviceSerial,
12049
- channelNo: theme.urlInfo.channelNo
12319
+ channelNo: theme.urlInfo.channelNo,
12320
+ urlInfo: theme.urlInfo
12050
12321
  } : {}, {
12051
12322
  PLAY_TYPE: theme.options.type
12052
12323
  }, ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["" + item.iconId + "Options"]) || {}, {
@@ -13833,7 +14104,7 @@
13833
14104
  zh: zh,
13834
14105
  en: en
13835
14106
  };
13836
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.1';
14107
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.3';
13837
14108
 
13838
14109
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
13839
14110