@ezuikit/player-theme 2.1.0-beta.10 → 2.1.0-beta.11

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.0-beta.10
3
- * Copyright (c) 2026-01-14 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.0-beta.11
3
+ * Copyright (c) 2026-01-16 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
@@ -488,6 +488,7 @@
488
488
  /** 控件开始录制 */ recordingChange: 'recordingChange',
489
489
  /** 对讲状态变化 */ talkingChange: 'talkingChange',
490
490
  /** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
491
+ /** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
491
492
  /** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
492
493
  records: 'records',
493
494
  ptzSpeedChange: 'ptzSpeedChange',
@@ -531,6 +532,8 @@
531
532
  /** 开始对讲 */ talkingChange: 'Control.talkingChange',
532
533
  /** 对讲错误, 一般是麦克风权限被拒绝 */ talkError: 'Control.talkError',
533
534
  /** 对讲控件销毁 */ talkDestroy: 'Control.talkDestroy',
535
+ /** 语音广播状态变化 */ broadcastChange: 'Control.broadcastChange',
536
+ /** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
534
537
  /** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
535
538
  /** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
536
539
  /** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
@@ -582,7 +585,7 @@
582
585
  if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
583
586
  return Constructor;
584
587
  }
585
- function _inherits$r(subClass, superClass) {
588
+ function _inherits$s(subClass, superClass) {
586
589
  if (typeof superClass !== "function" && superClass !== null) {
587
590
  throw new TypeError("Super expression must either be null or a function");
588
591
  }
@@ -593,14 +596,14 @@
593
596
  configurable: true
594
597
  }
595
598
  });
596
- if (superClass) _set_prototype_of$r(subClass, superClass);
599
+ if (superClass) _set_prototype_of$s(subClass, superClass);
597
600
  }
598
- function _set_prototype_of$r(o, p) {
599
- _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
601
+ function _set_prototype_of$s(o, p) {
602
+ _set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
600
603
  o.__proto__ = p;
601
604
  return o;
602
605
  };
603
- return _set_prototype_of$r(o, p);
606
+ return _set_prototype_of$s(o, p);
604
607
  }
605
608
  /**
606
609
  * 控件基类
@@ -614,7 +617,7 @@
614
617
  * const myControl = new MyControl({})
615
618
  * ```
616
619
  */ var Control = /*#__PURE__*/ function(EventEmitter) {
617
- _inherits$r(Control, EventEmitter);
620
+ _inherits$s(Control, EventEmitter);
618
621
  function Control(options) {
619
622
  var _this;
620
623
  var _this___options;
@@ -789,8 +792,8 @@
789
792
  return Control;
790
793
  }(EventEmitter);
791
794
 
792
- function _extends$q() {
793
- _extends$q = Object.assign || function(target) {
795
+ function _extends$r() {
796
+ _extends$r = Object.assign || function(target) {
794
797
  for(var i = 1; i < arguments.length; i++){
795
798
  var source = arguments[i];
796
799
  for(var key in source){
@@ -801,9 +804,9 @@
801
804
  }
802
805
  return target;
803
806
  };
804
- return _extends$q.apply(this, arguments);
807
+ return _extends$r.apply(this, arguments);
805
808
  }
806
- function _inherits$q(subClass, superClass) {
809
+ function _inherits$r(subClass, superClass) {
807
810
  if (typeof superClass !== "function" && superClass !== null) {
808
811
  throw new TypeError("Super expression must either be null or a function");
809
812
  }
@@ -814,25 +817,25 @@
814
817
  configurable: true
815
818
  }
816
819
  });
817
- if (superClass) _set_prototype_of$q(subClass, superClass);
820
+ if (superClass) _set_prototype_of$r(subClass, superClass);
818
821
  }
819
- function _set_prototype_of$q(o, p) {
820
- _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
822
+ function _set_prototype_of$r(o, p) {
823
+ _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
821
824
  o.__proto__ = p;
822
825
  return o;
823
826
  };
824
- return _set_prototype_of$q(o, p);
827
+ return _set_prototype_of$r(o, p);
825
828
  }
826
829
  var LOADING_DEFAULT_OPTIONS = {};
827
830
  /**
828
831
  * 加载动画控件
829
832
  * @category Control
830
833
  */ var Loading = /*#__PURE__*/ function(Control) {
831
- _inherits$q(Loading, Control);
834
+ _inherits$r(Loading, Control);
832
835
  function Loading(options) {
833
836
  if (options === void 0) options = {};
834
837
  var _this;
835
- _this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$q({}, options, {
838
+ _this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$r({}, options, {
836
839
  tagName: 'div',
837
840
  controlType: 'block',
838
841
  classNameSuffix: 'loading'
@@ -870,8 +873,8 @@
870
873
  return Loading;
871
874
  }(Control);
872
875
 
873
- function _extends$p() {
874
- _extends$p = Object.assign || function(target) {
876
+ function _extends$q() {
877
+ _extends$q = Object.assign || function(target) {
875
878
  for(var i = 1; i < arguments.length; i++){
876
879
  var source = arguments[i];
877
880
  for(var key in source){
@@ -882,9 +885,9 @@
882
885
  }
883
886
  return target;
884
887
  };
885
- return _extends$p.apply(this, arguments);
888
+ return _extends$q.apply(this, arguments);
886
889
  }
887
- function _inherits$p(subClass, superClass) {
890
+ function _inherits$q(subClass, superClass) {
888
891
  if (typeof superClass !== "function" && superClass !== null) {
889
892
  throw new TypeError("Super expression must either be null or a function");
890
893
  }
@@ -895,14 +898,14 @@
895
898
  configurable: true
896
899
  }
897
900
  });
898
- if (superClass) _set_prototype_of$p(subClass, superClass);
901
+ if (superClass) _set_prototype_of$q(subClass, superClass);
899
902
  }
900
- function _set_prototype_of$p(o, p) {
901
- _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
903
+ function _set_prototype_of$q(o, p) {
904
+ _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
902
905
  o.__proto__ = p;
903
906
  return o;
904
907
  };
905
- return _set_prototype_of$p(o, p);
908
+ return _set_prototype_of$q(o, p);
906
909
  }
907
910
  // 不放在服务器上 是因为有可能http加载失败
908
911
  // prettier-ignore
@@ -914,11 +917,11 @@
914
917
  * 封面控件
915
918
  * @category Control
916
919
  */ var Poster = /*#__PURE__*/ function(Control) {
917
- _inherits$p(Poster, Control);
920
+ _inherits$q(Poster, Control);
918
921
  function Poster(options) {
919
922
  if (options === void 0) options = {};
920
923
  var _this;
921
- _this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$p({}, options, {
924
+ _this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$q({}, options, {
922
925
  tagName: 'div',
923
926
  controlType: 'block',
924
927
  classNameSuffix: 'poster'
@@ -1013,6 +1016,7 @@
1013
1016
  talkGrowth: function(prefix) {
1014
1017
  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>';
1015
1018
  },
1019
+ /** 语音广播 */ 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>',
1016
1020
  /** 相机/截图 */ 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>',
1017
1021
  /** 电子放大 */ 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>',
1018
1022
  /** 隐私遮蔽 */ 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>',
@@ -1097,6 +1101,10 @@
1097
1101
  if (attr === void 0) attr = {};
1098
1102
  return createIcon(Icons.talk, 'talk', attr);
1099
1103
  },
1104
+ broadcast: function(attr) {
1105
+ if (attr === void 0) attr = {};
1106
+ return createIcon(Icons.broadcast, 'broadcast', attr);
1107
+ },
1100
1108
  talkGrowth: function(attr) {
1101
1109
  if (attr === void 0) attr = {};
1102
1110
  return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
@@ -1175,8 +1183,8 @@
1175
1183
  }
1176
1184
  };
1177
1185
 
1178
- function _extends$o() {
1179
- _extends$o = Object.assign || function(target) {
1186
+ function _extends$p() {
1187
+ _extends$p = Object.assign || function(target) {
1180
1188
  for(var i = 1; i < arguments.length; i++){
1181
1189
  var source = arguments[i];
1182
1190
  for(var key in source){
@@ -1187,9 +1195,9 @@
1187
1195
  }
1188
1196
  return target;
1189
1197
  };
1190
- return _extends$o.apply(this, arguments);
1198
+ return _extends$p.apply(this, arguments);
1191
1199
  }
1192
- function _inherits$o(subClass, superClass) {
1200
+ function _inherits$p(subClass, superClass) {
1193
1201
  if (typeof superClass !== "function" && superClass !== null) {
1194
1202
  throw new TypeError("Super expression must either be null or a function");
1195
1203
  }
@@ -1200,25 +1208,25 @@
1200
1208
  configurable: true
1201
1209
  }
1202
1210
  });
1203
- if (superClass) _set_prototype_of$o(subClass, superClass);
1211
+ if (superClass) _set_prototype_of$p(subClass, superClass);
1204
1212
  }
1205
- function _set_prototype_of$o(o, p) {
1206
- _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1213
+ function _set_prototype_of$p(o, p) {
1214
+ _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1207
1215
  o.__proto__ = p;
1208
1216
  return o;
1209
1217
  };
1210
- return _set_prototype_of$o(o, p);
1218
+ return _set_prototype_of$p(o, p);
1211
1219
  }
1212
1220
  var MESSAGE_DEFAULT_OPTIONS = {};
1213
1221
  /**
1214
1222
  * 消息控件
1215
1223
  * @category Control
1216
1224
  */ var Message = /*#__PURE__*/ function(Control) {
1217
- _inherits$o(Message, Control);
1225
+ _inherits$p(Message, Control);
1218
1226
  function Message(options) {
1219
1227
  if (options === void 0) options = {};
1220
1228
  var _this;
1221
- _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$o({}, options, {
1229
+ _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$p({}, options, {
1222
1230
  tagName: 'div',
1223
1231
  controlType: 'block'
1224
1232
  }))) || this;
@@ -1371,8 +1379,8 @@
1371
1379
  if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
1372
1380
  return Constructor;
1373
1381
  }
1374
- function _extends$n() {
1375
- _extends$n = Object.assign || function(target) {
1382
+ function _extends$o() {
1383
+ _extends$o = Object.assign || function(target) {
1376
1384
  for(var i = 1; i < arguments.length; i++){
1377
1385
  var source = arguments[i];
1378
1386
  for(var key in source){
@@ -1383,9 +1391,9 @@
1383
1391
  }
1384
1392
  return target;
1385
1393
  };
1386
- return _extends$n.apply(this, arguments);
1394
+ return _extends$o.apply(this, arguments);
1387
1395
  }
1388
- function _inherits$n(subClass, superClass) {
1396
+ function _inherits$o(subClass, superClass) {
1389
1397
  if (typeof superClass !== "function" && superClass !== null) {
1390
1398
  throw new TypeError("Super expression must either be null or a function");
1391
1399
  }
@@ -1396,23 +1404,23 @@
1396
1404
  configurable: true
1397
1405
  }
1398
1406
  });
1399
- if (superClass) _set_prototype_of$n(subClass, superClass);
1407
+ if (superClass) _set_prototype_of$o(subClass, superClass);
1400
1408
  }
1401
- function _set_prototype_of$n(o, p) {
1402
- _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1409
+ function _set_prototype_of$o(o, p) {
1410
+ _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1403
1411
  o.__proto__ = p;
1404
1412
  return o;
1405
1413
  };
1406
- return _set_prototype_of$n(o, p);
1414
+ return _set_prototype_of$o(o, p);
1407
1415
  }
1408
1416
  /**
1409
1417
  * 播放/暂停控件
1410
1418
  * @category Control
1411
1419
  */ var Play = /*#__PURE__*/ function(Control) {
1412
- _inherits$n(Play, Control);
1420
+ _inherits$o(Play, Control);
1413
1421
  function Play(options) {
1414
1422
  var _this;
1415
- _this = Control.call(this, _extends$n({}, options, {
1423
+ _this = Control.call(this, _extends$o({}, options, {
1416
1424
  tagName: 'span',
1417
1425
  controlType: 'button',
1418
1426
  classNameSuffix: 'play'
@@ -2348,9 +2356,9 @@
2348
2356
  var dist$7 = {};
2349
2357
 
2350
2358
  /*
2351
- * @ezuikit/utils-tools v2.0.2
2359
+ * @ezuikit/utils-tools v2.0.1
2352
2360
  * tools utils
2353
- * Copyright (c) 2026-01-05 Ezviz-OpenBiz
2361
+ * Copyright (c) 2025-12-02 Ezviz-OpenBiz
2354
2362
  * Released under the MIT License.
2355
2363
  */
2356
2364
 
@@ -2359,7 +2367,7 @@
2359
2367
  function requireDist$7 () {
2360
2368
  if (hasRequiredDist$7) return dist$7;
2361
2369
  hasRequiredDist$7 = 1;
2362
- var getQuery=function(url){var query=url.split("?")[1],obj={};if(query)for(var vars=query.split("&"),i=0;i<vars.length;i++){var pair=vars[i].split("=");obj[pair[0]]=decodeURIComponent(pair[1]);}return obj};function parseEzopenUrl(url){var obj={};if(/^ezopen:\/\//.test(url)){if(url.includes("@")){var endIndex=url.indexOf("@"),startIndex=url.indexOf("//");obj.validateCode=url.substring(startIndex+2,endIndex),url=url.replace(obj.validateCode+"@","");}obj.protocol=url.split("//")[0],obj.search=url.split("?")[1]?"?"+url.split("?")[1]:"",obj.hostname=url.split("/")[2],obj.origin=obj.protocol+"//"+obj.hostname,obj.pathname=url.split("?")[0].replace(obj.origin,""),obj.href=url;var pathnames=obj.pathname.split("/"),lastPath=pathnames[2].split(".");return obj.deviceSerial=pathnames[1],obj.channelNo=lastPath[0],obj.type=lastPath[lastPath.length-1],"live"===obj.type&&(obj.definition=lastPath.length>2?lastPath[1]:"sd"),"rec"===obj.type&&pathnames[2]&&(obj.recType=pathnames[2].includes(".cloud.")?"cloud":""),obj.searchParams=getQuery(url),obj}return {}}var codec={h264:1,h265:2,h266:4,vp8:8,vp9:16,av1:32};function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _instanceof(left,right){return null!=right&&"undefined"!=typeof Symbol&&right[Symbol.hasInstance]?!!right[Symbol.hasInstance](left):left instanceof right}function _create_for_of_iterator_helper_loose(o,allowArrayLike){var it="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(it)return (it=it.call(o)).next.bind(it);if(Array.isArray(o)||(it=function(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return "Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_array_like_to_array(o,minLen):void 0}}(o))||allowArrayLike){it&&(o=it);var i=0;return function(){return i>=o.length?{done:true}:{done:false,value:o[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var DateTime=function(){function DateTime(){}return DateTime.fillZero=function(num,len){return void 0===len&&(len=2),num.toString().padStart(len,"0")},DateTime.format=function(input,format){var date;if(_instanceof(input,Date))date=input;else {if("number"!=typeof input&&"string"!=typeof input)throw new Error("Invalid date input");date=DateTime.toDate(input+"");}for(var _step,result=format,_iterator=_create_for_of_iterator_helper_loose([[/(yyyy|YYYY)/g,function(){return DateTime.fillZero(date.getFullYear(),4)}],[/(yy|YY)/g,function(){return DateTime.fillZero(date.getFullYear()%100,2)}],[/(MM)/g,function(){return DateTime.fillZero(date.getMonth()+1,2)}],[/(M)/g,function(){return (date.getMonth()+1).toString()}],[/(dd|DD)/g,function(){return DateTime.fillZero(date.getDate(),2)}],[/(d|D)/g,function(){return date.getDate().toString()}],[/(HH|hh)/g,function(){return DateTime.fillZero(date.getHours(),2)}],[/(H|h)/g,function(){return date.getHours().toString()}],[/(mm)/g,function(){return DateTime.fillZero(date.getMinutes(),2)}],[/(m)/g,function(){return date.getMinutes().toString()}],[/(ss|SS)/g,function(){return DateTime.fillZero(date.getSeconds(),2)}],[/(s|S)/g,function(){return date.getSeconds().toString()}],[/(fff)/g,function(){return DateTime.fillZero(date.getMilliseconds(),3)}]]);!(_step=_iterator()).done;){var _step_value=_step.value,regexp=_step_value[0],fn=_step_value[1];result=result.replace(regexp,fn);}return result},DateTime.toDate=function(str){if(_instanceof(str,Date))return str;str=(str+"").trim().replace(/\/|\./gi,"-"),/^\d{4}$/.test(str)&&(str+="-01"),/^\d{4}-\d{2}$/.test(str)&&(str+="-01");try{return /^\d{4}-\d{2}-\d{2}$/.test(str)?new Date(+str.slice(0,4),+str.slice(5,7)-1,+str.slice(8,10),0,0,0):/^\d{8}$/.test(str)?(str+="",new Date(+str.slice(0,4),+str.slice(4,6)-1,+str.slice(6,8),0,0)):/^\d{14}$/.test(str)?(str+="",new Date(+str.slice(0,4),+str.slice(4,6)-1,+str.slice(6,8),+str.slice(8,10),+str.slice(10,12),+str.slice(12,14))):/^\d{13}$/.test(str)?new Date(Number(str)):/^\d{10}$/.test(str)?new Date(1e3*Number(str)):new Date(str)}catch(error){throw new Error("Invalid date string")}},DateTime.diff=function(date1,date2,type){ void 0===type&&(type="second");var d1=DateTime.toDate(date1),d2=DateTime.toDate(date2);return "second"===type?Math.floor((d1.getTime()-d2.getTime())/1e3):"minute"===type?Math.floor((d1.getTime()-d2.getTime())/1e3/60):"hour"===type?Math.floor((d1.getTime()-d2.getTime())/1e3/60/60):"day"===type?Math.floor((d1.getTime()-d2.getTime())/1e3/60/60/24):Math.abs(d1.getTime()-d2.getTime())},DateTime}();dist$7.DateTime=DateTime,dist$7.addVc=function(url,codecs){ void 0===codecs&&(codecs=["h264"]);var vc=(codecs||["h264"]).reduce(function(acc,key){return key=key.toLowerCase(),acc+(codec[key]||0)},0),host=url.split("?")[0],query=url.split("?")[1];return query=(query||"").split("&").filter(function(item){return !/^vc=\d?/.test(item)}).join("&"),host+"?"+(query+=(query?"&":"")+"vc="+vc)},dist$7.getQuery=getQuery,dist$7.getStaticPath=function(path,base){ void 0===base&&(base="");var protocolReg=/^(https?:\/\/|^\/\/)/;if(""===path||void 0===path)return "";if(protocolReg.test(path))return path;path=path.replace(/\/+/g,"/"),base=protocolReg.test(base||"")?base:window.location.href;try{return new URL(path,base).href}catch(error){return path}},dist$7.isHttp=function(url){return /^http[s]?:\/\//.test(url)},dist$7.isMobile=function(agent){var _navigator,_navigator1,_navigator2,_window;return /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|Opera Mini)/i.test(null!=agent?agent:null==(_navigator=navigator)?void 0:_navigator.userAgent)||/Macintosh/i.test(agent||(null==(_navigator1=navigator)?void 0:_navigator1.userAgent))&&(null==(_navigator2=navigator)?void 0:_navigator2.maxTouchPoints)>1||!!(null==(_window=window)?void 0:_window.__IS_MOBILE_SIMULATOR__)},dist$7.isRealMobile=function(agent){var _navigator,ua=(null!=agent?agent:null==(_navigator=navigator)?void 0:_navigator.userAgent).toLowerCase();if(/ipad|tablet|playbook|silk|android(?!.*mobile)/i.test(ua))return false;var hasTouch="ontouchstart"in window||navigator.maxTouchPoints>0;return /android|webos|iphone|ipod|blackberry|iemobile|opera mini/i.test(ua)&&hasTouch},dist$7.parseEzopenUrl=parseEzopenUrl,dist$7.pick=function(obj,keys){return Object.entries(obj).reduce(function(acc,param){var key=param[0],value=param[1];return keys.includes(key)&&(acc[key]=value),acc},{})},dist$7.switchEzopenUrl=function(url,options){var _ref=null!=options?options:{},type=_ref.type,recType=_ref.recType,search=_ref.search,definition=_ref.definition,channelNo=_ref.channelNo,deviceSerial=_ref.deviceSerial,validateCode=_ref.validateCode,obj=parseEzopenUrl(url);if(search){var ns=Object.assign({},obj.searchParams,getQuery("?"+search.replace("?","")));search=Object.entries(ns).reduce(function(acc,param){var key=param[0],value=param[1];return ""===value?acc:acc+=key+"="+encodeURIComponent(value)+"&"},"?").replace(/&$/,"");}else search=obj.search;return type=type||obj.type,recType=null!=recType?recType:obj.recType,definition=null!=definition?definition:obj.definition,channelNo=channelNo||obj.channelNo,deviceSerial=deviceSerial||obj.deviceSerial,validateCode=null!=validateCode?validateCode:obj.validateCode,obj.protocol+"//"+(validateCode?validateCode+"@":"")+obj.hostname+"/"+deviceSerial+"/"+channelNo+("rec"===type&&recType?"."+recType:"")+("live"===type&&"hd"===definition?"."+definition:"")+"."+type+search};
2370
+ var getQuery=function(url){var query=url.split("?")[1],obj={};if(query)for(var vars=query.split("&"),i=0;i<vars.length;i++){var pair=vars[i].split("=");obj[pair[0]]=decodeURIComponent(pair[1]);}return obj};function parseEzopenUrl(url){var obj={};if(/^ezopen:\/\//.test(url)){if(url.includes("@")){var endIndex=url.indexOf("@"),startIndex=url.indexOf("//");obj.validateCode=url.substring(startIndex+2,endIndex),url=url.replace(obj.validateCode+"@","");}obj.protocol=url.split("//")[0],obj.search=url.split("?")[1]?"?"+url.split("?")[1]:"",obj.hostname=url.split("/")[2],obj.origin=obj.protocol+"//"+obj.hostname,obj.pathname=url.split("?")[0].replace(obj.origin,""),obj.href=url;var pathnames=obj.pathname.split("/"),lastPath=pathnames[2].split(".");return obj.deviceSerial=pathnames[1],obj.channelNo=lastPath[0],obj.type=lastPath[lastPath.length-1],"live"===obj.type&&(obj.definition=lastPath.length>2?lastPath[1]:"sd"),"rec"===obj.type&&pathnames[2]&&(obj.recType=pathnames[2].includes(".cloud.")?"cloud":""),obj.searchParams=getQuery(url),obj}return {}}var codec={h264:1,h265:2,h266:4,vp8:8,vp9:16,av1:32};function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _instanceof(left,right){return null!=right&&"undefined"!=typeof Symbol&&right[Symbol.hasInstance]?!!right[Symbol.hasInstance](left):left instanceof right}function _create_for_of_iterator_helper_loose(o,allowArrayLike){var it="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(it)return (it=it.call(o)).next.bind(it);if(Array.isArray(o)||(it=function(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return "Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_array_like_to_array(o,minLen):void 0}}(o))||allowArrayLike){it&&(o=it);var i=0;return function(){return i>=o.length?{done:true}:{done:false,value:o[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var DateTime=function(){function DateTime(){}return DateTime.fillZero=function(num,len){return void 0===len&&(len=2),num.toString().padStart(len,"0")},DateTime.format=function(input,format){var date;if(_instanceof(input,Date))date=input;else {if("number"!=typeof input&&"string"!=typeof input)throw new Error("Invalid date input");date=DateTime.toDate(input+"");}for(var _step,result=format,_iterator=_create_for_of_iterator_helper_loose([[/(yyyy|YYYY)/g,function(){return DateTime.fillZero(date.getFullYear(),4)}],[/(yy|YY)/g,function(){return DateTime.fillZero(date.getFullYear()%100,2)}],[/(MM)/g,function(){return DateTime.fillZero(date.getMonth()+1,2)}],[/(M)/g,function(){return (date.getMonth()+1).toString()}],[/(dd|DD)/g,function(){return DateTime.fillZero(date.getDate(),2)}],[/(d|D)/g,function(){return date.getDate().toString()}],[/(HH|hh)/g,function(){return DateTime.fillZero(date.getHours(),2)}],[/(H|h)/g,function(){return date.getHours().toString()}],[/(mm)/g,function(){return DateTime.fillZero(date.getMinutes(),2)}],[/(m)/g,function(){return date.getMinutes().toString()}],[/(ss|SS)/g,function(){return DateTime.fillZero(date.getSeconds(),2)}],[/(s|S)/g,function(){return date.getSeconds().toString()}],[/(fff)/g,function(){return DateTime.fillZero(date.getMilliseconds(),3)}]]);!(_step=_iterator()).done;){var _step_value=_step.value,regexp=_step_value[0],fn=_step_value[1];result=result.replace(regexp,fn);}return result},DateTime.toDate=function(str){if(_instanceof(str,Date))return str;str=(str+"").trim().replace(/\/|\./gi,"-"),/^\d{4}$/.test(str)&&(str+="-01"),/^\d{4}-\d{2}$/.test(str)&&(str+="-01");try{return /^\d{4}-\d{2}-\d{2}$/.test(str)?new Date(str+"T00:00:00"):/^\d{8}$/.test(str)?(str+="",new Date(str.slice(0,4)+"-"+str.slice(4,6)+"-"+str.slice(6,8)+"T00:00:00")):/^\d{14}$/.test(str)?(str+="",new Date(str.slice(0,4)+"-"+str.slice(4,6)+"-"+str.slice(6,8)+"T"+str.slice(8,10)+":"+str.slice(10,12)+":"+str.slice(12,14))):/^\d{13}$/.test(str)?new Date(Number(str)):/^\d{10}$/.test(str)?new Date(1e3*Number(str)):new Date(str)}catch(error){throw new Error("Invalid date string")}},DateTime.diff=function(date1,date2,type){ void 0===type&&(type="second");var d1=DateTime.toDate(date1),d2=DateTime.toDate(date2);return "second"===type?Math.floor((d1.getTime()-d2.getTime())/1e3):"minute"===type?Math.floor((d1.getTime()-d2.getTime())/1e3/60):"hour"===type?Math.floor((d1.getTime()-d2.getTime())/1e3/60/60):"day"===type?Math.floor((d1.getTime()-d2.getTime())/1e3/60/60/24):Math.abs(d1.getTime()-d2.getTime())},DateTime}();dist$7.DateTime=DateTime,dist$7.addVc=function(url,codecs){ void 0===codecs&&(codecs=["h264"]);var vc=(codecs||["h264"]).reduce((function(acc,key){return key=key.toLowerCase(),acc+(codec[key]||0)}),0),host=url.split("?")[0],query=url.split("?")[1];return query=(query||"").split("&").filter((function(item){return !/^vc=\d?/.test(item)})).join("&"),host+"?"+(query+=(query?"&":"")+"vc="+vc)},dist$7.getQuery=getQuery,dist$7.getStaticPath=function(path,base){ void 0===base&&(base="");var protocolReg=/^(https?:\/\/|^\/\/)/;if(""===path||void 0===path)return "";if(protocolReg.test(path))return path;path=path.replace(/\/+/g,"/"),base=protocolReg.test(base||"")?base:window.location.href;try{return new URL(path,base).href}catch(error){return path}},dist$7.isHttp=function(url){return /^http[s]?:\/\//.test(url)},dist$7.isMobile=function(agent){var _navigator,_navigator1,_navigator2,_window;return /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|Opera Mini)/i.test(null!=agent?agent:null==(_navigator=navigator)?void 0:_navigator.userAgent)||/Macintosh/i.test(agent||(null==(_navigator1=navigator)?void 0:_navigator1.userAgent))&&(null==(_navigator2=navigator)?void 0:_navigator2.maxTouchPoints)>1||!!(null==(_window=window)?void 0:_window.__IS_MOBILE_SIMULATOR__)},dist$7.parseEzopenUrl=parseEzopenUrl,dist$7.pick=function(obj,keys){return Object.entries(obj).reduce((function(acc,param){var key=param[0],value=param[1];return keys.includes(key)&&(acc[key]=value),acc}),{})},dist$7.switchEzopenUrl=function(url,options){var _ref=null!=options?options:{},type=_ref.type,recType=_ref.recType,search=_ref.search,definition=_ref.definition,channelNo=_ref.channelNo,deviceSerial=_ref.deviceSerial,validateCode=_ref.validateCode,obj=parseEzopenUrl(url);if(search){var ns=Object.assign({},obj.searchParams,getQuery("?"+search.replace("?","")));search=Object.entries(ns).reduce((function(acc,param){var key=param[0],value=param[1];return ""===value?acc:acc+=key+"="+encodeURIComponent(value)+"&"}),"?").replace(/&$/,"");}else search=obj.search;return type=type||obj.type,recType=null!=recType?recType:obj.recType,definition=null!=definition?definition:obj.definition,channelNo=channelNo||obj.channelNo,deviceSerial=deviceSerial||obj.deviceSerial,validateCode=null!=validateCode?validateCode:obj.validateCode,obj.protocol+"//"+(validateCode?validateCode+"@":"")+obj.hostname+"/"+deviceSerial+"/"+channelNo+("rec"===type&&recType?"."+recType:"")+("live"===type&&"hd"===definition?"."+definition:"")+"."+type+search};
2363
2371
  return dist$7;
2364
2372
  }
2365
2373
 
@@ -2930,8 +2938,8 @@
2930
2938
  if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
2931
2939
  return Constructor;
2932
2940
  }
2933
- function _extends$m() {
2934
- _extends$m = Object.assign || function(target) {
2941
+ function _extends$n() {
2942
+ _extends$n = Object.assign || function(target) {
2935
2943
  for(var i = 1; i < arguments.length; i++){
2936
2944
  var source = arguments[i];
2937
2945
  for(var key in source){
@@ -2942,9 +2950,9 @@
2942
2950
  }
2943
2951
  return target;
2944
2952
  };
2945
- return _extends$m.apply(this, arguments);
2953
+ return _extends$n.apply(this, arguments);
2946
2954
  }
2947
- function _inherits$m(subClass, superClass) {
2955
+ function _inherits$n(subClass, superClass) {
2948
2956
  if (typeof superClass !== "function" && superClass !== null) {
2949
2957
  throw new TypeError("Super expression must either be null or a function");
2950
2958
  }
@@ -2955,14 +2963,14 @@
2955
2963
  configurable: true
2956
2964
  }
2957
2965
  });
2958
- if (superClass) _set_prototype_of$m(subClass, superClass);
2966
+ if (superClass) _set_prototype_of$n(subClass, superClass);
2959
2967
  }
2960
- function _set_prototype_of$m(o, p) {
2961
- _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2968
+ function _set_prototype_of$n(o, p) {
2969
+ _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2962
2970
  o.__proto__ = p;
2963
2971
  return o;
2964
2972
  };
2965
- return _set_prototype_of$m(o, p);
2973
+ return _set_prototype_of$n(o, p);
2966
2974
  }
2967
2975
  var VOLUME_DEFAULT_OPTIONS = {
2968
2976
  volume: 0.8,
@@ -2976,12 +2984,12 @@
2976
2984
  * 音量调节控件
2977
2985
  * @category Control
2978
2986
  */ var Volume = /*#__PURE__*/ function(Control) {
2979
- _inherits$m(Volume, Control);
2987
+ _inherits$n(Volume, Control);
2980
2988
  function Volume(options) {
2981
2989
  if (options === void 0) options = {};
2982
2990
  var _this;
2983
2991
  var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
2984
- _this = Control.call(this, _extends$m({}, options, {
2992
+ _this = Control.call(this, _extends$n({}, options, {
2985
2993
  tagName: 'span',
2986
2994
  classNameSuffix: 'volume',
2987
2995
  controlType: 'button'
@@ -3396,7 +3404,7 @@
3396
3404
  var screenfullExports = requireScreenfull();
3397
3405
  var screenfull = /*@__PURE__*/getDefaultExportFromCjs(screenfullExports);
3398
3406
 
3399
- function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
3407
+ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
3400
3408
  try {
3401
3409
  var info = gen[key](arg);
3402
3410
  var value = info.value;
@@ -3410,22 +3418,22 @@
3410
3418
  Promise.resolve(value).then(_next, _throw);
3411
3419
  }
3412
3420
  }
3413
- function _async_to_generator$5(fn) {
3421
+ function _async_to_generator$6(fn) {
3414
3422
  return function() {
3415
3423
  var self = this, args = arguments;
3416
3424
  return new Promise(function(resolve, reject) {
3417
3425
  var gen = fn.apply(self, args);
3418
3426
  function _next(value) {
3419
- asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
3427
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
3420
3428
  }
3421
3429
  function _throw(err) {
3422
- asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
3430
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
3423
3431
  }
3424
3432
  _next(undefined);
3425
3433
  });
3426
3434
  };
3427
3435
  }
3428
- function _ts_generator$5(thisArg, body) {
3436
+ function _ts_generator$6(thisArg, body) {
3429
3437
  var f, y, t, _ = {
3430
3438
  label: 0,
3431
3439
  sent: function() {
@@ -3639,8 +3647,8 @@
3639
3647
  * 全屏
3640
3648
  * @returns Promise<void>
3641
3649
  */ _proto.fullscreen = function fullscreen() {
3642
- return _async_to_generator$5(function() {
3643
- return _ts_generator$5(this, function(_state) {
3650
+ return _async_to_generator$6(function() {
3651
+ return _ts_generator$6(this, function(_state) {
3644
3652
  switch(_state.label){
3645
3653
  case 0:
3646
3654
  if (!Utils.isMobile) return [
@@ -3675,8 +3683,8 @@
3675
3683
  * 退出全屏
3676
3684
  * @returns Promise<void>
3677
3685
  */ _proto.exitFullscreen = function exitFullscreen() {
3678
- return _async_to_generator$5(function() {
3679
- return _ts_generator$5(this, function(_state) {
3686
+ return _async_to_generator$6(function() {
3687
+ return _ts_generator$6(this, function(_state) {
3680
3688
  switch(_state.label){
3681
3689
  case 0:
3682
3690
  if (!Utils.isMobile) return [
@@ -3715,8 +3723,8 @@
3715
3723
  * 全屏切换
3716
3724
  * @returns Promise<void>
3717
3725
  */ _proto.toggle = function toggle() {
3718
- return _async_to_generator$5(function() {
3719
- return _ts_generator$5(this, function(_state) {
3726
+ return _async_to_generator$6(function() {
3727
+ return _ts_generator$6(this, function(_state) {
3720
3728
  switch(_state.label){
3721
3729
  case 0:
3722
3730
  if (!Utils.isMobile) return [
@@ -3839,8 +3847,8 @@
3839
3847
  return Fullscreen;
3840
3848
  }();
3841
3849
 
3842
- function _extends$l() {
3843
- _extends$l = Object.assign || function(target) {
3850
+ function _extends$m() {
3851
+ _extends$m = Object.assign || function(target) {
3844
3852
  for(var i = 1; i < arguments.length; i++){
3845
3853
  var source = arguments[i];
3846
3854
  for(var key in source){
@@ -3851,9 +3859,9 @@
3851
3859
  }
3852
3860
  return target;
3853
3861
  };
3854
- return _extends$l.apply(this, arguments);
3862
+ return _extends$m.apply(this, arguments);
3855
3863
  }
3856
- function _inherits$l(subClass, superClass) {
3864
+ function _inherits$m(subClass, superClass) {
3857
3865
  if (typeof superClass !== "function" && superClass !== null) {
3858
3866
  throw new TypeError("Super expression must either be null or a function");
3859
3867
  }
@@ -3864,24 +3872,24 @@
3864
3872
  configurable: true
3865
3873
  }
3866
3874
  });
3867
- if (superClass) _set_prototype_of$l(subClass, superClass);
3875
+ if (superClass) _set_prototype_of$m(subClass, superClass);
3868
3876
  }
3869
- function _set_prototype_of$l(o, p) {
3870
- _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3877
+ function _set_prototype_of$m(o, p) {
3878
+ _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3871
3879
  o.__proto__ = p;
3872
3880
  return o;
3873
3881
  };
3874
- return _set_prototype_of$l(o, p);
3882
+ return _set_prototype_of$m(o, p);
3875
3883
  }
3876
3884
  /**
3877
3885
  * 全屏控件
3878
3886
  * @category Control
3879
3887
  */ var Fullscreen = /*#__PURE__*/ function(Control) {
3880
- _inherits$l(Fullscreen, Control);
3888
+ _inherits$m(Fullscreen, Control);
3881
3889
  function Fullscreen(options) {
3882
3890
  var _this;
3883
3891
  var _options_props, _this_options;
3884
- _this = Control.call(this, _extends$l({
3892
+ _this = Control.call(this, _extends$m({
3885
3893
  tagName: 'span',
3886
3894
  classNameSuffix: 'fullscreen',
3887
3895
  controlType: 'button'
@@ -3946,8 +3954,8 @@
3946
3954
  return Fullscreen;
3947
3955
  }(Control);
3948
3956
 
3949
- function _extends$k() {
3950
- _extends$k = Object.assign || function(target) {
3957
+ function _extends$l() {
3958
+ _extends$l = Object.assign || function(target) {
3951
3959
  for(var i = 1; i < arguments.length; i++){
3952
3960
  var source = arguments[i];
3953
3961
  for(var key in source){
@@ -3958,9 +3966,9 @@
3958
3966
  }
3959
3967
  return target;
3960
3968
  };
3961
- return _extends$k.apply(this, arguments);
3969
+ return _extends$l.apply(this, arguments);
3962
3970
  }
3963
- function _inherits$k(subClass, superClass) {
3971
+ function _inherits$l(subClass, superClass) {
3964
3972
  if (typeof superClass !== "function" && superClass !== null) {
3965
3973
  throw new TypeError("Super expression must either be null or a function");
3966
3974
  }
@@ -3971,24 +3979,24 @@
3971
3979
  configurable: true
3972
3980
  }
3973
3981
  });
3974
- if (superClass) _set_prototype_of$k(subClass, superClass);
3982
+ if (superClass) _set_prototype_of$l(subClass, superClass);
3975
3983
  }
3976
- function _set_prototype_of$k(o, p) {
3977
- _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3984
+ function _set_prototype_of$l(o, p) {
3985
+ _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3978
3986
  o.__proto__ = p;
3979
3987
  return o;
3980
3988
  };
3981
- return _set_prototype_of$k(o, p);
3989
+ return _set_prototype_of$l(o, p);
3982
3990
  }
3983
3991
  /**
3984
3992
  * 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
3985
3993
  * @category Control
3986
3994
  */ var Rec = /*#__PURE__*/ function(Control) {
3987
- _inherits$k(Rec, Control);
3995
+ _inherits$l(Rec, Control);
3988
3996
  function Rec(options) {
3989
3997
  var _this;
3990
3998
  var _options_props;
3991
- _this = Control.call(this, _extends$k({}, options, {
3999
+ _this = Control.call(this, _extends$l({}, options, {
3992
4000
  tagName: 'div',
3993
4001
  controlType: 'block',
3994
4002
  classNameSuffix: 'rec'
@@ -4443,6 +4451,7 @@
4443
4451
  BTN_RECORDVIDEO: '录屏',
4444
4452
  BTN_CAPTURE: '截图',
4445
4453
  BTN_TALK: '对讲',
4454
+ BTN_BROADCAST: '语音广播',
4446
4455
  BTN_ZOOM: '电子放大',
4447
4456
  BTN_3D_ZOOM: '3D定位',
4448
4457
  BTN_PTZ: '云台控制',
@@ -4713,6 +4722,7 @@
4713
4722
  BTN_RECORDVIDEO: 'Screen recording',
4714
4723
  BTN_CAPTURE: 'Screenshot',
4715
4724
  BTN_TALK: 'Intercom',
4725
+ BTN_BROADCAST: 'Voice broadcast',
4716
4726
  BTN_ZOOM: 'Electronic zoom',
4717
4727
  BTN_3D_ZOOM: '3D positioning',
4718
4728
  BTN_PTZ: 'PTZ control',
@@ -4899,6 +4909,11 @@
4899
4909
  part: 'left',
4900
4910
  isrender: 1
4901
4911
  },
4912
+ {
4913
+ iconId: 'broadcast',
4914
+ part: 'left',
4915
+ isrender: 1
4916
+ },
4902
4917
  {
4903
4918
  iconId: 'zoom',
4904
4919
  part: 'left',
@@ -5085,6 +5100,12 @@
5085
5100
  defaultActive: 0,
5086
5101
  isrender: 1
5087
5102
  },
5103
+ {
5104
+ iconId: 'broadcast',
5105
+ part: 'left',
5106
+ defaultActive: 0,
5107
+ isrender: 1
5108
+ },
5088
5109
  {
5089
5110
  iconId: 'zoom',
5090
5111
  part: 'left',
@@ -5340,7 +5361,7 @@
5340
5361
  voice: voice
5341
5362
  };
5342
5363
 
5343
- function _inherits$j(subClass, superClass) {
5364
+ function _inherits$k(subClass, superClass) {
5344
5365
  if (typeof superClass !== "function" && superClass !== null) {
5345
5366
  throw new TypeError("Super expression must either be null or a function");
5346
5367
  }
@@ -5351,20 +5372,20 @@
5351
5372
  configurable: true
5352
5373
  }
5353
5374
  });
5354
- if (superClass) _set_prototype_of$j(subClass, superClass);
5375
+ if (superClass) _set_prototype_of$k(subClass, superClass);
5355
5376
  }
5356
- function _set_prototype_of$j(o, p) {
5357
- _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5377
+ function _set_prototype_of$k(o, p) {
5378
+ _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5358
5379
  o.__proto__ = p;
5359
5380
  return o;
5360
5381
  };
5361
- return _set_prototype_of$j(o, p);
5382
+ return _set_prototype_of$k(o, p);
5362
5383
  }
5363
5384
  /**
5364
5385
  * 截图控件
5365
5386
  * @category Content
5366
5387
  */ var Content = /*#__PURE__*/ function(EventEmitter) {
5367
- _inherits$j(Content, EventEmitter);
5388
+ _inherits$k(Content, EventEmitter);
5368
5389
  function Content(options) {
5369
5390
  var _this;
5370
5391
  _this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
@@ -5421,7 +5442,7 @@
5421
5442
  if (this._scaleMode === THEME_SCALE_MODE_TYPE.fullAuto) {
5422
5443
  objectFill = 'cover';
5423
5444
  }
5424
- // 容器和视频的分辨率都需要有值才能计算
5445
+ //
5425
5446
  if (width > 0 && height > 0 && this._originWidth > 0 && this._originHeight > 0 && this.$video) {
5426
5447
  var left = (width - this._originWidth) / 2;
5427
5448
  var top = (height - this._originHeight) / 2;
@@ -5456,7 +5477,8 @@
5456
5477
  _proto.destroy = function destroy() {
5457
5478
  var _this_$wrapper;
5458
5479
  if (this._cleanUpResizeObserver) {
5459
- this._cleanUpResizeObserver.unobserve == null ? void 0 : this._cleanUpResizeObserver.unobserve.call(this._cleanUpResizeObserver);
5480
+ this._cleanUpResizeObserver.unobserve();
5481
+ // this._cleanUpResizeObserver.disconnect();
5460
5482
  this._cleanUpResizeObserver = null;
5461
5483
  }
5462
5484
  if (this.$video) {
@@ -5478,8 +5500,8 @@
5478
5500
  return Content;
5479
5501
  }(EventEmitter);
5480
5502
 
5481
- function _extends$j() {
5482
- _extends$j = Object.assign || function(target) {
5503
+ function _extends$k() {
5504
+ _extends$k = Object.assign || function(target) {
5483
5505
  for(var i = 1; i < arguments.length; i++){
5484
5506
  var source = arguments[i];
5485
5507
  for(var key in source){
@@ -5490,9 +5512,9 @@
5490
5512
  }
5491
5513
  return target;
5492
5514
  };
5493
- return _extends$j.apply(this, arguments);
5515
+ return _extends$k.apply(this, arguments);
5494
5516
  }
5495
- function _inherits$i(subClass, superClass) {
5517
+ function _inherits$j(subClass, superClass) {
5496
5518
  if (typeof superClass !== "function" && superClass !== null) {
5497
5519
  throw new TypeError("Super expression must either be null or a function");
5498
5520
  }
@@ -5503,23 +5525,23 @@
5503
5525
  configurable: true
5504
5526
  }
5505
5527
  });
5506
- if (superClass) _set_prototype_of$i(subClass, superClass);
5528
+ if (superClass) _set_prototype_of$j(subClass, superClass);
5507
5529
  }
5508
- function _set_prototype_of$i(o, p) {
5509
- _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5530
+ function _set_prototype_of$j(o, p) {
5531
+ _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5510
5532
  o.__proto__ = p;
5511
5533
  return o;
5512
5534
  };
5513
- return _set_prototype_of$i(o, p);
5535
+ return _set_prototype_of$j(o, p);
5514
5536
  }
5515
5537
  /**
5516
5538
  * 更多控件
5517
5539
  * @category Control
5518
5540
  */ var More = /*#__PURE__*/ function(Control) {
5519
- _inherits$i(More, Control);
5541
+ _inherits$j(More, Control);
5520
5542
  function More(options) {
5521
5543
  var _this;
5522
- _this = Control.call(this, _extends$j({}, options, {
5544
+ _this = Control.call(this, _extends$k({}, options, {
5523
5545
  tagName: 'span',
5524
5546
  controlType: 'button',
5525
5547
  classNameSuffix: 'more'
@@ -5715,6 +5737,16 @@
5715
5737
  (_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_talkControl = _theme_controls.talkControl) == null ? void 0 : (_theme_controls_talkControl_emit = _theme_controls_talkControl.emit) == null ? void 0 : _theme_controls_talkControl_emit.call(_theme_controls_talkControl, EVENTS.talkVolumeChange, value);
5716
5738
  });
5717
5739
  // =======================================================
5740
+ // 语音广播
5741
+ // =======================================================
5742
+ theme.on(EVENTS.broadcastChange, function(active) {
5743
+ var _theme_controls, _theme_controls_broadcastControl, _theme_controls1;
5744
+ if (((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.broadcastControl) && active !== ((_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_broadcastControl = _theme_controls1.broadcastControl) == null ? void 0 : _theme_controls_broadcastControl.active)) {
5745
+ var _theme_controls_broadcastControl1, _theme_controls2;
5746
+ (_theme_controls2 = theme.controls) == null ? void 0 : (_theme_controls_broadcastControl1 = _theme_controls2.broadcastControl) == null ? void 0 : _theme_controls_broadcastControl1.emit(EVENTS.broadcastChange, active);
5747
+ }
5748
+ });
5749
+ // =======================================================
5718
5750
  // 录制
5719
5751
  // =======================================================
5720
5752
  theme.on(EVENTS.recordingChange, function(recording) {
@@ -5810,7 +5842,7 @@
5810
5842
  *
5811
5843
  * @param theme - Theme
5812
5844
  */ function _controlEventemitter(theme) {
5813
- 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;
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;
5814
5846
  // Controls
5815
5847
  if (theme._recFooter) {
5816
5848
  theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
@@ -5903,8 +5935,17 @@
5903
5935
  theme.emit(EVENTS.control.talkDestroy);
5904
5936
  });
5905
5937
  }
5938
+ // 语音广播控件
5939
+ if ((_theme_controls5 = theme.controls) == null ? void 0 : _theme_controls5.broadcastControl) {
5940
+ theme.controls.broadcastControl.on(EVENTS.control.broadcastChange, function(active) {
5941
+ theme.emit(EVENTS.control.broadcastChange, active);
5942
+ });
5943
+ theme.controls.broadcastControl.on(EVENTS.control.broadcastDestroy, function() {
5944
+ theme.emit(EVENTS.control.broadcastDestroy);
5945
+ });
5946
+ }
5906
5947
  // 缩放控件
5907
- if ((_theme_controls5 = theme.controls) == null ? void 0 : _theme_controls5.zoomControl) {
5948
+ if ((_theme_controls6 = theme.controls) == null ? void 0 : _theme_controls6.zoomControl) {
5908
5949
  theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
5909
5950
  if (theme.zoom !== value) {
5910
5951
  theme.zoom = value;
@@ -5926,7 +5967,7 @@
5926
5967
  });
5927
5968
  }
5928
5969
  // 清晰度控件
5929
- if ((_theme_controls6 = theme.controls) == null ? void 0 : _theme_controls6.definitionControl) {
5970
+ if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.definitionControl) {
5930
5971
  theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
5931
5972
  theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
5932
5973
  theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
@@ -5939,7 +5980,7 @@
5939
5980
  });
5940
5981
  }
5941
5982
  // 倍速控件
5942
- if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.speedControl) {
5983
+ if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.speedControl) {
5943
5984
  theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
5944
5985
  theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
5945
5986
  theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
@@ -5952,7 +5993,7 @@
5952
5993
  });
5953
5994
  }
5954
5995
  // 截图控件
5955
- if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.capturePictureControl) {
5996
+ if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.capturePictureControl) {
5956
5997
  theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
5957
5998
  theme.emit(EVENTS.control.capturePicture, options);
5958
5999
  });
@@ -5961,25 +6002,25 @@
5961
6002
  });
5962
6003
  }
5963
6004
  // 全屏控件
5964
- if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.fullscreenControl) {
6005
+ if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.fullscreenControl) {
5965
6006
  theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
5966
6007
  theme.emit(EVENTS.control.fullscreenDestroy);
5967
6008
  });
5968
6009
  }
5969
6010
  // 全局全屏控件
5970
- if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.globalFullscreenControl) {
6011
+ if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.globalFullscreenControl) {
5971
6012
  theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
5972
6013
  theme.emit(EVENTS.control.globalFullscreenDestroy);
5973
6014
  });
5974
6015
  }
5975
6016
  // 设备信息控件
5976
- if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.deviceControl) {
6017
+ if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.deviceControl) {
5977
6018
  theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
5978
6019
  theme.emit(EVENTS.control.deviceDestroy);
5979
6020
  });
5980
6021
  }
5981
6022
  // 回放类型切换控件
5982
- if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.recControl) {
6023
+ if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.recControl) {
5983
6024
  // prettier-ignore
5984
6025
  theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
5985
6026
  if (theme.recType !== type) {
@@ -6000,7 +6041,7 @@
6000
6041
  });
6001
6042
  }
6002
6043
  // 时间轴控件
6003
- if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.timeLineControl) {
6044
+ if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.timeLineControl) {
6004
6045
  theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
6005
6046
  theme.emit(EVENTS.control.timeLineChange, date);
6006
6047
  });
@@ -6017,7 +6058,7 @@
6017
6058
  });
6018
6059
  }
6019
6060
  // 日历控件
6020
- if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.dateControl) {
6061
+ if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.dateControl) {
6021
6062
  theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
6022
6063
  theme.emit(EVENTS.control.datePanelOpenChange, open, date);
6023
6064
  });
@@ -6112,8 +6153,8 @@
6112
6153
  if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
6113
6154
  return Constructor;
6114
6155
  }
6115
- function _extends$i() {
6116
- _extends$i = Object.assign || function(target) {
6156
+ function _extends$j() {
6157
+ _extends$j = Object.assign || function(target) {
6117
6158
  for(var i = 1; i < arguments.length; i++){
6118
6159
  var source = arguments[i];
6119
6160
  for(var key in source){
@@ -6124,9 +6165,9 @@
6124
6165
  }
6125
6166
  return target;
6126
6167
  };
6127
- return _extends$i.apply(this, arguments);
6168
+ return _extends$j.apply(this, arguments);
6128
6169
  }
6129
- function _inherits$h(subClass, superClass) {
6170
+ function _inherits$i(subClass, superClass) {
6130
6171
  if (typeof superClass !== "function" && superClass !== null) {
6131
6172
  throw new TypeError("Super expression must either be null or a function");
6132
6173
  }
@@ -6137,14 +6178,14 @@
6137
6178
  configurable: true
6138
6179
  }
6139
6180
  });
6140
- if (superClass) _set_prototype_of$h(subClass, superClass);
6181
+ if (superClass) _set_prototype_of$i(subClass, superClass);
6141
6182
  }
6142
- function _set_prototype_of$h(o, p) {
6143
- _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6183
+ function _set_prototype_of$i(o, p) {
6184
+ _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6144
6185
  o.__proto__ = p;
6145
6186
  return o;
6146
6187
  };
6147
- return _set_prototype_of$h(o, p);
6188
+ return _set_prototype_of$i(o, p);
6148
6189
  }
6149
6190
  var ZOOM_DEFAULT_OPTIONS = {
6150
6191
  open: false,
@@ -6154,10 +6195,10 @@
6154
6195
  * 电子放大控件
6155
6196
  * @category Control
6156
6197
  */ var Zoom$1 = /*#__PURE__*/ function(Control) {
6157
- _inherits$h(Zoom, Control);
6198
+ _inherits$i(Zoom, Control);
6158
6199
  function Zoom(options) {
6159
6200
  var _this;
6160
- _this = Control.call(this, _extends$i({}, options, {
6201
+ _this = Control.call(this, _extends$j({}, options, {
6161
6202
  tagName: 'span',
6162
6203
  controlType: 'button',
6163
6204
  classNameSuffix: 'zoom'
@@ -7010,8 +7051,8 @@
7010
7051
  var distExports$3 = requireDist$4();
7011
7052
  var Zoom = /*@__PURE__*/getDefaultExportFromCjs(distExports$3);
7012
7053
 
7013
- function _extends$h() {
7014
- _extends$h = Object.assign || function(target) {
7054
+ function _extends$i() {
7055
+ _extends$i = Object.assign || function(target) {
7015
7056
  for(var i = 1; i < arguments.length; i++){
7016
7057
  var source = arguments[i];
7017
7058
  for(var key in source){
@@ -7022,10 +7063,10 @@
7022
7063
  }
7023
7064
  return target;
7024
7065
  };
7025
- return _extends$h.apply(this, arguments);
7066
+ return _extends$i.apply(this, arguments);
7026
7067
  }
7027
7068
  function __zoom(theme, container, options) {
7028
- theme.zoomUtil = new Zoom(container, _extends$h({}, options || {}, {
7069
+ theme.zoomUtil = new Zoom(container, _extends$i({}, options || {}, {
7029
7070
  min: 1,
7030
7071
  onChange: function(zoom, reset) {
7031
7072
  if (zoom !== theme._zoom) {
@@ -7043,7 +7084,7 @@
7043
7084
  }));
7044
7085
  }
7045
7086
 
7046
- function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
7087
+ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
7047
7088
  try {
7048
7089
  var info = gen[key](arg);
7049
7090
  var value = info.value;
@@ -7057,22 +7098,22 @@
7057
7098
  Promise.resolve(value).then(_next, _throw);
7058
7099
  }
7059
7100
  }
7060
- function _async_to_generator$4(fn) {
7101
+ function _async_to_generator$5(fn) {
7061
7102
  return function() {
7062
7103
  var self = this, args = arguments;
7063
7104
  return new Promise(function(resolve, reject) {
7064
7105
  var gen = fn.apply(self, args);
7065
7106
  function _next(value) {
7066
- asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
7107
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
7067
7108
  }
7068
7109
  function _throw(err) {
7069
- asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
7110
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
7070
7111
  }
7071
7112
  _next(undefined);
7072
7113
  });
7073
7114
  };
7074
7115
  }
7075
- function _ts_generator$4(thisArg, body) {
7116
+ function _ts_generator$5(thisArg, body) {
7076
7117
  var f, y, t, _ = {
7077
7118
  label: 0,
7078
7119
  sent: function() {
@@ -7164,9 +7205,9 @@
7164
7205
  }
7165
7206
  }
7166
7207
  function getThemeDataByTemplate(theme, id) {
7167
- return _async_to_generator$4(function() {
7208
+ return _async_to_generator$5(function() {
7168
7209
  var _theme_options_token_httpToken, _theme_options_token, url;
7169
- return _ts_generator$4(this, function(_state) {
7210
+ return _ts_generator$5(this, function(_state) {
7170
7211
  switch(_state.label){
7171
7212
  case 0:
7172
7213
  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;
@@ -7175,8 +7216,8 @@
7175
7216
  fetch(url, {
7176
7217
  method: 'GET'
7177
7218
  }).then(function(response) {
7178
- return _async_to_generator$4(function() {
7179
- return _ts_generator$4(this, function(_state) {
7219
+ return _async_to_generator$5(function() {
7220
+ return _ts_generator$5(this, function(_state) {
7180
7221
  switch(_state.label){
7181
7222
  case 0:
7182
7223
  return [
@@ -7221,7 +7262,7 @@
7221
7262
  })();
7222
7263
  }
7223
7264
 
7224
- function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
7265
+ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
7225
7266
  try {
7226
7267
  var info = gen[key](arg);
7227
7268
  var value = info.value;
@@ -7235,23 +7276,23 @@
7235
7276
  Promise.resolve(value).then(_next, _throw);
7236
7277
  }
7237
7278
  }
7238
- function _async_to_generator$3(fn) {
7279
+ function _async_to_generator$4(fn) {
7239
7280
  return function() {
7240
7281
  var self = this, args = arguments;
7241
7282
  return new Promise(function(resolve, reject) {
7242
7283
  var gen = fn.apply(self, args);
7243
7284
  function _next(value) {
7244
- asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
7285
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
7245
7286
  }
7246
7287
  function _throw(err) {
7247
- asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
7288
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
7248
7289
  }
7249
7290
  _next(undefined);
7250
7291
  });
7251
7292
  };
7252
7293
  }
7253
- function _extends$g() {
7254
- _extends$g = Object.assign || function(target) {
7294
+ function _extends$h() {
7295
+ _extends$h = Object.assign || function(target) {
7255
7296
  for(var i = 1; i < arguments.length; i++){
7256
7297
  var source = arguments[i];
7257
7298
  for(var key in source){
@@ -7262,9 +7303,9 @@
7262
7303
  }
7263
7304
  return target;
7264
7305
  };
7265
- return _extends$g.apply(this, arguments);
7306
+ return _extends$h.apply(this, arguments);
7266
7307
  }
7267
- function _ts_generator$3(thisArg, body) {
7308
+ function _ts_generator$4(thisArg, body) {
7268
7309
  var f, y, t, _ = {
7269
7310
  label: 0,
7270
7311
  sent: function() {
@@ -7390,7 +7431,7 @@
7390
7431
  }
7391
7432
  if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
7392
7433
  // TODO: 因为回放是一组, 位置以第一个位置为准
7393
- recControls.push(recControls[0] ? _extends$g({}, item, {
7434
+ recControls.push(recControls[0] ? _extends$h({}, item, {
7394
7435
  part: recControls[0].part
7395
7436
  }) : item);
7396
7437
  return false;
@@ -7413,7 +7454,7 @@
7413
7454
  }
7414
7455
  if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
7415
7456
  // TODO: 因为回放是一组, 位置以第一个位置为准
7416
- recControls.push(recControls[0] ? _extends$g({}, item, {
7457
+ recControls.push(recControls[0] ? _extends$h({}, item, {
7417
7458
  part: recControls[0].part
7418
7459
  }) : item);
7419
7460
  return false;
@@ -7475,9 +7516,9 @@
7475
7516
  * @param data
7476
7517
  * @returns
7477
7518
  */ function getThemeData(theme, data) {
7478
- return _async_to_generator$3(function() {
7519
+ return _async_to_generator$4(function() {
7479
7520
  var themeData, _theme_logger, template;
7480
- return _ts_generator$3(this, function(_state) {
7521
+ return _ts_generator$4(this, function(_state) {
7481
7522
  switch(_state.label){
7482
7523
  case 0:
7483
7524
  themeData = data;
@@ -7668,8 +7709,8 @@
7668
7709
  return Component;
7669
7710
  }();
7670
7711
 
7671
- function _extends$f() {
7672
- _extends$f = Object.assign || function(target) {
7712
+ function _extends$g() {
7713
+ _extends$g = Object.assign || function(target) {
7673
7714
  for(var i = 1; i < arguments.length; i++){
7674
7715
  var source = arguments[i];
7675
7716
  for(var key in source){
@@ -7680,9 +7721,9 @@
7680
7721
  }
7681
7722
  return target;
7682
7723
  };
7683
- return _extends$f.apply(this, arguments);
7724
+ return _extends$g.apply(this, arguments);
7684
7725
  }
7685
- function _inherits$g(subClass, superClass) {
7726
+ function _inherits$h(subClass, superClass) {
7686
7727
  if (typeof superClass !== "function" && superClass !== null) {
7687
7728
  throw new TypeError("Super expression must either be null or a function");
7688
7729
  }
@@ -7693,28 +7734,28 @@
7693
7734
  configurable: true
7694
7735
  }
7695
7736
  });
7696
- if (superClass) _set_prototype_of$g(subClass, superClass);
7737
+ if (superClass) _set_prototype_of$h(subClass, superClass);
7697
7738
  }
7698
- function _set_prototype_of$g(o, p) {
7699
- _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7739
+ function _set_prototype_of$h(o, p) {
7740
+ _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7700
7741
  o.__proto__ = p;
7701
7742
  return o;
7702
7743
  };
7703
- return _set_prototype_of$g(o, p);
7744
+ return _set_prototype_of$h(o, p);
7704
7745
  }
7705
7746
  var Footer = /*#__PURE__*/ function(Component) {
7706
- _inherits$g(Footer, Component);
7747
+ _inherits$h(Footer, Component);
7707
7748
  function Footer(options) {
7708
7749
  if (options === void 0) options = {};
7709
- return Component.call(this, _extends$f({}, options, {
7750
+ return Component.call(this, _extends$g({}, options, {
7710
7751
  cType: 'footer'
7711
7752
  })) || this;
7712
7753
  }
7713
7754
  return Footer;
7714
7755
  }(Component);
7715
7756
 
7716
- function _extends$e() {
7717
- _extends$e = Object.assign || function(target) {
7757
+ function _extends$f() {
7758
+ _extends$f = Object.assign || function(target) {
7718
7759
  for(var i = 1; i < arguments.length; i++){
7719
7760
  var source = arguments[i];
7720
7761
  for(var key in source){
@@ -7725,9 +7766,9 @@
7725
7766
  }
7726
7767
  return target;
7727
7768
  };
7728
- return _extends$e.apply(this, arguments);
7769
+ return _extends$f.apply(this, arguments);
7729
7770
  }
7730
- function _inherits$f(subClass, superClass) {
7771
+ function _inherits$g(subClass, superClass) {
7731
7772
  if (typeof superClass !== "function" && superClass !== null) {
7732
7773
  throw new TypeError("Super expression must either be null or a function");
7733
7774
  }
@@ -7738,20 +7779,20 @@
7738
7779
  configurable: true
7739
7780
  }
7740
7781
  });
7741
- if (superClass) _set_prototype_of$f(subClass, superClass);
7782
+ if (superClass) _set_prototype_of$g(subClass, superClass);
7742
7783
  }
7743
- function _set_prototype_of$f(o, p) {
7744
- _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7784
+ function _set_prototype_of$g(o, p) {
7785
+ _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7745
7786
  o.__proto__ = p;
7746
7787
  return o;
7747
7788
  };
7748
- return _set_prototype_of$f(o, p);
7789
+ return _set_prototype_of$g(o, p);
7749
7790
  }
7750
7791
  var Header = /*#__PURE__*/ function(Component) {
7751
- _inherits$f(Header, Component);
7792
+ _inherits$g(Header, Component);
7752
7793
  function Header(options) {
7753
7794
  if (options === void 0) options = {};
7754
- return Component.call(this, _extends$e({}, options, {
7795
+ return Component.call(this, _extends$f({}, options, {
7755
7796
  cType: 'header'
7756
7797
  })) || this;
7757
7798
  }
@@ -7917,8 +7958,8 @@
7917
7958
  };
7918
7959
  }
7919
7960
 
7920
- function _extends$d() {
7921
- _extends$d = Object.assign || function(target) {
7961
+ function _extends$e() {
7962
+ _extends$e = Object.assign || function(target) {
7922
7963
  for(var i = 1; i < arguments.length; i++){
7923
7964
  var source = arguments[i];
7924
7965
  for(var key in source){
@@ -7929,9 +7970,9 @@
7929
7970
  }
7930
7971
  return target;
7931
7972
  };
7932
- return _extends$d.apply(this, arguments);
7973
+ return _extends$e.apply(this, arguments);
7933
7974
  }
7934
- function _inherits$e(subClass, superClass) {
7975
+ function _inherits$f(subClass, superClass) {
7935
7976
  if (typeof superClass !== "function" && superClass !== null) {
7936
7977
  throw new TypeError("Super expression must either be null or a function");
7937
7978
  }
@@ -7942,23 +7983,23 @@
7942
7983
  configurable: true
7943
7984
  }
7944
7985
  });
7945
- if (superClass) _set_prototype_of$e(subClass, superClass);
7986
+ if (superClass) _set_prototype_of$f(subClass, superClass);
7946
7987
  }
7947
- function _set_prototype_of$e(o, p) {
7948
- _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7988
+ function _set_prototype_of$f(o, p) {
7989
+ _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7949
7990
  o.__proto__ = p;
7950
7991
  return o;
7951
7992
  };
7952
- return _set_prototype_of$e(o, p);
7993
+ return _set_prototype_of$f(o, p);
7953
7994
  }
7954
7995
  /**
7955
7996
  * 全局全屏
7956
7997
  * 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
7957
7998
  * @category Control
7958
7999
  */ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
7959
- _inherits$e(GlobalFullscreen, Fullscreen);
8000
+ _inherits$f(GlobalFullscreen, Fullscreen);
7960
8001
  function GlobalFullscreen(options) {
7961
- return Fullscreen.call(this, _extends$d({}, options, {
8002
+ return Fullscreen.call(this, _extends$e({}, options, {
7962
8003
  controlType: 'button',
7963
8004
  classNameSuffix: 'global-fullscreen'
7964
8005
  })) || this;
@@ -7989,8 +8030,8 @@
7989
8030
  return GlobalFullscreen;
7990
8031
  }(Fullscreen);
7991
8032
 
7992
- function _extends$c() {
7993
- _extends$c = Object.assign || function(target) {
8033
+ function _extends$d() {
8034
+ _extends$d = Object.assign || function(target) {
7994
8035
  for(var i = 1; i < arguments.length; i++){
7995
8036
  var source = arguments[i];
7996
8037
  for(var key in source){
@@ -8001,9 +8042,9 @@
8001
8042
  }
8002
8043
  return target;
8003
8044
  };
8004
- return _extends$c.apply(this, arguments);
8045
+ return _extends$d.apply(this, arguments);
8005
8046
  }
8006
- function _inherits$d(subClass, superClass) {
8047
+ function _inherits$e(subClass, superClass) {
8007
8048
  if (typeof superClass !== "function" && superClass !== null) {
8008
8049
  throw new TypeError("Super expression must either be null or a function");
8009
8050
  }
@@ -8014,23 +8055,23 @@
8014
8055
  configurable: true
8015
8056
  }
8016
8057
  });
8017
- if (superClass) _set_prototype_of$d(subClass, superClass);
8058
+ if (superClass) _set_prototype_of$e(subClass, superClass);
8018
8059
  }
8019
- function _set_prototype_of$d(o, p) {
8020
- _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8060
+ function _set_prototype_of$e(o, p) {
8061
+ _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8021
8062
  o.__proto__ = p;
8022
8063
  return o;
8023
8064
  };
8024
- return _set_prototype_of$d(o, p);
8065
+ return _set_prototype_of$e(o, p);
8025
8066
  }
8026
8067
  /**
8027
8068
  * 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
8028
8069
  * @category Control
8029
8070
  */ var CapturePicture = /*#__PURE__*/ function(Control) {
8030
- _inherits$d(CapturePicture, Control);
8071
+ _inherits$e(CapturePicture, Control);
8031
8072
  function CapturePicture(options) {
8032
8073
  var _this;
8033
- _this = Control.call(this, _extends$c({}, options, {
8074
+ _this = Control.call(this, _extends$d({}, options, {
8034
8075
  tagName: 'span',
8035
8076
  classNameSuffix: 'capture-picture'
8036
8077
  })) || this, _this._timer = null;
@@ -9039,8 +9080,8 @@
9039
9080
  if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
9040
9081
  return Constructor;
9041
9082
  }
9042
- function _extends$b() {
9043
- _extends$b = Object.assign || function(target) {
9083
+ function _extends$c() {
9084
+ _extends$c = Object.assign || function(target) {
9044
9085
  for(var i = 1; i < arguments.length; i++){
9045
9086
  var source = arguments[i];
9046
9087
  for(var key in source){
@@ -9051,9 +9092,9 @@
9051
9092
  }
9052
9093
  return target;
9053
9094
  };
9054
- return _extends$b.apply(this, arguments);
9095
+ return _extends$c.apply(this, arguments);
9055
9096
  }
9056
- function _inherits$c(subClass, superClass) {
9097
+ function _inherits$d(subClass, superClass) {
9057
9098
  if (typeof superClass !== "function" && superClass !== null) {
9058
9099
  throw new TypeError("Super expression must either be null or a function");
9059
9100
  }
@@ -9064,23 +9105,23 @@
9064
9105
  configurable: true
9065
9106
  }
9066
9107
  });
9067
- if (superClass) _set_prototype_of$c(subClass, superClass);
9108
+ if (superClass) _set_prototype_of$d(subClass, superClass);
9068
9109
  }
9069
- function _set_prototype_of$c(o, p) {
9070
- _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9110
+ function _set_prototype_of$d(o, p) {
9111
+ _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9071
9112
  o.__proto__ = p;
9072
9113
  return o;
9073
9114
  };
9074
- return _set_prototype_of$c(o, p);
9115
+ return _set_prototype_of$d(o, p);
9075
9116
  }
9076
9117
  /**
9077
9118
  * 云台控件
9078
9119
  * @category Control
9079
9120
  */ var Ptz = /*#__PURE__*/ function(Control) {
9080
- _inherits$c(Ptz, Control);
9121
+ _inherits$d(Ptz, Control);
9081
9122
  function Ptz(options) {
9082
9123
  var _this;
9083
- _this = Control.call(this, _extends$b({}, options, {
9124
+ _this = Control.call(this, _extends$c({}, options, {
9084
9125
  tagName: 'span',
9085
9126
  controlType: 'button',
9086
9127
  classNameSuffix: 'ptz'
@@ -9123,7 +9164,7 @@
9123
9164
  this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
9124
9165
  this.$panel.appendChild(this.$turntable);
9125
9166
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9126
- this._ptzControl = new distExports$2.Ptz(this.$turntable, _extends$b({}, this._options, {
9167
+ this._ptzControl = new distExports$2.Ptz(this.$turntable, _extends$c({}, this._options, {
9127
9168
  onSpeedChange: this._onSpeedChange.bind(this),
9128
9169
  onDirection: this._onDirection.bind(this)
9129
9170
  }));
@@ -9132,7 +9173,7 @@
9132
9173
  };
9133
9174
  _proto.renderMobileExtend = function renderMobileExtend($container) {
9134
9175
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9135
- if (!this._ptzControl1) this._ptzControl1 = new distExports$2.MobilePtz($container, _extends$b({}, this._options, {
9176
+ if (!this._ptzControl1) this._ptzControl1 = new distExports$2.MobilePtz($container, _extends$c({}, this._options, {
9136
9177
  onSpeedChange: this._onSpeedChange.bind(this),
9137
9178
  onDirection: this._onDirection.bind(this)
9138
9179
  }));
@@ -9235,8 +9276,8 @@
9235
9276
  if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
9236
9277
  return Constructor;
9237
9278
  }
9238
- function _extends$a() {
9239
- _extends$a = Object.assign || function(target) {
9279
+ function _extends$b() {
9280
+ _extends$b = Object.assign || function(target) {
9240
9281
  for(var i = 1; i < arguments.length; i++){
9241
9282
  var source = arguments[i];
9242
9283
  for(var key in source){
@@ -9247,9 +9288,9 @@
9247
9288
  }
9248
9289
  return target;
9249
9290
  };
9250
- return _extends$a.apply(this, arguments);
9291
+ return _extends$b.apply(this, arguments);
9251
9292
  }
9252
- function _inherits$b(subClass, superClass) {
9293
+ function _inherits$c(subClass, superClass) {
9253
9294
  if (typeof superClass !== "function" && superClass !== null) {
9254
9295
  throw new TypeError("Super expression must either be null or a function");
9255
9296
  }
@@ -9260,14 +9301,14 @@
9260
9301
  configurable: true
9261
9302
  }
9262
9303
  });
9263
- if (superClass) _set_prototype_of$b(subClass, superClass);
9304
+ if (superClass) _set_prototype_of$c(subClass, superClass);
9264
9305
  }
9265
- function _set_prototype_of$b(o, p) {
9266
- _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9306
+ function _set_prototype_of$c(o, p) {
9307
+ _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9267
9308
  o.__proto__ = p;
9268
9309
  return o;
9269
9310
  };
9270
- return _set_prototype_of$b(o, p);
9311
+ return _set_prototype_of$c(o, p);
9271
9312
  }
9272
9313
  var RECORD_DEFAULT_OPTIONS = {
9273
9314
  maxDuration: 3600
@@ -9281,10 +9322,10 @@
9281
9322
  * 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
9282
9323
  * @category Control
9283
9324
  */ var Record = /*#__PURE__*/ function(Control) {
9284
- _inherits$b(Record, Control);
9325
+ _inherits$c(Record, Control);
9285
9326
  function Record(options) {
9286
9327
  var _this;
9287
- _this = Control.call(this, _extends$a({}, options, {
9328
+ _this = Control.call(this, _extends$b({}, options, {
9288
9329
  tagName: 'span',
9289
9330
  controlType: 'button',
9290
9331
  classNameSuffix: 'record'
@@ -9383,7 +9424,7 @@
9383
9424
  return Record;
9384
9425
  }(Control);
9385
9426
 
9386
- function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
9427
+ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
9387
9428
  try {
9388
9429
  var info = gen[key](arg);
9389
9430
  var value = info.value;
@@ -9397,16 +9438,16 @@
9397
9438
  Promise.resolve(value).then(_next, _throw);
9398
9439
  }
9399
9440
  }
9400
- function _async_to_generator$2(fn) {
9441
+ function _async_to_generator$3(fn) {
9401
9442
  return function() {
9402
9443
  var self = this, args = arguments;
9403
9444
  return new Promise(function(resolve, reject) {
9404
9445
  var gen = fn.apply(self, args);
9405
9446
  function _next(value) {
9406
- asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
9447
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
9407
9448
  }
9408
9449
  function _throw(err) {
9409
- asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
9450
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
9410
9451
  }
9411
9452
  _next(undefined);
9412
9453
  });
@@ -9425,8 +9466,8 @@
9425
9466
  if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
9426
9467
  return Constructor;
9427
9468
  }
9428
- function _extends$9() {
9429
- _extends$9 = Object.assign || function(target) {
9469
+ function _extends$a() {
9470
+ _extends$a = Object.assign || function(target) {
9430
9471
  for(var i = 1; i < arguments.length; i++){
9431
9472
  var source = arguments[i];
9432
9473
  for(var key in source){
@@ -9437,9 +9478,9 @@
9437
9478
  }
9438
9479
  return target;
9439
9480
  };
9440
- return _extends$9.apply(this, arguments);
9481
+ return _extends$a.apply(this, arguments);
9441
9482
  }
9442
- function _inherits$a(subClass, superClass) {
9483
+ function _inherits$b(subClass, superClass) {
9443
9484
  if (typeof superClass !== "function" && superClass !== null) {
9444
9485
  throw new TypeError("Super expression must either be null or a function");
9445
9486
  }
@@ -9450,16 +9491,16 @@
9450
9491
  configurable: true
9451
9492
  }
9452
9493
  });
9453
- if (superClass) _set_prototype_of$a(subClass, superClass);
9494
+ if (superClass) _set_prototype_of$b(subClass, superClass);
9454
9495
  }
9455
- function _set_prototype_of$a(o, p) {
9456
- _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9496
+ function _set_prototype_of$b(o, p) {
9497
+ _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9457
9498
  o.__proto__ = p;
9458
9499
  return o;
9459
9500
  };
9460
- return _set_prototype_of$a(o, p);
9501
+ return _set_prototype_of$b(o, p);
9461
9502
  }
9462
- function _ts_generator$2(thisArg, body) {
9503
+ function _ts_generator$3(thisArg, body) {
9463
9504
  var f, y, t, _ = {
9464
9505
  label: 0,
9465
9506
  sent: function() {
@@ -9559,10 +9600,10 @@
9559
9600
  *
9560
9601
  * @category Control
9561
9602
  */ var Talk = /*#__PURE__*/ function(Control) {
9562
- _inherits$a(Talk, Control);
9603
+ _inherits$b(Talk, Control);
9563
9604
  function Talk(options) {
9564
9605
  var _this;
9565
- _this = Control.call(this, _extends$9({}, options, {
9606
+ _this = Control.call(this, _extends$a({}, options, {
9566
9607
  tagName: 'span',
9567
9608
  controlType: 'button',
9568
9609
  classNameSuffix: 'talk'
@@ -9614,8 +9655,8 @@
9614
9655
  var _this = this, _superprop_get__onControlClick = function() {
9615
9656
  return Control.prototype._onControlClick;
9616
9657
  };
9617
- return _async_to_generator$2(function() {
9618
- return _ts_generator$2(this, function(_state) {
9658
+ return _async_to_generator$3(function() {
9659
+ return _ts_generator$3(this, function(_state) {
9619
9660
  _superprop_get__onControlClick().call(_this, e);
9620
9661
  this.active = !this.active;
9621
9662
  this.emit(EVENTS.control.talkingChange, this.active);
@@ -9666,6 +9707,231 @@
9666
9707
  return Talk;
9667
9708
  }(Control);
9668
9709
 
9710
+ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
9711
+ try {
9712
+ var info = gen[key](arg);
9713
+ var value = info.value;
9714
+ } catch (error) {
9715
+ reject(error);
9716
+ return;
9717
+ }
9718
+ if (info.done) {
9719
+ resolve(value);
9720
+ } else {
9721
+ Promise.resolve(value).then(_next, _throw);
9722
+ }
9723
+ }
9724
+ function _async_to_generator$2(fn) {
9725
+ return function() {
9726
+ var self = this, args = arguments;
9727
+ return new Promise(function(resolve, reject) {
9728
+ var gen = fn.apply(self, args);
9729
+ function _next(value) {
9730
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
9731
+ }
9732
+ function _throw(err) {
9733
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
9734
+ }
9735
+ _next(undefined);
9736
+ });
9737
+ };
9738
+ }
9739
+ function _extends$9() {
9740
+ _extends$9 = Object.assign || function(target) {
9741
+ for(var i = 1; i < arguments.length; i++){
9742
+ var source = arguments[i];
9743
+ for(var key in source){
9744
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
9745
+ target[key] = source[key];
9746
+ }
9747
+ }
9748
+ }
9749
+ return target;
9750
+ };
9751
+ return _extends$9.apply(this, arguments);
9752
+ }
9753
+ function _inherits$a(subClass, superClass) {
9754
+ if (typeof superClass !== "function" && superClass !== null) {
9755
+ throw new TypeError("Super expression must either be null or a function");
9756
+ }
9757
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
9758
+ constructor: {
9759
+ value: subClass,
9760
+ writable: true,
9761
+ configurable: true
9762
+ }
9763
+ });
9764
+ if (superClass) _set_prototype_of$a(subClass, superClass);
9765
+ }
9766
+ function _set_prototype_of$a(o, p) {
9767
+ _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
9768
+ o.__proto__ = p;
9769
+ return o;
9770
+ };
9771
+ return _set_prototype_of$a(o, p);
9772
+ }
9773
+ function _ts_generator$2(thisArg, body) {
9774
+ var f, y, t, _ = {
9775
+ label: 0,
9776
+ sent: function() {
9777
+ if (t[0] & 1) throw t[1];
9778
+ return t[1];
9779
+ },
9780
+ trys: [],
9781
+ ops: []
9782
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
9783
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
9784
+ return this;
9785
+ }), g;
9786
+ function verb(n) {
9787
+ return function(v) {
9788
+ return step([
9789
+ n,
9790
+ v
9791
+ ]);
9792
+ };
9793
+ }
9794
+ function step(op) {
9795
+ if (f) throw new TypeError("Generator is already executing.");
9796
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
9797
+ 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;
9798
+ if (y = 0, t) op = [
9799
+ op[0] & 2,
9800
+ t.value
9801
+ ];
9802
+ switch(op[0]){
9803
+ case 0:
9804
+ case 1:
9805
+ t = op;
9806
+ break;
9807
+ case 4:
9808
+ _.label++;
9809
+ return {
9810
+ value: op[1],
9811
+ done: false
9812
+ };
9813
+ case 5:
9814
+ _.label++;
9815
+ y = op[1];
9816
+ op = [
9817
+ 0
9818
+ ];
9819
+ continue;
9820
+ case 7:
9821
+ op = _.ops.pop();
9822
+ _.trys.pop();
9823
+ continue;
9824
+ default:
9825
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
9826
+ _ = 0;
9827
+ continue;
9828
+ }
9829
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
9830
+ _.label = op[1];
9831
+ break;
9832
+ }
9833
+ if (op[0] === 6 && _.label < t[1]) {
9834
+ _.label = t[1];
9835
+ t = op;
9836
+ break;
9837
+ }
9838
+ if (t && _.label < t[2]) {
9839
+ _.label = t[2];
9840
+ _.ops.push(op);
9841
+ break;
9842
+ }
9843
+ if (t[2]) _.ops.pop();
9844
+ _.trys.pop();
9845
+ continue;
9846
+ }
9847
+ op = body.call(thisArg, _);
9848
+ } catch (e) {
9849
+ op = [
9850
+ 6,
9851
+ e
9852
+ ];
9853
+ y = 0;
9854
+ } finally{
9855
+ f = t = 0;
9856
+ }
9857
+ if (op[0] & 5) throw op[1];
9858
+ return {
9859
+ value: op[0] ? op[1] : void 0,
9860
+ done: true
9861
+ };
9862
+ }
9863
+ }
9864
+ /**
9865
+ * 语音广播控件
9866
+ *
9867
+ * 用于触发语音广播功能的按钮控件
9868
+ *
9869
+ * @category Control
9870
+ */ var Broadcast = /*#__PURE__*/ function(Control) {
9871
+ _inherits$a(Broadcast, Control);
9872
+ function Broadcast(options) {
9873
+ var _this;
9874
+ _this = Control.call(this, _extends$9({}, options, {
9875
+ tagName: 'span',
9876
+ controlType: 'button',
9877
+ classNameSuffix: 'broadcast'
9878
+ })) || this;
9879
+ _this._options = options;
9880
+ _this._render();
9881
+ _this.on(EVENTS.broadcastChange, function(active) {
9882
+ if (_this.active !== active) {
9883
+ _this.active = active;
9884
+ _this._render();
9885
+ }
9886
+ });
9887
+ return _this;
9888
+ }
9889
+ var _proto = Broadcast.prototype;
9890
+ _proto._render = function _render() {
9891
+ var _this_locale;
9892
+ this.$container.innerHTML = IconComponents.broadcast({
9893
+ title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_BROADCAST
9894
+ });
9895
+ };
9896
+ _proto.reset = function reset(hide) {
9897
+ if (this.active) {
9898
+ this.active = false;
9899
+ this._render();
9900
+ this.emit(EVENTS.control.broadcastChange, false);
9901
+ Control.prototype.reset.call(this, hide);
9902
+ }
9903
+ };
9904
+ /**
9905
+ * 销毁语音广播控件
9906
+ */ _proto.destroy = function destroy() {
9907
+ if (this.active) {
9908
+ this.reset();
9909
+ }
9910
+ Control.prototype.destroy.call(this);
9911
+ };
9912
+ /**
9913
+ * 点击 Control 会触发
9914
+ */ _proto._onControlClick = function _onControlClick(e) {
9915
+ var _this = this, _superprop_get__onControlClick = function() {
9916
+ return Control.prototype._onControlClick;
9917
+ };
9918
+ return _async_to_generator$2(function() {
9919
+ var _this__options_onChange, _this__options;
9920
+ return _ts_generator$2(this, function(_state) {
9921
+ _superprop_get__onControlClick().call(_this, e);
9922
+ this.active = !this.active;
9923
+ this.emit(EVENTS.control.broadcastChange, this.active);
9924
+ (_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this.active);
9925
+ this._render();
9926
+ return [
9927
+ 2
9928
+ ];
9929
+ });
9930
+ }).call(this);
9931
+ };
9932
+ return Broadcast;
9933
+ }(Control);
9934
+
9669
9935
  function _defineProperties$1(target, props) {
9670
9936
  for(var i = 0; i < props.length; i++){
9671
9937
  var descriptor = props[i];
@@ -10263,8 +10529,8 @@
10263
10529
  var dist$2 = {};
10264
10530
 
10265
10531
  /*
10266
- * @ezuikit/control-date-picker v1.0.5
10267
- * Copyright (c) 2026-01-05 Ezviz-OpenBiz
10532
+ * @ezuikit/control-date-picker v1.0.4
10533
+ * Copyright (c) 2025-12-31 Ezviz-OpenBiz
10268
10534
  * Released under the MIT License.
10269
10535
  */
10270
10536
 
@@ -10894,8 +11160,8 @@
10894
11160
  }
10895
11161
 
10896
11162
  /*
10897
- * @ezuikit/control-time-line v1.0.7
10898
- * Copyright (c) 2026-01-05 Ezviz-OpenBiz
11163
+ * @ezuikit/control-time-line v1.0.6
11164
+ * Copyright (c) 2025-12-31 Ezviz-OpenBiz
10899
11165
  * Released under the MIT License.
10900
11166
  */
10901
11167
 
@@ -11148,6 +11414,7 @@
11148
11414
  ptz: Ptz,
11149
11415
  record: Record,
11150
11416
  talk: Talk,
11417
+ broadcast: Broadcast,
11151
11418
  zoom: Zoom$1,
11152
11419
  definition: Definition,
11153
11420
  fullscreen: Fullscreen,
@@ -12306,7 +12573,7 @@
12306
12573
  _this.playing = true;
12307
12574
  }
12308
12575
  _this._initClassName();
12309
- // 画布需要渲染在 this.contentControl.$container 内
12576
+ // 画布需要渲染在 this.contentControl.$content 内
12310
12577
  _this.contentControl = new Content({
12311
12578
  getContainer: function() {
12312
12579
  return _this.$container;
@@ -13090,6 +13357,7 @@
13090
13357
  [
13091
13358
  'ptz',
13092
13359
  'talk',
13360
+ 'broadcast',
13093
13361
  'record',
13094
13362
  'speed'
13095
13363
  ].forEach(function(key) {
@@ -13167,6 +13435,7 @@
13167
13435
  [
13168
13436
  'ptz',
13169
13437
  'talk',
13438
+ 'broadcast',
13170
13439
  'record'
13171
13440
  ].forEach(function(key) {
13172
13441
  var _this_controls;
@@ -13527,7 +13796,7 @@
13527
13796
  zh: zh,
13528
13797
  en: en
13529
13798
  };
13530
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.10';
13799
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.11';
13531
13800
 
13532
13801
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
13533
13802